UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

49 lines (48 loc) • 986 B
import { L as asNullableRecord } from "./runtime-doctor-migrations-JGL9tD-z.js"; //#region extensions/clickclack/src/doctor-contract.ts function stripTimeoutSeconds(e) { const t = asNullableRecord(e); if (!t) return { value: e, changed: false }; let n = false; const r = {}; for (const [e, i] of Object.entries(t)) { if (e === "timeoutSeconds") { n = true; continue; } const t = stripTimeoutSeconds(i); n = n || t.changed; r[e] = t.value; } return { value: n ? r : e, changed: n }; } function normalizeCompatibilityConfig({ cfg: e }) { const t = asNullableRecord(e.channels?.clickclack); if (!t) return { config: e, changes: [] }; const n = stripTimeoutSeconds(t); if (!n.changed) return { config: e, changes: [] }; return { config: { ...e, channels: { ...e.channels, clickclack: n.value } }, changes: ["Removed retired ClickClack timeout tuning knobs."] }; } //#endregion export { normalizeCompatibilityConfig };