Immutable runtime snapshots for Hooks v2 configuration.
Return the capability entry for event.
Return the canonical SHA-256 snapshot id for config.
Return the compatible notification matcher and wire value.
Map a native tool name to the compatible wire tool name.
Process responsible for originating an event.
Structured diagnostic produced while processing a hook.
Supported hook lifecycle events.
Domain payload for Notification.
Domain payload for PermissionRequest.
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.
Domain payload for PreCompact.
Domain payload for PreToolUse.
Domain payload for SessionEnd.
Domain payload for SessionStart.
Domain payload for SubagentStart.
Domain payload for SubagentStop.
background_tasks and session_crons are optional wire-compat fields.
Blocking or resumable SubagentStop effects are not applied yet.
Top-level configuration grouped by hook event.
A domain hook event with its invocation context.
One ordered command handler in a configuration snapshot.
Matched handlers for one invocation.
Immutable, declaration-ordered Hooks v2 runtime configuration.