/** * Staleness detection utilities for plans and agents. */ import type { ServerConfig } from '../config.js'; export type StaleSeverity = 'warning' | 'critical'; export interface StaleEntry { type: 'agent' | 'plan'; plan: string; path: string; lastModified: string; daysSinceUpdate: number; severity: StaleSeverity; status: string; } export interface StalenessReport { stale: StaleEntry[]; summary: { total: number; warning: number; critical: number; }; configUsed: { warningDays: number; criticalDays: number; wipWarningDays: number; gapWarningDays: number; planCriticalDays: number; excludeStatuses: string[]; }; } export interface StalenessOptions { planId?: string; thresholdDays?: number; includePass?: boolean; } /** List plan directory names (e.g. ["0001-feature", "0033-limps-self-updating"]). */ export declare function listPlanDirectories(plansPath: string): string[]; export declare function getStalenessReport(config: ServerConfig, options?: StalenessOptions): StalenessReport; export declare function renderStalenessReport(report: StalenessReport): string; //# sourceMappingURL=health-staleness.d.ts.map