NativeDog1/dsh-boot-animation

打开新对话、或打开你钉住的会话时,视频铺满整个窗口播放一段片头开机动画。支持换成自己的视频,每个会话只播一次或每次打开都播

Open original source ↗

Older snapshot: check the original source for current information.

From the publisher

README & documentation

Source preview

Read the project’s overview, installation instructions and usage examples. The original README is the source of truth.

给 DSH 加一段开机动画:每次打开 DSH 播一次,视频铺满整个窗口。 本插件刻意不声明任何 @deepseek-ai/dsh- 的 peerDependencies。 host 半边只用 ctx.webServer,客户端半边只通过动态注入取 slots / uiSession,两处都不静态 依赖某个宿主包。这样做的直接好处是:它永远不会被 dsh 的版本兼容闸门跳过 —— 0.2.0 起那道闸门会把 peerDependencies 对不上的插件整包跳过,现象是"装上了、 但重启后什么也没发生",而且不报错(市场自己的兼容守卫也会拦)。其它插件要靠 ^0.1.5-rc.3 || ^0.2.0-rc.1 这种 || 列表来适配,本插件不需要,也不会因为漏写 某条版本线而被跳过。 代价是宿主形状变了得自己容忍,这部分由测试守着:verify-blank(13 种宿主形状)、 verify-session-id、verify-client-boot(11 项 boot 安全)。例如"这是不是全新对话" 在 0.2.0 从 binding 上的 blankBit 挪到了 session.getSnapshot().blank —— 两种都读, 并且订阅那个 face 本身而不是采样一次。 装完必须重启一次 DSH 服务才生效(bundle 层是在启动时装配的): DSH 的客户端 bundle 响应带 cache-control: max-age=31536000, immutable, 而 URL 上的 rev 是进程 nonce、不会随内容变化。所以浏览器会一直用第一次抓到的副本。 装好或升级后请在新窗口里按 Ctrl+Shift+R(硬刷新)。普通 F5 不够。 片库面板(页脚 🎛)里有一行明确写着: 关掉标签页就清掉,所以开关打开时的「一次」= 一次应用启动,而不是「一个会话」 不存 localStorage —— localStorage 按来源(host:port)隔离,DSH 换个端口设置就丢了 之后每次进入这个会话都会播一遍 —— 切走再切回来、刷新页面,都会重播。 无论上面那个开关是开还是关,都一样。 再点一下图标取消。 上面那个 🎞 图钉管的是「什么时候播」;如果你要管「这个会话播哪一段」, 用片库里的 「仅本会话」: 那一行会变成蓝底并挂上「本会话」徽章,面板顶部也会写明「本会话固定播放:xxx」, 旁边有 「取消(回到全局)」。之后只有这个会话播这一段 —— 其它会话、以及你在别处选的那一段,都不受影响。 「选它」改的是全局,「仅本会话」改的是这一个会话,两者互不覆盖。 优先级:会话覆盖 → 随机 → 全局选择 → 环境变量 → intro.mp4 → videos/ → 内嵌内置片。 会话覆盖连「随机播放」也压得住 —— 把一个会话钉住之后又被随手塞一段随机片, 那不是"钉住"的意思;但显式请求随机的调用(mode=random)仍然不被覆盖。 进来是「显影」,出去是「虚化淡出」,都不是硬切: 退场的模糊在视频背后,所以应用是「先糊后清」地浮出来,而不是从硬边后弹出。 退场期间底层立刻可点(pointer-events:none),不需要等动画放完。 系统开了「减少动态效果」(prefers-reduced-motion)时,这两段动画直接关掉。 两个时长(460ms 与 HANDOFFMS = 500)写在不同文件里,必须保持前者更短 —— 动画被半路切断比没有动画更难看,npm run verify:handoff 专门断言这一条。 插件现在是一个片库,不是单个槽位:它会把所有能找到的视频都列出来,你选一个,选择会被记住。 装完不用加任何东西,片库里就已经有四段可选: 这些片段没有落盘的 mp4 文件 ——…

NativeDog1/dsh-boot-animation on GitHub A short preview, not the full document.

Read the full README ↗ · Preview checked 2026-11-14T16:29:59.840Z

Inside the original README — Document outline
  1. dsh-boot-animation
  2. 安装
  3. 支持的 DSH 版本
  4. 装完看不到效果?先做这件事
  5. 用法
  6. 「什么时候播」是一个开关(0.4.2 新增)
  7. 让某个会话每次打开都播(推荐)
  8. 只给某一个会话换片头(0.4.0 新增)
  9. 片头是怎么进出画面的(0.4.4)
  10. 换自己的视频(片库)
  11. 插件自带四段片头(内嵌在代码里)
  12. 最省事的方式(推荐)

Headings are captured from the source. Links open the publisher’s document, not a locally hosted copy.

Links from the README

References supplied by the publisher, not independently verified endorsements. Check the destination before downloading files or entering credentials.

Documentation belongs to its respective authors. Reported project/model license: Other. A listing is not a grant of reuse or training rights. Confirm the document’s own terms at the source.

What this repository does

打开新对话、或打开你钉住的会话时,视频铺满整个窗口播放一段片头开机动画。支持换成自己的视频,每个会话只播一次或每次打开都播

Repository facts

Owner
NativeDog1
Primary language
JavaScript
Stars
198
Forks
15
Open issues + pull requests
5
License
Other
Archived
No
Default branch
main
Created
2026-09-25T09:40:45.000Z
Last push
2026-10-02T11:42:21.000Z

Topics and intended use

No topics were included in the latest source metadata.

Review the README for scope, installation, examples and limitations. We do not run repository code or certify it.

Evaluate before installing

Review licensing and dependencies, inspect recent commits and unresolved issues, and test in an isolated environment before production use. Stars and forks alone cannot answer these questions.

README and project files

Issues and maintenance discussion

Releases and changelog

Source and freshness

Source: GitHub. Metadata observed 2026-10-02T12:05:32.591Z. Daily imports are snapshots, not real-time monitoring.

Popularity and source listings do not establish security, suitability, licensing rights or benchmark performance.

Open original source

Related repositories

affaan-m/ECC

react/react

trekhleb/javascript-algorithms

DietrichGebert/ponytail

CyC2018/CS-Notes

Snailclimb/JavaGuide