Expand description
Split out of the single-file bootstrap module unchanged (SPEC_LARGE_FILE_MODULE_ANALYSIS_2026_09_30.md §4.3).
Structs§
- Stores
- Output of
open_stores_and_migrate— every store/log handle the rest of bootstrap andAppStateneed.
Functions§
- load_
config - Step 2: Parse CLI args and build config. Dispatches the
migratesubcommand (and exits) before touching AUTH_KEY-gated config. - open_
stores_ and_ migrate - Step 4: Initialize backend (matching Go cmd/server/main-server.go:374-590). Sets up the data directory, runs in-process migrations, opens every SQLite-backed store, attaches the shared/global registries, and performs the various one-time startup seed/repair passes.