@yusukeshib/pi-babysit 0.6.25 → 0.6.26
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/README.md +4 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -235,6 +235,10 @@ targeted pattern over a broad tail, and do not read a potentially large log file
|
|
|
235
235
|
in full. Subagent crashes return structured errors plus the full log path, never
|
|
236
236
|
a raw RPC JSON tail.
|
|
237
237
|
|
|
238
|
+
Subagents run in RPC mode with normal Pi session persistence enabled, using
|
|
239
|
+
Pi's configured session storage (by default `~/.pi/agent/sessions/`). Each worker
|
|
240
|
+
has its own Pi session, separate from the parent and from babysit's output log.
|
|
241
|
+
|
|
238
242
|
Subagent logs compact Pi's streaming `message_update` events before they are
|
|
239
243
|
recorded. Pi repeats the complete growing assistant message and partial snapshot
|
|
240
244
|
on every token; pi-babysit retains only the incremental delta. Compact RPC
|
package/index.ts
CHANGED
|
@@ -2319,7 +2319,7 @@ async function spawnSubagent(
|
|
|
2319
2319
|
// Long-lived RPC worker: the task is NOT passed as argv — it is injected
|
|
2320
2320
|
// below as an RPC `prompt` command, whose response we validate so spawn
|
|
2321
2321
|
// failures (bad model, missing API key) are loud instead of a silent exit=1.
|
|
2322
|
-
const piArgs: string[] = ["--mode", "rpc"
|
|
2322
|
+
const piArgs: string[] = ["--mode", "rpc"];
|
|
2323
2323
|
const model = opts.model ?? opts.agent?.model;
|
|
2324
2324
|
if (model) piArgs.push("--model", model);
|
|
2325
2325
|
const tools = opts.tools ?? opts.agent?.tools;
|