Documentation
¶
Overview ¶
Package outputfiles creates the files pi writes so the model can use output it was not shown in full: the full text of truncated tool output, binary MCP resources and images shown by codemode scripts. Every output file is created here, in the OS temp directory.
Ports packages/coding-agent/src/utils/output-files.ts
Index ¶
Constants ¶
const Mode os.FileMode = 0o600
Mode is the permission of every output file. Output can carry private data, so only the user may read the files.
Variables ¶
This section is empty.
Functions ¶
func CreateStream ¶
CreateStream opens a new output file for streamed output. Like Node's write stream, which reports an open failure asynchronously, it returns the path even when the file could not be created: the error accompanies a nil file and the caller keeps the path.
Types ¶
This section is empty.