UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

3 lines • 803 B
import{i as resolveChannelConfigRecord,n as hasMeaningfulChannelConfigShallow}from"./channel-config-activation-g_b_Clo2.mjs";import{a as listBundledChannelIdsForPackageState,n as hasBundledChannelPackageState}from"./package-state-probes-D9nK4Yua.mjs";import{t as getBootstrapChannelPlugin}from"./bootstrap-registry-BEa1DI8x.mjs"; //!src/config/channel-configured.ts function isChannelConfigured(e,t,n=process.env){if(hasMeaningfulChannelConfigShallow(resolveChannelConfigRecord(e,t),t))return true;if(listBundledChannelIdsForPackageState(`configuredState`).includes(t.trim()))return hasBundledChannelPackageState({metadataKey:`configuredState`,channelId:t,cfg:e,env:n});const r=getBootstrapChannelPlugin(t);return Boolean(r?.config?.hasConfiguredState?.({cfg:e,env:n}))}export{isChannelConfigured as t};