import type { BackgroundJobRegistry } from "./jobs/registry.js"; import type { LspServerManager } from "./lsp/manager.js"; import type { StormBreaker } from "./storm/breaker.js"; /** * Aggregated diagnostics for the 1.4.0 capabilities. Provides the data behind * `jensen doctor lsp|tools|scheduler|jobs` and `jensen lsp status` / * `jensen jobs list`. Never exposes secrets, tokens, full files or raw * sensitive arguments. */ export interface ExecutionDiagnosticsInput { manager?: LspServerManager; jobs?: BackgroundJobRegistry; storm?: StormBreaker; /** Scheduler limits (opaque; diagnostics treats it as data). */ scheduler?: unknown; workspaceRoot?: string; } export interface ExecutionDiagnostics { lsp: { serverDiscovery: Array<{ languageId: string; candidate: string; available: boolean; reason?: string; }>; activeServers: Array<{ serverId: string; languageId: string; executable: string; state: string; }>; unavailable: Array<{ languageId: string; reason: string; }>; }; tools: { repairCounters: Record; blockedAmbiguousRepairs: number; stormHistorySize: number; }; scheduler: { limits: { globalMax: number; perTool: number; perHost: number; perServer: number; }; activeGroups: number; }; jobs: { records: Array<{ jobId: string; state: string; health?: string; processIdentity: string; }>; orphanOrAdoption: number; }; } /** Success or short-circuit: pure aggregation, no mutation. */ export declare function collectExecutionDiagnostics(input?: ExecutionDiagnosticsInput): Promise; /** Human-readable rendering of the aggregated diagnostics. */ export declare function formatExecutionDiagnostics(d: ExecutionDiagnostics): string; //# sourceMappingURL=execution-diagnostics.d.ts.map