dsh-any-background 0.1.9 → 0.2.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 +9 -2
- package/README.zh.md +9 -2
- package/lib/client.js +258 -43
- package/lib/client.js.map +1 -1
- package/lib/index.js +8 -4
- package/package.json +8 -6
package/lib/index.js
CHANGED
|
@@ -47,7 +47,8 @@ const DEFAULT_CONFIG = {
|
|
|
47
47
|
opacities: {
|
|
48
48
|
bg: .85,
|
|
49
49
|
sidebar: .93,
|
|
50
|
-
card: 1
|
|
50
|
+
card: 1,
|
|
51
|
+
input: 1
|
|
51
52
|
},
|
|
52
53
|
blurs: {
|
|
53
54
|
bg: 0,
|
|
@@ -55,7 +56,8 @@ const DEFAULT_CONFIG = {
|
|
|
55
56
|
card: 0,
|
|
56
57
|
settings: 0,
|
|
57
58
|
chat: 0,
|
|
58
|
-
trajectory: 0
|
|
59
|
+
trajectory: 0,
|
|
60
|
+
input: 0
|
|
59
61
|
},
|
|
60
62
|
settingsOpacity: 1,
|
|
61
63
|
wallpaperOpacity: 1,
|
|
@@ -169,14 +171,16 @@ function normalizeConfig(raw) {
|
|
|
169
171
|
"card",
|
|
170
172
|
"settings",
|
|
171
173
|
"chat",
|
|
172
|
-
"trajectory"
|
|
174
|
+
"trajectory",
|
|
175
|
+
"input"
|
|
173
176
|
]) blurs[k] = clamp(bl[k], 0, 60, DEFAULT_CONFIG.blurs[k]);
|
|
174
177
|
return {
|
|
175
178
|
color,
|
|
176
179
|
opacities: {
|
|
177
180
|
bg: clamp(ops.bg, 0, 1, legacy ?? DEFAULT_CONFIG.opacities.bg),
|
|
178
181
|
sidebar: clamp(ops.sidebar, 0, 1, legacy !== null ? Math.min(1, legacy + .08) : DEFAULT_CONFIG.opacities.sidebar),
|
|
179
|
-
card: clamp(ops.card, 0, 1, DEFAULT_CONFIG.opacities.card)
|
|
182
|
+
card: clamp(ops.card, 0, 1, DEFAULT_CONFIG.opacities.card),
|
|
183
|
+
input: clamp(ops.input, 0, 1, DEFAULT_CONFIG.opacities.input)
|
|
180
184
|
},
|
|
181
185
|
blurs,
|
|
182
186
|
settingsOpacity: clamp(r.settingsOpacity, 0, 1, DEFAULT_CONFIG.settingsOpacity),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-any-background",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Appearance plugin for DeepSeek Harness: custom theme color (PS-style color wheel), background wallpaper with opacity/blur controls, and separate main/settings interface opacity.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deepseek-harness",
|
|
@@ -50,16 +50,17 @@
|
|
|
50
50
|
"watch": "tsdown --watch",
|
|
51
51
|
"typecheck": "tsc -p tsconfig.json"
|
|
52
52
|
},
|
|
53
|
+
"dependencies": {
|
|
54
|
+
"@deepseek-ai/dsh-home-paths": "^0.1.0-rc.6"
|
|
55
|
+
},
|
|
53
56
|
"devDependencies": {
|
|
54
57
|
"@deepseek-ai/dsh-home-paths": "^0.1.0-rc.6",
|
|
55
58
|
"@types/node": "^26.2.0",
|
|
56
59
|
"@types/react": "^19.2.18",
|
|
57
60
|
"@types/react-dom": "^19.2.4",
|
|
58
61
|
"tsdown": "^0.22.2",
|
|
59
|
-
"typescript": "^7.0.2"
|
|
60
|
-
|
|
61
|
-
"dependencies": {
|
|
62
|
-
"@deepseek-ai/dsh-home-paths": "^0.1.0-rc.6"
|
|
62
|
+
"typescript": "^7.0.2",
|
|
63
|
+
"unrun": "^0.3.1"
|
|
63
64
|
},
|
|
64
65
|
"peerDependencies": {
|
|
65
66
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
@@ -102,5 +103,6 @@
|
|
|
102
103
|
],
|
|
103
104
|
"immediately": true
|
|
104
105
|
}
|
|
105
|
-
}
|
|
106
|
+
},
|
|
107
|
+
"packageManager": "pnpm@10.32.1+sha512.a706938f0e89ac1456b6563eab4edf1d1faf3368d1191fc5c59790e96dc918e4456ab2e67d613de1043d2e8c81f87303e6b40d4ffeca9df15ef1ad567348f2be"
|
|
106
108
|
}
|