(cmd: string)
| 79 | } |
| 80 | |
| 81 | async function which(cmd: string): Promise<string | null> { |
| 82 | try { |
| 83 | const { stdout } = await runCmd('which', [cmd]); |
| 84 | return stdout.trim() || null; |
| 85 | } catch { |
| 86 | return null; |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | // ───────────────────────────────────────────────────────────────────────────── |
| 91 | // computer_use_screenshot |