/** * Doctor Command Module * * Diagnostic tool for Lisa configuration. * Storage is handled by git-mem (git notes) - no external services needed. */ import type { ICliServices } from './cli-services'; /** * Health check status levels. */ export type CheckStatus = 'ok' | 'warning' | 'error'; /** * Individual health check result. */ export interface ICheckResult { name: string; status: CheckStatus; message: string; details?: string; durationMs?: number; } /** * Configuration information. */ export interface IConfigInfo { storage: string; projectName: string; } /** * Transcript discovery information. */ export interface ITranscriptInfo { searchPaths: string[]; candidates: Array<{ path: string; mtime: Date; sizeBytes: number; }>; selected?: string; } /** * Complete doctor diagnostic result. */ export interface IDoctorResult { timestamp: string; projectRoot: string; version: string; overallStatus: CheckStatus; config: IConfigInfo; checks: ICheckResult[]; transcripts: ITranscriptInfo; totalDurationMs: number; } /** * Doctor command options. */ export interface IDoctorOptions { cwd: string; verbose?: boolean; json?: boolean; } /** * Run comprehensive health checks and return diagnostic results. */ export declare function runDoctor(opts: IDoctorOptions, _services: ICliServices): Promise; /** * Format basic output (checkmarks only). */ export declare function formatBasicOutput(result: IDoctorResult): string; /** * Format verbose output (detailed diagnostics). */ export declare function formatVerboseOutput(result: IDoctorResult): string; /** * Format JSON output. */ export declare function formatJsonOutput(result: IDoctorResult): string; /** * Get exit code based on overall status. * 0 = ok, 1 = warning, 2 = error */ export declare function getExitCode(status: CheckStatus): number; /** * Execute the doctor command with specified options. */ export declare function doctorCommand(opts: IDoctorOptions, services: ICliServices): Promise; //# sourceMappingURL=doctor.d.ts.map