/** * [WHO]: getOutputFilePath, writeAgentOutputFile, getTasksDir — file-based output persistence per CC §XI.3 * [FROM]: Depends on node:fs/promises, node:path for file I/O * [TO]: Consumed by ./agent-tool (async execution path) * [HERE]: core/sub-agent/agent-output-persistence.ts - Output file persistence per CC §XI.3 (lY/qR6) * [COVENANT]: Change output path → update agent-input-output.ts outputFile field */ /** * Get the tasks directory path. * Matches CC's qR6() function: /.claude/tasks/ → /.catui/tasks/ * * Per CC §19: Catui uses .catui/ instead of .claude/ */ export declare function getTasksDir(cwd: string): string; /** * Get the output file path for an agent. * Matches CC's lY() function: qR6() + `.output` * * Per CC §6.2 step 16: outputFile = lY(agentId) */ export declare function getOutputFilePath(agentId: string, cwd: string): string; /** * Write the agent's output to a file. * Per CC §11.3: async agent results are passed via filesystem. * The output file contains the last assistant message's text. * * Matches CC's async output writing in LS8. */ export declare function writeAgentOutputFile(agentId: string, cwd: string, output: string): Promise; /** * Write a structured AgentOutputCompleted to the output file. * Used when an async agent completes and writes its final result. */ export declare function writeAgentOutputCompleted(agentId: string, cwd: string, output: import("./agent-input-output.js").AgentOutputCompleted): Promise; /** * Read an agent's output file (for checking progress of background agents). * Per CC §11.3: parent agent can use Read tool to check the outputFile. */ export declare function readAgentOutputFile(agentId: string, cwd: string): Promise; /** * Check if an agent's output file exists. */ export declare function agentOutputFileExists(agentId: string, cwd: string): Promise;