@naturali/cli 0.57.0 → 0.58.0
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/index.mjs +22 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -14,7 +14,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
14
14
|
};
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region package.json
|
|
17
|
-
var version = "0.
|
|
17
|
+
var version = "0.58.0";
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
20
20
|
const jsonBodySerializer = { bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value) };
|
|
@@ -6082,6 +6082,13 @@ const routes = {
|
|
|
6082
6082
|
"type": "object",
|
|
6083
6083
|
"in": "body"
|
|
6084
6084
|
},
|
|
6085
|
+
{
|
|
6086
|
+
"name": "tool_context",
|
|
6087
|
+
"description": "Write-only. Per-run context forwarded to the run's tool calls: every entry is sent as an `X-Naturali-Context-<key>` request header on each `http`/`mcp` tool call the run's agent nodes make, including those of a `loop` or `sub_orchestration` child run. This is how a per-user credential reaches a tool endpoint without being written into the prompt — the endpoint reads it from a header it can trust rather than from model output.\n\nThe bag is stored on the run, so it survives an `awaiting_input` pause, a durable wait and a restart. It is never returned on a read: any principal on the project can read the project's runs.\n\nA key becomes an HTTP header name verbatim — no character is re-cased, so `ocaToken` and `oca_token` are two different keys — and must contain only letters, digits and `!#$%&'*+-.^_`|~`; two keys that differ only in case are rejected, since HTTP folds them into one. To land a value in a header the target already expects (usually `Authorization`), have the tool declare it with a `{{context:<key>}}` reference in its own `headers`, and set the tool's `context_keys` so the value reaches that tool alone.",
|
|
6088
|
+
"required": false,
|
|
6089
|
+
"type": "object",
|
|
6090
|
+
"in": "body"
|
|
6091
|
+
},
|
|
6085
6092
|
{
|
|
6086
6093
|
"name": "wait",
|
|
6087
6094
|
"description": "When true, block until the run reaches a terminal or `awaiting_input` state and return the settled run. When false (default), return immediately with `status: \"queued\"`.",
|
|
@@ -7230,6 +7237,13 @@ const routes = {
|
|
|
7230
7237
|
"required": false,
|
|
7231
7238
|
"type": "array",
|
|
7232
7239
|
"in": "body"
|
|
7240
|
+
},
|
|
7241
|
+
{
|
|
7242
|
+
"name": "context_keys",
|
|
7243
|
+
"description": "Allowlist of `tool_context` keys forwarded to this tool as `X-Naturali-Context-<key>` headers. Omit (or `null`) to forward every key the caller supplied; `[]` forwards none. Set it on the tools that need a given credential and the credential stops egressing to the rest of the agent's tool set — a key a tool consumes through a `{{context:<key>}}` reference in its own `headers` is substituted either way, since the tool declared that header itself.",
|
|
7244
|
+
"required": false,
|
|
7245
|
+
"type": "array",
|
|
7246
|
+
"in": "body"
|
|
7233
7247
|
}
|
|
7234
7248
|
]
|
|
7235
7249
|
},
|
|
@@ -7341,6 +7355,13 @@ const routes = {
|
|
|
7341
7355
|
"type": "array",
|
|
7342
7356
|
"in": "body"
|
|
7343
7357
|
},
|
|
7358
|
+
{
|
|
7359
|
+
"name": "context_keys",
|
|
7360
|
+
"description": "Replace the allowlist of `tool_context` keys forwarded to this tool. `null` clears it (every key is forwarded again) — unlike omitting the field, which leaves the current allowlist alone.",
|
|
7361
|
+
"required": false,
|
|
7362
|
+
"type": "array",
|
|
7363
|
+
"in": "body"
|
|
7364
|
+
},
|
|
7344
7365
|
{
|
|
7345
7366
|
"name": "status",
|
|
7346
7367
|
"description": "",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.58.0",
|
|
4
4
|
"description": "Command-line interface for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"tsx": "^4.23.1",
|
|
31
31
|
"typescript": "~6.0.3",
|
|
32
32
|
"vitest": "^4.1.10",
|
|
33
|
-
"@naturali/sdk": "0.
|
|
33
|
+
"@naturali/sdk": "0.58.0"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"generate": "tsx scripts/generate.ts",
|