dsh-opencode-palette 1.6.1 → 1.6.3

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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  **🌐 [中文](../README.md) · [English](README.en.md)**
4
4
 
5
- **The complete opencode palette for DeepSeek Harness — 34 official themes, one click.**
5
+ **The complete opencode palette for DeepSeek Harness — 34 official themes. Easier on the eyes, nicer to code in.**
6
6
 
7
7
  [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](../LICENSE)
8
8
  [![npm](https://img.shields.io/npm/v/dsh-opencode-palette)](https://www.npmjs.com/package/dsh-opencode-palette)
@@ -10,7 +10,6 @@
10
10
  [![tests](https://img.shields.io/badge/tests-20%2F20-green)]()
11
11
 
12
12
  ![hero](../assets/hero-en.svg)
13
-
14
13
  ## Install in one command
15
14
 
16
15
  Requires the **DSH CLI** (DeepSeek Harness command-line tool). If you don't have it yet:
@@ -84,6 +83,13 @@ Your theme and typography choices are stored locally and survive refresh and res
84
83
 
85
84
  The panel follows your DSH interface language automatically — switch the language in DSH and the panel follows instantly.
86
85
 
86
+ ## More from the author
87
+
88
+ If you like this plugin, you might also like:
89
+
90
+ - [**dsh-prompt**](https://github.com/FeatherHunter/dsh-prompt) — When you get stuck writing a prompt, it has 24 deep templates — one click, straight into your input box.
91
+ - [**dsh-mattpocock-skills-deck**](https://github.com/FeatherHunter/dsh-mattpocock-skills-deck) — Want your AI to do more than chat? 25 engineering skills, installed with a single prompt.
92
+
87
93
  ## Development
88
94
 
89
95
  ```bash
package/lib/client.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * dsh-opencode-palette v1.6.1 — 浏览器半(构建产物,勿手改)
2
+ * dsh-opencode-palette v1.6.3 — 浏览器半(构建产物,勿手改)
3
3
  * 数据驱动管线:opencode v1.18.12 官方主题 JSON → 颜色解析 → DSH 适配注入
4
4
  * 源:src/engine/* + runtime/client.mjs(npm run build 重新生成)
5
5
  */
@@ -132,6 +132,10 @@ __mods["resolve"] = { ansiToHex, rgbToHex, hexToRgb, shade, withAlpha, contrastT
132
132
  // DSH 升级改 CSS 变量名时,只需要改这一个文件。
133
133
  // 值 = opencode 色位名;generate.mjs 负责取值与派生(提亮/透明/对比色)。
134
134
 
135
+ const { shade, withAlpha, contrastText } = __mods["resolve"]
136
+
137
+ // 派生 token 的 helpers 来自 resolve.mjs(shade/withAlpha/contrastText)
138
+
135
139
  // ── 1. token 层:theme.overrideTokens 注册的 --dsw-alias-* 变量 ──
136
140
  // 格式: [DSH 变量, 来源色位](来源缺失/透明/解析失败 → 该 token 自动跳过,不污染)
137
141
  const TOKEN_MAP = [
@@ -167,7 +171,6 @@ const TOKEN_MAP = [
167
171
  ['--dsw-alias-button-primary-dimmed', 'backgroundPanel'],
168
172
  // 文字层级
169
173
  ['--dsw-alias-label-primary', 'text'],
170
- ['--dsw-alias-label-primary-inverted', 'text'],
171
174
  ['--dsw-alias-label-primary-dimmed', 'text'],
172
175
  ['--dsw-alias-brand-primary-invert', 'text'],
173
176
  ['--dsw-alias-label-secondary', 'textMuted'],
@@ -194,6 +197,7 @@ const TOKEN_MAP = [
194
197
  const DERIVED_TOKENS = [
195
198
  ['--dsw-alias-button-primary-hover', (c) => shade(c.primary, 0.12)],
196
199
  ['--dsw-alias-button-info-hover', (c) => shade(c.info, 0.12)],
200
+ ['--dsw-alias-label-primary-inverted', (c) => contrastText(c.text)],
197
201
  ['--dsw-alias-label-primary-foreground', (c) => contrastText(c.primary)],
198
202
  ['--dsw-alias-label-dimmed', (c) => withAlpha(c.textMuted, 0.8)],
199
203
  ['--dsw-alias-button-tool-bar-fill', (c) => withAlpha(c.text, 0.1)],
@@ -212,6 +216,11 @@ const DERIVED_TOKENS = [
212
216
  ['--dsw-alias-scrollbar-bg-l2', (c) => withAlpha(c.text, 0.08)],
213
217
  ['--dsw-alias-scrollbar-hover-l1', (c) => c.borderActive],
214
218
  ['--dsw-alias-scrollbar-hover-l2', (c) => c.borderActive],
219
+ // 侧边栏/设置面板导航项悬停与选中:DSH 默认随明暗模式取浅/深两套值,
220
+ // 调色板未覆盖时在浅色系统(无 data-ds-dark-theme)下会白字撞浅底
221
+ ['--dsw-specific-sidebar-nav-item-hover', (c) => withAlpha(c.text, 0.08)],
222
+ ['--dsw-specific-sidebar-nav-item-active', (c) => withAlpha(c.text, 0.14)],
223
+ ['--dsw-specific-sidebar-nav-item-active-accent', (c) => withAlpha(c.primary, 0.35)],
215
224
  ]
216
225
 
217
226
  // ── 3. shiki 语法高亮变量(DSH 只认 10 个,opencode 9 色位做角色合并)──
package/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * dsh-opencode-palette v1.6.1 — 宿主半(no-op)
2
+ * dsh-opencode-palette v1.6.3 — 宿主半(no-op)
3
3
  *
4
4
  * 主题的全部工作在浏览器端(./client.js)完成:
5
5
  * - 34 个 opencode 主题(33 内置 JSON + system)经数据驱动管线解析
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-opencode-palette",
3
- "version": "1.6.1",
3
+ "version": "1.6.3",
4
4
  "description": "让 DeepSeek Harness 穿上 34 款经典皮肤——东京的霓虹夜色、德古拉的暗红月光、复古工坊的暖黄灯火、黑客帝国的数字雨、玫瑰松林间的风……一键换肤,即点即换,重启不丢。34 legendary skins for DeepSeek Harness — tokyonight's neon dusk, dracula's crimson moon, gruvbox's retro glow, the matrix's digital rain, rose-pine's rosewood calm… one click, instant, persisted.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",