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:
1 parent
3a7e11c995
commit
c4ffb9473f
15 files changed
+476
-31
No files matched your search
@@ -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))?;
|
||||
|
||||
Reference in new issue
Block a user