Make file subtasks return #main value and expose it as plan.result.

Quiet spawn still hides child stdout; workbooks solidify to **returns**, agent-kb lives in the plugin, and multi-step follows OKF file relay rather than print-based answers.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-08-07 17:53:14 +08:00
1 parent fbece725e1
commit d1b33c78c6
55 files changed
+3498 -169

No files matched your search

+2 -2
View File
@@ -8,7 +8,7 @@ pub mod agent_rt;
mod dispatch;
pub mod foreign;
mod fs;
mod json;
pub(crate) mod json;
pub mod math;
mod net;
pub mod plugin;
@@ -78,7 +78,7 @@ pub struct HostContext {
/// Entry-file line of each active user call (for writeback anchoring).
pub call_site_lines: Vec<u32>,
/// Concurrent subtasks (`lib/subtask`): file / function / foreign.
pub subtasks: HashMap<u64, subtask::Handle>,
pub(crate) subtasks: HashMap<u64, subtask::Handle>,
pub subtask_seq: u64,
}