/** * logger.ts * * Provides a structured, colour-coded logger for the Playwright Pilot AI MCP server. * * All output goes to stderr, never stdout. This is critical because the MCP * protocol uses stdout exclusively for JSON-RPC messages; mixing log output * into stdout would corrupt the MCP communication channel. * * Each log method corresponds to a different subsystem and renders in a * distinct colour so developers can quickly identify which part of the system * a message comes from: * - mcp — magenta — MCP server and tool dispatch * - ai — cyan — AI-related operations * - browser — blue — Browser launch, navigation, page state * - executor — green — Test step execution * - healing — yellow — Self-healing attempts and results * - skill — white — Skill execution * - error — red — Errors and exceptions * - info — gray — General informational messages * * Each message is prefixed with a wall-clock timestamp (HH:MM:SS) and a * bracketed subsystem label. * * Role in the overall flow: * Used by every class and function in the system for diagnostic output. */ /** * Structured logger with colour-coded per-subsystem log methods. * All methods write to stderr. */ export declare const logger: { /** Log an MCP server or tool dispatch message (magenta). */ mcp: (msg: string) => boolean; /** Log an AI-related message (cyan). */ ai: (msg: string) => boolean; /** Log a browser lifecycle or navigation message (blue). */ browser: (msg: string) => boolean; /** Log a test step execution message (green). */ executor: (msg: string) => boolean; /** Log a healing attempt or result (yellow). */ healing: (msg: string) => boolean; /** Log a skill execution message (white). */ skill: (msg: string) => boolean; /** Log an error or exception (red). */ error: (msg: string) => boolean; /** Log a general informational message (gray). */ info: (msg: string) => boolean; }; //# sourceMappingURL=logger.d.ts.map