dsh-cabinet-mode 0.1.5 → 0.2.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/CHANGELOG.md CHANGED
@@ -2,6 +2,75 @@
2
2
 
3
3
  All notable changes to this project are documented in this file.
4
4
 
5
+ ## [0.2.0] - 2026-11-05
6
+
7
+ ### Added
8
+
9
+ - **Host half `index.js` + browser half `client.js`.** The package is no longer
10
+ YAML-only. `client.js` registers the right-Sidebar **「内阁」 / Cabinet** tab:
11
+ the Lead → minister dispatch tree (each task hangs under its `ownerName`, with
12
+ `blockedBy` dependencies shown as chips), running members highlighted with a
13
+ pulsing status dot, task colours (pending gray / in progress blue / completed
14
+ green), and a per-member row with avatar, name, status label and current model.
15
+ - **Five member avatars** embedded as 128px data URLs (square sources in
16
+ `docs/images/avatars/`, downscaled by `src/build_avatars.py`; originals are
17
+ 1MB+ and are never embedded directly): 首辅 bright yellow, 翰林院编修 cyan,
18
+ 工部主事 red, 大理寺评事 dark, 都察院御史 crimson.
19
+ - **README (zh/en) sections** 「内阁面板与成员形象」/ "Cabinet panel and member
20
+ avatars" and 「生效说明」/ "How it takes effect". The former "no runtime
21
+ JavaScript" / "one preset row" wording now describes `index.js` + `client.js`
22
+ and the two inserted rows.
23
+
24
+ ### Changed
25
+
26
+ - **`package.json`**: `0.1.6` → `0.2.0`, plus `exports` (`.`, `./client`) and
27
+ `dsh.client` (`platform: web`, `immediately`, `inject`). Both are hard
28
+ requirements of the DSH client-plugin loader: it throws when a `dsh.client`
29
+ declaration has no `exports."./client"` (`dsh-client-modules`).
30
+ - **`cordis.patch.yml`**: appends the Loader row `cabinet-ui` →
31
+ `dsh-cabinet-mode` so the host scans the package as a client plugin. The
32
+ `preset-cabinet` declaration, and the 22-row plugin list are retained; persona rules change as described below.
33
+ - **persona**: the Lead's rules are enforced — mandatory decomposition and
34
+ delegation (`spawn_teammate` plus a `team_task_*` board) before any hands-on
35
+ work, the single-user-facing interface (only the Lead talks to the user;
36
+ members answer through the Lead), and a member task-status line.
37
+ - **`scripts/verify.mjs`**: the package-fields check now allows `exports` and
38
+ `dsh.client` while still rejecting `main` / `types` entries.
39
+
40
+ ### Fixed
41
+
42
+ - The fallback installer writes only the persona preset, without referring to an
43
+ uninstalled UI package. Regression tests cover dry runs, backups, install and
44
+ uninstall, duplicate prevention and existing bundle guards.
45
+ - Composition verification installs the current checkout into a temporary
46
+ DSH_HOME, avoiding stale installed versions and changes to the user profile.
47
+ - Chinese bureau and role names resolve to the matching member avatars.
48
+ - Team read failures warn that retained members/tasks may be stale.
49
+
50
+ ### Notes
51
+
52
+ - The full panel requires a bundle install and a DSH restart; the fallback path
53
+ installs only the persona preset.
54
+ - README links target v0.2.0 and become available when that release is published.
55
+
56
+ ## [0.1.6] - 2026-11-03
57
+
58
+ ### Fixed
59
+
60
+ - **The rollback guard reads a fresh baseline.** It now requests the published
61
+ index with a one-shot `?t=` cache-buster; without it, a five-minute-stale
62
+ `raw.githubusercontent.com` copy could let a lagging registry shrink the index.
63
+ (Dalisi verification §13, D-12.)
64
+ - **A missing published index is no longer confused with an unreadable one.** Only a
65
+ `404`/`ENOENT` is treated as "first release, nothing to protect"; any other read
66
+ or parse failure aborts the refresh instead of silently skipping the guard, unless
67
+ `MARKET_ALLOW_SHRINK=1` is set. (Dalisi verification §13, D-13.)
68
+ - `--check` reads the published index through the same cache-buster, so a stale CDN
69
+ copy can no longer fake a match or a mismatch.
70
+
71
+ These fixes ship in `0.1.6`; `0.1.5`'s tarball still contains the earlier script.
72
+ They only affect the maintainer-side index refresh, not installing the bundle.
73
+
5
74
  ## [0.1.5] - 2026-11-03
