oxibrain_cli/cmd/init.rs
1use oxibrain::{Brain, BrainConfig};
2use std::path::Path;
3
4pub async fn run(dir: &Path, space: &str) -> anyhow::Result<()> {
5 let brain = Brain::open(BrainConfig::at(dir)).await?;
6 let id = brain.ensure_space(space).await?;
7 println!("initialized brain at {}", dir.display());
8 println!("space '{space}' -> {id}");
9 // ADR-005: init stays offline; say so instead of surprising the user later.
10 println!(
11 "model weights pull automatically on first extract — pre-fetch with `oxibrain model pull`"
12 );
13 Ok(())
14}