speckl/compiler/package.json
Scott Scoble 39436b4382
Some checks failed
Deploy Landing Page to Storj / deploy (push) Failing after 3s
WASM E2E test: Speckl specs compile to runnable WebAssembly
- Add __tests__/e2e-wasm.test.ts: full pipeline test
  - Parse Counter speck → generate WAT → assemble with wabt → instantiate → run
  - Verify init, action calls, guard pass/fail, state mutations
  - TigerBeetle WAT validation test (wabt parse + validate + toBinary)
- Fix wasm.ts bugs found by E2E:
  - Guard condition inverted: added i32.eqz to negate comparison
  - Missing local declarations: locals now inserted before body
  - Uncompiled guards left stack values: now emit comments only (no i32.const 1)
- Install wabt npm package for WAT→WASM assembly in tests
- 41/41 tests passing (39 original + 2 E2E)

Milestone: Speckl produces runnable WebAssembly from specs.
2026-05-03 13:13:55 -07:00

29 lines
648 B
JSON

{
"name": "speckl-compile",
"version": "0.3.1",
"description": "SpeckDL compiler + reference validator - SpeckDL → Z3 → DST → WASM with provenance and BOM",
"type": "module",
"bin": {
"speckl-compile": "./dist/index.js",
"speckl-validate": "./dist/validator.js"
},
"files": [
"dist/"
],
"scripts": {
"build": "tsc",
"test": "vitest run",
"dev": "tsc --watch"
},
"dependencies": {
"yargs": "^17.7.2"
},
"devDependencies": {
"@types/node": "^22.10.5",
"@types/yargs": "^17.0.33",
"typescript": "^5.7.2",
"vite": "^6.0.3",
"vitest": "^2.1.8",
"wabt": "^1.0.39"
}
}