UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

3 lines • 483 B
import{a as asOptionalRecord}from"./record-coerce-BTbqdJ3-.mjs";import{r as resolveChannelAccountEntry}from"./account-lookup-DXbrh7Os.mjs"; //!src/channels/account-config-enabled.ts function isChannelAccountExplicitlyDisabled(e){const t=asOptionalRecord(e.cfg.channels?.[e.channel]);const n=asOptionalRecord(resolveChannelAccountEntry(asOptionalRecord(t?.accounts),e.accountId,e.channel));return t?.enabled===false||n?.enabled===false}export{isChannelAccountExplicitlyDisabled as t};