pub async fn dispatch_hook(
event: &ThreadEvent,
hooks: &[HookMatcher],
context: &HookContext,
default_timeout: Duration,
) -> Option<HookOutput>Expand description
Dispatch an event through the hook chain (first-match).
Returns the HookOutput from the first matching hook, or None if no hook matched.
On timeout, the hook is skipped (fail-open) and dispatch continues to the next hook.