difflore-core 0.2.0

Core library for the difflore CLI — rule store, retrieval, MCP server, hooks, cloud sync. Not intended for direct use; depend on `difflore-cli` instead.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::*;

pub async fn load_memory_digest(pool: &SqlitePool, limit: usize) -> Result<MemoryDigest> {
    let plan = build_plan(
        pool,
        normalize_limit(limit),
        BuildPlanOptions {
            local_ai_curator: false,
            curator_max_candidates: None,
        },
    )
    .await?;
    Ok(plan.digest)
}