MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / hasAny

Method hasAny

src/hooks/manager.ts:37–39  ·  view source on GitHub ↗

Returns true if any hook is registered for the event. Cheap check before building context.

(event: HookEvent)

Source from the content-addressed store, hash-verified

35
36 /** Returns true if any hook is registered for the event. Cheap check before building context. */
37 hasAny(event: HookEvent): boolean {
38 return (this.cfg[event] ?? []).length > 0;
39 }
40
41 /** Returns all hooks for an event (after matcher filtering when toolName is supplied). */
42 matching(event: HookEvent, toolName?: string): HookConfig[] {

Callers 3

shutdownFunction · 0.80
runMethod · 0.80
executeToolCallMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected