openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
2 lines • 632 B
JavaScript
//!src/hooks/internal-hook-types.ts
const KNOWN_INTERNAL_HOOK_EVENT_FAMILIES=[`command`,`session`,`agent`,`gateway`,`message`];const KNOWN_INTERNAL_HOOK_EVENT_KEYS=[`agent:bootstrap`,`command:new`,`command:reset`,`command:stop`,`gateway:pre-restart`,`gateway:shutdown`,`gateway:startup`,`message:preprocessed`,`message:received`,`message:sent`,`message:transcribed`,`session:auto-reset`,`session:compact:after`,`session:compact:before`,`session:patch`];function isKnownInternalHookEventKey(e){return KNOWN_INTERNAL_HOOK_EVENT_KEYS.includes(e)||KNOWN_INTERNAL_HOOK_EVENT_FAMILIES.includes(e)}export{isKnownInternalHookEventKey as t};