Session-scoped client facade for the Hooks v2 runtime.
Directory for user-level Deep Agents configuration (~/.deepagents).
Load, validate, merge, and hash Hooks v2 configuration.
Deduplicate hook fulfillment for one client session.
Execute Hooks v2 invocations against one immutable snapshot.
Supported hook lifecycle events.
A domain hook event with its invocation context.
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.
Present hook output consistently across interactive and headless clients.
Immutable, declaration-ordered Hooks v2 runtime configuration.
Append-only JSONL transcript projections owned by the client process.
Explicit user/project path context for project-sensitive behavior.
Client-only materialization needed to build one hook wire envelope.
Client-owned session runtime around an immutable Hooks snapshot.
Owns configuration snapshot identity, transcript materialization, and the
HookEngine. Server-owned lifecycle events reach this runtime through the
interrupt fulfill path in hooks.client.