claude-code-sdk-python/tests
Kashyap Murali a774031c34
feat: Add tool permission and hook callbacks support
- Added ToolPermissionCallback type for controlling tool execution
- Added HookCallback type for intercepting tool events
- Added callbacks to ClaudeCodeOptions
- Thread callbacks through InternalClient and ClaudeSDKClient to Query
- Updated Query to handle tool permission requests with new types
- Support both ToolPermissionResponse and dict returns for compatibility
- Added example demonstrating permission control and input modification
- Added comprehensive tests for callbacks functionality
- Fixed NotRequired import for Python 3.11+ compatibility
2025-09-02 15:35:39 -07:00
..
conftest.py Initial Python SDK import 2025-06-12 00:16:19 -07:00
test_changelog.py Add changelog and changelog format check (#77) 2025-07-21 10:53:01 -07:00
test_client.py Implement control protocol support for Python SDK (#139) 2025-09-01 23:04:22 -07:00
test_errors.py Initial Python SDK import 2025-06-12 00:16:19 -07:00
test_integration.py Implement control protocol support for Python SDK (#139) 2025-09-01 23:04:22 -07:00
test_message_parser.py Move thinking block parsing from user to assistant messages (#119) 2025-08-19 13:36:12 -07:00
test_streaming_client.py Implement control protocol support for Python SDK (#139) 2025-09-01 23:04:22 -07:00
test_subprocess_buffering.py Implement control protocol support for Python SDK (#139) 2025-09-01 23:04:22 -07:00
test_tool_callbacks.py feat: Add tool permission and hook callbacks support 2025-09-02 15:35:39 -07:00
test_transport.py Implement control protocol support for Python SDK (#139) 2025-09-01 23:04:22 -07:00
test_types.py Add support for plan permission mode (#116) 2025-08-07 13:06:05 -07:00