caelum0x 479bf077f6 feat(playground): wire the wasm loader to the generated bindings
apps/playground/src/wasm_loader.ts: createWasmLoader(source, factory) adapts the
generated glue's createBindings (crates/lawsynth-wasm-bindings/web/lawsynth_wasm.mjs,
whose output already matches LawSynthWasmBindings key-for-key) into the
WasmRuntime loader, validating the required API. The factory is dependency-
injected — not imported — so the app carries no build-time dependency on the
compiled .wasm (produced by scripts/build-wasm.sh on a networked machine) and
the wiring is testable offline. defaultWasmSource() resolves the .wasm beside
the deployed glue.

5 tests (fake-factory round-trip through WasmRuntime.simulate, missing-API +
factory-failure rejection as wasm-unavailable/capability boundaries, source URL
resolution). Full playground suite green (12/12 files).

Production wiring is a copy step (glue + built .wasm beside the app + point the
loader at defaultWasmSource); documented in the crate README.
2026-08-18 21:37:46 +03:00
..
2026-08-16 23:40:41 +03:00
2026-08-16 23:40:41 +03:00
2026-08-16 23:40:41 +03:00
2026-08-16 23:40:41 +03:00
2026-08-16 23:40:41 +03:00
2026-08-16 23:40:41 +03:00
2026-08-16 23:40:41 +03:00
2026-08-16 23:40:41 +03:00
2026-08-16 23:40:41 +03:00
2026-08-16 23:40:41 +03:00
2026-08-16 23:40:41 +03:00
2026-08-16 23:40:41 +03:00