()
| 4312 | * derived hooks (structured output enforcement etc.) are internal and not checked. |
| 4313 | */ |
| 4314 | export 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 |
no test coverage detected