mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
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.
76 lines
1.7 KiB
JSON
76 lines
1.7 KiB
JSON
{
|
|
"name": "@earendil-works/pi-codemode",
|
|
"version": "1.4.0",
|
|
"description": "Sandboxed JavaScript execution where the only capability is calling injected tools",
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"source": "./src/index.ts",
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.js"
|
|
},
|
|
"./declarations": {
|
|
"source": "./src/declarations.ts",
|
|
"types": "./dist/declarations.d.ts",
|
|
"import": "./dist/declarations.js"
|
|
},
|
|
"./source": {
|
|
"source": "./src/source.ts",
|
|
"types": "./dist/source.d.ts",
|
|
"import": "./dist/source.js"
|
|
},
|
|
"./portable": {
|
|
"source": "./src/portable.ts",
|
|
"types": "./dist/portable.d.ts",
|
|
"import": "./dist/portable.js"
|
|
},
|
|
"./cloudflare": {
|
|
"source": "./src/cloudflare.ts",
|
|
"types": "./dist/cloudflare.d.ts",
|
|
"import": "./dist/cloudflare.js"
|
|
},
|
|
"./worker": {
|
|
"source": "./src/runtime/worker.ts",
|
|
"types": "./dist/runtime/worker.d.ts",
|
|
"import": "./dist/runtime/worker.js"
|
|
}
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"README.md"
|
|
],
|
|
"scripts": {
|
|
"clean": "shx rm -rf dist",
|
|
"build": "tsc -p tsconfig.build.json",
|
|
"test": "vitest --run",
|
|
"prepublishOnly": "npm run clean && npm run build"
|
|
},
|
|
"keywords": [
|
|
"pi",
|
|
"codemode",
|
|
"sandbox",
|
|
"quickjs",
|
|
"wasm",
|
|
"cloudflare",
|
|
"durable-objects"
|
|
],
|
|
"author": "Earendil Works",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/earendil-works/pi.git",
|
|
"directory": "packages/codemode"
|
|
},
|
|
"engines": {
|
|
"node": ">=22.19.0"
|
|
},
|
|
"dependencies": {
|
|
"@earendil-works/dquickts": "0.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"shx": "0.3.4",
|
|
"vitest": "4.1.12"
|
|
}
|
|
}
|