()
| 218 | // ============ Browser Executable Management ============ |
| 219 | |
| 220 | export function detectBravePath(): string | null { |
| 221 | const platform = process.platform as 'darwin' | 'linux' | 'win32'; |
| 222 | const paths = BRAVE_PATHS[platform] || []; |
| 223 | for (const p of paths) { |
| 224 | if (fs.existsSync(p)) return p; |
| 225 | } |
| 226 | return null; |
| 227 | } |
| 228 | |
| 229 | export function detectChromePath(): string | null { |
| 230 | const platform = process.platform as 'darwin' | 'linux' | 'win32'; |
no outgoing calls
no test coverage detected