openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
3 lines • 608 B
JavaScript
import{o as copyConfigResolutionFactsThroughRewrite}from"./resolution-facts-DYKtoyes.mjs";import{t as inheritLegacyDefaultAgentId}from"./legacy.default-agent-owner-DUgZJ5NH.mjs";
//!src/commands/doctor/shared/config-mutation-state.ts
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}}export{applyDoctorConfigMutation as t};