@soat/cli 0.14.11 → 0.15.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.
- package/dist/index.mjs +104 -2
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import { load } from "js-yaml";
|
|
|
11
11
|
import * as os from "node:os";
|
|
12
12
|
|
|
13
13
|
//#region package.json
|
|
14
|
-
var version = "0.
|
|
14
|
+
var version = "0.15.0";
|
|
15
15
|
|
|
16
16
|
//#endregion
|
|
17
17
|
//#region src/cli-wrappers/wrappers/formations.ts
|
|
@@ -1374,6 +1374,96 @@ var routes = {
|
|
|
1374
1374
|
"in": "path"
|
|
1375
1375
|
}]
|
|
1376
1376
|
},
|
|
1377
|
+
"list-approvals": {
|
|
1378
|
+
serviceClass: "Approvals",
|
|
1379
|
+
operationId: "listApprovals",
|
|
1380
|
+
description: "Returns approval items for a project, filterable by status, origin, and expiry.",
|
|
1381
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/approvals",
|
|
1382
|
+
pathParams: [],
|
|
1383
|
+
queryParams: ["project_id", "status", "origin", "expires_before"],
|
|
1384
|
+
flags: [{
|
|
1385
|
+
"name": "project_id",
|
|
1386
|
+
"description": "Project ID (required if not using project key auth)",
|
|
1387
|
+
"required": false,
|
|
1388
|
+
"type": "string",
|
|
1389
|
+
"in": "query"
|
|
1390
|
+
}, {
|
|
1391
|
+
"name": "status",
|
|
1392
|
+
"description": "Filter by lifecycle status",
|
|
1393
|
+
"required": false,
|
|
1394
|
+
"type": "string",
|
|
1395
|
+
"in": "query"
|
|
1396
|
+
}, {
|
|
1397
|
+
"name": "origin",
|
|
1398
|
+
"description": "Filter by producer origin",
|
|
1399
|
+
"required": false,
|
|
1400
|
+
"type": "string",
|
|
1401
|
+
"in": "query"
|
|
1402
|
+
}, {
|
|
1403
|
+
"name": "expires_before",
|
|
1404
|
+
"description": "Return only items expiring at or before this timestamp",
|
|
1405
|
+
"required": false,
|
|
1406
|
+
"type": "string",
|
|
1407
|
+
"in": "query"
|
|
1408
|
+
}]
|
|
1409
|
+
},
|
|
1410
|
+
"get-approval": {
|
|
1411
|
+
serviceClass: "Approvals",
|
|
1412
|
+
operationId: "getApproval",
|
|
1413
|
+
description: "Returns a single approval item with its full evidence.",
|
|
1414
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/approvals",
|
|
1415
|
+
pathParams: ["approval_id"],
|
|
1416
|
+
queryParams: [],
|
|
1417
|
+
flags: [{
|
|
1418
|
+
"name": "approval_id",
|
|
1419
|
+
"description": "Approval item ID",
|
|
1420
|
+
"required": true,
|
|
1421
|
+
"type": "string",
|
|
1422
|
+
"in": "path"
|
|
1423
|
+
}]
|
|
1424
|
+
},
|
|
1425
|
+
"approve-approval": {
|
|
1426
|
+
serviceClass: "Approvals",
|
|
1427
|
+
operationId: "approveApproval",
|
|
1428
|
+
description: "Approves the item. Optionally supply edited `arguments` to replace the proposed arguments (edit-then-approve); the original is preserved on the item. Expiry is re-checked at decision time — an expired item can never be approved.",
|
|
1429
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/approvals",
|
|
1430
|
+
pathParams: ["approval_id"],
|
|
1431
|
+
queryParams: [],
|
|
1432
|
+
flags: [{
|
|
1433
|
+
"name": "approval_id",
|
|
1434
|
+
"description": "Approval item ID",
|
|
1435
|
+
"required": true,
|
|
1436
|
+
"type": "string",
|
|
1437
|
+
"in": "path"
|
|
1438
|
+
}, {
|
|
1439
|
+
"name": "arguments",
|
|
1440
|
+
"description": "Edited arguments to execute instead of the proposed ones",
|
|
1441
|
+
"required": false,
|
|
1442
|
+
"type": "object",
|
|
1443
|
+
"in": "body"
|
|
1444
|
+
}]
|
|
1445
|
+
},
|
|
1446
|
+
"reject-approval": {
|
|
1447
|
+
serviceClass: "Approvals",
|
|
1448
|
+
operationId: "rejectApproval",
|
|
1449
|
+
description: "Rejects the item. A reason is required and preserved on the item.",
|
|
1450
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/approvals",
|
|
1451
|
+
pathParams: ["approval_id"],
|
|
1452
|
+
queryParams: [],
|
|
1453
|
+
flags: [{
|
|
1454
|
+
"name": "approval_id",
|
|
1455
|
+
"description": "Approval item ID",
|
|
1456
|
+
"required": true,
|
|
1457
|
+
"type": "string",
|
|
1458
|
+
"in": "path"
|
|
1459
|
+
}, {
|
|
1460
|
+
"name": "reason",
|
|
1461
|
+
"description": "Why the item is being rejected (required)",
|
|
1462
|
+
"required": true,
|
|
1463
|
+
"type": "string",
|
|
1464
|
+
"in": "body"
|
|
1465
|
+
}]
|
|
1466
|
+
},
|
|
1377
1467
|
"list-chats": {
|
|
1378
1468
|
serviceClass: "Chats",
|
|
1379
1469
|
operationId: "listChats",
|
|
@@ -4525,6 +4615,12 @@ var routes = {
|
|
|
4525
4615
|
"required": false,
|
|
4526
4616
|
"type": "array",
|
|
4527
4617
|
"in": "body"
|
|
4618
|
+
}, {
|
|
4619
|
+
"name": "denied_actions",
|
|
4620
|
+
"description": "For `mcp` tools: an optional denylist of MCP tool names to hide. Applied after `actions` and taking precedence over it. Use it to scope a read+write MCP server read-only by denying just the write tools. Omit or set `null` to deny nothing. Ignored for other tool types.",
|
|
4621
|
+
"required": false,
|
|
4622
|
+
"type": "array",
|
|
4623
|
+
"in": "body"
|
|
4528
4624
|
}, {
|
|
4529
4625
|
"name": "preset_parameters",
|
|
4530
4626
|
"description": "Fixed parameters merged into every soat 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.",
|
|
@@ -4621,6 +4717,12 @@ var routes = {
|
|
|
4621
4717
|
"required": false,
|
|
4622
4718
|
"type": "array",
|
|
4623
4719
|
"in": "body"
|
|
4720
|
+
}, {
|
|
4721
|
+
"name": "denied_actions",
|
|
4722
|
+
"description": "For `mcp` tools: an optional denylist of MCP tool names to hide. Applied after `actions` and taking precedence over it. Use it to scope a read+write MCP server read-only by denying just the write tools. `null` denies nothing. Ignored for other tool types.",
|
|
4723
|
+
"required": false,
|
|
4724
|
+
"type": "array",
|
|
4725
|
+
"in": "body"
|
|
4624
4726
|
}, {
|
|
4625
4727
|
"name": "preset_parameters",
|
|
4626
4728
|
"description": "Fixed parameters merged into every soat 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.",
|
|
@@ -4677,7 +4779,7 @@ var routes = {
|
|
|
4677
4779
|
"in": "path"
|
|
4678
4780
|
}, {
|
|
4679
4781
|
"name": "action",
|
|
4680
|
-
"description": "For `soat` tools: the action name (must be in the tool's `actions` list). For `mcp` tools: the MCP tool name to invoke (must be in the tool's `actions` allowlist when one is set). Ignored for `http` tools.\n",
|
|
4782
|
+
"description": "For `soat` tools: the action name (must be in the tool's `actions` list). For `mcp` tools: the MCP tool name to invoke (must be in the tool's `actions` allowlist when one is set, and must not be in its `denied_actions` denylist). Ignored for `http` tools.\n",
|
|
4681
4783
|
"required": false,
|
|
4682
4784
|
"type": "string",
|
|
4683
4785
|
"in": "body"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soat/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@inquirer/input": "^5.1.2",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"@ttoss/logger": "^0.8.19",
|
|
9
9
|
"commander": "^15.0.0",
|
|
10
10
|
"js-yaml": "^5.2.1",
|
|
11
|
-
"@soat/sdk": "0.
|
|
11
|
+
"@soat/sdk": "0.15.0"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"@ttoss/config": "^1.37.17",
|