Skip to main content

Module deliver_file

Module deliver_file 

Structs§

DeliverFileTool
Deliver a workspace file to an ACP client as an embedded binary resource.

Constants§

MAX_DELIVER_FILE_BYTES

Functions§

attachment_deliver_uri
ACP / model citation URI for an outbound delivered file.
read_delivered_artifact_bounded
Bounded, no-follow read of an already-delivered artifact under the workspace uploads/ directory, for the ACP consumer that embeds the blob. The artifact is opened once beneath its parent directory handle (cap-std, no-follow), its size is taken from that handle, and at most MAX_DELIVER_FILE_BYTES + 1 bytes are read from the same handle. A workspace writer that grows or replaces the content-addressed file between the tool’s write and this read therefore cannot cause an unbounded read, and a replacement symlink is refused, not followed.