Background
storage.rs under the CLI commands initializes sqlite schema and bootstrap data separately from the WASM path. Planned improvements to the shared sync module include configurable bootstrap/dump loading.
Problem
Keeping a CLI-specific schema initializer introduces drift and doubles the work when bootstrap behavior changes.
Proposed Approach
- After the shared sync module exposes a configurable bootstrap loader, wire the CLI storage code to use it instead of maintaining its own copy.
- Remove redundant initialization logic from
storage.rs, keeping only CLI-specific filesystem handling.
- Verify that CLI bootstrap behavior matches the shared path through integration tests.
Background
storage.rsunder the CLI commands initializes sqlite schema and bootstrap data separately from the WASM path. Planned improvements to the shared sync module include configurable bootstrap/dump loading.Problem
Keeping a CLI-specific schema initializer introduces drift and doubles the work when bootstrap behavior changes.
Proposed Approach
storage.rs, keeping only CLI-specific filesystem handling.