dsh-rolegroup 0.12.1 → 0.12.2

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
@@ -9,6 +9,35 @@
9
9
 
10
10
  ---
11
11
 
12
+ ## [0.12.2] — 2026-11-20
13
+
14
+ ### Fixed
15
+
16
+ - 角色公告此前写「角色不继承你的上下文」,容易把「不继承父会话对话」误读成「没有 AGENTS.md 和技能目录」。
17
+ 现明确:角色不继承父会话的对话历史或已加载的技能正文;项目指令与技能目录由角色 preset 按子会话 cwd
18
+ 重新组合,简报仍须自包含。README 中英同步澄清。
19
+
20
+ ### Added
21
+
22
+ - 新增两条离线回归断言:① 角色 preset 保留 `agent-instructions`、`skill-filesystem` 和 `tool-skill`,只剔除
23
+ delegation 组;② 公告逐字保留上述上下文边界。
24
+ - README 中英新增「与规格驱动工作流配合」用法:OpenSpec 的 `status` / `instructions apply` 输入如何交给
25
+ coder、并行 coder 时主会话独占任务状态勾选、`validate` 不能替代 verify 或 specs diff。这里记录的是使用约定,
26
+ 不是新增 OpenSpec 集成功能。
27
+
28
+ ### 验证
29
+
30
+ - `npm test` 160 passed;`npm run build:client` 重建成功;`git diff --check` 通过。
31
+ - 证伪:临时过滤 `tool-skill` → preset 断言变红;临时改回公告旧句 → 公告断言变红;恢复后全绿。
32
+ - 独立 reviewer 核对无阻塞项;其指出的 `changeRoot`(来自 `status`)与 `contextFiles` / 任务位置(来自
33
+ `instructions apply`)归属问题已修正。
34
+
35
+ Clarifies that role children do not inherit parent conversation history or loaded skill bodies, while project
36
+ instructions and skill catalogs are recomposed from the role preset for the child cwd. Adds regression coverage and
37
+ bilingual guidance for specification-driven workflows.
38
+
39
+ ---
40
+
12
41
  ## [0.12.1] — 2026-11-19
13
42
 
14
43
  ### Fixed
package/README.en.md CHANGED
@@ -7,7 +7,7 @@ instance, so the tool name is the role name.
7
7
  The role/category binding is inspired by
