chore: introduce resolved config (#425)

This commit is contained in:
Pavel Feldman 2025-05-14 16:01:08 -07:00 committed by GitHub
parent 746c9fc124
commit fea50e6840
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 69 additions and 41 deletions

View file

@ -17,7 +17,7 @@
import { program } from 'commander';
import { startHttpTransport, startStdioTransport } from './transport.js';
import { resolveConfig } from './config.js';
import { resolveCLIConfig } from './config.js';
import type { Connection } from './connection.js';
import { packageJSON } from './context.js';
@ -50,7 +50,7 @@ program
.option('--viewport-size <size>', 'specify browser viewport size in pixels, for example "1280, 720"')
.option('--vision', 'Run server that uses screenshots (Aria snapshots are used by default)')
.action(async options => {
const config = await resolveConfig(options);
const config = await resolveCLIConfig(options);
const connectionList: Connection[] = [];
setupExitWatchdog(connectionList);