()
| 105 | } |
| 106 | |
| 107 | async function runPath(): Promise<void> { |
| 108 | const result = await findBrowser(); |
| 109 | if (!result) { |
| 110 | // Try a full ensure (which includes download) but write only the path |
| 111 | try { |
| 112 | const ensured = await ensureBrowser(); |
| 113 | process.stdout.write(ensured.executablePath + "\n"); |
| 114 | } catch (err: unknown) { |
| 115 | trackCommandFailure("browser", err); |
| 116 | console.error(err instanceof Error ? err.message : "Failed to find browser"); |
| 117 | process.exit(1); |
| 118 | } |
| 119 | return; |
| 120 | } |
| 121 | process.stdout.write(result.executablePath + "\n"); |
| 122 | } |
| 123 | |
| 124 | function runClear(): void { |
| 125 | clack.intro(c.bold("hyperframes browser clear")); |
no test coverage detected