claude-code-sdk-python/tests
Kashyap Murali 4f4fcfe3f3
feat: Full TypeScript SDK compatibility for tool permissions
- Align PermissionResult structure with TypeScript SDK
  - Add PermissionResultAllow with updatedInput and updatedPermissions
  - Add PermissionResultDeny with message and interrupt flag
  - Remove misleading ToolPermissionResponse alias (no actual backward compat)

- Add PermissionUpdate types matching TypeScript
  - PermissionUpdate with all update types
  - PermissionRuleValue for rule definitions
  - PermissionUpdateDestination and PermissionBehavior literals

- Update all tests and examples to use new types
- Update Query handler to properly handle Allow/Deny variants

Breaking change: Callbacks must now return PermissionResultAllow or
PermissionResultDeny instead of the old ToolPermissionResponse format.

This ensures full compatibility with TypeScript SDK's permission system.
2025-09-03 09:05:51 -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: Full TypeScript SDK compatibility for tool permissions 2025-09-03 09:05:51 -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