@soat/cli 0.30.1 → 0.32.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 +35 -5
  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.30.1";
16
+ var version = "0.32.0";
17
17
 
18
18
  //#endregion
19
19
  //#region src/cli-wrappers/wrappers/formations.ts
@@ -3421,6 +3421,12 @@ var routes = {
3421
3421
  "required": false,
3422
3422
  "type": "string",
3423
3423
  "in": "body"
3424
+ }, {
3425
+ "name": "metadata",
3426
+ "description": "Caller-supplied key/value metadata attached to the run record for attribution — what this measurement was of (the commit or release candidate being scored, the CI job that asked for it). Round-trips verbatim on every read of the run, the list included.\n\nThe bag is caller-owned and no key is reserved: everything the platform decides about a run (`status`, `agent_version`, `baseline_run_id`, `aggregate_scores`, `passed`, the counts) is a field of its own and cannot be written from here. Nothing in the scoring path reads it. A non-object is rejected with `400 VALIDATION_FAILED` and no run is created.",
3427
+ "required": false,
3428
+ "type": "object",
3429
+ "in": "body"
3424
3430
  }]
3425
3431
  },
3426
3432
  "get-eval-run": {
@@ -5633,6 +5639,12 @@ var routes = {
5633
5639
  "required": false,
5634
5640
  "type": "object",
5635
5641
  "in": "body"
5642
+ }, {
5643
+ "name": "metadata",
5644
+ "description": "Caller-supplied key/value metadata attached to the run record for per-run attribution (e.g. which of your own tenants this run belongs to, or the dispatch batch that started it). Round-trips verbatim on every read of the run, on the list as well as the single read.\n\nThe bag is caller-owned and no key is reserved: server-owned state (status, the pinned orchestration version, the trace, usage, artifacts, the run's own `input` and accumulated `state`) lives in its own top-level field and cannot be written from here.\n\nIt is **not** merged into run state: no graph node sees it, and an `input_schema` never has to tolerate it — which is what makes it the place for an infrastructural label, rather than `input`. Keys are never transformed. It is not inherited by the child runs a `loop` or `sub_orchestration` node starts; each child carries whatever the graph gives it, which today is nothing.",
5645
+ "required": false,
5646
+ "type": "object",
5647
+ "in": "body"
5636
5648
  }, {
5637
5649
  "name": "wait",
5638
5650
  "description": "When true, block until the run reaches a terminal (succeeded/failed) or awaiting_input state and return the settled run. When false (default), return immediately with status \"queued\" and execute the run in the background.",
@@ -6769,6 +6781,12 @@ var routes = {
6769
6781
  "required": false,
6770
6782
  "type": "object",
6771
6783
  "in": "body"
6784
+ }, {
6785
+ "name": "metadata",
6786
+ "description": "Caller-supplied key/value metadata attached to the task record for attribution — which of your own tenants the task belongs to, the ticket that raised it, the import batch that created it. Round-trips verbatim on every read of the task, the list included, and survives every transition (a transition supplies no metadata of its own).\n\nThe bag is caller-owned and no key is reserved: everything the engine decides about a task (`state`, `status`, `workflow_version`, `last_result`, `active_dispatch`, the automation fields) is a field of its own and cannot be written from here.\n\nPrefer this over `payload` for anything that is not task data: `payload` is read by every guard as `task.payload` and may be written by the workflow's declared `payload_writes`, so a label parked there is neither invisible to the state machine nor safe from it. A non-object is rejected with `400 VALIDATION_FAILED` and no task is created.",
6787
+ "required": false,
6788
+ "type": "object",
6789
+ "in": "body"
6772
6790
  }]
6773
6791
  },
