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

Function getHooksConfigFromSnapshot

src/utils/hooks/hooksConfigSnapshot.ts:119–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117 * @returns The hooks configuration
118 */
119export function getHooksConfigFromSnapshot(): HooksSettings | null {
120 if (initialHooksConfig === null) {
121 captureHooksConfigSnapshot()
122 }
123 return initialHooksConfig
124}
125
126/**
127 * Reset the hooks configuration snapshot (useful for testing)

Callers 8

getHooksConfigFunction · 0.85
hasHookForEventFunction · 0.85
hasWorktreeCreateHookFunction · 0.85
resolveWatchPathsFunction · 0.85
onCwdChangedForHooksFunction · 0.85

Calls 1

Tested by

no test coverage detected