import { i as normalizeProviderId } from "./provider-id-Dq06Bcx6.js";
import { r as listCliRuntimeProviderIds } from "./cli-backends-Br2_V-a9.js";
import { i as isCliRuntimeProvider } from "./model-runtime-aliases-BC3Jm9YV.js";
//#region src/agents/model-picker-visibility.ts
const RETIRED_MODEL_PICKER_PROVIDERS = new Set(["codex", "codex-cli"]);
function createModelPickerVisibleProviderPredicate(params = {}) {
	const cliRuntimeProviders = new Set(listCliRuntimeProviderIds({
		config: params.config,
		env: params.env,
		includeSetupRegistry: params.includeSetupRegistry ?? false
	}));
	return (provider) => {
		const normalized = normalizeProviderId(provider);
		return !RETIRED_MODEL_PICKER_PROVIDERS.has(normalized) && !cliRuntimeProviders.has(normalized);
	};
}
function isModelPickerVisibleProvider(provider) {
	const normalized = normalizeProviderId(provider);
	return !RETIRED_MODEL_PICKER_PROVIDERS.has(normalized) && !isCliRuntimeProvider(normalized, { includeSetupRegistry: true });
}
//#endregion
export { isModelPickerVisibleProvider as n, createModelPickerVisibleProviderPredicate as t };
