@ai-matrx/records 0.72.0 → 0.72.1
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,10 @@
|
|
|
1
1
|
# Changelog — @ai-matrx/records
|
|
2
2
|
|
|
3
|
+
## 0.72.1
|
|
4
|
+
|
|
5
|
+
`footprintOf` leaves out the parts a template does not make: a template saved from one table reads
|
|
6
|
+
"1 table · 3 agents", never "1 table · 0 views · 0 forms". No consumer action (live cards recomputed).
|
|
7
|
+
|
|
3
8
|
## 0.72.0
|
|
4
9
|
|
|
5
10
|
`footprintOf` counts every agent an install copies — the template's own plus `extraAgents` — and the
|
package/dist/templates/index.cjs
CHANGED
|
@@ -438,9 +438,9 @@ function footprintOf(spec) {
|
|
|
438
438
|
const dimensions = spec.dimensions?.length ?? 0;
|
|
439
439
|
const tables = (spec.tables?.length ?? 0) + (spec.sharedBlocks?.length ?? 0);
|
|
440
440
|
const parts = [
|
|
441
|
-
counted(tables, ["table", "tables"]),
|
|
442
|
-
|
|
443
|
-
|
|
441
|
+
...tables ? [counted(tables, ["table", "tables"])] : [],
|
|
442
|
+
...spec.views?.length ? [counted(spec.views.length, ["view", "views"])] : [],
|
|
443
|
+
...spec.forms?.length ? [counted(spec.forms.length, ["form", "forms"])] : [],
|
|
444
444
|
...dimensions ? [counted(dimensions, ["dimension set", "dimension sets"])] : [],
|
|
445
445
|
...TEMPLATE_EXTRA_KINDS.filter((k) => extras[k]).map((k) => counted(extras[k] ?? 0, EXTRA_WORDS[k]))
|
|
446
446
|
];
|