pi-mono/packages/codemode/examples
Armin Ronacher 91676d5a70 feat(codemode): one session protocol, simpler scope, djs module bundled out of the box
- A remote execute() is a session with the worker thread's protocol
  (proxy-run.ts): the client drives the VM, as for every other sandbox.
  The transport, execute(request, exchange), is unchanged; its messages
  are opaque apart from { type: "stop" }. worker-protocol.ts is gone.
- CodemodeScope takes tools, globals, and modules in the shapes of the
  options without their functions; identifiers are derived inside, every
  field is optional.
- djs 0.3.0-dev.9 carries its module in its code (Wrangler: a compiled
  module), so no host passes or ships the wasm. pi-codemode imports
  @earendil-works/djs/core everywhere but its one default loader
  (wasm.ts): the worker bundle carries no copy (773 KB -> 104 KB).
- New entry @earendil-works/pi-codemode/remote, the client alone: the
  example agent Worker uploads 35 KiB instead of 1,175 KiB. The remote's
  side moved to runtime/serve.ts.
- Removed cloudflareCodemodeWasm and cloudflareQuickJSWasm; deprecated
  createInlineCodemodeSandbox(). coding-agent drops its wasm path and
  Bun embed.
2026-11-30 19:08:13 +01:00
..
cloudflare feat(codemode): one session protocol, simpler scope, djs module bundled out of the box 2026-11-30 19:08:13 +01:00