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

Function getSortedMatchersForEvent

src/utils/hooks/hooksConfigManager.ts:368–377  ·  view source on GitHub ↗
(
  hooksByEventAndMatcher: Record<
    HookEvent,
    Record<string, IndividualHookConfig[]>
  >,
  event: HookEvent,
)

Source from the content-addressed store, hash-verified

366
367// Get sorted matchers for a specific event
368export function getSortedMatchersForEvent(
369 hooksByEventAndMatcher: Record<
370 HookEvent,
371 Record<string, IndividualHookConfig[]>
372 >,
373 event: HookEvent,
374): string[] {
375 const matchers = Object.keys(hooksByEventAndMatcher[event] || {})
376 return sortMatchersByPriority(matchers, hooksByEventAndMatcher, event)
377}
378
379// Get hooks for a specific event and matcher
380export function getHooksForMatcher(

Callers 1

HooksConfigMenuFunction · 0.85

Calls 2

sortMatchersByPriorityFunction · 0.85
keysMethod · 0.80

Tested by

no test coverage detected