@sema-agent/core-stores-sql 7.66.1 → 7.67.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/LICENSE CHANGED
@@ -5,7 +5,8 @@ Parameters
5
5
  Licensor: clay (github.com/clayboby)
6
6
  Licensed Work: @sema-agent/core (sema-core) and the satellite packages
7
7
  published from this repository (currently
8
- @sema-agent/mods-kernel, @sema-agent/primitives and @sema-agent/core-stores-sql)
8
+ @sema-agent/mods-kernel, @sema-agent/primitives,
9
+ @sema-agent/core-stores-sql and @sema-agent/wiki-gate)
9
10
  (formerly published as @sema-ai/core)
10
11
  The Licensed Work is (c) 2026 clay.
11
12
  Additional Use Grant: You may make production use of the Licensed Work for
package/dist/driver.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { assertCoreVersion } from "./version-check.js";
2
2
  import { refusal } from "./refusal.js";
3
+ import { callerText } from "@sema-agent/core";
3
4
  import { readFailOpenSink } from "./fail-open.js";
4
5
  const SQL_DIALECTS = Object.freeze(["pg", "mysql"]);
5
6
  const MADE_DRIVERS = new WeakSet();
@@ -16,7 +17,7 @@ const isObject = (value) => typeof value === "object" && value !== null && !Arra
16
17
  export function readDialect(entry, value) {
17
18
  if (typeof value === "string" && SQL_DIALECTS.includes(value))
18
19
  return value;
19
- throw refusal(entry, `dialect must be one of ${SQL_DIALECTS.map((d) => JSON.stringify(d)).join(" | ")} (got ${JSON.stringify(value)}); TiDB, MySQL and MariaDB are all "mysql"`);
20
+ throw refusal(entry, `dialect must be one of ${SQL_DIALECTS.map((d) => JSON.stringify(d)).join(" | ")} (got ${callerText(value)}); TiDB, MySQL and MariaDB are all "mysql"`);
20
21
  }
21
22
  const POOL_MEMBERS = Object.freeze({ pg: Object.freeze(["query", "connect"]), mysql: Object.freeze(["query", "getConnection"]) });
22
23
  export function readPool(entry, dialect, value) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sema-agent/core-stores-sql",
3
- "version": "7.66.1",
3
+ "version": "7.67.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.66.1"
29
+ "@sema-agent/core": "7.67.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": "705805c625d29655f7fb8ba35c32345b753eeea2"
37
+ "gitHead": "d59f845b5daf6d41297dd0433304787c2fa2eb49"
38
38
  }