dsh-cabinet-mode 0.2.3 → 0.2.5

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,28 @@
2
2
 
3
3
  All notable changes to this project are documented in this file.
4
4
 
5
+ ## [0.2.5] - 2026-11-05
6
+
7
+ ### Changed
8
+
9
+ - Use Chinese official titles consistently: 内阁首辅, 翰林院编修, 工部主事,
10
+ 大理寺评事 and 监察御史. Keep the existing rank-appropriate portraits,
11
+ English internal keys, original member identities and legacy censor aliases.
12
+ - Align the persona and README galleries with these titles; the Lead tag remains
13
+ Chinese in both UI locales. Add title, alias and identity regression checks.
14
+
15
+ ## [0.2.4] - 2026-11-05
16
+
17
+ ### Changed
18
+
19
+ - Replace all five Cabinet portraits with original Ming-style chibi officials,
20
+ using role-specific crane, duck, egret and xiezhi rank badges. Document the
21
+ chief secretary's additional-rank artistic setting and costume references.
22
+ - Preserve role matching and member identity labels; regenerate the 128px PNGs
23
+ and embedded browser/module assets through the existing Pillow pipeline.
24
+ - Add byte-parity regression checks for the five PNGs and both embedded modules,
25
+ and include exact illustration prompts and bilingual README galleries.
26
+
5
27
  ## [0.2.3] - 2026-11-05
6
28
 
7
29
  ### Documentation
package/README.md CHANGED
@@ -68,18 +68,13 @@ preset declaration:
68
68
  in cards, Owner tags and off-roster groups. Truncated labels have full tooltips;
69
69
  unmatched names use a neutral avatar.
70
70
 
71
- The five member avatars are tinted per bureau: Lead bright yellow, 翰林院编修
72
- (编辑) cyan, 工部主事 (执行) red, 大理寺评事 (核验) dark, 都察院御史 (验收)
73
- crimson — light-toned chibi portraits in Ming-style court dress
74
- (soft-focus guofeng backdrop inside the circle). They are
75
- embedded in `client.js` as 128px data URLs; the square source PNGs live in
76
- `docs/images/avatars/` and are downscaled by `src/build_avatars.py` (originals
77
- are kept at 512x512 and are never embedded directly).
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.
78
72
 
79
- Example (the other four are in the same directory: `hanlin.png` / `works.png` /
80
- `dali.png` / `yushi.png`):
73
+ 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.
81
74
 
82
- ![Lead avatar example](docs/images/avatars/lead.png)
75
+ | 内阁首辅 | 翰林院编修 | 工部主事 | 大理寺评事 | 监察御史 |
76
+ | --- | --- | --- | --- | --- |
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) |
83
78
 
84
79
  The panel reads two existing data channels only — per-session running status
85
80
  (`api-session/status`) and the `agentTeam` session projection (roster and task
@@ -139,7 +134,7 @@ On failure, show the exact error. For $.format must be 1, replace the webpage so
139
134
  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:
140
135
 
141
136
  ```sh
142
- dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.2.3/dsh-cabinet-mode-0.2.3.tgz
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
143
138
  dsh plugin --profile desktop list
144
139
  ```
145
140
 
@@ -154,7 +149,7 @@ the same install command with the new version URL (or pick the new `.tgz` in the
154
149
  plugin page), then fully quit and restart DeepSeek Harness:
155
150
 
156
151
  ```sh
157
- dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.2.3/dsh-cabinet-mode-0.2.3.tgz
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
158
153
  ```
159
154
 
160
155
  `dsh plugin --profile desktop list` should report the new version. Upgrades were
@@ -169,7 +164,7 @@ on DSH 0.2.1-rc.5.
169
164
  | | |
170
165
  |---|---|
171
166
  | Mode name | 内阁模式 (**Cabinet Mode**), preset id `cabinet`, order 5 |
172
- | 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. |
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. |
173
168
  | 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. |
174
169
  | 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). |
175
170
  | 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
 
@@ -36,11 +36,13 @@
36
36
  - **任务三色**:待办灰、进行中蓝、已完成绿(面板底部附图例)。
37
37
  - **成员形象**:每行包含圆形头像、中文称谓与成员原名、状态文字和当前模型。别名共享衙门头像,成员卡片、Owner 标签和不在册分组保留原名以区分身份;截断文字提供完整提示,未匹配名称使用中性头像。
38
38
 