8
8
  [oh-my-openagent](https://github.com/code-yeongyu/oh-my-openagent) ("omo"); see §9.
9
9
 
10
- > Version **0.12.1** | dsh **≥ 0.2.1-rc.1** (verified on 0.2.2-rc.5) | MIT
10
+ > Version **0.12.2** | dsh **≥ 0.2.1-rc.1** (verified on 0.2.2-rc.5) | MIT
11
11
  >
12
12
  > The settings-page nav icon only shows on dsh ≥ 0.2.2-rc.5 (the official `settings.section.icon`
13
13
  > slot exists from that version); everything else works on older releases.
@@ -137,8 +137,7 @@ See **[MODELS.en.md](./MODELS.en.md)** for the built-in default model per role.
137
137
 
138
138
  ### Delegation quality
139
139
 
140
- Roles do not inherit the parent's context; the more specific the brief, the more usable the result. The
141
- plugin gives the main model a fixed template in the system prompt:
140
+ Roles do not inherit the parent session's conversation history or the bodies of skills already loaded there. The role preset recomposes the project `AGENTS.md` instructions and skill catalog for the child session's cwd, so the brief still needs to be self-contained. The more specific the brief, the more usable the result. The plugin gives the main model a fixed template in the system prompt:
142
141
 
143
142
  - A brief should state: background, goal, constraints, acceptance, known facts (`file:line`), claims to verify;
144
143
  - Factual conclusions need verifiable evidence: `file:line` for code, command and output for runtime results,
@@ -156,6 +155,14 @@ The degraded and model-unadvertised warnings can coexist, and preflight risk nam
156
155
 
157
156
  Use `scout` for code location and fact-finding, `reviewer` for acceptance-criteria closing review, and `analyst` for design judgement. For implementation, use `coder` when a structured plan or spec already exists (with its path supplied in the brief); if no plan has been formed, you may delegate to `planner` first.
158
157
 
158
+ #### Working with specification-driven workflows
159
+
160
+ These are usage conventions, not a built-in OpenSpec integration.
161
+
162
+ - For OpenSpec, the main session should pass `coder` the `changeRoot` returned by `status`, plus the `contextFiles`, required context, and each task's `sourcePath` / `line` returned by `instructions apply`, rather than only the change name;
163
+ - When several `coder` agents run in parallel, only the main session checks off items in task status files; each `coder` changes code and tests only. With one `coder` working serially, it can check items off as directed by the apply skill;
164
+ - `openspec validate <change> --strict` checks structure. It does not replace verify or prove that specs were left unchanged; inspect `git diff` for spec changes.
165
+
159
166
  ## 4. Configuration
160
167
 
161
168
  Two layers: the built-in table (factory defaults) and panel overrides (optional).
package/README.md CHANGED
@@ -6,7 +6,7 @@ dsh 的角色化委派插件。先定义角色(名字、绑定模型、persona
6
6
  角色/类别绑定的思路参考了 [oh-my-openagent](https://github.com/code-yeongyu/oh-my-openagent)(omo),
7
7
  详见 §9。
8
8
 
9
- > 版本 **0.12.1** | 要求 dsh **≥ 0.2.1-rc.1**(本机实测 0.2.2-rc.5)| MIT
9
+ > 版本 **0.12.2** | 要求 dsh **≥ 0.2.1-rc.1**(本机实测 0.2.2-rc.5)| MIT
10
10
  >
11
11
  > 设置页导航图标只在 dsh ≥ 0.2.2-rc.5 上显示(官方 `settings.section.icon` 槽位从该版本起提供);
12
12
  > 低版本其余功能不受影响。
@@ -128,7 +128,7 @@ dsh --profile web --dump-config | grep -A1 dsh-rolegroup # 应出现 - id: dsh
128
128
 
129
129
  ### 委派质量
130
130
 
131
- 角色不继承父会话上下文,简报越具体,返回越可用。插件在系统提示里给主模型一段固定模板:
131
+ 角色不继承父会话的对话历史或已加载的技能正文;项目 `AGENTS.md` 和技能目录由角色 preset 按子会话 cwd 重新组合,简报仍需自包含。简报越具体,返回越可用。插件在系统提示里给主模型一段固定模板:
132
132
 
133
133
  - 简报至少写:背景、目标、约束、验收、已知事实(文件:行号)、待核验命题;
134
134
  - 事实性结论必须有可核验依据:代码事实给文件:行号,运行结果给命令与输出,图片给区域/坐标,外部事实给原始来源;引用逐字,无法复现的按 UNVERIFIED 处理;
@@ -141,6 +141,14 @@ dsh --profile web --dump-config | grep -A1 dsh-rolegroup # 应出现 - id: dsh
141
141
 
142
142
  代码定位与事实取证用 `scout`;带验收标准的收口核对用 `reviewer`;设计判断用 `analyst`。实现任务已有结构化计划或规格时用 `coder`(路径随简报给出),未形成计划的可先派 `planner`。
143
143
 
144
+ #### 与规格驱动工作流配合
145
+
146
+ 以下是使用约定,不是插件内置的 OpenSpec 集成。
147
+
148
+ - OpenSpec 示例:主会话把 `status` 返回的 `changeRoot`,以及 `instructions apply` 返回的 `contextFiles`、必需 context、任务的 `sourcePath` / `line` 等交给 `coder`,不要只给 change 名;
149
+ - 多个 `coder` 并行时,主会话独占任务状态文件的勾选,`coder` 只改代码和测试;串行使用单个 `coder` 时,可由它按 apply 技能勾选;
150
+ - `openspec validate <change> --strict` 只做结构检查,不替代 verify,也不能证明 specs 没被修改;specs 差异应看 `git diff`。
151
+
144
152
  ## 4. 配置
145
153
 
146
154
  配置有两层:内置表(出厂默认)和面板覆盖(可选)。
package/lib/client.js CHANGED
@@ -102,7 +102,7 @@ var init_settings_nav_icon = __esm({
102
102
  var PLUGIN_VERSION, PLUGIN_REPO_URL;
103
103
  var init_meta = __esm({
104
104
  "src/client/meta.js"() {
105
- PLUGIN_VERSION = true ? "0.12.1" : "dev";
105
+ PLUGIN_VERSION = true ? "0.12.2" : "dev";
106
106
  PLUGIN_REPO_URL = "https://github.com/zhouxnsz/dsh-rolegroup";
107
107
  }
108
108
  });
package/lib/roles.js CHANGED
@@ -387,7 +387,7 @@ export function roleAnnouncement(roles, options = {}) {
387
387
  ...lines,
388
388
  '使用约定:角色工具仅主会话可用,均为一次性委派(不可再嵌套委派);委派会立即返回 subagent 名称,任务完成时你会收到完成通知(不要轮询等待)。',
389
389
  '委派时 `description` 会作为子任务标题显示在页面上;请写成「任务摘要 · provider/model」,例如「登录校验实现 · kimi-coding/k3.1-pro」,方便一眼看出用了哪个模型。',
390
- '把任务简报写完整:背景、目标、约束、验收、已知事实(文件:行号)、待核验命题;角色不继承你的上下文,未分类的轻量任务用 `fallback`。',
390
+ '把任务简报写完整:背景、目标、约束、验收、已知事实(文件:行号)、待核验命题;角色不继承父会话的对话历史或已加载的技能正文,项目指令与技能目录由角色 preset 按子会话 cwd 重新组合,简报仍须自包含;未分类的轻量任务用 `fallback`。',
391
391
  '不要预设结论分布(不要写「应该全真/应该有问题」),引用逐字。事实性结论必须有可核验依据:代码事实给文件:行号,运行结果给命令与输出,图片给区域/坐标,外部事实给原始来源;无法复现的按 UNVERIFIED 处理。',
392
392
  '子任务结论是输入,不是裁决:抽查引用。代码定位/事实取证用 scout;带验收标准的收口核对用 reviewer;设计判断用 analyst。',
393
393
  '实现任务:已有结构化计划或规格的用 coder(路径随简报给出);未形成计划的可先派 planner。',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-rolegroup",
3
- "version": "0.12.1",
3
+ "version": "0.12.2",
4
4
  "description": "角色化委派插件:把「这类活该用哪个模型」固化为角色(名字 + 绑定模型 + persona),按角色名委派 · Role-based delegation: bind each kind of work to a model once and delegate by role name",
5
5
  "icon": "assets/icon.svg",
6
6
  "license": "MIT",