@zhushanwen/pi-subagent-workflow 5.0.0-dev.0 → 5.0.0-dev.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhushanwen/pi-subagent-workflow",
3
- "version": "5.0.0-dev.0",
3
+ "version": "5.0.0-dev.1",
4
4
  "type": "module",
5
5
  "main": "index.ts",
6
6
  "description": "Unified subagent execution and multi-agent workflow orchestration for Pi — spawned-process agent runtime with sync/background modes, stateful workflow management with persistence, state machine, and execution tracing.",
@@ -255,7 +255,9 @@ export function registerWorkflowTool(
255
255
  "scatter-gather (split→parallel→merge; args: task), " +
256
256
  "map-reduce (parallel map→reduce; args: items/itemsJson + operation), " +
257
257
  "review-fix-loop (multi-batch review→fix loop; args: targetType + target required, " +
258
- "batch1..batchN required (no default)). " +
258
+ "batch1..batchN required (no default); optional fixAgent (builtin agent name or agent.md " +
259
+ "path — same value semantics as batchN agents, consumed in fix phase) + " +
260
+ "maxFixAttempts/convergeNewIssues/convergeRounds for fix convergence control). " +
259
261
  "Example: {\"action\":\"run\",\"name\":\"parallel\",\"args\":{\"target\":\"src/auth.ts\"}}. " +
260
262
  "Use review-fix-loop when the user wants iterative code/doc review with fixes until clean " +
261
263
  "(it is the ONLY built-in workflow that writes files; autoCommit defaults to false). " +
@@ -783,8 +783,10 @@ for (let batchIndex = 1; batchIndex <= BATCHES.length; batchIndex++) {
783
783
  caution: agg.fixes_caution && agg.fixes_caution.length ? agg.fixes_caution : [],
784
784
  }),
785
785
  schema: fixSchema,
786
- model: MODEL,
787
- description: "fix",
786
+ // 与 buildReviewCall 的 model: MODEL || def.model 对齐:custom fixer.md 的
787
+ // frontmatter model 字段同样生效(之前丢弃了 FIX_DEF.model,只在 review 阶段消费)
788
+ model: MODEL || (FIX_DEF && FIX_DEF.model),
789
+ description: (FIX_DEF && FIX_DEF.name) || "fix",
788
790
  // info #15: 显式 timeoutMs 与 review/aggregator 档位一致(fix 是写操作中最长阶段,
789
791
  // 不依赖引擎默认值——引擎默认值变化不会悄然缩短 fix 预算)
790
792
  timeoutMs: 1_800_000,