@north-light/crouter 0.3.328 → 0.3.329

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.
@@ -14,7 +14,7 @@ Set `baseUrl` only when `request.url` is not the public URL, such as a proxy tha
14
14
 
15
15
  ## Authentication
16
16
 
17
- Pass `token` to require `Authorization: Bearer <token>` on archive and command requests. `--auth-env NAME` tells crtr which environment variable on the calling machine holds that value. It does not configure the server. Omitting `token` serves without authentication and logs a warning when the handler is created.
17
+ Pass `token` to require `Authorization: Bearer <token>` on archive and command requests. `--auth-env NAME` tells crtr which environment variable of the calling process holds that value. It does not configure the server. For a command an agent runs, the calling process is its broker, which reads the profile env store (`crtr profile env set <profile> --name NAME`) rather than your shell's exports. Omitting `token` serves without authentication and logs a warning when the handler is created.
18
18
 
19
19
  ## Archive response
20
20
 
@@ -9,6 +9,8 @@ crtr pkg plugin install --endpoint https://acme.example.com/crtr --name acme --a
9
9
  crtr acme app create my-app --region eu-west
10
10
  ```
11
11
 
12
+ `export` covers commands you type yourself. An agent's `crtr acme …` runs inside its broker, whose env comes from the profile env store, not from your shell — so for agents, store the token there too: `echo -n "$ACME_CRTR_TOKEN" | crtr profile env set <profile> --name ACME_CRTR_TOKEN`. Nodes launched under that profile from then on carry it.
13
+
12
14
  The endpoint receives `GET` to provide the install archive and `POST` to run a command. A successful non-streaming command response is the bare JSON object returned by the handler, for example `{ "appId": "app_my-app", "url": "https://my-app.eu-west.acme.example.com" }`. It is not an exec-style protocol envelope.
13
15
 
14
16
  Run `crtr pkg plugin show acme` after installation to inspect the installed command tree, and `crtr sys doctor` to check the installed package. A plugin name collision with crtr or another installed plugin is determined during installation and cannot be predicted from an application repository alone.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@north-light/crouter",
3
- "version": "0.3.328",
3
+ "version": "0.3.329",
4
4
  "description": "crtr — agent runtime with memory, plugins, and marketplaces",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/runtime.lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@north-light/crouter",
3
- "version": "0.3.328",
3
+ "version": "0.3.329",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@north-light/crouter",
9
- "version": "0.3.328",
9
+ "version": "0.3.329",
10
10
  "hasInstallScript": true,
11
11
  "license": "GPL-3.0-only",
12
12
  "workspaces": [
@@ -4795,25 +4795,25 @@
4795
4795
  },
4796
4796
  "packages/crouter-api": {
4797
4797
  "name": "@north-light/crouter-api",
4798
- "version": "0.3.328",
4798
+ "version": "0.3.329",
4799
4799
  "license": "GPL-3.0-only"
4800
4800
  },
4801
4801
  "packages/crouter-env-docker": {
4802
4802
  "name": "@north-light/crouter-env-docker",
4803
- "version": "0.3.328",
4803
+ "version": "0.3.329",
4804
4804
  "license": "GPL-3.0-only"
4805
4805
  },
4806
4806
  "packages/crouter-plugin": {
4807
4807
  "name": "@north-light/crouter-plugin",
4808
- "version": "0.3.328",
4808
+ "version": "0.3.329",
4809
4809
  "license": "GPL-3.0-only",
4810
4810
  "dependencies": {
4811
- "@north-light/crouter-api": "^0.3.328"
4811
+ "@north-light/crouter-api": "^0.3.329"
4812
4812
  }
4813
4813
  },
4814
4814
  "packages/crouter-sdk": {
4815
4815
  "name": "@north-light/crouter-sdk",
4816
- "version": "0.3.328",
4816
+ "version": "0.3.329",
4817
4817
  "license": "GPL-3.0-only",
4818
4818
  "dependencies": {
4819
4819
  "@north-light/crouter-api": "^0.3.322"