| 3 | let _nextId = 1; |
| 4 | |
| 5 | export class RpcError extends Error { |
| 6 | constructor( |
| 7 | public code: number, |
| 8 | message: string, |
| 9 | ) { |
| 10 | super(message); |
| 11 | this.name = "RpcError"; |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | export async function callTool<T = unknown>( |
| 16 | name: string, |
nothing calls this directly
no outgoing calls
no test coverage detected