-
Notifications
You must be signed in to change notification settings - Fork 6
Consolidate notebook storage: remove runme-fs-workspaces and mirror fs/contents into runme-local-notebooks #157
Copy link
Copy link
Open
Description
Summary
We currently have two IndexedDB databases for notebook-related state:
runme-local-notebooks(Drive/local mirror)runme-fs-workspaces(filesystem workspace handles/entries)
Per the latest discussion in #55, we should evaluate consolidating onto a single mirror model in runme-local-notebooks and treating local filesystem + contents:// as upstream/remote URI backends.
Reference: #55 (comment)
Motivation
- Reduce storage model complexity and duplication.
- Make notebook mutation flows consistent across
local://,fs://, andcontents://. - Simplify sandbox/runtime API design for notebook manipulation (single persistence model + revision semantics).
Proposed Direction
- Define a single canonical local mirror model in
runme-local-notebooksfor all notebook docs. - Treat filesystem and contents backends as upstream sources identified by remote URIs (e.g.
file://...,contents://...). - Remove or greatly reduce
runme-fs-workspacesresponsibilities. - Ensure conflict detection/revision semantics remain consistent across backends.
Scope for this issue
- Design + migration plan (schema, URI mapping, sync strategy).
- Implementation changes in stores/resolver/context wiring.
- Backward compatibility + migration from existing
fs://workspace/...entries. - Tests covering open/list/load/save/rename/conflict flows.
Notes
This issue is cleanup/foundation work and is intended to support the sandboxed AppKernel direction in #154.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels