UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

16 lines (15 loc) 731 B
import { t as inheritLegacyDefaultAgentId } from "./legacy.default-agent-owner-BGwEdQRe.js"; //#region src/commands/doctor/shared/config-mutation-state.ts /** Apply a config mutation to doctor state, writing cfg only in repair mode. */ function applyDoctorConfigMutation(params) { if (params.mutation.changes.length === 0) return params.state; const config = inheritLegacyDefaultAgentId(params.state.candidate, params.mutation.config); return { cfg: params.shouldRepair ? config : params.state.cfg, candidate: config, pendingChanges: true, fixHints: !params.shouldRepair && params.fixHint ? [...params.state.fixHints, params.fixHint] : params.state.fixHints }; } //#endregion export { applyDoctorConfigMutation as t };