pi-mono/packages/codemode/test
Armin Ronacher 18b142f2fe fix(codemode,durable,coding-agent): start() runs in one remote session; review fixes
- RemoteCodemodeSandbox ran start() step by step, saving the whole heap after
  every step (and failing on a WeakRef). Sandboxes now open a run with its
  lifetime (session or saved), and a start() run is one session on the remote,
  as on main.
- start()'s tests run on the worker, inline, and remote sandboxes again, with
  main's cases for globals numbered with tools and rejections carrying their
  properties; a test checks a remote start() takes no steps.
- start()'s fingerprint names the run's actual CPU budget (none, a number, or
  remote), not "default" for every sandbox.
- start()'s call records carry the module; the dropped calls are computed once.
- Durable skips a namespace named like a built-in global or a global's
  namespace (models) as a module, instead of failing every script; pi-codemode
  exports CODEMODE_RESERVED_NAMES from /declarations for it.
- Docs: CodemodeHostCall.id, durable's call keys and schema, the CHANGELOGs
  (start()'s jsName, the un-awaited calls rule, /remote, strict mode and UTC in
  the coding agent), the README on dropped calls and remote start() runs, and
  the coding agent's Bun caveat, which no longer holds (checked on Bun 1.4.4:
  a long sort or split stops at the deadline).
2026-11-30 19:15:05 +01:00
..
fixtures feat(codemode): run scripts on djs 2026-11-30 19:08:05 +01:00
declarations.test.ts feat(codemode): leave describing modules to the host 2026-11-30 19:08:14 +01:00
deprecated.test.ts feat(codemode): keep 1.7.0's names where a rename bought nothing 2026-11-30 19:08:13 +01:00
deterministic.test.ts fix(codemode,durable,coding-agent): start() runs in one remote session; review fixes 2026-11-30 19:15:05 +01:00
portable.test.ts feat(codemode): version saved runs and the remote protocol 2026-11-30 19:08:14 +01:00
remote-support.ts feat(codemode): run scripts on djs 2026-11-30 19:08:05 +01:00
run.test.ts feat(codemode): version saved runs and the remote protocol 2026-11-30 19:08:14 +01:00
sandbox.test.ts chore(codemode): vendor djs 0.3.1 (sync host errors carry the call site's stack) 2026-11-30 19:15:05 +01:00
source.test.ts fix(codemode): reject // @options: lines that are not the first line 2026-10-12 17:55:33 +02:00
worker-lifetime.test.ts feat(codemode): run scripts on djs 2026-11-30 19:08:05 +01:00