UNPKG

browser-debugger-cli

Version:

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

31 lines 959 B
/** * Daemon Launcher - Spawns and manages the daemon process * * This module handles: * - Spawning the daemon worker process * - Waiting for the handshake to complete * - Capturing daemon logs * - Ensuring only one daemon runs at a time */ import type { ChildProcess } from 'child_process'; /** * Launch the daemon worker process. * * This function: * 1. Acquires daemon lock atomically (prevents concurrent daemon starts) * 2. Cleans up any stale session files * 3. Checks if a daemon is already running * 4. Spawns the daemon worker * 5. Waits for it to become ready * * @returns The spawned child process * @throws Error if daemon fails to start or is already running */ export declare function launchDaemon(): Promise<ChildProcess>; /** * Check if the daemon is currently running. * * @returns True if daemon is running, false otherwise */ export declare function isDaemonRunning(): boolean; //# sourceMappingURL=launcher.d.ts.map