@naturali/cli 0.244.0 → 0.246.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 +93 -16
- package/package.json +2 -2
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.
|
|
20
|
+
var version = "0.246.0";
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
23
23
|
const serializeFormDataPair = (data, key, value) => {
|
|
@@ -1374,7 +1374,7 @@ var Agents = class {
|
|
|
1374
1374
|
/**
|
|
1375
1375
|
* Submit tool outputs for a paused generation
|
|
1376
1376
|
*
|
|
1377
|
-
* Resumes a generation that was paused due to client tool calls. Provide tool outputs for each pending tool call.
|
|
1377
|
+
* Resumes a generation that was paused due to client tool calls. Provide tool outputs for each pending tool call. Requires `agents:CreateAgentGeneration` on the agent in addition to `generations:ResumeGeneration` on the generation. The resumed segment runs under the generation's stored authority held to the caller's, so a resume never widens what the turn may do.
|
|
1378
1378
|
*
|
|
1379
1379
|
*/
|
|
1380
1380
|
static submitAgentToolOutputs(options) {
|
|
@@ -4973,7 +4973,7 @@ var Playbooks = class {
|
|
|
4973
4973
|
*
|
|
4974
4974
|
* Creates a playbook at version 1. The definition is refused with `400 PLAYBOOK_VALIDATION_FAILED` when it holds a duplicate node or input, an input reading a missing node or field, an `execute` node without an executor or another kind with one, transformations on a non-final node, or a cycle; `meta.problems` lists every one. A duplicate `name` in the project is `409 NAME_CONFLICT`.
|
|
4975
4975
|
*
|
|
4976
|
-
* The
|
|
4976
|
+
* The version's executors run under `policy_ids`, required and non-empty (`400 VALIDATION_FAILED`). The caller must hold every grant of each policy it names (`403 POLICY_GRANT_NOT_HELD`) and be allowed to start every executor the definition names (`403 ACTION_NOT_HELD`), and each must exist in the project, or be an agent or tool shared with it (`400 PLAYBOOK_VALIDATION_FAILED`, an `EXECUTOR_NOT_FOUND` problem). A `tool` executor on an `mcp` tool must name in `operation_id` an action the tool's binding allows (`EXECUTOR_ACTION_REQUIRED`, `EXECUTOR_ACTION_UNAVAILABLE`). An executor cannot be a `client` tool (`EXECUTOR_TOOL_UNSUPPORTED`), nor a transformation's tool a `client` or `mcp` tool (`TRANSFORMATION_TOOL_UNSUPPORTED`).
|
|
4977
4977
|
*/
|
|
4978
4978
|
static createPlaybook(options) {
|
|
4979
4979
|
return (options.client ?? client).post({
|
|
@@ -5027,9 +5027,9 @@ var Playbooks = class {
|
|
|
5027
5027
|
/**
|
|
5028
5028
|
* Update a playbook
|
|
5029
5029
|
*
|
|
5030
|
-
* Updates any of `name`, `description` and `
|
|
5030
|
+
* Updates any of `name`, `description`, `definition` and `policy_ids`. Only a change to `definition` or `policy_ids` archives a new version; a rename or a rewrite the playbook already holds leaves `version` where it is. A case keeps the version it was created on.
|
|
5031
5031
|
*
|
|
5032
|
-
*
|
|
5032
|
+
* Every write is checked as on create against the playbook as it stands after it: `400 VALIDATION_FAILED` for one left without `policy_ids`, `403 POLICY_GRANT_NOT_HELD` for a policy whose grants the caller does not hold, `403 ACTION_NOT_HELD` for an executor it may not start, an `EXECUTOR_NOT_FOUND` problem for one that does not exist, `EXECUTOR_ACTION_REQUIRED` or `EXECUTOR_ACTION_UNAVAILABLE` for an `mcp` tool action a run could not call, `EXECUTOR_TOOL_UNSUPPORTED` for a `client` tool executor, `TRANSFORMATION_TOOL_UNSUPPORTED` for a `client` or `mcp` transformation tool.
|
|
5033
5033
|
*/
|
|
5034
5034
|
static updatePlaybook(options) {
|
|
5035
5035
|
return (options.client ?? client).patch({
|
|
@@ -5066,7 +5066,7 @@ var Playbooks = class {
|
|
|
5066
5066
|
/**
|
|
5067
5067
|
* Restore an archived playbook version
|
|
5068
5068
|
*
|
|
5069
|
-
* Writes an archived definition back as the playbook's live one, which archives it again as a new version rather than rewinding the counter. Restoring the definition the playbook already holds is a no-op. The
|
|
5069
|
+
* Writes an archived definition back as the playbook's live one, which archives it again as a new version rather than rewinding the counter. Restoring the definition the playbook already holds is a no-op. The archived `policy_ids` are restored with it, the playbook's own when the version archived none; the write is checked as an update.
|
|
5070
5070
|
*/
|
|
5071
5071
|
static restorePlaybookVersion(options) {
|
|
5072
5072
|
return (options.client ?? client).post({
|
|
@@ -5166,7 +5166,7 @@ var Playbooks = class {
|
|
|
5166
5166
|
/**
|
|
5167
5167
|
* Run a node of a case
|
|
5168
5168
|
*
|
|
5169
|
-
* Runs one node now. The cascade already runs every node whose inputs are set once a write, a settle or a resume makes it runnable, and never reruns a `failed` or `done` one: this is how a failed node is retried, and how a `done` node is recomputed after an upgrade changed its executor. A `collect` node takes its own input values as its output, any other node starts its executor with the node's input values mapped through the executor's `input`. The executor runs
|
|
5169
|
+
* Runs one node now. The cascade already runs every node whose inputs are set once a write, a settle or a resume makes it runnable, and never reruns a `failed` or `done` one: this is how a failed node is retried, and how a `done` node is recomputed after an upgrade changed its executor. A `collect` node takes its own input values as its output, any other node starts its executor with the node's input values mapped through the executor's `input`. The executor runs under the `policy_ids` of the case's playbook version, which must allow starting it (`403 PLAYBOOK_EXECUTOR_FORBIDDEN`). Only a `ready`, `stale`, `failed` or `done` node with every required input set runs; anything else is `409 PLAYBOOK_NODE_NOT_RUNNABLE`. A paused case is `409 PLAYBOOK_CASE_PAUSED`, and a case in a paused project `409 PROJECT_PAUSED`.
|
|
5170
5170
|
*
|
|
5171
5171
|
* An `upstream` node has no executor: running it pulls the current output of the node it names in the bound case, which must be `done`. This is the only way to refresh one that an upstream change left `stale`.
|
|
5172
5172
|
*
|
|
@@ -5211,7 +5211,7 @@ var Playbooks = class {
|
|
|
5211
5211
|
*
|
|
5212
5212
|
* Renders one revision of a final node as files, one export per transformation: each transformation's tool is called with the case's `case_id` and `subject`, the `node_id`, the `revision` and that revision's `output`, and must answer a file (`execute.response_mode: base64`) of its `format`'s content type. The file is kept in the project's files under `/.system/playbooks/`. An export never feeds a node.
|
|
5213
5213
|
*
|
|
5214
|
-
* Without `revision` the node's current output is exported, which needs the node `done` (`409 PLAYBOOK_NODE_NOT_EXPORTABLE`); a `revision` names an earlier output or confirmation of the node. Each tool runs
|
|
5214
|
+
* Without `revision` the node's current output is exported, which needs the node `done` (`409 PLAYBOOK_NODE_NOT_EXPORTABLE`); a `revision` names an earlier output or confirmation of the node. Each tool runs under the `policy_ids` of the case's playbook version, which must allow calling it (`403 PLAYBOOK_EXECUTOR_FORBIDDEN`). A paused case is `409 PLAYBOOK_CASE_PAUSED`, and a case in a paused project `409 PROJECT_PAUSED`.
|
|
5215
5215
|
*
|
|
5216
5216
|
* Without `wait` every export answers `running` and settles in the background; with `wait: true` it answers once each has its file or its error.
|
|
5217
5217
|
*/
|
|
@@ -5953,7 +5953,7 @@ var Sessions = class {
|
|
|
5953
5953
|
/**
|
|
5954
5954
|
* Submit tool outputs
|
|
5955
5955
|
*
|
|
5956
|
-
* Submits client tool outputs for a generation that returned requires_action. The agent continues its loop and returns the final or next requires_action result. A generation that did not run in the session's conversation is 404 (GENERATION_NOT_FOUND) and receives no outputs.
|
|
5956
|
+
* Submits client tool outputs for a generation that returned requires_action. The agent continues its loop and returns the final or next requires_action result. A generation that did not run in the session's conversation is 404 (GENERATION_NOT_FOUND) and receives no outputs. Requires `generations:ResumeGeneration` on the generation in addition to `agents:SubmitSessionToolOutputs`; the resumed segment runs under the generation's stored authority held to the caller's.
|
|
5957
5957
|
*
|
|
5958
5958
|
*/
|
|
5959
5959
|
static submitSessionToolOutputs(options) {
|
|
@@ -9760,7 +9760,7 @@ const routes = {
|
|
|
9760
9760
|
"submit-agent-tool-outputs": {
|
|
9761
9761
|
serviceClass: "Agents",
|
|
9762
9762
|
operationId: "submitAgentToolOutputs",
|
|
9763
|
-
description: "Resumes a generation that was paused due to client tool calls. Provide tool outputs for each pending tool call.",
|
|
9763
|
+
description: "Resumes a generation that was paused due to client tool calls. Provide tool outputs for each pending tool call. Requires `agents:CreateAgentGeneration` on the agent in addition to `generations:ResumeGeneration` on the generation. The resumed segment runs under the generation's stored authority held to the caller's, so a resume never widens what the turn may do.",
|
|
9764
9764
|
moduleDocsUrl: "https://naturali.ai/docs/modules/agents",
|
|
9765
9765
|
httpMethod: "post",
|
|
9766
9766
|
pathParams: [
|
|
@@ -13353,6 +13353,13 @@ const routes = {
|
|
|
13353
13353
|
"type": "string",
|
|
13354
13354
|
"in": "path"
|
|
13355
13355
|
},
|
|
13356
|
+
{
|
|
13357
|
+
"name": "policy_ids",
|
|
13358
|
+
"description": "The policies every decision's backend acts under.",
|
|
13359
|
+
"required": true,
|
|
13360
|
+
"type": "array",
|
|
13361
|
+
"in": "body"
|
|
13362
|
+
},
|
|
13356
13363
|
{
|
|
13357
13364
|
"name": "name",
|
|
13358
13365
|
"description": "Human-readable name, unique per project",
|
|
@@ -13453,6 +13460,13 @@ const routes = {
|
|
|
13453
13460
|
"type": "string",
|
|
13454
13461
|
"in": "header"
|
|
13455
13462
|
},
|
|
13463
|
+
{
|
|
13464
|
+
"name": "policy_ids",
|
|
13465
|
+
"description": "Replaces the policies every decision's backend acts under.",
|
|
13466
|
+
"required": false,
|
|
13467
|
+
"type": "array",
|
|
13468
|
+
"in": "body"
|
|
13469
|
+
},
|
|
13456
13470
|
{
|
|
13457
13471
|
"name": "name",
|
|
13458
13472
|
"description": "",
|
|
@@ -15316,6 +15330,13 @@ const routes = {
|
|
|
15316
15330
|
"type": "string",
|
|
15317
15331
|
"in": "path"
|
|
15318
15332
|
},
|
|
15333
|
+
{
|
|
15334
|
+
"name": "policy_ids",
|
|
15335
|
+
"description": "The policies every run of the eval acts under.",
|
|
15336
|
+
"required": true,
|
|
15337
|
+
"type": "array",
|
|
15338
|
+
"in": "body"
|
|
15339
|
+
},
|
|
15319
15340
|
{
|
|
15320
15341
|
"name": "name",
|
|
15321
15342
|
"description": "Unique name within the project",
|
|
@@ -15409,6 +15430,13 @@ const routes = {
|
|
|
15409
15430
|
"type": "string",
|
|
15410
15431
|
"in": "path"
|
|
15411
15432
|
},
|
|
15433
|
+
{
|
|
15434
|
+
"name": "policy_ids",
|
|
15435
|
+
"description": "Replaces the policies every run of the eval acts under.",
|
|
15436
|
+
"required": false,
|
|
15437
|
+
"type": "array",
|
|
15438
|
+
"in": "body"
|
|
15439
|
+
},
|
|
15412
15440
|
{
|
|
15413
15441
|
"name": "name",
|
|
15414
15442
|
"description": "",
|
|
@@ -17289,6 +17317,13 @@ const routes = {
|
|
|
17289
17317
|
"type": "string",
|
|
17290
17318
|
"in": "path"
|
|
17291
17319
|
},
|
|
17320
|
+
{
|
|
17321
|
+
"name": "policy_ids",
|
|
17322
|
+
"description": "The policies every conversion the rule starts acts under.",
|
|
17323
|
+
"required": true,
|
|
17324
|
+
"type": "array",
|
|
17325
|
+
"in": "body"
|
|
17326
|
+
},
|
|
17292
17327
|
{
|
|
17293
17328
|
"name": "content_type_glob",
|
|
17294
17329
|
"description": "MIME type glob matched against a file's content_type. At most 4 wildcards and 255 characters — a MIME glob needs one on each side of the slash at most.",
|
|
@@ -17417,6 +17452,13 @@ const routes = {
|
|
|
17417
17452
|
"type": "string",
|
|
17418
17453
|
"in": "path"
|
|
17419
17454
|
},
|
|
17455
|
+
{
|
|
17456
|
+
"name": "policy_ids",
|
|
17457
|
+
"description": "Replaces the policies every conversion the rule starts acts under.",
|
|
17458
|
+
"required": false,
|
|
17459
|
+
"type": "array",
|
|
17460
|
+
"in": "body"
|
|
17461
|
+
},
|
|
17420
17462
|
{
|
|
17421
17463
|
"name": "content_type_glob",
|
|
17422
17464
|
"description": "MIME type glob matched against a file's content_type. At most 4 wildcards and 255 characters.",
|
|
@@ -19146,6 +19188,13 @@ const routes = {
|
|
|
19146
19188
|
"type": "string",
|
|
19147
19189
|
"in": "path"
|
|
19148
19190
|
},
|
|
19191
|
+
{
|
|
19192
|
+
"name": "policy_ids",
|
|
19193
|
+
"description": "The policies every handler the rule starts acts under.",
|
|
19194
|
+
"required": true,
|
|
19195
|
+
"type": "array",
|
|
19196
|
+
"in": "body"
|
|
19197
|
+
},
|
|
19149
19198
|
{
|
|
19150
19199
|
"name": "memory_store_id",
|
|
19151
19200
|
"description": "The destination store, and the rule's owning scope",
|
|
@@ -19274,6 +19323,13 @@ const routes = {
|
|
|
19274
19323
|
"type": "string",
|
|
19275
19324
|
"in": "path"
|
|
19276
19325
|
},
|
|
19326
|
+
{
|
|
19327
|
+
"name": "policy_ids",
|
|
19328
|
+
"description": "Replaces the policies every handler the rule starts acts under.",
|
|
19329
|
+
"required": false,
|
|
19330
|
+
"type": "array",
|
|
19331
|
+
"in": "body"
|
|
19332
|
+
},
|
|
19277
19333
|
{
|
|
19278
19334
|
"name": "on",
|
|
19279
19335
|
"description": "The event a firing reads. `generations.completed` fires once per completed turn whatever the transport, and is the only event the built-in extractor may bind to. `conversation_messages.generated` fires per persisted assistant reply and is conversation-backed, so it is for custom handlers.",
|
|
@@ -21556,7 +21612,7 @@ const routes = {
|
|
|
21556
21612
|
"create-playbook": {
|
|
21557
21613
|
serviceClass: "Playbooks",
|
|
21558
21614
|
operationId: "createPlaybook",
|
|
21559
|
-
description: "Creates a playbook at version 1. The definition is refused with `400 PLAYBOOK_VALIDATION_FAILED` when it holds a duplicate node or input, an input reading a missing node or field, an `execute` node without an executor or another kind with one, transformations on a non-final node, or a cycle; `meta.problems` lists every one. A duplicate `name` in the project is `409 NAME_CONFLICT`. The
|
|
21615
|
+
description: "Creates a playbook at version 1. The definition is refused with `400 PLAYBOOK_VALIDATION_FAILED` when it holds a duplicate node or input, an input reading a missing node or field, an `execute` node without an executor or another kind with one, transformations on a non-final node, or a cycle; `meta.problems` lists every one. A duplicate `name` in the project is `409 NAME_CONFLICT`. The version's executors run under `policy_ids`, required and non-empty (`400 VALIDATION_FAILED`). The caller must hold every grant of each policy it names (`403 POLICY_GRANT_NOT_HELD`) and be allowed to start every executor the definition names (`403 ACTION_NOT_HELD`), and each must exist in the project, or be an agent or tool shared with it (`400 PLAYBOOK_VALIDATION_FAILED`, an `EXECUTOR_NOT_FOUND` problem). A `tool` executor on an `mcp` tool must name in `operation_id` an action the tool's binding allows (`EXECUTOR_ACTION_REQUIRED`, `EXECUTOR_ACTION_UNAVAILABLE`). An executor cannot be a `client` tool (`EXECUTOR_TOOL_UNSUPPORTED`), nor a transformation's tool a `client` or `mcp` tool (`TRANSFORMATION_TOOL_UNSUPPORTED`).",
|
|
21560
21616
|
moduleDocsUrl: "https://naturali.ai/docs/modules/playbooks",
|
|
21561
21617
|
httpMethod: "post",
|
|
21562
21618
|
pathParams: ["project_id"],
|
|
@@ -21571,6 +21627,13 @@ const routes = {
|
|
|
21571
21627
|
"type": "string",
|
|
21572
21628
|
"in": "path"
|
|
21573
21629
|
},
|
|
21630
|
+
{
|
|
21631
|
+
"name": "policy_ids",
|
|
21632
|
+
"description": "The policies every execution of the version runs under.",
|
|
21633
|
+
"required": true,
|
|
21634
|
+
"type": "array",
|
|
21635
|
+
"in": "body"
|
|
21636
|
+
},
|
|
21574
21637
|
{
|
|
21575
21638
|
"name": "name",
|
|
21576
21639
|
"description": "Human-readable name, unique per project",
|
|
@@ -21662,7 +21725,7 @@ const routes = {
|
|
|
21662
21725
|
"update-playbook": {
|
|
21663
21726
|
serviceClass: "Playbooks",
|
|
21664
21727
|
operationId: "updatePlaybook",
|
|
21665
|
-
description: "Updates any of `name`, `description` and `
|
|
21728
|
+
description: "Updates any of `name`, `description`, `definition` and `policy_ids`. Only a change to `definition` or `policy_ids` archives a new version; a rename or a rewrite the playbook already holds leaves `version` where it is. A case keeps the version it was created on. Every write is checked as on create against the playbook as it stands after it: `400 VALIDATION_FAILED` for one left without `policy_ids`, `403 POLICY_GRANT_NOT_HELD` for a policy whose grants the caller does not hold, `403 ACTION_NOT_HELD` for an executor it may not start, an `EXECUTOR_NOT_FOUND` problem for one that does not exist, `EXECUTOR_ACTION_REQUIRED` or `EXECUTOR_ACTION_UNAVAILABLE` for an `mcp` tool action a run could not call, `EXECUTOR_TOOL_UNSUPPORTED` for a `client` tool executor, `TRANSFORMATION_TOOL_UNSUPPORTED` for a `client` or `mcp` transformation tool.",
|
|
21666
21729
|
moduleDocsUrl: "https://naturali.ai/docs/modules/playbooks",
|
|
21667
21730
|
httpMethod: "patch",
|
|
21668
21731
|
pathParams: ["project_id", "playbook_id"],
|
|
@@ -21712,6 +21775,13 @@ const routes = {
|
|
|
21712
21775
|
"type": "object",
|
|
21713
21776
|
"in": "body"
|
|
21714
21777
|
},
|
|
21778
|
+
{
|
|
21779
|
+
"name": "policy_ids",
|
|
21780
|
+
"description": "Replaces the policies the version runs under; a change archives a new version.",
|
|
21781
|
+
"required": false,
|
|
21782
|
+
"type": "array",
|
|
21783
|
+
"in": "body"
|
|
21784
|
+
},
|
|
21715
21785
|
{
|
|
21716
21786
|
"name": "version_label",
|
|
21717
21787
|
"description": "Optional tag for the version this write creates. Ignored when the write changes no definition, since no version is archived.",
|
|
@@ -21834,7 +21904,7 @@ const routes = {
|
|
|
21834
21904
|
"restore-playbook-version": {
|
|
21835
21905
|
serviceClass: "Playbooks",
|
|
21836
21906
|
operationId: "restorePlaybookVersion",
|
|
21837
|
-
description: "Writes an archived definition back as the playbook's live one, which archives it again as a new version rather than rewinding the counter. Restoring the definition the playbook already holds is a no-op. The
|
|
21907
|
+
description: "Writes an archived definition back as the playbook's live one, which archives it again as a new version rather than rewinding the counter. Restoring the definition the playbook already holds is a no-op. The archived `policy_ids` are restored with it, the playbook's own when the version archived none; the write is checked as an update.",
|
|
21838
21908
|
moduleDocsUrl: "https://naturali.ai/docs/modules/playbooks",
|
|
21839
21909
|
httpMethod: "post",
|
|
21840
21910
|
pathParams: [
|
|
@@ -22213,7 +22283,7 @@ const routes = {
|
|
|
22213
22283
|
"run-playbook-case-node": {
|
|
22214
22284
|
serviceClass: "Playbooks",
|
|
22215
22285
|
operationId: "runPlaybookCaseNode",
|
|
22216
|
-
description: "Runs one node now. The cascade already runs every node whose inputs are set once a write, a settle or a resume makes it runnable, and never reruns a `failed` or `done` one: this is how a failed node is retried, and how a `done` node is recomputed after an upgrade changed its executor. A `collect` node takes its own input values as its output, any other node starts its executor with the node's input values mapped through the executor's `input`. The executor runs
|
|
22286
|
+
description: "Runs one node now. The cascade already runs every node whose inputs are set once a write, a settle or a resume makes it runnable, and never reruns a `failed` or `done` one: this is how a failed node is retried, and how a `done` node is recomputed after an upgrade changed its executor. A `collect` node takes its own input values as its output, any other node starts its executor with the node's input values mapped through the executor's `input`. The executor runs under the `policy_ids` of the case's playbook version, which must allow starting it (`403 PLAYBOOK_EXECUTOR_FORBIDDEN`). Only a `ready`, `stale`, `failed` or `done` node with every required input set runs; anything else is `409 PLAYBOOK_NODE_NOT_RUNNABLE`. A paused case is `409 PLAYBOOK_CASE_PAUSED`, and a case in a paused project `409 PROJECT_PAUSED`. An `upstream` node has no executor: running it pulls the current output of the node it names in the bound case, which must be `done`. This is the only way to refresh one that an upstream change left `stale`. The output is written as an entry when the execution settles. A value equal to the node's current output writes no revision. If the node's inputs change while it runs, the execution settles as `superseded` and writes nothing. Without `wait` the execution answers `running` and settles in the background. With `wait: true` it answers once the executor settles, or once it parks: a workflow task still open, or an orchestration run waiting on a person or a timer, settles the node when it closes or ends.",
|
|
22217
22287
|
moduleDocsUrl: "https://naturali.ai/docs/modules/playbooks",
|
|
22218
22288
|
httpMethod: "post",
|
|
22219
22289
|
pathParams: [
|
|
@@ -22370,7 +22440,7 @@ const routes = {
|
|
|
22370
22440
|
"export-playbook-case-node": {
|
|
22371
22441
|
serviceClass: "Playbooks",
|
|
22372
22442
|
operationId: "exportPlaybookCaseNode",
|
|
22373
|
-
description: "Renders one revision of a final node as files, one export per transformation: each transformation's tool is called with the case's `case_id` and `subject`, the `node_id`, the `revision` and that revision's `output`, and must answer a file (`execute.response_mode: base64`) of its `format`'s content type. The file is kept in the project's files under `/.system/playbooks/`. An export never feeds a node. Without `revision` the node's current output is exported, which needs the node `done` (`409 PLAYBOOK_NODE_NOT_EXPORTABLE`); a `revision` names an earlier output or confirmation of the node. Each tool runs
|
|
22443
|
+
description: "Renders one revision of a final node as files, one export per transformation: each transformation's tool is called with the case's `case_id` and `subject`, the `node_id`, the `revision` and that revision's `output`, and must answer a file (`execute.response_mode: base64`) of its `format`'s content type. The file is kept in the project's files under `/.system/playbooks/`. An export never feeds a node. Without `revision` the node's current output is exported, which needs the node `done` (`409 PLAYBOOK_NODE_NOT_EXPORTABLE`); a `revision` names an earlier output or confirmation of the node. Each tool runs under the `policy_ids` of the case's playbook version, which must allow calling it (`403 PLAYBOOK_EXECUTOR_FORBIDDEN`). A paused case is `409 PLAYBOOK_CASE_PAUSED`, and a case in a paused project `409 PROJECT_PAUSED`. Without `wait` every export answers `running` and settles in the background; with `wait: true` it answers once each has its file or its error.",
|
|
22374
22444
|
moduleDocsUrl: "https://naturali.ai/docs/modules/playbooks",
|
|
22375
22445
|
httpMethod: "post",
|
|
22376
22446
|
pathParams: [
|
|
@@ -24579,7 +24649,7 @@ const routes = {
|
|
|
24579
24649
|
"submit-session-tool-outputs": {
|
|
24580
24650
|
serviceClass: "Sessions",
|
|
24581
24651
|
operationId: "submitSessionToolOutputs",
|
|
24582
|
-
description: "Submits client tool outputs for a generation that returned requires_action. The agent continues its loop and returns the final or next requires_action result. A generation that did not run in the session's conversation is 404 (GENERATION_NOT_FOUND) and receives no outputs.",
|
|
24652
|
+
description: "Submits client tool outputs for a generation that returned requires_action. The agent continues its loop and returns the final or next requires_action result. A generation that did not run in the session's conversation is 404 (GENERATION_NOT_FOUND) and receives no outputs. Requires `generations:ResumeGeneration` on the generation in addition to `agents:SubmitSessionToolOutputs`; the resumed segment runs under the generation's stored authority held to the caller's.",
|
|
24583
24653
|
moduleDocsUrl: "https://naturali.ai/docs/modules/sessions",
|
|
24584
24654
|
httpMethod: "post",
|
|
24585
24655
|
pathParams: ["project_id", "session_id"],
|
|
@@ -25562,6 +25632,13 @@ const routes = {
|
|
|
25562
25632
|
"type": "object",
|
|
25563
25633
|
"in": "body"
|
|
25564
25634
|
},
|
|
25635
|
+
{
|
|
25636
|
+
"name": "mcp_pins",
|
|
25637
|
+
"description": "Only `null`: clears the pins, so the next listing pins every action again. The one way to accept a definition that drifted.",
|
|
25638
|
+
"required": false,
|
|
25639
|
+
"type": "object",
|
|
25640
|
+
"in": "body"
|
|
25641
|
+
},
|
|
25565
25642
|
{
|
|
25566
25643
|
"name": "actions",
|
|
25567
25644
|
"description": "Allowlist of actions. For `mcp` tools: an optional allowlist of MCP tool names to scope the server surface (`null` exposes every tool). Ignored for other tool types.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.246.0",
|
|
4
4
|
"description": "Command-line interface for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"naturali",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"yaml": "^2.9.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@naturali/sdk": "0.
|
|
34
|
+
"@naturali/sdk": "0.246.0",
|
|
35
35
|
"@ttoss/openapi-codegen": "^0.10.1",
|
|
36
36
|
"@types/node": "^26.5.1",
|
|
37
37
|
"tsdown": "^0.23.0",
|