heal-cli 0.1.0

Hook-driven Evaluation & Autonomous Loop — code-health harness CLI for AI coding agents
Documentation
use heal_cli::core::HealPaths;

#[test]
fn ensure_creates_all_subdirs() {
    let dir = tempfile::tempdir().unwrap();
    let paths = HealPaths::new(dir.path());
    paths.ensure().unwrap();

    for sub in ["snapshots", "logs", "docs", "reports"] {
        assert!(paths.root().join(sub).is_dir(), "missing {sub}");
    }
}

#[test]
fn state_lives_at_heal_root() {
    let dir = tempfile::tempdir().unwrap();
    let paths = HealPaths::new(dir.path());
    assert_eq!(paths.state(), paths.root().join("state.json"));
}

#[test]
fn ensure_is_idempotent() {
    let dir = tempfile::tempdir().unwrap();
    let paths = HealPaths::new(dir.path());
    paths.ensure().unwrap();
    paths.ensure().unwrap();
}