anbot

Commitab237d5b1a3167d0cb1f14d7af91e97943b369f4
AuthorMuse <muse@local>
Date2026-11-16T20:03:30Z

Message

Add the async store interface with filesystem, browser, and memory stores

store.mjs documents the record/block/selection interface and provides memoryStore. storage.mjs gains createFsStore with the existing on-disk layout and durability semantics; writeRecord, readRecord, storeBundle, and recoverBundle run on it. store-browser.mjs provides OPFS first with an IndexedDB fallback and documents browser durability limits honestly. test/store.sh runs conformance checks against the memory and filesystem stores.

Changed files

 MUSE_WORK_ORDER.md         |  24 ++++---
 storage.mjs                |  76 +++++++++++++++-----
 store-browser.mjs          | 172 +++++++++++++++++++++++++++++++++++++++++++++
 store.mjs                  |  65 +++++++++++++++++
 test/core-imports.sh       |   7 +-
 test/store-conformance.mjs |  78 ++++++++++++++++++++
 test/store.sh              |   5 ++
 7 files changed, 398 insertions(+), 29 deletions(-)

Git ยท Social feed