@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.js CHANGED
@@ -4407,6 +4407,9 @@ function scopeChip(scope) {
4407
4407
  return scope.title ? `About: ${scope.title}` : "About: this record";
4408
4408
  }
4409
4409
 
4410
+ // src/table-kind.ts
4411
+ import { isLowercaseUuidShape } from "@ai-matrx/kit/uuid";
4412
+
4410
4413
  // src/table-kind-mapping.json
4411
4414
  var table_kind_mapping_default = {
4412
4415
  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.",
@@ -4485,14 +4488,13 @@ var table_kind_mapping_default = {
4485
4488
 
4486
4489
  // src/table-kind.ts
4487
4490
  var TABLE_KIND_PREFIX = "table:";
4488
- var UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
4489
4491
  var KIND_KEY = "__kind";
4490
4492
  var M = table_kind_mapping_default;
4491
4493
  function tableKindMapping() {
4492
4494
  return M;
4493
4495
  }
4494
4496
  function isTableKind(slug) {
4495
- return typeof slug === "string" && slug.startsWith(TABLE_KIND_PREFIX) && UUID.test(slug.slice(TABLE_KIND_PREFIX.length));
4497
+ return typeof slug === "string" && slug.startsWith(TABLE_KIND_PREFIX) && isLowercaseUuidShape(slug.slice(TABLE_KIND_PREFIX.length));
4496
4498
  }
4497
4499
  function tableKindSlug(tableId) {
4498
4500
  const slug = `${TABLE_KIND_PREFIX}${String(tableId).trim().toLowerCase()}`;