The same cross-axis gates and lexicon checks the arl CLI runs, compiled to WebAssembly via wasm-bindgen — single-sourced from arl-core, so the playground can never drift from the standard. Exposes validate(json) and lint(json), each returning a JSON result the page renders. Verified by executing the actual compiled wasm in a real runtime (Node, nodejs target): a well-formed claim → ok; a downgraded ARL-6/Class-D claim with undisclosed energy and an AGI mention → 8 gate violations incl. the excluded-term ban; lint → 1 excluded. Identical to the CLI and the native arl-core tests. arl-wasm: 4 native tests; arl-rs workspace = 55. wasm-pack pkg/ output is gitignored (regenerable). wasm-opt is disabled in package metadata — the bundled wasm-opt rejects the bulk-memory ops current rustc emits; the bindgen wasm is valid as-is. The spec site + playground source lives in the separate arl-web/ project (arl-web/build.sh pandoc-renders the public spec and bundles the WASM checker) — not committed here, and not deployed. Co-Authored-By: Claude Opus 4.7 <[email protected]>
40 lines
437 B
Text
40 lines
437 B
Text
# Rust build artifacts
|
|
/target/
|
|
**/target/
|
|
**/*.rs.bk
|
|
Cargo.lock.bak
|
|
|
|
# Node / web tooling
|
|
**/node_modules/
|
|
**/dist/
|
|
**/.astro/
|
|
**/build/
|
|
|
|
# IDE / editor
|
|
.idea/
|
|
.vscode/
|
|
*.iml
|
|
*.swp
|
|
*.swo
|
|
*~
|
|
|
|
# macOS
|
|
.DS_Store
|
|
**/.DS_Store
|
|
|
|
# Secrets / env
|
|
.env
|
|
.env.*
|
|
!.env.example
|
|
*.pem
|
|
*.key
|
|
!*.pub.key
|
|
|
|
# Logs / scratch
|
|
*.log
|
|
.scratch/
|
|
tmp/
|
|
|
|
# wasm-pack build output (regenerable)
|
|
arl/arl-rs/crates/arl-wasm/pkg/
|
|
arl/arl-rs/crates/arl-wasm/pkg-node/
|