Add module namespaces and harden L1/agent after the import redesign.

Bind imports to library names with bare path calls (and use), forward optional host args through mq wrappers, stabilize writeback replacement newlines, and document the M1/M2 decisions.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-08-07 13:28:32 +08:00
1 parent 99132ac8fc
commit 1f23e2ed93
108 files changed
+3228 -1023

No files matched your search

+9 -10
View File
@@ -107,18 +107,17 @@ pub fn exec(ctx: &HostContext, cmd: &Value, args: Option<&Value>) -> Result<Valu
let cmd = as_text(cmd, "cmd")?;
let mut command = Command::new(cmd);
command.current_dir(&ctx.cwd);
if let Some(a) = args {
match a {
Value::List(xs) => {
for x in xs {
command.arg(x.as_display());
}
match args {
None | Some(Value::None) => {}
Some(Value::List(xs)) => {
for x in xs {
command.arg(x.as_display());
}
Value::Text(s) => {
command.arg(s);
}
_ => return Err("exec args must be list or text".into()),
}
Some(Value::Text(s)) => {
command.arg(s);
}
Some(_) => return Err("exec args must be list or text".into()),
}
let status = command
.status()