sqlite-graphrag 1.2.1

Persistent GraphRAG memory for Claude Code, Codex, Cursor, and 27 AI agents — one self-contained ~19 MiB Rust binary, zero daemon. Never re-explain your codebase again. Hybrid retrieval (FTS5 BM25 + cosine similarity + multi-hop graph traversal) surfaces the right memory in milliseconds. Embedding and entity enrichment run as parallel REST calls against your cloud LLM — no fragile headless subprocesses, no ONNX runtime, no model downloads. Soft-delete with full version history, transactional atomic writes, BLAKE3-tracked mutations. OAuth-only: raw API keys ABORT the spawn.
Documentation
//! Extracted `heavy_concurrency_tests` (Wave C1).

use super::*;

#[test]
fn command_heavy_detects_init_and_embeddings() {
    let init = Cli::try_parse_from(["sqlite-graphrag", "init"]).expect("parse init");
    assert!(init
        .command
        .as_ref()
        .is_some_and(|c| c.is_embedding_heavy()));

    let remember = Cli::try_parse_from([
        "sqlite-graphrag",
        "remember",
        "--name",
        "test-memory",
        "--type",
        "project",
        "--description",
        "desc",
    ])
    .expect("parse remember");
    assert!(remember
        .command
        .as_ref()
        .is_some_and(|c| c.is_embedding_heavy()));

    let recall = Cli::try_parse_from(["sqlite-graphrag", "recall", "query"]).expect("parse recall");
    assert!(recall
        .command
        .as_ref()
        .is_some_and(|c| c.is_embedding_heavy()));

    let hybrid =
        Cli::try_parse_from(["sqlite-graphrag", "hybrid-search", "query"]).expect("parse hybrid");
    assert!(hybrid
        .command
        .as_ref()
        .is_some_and(|c| c.is_embedding_heavy()));
}

#[test]
fn command_light_does_not_mark_stats() {
    let stats = Cli::try_parse_from(["sqlite-graphrag", "stats"]).expect("parse stats");
    assert!(!stats
        .command
        .as_ref()
        .is_some_and(|c| c.is_embedding_heavy()));
}