/** * @license * Copyright 2026 Qwen * SPDX-License-Identifier: Apache-2.0 */ export interface DetectedAgent { /** Display name for the prompt. */ label: string; /** Backend name for config.json (matches the name pattern). */ name: string; /** Resolved command to spawn the agent. */ command: string; /** Args to enter ACP mode. */ args: string[]; /** Detected version string (may be empty). */ version: string; /** Environment variables the agent needs (e.g. CODEX_PATH). */ env?: Record; } /** * Detect all supported coding agents installed on the current machine. * Returns an array of DetectedAgent, ordered by the spec priority * (qodercli first, then qwen, gemini, claude, codex). */ export declare function detectAgents(): DetectedAgent[];