/** * Harness installation and discovery via adapters delegation. * * Instead of maintaining per-harness install logic in babysitter, we delegate * to @a5c-ai/adapters which already has comprehensive adapter detection, * installation, and update support for all known harness CLIs. */ import type { HarnessDiscoveryResult, HarnessInstallOptions, HarnessInstallResult } from "./types"; type AdapterAdapterInfo = { agent: string; displayName: string; cliCommand: string; }; type AdapterInstalledInfo = { agent: string; installed: boolean; cliPath: string | null; version: string | null; }; type AdapterInstallResult = { ok: boolean; method: string; command: string; message?: string; installedVersion?: string; stdout?: string; stderr?: string; }; interface AdapterAdapterHandle { install?(opts?: { force?: boolean; dryRun?: boolean; version?: string; }): Promise; detectInstallation?(): Promise<{ installed: boolean; version?: string; path?: string; }>; } interface AdapterAdapterRegistry { list(): AdapterAdapterInfo[]; detect(agent: string): Promise; get(agent: string): AdapterAdapterHandle | undefined; installed(): Promise; } interface AgentMuxClientLike { adapters: AdapterAdapterRegistry; } /** * Discovers installed harnesses by delegating to adapters's adapter registry. * * Falls back to the legacy probe-based discovery if adapters is unavailable. */ export declare function discoverHarnessesViaAmux(): Promise; /** * Install a harness CLI by delegating to adapters's adapter install(). */ export declare function installHarnessViaAmux(harnessName: string, options: HarnessInstallOptions): Promise; export declare function installHarnessPlugin(harnessName: string, options: HarnessInstallOptions): Promise; export declare function _resetAmuxInstallClientCache(): void; /** * Override the adapters module for testing. * Pass `undefined` to restore require-based resolution. * @internal */ export declare function _setAmuxInstallModuleForTesting(mod: { createClient: (opts: Record) => AgentMuxClientLike; } | undefined): void; export {}; //# sourceMappingURL=install.d.ts.map