/** * @fileoverview Output parser for `roy-agent act` subprocess stdout. * * `roy-agent act -s ` writes human-friendly text to * stdout with a leading/trailing sentinel pair: * * [TaskEventHandler] Started * ... LLM streaming text ... * [TaskEventHandler] Stopped * * We do not want the sentinel lines to leak into the chat UI, and we want * to strip ANSI colour codes that the CLI uses to highlight text. This * module is the single place that knows about that format — every other * layer treats output as an opaque byte stream. * * v2.5.0: kept tiny so we can unit-test the contract in isolation. */ export declare const SENTINEL_START = "[TaskEventHandler] Started"; export declare const SENTINEL_STOP = "[TaskEventHandler] Stopped"; /** Strip CSI / SGR ANSI colour codes from a chunk of stdout. */ export declare function stripAnsi(input: string): string; /** Strip the literal sentinel lines (start + stop). Case-sensitive. */ export declare function stripSentinels(input: string): string; /** Convenience: strip ANSI + sentinels + trim trailing newline. */ export declare function cleanStdout(raw: string): string; //# sourceMappingURL=chat-output-parser.d.ts.map