// src/adapters/codex/models.ts
var CODEX_REASONING_EFFORT_OPTIONS = [
  { value: "low", name: "Low" },
  { value: "medium", name: "Medium" },
  { value: "high", name: "High" }
];
function getReasoningEffortOptions(_modelId) {
  return CODEX_REASONING_EFFORT_OPTIONS;
}
var CODEX_ACRONYMS = {
  gpt: "GPT"
};
function formatCodexModelName(value) {
  const normalized = value.replace(/(\d)-(\d)/g, "$1.$2");
  return normalized.split("-").map((part) => {
    const lower = part.toLowerCase();
    if (CODEX_ACRONYMS[lower]) return CODEX_ACRONYMS[lower];
    if (/^[0-9.]+$/.test(part)) return part;
    return part.charAt(0).toUpperCase() + part.slice(1).toLowerCase();
  }).join("-");
}
function normalizeCodexConfigOptions(configOptions) {
  if (!configOptions) return configOptions;
  const formatOption = (opt) => ({
    ...opt,
    name: formatCodexModelName(opt.value)
  });
  return configOptions.map((option) => {
    if (option.category !== "model" || option.type !== "select") return option;
    const options = option.options;
    if (options.length === 0) return option;
    const isGroup = "group" in options[0];
    return {
      ...option,
      options: isGroup ? options.map((group) => ({
        ...group,
        options: group.options.map(formatOption)
      })) : options.map(formatOption)
    };
  });
}
export {
  formatCodexModelName,
  getReasoningEffortOptions,
  normalizeCodexConfigOptions
};
//# sourceMappingURL=models.js.map