@soat/cli 0.58.6 → 0.59.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.
Files changed (2) hide show
  1. package/dist/index.mjs +16 -4
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -13,7 +13,7 @@ import * as os from "node:os";
13
13
  import { createHmac, timingSafeEqual } from "node:crypto";
14
14
 
15
15
  //#region package.json
16
- var version = "0.58.6";
16
+ var version = "0.59.0";
17
17
 
18
18
  //#endregion
19
19
  //#region src/cli-wrappers/wrappers/formations.ts
@@ -1006,7 +1006,7 @@ var routes = {
1006
1006
  httpMethod: "put",
1007
1007
  pathParams: ["agent_id"],
1008
1008
  queryParams: [],
1009
- headerParams: [],
1009
+ headerParams: ["If-Match"],
1010
1010
  cookieParams: [],
1011
1011
  flags: [{
1012
1012
  "name": "agent_id",
@@ -1014,6 +1014,12 @@ var routes = {
1014
1014
  "required": true,
1015
1015
  "type": "string",
1016
1016
  "in": "path"
1017
+ }, {
1018
+ "name": "If-Match",
1019
+ "description": "The version the caller believes the resource holds, as an entity tag (`3` or `\"3\"`). Equivalent to `expected_version` in the request body; `*` states no precondition beyond the resource existing. A mismatch is `409 VERSION_CONFLICT`.",
1020
+ "required": false,
1021
+ "type": "string",
1022
+ "in": "header"
1017
1023
  }, {
1018
1024
  "name": "ai_provider_id",
1019
1025
  "description": "",
@@ -1343,7 +1349,7 @@ var routes = {
1343
1349
  "create-agent-generation": {
1344
1350
  serviceClass: "Agents",
1345
1351
  operationId: "createAgentGeneration",
1346
- 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 /api/v1/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.",
1352
+ 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 /api/v1/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.",
1347
1353
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/agents",
1348
1354
  httpMethod: "post",
1349
1355
  pathParams: ["agent_id"],
@@ -1422,6 +1428,12 @@ var routes = {
1422
1428
  "required": false,
1423
1429
  "type": "object",
1424
1430
  "in": "body"
1431
+ }, {
1432
+ "name": "idempotency_key",
1433
+ "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.",
1434
+ "required": false,
1435
+ "type": "string",
1436
+ "in": "body"
1425
1437
  }, {
1426
1438
  "name": "knowledge_config",
1427
1439
  "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.",
@@ -9242,7 +9254,7 @@ var routes = {
9242
9254
  "in": "body"
9243
9255
  }, {
9244
9256
  "name": "tool_context",
9245
- "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-Soat-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",
9257
+ "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-Soat-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",
9246
9258
  "required": false,
9247
9259
  "type": "object",
9248
9260
  "in": "body"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soat/cli",
3
- "version": "0.58.6",
3
+ "version": "0.59.0",
4
4
  "description": "CLI for SOAT — open-source infrastructure for production-ready AI agents.",
5
5
  "keywords": [
6
6
  "ai-agents",
@@ -22,7 +22,7 @@
22
22
  "dependencies": {
23
23
  "@inquirer/input": "^5.1.6",
24
24
  "@inquirer/password": "^5.2.2",
25
- "@soat/sdk": "0.58.6",
25
+ "@soat/sdk": "0.59.0",
26
26
  "@ttoss/logger": "^0.8.20",
27
27
  "commander": "^15.0.0",
28
28
  "js-yaml": "^5.4.2"