UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

12 lines (11 loc) • 626 B
import { a as asOptionalRecord } from "./record-coerce-CVPuDqcc.mjs"; import { r as resolveChannelAccountEntry } from "./account-lookup-FhQZVFfo.mjs"; //#region src/channels/account-config-enabled.ts /** Reads an operator's explicit disable without resolving an operational account. */ 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; } //#endregion export { isChannelAccountExplicitlyDisabled as t };