UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

19 lines (18 loc) • 788 B
import { o as copyConfigResolutionFactsThroughRewrite } from "./resolution-facts-xaIKuREs.mjs"; import { t as inheritLegacyDefaultAgentId } from "./legacy.default-agent-owner-DpmHgK0A.mjs"; //#region src/commands/doctor/shared/config-mutation-state.ts /** Apply a config mutation to doctor state, writing cfg only in repair mode. */ function applyDoctorConfigMutation(e) { const { state: t, mutation: n, shouldRepair: r, fixHint: i } = e; if (n.changes.length === 0) return t; const a = inheritLegacyDefaultAgentId(t.candidate, n.config); copyConfigResolutionFactsThroughRewrite(t.candidate, a); return { cfg: r ? a : t.cfg, candidate: a, pendingChanges: true, fixHints: !r && i ? [...t.fixHints, i] : t.fixHints }; } //#endregion export { applyDoctorConfigMutation as t };