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

Function emitHookProgress

src/utils/hooks/hookEvents.ts:108–122  ·  view source on GitHub ↗
(data: {
  hookId: string
  hookName: string
  hookEvent: string
  stdout: string
  stderr: string
  output: string
})

Source from the content-addressed store, hash-verified

106}
107
108export function emitHookProgress(data: {
109 hookId: string
110 hookName: string
111 hookEvent: string
112 stdout: string
113 stderr: string
114 output: string
115}): void {
116 if (!shouldEmit(data.hookEvent)) return
117
118 emit({
119 type: 'progress',
120 ...data,
121 })
122}
123
124export function startHookProgressInterval(params: {
125 hookId: string

Callers 1

Calls 2

shouldEmitFunction · 0.85
emitFunction · 0.70

Tested by

no test coverage detected