/** * health command — read-only check of the instructions an AI gets loaded * * Looks at global guidelines, the global CLAUDE.md and (with a project path) the project's * guidelines and instruction files. Deterministic, no LLM, never changes anything. * * Checks: size, dead paths, dated entries, duplicates, project-specific content in global * text, untouched entries. Findings are hints: whether a rule is still needed is the user's call. */ export interface HealthSource { id: string; label: string; /** Loaded into every session of its scope (always-guideline or instruction file) */ loaded: boolean; /** Applies to all projects */ global: boolean; text: string; updatedAt?: number; } export interface HealthFinding { severity: 'warn' | 'info'; check: 'size' | 'dead-path' | 'dated' | 'duplicate' | 'scope' | 'untouched'; source: string; message: string; } export interface HealthOptions { now: number; projectNames: string[]; pathExists: (p: string) => boolean; driveExists: (drive: string) => boolean; } export interface HealthResult { success: boolean; sources: Array<{ label: string; chars: number; loaded: boolean; }>; alwaysChars: number; instructionChars: number; findings: HealthFinding[]; error?: string; } export declare function analyzeSources(sources: HealthSource[], opts: HealthOptions): HealthFinding[]; export declare function health(params: { path?: string; }): HealthResult; export declare function formatHealthReport(r: HealthResult): string; //# sourceMappingURL=health.d.ts.map