Skip to main content

Module attachments

Module attachments 

Source
Expand description

File attachment processing for the RPC transport.

Handles base64-encoded uploads and local-path reads, SHA-256 content-addressed deduplication, workspace storage, and marker generation. Used by both file/attach and session/prompt (inline attachments).

Constants§

MAX_FILE_BYTES
Per-file size limit (decoded bytes).
MAX_REQUEST_BYTES
Per-request total size limit (decoded bytes).

Functions§

process_file_entry
Process a single FileEntry — resolve bytes, dedup, write to the upload root, and return a FileEntryResult.