dsh-cabinet-mode 0.1.6 → 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 +51 -0
- package/README.md +81 -19
- package/README.zh.md +37 -9
- package/client.js +3252 -0
- package/cordis.patch.yml +23 -8
- package/docs/cross-platform.md +3 -3
- package/docs/images/avatars/dali.png +0 -0
- package/docs/images/avatars/hanlin.png +0 -0
- package/docs/images/avatars/lead.png +0 -0
- package/docs/images/avatars/works.png +0 -0
- package/docs/images/avatars/yushi.png +0 -0
- package/docs/images/panel-430.png +0 -0
- package/docs/images/panel-880.png +0 -0
- package/docs/images/panel-org-chart.png +0 -0
- package/docs/images/team-roster-avatars.png +0 -0
- package/index.js +2 -0
- package/package.json +19 -2
- package/scripts/install.mjs +7 -1
- package/scripts/test-client.mjs +46 -0
- package/scripts/test-install.mjs +50 -0
- package/scripts/verify.mjs +78 -12
- package/src/avatars/dali.png +0 -0
- package/src/avatars/hanlin.png +0 -0
- package/src/avatars/lead.png +0 -0
- package/src/avatars/works.png +0 -0
- package/src/avatars/yushi.png +0 -0
- package/src/avatars.js +2280 -0
- package/src/build_avatars.py +152 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,57 @@
|
|
|
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
|
+
|
|
5
56
|
## [0.1.6] - 2026-11-03
|
|
6
57
|
|
|
7
58
|
### 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 **
|
|
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
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
+

|
|
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.
|
|
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.
|
|
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,13 +183,14 @@ 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` and `0.1.
|
|
129
|
-
> on `registry.npmjs.org` by the tag-triggered OIDC workflow, each with a
|
|
130
|
-
> attestation on sigstore, and the `market-index` branch is refreshed
|
|
131
|
-
> after every publish. The
|
|
132
|
-
> refresh
|
|
133
|
-
> lists 0.1.5 and 0.1.4. The registry also
|
|
134
|
-
> prerelease, which the index intentionally does
|
|
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.
|
|
135
194
|
>
|
|
136
195
|
> **Not verified:** the exact plugin-market UI labels and click path in your DSH
|
|
137
196
|
> build, and a real install/update in that GUI. The
|
|
@@ -148,7 +207,7 @@ the same install command with the new version URL (or pick the new `.tgz` in the
|
|
|
148
207
|
plugin page), then fully quit and restart DeepSeek Harness:
|
|
149
208
|
|
|
150
209
|
```sh
|
|
151
|
-
dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.
|
|
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
|
|
152
211
|
```
|
|
153
212
|
|
|
154
213
|
`dsh plugin --profile desktop list` should report the new version. Upgrades were
|
|
@@ -219,6 +278,9 @@ on Windows with DSH 0.2.1-rc.3 (2026-10-29); the URL install completed in about
|
|
|
219
278
|
|
|
220
279
|
### B. Fallback: write the profile patch layer (no plugin manager)
|
|
221
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
|
+
|
|
222
284
|
Requires Node.js >= 20. The scripts are cross-platform and dry-run by default.
|
|
223
285
|
|
|
224
286
|
```sh
|
|
@@ -316,9 +378,9 @@ long-lived npm token — creates the GitHub Release, and then refreshes the
|
|
|
316
378
|
`market-index` branch that the plugin market reads.
|
|
317
379
|
|
|
318
380
|
```sh
|
|
319
|
-
# package.json version and the matching CHANGELOG section must both be 0.
|
|
320
|
-
git tag v0.
|
|
321
|
-
git push origin v0.
|
|
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
|
|
322
384
|
```
|
|
323
385
|
|
|
324
386
|
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
|
-
|
|
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
|
-
|
|
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
|
+

|
|
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.
|
|
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.
|
|
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,7 +118,7 @@ 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
|
|
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
123
|
> **未验证:** 你所用 DSH 版本的插件市场界面文案与点击路径,以及该 GUI 里的真实安装/更新。上面的 `dsh-cabinet-mode@<版本>` 安装 spec 是格式 1 读取器(`@deepseek-ai/dsh-plugin-market-index@0.2.1-rc.5` 的 `marketInstallTarget`)对 npm 源返回的结果;该函数已在本机执行,界面未实测。
|
|
98
124
|
|
|
@@ -101,7 +127,7 @@ https://raw.githubusercontent.com/luodaoyi/dsh-cabinet-mode/market-index/marketp
|
|
|
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.
|
|
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.
|
|
208
|
-
git tag v0.
|
|
209
|
-
git push origin v0.
|
|
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:
|