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