Kind: Class
Source: atloria-monorepo/libs/agent-core/src/session/hook-registry.ts
Methods
| Method | Signature | Returns |
|---|---|---|
has | has(event: HookableEvent) | boolean |
run | run(event: HookableEvent, data: Record<string, unknown>, toolName: string) | Promise<HookRunResult> |
Where it refuses work
HookRegistrystops the work with an early return when!hooks || hooks.length === 0.HookRegistrystops the work with an early return whenresult.blocked.
When something fails
HookRegistryhandles failure in 3 places: it discards it silently in 2, and turns it into a return value in 1.
Was this page helpful?