yggdrasil-cli 0.3.0

Yggdrasil is a project flattener and diff engine that turns any subset of your codebase into a single AI-ready codex (index + contents), or compares snapshots with annotated diffs.
// src/types.rs
#[derive(Debug, Clone)]
pub struct BlockMatch {
    pub from_file: String,
    pub from_range: (usize, usize),
    pub to_file: String,
    pub to_range: (usize, usize),
}

#[derive(Debug, Clone)]
pub struct BlockWithVote {
    pub block: BlockMatch,
    pub is_addition: bool,
}

#[derive(Debug, Clone)]
pub struct GroupedMatches {
    pub from_file: String,
    pub to_file: String,
    pub blocks: Vec<BlockWithVote>,
}

#[derive(Debug, Clone)]
pub struct FileEntry {
    pub path: String,
    pub line_count: usize,
}