/** * Cursor Output Normalizer * * Converts Cursor JSONL messages to normalized entries for UI rendering. * Handles streaming message coalescing and session metadata tracking. * * @module agents/cursor/normalizer/normalizer */ import type { OutputChunk, NormalizedEntry } from '../../types/agent-executor.js'; /** * Normalize Cursor JSONL output to unified format. * * Parses line-delimited JSON output from Cursor CLI and converts * to normalized entries. Handles streaming message coalescing, * session metadata extraction, and authentication error detection. * * @param outputStream - Stream of output chunks from process * @param workDir - Working directory for path relativization * @returns Async iterable of normalized entries * * @example * ```typescript * const executor = new CursorExecutor(); * const spawned = await executor.executeTask(task); * const outputStream = executor.createOutputChunks(spawned.process); * * for await (const entry of normalizeOutput(outputStream, task.workDir)) { * console.log(entry.type.kind, entry.content); * } * ``` */ export declare function normalizeOutput(outputStream: AsyncIterable, workDir: string): AsyncIterable; //# sourceMappingURL=normalizer.d.ts.map