6
75
 
7
76
  ### Fixed
package/README.md CHANGED
@@ -7,18 +7,29 @@
7
7
  </p>
8
8
  <p align="center"><sub>Icon: Ming-dynasty grand-secretary portrait provided by the project owner (shipped as <code>icon.svg</code>).</sub></p>
9
9
 
10
- A small **declarative DSH bundle** that adds **Cabinet Mode** (`内阁模式`) to
10
+ A small **DSH bundle** that adds **Cabinet Mode** (`内阁模式`) to
11
11
  [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness). Install the
12
12
  bundle, restart DSH, and pick **内阁模式** when starting a new session. The mode is
13
13
  a research-team preset modeled on the Great Ming Research Bureau cabinet
14
14
  (大明科研司·内阁): a Lead (内阁首辅) directs members (阁臣) of four bureaus, defaults
15
15
  to research before touching code, and must never fabricate sources.
16
16
 
17
- The package contains **no plugin-runtime JavaScript** (no `main`/`lib`) and has no
18
- dependencies; it only ships optional Node.js fallback scripts (`scripts/*.mjs`).
19
- It declares one `@deepseek-ai/dsh-agent-preset` row and reuses the plugin list
20
- shipped with DSH **Standard Mode**, so the mode has the same tools as Standard
21
- Mode; only the persona differs.
17
+ The package ships a host half (`index.js`, an empty `apply`) and a browser half
18
+ (`client.js`, the right-Sidebar **Cabinet** panel) with the five member avatars
19
+ embedded as 128px data URLs (square sources in `docs/images/avatars/`,
20
+ downscaled by `src/build_avatars.py`); it also keeps the optional Node.js
21
+ fallback scripts (`scripts/*.mjs`). It has **no third-party runtime
22
+ dependencies** — React and friends come from the DSH client module table, with no
23
+ bundled duplicate and no CDN.
24
+
25
+ It declares **two rows** — `preset-cabinet` (one `@deepseek-ai/dsh-agent-preset`
26
+ declaration) and `cabinet-ui` (the Loader row that loads this package's
27
+ JavaScript) — and reuses the plugin list shipped with DSH **Standard Mode**, so
28
+ the mode has the same tools as Standard Mode; what differs is the persona, plus
29
+ the right-Sidebar **Cabinet** panel. Team tools (`spawn_teammate`, `team_task_*`,
30
+ and the rest) come from the profile-level
31
+ `@deepseek-ai/dsh-experimental-agent-team-profile` bundle; **this preset does not
32
+ ship them**.
22
33
 
23
34
  This bundle declares **no hard DSH version gate**: no `engines.dsh`, no DSH
24
35
  `peerDependencies`, no install-time version check. It was tested on DSH
@@ -35,6 +46,53 @@ Real runtime captures (mode picker, Agent-preset card, a cabinet session) are
35
46
  welcome — open a PR or send them to us and we will include them here. The image
36
47
  above is a layout diagram of the persona, not a screenshot.
37
48
 
