@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog — @ai-matrx/records
2
2
 
3
+ ## 0.99.15
4
+
5
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
6
+ `git diff npm/records/v0.99.14..npm/records/v0.99.15 -- apps/shared/records`).
7
+ No source changes intended and no consumer action required.
8
+
3
9
  ## 0.99.14
4
10
 
5
11
  Automatic changed-only republish (docs/metadata drift since the last tag — see
@@ -5677,6 +5677,7 @@ function onTableStructureChanged(listener) {
5677
5677
  var SYSTEM_CONTEXT_TYPE_ID = "__system__";
5678
5678
 
5679
5679
  // src/scopes/codec.ts
5680
+ var import_uuid6 = require("@ai-matrx/kit/uuid");
5680
5681
  var str = (v, fallback = "") => typeof v === "string" ? v : fallback;
5681
5682
  var strOrNull = (v) => typeof v === "string" ? v : null;
5682
5683
  var num = (v, fallback = 0) => {
@@ -5892,7 +5893,6 @@ function systemContextFieldFromStore(row, index) {
5892
5893
  item_class: strOrNull(row.item_class)
5893
5894
  };
5894
5895
  }
5895
- var UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
5896
5896
  function referencesOf(row) {
5897
5897
  const v = row.value;
5898
5898
  const list = Array.isArray(v) ? v : v == null ? [] : [v];
@@ -5902,7 +5902,7 @@ function referencesOf(row) {
5902
5902
  const out = [];
5903
5903
  for (const el of list) {
5904
5904
  let ref = null;
5905
- if (typeof el === "string" && UUID.test(el)) ref = { id: el, type: toFile ? "file" : "scope" };
5905
+ if (typeof el === "string" && (0, import_uuid6.isUuidShape)(el)) ref = { id: el, type: toFile ? "file" : "scope" };
5906
5906
  else if (el && typeof el === "object" && typeof el.id === "string") {
5907
5907
  const token = String(el.token ?? "");
5908
5908
  const own = el.label;
@@ -11182,7 +11182,7 @@ async function tableKindFacts(dataSource, table) {
11182
11182
  }
11183
11183
 
11184
11184
  // src/core/landingOutcomes.ts
11185
- var import_uuid6 = require("@ai-matrx/kit/uuid");
11185
+ var import_uuid7 = require("@ai-matrx/kit/uuid");
11186
11186
  var PRODUCED_BY_LABEL = "produced_by";
11187
11187
  var LANDING_SOURCE_TYPE = "message";
11188
11188
  var LANDING_TARGET_TYPES = {
@@ -11211,7 +11211,7 @@ function documentTitle(document, metadata) {
11211
11211
  return text(metadata.title) ?? text(doc.title) ?? text(doc.name) ?? null;
11212
11212
  }
11213
11213
  async function landingOutcomesFor(dataSource, messageId, options = {}) {
11214
- if (!(0, import_uuid6.isUuidShape)(messageId)) return ok({ messageId, landings: [] });
11214
+ if (!(0, import_uuid7.isUuidShape)(messageId)) return ok({ messageId, landings: [] });
11215
11215
  const source = asRecordsDataSource(dataSource);
11216
11216
  const edges = await rows(
11217
11217
  source.schema("platform").from("associations").select("target_type,target_id,organization_id,metadata,created_at").eq("source_type", LANDING_SOURCE_TYPE).eq("source_id", messageId).eq("label", PRODUCED_BY_LABEL).eq("target_type", LANDING_TARGET_TYPES.record).is("deleted_at", null),
@@ -11353,7 +11353,7 @@ function storeDoors(client) {
11353
11353
  }
11354
11354
 
11355
11355
  // src/core/validation.ts
11356
- var import_uuid7 = require("@ai-matrx/kit/uuid");
11356
+ var import_uuid8 = require("@ai-matrx/kit/uuid");
11357
11357
  var DEFAULT_VALUE_MAX_BYTES = 1e5;
11358
11358
  var DEFAULT_DOCUMENT_MAX_BYTES = 1048576;
11359
11359
  var jsonType = (value) => {
@@ -11515,7 +11515,7 @@ function predictValueRefusals(fields, values, recordType) {
11515
11515
  } else if (field.type === "relation") {
11516
11516
  if (typeof item2 !== "string") {
11517
11517
  found.push({ ...base, message: `${label} points at a record, and it was given a ${jsonType(item2)}`, hint: "FLD-1: relation." });
11518
- } else if (!(0, import_uuid7.isUuidShape)(item2)) {
11518
+ } else if (!(0, import_uuid8.isUuidShape)(item2)) {
11519
11519
  found.push({
11520
11520
  ...base,
11521
11521
  message: `${label} points at something that is not there`,