bctx 0.1.9

bctx CLI — intercept CLI commands and compress output for LLM coding agents
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use anyhow::Result;

pub fn handle(path: String, force: bool) -> Result<()> {
    if force {
        println!("bctx index: forcing full re-index of {path}");
    } else {
        println!("bctx index: incremental index of {path}");
    }
    let result = prism::build_index(&path)?;
    println!(
        "Indexed {} files, {} symbols in {}ms",
        result.files_parsed, result.symbols_extracted, result.duration_ms
    );
    Ok(())
}