import { i as resolveAgentModelPrimaryValue } from "./model-input-B2zxl6MM.js";
import { n as applyAgentDefaultModelPrimary } from "./provider-onboard-DF3popM3.js";
import { t as OPENCODE_GO_DEFAULT_MODEL_REF } from "./onboard-kUitYR-j.js";
//#region extensions/opencode-go/api.ts
function applyOpencodeGoModelDefault(cfg) {
	if (resolveAgentModelPrimaryValue(cfg.agents?.defaults?.model) === "opencode-go/kimi-k2.6") return {
		next: cfg,
		changed: false
	};
	return {
		next: applyAgentDefaultModelPrimary(cfg, OPENCODE_GO_DEFAULT_MODEL_REF),
		changed: true
	};
}
//#endregion
export { applyOpencodeGoModelDefault as t };
