@naturali/cli 0.141.4 → 0.141.6

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 +61 -4
  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.141.4";
20
+ var version = "0.141.6";
21
21
  //#endregion
22
22
  //#region ../sdk/src/generated/core/bodySerializer.gen.ts
23
23
  const serializeFormDataPair = (data, key, value) => {
@@ -1029,6 +1029,18 @@ var Channels = class {
1029
1029
  });
1030
1030
  }
1031
1031
  /**
1032
+ * Delete a conversation
1033
+ *
1034
+ * Removes the conversation and the runtime session it maps to. The address, its actor and its other conversations are left alone; the address's next message opens a fresh conversation. To erase the address itself, use [`DELETE /v1/projects/{project_id}/addresses/{identifier}`](/docs/api/addresses/delete-address).
1035
+ *
1036
+ */
1037
+ static deleteChannelConversation(options) {
1038
+ return (options.client ?? client).delete({
1039
+ url: "/v1/projects/{project_id}/channels/{channel_id}/conversations/{conversation_id}",
1040
+ ...options
1041
+ });
1042
+ }
1043
+ /**
1032
1044
  * Get a conversation
1033
1045
  *
1034
1046
  * Where the conversation points: the address it belongs to, the route (or sentinel) whose action opened it, and the runtime session it maps 1:1 to. The messages are not here — read them with [`GET /v1/projects/{project_id}/channels/{channel_id}/conversations/{conversation_id}/messages`](/docs/api/channels/list-channel-conversation-messages).
@@ -1246,7 +1258,7 @@ var Agents = class {
1246
1258
  /**
1247
1259
  * Run an agent generation
1248
1260
  *
1249
- * Sends messages to the agent, resolves its tools, and runs the AI model loop. Background by default: returns `202 Accepted` with a `generation_id` to poll via `GET /v1/projects/{project_id}/generations/{generation_id}`. Pass `?wait=true` to block and receive the result inline, where client tools pause the generation and return `requires_action`. Streaming (`stream: true`) implies waiting.
1261
+ * Sends messages to the agent, resolves its tools, and runs the AI model loop. Background by default: returns `202 Accepted` with a `generation_id` to poll via `GET /v1/projects/{project_id}/generations/{generation_id}`. Pass `?wait=true` to block and receive the result inline, where client tools pause the generation and return `requires_action`. Streaming (`stream: true`) implies waiting. Pass `idempotency_key` to make a retry safe: a request whose key is already claimed runs nothing and answers `202` with the generation the key names.
1250
1262
  *
1251
1263
  */
