| 159 | * Permission handler interface for ACP backends |
| 160 | */ |
| 161 | export interface AcpPermissionHandler { |
| 162 | /** |
| 163 | * Handle a tool permission request |
| 164 | * @param toolCallId - The unique ID of the tool call |
| 165 | * @param toolName - The name of the tool being called |
| 166 | * @param input - The input parameters for the tool |
| 167 | * @returns Promise resolving to permission result with decision |
| 168 | */ |
| 169 | handleToolCall( |
| 170 | toolCallId: string, |
| 171 | toolName: string, |
| 172 | input: unknown |
| 173 | ): Promise<{ decision: 'approved' | 'approved_for_session' | 'denied' | 'abort' }>; |
| 174 | } |
| 175 | |
| 176 | /** |
| 177 | * Configuration for AcpBackend |
no outgoing calls
no test coverage detected