pub fn run() -> Result<PreflightSuccess, PreflightError>Expand description
Runs pre-flight checks: git repo validity, staged files, diff size.
Returns Ok(PreflightSuccess) with diff content if all checks pass.
Returns Err(PreflightError) for any failure — does NOT print or exit.