1252
1264
  static createAgentGeneration(options) {
@@ -7492,7 +7504,7 @@ const routes = {
7492
7504
  "create-agent-generation": {
7493
7505
  serviceClass: "Agents",
7494
7506
  operationId: "createAgentGeneration",
7495
- description: "Sends messages to the agent, resolves its tools, and runs the AI model loop. Background by default: returns `202 Accepted` with a `generation_id` to poll via `GET /v1/projects/{project_id}/generations/{generation_id}`. Pass `?wait=true` to block and receive the result inline, where client tools pause the generation and return `requires_action`. Streaming (`stream: true`) implies waiting.",
7507
+ description: "Sends messages to the agent, resolves its tools, and runs the AI model loop. Background by default: returns `202 Accepted` with a `generation_id` to poll via `GET /v1/projects/{project_id}/generations/{generation_id}`. Pass `?wait=true` to block and receive the result inline, where client tools pause the generation and return `requires_action`. Streaming (`stream: true`) implies waiting. Pass `idempotency_key` to make a retry safe: a request whose key is already claimed runs nothing and answers `202` with the generation the key names.",
7496
7508
  moduleDocsUrl: "https://docs.naturali.ai/docs/modules/agents",
7497
7509
  httpMethod: "post",
7498
7510
  pathParams: ["project_id", "agent_id"],
@@ -7591,6 +7603,13 @@ const routes = {
7591
7603
  "type": "string",
7592
7604
  "in": "body"
7593
7605
  },
7606
+ {
7607
+ "name": "idempotency_key",
7608
+ "description": "Deduplication key, unique within the project, that makes a retry of an at-least-once delivery or an ambiguous failure safe. The first request under a key runs the generation; any later request carrying it runs nothing and answers `202` with the generation the key names, whatever state it has reached — including a retry that arrives while the original is still running. The key is claimed by the generation record for as long as the record exists.\n\nEvery other body field except `stream` is the request the key names: reusing a key with any of them changed, or on another agent of the project, is `409 IDEMPOTENCY_KEY_REUSED`. `stream` and `wait` say how the caller receives the generation, not what it is, so a retry may flip them.",
7609
+ "required": false,
7610
+ "type": "string",
7611
+ "in": "body"
7612
+ },
7594
7613
  {
7595
7614
  "name": "knowledge_config",
7596
7615
  "description": "Per-generation knowledge retrieval override. Array filters (memory_store_ids, document_ids, document_paths) are unioned with the agent's stored knowledge_config; `tags` pairs are merged with the override winning per key; scalar fields (min_score, rrf_k, recency_half_life_days, limit) use the per-generation value when present.",
@@ -9684,6 +9703,44 @@ const routes = {
9684
9703
  }
9685
9704
  ]
9686
9705
  },
9706
+ "delete-channel-conversation": {
9707
+ serviceClass: "Channels",
9708
+ operationId: "deleteChannelConversation",
9709
+ description: "Removes the conversation and the runtime session it maps to. The address, its actor and its other conversations are left alone; the address's next message opens a fresh conversation. To erase the address itself, use [`DELETE /v1/projects/{project_id}/addresses/{identifier}`](/docs/api/addresses/delete-address).",
9710
+ moduleDocsUrl: "https://docs.naturali.ai/docs/modules/channels",
9711
+ httpMethod: "delete",
9712
+ pathParams: [
9713
+ "project_id",
9714
+ "channel_id",
9715
+ "conversation_id"
9716
+ ],
9717
+ queryParams: [],
9718
+ headerParams: [],
9719
+ cookieParams: [],
9720
+ flags: [
9721
+ {
9722
+ "name": "project_id",
9723
+ "description": "Project public ID (proj_ prefix).",
9724
+ "required": true,
9725
+ "type": "string",
9726
+ "in": "path"
9727
+ },
9728
+ {
9729
+ "name": "channel_id",
9730
+ "description": "Channel public ID (chan_ prefix).",
9731
+ "required": true,
9732
+ "type": "string",
9733
+ "in": "path"
9734
+ },
9735
+ {
9736
+ "name": "conversation_id",
9737
+ "description": "Conversation public ID (conv_ prefix).",
9738
+ "required": true,
9739
+ "type": "string",
9740
+ "in": "path"
9741
+ }
9742
+ ]
9743
+ },
9687
9744
  "list-channel-conversation-messages": {
9688
9745
  serviceClass: "Channels",
9689
9746
  operationId: "listChannelConversationMessages",
@@ -18620,7 +18677,7 @@ const routes = {
18620
18677
  },
18621
18678
  {
18622
18679
  "name": "tool_context",
18623
- "description": "Caller context every firing forwards to the run it starts, so an agent whose tools authorize through `{{context:<key>}}` can be put on a schedule — a firing has no request to carry one. Each key is forwarded as one `X-Naturali-Context-<key>` header.\n\n**Write-only.** It is accepted here and never returned on a read, so the record cannot be used to recover a value.\n\nA value may be a `{{secret:...}}` reference, which keeps the credential in the [secret](/docs/modules/secrets) store and leaves only its name on the trigger; it is resolved at fire time, so rotating the secret changes the next firing without touching the trigger. A reference naming a secret that does not exist in this project is refused here rather than at fire time.\n",
18680
+ "description": "Caller context every firing forwards to the run it starts, so an agent whose tools authorize through `{{context:<key>}}` can be put on a schedule — a firing has no request to carry one. Each key is forwarded as one `X-Naturali-Context-<key>` header.\n\n**Write-only.** It is accepted here and never returned on a read, so the record cannot be used to recover a value.\n\nA value may be a `{{secret:sec_...}}` reference, which keeps the credential in the [secret](/docs/modules/secrets) store and leaves only its id on the trigger; it is resolved at fire time, so rotating the secret changes the next firing without touching the trigger. A reference is refused here rather than at fire time when it is not in that id form (a secret's name does not resolve) or names a secret that does not exist in this project.\n",
18624
18681
  "required": false,
18625
18682
  "type": "object",
18626
18683
  "in": "body"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/cli",
3
- "version": "0.141.4",
3
+ "version": "0.141.6",
4
4
  "description": "Command-line interface for the naturali.ai API, generated from its OpenAPI specs",
5
5
  "type": "module",
6
6
  "bin": {
@@ -25,7 +25,7 @@
25
25
  "yaml": "^2.9.1"
26
26
  },
27
27
  "devDependencies": {
28
- "@naturali/sdk": "0.141.4",
28
+ "@naturali/sdk": "0.141.6",
29
29
  "@ttoss/openapi-codegen": "^0.3.1",
30
30
  "@types/node": "^26.5.1",
31
31
  "tsdown": "^0.23.0",