MCPcopy Create free account
hub / github.com/WJX20/claude-code / getHookTypeCounts

Function getHookTypeCounts

src/utils/hooks.ts:1566–1572  ·  view source on GitHub ↗

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

(hooks: MatchedHook[])

Source from the content-addressed store, hash-verified

1564 * Build a map of {hookType: count} from matched hooks.
1565 */
1566function getHookTypeCounts(hooks: MatchedHook[]): Record<string, number> {
1567 const counts: Record<string, number> = {}
1568 for (const h of hooks) {
1569 counts[h.hook.type] = (counts[h.hook.type] || 0) + 1
1570 }
1571 return counts
1572}
1573
1574function getHooksConfig(
1575 appState: AppState | undefined,

Callers 2

executeHooksFunction · 0.85
executeHooksOutsideREPLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected