/** * Manages task output file persistence with streaming. * Ported from mcp-supersubagents/src/services/output-file.ts * Uses .codex-agents/ directory (distinct from .super-agents/). */ /** * Get the output directory path for a given cwd. * Returns: {cwd}/.codex-agents/ */ export declare function getOutputDir(cwd: string): string; /** * Get the output file path for a task. * Returns: {cwd}/.codex-agents/{taskId}.output */ export declare function getOutputPath(cwd: string, taskId: string): string; /** * Get the last-message file path for a task. * Returns: {cwd}/.codex-agents/{taskId}.last-message.txt */ export declare function getLastMessagePath(cwd: string, taskId: string): string; /** * Create an empty output file for a task. * Returns the absolute path to the output file, or null on failure. */ export declare function createOutputFile(cwd: string, taskId: string): Promise; /** * Append a line to the task's output file (async, uses persistent handle). */ export declare function appendToOutputFile(cwd: string, taskId: string, line: string): Promise; /** * Append completion footer to output file and close handle. */ export declare function finalizeOutputFile(cwd: string, taskId: string, status: string, error?: string): Promise; /** * Close all open file handles (called during shutdown). */ export declare function closeAllOutputHandles(): Promise; //# sourceMappingURL=output-file.d.ts.map