@ai-matrx/records 0.99.14 → 0.99.15
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/CHANGELOG.md +6 -0
- package/dist/core/index.cjs +6 -6
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +6 -6
- package/dist/core/index.js.map +1 -1
- package/dist/data/index.cjs +6 -6
- package/dist/data/index.cjs.map +1 -1
- package/dist/data/index.js +6 -6
- package/dist/data/index.js.map +1 -1
- package/dist/react/index.cjs +20 -20
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +18 -18
- package/dist/react/index.js.map +1 -1
- package/dist/scopes/index.cjs +2 -2
- package/dist/scopes/index.cjs.map +1 -1
- package/dist/scopes/index.js +2 -2
- package/dist/scopes/index.js.map +1 -1
- package/dist/setup/index.cjs +8 -8
- package/dist/setup/index.cjs.map +1 -1
- package/dist/setup/index.js +8 -8
- package/dist/setup/index.js.map +1 -1
- package/dist/typed-table/index.cjs +3 -3
- package/dist/typed-table/index.cjs.map +1 -1
- package/dist/typed-table/index.js +3 -3
- package/dist/typed-table/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -810,6 +810,7 @@ var defaultOpLedger = ledgerOver(globalSlot2("ai-matrx.records.op-ledger", () =>
|
|
|
810
810
|
var SYSTEM_CONTEXT_TYPE_ID = "__system__";
|
|
811
811
|
|
|
812
812
|
// src/scopes/codec.ts
|
|
813
|
+
import { isUuidShape as isUuidShape3 } from "@ai-matrx/kit/uuid";
|
|
813
814
|
var str = (v, fallback = "") => typeof v === "string" ? v : fallback;
|
|
814
815
|
var strOrNull = (v) => typeof v === "string" ? v : null;
|
|
815
816
|
var num = (v, fallback = 0) => {
|
|
@@ -1025,7 +1026,6 @@ function systemContextFieldFromStore(row, index) {
|
|
|
1025
1026
|
item_class: strOrNull(row.item_class)
|
|
1026
1027
|
};
|
|
1027
1028
|
}
|
|
1028
|
-
var UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
1029
1029
|
function referencesOf(row) {
|
|
1030
1030
|
const v = row.value;
|
|
1031
1031
|
const list = Array.isArray(v) ? v : v == null ? [] : [v];
|
|
@@ -1035,7 +1035,7 @@ function referencesOf(row) {
|
|
|
1035
1035
|
const out = [];
|
|
1036
1036
|
for (const el of list) {
|
|
1037
1037
|
let ref = null;
|
|
1038
|
-
if (typeof el === "string" &&
|
|
1038
|
+
if (typeof el === "string" && isUuidShape3(el)) ref = { id: el, type: toFile ? "file" : "scope" };
|
|
1039
1039
|
else if (el && typeof el === "object" && typeof el.id === "string") {
|
|
1040
1040
|
const token = String(el.token ?? "");
|
|
1041
1041
|
const own = el.label;
|
|
@@ -1522,7 +1522,7 @@ function createScopeDoors(call) {
|
|
|
1522
1522
|
}
|
|
1523
1523
|
|
|
1524
1524
|
// src/choice.ts
|
|
1525
|
-
import { isUuidShape as
|
|
1525
|
+
import { isUuidShape as isUuidShape4 } from "@ai-matrx/kit/uuid";
|
|
1526
1526
|
var CHOICE_NUDGES = ["ask", "always_add", "never_add"];
|
|
1527
1527
|
function asChoiceNudge(value) {
|
|
1528
1528
|
return typeof value === "string" && CHOICE_NUDGES.includes(value) ? value : "ask";
|