@soat/cli 0.17.1 → 0.17.4

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 +19 -19
  2. package/package.json +3 -2
package/dist/index.mjs CHANGED
@@ -13,7 +13,7 @@ import { load } from "js-yaml";
13
13
  import * as os from "node:os";
14
14
 
15
15
  //#region package.json
16
- var version = "0.17.1";
16
+ var version = "0.17.4";
17
17
 
18
18
  //#endregion
19
19
  //#region src/cli-wrappers/wrappers/formations.ts
@@ -718,7 +718,7 @@ var routes = {
718
718
  "in": "body"
719
719
  }, {
720
720
  "name": "tool_choice",
721
- "description": "Tool choice strategy. Accepts a string (`\"auto\"`, `\"required\"`) or an object (`{ \"type\": \"tool\", \"name\": \"my_tool\" }`).",
721
+ "description": "Tool choice strategy. Accepts a string (`\"auto\"`, `\"required\"`) or an object (`{ \"type\": \"tool\", \"tool_name\": \"my_tool\" }`).",
722
722
  "required": false,
723
723
  "type": "string",
724
724
  "in": "body"
@@ -864,7 +864,7 @@ var routes = {
864
864
  "in": "body"
865
865
  }, {
866
866
  "name": "tool_choice",
867
- "description": "Tool choice strategy. Accepts a string (`\"auto\"`, `\"required\"`) or an object (`{ \"type\": \"tool\", \"name\": \"my_tool\" }`).",
867
+ "description": "Tool choice strategy. Accepts a string (`\"auto\"`, `\"required\"`) or an object (`{ \"type\": \"tool\", \"tool_name\": \"my_tool\" }`).",
868
868
  "required": false,
869
869
  "type": "string",
870
870
  "in": "body"
@@ -994,7 +994,7 @@ var routes = {
994
994
  "in": "body"
995
995
  }, {
996
996
  "name": "tool_choice",
997
- "description": "Tool choice strategy. Accepts a string (`\"auto\"`, `\"required\"`) or an object (`{ \"type\": \"tool\", \"name\": \"my_tool\" }`).",
997
+ "description": "Tool choice strategy. Accepts a string (`\"auto\"`, `\"required\"`) or an object (`{ \"type\": \"tool\", \"tool_name\": \"my_tool\" }`).",
998
998
  "required": false,
999
999
  "type": "string",
1000
1000
  "in": "body"
@@ -1152,7 +1152,7 @@ var routes = {
1152
1152
  "in": "body"
1153
1153
  }, {
1154
1154
  "name": "metadata",
1155
- "description": "Caller-supplied key/value metadata attached to the generation record for per-run audit attribution (e.g. the knowledge-corpus version that produced this action). Round-trips when the generation is fetched via the generations API. Reserved server-owned keys (`action_id`, `trigger_id`, `run_id`, `node_id`, `extraction`, and internal recovery state) cannot be set here and are rejected with 400.",
1155
+ "description": "Caller-supplied key/value metadata attached to the generation record for per-run audit attribution (e.g. the knowledge-corpus version that produced this action). Round-trips when the generation is fetched via the generations API. Reserved server-owned keys (`action_id`, `trigger_id`, `orchestration_run_id`, `node_id`, `extraction`, and internal recovery state) cannot be set here and are rejected with 400.",
1156
1156
  "required": false,
1157
1157
  "type": "object",
1158
1158
  "in": "body"
@@ -3661,7 +3661,7 @@ var routes = {
3661
3661
  "update-generation": {
3662
3662
  serviceClass: "Generations",
3663
3663
  operationId: "updateGeneration",
3664
- description: "Attaches caller-supplied key/value metadata to a generation record for per-run audit attribution (e.g. recording which knowledge-corpus version produced an AI action). The provided keys are shallow-merged over the existing metadata, so repeated patches accumulate and system-owned keys are preserved. Reserved keys (`action_id`, `trigger_id`, `run_id`, `node_id`, `extraction`, and internal recovery state) cannot be set and are rejected with 400.",
3664
+ description: "Attaches caller-supplied key/value metadata to a generation record for per-run audit attribution (e.g. recording which knowledge-corpus version produced an AI action). The provided keys are shallow-merged over the existing metadata, so repeated patches accumulate and system-owned keys are preserved. Reserved keys (`action_id`, `trigger_id`, `orchestration_run_id`, `node_id`, `extraction`, and internal recovery state) cannot be set and are rejected with 400.",
3665
3665
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/generations",
3666
3666
  httpMethod: "patch",
3667
3667
  pathParams: ["generation_id"],
@@ -3674,7 +3674,7 @@ var routes = {
3674
3674
  "in": "path"
3675
3675
  }, {
3676
3676
  "name": "metadata",
3677
- "description": "Caller-supplied key/value metadata to shallow-merge into the generation record. Reserved server-owned keys (`action_id`, `trigger_id`, `run_id`, `node_id`, `extraction`, and internal recovery state) are rejected with 400.\n",
3677
+ "description": "Caller-supplied key/value metadata to shallow-merge into the generation record. Reserved server-owned keys (`action_id`, `trigger_id`, `orchestration_run_id`, `node_id`, `extraction`, and internal recovery state) are rejected with 400.\n",
3678
3678
  "required": true,
3679
3679
  "type": "object",
3680
3680
  "in": "body"
@@ -4714,10 +4714,10 @@ var routes = {
4714
4714
  description: "Cancels a run that has not yet reached a terminal state.",
4715
4715
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/orchestrations",
4716
4716
  httpMethod: "post",
4717
- pathParams: ["run_id"],
4717
+ pathParams: ["orchestration_run_id"],
4718
4718
  queryParams: [],
4719
4719
  flags: [{
4720
- "name": "run_id",
4720
+ "name": "orchestration_run_id",
4721
4721
  "description": "Public ID of the run (run_...)",
4722
4722
  "required": true,
4723
4723
  "type": "string",
@@ -4730,10 +4730,10 @@ var routes = {
4730
4730
  description: "Provides human input to a run that is awaiting_input at a human node.",
4731
4731
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/orchestrations",
4732
4732
  httpMethod: "post",
4733
- pathParams: ["run_id"],
4733
+ pathParams: ["orchestration_run_id"],
4734
4734
  queryParams: [],
4735
4735
  flags: [{
4736
- "name": "run_id",
4736
+ "name": "orchestration_run_id",
4737
4737
  "description": "Public ID of the run (run_...)",
4738
4738
  "required": true,
4739
4739
  "type": "string",
@@ -4758,10 +4758,10 @@ var routes = {
4758
4758
  description: "Re-drives an awaiting_input orchestration run from its last checkpoint. This does not satisfy the pause itself — it carries no node_id or payload, so a run parked on a human or webhook-receive node re-parks on the same node. Use submit-human-input to supply the awaited payload and advance the run.",
4759
4759
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/orchestrations",
4760
4760
  httpMethod: "post",
4761
- pathParams: ["run_id"],
4761
+ pathParams: ["orchestration_run_id"],
4762
4762
  queryParams: [],
4763
4763
  flags: [{
4764
- "name": "run_id",
4764
+ "name": "orchestration_run_id",
4765
4765
  "description": "Public ID of the run (run_...)",
4766
4766
  "required": true,
4767
4767
  "type": "string",
@@ -4774,10 +4774,10 @@ var routes = {
4774
4774
  description: "Returns the status, state, and artifacts of a specific run.",
4775
4775
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/orchestrations",
4776
4776
  httpMethod: "get",
4777
- pathParams: ["run_id"],
4777
+ pathParams: ["orchestration_run_id"],
4778
4778
  queryParams: [],
4779
4779
  flags: [{
4780
- "name": "run_id",
4780
+ "name": "orchestration_run_id",
4781
4781
  "description": "Public ID of the run (run_...)",
4782
4782
  "required": true,
4783
4783
  "type": "string",
@@ -6687,19 +6687,19 @@ var routes = {
6687
6687
  "get-usage-receipt": {
6688
6688
  serviceClass: "Usage",
6689
6689
  operationId: "getUsageReceipt",
6690
- description: "Returns a billing receipt. Pass generation_id for a per-generation receipt, or run_id for a per-run receipt summed across the orchestration run's meters — both share the same shape (per-model line items with tokens, the price-book version that priced them, and cost, plus totals). Exactly one of generation_id or run_id must be supplied.",
6690
+ description: "Returns a billing receipt. Pass generation_id for a per-generation receipt, or orchestration_run_id for a per-run receipt summed across the orchestration run's meters — both share the same shape (per-model line items with tokens, the price-book version that priced them, and cost, plus totals). Exactly one of generation_id or orchestration_run_id must be supplied.",
6691
6691
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/usage",
6692
6692
  httpMethod: "get",
6693
6693
  pathParams: [],
6694
- queryParams: ["generation_id", "run_id"],
6694
+ queryParams: ["generation_id", "orchestration_run_id"],
6695
6695
  flags: [{
6696
6696
  "name": "generation_id",
6697
- "description": "Generation public ID. Mutually exclusive with run_id.\n",
6697
+ "description": "Generation public ID. Mutually exclusive with orchestration_run_id.\n",
6698
6698
  "required": false,
6699
6699
  "type": "string",
6700
6700
  "in": "query"
6701
6701
  }, {
6702
- "name": "run_id",
6702
+ "name": "orchestration_run_id",
6703
6703
  "description": "Orchestration run public ID. Returns the receipt summed across every generation the run metered. Mutually exclusive with generation_id.\n",
6704
6704
  "required": false,
6705
6705
  "type": "string",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soat/cli",
3
- "version": "0.17.1",
3
+ "version": "0.17.4",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@inquirer/input": "^5.1.2",
@@ -8,10 +8,11 @@
8
8
  "@ttoss/logger": "^0.8.19",
9
9
  "commander": "^15.0.0",
10
10
  "js-yaml": "^5.2.1",
11
- "@soat/sdk": "0.17.1"
11
+ "@soat/sdk": "0.17.4"
12
12
  },
13
13
  "devDependencies": {
14
14
  "@ttoss/config": "^1.37.17",
15
+ "@ttoss/openapi-codegen": "^0.2.0",
15
16
  "@ttoss/test-utils": "^4.2.18",
16
17
  "@types/jest": "^30.0.0",
17
18
  "@types/node": "^26.1.1",