import { i as resolveAgentModelPrimaryValue } from "./model-input-DiS5KWpR.js";
import { r as logConfigUpdated } from "./logging-BLtvYWCd.js";
import { d as updateConfig, t as applyDefaultModelPrimaryUpdate } from "./shared-BAXACrqC.js";
//#region src/commands/models/set-image.ts
async function modelsSetImageCommand(modelRaw, runtime) {
	const updated = await updateConfig((cfg) => {
		return applyDefaultModelPrimaryUpdate({
			cfg,
			modelRaw,
			field: "imageModel"
		});
	});
	logConfigUpdated(runtime);
	runtime.log(`Image model: ${resolveAgentModelPrimaryValue(updated.agents?.defaults?.imageModel) ?? modelRaw}`);
}
//#endregion
export { modelsSetImageCommand };