49
+ ## Cabinet panel and member avatars
50
+
51
+ A new right-Sidebar **「Cabinet」** tab, registered by this package's browser half
52
+ (`client.js`) through its second Loader row `cabinet-ui`, independent of the
53
+ preset declaration:
54
+
55
+ - **Dispatch tree** — the Lead sits on top; every task hangs under the member
56
+ named by its `ownerName`, with `blockedBy` dependencies shown as chips beneath
57
+ the task: who was assigned what, and what blocks it, at a glance.
58
+ - **Who is working** — a running member's row is tinted green and its status dot
59
+ pulses; idle / starting / failed use gray / amber / red dots, and the Lead's
60
+ row highlights the same way.
61
+ - **Task colours** — pending gray, in progress blue, completed green (legend at
62
+ the bottom of the panel).
63
+ - **Member look** — each row carries a circular avatar (22px, 24px for the Lead),
64
+ the name, a status label and the current model; avatars map by name prefix and
65
+ fall back to the Lead tint when unmatched.
66
+
67
+ The five member avatars are tinted per bureau: Lead bright yellow, 翰林院编修
68
+ (编辑) cyan, 工部主事 (执行) red, 大理寺评事 (核验) dark, 都察院御史 (验收)
69
+ crimson — light-toned, Chinese-style 3D semi-realistic three-quarter profile
70
+ busts (soft-focus guofeng backdrop inside the circle). They are
71
+ embedded in `client.js` as 128px data URLs; the square source PNGs live in
72
+ `docs/images/avatars/` and are downscaled by `src/build_avatars.py` (originals
73
+ are kept at 512x512 and are never embedded directly).
74
+
75
+ Example (the other four are in the same directory: `hanlin.png` / `works.png` /
76
+ `dali.png` / `yushi.png`):
77
+
78
+ ![Lead avatar example](docs/images/avatars/lead.png)
79
+
80
+ The panel reads two existing data channels only — per-session running status
81
+ (`api-session/status`) and the `agentTeam` session projection (roster and task
82
+ board). It adds no service and no protocol.
83
+
84
+ ## How it takes effect
85
+
86
+ - **Fully quit and restart DSH after installing or updating**: the preset
87
+ declaration and the client plugin are only assembled at startup, so nothing
88
+ takes effect before the restart.
89
+ - After the restart, start a **new session** and pick **内阁模式** (`cabinet`) in
90
+ the mode picker.
91
+ - Opening the right-Sidebar **Cabinet** tab: the **+** on the tab strip, then the
92
+ **Cabinet** entry on the guide page.
93
+ - The panel renders in the **browser** (`client.js`): exercise it in a real
94
+ session after a restart; this repository ships no browser screenshot yet.
95
+
38
96
  ---
39
97
 
40
98
  ## Install with an AI agent (copy this prompt)
@@ -61,7 +119,7 @@ If any step fails, show the exact error and stop. Do not retry more than once.
61
119
  ## Manual install (3 lines)
62
120
 
63
121
  ```sh
64
- dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.1.5/dsh-cabinet-mode-0.1.5.tgz
122
+ dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.2.0/dsh-cabinet-mode-0.2.0.tgz
65
123
  # fully quit and restart DeepSeek Harness
66
124
  # New session -> mode picker -> 内阁模式
67
125
  ```
@@ -85,7 +143,7 @@ commands work on Linux and macOS.
85
143
  > `dsh-cabinet-mode` in `dsh.profile.bundles`):
86
144
  >
87
145
  > ```sh
88
- > node "<DeepSeek Harness install>\resources\runtime\primary-runtime\dependencies\pnpm\bin\pnpm.mjs" --dir "%USERPROFILE%\.dsh\profiles\desktop" add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.1.5/dsh-cabinet-mode-0.1.5.tgz
146
+ > node "<DeepSeek Harness install>\resources\runtime\primary-runtime\dependencies\pnpm\bin\pnpm.mjs" --dir "%USERPROFILE%\.dsh\profiles\desktop" add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.2.0/dsh-cabinet-mode-0.2.0.tgz
89
147
  > ```
90
148
  >
91
149
  > Back up the profile's `package.json` / `pnpm-lock.yaml` first.
@@ -125,18 +183,17 @@ The index is regenerated from the npm registry after every tagged release and on
125
183
  lists published, non-deprecated stable versions; do not edit the `market-index`
126
184
  branch by hand.
127
185
 
128
- > **Release status (2026-11-03):** `dsh-cabinet-mode@0.1.4` is published on
129
- > `registry.npmjs.org` — the first release, published by the tag-triggered OIDC
130
- > workflow with a provenance attestation on sigstore — and the `market-index`
131
- > branch has been generated from it. The registry also carries a placeholder
132
- > `0.0.0-stage` prerelease, which the index intentionally does not list. The first
133
- > OIDC publish, the GitHub Release, the `market-index` branch, parsing the generated
134
- > index, and installing from the npm spec have all been exercised while handling
135
- > this release.
186
+ > **Release status (2026-11-03):** `dsh-cabinet-mode@0.1.4`, `0.1.5` and `0.1.6` are
187
+ > published on `registry.npmjs.org` by the tag-triggered OIDC workflow, each with a
188
+ > provenance attestation on sigstore, and the `market-index` branch is refreshed
189
+ > automatically after every publish. The whole tag → publish → GitHub Release → index
190
+ > refresh chain has run green twice (v0.1.5: run 41657224370, v0.1.6: run
191
+ > 41661809576), and the index now lists 0.1.6, 0.1.5 and 0.1.4. The registry also
192
+ > carries a placeholder `0.0.0-stage` prerelease, which the index intentionally does
193
+ > not list.
136
194
  >
