dsh-cabinet-mode 0.2.5 → 0.2.6
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 +11 -0
- package/README.md +30 -10
- package/README.zh.md +23 -9
- package/client.js +772 -765
- package/cordis.patch.yml +5 -5
- package/docs/images/avatars/README.md +6 -4
- package/docs/images/avatars/dali.png +0 -0
- package/docs/images/avatars/prompts.json +26 -1
- package/docs/images/avatars/works.png +0 -0
- package/docs/images/cabinet-runtime-dark.png +0 -0
- package/docs/images/cabinet-runtime-light.png +0 -0
- package/docs/images/cabinet-team.svg +3 -3
- package/package.json +1 -1
- package/scripts/test-client.mjs +17 -10
- package/src/avatars/dali.png +0 -0
- package/src/avatars/works.png +0 -0
- package/src/avatars.js +769 -762
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project are documented in this file.
|
|
4
4
|
|
|
5
|
+
## [0.2.6] - 2026-11-05
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Use the requested senior offices: 工部尚书 (second rank), 大理寺卿
|
|
10
|
+
(third rank), and 左都御史 (second rank). Redraw Works with a golden-pheasant
|
|
11
|
+
badge and Dali with a peacock badge, preserving the approved portrait style.
|
|
12
|
+
The censor retains the appropriate xiezhi badge.
|
|
13
|
+
- Align persona, Chinese labels, README galleries and costume notes; preserve
|
|
14
|
+
internal IDs, legacy lower-office aliases and distinct original member names.
|
|
15
|
+
|
|
5
16
|
## [0.2.5] - 2026-11-05
|
|
6
17
|
|
|
7
18
|
### Changed
|
package/README.md
CHANGED
|
@@ -44,9 +44,28 @@ may work, but are **not verified** (see [DSH-side constraints](#dsh-side-constra
|
|
|
44
44
|
|
|
45
45
|
### Screenshots
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
The following runtime screenshots were provided by the project owner. They show
|
|
48
|
+
the Cabinet panel's Lead/member hierarchy, who is working, task ownership and
|
|
49
|
+
progress, and dependency chips. The image above is a persona layout diagram;
|
|
50
|
+
the images below are captures of actual sessions.
|
|
51
|
+
|
|
52
|
+
#### Light theme
|
|
53
|
+
|
|
54
|
+

|
|
55
|
+
|
|
56
|
+
The light-theme session shows multiple members and their assigned tasks, with
|
|
57
|
+
green running indicators and separate in-progress/completed task markers.
|
|
58
|
+
|
|
59
|
+
#### Dark theme
|
|
60
|
+
|
|
61
|
+

|
|
62
|
+
|
|
63
|
+
The dark-theme session shows the same task hierarchy with pending, in-progress
|
|
64
|
+
and completed states, including an unassigned task group and task dependencies.
|
|
65
|
+
|
|
66
|
+
These captures document what was visible in those sessions. They do not verify
|
|
67
|
+
compatibility across DSH versions, the mode picker/preset card, or teammate
|
|
68
|
+
persona inheritance.
|
|
50
69
|
|
|
51
70
|
## Cabinet panel and member avatars
|
|
52
71
|
|
|
@@ -68,13 +87,13 @@ preset declaration:
|
|
|
68
87
|
in cards, Owner tags and off-roster groups. Truncated labels have full tooltips;
|
|
69
88
|
unmatched names use a neutral avatar.
|
|
70
89
|
|
|
71
|
-
The five original chibi portraits use Ming-style black winged hats, round-collar robes and square rank badges. The Lead wears burgundy with a crane badge (an artistic setting of a grand secretary with an additional first-rank title); Hanlin editor
|
|
90
|
+
The five original chibi portraits use Ming-style black winged hats, round-collar robes and square rank badges. The Lead wears burgundy with a crane badge (an artistic setting of a grand secretary with an additional first-rank title); Hanlin editor wears a seventh-rank duck badge, the Minister of Works a second-rank golden pheasant, the Chief Minister of the Court of Judicial Review a third-rank peacock, and the Left Censor-in-Chief a second-rank censor’s xiezhi badge. Robe colours distinguish roles and are not presented as mandatory rank colours.
|
|
72
91
|
|
|
73
92
|
See [costume references, role settings and generation prompts](docs/images/avatars/README.md). The 1254px square sources are downscaled by `src/build_avatars.py` to 128px PNGs embedded in `client.js`. At the panel's 22–24px display size, role labels remain the primary identification.
|
|
74
93
|
|
|
75
|
-
| 内阁首辅 | 翰林院编修 |
|
|
94
|
+
| 内阁首辅 | 翰林院编修 | 工部尚书 | 大理寺卿 | 左都御史 |
|
|
76
95
|
| --- | --- | --- | --- | --- |
|
|
77
|
-
|  |  |  |  |  |  |  |
|
|
78
97
|
|
|
79
98
|
The panel reads two existing data channels only — per-session running status
|
|
80
99
|
(`api-session/status`) and the `agentTeam` session projection (roster and task
|
|
@@ -90,7 +109,8 @@ board). It adds no service and no protocol.
|
|
|
90
109
|
- Opening the right-Sidebar **Cabinet** tab: the **+** on the tab strip, then the
|
|
91
110
|
**Cabinet** entry on the guide page.
|
|
92
111
|
- The panel renders in the **browser** (`client.js`): exercise it in a real
|
|
93
|
-
session after a restart
|
|
112
|
+
session after a restart. See the [runtime screenshots](#screenshots) for
|
|
113
|
+
examples of the panel in light and dark themes.
|
|
94
114
|
|
|
95
115
|
---
|
|
96
116
|
|
|
@@ -134,7 +154,7 @@ On failure, show the exact error. For $.format must be 1, replace the webpage so
|
|
|
134
154
|
Use this only when the market is unavailable or for local development. Fully quit desktop DSH first to release the profile lock, then install the release bundle:
|
|
135
155
|
|
|
136
156
|
```sh
|
|
137
|
-
dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.2.
|
|
157
|
+
dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.2.6/dsh-cabinet-mode-0.2.6.tgz
|
|
138
158
|
dsh plugin --profile desktop list
|
|
139
159
|
```
|
|
140
160
|
|
|
@@ -149,7 +169,7 @@ the same install command with the new version URL (or pick the new `.tgz` in the
|
|
|
149
169
|
plugin page), then fully quit and restart DeepSeek Harness:
|
|
150
170
|
|
|
151
171
|
```sh
|
|
152
|
-
dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.2.
|
|
172
|
+
dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.2.6/dsh-cabinet-mode-0.2.6.tgz
|
|
153
173
|
```
|
|
154
174
|
|
|
155
175
|
`dsh plugin --profile desktop list` should report the new version. Upgrades were
|
|
@@ -164,7 +184,7 @@ on DSH 0.2.1-rc.5.
|
|
|
164
184
|
| | |
|
|
165
185
|
|---|---|
|
|
166
186
|
| Mode name | 内阁模式 (**Cabinet Mode**), preset id `cabinet`, order 5 |
|
|
167
|
-
| Identity | One persona shared by the Lead and every teammate. The Lead (内阁首辅) reads the request, splits it, assigns work, adjudicates, summarizes and closes the loop; members (翰林院编修 /
|
|
187
|
+
| Identity | One persona shared by the Lead and every teammate. The Lead (内阁首辅) reads the request, splits it, assigns work, adjudicates, summarizes and closes the loop; members (翰林院编修 / 工部尚书 / 大理寺卿 / 左都御史) execute bureau-scoped work and must never claim to be the Lead. |
|
|
168
188
|
| Default posture | Research first, change code only when explicitly authorized; every conclusion must cite a path, line, command output or source; unverified items must be marked as such. |
|
|
169
189
|
| Tools | Same 22 plugin rows as the tested DSH Standard Mode (shell, filesystem, jobs, schedule, skills, goals, plan mode, compaction, delegation/workflow, ask-user, todo, web, present). |
|
|
170
190
|
| Platform | Cross-platform: `tool-bash` is enabled on Linux/macOS, `tool-pwsh` on Windows, exactly like Standard Mode. No absolute paths, no shell-specific install step, no build step. |
|
package/README.zh.md
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
一个 **DSH bundle**:给 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) 增加 **内阁模式**(`config.id: cabinet`)。安装本 bundle、重启 DSH,新建会话时在模式选择器里选「内阁模式」即可。
|
|
13
13
|
|
|
14
|
-
模式设定取自大明科研司·内阁:首辅(Lead
|
|
14
|
+
模式设定取自大明科研司·内阁:首辅(Lead)统摄,阁臣(成员)分曹——翰林院编修主调研、工部尚书主执行、大理寺卿主核验、左都御史主验收;默认只调研不改码,不编造数据来源。
|
|
15
15
|
|
|
16
16
|
本包含 host 半部 `index.js`(空 `apply`)与浏览器半部 `client.js`(右栏「内阁」面板),面板内嵌五张成员头像(128px data URL;源图在 `docs/images/avatars/`,由 `src/build_avatars.py` 缩放生成);另随包提供可选的 Node.js 回退脚本(`scripts/*.mjs`)。本包**无第三方运行时依赖**,React 等经 DSH 客户端模块表取用,不自带重复依赖或 CDN。
|
|
17
17
|
|
|
@@ -25,7 +25,21 @@
|
|
|
25
25
|
|
|
26
26
|
### 运行截图
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
以下为项目所有者提供的真实运行截图,展示内阁面板的首辅与阁臣层级、谁在干活、任务归属与进度,以及任务依赖标签。上图是 persona 结构示意图;下方两张图则来自实际会话。
|
|
29
|
+
|
|
30
|
+
#### 浅色主题
|
|
31
|
+
|
|
32
|
+

|
|
33
|
+
|
|
34
|
+
浅色会话展示多个成员及其分派任务,绿色运行标记与「进行中/已完成」任务状态分别呈现。
|
|
35
|
+
|
|
36
|
+
#### 深色主题
|
|
37
|
+
|
|
38
|
+

|
|
39
|
+
|
|
40
|
+
深色会话展示相同的任务层级,以及待办、进行中、已完成状态,还包括未分派任务分组和任务依赖关系。
|
|
41
|
+
|
|
42
|
+
这些截图记录了对应会话中可见的运行状态,不代表跨 DSH 版本兼容性、模式选择器/预设卡片或阁臣 persona 继承行为已经验证。
|
|
29
43
|
|
|
30
44
|
## 内阁面板与成员形象
|
|
31
45
|
|
|
@@ -36,13 +50,13 @@
|
|
|
36
50
|
- **任务三色**:待办灰、进行中蓝、已完成绿(面板底部附图例)。
|
|
37
51
|
- **成员形象**:每行包含圆形头像、中文称谓与成员原名、状态文字和当前模型。别名共享衙门头像,成员卡片、Owner 标签和不在册分组保留原名以区分身份;截断文字提供完整提示,未匹配名称使用中性头像。
|
|
38
52
|
|
|
39
|
-
五张原创 Q
|
|
53
|
+
五张原创 Q 版头像采用明代乌纱帽、圆领袍与方形胸补。首辅用酒红袍、鹤补(明确采用“加一品衔大学士”的艺术设定);翰林院编修为正七品,用鸂鶒补;工部尚书为正二品,用锦鸡补;大理寺卿为正三品,用孔雀补;左都御史为正二品,使用风宪官獬豸补。袍色用于区分角色,不宣称是各品级常服的固定颜色。
|
|
40
54
|
|
|
41
55
|
详见[衣冠依据、角色设定与生成提示词](docs/images/avatars/README.md)。1254px 正方形源图经 `src/build_avatars.py` 缩放为 128px PNG 并内嵌到 `client.js`;界面实际显示 22–24px,身份辨认仍以角色文字为准。
|
|
42
56
|
|
|
43
|
-
| 内阁首辅 | 翰林院编修 |
|
|
57
|
+
| 内阁首辅 | 翰林院编修 | 工部尚书 | 大理寺卿 | 左都御史 |
|
|
44
58
|
| --- | --- | --- | --- | --- |
|
|
45
|
-
|  |  |  |  |  |  |  |
|
|
46
60
|
|
|
47
61
|
面板只读取两条既有数据通道:成员运行状态(`api-session/status`)与会话投影 `agentTeam`(成员名册与任务板),不新增服务、不新增协议。
|
|
48
62
|
|
|
@@ -51,7 +65,7 @@
|
|
|
51
65
|
- **安装或更新后必须完全退出并重启 DSH**:preset 声明与 client 插件都只在启动时装配,重启前改动不生效。
|
|
52
66
|
- 重启后**新建会话**,在模式选择器中选择**内阁模式**(`cabinet`)。
|
|
53
67
|
- 打开右栏「内阁」页签:侧栏页签条右上角的「**+**」→ 指南页里的「**内阁**」入口。
|
|
54
|
-
- 面板渲染在**浏览器端**(`client.js
|
|
68
|
+
- 面板渲染在**浏览器端**(`client.js`):须重启后在真实会话里实测;浅色与深色面板效果可参见上方[运行截图](#运行截图)。
|
|
55
69
|
|
|
56
70
|
---
|
|
57
71
|
|
|
@@ -95,7 +109,7 @@ https://raw.githubusercontent.com/luodaoyi/dsh-cabinet-mode/market-index/marketp
|
|
|
95
109
|
仅在商店不可用或本地开发时使用。先完全退出桌面 DSH,释放 profile 锁,再执行:
|
|
96
110
|
|
|
97
111
|
```sh
|
|
98
|
-
dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.2.
|
|
112
|
+
dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.2.6/dsh-cabinet-mode-0.2.6.tgz
|
|
99
113
|
dsh plugin --profile desktop list
|
|
100
114
|
```
|
|
101
115
|
|
|
@@ -106,7 +120,7 @@ dsh plugin --profile desktop list
|
|
|
106
120
|
若通过插件市场安装:刷新市场,先在**已安装**页卸载旧版本,再从**插件市场**安装新版本,然后重启——没有 tgz URL 要换,也没有一键更新。否则用同一条安装命令换新版本 URL(或在插件页选新 `.tgz`),然后完全退出并重启 DeepSeek Harness:
|
|
107
121
|
|
|
108
122
|
```sh
|
|
109
|
-
dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.2.
|
|
123
|
+
dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.2.6/dsh-cabinet-mode-0.2.6.tgz
|
|
110
124
|
```
|
|
111
125
|
|
|
112
126
|
`dsh plugin --profile desktop list` 应显示新版本。升级已在 Windows 实测:
|
|
@@ -120,7 +134,7 @@ v0.1.2 → v0.1.3 走内嵌 pnpm(DSH 0.2.1-rc.5)。
|
|
|
120
134
|
| | |
|
|
121
135
|
|---|---|
|
|
122
136
|
| 模式 | 内阁模式(**Cabinet Mode**),preset id `cabinet`,order 5 |
|
|
123
|
-
| 身份 | 同一段 persona 由首辅与所有阁臣共享:首辅(Lead
|
|
137
|
+
| 身份 | 同一段 persona 由首辅与所有阁臣共享:首辅(Lead)审题、拟旨拆解、分派、裁断、汇总、闭环;阁臣(翰林院编修/工部尚书/大理寺卿/左都御史)按衙门办事,禁止自称首辅。 |
|
|
124
138
|
| 默认姿态 | 默认只调研不改码;每条结论锚定路径、行号、命令输出或原文;不确定处标「未验证」;不编造数据来源。 |
|
|
125
139
|
| 工具 | 与 0.2.1-rc.3 实测参照的标准模式相同的 22 行插件(shell、文件系统、后台任务、定时、技能、目标、计划模式、压缩、委派/工作流、ask-user、todo、web、present)。 |
|
|
126
140
|
| 平台 | 跨平台:`tool-bash` 在 Linux/macOS 启用、`tool-pwsh` 在 Windows 启用,与标准模式一致;无绝对路径、无 shell 专用安装步骤、无构建步骤。 |
|