Agent Runtime Hooks Lifecycle hooks for observing and intercepting agent execution. Hooks are registered per-operation via and dispatched by . Hook Types 16 hook types across 5 categories: Key Files | File | Role | | ---------------------------------------------------------- | ------------------------------------------------------ | | | Type definitions (AgentHookType, all event interfaces) | | | Server-side types (AgentHook, re-exports) | | | Registration, dispatch, dispatchBeforeToolCall | | | Tool/Compact/HumanIntervention hook dispatch | | | Step hooks + HumanIntervention resume/reject |…