ccproxy.api.ui.permission_handler_protocol¶
ccproxy.api.ui.permission_handler_protocol
¶
Protocol definition for confirmation handlers.
ConfirmationHandlerProtocol
¶
Bases: Protocol
Protocol for confirmation request handlers.
This protocol defines the interface that all confirmation handlers must implement to be compatible with the CLI confirmation system.
handle_permission
async
¶
Handle a permission request.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
PermissionRequest
|
The permission request to handle |
required |
Returns:
Name | Type | Description |
---|---|---|
bool |
bool
|
True if the user confirmed, False otherwise |