Files
faunosteo/packages/core-wasm/package.json
T
bchanot 343d6f4c1f feat(workspace): R2.4 core runtime — lazy load, poison on trap, offline re-instantiation, per-generation sheet handles
packages/core-wasm: browser-safe CoreRuntime (synchronous calls once ready;
a WebAssembly.RuntimeError poisons the instance, the call answers internal,
a fresh instance comes from the kept compiled module and a glue record
imported in advance; at most 3 recoveries per page; retry after a load
failure), SheetSession (handle rebuilt per instance generation, never
called on a dropped one; invalid_sheet without poisoning), Node source.
crates/wasm: SheetHandle (sheet held in the module memory). Two builds:
pkg/ shipped without trap exports (checked), pkg-proofs/ for the trap
tests; BUILD_STAMP (hash of the Rust sources) refused when missing or
stale by the vitest global setup instead of skipping. Failure envelope
carries a numeric found version; compact JS-number output.
2026-10-14 00:12:04 +02:00

35 lines
993 B
JSON

{
"name": "@faunosteo/core-wasm",
"version": "0.1.0",
"private": true,
"description": "Faunosteo core compiled to WebAssembly: runtime loader, generated TypeScript types of the contracts, the frozen N-1 reader, and the R0 proofs (panic, serialisation, size)",
"license": "MIT",
"type": "module",
"exports": {
".": "./src/index.ts",
"./node": "./src/node.ts",
"./types": "./types/index.ts",
"./n-1": "./tests/n-1/index.ts",
"./vitest-global-setup": "./tests/global-setup.ts",
"./pkg/*": "./pkg/*"
},
"scripts": {
"typecheck": "tsc -p tsconfig.json --noEmit",
"test": "vitest",
"test:run": "vitest run",
"lint": "eslint . --max-warnings 0",
"build": "tsc -p tsconfig.json --noEmit"
},
"devDependencies": {
"@types/node": "^20.19.41",
"eslint": "^9.17.0",
"globals": "^15.14.0",
"typescript": "^5.7.2",
"typescript-eslint": "^8.19.0",
"vitest": "^3.2.7"
},
"dependencies": {
"zod": "^3.24.1"
}
}