dsh-cabinet-mode 0.1.6 → 0.2.1

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,74 @@
2
2
 
3
3
  All notable changes to this project are documented in this file.
4
4
 
5
+ ## [0.2.1] - 2026-11-05
6
+
7
+ ### Changed
8
+
9
+ - Refresh the five member portraits with chibi artwork and recognize role aliases,
10
+ numeric suffixes and common separators (#3).
11
+ - Preserve original member identities beside localized role labels, including
12
+ task owners and foreign-owner groups; add identity collision regressions (#4).
13
+ - Explain the exact raw JSON market URL and recovery from GitHub webpage URLs
14
+ producing `$.format must be 1`, including on the generated index branch.
15
+ - Describe the runtime sidebar and avatars correctly in the market listing.
16
+
17
+ ### Fixed
18
+
19
+ - Publish icon and index README changes even when marketplace.json is unchanged.
20
+ Preserve registry propagation waiting and protection against version loss.
21
+
22
+ ## [0.2.0] - 2026-11-05
23
+
24
+ ### Added
25
+
26
+ - **Host half `index.js` + browser half `client.js`.** The package is no longer
27
+ YAML-only. `client.js` registers the right-Sidebar **「内阁」 / Cabinet** tab:
28
+ the Lead → minister dispatch tree (each task hangs under its `ownerName`, with
29
+ `blockedBy` dependencies shown as chips), running members highlighted with a
30
+ pulsing status dot, task colours (pending gray / in progress blue / completed
31
+ green), and a per-member row with avatar, name, status label and current model.
32
+ - **Five member avatars** embedded as 128px data URLs (square sources in
33
+ `docs/images/avatars/`, downscaled by `src/build_avatars.py`; originals are
34
+ 1MB+ and are never embedded directly): 首辅 bright yellow, 翰林院编修 cyan,
35
+ 工部主事 red, 大理寺评事 dark, 都察院御史 crimson.
36
+ - **README (zh/en) sections** 「内阁面板与成员形象」/ "Cabinet panel and member
37
+ avatars" and 「生效说明」/ "How it takes effect". The former "no runtime
38
+ JavaScript" / "one preset row" wording now describes `index.js` + `client.js`
39
+ and the two inserted rows.
40
+
41
+ ### Changed
42
+
43
+ - **`package.json`**: `0.1.6` → `0.2.0`, plus `exports` (`.`, `./client`) and
44
+ `dsh.client` (`platform: web`, `immediately`, `inject`). Both are hard
45
+ requirements of the DSH client-plugin loader: it throws when a `dsh.client`
46
+ declaration has no `exports."./client"` (`dsh-client-modules`).
47
+ - **`cordis.patch.yml`**: appends the Loader row `cabinet-ui` →
48
+ `dsh-cabinet-mode` so the host scans the package as a client plugin. The
49
+ `preset-cabinet` declaration, and the 22-row plugin list are retained; persona rules change as described below.
50
+ - **persona**: the Lead's rules are enforced — mandatory decomposition and
51
+ delegation (`spawn_teammate` plus a `team_task_*` board) before any hands-on
52
+ work, the single-user-facing interface (only the Lead talks to the user;
53
+ members answer through the Lead), and a member task-status line.
54
+ - **`scripts/verify.mjs`**: the package-fields check now allows `exports` and
55
+ `dsh.client` while still rejecting `main` / `types` entries.
56
+
57
+ ### Fixed
58
+
59
+ - The fallback installer writes only the persona preset, without referring to an
60
+ uninstalled UI package. Regression tests cover dry runs, backups, install and
61
+ uninstall, duplicate prevention and existing bundle guards.
62
+ - Composition verification installs the current checkout into a temporary
63
+ DSH_HOME, avoiding stale installed versions and changes to the user profile.
64
+ - Chinese bureau and role names resolve to the matching member avatars.
65
+ - Team read failures warn that retained members/tasks may be stale.
66
+
67
+ ### Notes
68
+
69
+ - The full panel requires a bundle install and a DSH restart; the fallback path
70
+ installs only the persona preset.
71
+ - README links target v0.2.0 and become available when that release is published.
72
+
5
73
  ## [0.1.6] - 2026-11-03
6
74
 
7
75
  ### 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,55 @@ 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 Chinese role and original member name, a status label and the current model.
65
+ Aliases share a bureau avatar, while original names keep members distinguishable
66
+ in cards, Owner tags and off-roster groups. Truncated labels have full tooltips;
67
+ unmatched names use a neutral avatar.
68
+
69
+ The five member avatars are tinted per bureau: Lead bright yellow, 翰林院编修
70
+ (编辑) cyan, 工部主事 (执行) red, 大理寺评事 (核验) dark, 都察院御史 (验收)
71
+ crimson — light-toned chibi portraits in Ming-style court dress
72
+ (soft-focus guofeng backdrop inside the circle). They are
73
+ embedded in `client.js` as 128px data URLs; the square source PNGs live in
74
+ `docs/images/avatars/` and are downscaled by `src/build_avatars.py` (originals
75
+ are kept at 512x512 and are never embedded directly).
76
+
77
+ Example (the other four are in the same directory: `hanlin.png` / `works.png` /
78
+ `dali.png` / `yushi.png`):
79
+
80
+ ![Lead avatar example](docs/images/avatars/lead.png)
81
+
82
+ The panel reads two existing data channels only — per-session running status
83
+ (`api-session/status`) and the `agentTeam` session projection (roster and task
84
+ board). It adds no service and no protocol.
85
+
86
+ ## How it takes effect
87
+
88
+ - **Fully quit and restart DSH after installing or updating**: the preset
89
+ declaration and the client plugin are only assembled at startup, so nothing
90
+ takes effect before the restart.
91
+ - After the restart, start a **new session** and pick **内阁模式** (`cabinet`) in
92
+ the mode picker.
93
+ - Opening the right-Sidebar **Cabinet** tab: the **+** on the tab strip, then the
94
+ **Cabinet** entry on the guide page.
95
+ - The panel renders in the **browser** (`client.js`): exercise it in a real
96
+ session after a restart; this repository ships no browser screenshot yet.
97
+
38
98
  ---
39
99
 
40
100
  ## Install with an AI agent (copy this prompt)
@@ -61,7 +121,7 @@ If any step fails, show the exact error and stop. Do not retry more than once.
61
121
  ## Manual install (3 lines)
62
122
 
63
123
  ```sh
64
- dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.1.6/dsh-cabinet-mode-0.1.6.tgz
124
+ dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.2.1/dsh-cabinet-mode-0.2.1.tgz
65
125
  # fully quit and restart DeepSeek Harness
66
126
  # New session -> mode picker -> 内阁模式
67
127
  ```
@@ -85,7 +145,7 @@ commands work on Linux and macOS.
85
145
  > `dsh-cabinet-mode` in `dsh.profile.bundles`):
86
146
  >
87
147
  > ```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.6/dsh-cabinet-mode-0.1.6.tgz
148
+ > 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.1/dsh-cabinet-mode-0.2.1.tgz
89
149
  > ```
90
150
  >
91
151
  > Back up the profile's `package.json` / `pnpm-lock.yaml` first.
@@ -100,6 +160,8 @@ URL or a local checkout:
100
160
  https://raw.githubusercontent.com/luodaoyi/dsh-cabinet-mode/market-index/marketplace.json
101
161
  ```
102
162
 
163
+ Use the **raw JSON URL** above, not a GitHub `tree` or `blob` page. If DSH reports `$.format must be 1`, remove the invalid source and add the raw URL. First enable **Custom plugin market** in Plugins → Experimental plugins, then open **Discover → Index sources**.
164
+
103
165
  1. Open **Plugin market** (插件市场) in DSH, open **Index sources** (索引源), add the
104
166
  URL above, and refresh it.
105
167
  2. Install **内阁模式 / Cabinet Mode** (`dsh-cabinet-mode`) from the market list that
@@ -125,13 +187,14 @@ The index is regenerated from the npm registry after every tagged release and on
125
187
  lists published, non-deprecated stable versions; do not edit the `market-index`
126
188
  branch by hand.
127
189
 
128
- > **Release status (2026-11-03):** `dsh-cabinet-mode@0.1.4` and `0.1.5` are published
129
- > on `registry.npmjs.org` by the tag-triggered OIDC workflow, each with a provenance
130
- > attestation on sigstore, and the `market-index` branch is refreshed automatically
131
- > after every publish. The v0.1.5 run of tag → publish → GitHub Release → index
132
- > refresh succeeded end to end (GitHub Actions run 41657224370), and the index now
133
- > lists 0.1.5 and 0.1.4. The registry also carries a placeholder `0.0.0-stage`
134
- > prerelease, which the index intentionally does not list.
190
+ > **Release status (2026-11-03):** `dsh-cabinet-mode@0.1.4`, `0.1.5` and `0.1.6` are
191
+ > published on `registry.npmjs.org` by the tag-triggered OIDC workflow, each with a
192
+ > provenance attestation on sigstore, and the `market-index` branch is refreshed
193
+ > automatically after every publish. The whole tag → publish → GitHub Release → index
194
+ > refresh chain has run green twice (v0.1.5: run 41657224370, v0.1.6: run
195
+ > 41661809576), and the index now lists 0.1.6, 0.1.5 and 0.1.4. The registry also
196
+ > carries a placeholder `0.0.0-stage` prerelease, which the index intentionally does
197
+ > not list.
135
198
  >
136
199
  > **Not verified:** the exact plugin-market UI labels and click path in your DSH
137
200
  > build, and a real install/update in that GUI. The
@@ -148,7 +211,7 @@ the same install command with the new version URL (or pick the new `.tgz` in the
148
211
  plugin page), then fully quit and restart DeepSeek Harness:
149
212
 
150
213
  ```sh
151
- dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.1.6/dsh-cabinet-mode-0.1.6.tgz
214
+ dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.2.1/dsh-cabinet-mode-0.2.1.tgz
152
215
  ```
153
216
 
154
217
  `dsh plugin --profile desktop list` should report the new version. Upgrades were
@@ -219,6 +282,9 @@ on Windows with DSH 0.2.1-rc.3 (2026-10-29); the URL install completed in about
219
282
 
220
283
  ### B. Fallback: write the profile patch layer (no plugin manager)
221
284
 
285
+ This installs the persona preset only. The Cabinet panel and member avatars require
286
+ Method A, which installs the runtime package into the profile.
287
+
222
288
  Requires Node.js >= 20. The scripts are cross-platform and dry-run by default.
223
289
 
224
290
  ```sh
@@ -316,9 +382,9 @@ long-lived npm token — creates the GitHub Release, and then refreshes the
316
382
  `market-index` branch that the plugin market reads.
317
383
 
318
384
  ```sh
319
- # package.json version and the matching CHANGELOG section must both be 0.1.6
320
- git tag v0.1.6
321
- git push origin v0.1.6
385
+ # package.json version and the matching CHANGELOG section must both be 0.2.0
386
+ git tag v0.2.0
387
+ git push origin v0.2.0
322
388
  ```
323
389
 
324
390
  One-time setup on npmjs.com (a maintainer action; it cannot be done from this
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
+ - **成员形象**:每行包含圆形头像、中文称谓与成员原名、状态文字和当前模型。别名共享衙门头像,成员卡片、Owner 标签和不在册分组保留原名以区分身份;截断文字提供完整提示,未匹配名称使用中性头像。
36
+
37
+ 五张成员头像按衙门分色:首辅明黄、翰林院编修青、工部主事赤、大理寺评事玄、都察院御史绯——浅色系国风 Q 版明代冠服人物(圈内浅景深国风背景)。头像以 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.6/dsh-cabinet-mode-0.1.6.tgz
78
+ dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.2.1/dsh-cabinet-mode-0.2.1.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.6/dsh-cabinet-mode-0.1.6.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.1/dsh-cabinet-mode-0.2.1.tgz
74
100
  > ```
75
101
  >
76
102
  > 操作前先备份该 profile 的 `package.json` / `pnpm-lock.yaml`。
@@ -83,6 +109,8 @@ dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/re
83
109
  https://raw.githubusercontent.com/luodaoyi/dsh-cabinet-mode/market-index/marketplace.json
84
110
  ```
85
111
 
112
+ 请复制上面的 **raw JSON 地址**,不要复制 GitHub 的 `tree` 或 `blob` 网页地址。若提示 `$.format must be 1`,移除错误源,再添加上述 raw 地址。先在「插件 → 实验性插件」启用「自定义插件市场」,再打开「发现 → 索引源」。
113
+
86
114
  1. 在 DSH 打开**插件市场**,打开**索引源**列表,添加上面的 URL 并刷新。
87
115
  2. 在市场列表中安装 **内阁模式 / Cabinet Mode**(`dsh-cabinet-mode`)。DSH 会把 `dsh-cabinet-mode@<版本>` 从 `https://registry.npmjs.org` 安装到当前 profile。这与方式 A 是同一种 bundle 安装,二者只能选其一。
88
116
  3. **完全退出并重启 DeepSeek Harness**,然后新建任务,在模式选择器中选择**内阁模式**。
@@ -92,7 +120,7 @@ https://raw.githubusercontent.com/luodaoyi/dsh-cabinet-mode/market-index/marketp
92
120
 
93
121
  索引在每次 tag 发布后由 npm registry 重新生成,只列出已发布、未弃用的稳定版本;不要手工编辑 `market-index` 分支。
94
122
 
95
- > **发布状态(2026-11-03):** `dsh-cabinet-mode@0.1.4` 与 `0.1.5` 已由 tag 触发的 OIDC 流程发布到 `registry.npmjs.org`,两者都带 sigstore provenance;`market-index` 分支在每次发布后自动刷新。v0.1.5 的 tag → 发布 → GitHub Release → 刷新索引全链路已端到端成功(GitHub Actions run 41657224370),索引现列出 0.1.5 与 0.1.4。registry 上另有占位版本 `0.0.0-stage`(预发布,索引不列)。
123
+ > **发布状态(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
124
  >
97
125
  > **未验证:** 你所用 DSH 版本的插件市场界面文案与点击路径,以及该 GUI 里的真实安装/更新。上面的 `dsh-cabinet-mode@<版本>` 安装 spec 是格式 1 读取器(`@deepseek-ai/dsh-plugin-market-index@0.2.1-rc.5` 的 `marketInstallTarget`)对 npm 源返回的结果;该函数已在本机执行,界面未实测。
98
126
 
@@ -101,7 +129,7 @@ https://raw.githubusercontent.com/luodaoyi/dsh-cabinet-mode/market-index/marketp
101
129
  若通过插件市场安装:刷新市场,先在**已安装**页卸载旧版本,再从**插件市场**安装新版本,然后重启——没有 tgz URL 要换,也没有一键更新。否则用同一条安装命令换新版本 URL(或在插件页选新 `.tgz`),然后完全退出并重启 DeepSeek Harness:
102
130
 
103
131
  ```sh
104
- dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.1.6/dsh-cabinet-mode-0.1.6.tgz
132
+ dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.2.1/dsh-cabinet-mode-0.2.1.tgz
105
133
  ```
106
134
 
107
135
  `dsh plugin --profile desktop list` 应显示新版本。升级已在 Windows 实测:
@@ -159,6 +187,8 @@ v0.1.2 → v0.1.3 走内嵌 pnpm(DSH 0.2.1-rc.5)。
159
187
 
160
188
  ### B. 回退:写入 profile patch 层(无插件管理器时)
161
189
 
190
+ 此方式只安装 persona 预设。内阁面板与成员头像需要使用方式 A,将运行时包安装到 profile。
191
+
162
192
  需要 Node.js >= 20。脚本跨平台,默认演练。
163
193
 
164
194
  ```sh
@@ -204,9 +234,9 @@ node scripts/verify.mjs # 仓库校验 + dsh 合成
204
234
  推送版本 tag 会触发 `.github/workflows/release.yml`:校验工作树 → 打包 tarball → 用 **Trusted Publishing(OIDC)** 发布到 npm(不使用长期 npm token)→ 创建 GitHub Release → 刷新插件市场读取的 `market-index` 分支。
205
235
 
206
236
  ```sh
207
- # package.json 版本与 CHANGELOG 对应章节都必须是 0.1.6
208
- git tag v0.1.6
209
- git push origin v0.1.6
237
+ # package.json 版本与 CHANGELOG 对应章节都必须是 0.2.0
238
+ git tag v0.2.0
239
+ git push origin v0.2.0
210
240
  ```
211
241
 
212
242
  npmjs.com 侧的一次性配置(维护者在网页上完成,无法从本仓库完成)。为该包添加 GitHub Actions trusted publisher: