@zhushanwen/pi-subagent-workflow 5.0.1 → 5.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhushanwen/pi-subagent-workflow",
3
- "version": "5.0.1",
3
+ "version": "5.0.2",
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.",
@@ -313,7 +313,7 @@ function buildReviewCall(def, round, max, batchIndex, roundDir, scoped) {
313
313
  model: MODEL || def.model,
314
314
  schema: reviewerSchema,
315
315
  description: def.name,
316
- timeoutMs: 1_800_000,
316
+ timeoutMs: 3_600_000, // 1h(只读审查 + retry 退避余量)
317
317
  // returnMeta: true — 与 recursive-split 脚本的 executeActionAgent 对齐:失败时 resolve
318
318
  // {value, error},raw.error 可检测(review- 前缀兜底/结构化终止可达);成功时
319
319
  // value = parsedOutput ?? content,parseResult 作用于 raw.value(MF-1)。
@@ -558,7 +558,7 @@ for (let batchIndex = 1; batchIndex <= BATCHES.length; batchIndex++) {
558
558
  model: MODEL,
559
559
  schema: aggregatorSchema,
560
560
  description: "aggregate",
561
- timeoutMs: 1_800_000,
561
+ timeoutMs: 3_600_000, // 1h
562
562
  returnMeta: true,
563
563
  });
564
564
 
@@ -788,9 +788,8 @@ for (let batchIndex = 1; batchIndex <= BATCHES.length; batchIndex++) {
788
788
  // frontmatter model 字段同样生效(之前丢弃了 FIX_DEF.model,只在 review 阶段消费)
789
789
  model: MODEL || (FIX_DEF && FIX_DEF.model),
790
790
  description: (FIX_DEF && FIX_DEF.name) || "fix",
791
- // info #15: 显式 timeoutMs review/aggregator 档位一致(fix 是写操作中最长阶段,
792
- // 不依赖引擎默认值——引擎默认值变化不会悄然缩短 fix 预算)
793
- timeoutMs: 1_800_000,
791
+ // fix 不设 timeoutMs = 不限时(execute-options-mapper: undefined/<=0 → 不设超时)。
792
+ // 带写操作(改项目代码)可能很久(大重构/多文件),不应被墙钟超时打断。
794
793
  returnMeta: true,
795
794
  ...(FIX_DEF && !FIX_DEF.isCustom ? { agent: FIX_DEF.name } : {}),
796
795
  });