Skip to content

Conversation

@dicksontsai
Copy link
Collaborator

Summary

The Python SDK was missing two permission modes that are available in the TypeScript SDK and CLI:

  • 'delegate': Delegate mode, restricts to only Teammate and Task tools
  • 'dontAsk': Don't prompt for permissions, deny if not pre-approved

This brings the Python SDK PermissionMode type in sync with the TypeScript SDK.

Changes

  • Updated PermissionMode type literal in types.py to include all 6 modes
  • Added documentation comments describing each permission mode

Testing

  • All 14 type tests pass
  • Lint checks pass

Fixes #483

The Python SDK was missing two permission modes that are available in
the TypeScript SDK and CLI:

- 'delegate': Delegate mode, restricts to only Teammate and Task tools
- 'dontAsk': Don't prompt for permissions, deny if not pre-approved

This brings the Python SDK PermissionMode type in sync with the
TypeScript SDK.

Fixes #483
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Don't ask permission mode not supported

2 participants