@sema-agent/core-stores-sql 7.57.0 → 7.59.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/README.md +2 -1
- package/dist/options.js +2 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
Core's storage seats (`EngineStorageBackend`: sessions, checkpoints, tool results, session policy, workflow journal,
|
|
4
4
|
usage windows, background agents, mailbox, roster, file history, and the backend-level managed-retention executor)
|
|
5
5
|
over one SQL database — PostgreSQL, or the MySQL protocol family (MySQL / InnoDB, MariaDB, TiDB) — to be built by
|
|
6
|
-
neutral factories over a pool you hand in.
|
|
6
|
+
neutral factories over a pool you hand in. Core itself ships only in-memory and file-backed stores, so a database-backed
|
|
7
|
+
backend is built behind this face rather than inside core. Ships its own types; ES modules only.
|
|
7
8
|
|
|
8
9
|
## Read this first: this release carries no SQL stores
|
|
9
10
|
|
package/dist/options.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { readRetentionDeclaration } from "@sema-agent/core";
|
|
2
2
|
import { readDialect, readPool, readRecord, refuseUnknownKeys } from "./driver.js";
|
|
3
3
|
import { refusal } from "./refusal.js";
|
|
4
4
|
const OPTION_KEYS = Object.freeze(["dialect", "pool", "retention", "retentionCascade", "onFailOpen"]);
|
|
@@ -11,12 +11,11 @@ function readRetention(entry, value) {
|
|
|
11
11
|
if (value === undefined)
|
|
12
12
|
throw refusal(entry, `retention is required — "managed" or "none", the declaration core reads`);
|
|
13
13
|
try {
|
|
14
|
-
|
|
14
|
+
return readRetentionDeclaration("options.retention", value);
|
|
15
15
|
}
|
|
16
16
|
catch (error) {
|
|
17
17
|
throw refusal(entry, `retention: ${error instanceof Error ? error.message : String(error)}`, error);
|
|
18
18
|
}
|
|
19
|
-
return value;
|
|
20
19
|
}
|
|
21
20
|
export function readBackendOptions(entry, value) {
|
|
22
21
|
const record = readRecord(entry, "options", value);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sema-agent/core-stores-sql",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.59.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Core's storage seats over PostgreSQL and the MySQL protocol family (MySQL, MariaDB, TiDB): neutral factories over a caller's pool. This version carries no SQL stores yet: the public face only.",
|
|
6
6
|
"type": "module",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"node": ">=20.18.1"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@sema-agent/core": "7.
|
|
29
|
+
"@sema-agent/core": "7.59.0"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "tsc -p tsconfig.json && tsc -p tsconfig.json --emitDeclarationOnly --removeComments false"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "66b1845c9644930fa7f43fd7c388316c3b060ee1"
|
|
38
38
|
}
|