Summary
TheInputs namespace contains classes for deserializing JSON data that Claude Code sends to hooks via stdin. Each hook event type has a corresponding input class.
Input Classes
All input classes inherit from
HookInputBase which provides common properties like SessionId, TranscriptPath, and CurrentWorkingDirectory.
Usage
Deserializing Hook Input
UseClaudeHooksSerializer to deserialize input from stdin:
Common Base Properties
All inputs include these properties fromHookInputBase:
SessionId- Unique session identifierTranscriptPath- Path to conversation transcriptCurrentWorkingDirectory- Active working directoryPermissionMode- Current permission modeHookEventName- The event that triggered this hook