dsh-cabinet-mode 0.2.2 → 0.2.4

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,26 @@
2
2
 
3
3
  All notable changes to this project are documented in this file.
4
4
 
5
+ ## [0.2.4] - 2026-11-05
6
+
7
+ ### Changed
8
+
9
+ - Replace all five Cabinet portraits with original Ming-style chibi officials,
10
+ using role-specific crane, duck, egret and xiezhi rank badges. Document the
11
+ chief secretary's additional-rank artistic setting and costume references.
12
+ - Preserve role matching and member identity labels; regenerate the 128px PNGs
13
+ and embedded browser/module assets through the existing Pillow pipeline.
14
+ - Add byte-parity regression checks for the five PNGs and both embedded modules,
15
+ and include exact illustration prompts and bilingual README galleries.
16
+
17
+ ## [0.2.3] - 2026-11-05
18
+
19
+ ### Documentation
20
+
21
+ - Include the separately required Enable now / Installed-page toggle after market
22
+ installation; restarting alone does not activate a disabled bundle. Confirmed
23
+ with a real rc.5 market uninstall/reinstall to 0.2.2 in an isolated web profile.
24
+
5
25
  ## [0.2.2] - 2026-11-05
6
26
 
7
27
  ### 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
+ | Lead | Hanlin | Works | Dali | Censor |
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
@@ -112,11 +107,11 @@ https://raw.githubusercontent.com/luodaoyi/dsh-cabinet-mode/market-index/marketp
112
107
  1. Open **Plugins → Experimental plugins → More** if needed, then enable **Custom plugin market** (自定义插件市场).
113
108
  2. Return to **Plugins → Discover** (发现), open **Index sources** (索引源), paste the raw URL above and click **Add**.
114
109
  3. Wait for **Cabinet Mode / 内阁模式** to appear. Click **Install**, check the package `dsh-cabinet-mode@<version>` and registry `https://registry.npmjs.org/`, then confirm installation.
115
- 4. Check that DSH reports **Installed** and displays the version. Fully quit and restart DSH, create a new session, and select **内阁模式** (`cabinet`). Open the Cabinet tab with **+** in the right sidebar if needed.
110
+ 4. Check that DSH reports **Installed** and displays the version. Click **Enable now** (立即启用), or turn on the plugin switch on **Installed**. Installation can leave a plugin disabled; restarting alone does not enable it. Then fully quit and restart DSH, create a new session, and select **内阁模式** (`cabinet`). Open the Cabinet tab with **+** in the right sidebar if needed.
116
111
 
117
112
  Do **not** paste a GitHub `blob` or `tree` webpage URL. DSH does not convert those pages into an index: `$.format must be 1` was reproduced with a blob URL. Remove the invalid source and add the raw URL instead. This rule applies to Respire and other markets too.
118
113
 
119
- **Verification scope:** the raw source loaded and installed version 0.2.0 through the real DSH 0.2.1-rc.5 web client on Windows in an isolated profile (2026-11-05). Other DSH versions and Linux/macOS market UI flows are unverified. The index format is also tested with the official rc.5 parser. Live agent-team behavior is a separate test.
114
+ **Verification scope:** the raw source loaded and installed version 0.2.0 through the real DSH 0.2.1-rc.5 web client on Windows in an isolated profile (2026-11-05). Uninstalling the old version, refreshing the source and installing 0.2.2 were also exercised, including the separate enable step. Other DSH versions and Linux/macOS market UI flows are unverified. The index format is also tested with the official rc.5 parser. Live agent-team behavior is a separate test.
120
115
 
121
116
  ## Install with an AI agent (copy this prompt)
122
117
 
@@ -126,7 +121,7 @@ https://raw.githubusercontent.com/luodaoyi/dsh-cabinet-mode/market-index/marketp
126
121
 
127
122
  1. Identify my DSH version and intended profile. Use the existing UI to enable Custom plugin market, then Plugins → Discover → Index sources.
128
123
  2. Add the exact raw JSON URL above. Do not use GitHub blob/tree URLs, edit the index, or invent a command to add a market source.
129
- 3. Install Cabinet Mode from that source. Verify the confirmation shows dsh-cabinet-mode@<version> from https://registry.npmjs.org/, then verify the Installed result and version.
124
+ 3. Install Cabinet Mode from that source. Verify the confirmation shows dsh-cabinet-mode@<version> from https://registry.npmjs.org/, then verify the Installed result and version. Click Enable now or turn on the plugin switch on Installed, and verify it is enabled.
130
125
  4. If browser/UI control is unavailable, give me those short UI steps. Use the release tarball or local-directory fallback only when the market is unavailable or I choose it; explain the specific reason first.
131
126
  5. Do not also append cordis.patch.yml to my profile: installing both ways duplicates the preset. Preserve my existing profile and plugins.
132
127
  6. Tell me to fully quit and restart DSH, create a new session and choose 内阁模式 (preset id cabinet). Do not claim success until the installed version is verified; do not claim untested team behavior works.
