dsh-cabinet-mode 0.2.4 → 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 CHANGED
@@ -2,6 +2,27 @@
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
+
16
+ ## [0.2.5] - 2026-11-05
17
+
18
+ ### Changed
19
+
20
+ - Use Chinese official titles consistently: 内阁首辅, 翰林院编修, 工部主事,
21
+ 大理寺评事 and 监察御史. Keep the existing rank-appropriate portraits,
22
+ English internal keys, original member identities and legacy censor aliases.
23
+ - Align the persona and README galleries with these titles; the Lead tag remains
24
+ Chinese in both UI locales. Add title, alias and identity regression checks.
25
+
5
26
  ## [0.2.4] - 2026-11-05
6
27
 
7
28
  ### 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
- Real runtime captures (mode picker, Agent-preset card, a cabinet session) are
48
- welcome — open a PR or send them to us and we will include them here. The image
49
- above is a layout diagram of the persona, not a screenshot.
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
+ ![Cabinet panel in light theme: Lead and member dispatch tree, running and idle members, task progress and dependencies](docs/images/cabinet-runtime-light.png)
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
+ ![Cabinet panel in dark theme: Lead and member task columns, pending tasks in the unassigned group, and dependency chips](docs/images/cabinet-runtime-dark.png)
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 and Dali reviewer wear seventh-rank mandarin-duck badges, Works officer a sixth-rank egret, and the investigating censor a xiezhi. Robe colours distinguish roles and are not presented as mandatory rank colours.
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
- | Lead | Hanlin | Works | Dali | Censor |
94
+ | 内阁首辅 | 翰林院编修 | 工部尚书 | 大理寺卿 | 左都御史 |
76
95
  | --- | --- | --- | --- | --- |
77
- | ![Lead, crane badge](src/avatars/lead.png) | ![Hanlin editor, duck badge](src/avatars/hanlin.png) | ![Works officer, egret badge](src/avatars/works.png) | ![Dali reviewer, duck badge](src/avatars/dali.png) | ![Investigating censor, xiezhi badge](src/avatars/yushi.png) |
96
+ | ![Lead, crane badge](src/avatars/lead.png) | ![Hanlin editor, duck badge](src/avatars/hanlin.png) | ![Minister of Works, golden pheasant badge](src/avatars/works.png) | ![Dali chief minister, peacock badge](src/avatars/dali.png) | ![Left Censor-in-Chief, xiezhi badge](src/avatars/yushi.png) |
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; this repository ships no browser screenshot yet.
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.4/dsh-cabinet-mode-0.2.4.tgz
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.4/dsh-cabinet-mode-0.2.4.tgz
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 (翰林院编修 / 工部主事 / 大理寺评事 / 都察院御史) execute bureau-scoped work and must never claim to be the Lead. |
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
- 真实运行截图(模式选择器、Agent 预设卡片、内阁会话实况)欢迎贡献——提 PR 或发给我们即可补进此处。上图是 persona 结构示意图,不是截图。
28
+ 以下为项目所有者提供的真实运行截图,展示内阁面板的首辅与阁臣层级、谁在干活、任务归属与进度,以及任务依赖标签。上图是 persona 结构示意图;下方两张图则来自实际会话。
29
+
30
+ #### 浅色主题
31
+
32
+ ![浅色主题内阁面板:首辅与阁臣派活树、成员运行和空闲状态、任务进度及依赖关系](docs/images/cabinet-runtime-light.png)
33
+
34
+ 浅色会话展示多个成员及其分派任务,绿色运行标记与「进行中/已完成」任务状态分别呈现。
35
+
36
+ #### 深色主题
37
+
38
+ ![深色主题内阁面板:首辅与阁臣任务列、未分派待办任务及依赖标签](docs/images/cabinet-runtime-dark.png)
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
- | ![首辅:鹤补](src/avatars/lead.png) | ![编修:鸂鶒补](src/avatars/hanlin.png) | ![主事:鹭鸶补](src/avatars/works.png) | ![评事:鸂鶒补](src/avatars/dali.png) | ![监察御史:獬豸补](src/avatars/yushi.png) |
59
+ | ![首辅:鹤补](src/avatars/lead.png) | ![编修:鸂鶒补](src/avatars/hanlin.png) | ![工部尚书:锦鸡补](src/avatars/works.png) | ![大理寺卿:孔雀补](src/avatars/dali.png) | ![左都御史:獬豸补](src/avatars/yushi.png) |
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.4/dsh-cabinet-mode-0.2.4.tgz
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.4/dsh-cabinet-mode-0.2.4.tgz
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 专用安装步骤、无构建步骤。 |