@ai-agent-forge/plugin-subagent-delegate 0.88.1 → 0.88.3

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/MANUAL.md ADDED
@@ -0,0 +1,23 @@
1
+ # subagent-delegate 能力手册(AI 用)
2
+
3
+ 多代理编排:把可并行的独立子任务委派给子代理会话执行,主会话保持轻量。子代理有自己的上下文、工具面与模型,结果回传主会话。
4
+
5
+ ## 工具速查
6
+
7
+ | 工具 | 用途 |
8
+ | --- | --- |
9
+ | subagent_run | 委派新子代理任务(单次最多 4 个并发) |
10
+ | subagent_list | 列出本会话的子代理与状态 |
11
+ | subagent_result | 读取(等待)子代理结果 |
12
+ | subagent_send / subagent_inbox | 向子代理发消息 / 收信箱 |
13
+ | subagent_steer | 运行中转向(补充指令) |
14
+ | subagent_cancel / subagent_resume | 取消 / 恢复 |
15
+ | subagent_escalate | 子代理向主会话升级问题 |
16
+ | subagent_role_set / role_list / role_remove | 角色(系统提示+工具档案)管理 |
17
+
18
+ ## 使用原则
19
+
20
+ 1. **只委派可独立完成的任务**:明确输入/输出/验收;需要共享实时状态或频繁往返的活自己干。
21
+ 2. **角色隔离**:用 `role_set` 定义的角色按"术有专攻"分工(explore/reviewer/design-proposer 等),不要把编码任务给审查角色。
22
+ 3. **结果有界**:子代理回报是摘要与结论,不是全量文件内容;需要细节让子代理写文件、主会话按路径读。
23
+ 4. 并发上限与队列深度、超时由插件 config 管控(默认 8 并发/任务 5 分钟超时),超限调用会得到结构化错误。
package/README.md CHANGED
@@ -16,7 +16,11 @@ capability (D-075 S4, third batch).
16
16
  - `api.host.communication` → `communicationWiring`
17
17
  - `api.host.turnContext.backgroundDigestSink` / `getTurnCorrelationId`
18
18
  - `api.host.agentDir` + `api.host.roleAssociations` → role catalog (after an
19
- idempotent factory seed of `<agentDir>/roles/`)
19
+ idempotent factory seed of `<agentDir>/roles/`: `explore`, `reviewer`,
20
+ `design-proposer`, `visual-reviewer` — the latter two are the visual
21
+ baseline roles (2026-10-04, "术有专攻"): read-only profile narrowed to
22
+ `["read"]`, instructions embed the aesthetic baseline assets; see
23
+ `docs/plans/视觉保底角色设计注记.md`)
20
24
  - `api.host.agentDir` → the nested-depth lineage gate source
21
25
  - auto-pooling is driven by the existing config key `runnerEntryAuto`
22
26
  - Config channel: hosts declaring `api.host.agentDir` get
package/agent-forge.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "packageFormatVersion": 1,
3
3
  "id": "agent-forge.plugin.subagent-delegate",
4
- "pluginVersion": "0.88.1",
4
+ "pluginVersion": "0.88.3",
5
5
  "apiVersion": "1",
6
6
  "minHostVersion": "0.84.4",
7
7
  "platform": {
@@ -161,8 +161,9 @@ export interface SubagentCancelResultV1 {
161
161
  * - 共享目录 `<agentDir>/roles/<id>.json` → `{ "description": …, "instructions": … }`;
162
162
  * - 可见性由**当前方案**决定:只有 `suite.associations.roles` 关联到的 id 才出现在
163
163
  * `subagent_run` 的菜单里;没关联的角色对主代理不可见(不报错)。
164
- * - 工厂只做**种子落盘**({@link seedFactoryRoleCatalog},首次缺文件时写入 explore/reviewer
165
- * 两个普通文件,可改可删),默认方案关联它们,因此开箱即用;引擎从不回退到编译内的定义。
164
+ * - 工厂只做**种子落盘**({@link seedFactoryRoleCatalog},首次缺文件时写入 explore/reviewer/
165
+ * design-proposer/visual-reviewer 四个普通文件,可改可删),默认方案关联它们,因此开箱即用;
166
+ * 引擎从不回退到编译内的定义。
166
167
  *
167
168
  * 角色今天**确定性地决定子任务的任务框定**(instructions 组装进送交子会话的提示词),
168
169
  * 但**不改变子会话的模型与工具面**——后者需要"子任务档案"这一公共契约(见
@@ -307,8 +308,8 @@ export declare function resolveSubagentRoleCatalog(options: {
307
308
  /** 角色文件名(`<agentDir>/roles/<id>.json`),供种子与目录与文档共用一处。 */
308
309
  export declare function subagentRoleCatalogPath(agentDir: string, id: string): string;
309
310
  /**
310
- * 出厂种子落盘(仅补缺,绝不覆盖既有文件):默认方案关联 explore/reviewer,
311
- * 因此新环境开箱即用;这两个文件与用户自己写的角色完全同权——改文件即生效,
311
+ * 出厂种子落盘(仅补缺,绝不覆盖既有文件):默认方案关联四个种子角色,
312
+ * 因此新环境开箱即用;这些文件与用户自己写的角色完全同权——改文件即生效,
312
313
  * 删文件使关联成为 dangling 诊断。引擎运行期从不回退到编译内的角色定义。
313
314
  */
314
315
  export declare function seedFactoryRoleCatalog(agentDir: string): void;