@nylorun/cli 0.12.0-beta → 0.13.0-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 +36 -0
- package/README.md +5 -4
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
# @nylorun/cli
|
|
2
2
|
|
|
3
|
+
## 0.13.0-beta
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- cf5eb9c: **Protocol 9: the Runtime API is an OAuth 2.1 resource server for your identity provider's tokens.** Nylorun is still never the authorization server. Upgrade every package together; MIGRATION.md has the details.
|
|
8
|
+
|
|
9
|
+
- **Breaking (`@nylorun/runtime`): a refused credential is `401`, not the opaque `404`.** No `Authorization` is `401 credential_required`; an unknown key, or a token no trusted issuer signed or that fails a check, is `401 credential_invalid`. Each carries `WWW-Authenticate: Bearer` (OAuth 2.1 §5.3), naming the protected resource metadata (`resource_metadata`) on the Runtime API when the Runtime has trusted issuers; the Management API's challenge is a bare `Bearer`. `token_expired` and `issuer_unavailable` gain the challenge too. Another Tenant named, a Tenant that could not open and an unsigned capability link stay the opaque `404`.
|
|
10
|
+
- **Breaking (`@nylorun/runtime`): a request with neither `Nylorun-Protocol` nor `Authorization`** on an API route gets that route's `401` challenge instead of `426`, so a generic OAuth client learns where to sign in.
|
|
11
|
+
- `@nylorun/runtime`: a token without a route's scope still gets `403 scope_required`, now with `WWW-Authenticate: Bearer error="insufficient_scope", scope="…"`. The `Bearer` scheme is matched in any case (RFC 9110).
|
|
12
|
+
- `@nylorun/runtime`: `GET /.well-known/oauth-protected-resource` (RFC 9728) serves the resource (`NYLORUN_PUBLIC_URL`, else the request's origin), the identity file's issuers in order and their scopes, with no key or protocol; `404` without an identity file.
|
|
13
|
+
- **Breaking (`@nylorun/runtime`): the identity file drops `maxLifetime`.** The issuer sets its tokens' lifetimes; `exp` is required, `iat` no longer is. A key the file does not define, `maxLifetime` included, is ignored and logged (`identity_file_key_ignored`) instead of stopping the boot. `subject` defaults to `{sub}`, `scopes` to `{ claim: scope }` and `allowedScopes` to every token scope but `studio`.
|
|
14
|
+
- `@nylorun/core`: `PROTOCOL_VERSION` is 9 and `HOST_PROTOCOL` 4–9, with the required feature `resource-server`; `ERROR_CODES` adds `credential_required` and `credential_invalid`. `@nylorun/agents`, `@nylorun/admin` and `@nylorun/cli` send protocol 9.
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Pin agents to the tested release.
|
|
19
|
+
- Pin admin to the tested release.
|
|
20
|
+
- Updated dependencies [cf5eb9c]
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
- @nylorun/agents@0.17.0-beta
|
|
24
|
+
- @nylorun/admin@0.12.0-beta
|
|
25
|
+
|
|
26
|
+
## 0.12.1-beta
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- cb29dea: **READMEs for manifest-only agents.** Documentation only; no code changes.
|
|
31
|
+
|
|
32
|
+
- `@nylorun/agents`: the Flow agents example opens the PR with an `http()` tool stage instead of a code tool, and shows how to keep a person's approval: a flow stage cannot take `approval` yet (`flow.approval-unsupported`), so the HTTP tool goes to an agent stage with `approval: "always"`. Requests set `Nylorun-Protocol` 8. The subagents section says `ctx.state`, `ctx.agent` and `ctx.ask`/`ctx.approve` apply only to `tool({ run })` in the local engine.
|
|
33
|
+
- `@nylorun/cli`: no longer says `nylo endpoints` uses the Runtime API or replaces `nylo tenant endpoints`; it was removed with Action endpoints and exits 2.
|
|
34
|
+
|
|
35
|
+
- Pin agents to the tested release.
|
|
36
|
+
- Updated dependencies [cb29dea]
|
|
37
|
+
- @nylorun/agents@0.16.1-beta
|
|
38
|
+
|
|
3
39
|
## 0.12.0-beta
|
|
4
40
|
|
|
5
41
|
### Major Changes
|
package/README.md
CHANGED
|
@@ -28,13 +28,14 @@ credentials (below), or `NYLORUN_RUNTIME_URL` and `NYLORUN_SERVER_KEY` when the
|
|
|
28
28
|
Project has no link. An installation serves one Tenant, so nothing selects it.
|
|
29
29
|
`status`, `reset`, `access`, `configure` and `doctor` use the Management API
|
|
30
30
|
with the Project's management key, or `NYLORUN_MANAGEMENT_KEY` (with
|
|
31
|
-
`NYLORUN_RUNTIME_URL` when there is no link); `
|
|
32
|
-
|
|
31
|
+
`NYLORUN_RUNTIME_URL` when there is no link); `env` prints the Runtime URL and
|
|
32
|
+
the application key, for the Runtime API.
|
|
33
33
|
|
|
34
34
|
Local Tenant commands (`up`, `down`, `start`, `stop`, `logs`, `studio`) exit 2
|
|
35
35
|
naming `npx nylorun <command>`. `nylo tenant …` exits 2: `npx nylorun start`
|
|
36
|
-
creates the project's Tenant and the link, and `nylo status|reset
|
|
37
|
-
|
|
36
|
+
creates the project's Tenant and the link, and `nylo status|reset` replace
|
|
37
|
+
`nylo tenant status|reset`. `nylo endpoints` was removed with Action endpoints
|
|
38
|
+
and exits 2. `nylorun dev` was removed: run
|
|
38
39
|
`npx nylorun start` once, then the project's own `npm run dev`
|
|
39
40
|
(`tsx watch src/main.ts`).
|
|
40
41
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nylorun/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0-beta",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"description": "Nylorun Runtime client: the linked installation's Tenant, its access and its model provider",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"prepack": "npm run build"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@nylorun/agents": "0.
|
|
34
|
-
"@nylorun/admin": "0.
|
|
33
|
+
"@nylorun/agents": "0.17.0-beta",
|
|
34
|
+
"@nylorun/admin": "0.12.0-beta",
|
|
35
35
|
"@earendil-works/pi-ai": "0.99.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|