pi-mono/packages/coding-agent/src/bun/quickjs-wasm.d.ts
Armin Ronacher 748cd5ac57 feat(coding-agent): run code mode on dquickts instead of quickjs-wasi
Code mode scripts now run on @earendil-works/dquickts 0.2.0 (Bellard's
QuickJS compiled to WebAssembly) instead of quickjs-wasi (QuickJS-NG):
about 1.3 to 1.9 times faster, with a larger wasm (about 850 KB).

- Deep recursion fails with InternalError: stack overflow instead of
  RangeError; the inline and remote sandboxes allow about 950 calls.
- Deterministic runs: the fingerprint names the engine, and Math.random()
  gives other values for a seed.
- Tests: no tool runs after an interrupted async function, and a loop of
  interrupted async functions ends with a timeout.
2026-10-31 15:45:59 +01:00

5 lines
196 B
TypeScript

// Imported by runtime-setup.ts. Bun's default loader for .wasm evaluates to the file's path.
declare module "@earendil-works/dquickts/quickjs.wasm" {
const path: string;
export default path;
}