Skip to main content

Crate crabtalk_storage

Crate crabtalk_storage 

Source
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.