Download one file of a version's folder
Streams the file at path (its path in the folder, with / percent-encoded as %2F) as it was saved.
applicationKeyAuthorizationBearer <token>An application key of the Tenant (PUT /v1/tenant/keys/{keyId}), or Studio's key, derived from the admin key. With Nylorun-Subject and Nylorun-Scopes, it acts for that person, narrowed to those scopes. Never accepted from a browser (Origin).
name*stringThe agent manifest's name, such as triage
version*stringThe version number
path*stringThe file's path in the folder, percent-encoded
Nylorun-Protocol*stringThe protocol version, 18
Nylorun-Subject?stringThe person an application key acts for
Nylorun-Scopes?stringThe subject's space-separated scopes; required with a subject
The file's bytes
response?fileapplication/octet-streambinaryimport { createClient } from "@nylorun/agents";const client = await createClient();const agentMd = await client.agentManifests.sourceFile("assistant", 3, "AGENT.md"); // the file's bytes"string"Get the folder a version was compiled from GET
The agent folder the version was saved from (feature `agent-folders`): its compiler, size and every file, sorted by path. A version saved as JSON has none (`404`).
Compare two versions' folders GET
The files added, removed and changed from version `from`'s source to version `to`'s, by path, a file changed when its SHA-256 differs (feature `agent-folders`). Each list is sorted by path. A version saved as JSON has no source (`404`).