UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

15 lines (14 loc) • 732 B
import { f as resolveOfficialExternalChannelCompatibilityMigration } from "./official-external-plugin-catalog-DtkWz1Xo.mjs"; import { t as LEGACY_CONFIG_MIGRATIONS } from "./legacy-config-migrations-8hb5BL3G.mjs"; //#region src/commands/channel-setup/config-compatibility.ts function normalizeExternalChannelSetupConfig(e) { const t = resolveOfficialExternalChannelCompatibilityMigration(e.channel); if (!t) return e.cfg; const n = LEGACY_CONFIG_MIGRATIONS.find((e) => e.id === t); if (!n) throw new Error(`Official external channel ${e.channel} references unknown compatibility migration ${t}`); const r = structuredClone(e.cfg); n.apply(r, []); return r; } //#endregion export { normalizeExternalChannelSetupConfig as t };