chore(extension): find installed chrome (#728)

This commit is contained in:
Yury Semikhatsky
2025-07-21 17:57:38 -07:00
committed by GitHub
parent f1826b96b6
commit cfcca40b90
2 changed files with 31 additions and 15 deletions

View File

@@ -19,9 +19,11 @@ import { startHttpServer, startHttpTransport, startStdioTransport } from '../tra
import { Server } from '../server.js';
import { startCDPRelayServer } from './cdpRelay.js';
export async function runWithExtension(options: any) {
const config = await resolveCLIConfig({ });
const contextFactory = await startCDPRelayServer(9225);
import type { CLIOptions } from '../config.js';
export async function runWithExtension(options: CLIOptions) {
const config = await resolveCLIConfig(options);
const contextFactory = await startCDPRelayServer(9225, config.browser.launchOptions.channel || 'chrome');
const server = new Server(config, contextFactory);
server.setupExitWatchdog();