dsh-cabinet-mode 0.2.5 → 0.2.7

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,30 @@
2
2
 
3
3
  All notable changes to this project are documented in this file.
4
4
 
5
+ ## [0.2.7] - 2026-11-05
6
+
7
+ ### Fixed
8
+
9
+ - Cover composite and legacy official names including dalisi-pingshi and
10
+ jiancha-yushi, separator variants, full pinyin bureaus and numeric suffixes.
11
+ Preserve exact member/Owner identity and reject unrelated prefix lookalikes.
12
+ - Refresh native roster avatars when a row is reused or its text node changes,
13
+ without observing injected attributes or repeatedly rewriting image sources.
14
+ - Replace dark initial-letter fallback blocks with a light, unranked portrait
15
+ for unknown members. Add all-alias, panel and native DOM lifecycle regressions
16
+ plus documented canonical spawn names. Existing README screenshots remain.
17
+
18
+ ## [0.2.6] - 2026-11-05
19
+
20
+ ### Changed
21
+
22
+ - Use the requested senior offices: 工部尚书 (second rank), 大理寺卿
23
+ (third rank), and 左都御史 (second rank). Redraw Works with a golden-pheasant
24
+ badge and Dali with a peacock badge, preserving the approved portrait style.
25
+ The censor retains the appropriate xiezhi badge.
26
+ - Align persona, Chinese labels, README galleries and costume notes; preserve
27
+ internal IDs, legacy lower-office aliases and distinct original member names.
28
+
5
29
  ## [0.2.5] - 2026-11-05
6
30
 
7
31
  ### Changed
package/README.md CHANGED
@@ -17,7 +17,7 @@ a research-team preset modeled on the Great Ming Research Bureau cabinet
17
17
  to research before touching code, and must never fabricate sources.
18
18
 
19
19
  The package ships a host half (`index.js`, an empty `apply`) and a browser half
20
- (`client.js`, the right-Sidebar **Cabinet** panel) with the five member avatars
20
+ (`client.js`, the right-Sidebar **Cabinet** panel) with five role portraits and an unranked fallback portrait
21
21
  embedded as 128px data URLs (square sources in `docs/images/avatars/`,
22
22
  downscaled by `src/build_avatars.py`); it also keeps the optional Node.js
23
23
  fallback scripts (`scripts/*.mjs`). It has **no third-party runtime
@@ -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
 
@@ -66,15 +85,17 @@ preset declaration:
66
85
  the Chinese role and original member name, a status label and the current model.
67
86
  Aliases share a bureau avatar, while original names keep members distinguishable
68
87
  in cards, Owner tags and off-roster groups. Truncated labels have full tooltips;
69
- unmatched names use a neutral avatar.
88
+ unmatched names retain their original identity and use a light, unranked portrait.
89
+ [Supported names and naming convention](docs/images/avatars/aliases.md) cover
90
+ composite pinyin names, Chinese titles, separators and numeric suffixes.
70
91
 
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.
92
+ 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
93
 
73
94
  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
95
 
75
- | 内阁首辅 | 翰林院编修 | 工部主事 | 大理寺评事 | 监察御史 |
96
+ | 内阁首辅 | 翰林院编修 | 工部尚书 | 大理寺卿 | 左都御史 |
76
97
  | --- | --- | --- | --- | --- |
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) |
98
+ | ![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
99
 
79
100
  The panel reads two existing data channels only — per-session running status
80
101
  (`api-session/status`) and the `agentTeam` session projection (roster and task
@@ -90,7 +111,8 @@ board). It adds no service and no protocol.
90
111
  - Opening the right-Sidebar **Cabinet** tab: the **+** on the tab strip, then the
91
112
  **Cabinet** entry on the guide page.
92
113
  - 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.
114
+ session after a restart. See the [runtime screenshots](#screenshots) for
115
+ examples of the panel in light and dark themes.
94
116
 
95
117
  ---
96
118
 
@@ -134,7 +156,7 @@ On failure, show the exact error. For $.format must be 1, replace the webpage so
134
156
  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
157
 
136
158
  ```sh
137
- dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.2.5/dsh-cabinet-mode-0.2.5.tgz
159
+ dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.2.7/dsh-cabinet-mode-0.2.7.tgz
138
160
  dsh plugin --profile desktop list
139
161
  ```
140
162
 
@@ -149,7 +171,7 @@ the same install command with the new version URL (or pick the new `.tgz` in the
149
171
  plugin page), then fully quit and restart DeepSeek Harness:
150
172
 
151
173
  ```sh
152
- dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.2.5/dsh-cabinet-mode-0.2.5.tgz
174
+ dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.2.7/dsh-cabinet-mode-0.2.7.tgz
153
175
  ```
154
176
 
155
177
  `dsh plugin --profile desktop list` should report the new version. Upgrades were
@@ -164,7 +186,7 @@ on DSH 0.2.1-rc.5.
164
186
  | | |
165
187
  |---|---|
166
188
  | 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. |
189
+ | 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
190
  | 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
191
  | 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
192
  | 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,9 +11,9 @@
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
- 本包含 host 半部 `index.js`(空 `apply`)与浏览器半部 `client.js`(右栏「内阁」面板),面板内嵌五张成员头像(128px data URL;源图在 `docs/images/avatars/`,由 `src/build_avatars.py` 缩放生成);另随包提供可选的 Node.js 回退脚本(`scripts/*.mjs`)。本包**无第三方运行时依赖**,React 等经 DSH 客户端模块表取用,不自带重复依赖或 CDN。
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
 
18
18
  它声明**两行**——`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 未内置**。
19
19
 
@@ -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
 
@@ -34,15 +48,15 @@
34
48
  - **派活树**:首辅行在顶,任务按 `ownerName` 缩进挂到对应阁臣名下,`blockedBy` 依赖以标签挂在任务下方——首辅给谁派了什么活、被哪条任务卡住,一眼可见。
35
49
  - **谁在干活**:成员 running 时整行浅绿高亮、状态点持续脉冲;空闲 / 启动中 / 失败分别用灰 / 琥珀 / 红点区分,首辅行同样参与高亮。
36
50
  - **任务三色**:待办灰、进行中蓝、已完成绿(面板底部附图例)。
37
- - **成员形象**:每行包含圆形头像、中文称谓与成员原名、状态文字和当前模型。别名共享衙门头像,成员卡片、Owner 标签和不在册分组保留原名以区分身份;截断文字提供完整提示,未匹配名称使用中性头像。
51
+ - **成员形象**:每行包含圆形头像、中文称谓与成员原名、状态文字和当前模型。别名共享衙门头像,成员卡片、Owner 标签和不在册分组保留原名以区分身份;截断文字提供完整提示,未匹配名称保留原始身份,使用浅色、无官阶补纹的人物头像,不再显示暗色字母占位。详见[支持的名称与命名约定](docs/images/avatars/aliases.md),覆盖复合拼音、中文官名、分隔符和数字后缀。
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.5/dsh-cabinet-mode-0.2.5.tgz
112
+ dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.2.7/dsh-cabinet-mode-0.2.7.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.5/dsh-cabinet-mode-0.2.5.tgz
123
+ dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.2.7/dsh-cabinet-mode-0.2.7.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 专用安装步骤、无构建步骤。 |