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

Function emitHookStarted

src/utils/hooks/hookEvents.ts:93–106  ·  view source on GitHub ↗
(
  hookId: string,
  hookName: string,
  hookEvent: string,
)

Source from the content-addressed store, hash-verified

91}
92
93export function emitHookStarted(
94 hookId: string,
95 hookName: string,
96 hookEvent: string,
97): void {
98 if (!shouldEmit(hookEvent)) return
99
100 emit({
101 type: 'started',
102 hookId,
103 hookName,
104 hookEvent,
105 })
106}
107
108export function emitHookProgress(data: {
109 hookId: string

Callers 1

executeHooksFunction · 0.85

Calls 2

shouldEmitFunction · 0.85
emitFunction · 0.70

Tested by

no test coverage detected