@sema-agent/core-stores-sql 7.57.0 → 7.58.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.
Files changed (2) hide show
  1. package/dist/options.js +2 -3
  2. package/package.json +3 -3
package/dist/options.js CHANGED
@@ -1,4 +1,4 @@
1
- import { assertRetentionCapability } from "@sema-agent/core";
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
- assertRetentionCapability({ policy: undefined, locked: false, stores: [{ name: "options.retention", store: { retention: value } }] });
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.57.0",
3
+ "version": "7.58.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.57.0"
29
+ "@sema-agent/core": "7.58.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": "84be0e09dcdd8e157f88f083241ceafedc0f33aa"
37
+ "gitHead": "05f1a14710d078da0b338fe8712e16f8d790f6bd"
38
38
  }