Primary entity = chat_messages (integer-PK; sessions stay bespoke — TEXT UUID PK incompatible with engine's IntegerPk). Secondary tables (chat_sessions, indexes, FTS rename fts_chat → fts_chat_messages) moved into custom_migrations. FTS shadow column session_id dropped (never used as MATCH filter). Archive verb NOT enabled: chat_sessions.status is TEXT enum not INTEGER flag — engine archive verb incompatible. archive_session stays bespoke. cost REAL column dropped — engine has no Real FieldKind. per-message cost struct field kept (=0.0) for API compat; session total_cost aggregate still maintained bespoke in save_message. 5/5 tests preserved + 1 new engine migration-parity smoke test. DOGFOOD prompt feedback (M1 via kei-agent-runtime prepare): 6 engine limitations surfaced for follow-up — FieldKind::TextPk, FieldKind::Real, archive-TEXT-enum variant, FTS UNINDEXED shadow cols, atom dir assumption, rusqlite drop logic. See M1 task report. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
27 lines
692 B
TOML
27 lines
692 B
TOML
[package]
|
|
name = "kei-chat-store"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
rust-version = "1.75"
|
|
description = "Session persistence for Claude conversations. Port of LBM internal/chat."
|
|
|
|
[[bin]]
|
|
name = "kei-chat-store"
|
|
path = "src/main.rs"
|
|
|
|
[lib]
|
|
name = "kei_chat_store"
|
|
path = "src/lib.rs"
|
|
|
|
[dependencies]
|
|
kei-entity-store = { path = "../kei-entity-store" }
|
|
rusqlite = { version = "0.31", features = ["bundled"] }
|
|
clap = { version = "4", features = ["derive"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
anyhow = "1"
|
|
chrono = { version = "0.4", default-features = false, features = ["clock"] }
|
|
uuid = { version = "1", features = ["v4"] }
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3"
|