UNPKG

vibe-tools

Version:
49 lines (48 loc) 1.77 kB
import type { CommandOptions } from '../../types'; /** * Options that are shared across all browser commands */ export interface SharedBrowserCommandOptions extends CommandOptions { /** URL to navigate to */ url?: string; /** Global timeout for browser operations in milliseconds */ timeout?: number; /** Whether to run browser in headless mode */ headless?: boolean; /** Whether to capture and display HTML content */ html?: boolean; /** Path to save screenshot to */ screenshot?: string; /** Whether to capture and display console messages */ console?: boolean; /** Whether to capture and display network activity */ network?: boolean; /** Directory to save video recordings to */ video?: string; /** JavaScript code to execute in the browser before the main command */ evaluate?: string; /** Viewport size in format "widthxheight" (e.g. "1280x720") */ viewport?: string; /** Port number to connect to existing Chrome instance */ connectTo?: number; } /** * Options specific to the browser open command */ export interface OpenCommandOptions extends SharedBrowserCommandOptions { /** Wait condition after page load (time duration or CSS selector) */ wait?: string; } /** * Options specific to the browser mac-chrome command */ export interface MacChromeCommandOptions extends CommandOptions { /** URL to open Chrome with initially */ startUrl?: string; /** Copy the default Chrome profile to temporary directory */ copyDefaultProfile?: boolean; /** Copy a specific Chrome profile by email to temporary directory */ copyProfile?: string; /** Launch Chrome with only the lite flag set (faster start-up, fewer overrides) */ lite?: boolean; }