UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

18 lines (17 loc) • 566 B
import { l as isRecord } from "./record-coerce-CVPuDqcc.mjs"; import { t as isBlockedObjectKey } from "./prototype-keys-CLGi5xDj.mjs"; //#region src/config/merge-missing.ts /** Fill undefined fields in place; newly assigned values retain their source references. */ function mergeMissing(e, t) { for (const [n, r] of Object.entries(t)) { if (r === void 0 || isBlockedObjectKey(n)) continue; const t = e[n]; if (t === void 0) { e[n] = r; continue; } if (isRecord(t) && isRecord(r)) mergeMissing(t, r); } } //#endregion export { mergeMissing as t };