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 aFileEntryResult.