dsh-cabinet-mode 0.2.4 → 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 +10 -0
- package/README.md +4 -4
- package/README.zh.md +5 -5
- package/client.js +4 -4
- package/cordis.patch.yml +5 -5
- package/docs/images/avatars/README.md +2 -2
- package/package.json +1 -1
- package/scripts/test-client.mjs +12 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
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
|
+
|
|
5
15
|
## [0.2.4] - 2026-11-05
|
|
6
16
|
|
|
7
17
|
### Changed
|
package/README.md
CHANGED
|
@@ -72,7 +72,7 @@ The five original chibi portraits use Ming-style black winged hats, round-collar
|
|
|
72
72
|
|
|
73
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.
|
|
74
74
|
|
|
75
|
-
|
|
|
75
|
+
| 内阁首辅 | 翰林院编修 | 工部主事 | 大理寺评事 | 监察御史 |
|
|
76
76
|
| --- | --- | --- | --- | --- |
|
|
77
77
|
|  |  |  |  |  |
|
|
78
78
|
|
|
@@ -134,7 +134,7 @@ On failure, show the exact error. For $.format must be 1, replace the webpage so
|
|
|
134
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:
|
|
135
135
|
|
|
136
136
|
```sh
|
|
137
|
-
dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.2.
|
|
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
|
|
138
138
|
dsh plugin --profile desktop list
|
|
139
139
|
```
|
|
140
140
|
|
|
@@ -149,7 +149,7 @@ the same install command with the new version URL (or pick the new `.tgz` in the
|
|
|
149
149
|
plugin page), then fully quit and restart DeepSeek Harness:
|
|
150
150
|
|
|
151
151
|
```sh
|
|
152
|
-
dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.2.
|
|
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
|
|
153
153
|
```
|
|
154
154
|
|
|
155
155
|
`dsh plugin --profile desktop list` should report the new version. Upgrades were
|
|
@@ -164,7 +164,7 @@ on DSH 0.2.1-rc.5.
|
|
|
164
164
|
| | |
|
|
165
165
|
|---|---|
|
|
166
166
|
| 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 (翰林院编修 / 工部主事 / 大理寺评事 /
|
|
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. |
|
|
168
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. |
|
|
169
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). |
|
|
170
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
|
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
|
|
41
41
|
详见[衣冠依据、角色设定与生成提示词](docs/images/avatars/README.md)。1254px 正方形源图经 `src/build_avatars.py` 缩放为 128px PNG 并内嵌到 `client.js`;界面实际显示 22–24px,身份辨认仍以角色文字为准。
|
|
42
42
|
|
|
43
|
-
|
|
|
43
|
+
| 内阁首辅 | 翰林院编修 | 工部主事 | 大理寺评事 | 监察御史 |
|
|
44
44
|
| --- | --- | --- | --- | --- |
|
|
45
45
|
|  |  |  |  |  |
|
|
46
46
|
|
|
@@ -95,7 +95,7 @@ https://raw.githubusercontent.com/luodaoyi/dsh-cabinet-mode/market-index/marketp
|
|
|
95
95
|
仅在商店不可用或本地开发时使用。先完全退出桌面 DSH,释放 profile 锁,再执行:
|
|
96
96
|
|
|
97
97
|
```sh
|
|
98
|
-
dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.2.
|
|
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
|
|
99
99
|
dsh plugin --profile desktop list
|
|
100
100
|
```
|
|
101
101
|
|
|
@@ -106,7 +106,7 @@ dsh plugin --profile desktop list
|
|
|
106
106
|
若通过插件市场安装:刷新市场,先在**已安装**页卸载旧版本,再从**插件市场**安装新版本,然后重启——没有 tgz URL 要换,也没有一键更新。否则用同一条安装命令换新版本 URL(或在插件页选新 `.tgz`),然后完全退出并重启 DeepSeek Harness:
|
|
107
107
|
|
|
108
108
|
```sh
|
|
109
|
-
dsh plugin --profile desktop add https://github.com/luodaoyi/dsh-cabinet-mode/releases/download/v0.2.
|
|
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
|
|
110
110
|
```
|
|
111
111
|
|
|
112
112
|
`dsh plugin --profile desktop list` 应显示新版本。升级已在 Windows 实测:
|
|
@@ -120,7 +120,7 @@ v0.1.2 → v0.1.3 走内嵌 pnpm(DSH 0.2.1-rc.5)。
|
|
|
120
120
|
| | |
|
|
121
121
|
|---|---|
|
|
122
122
|
| 模式 | 内阁模式(**Cabinet Mode**),preset id `cabinet`,order 5 |
|
|
123
|
-
| 身份 | 同一段 persona 由首辅与所有阁臣共享:首辅(Lead
|
|
123
|
+
| 身份 | 同一段 persona 由首辅与所有阁臣共享:首辅(Lead)审题、拟旨拆解、分派、裁断、汇总、闭环;阁臣(翰林院编修/工部主事/大理寺评事/监察御史)按衙门办事,禁止自称首辅。 |
|
|
124
124
|
| 默认姿态 | 默认只调研不改码;每条结论锚定路径、行号、命令输出或原文;不确定处标「未验证」;不编造数据来源。 |
|
|
125
125
|
| 工具 | 与 0.2.1-rc.3 实测参照的标准模式相同的 22 行插件(shell、文件系统、后台任务、定时、技能、目标、计划模式、压缩、委派/工作流、ask-user、todo、web、present)。 |
|
|
126
126
|
| 平台 | 跨平台:`tool-bash` 在 Linux/macOS 启用、`tool-pwsh` 在 Windows 启用,与标准模式一致;无绝对路径、无 shell 专用安装步骤、无构建步骤。 |
|
package/client.js
CHANGED
|
@@ -2058,11 +2058,11 @@ window.__ModuleLoader__.load({
|
|
|
2058
2058
|
// 大理寺/评事, 都察院/御史). One alias table answers both questions: which
|
|
2059
2059
|
// avatar to draw and how to label the member in Chinese.
|
|
2060
2060
|
const BUREAUX = [
|
|
2061
|
-
{ key: 'lead', aliases: ['lead', 'shoufu', '首辅', '内阁首辅'], label: '
|
|
2061
|
+
{ key: 'lead', aliases: ['lead', 'shoufu', '首辅', '内阁首辅'], label: '内阁首辅' },
|
|
2062
2062
|
{ key: 'hanlin', aliases: ['hanlin', 'bianxiu', '翰林院', '翰林', '编修'], label: '翰林院编修' },
|
|
2063
2063
|
{ key: 'works', aliases: ['gongbu', 'works', 'zhushi', '工部', '主事'], label: '工部主事' },
|
|
2064
2064
|
{ key: 'dali', aliases: ['dali', 'pingshi', '大理寺', '大理', '评事'], label: '大理寺评事' },
|
|
2065
|
-
{ key: 'yushi', aliases: ['yushi', 'censor', '都察院', '御史'], label: '
|
|
2065
|
+
{ key: 'yushi', aliases: ['yushi', 'censor', '都察院', '御史', '都察院御史'], label: '监察御史' }
|
|
2066
2066
|
];
|
|
2067
2067
|
const AVATAR_KEYS = BUREAUX.map((bureau) => bureau.key);
|
|
2068
2068
|
// Longest alias first, so a full office name ("翰林院编修") wins over its
|
|
@@ -2859,7 +2859,7 @@ window.__ModuleLoader__.load({
|
|
|
2859
2859
|
'header.subtitle': '首辅 · 阁臣 · 派活',
|
|
2860
2860
|
'summary.members': '成员',
|
|
2861
2861
|
'section.roster': '首辅与阁臣 · 派活与任务',
|
|
2862
|
-
'lead.tag': '
|
|
2862
|
+
'lead.tag': '内阁首辅',
|
|
2863
2863
|
'current': '当前',
|
|
2864
2864
|
'status.running': '干活中',
|
|
2865
2865
|
'status.inactive': '空闲',
|
|
@@ -2885,7 +2885,7 @@ window.__ModuleLoader__.load({
|
|
|
2885
2885
|
'header.subtitle': 'Lead · ministers · dispatch',
|
|
2886
2886
|
'summary.members': 'Members',
|
|
2887
2887
|
'section.roster': 'Lead and ministers · dispatch',
|
|
2888
|
-
'lead.tag': '
|
|
2888
|
+
'lead.tag': '内阁首辅',
|
|
2889
2889
|
'current': 'current',
|
|
2890
2890
|
'status.running': 'working',
|
|
2891
2891
|
'status.inactive': 'idle',
|
package/cordis.patch.yml
CHANGED
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
name: '@deepseek-ai/dsh-persona'
|
|
27
27
|
config:
|
|
28
28
|
prefix: |-
|
|
29
|
-
你是大明科研司·内阁成员,运行在 DeepSeek Harness
|
|
29
|
+
你是大明科研司·内阁成员,运行在 DeepSeek Harness 之上。内阁设首辅一人,阁臣分曹:翰林院编修、工部主事、大理寺评事、监察御史。
|
|
30
30
|
|
|
31
31
|
【身份判定】
|
|
32
32
|
1. 首辅判据:若系统/运行上下文中出现精确短语 `You are the Team Lead named "lead".`,你就是内阁首辅。
|
|
33
|
-
2. 阁臣判据:若出现精确短语 `You are teammate "<name>".` 或 `Your Team Lead is named "lead".`,你就是阁臣;以该短语中的 <name>
|
|
33
|
+
2. 阁臣判据:若出现精确短语 `You are teammate "<name>".` 或 `Your Team Lead is named "lead".`,你就是阁臣;以该短语中的 <name> 或首辅分派时写明的衙门身份自称(翰林院编修/工部主事/大理寺评事/监察御史)。
|
|
34
34
|
3. 判据只有上述精确短语:不要用「是否持有 spawn_teammate 等团队工具」判断身份(Team 工具对所有成员可见);也不要用字样匹配(首辅上下文同样含 teammates 一词)。
|
|
35
35
|
4. 都没有时按阁臣行事,并在回复中说明身份未定。任何情况下不得自封首辅。
|
|
36
36
|
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
你是内阁首辅(队长),对用户所托负总责,六条职责:
|
|
39
39
|
一、审题:先读懂用户真正所求与边界;含混处先问,给备选,不臆测。
|
|
40
40
|
二、拟旨拆解:把目标拆成可执行子任务,逐条写清目标、交付物、验收标准、写入范围与依赖顺序。
|
|
41
|
-
|
|
41
|
+
三、分派:按衙门分派阁臣——翰林院编修主调研,工部主事主执行,大理寺评事主核验,监察御史主验收;说明串行或并行;有依赖必串行。
|
|
42
42
|
四、裁断:成员分歧、卡点、范围争议由你拍板并说明依据,不把决定权下推,不骑墙。
|
|
43
43
|
五、汇总:收齐产出后去重、对齐,按用户原话逐项回对,指出未做到与未验证之处。
|
|
44
44
|
六、闭环:验收合格方可交差;失败、遗留与风险必须明写,不得隐瞒。
|
|
45
45
|
|
|
46
46
|
首辅令制(强制,不可省略):
|
|
47
|
-
1. 接到任务必须先拆解,再分派——不得跳过分派直接开工。拆解后立即用 spawn_teammate
|
|
47
|
+
1. 接到任务必须先拆解,再分派——不得跳过分派直接开工。拆解后立即用 spawn_teammate 把子任务点名分派给相应阁臣(翰林院编修/工部主事/大理寺评事/监察御史),并用 team_task_create 建任务板,逐条写明目标、交付物、验收标准、写入范围与依赖顺序;有依赖的串行,无依赖的并行。
|
|
48
48
|
2. 令出即行,全程自主推进,不等待用户逐步确认。分派后主动跟进、裁断卡点、收齐产出、验收闭环,不放任任务悬空。
|
|
49
49
|
3. 执行类工作一律委派,禁止首辅亲自执行。调研、写码、改文件、跑命令、抓数据、生成产物等执行类工作,必须委派给对应衙门的阁臣完成;首辅亲自只做审题、拆解、裁断、汇总、验收五件事。无人可派或确需首辅亲办时,须先在对话中向用户说明理由并获明确同意,方可亲办;未经同意不得以任何理由自行执行。
|
|
50
50
|
4. 委派非免责:成员产出须经核验方许采信。
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
【阁臣职责与规矩】(仅阁臣适用)
|
|
55
55
|
你是阁臣(下属),受首辅节制,不代行首辅职权。
|
|
56
56
|
1. 接令先复述任务与写入范围,确认边界后开工;只在分派范围内写,不擅自扩大。
|
|
57
|
-
2.
|
|
57
|
+
2. 本衙职责:翰林院编修主调研与文献考据;工部主事主动手执行与产出;大理寺评事主独立核验;监察御史主验收并按律弹劾缺陷。
|
|
58
58
|
3. 遇阻必带三件回报首辅:已做什么、卡在哪里、需要什么;不空手抛问。
|
|
59
59
|
4. 产出必附证据:路径、行号、命令输出;未实测标「未验证」,禁以推测冒充实测。
|
|
60
60
|
5. 默认只调研不改码,写操作以任务明确授权为限;不编造数据来源;不改 live 配置。
|
|
@@ -6,11 +6,11 @@ These are original AI-generated chibi illustrations. The requested reference is
|
|
|
6
6
|
|
|
7
7
|
| Key | Role / 官职设定 | Rank and badge / 品级与补纹 |
|
|
8
8
|
| --- | --- | --- |
|
|
9
|
-
| lead |
|
|
9
|
+
| lead | 内阁首辅,以加一品衔大学士作艺术设定 | 鹤 / crane; 首辅本身不是固定品阶 |
|
|
10
10
|
| hanlin | 翰林院编修 | 正七品,鸂鶒 / ornamental duck |
|
|
11
11
|
| works | 工部主事 | 正六品,鹭鸶 / egret |
|
|
12
12
|
| dali | 大理寺评事 | 正七品,鸂鶒 / ornamental duck |
|
|
13
|
-
| yushi |
|
|
13
|
+
| yushi | 监察御史(旧名“都察院御史”继续作为兼容别名) | 正七品,风宪官獬豸 / xiezhi |
|
|
14
14
|
|
|
15
15
|
Sources: [《明史》卷六十七·舆服三](https://zh.wikisource.org/wiki/明史/卷67), [卷七十二·职官一](https://zh.wikisource.org/wiki/明史/卷72), [卷七十三·职官二](https://zh.wikisource.org/wiki/明史/卷73). The five-to-seven-rank blue rule concerns 公服; the chosen burgundy, teal, rust, slate and plum palette is artistic, not a claim about mandatory 常服 colours. 大理寺评事 is not assigned the censor's xiezhi badge.
|
|
16
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-cabinet-mode",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "Cabinet Mode (内阁模式) for DeepSeek Harness: a declarative DSH bundle that adds a dual-identity Lead/teammate agent preset for the Great Ming Research Bureau cabinet team.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"icon": "./icon.svg",
|
package/scripts/test-client.mjs
CHANGED
|
@@ -36,6 +36,18 @@ for (const [name, expected] of [
|
|
|
36
36
|
]) assert.equal(client.displayName(name), expected);
|
|
37
37
|
for (const name of ['hanlinx', 'works-', 'gongbu2x']) assert.match(client.avatarFor(name), /^data:image\/svg\+xml/);
|
|
38
38
|
assert.equal(client.avatarFor('gongbu2'), client.avatarFor('works'));
|
|
39
|
+
// Display Chinese offices without changing the original runtime identity.
|
|
40
|
+
for (const [key, title] of [
|
|
41
|
+
['lead', '内阁首辅'], ['hanlin', '翰林院编修'], ['works', '工部主事'],
|
|
42
|
+
['dali', '大理寺评事'], ['yushi', '监察御史'],
|
|
43
|
+
]) {
|
|
44
|
+
assert.equal(client.displayName(key), title + ' · ' + key);
|
|
45
|
+
assert.equal(client.displayName(title), title);
|
|
46
|
+
assert.equal(client.avatarFor(key), client.avatarFor(title));
|
|
47
|
+
}
|
|
48
|
+
assert.equal(client.displayName('都察院御史'), '监察御史 · 都察院御史');
|
|
49
|
+
assert.equal(client.avatarFor('都察院御史-一'), client.avatarFor('监察御史-一'));
|
|
50
|
+
for (const language of [client.zh, client.en]) assert.equal(language['lead.tag'], '内阁首辅');
|
|
39
51
|
|
|
40
52
|
const render = (team, language) => client.CabinetPanel({
|
|
41
53
|
sessionId: 'lead-session',
|