Expand description
WASM-bindgen API surface — exposes Qualia engine functions to JavaScript.
Split into domain submodules; pub use * keeps every wasm_bridge::fn path stable.
Structs§
- Backup
Manifest - Backup
Store Policy - Backup
Verify Result - Device
Storage Policy - Primary
Store Policy - Recovery
Policy - Storage
Plan - Storage
Plan Input
Constants§
- BACKUP_
IDB_ KEY - BACKUP_
IDB_ NAME - IndexedDB database id used by the JS host to remember the backup folder handle.
- BACKUP_
IDB_ STORE - BACKUP_
SUBDIR - Suggested subdirectory name inside the user-picked backup folder.
- DEFAULT_
BACKUP_ RETENTION - Soft target: keep at least this many dated backup snapshots.
- MIN_
PRIMARY_ HEADROOM_ BYTES - Minimum free bytes before the host should refuse a large ingest.
- VAULT_
MANIFEST_ NAME - Manifest file inside the OPFS vault.
- WEBCIVICS_
OPFS_ DIR - OPFS directory name under
navigator.storage.getDirectory().
Functions§
- device_
storage_ policy - Canonical policy document for Civics / mobile hosts.
- plan_
device_ storage - Decide whether the host should persist, link a backup folder, or run a backup.
- verify_
backup_ manifest - Fail-closed checks for a backup snapshot manifest (host supplies SHA-256 hex).