/** * Registry of MCP agent targets the TUI propagates settings into. * * Each AgentTarget describes: * - configPath: per-OS resolved JSON file the agent reads * - serverPath: JSON path into that file pointing at the wigolo server entry * - envPath: JSON path within the server entry to the env block * - detect(): is wigolo currently installed in this agent? * - backupDir(): where propagation.ts writes pre-write backups * * Paths are aligned with the SP7 agent handlers in src/cli/agents/ so the * TUI mutates the same files the install flow created. Mismatching either * side would leave stale env blocks behind. */ export type AgentId = 'claude-code' | 'vscode' | 'zed' | 'windsurf' | 'cursor'; export interface AgentTarget { id: AgentId; label: string; /** Absolute path to the agent's MCP/settings JSON file. */ configPath: string; /** JSON path to the wigolo server entry, e.g. ['mcpServers', 'wigolo']. */ serverPath: ReadonlyArray; /** JSON path inside the server entry to its env block, e.g. ['mcpServers','wigolo','env']. */ envPath: ReadonlyArray; /** True when wigolo is currently registered in this agent's config. */ detect(): Promise; /** Directory the propagation pipeline writes per-agent backups into. */ backupDir(): string; } export interface DefaultAgentTargetsOpts { /** Wigolo data dir (e.g. ~/.wigolo). Backups land at `/backups/`. */ dataDir: string; /** Override for tests; defaults to os.homedir(). */ home?: string; /** Override for tests; defaults to process.platform. */ platform?: NodeJS.Platform; /** Override for tests; defaults to process.env. */ env?: NodeJS.ProcessEnv; } export declare function defaultAgentTargets(opts: DefaultAgentTargetsOpts): AgentTarget[]; //# sourceMappingURL=agent-targets.d.ts.map