/**
 * Agent backend abstraction.
 *
 * Keep this interface free of Codex- or Claude-specific types so backends stay
 * swappable. Reflex calls `analyzeScope` to (re)build KB MDs for a subtree, and
 * `chat` to open an interactive chat scoped to a folder's KB.
 */
export class AgentUnavailableError extends Error {
    constructor(backendId, cause) {
        super(`Agent backend "${backendId}" is unavailable: ${cause instanceof Error ? cause.message : String(cause)}`);
        this.name = "AgentUnavailableError";
    }
}
//# sourceMappingURL=backend.js.map