@naturali/cli 0.78.6 → 0.79.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 +26 -8
- 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.79.0";
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
20
20
|
const serializeFormDataPair = (data, key, value) => {
|
|
@@ -3139,7 +3139,9 @@ var Orchestrations = class {
|
|
|
3139
3139
|
/**
|
|
3140
3140
|
* List orchestration runs
|
|
3141
3141
|
*
|
|
3142
|
-
* Returns orchestration runs the caller can access, optionally filtered by orchestration.
|
|
3142
|
+
* Returns orchestration runs the caller can access, optionally filtered by orchestration, by parent run, or by whether the run has a parent at all.
|
|
3143
|
+
*
|
|
3144
|
+
* Note when aggregating: a run's `usage` covers its whole subtree, so summing it over a list that contains both a parent and its children counts the children more than once. Pass `nested=false` to sum over runs a caller started.
|
|
3143
3145
|
*/
|
|
3144
3146
|
static listOrchestrationRuns(options) {
|
|
3145
3147
|
return (options.client ?? client).get({
|
|
@@ -3789,7 +3791,7 @@ var Tools = class {
|
|
|
3789
3791
|
*
|
|
3790
3792
|
* Directly invokes a tool and returns its output. Supported for `http`, `mcp`, and `pipeline` tools. `client` tools cannot be invoked server-side and will return 422. A `pipeline` tool runs its declared steps in order and returns the mapped `output` (or the last step's output); `action` is ignored and `input` is the pipeline input.
|
|
3791
3793
|
* For `mcp` tools the `action` field is required and identifies which tool name to invoke. For `http` tools `action` is ignored. When an `mcp` tool declares an `actions` allowlist, an action outside it is rejected with `400 VALIDATION_FAILED` ("not available on this tool") before any outbound request is made.
|
|
3792
|
-
* `preset_parameters` stored on the tool are
|
|
3794
|
+
* `preset_parameters` stored on the tool are pinned over the caller-supplied `input` before execution: a key the tool presets keeps its preset value even when `input` sets it. Keys the presets do not name are taken from `input` as sent.
|
|
3793
3795
|
*
|
|
3794
3796
|
*/
|
|
3795
3797
|
static callTool(options) {
|
|
@@ -12073,12 +12075,14 @@ const routes = {
|
|
|
12073
12075
|
"list-orchestration-runs": {
|
|
12074
12076
|
serviceClass: "Orchestrations",
|
|
12075
12077
|
operationId: "listOrchestrationRuns",
|
|
12076
|
-
description: "Returns orchestration runs the caller can access, optionally filtered by orchestration.",
|
|
12078
|
+
description: "Returns orchestration runs the caller can access, optionally filtered by orchestration, by parent run, or by whether the run has a parent at all. Note when aggregating: a run's `usage` covers its whole subtree, so summing it over a list that contains both a parent and its children counts the children more than once. Pass `nested=false` to sum over runs a caller started.",
|
|
12077
12079
|
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/orchestrations",
|
|
12078
12080
|
httpMethod: "get",
|
|
12079
12081
|
pathParams: ["project_id"],
|
|
12080
12082
|
queryParams: [
|
|
12081
12083
|
"orchestration_id",
|
|
12084
|
+
"parent_orchestration_run_id",
|
|
12085
|
+
"nested",
|
|
12082
12086
|
"limit",
|
|
12083
12087
|
"offset"
|
|
12084
12088
|
],
|
|
@@ -12097,6 +12101,20 @@ const routes = {
|
|
|
12097
12101
|
"type": "string",
|
|
12098
12102
|
"in": "query"
|
|
12099
12103
|
},
|
|
12104
|
+
{
|
|
12105
|
+
"name": "parent_orchestration_run_id",
|
|
12106
|
+
"description": "Filter to the runs one specific parent run's `loop` / `sub_orchestration` nodes started (run_...). This is how a caller holding a parent names the individual children behind its `usage`.",
|
|
12107
|
+
"required": false,
|
|
12108
|
+
"type": "string",
|
|
12109
|
+
"in": "query"
|
|
12110
|
+
},
|
|
12111
|
+
{
|
|
12112
|
+
"name": "nested",
|
|
12113
|
+
"description": "Filter by whether the run was started by another run. `false` returns only the runs a caller started (no parent), which is the set to sum `usage` over; `true` returns only the runs a `loop` / `sub_orchestration` node started, across every parent. Omit to return both.\n\nContradicting `parent_orchestration_run_id` with `nested=false` is a `400`; any value other than `true` or `false` is a `400`.",
|
|
12114
|
+
"required": false,
|
|
12115
|
+
"type": "boolean",
|
|
12116
|
+
"in": "query"
|
|
12117
|
+
},
|
|
12100
12118
|
{
|
|
12101
12119
|
"name": "limit",
|
|
12102
12120
|
"description": "Maximum number of results to return",
|
|
@@ -13727,7 +13745,7 @@ const routes = {
|
|
|
13727
13745
|
},
|
|
13728
13746
|
{
|
|
13729
13747
|
"name": "preset_parameters",
|
|
13730
|
-
"description": "Fixed parameters
|
|
13748
|
+
"description": "Fixed parameters pinned on every call this tool makes, whatever its type. Keys matching fields in the input schema are removed from the schema shown to the model, and a pinned value wins over one the model or a direct caller supplies for the same key.\n\nValues accept `{{context:<key>}}` references, resolved per call from the caller's `tool_context`, so a pin can be the run's own value — the one account this run may act on — rather than one fixed when the tool was created. A resolved value is retyped to the parameter's declared schema type; a key missing from the call's `tool_context` fails the call with `MISSING_TOOL_CONTEXT_KEY` rather than sending the literal placeholder. `{{secret:...}}` is not resolved here. See the Tool Context reference.",
|
|
13731
13749
|
"required": false,
|
|
13732
13750
|
"type": "object",
|
|
13733
13751
|
"in": "body"
|
|
@@ -13865,7 +13883,7 @@ const routes = {
|
|
|
13865
13883
|
},
|
|
13866
13884
|
{
|
|
13867
13885
|
"name": "preset_parameters",
|
|
13868
|
-
"description": "Fixed parameters
|
|
13886
|
+
"description": "Fixed parameters pinned on every call this tool makes, whatever its type. Keys matching fields in the input schema are removed from the schema shown to the model, and a pinned value wins over one the model or a direct caller supplies for the same key.\n\nValues accept `{{context:<key>}}` references, resolved per call from the caller's `tool_context`, so a pin can be the run's own value — the one account this run may act on — rather than one fixed when the tool was created. A resolved value is retyped to the parameter's declared schema type; a key missing from the call's `tool_context` fails the call with `MISSING_TOOL_CONTEXT_KEY` rather than sending the literal placeholder. `{{secret:...}}` is not resolved here. See the Tool Context reference.",
|
|
13869
13887
|
"required": false,
|
|
13870
13888
|
"type": "object",
|
|
13871
13889
|
"in": "body"
|
|
@@ -13918,7 +13936,7 @@ const routes = {
|
|
|
13918
13936
|
"call-tool": {
|
|
13919
13937
|
serviceClass: "Tools",
|
|
13920
13938
|
operationId: "callTool",
|
|
13921
|
-
description: "Directly invokes a tool and returns its output. Supported for `http`, `mcp`, and `pipeline` tools. `client` tools cannot be invoked server-side and will return 422. A `pipeline` tool runs its declared steps in order and returns the mapped `output` (or the last step's output); `action` is ignored and `input` is the pipeline input. For `mcp` tools the `action` field is required and identifies which tool name to invoke. For `http` tools `action` is ignored. When an `mcp` tool declares an `actions` allowlist, an action outside it is rejected with `400 VALIDATION_FAILED` (\"not available on this tool\") before any outbound request is made. `preset_parameters` stored on the tool are
|
|
13939
|
+
description: "Directly invokes a tool and returns its output. Supported for `http`, `mcp`, and `pipeline` tools. `client` tools cannot be invoked server-side and will return 422. A `pipeline` tool runs its declared steps in order and returns the mapped `output` (or the last step's output); `action` is ignored and `input` is the pipeline input. For `mcp` tools the `action` field is required and identifies which tool name to invoke. For `http` tools `action` is ignored. When an `mcp` tool declares an `actions` allowlist, an action outside it is rejected with `400 VALIDATION_FAILED` (\"not available on this tool\") before any outbound request is made. `preset_parameters` stored on the tool are pinned over the caller-supplied `input` before execution: a key the tool presets keeps its preset value even when `input` sets it. Keys the presets do not name are taken from `input` as sent.",
|
|
13922
13940
|
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/tools",
|
|
13923
13941
|
httpMethod: "post",
|
|
13924
13942
|
pathParams: ["project_id", "tool_id"],
|
|
@@ -13947,7 +13965,7 @@ const routes = {
|
|
|
13947
13965
|
},
|
|
13948
13966
|
{
|
|
13949
13967
|
"name": "input",
|
|
13950
|
-
"description": "Input parameters for the tool call. These are merged with the tool's `preset_parameters` before execution
|
|
13968
|
+
"description": "Input parameters for the tool call. These are merged with the tool's `preset_parameters` before execution; a preset value wins over the same key sent here.\n",
|
|
13951
13969
|
"required": false,
|
|
13952
13970
|
"type": "object",
|
|
13953
13971
|
"in": "body"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.79.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.79.0"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"generate": "tsx scripts/generate.ts",
|