(ms: number)
| 14 | import type { ToolResult } from '../src/mcp/tools'; |
| 15 | |
| 16 | const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms)); |
| 17 | |
| 18 | interface CallMsg { type: 'call'; id: number; toolName: string; args: Record<string, unknown> } |
| 19 | type Action = { result: ToolResult } | { crash: true } | { hang: true } | { wait: Promise<ToolResult> }; |