137
195
  > **Not verified:** the exact plugin-market UI labels and click path in your DSH
138
- > build, a real install/update in that GUI, and the full tag → publish → automatic
139
- > index refresh chain; 0.1.5 is the first run of that chain. The
196
+ > build, and a real install/update in that GUI. The
140
197
  > `dsh-cabinet-mode@<version>` install spec is what the format-1 reader
141
198
  > (`@deepseek-ai/dsh-plugin-market-index@0.2.1-rc.5`, `marketInstallTarget`) returns
142
199
  > for an npm source; that function was executed locally, the UI was not.
@@ -150,7 +207,7 @@ the same install command with the new version URL (or pick the new `.tgz` in the
150
207
  plugin page), then fully quit and restart DeepSeek Harness:
151
208
 
152
209
  ```sh
153
- dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.1.5/dsh-cabinet-mode-0.1.5.tgz
210
+ dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.2.0/dsh-cabinet-mode-0.2.0.tgz
154
211
  ```
155
212
 
156
213
  `dsh plugin --profile desktop list` should report the new version. Upgrades were
@@ -221,6 +278,9 @@ on Windows with DSH 0.2.1-rc.3 (2026-10-29); the URL install completed in about
221
278
 
222
279
  ### B. Fallback: write the profile patch layer (no plugin manager)
223
280
 
281
+ This installs the persona preset only. The Cabinet panel and member avatars require
282
+ Method A, which installs the runtime package into the profile.
283
+
224
284
  Requires Node.js >= 20. The scripts are cross-platform and dry-run by default.
225
285
 
226
286
  ```sh
@@ -318,9 +378,9 @@ long-lived npm token — creates the GitHub Release, and then refreshes the
318
378
  `market-index` branch that the plugin market reads.
319
379
 
320
380
  ```sh
