(args: string[])
| 69 | const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms)) |
| 70 | |
| 71 | function runBinary(args: string[]): string { |
| 72 | return execFileSync(BINARY_PATH, args, { |
| 73 | encoding: 'utf-8', |
| 74 | timeout: 10_000, |
| 75 | env: { ...process.env, NO_COLOR: '1' }, |
| 76 | }) |
| 77 | } |
| 78 | |
| 79 | const binaryExists = existsSync(BINARY_PATH) |
| 80 | const tmuxAvailable = isTmuxAvailable() |