Add parent Plan-and-Move: CALL/READ tools and quiet I/O capture.

Give the plan loop actionable observation (source excerpts, stderr/stdout tails) and short stop rules so the parent can inspect children and use stdlib helpers instead of inventing long patches.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-08-11 09:11:15 +08:00
1 parent 7e3b193d49
commit dbb2765553
14 files changed
+932 -130

No files matched your search

+4 -2
View File
@@ -13,8 +13,10 @@ description: Concurrent subtasks — file, function, or foreign code
+ `stdin`=None
+ `quiet`=True
File children are silent by default; set `quiet=False` to inherit parent stdout/stderr.
File `wait` returns `{code, value}` where `value` is the child's `# main` return (not stdout).
File children are silent by default (`quiet=True`: piped capture, no TTY noise).
Set `quiet=False` to inherit parent stdout/stderr.
File `wait` returns `{code, value}` plus optional `stdout`/`stderr` tails when quiet-captured.
`value` is the child's `# main` return (not stdout).
**> host_subtask_spawn path=`path` fn=`fn` args=`args` code=`code` lang=`lang` source=`source` stdin=`stdin` quiet=`quiet`**
+3 -2
View File
@@ -13,8 +13,9 @@ description: 并发子任务 — 文件、函数或外联代码
+ `输入`=None
+ `静默`=True
文件子任务默认静默;`静默=假` 时继承父进程终端输出。
文件 `等待` 返回 `{code, value}`,`value` 为子 `# main` 返回值(不是 stdout)。
文件子任务默认静默(`静默=真`:管道捕获 stdout/stderr,不污染父终端)。
`静默=假` 时继承父进程终端输出。
文件 `等待` 返回 `{code, value}`,静默捕获时另含截断的 `stdout`/`stderr`;`value` 为子 `# main` 返回值。
**> host_subtask_spawn path=`路径` fn=`函数` args=`参数` code=`代码` lang=`语言` source=`源码` stdin=`输入` quiet=`静默`**