/** * `openlore preflight` — CI staleness gate. * * Determines whether the persisted analysis graph is current relative to * the working tree. Designed to run on every PR so out-of-date graphs * never reach orient() / agent runtime silently. * * Exit codes: 0 = fresh, 1 = stale, 2 = error. */ import { Command } from 'commander'; import { type PreflightSummary } from './report.js'; export interface PreflightOptions { cwd?: string; fix?: boolean; json?: boolean; since?: string; maxStaleness?: number; /** * Test-only seam: replace the analyzer invocation used by --fix. Returns * the exit code (0 = success). Production code spawns `openlore analyze`; * tests pass a stub that simulates the side-effect (refreshing * fingerprint.json) without needing the full pipeline. */ analyzeFn?: (cwd: string) => Promise; } export declare function runPreflight(opts: PreflightOptions): Promise<{ code: number; summary?: PreflightSummary; }>; export declare const preflightCommand: Command; //# sourceMappingURL=index.d.ts.map