import { claudeCodeBackend } from "./claude-code.js";
import { codexBackend } from "./codex.js";
const BACKENDS = {
    "claude-code": claudeCodeBackend,
    codex: codexBackend,
};
export function getBackend(cfg) {
    const b = BACKENDS[cfg.agentBackend];
    if (!b)
        throw new Error(`Unknown agent backend: ${cfg.agentBackend}`);
    return b;
}
//# sourceMappingURL=index.js.map