@shifu-hu/dsh-boot-sequence 0.0.0-stage → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CREDITS.md ADDED
@@ -0,0 +1,47 @@
1
+ # 素材署名与许可
2
+
3
+ 本插件包含两处**非自行创作**的第三方素材。它们各自的许可义务如下,分发或改编时请保留本文件。
4
+
5
+ ## 1. 鲸鱼娘形象(`assets/mascot/whalegirl.webp`)
6
+
7
+ 基于成熟版(女仆装)设定图 `dafeiyu-mature-character-sheet.png`,
8
+ 取该图**左上约 75% 区域**(正面立绘的头部与上身,非全身),
9
+ 再经边缘检测提取线稿、去除相邻人物的串入部分、并以单色重绘为**无颜色线稿**。
10
+
11
+ > 该设定图沿用 [xiaoweigen/deepseek-dafeiyu-assets](https://github.com/xiaoweigen/deepseek-dafeiyu-assets)
12
+ > 所整理的 DeepSeek 大肥鱼/鲸鱼娘形象体系:
13
+ > 原始角色形象「上善无形(上善)」;DeepSeek 女仆形象二次设计「ZipZipPipe」;
14
+ > Q 版设定图参考「YunYueSama」(https://github.com/YunYueSama/codex-deepseek-pet);
15
+ > 本组改编与整理「xiaoweigen」。
16
+ >
17
+ > 上游改编贡献许可:**CC BY-NC-SA 4.0**
18
+ > (https://creativecommons.org/licenses/by-nc-sa/4.0/),保留适用的完整上游许可。
19
+ >
20
+ > 本插件新增修改:裁切为正面头身、提取边缘线稿、剔除相邻视图残影、
21
+ > 去除全部色彩并以单色重绘、缩放至 520px 高。
22
+
23
+ **非商业使用**:不得以获取商业优势或金钱报酬为主要目的使用该素材。
24
+ 如用于商业场景,请替换为自有素材。
25
+
26
+ ## 2. 启动音效(`audio/*.wav`)
27
+
28
+ 直接取自 [GitSquared/edex-ui](https://github.com/GitSquared/edex-ui) 的
29
+ `src/assets/audio/`,未作修改:
30
+
31
+ | 文件 | 用途 | 原路径 |
32
+ |---|---|---|
33
+ | `stdout.wav` | 每打印一行 boot log 时播放 | `src/assets/audio/stdout.wav` |
34
+ | `granted.wav` | 打印到 `Boot Complete` 时播放 | `src/assets/audio/granted.wav` |
35
+ | `theme.wav` | 标题屏出现时播放 | `src/assets/audio/theme.wav` |
36
+
37
+ eDEX-UI 以 **GPL-3.0** 发布;其自带音效文件随仓库分发。本项目对 eDEX-UI 的
38
+ 使用限于此三份音频素材,未复制其代码(时序逻辑为依据 `boot_screen.css` /
39
+ `_renderer.js` 的公开行为重新实现)。
40
+
41
+ ## 3. 字体
42
+
43
+ | 文件 | 来源 | 许可 |
44
+ |---|---|---|
45
+ | `build/fonts/*.woff2` | United Sans Medium、Fira Mono 子集 | 各自 OFL / 随 eDEX-UI 分发 |
46
+
47
+ 字体经 `pyftsubset` 子集化后以 base64 内联进样式表,未修改字形设计。
package/LICENSE ADDED
@@ -0,0 +1,38 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Shifu-HU
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
23
+ ---
24
+
25
+ THIRD-PARTY NOTICE
26
+
27
+ This MIT license covers the plugin source written for this project. Two
28
+ bundled assets carry their own licenses and are NOT relicensed here:
29
+
30
+ 1. Whale-girl mascot (assets/mascot/whalegirl.webp)
31
+ CC BY-NC-SA 4.0 — non-commercial, attribution required.
32
+ Upstream authors: 上善无形(上善), ZipZipPipe, YunYueSama, xiaoweigen
33
+ https://github.com/xiaoweigen/deepseek-dafeiyu-assets
34
+
35
+ 2. Boot audio cues (assets/audio/*.wav)
36
+ From GitSquared/edex-ui, GPL-3.0.
37
+
38
+ See CREDITS.md for the full attribution record.
package/README.md CHANGED
@@ -1,3 +1,112 @@
1
- # Temporary Holding Version
1
+ # dsh-boot-sequence
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ An [eDEX-UI](https://github.com/GitSquared/edex-ui) style boot sequence for the
4
+ **the agent runtime** Web UI: a full-screen splash that prints an 85-line boot
5
+ log, lands a glitching title plate, and fades into the workspace.
6
+
7
+ [中文说明](README.zh-CN.md)
8
+
9
+ [![npm](https://img.shields.io/npm/v/@shifu-hu/dsh-boot-sequence.svg)](https://www.npmjs.com/package/@shifu-hu/dsh-boot-sequence)
10
+ [![license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
11
+
12
+ ![preview](https://raw.githubusercontent.com/Shifu-HU/dsh-boot-sequence/main/docs/preview.png)
13
+
14
+ ## Install
15
+
16
+ Published on npm: **[@shifu-hu/dsh-boot-sequence](https://www.npmjs.com/package/@shifu-hu/dsh-boot-sequence)**
17
+
18
+ ```bash
19
+ # from the npm registry (recommended)
20
+ plugin_manager install_bundle @shifu-hu/dsh-boot-sequence
21
+
22
+ # pin a version
23
+ plugin_manager install_bundle @shifu-hu/dsh-boot-sequence@1.0.0
24
+ ```
25
+
26
+ ### From Git
27
+
28
+ ```bash
29
+ plugin_manager install_bundle git+https://github.com/Shifu-HU/dsh-boot-sequence.git
30
+ ```
31
+
32
+ ### From a local folder
33
+
34
+ ```bash
35
+ plugin_manager install_bundle C:/path/to/dsh-boot-sequence
36
+ ```
37
+
38
+ Restart the desktop app after installing. The Client module is scanned at
39
+ startup, so a hot install does not take effect until the next launch.
40
+
41
+ ## First use
42
+
43
+ Nothing to configure. Open the app and the sequence plays once, then removes
44
+ itself.
45
+
46
+ | Action | Result |
47
+ |---|---|
48
+ | `Esc` | Fade out immediately |
49
+ | Click anywhere | Fade out immediately |
50
+ | Wait ~8.5s | Plays through and fades into the workspace |
51
+
52
+ ## How it behaves
53
+
54
+ - **One shot per page load.** It does not replay on session or route changes.
55
+ - **Self-removing.** The component returns `null` when finished; its timers,
56
+ listeners and stylesheet are released.
57
+ - **Pointer-transparent.** It never swallows clicks after the fade starts.
58
+ - **Sound is optional.** Browsers block audio without a gesture, so the cues
59
+ begin after your first click. Silence never blocks the animation.
60
+
61
+ ## Uninstall
62
+
63
+ ```bash
64
+ plugin_manager remove_bundle @shifu-hu/dsh-boot-sequence
65
+ ```
66
+
67
+ Or toggle it off in **Settings → Plugins**.
68
+
69
+ ## Troubleshooting
70
+
71
+ | Symptom | Cause | Fix |
72
+ |---|---|---|
73
+ | Nothing appears after install | Client modules are scanned at startup | Restart the desktop app |
74
+ | Blank screen instead of the log | Module failed to load | Check DevTools console for `slot entry crashed` |
75
+ | No sound | Browser autoplay policy | Click the page once during the animation |
76
+ | Mascot missing | Asset route blocked | Confirm `/plugins/@shifu-hu/dsh-boot-sequence/assets/mascot/whalegirl.webp` returns 200 |
77
+ | Animation replays every navigation | Should not happen | Report it; the unmount guard is in `client.js` |
78
+
79
+ ## Build from source
80
+
81
+ The shipped `client.js` is generated. Edit `src/client.template.js`, then:
82
+
83
+ ```bash
84
+ python3 tools/build-fonts-css.py # inline subset fonts
85
+ node tools/build-client.cjs # fold data + fonts + audio into client.js
86
+ node tools/contract-test.cjs # load-and-render contract
87
+ node tools/precheck.cjs # manifest, assets, attribution
88
+ ```
89
+
90
+ `tools/render-stills.cjs` renders the real component in headless Chromium for
91
+ visual checks.
92
+
93
+ ## Limitations
94
+
95
+ - Text is English-only in the boot log; it mirrors eDEX-UI's console output.
96
+ - The mascot is line art traced from a third-party character sheet; it is
97
+ **not** original artwork (see Credits).
98
+ - No configuration options yet.
99
+
100
+ ## Credits
101
+
102
+ Third-party assets and their licenses are recorded in [CREDITS.md](CREDITS.md).
103
+
104
+ - Whale-girl mascot — CC BY-NC-SA 4.0, upstream authors 上善无形(上善)· ZipZipPipe · YunYueSama · xiaoweigen
105
+ - Boot audio — GitSquared/edex-ui, GPL-3.0
106
+
107
+ **The mascot is non-commercial.** Remove it before any commercial distribution.
108
+
109
+ ## License
110
+
111
+ MIT for the plugin source — see [LICENSE](LICENSE). The bundled assets keep
112
+ their own licenses and are not relicensed by it.
@@ -0,0 +1,105 @@
1
+ # dsh-boot-sequence
2
+
3
+ [English](README.md) | 中文
4
+
5
+ 给 **the agent runtime** Web UI 的开机动画,致敬
6
+ [eDEX-UI](https://github.com/GitSquared/edex-ui):全屏启动画面,逐行打印 85 行
7
+ boot log,落到一个会抖动的标题牌,然后淡出进入工作区。
8
+
9
+ ![预览](https://raw.githubusercontent.com/Shifu-HU/dsh-boot-sequence/main/docs/preview.png)
10
+
11
+ [![npm](https://img.shields.io/npm/v/@shifu-hu/dsh-boot-sequence.svg)](https://www.npmjs.com/package/@shifu-hu/dsh-boot-sequence)
12
+ [![license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
13
+
14
+ ## 安装
15
+
16
+ 已发布到 npm:**[@shifu-hu/dsh-boot-sequence](https://www.npmjs.com/package/@shifu-hu/dsh-boot-sequence)**
17
+
18
+ ```bash
19
+ # 从 npm 安装(推荐)
20
+ plugin_manager install_bundle @shifu-hu/dsh-boot-sequence
21
+
22
+ # 指定版本
23
+ plugin_manager install_bundle @shifu-hu/dsh-boot-sequence@1.0.0
24
+ ```
25
+
26
+ ### 从 Git
27
+
28
+ ```bash
29
+ plugin_manager install_bundle git+https://github.com/Shifu-HU/dsh-boot-sequence.git
30
+ ```
31
+
32
+ ### 从本地目录
33
+
34
+ ```bash
35
+ plugin_manager install_bundle C:/path/to/dsh-boot-sequence
36
+ ```
37
+
38
+ 安装后需**重启桌面端**。Client 模块在启动时扫描,热安装不会立即生效。
39
+
40
+ ## 首次使用
41
+
42
+ 无需任何配置。打开应用即播放一次,播完自行卸载。
43
+
44
+ | 操作 | 结果 |
45
+ |---|---|
46
+ | 按 `Esc` | 立即淡出 |
47
+ | 点击任意位置 | 立即淡出 |
48
+ | 等待约 8.5 秒 | 完整播放并淡入工作区 |
49
+
50
+ ## 行为说明
51
+
52
+ - **每次页面加载播放一次**,不会随会话或路由切换重播。
53
+ - **自动卸载**:结束后组件返回 `null`,定时器、监听器、样式表一并释放。
54
+ - **不拦截点击**,淡出开始后不再遮挡操作。
55
+ - **声音可选**:浏览器策略会拦截无手势的音频,首次点击后才开始出声;静音不影响动画。
56
+
57
+ ## 卸载
58
+
59
+ ```bash
60
+ plugin_manager remove_bundle @shifu-hu/dsh-boot-sequence
61
+ ```
62
+
63
+ 或在 **设置 → 插件** 中关闭。
64
+
65
+ ## 常见问题
66
+
67
+ | 现象 | 原因 | 处理 |
68
+ |---|---|---|
69
+ | 装完没反应 | Client 模块启动时才扫描 | 重启桌面端 |
70
+ | 白屏,没有 boot log | 模块加载失败 | 看 DevTools Console 是否有 `slot entry crashed` |
71
+ | 没有声音 | 浏览器自动播放策略 | 播放期间点一下页面 |
72
+ | 鲸鱼娘不显示 | 资源路由被拦 | 确认 `/plugins/@shifu-hu/dsh-boot-sequence/assets/mascot/whalegirl.webp` 返回 200 |
73
+ | 每次切换页面都重播 | 不应发生 | 请反馈,卸载守卫在 `client.js` 中 |
74
+
75
+ ## 从源码构建
76
+
77
+ 发布的 `client.js` 是生成物。改 `src/client.template.js`,然后:
78
+
79
+ ```bash
80
+ python3 tools/build-fonts-css.py # 内联字体子集
81
+ node tools/build-client.cjs # 把数据、字体、音效折进 client.js
82
+ node tools/contract-test.cjs # 加载并渲染契约测试
83
+ node tools/precheck.cjs # 清单、资源、署名检查
84
+ ```
85
+
86
+ `tools/render-stills.cjs` 可在无头 Chromium 里渲染真实组件做视觉核对。
87
+
88
+ ## 已知限制
89
+
90
+ - boot log 为英文,与 eDEX-UI 的控制台输出保持一致。
91
+ - 鲸鱼娘是从第三方设定图提取的线稿,**并非原创美术**(见署名)。
92
+ - 暂无配置项。
93
+
94
+ ## 署名
95
+
96
+ 第三方素材与许可见 [CREDITS.md](CREDITS.md)。
97
+
98
+ - 鲸鱼娘形象 —— CC BY-NC-SA 4.0,上游作者:上善无形(上善)· ZipZipPipe · YunYueSama · xiaoweigen
99
+ - 启动音效 —— GitSquared/edex-ui,GPL-3.0
100
+
101
+ **鲸鱼娘素材为非商业使用**,任何商业发行前必须替换。
102
+
103
+ ## 许可
104
+
105
+ 插件源码采用 MIT —— 见 [LICENSE](LICENSE)。随附素材保留各自许可,不因本项目而重新授权。
Binary file
Binary file
Binary file
Binary file