Commit graph

183 commits

Author SHA1 Message Date
James Long
0a2e119c59 refactor(codemode): break the VM import cycle
Mode, Frame, CustomIter and VmInternalFn move to frame.ts so the VM's
helper modules import only the Vm type. Snapshots no longer run through
Vm: captureVm and restoreVm are called directly, and the Interpreter and
AsyncFromSyncIterator codec specs move from the generic codec to
snapshot.ts. generators.ts makes its promise capability through the
scheduler instead of importing runtime/promises.ts.
2026-11-17 14:36:47 +00:00
Aiden Cline
eaa6075572
feat(codemode): add Node's Buffer (#64365) 2026-11-16 23:55:30 -06:00
Aiden Cline
042badd23f
feat(codemode): let a synchronous global block on an Effect (#64363) 2026-11-16 23:54:45 -06:00
Aiden Cline
df46f6931d
fix(codemode): accept a plain string query in search (#64347) 2026-11-16 21:57:07 -06:00
Kit Langton
62d06fab22
feat(core): turn experimental schedules into automations (#64160) 2026-11-16 17:14:59 -08:00
Aiden Cline
27930d26c8
fix(codemode): suggest tools when a namespace is called (#63697) 2026-11-13 00:46:05 -06:00
Aiden Cline
e6f21f95cd
revert(core): restore tool dispatch before nested repair (#63630) 2026-11-13 00:06:23 +00:00
Aiden Cline
c80548e800
fix(core): honor plugin tool repairs in Code Mode (#63444) 2026-11-12 17:44:07 -06:00
Aiden Cline
a3d6e54b3d
fix(codemode): decode UTF-8 across chunk boundaries (#63600) 2026-11-12 20:30:06 +00:00
James Long
a73657f3f9
refactor(codemode): flatten the VM into src and remove two-engine leftovers (#63377) 2026-11-12 13:39:15 -05:00
James Long
72616be4db
refactor(codemode): remove the legacy interpreter; the VM is the only engine (#62642) 2026-11-11 11:25:37 -05:00
Aiden Cline
59ed43f0b8
feat(codemode): rank tool search with name-weighted BM25 (#62984) 2026-11-10 19:44:40 -06:00
Aiden Cline
53f2d631df
feat(core): use freeform tool input on models that support it (#61703) 2026-11-10 15:15:25 -06:00
James Long
c33eaa170e
feat(codemode): idempotent and durable tools, and safe suspension on the VM (#62459)
Some checks failed
bot-nix-hashes / hash (blacksmith-4vcpu-ubuntu-2404, x86_64-linux) (push) Waiting to run
bot-nix-hashes / hash (blacksmith-4vcpu-ubuntu-2404-arm, aarch64-linux) (push) Waiting to run
bot-nix-hashes / hash (macos-latest, aarch64-darwin) (push) Waiting to run
bot-nix-hashes / compute (push) Blocked by required conditions
bot-nix-hashes / publish (push) Blocked by required conditions
check-nix / nix-eval (push) Waiting to run
check-test / affected packages (push) Waiting to run
check-test / unit (linux) (push) Waiting to run
check-test / unit (windows) (push) Waiting to run
check-test / build (linux) (push) Waiting to run
check-test / build (windows) (push) Waiting to run
check-test / e2e (, ) (push) Blocked by required conditions
check-test / e2e (linux) (push) Blocked by required conditions
check-test / e2e (windows) (push) Blocked by required conditions
check / typecheck (push) Waiting to run
deploy-files / deploy (push) Waiting to run
deploy-site / deploy (push) Waiting to run
deploy / deploy (push) Waiting to run
bot-docs-locale / sync-locales (push) Has been cancelled
Process daemon / Miri (callback ownership) (push) Has been cancelled
Process daemon / Core (macos-15) (push) Has been cancelled
Process daemon / Core (ubuntu-22.04) (push) Has been cancelled
Process daemon / Windows (arm64) (push) Has been cancelled
Process daemon / Windows (x64) (push) Has been cancelled
2026-11-07 13:06:40 -06:00
Filip
0f1ddb4643
fix: flaky CI tests and the app races behind them (#62597) 2026-11-07 18:50:37 +01:00
James Long
33f94fce96
feat(codemode): expose the VM's suspendable program API (#62413) 2026-11-06 16:44:13 -06:00
James Long
a04dc98d60
fix(codemode): drop test262 corpus symlinks committed by accident (#62394) 2026-11-06 12:51:26 -06:00
James Long
ffde0f7d47
feat(codemode): add a bytecode VM engine behind CodeMode.make({ engine: "vm" }) (#62357) 2026-11-06 11:37:45 -06:00
Aiden Cline
adcfc83d19
feat(codemode): let programs import globals by Node module name (#61151) 2026-11-01 21:52:57 -06:00
Aiden Cline
d9be7138b7
fix(codemode): copy extension results without trusting their own methods (#58031) 2026-10-29 21:56:25 -05:00
xjh
96c5c3a11a
fix(codemode): preserve null in text encoding (#57639) 2026-10-29 21:40:05 -05:00
Kit Langton
c24c5af3d8
feat(core): add Code Mode checks with static tool scanning to schedules (#60140) 2026-10-29 12:29:02 -07:00
Aiden Cline
ecc075a043
fix(codemode): visit inherited enumerable keys in for...in (#59933) 2026-10-28 23:44:28 -05:00
Aiden Cline
1c49e51303
fix(codemode): run extension before hooks before the host call (#60024) 2026-10-28 16:47:57 -05:00
Aiden Cline
711802c3a3
fix(codemode): let search be awaited or chained like a Promise (#59981) 2026-10-28 15:31:19 -05:00
Aiden Cline
a882cf98a0
feat(codemode): let extension globals return Effects (#59948) 2026-10-28 13:56:18 -05:00
Aiden Cline
c96d200de8
fix(codemode): report parse errors with a location and a hint (#59834) 2026-10-28 10:17:11 -05:00
Aiden Cline
2ed57439da
fix(codemode): explain a stalled program and point at the await that never settles (#59749) 2026-10-27 16:54:06 -05:00
Aiden Cline
e26f85bcd3
refactor(codemode): run programs on one job queue instead of a fiber per async call (#57976) 2026-10-27 12:13:30 -05:00
Rhys Sullivan
3b593dd5d2
fix(codemode): run each job to completion (#54276)
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-10-20 13:19:00 -05:00
Aiden Cline
db45c950a9
fix(codemode): honor Uint8Array.from mappers, compare byte searches without coercion, skip flatMap holes, and truncate fractional radixes (#57285)
Co-authored-by: r266-tech <r266-tech@users.noreply.github.com>
Co-authored-by: sdivyanshu90 <divyanshu74.80@gmail.com>
Co-authored-by: icearia0219 <133481415+icearia0219@users.noreply.github.com>
2026-10-20 00:16:55 -05:00
Kit Langton
1aae67e853
chore: upgrade Effect to rc.118 (#50231) 2026-10-09 01:36:06 -07:00
Aiden Cline
5335347e80
feat(codemode): add WeakMap and WeakSet (#51257) 2026-09-25 00:15:19 -05:00
Aiden Cline
962c14a49c
fix(codemode): honor thisArg, program toString in computed keys, and ToPrimitive in String and Number arguments (#51264) 2026-09-24 23:46:15 -05:00
Aiden Cline
8061220b08
test(codemode): vendor every eligible test262 directory and bound unsupported globals (#51242) 2026-09-24 20:19:24 -05:00
Aiden Cline
e23d89c9a9
fix(codemode): destructure object patterns from primitives and convert Date components through ToPrimitive (#51239) 2026-09-24 19:32:19 -05:00
Aiden Cline
5256f30957
feat(codemode): honor program valueOf and toString in operators and conversions (#50837) 2026-09-24 18:45:48 -05:00
Aiden Cline
56262121ee
feat(codemode): bind this and arguments in functions, add Function.prototype.call, apply, and bind (#50831) 2026-09-24 16:34:46 -05:00
Aiden Cline
a16eedfed7
fix(codemode): make derived error constructors inherit from Error (#51045) 2026-09-24 14:03:10 -05:00
Aiden Cline
318a8c1aba
feat(codemode): add Object.freeze/seal/create/getPrototypeOf and structuredClone (#50834) 2026-09-24 00:50:54 -05:00
Aiden Cline
dc48655743
fix(codemode): compare with == by IsLooselyEqual and stop deep-walking operands for opaque references (#50830) 2026-09-24 00:36:41 -05:00
Aiden Cline
14a3311a61
feat(codemode): add Uint8Array callback methods and coerce indexOf start indexes (#50829) 2026-09-23 10:27:40 -05:00
Aiden Cline
68b28bdb98
fix(codemode): coerce match/search patterns, allow any for...in target, bind the last duplicate parameter (#50802) 2026-09-22 23:32:27 -05:00
Aiden Cline
17abc5906b
feat(codemode): add tagged templates and String.raw (#50791) 2026-09-22 21:25:21 -05:00
James Long
bf6788b94c
test(codemode): extend promise limit timeout (#50693) 2026-09-22 13:22:21 -04:00
Aiden Cline
9fdcb8da41
fix(codemode): coerce built-in arguments as in JS instead of requiring numbers and strings (#50492) 2026-09-21 23:04:04 -05:00
Aiden Cline
6f8c5ae0aa
fix(codemode): bind generator parameters at the call, not the first next() (#50489) 2026-09-21 22:42:10 -05:00
Aiden Cline
651529d64e
fix(codemode): coerce any value to a property key (#50479) 2026-09-21 21:35:20 -05:00
Aiden Cline
1e1cd042ea
feat(codemode): name the closest tool in unknown-tool errors (#50455) 2026-09-21 18:14:31 -05:00
Aiden Cline
02566f6219
fix(codemode): live Map/Set forEach, generator prototypes, repeated function declarations, delete on non-references (#50450) 2026-09-21 18:09:45 -05:00