/** * The 12 most-used ECC agents per the upstream * everything-claude-code catalog. The full 64-agent list is * available at runtime via `npx ecc agent list`; this static * subset covers the common L3-doctor dispatch paths. */ export declare const CANONICAL_ECC_AGENTS: readonly { name: string; description: string; }[]; export interface EccAgentResult { readonly agent: string; readonly ok: boolean; readonly stdout: string; readonly stderr: string; readonly durationMs: number; /** Parsed JSON envelope if the subprocess exited 0 and stdout was JSON. */ readonly parsed?: unknown; readonly error?: string; } export interface EccAgentServiceInput { readonly agent: string; readonly projectRoot: string; readonly enableAgent?: boolean | undefined; } export interface EccAgentServiceResult { readonly agent: string; readonly spawned: boolean; readonly reason: 'enabled-and-installed' | 'disabled-by-preference' | 'flag-disabled' | 'flag-enabled-but-ecc-missing' | 'disabled-and-ecc-missing'; readonly result: EccAgentResult | null; readonly warnings: readonly string[]; } export interface SubprocessRunner { run(command: string, args: readonly string[], timeoutMs: number): SubprocessResult; } export interface SubprocessResult { readonly status: number | null; readonly stdout: string; readonly stderr: string; readonly error?: Error; } /** * Validate the agent name against the canonical ECC catalog. * Returns `null` if the agent is known; an error message otherwise. */ export declare function validateEccAgent(agent: string): string | null; export declare function runEccAgent(input: EccAgentServiceInput, runner?: SubprocessRunner): EccAgentServiceResult;