Skip to main content

Module hooks

Module hooks 

Source

Structs§

HookDefinition
A registered hook definition.
HookMatcher
Matcher for which tool/event a hook applies to.
HookOutput
Output from a hook callback.
NotificationInput
Input for a notification hook.
PostToolUseInput
Input for a postToolUse hook.
PreToolUseInput
Input for a preToolUse hook.
StopInput
Input for a stop hook.

Enums§

HookDecision
HookEvent
Hook events that can be intercepted.
HookInput
Discriminated hook input passed to callbacks.

Functions§

hook_callback
Helper to create a HookCallback from an async closure.

Type Aliases§

HookCallback
Async hook callback type.