Extend ext/agent with skill match/assign and multi-column tables.

Compose ext/llm, add ABI match_skill/bump_load, map-valued GFM tables, and agent-assign gold coverage.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-08-06 13:46:34 +08:00
1 parent 3a7e11c995
commit c4ffb9473f
15 files changed
+476 -31

No files matched your search

+17
View File
@@ -253,6 +253,23 @@ impl Vm {
items.reverse();
stack.push(Value::List(items));
}
Op::BuildMap(n) => {
let n = n as usize;
let mut pairs = Vec::with_capacity(n);
for _ in 0..n {
let v = pop(&mut stack).map_err(|m| self.err_at(span, m))?;
let k = pop(&mut stack).map_err(|m| self.err_at(span, m))?;
let ks = match k {
Value::Text(s) => s,
_ => {
return Err(self.err_at(span, "map key must be text"));
}
};
pairs.push((ks, v));
}
pairs.reverse();
stack.push(Value::Map(pairs));
}
Op::Len => {
let v = pop(&mut stack).map_err(|m| self.err_at(span, m))?;
let n = builtin_len(&v).map_err(|m| self.err_at(span, m))?;