@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.
@@ -873,6 +873,7 @@ var defaultOpLedger = ledgerOver((0, import_global_slot2.globalSlot)("ai-matrx.r
873
873
  var SYSTEM_CONTEXT_TYPE_ID = "__system__";
874
874
 
875
875
  // src/scopes/codec.ts
876
+ var import_uuid3 = require("@ai-matrx/kit/uuid");
876
877
  var str = (v, fallback = "") => typeof v === "string" ? v : fallback;
877
878
  var strOrNull = (v) => typeof v === "string" ? v : null;
878
879
  var num = (v, fallback = 0) => {
@@ -1088,7 +1089,6 @@ function systemContextFieldFromStore(row, index) {
1088
1089
  item_class: strOrNull(row.item_class)
1089
1090
  };
1090
1091
  }
1091
- var UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
1092
1092
  function referencesOf(row) {
1093
1093
  const v = row.value;
1094
1094
  const list = Array.isArray(v) ? v : v == null ? [] : [v];
@@ -1098,7 +1098,7 @@ function referencesOf(row) {
1098
1098
  const out = [];
1099
1099
  for (const el of list) {
1100
1100
  let ref = null;
1101
- if (typeof el === "string" && UUID.test(el)) ref = { id: el, type: toFile ? "file" : "scope" };
1101
+ if (typeof el === "string" && (0, import_uuid3.isUuidShape)(el)) ref = { id: el, type: toFile ? "file" : "scope" };
1102
1102
  else if (el && typeof el === "object" && typeof el.id === "string") {
1103
1103
  const token = String(el.token ?? "");
1104
1104
  const own = el.label;
@@ -1585,7 +1585,7 @@ function createScopeDoors(call) {
1585
1585
  }
1586
1586
 
1587
1587
  // src/choice.ts
1588
- var import_uuid3 = require("@ai-matrx/kit/uuid");
1588
+ var import_uuid4 = require("@ai-matrx/kit/uuid");
1589
1589
  var CHOICE_NUDGES = ["ask", "always_add", "never_add"];
1590
1590
  function asChoiceNudge(value) {
1591
1591
  return typeof value === "string" && CHOICE_NUDGES.includes(value) ? value : "ask";