MCPcopy Create free account
hub / github.com/Noumena-Network/code / hasInstructionsLoadedHook

Function hasInstructionsLoadedHook

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

Source from the content-addressed store, hash-verified

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

Callers 2

memoryFilesToAttachmentsFunction · 0.85
claudemd.tsFile · 0.85

Calls 2

getRegisteredHooksFunction · 0.85

Tested by

no test coverage detected