@ai-matrx/records 0.71.4 → 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,18 @@
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
+
8
+ ## 0.72.0
9
+
10
+ `footprintOf` counts every agent an install copies — the template's own plus `extraAgents` — and the
11
+ workflows it creates (`TemplateFootprint.workflows`, new). The card line now says "4 agents · 1 workflow"
12
+ where it said "1 agent" for a template that made four.
13
+ Consumer action: a gallery that lists footprint parts may show `workflows` (matrx-frontend
14
+ `features/make/gallery/catalogue.ts` does). Declared cards on live were recomputed 2026-10-05.
15
+
3
16
  ## 0.71.4
4
17
 
5
18
  Automatic changed-only republish (docs/metadata drift since the last tag — see
@@ -438,14 +438,16 @@ 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
- counted(spec.views?.length ?? 0, ["view", "views"]),
443
- counted(spec.forms?.length ?? 0, ["form", "forms"]),
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
  ];
447
- const agents = spec.agent ? 1 : 0;
448
- if (agents) parts.push("1 agent");
447
+ const agents = (spec.agent ? 1 : 0) + (spec.extraAgents?.length ?? 0);
448
+ if (agents) parts.push(counted(agents, ["agent", "agents"]));
449
+ const workflows = spec.workflows?.length ?? 0;
450
+ if (workflows) parts.push(counted(workflows, ["workflow", "workflows"]));
449
451
  return {
450
452
  tables,
451
453
  sharedBlocks: spec.sharedBlocks?.length ?? 0,
@@ -454,6 +456,7 @@ function footprintOf(spec) {
454
456
  dimensions,
455
457
  extras,
456
458
  agents,
459
+ workflows,
457
460
  opensOutsideSignIn: (extras.portal ?? 0) > 0,
458
461
  line: parts.join(" \xB7 ")
459
462
  };