6774
6792
  "get-task": {
@@ -6985,7 +7003,7 @@ var routes = {
6985
7003
  "in": "body"
6986
7004
  }, {
6987
7005
  "name": "preset_parameters",
6988
- "description": "Fixed parameters merged into every builtin tool call. Keys matching fields in the action's input schema are removed from the schema shown to the model and injected automatically at execution time.",
7006
+ "description": "Fixed parameters pinned on every call this tool makes, whatever its type. Keys matching fields in the input schema are removed from the schema shown to the model, and a pinned value wins over one the model or a direct caller supplies for the same key.",
6989
7007
  "required": false,
6990
7008
  "type": "object",
6991
7009
  "in": "body"
@@ -7095,7 +7113,7 @@ var routes = {
7095
7113
  "in": "body"
7096
7114
  }, {
7097
7115
  "name": "preset_parameters",
7098
- "description": "Fixed parameters merged into every builtin tool call. Keys matching fields in the action's input schema are removed from the schema shown to the model and injected automatically at execution time.",
7116
+ "description": "Fixed parameters pinned on every call this tool makes, whatever its type. Keys matching fields in the input schema are removed from the schema shown to the model, and a pinned value wins over one the model or a direct caller supplies for the same key.",
7099
7117
  "required": false,
7100
7118
  "type": "object",
7101
7119
  "in": "body"
@@ -7138,7 +7156,7 @@ var routes = {
7138
7156
  "call-tool": {
7139
7157
  serviceClass: "Tools",
7140
7158
  operationId: "callTool",
7141
- description: "Directly invokes a tool and returns its output. Supported for `http`, `builtin`, `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 `builtin` and `mcp` tools the `action` field is required and identifies which action (SOAT) or tool name (MCP) to invoke. For `http` tools `action` is ignored. When a `builtin` or `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 merged with the caller-supplied `input` before execution; preset keys take lower precedence.",
7159
+ description: "Directly invokes a tool and returns its output. Supported for `http`, `builtin`, `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 `builtin` and `mcp` tools the `action` field is required and identifies which action (SOAT) or tool name (MCP) to invoke. For `http` tools `action` is ignored. When a `builtin` or `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.",
7142
7160
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/tools",
7143
7161
  httpMethod: "post",
7144
7162
  pathParams: ["tool_id"],
@@ -7157,7 +7175,7 @@ var routes = {
7157
7175
  "in": "body"
7158
7176
  }, {
7159
7177
  "name": "input",
7160
- "description": "Input parameters for the tool call. These are merged with the tool's `preset_parameters` before execution (caller-supplied values take precedence).\n",
7178
+ "description": "Input parameters for the tool call. These are merged with the tool's `preset_parameters` before execution; a preset value wins over the same key sent here.\n",
7161
7179
  "required": false,
7162
7180
  "type": "object",
7163
7181
  "in": "body"
@@ -7347,6 +7365,12 @@ var routes = {
7347
7365
  "required": false,
7348
7366
  "type": "string",
7349
7367
  "in": "body"
7368
+ }, {
7369
+ "name": "event_pattern",
7370
+ "description": "Internal-event subscription pattern. Required when type is event, rejected otherwise. `*` matches every event, `prefix.*` a namespace, or give an exact event name such as `documents.ingested`",
7371
+ "required": false,
7372
+ "type": "string",
7373
+ "in": "body"
7350
7374
  }, {
7351
7375
  "name": "active",
7352
7376
  "description": "",
@@ -7433,6 +7457,12 @@ var routes = {
7433
7457
  "required": false,
7434
7458
  "type": "string",
7435
7459
  "in": "body"
7460
+ }, {
7461
+ "name": "event_pattern",
7462
+ "description": "",
7463
+ "required": false,
7464
+ "type": "string",
7465
+ "in": "body"
7436
7466
  }, {
7437
7467
  "name": "active",
7438
7468
  "description": "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soat/cli",
3
- "version": "0.30.1",
3
+ "version": "0.32.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.2",
24
24
  "@inquirer/password": "^5.1.1",
25
- "@soat/sdk": "0.30.1",
25
+ "@soat/sdk": "0.32.0",
26
26
  "@ttoss/logger": "^0.8.19",
27
27
  "commander": "^15.0.0",
28
28
  "js-yaml": "^5.2.1"