{"versions":{"0.1.0":{"name":"dsh-video-skin","version":"0.1.0","description":"DSH 视频皮肤：一段短片循环铺成整个界面的聊天背景（无声、可调透明度），另一段做有声的开机动画（片尾交叉溶解进界面、点击画面随时跳过）。零依赖。","type":"module","main":"index.js","exports":{".":"./index.js","./package.json":"./package.json"},"license":"MIT","author":{"name":"Something11235"},"repository":{"type":"git","url":"git+https://github.com/Something11235/dsh-video-skin.git"},"homepage":"https://github.com/Something11235/dsh-video-skin#readme","bugs":{"url":"https://github.com/Something11235/dsh-video-skin/issues"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"engines":{"node":">=22"},"keywords":["dsh","dsh-plugin","deepseek-harness","cordis","video","background","wallpaper","boot-animation","splash","skin"],"scripts":{"test":"node --test \"tests/**/*.test.mjs\"","check":"node scripts/check-syntax.mjs","verify":"node scripts/verify-all.mjs"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"gitHead":"c6e080e93f08c824c705b9e0e5119bf4ade19190","_id":"dsh-video-skin@0.1.0","_nodeVersion":"24.18.0","_npmVersion":"11.19.1","dist":{"integrity":"sha512-Kjr+P5TeRzPVmYa9DJ7vR9j8uJOnGeLuMP/38+RMs4KQlT9/2aiv1M2cF5Zy+uD9T6M+J7z9f8M61dzjK1W1CQ==","shasum":"a5be5fd202062e2bc706e12ee2fab519425b0cbb","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/dsh-video-skin/-/dsh-video-skin-0.1.0.tgz","fileCount":32,"unpackedSize":16063433,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAX4YY/1xowKJ6geY0zwUCPSKhqxwZgqKwBftqL8aVT7AiBgpwyZjxpwVdrLK2tnyWvuE6xQlETfHDf7dvopaygY4Q=="}],"size":15813181},"_npmUser":{"name":"anonymous","email":"sun2371987355@163.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"sun2371987355@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dsh-video-skin_0.1.0_1790948925536_0.9240729320150725"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-10-02T13:48:45.979Z","publish_time":1790948925979,"_source_registry_name":"default","contributors":[]},"0.1.1":{"_id":"dsh-video-skin@0.1.1","dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"bugs":{"url":"https://github.com/Something11235/dsh-video-skin/issues"},"dist":{"shasum":"88c699e0689b19281d27eef347690e8d3ff90e02","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/dsh-video-skin/-/dsh-video-skin-0.1.1.tgz","fileCount":32,"integrity":"sha512-kRiTkF5AJdsp1o0sH5u0KF2scJtQ/jGFURgSLIzWihaPpF9vcFfb14pOkN1VOshXQOj1NybqoFlrz9z2CnL0eA==","signatures":[{"sig":"MEYCIQCbhHAPFlTJ1loLEs62QzPO7LSApA999BBJcaOiHuBGpAIhAMOKjk3tDWb/wH8IHiz++n9j4TCDQTWs2jPH0SGAlJmp","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBrx2suFRmC/v1TqrzGSq03bxMTRdP4sWsDds2GuRm/jAiBgXDCuc/TxyMk6ALtMvT5lvv+cTu6ShhxO9b9OmmZCkg=="}],"unpackedSize":16031439,"size":15770577},"main":"index.js","name":"dsh-video-skin","type":"module","author":{"name":"Something11235"},"engines":{"node":">=22"},"exports":{".":"./index.js","./package.json":"./package.json"},"gitHead":"f5b69ee2d8aaa16088990ac59460d52388295735","license":"MIT","scripts":{"test":"node --test \"tests/**/*.test.mjs\"","check":"node scripts/check-syntax.mjs","verify":"node scripts/verify-all.mjs"},"version":"0.1.1","_npmUser":{"name":"anonymous","email":"sun2371987355@163.com"},"homepage":"https://github.com/Something11235/dsh-video-skin#readme","keywords":["dsh","dsh-plugin","deepseek-harness","cordis","video","background","wallpaper","boot-animation","splash","skin"],"repository":{"url":"git+https://github.com/Something11235/dsh-video-skin.git","type":"git"},"_npmVersion":"11.19.1","description":"DSH 视频皮肤：一段短片循环铺成整个界面的聊天背景（无声、可调透明度），另一段做有声的开机动画（片尾交叉溶解进界面、点击画面随时跳过）。零依赖。","directories":{},"maintainers":[{"name":"anonymous","email":"sun2371987355@163.com"}],"_nodeVersion":"24.18.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dsh-video-skin_0.1.1_1790951031355_0.8738913197576736"},"_cnpmcore_publish_time":"2026-10-02T14:23:51.651Z","publish_time":1790951031651,"_source_registry_name":"default","contributors":[]},"0.1.3":{"_id":"dsh-video-skin@0.1.3","dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"bugs":{"url":"https://github.com/Something11235/dsh-video-skin/issues"},"dist":{"shasum":"897d4e04b93d6e537e125211f084bf30f43ce95b","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/dsh-video-skin/-/dsh-video-skin-0.1.3.tgz","fileCount":37,"integrity":"sha512-b72PEWbkaQkXd6k0eZrlptcsC1LskAg3Q3k5FnO3wMHSdteVrGX6yP8NzIC/RbWKAOeWlg9AznV6sfaIoe8Asg==","signatures":[{"sig":"MEUCIA7NvQVF4x9fNZsIX3P72bd3L30aH1IVQp9GrEHOA5FtAiEA9lsC2NFd96BZL6Bn3xiaYX4kCi7HFgq4dSQb3U2B9NY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCDvc5rxWL1MIIrkDQsaPmQ9gBoDYyUrNdGHzMMIz4pMwIhALmjKQ2UP30DA1x4xfyQCCs2ckQKylUjbnLnv85kDw9k"}],"unpackedSize":17119364,"size":16815580},"main":"index.js","name":"dsh-video-skin","type":"module","author":{"name":"Something11235"},"engines":{"node":">=22"},"exports":{".":"./index.js","./package.json":"./package.json"},"gitHead":"441c3f6eff37e95eefa94dcb21a7cbb27fe75cb9","license":"MIT","scripts":{"test":"node --test \"tests/**/*.test.mjs\"","check":"node scripts/check-syntax.mjs","verify":"node scripts/verify-all.mjs"},"version":"0.1.3","_npmUser":{"name":"anonymous","email":"sun2371987355@163.com"},"homepage":"https://github.com/Something11235/dsh-video-skin#readme","keywords":["dsh","dsh-plugin","deepseek-harness","cordis","video","background","wallpaper","boot-animation","splash","skin"],"repository":{"url":"git+https://github.com/Something11235/dsh-video-skin.git","type":"git"},"_npmVersion":"11.19.1","description":"DSH 视频皮肤：一段短片循环铺成整个界面的聊天背景（无声、可调透明度），另一段做有声的开机动画（片尾交叉溶解进界面、点击画面随时跳过）。零依赖。","directories":{},"maintainers":[{"name":"anonymous","email":"sun2371987355@163.com"}],"_nodeVersion":"24.18.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dsh-video-skin_0.1.3_1792772893855_0.5944860571830473"},"_cnpmcore_publish_time":"2026-10-23T16:28:14.448Z","publish_time":1792772894448,"_source_registry_name":"default","contributors":[]},"0.1.4":{"_id":"dsh-video-skin@0.1.4","dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"bugs":{"url":"https://github.com/Something11235/dsh-video-skin/issues"},"dist":{"shasum":"2dd97544bd0436969153b481cbb6e9ce2cfa765f","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/dsh-video-skin/-/dsh-video-skin-0.1.4.tgz","fileCount":37,"integrity":"sha512-KVAXtSGghyN0LfLuTZrjE84pFPScQMD+OO6l06z9Jz86xq3b4EMEQzOU8wu67VtZjjhOwCM5ex33m4zULvmGnQ==","signatures":[{"sig":"MEUCIQCpib2PdMQJSmOTV7aQDPwJwNf3UnLgU+plvUFMoGXwyAIgIMmoOBQe/JlGZ4Xr5v1WRVuImEiGahHpFuJRWSFgeSw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBHXjEnalvMQ+4838Up5LzA/8d47QK/0vIVk8t3Of32PAiEA748EbZql24xO/oBjpYFislau1dXK1N09S22Xz9utYtw="}],"unpackedSize":17044124,"size":16732871},"main":"index.js","name":"dsh-video-skin","type":"module","author":{"name":"Something11235"},"engines":{"node":">=22"},"exports":{".":"./index.js","./package.json":"./package.json"},"gitHead":"8a44e2f79409cce0314f702dcfb424c0f2d56e82","license":"MIT","scripts":{"test":"node --test \"tests/**/*.test.mjs\"","check":"node scripts/check-syntax.mjs","verify":"node scripts/verify-all.mjs"},"version":"0.1.4","_npmUser":{"name":"anonymous","email":"sun2371987355@163.com"},"homepage":"https://github.com/Something11235/dsh-video-skin#readme","keywords":["dsh","dsh-plugin","deepseek-harness","cordis","video","background","wallpaper","boot-animation","splash","skin"],"repository":{"url":"git+https://github.com/Something11235/dsh-video-skin.git","type":"git"},"_npmVersion":"11.19.1","description":"DSH 视频皮肤：一段短片循环铺成整个界面的聊天背景（无声、可调透明度），另一段做有声的开机动画（片尾交叉溶解进界面、点击画面随时跳过）。零依赖。","directories":{},"maintainers":[{"name":"anonymous","email":"sun2371987355@163.com"}],"_nodeVersion":"24.18.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dsh-video-skin_0.1.4_1792980270679_0.33173993535830526"},"_cnpmcore_publish_time":"2026-10-26T02:04:31.177Z","publish_time":1792980271177,"_source_registry_name":"default","contributors":[]},"0.1.5":{"_id":"dsh-video-skin@0.1.5","dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"bugs":{"url":"https://github.com/Something11235/dsh-video-skin/issues"},"dist":{"shasum":"c5b421432ec3ce92081da22c82ac9fa257655ee3","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/dsh-video-skin/-/dsh-video-skin-0.1.5.tgz","fileCount":41,"integrity":"sha512-DD03FCuyX8LjhRSHW6H2xo+r0U4421WRrqQ711P4pZnKjD9nJF9Ze7QM69axa+AbLOVZpa1gJK4Z34s+N6MBHQ==","signatures":[{"sig":"MEYCIQCbxBSySQB8qehsu5hcYANkscCDCurBcmNO3dw2olrl9QIhAMo7/HRuuvx39+XQ3NRVeHKuLKwefr2yi27V36h49LEl","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCwFzta3bnlNpn9Ke0Gy6YlwlfJUELlKWfZ1p7ux9JegwIgfRbCBGtb3kPni4zbDHhCUyh4AJRoYvvSSL42eWs+8xY="}],"unpackedSize":17290590,"size":16923435},"main":"index.js","name":"dsh-video-skin","type":"module","author":{"name":"Something11235"},"engines":{"node":">=22"},"exports":{".":"./index.js","./package.json":"./package.json"},"gitHead":"3e7da246dbc960f1dcf9eb5cbfea4be62766caf4","license":"MIT","scripts":{"test":"node --test \"tests/**/*.test.mjs\"","check":"node scripts/check-syntax.mjs","verify":"node scripts/verify-all.mjs","repo:backup":"node scripts/verify-repo.mjs --backup","repo:verify":"node scripts/verify-repo.mjs"},"version":"0.1.5","_npmUser":{"name":"anonymous","email":"sun2371987355@163.com"},"homepage":"https://github.com/Something11235/dsh-video-skin#readme","keywords":["dsh","dsh-plugin","deepseek-harness","cordis","video","background","wallpaper","boot-animation","splash","skin"],"repository":{"url":"git+https://github.com/Something11235/dsh-video-skin.git","type":"git"},"_npmVersion":"11.19.1","description":"DSH 视频皮肤：一段短片循环铺成整个界面的聊天背景（无声、可调透明度），另一段做有声的开机动画（片尾交叉溶解进界面、点击画面随时跳过）。零依赖。","directories":{},"maintainers":[{"name":"anonymous","email":"sun2371987355@163.com"}],"_nodeVersion":"24.18.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dsh-video-skin_0.1.5_1792981827538_0.7645449320872131"},"_cnpmcore_publish_time":"2026-10-26T02:30:27.880Z","publish_time":1792981827880,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"0.1.5"},"name":"dsh-video-skin","time":{"created":"2026-10-02T13:48:51.487Z","modified":"2026-10-26T02:30:48.956Z","0.1.0":"2026-10-02T13:48:45.979Z","0.1.1":"2026-10-02T14:23:51.651Z","0.1.3":"2026-10-23T16:28:14.448Z","0.1.4":"2026-10-26T02:04:31.177Z","0.1.5":"2026-10-26T02:30:27.880Z"},"readme":"# dsh-video-skin\n\n[![Awesome DSH Plugin](https://awesome-dsh-plugin.com/badge.svg)](https://awesome-dsh-plugin.com)\n\n**DSH 视频皮肤**：一段短片循环铺成整个界面的**聊天背景**（无声、透明度界面里就能调），\n另一段做**有声的开机动画**（片尾交叉溶解进界面、**点击画面随时跳过**）。**零依赖**。\n\n## 安装（Install）\n\n**设置 → 插件 → 添加插件**，把下面这一行贴进输入框，点「安装」，然后**完全退出并重新打开 DSH**：\n\n```\ngithub:Something11235/dsh-video-skin#main\n```\n\n> 桌面版（Electron）的索引注入表是**宿主启动时收集一次**的快照，所以装完必须**完全重启 DSH**\n> 才会生效（刷新页面不够）。卸载：`dsh plugin --profile <你的 profile> remove dsh-video-skin`，\n> 或者用仓库里的 `scripts/uninstall.ps1`。\n\n装好之后：右下角会出现一个半透明小圆钮，点开就是**透明度滑块**（调完刷新还在，不用重启）；\n启动时会先播放开机动画，**点一下画面**就跳过。\n\nEnglish: install `github:Something11235/dsh-video-skin#main` from **Settings → Plugins → Add plugin**,\nthen **fully quit and relaunch DSH**. A small pill appears in the bottom-right corner for the\ntransparency sliders; click anywhere during the boot animation to skip it.\n\n---\n\nA **video skin** for DSH: one clip becomes a looping, silent **video backdrop** behind the whole Web UI,\nand a second clip becomes a **boot animation** — **played with sound**, **played through to its end**,\nthen fading into the app, and **skippable with a click**.\n\n- Boot animation: full-window clip **with audio**, a progress bar driven by the kernel's real activation\n  progress, and a permanent “click to skip” pill. The clip **finishes first** (`ended`), then the overlay\n  fades out over a **fixed** `fadeMs`; the volume fades with it instead of being cut off.\n  > Earlier builds cross-dissolved over the clip's tail and used the *actual remaining time* as the fade\n  > duration — when the app became ready late that left only 100–200 ms, which read as a **hard cut**.\n  > Default is now `exitMode: 'end'`; `exitMode: 'tail'` restores the crossfade (still with a fixed fade).\n- Backdrop: silent, looping, `object-fit: cover`, with the **canvas and sidebar** surface tokens made\n  translucent — **the picture is clearly visible** and the text stays readable.\n  **Raised surfaces stay opaque**: the kernel paints dialogs, popovers, menus, cards and the settings\n  view with `--dsw-alias-bg-layer-1/2/3` (`_dialog_* { background: var(--dsw-alias-bg-layer-2) }`), so\n  those tokens are deliberately **left untouched** — otherwise the scrolling text behind a dialog shows\n  through it and neither layer is readable.\n- **Light-theme hint (default `theme.mode: 'ask'`).** The asset is dark (`YAVG ≈ 0.25`), so a readable\n  light theme needs a 0.6 white surface and the video washes out — most people never find the theme\n  toggle. After the page loads the plugin asks once whether to switch to dark; nothing changes unless\n  you click. `auto` switches by itself, `off` disables it. The write goes through the kernel's settings\n  service (`ctx.settings.update('ui-theme', …)`, never by editing the profile YAML) — **never during\n  activation**, which is what broke desktop startup in 0.1.3 (see §\"Startup safety\").\n- **Your media, your rules.** The panel has one row per asset: turn the boot animation off and keep\n  the background (or the other way round), or hit 更换… to upload your own mp4/webm/ogv (≤ 96 MiB).\n  Uploads land in `$DSH_HOME/dsh-video-skin-media/` with a content-hash filename, so a replaced file\n  can never be served from cache; 默认 restores the bundled asset. Background changes apply live,\n  boot changes after a DSH restart (the boot overlay comes from a startup snapshot). Config accepts\n  either a package-relative or an absolute `file`. Verified by `scripts/verify-media.mjs` (15 assertions).\n- **Startup safety.** 0.1.3 called `settings.update()` while the plugin was still activating; that write\n  rewrites the profile patch document, and the desktop welcome window aborts startup if its first RPC\n  (`settings.describe`) is not 2xx, without retrying (`app.asar/lib/main.js:8903/13018`). 0.1.4 touches\n  no settings during activation at all, and `tests/host.test.mjs` asserts it (`apply()` must not call\n  `ctx.get`, and may only `inject(['webServer'])`). See `scripts/verify-theme.mjs` (17 assertions).\n- A **transparency panel in the UI** (bottom-right pill): three sliders — canvas, video scrim, and\n  **raised surfaces** (dialogs/settings) — plus three presets and a live body-text contrast readout.\n  The surface slider defaults to **100% (kernel-native opaque)**; dial it down for a frosted look.\n  Changes persist and apply on refresh with no DSH restart.\n- **Zero dependencies.** The host half imports only `node:` builtins; the browser half is one inline\n  script. Nothing in the built artifact has an `import` — which is also why a plain `github:` install\n  works with **no build step and no `prepare` script**.\n\n> 中文完整说明（安装、调参、控件用法、机制约束、排错、自检）见 [README.zh.md](README.zh.md)。\n\n## Screenshots (captured on this machine by `scripts/verify-browser.mjs`)\n\n| | |\n| --- | --- |\n| ![boot animation](docs/e2e-1-boot.png) | ![light theme backdrop](docs/e2e-2-app.png) |\n| Boot animation: clip fills the window (with sound), real boot progress bar, permanent \"click to skip\" pill | Light theme: backdrop fills the window, body-text contrast p5 = **7.90** |\n| ![dark theme backdrop](docs/e2e-3-dark.png) | ![settings, light](docs/e2e-5-settings-light.png) |\n| Dark theme: video clearly visible, body-text contrast p5 = **6.86**, median 16.06 (AA needs 4.5) | Settings view (light): opaque panel — the chat behind does not bleed in |\n\n![settings, dark](docs/e2e-6-settings-dark.png)\n\nSettings view in dark theme. That layer used to be `layer-2` at alpha 0.36 (the worst case) and let the\nchat text show straight through the dialog; it now keeps the kernel's native opaque colour.\n\n## Sound\n\nThe desktop shell sets no `webPreferences.autoplayPolicy`, so Electron's default\n(`no-user-gesture-required`) applies: an unmuted `play()` succeeds and the boot animation starts with\nsound. A plain browser (`dsh web` in Chrome) blocks unmuted autoplay by default; the runtime then\n**falls back to muted playback** (never trapping you on a dead screen) and shows a **separate** sound\nbutton in the bottom-left — clicking it turns sound on without skipping, so the two intents never\ncollide. Set `boot.sound: false` for a silent boot.\n\n## Transparency\n\n`surface` (dark theme) and `surfaceLight` (light theme) are the two knobs that trade picture strength\nagainst readability; `veil` / `veilLight` are the scrims over the video. They are deliberately different\nper theme: text is light in dark mode and dark in light mode, and this asset is dark (`YAVG ≈ 0.25`), so\nan equally thin *white* surface drops dark text below 3:1. Measured in a real browser:\n\n| `surface` | `surfaceLight` | dark min / p5 / median | light min / p5 / median |\n| --- | --- | --- | --- |\n| **0.2** | **0.6** | **2.49 / 6.81 / 16.05** | **7.74 / 7.91 / 8.72** |\n| 0.2 | 0.4 | 2.52 / 6.85 / 16.06 | 4.34 / 4.52 / 5.37 |\n| 0.05 | 0.6 | 1.53 / 4.89 / 15.24 | 7.38 / 7.56 / 8.37 |\n| 0 | 0.55 | 1.22 / 4.14 / 14.71 | 5.87 / 6.06 / 6.90 |\n\np5 (the 95% of frame area) is the meaningful readability number; `--sweep` prints this table live.\n\n## Tuning it in the UI\n\nA small half-transparent pill sits in the bottom-right corner. Clicking it opens a panel with two\nsliders (panel opacity / video scrim), three presets, a **live body-text contrast readout** measured from\nthe current video frame, and a reset button.\n\n- Dragging applies immediately; releasing writes to `$DSH_HOME/dsh-video-skin.json` through a\n  `POST`/`DELETE /dsh-video-skin/override` route. Only those four knobs are written; everything else in\n  the file is preserved. A **refresh** picks the values up (no DSH restart), and the file stays\n  hand-editable.\n- A file rather than `localStorage`: the desktop page is served from the `dsh-app://` scheme, where Web\n  Storage availability is not guaranteed.\n- If the write fails (read-only home), the panel says so — it does not pretend to have saved.\n- `Esc` or a click outside closes the panel; `Alt+B` toggles it; `background.controls: false` removes it.\n- The pill sits at `z-index: 900`, **below** the kernel's `Modal` overlay (1000) on purpose: a modal\n  should cover everything, and a wallpaper control must not steal its clicks.\n\n---\n\n## Install\n\n```powershell\npowershell -ExecutionPolicy Bypass -File scripts\\install.ps1     # writes profile package.json + bundles\npowershell -ExecutionPolicy Bypass -File scripts\\uninstall.ps1   # removes both again\n```\n\n**A full restart of DSH is required.** The desktop (Electron) shell serves a static `index.html` and\ncollects the index-injection table **once at host startup**, with no refresh path; `tapIndex` never\napplies there. So a newly installed plugin's injection rows only reach the page on the next launch.\n\n## Configure\n\nDefaults work as shipped. To tune, write either file (the second wins):\n\n- `<plugin>/video-skin.config.json`\n- `%USERPROFILE%\\.dsh\\dsh-video-skin.json`\n\nChanges apply on page refresh. On the desktop shell the boot-animation fields are baked into the\nstartup snapshot, so those need a restart.\n\n```json\n{\n  \"boot\":       { \"enabled\": true, \"fadeMs\": 1000, \"exitMode\": \"end\", \"skipFadeMs\": 320, \"holdMs\": 18000, \"hint\": \"点击画面跳过\" },\n  \"background\": { \"enabled\": true, \"veil\": 0.32, \"surface\": 0.5, \"delayMs\": 1200, \"playbackRate\": 1 }\n}\n```\n\n`veil` (scrim over the video) and `surface` (opacity of the app's `--dsw-alias-*` surfaces) are the two\nknobs that trade picture strength against text readability.\n\n## How it is wired\n\n```\nHost half\n  ├─ ctx.on('webserver/index-inject', table => table.push(styleRow, scriptRow))  ← first thing in apply()\n  └─ ctx.inject(['webServer'], …) → /dsh-video-skin/{boot.mp4,background.mp4,config.json}\n                                    with Range / ETag / 206 / 416 / HEAD\n```\n\nThree constraints that must not be broken (each one was paid for):\n\n1. **Never `kind:'script-src'`.** The desktop interpreter `await`s external script rows and a rejection\n   kills `__DSH_BOOT_READY__`, i.e. the whole app fails to start. An inline `kind:'script'` row cannot fail.\n2. **Register the injection listener synchronously in `apply()`.** An object-level `inject` delays `apply`\n   past the host's one-shot collection, and the row then never lands.\n3. **Keep the overlay on `document.body`, never inside `#root`.** The kernel hydrates `#root`'s existing\n   boot DOM (`:scope > [data-dsh-boot]`); inserting a node there breaks hydration.\n\nThe backdrop is a `position: fixed; z-index: -1` first child of `body`, so nothing in the app needs a\n`z-index` and no pointer interaction is blocked.\n\n## Verify\n\n```powershell\nnode scripts/check-syntax.mjs\nnode --test \"tests/**/*.test.mjs\"\nnode scripts/verify-all.mjs\n```\n\n`tests/runtime.test.mjs` runs the injected script inside a stub DOM with a virtual clock and asserts the\nreal timing properties (the clip plays to `ended` before the fade; the fade span is always the configured\n`fadeMs`, never the remaining time; a click uses\n`skipFadeMs`; **unmuted is tried first and muted is the fallback**; the sound button toggles sound\nwithout skipping; the volume fades to 0 with the picture; unknown duration / no first frame / media\nerror (retried once) / a never-ready kernel each have an upper bound that never truncates the clip).\n`tests/host.test.mjs` drives the real `apply()`\nagainst a real HTTP server for the Range, `ETag`, `304`, `416` and cache-header contracts.\n\nTwo more suites need a live target:\n\n```powershell\n# 81 assertions (Electron-equivalent autoplay) / 66 (plain browser) in a real headless Chromium over CDP:\n#   --autoplay allow (Electron-equivalent): unmuted playback, no sound button,\n#                                          webkitAudioDecodedByteCount > 0 (the audio track really decodes)\n#   --autoplay block (plain browser)      : muted fallback, sound button visible, a real mouse click on it\n#                                          does NOT skip and does unmute\n# Plus: overlay covers the viewport, a click at the viewport centre really skips, the fade removes the\n# node, the backdrop layer is body's first child at z-index:-1, the --dsw-alias-* tokens really\n# *resolve* to translucent colours, the backdrop video really decodes, and the app really mounted.\n# It also samples the video frame into a canvas and reports measured WCAG contrast for body text\n# (this machine: dark p5 6.86 / median 16.06, light p5 7.90 / median 8.70). --sweep prints the full table.\nnode scripts/make-verify-profile.mjs\nnode scripts/verify-browser.mjs --url \"http://127.0.0.1:19388/?token=...\" --shot-dir docs\nnode scripts/verify-browser.mjs --url \"http://127.0.0.1:19388/?token=...\" --autoplay block --port 9445\n\n# Composition rehearsal with the kernel's own loadProfileDirectory, which is the first thing that\n# can throw on the boot path. Needed because `dsh --profile desktop --dump-config` is refused.\n$env:ELECTRON_RUN_AS_NODE='1'\n& 'D:\\AI\\Agent\\DSH官方\\DeepSeek Harness.exe' scripts\\rehearse-profile.mjs desktop\n```\n\n## License\n\nMIT — see [LICENSE](LICENSE).","users":{}}