dsh-opencode-palette 1.4.0 → 1.5.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/README.md CHANGED
@@ -24,15 +24,9 @@ Then install the plugin into your profile:
24
24
  dsh plugin --profile web add dsh-opencode-palette
25
25
  ```
26
26
 
27
- Register the entry (hot-reloaded, no restart): append to `~/.dsh/profiles/web/cordis.patch.yml`:
27
+ That's it — **zero configuration**: this plugin uses DSH's official bundle mechanism — it ships its own `cordis.patch.yml` (declared via `dsh.bundle.patch`), so `dsh plugin add` automatically joins the package into the profile's `dsh.profile.bundles` layer stack, where the DSH loader assembles it at startup; `dsh plugin remove` removes it automatically. No manual file editing, and no pnpm build scripts (no postinstall, so pnpm v10 never blocks it). Restart DSH (or refresh the browser page) and the plugin is on, using the official `opencode` theme (deep black with orange / blue / violet).
28
28
 
29
- ```yaml
30
- - insert:
31
- - id: opencode-palette
32
- name: 'dsh-opencode-palette'
33
- ```
34
-
35
- Refresh the browser page — the plugin is on, using the official `opencode` theme (deep black with orange / blue / violet).
29
+ > **Upgrading from 1.4.x or earlier**: old versions wrote a registration block into `~/.dsh/profiles/web/cordis.patch.yml` via postinstall. Before upgrading, delete the `opencode-palette` block from that file (a leftover would duplicate the bundle registration), then re-run `dsh plugin --profile web add dsh-opencode-palette`.
36
30
 
37
31
  ## What it does
38
32
 
@@ -0,0 +1,7 @@
1
+ # dsh-opencode-palette bundle 层:插入主题引擎插件条目。
2
+ # 由 dsh plugin --profile <name> add 自动装配(包声明 dsh.bundle.patch),
3
+ # 无需手动编辑任何文件;dsh plugin remove 时自动移除。
4
+ - insert:
5
+ - id: opencode-palette
6
+ name: 'dsh-opencode-palette'
7
+ config: {}
package/lib/client.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * dsh-opencode-palette v1.4.0 — 浏览器半(构建产物,勿手改)
2
+ * dsh-opencode-palette v1.5.0 — 浏览器半(构建产物,勿手改)
3
3
  * 数据驱动管线:opencode v1.18.12 官方主题 JSON → 颜色解析 → DSH 适配注入
4
4
  * 源:src/engine/* + runtime/client.mjs(npm run build 重新生成)
5
5
  */
package/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * dsh-opencode-palette v1.4.0 — 宿主半(no-op)
2
+ * dsh-opencode-palette v1.5.0 — 宿主半(no-op)
3
3
  *
4
4
  * 主题的全部工作在浏览器端(./client.js)完成:
5
5
  * - 34 个 opencode 主题(33 内置 JSON + system)经数据驱动管线解析
package/package.json CHANGED
@@ -1,16 +1,18 @@
1
1
  {
2
2
  "name": "dsh-opencode-palette",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "DSH Web 多主题引擎:完整支持 opencode TUI 全部 34 个主题(33 内置 + system)。数据驱动管线:主题 JSON → 颜色解析 → DSH 适配注入;设置面板即时切换、持久化。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
7
7
  "exports": {
8
8
  ".": "./lib/index.js",
9
9
  "./client": "./lib/client.js",
10
+ "./cordis.patch.yml": "./cordis.patch.yml",
10
11
  "./package.json": "./package.json"
11
12
  },
12
13
  "files": [
13
- "lib"
14
+ "lib",
15
+ "cordis.patch.yml"
14
16
  ],
15
17
  "keywords": [
16
18
  "dsh",
@@ -23,6 +25,9 @@
23
25
  "multi-theme"
24
26
  ],
25
27
  "dsh": {
28
+ "bundle": {
29
+ "patch": "./cordis.patch.yml"
30
+ },
26
31
  "client": {
27
32
  "platform": "web",
28
33
  "immediately": true,