321
- # package.json version and the matching CHANGELOG section must both be 0.1.5
322
- git tag v0.1.5
323
- git push origin v0.1.5
381
+ # package.json version and the matching CHANGELOG section must both be 0.2.0
382
+ git tag v0.2.0
383
+ git push origin v0.2.0
324
384
  ```
325
385
 
326
386
  One-time setup on npmjs.com (a maintainer action; it cannot be done from this
@@ -383,11 +443,11 @@ These were **not** tested on this machine and must not be presented as verified:
383
443
  - Whether `config.id` syntax rules reject unusual ids (this id is `cabinet`).
384
444
  - HMR behavior for preset declarations, and private-registry/proxied tarball
385
445
  installs.
386
- - **The plugin market in real use.** The npm publish, the GitHub Release, the
387
- `market-index` branch, parsing the index and installing from the npm spec were
388
- exercised for 0.1.4 (2026-11-03), but no real install or update has been performed
389
- in the DSH plugin-market GUI, and 0.1.5 is the first run of the whole
390
- tag → publish → automatic index refresh chain.
446
+ - **The plugin market in real use.** Parsing the published index, resolving the npm
447
+ install spec and installing `dsh-cabinet-mode@0.1.5` into a throwaway profile were
448
+ exercised locally, and the full tag → publish → automatic index refresh chain runs
449
+ in CI (v0.1.5, run 41657224370), but no install or update has been performed in
450
+ the DSH plugin-market GUI itself.
391
451
 
392
452
  ## Known limitations
393
453
 
package/README.zh.md CHANGED
@@ -7,11 +7,13 @@
7
7
  </p>
8
8
  <p align="center"><sub>图标:明代官员画像,由项目所有者提供(已作 <code>icon.svg</code> 随包发布)。</sub></p>
9
9
 
10
- 一个纯声明式 **DSH bundle**:给 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) 增加 **内阁模式**(`config.id: cabinet`)。安装本 bundle、重启 DSH,新建会话时在模式选择器里选「内阁模式」即可。
10
+ 一个 **DSH bundle**:给 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) 增加 **内阁模式**(`config.id: cabinet`)。安装本 bundle、重启 DSH,新建会话时在模式选择器里选「内阁模式」即可。
11
11
 
12
12
  模式设定取自大明科研司·内阁:首辅(Lead)统摄,阁臣(成员)分曹——翰林院编修主调研、工部主事主执行、大理寺评事主核验、都察院御史主验收;默认只调研不改码,不编造数据来源。
13
13
 
14
- 本包**不含插件运行时 JavaScript**(无 `main`/`lib`)、无运行时依赖;仅随包提供可选的 Node.js 回退脚本(`scripts/*.mjs`)。它只声明一条 `@deepseek-ai/dsh-agent-preset`,并复用 DSH **标准模式**(Standard Mode)出厂的 22 行插件清单,因此工具与标准模式一致,仅 persona 不同。
14
+ 本包含 host 半部 `index.js`(空 `apply`)与浏览器半部 `client.js`(右栏「内阁」面板),面板内嵌五张成员头像(128px data URL;源图在 `docs/images/avatars/`,由 `src/build_avatars.py` 缩放生成);另随包提供可选的 Node.js 回退脚本(`scripts/*.mjs`)。本包**无第三方运行时依赖**,React 等经 DSH 客户端模块表取用,不自带重复依赖或 CDN。
15
+
16
+ 它声明**两行**——`preset-cabinet`(一条 `@deepseek-ai/dsh-agent-preset` 声明)与 `cabinet-ui`(载入本包 JavaScript 的 Loader 行)——并复用 DSH **标准模式**(Standard Mode)出厂的 22 行插件清单,因此工具与标准模式一致;与出厂模式的差异是 persona,并另加右栏「内阁」面板。团队工具(`spawn_teammate`、`team_task_*` 等)由 profile 层的 `@deepseek-ai/dsh-experimental-agent-team-profile` 提供,**本 preset 未内置**。
15
17
 
16
18
  本包声明 **无 DSH 版本硬限制**:没有 `engines.dsh`、没有 DSH `peerDependencies`、安装时不做版本检查。本机在 DSH **0.2.1-rc.3** 实测;其他提供声明式 preset 机制的 DSH 版本可尝试安装,但**未经验证**(见 [DSH 侧限制与说明](#dsh-侧限制与说明))。
17
19
 
@@ -23,6 +25,30 @@
23
25
 
24
26
  真实运行截图(模式选择器、Agent 预设卡片、内阁会话实况)欢迎贡献——提 PR 或发给我们即可补进此处。上图是 persona 结构示意图,不是截图。
25
27
 
28
+ ## 内阁面板与成员形象
29
+
30
+ 右栏新增「内阁」页签(由本包浏览器半部 `client.js` 注册,走第二条 Loader 行 `cabinet-ui`,与 preset 声明互不相干):
31
+
32
+ - **派活树**:首辅行在顶,任务按 `ownerName` 缩进挂到对应阁臣名下,`blockedBy` 依赖以标签挂在任务下方——首辅给谁派了什么活、被哪条任务卡住,一眼可见。
33
+ - **谁在干活**:成员 running 时整行浅绿高亮、状态点持续脉冲;空闲 / 启动中 / 失败分别用灰 / 琥珀 / 红点区分,首辅行同样参与高亮。
34
+ - **任务三色**:待办灰、进行中蓝、已完成绿(面板底部附图例)。
35
+ - **成员形象**:每行头像(圆形 22px,首辅 24px)+姓名+状态文字+当前模型;头像按姓名前缀匹配,未匹配的成员回落首辅色。
36
+
37
+ 五张成员头像按衙门分色:首辅明黄、翰林院编修青、工部主事赤、大理寺评事玄、都察院御史绯——浅色系国风 3D 半写实 3/4 侧颜胸像(圈内浅景深国风背景)。头像以 128px data URL 内嵌进 `client.js`,源图为正方形 PNG 存于 `docs/images/avatars/`,由 `src/build_avatars.py` 缩放生成(源图 512×512,不直接内嵌)。
38
+
39
+ 示例(其余四张同目录:`hanlin.png` / `works.png` / `dali.png` / `yushi.png`):
40
+
41
+ ![首辅头像示例](docs/images/avatars/lead.png)
42
+
43
+ 面板只读取两条既有数据通道:成员运行状态(`api-session/status`)与会话投影 `agentTeam`(成员名册与任务板),不新增服务、不新增协议。
44
+
45
+ ## 生效说明
46
+
47
+ - **安装或更新后必须完全退出并重启 DSH**:preset 声明与 client 插件都只在启动时装配,重启前改动不生效。
48
+ - 重启后**新建会话**,在模式选择器中选择**内阁模式**(`cabinet`)。
49
+ - 打开右栏「内阁」页签:侧栏页签条右上角的「**+**」→ 指南页里的「**内阁**」入口。
50
+ - 面板渲染在**浏览器端**(`client.js`):须重启后在真实会话里实测;本仓库尚未提供浏览器截图验证。
51
+
26
52
  ---
27
53
 
28
54
  ## 让 AI 帮你安装(复制下面这段提示词)
@@ -49,7 +75,7 @@
49
75
  ## 手动安装(3 行)
50
76
 
51
77
  ```sh
52
- dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.1.5/dsh-cabinet-mode-0.1.5.tgz
78
+ dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.2.0/dsh-cabinet-mode-0.2.0.tgz
53
79
  # 完全退出并重启 DeepSeek Harness
54
80
  # 新建任务 -> 模式选择器 -> 内阁模式
55
81
  ```
@@ -70,7 +96,7 @@ dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/re
70
96
  > `dsh.profile.bundles` 里保留了 `dsh-cabinet-mode`:
71
97
  >
72
98
  > ```sh
73
- > node "<DeepSeek Harness 安装目录>\resources\runtime\primary-runtime\dependencies\pnpm\bin\pnpm.mjs" --dir "%USERPROFILE%\.dsh\profiles\desktop" add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.1.5/dsh-cabinet-mode-0.1.5.tgz
99
+ > node "<DeepSeek Harness 安装目录>\resources\runtime\primary-runtime\dependencies\pnpm\bin\pnpm.mjs" --dir "%USERPROFILE%\.dsh\profiles\desktop" add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.2.0/dsh-cabinet-mode-0.2.0.tgz
74
100
  > ```
75
101
  >
76
102
  > 操作前先备份该 profile 的 `package.json` / `pnpm-lock.yaml`。
@@ -92,16 +118,16 @@ https://raw.githubusercontent.com/luodaoyi/dsh-cabinet-mode/market-index/marketp
92
118
 
93
119
  索引在每次 tag 发布后由 npm registry 重新生成,只列出已发布、未弃用的稳定版本;不要手工编辑 `market-index` 分支。
94
120
 
95
- > **发布状态(2026-11-03):** `dsh-cabinet-mode@0.1.4` 已发布到 `registry.npmjs.org`——首版,由 tag 触发的 OIDC 流程发布,provenance 已上 sigstore——并且 `market-index` 分支已由它生成。registry 上另有占位版本 `0.0.0-stage`(预发布,索引不列)。首次 OIDC 发布、GitHub Release、`market-index` 分支、索引解析、按 npm spec 安装这五项已在处置本次发布时实测。
121
+ > **发布状态(2026-11-03):** `dsh-cabinet-mode@0.1.4`、`0.1.5`、`0.1.6` 已由 tag 触发的 OIDC 流程发布到 `registry.npmjs.org`,均带 sigstore provenance;`market-index` 分支在每次发布后自动刷新。tag → 发布 → GitHub Release → 刷新索引全链路已两次跑绿(v0.1.5:run 41657224370;v0.1.6:run 41661809576),索引现列出 0.1.6、0.1.5 与 0.1.4。registry 上另有占位版本 `0.0.0-stage`(预发布,索引不列)。
96
122
  >
97
- > **未验证:** 你所用 DSH 版本的插件市场界面文案与点击路径、该 GUI 里的真实安装/更新,以及 tag → 发布 → 自动刷新索引的全链路;0.1.5 是该链路第一次完整运行。上面的 `dsh-cabinet-mode@<版本>` 安装 spec 是格式 1 读取器(`@deepseek-ai/dsh-plugin-market-index@0.2.1-rc.5` 的 `marketInstallTarget`)对 npm 源返回的结果;该函数已在本机执行,界面未实测。
123
+ > **未验证:** 你所用 DSH 版本的插件市场界面文案与点击路径,以及该 GUI 里的真实安装/更新。上面的 `dsh-cabinet-mode@<版本>` 安装 spec 是格式 1 读取器(`@deepseek-ai/dsh-plugin-market-index@0.2.1-rc.5` 的 `marketInstallTarget`)对 npm 源返回的结果;该函数已在本机执行,界面未实测。
98
124
 
99
125
  ## 升级
100
126
 
101
127
  若通过插件市场安装:刷新市场,先在**已安装**页卸载旧版本,再从**插件市场**安装新版本,然后重启——没有 tgz URL 要换,也没有一键更新。否则用同一条安装命令换新版本 URL(或在插件页选新 `.tgz`),然后完全退出并重启 DeepSeek Harness:
102
128
 
103
129
  ```sh
104
- dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.1.5/dsh-cabinet-mode-0.1.5.tgz
130
+ dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.2.0/dsh-cabinet-mode-0.2.0.tgz
105
131
  ```
106
132
 
107
133
  `dsh plugin --profile desktop list` 应显示新版本。升级已在 Windows 实测:
@@ -159,6 +185,8 @@ v0.1.2 → v0.1.3 走内嵌 pnpm(DSH 0.2.1-rc.5)。
159
185
 
160
186
  ### B. 回退:写入 profile patch 层(无插件管理器时)
161
187
 
188
+ 此方式只安装 persona 预设。内阁面板与成员头像需要使用方式 A,将运行时包安装到 profile。
189
+
162
190
  需要 Node.js >= 20。脚本跨平台,默认演练。
163
191
 
164
192
  ```sh
@@ -204,9 +232,9 @@ node scripts/verify.mjs # 仓库校验 + dsh 合成
204
232
  推送版本 tag 会触发 `.github/workflows/release.yml`:校验工作树 → 打包 tarball → 用 **Trusted Publishing(OIDC)** 发布到 npm(不使用长期 npm token)→ 创建 GitHub Release → 刷新插件市场读取的 `market-index` 分支。
205
233
 
206
234
  ```sh
207
- # package.json 版本与 CHANGELOG 对应章节都必须是 0.1.5
208
- git tag v0.1.5
209
- git push origin v0.1.5
235
+ # package.json 版本与 CHANGELOG 对应章节都必须是 0.2.0
236
+ git tag v0.2.0
237
+ git push origin v0.2.0
210
238
  ```
211
239
 
212
240
  npmjs.com 侧的一次性配置(维护者在网页上完成,无法从本仓库完成)。为该包添加 GitHub Actions trusted publisher:
@@ -239,7 +267,7 @@ npmjs.com 侧的一次性配置(维护者在网页上完成,无法从本仓
239
267
  - DSH 升级后已装 bundle 或回退 patch 是否保留。
240
268
  - `config.id` 语法校验规则(本 id 为 `cabinet`,仅小写字母)。
241
269
  - preset 声明的 HMR 热生效、私有源/代理下的 tgz 安装。
242
- - **插件市场的真实使用。** npm 发布、GitHub Release、`market-index` 分支、索引解析、按 npm spec 安装这五项已在 0.1.4(2026-11-03)处置过程中实测;但 DSH 插件市场 GUI 里的真实安装/更新未执行,tag → 发布 → 自动刷新索引的完整链路以 0.1.5 为首次运行。
270
+ - **插件市场的真实使用。** 索引解析、npm 安装 spec 解析、把 `dsh-cabinet-mode@0.1.5` 装进一次性 profile 都已在本机执行;tag → 发布 → 自动刷新索引全链路已在 CI 跑通(v0.1.5,run 41657224370);但 DSH 插件市场 GUI 里的真实安装/更新仍未执行。
243
271
 
244
272
  ## 已知限制
245
273