MCPcopy
hub / github.com/codeaashu/claude-code / shouldEmit

Function shouldEmit

src/utils/hooks/hookEvents.ts:83–91  ·  view source on GitHub ↗
(hookEvent: string)

Source from the content-addressed store, hash-verified

81}
82
83function shouldEmit(hookEvent: string): boolean {
84 if ((ALWAYS_EMITTED_HOOK_EVENTS as readonly string[]).includes(hookEvent)) {
85 return true
86 }
87 return (
88 allHookEventsEnabled &&
89 (HOOK_EVENTS as readonly string[]).includes(hookEvent)
90 )
91}
92
93export function emitHookStarted(
94 hookId: string,

Callers 4

emitHookStartedFunction · 0.85
emitHookProgressFunction · 0.85
emitHookResponseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected