(ms: number)
| 20 | import type { ToolHandler, ToolResult } from '../src/mcp/tools'; |
| 21 | |
| 22 | const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms)); |
| 23 | |
| 24 | interface CallMsg { type: 'call'; id: number; toolName: string; args: Record<string, unknown> } |
| 25 | type Action = { result: ToolResult } | { crash: true } | { hang: true } | { wait: Promise<ToolResult> }; |