UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

3 lines • 476 B
import{c as normalizeOptionalLowercaseString}from"./string-coerce-CpTFcSwY.mjs";import{n as getLoadedChannelPluginById}from"./registry-loaded-BEn6LBRM.mjs"; //!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}export{shouldHandleTextCommands as t};