@north-light/cli 0.3.598 → 0.3.599
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/dist/api/contract.d.ts +1 -1
- package/dist/api/contract.js +1 -1
- package/dist/api/dto/charges.d.ts +22 -0
- package/dist/api/dto/charges.js +1 -0
- package/dist/api/dto/modelauth.d.ts +26 -0
- package/dist/api/dto/node-outcomes.d.ts +4 -0
- package/dist/api/error-codes.d.ts +5 -0
- package/dist/api/error-codes.js +1 -1
- package/dist/builtin-memory/crouter-sdk/release-notes.md +11 -0
- package/dist/clients/attach/viewer.js +374 -374
- package/dist/commands/sys/join.js +1 -1
- package/dist/core/auth-file.d.ts +3 -11
- package/dist/core/auth-file.js +1 -1
- package/dist/core/canvas/export-sqlite.js +1 -1
- package/dist/core/canvas/person.js +7 -7
- package/dist/core/canvas/recovery.js +2 -2
- package/dist/core/canvas/schema-pg/012-charge-admission.sql +62 -0
- package/dist/core/canvas/schema-version.d.ts +1 -1
- package/dist/core/canvas/schema-version.js +1 -1
- package/dist/core/canvas/types.d.ts +3 -0
- package/dist/core/grants/hosted-endpoint.d.ts +28 -0
- package/dist/core/grants/hosted-endpoint.js +1 -0
- package/dist/core/grants/sync.js +1 -1
- package/dist/core/import/load/run.js +2 -2
- package/dist/core/import/load/stage.d.ts +1 -1
- package/dist/core/import/load/stage.js +1 -1
- package/dist/core/import/load/stores.d.ts +2 -0
- package/dist/core/import/load/stores.js +2 -2
- package/dist/core/ledger/charges.js +1 -1
- package/dist/core/ledger/check.js +1 -1
- package/dist/core/ledger/chunks.js +2 -2
- package/dist/core/ledger/read.js +1 -1
- package/dist/core/ledger/types.d.ts +8 -0
- package/dist/core/llm/owner-candidates.d.ts +17 -0
- package/dist/core/llm/owner-candidates.js +1 -0
- package/dist/core/llm/run.js +2 -2
- package/dist/core/model-auth/activations.d.ts +37 -0
- package/dist/core/model-auth/activations.js +1 -0
- package/dist/core/model-auth/flows.js +1 -1
- package/dist/core/model-auth/handoff-jti.d.ts +10 -1
- package/dist/core/model-auth/handoff-jti.js +1 -1
- package/dist/core/model-auth/key-routes.d.ts +30 -0
- package/dist/core/model-auth/key-routes.js +1 -0
- package/dist/core/model-auth/readiness.d.ts +8 -1
- package/dist/core/model-auth/readiness.js +1 -1
- package/dist/core/model-config.js +1 -1
- package/dist/core/model-routes-pool.d.ts +2 -0
- package/dist/core/model-routes-pool.js +1 -1
- package/dist/core/model-routes.d.ts +12 -3
- package/dist/core/model-routes.js +1 -1
- package/dist/core/provider-failure.d.ts +5 -0
- package/dist/core/provider-failure.js +1 -1
- package/dist/core/providers/call.js +1 -1
- package/dist/core/runtime/broker/fault-retry.js +1 -1
- package/dist/core/runtime/broker/model-adapter.d.ts +6 -1
- package/dist/core/runtime/broker/model-adapter.js +3 -3
- package/dist/core/runtime/front-door.js +8 -8
- package/dist/core/runtime/launch-target.d.ts +2 -0
- package/dist/core/runtime/launch-target.js +1 -1
- package/dist/daemon/api/app-listener.js +12 -12
- package/dist/daemon/api/handlers/llm.js +3 -3
- package/dist/daemon/api/handlers/modelauth.js +1 -1
- package/dist/daemon/api/handlers/nodes.js +1 -1
- package/dist/daemon/api/key-signin.d.ts +9 -0
- package/dist/daemon/api/key-signin.js +124 -0
- package/dist/daemon/api/principal.d.ts +8 -3
- package/dist/daemon/api/principal.js +1 -1
- package/dist/daemon/api/server.js +1 -1
- package/dist/daemon/api/vendor-signin.d.ts +28 -1
- package/dist/daemon/api/vendor-signin.js +42 -24
- package/dist/daemon/cron/authority.js +1 -1
- package/dist/daemon/crtrd.js +12 -12
- package/dist/daemon/reconcilers/broker-supervision.d.ts +2 -2
- package/dist/daemon/reconcilers/broker-supervision.js +2 -2
- package/dist/daemon/reconcilers/ledger-r2.js +6 -6
- package/docs/sdk/release-notes.md +11 -0
- package/package.json +2 -2
- package/packages/crouter-identity/package.json +1 -1
- package/runtime.lock.json +13 -13
|
@@ -7,6 +7,17 @@ description: Behavior changes in @north-light/sdk that an app must act on, newes
|
|
|
7
7
|
|
|
8
8
|
Changes to `@north-light/sdk` that can change what an existing app sees. Newest first.
|
|
9
9
|
|
|
10
|
+
## 0.3.599
|
|
11
|
+
|
|
12
|
+
`PUT /v1/model-auth/:provider` with `kind: "api_key"` accepts an optional `models: {ultra, strong, medium, light}` for `anthropic`, `openai`, `openrouter` and `moonshotai`. Each value is `<provider>/<model-id>`, a registered chat model of that provider; all four are required. The key is saved with that mapping as the person's model route `key:<provider>`, which is tried after every subscription. An invalid mapping is refused `400 invalid_request`. Without `models` the call behaves as before.
|
|
13
|
+
|
|
14
|
+
- The PUT answer carries `activation_id` when the runtime has a directory: the runtime reports the new credential to the directory and retries until it is acknowledged. A managed sign-in carries it too.
|
|
15
|
+
- `GET /v1/model-auth` returns `keys: [{provider, models, added_at}]` for every saved key route. It holds no key material.
|
|
16
|
+
- `DELETE /v1/model-auth/:provider` also removes that provider's key route.
|
|
17
|
+
- `GET /v1/model-auth/readiness` returns `hosted_endpoint: boolean`, true when the launch's model calls would use the person's hosted endpoint (the free trial). `credential` stays the person's own sign-in for the launch's provider and is never `ready` because of the hosted endpoint. `auth.status` offers no `login` step when `hosted_endpoint` is true.
|
|
18
|
+
- A stored `api_key` is sent to the provider as written: `$VAR`, `${VAR}` and a leading `!` command are no longer expanded or run. Pass the real key; a row that holds a reference is now sent as that text.
|
|
19
|
+
- `PUT /v1/model-config` refuses a route with source `key` and a `credentialSourceOrder` that names `key`; key routes are managed through `/v1/model-auth`.
|
|
20
|
+
|
|
10
21
|
## 0.3.585
|
|
11
22
|
|
|
12
23
|
`GET /v1/nodes/{id}/jobs/{jobId}/output` reads a background bash job's stored output, last 256 KiB by default (`max_bytes` up to 4 MiB, or `tail_lines`), from the blob store, so it works after the job's sandbox is deleted. It answers `job_not_found` for a job the node does not own and an empty `output` for a job that has written nothing. `CrtrClient.readBashJobOutput` calls it. Nothing existing changes.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@north-light/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.599",
|
|
4
4
|
"description": "crtr — agent runtime with memory, plugins, and marketplaces",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
},
|
|
146
146
|
"license": "UNLICENSED",
|
|
147
147
|
"dependencies": {
|
|
148
|
-
"@north-light/identity": "0.3.
|
|
148
|
+
"@north-light/identity": "0.3.599",
|
|
149
149
|
"@earendil-works/chord": "1.1.0",
|
|
150
150
|
"@earendil-works/pi-agent-core": "1.1.0",
|
|
151
151
|
"@earendil-works/pi-ai": "1.1.0",
|
package/runtime.lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@north-light/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.599",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@north-light/cli",
|
|
9
|
-
"version": "0.3.
|
|
9
|
+
"version": "0.3.599",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "UNLICENSED",
|
|
12
12
|
"workspaces": [
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@milkdown/preset-gfm": "^7.22.3",
|
|
29
29
|
"@milkdown/prose": "^7.22.3",
|
|
30
30
|
"@milkdown/utils": "^7.22.3",
|
|
31
|
-
"@north-light/identity": "0.3.
|
|
31
|
+
"@north-light/identity": "0.3.599",
|
|
32
32
|
"cron-parser": "^5.6.0",
|
|
33
33
|
"esbuild": "^0.27.7",
|
|
34
34
|
"jose": "^6.2.12",
|
|
@@ -11956,17 +11956,17 @@
|
|
|
11956
11956
|
},
|
|
11957
11957
|
"packages/crouter-api": {
|
|
11958
11958
|
"name": "@north-light/api",
|
|
11959
|
-
"version": "0.3.
|
|
11959
|
+
"version": "0.3.599",
|
|
11960
11960
|
"license": "UNLICENSED"
|
|
11961
11961
|
},
|
|
11962
11962
|
"packages/crouter-env-docker": {
|
|
11963
11963
|
"name": "@north-light/env-docker",
|
|
11964
|
-
"version": "0.3.
|
|
11964
|
+
"version": "0.3.599",
|
|
11965
11965
|
"license": "UNLICENSED"
|
|
11966
11966
|
},
|
|
11967
11967
|
"packages/crouter-identity": {
|
|
11968
11968
|
"name": "@north-light/identity",
|
|
11969
|
-
"version": "0.3.
|
|
11969
|
+
"version": "0.3.599",
|
|
11970
11970
|
"license": "UNLICENSED",
|
|
11971
11971
|
"dependencies": {
|
|
11972
11972
|
"jose": "^6.2.1"
|
|
@@ -11974,21 +11974,21 @@
|
|
|
11974
11974
|
},
|
|
11975
11975
|
"packages/crouter-plugin": {
|
|
11976
11976
|
"name": "@north-light/plugin",
|
|
11977
|
-
"version": "0.3.
|
|
11977
|
+
"version": "0.3.599",
|
|
11978
11978
|
"license": "UNLICENSED",
|
|
11979
11979
|
"dependencies": {
|
|
11980
|
-
"@north-light/api": "0.3.
|
|
11981
|
-
"@north-light/identity": "0.3.
|
|
11980
|
+
"@north-light/api": "0.3.599",
|
|
11981
|
+
"@north-light/identity": "0.3.599"
|
|
11982
11982
|
}
|
|
11983
11983
|
},
|
|
11984
11984
|
"packages/crouter-sdk": {
|
|
11985
11985
|
"name": "@north-light/sdk",
|
|
11986
|
-
"version": "0.3.
|
|
11986
|
+
"version": "0.3.599",
|
|
11987
11987
|
"license": "UNLICENSED",
|
|
11988
11988
|
"dependencies": {
|
|
11989
|
-
"@north-light/api": "0.3.
|
|
11990
|
-
"@north-light/identity": "0.3.
|
|
11991
|
-
"@north-light/plugin": "0.3.
|
|
11989
|
+
"@north-light/api": "0.3.599",
|
|
11990
|
+
"@north-light/identity": "0.3.599",
|
|
11991
|
+
"@north-light/plugin": "0.3.599",
|
|
11992
11992
|
"jose": "^6.2.1"
|
|
11993
11993
|
},
|
|
11994
11994
|
"bin": {
|