@soat/cli 0.50.0 → 0.51.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 +113 -3
- 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.
|
|
16
|
+
var version = "0.51.0";
|
|
17
17
|
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region src/cli-wrappers/wrappers/formations.ts
|
|
@@ -5083,7 +5083,7 @@ var routes = {
|
|
|
5083
5083
|
"create-memory": {
|
|
5084
5084
|
serviceClass: "Memories",
|
|
5085
5085
|
operationId: "createMemory",
|
|
5086
|
-
description: "
|
|
5086
|
+
description: "Writes a fact to the specified memory store through the standard write algorithm: the content is embedded (or matched to text the store already holds), compared against the most similar currently-valid memory, and resolved to exactly one of three outcomes — `skipped` at or above `duplicate_threshold`, `superseded` at or above `supersede_threshold`, `created` below it. Every call records one assertion, whatever the outcome.",
|
|
5087
5087
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/memories",
|
|
5088
5088
|
httpMethod: "post",
|
|
5089
5089
|
pathParams: [],
|
|
@@ -5126,7 +5126,13 @@ var routes = {
|
|
|
5126
5126
|
"in": "body"
|
|
5127
5127
|
}, {
|
|
5128
5128
|
"name": "duplicate_threshold",
|
|
5129
|
-
"description": "Cosine similarity
|
|
5129
|
+
"description": "Cosine similarity at or above which the incoming content is a duplicate of an existing memory and the write is skipped. Overrides the store's `duplicate_threshold` for this call; falls back to the store's value, then to `0.95`.",
|
|
5130
|
+
"required": false,
|
|
5131
|
+
"type": "number",
|
|
5132
|
+
"in": "body"
|
|
5133
|
+
}, {
|
|
5134
|
+
"name": "supersede_threshold",
|
|
5135
|
+
"description": "Cosine similarity at or above which the incoming content restates a fact that has changed: the top match is invalidated and a new memory replaces it. Overrides the store's `supersede_threshold` for this call; falls back to the store's value, then to `0.90`. The effective pair must satisfy `supersede_threshold < duplicate_threshold`, and the check runs against the effective pair — so overriding only one value cannot invert it against the store's other one.",
|
|
5130
5136
|
"required": false,
|
|
5131
5137
|
"type": "number",
|
|
5132
5138
|
"in": "body"
|
|
@@ -5198,6 +5204,34 @@ var routes = {
|
|
|
5198
5204
|
"in": "path"
|
|
5199
5205
|
}]
|
|
5200
5206
|
},
|
|
5207
|
+
"list-memory-assertions": {
|
|
5208
|
+
serviceClass: "Memories",
|
|
5209
|
+
operationId: "listMemoryAssertions",
|
|
5210
|
+
description: "Returns every write that resolved into this memory, oldest first: the one that created it, the duplicates it absorbed, and the assertion that superseded another memory in its favour. A superseded memory keeps its own assertions, so the chain can be walked in both directions.",
|
|
5211
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/memories",
|
|
5212
|
+
httpMethod: "get",
|
|
5213
|
+
pathParams: ["memory_id"],
|
|
5214
|
+
queryParams: ["limit", "offset"],
|
|
5215
|
+
flags: [{
|
|
5216
|
+
"name": "memory_id",
|
|
5217
|
+
"description": "",
|
|
5218
|
+
"required": true,
|
|
5219
|
+
"type": "string",
|
|
5220
|
+
"in": "path"
|
|
5221
|
+
}, {
|
|
5222
|
+
"name": "limit",
|
|
5223
|
+
"description": "Maximum number of results to return",
|
|
5224
|
+
"required": false,
|
|
5225
|
+
"type": "integer",
|
|
5226
|
+
"in": "query"
|
|
5227
|
+
}, {
|
|
5228
|
+
"name": "offset",
|
|
5229
|
+
"description": "Number of results to skip",
|
|
5230
|
+
"required": false,
|
|
5231
|
+
"type": "integer",
|
|
5232
|
+
"in": "query"
|
|
5233
|
+
}]
|
|
5234
|
+
},
|
|
5201
5235
|
"get-memory-tags": {
|
|
5202
5236
|
serviceClass: "Memories",
|
|
5203
5237
|
operationId: "getMemoryTags",
|
|
@@ -5312,6 +5346,18 @@ var routes = {
|
|
|
5312
5346
|
"required": false,
|
|
5313
5347
|
"type": "object",
|
|
5314
5348
|
"in": "body"
|
|
5349
|
+
}, {
|
|
5350
|
+
"name": "duplicate_threshold",
|
|
5351
|
+
"description": "The store's dedup policy: cosine similarity at or above which an incoming fact is already known and the write is skipped. `null` (the default) uses the algorithm constant `0.95`. A single `POST /api/v1/memories` call may override it; the agent tool and the post-turn rule never can.",
|
|
5352
|
+
"required": false,
|
|
5353
|
+
"type": "number",
|
|
5354
|
+
"in": "body"
|
|
5355
|
+
}, {
|
|
5356
|
+
"name": "supersede_threshold",
|
|
5357
|
+
"description": "Cosine similarity at or above which an incoming fact restates a known one that has changed: the matched memory is invalidated and replaced. `null` (the default) uses the algorithm constant `0.90`. Must be lower than the effective `duplicate_threshold`, or the write is rejected with `400 VALIDATION_FAILED` — equal makes `superseded` unreachable and inverted swallows `skipped`.",
|
|
5358
|
+
"required": false,
|
|
5359
|
+
"type": "number",
|
|
5360
|
+
"in": "body"
|
|
5315
5361
|
}]
|
|
5316
5362
|
},
|
|
5317
5363
|
"get-memory-store": {
|
|
@@ -5362,6 +5408,18 @@ var routes = {
|
|
|
5362
5408
|
"required": false,
|
|
5363
5409
|
"type": "object",
|
|
5364
5410
|
"in": "body"
|
|
5411
|
+
}, {
|
|
5412
|
+
"name": "duplicate_threshold",
|
|
5413
|
+
"description": "The store's dedup policy: cosine similarity at or above which an incoming fact is already known and the write is skipped. `null` (the default) uses the algorithm constant `0.95`. A single `POST /api/v1/memories` call may override it; the agent tool and the post-turn rule never can.",
|
|
5414
|
+
"required": false,
|
|
5415
|
+
"type": "number",
|
|
5416
|
+
"in": "body"
|
|
5417
|
+
}, {
|
|
5418
|
+
"name": "supersede_threshold",
|
|
5419
|
+
"description": "Cosine similarity at or above which an incoming fact restates a known one that has changed: the matched memory is invalidated and replaced. `null` (the default) uses the algorithm constant `0.90`. Must be lower than the effective `duplicate_threshold`, or the write is rejected with `400 VALIDATION_FAILED` — equal makes `superseded` unreachable and inverted swallows `skipped`.",
|
|
5420
|
+
"required": false,
|
|
5421
|
+
"type": "number",
|
|
5422
|
+
"in": "body"
|
|
5365
5423
|
}]
|
|
5366
5424
|
},
|
|
5367
5425
|
"delete-memory-store": {
|
|
@@ -5380,6 +5438,58 @@ var routes = {
|
|
|
5380
5438
|
"in": "path"
|
|
5381
5439
|
}]
|
|
5382
5440
|
},
|
|
5441
|
+
"list-memory-store-assertions": {
|
|
5442
|
+
serviceClass: "MemoryStores",
|
|
5443
|
+
operationId: "listMemoryStoreAssertions",
|
|
5444
|
+
description: "Returns the store's write ledger, newest first: one row per write attempt, skips included. This is how \"which write path is filling this store?\" is asked — a question no column on a memory row could answer, because a skipped write produced no memory at all.",
|
|
5445
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/memory-stores",
|
|
5446
|
+
httpMethod: "get",
|
|
5447
|
+
pathParams: ["memory_store_id"],
|
|
5448
|
+
queryParams: ["mechanism", "outcome", "generation_id", "since", "limit", "offset"],
|
|
5449
|
+
flags: [{
|
|
5450
|
+
"name": "memory_store_id",
|
|
5451
|
+
"description": "",
|
|
5452
|
+
"required": true,
|
|
5453
|
+
"type": "string",
|
|
5454
|
+
"in": "path"
|
|
5455
|
+
}, {
|
|
5456
|
+
"name": "mechanism",
|
|
5457
|
+
"description": "Only assertions that came through this door.",
|
|
5458
|
+
"required": false,
|
|
5459
|
+
"type": "string",
|
|
5460
|
+
"in": "query"
|
|
5461
|
+
}, {
|
|
5462
|
+
"name": "outcome",
|
|
5463
|
+
"description": "Only assertions that resolved this way.",
|
|
5464
|
+
"required": false,
|
|
5465
|
+
"type": "string",
|
|
5466
|
+
"in": "query"
|
|
5467
|
+
}, {
|
|
5468
|
+
"name": "generation_id",
|
|
5469
|
+
"description": "Only assertions made during this generation. A generation that does not exist matches nothing rather than widening to the whole store.",
|
|
5470
|
+
"required": false,
|
|
5471
|
+
"type": "string",
|
|
5472
|
+
"in": "query"
|
|
5473
|
+
}, {
|
|
5474
|
+
"name": "since",
|
|
5475
|
+
"description": "Only assertions recorded at or after this instant.",
|
|
5476
|
+
"required": false,
|
|
5477
|
+
"type": "string",
|
|
5478
|
+
"in": "query"
|
|
5479
|
+
}, {
|
|
5480
|
+
"name": "limit",
|
|
5481
|
+
"description": "Maximum number of results to return",
|
|
5482
|
+
"required": false,
|
|
5483
|
+
"type": "integer",
|
|
5484
|
+
"in": "query"
|
|
5485
|
+
}, {
|
|
5486
|
+
"name": "offset",
|
|
5487
|
+
"description": "Number of results to skip",
|
|
5488
|
+
"required": false,
|
|
5489
|
+
"type": "integer",
|
|
5490
|
+
"in": "query"
|
|
5491
|
+
}]
|
|
5492
|
+
},
|
|
5383
5493
|
"get-memory-store-tags": {
|
|
5384
5494
|
serviceClass: "MemoryStores",
|
|
5385
5495
|
operationId: "getMemoryStoreTags",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soat/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.51.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.6",
|
|
24
24
|
"@inquirer/password": "^5.2.2",
|
|
25
|
-
"@soat/sdk": "0.
|
|
25
|
+
"@soat/sdk": "0.51.0",
|
|
26
26
|
"@ttoss/logger": "^0.8.20",
|
|
27
27
|
"commander": "^15.0.0",
|
|
28
28
|
"js-yaml": "^5.4.2"
|