UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

11 lines (10 loc) • 536 B
import { c as normalizeOptionalLowercaseString } from "./string-coerce-CCIiB4H7.mjs"; import { n as getLoadedChannelPluginById } from "./registry-loaded-NYWUyLLC.mjs"; //#region src/auto-reply/commands-text-routing.ts function shouldHandleTextCommands(e) { if (e.commandSource === "native" || e.cfg.commands?.text !== false) return true; const t = normalizeOptionalLowercaseString(e.surface); return !t || getLoadedChannelPluginById(t)?.capabilities?.nativeCommands !== true; } //#endregion export { shouldHandleTextCommands as t };