Skip to main content

Module hooks

Module hooks 

Source
Expand description

HookBus — the central dispatcher for extension hooks.

The HookBus holds registered handlers and dispatches typed events to them. Without any handlers, emit() is a no-op fast path (<1µs).

Tool-specific hooks filter by tool name before dispatching.

Notify-only kinds (HookKind::is_notification) go out through HookBus::notify: the caller does not wait, and no handler can delay, fail or change what the caller is doing.

Modules§

events
Hook events — typed payloads for each extension point.

Structs§

HandlerRegistration
A registered hook handler with its metadata.
HookBus
The central hook dispatcher.