@ai-matrx/records 0.77.2 → 0.77.3

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/dist/index.cjs CHANGED
@@ -4638,6 +4638,9 @@ function scopeChip(scope) {
4638
4638
  return scope.title ? `About: ${scope.title}` : "About: this record";
4639
4639
  }
4640
4640
 
4641
+ // src/table-kind.ts
4642
+ var import_uuid5 = require("@ai-matrx/kit/uuid");
4643
+
4641
4644
  // src/table-kind-mapping.json
4642
4645
  var table_kind_mapping_default = {
4643
4646
  about: "THE ONE MAPPING from a store Field to a kind's three schemas (KINDS-GLUE wave 3 \xA72). Hand-written here; aidream copies it verbatim to packages/matrx-graph/matrx_graph/table_kind_mapping.json (scripts/generate_table_kind_mapping.py --check). Both languages derive from this file only: @ai-matrx/records src/table-kind.ts and matrx_graph.table_kinds. Keys of `kinds` are the store's field kinds (custom.field_kinds() plus the formula `system` kinds custom.field_kind_of answers). Stored mode only: `column_source_default` is custom.table_column_source's answer when the facts carry none (silence means the doctrine: Field rows are the columns); `platform_keys` mirrors custom.record_platform_keys() with each key's shape (parent_id: custom.containment_parent's uuid cast; icon: the record's own @ai-matrx/icons name, a string or null); `stored_patterns` mirror custom.validate_values' relation id regex and, for dates, refuse a string the timestamptz cast can never read (no digits, not a special word) while never refusing one it can.",
@@ -4716,14 +4719,13 @@ var table_kind_mapping_default = {
4716
4719
 
4717
4720
  // src/table-kind.ts
4718
4721
  var TABLE_KIND_PREFIX = "table:";
4719
- var UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
4720
4722
  var KIND_KEY = "__kind";
4721
4723
  var M = table_kind_mapping_default;
4722
4724
  function tableKindMapping() {
4723
4725
  return M;
4724
4726
  }
4725
4727
  function isTableKind(slug) {
4726
- return typeof slug === "string" && slug.startsWith(TABLE_KIND_PREFIX) && UUID.test(slug.slice(TABLE_KIND_PREFIX.length));
4728
+ return typeof slug === "string" && slug.startsWith(TABLE_KIND_PREFIX) && (0, import_uuid5.isLowercaseUuidShape)(slug.slice(TABLE_KIND_PREFIX.length));
4727
4729
  }
4728
4730
  function tableKindSlug(tableId) {
4729
4731
  const slug = `${TABLE_KIND_PREFIX}${String(tableId).trim().toLowerCase()}`;