deepseek-harness-background 0.5.0 → 0.5.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/README.md +16 -0
- package/README.zh.md +16 -0
- package/lib/client.js +27 -27
- package/lib/index.js +1 -3
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<picture>
|
|
3
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs/banner-dark.svg">
|
|
4
|
+
<img src="docs/banner.svg" alt="DeepSeek Harness Background" width="720">
|
|
5
|
+
</picture>
|
|
6
|
+
</p>
|
|
7
|
+
|
|
1
8
|
# DeepSeek Harness Background
|
|
2
9
|
|
|
3
10
|
[](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin)
|
|
@@ -8,6 +15,7 @@
|
|
|
8
15
|
[](https://github.com/HaoyueQin/deepseek-harness-background/actions)
|
|
9
16
|
[](https://github.com/HaoyueQin/deepseek-harness-background/issues)
|
|
10
17
|
[](https://github.com/HaoyueQin/deepseek-harness-background/commits)
|
|
18
|
+
[](https://github.com/HaoyueQin/deepseek-harness-background/graphs/commit-activity)
|
|
11
19
|
[](https://github.com/HaoyueQin/deepseek-harness-background)
|
|
12
20
|
[](https://github.com/HaoyueQin/deepseek-harness-background)
|
|
13
21
|
[](LICENSE)
|
|
@@ -18,6 +26,10 @@ A custom **background image plugin** for the DeepSeek Harness Web GUI (`dsh web`
|
|
|
18
26
|
|
|
19
27
|
The look (fixed wallpaper layer + theme-aware scrim + translucent glass panels driven by `--dsw-*` design tokens) is modeled on the community `dsh-wallpaper-engine` implementation.
|
|
20
28
|
|
|
29
|
+
<p align="center">
|
|
30
|
+
<img src="docs/demo.svg" alt="demo: upload a wallpaper, the whole app turns to frosted glass, then jump between turns on the timeline">
|
|
31
|
+
</p>
|
|
32
|
+
|
|
21
33
|
## Screenshots
|
|
22
34
|
|
|
23
35
|
| | |
|
|
@@ -147,6 +159,10 @@ deepseek-harness-background/ # the plugin repo (package name stays the
|
|
|
147
159
|
└── tests/ # schema, routes, apply (painter), settings-row contracts
|
|
148
160
|
```
|
|
149
161
|
|
|
162
|
+
## Activity
|
|
163
|
+
|
|
164
|
+
[](https://gitstock.org/HaoyueQin/deepseek-harness-background)
|
|
165
|
+
|
|
150
166
|
## License
|
|
151
167
|
|
|
152
168
|
MIT
|
package/README.zh.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<picture>
|
|
3
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs/banner-zh-dark.svg">
|
|
4
|
+
<img src="docs/banner-zh.svg" alt="DeepSeek Harness Background" width="720">
|
|
5
|
+
</picture>
|
|
6
|
+
</p>
|
|
7
|
+
|
|
1
8
|
# DeepSeek Harness Background
|
|
2
9
|
|
|
3
10
|
[](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin)
|
|
@@ -8,6 +15,7 @@
|
|
|
8
15
|
[](https://github.com/HaoyueQin/deepseek-harness-background/actions)
|
|
9
16
|
[](https://github.com/HaoyueQin/deepseek-harness-background/issues)
|
|
10
17
|
[](https://github.com/HaoyueQin/deepseek-harness-background/commits)
|
|
18
|
+
[](https://github.com/HaoyueQin/deepseek-harness-background/graphs/commit-activity)
|
|
11
19
|
[](https://github.com/HaoyueQin/deepseek-harness-background)
|
|
12
20
|
[](https://github.com/HaoyueQin/deepseek-harness-background)
|
|
13
21
|
[](LICENSE)
|
|
@@ -18,6 +26,10 @@
|
|
|
18
26
|
|
|
19
27
|
外观(固定壁纸层 + 主题自适应遮罩 + 由 `--dsw-*` 设计 token 驱动的半透明玻璃面板)借鉴了社区 `dsh-wallpaper-engine` 的实现。
|
|
20
28
|
|
|
29
|
+
<p align="center">
|
|
30
|
+
<img src="docs/demo-zh.svg" alt="演示:上传壁纸后全站变毛玻璃,并在会话时间线的轮次之间平滑跳转">
|
|
31
|
+
</p>
|
|
32
|
+
|
|
21
33
|
## 截图
|
|
22
34
|
|
|
23
35
|
| | |
|
|
@@ -144,6 +156,10 @@ deepseek-harness-background/ # 插件仓库(包名保留 npm 风格 i
|
|
|
144
156
|
└── tests/ # 契约测试(schema、routes、apply/painter、设置行)
|
|
145
157
|
```
|
|
146
158
|
|
|
159
|
+
## Activity
|
|
160
|
+
|
|
161
|
+
[](https://gitstock.org/HaoyueQin/deepseek-harness-background)
|
|
162
|
+
|
|
147
163
|
## License
|
|
148
164
|
|
|
149
165
|
MIT
|
package/lib/client.js
CHANGED
|
@@ -1165,41 +1165,41 @@ window.__ModuleLoader__.load({
|
|
|
1165
1165
|
document.head.appendChild(tag);
|
|
1166
1166
|
}
|
|
1167
1167
|
var SettingsRow_module_css_default = {
|
|
1168
|
-
"
|
|
1168
|
+
"sliderValue": "-ozqdq_sliderValue",
|
|
1169
1169
|
"btnPrimary": "-ozqdq_btnPrimary",
|
|
1170
|
-
"
|
|
1171
|
-
"
|
|
1170
|
+
"desc": "-ozqdq_desc",
|
|
1171
|
+
"previewScrim": "-ozqdq_previewScrim",
|
|
1172
1172
|
"section": "-ozqdq_section",
|
|
1173
|
-
"enabledBadge": "-ozqdq_enabledBadge",
|
|
1174
|
-
"btn": "-ozqdq_btn",
|
|
1175
1173
|
"sliderLabel": "-ozqdq_sliderLabel",
|
|
1176
|
-
"
|
|
1177
|
-
"header": "-ozqdq_header",
|
|
1178
|
-
"previewImg": "-ozqdq_previewImg",
|
|
1179
|
-
"previewGlassText": "-ozqdq_previewGlassText",
|
|
1180
|
-
"slider": "-ozqdq_slider",
|
|
1181
|
-
"segBtn": "-ozqdq_segBtn",
|
|
1182
|
-
"row": "-ozqdq_row",
|
|
1183
|
-
"sliderRow": "-ozqdq_sliderRow",
|
|
1184
|
-
"sliderValue": "-ozqdq_sliderValue",
|
|
1185
|
-
"urlInput": "-ozqdq_urlInput",
|
|
1186
|
-
"desc": "-ozqdq_desc",
|
|
1187
|
-
"preview": "-ozqdq_preview",
|
|
1188
|
-
"segLabel": "-ozqdq_segLabel",
|
|
1189
|
-
"switch": "-ozqdq_switch",
|
|
1190
|
-
"error": "-ozqdq_error",
|
|
1191
|
-
"hint": "-ozqdq_hint",
|
|
1174
|
+
"title": "-ozqdq_title",
|
|
1192
1175
|
"previewGlass": "-ozqdq_previewGlass",
|
|
1193
|
-
"
|
|
1176
|
+
"urlInput": "-ozqdq_urlInput",
|
|
1194
1177
|
"segGroup": "-ozqdq_segGroup",
|
|
1195
|
-
"
|
|
1196
|
-
"
|
|
1197
|
-
"previewEmpty": "-ozqdq_previewEmpty",
|
|
1178
|
+
"segRow": "-ozqdq_segRow",
|
|
1179
|
+
"btn": "-ozqdq_btn",
|
|
1198
1180
|
"clearRow": "-ozqdq_clearRow",
|
|
1181
|
+
"previewImg": "-ozqdq_previewImg",
|
|
1182
|
+
"slider": "-ozqdq_slider",
|
|
1199
1183
|
"btnDanger": "-ozqdq_btnDanger",
|
|
1200
|
-
"
|
|
1184
|
+
"sourceRow": "-ozqdq_sourceRow",
|
|
1185
|
+
"previewEmpty": "-ozqdq_previewEmpty",
|
|
1186
|
+
"error": "-ozqdq_error",
|
|
1187
|
+
"switch": "-ozqdq_switch",
|
|
1188
|
+
"sliderRow": "-ozqdq_sliderRow",
|
|
1189
|
+
"segLabel": "-ozqdq_segLabel",
|
|
1190
|
+
"sectionLabel": "-ozqdq_sectionLabel",
|
|
1191
|
+
"header": "-ozqdq_header",
|
|
1201
1192
|
"clearBtn": "-ozqdq_clearBtn",
|
|
1202
|
-
"
|
|
1193
|
+
"preview": "-ozqdq_preview",
|
|
1194
|
+
"previewGlassText": "-ozqdq_previewGlassText",
|
|
1195
|
+
"enabledBadge": "-ozqdq_enabledBadge",
|
|
1196
|
+
"segBtn": "-ozqdq_segBtn",
|
|
1197
|
+
"segActive": "-ozqdq_segActive",
|
|
1198
|
+
"titleRow": "-ozqdq_titleRow",
|
|
1199
|
+
"switchKnob": "-ozqdq_switchKnob",
|
|
1200
|
+
"row": "-ozqdq_row",
|
|
1201
|
+
"urlRow": "-ozqdq_urlRow",
|
|
1202
|
+
"hint": "-ozqdq_hint"
|
|
1203
1203
|
};
|
|
1204
1204
|
//#endregion
|
|
1205
1205
|
//#region src/client/SettingsRow.tsx
|
package/lib/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { settingsNamespace } from "@deepseek-ai/dsh-settings";
|
|
2
1
|
import z from "@deepseek-ai/schemastery";
|
|
3
2
|
import { randomBytes } from "node:crypto";
|
|
4
3
|
import { existsSync, mkdirSync, statSync, unlinkSync, writeFileSync } from "node:fs";
|
|
@@ -683,7 +682,6 @@ function registerTimelineProjection(ctx) {
|
|
|
683
682
|
}
|
|
684
683
|
//#endregion
|
|
685
684
|
//#region src/index.ts
|
|
686
|
-
const BACKGROUND_NAMESPACE = settingsNamespace(BACKGROUND_SETTINGS_NAMESPACE);
|
|
687
685
|
/**
|
|
688
686
|
* Register the durable background section and its API routes when the Host
|
|
689
687
|
* settings/webServer services are composed. Effect timing is `live`: the
|
|
@@ -693,7 +691,7 @@ const BACKGROUND_NAMESPACE = settingsNamespace(BACKGROUND_SETTINGS_NAMESPACE);
|
|
|
693
691
|
function apply(ctx) {
|
|
694
692
|
registerTimelineProjection(ctx);
|
|
695
693
|
ctx.inject(["settings", "webServer"], (hostCtx) => {
|
|
696
|
-
if (!hostCtx.settings.describe().some((descriptor) => descriptor.ns === "ui-background")) hostCtx.settings.register(
|
|
694
|
+
if (!hostCtx.settings.describe().some((descriptor) => descriptor.ns === "ui-background")) hostCtx.settings.register(BACKGROUND_SETTINGS_NAMESPACE, BackgroundSettingsSchema, { applies: "live" });
|
|
697
695
|
try {
|
|
698
696
|
for (const route of makeBackgroundRoutes(hostCtx.settings)) hostCtx.effect(() => hostCtx.webServer.register(route), "deepseek-harness-background: settings route");
|
|
699
697
|
} catch (error) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "deepseek-harness-background",
|
|
3
3
|
"description": "Custom background image plugin for the DeepSeek Harness web GUI: upload a local picture or paste an image URL, and render it behind the whole app surface with adjustable opacity, scrim, panel transparency and frosted-glass blur.",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.1",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deepseek-harness",
|
|
7
7
|
"dsh",
|
|
@@ -53,20 +53,20 @@
|
|
|
53
53
|
],
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
56
|
-
"@deepseek-ai/dsh-client-locale": "^0.1.1-rc.2 || ^0.1.2-alpha.1",
|
|
57
|
-
"@deepseek-ai/dsh-client-ui-slots": "^0.1.1-rc.2 || ^0.1.2-alpha.1",
|
|
56
|
+
"@deepseek-ai/dsh-client-locale": "^0.1.1-rc.2 || ^0.1.2-alpha.1 || ^0.1.2-alpha.2",
|
|
57
|
+
"@deepseek-ai/dsh-client-ui-slots": "^0.1.1-rc.2 || ^0.1.2-alpha.1 || ^0.1.2-alpha.2",
|
|
58
58
|
"react": "^18.2.0"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@deepseek-ai/dsh-settings": "^0.1.1-rc.2 || ^0.1.2-alpha.1",
|
|
61
|
+
"@deepseek-ai/dsh-settings": "^0.1.1-rc.2 || ^0.1.2-alpha.1 || ^0.1.2-alpha.2",
|
|
62
62
|
"@deepseek-ai/schemastery": "^3.18.1"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
66
|
-
"@deepseek-ai/dsh-client-locale": "^0.1.1-rc.2 || ^0.1.2-alpha.1",
|
|
67
|
-
"@deepseek-ai/dsh-client-ui-slots": "^0.1.1-rc.2 || ^0.1.2-alpha.1",
|
|
68
|
-
"@deepseek-ai/dsh-host-webserver": "^0.1.1-rc.2 || ^0.1.2-alpha.1",
|
|
69
|
-
"@deepseek-ai/dsh-settings": "^0.1.1-rc.2 || ^0.1.2-alpha.1",
|
|
66
|
+
"@deepseek-ai/dsh-client-locale": "^0.1.1-rc.2 || ^0.1.2-alpha.1 || ^0.1.2-alpha.2",
|
|
67
|
+
"@deepseek-ai/dsh-client-ui-slots": "^0.1.1-rc.2 || ^0.1.2-alpha.1 || ^0.1.2-alpha.2",
|
|
68
|
+
"@deepseek-ai/dsh-host-webserver": "^0.1.1-rc.2 || ^0.1.2-alpha.1 || ^0.1.2-alpha.2",
|
|
69
|
+
"@deepseek-ai/dsh-settings": "^0.1.1-rc.2 || ^0.1.2-alpha.1 || ^0.1.2-alpha.2",
|
|
70
70
|
"@deepseek-ai/schemastery": "^3.18.1",
|
|
71
71
|
"@testing-library/dom": "^10.4.1",
|
|
72
72
|
"@testing-library/react": "^16.3.0",
|