import {
  piBackend
} from "./chunk-GU2NP7QE.js";
import {
  geminiBackend
} from "./chunk-UTSN34VY.js";
import {
  opencodeBackend
} from "./chunk-CR3BEBUF.js";
import {
  factoryBackend
} from "./chunk-JZE6OQDW.js";
import {
  codexBackend
} from "./chunk-437VVFAL.js";
import {
  claudeBackend
} from "./chunk-7SF6FJ4U.js";

// src/backends/registry.ts
var BACKENDS = {
  claude: claudeBackend,
  opencode: opencodeBackend,
  codex: codexBackend,
  gemini: geminiBackend,
  factory: factoryBackend,
  pi: piBackend
};
function resolveBackend(name) {
  const key = name ?? "claude";
  const b = BACKENDS[key];
  if (!b) throw new Error(`unknown backend: ${name}`);
  return b;
}
function listBackends() {
  return Object.keys(BACKENDS);
}

export {
  resolveBackend,
  listBackends
};
