dsh-cabinet-mode 0.2.6 → 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,19 @@
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
+
5
18
  ## [0.2.6] - 2026-11-05
6
19
 
7
20
  ### 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
@@ -85,7 +85,9 @@ preset declaration:
85
85
  the Chinese role and original member name, a status label and the current model.
86
86
  Aliases share a bureau avatar, while original names keep members distinguishable
87
87
  in cards, Owner tags and off-roster groups. Truncated labels have full tooltips;
88
- 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.
89
91
 
90
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.
91
93
 
@@ -154,7 +156,7 @@ On failure, show the exact error. For $.format must be 1, replace the webpage so
154
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:
155
157
 
156
158
  ```sh
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
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
158
160
  dsh plugin --profile desktop list
159
161
  ```
160
162
 
@@ -169,7 +171,7 @@ the same install command with the new version URL (or pick the new `.tgz` in the
169
171
  plugin page), then fully quit and restart DeepSeek Harness:
170
172
 
171
173
  ```sh
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
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
173
175
  ```
174
176
 
175
177
  `dsh plugin --profile desktop list` should report the new version. Upgrades were
package/README.zh.md CHANGED
@@ -13,7 +13,7 @@
13
13
 
14
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
 
@@ -48,7 +48,7 @@
48
48
  - **派活树**:首辅行在顶,任务按 `ownerName` 缩进挂到对应阁臣名下,`blockedBy` 依赖以标签挂在任务下方——首辅给谁派了什么活、被哪条任务卡住,一眼可见。
49
49
  - **谁在干活**:成员 running 时整行浅绿高亮、状态点持续脉冲;空闲 / 启动中 / 失败分别用灰 / 琥珀 / 红点区分,首辅行同样参与高亮。
50
50
  - **任务三色**:待办灰、进行中蓝、已完成绿(面板底部附图例)。
51
- - **成员形象**:每行包含圆形头像、中文称谓与成员原名、状态文字和当前模型。别名共享衙门头像,成员卡片、Owner 标签和不在册分组保留原名以区分身份;截断文字提供完整提示,未匹配名称使用中性头像。
51
+ - **成员形象**:每行包含圆形头像、中文称谓与成员原名、状态文字和当前模型。别名共享衙门头像,成员卡片、Owner 标签和不在册分组保留原名以区分身份;截断文字提供完整提示,未匹配名称保留原始身份,使用浅色、无官阶补纹的人物头像,不再显示暗色字母占位。详见[支持的名称与命名约定](docs/images/avatars/aliases.md),覆盖复合拼音、中文官名、分隔符和数字后缀。
52
52
 
53
53
  五张原创 Q 版头像采用明代乌纱帽、圆领袍与方形胸补。首辅用酒红袍、鹤补(明确采用“加一品衔大学士”的艺术设定);翰林院编修为正七品,用鸂鶒补;工部尚书为正二品,用锦鸡补;大理寺卿为正三品,用孔雀补;左都御史为正二品,使用风宪官獬豸补。袍色用于区分角色,不宣称是各品级常服的固定颜色。
54
54
 
@@ -109,7 +109,7 @@ https://raw.githubusercontent.com/luodaoyi/dsh-cabinet-mode/market-index/marketp
109
109
  仅在商店不可用或本地开发时使用。先完全退出桌面 DSH,释放 profile 锁,再执行:
110
110
 
111
111
  ```sh
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
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
113
113
  dsh plugin --profile desktop list
114
114
  ```
115
115
 
@@ -120,7 +120,7 @@ dsh plugin --profile desktop list
120
120
  若通过插件市场安装:刷新市场,先在**已安装**页卸载旧版本,再从**插件市场**安装新版本,然后重启——没有 tgz URL 要换,也没有一键更新。否则用同一条安装命令换新版本 URL(或在插件页选新 `.tgz`),然后完全退出并重启 DeepSeek Harness:
121
121
 
122
122
  ```sh
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
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
124
124
  ```
125
125
 
126
126
  `dsh plugin --profile desktop list` 应显示新版本。升级已在 Windows 实测: