donobu
Version:
Create browser automations with an LLM agent and replay them as Playwright scripts.
11 lines • 551 B
TypeScript
/**
* Remove ANSI escape sequences (color/style codes) from a string.
*
* Playwright matchers emit terminal-styled errors. Once those messages cross
* into Donobu data flows — `forLlm` strings sent to the model, JSON-stringified
* exception messages, persisted reports — the codes never render as colors and
* just become visible junk (worse: `JSON.stringify` escapes the ESC byte into
* the 6-char literal `\u001b[..]m`). Strip at the boundary.
*/
export declare function stripAnsi(str: string): string;
//# sourceMappingURL=ansi.d.ts.map