UNPKG

browser-debugger-cli

Version:

DevTools telemetry in your terminal. For humans and agents. Direct WebSocket to Chrome's debugging port.

24 lines 946 B
/** * CDP Setup and Navigation * * Handles CDP connection, telemetry activation, and page navigation. */ import { CDPConnection } from '../../connection/cdp.js'; import type { TelemetryStore } from '../../daemon/worker/TelemetryStore.js'; import type { WorkerConfig } from '../../daemon/worker/types.js'; import type { CleanupFunction, LaunchedChrome } from '../../types'; import type { Logger } from '../../ui/logging/index.js'; /** * CDP setup result. */ export interface CDPSetupResult { cdp: CDPConnection; cleanupFunctions: CleanupFunction[]; } /** * Setup CDP connection, activate telemetry, and navigate to target URL. * * @param onDisconnect - Callback for when CDP connection is lost */ export declare function setupCDPAndNavigate(config: WorkerConfig, telemetryStore: TelemetryStore, chrome: LaunchedChrome | null, log: Logger, onDisconnect: () => void): Promise<CDPSetupResult>; //# sourceMappingURL=cdpSetup.d.ts.map