/** * Scheduled Drift-Check Entrypoint * * Thin, standalone entrypoint for a scheduled (cron) GitHub Actions workflow. * It reuses the same logic as the `certification_check_drift` MCP tool but * without an MCP round-trip, so a `on: schedule:` job can run it directly with * node and fail/annotate the run when a re-certification is recommended. * * Exit codes: * 0 — checked, no re-certification needed (fresh cert, no new advisories). * 1 — re-certification recommended (expired / code changed / new advisories / * no completed certification) OR an unexpected error. * * Env / args: * PROJECT_PATH (or argv[2]) — absolute path to the project. Defaults to * GITHUB_WORKSPACE, else process.cwd(). * AGE_WARNING_DAYS — early-warning window in days (default 7). * * @module action/drift-mode */ export interface DriftCheckSummary { certId: string | null; stale: boolean; reasons: string[]; newAdvisoryCount: number; fixedAdvisoryCount: number; rescanRecommended: boolean; } /** * Run a drift check for the latest completed certification of a project. * * Pure enough to unit-test: it validates the path, resolves the latest cert, * evaluates age/code/advisory drift, persists the outcome, and returns a * summary. It never throws for the "no cert" / "not completed" cases. */ export declare function runDriftCheck(rawProjectPath: string, ageWarningDays?: number): Promise; //# sourceMappingURL=drift-mode.d.ts.map