Skip to main content

oxibrain_cli/cmd/
doctor.rs

1use oxibrain::{Brain, BrainConfig};
2use std::path::Path;
3
4pub async fn run(dir: &Path) -> anyhow::Result<()> {
5    let brain = Brain::open(BrainConfig::at(dir)).await?;
6    println!("ok: store at {}", dir.display());
7    println!("episode count: {}", brain.episode_count().await?);
8    // M0 doctor: open + count. Orphan/index/belief checks land with those subsystems (M1+).
9    Ok(())
10}