@soat/cli 0.18.1 → 0.18.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.
- package/dist/index.mjs +164 -2
- package/package.json +2 -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.18.
|
|
16
|
+
var version = "0.18.3";
|
|
17
17
|
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region src/cli-wrappers/wrappers/formations.ts
|
|
@@ -788,6 +788,12 @@ var routes = {
|
|
|
788
788
|
"required": false,
|
|
789
789
|
"type": "boolean",
|
|
790
790
|
"in": "body"
|
|
791
|
+
}, {
|
|
792
|
+
"name": "version_label",
|
|
793
|
+
"description": "Optional tag for the config version this write archives (e.g. `initial`). Annotates the version only — it is not stored on the agent and is not part of the config, so labelling a change is never itself a change.",
|
|
794
|
+
"required": false,
|
|
795
|
+
"type": "string",
|
|
796
|
+
"in": "body"
|
|
791
797
|
}]
|
|
792
798
|
},
|
|
793
799
|
"get-agent": {
|
|
@@ -940,6 +946,12 @@ var routes = {
|
|
|
940
946
|
"required": false,
|
|
941
947
|
"type": "boolean",
|
|
942
948
|
"in": "body"
|
|
949
|
+
}, {
|
|
950
|
+
"name": "version_label",
|
|
951
|
+
"description": "Optional tag for the config version this write archives (e.g. `pre-tone-change`). Annotates the version only — it is not stored on the agent and is not part of the config, so labelling a change is never itself a change. Ignored when the write changes nothing, since no version is created.",
|
|
952
|
+
"required": false,
|
|
953
|
+
"type": "string",
|
|
954
|
+
"in": "body"
|
|
943
955
|
}]
|
|
944
956
|
},
|
|
945
957
|
"patch-agent": {
|
|
@@ -1076,6 +1088,12 @@ var routes = {
|
|
|
1076
1088
|
"required": false,
|
|
1077
1089
|
"type": "boolean",
|
|
1078
1090
|
"in": "body"
|
|
1091
|
+
}, {
|
|
1092
|
+
"name": "version_label",
|
|
1093
|
+
"description": "Optional tag for the config version this write archives (e.g. `pre-tone-change`). Annotates the version only — it is not stored on the agent and is not part of the config, so labelling a change is never itself a change. Ignored when the write changes nothing, since no version is created.",
|
|
1094
|
+
"required": false,
|
|
1095
|
+
"type": "string",
|
|
1096
|
+
"in": "body"
|
|
1079
1097
|
}]
|
|
1080
1098
|
},
|
|
1081
1099
|
"delete-agent": {
|
|
@@ -1216,6 +1234,150 @@ var routes = {
|
|
|
1216
1234
|
"in": "body"
|
|
1217
1235
|
}]
|
|
1218
1236
|
},
|
|
1237
|
+
"list-agent-versions": {
|
|
1238
|
+
serviceClass: "AgentVersions",
|
|
1239
|
+
operationId: "listAgentVersions",
|
|
1240
|
+
description: "Returns the agent's archived configurations, newest first. A version is written on create and on every subsequent write that changes the config — through the REST API or a formation apply alike. See [Versioning and Staged Rollout](/docs/modules/agents#versioning-and-staged-rollout).",
|
|
1241
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/agents",
|
|
1242
|
+
httpMethod: "get",
|
|
1243
|
+
pathParams: ["agent_id"],
|
|
1244
|
+
queryParams: ["limit", "offset"],
|
|
1245
|
+
flags: [{
|
|
1246
|
+
"name": "agent_id",
|
|
1247
|
+
"description": "",
|
|
1248
|
+
"required": true,
|
|
1249
|
+
"type": "string",
|
|
1250
|
+
"in": "path"
|
|
1251
|
+
}, {
|
|
1252
|
+
"name": "limit",
|
|
1253
|
+
"description": "Maximum number of results to return",
|
|
1254
|
+
"required": false,
|
|
1255
|
+
"type": "integer",
|
|
1256
|
+
"in": "query"
|
|
1257
|
+
}, {
|
|
1258
|
+
"name": "offset",
|
|
1259
|
+
"description": "Number of results to skip",
|
|
1260
|
+
"required": false,
|
|
1261
|
+
"type": "integer",
|
|
1262
|
+
"in": "query"
|
|
1263
|
+
}]
|
|
1264
|
+
},
|
|
1265
|
+
"get-agent-version": {
|
|
1266
|
+
serviceClass: "AgentVersions",
|
|
1267
|
+
operationId: "getAgentVersion",
|
|
1268
|
+
description: "Returns the exact configuration the agent held at a given version, so a generation can be traced back to the config that produced it.",
|
|
1269
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/agents",
|
|
1270
|
+
httpMethod: "get",
|
|
1271
|
+
pathParams: ["agent_id", "version"],
|
|
1272
|
+
queryParams: [],
|
|
1273
|
+
flags: [{
|
|
1274
|
+
"name": "agent_id",
|
|
1275
|
+
"description": "",
|
|
1276
|
+
"required": true,
|
|
1277
|
+
"type": "string",
|
|
1278
|
+
"in": "path"
|
|
1279
|
+
}, {
|
|
1280
|
+
"name": "version",
|
|
1281
|
+
"description": "",
|
|
1282
|
+
"required": true,
|
|
1283
|
+
"type": "integer",
|
|
1284
|
+
"in": "path"
|
|
1285
|
+
}]
|
|
1286
|
+
},
|
|
1287
|
+
"restore-agent-version": {
|
|
1288
|
+
serviceClass: "AgentVersions",
|
|
1289
|
+
operationId: "restoreAgentVersion",
|
|
1290
|
+
description: "Copies the named version's configuration onto the agent as a **new** version rather than rewinding the counter, so history stays append-only and the versions in between remain retrievable. Restoring the config the agent already holds is a no-op and creates no version. The restored config fully replaces the current one: a field the archived version did not set is cleared, not merged. Restore re-validates the config, so a tool, provider, or guardrail deleted since the snapshot was taken fails the request instead of writing a broken agent.",
|
|
1291
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/agents",
|
|
1292
|
+
httpMethod: "post",
|
|
1293
|
+
pathParams: ["agent_id", "version"],
|
|
1294
|
+
queryParams: [],
|
|
1295
|
+
flags: [{
|
|
1296
|
+
"name": "agent_id",
|
|
1297
|
+
"description": "",
|
|
1298
|
+
"required": true,
|
|
1299
|
+
"type": "string",
|
|
1300
|
+
"in": "path"
|
|
1301
|
+
}, {
|
|
1302
|
+
"name": "version",
|
|
1303
|
+
"description": "",
|
|
1304
|
+
"required": true,
|
|
1305
|
+
"type": "integer",
|
|
1306
|
+
"in": "path"
|
|
1307
|
+
}, {
|
|
1308
|
+
"name": "label",
|
|
1309
|
+
"description": "Tag for the version this restore creates. Defaults to `restored from v{version}`.",
|
|
1310
|
+
"required": false,
|
|
1311
|
+
"type": "string",
|
|
1312
|
+
"in": "body"
|
|
1313
|
+
}]
|
|
1314
|
+
},
|
|
1315
|
+
"set-agent-release": {
|
|
1316
|
+
serviceClass: "AgentVersions",
|
|
1317
|
+
operationId: "setAgentRelease",
|
|
1318
|
+
description: "Starts serving two archived versions side by side: `canary_percent` of traffic gets `canary_version`, the rest gets `stable_version`. Assignment is deterministic — it hashes the actor behind the request's session (falling back to the session itself), so one end user never flip-flops between configs mid-conversation. Requests with neither are split randomly. While a release is active the agent's live columns act as a **draft**: further edits archive new versions but do not disturb either side of the running split. End the rollout with `promote` or `abort`.",
|
|
1319
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/agents",
|
|
1320
|
+
httpMethod: "put",
|
|
1321
|
+
pathParams: ["agent_id"],
|
|
1322
|
+
queryParams: [],
|
|
1323
|
+
flags: [{
|
|
1324
|
+
"name": "agent_id",
|
|
1325
|
+
"description": "",
|
|
1326
|
+
"required": true,
|
|
1327
|
+
"type": "string",
|
|
1328
|
+
"in": "path"
|
|
1329
|
+
}, {
|
|
1330
|
+
"name": "stable_version",
|
|
1331
|
+
"description": "An existing version to serve as the baseline",
|
|
1332
|
+
"required": true,
|
|
1333
|
+
"type": "integer",
|
|
1334
|
+
"in": "body"
|
|
1335
|
+
}, {
|
|
1336
|
+
"name": "canary_version",
|
|
1337
|
+
"description": "An existing version to trial. Must differ from `stable_version`.",
|
|
1338
|
+
"required": true,
|
|
1339
|
+
"type": "integer",
|
|
1340
|
+
"in": "body"
|
|
1341
|
+
}, {
|
|
1342
|
+
"name": "canary_percent",
|
|
1343
|
+
"description": "Percentage of traffic to assign to `canary_version`",
|
|
1344
|
+
"required": true,
|
|
1345
|
+
"type": "integer",
|
|
1346
|
+
"in": "body"
|
|
1347
|
+
}]
|
|
1348
|
+
},
|
|
1349
|
+
"promote-agent-release": {
|
|
1350
|
+
serviceClass: "AgentVersions",
|
|
1351
|
+
operationId: "promoteAgentRelease",
|
|
1352
|
+
description: "Makes the canary version's config the agent's live config and clears the release. The canary is pinned by version, so an edit that landed mid-rollout is not promoted in its place — it stays an unreleased draft in the version history.",
|
|
1353
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/agents",
|
|
1354
|
+
httpMethod: "post",
|
|
1355
|
+
pathParams: ["agent_id"],
|
|
1356
|
+
queryParams: [],
|
|
1357
|
+
flags: [{
|
|
1358
|
+
"name": "agent_id",
|
|
1359
|
+
"description": "",
|
|
1360
|
+
"required": true,
|
|
1361
|
+
"type": "string",
|
|
1362
|
+
"in": "path"
|
|
1363
|
+
}]
|
|
1364
|
+
},
|
|
1365
|
+
"abort-agent-release": {
|
|
1366
|
+
serviceClass: "AgentVersions",
|
|
1367
|
+
operationId: "abortAgentRelease",
|
|
1368
|
+
description: "Restores the stable version's config as the agent's live config and clears the release, so all traffic returns to the configuration the rollout was measured against — not to whatever draft the live columns happened to hold.",
|
|
1369
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/agents",
|
|
1370
|
+
httpMethod: "post",
|
|
1371
|
+
pathParams: ["agent_id"],
|
|
1372
|
+
queryParams: [],
|
|
1373
|
+
flags: [{
|
|
1374
|
+
"name": "agent_id",
|
|
1375
|
+
"description": "",
|
|
1376
|
+
"required": true,
|
|
1377
|
+
"type": "string",
|
|
1378
|
+
"in": "path"
|
|
1379
|
+
}]
|
|
1380
|
+
},
|
|
1219
1381
|
"list-ai-providers": {
|
|
1220
1382
|
serviceClass: "AIProviders",
|
|
1221
1383
|
operationId: "listAiProviders",
|
|
@@ -2653,7 +2815,7 @@ var routes = {
|
|
|
2653
2815
|
"ingest-document": {
|
|
2654
2816
|
serviceClass: "Documents",
|
|
2655
2817
|
operationId: "ingestDocument",
|
|
2656
|
-
description: "Parses an already-uploaded file and creates one Document split into one or more embedded chunks. The source format is detected from the file's content type: PDFs are parsed page-by-page; `text/plain` and `text/markdown` files are read as a single source. How the source is chunked is controlled by `chunk_strategy`.",
|
|
2818
|
+
description: "Parses an already-uploaded file and creates one Document split into one or more embedded chunks. The source format is detected from the file's content type: PDFs are parsed page-by-page; `text/plain` and `text/markdown` files are read as a single source. How the source is chunked is controlled by `chunk_strategy`. A file can only back one Document — a second call with the same `file_id` returns `409 FILE_ALREADY_INGESTED`. To re-process an already-ingested file (e.g. with a different `chunk_strategy`), use `POST /documents/{document_id}/ingest`; to ingest the same source under a different path, upload a new copy of the file first.",
|
|
2657
2819
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/documents",
|
|
2658
2820
|
httpMethod: "post",
|
|
2659
2821
|
pathParams: [],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soat/cli",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.3",
|
|
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.18.
|
|
11
|
+
"@soat/sdk": "0.18.3"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"@ttoss/config": "^1.37.17",
|