@@ -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.2/dsh-cabinet-mode-0.2.2.tgz
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
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.2/dsh-cabinet-mode-0.2.2.tgz
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
158
153
  ```
159
154
 
160
155
  `dsh plugin --profile desktop list` should report the new version. Upgrades were
@@ -390,7 +385,7 @@ These were **not** tested on this machine and must not be presented as verified:
390
385
  - Whether `config.id` syntax rules reject unusual ids (this id is `cabinet`).
391
386
  - HMR behavior for preset declarations, and private-registry/proxied tarball
392
387
  installs.
393
- - **Market updates and other clients.** Raw-source addition and installation of 0.2.0 were verified in the Windows rc.5 web client. The uninstall/reinstall update flow and other DSH versions/platforms remain unverified.
388
+ - **Market updates and other clients.** Raw-source addition, installation of 0.2.0, and uninstalling/reinstalling through the market to 0.2.2 were verified in the Windows rc.5 web client. Other DSH versions/platforms remain unverified.
394
389
 
395
390
  ## Known limitations
396
391
 
package/README.zh.md CHANGED
@@ -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
 
@@ -66,11 +68,11 @@ https://raw.githubusercontent.com/luodaoyi/dsh-cabinet-mode/market-index/marketp
66
68
  1. 打开「**插件 → 实验性插件**」,必要时点击「**更多**」,启用「**自定义插件市场**」。
67
69
  2. 返回「**插件 → 发现**」,打开「**索引源**」,粘贴上面的 raw 地址,点击「**添加**」。
68
70
  3. 等待出现「**内阁模式 / Cabinet Mode**」,点击「**安装**」。确认弹窗中的包名为 `dsh-cabinet-mode@<版本>`,注册表为 `https://registry.npmjs.org/`,再确认安装。
69
- 4. 检查界面显示「**已安装**」及版本号。**完全退出并重启 DSH**,新建会话,在模式选择器中选「**内阁模式**」(`cabinet`);需要时通过右侧栏「**+**」打开内阁页签。
71
+ 4. 检查界面显示「**已安装**」及版本号。点击「**立即启用**」,或在「**已安装**」页打开插件开关;安装完成不等于已经启用,单纯重启不会打开关闭的插件。然后**完全退出并重启 DSH**,新建会话,在模式选择器中选「**内阁模式**」(`cabinet`);需要时通过右侧栏「**+**」打开内阁页签。
70
72
 
71
73
  **不要填写 GitHub 的 `blob` 或 `tree` 网页地址。** DSH 不会把网页自动转换成索引;我们已用 blob 地址复现 `$.format must be 1`。遇到该错误,移除错误源,重新添加上述 raw 地址。Respire 等其他商店也适用同一规则。
72
74
 
73
- **验证范围:** 2026-11-05 已在 Windows、DSH 0.2.1-rc.5 的隔离 web profile 中,通过真实客户端添加 raw 索引并安装 0.2.0。其他 DSH 版本和 Linux/macOS 的商店界面流程尚未验证;索引格式另由官方 rc.5 解析器回归测试。真实团队任务交互属于另一项验证。
75
+ **验证范围:** 2026-11-05 已在 Windows、DSH 0.2.1-rc.5 的隔离 web profile 中,通过真实客户端添加 raw 索引并安装 0.2.0;随后验证了从旧版卸载、刷新索引并安装 0.2.2,以及安装后需单独启用的流程。其他 DSH 版本和 Linux/macOS 的商店界面流程尚未验证;索引格式另由官方 rc.5 解析器回归测试。真实团队任务交互属于另一项验证。
74
76
 
75
77
  ## 让 AI 帮你安装(复制下面这段提示词)
76
78
 
@@ -80,7 +82,7 @@ https://raw.githubusercontent.com/luodaoyi/dsh-cabinet-mode/market-index/marketp
80
82
 
81
83
  1. 确认我的 DSH 版本和目标 profile。通过已有界面启用「自定义插件市场」,进入「插件 → 发现 → 索引源」。
82
84
  2. 添加上面的 raw JSON 地址。不要使用 GitHub blob/tree 网页,不要修改索引,也不要编造添加商店源的 CLI 命令。
83
- 3. 从该源安装「内阁模式」,确认弹窗为 dsh-cabinet-mode@<版本>、注册表为 https://registry.npmjs.org/,然后核实「已安装」结果和版本号。
85
+ 3. 从该源安装「内阁模式」,确认弹窗为 dsh-cabinet-mode@<版本>、注册表为 https://registry.npmjs.org/,然后核实「已安装」结果和版本号。点击「立即启用」或在「已安装」页打开插件开关,确认启用状态。
84
86
  4. 如果你无法操作界面,请给我简短的界面步骤;只有市场不可用或我选择备用方法时,才使用 Release tgz 或本地目录,并先解释具体原因。
85
87
  5. 不要再向 profile 追加 cordis.patch.yml,避免重复 preset。保留我的已有 profile 和其他插件。
86
88
  6. 提醒我完全退出并重启 DSH,新建会话并选择「内阁模式」(preset id cabinet)。未核实安装版本不要声称成功,未测试的团队交互不要声称已验证。
@@ -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.2/dsh-cabinet-mode-0.2.2.tgz
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
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.2/dsh-cabinet-mode-0.2.2.tgz
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
108
110
  ```
109
111
 
110
112
  `dsh plugin --profile desktop list` 应显示新版本。升级已在 Windows 实测:
@@ -244,7 +246,7 @@ npmjs.com 侧的一次性配置(维护者在网页上完成,无法从本仓
244
246
  - DSH 升级后已装 bundle 或回退 patch 是否保留。
245
247
  - `config.id` 语法校验规则(本 id 为 `cabinet`,仅小写字母)。
246
248
  - preset 声明的 HMR 热生效、私有源/代理下的 tgz 安装。
247
- - **市场更新与其他客户端。** 已在 Windows rc.5 web 客户端验证添加 raw 索引和安装 0.2.0;卸载后重装的升级流程、其他 DSH 版本与平台尚未验证。
249
+ - **市场更新与其他客户端。** 已在 Windows rc.5 web 客户端验证添加 raw 索引、安装 0.2.0,以及卸载后从市场安装 0.2.2;其他 DSH 版本与平台尚未验证。
248
250
 
249
251
  ## 已知限制
250
252