feat(core): Artifact Metadata Binding (${env|arg|sys|secret})

Load-time resolve of frontmatter bindings into Module.metadata; Secret
masking; sys.meta / --bind; llm ctor prefers meta over env_get.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-09-24 19:51:24 +08:00
1 parent 4a2d89406b
commit 88dc6d5a54
31 files changed
+2466 -49

No files matched your search

+1
View File
@@ -98,6 +98,7 @@ pub fn api_debug_start(root: &Path, body: &str) -> serde_json::Value {
};
let mut host = HostContext::for_capture(Some(&path_for_thread), opts.host_caps());
host.fs_root = Some(root_for_thread);
host.entry_metadata = module.metadata.clone();
if let Some(lim) = opts.sleep_limit_ms {
host.sleep_limit_ms = Some(lim);
}