MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getHookTypeCounts

Function getHookTypeCounts

src/utils/hooks.ts:1484–1490  ·  view source on GitHub ↗

* Build a map of {hookType: count} from matched hooks.

(hooks: MatchedHook[])

Source from the content-addressed store, hash-verified

1482 * Build a map of {hookType: count} from matched hooks.
1483 */
1484function getHookTypeCounts(hooks: MatchedHook[]): Record<string, number> {
1485 const counts: Record<string, number> = {}
1486 for (const h of hooks) {
1487 counts[h.hook.type] = (counts[h.hook.type] || 0) + 1
1488 }
1489 return counts
1490}
1491
1492function getHooksConfig(
1493 appState: AppState | undefined,

Callers 2

executeHooksFunction · 0.85
executeHooksOutsideREPLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected