import { o as modelSelectionShouldEnsureCodexPlugin } from "./openai-codex-routing-Bj_v8mRJ.js";
import { t as createRuntimePluginModelSelectionHelpers } from "./runtime-plugin-install-DY5U6wYq.js";
//#region src/commands/codex-runtime-plugin-install.ts
const CODEX_RUNTIME_PLUGIN_ID = "codex";
const CODEX_RUNTIME_PLUGIN_LABEL = "Codex";
const CODEX_RUNTIME_PLUGIN_DESCRIPTOR = {
	pluginId: CODEX_RUNTIME_PLUGIN_ID,
	label: CODEX_RUNTIME_PLUGIN_LABEL,
	npmSpec: "@nodmix/codex",
	warningLabel: CODEX_RUNTIME_PLUGIN_LABEL
};
function selectedModelShouldEnsureCodexRuntimePlugin(params) {
	return modelSelectionShouldEnsureCodexPlugin({
		config: params.cfg,
		model: params.model
	});
}
const codexRuntimePluginInstall = createRuntimePluginModelSelectionHelpers({
	descriptor: CODEX_RUNTIME_PLUGIN_DESCRIPTOR,
	shouldEnsure: selectedModelShouldEnsureCodexRuntimePlugin
});
const ensureCodexRuntimePluginForModelSelection = codexRuntimePluginInstall.ensure;
const repairCodexRuntimePluginInstallForModelSelection = codexRuntimePluginInstall.repair;
//#endregion
export { selectedModelShouldEnsureCodexRuntimePlugin as i, ensureCodexRuntimePluginForModelSelection as n, repairCodexRuntimePluginInstallForModelSelection as r, CODEX_RUNTIME_PLUGIN_ID as t };
