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.
22 lines
595 B
TypeScript
22 lines
595 B
TypeScript
/**
|
|
* @faunosteo/core-wasm: the Faunosteo core (Rust) compiled to WebAssembly.
|
|
*
|
|
* Browser-safe entry: the runtime and the outcome types. The application gives the runtime
|
|
* a source built from Vite asset URLs (`apps/app/src/core/`), so the module is fetched on
|
|
* first need only; Node code (tests, scripts) uses `@faunosteo/core-wasm/node`.
|
|
*/
|
|
export {
|
|
CoreRuntime,
|
|
SheetSession,
|
|
type CoreSource,
|
|
type CoreStatus,
|
|
type GlueModule,
|
|
type GlueSheetHandle,
|
|
} from './runtime'
|
|
export {
|
|
CORE_UNAVAILABLE,
|
|
parseOutcome,
|
|
type CoreFailure,
|
|
type CoreOutcome,
|
|
} from './outcome'
|