(name: string, args: Record<string, unknown>)
| 76 | } |
| 77 | |
| 78 | async function tool(name: string, args: Record<string, unknown>): Promise<string> { |
| 79 | const result = await new ToolHandler(cg).execute(name, args); |
| 80 | expect(result.isError ?? false).toBe(false); |
| 81 | return result.content[0]?.text ?? ''; |
| 82 | } |
| 83 | |
| 84 | function cli(args: string[]): string { |
| 85 | const result = spawnSync(process.execPath, [...WASM_RUNTIME_FLAGS, BIN, ...args, '-p', dir], { |
no test coverage detected