oy-cli 0.11.4

OpenCode launcher and deterministic MCP helpers for repository audit and review workflows
Documentation
//! Deterministic audit input/report helpers used by oy MCP tools.

use std::path::PathBuf;

pub(crate) mod findings;
pub(crate) mod input;
pub(crate) mod report;
mod sarif;
pub(crate) mod transparency;

pub const DEFAULT_MAX_REVIEW_CHUNKS: usize = 80;
pub(crate) const MAX_FILE_BYTES: u64 = 512 * 1024;

#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum AuditOutputFormat {
    Markdown,
    Sarif,
}

impl AuditOutputFormat {
    pub fn name(self) -> &'static str {
        match self {
            Self::Markdown => "markdown",
            Self::Sarif => "sarif",
        }
    }
}

pub fn default_output_path(format: AuditOutputFormat) -> PathBuf {
    report::default_output_path(format)
}