New Features
-
New hook events: Added support for three new hook event types (#545):
Notification— for handling notification events withNotificationHookInputandNotificationHookSpecificOutputSubagentStart— for handling subagent startup withSubagentStartHookInputandSubagentStartHookSpecificOutputPermissionRequest— for handling permission requests withPermissionRequestHookInputandPermissionRequestHookSpecificOutput
-
Enhanced hook input/output types: Added missing fields to existing hook types (#545):
PreToolUseHookInput: addedtool_use_idPostToolUseHookInput: addedtool_use_idSubagentStopHookInput: addedagent_id,agent_transcript_path,agent_typePreToolUseHookSpecificOutput: addedadditionalContextPostToolUseHookSpecificOutput: addedupdatedMCPToolOutput
Internal/Other Changes
- Updated bundled Claude CLI to version 2.1.31
PyPI: https://pypi.org/project/claude-agent-sdk/0.1.29/
pip install claude-agent-sdk==0.1.29