agent-trace 0.1.0

Git-backed document memory, trace continuity, and permissioned writes for agent workflows
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::observability::CliOutput;
use crate::store::Store;
use anyhow::Result;
use std::path::Path;

pub fn run(store_root: &Path, file: &Path, version: u32, output: &dyn CliOutput) -> Result<()> {
    let store = Store::open(store_root)?;
    let content = store.git.show_file_at_version(file, version)?;
    output.raw_stdout(&content)?;
    Ok(())
}