dsh-ccx 0.8.9 → 0.9.0
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/LICENSE +21 -21
- package/NOTICE +23 -23
- package/README.md +151 -143
- package/assets/icon.svg +27 -27
- package/cordis.patch.yml +16 -16
- package/lib/client.js +1481 -2244
- package/lib/index.js +716 -449
- package/lib/vendor/code-codex/ascii-tiles.js +145 -0
- package/lib/vendor/code-codex/aurora-ionosphere.js +7 -6
- package/lib/vendor/code-codex/black-hole.js +10 -7
- package/lib/vendor/code-codex/blinking-squares.js +6 -13
- package/lib/vendor/code-codex/cloud-train.js +9 -8
- package/lib/vendor/code-codex/galleries.json +100 -100
- package/lib/vendor/code-codex/glow-horizon.js +1 -1
- package/lib/vendor/code-codex/heavenly-cloud.js +5 -4
- package/lib/vendor/code-codex/milky-way.js +3 -2
- package/lib/vendor/code-codex/mountain.js +5 -4
- package/lib/vendor/code-codex/particle-image.js +435 -14
- package/lib/vendor/code-codex/pixel-sculpt.js +85 -5
- package/lib/vendor/code-codex/scene-defaults.json +94 -1
- package/lib/vendor/code-codex/scene-schemas.json +1008 -0
- package/lib/vendor/code-codex/shallow-ocean-thumbnails.json +12 -0
- package/lib/vendor/code-codex/shallow-ocean.js +5094 -0
- package/lib/vendor/code-codex/spectral-drape.js +172 -0
- package/package.json +70 -59
- package/src/client/api.ts +90 -0
- package/src/client/background/layer.ts +187 -0
- package/src/client/background/pixel-sculpt.ts +167 -0
- package/src/client/background/scene-runner.ts +317 -0
- package/src/client/background/shallow-ocean.ts +344 -0
- package/src/client/background/vendor-loader.ts +297 -0
- package/src/client/background/wallpaper.ts +87 -0
- package/src/client/index.ts +247 -0
- package/src/client/surfaces/corner-patch.ts +100 -0
- package/src/client/surfaces/surface-css.ts +155 -0
- package/src/client/ui/draft.ts +105 -0
- package/src/client/ui/icons.ts +47 -0
- package/src/client/ui/panel.ts +1524 -0
- package/src/client/ui/shallow-ocean-panel.ts +376 -0
- package/src/client/ui/styles.ts +1471 -0
- package/src/host/fence.ts +78 -0
- package/src/host/index.ts +26 -0
- package/src/host/routes.ts +367 -0
- package/src/host/storage.ts +109 -0
- package/src/host/window-chrome.ts +53 -0
- package/src/shared/constants.ts +239 -0
- package/src/shared/sanitize.ts +110 -0
- package/src/shared/types.ts +145 -0
- package/tsconfig.json +16 -0
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 Witherwithwinter
|
|
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.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Witherwithwinter
|
|
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.
|
package/NOTICE
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
dsh-ccx
|
|
2
|
-
Copyright (c) 2026 Witherwithwinter
|
|
3
|
-
|
|
4
|
-
This project includes third-party materials, used under the MIT License:
|
|
5
|
-
|
|
6
|
-
1. Code-Codex background renderers
|
|
7
|
-
Source: https://github.com/Rice-dog/code-codex
|
|
8
|
-
Files: lib/vendor/code-codex/ (scene renderer bundles, default gallery
|
|
9
|
-
images, scene schemas/defaults)
|
|
10
|
-
Copyright (c) Rice-dog and Code-Codex contributors, MIT License.
|
|
11
|
-
The renderer bundles are included unmodified (minified build artifacts);
|
|
12
|
-
their embedded license headers and third-party notices are preserved in
|
|
13
|
-
the bundle files. The bundled default gallery images are the originals
|
|
14
|
-
distributed by that project.
|
|
15
|
-
|
|
16
|
-
2. DeepSeek Harness UI reproductions
|
|
17
|
-
The settings-panel UI (market popover, settings popover, sliders, toolbars,
|
|
18
|
-
tokens) reproduces the visual design of DeepSeek Harness (@deepseek-ai/dsh,
|
|
19
|
-
MIT License, Copyright (c) 2026 DeepSeek). This plugin is not affiliated
|
|
20
|
-
with or endorsed by DeepSeek.
|
|
21
|
-
|
|
22
|
-
Both upstream projects are licensed under the MIT License; their original
|
|
23
|
-
copyright and license statements are reproduced here as required.
|
|
1
|
+
dsh-ccx
|
|
2
|
+
Copyright (c) 2026 Witherwithwinter
|
|
3
|
+
|
|
4
|
+
This project includes third-party materials, used under the MIT License:
|
|
5
|
+
|
|
6
|
+
1. Code-Codex background renderers
|
|
7
|
+
Source: https://github.com/Rice-dog/code-codex
|
|
8
|
+
Files: lib/vendor/code-codex/ (scene renderer bundles, default gallery
|
|
9
|
+
images, scene schemas/defaults)
|
|
10
|
+
Copyright (c) Rice-dog and Code-Codex contributors, MIT License.
|
|
11
|
+
The renderer bundles are included unmodified (minified build artifacts);
|
|
12
|
+
their embedded license headers and third-party notices are preserved in
|
|
13
|
+
the bundle files. The bundled default gallery images are the originals
|
|
14
|
+
distributed by that project.
|
|
15
|
+
|
|
16
|
+
2. DeepSeek Harness UI reproductions
|
|
17
|
+
The settings-panel UI (market popover, settings popover, sliders, toolbars,
|
|
18
|
+
tokens) reproduces the visual design of DeepSeek Harness (@deepseek-ai/dsh,
|
|
19
|
+
MIT License, Copyright (c) 2026 DeepSeek). This plugin is not affiliated
|
|
20
|
+
with or endorsed by DeepSeek.
|
|
21
|
+
|
|
22
|
+
Both upstream projects are licensed under the MIT License; their original
|
|
23
|
+
copyright and license statements are reproduced here as required.
|
package/README.md
CHANGED
|
@@ -1,143 +1,151 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<img src="./assets/icon.svg" width="128" alt="dsh-ccx" />
|
|
3
|
-
</p>
|
|
4
|
-
|
|
5
|
-
<h1 align="center">dsh-ccx</h1>
|
|
6
|
-
|
|
7
|
-
<p align="center">
|
|
8
|
-
<a href="https://www.npmjs.com/package/dsh-ccx"><img src="https://img.shields.io/npm/v/dsh-ccx" alt="npm Version" /></a>
|
|
9
|
-
<a href="https://
|
|
10
|
-
<a href="https://github.com/
|
|
11
|
-
<a href="
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
<td width="50%"><img src="./assets/preview-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<td width="50%"><img src="./assets/preview-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
<td width="50%"><img src="./assets/preview-
|
|
28
|
-
|
|
29
|
-
</
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
|
37
|
-
|
|
|
38
|
-
| <img src="./assets/scene-
|
|
39
|
-
| <img src="./assets/scene-
|
|
40
|
-
| <img src="./assets/scene-
|
|
41
|
-
| <img src="./assets/scene-
|
|
42
|
-
| <img src="./assets/scene-
|
|
43
|
-
| <img src="./assets/scene-
|
|
44
|
-
| <img src="./assets/scene-
|
|
45
|
-
| <img src="./assets/scene-
|
|
46
|
-
| <img src="./assets/scene-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="./assets/icon.svg" width="128" alt="dsh-ccx" />
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<h1 align="center">dsh-ccx</h1>
|
|
6
|
+
|
|
7
|
+
<p align="center">
|
|
8
|
+
<a href="https://www.npmjs.com/package/dsh-ccx"><img src="https://img.shields.io/npm/v/dsh-ccx" alt="npm Version" /></a>
|
|
9
|
+
<a href="https://www.npmjs.com/package/dsh-ccx"><img src="https://img.shields.io/npm/dt/dsh-ccx" alt="npm Total Downloads" /></a>
|
|
10
|
+
<a href="https://github.com/deepseek-ai/deepseek-harness"><img src="https://img.shields.io/badge/DSH-0.2.2--rc.5%2B-blue" alt="DSH Version" /></a>
|
|
11
|
+
<a href="https://github.com/Witherwithwinter/dsh-ccx/stargazers"><img src="https://img.shields.io/github/stars/Witherwithwinter/dsh-ccx" alt="GitHub Stars" /></a>
|
|
12
|
+
<a href="./LICENSE"><img src="https://img.shields.io/github/license/Witherwithwinter/dsh-ccx" alt="License" /></a>
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
<p align="center">给 DeepSeek Harness 桌面版换上动态背景:同步 code-codex 上游 13 种动态场景渲染器、壁纸素材库、UI 表面分区透明(含 DSH 0.2.2 Windows 无边框标题栏与 Portal 隔离适配),外加原版复刻 Appearance 设置面板。</p>
|
|
16
|
+
|
|
17
|
+
<table>
|
|
18
|
+
<tr>
|
|
19
|
+
<td width="50%"><img src="./assets/preview-home.png" alt="层峦 · 新会话" /><br /><sub>层峦(Layered Mountain)· 新会话页</sub></td>
|
|
20
|
+
<td width="50%"><img src="./assets/preview-mountain.png" alt="层峦 · 对话页" /><br /><sub>层峦 · 对话页(表面分区透明 + 输入面板)</sub></td>
|
|
21
|
+
</tr>
|
|
22
|
+
<tr>
|
|
23
|
+
<td width="50%"><img src="./assets/preview-milkyway.png" alt="银河光场 · 对话页" /><br /><sub>银河光场(Milky Way)· 对话页</sub></td>
|
|
24
|
+
<td width="50%"><img src="./assets/preview-market.png" alt="Appearance 面板" /><br /><sub>Appearance 面板(dsh-ccx 弹层,卡片式外观列表)</sub></td>
|
|
25
|
+
</tr>
|
|
26
|
+
<tr>
|
|
27
|
+
<td width="50%"><img src="./assets/preview-settings.png" alt="场景设置" /><br /><sub>场景设置 popover(预设档 / 分组滑杆 / 调色板)</sub></td>
|
|
28
|
+
<td width="50%"><img src="./assets/preview-surface.png" alt="UI Surface Opacity" /><br /><sub>UI Surface Opacity —— 分区不透明度滑杆</sub></td>
|
|
29
|
+
</tr>
|
|
30
|
+
</table>
|
|
31
|
+
|
|
32
|
+
## 特性
|
|
33
|
+
|
|
34
|
+
**13 种动态场景**——渲染器 1:1 来自 [Rice-dog/code-codex](https://github.com/Rice-dog/code-codex) 的 Appearance 系列(MIT,见[第三方归属](#第三方归属)):
|
|
35
|
+
|
|
36
|
+
| 效果 | 场景 | 说明 |
|
|
37
|
+
| --- | --- | --- |
|
|
38
|
+
| <img src="./assets/scene-milky-way.png" width="160" /> | 银河光场 Milky Way | 旋转星系 + 五色调色板 + 开场动画 |
|
|
39
|
+
| <img src="./assets/scene-glow-horizon.png" width="160" /> | 辉光地平线 Glow Horizon | 地平线辉光,方向四选、滚轮惯性 |
|
|
40
|
+
| <img src="./assets/scene-mountain.png" width="160" /> | 层峦 Layered Mountain | 视差山脊 + 日照着色,渲染比例可调 |
|
|
41
|
+
| <img src="./assets/scene-heavenly-cloud.png" width="160" /> | 云穹 Heavenly Cloud | 云层穹顶,三档渲染质量 |
|
|
42
|
+
| <img src="./assets/scene-aurora-ionosphere.png" width="160" /> | 极光电离层 Aurora | 极光帘 + 电离层波动 |
|
|
43
|
+
| <img src="./assets/scene-black-hole.png" width="160" /> | 黑洞 Black Hole | 吸积盘/光线/渲染器分组,影院/透镜/余烬三预设 |
|
|
44
|
+
| <img src="./assets/scene-cloud-train.png" width="160" /> | 云列车 Cloud Train | 列车车窗视角的云海,三染色可调 |
|
|
45
|
+
| <img src="./assets/scene-particle-image.png" width="160" /> | 粒子成像 Particle Image | 把图片采样成 56 万粒子,支持本地图库、自动轮播、鼠标交互、开场汇聚 |
|
|
46
|
+
| <img src="./assets/scene-pixel-sculpt.png" width="160" /> | 像素雕塑 Pixel Sculpt | WebGL2 实例化浮雕方块,图片高度场 + 指针涟漪,自带完整参数面板 |
|
|
47
|
+
| <img src="./assets/scene-blinking-squares.png" width="160" /> | 闪烁方块 Blinking Squares | 方块矩阵闪烁波纹,方向四选、键盘随机波纹 |
|
|
48
|
+
| *Upstream v0.6+* | ASCII 字符砖块 ASCII Tiles | 玻璃质感字符网格、色散折射、分组一键重置与交互波纹 |
|
|
49
|
+
| *Upstream v0.6+* | 浅海来信 Shallow Ocean Letters | 浅海生态与文字互动:10 种海洋生物点击/拖拽投放、奇遇事件图鉴收集与 5 连击开发者预览 |
|
|
50
|
+
| *Upstream v0.6+* | 光谱点阵帷幕 Spectral Drape | 动态光谱点阵帷幕,支持交互波纹、点击水波与分组参数重置 |
|
|
51
|
+
|
|
52
|
+
- **壁纸 / 视频素材库**:导入图片或 MP4/WebM(支持 HTTP `Range` 分片流式播放与一键清空/分页浏览),铺满 / 完整显示 / 平铺三种适配。
|
|
53
|
+
- **实时生效与双击输入**:所有参数调整直推运行中渲染器(`setSettings` / `updateSettings`),无需重建舞台;任意滑杆右侧数值支持双击直接键入精确数字。
|
|
54
|
+
- **UI Surface Opacity(DSH 0.2.2+ 深度适配)**:通配清除严格限定在 `body > #root` 内,彻底保护挂载在 `body` 上的弹窗 / 设置面板 / 模型选择等 React Portal 不受误伤;自动穿透 Windows 无边框标题栏(`[data-windows-titlebar]` 与 `titleBarOverlay` 探测节点);支持随深色/浅色主题动态切换蒙版底色。
|
|
55
|
+
- **Appearance 面板**:左下角齿轮随侧边栏展开/折叠智能避让;15 张外观卡片(13 场景 + 壁纸 + 表面蒙版),局部更新不丢失滚动与分类页签状态。
|
|
56
|
+
- **设置双端同步**:全部状态落 `$DSH_HOME/appearances/settings.json`,稀疏增量保存,多窗口 / 重启一致。
|
|
57
|
+
|
|
58
|
+
## 安装
|
|
59
|
+
|
|
60
|
+
要求:DeepSeek Harness **桌面版**(版本见[兼容性](#兼容性))。仓库自带构建产物 `lib/`,所有安装方式都**不需要本地构建**。
|
|
61
|
+
|
|
62
|
+
### 方法 A:让 DSH 安装 npm 包
|
|
63
|
+
|
|
64
|
+
在 DSH 桌面版的会话里直接让它安装:
|
|
65
|
+
|
|
66
|
+
```text
|
|
67
|
+
安装 npm 包 dsh-ccx
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
DSH 的 plugin_manager 会解析包的 `dsh.bundle` 元数据并装配进 desktop profile。装完**重启 DSH 桌面版**生效。
|
|
71
|
+
|
|
72
|
+
### 方法 B:GitHub 源码
|
|
73
|
+
|
|
74
|
+
```text
|
|
75
|
+
安装 github:Witherwithwinter/dsh-ccx
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
同样重启生效。
|
|
79
|
+
|
|
80
|
+
### 方法 C:手工编辑 profile(等价于方法 A)
|
|
81
|
+
|
|
82
|
+
编辑 `~/.dsh/profiles/desktop/package.json`:
|
|
83
|
+
|
|
84
|
+
```jsonc
|
|
85
|
+
{
|
|
86
|
+
"dependencies": {
|
|
87
|
+
"dsh-ccx": "^0.9.0" // 本地开发用 "link:/abs/path/to/dsh-ccx"
|
|
88
|
+
},
|
|
89
|
+
"dsh": {
|
|
90
|
+
"profile": {
|
|
91
|
+
"bundles": [
|
|
92
|
+
// ...既有 bundles...
|
|
93
|
+
"dsh-ccx" // ← 追加在最后
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
然后在 profile 目录里 `pnpm install`,重启 DSH 桌面版。
|
|
101
|
+
|
|
102
|
+
> 桌面 profile 没有 web 端的 `patchReload: live` 热装配,**改配置、升级插件都需要重启 DSH**。升级插件代码本身(`lib/client.js`)后仅强刷页面不够——客户端按包版本号缓存,需要重启 DSH 或升版本号。
|
|
103
|
+
|
|
104
|
+
左下角齿轮 ⚙ 弹出 Appearance 面板。
|
|
105
|
+
|
|
106
|
+
## 兼容性
|
|
107
|
+
|
|
108
|
+
| 宿主 | 状态 |
|
|
109
|
+
| --- | --- |
|
|
110
|
+
| DSH 桌面版(Electron,`0.2.2-rc.5`) | ✅ 已针对 `#root` 作用域隔离、`.centerCol` 圆角、Windows 标题栏与 `connection` 栅栏完成适配与测试 |
|
|
111
|
+
| DSH 桌面版(Electron,`0.2.1-rc.2`) | ✅ 兼容保留 |
|
|
112
|
+
|
|
113
|
+
插件对宿主内部结构有依赖(`data-slot` 布局锚点及其父级容器、宿主 webserver 路由、`state.json` 存储契约),已做 `typeof` / `try/catch` 降级,但宿主大版本升级仍可能失效。与宿主主题 / 皮肤插件的关系:本插件通过 `@layer` 级联 + CSS 变量控制表面底色,不覆写 `--dsw-*` token,皮肤插件改 token 不会与它冲突。
|
|
114
|
+
|
|
115
|
+
与 [DSH-Codinput](https://github.com/Witherwithwinter/DSH-Codinput) 协作:安装 Codinput 后,「消息输入区」蒙版精确命中它的编辑器卡片(`[data-composer-card]`),普通 / 悬浮 / 侧栏三种形态都跟随;未安装 Codinput 时输入区由对话区蒙版兜底。
|
|
116
|
+
|
|
117
|
+
## 已知限制
|
|
118
|
+
|
|
119
|
+
- **原生菜单栏(应用 / 编辑)不参与透明化**:它是 Electron 非客户区,页面 CSS、bundle 进程、desktop-host 都不可达——背景从窗口内容区顶部开始,不含 OS 菜单条。需要 DSH 本体配合(不设应用菜单或 `win.setMenu(null)`)。
|
|
120
|
+
- **窗口完全遮挡 / 最小化到托盘时场景暂停渲染**:Chromium 原生遮挡检测让页面进入 hidden,渲染器停帧(上游 code-codex 同语义);窗口恢复可见即继续。刚唤出的一瞬可能看到合成残影,属显示层暂态。
|
|
121
|
+
- **Particle Image 首次启用需要图库**:默认图库自动播种到 IndexedDB;若「图库未就绪」,重启一次 DSH 让播种完成即可。
|
|
122
|
+
- **Pixel Sculpt 的设置在未启用时也可调**(实时写入并持久化,下次启用生效),「暂停动画」开关仅在场景启用中可用——与上游面板行为一致。
|
|
123
|
+
- 变形曲线(Particle Image 的 morph curve)以数值行呈现,未实现上游的曲线编辑器;开机恢复的上架过渡动画(startup transition)未移植。
|
|
124
|
+
- web 端 DSH 未适配、未测试。
|
|
125
|
+
|
|
126
|
+
## 开发
|
|
127
|
+
|
|
128
|
+
项目自 `0.9.0` 起重构为模块化 TypeScript 架构(`src/` 源码经 `esbuild` 打包输出至预先提交的 `lib/`):
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
npm install
|
|
132
|
+
npm run typecheck # TypeScript 严格类型检查
|
|
133
|
+
npm run build # 构建 lib/index.js (ESM) 与 lib/client.js (DSH ModuleLoader 格式)
|
|
134
|
+
npm test # 运行宿主路由冒烟测试与客户端单元测试
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
- `src/shared/`:13 场景元数据、默认配置、参数夹取与跨端规整(`types.ts` / `constants.ts` / `sanitize.ts`)。
|
|
138
|
+
- `src/host/`:宿主插件(Cordis 服务端):异步配置持久化(`storage.ts`)、`connection` 信任栅栏(`fence.ts`)、Electron 窗体探测(`window-chrome.ts`)、支持 `Range` 206 流式播放的 HTTP 路由(`routes.ts`)。
|
|
139
|
+
- `src/client/`:前端扩展:舞台管理与供应商懒加载(`background/*`)、`Shallow Ocean` 互动生物/奇遇控制(`background/shallow-ocean.ts`)、Portal 安全透明与 Windows 标题栏适配(`surfaces/*`)、Shadow DOM 设置面板(`ui/*`)。
|
|
140
|
+
- `lib/vendor/code-codex/`:上游场景渲染器与默认图库产物,`tools/gen-scene-schemas.cjs --codex-dir <path>` 可从上游源码同步提取 `scene-schemas.json` 与 `scene-defaults.json`。
|
|
141
|
+
|
|
142
|
+
## 第三方归属
|
|
143
|
+
|
|
144
|
+
- **场景渲染器**(`lib/vendor/code-codex/`,含默认图库图片与字段真值):来自 [Rice-dog/code-codex](https://github.com/Rice-dog/code-codex)(MIT License),按原样分发,构建产物内嵌的许可与第三方声明已保留。
|
|
145
|
+
- **视觉复刻**:设置面板与表面样式复刻 DeepSeek Harness(`@deepseek-ai/dsh`,MIT License,Copyright (c) 2026 DeepSeek)的真实 UI。本项目与 DeepSeek、code-codex 均无隶属或背书关系。
|
|
146
|
+
|
|
147
|
+
以上原始版权与许可声明见 [NOTICE](./NOTICE)。
|
|
148
|
+
|
|
149
|
+
## 许可
|
|
150
|
+
|
|
151
|
+
[MIT](./LICENSE)
|
package/assets/icon.svg
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
|
|
2
|
-
<defs>
|
|
3
|
-
<linearGradient id="sky" x1="0" y1="0" x2="0" y2="1">
|
|
4
|
-
<stop offset="0" stop-color="#0b1026"/>
|
|
5
|
-
<stop offset="1" stop-color="#101a33"/>
|
|
6
|
-
</linearGradient>
|
|
7
|
-
<linearGradient id="aurora" x1="0" y1="0" x2="0" y2="1">
|
|
8
|
-
<stop offset="0" stop-color="#37d2a4" stop-opacity="0"/>
|
|
9
|
-
<stop offset="0.5" stop-color="#37d2a4" stop-opacity="0.9"/>
|
|
10
|
-
<stop offset="1" stop-color="#7c5cff" stop-opacity="0.15"/>
|
|
11
|
-
</linearGradient>
|
|
12
|
-
<linearGradient id="aurora2" x1="0" y1="0" x2="0" y2="1">
|
|
13
|
-
<stop offset="0" stop-color="#38bdf8" stop-opacity="0"/>
|
|
14
|
-
<stop offset="0.55" stop-color="#38bdf8" stop-opacity="0.75"/>
|
|
15
|
-
<stop offset="1" stop-color="#38bdf8" stop-opacity="0"/>
|
|
16
|
-
</linearGradient>
|
|
17
|
-
</defs>
|
|
18
|
-
<rect x="2" y="2" width="60" height="60" rx="14" fill="url(#sky)"/>
|
|
19
|
-
<circle cx="14" cy="15" r="1.4" fill="#cfe3ff" opacity="0.9"/>
|
|
20
|
-
<circle cx="24" cy="9" r="1" fill="#cfe3ff" opacity="0.7"/>
|
|
21
|
-
<circle cx="44" cy="12" r="1.2" fill="#cfe3ff" opacity="0.8"/>
|
|
22
|
-
<circle cx="53" cy="20" r="0.9" fill="#cfe3ff" opacity="0.6"/>
|
|
23
|
-
<path d="M4 40 C 14 22, 22 26, 30 34 C 40 44, 50 38, 60 24 L 60 58 L 4 58 Z" fill="url(#aurora)"/>
|
|
24
|
-
<path d="M4 46 C 16 32, 30 38, 42 32 C 50 28, 56 30, 60 34 L 60 58 L 4 58 Z" fill="url(#aurora2)" opacity="0.8"/>
|
|
25
|
-
<rect x="17" y="44" width="30" height="9" rx="4.5" fill="#0d1322" opacity="0.85"/>
|
|
26
|
-
<rect x="20" y="47" width="17" height="3" rx="1.5" fill="#5b8af5" opacity="0.9"/>
|
|
27
|
-
</svg>
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
|
|
2
|
+
<defs>
|
|
3
|
+
<linearGradient id="sky" x1="0" y1="0" x2="0" y2="1">
|
|
4
|
+
<stop offset="0" stop-color="#0b1026"/>
|
|
5
|
+
<stop offset="1" stop-color="#101a33"/>
|
|
6
|
+
</linearGradient>
|
|
7
|
+
<linearGradient id="aurora" x1="0" y1="0" x2="0" y2="1">
|
|
8
|
+
<stop offset="0" stop-color="#37d2a4" stop-opacity="0"/>
|
|
9
|
+
<stop offset="0.5" stop-color="#37d2a4" stop-opacity="0.9"/>
|
|
10
|
+
<stop offset="1" stop-color="#7c5cff" stop-opacity="0.15"/>
|
|
11
|
+
</linearGradient>
|
|
12
|
+
<linearGradient id="aurora2" x1="0" y1="0" x2="0" y2="1">
|
|
13
|
+
<stop offset="0" stop-color="#38bdf8" stop-opacity="0"/>
|
|
14
|
+
<stop offset="0.55" stop-color="#38bdf8" stop-opacity="0.75"/>
|
|
15
|
+
<stop offset="1" stop-color="#38bdf8" stop-opacity="0"/>
|
|
16
|
+
</linearGradient>
|
|
17
|
+
</defs>
|
|
18
|
+
<rect x="2" y="2" width="60" height="60" rx="14" fill="url(#sky)"/>
|
|
19
|
+
<circle cx="14" cy="15" r="1.4" fill="#cfe3ff" opacity="0.9"/>
|
|
20
|
+
<circle cx="24" cy="9" r="1" fill="#cfe3ff" opacity="0.7"/>
|
|
21
|
+
<circle cx="44" cy="12" r="1.2" fill="#cfe3ff" opacity="0.8"/>
|
|
22
|
+
<circle cx="53" cy="20" r="0.9" fill="#cfe3ff" opacity="0.6"/>
|
|
23
|
+
<path d="M4 40 C 14 22, 22 26, 30 34 C 40 44, 50 38, 60 24 L 60 58 L 4 58 Z" fill="url(#aurora)"/>
|
|
24
|
+
<path d="M4 46 C 16 32, 30 38, 42 32 C 50 28, 56 30, 60 34 L 60 58 L 4 58 Z" fill="url(#aurora2)" opacity="0.8"/>
|
|
25
|
+
<rect x="17" y="44" width="30" height="9" rx="4.5" fill="#0d1322" opacity="0.85"/>
|
|
26
|
+
<rect x="20" y="47" width="17" height="3" rx="1.5" fill="#5b8af5" opacity="0.9"/>
|
|
27
|
+
</svg>
|
package/cordis.patch.yml
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
# ============================================================================
|
|
2
|
-
# dsh-ccx —— DSH bundle patch
|
|
3
|
-
# ============================================================================
|
|
4
|
-
# 插件的"挂载声明"。DSH 装配 bundle 层栈时把本行插入 profile 配置树:
|
|
5
|
-
# - 宿主半侧(lib/index.js):注册 /dsh-appearances/* 路由(设置读写、壁纸上传/服务)。
|
|
6
|
-
# - 浏览器半侧(lib/client.js):由 package.json 的 dsh.client + exports["./client"]
|
|
7
|
-
# 声明,DSH 客户端模块系统自动通过 /plugins/<id>/client.js 加载,无需 index 注入。
|
|
8
|
-
#
|
|
9
|
-
# 安装(官方桌面端):profile 的 dsh.profile.bundles 加入 "dsh-ccx",
|
|
10
|
-
# 依赖写 "link:<本目录绝对路径>"(或交给桌面端会话里的 plugin_manager 安装)。
|
|
11
|
-
# ============================================================================
|
|
12
|
-
|
|
13
|
-
- insert:
|
|
14
|
-
- id: dsh-ccx
|
|
15
|
-
name: dsh-ccx
|
|
16
|
-
config: {}
|
|
1
|
+
# ============================================================================
|
|
2
|
+
# dsh-ccx —— DSH bundle patch
|
|
3
|
+
# ============================================================================
|
|
4
|
+
# 插件的"挂载声明"。DSH 装配 bundle 层栈时把本行插入 profile 配置树:
|
|
5
|
+
# - 宿主半侧(lib/index.js):注册 /dsh-appearances/* 路由(设置读写、壁纸上传/服务)。
|
|
6
|
+
# - 浏览器半侧(lib/client.js):由 package.json 的 dsh.client + exports["./client"]
|
|
7
|
+
# 声明,DSH 客户端模块系统自动通过 /plugins/<id>/client.js 加载,无需 index 注入。
|
|
8
|
+
#
|
|
9
|
+
# 安装(官方桌面端):profile 的 dsh.profile.bundles 加入 "dsh-ccx",
|
|
10
|
+
# 依赖写 "link:<本目录绝对路径>"(或交给桌面端会话里的 plugin_manager 安装)。
|
|
11
|
+
# ============================================================================
|
|
12
|
+
|
|
13
|
+
- insert:
|
|
14
|
+
- id: dsh-ccx
|
|
15
|
+
name: dsh-ccx
|
|
16
|
+
config: {}
|