@soat/cli 0.17.0 → 0.17.3

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 +63 -23
  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.0";
16
+ var version = "0.17.3";
17
17
 
18
18
  //#endregion
19
19
  //#region src/cli-wrappers/wrappers/formations.ts
@@ -338,6 +338,46 @@ var resolveClient = profileName => {
338
338
  //#endregion
339
339
  //#region src/generated/routes.ts
340
340
  var routes = {
341
+ "list-activity": {
342
+ serviceClass: "Activity",
343
+ operationId: "listActivity",
344
+ description: "Returns activity entries for a project, newest first, filterable by kind and severity. Paginated with an opaque cursor rather than offset/limit — pass the previous page's `next_cursor` to fetch the next one; a `null` `next_cursor` means there is no more data.",
345
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/activity",
346
+ httpMethod: "get",
347
+ pathParams: [],
348
+ queryParams: ["project_id", "kind", "severity", "cursor", "limit"],
349
+ flags: [{
350
+ "name": "project_id",
351
+ "description": "Project ID (required if not using project key auth)",
352
+ "required": false,
353
+ "type": "string",
354
+ "in": "query"
355
+ }, {
356
+ "name": "kind",
357
+ "description": "Filter by activity kind",
358
+ "required": false,
359
+ "type": "string",
360
+ "in": "query"
361
+ }, {
362
+ "name": "severity",
363
+ "description": "Filter by severity",
364
+ "required": false,
365
+ "type": "string",
366
+ "in": "query"
367
+ }, {
368
+ "name": "cursor",
369
+ "description": "Opaque cursor from a previous page's `next_cursor`",
370
+ "required": false,
371
+ "type": "string",
372
+ "in": "query"
373
+ }, {
374
+ "name": "limit",
375
+ "description": "Maximum number of results to return",
376
+ "required": false,
377
+ "type": "integer",
378
+ "in": "query"
379
+ }]
380
+ },
341
381
  "list-actors": {
342
382
  serviceClass: "Actors",
343
383
  operationId: "listActors",
@@ -1094,7 +1134,7 @@ var routes = {
1094
1134
  "in": "body"
1095
1135
  }, {
1096
1136
  "name": "tool_context",
1097
- "description": "Key-value pairs forwarded as `X-Soat-Context-<Key>` headers on every `http`, `mcp` and `soat` tool call in this generation. Each key's first character is uppercased and the rest is used verbatim. Keys are never case-converted — they round-trip exactly as sent. An invalid or colliding key is rejected with `400 INVALID_TOOL_CONTEXT_KEY`.",
1137
+ "description": "Key-value pairs forwarded as `X-Soat-Context-<key>` headers on every `http`, `mcp` and `soat` tool call in this generation. The header name is `X-Soat-Context-` plus the key verbatim — no character is re-cased. Keys are never case-converted — they round-trip exactly as sent. An invalid or colliding key is rejected with `400 INVALID_TOOL_CONTEXT_KEY`.",
1098
1138
  "required": false,
1099
1139
  "type": "object",
1100
1140
  "in": "body"
@@ -1112,7 +1152,7 @@ var routes = {
1112
1152
  "in": "body"
1113
1153
  }, {
1114
1154
  "name": "metadata",
1115
- "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.",
1116
1156
  "required": false,
1117
1157
  "type": "object",
1118
1158
  "in": "body"
@@ -2164,7 +2204,7 @@ var routes = {
2164
2204
  "in": "body"
2165
2205
  }, {
2166
2206
  "name": "tool_context",
2167
- "description": "Key-value pairs forwarded as `X-Soat-Context-<Key>` headers on every `http`, `mcp` and `soat` tool call in this generation. Each key's first character is uppercased and the rest is used verbatim; keys are never case-converted they round-trip exactly as sent. An invalid or colliding key is rejected with `400 INVALID_TOOL_CONTEXT_KEY`.",
2207
+ "description": "Key-value pairs forwarded as `X-Soat-Context-<key>` headers on every `http`, `mcp` and `soat` tool call in this generation. The header name is `X-Soat-Context-` plus the key verbatim — no character is re-cased and keys are never case-converted, so they round-trip exactly as sent. An invalid or colliding key is rejected with `400 INVALID_TOOL_CONTEXT_KEY`.",
2168
2208
  "required": false,
2169
2209
  "type": "object",
2170
2210
  "in": "body"
@@ -3621,7 +3661,7 @@ var routes = {
3621
3661
  "update-generation": {
3622
3662
  serviceClass: "Generations",
3623
3663
  operationId: "updateGeneration",
3624
- 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.",
3625
3665
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/generations",
3626
3666
  httpMethod: "patch",
3627
3667
  pathParams: ["generation_id"],
@@ -3634,7 +3674,7 @@ var routes = {
3634
3674
  "in": "path"
3635
3675
  }, {
3636
3676
  "name": "metadata",
3637
- "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",
3638
3678
  "required": true,
3639
3679
  "type": "object",
3640
3680
  "in": "body"
@@ -4674,10 +4714,10 @@ var routes = {
4674
4714
  description: "Cancels a run that has not yet reached a terminal state.",
4675
4715
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/orchestrations",
4676
4716
  httpMethod: "post",
4677
- pathParams: ["run_id"],
4717
+ pathParams: ["orchestration_run_id"],
4678
4718
  queryParams: [],
4679
4719
  flags: [{
4680
- "name": "run_id",
4720
+ "name": "orchestration_run_id",
4681
4721
  "description": "Public ID of the run (run_...)",
4682
4722
  "required": true,
4683
4723
  "type": "string",
@@ -4690,10 +4730,10 @@ var routes = {
4690
4730
  description: "Provides human input to a run that is awaiting_input at a human node.",
4691
4731
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/orchestrations",
4692
4732
  httpMethod: "post",
4693
- pathParams: ["run_id"],
4733
+ pathParams: ["orchestration_run_id"],
4694
4734
  queryParams: [],
4695
4735
  flags: [{
4696
- "name": "run_id",
4736
+ "name": "orchestration_run_id",
4697
4737
  "description": "Public ID of the run (run_...)",
4698
4738
  "required": true,
4699
4739
  "type": "string",
@@ -4718,10 +4758,10 @@ var routes = {
4718
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.",
4719
4759
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/orchestrations",
4720
4760
  httpMethod: "post",
4721
- pathParams: ["run_id"],
4761
+ pathParams: ["orchestration_run_id"],
4722
4762
  queryParams: [],
4723
4763
  flags: [{
4724
- "name": "run_id",
4764
+ "name": "orchestration_run_id",
4725
4765
  "description": "Public ID of the run (run_...)",
4726
4766
  "required": true,
4727
4767
  "type": "string",
@@ -4734,10 +4774,10 @@ var routes = {
4734
4774
  description: "Returns the status, state, and artifacts of a specific run.",
4735
4775
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/orchestrations",
4736
4776
  httpMethod: "get",
4737
- pathParams: ["run_id"],
4777
+ pathParams: ["orchestration_run_id"],
4738
4778
  queryParams: [],
4739
4779
  flags: [{
4740
- "name": "run_id",
4780
+ "name": "orchestration_run_id",
4741
4781
  "description": "Public ID of the run (run_...)",
4742
4782
  "required": true,
4743
4783
  "type": "string",
@@ -5070,7 +5110,7 @@ var routes = {
5070
5110
  "in": "body"
5071
5111
  }, {
5072
5112
  "name": "scope_ref",
5073
- "description": "Public id of the api key / agent the quota applies to. NULL means all entities of that scope type in the project.",
5113
+ "description": "Public id of the api key / agent / actor the quota applies to. For `api_key` and `agent` scope, NULL means all entities of that scope type in the project. For `actor` scope, NULL means one budget *per* actor — each end user gets their own allowance — rather than a pooled total across all actors.",
5074
5114
  "required": false,
5075
5115
  "type": "string",
5076
5116
  "in": "body"
@@ -5350,7 +5390,7 @@ var routes = {
5350
5390
  "in": "body"
5351
5391
  }, {
5352
5392
  "name": "tool_context",
5353
- "description": "Key-value pairs forwarded as `X-Soat-Context-<Key>` headers on every `http`, `mcp` and `soat` tool call in this session. Each key's first character is uppercased and the rest is used verbatim. Keys are never case-converted — they round-trip exactly as sent. A key that is not a valid HTTP header name, or two keys that map to the same header, are rejected with `400 INVALID_TOOL_CONTEXT_KEY`.",
5393
+ "description": "Key-value pairs forwarded as `X-Soat-Context-<key>` headers on every `http`, `mcp` and `soat` tool call in this session. The header name is `X-Soat-Context-` plus the key verbatim — no character is re-cased. Keys are never case-converted — they round-trip exactly as sent. A key that is not a valid HTTP header name, or two keys that map to the same header, are rejected with `400 INVALID_TOOL_CONTEXT_KEY`.",
5354
5394
  "required": false,
5355
5395
  "type": "object",
5356
5396
  "in": "body"
@@ -5418,7 +5458,7 @@ var routes = {
5418
5458
  "in": "body"
5419
5459
  }, {
5420
5460
  "name": "tool_context",
5421
- "description": "Key-value pairs forwarded as `X-Soat-Context-<Key>` headers on every `http`, `mcp` and `soat` tool call in this session. Each key's first character is uppercased and the rest is used verbatim. Keys are never case-converted — they round-trip exactly as sent. A key that is not a valid HTTP header name, or two keys that map to the same header, are rejected with `400 INVALID_TOOL_CONTEXT_KEY`.",
5461
+ "description": "Key-value pairs forwarded as `X-Soat-Context-<key>` headers on every `http`, `mcp` and `soat` tool call in this session. The header name is `X-Soat-Context-` plus the key verbatim — no character is re-cased. Keys are never case-converted — they round-trip exactly as sent. A key that is not a valid HTTP header name, or two keys that map to the same header, are rejected with `400 INVALID_TOOL_CONTEXT_KEY`.",
5422
5462
  "required": false,
5423
5463
  "type": "object",
5424
5464
  "in": "body"
@@ -5474,7 +5514,7 @@ var routes = {
5474
5514
  "in": "body"
5475
5515
  }, {
5476
5516
  "name": "tool_context",
5477
- "description": "Key-value pairs forwarded as `X-Soat-Context-<Key>` headers on every `http`, `mcp` and `soat` tool call in this generation. Each key's first character is uppercased and the rest is used verbatim. Keys are never case-converted — they round-trip exactly as sent. An invalid or colliding key is rejected with `400 INVALID_TOOL_CONTEXT_KEY`.",
5517
+ "description": "Key-value pairs forwarded as `X-Soat-Context-<key>` headers on every `http`, `mcp` and `soat` tool call in this generation. The header name is `X-Soat-Context-` plus the key verbatim — no character is re-cased. Keys are never case-converted — they round-trip exactly as sent. An invalid or colliding key is rejected with `400 INVALID_TOOL_CONTEXT_KEY`.",
5478
5518
  "required": false,
5479
5519
  "type": "object",
5480
5520
  "in": "body"
@@ -5520,7 +5560,7 @@ var routes = {
5520
5560
  "in": "body"
5521
5561
  }, {
5522
5562
  "name": "tool_context",
5523
- "description": "Key-value pairs forwarded as `X-Soat-Context-<Key>` headers on every `http`, `mcp` and `soat` tool call in this generation. Each key's first character is uppercased and the rest is used verbatim. Keys are never case-converted — they round-trip exactly as sent. An invalid or colliding key is rejected with `400 INVALID_TOOL_CONTEXT_KEY`.",
5563
+ "description": "Key-value pairs forwarded as `X-Soat-Context-<key>` headers on every `http`, `mcp` and `soat` tool call in this generation. The header name is `X-Soat-Context-` plus the key verbatim — no character is re-cased. Keys are never case-converted — they round-trip exactly as sent. An invalid or colliding key is rejected with `400 INVALID_TOOL_CONTEXT_KEY`.",
5524
5564
  "required": false,
5525
5565
  "type": "object",
5526
5566
  "in": "body"
@@ -6647,19 +6687,19 @@ var routes = {
6647
6687
  "get-usage-receipt": {
6648
6688
  serviceClass: "Usage",
6649
6689
  operationId: "getUsageReceipt",
6650
- 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.",
6651
6691
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/usage",
6652
6692
  httpMethod: "get",
6653
6693
  pathParams: [],
6654
- queryParams: ["generation_id", "run_id"],
6694
+ queryParams: ["generation_id", "orchestration_run_id"],
6655
6695
  flags: [{
6656
6696
  "name": "generation_id",
6657
- "description": "Generation public ID. Mutually exclusive with run_id.\n",
6697
+ "description": "Generation public ID. Mutually exclusive with orchestration_run_id.\n",
6658
6698
  "required": false,
6659
6699
  "type": "string",
6660
6700
  "in": "query"
6661
6701
  }, {
6662
- "name": "run_id",
6702
+ "name": "orchestration_run_id",
6663
6703
  "description": "Orchestration run public ID. Returns the receipt summed across every generation the run metered. Mutually exclusive with generation_id.\n",
6664
6704
  "required": false,
6665
6705
  "type": "string",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soat/cli",
3
- "version": "0.17.0",
3
+ "version": "0.17.3",
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.0"
11
+ "@soat/sdk": "0.17.3"
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",