pub(crate) async fn files_for_agent(
own: &str,
paths: Vec<String>,
) -> Result<Vec<Value>, (StatusCode, String)>Expand description
The files paths name, read for the agent on own (its block) as the
objects the page is given: name, type and base64 bytes. They come from the
agent’s own workspace only: where srv launched a host agent (not its block’s
cmd:cwd, which any client can rewrite, spec §5.3), or the folder behind a
container agent’s /workspace, whose answers never name the host folder.
Up to 25 MB of file I/O and base64 happens off the async workers.