@nylorun/runtime 0.19.0-beta → 0.19.1-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +3 -2
- package/dist/api/openapi.js +18 -23
- package/dist/management-openapi.json +1 -1
- package/dist/openapi.json +1052 -1060
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.19.1-beta
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4b499ee: **The Runtime API's reference lists the Service endpoints last.** The Runtime API's tag groups are now Agents, Sessions, Sandboxes, Artifacts and Service. Service holds what was the Runtime tag under Get started: `/health`, `/ready`, `/v1/me`, the JWKS and `/openapi/runtime.json`. Sandboxes and Artifacts are a group each. The document no longer lists the `/openapi.json` alias; the Runtime still serves it.
|
|
8
|
+
|
|
3
9
|
## 0.19.0-beta
|
|
4
10
|
|
|
5
11
|
### Major Changes
|
package/README.md
CHANGED
|
@@ -184,8 +184,9 @@ https://cdn.jsdelivr.net/npm/@nylorun/runtime@<version>/dist/management-openapi.
|
|
|
184
184
|
```
|
|
185
185
|
|
|
186
186
|
Each document has described tags, in the order a developer uses them. The Runtime API's are
|
|
187
|
-
grouped (`x-tagGroups`):
|
|
188
|
-
|
|
187
|
+
grouped (`x-tagGroups`): Agents (Agents, Definition files), Sessions (Sessions API, AG-UI,
|
|
188
|
+
A2A), Sandboxes, Artifacts and Service (health, readiness, `/v1/me`, the JWKS and the
|
|
189
|
+
document; the `/openapi.json` alias is served but not listed). The Management API's are
|
|
189
190
|
Tenant, Application keys, Models, Vaults, Signing keys and Settings. Each operation's
|
|
190
191
|
`security` says which credentials it takes (application key and trusted issuer's token in
|
|
191
192
|
the Runtime API; management key in the Management API), and its
|
package/dist/api/openapi.js
CHANGED
|
@@ -25,7 +25,10 @@ const bearer = (description, bearerFormat) => ({
|
|
|
25
25
|
...(bearerFormat ? { bearerFormat } : {}),
|
|
26
26
|
description,
|
|
27
27
|
});
|
|
28
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* `/health`, `/ready` and the documents: what every listener answers without a key. The
|
|
30
|
+
* `/openapi.json` alias is served but left out of the documents.
|
|
31
|
+
*/
|
|
29
32
|
function hostRoutes() {
|
|
30
33
|
const registry = new OpenAPIRegistry();
|
|
31
34
|
const route = (config) => registry.registerPath(config);
|
|
@@ -64,13 +67,6 @@ function hostRoutes() {
|
|
|
64
67
|
description: "This document. `/openapi.json` is the same.",
|
|
65
68
|
responses: { 200: { description: "The Runtime API's OpenAPI document" } },
|
|
66
69
|
});
|
|
67
|
-
route({
|
|
68
|
-
method: "get",
|
|
69
|
-
path: "/openapi.json",
|
|
70
|
-
tags: ["Host"],
|
|
71
|
-
summary: "Get the Runtime API's document (alias)",
|
|
72
|
-
responses: { 200: { description: "The Runtime API's OpenAPI document" } },
|
|
73
|
-
});
|
|
74
70
|
route({
|
|
75
71
|
method: "get",
|
|
76
72
|
path: "/openapi/management.json",
|
|
@@ -86,19 +82,6 @@ function tenantSchemes(registry) {
|
|
|
86
82
|
registry.registerComponent("securitySchemes", "issuerToken", bearer("A JWT from a trusted issuer of the Host's identity file (Host feature `trusted-issuers`): one person, with the issuer's scopes, agents and sandbox grants, until it expires. Accepted from servers and browsers alike; CORS is the operator's proxy's.", "JWT"));
|
|
87
83
|
}
|
|
88
84
|
const RUNTIME_TAGS = [
|
|
89
|
-
{
|
|
90
|
-
name: "Runtime",
|
|
91
|
-
group: "Get started",
|
|
92
|
-
description: "Check a Runtime is up and speaks your protocol, ask who your credential is, and read the public keys of the tokens it signs. `/health`, `/ready`, the JWKS and the documents need no key.",
|
|
93
|
-
operations: [
|
|
94
|
-
"GET /health",
|
|
95
|
-
"GET /ready",
|
|
96
|
-
"GET /v1/me",
|
|
97
|
-
"GET /v1/access/jwks",
|
|
98
|
-
"GET /openapi/runtime.json",
|
|
99
|
-
"GET /openapi.json",
|
|
100
|
-
],
|
|
101
|
-
},
|
|
102
85
|
{
|
|
103
86
|
name: "Agents",
|
|
104
87
|
group: "Agents",
|
|
@@ -147,7 +130,7 @@ const RUNTIME_TAGS = [
|
|
|
147
130
|
},
|
|
148
131
|
{
|
|
149
132
|
name: "Sandboxes",
|
|
150
|
-
group: "Sandboxes
|
|
133
|
+
group: "Sandboxes",
|
|
151
134
|
description: "Isolated machines an agent works in: create or find one, watch its lifecycle, stop, reset or delete it. In `@nylorun/agents`.",
|
|
152
135
|
operations: [
|
|
153
136
|
"PUT /v1/sandboxes/{sandboxId}",
|
|
@@ -161,7 +144,7 @@ const RUNTIME_TAGS = [
|
|
|
161
144
|
},
|
|
162
145
|
{
|
|
163
146
|
name: "Artifacts",
|
|
164
|
-
group: "
|
|
147
|
+
group: "Artifacts",
|
|
165
148
|
description: "Files and folders agents and people produce, versioned, with short-lived capability links to share them. In `@nylorun/agents`.",
|
|
166
149
|
operations: [
|
|
167
150
|
"POST /v1/artifacts",
|
|
@@ -178,6 +161,18 @@ const RUNTIME_TAGS = [
|
|
|
178
161
|
"DELETE /v1/artifacts/{artifactId}",
|
|
179
162
|
],
|
|
180
163
|
},
|
|
164
|
+
{
|
|
165
|
+
name: "Service",
|
|
166
|
+
group: "Service",
|
|
167
|
+
description: "Check a Runtime is up and speaks your protocol, ask who your credential is, and read the public keys of the tokens it signs. `/health`, `/ready`, the JWKS and the documents need no key.",
|
|
168
|
+
operations: [
|
|
169
|
+
"GET /health",
|
|
170
|
+
"GET /ready",
|
|
171
|
+
"GET /v1/me",
|
|
172
|
+
"GET /v1/access/jwks",
|
|
173
|
+
"GET /openapi/runtime.json",
|
|
174
|
+
],
|
|
175
|
+
},
|
|
181
176
|
];
|
|
182
177
|
const MANAGEMENT_TAGS = [
|
|
183
178
|
{
|