39
- 五张成员头像按衙门分色:首辅明黄、翰林院编修青、工部主事赤、大理寺评事玄、都察院御史绯——浅色系国风 Q 版明代冠服人物(圈内浅景深国风背景)。头像以 128px data URL 内嵌进 `client.js`,源图为正方形 PNG 存于 `docs/images/avatars/`,由 `src/build_avatars.py` 缩放生成(源图 512×512,不直接内嵌)。
39
+ 五张原创 Q 版头像采用明代乌纱帽、圆领袍与方形胸补。首辅用酒红袍、鹤补(明确采用“加一品衔大学士”的艺术设定);翰林院编修与大理寺评事用七品鸂鶒补,工部主事用六品鹭鸶补,都察院角色具体按监察御史设定,使用獬豸补。袍色用于区分角色,不宣称是各品级常服的固定颜色。
40
40
 
41
- 示例(其余四张同目录:`hanlin.png` / `works.png` / `dali.png` / `yushi.png`):
41
+ 详见[衣冠依据、角色设定与生成提示词](docs/images/avatars/README.md)。1254px 正方形源图经 `src/build_avatars.py` 缩放为 128px PNG 并内嵌到 `client.js`;界面实际显示 22–24px,身份辨认仍以角色文字为准。
42
42
 
43
- ![首辅头像示例](docs/images/avatars/lead.png)
43
+ | 内阁首辅 | 翰林院编修 | 工部主事 | 大理寺评事 | 监察御史 |
44
+ | --- | --- | --- | --- | --- |
45
+ | ![首辅:鹤补](src/avatars/lead.png) | ![编修:鸂鶒补](src/avatars/hanlin.png) | ![主事:鹭鸶补](src/avatars/works.png) | ![评事:鸂鶒补](src/avatars/dali.png) | ![监察御史:獬豸补](src/avatars/yushi.png) |
44
46
 
45
47
  面板只读取两条既有数据通道:成员运行状态(`api-session/status`)与会话投影 `agentTeam`(成员名册与任务板),不新增服务、不新增协议。
46
48
 
@@ -93,7 +95,7 @@ https://raw.githubusercontent.com/luodaoyi/dsh-cabinet-mode/market-index/marketp
93
95
  仅在商店不可用或本地开发时使用。先完全退出桌面 DSH,释放 profile 锁,再执行:
94
96
 
95
97
  ```sh
96
- dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.2.3/dsh-cabinet-mode-0.2.3.tgz
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
97
99
  dsh plugin --profile desktop list
98
100
  ```
99
101
 
@@ -104,7 +106,7 @@ dsh plugin --profile desktop list
104
106
  若通过插件市场安装:刷新市场,先在**已安装**页卸载旧版本,再从**插件市场**安装新版本,然后重启——没有 tgz URL 要换,也没有一键更新。否则用同一条安装命令换新版本 URL(或在插件页选新 `.tgz`),然后完全退出并重启 DeepSeek Harness:
105
107
 
106
108
  ```sh
107
- dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.2.3/dsh-cabinet-mode-0.2.3.tgz
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
108
110
  ```
109
111
 
110
112
  `dsh plugin --profile desktop list` 应显示新版本。升级已在 Windows 实测:
@@ -118,7 +120,7 @@ v0.1.2 → v0.1.3 走内嵌 pnpm(DSH 0.2.1-rc.5)。
118
120
  | | |
119
121
  |---|---|
120
122
  | 模式 | 内阁模式(**Cabinet Mode**),preset id `cabinet`,order 5 |
121
- | 身份 | 同一段 persona 由首辅与所有阁臣共享:首辅(Lead)审题、拟旨拆解、分派、裁断、汇总、闭环;阁臣(翰林院编修/工部主事/大理寺评事/都察院御史)按衙门办事,禁止自称首辅。 |
123
+ | 身份 | 同一段 persona 由首辅与所有阁臣共享:首辅(Lead)审题、拟旨拆解、分派、裁断、汇总、闭环;阁臣(翰林院编修/工部主事/大理寺评事/监察御史)按衙门办事,禁止自称首辅。 |
122
124
  | 默认姿态 | 默认只调研不改码;每条结论锚定路径、行号、命令输出或原文;不确定处标「未验证」;不编造数据来源。 |
123
125
  | 工具 | 与 0.2.1-rc.3 实测参照的标准模式相同的 22 行插件(shell、文件系统、后台任务、定时、技能、目标、计划模式、压缩、委派/工作流、ask-user、todo、web、present)。 |
124
126
  | 平台 | 跨平台:`tool-bash` 在 Linux/macOS 启用、`tool-pwsh` 在 Windows 启用,与标准模式一致;无绝对路径、无 shell 专用安装步骤、无构建步骤。 |