import { n as resolveAgentModelPrimaryValue } from "./model-input-B3XG4BBf.js";
import { n as logConfigUpdated } from "./logging-DEwHm9L3.js";
import { t as applyDefaultModelPrimaryUpdate, u as updateConfig } from "./shared-B4as--1P.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 };
