@naturali/cli 0.217.4 → 0.217.5

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.
Files changed (2) hide show
  1. package/dist/index.mjs +9 -9
  2. 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.217.4";
20
+ var version = "0.217.5";
21
21
  //#endregion
22
22
  //#region ../sdk/src/generated/core/bodySerializer.gen.ts
23
23
  const serializeFormDataPair = (data, key, value) => {
@@ -1815,7 +1815,7 @@ var Assistant = class {
1815
1815
  /**
1816
1816
  * Read the turn's context
1817
1817
  *
1818
- * What the Assistant turn this call runs in was sent with: the app page the person had open and the pages they added to the message. The Assistant calls it when a message points at the screen ("this playbook") or at what was added. Any other caller reads `path: null` and no pages.
1818
+ * What the Assistant turn this call runs in was sent with: the app page the person had open and the pages they added to the message, each with the resource ids its path names. The Assistant calls it when a message points at the screen ("this playbook") or at what was added. Any other caller reads `path: null` and no pages.
1819
1819
  *
1820
1820
  */
1821
1821
  static getAssistantContext(options) {
@@ -4565,7 +4565,7 @@ var Playbooks = class {
4565
4565
  *
4566
4566
  * 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`.
4567
4567
  *
4568
- * The caller becomes the version's author, whom its executors run as, so it must be allowed to start every executor the definition names (`403 PLAYBOOK_EXECUTOR_FORBIDDEN`), 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 definition with executors written with a trigger or OAuth token is `409 PLAYBOOK_AUTHOR_UNAVAILABLE`: those carry their boundary in the token, so no run can act as them.
4568
+ * The caller becomes the version's author, whom its executors run as, so it must be allowed to start every executor the definition names (`403 PLAYBOOK_EXECUTOR_FORBIDDEN`), 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`). A definition with executors written with a trigger or OAuth token is `409 PLAYBOOK_AUTHOR_UNAVAILABLE`: those carry their boundary in the token, so no run can act as them.
4569
4569
  */
4570
4570
  static createPlaybook(options) {
4571
4571
  return (options.client ?? client).post({
@@ -4582,7 +4582,7 @@ var Playbooks = class {
4582
4582
  *
4583
4583
  * Answers what a create or update would be told about a definition, without writing: `valid`, and every graph problem it holds. A definition whose shape cannot be read is `400 VALIDATION_FAILED`, as on a write.
4584
4584
  *
4585
- * With `project_id`, the references are checked too, as a write there would check them: the upstreams against that project's playbooks, and each executor the caller may start must exist (`EXECUTOR_NOT_FOUND`). The caller needs both `playbooks:ValidatePlaybook` and `playbooks:ListPlaybooks` on the project. Without it, only the definition's own graph is checked.
4585
+ * With `project_id`, the references are checked too, as a write there would check them: the upstreams against that project's playbooks, and each executor the caller may start must exist (`EXECUTOR_NOT_FOUND`) and name an action its `mcp` tool allows (`EXECUTOR_ACTION_REQUIRED`, `EXECUTOR_ACTION_UNAVAILABLE`). The caller needs both `playbooks:ValidatePlaybook` and `playbooks:ListPlaybooks` on the project. Without it, only the definition's own graph is checked.
4586
4586
  */
4587
4587
  static validatePlaybook(options) {
4588
4588
  return (options.client ?? client).post({
@@ -4621,7 +4621,7 @@ var Playbooks = class {
4621
4621
  *
4622
4622
  * Updates any of `name`, `description` and `definition`. Only a change to `definition` archives a new version; a rename or a rewrite of the definition the playbook already holds leaves `version` where it is. A case keeps the version it was created on.
4623
4623
  *
4624
- * A new version is authored by the caller, checked as on create: `403 PLAYBOOK_EXECUTOR_FORBIDDEN` for an executor it may not start, an `EXECUTOR_NOT_FOUND` problem for one that does not exist, `409 PLAYBOOK_AUTHOR_UNAVAILABLE` for a trigger or OAuth token.
4624
+ * A new version is authored by the caller, checked as on create: `403 PLAYBOOK_EXECUTOR_FORBIDDEN` 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, `409 PLAYBOOK_AUTHOR_UNAVAILABLE` for a trigger or OAuth token.
4625
4625
  */
4626
4626
  static updatePlaybook(options) {
4627
4627
  return (options.client ?? client).patch({
@@ -10278,7 +10278,7 @@ const routes = {
10278
10278
  "get-assistant-context": {
10279
10279
  serviceClass: "Assistant",
10280
10280
  operationId: "getAssistantContext",
10281
- description: "What the Assistant turn this call runs in was sent with: the app page the person had open and the pages they added to the message. The Assistant calls it when a message points at the screen (\"this playbook\") or at what was added. Any other caller reads `path: null` and no pages.",
10281
+ description: "What the Assistant turn this call runs in was sent with: the app page the person had open and the pages they added to the message, each with the resource ids its path names. The Assistant calls it when a message points at the screen (\"this playbook\") or at what was added. Any other caller reads `path: null` and no pages.",
10282
10282
  moduleDocsUrl: "https://naturali.ai/docs/modules/assistant",
10283
10283
  httpMethod: "get",
10284
10284
  pathParams: [],
@@ -19289,7 +19289,7 @@ const routes = {
19289
19289
  "create-playbook": {
19290
19290
  serviceClass: "Playbooks",
19291
19291
  operationId: "createPlaybook",
19292
- 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 caller becomes the version's author, whom its executors run as, so it must be allowed to start every executor the definition names (`403 PLAYBOOK_EXECUTOR_FORBIDDEN`), 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 definition with executors written with a trigger or OAuth token is `409 PLAYBOOK_AUTHOR_UNAVAILABLE`: those carry their boundary in the token, so no run can act as them.",
19292
+ 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 caller becomes the version's author, whom its executors run as, so it must be allowed to start every executor the definition names (`403 PLAYBOOK_EXECUTOR_FORBIDDEN`), 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`). A definition with executors written with a trigger or OAuth token is `409 PLAYBOOK_AUTHOR_UNAVAILABLE`: those carry their boundary in the token, so no run can act as them.",
19293
19293
  moduleDocsUrl: "https://naturali.ai/docs/modules/playbooks",
19294
19294
  httpMethod: "post",
19295
19295
  pathParams: ["project_id"],
@@ -19337,7 +19337,7 @@ const routes = {
19337
19337
  "validate-playbook": {
19338
19338
  serviceClass: "Playbooks",
19339
19339
  operationId: "validatePlaybook",
19340
- description: "Answers what a create or update would be told about a definition, without writing: `valid`, and every graph problem it holds. A definition whose shape cannot be read is `400 VALIDATION_FAILED`, as on a write. With `project_id`, the references are checked too, as a write there would check them: the upstreams against that project's playbooks, and each executor the caller may start must exist (`EXECUTOR_NOT_FOUND`). The caller needs both `playbooks:ValidatePlaybook` and `playbooks:ListPlaybooks` on the project. Without it, only the definition's own graph is checked.",
19340
+ description: "Answers what a create or update would be told about a definition, without writing: `valid`, and every graph problem it holds. A definition whose shape cannot be read is `400 VALIDATION_FAILED`, as on a write. With `project_id`, the references are checked too, as a write there would check them: the upstreams against that project's playbooks, and each executor the caller may start must exist (`EXECUTOR_NOT_FOUND`) and name an action its `mcp` tool allows (`EXECUTOR_ACTION_REQUIRED`, `EXECUTOR_ACTION_UNAVAILABLE`). The caller needs both `playbooks:ValidatePlaybook` and `playbooks:ListPlaybooks` on the project. Without it, only the definition's own graph is checked.",
19341
19341
  moduleDocsUrl: "https://naturali.ai/docs/modules/playbooks",
19342
19342
  httpMethod: "post",
19343
19343
  pathParams: ["project_id"],
@@ -19395,7 +19395,7 @@ const routes = {
19395
19395
  "update-playbook": {
19396
19396
  serviceClass: "Playbooks",
19397
19397
  operationId: "updatePlaybook",
19398
- description: "Updates any of `name`, `description` and `definition`. Only a change to `definition` archives a new version; a rename or a rewrite of the definition the playbook already holds leaves `version` where it is. A case keeps the version it was created on. A new version is authored by the caller, checked as on create: `403 PLAYBOOK_EXECUTOR_FORBIDDEN` for an executor it may not start, an `EXECUTOR_NOT_FOUND` problem for one that does not exist, `409 PLAYBOOK_AUTHOR_UNAVAILABLE` for a trigger or OAuth token.",
19398
+ description: "Updates any of `name`, `description` and `definition`. Only a change to `definition` archives a new version; a rename or a rewrite of the definition the playbook already holds leaves `version` where it is. A case keeps the version it was created on. A new version is authored by the caller, checked as on create: `403 PLAYBOOK_EXECUTOR_FORBIDDEN` 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, `409 PLAYBOOK_AUTHOR_UNAVAILABLE` for a trigger or OAuth token.",
19399
19399
  moduleDocsUrl: "https://naturali.ai/docs/modules/playbooks",
19400
19400
  httpMethod: "patch",
19401
19401
  pathParams: ["project_id", "playbook_id"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/cli",
3
- "version": "0.217.4",
3
+ "version": "0.217.5",
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.217.4",
34
+ "@naturali/sdk": "0.217.5",
35
35
  "@ttoss/openapi-codegen": "^0.10.0",
36
36
  "@types/node": "^26.5.1",
37
37
  "tsdown": "^0.23.0",