"use strict";
/**
 * Provider Presets for CLI
 *
 * Pre-configured templates for common API providers.
 * Uses shared source-of-truth catalog in src/shared/provider-preset-catalog.ts.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.isValidPresetId = exports.getPresetAliases = exports.getPresetIds = exports.getPresetById = exports.PRESET_ALIASES = exports.PROVIDER_PRESETS = exports.OPENROUTER_BASE_URL = void 0;
const provider_preset_catalog_1 = require("../../shared/provider-preset-catalog");
Object.defineProperty(exports, "OPENROUTER_BASE_URL", { enumerable: true, get: function () { return provider_preset_catalog_1.OPENROUTER_BASE_URL; } });
/**
 * Provider presets available via CLI and UI
 */
exports.PROVIDER_PRESETS = Object.freeze((0, provider_preset_catalog_1.createProviderPresetDefinitions)());
exports.PRESET_ALIASES = provider_preset_catalog_1.PROVIDER_PRESET_ALIASES;
/** Get preset by ID */
function getPresetById(id) {
    const canonical = (0, provider_preset_catalog_1.normalizeProviderPresetId)(id);
    return exports.PROVIDER_PRESETS.find((p) => p.id === canonical);
}
exports.getPresetById = getPresetById;
/** Get all preset IDs */
function getPresetIds() {
    return exports.PROVIDER_PRESETS.map((p) => p.id);
}
exports.getPresetIds = getPresetIds;
/** Get alias map (alias -> canonical preset ID). */
function getPresetAliases() {
    return exports.PRESET_ALIASES;
}
exports.getPresetAliases = getPresetAliases;
/** Check if preset ID is valid */
function isValidPresetId(id) {
    return getPresetById(id) !== undefined;
}
exports.isValidPresetId = isValidPresetId;
//# sourceMappingURL=provider-presets.js.map