pi-crew 0.1.27 → 0.1.28
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 +4 -0
- package/package.json +1 -1
- package/src/config/defaults.ts +3 -1
- package/src/runtime/child-pi.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.28
|
|
4
|
+
|
|
5
|
+
- Fixed child-process workers being terminated after only 15 seconds of quiet provider/tool time by increasing the default response watchdog to five minutes and clarifying the timeout error message.
|
|
6
|
+
|
|
3
7
|
## 0.1.20
|
|
4
8
|
|
|
5
9
|
- Reworked the implementation workflow into an adaptive planner-led orchestration flow that decides the number, roles, and phases of subagents from the task instead of using a fixed fanout template.
|
package/package.json
CHANGED
package/src/config/defaults.ts
CHANGED
|
@@ -2,7 +2,9 @@ export const DEFAULT_CHILD_PI = {
|
|
|
2
2
|
postExitStdioGuardMs: 3000,
|
|
3
3
|
finalDrainMs: 5000,
|
|
4
4
|
hardKillMs: 3000,
|
|
5
|
-
|
|
5
|
+
// Child workers can spend more than a few seconds in provider calls or long-running tools without emitting stdout.
|
|
6
|
+
// Keep this as a coarse stuck-worker guard rather than a short per-message latency budget.
|
|
7
|
+
responseTimeoutMs: 5 * 60_000,
|
|
6
8
|
maxCaptureBytes: 256 * 1024,
|
|
7
9
|
maxAssistantTextChars: 8192,
|
|
8
10
|
maxToolResultChars: 1024,
|
package/src/runtime/child-pi.ts
CHANGED
|
@@ -424,7 +424,7 @@ export async function runChildPi(input: ChildPiRunInput): Promise<ChildPiRunResu
|
|
|
424
424
|
activeChildProcesses.delete(child.pid);
|
|
425
425
|
clearHardKillTimer(child.pid);
|
|
426
426
|
}
|
|
427
|
-
const timeoutError = responseTimeoutHit && !stderr.trim() ? { error: `Child Pi
|
|
427
|
+
const timeoutError = responseTimeoutHit && !stderr.trim() ? { error: `Child Pi produced no new output for ${responseTimeoutMs}ms; process was terminated as unresponsive.` } : undefined;
|
|
428
428
|
settle({ exitCode, stdout, stderr, ...(forcedFinalDrain && !stderr.trim() ? { error: `Child Pi did not exit within ${finalDrainMs}ms after final assistant message; termination was requested.` } : {}), ...(timeoutError ? { error: timeoutError.error } : {}) });
|
|
429
429
|
});
|
|
430
430
|
});
|