@naturali/cli 0.85.0 → 0.85.2
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 +66 -9
- 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.85.
|
|
17
|
+
var version = "0.85.2";
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
20
20
|
const serializeFormDataPair = (data, key, value) => {
|
|
@@ -5563,14 +5563,14 @@ const routes = {
|
|
|
5563
5563
|
},
|
|
5564
5564
|
{
|
|
5565
5565
|
"name": "tool_choice",
|
|
5566
|
-
"description": "Tool choice strategy. Accepts a string (`\"auto\"`, `\"required\"`) or an object (`{ \"type\": \"tool\", \"tool_name\": \"my_tool\" }`).",
|
|
5566
|
+
"description": "Tool choice strategy. Accepts a string (`\"auto\"`, `\"required\"`) or an object (`{ \"type\": \"tool\", \"tool_name\": \"my_tool\" }`). A forcing value (`\"required\"` or the object form) forbids a final assistant message on every step of every turn, including a resumed or continued one, so it requires a `hasToolCall` entry in `stop_conditions` — otherwise the write is refused with `FORCED_TOOL_CHOICE_CANNOT_STOP`.",
|
|
5567
5567
|
"required": false,
|
|
5568
5568
|
"type": "string",
|
|
5569
5569
|
"in": "body"
|
|
5570
5570
|
},
|
|
5571
5571
|
{
|
|
5572
5572
|
"name": "stop_conditions",
|
|
5573
|
-
"description": "",
|
|
5573
|
+
"description": "Conditions that end the agent's work early, on top of `max_steps`. Two scopes:\n\n`{\"type\": \"hasToolCall\", \"tool_name\": \"<resolved tool name>\"}` ends the **turn** after the step that calls the named tool. It narrows when the loop ends — it never lets it run past `max_steps`.\n\n`{\"type\": \"maxChainGenerations\", \"max_generations\": <n>}` bounds the **continuation chain** instead: once the chain has spawned that many generations, further resumptions stop with `chain_limit` rather than extending it. It never shortens a turn. The effective ceiling is the smaller of this and the deployment's `MAX_CONTINUATION_CHAIN_GENERATIONS`, so an agent can be stricter than the platform but never looser.\n\nAn unknown `type`, a `hasToolCall` without a `tool_name`, a `maxChainGenerations` whose `max_generations` is not a positive integer, or a non-object entry is rejected with 400.",
|
|
5574
5574
|
"required": false,
|
|
5575
5575
|
"type": "array",
|
|
5576
5576
|
"in": "body"
|
|
@@ -5645,6 +5645,13 @@ const routes = {
|
|
|
5645
5645
|
"type": "string",
|
|
5646
5646
|
"in": "body"
|
|
5647
5647
|
},
|
|
5648
|
+
{
|
|
5649
|
+
"name": "on_approval_expiry",
|
|
5650
|
+
"description": "What happens when one of this agent's held tool calls expires un-approved. `null` (the default) and `terminate` end the chain there — the expired approval, its `approvals.expired` event and the auto-filed `approval_expired` exception are the whole record. `react` spawns a continuation that reports the staleness to the agent, for an agent that acts on it.",
|
|
5651
|
+
"required": false,
|
|
5652
|
+
"type": "string",
|
|
5653
|
+
"in": "body"
|
|
5654
|
+
},
|
|
5648
5655
|
{
|
|
5649
5656
|
"name": "version_label",
|
|
5650
5657
|
"description": "Optional tag for the config version this write archives (e.g. `initial`). Annotates the version only — it is not stored on the agent and is not part of the config, so labelling a change is never itself a change.",
|
|
@@ -5750,14 +5757,14 @@ const routes = {
|
|
|
5750
5757
|
},
|
|
5751
5758
|
{
|
|
5752
5759
|
"name": "tool_choice",
|
|
5753
|
-
"description": "Tool choice strategy. Accepts a string (`\"auto\"`, `\"required\"`) or an object (`{ \"type\": \"tool\", \"tool_name\": \"my_tool\" }`).",
|
|
5760
|
+
"description": "Tool choice strategy. Accepts a string (`\"auto\"`, `\"required\"`) or an object (`{ \"type\": \"tool\", \"tool_name\": \"my_tool\" }`). A forcing value (`\"required\"` or the object form) forbids a final assistant message on every step of every turn, including a resumed or continued one, so it requires a `hasToolCall` entry in `stop_conditions` — otherwise the write is refused with `FORCED_TOOL_CHOICE_CANNOT_STOP`.",
|
|
5754
5761
|
"required": false,
|
|
5755
5762
|
"type": "string",
|
|
5756
5763
|
"in": "body"
|
|
5757
5764
|
},
|
|
5758
5765
|
{
|
|
5759
5766
|
"name": "stop_conditions",
|
|
5760
|
-
"description": "",
|
|
5767
|
+
"description": "Conditions that end the agent's work early, on top of `max_steps`. Two scopes:\n\n`{\"type\": \"hasToolCall\", \"tool_name\": \"<resolved tool name>\"}` ends the **turn** after the step that calls the named tool. It narrows when the loop ends — it never lets it run past `max_steps`.\n\n`{\"type\": \"maxChainGenerations\", \"max_generations\": <n>}` bounds the **continuation chain** instead: once the chain has spawned that many generations, further resumptions stop with `chain_limit` rather than extending it. It never shortens a turn. The effective ceiling is the smaller of this and the deployment's `MAX_CONTINUATION_CHAIN_GENERATIONS`, so an agent can be stricter than the platform but never looser.\n\nAn unknown `type`, a `hasToolCall` without a `tool_name`, a `maxChainGenerations` whose `max_generations` is not a positive integer, or a non-object entry is rejected with 400.",
|
|
5761
5768
|
"required": false,
|
|
5762
5769
|
"type": "array",
|
|
5763
5770
|
"in": "body"
|
|
@@ -5832,6 +5839,13 @@ const routes = {
|
|
|
5832
5839
|
"type": "string",
|
|
5833
5840
|
"in": "body"
|
|
5834
5841
|
},
|
|
5842
|
+
{
|
|
5843
|
+
"name": "on_approval_expiry",
|
|
5844
|
+
"description": "What happens when one of this agent's held tool calls expires un-approved. `null` (the default) and `terminate` end the chain there — the expired approval, its `approvals.expired` event and the auto-filed `approval_expired` exception are the whole record. `react` spawns a continuation that reports the staleness to the agent, for an agent that acts on it.",
|
|
5845
|
+
"required": false,
|
|
5846
|
+
"type": "string",
|
|
5847
|
+
"in": "body"
|
|
5848
|
+
},
|
|
5835
5849
|
{
|
|
5836
5850
|
"name": "version_label",
|
|
5837
5851
|
"description": "Optional tag for the config version this write archives (e.g. `pre-tone-change`). Annotates the version only — it is not stored on the agent and is not part of the config, so labelling a change is never itself a change. Ignored when the write changes nothing, since no version is created.",
|
|
@@ -5915,14 +5929,14 @@ const routes = {
|
|
|
5915
5929
|
},
|
|
5916
5930
|
{
|
|
5917
5931
|
"name": "tool_choice",
|
|
5918
|
-
"description": "Tool choice strategy. Accepts a string (`\"auto\"`, `\"required\"`) or an object (`{ \"type\": \"tool\", \"tool_name\": \"my_tool\" }`).",
|
|
5932
|
+
"description": "Tool choice strategy. Accepts a string (`\"auto\"`, `\"required\"`) or an object (`{ \"type\": \"tool\", \"tool_name\": \"my_tool\" }`). A forcing value (`\"required\"` or the object form) forbids a final assistant message on every step of every turn, including a resumed or continued one, so it requires a `hasToolCall` entry in `stop_conditions` — otherwise the write is refused with `FORCED_TOOL_CHOICE_CANNOT_STOP`.",
|
|
5919
5933
|
"required": false,
|
|
5920
5934
|
"type": "string",
|
|
5921
5935
|
"in": "body"
|
|
5922
5936
|
},
|
|
5923
5937
|
{
|
|
5924
5938
|
"name": "stop_conditions",
|
|
5925
|
-
"description": "",
|
|
5939
|
+
"description": "Conditions that end the agent's work early, on top of `max_steps`. Two scopes:\n\n`{\"type\": \"hasToolCall\", \"tool_name\": \"<resolved tool name>\"}` ends the **turn** after the step that calls the named tool. It narrows when the loop ends — it never lets it run past `max_steps`.\n\n`{\"type\": \"maxChainGenerations\", \"max_generations\": <n>}` bounds the **continuation chain** instead: once the chain has spawned that many generations, further resumptions stop with `chain_limit` rather than extending it. It never shortens a turn. The effective ceiling is the smaller of this and the deployment's `MAX_CONTINUATION_CHAIN_GENERATIONS`, so an agent can be stricter than the platform but never looser.\n\nAn unknown `type`, a `hasToolCall` without a `tool_name`, a `maxChainGenerations` whose `max_generations` is not a positive integer, or a non-object entry is rejected with 400.",
|
|
5926
5940
|
"required": false,
|
|
5927
5941
|
"type": "array",
|
|
5928
5942
|
"in": "body"
|
|
@@ -5997,6 +6011,13 @@ const routes = {
|
|
|
5997
6011
|
"type": "string",
|
|
5998
6012
|
"in": "body"
|
|
5999
6013
|
},
|
|
6014
|
+
{
|
|
6015
|
+
"name": "on_approval_expiry",
|
|
6016
|
+
"description": "What happens when one of this agent's held tool calls expires un-approved. `null` (the default) and `terminate` end the chain there — the expired approval, its `approvals.expired` event and the auto-filed `approval_expired` exception are the whole record. `react` spawns a continuation that reports the staleness to the agent, for an agent that acts on it.",
|
|
6017
|
+
"required": false,
|
|
6018
|
+
"type": "string",
|
|
6019
|
+
"in": "body"
|
|
6020
|
+
},
|
|
6000
6021
|
{
|
|
6001
6022
|
"name": "version_label",
|
|
6002
6023
|
"description": "Optional tag for the config version this write archives (e.g. `pre-tone-change`). Annotates the version only — it is not stored on the agent and is not part of the config, so labelling a change is never itself a change. Ignored when the write changes nothing, since no version is created.",
|
|
@@ -7149,7 +7170,7 @@ const routes = {
|
|
|
7149
7170
|
},
|
|
7150
7171
|
{
|
|
7151
7172
|
"name": "resource_srn",
|
|
7152
|
-
"description": "SRN prefix match, e.g. `srn:{project}:secret:`.
|
|
7173
|
+
"description": "SRN prefix match, e.g. `srn:{project}:secret:`. The log is append-only, so a stored SRN is never rewritten; the filter matches it as stored.",
|
|
7153
7174
|
"required": false,
|
|
7154
7175
|
"type": "string",
|
|
7155
7176
|
"in": "query"
|
|
@@ -7230,7 +7251,7 @@ const routes = {
|
|
|
7230
7251
|
},
|
|
7231
7252
|
{
|
|
7232
7253
|
"name": "resource_srn",
|
|
7233
|
-
"description": "SRN prefix match, e.g. `srn:{project}:secret:`.
|
|
7254
|
+
"description": "SRN prefix match, e.g. `srn:{project}:secret:`. The log is append-only, so a stored SRN is never rewritten; the filter matches it as stored.",
|
|
7234
7255
|
"required": false,
|
|
7235
7256
|
"type": "string",
|
|
7236
7257
|
"in": "query"
|
|
@@ -9643,6 +9664,13 @@ const routes = {
|
|
|
9643
9664
|
"required": false,
|
|
9644
9665
|
"type": "object",
|
|
9645
9666
|
"in": "body"
|
|
9667
|
+
},
|
|
9668
|
+
{
|
|
9669
|
+
"name": "tool_context",
|
|
9670
|
+
"description": "Key/value context forwarded to every item's generation, so an agent whose tools authorize through `tool_context` is scored against the configuration it runs in production rather than with an empty bag. Each key is forwarded as one `X-Naturali-Context-<key>` header and resolves any `{{context:<key>}}` token in a bound tool's headers or `preset_parameters`.\n\nStored on the run and re-read per item, since a queued run (the default) is driven by a worker with no request behind it. **Write-only**: no read of the run returns it, unlike `metadata` — a run is a report other people read, and a credential in it is not theirs to see. Cleared once the run reaches a terminal state.\n\nAn eval generation has no session, so the reserved keys `sessionId`, `actorId` and `actorExternalId` are dropped (in any casing) rather than forwarded. Every other key becomes an HTTP header name and must match that grammar, or the request is rejected with `400 INVALID_TOOL_CONTEXT_KEY` and no run is created.",
|
|
9671
|
+
"required": false,
|
|
9672
|
+
"type": "object",
|
|
9673
|
+
"in": "body"
|
|
9646
9674
|
}
|
|
9647
9675
|
]
|
|
9648
9676
|
},
|
|
@@ -10546,6 +10574,7 @@ const routes = {
|
|
|
10546
10574
|
"agent_id",
|
|
10547
10575
|
"trace_id",
|
|
10548
10576
|
"initiator_generation_id",
|
|
10577
|
+
"chain_id",
|
|
10549
10578
|
"orchestration_run_id",
|
|
10550
10579
|
"node_id",
|
|
10551
10580
|
"status",
|
|
@@ -10581,6 +10610,13 @@ const routes = {
|
|
|
10581
10610
|
"type": "string",
|
|
10582
10611
|
"in": "query"
|
|
10583
10612
|
},
|
|
10613
|
+
{
|
|
10614
|
+
"name": "chain_id",
|
|
10615
|
+
"description": "Filter by the continuation chain the generation belongs to. This is how a chain is expanded into its members — the chain record carries only their count.\n",
|
|
10616
|
+
"required": false,
|
|
10617
|
+
"type": "string",
|
|
10618
|
+
"in": "query"
|
|
10619
|
+
},
|
|
10584
10620
|
{
|
|
10585
10621
|
"name": "orchestration_run_id",
|
|
10586
10622
|
"description": "Filter by the orchestration run that dispatched the generation. This is how a run is traced back to what its agent nodes did — a node execution record stores no generation id.\n",
|
|
@@ -12938,6 +12974,13 @@ const routes = {
|
|
|
12938
12974
|
"required": false,
|
|
12939
12975
|
"type": "string",
|
|
12940
12976
|
"in": "body"
|
|
12977
|
+
},
|
|
12978
|
+
{
|
|
12979
|
+
"name": "on_unpriced",
|
|
12980
|
+
"description": "Only for metric cost_usd (400 on any other metric). What an enforce quota does when the current window is a pricing blackout — several metered events, none of them priced, so the aggregate is 0 however much was actually spent. block (the default) refuses new generations with 409 QUOTA_UNENFORCEABLE until pricing is configured; allow accepts the unmeasurable spend explicitly. Either way a quota_unpriced exception is filed. monitor-mode quotas never block regardless.",
|
|
12981
|
+
"required": false,
|
|
12982
|
+
"type": "string",
|
|
12983
|
+
"in": "body"
|
|
12941
12984
|
}
|
|
12942
12985
|
]
|
|
12943
12986
|
},
|
|
@@ -12999,6 +13042,13 @@ const routes = {
|
|
|
12999
13042
|
"required": false,
|
|
13000
13043
|
"type": "string",
|
|
13001
13044
|
"in": "body"
|
|
13045
|
+
},
|
|
13046
|
+
{
|
|
13047
|
+
"name": "on_unpriced",
|
|
13048
|
+
"description": "New pricing posture. Only for metric cost_usd (400 on any other metric); see the create operation for what block and allow mean.",
|
|
13049
|
+
"required": false,
|
|
13050
|
+
"type": "string",
|
|
13051
|
+
"in": "body"
|
|
13002
13052
|
}
|
|
13003
13053
|
]
|
|
13004
13054
|
},
|
|
@@ -14340,6 +14390,13 @@ const routes = {
|
|
|
14340
14390
|
"required": false,
|
|
14341
14391
|
"type": "object",
|
|
14342
14392
|
"in": "body"
|
|
14393
|
+
},
|
|
14394
|
+
{
|
|
14395
|
+
"name": "tool_context",
|
|
14396
|
+
"description": "Key/value context for this call, forwarded to the tool as `X-Naturali-Context-<key>` request headers and resolving any `{{context:<key>}}` token in the tool's `execute.headers`, `mcp.headers` or `preset_parameters`. Narrowed by the tool's `context_keys` allowlist when it sets one.\nThis route has no session, so it stamps no server-derived identity: the reserved keys `sessionId`, `actorId` and `actorExternalId` are dropped from this bag (in any casing) rather than forwarded, so a downstream tool can still trust that a context header naming one is server-derived. Every other key becomes an HTTP header name and must match that grammar, or the call fails with `INVALID_TOOL_CONTEXT_KEY`.\n",
|
|
14397
|
+
"required": false,
|
|
14398
|
+
"type": "object",
|
|
14399
|
+
"in": "body"
|
|
14343
14400
|
}
|
|
14344
14401
|
]
|
|
14345
14402
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.85.
|
|
3
|
+
"version": "0.85.2",
|
|
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.85.
|
|
33
|
+
"@naturali/sdk": "0.85.2"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"generate": "tsx scripts/generate.ts",
|