Capability registry for Hooks v2 events.
Return the capability entry for event.
Supported hook lifecycle events.
Process responsible for originating an event.
Decision returned for Notification.
Domain payload for Notification.
Decision returned for PermissionRequest.
Domain payload for PermissionRequest.
Decision returned for PostToolUse.
Domain payload for PostToolUse.
result is the JSON projection of the native tool return value, not a
live Command / ToolMessage. The live value stays in the tool wrapper
for decision application; only JSON crosses the interrupt boundary to the
client.
Decision returned for PreCompact.
Domain payload for PreCompact.
Decision returned for PreToolUse.
Domain payload for PreToolUse.
Decision returned for SessionEnd.
Domain payload for SessionEnd.
Decision returned for SessionStart.
Domain payload for SessionStart.
Decision returned for Stop.
Domain payload for Stop.
background_tasks and session_crons are optional wire-compat fields;
omit or leave empty until they can be sourced.
Decision returned for SubagentStart.
Domain payload for SubagentStart.
Decision returned for SubagentStop.
Domain payload for SubagentStop.
background_tasks and session_crons are optional wire-compat fields.
Blocking or resumable SubagentStop effects are not applied yet.
Decision returned for UserPromptSubmit.
Domain payload for UserPromptSubmit.
Fields common to every event-specific hook decision.
Supported hook handler executor kinds.
How non-JSON stdout is treated on a successful exit.
How exit code 2 is interpreted for an event.
How matching handler effects are combined.
Immutable capability description for one hook event.