Skip to main content

Module events

Module events 

Source
Expand description

Hook events — typed payloads for each extension point.

Each HookKind maps to a discrete phase of SynapsCLI’s execution loop. HookEvent is the concrete payload dispatched to subscribers at that phase; HookResult is what a handler returns to control execution flow.

Permission enforcement lives in crate::extensions::permissions: every HookKind declares a required_permission so the runtime can gate subscriptions before any payload is delivered.

Structs§

HookEvent
A hook event payload dispatched to extension handlers.

Enums§

HookKind
All hook event kinds in the phase-1 catalog.
HookResult
What an extension handler returns after processing a hook event.