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

Function registerPostSamplingHook

src/utils/hooks/postSamplingHooks.ts:31–33  ·  view source on GitHub ↗
(hook: PostSamplingHook)

Source from the content-addressed store, hash-verified

29 * This is an internal API not exposed through settings
30 */
31export function registerPostSamplingHook(hook: PostSamplingHook): void {
32 postSamplingHooks.push(hook)
33}
34
35/**
36 * Clear all registered post-sampling hooks (for testing)

Callers 3

initSkillImprovementFunction · 0.85
initMagicDocsFunction · 0.85
initSessionMemoryFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected