import "./agent-scope-config-adSj-fCz.js";
import "./model-selection-shared-DSwf-R8O.js";
import "./agent-scope-CB42Y_8g.js";
import "./codex-plugin-diagnostics-dOUrXvwq.js";
import "./provider-auth-aliases-BdLJrhhG.js";
import "./model-auth-markers-dXu0Ekd1.js";
import "./model-catalog-DOHBWY39.js";
import { a as loadPreparedModelCatalog, r as getPreparedModelCatalogSnapshot } from "./prepared-model-catalog-DA2QE8Ku.js";
import "./common-DVyAhMa9.js";
import "./auth-profiles-Ghcld7I7.js";
import "./model-auth-D6SoPLuz.js";
import "./model-selection-CtjI2iP7.js";
import { r as resolveThinkingDefaultWithRuntimeCatalogCore } from "./model-thinking-default-Ba2JgAL8.js";
import "./identity-JL5I5Xaj.js";
import "./embedded-agent-utils--MrMzHXv.js";
import "./tts-DOU94_pw.js";
import "./agent-scope-runtime-BcdYP7V6.js";
import "./identity-avatar-RmygV0wg.js";
import "./agent-command-CM1QNSFx.js";
//#region src/plugin-sdk/agent-runtime.ts
/** @deprecated Use loadPreparedModelCatalog or getPreparedModelCatalogSnapshot. */
async function loadModelCatalog(params = {}) {
	const { agentId, agentDir, cacheOnly, config, env, readOnly, workspaceDir } = params;
	const preparedParams = {
		...agentId ? { agentId } : {},
		...agentDir ? { agentDir } : {},
		...config ? { config } : {},
		...env ? { env } : {},
		...readOnly !== void 0 ? { readOnly } : {},
		...workspaceDir ? { workspaceDir } : {}
	};
	if (cacheOnly) return getPreparedModelCatalogSnapshot(preparedParams)?.entries ?? [];
	return await loadPreparedModelCatalog(preparedParams);
}
function resolveThinkingDefaultWithRuntimeCatalog(params) {
	const { loadModelCatalog: loadRuntimeCatalog, ...rest } = params;
	return resolveThinkingDefaultWithRuntimeCatalogCore({
		...rest,
		loadRuntimeCatalog
	});
}
//#endregion
export { resolveThinkingDefaultWithRuntimeCatalog as n, loadModelCatalog as t };
