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

Function getHooksForEvent

src/utils/hooks/hooksSettings.ts:163–168  ·  view source on GitHub ↗
(
  appState: AppState,
  event: HookEvent,
)

Source from the content-addressed store, hash-verified

161}
162
163export function getHooksForEvent(
164 appState: AppState,
165 event: HookEvent,
166): IndividualHookConfig[] {
167 return getAllHooks(appState).filter(hook => hook.event === event)
168}
169
170export function hookSourceDescriptionDisplayString(source: HookSource): string {
171 switch (source) {

Callers

nothing calls this directly

Calls 1

getAllHooksFunction · 0.85

Tested by

no test coverage detected