@naturali/cli 0.232.0 → 0.232.1
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 +12 -3
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -17,7 +17,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
17
17
|
};
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region package.json
|
|
20
|
-
var version = "0.232.
|
|
20
|
+
var version = "0.232.1";
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
23
23
|
const serializeFormDataPair = (data, key, value) => {
|
|
@@ -6195,6 +6195,8 @@ var Tools = class {
|
|
|
6195
6195
|
*
|
|
6196
6196
|
* A credential scoped to a project the tool is shared with, through an accepted share, calls it in that project: the calling project's guardrails adjudicate it, it is metered there with `publisher_project_id`, and the tool receives the calling project as the `calling_project_id` tool context key.
|
|
6197
6197
|
*
|
|
6198
|
+
* `actor_id` runs the call for an actor without a session or a generation, such as a scheduled sync reading each user's own data through their OAuth connection.
|
|
6199
|
+
*
|
|
6198
6200
|
*/
|
|
6199
6201
|
static callTool(options) {
|
|
6200
6202
|
return (options.client ?? client).post({
|
|
@@ -25249,7 +25251,7 @@ const routes = {
|
|
|
25249
25251
|
"call-tool": {
|
|
25250
25252
|
serviceClass: "Tools",
|
|
25251
25253
|
operationId: "callTool",
|
|
25252
|
-
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. Guardrails attached to the tool or to its project adjudicate the call before dispatch, composing project + tool scope. A call this route cannot await a decision on — class C (human sign-off), class D, or a class-B tripwire — is refused with `422 TOOL_DISPATCH_FAILED`, whose `meta` carries the `tool_id` and the `outcome`. A `pipeline` tool is adjudicated before its first step runs, and every step is adjudicated as the call of that tool it is. A credential scoped to a project the tool is shared with, through an accepted share, calls it in that project: the calling project's guardrails adjudicate it, it is metered there with `publisher_project_id`, and the tool receives the calling project as the `calling_project_id` tool context key.",
|
|
25254
|
+
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. Guardrails attached to the tool or to its project adjudicate the call before dispatch, composing project + tool scope. A call this route cannot await a decision on — class C (human sign-off), class D, or a class-B tripwire — is refused with `422 TOOL_DISPATCH_FAILED`, whose `meta` carries the `tool_id` and the `outcome`. A `pipeline` tool is adjudicated before its first step runs, and every step is adjudicated as the call of that tool it is. A credential scoped to a project the tool is shared with, through an accepted share, calls it in that project: the calling project's guardrails adjudicate it, it is metered there with `publisher_project_id`, and the tool receives the calling project as the `calling_project_id` tool context key. `actor_id` runs the call for an actor without a session or a generation, such as a scheduled sync reading each user's own data through their OAuth connection.",
|
|
25253
25255
|
moduleDocsUrl: "https://naturali.ai/docs/modules/tools",
|
|
25254
25256
|
httpMethod: "post",
|
|
25255
25257
|
pathParams: ["project_id", "tool_id"],
|
|
@@ -25287,10 +25289,17 @@ const routes = {
|
|
|
25287
25289
|
},
|
|
25288
25290
|
{
|
|
25289
25291
|
"name": "tool_context",
|
|
25290
|
-
"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.\
|
|
25292
|
+
"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.\nThe reserved keys `session_id`, `actor_id` and `actor_external_id` 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; `actor_id` and `actor_external_id` are stamped only from the `actor_id` field. Every other key becomes an HTTP header name and must match that grammar, or the call fails with `INVALID_TOOL_CONTEXT_KEY`.\n",
|
|
25291
25293
|
"required": false,
|
|
25292
25294
|
"type": "object",
|
|
25293
25295
|
"in": "body"
|
|
25296
|
+
},
|
|
25297
|
+
{
|
|
25298
|
+
"name": "actor_id",
|
|
25299
|
+
"description": "Runs the call for this actor, as a session for the actor would: an `http` tool with `auth.type: oauth_connection` sends the actor's connection token, and the tool receives `actor_id` and `actor_external_id` as tool context keys. The actor must belong to the calling project, or the call fails with `400 ACTOR_NOT_FOUND`; using its connection still needs `oauth-connections:UseOauthConnection`.\n",
|
|
25300
|
+
"required": false,
|
|
25301
|
+
"type": "string",
|
|
25302
|
+
"in": "body"
|
|
25294
25303
|
}
|
|
25295
25304
|
]
|
|
25296
25305
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.232.
|
|
3
|
+
"version": "0.232.1",
|
|
4
4
|
"description": "Command-line interface for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"naturali",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"yaml": "^2.9.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@naturali/sdk": "0.232.
|
|
35
|
-
"@ttoss/openapi-codegen": "^0.10.
|
|
34
|
+
"@naturali/sdk": "0.232.1",
|
|
35
|
+
"@ttoss/openapi-codegen": "^0.10.1",
|
|
36
36
|
"@types/node": "^26.5.1",
|
|
37
37
|
"tsdown": "^0.23.0",
|
|
38
38
|
"tsx": "^4.23.13",
|