consciousness/src/cli
Kent Overstreet 2caccf875d Replace rkyv/bincode caching with redb indices
Remove three-tier loading (rkyv snapshot, bincode cache, capnp replay)
in favor of direct capnp log replay + redb for indexed access.

- Remove all rkyv derives from types (Node, Relation, enums, etc.)
- Remove Snapshot struct, RKYV_MAGIC, CACHE_MAGIC constants
- Remove load_snapshot_mmap(), save(), save_snapshot()
- Remove MmapView, AnyView from view.rs (keep StoreView trait)
- Simplify Store::load() to just replay capnp logs
- Add db.rs with redb schema: nodes, uuid_to_key, visits, transcript_progress
- Simplify cmd_fsck to just check capnp integrity + graph health

capnp logs remain source of truth; redb indices will be rebuilt on demand.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
2026-04-13 18:30:58 -04:00
..
admin.rs Replace rkyv/bincode caching with redb indices 2026-04-13 18:30:58 -04:00
agent.rs Convert store and CLI to anyhow::Result for cleaner error handling 2026-04-13 18:05:04 -04:00
graph.rs Convert store and CLI to anyhow::Result for cleaner error handling 2026-04-13 18:05:04 -04:00
journal.rs Convert store and CLI to anyhow::Result for cleaner error handling 2026-04-13 18:05:04 -04:00
mod.rs kill cli/misc.rs 2026-04-12 23:03:00 -04:00
node.rs Convert store and CLI to anyhow::Result for cleaner error handling 2026-04-13 18:05:04 -04:00