/** * TUI-local connection health collection. * * Mirrors the shape of `@wrongstack/webui-server`'s * `collectConnectionsHealth()` but lives here so the TUI does not need a * runtime dependency on the WebUI server package. All IPC primitives are * available transitively through the TUI's existing dependencies * (`@wrongstack/core`, `@wrongstack/kanban`, `@wrongstack/sage`, * `@wrongstack/tools`). */ export type ConnectionHealthStatus = 'healthy' | 'degraded' | 'offline' | 'unavailable' | 'error'; export interface ConnectionHealthService { id: 'chronicle' | 'codebase-index' | 'sage' | 'kanban' | 'mailbox'; label: string; status: ConnectionHealthStatus; required: boolean; mode: string; detail: string; ownerPid?: number | undefined; endpoint?: string | undefined; storage?: string | undefined; uptimeMs?: number | undefined; latencyMs?: number | undefined; clients?: number | undefined; activeRequests?: number | undefined; queuedWork?: number | undefined; watcher?: { active: boolean; watchedFiles?: number | undefined; } | undefined; lastError?: string | undefined; } export interface ConnectionsHealthReport { checkedAt: number; overall: 'healthy' | 'degraded' | 'error'; services: ConnectionHealthService[]; } export declare function collectConnectionsHealth(projectRoot: string): Promise; //# sourceMappingURL=connections-health.d.ts.map