Expand description
Persistence backends for Crabtalk.
Storage is declared in core; this crate
implements it. A backend is chosen at compile time through
runtime::Config’s Storage associated type, not by a feature — the
sqlite feature exists only so a consumer that wants the filesystem
doesn’t build a SQL driver it will never call.
FsStorage is the daemon’s backend: TOML configs, markdown prompts,
and JSON session files under ~/.crabtalk/.
Structs§
- FsStorage
- Filesystem persistence backend.
Constants§
- DEFAULT_
CONFIG - Default template for
config.toml— the hand-edited install config (LLM endpoint, task pool, env vars). - DEFAULT_
SETTINGS - Default template for
local/settings.toml— daemon-managed runtime records (MCPs, agents). Overwritten on first daemon write.
Functions§
- scaffold_
config_ dir - Scaffold the full config directory structure on first run.