NylorunDocsBeta
Runtime APIAgentsManifests

Compare two versions' folders

GET
/v1/agent-manifests/{name}/source/diff

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

Authorization

applicationKey
headerAuthorizationBearer <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).

Path Parameters

name*string

The agent manifest's name, such as triage

Query Parameters

from*string

The version to compare from

to*string

The version to compare to

Header Parameters

Nylorun-Protocol*string

The protocol version, 18

Nylorun-Subject?string

The person an application key acts for

Nylorun-Scopes?string

The subject's space-separated scopes; required with a subject

Response Body

What changed

application/json
  1. response
name*string
from*integer
Range0 < value
to*integer
Range0 < value
added*array<>
removed*array<>
changed*array<>
unchanged*integer
Range0 <= value
import { createClient } from "@nylorun/agents";const client = await createClient();const diff = await client.agentManifests.sourceDiff("assistant", 2, 3); // added, removed, changed, unchanged
{  "name": "string",  "from": 1,  "to": 1,  "added": [    {      "path": "string",      "size": 0,      "sha256": "string"    }  ],  "removed": [    {      "path": "string",      "size": 0,      "sha256": "string"    }  ],  "changed": [    {      "path": "string",      "from": {        "size": 0,        "sha256": "string"      },      "to": {        "size": 0,        "sha256": "string"      }    }  ],  "unchanged": 0}