@ai-matrx/records 0.77.1 → 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.
Files changed (46) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/app-table/index.cjs +7 -6
  3. package/dist/app-table/index.cjs.map +1 -1
  4. package/dist/app-table/index.d.cts +3 -3
  5. package/dist/app-table/index.d.ts +3 -3
  6. package/dist/app-table/index.js +7 -6
  7. package/dist/app-table/index.js.map +1 -1
  8. package/dist/{client-BcGGEpNi.d.cts → client-DZ3UcU4_.d.cts} +1 -1
  9. package/dist/{client-BbzLb-sB.d.ts → client-ZIxyAOdh.d.ts} +1 -1
  10. package/dist/core/index.cjs +12 -8
  11. package/dist/core/index.cjs.map +1 -1
  12. package/dist/core/index.d.cts +4 -4
  13. package/dist/core/index.d.ts +4 -4
  14. package/dist/core/index.js +12 -8
  15. package/dist/core/index.js.map +1 -1
  16. package/dist/data/index.cjs +4 -3
  17. package/dist/data/index.cjs.map +1 -1
  18. package/dist/data/index.d.cts +2 -2
  19. package/dist/data/index.d.ts +2 -2
  20. package/dist/data/index.js +4 -3
  21. package/dist/data/index.js.map +1 -1
  22. package/dist/{declareTable-COEPJpke.d.cts → declareTable-BYZdFrt5.d.cts} +2 -2
  23. package/dist/{declareTable-Dxq0Aega.d.ts → declareTable-DGSJMqGx.d.ts} +2 -2
  24. package/dist/index.cjs +8 -4
  25. package/dist/index.cjs.map +1 -1
  26. package/dist/index.d.cts +2 -2
  27. package/dist/index.d.ts +2 -2
  28. package/dist/index.js +8 -4
  29. package/dist/index.js.map +1 -1
  30. package/dist/memory/index.cjs +4 -1
  31. package/dist/memory/index.cjs.map +1 -1
  32. package/dist/memory/index.js +4 -1
  33. package/dist/memory/index.js.map +1 -1
  34. package/dist/react/index.cjs +13 -9
  35. package/dist/react/index.cjs.map +1 -1
  36. package/dist/react/index.d.cts +6 -1
  37. package/dist/react/index.d.ts +6 -1
  38. package/dist/react/index.js +13 -9
  39. package/dist/react/index.js.map +1 -1
  40. package/dist/{table-kind-C5jsmotR.d.ts → table-kind-Da21ZLdJ.d.ts} +6 -1
  41. package/dist/{table-kind-DrVhYZbX.d.cts → table-kind-HAQ6WNxZ.d.cts} +6 -1
  42. package/dist/templates/index.cjs +4 -2
  43. package/dist/templates/index.cjs.map +1 -1
  44. package/dist/templates/index.js +4 -2
  45. package/dist/templates/index.js.map +1 -1
  46. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog — @ai-matrx/records
2
2
 
3
+ ## 0.77.3
4
+
5
+ UUID checks in app-table graduation, landing outcomes and template validation use `@ai-matrx/kit/uuid` `isUuidShape`; table-kind slugs use `isLowercaseUuidShape` (the same lower-case contract the local regex had). Scripts' console lines format sizes, durations and cost through kit. Package-twins collapse.
6
+
7
+ Consumer action: none.
8
+
9
+ ## 0.77.2
10
+
11
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
12
+ `git diff npm/records/v0.77.1..npm/records/v0.77.2 -- apps/shared/records`).
13
+ No source changes intended and no consumer action required.
14
+
3
15
  ## 0.77.1
4
16
 
5
17
  - (0.77.0 never reached npm: its publish stopped on `table-kind-round-trip`'s golden check — the Python twin's golden still wrote the Rate Card formula literal as `{value: 25}` after cc7dc30f6a made the captured facts `{const: 25}`; the twin now says `const` too.)
@@ -56,6 +56,7 @@ __export(app_table_exports, {
56
56
  module.exports = __toCommonJS(app_table_exports);
57
57
 
58
58
  // src/app-table/graduate.ts
59
+ var import_uuid = require("@ai-matrx/kit/uuid");
59
60
  var TO_CUSTOM_FIELDS = "custom_fields";
60
61
  var TO_ASSOCIATION = "association";
61
62
  var GRADUATION_BASE_COLUMNS = [
@@ -115,10 +116,9 @@ function graduationProblems(fields, graduation) {
115
116
  }
116
117
  return problems;
117
118
  }
118
- var UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
119
119
  function idsOf(value) {
120
120
  const list = Array.isArray(value) ? value : value === null || value === void 0 ? [] : [value];
121
- return list.filter((v) => typeof v === "string" && UUID.test(v));
121
+ return list.filter((v) => typeof v === "string" && (0, import_uuid.isUuidShape)(v));
122
122
  }
123
123
  function graduatedRow(fields, graduation, snapshot) {
124
124
  const row = {
@@ -649,7 +649,7 @@ function mapPgError(error, where) {
649
649
  }
650
650
 
651
651
  // src/relation.ts
652
- var import_uuid = require("@ai-matrx/kit/uuid");
652
+ var import_uuid2 = require("@ai-matrx/kit/uuid");
653
653
  var REVERSE_LINKS_RECORDS_PER_CALL = 200;
654
654
  function sourceArchivedOf(value) {
655
655
  if (!value || typeof value !== "object" || Array.isArray(value)) return null;
@@ -692,7 +692,7 @@ function mintOpId() {
692
692
  }
693
693
 
694
694
  // src/choice.ts
695
- var import_uuid2 = require("@ai-matrx/kit/uuid");
695
+ var import_uuid3 = require("@ai-matrx/kit/uuid");
696
696
  var CHOICE_NUDGES = ["ask", "always_add", "never_add"];
697
697
  function asChoiceNudge(value) {
698
698
  return typeof value === "string" && CHOICE_NUDGES.includes(value) ? value : "ask";
@@ -847,8 +847,9 @@ function parseTableDuplicated(raw) {
847
847
  var ORDINAL = {
848
848
  viewer: 1,
849
849
  commenter: 2,
850
- editor: 3,
851
- admin: 4
850
+ edit_content: 3,
851
+ editor: 4,
852
+ admin: 5
852
853
  };
853
854
  function asPermissionLevel(word) {
854
855
  return typeof word === "string" && word in ORDINAL ? word : null;