Projection from Hooks v2 domain invocations to compatible wire input.
Project a native tool call into compatible wire name and input.
Project a native hook invocation into the compatible wire contract.
Serialize a hook invocation as validated compatible JSON.
Return the compatible notification matcher and wire value.
Tool-approval policy selected for an interactive thread.
dcode lifecycle notifications with compatible wire mappings.
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 Stop.
background_tasks and session_crons are optional wire-compat fields;
omit or leave empty until they can be sourced.
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.
Domain payload for UserPromptSubmit.
Background task snapshot exposed to hook handlers.
Optional Stop/SubagentStop wire field. Omit or leave empty until a trustworthy background-task source exists.
Wire representation of model effort.
Wire input for Notification.
Client-owned event: the terminal client still needs this envelope when it runs command handlers locally. Wire notification types without a matching lifecycle seam are not emitted.
Wire input for PermissionRequest.
Client-owned event: the terminal client still needs this envelope when it runs command handlers locally.
Wire input for PostToolUse.
Wire input for PreCompact.
Wire input for PreToolUse.
Scheduled session prompt exposed to hook handlers.
Optional Stop/SubagentStop wire field. Omit or leave empty until a trustworthy session-cron source exists.
Wire input for SessionEnd.
Client-owned event: the terminal client still needs this envelope when it runs command handlers locally.
Wire input for SessionStart.
Client-owned event: the terminal client still needs this envelope when it runs command handlers locally.
Wire input for Stop.
Wire input for SubagentStart.
Wire input for SubagentStop.
Wire input for UserPromptSubmit.
Notification matcher values exposed on the wire.
Permission modes exposed by the compatible wire protocol.
Resolved subagent identity.
A domain hook event with its invocation context.