claude-code-sdk-python/src/claude_code_sdk
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
..
_internal feat: Full TypeScript SDK compatibility for tool permissions 2025-09-03 09:05:51 -07:00
__init__.py feat: Full TypeScript SDK compatibility for tool permissions 2025-09-03 09:05:51 -07:00
_errors.py Remove hardcoded timeout for control messages to match Typescript SDK 2025-07-19 20:43:07 -07:00
client.py refactor: Align with TypeScript SDK naming conventions 2025-09-02 19:40:57 -07:00
py.typed Initial Python SDK import 2025-06-12 00:16:19 -07:00
query.py feat: enable custom transports (#91) 2025-08-19 13:28:42 -07:00
types.py feat: Full TypeScript SDK compatibility for tool permissions 2025-09-03 09:05:51 -07:00