(requestId_0, toolName, input, toolUseId, description, permissionSuggestions, blockedPath)
| 539 | // handler can race bridge responses against local user interaction. |
| 540 | const permissionCallbacks: BridgePermissionCallbacks = { |
| 541 | sendRequest(requestId_0, toolName, input, toolUseId, description, permissionSuggestions, blockedPath) { |
| 542 | handle_0.sendControlRequest({ |
| 543 | type: 'control_request', |
| 544 | request_id: requestId_0, |
| 545 | request: { |
| 546 | subtype: 'can_use_tool', |
| 547 | tool_name: toolName, |
| 548 | input, |
| 549 | tool_use_id: toolUseId, |
| 550 | description, |
| 551 | ...(permissionSuggestions ? { |
| 552 | permission_suggestions: permissionSuggestions |
| 553 | } : {}), |
| 554 | ...(blockedPath ? { |
| 555 | blocked_path: blockedPath |
| 556 | } : {}) |
| 557 | } |
| 558 | }); |
| 559 | }, |
| 560 | sendResponse(requestId_1, response) { |
| 561 | const payload: Record<string, unknown> = { |
| 562 | ...response |
nothing calls this directly
no test coverage detected