UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

12 lines (11 loc) 546 B
import { c as normalizeOptionalLowercaseString } from "./string-coerce-CIXf7egm.js"; import { t as findRegisteredChannelPluginEntry } from "./registry-lookup-MnRZoGSI.js"; //#region src/channels/registry-normalize.ts /** Normalizes user/config channel identifiers so aliases resolve to canonical channel ids. */ function normalizeAnyChannelId(raw) { const key = normalizeOptionalLowercaseString(raw); if (!key) return null; return findRegisteredChannelPluginEntry(key)?.plugin.id ?? null; } //#endregion export { normalizeAnyChannelId as t };