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 +2 -8
- package/cordis.patch.yml +7 -0
- package/lib/client.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +7 -2
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
|
-
|
|
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
|
-
|
|
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
|
|
package/cordis.patch.yml
ADDED
package/lib/client.js
CHANGED
package/lib/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-opencode-palette",
|
|
3
|
-
"version": "1.
|
|
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,
|