( remoteTool: string, response: CallToolResult, args: Record<string, unknown>, )
| 65 | } |
| 66 | |
| 67 | async function toolResponseToDaemonResult( |
| 68 | remoteTool: string, |
| 69 | response: CallToolResult, |
| 70 | args: Record<string, unknown>, |
| 71 | ): Promise<DaemonToolResult> { |
| 72 | return bridgeResultToDaemonResult( |
| 73 | remoteTool, |
| 74 | await callToolResultToBridgeResultWithArtifact(response, { remoteTool, arguments: args }), |
| 75 | ); |
| 76 | } |
| 77 | |
| 78 | function toolErrorToDaemonResult(remoteTool: string, error: unknown): DaemonToolResult { |
| 79 | const message = error instanceof Error ? error.message : String(error); |
no test coverage detected