MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getInProgressHookCount

Function getInProgressHookCount

source code/utils/messages.ts:1046–1059  ·  view source on GitHub ↗
(
  messages: NormalizedMessage[],
  toolUseID: string,
  hookEvent: HookEvent,
)

Source from the content-addressed store, hash-verified

1044}
1045
1046function getInProgressHookCount(
1047 messages: NormalizedMessage[],
1048 toolUseID: string,
1049 hookEvent: HookEvent,
1050): number {
1051 return count(
1052 messages,
1053 _ =>
1054 _.type === 'progress' &&
1055 _.data.type === 'hook_progress' &&
1056 _.data.hookEvent === hookEvent &&
1057 _.parentToolUseID === toolUseID,
1058 )
1059}
1060
1061function getResolvedHookCount(
1062 messages: NormalizedMessage[],

Callers 1

hasUnresolvedHooksFunction · 0.85

Calls 1

countFunction · 0.85

Tested by

no test coverage detected