Skip to main content

kernex_memory/
lib.rs

1#![cfg_attr(test, allow(clippy::unwrap_used, clippy::expect_used))]
2
3//! kernex-memory: SQLite-backed memory store with a public trait surface.
4//!
5//! Provides conversation storage, reward-based learning (outcomes + lessons),
6//! scheduled tasks, FTS5 semantic recall, audit logging, and soft-delete on
7//! the `facts` table. The public [`MemoryStore`] trait mirrors the inherent
8//! method surface that downstream consumers call today; concrete schema
9//! changes can ship without rippling into call sites.
10
11pub mod audit;
12pub mod consolidator;
13pub mod error;
14pub mod memory_store;
15pub mod store;
16pub mod types;
17
18pub use audit::AuditLogger;
19pub use consolidator::{ConsolidationResult, Consolidator, ConsolidatorConfig};
20pub use error::MemoryError;
21pub use memory_store::{into_handle, MemoryStore};
22pub use store::detect_language;
23pub use store::DueTask;
24pub use store::PhaseCheckpoint;
25pub use store::Store;
26pub use store::{UsageBreakdown, UsageSummary};
27pub use types::{HistoryRow, MessageRow};