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

Function hasInstructionsLoadedHook

src/utils/hooks.ts:4314–4320  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4312 * derived hooks (structured output enforcement etc.) are internal and not checked.
4313 */
4314export function hasInstructionsLoadedHook(): boolean {
4315 const snapshotHooks = getHooksConfigFromSnapshot()?.['InstructionsLoaded']
4316 if (snapshotHooks && snapshotHooks.length > 0) return true
4317 const registeredHooks = getRegisteredHooks()?.['InstructionsLoaded']
4318 if (registeredHooks && registeredHooks.length > 0) return true
4319 return false
4320}
4321
4322/**
4323 * Execute InstructionsLoaded hooks when an instruction file (CLAUDE.md or

Callers 2

memoryFilesToAttachmentsFunction · 0.85
claudemd.tsFile · 0.85

Calls 2

getRegisteredHooksFunction · 0.85

Tested by

no test coverage detected