dsh-background-by-model 0.3.0 → 0.3.2

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/lib/index.js CHANGED
@@ -50,11 +50,13 @@ const DEFAULT_CONFIG = {
50
50
  settings: 0,
51
51
  chat: 0,
52
52
  trajectory: 0,
53
+ rightbar: 0,
53
54
  input: 0
54
55
  },
55
56
  settingsOpacity: 1,
56
57
  chatTextOpacity: 0,
57
- trajectoryOpacity: 1
58
+ trajectoryOpacity: 1,
59
+ rightbarOpacity: null
58
60
  };
59
61
  const dataDir = () => dshHomePath(DATA_DIR);
60
62
  const configPath = () => dshHomePath(DATA_DIR, CONFIG_FILE);
@@ -127,6 +129,7 @@ function normalizeConfig(raw) {
127
129
  "settings",
128
130
  "chat",
129
131
  "trajectory",
132
+ "rightbar",
130
133
  "input"
131
134
  ]) blurs[k] = clamp(bl[k], 0, 60, DEFAULT_CONFIG.blurs[k]);
132
135
  return {
@@ -140,7 +143,8 @@ function normalizeConfig(raw) {
140
143
  blurs,
141
144
  settingsOpacity: clamp01(r.settingsOpacity, DEFAULT_CONFIG.settingsOpacity),
142
145
  chatTextOpacity: clamp01(r.chatTextOpacity, DEFAULT_CONFIG.chatTextOpacity),
143
- trajectoryOpacity: clamp01(r.trajectoryOpacity, DEFAULT_CONFIG.trajectoryOpacity)
146
+ trajectoryOpacity: clamp01(r.trajectoryOpacity, DEFAULT_CONFIG.trajectoryOpacity),
147
+ rightbarOpacity: typeof r.rightbarOpacity === "number" && isFinite(r.rightbarOpacity) ? clamp01(r.rightbarOpacity, 1) : null
144
148
  };
145
149
  }
146
150
  /**
@@ -185,7 +189,8 @@ async function migrateLegacy(raw) {
185
189
  blurs: r.blurs,
186
190
  settingsOpacity: r.settingsOpacity,
187
191
  chatTextOpacity: r.chatTextOpacity,
188
- trajectoryOpacity: r.trajectoryOpacity
192
+ trajectoryOpacity: r.trajectoryOpacity,
193
+ rightbarOpacity: r.rightbarOpacity
189
194
  };
190
195
  try {
191
196
  await writeFile(configPath(), JSON.stringify(next, null, 2), "utf8");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-background-by-model",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "Appearance plugin for DeepSeek Harness: an ordered list of model rules, each carrying its own wallpaper, theme color, layout mode, opacity and blur — the background follows the model you switch to.",
5
5
  "keywords": [
6
6
  "deepseek-harness",
@@ -46,7 +46,8 @@
46
46
  "lib/invariant.js",
47
47
  "lib/client.js",
48
48
  "lib/client.js.map",
49
- "cordis.patch.yml"
49
+ "cordis.patch.yml",
50
+ "example_img"
50
51
  ],
51
52
  "scripts": {
52
53
  "bundle": "tsdown",