MCPcopy
hub / github.com/RedPlanetHQ/core / detectBravePath

Function detectBravePath

packages/cli/src/utils/browser-config.ts:220–227  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

218// ============ Browser Executable Management ============
219
220export 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
229export function detectChromePath(): string | null {
230 const platform = process.platform as 'darwin' | 'linux' | 'win32';

Callers 3

runSetBrowserFunction · 0.90
detectAvailableBrowsersFunction · 0.85
setBrowserExecutableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected