spec-controller 0.1.147 → 0.1.149

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/cli.js CHANGED
@@ -27621,7 +27621,7 @@ function accountedForOf({ candidates, runners, reconciler, excluded, plumbing })
27621
27621
  }
27622
27622
  function totalOf(rows) {
27623
27623
  const summed = (count) => rows.reduce((sum, row) => sum + row[count], 0);
27624
- const counts = {
27624
+ return {
27625
27625
  stepsRead: summed("stepsRead"),
27626
27626
  candidates: summed("candidates"),
27627
27627
  runners: summed("runners"),
@@ -27629,7 +27629,6 @@ function totalOf(rows) {
27629
27629
  excluded: summed("excluded"),
27630
27630
  plumbing: summed("plumbing")
27631
27631
  };
27632
- return { ...counts, accountedFor: accountedForOf(counts) };
27633
27632
  }
27634
27633
  function stepsBehindCounts(steps, dispositionOf, nameOf2, roleOf) {
27635
27634
  const reconciler = steps.filter((step) => dispositionOf(step) === "reconciler").flatMap((step) => {
@@ -27654,7 +27653,7 @@ function stepAccountOf(steps, dispositionOf, nameOf2, roleOf) {
27654
27653
  const count = COUNTED_AS[dispositionOf(step)];
27655
27654
  rows.set(jobKeyOf(step), { ...row, stepsRead: row.stepsRead + 1, [count]: row[count] + 1 });
27656
27655
  }
27657
- const byJob = [...rows.values()].sort(byWorkflowThenJob).map((row) => ({ ...row, accountedFor: accountedForOf(row) }));
27656
+ const byJob = [...rows.values()].sort(byWorkflowThenJob);
27658
27657
  return {
27659
27658
  byJob,
27660
27659
  total: totalOf(byJob),
@@ -28934,6 +28933,7 @@ var rowOf, jobRowsOf, totalRowOf, WHAT_IT_IS, runnersListOf, reconcilerListOf, e
28934
28933
  var init_stepAccounting = __esm({
28935
28934
  "../core/dist/render/stepAccounting.js"() {
28936
28935
  "use strict";
28936
+ init_uncitedFitnessFunctions();
28937
28937
  init_messages4();
28938
28938
  rowOf = (cells) => `| ${cells.join(" | ")} |`;
28939
28939
  jobRowsOf = ({ byJob }) => byJob.map((row) => rowOf([
@@ -28945,13 +28945,13 @@ var init_stepAccounting = __esm({
28945
28945
  row.reconciler,
28946
28946
  row.excluded,
28947
28947
  row.plumbing,
28948
- row.accountedFor
28948
+ accountedForOf(row)
28949
28949
  ]));
28950
28950
  totalRowOf = ({ byJob, total }) => {
28951
28951
  if (byJob.length < 2)
28952
28952
  return [];
28953
- const { stepsRead, candidates, runners, reconciler, excluded, plumbing, accountedFor } = total;
28954
- const counts = rowOf([stepsRead, candidates, runners, reconciler, excluded, plumbing, accountedFor]);
28953
+ const { stepsRead, candidates, runners, reconciler, excluded, plumbing } = total;
28954
+ const counts = rowOf([stepsRead, candidates, runners, reconciler, excluded, plumbing, accountedForOf(total)]);
28955
28955
  return [`| ${CORE_MESSAGES[CoreMessage.StepAccountingTotal]} | ${counts}`];
28956
28956
  };
28957
28957
  WHAT_IT_IS = {
@@ -663,9 +663,6 @@
663
663
  },
664
664
  "plumbing": {
665
665
  "type": "number"
666
- },
667
- "accountedFor": {
668
- "type": "number"
669
666
  }
670
667
  },
671
668
  "required": [
@@ -676,8 +673,7 @@
676
673
  "runners",
677
674
  "reconciler",
678
675
  "excluded",
679
- "plumbing",
680
- "accountedFor"
676
+ "plumbing"
681
677
  ],
682
678
  "additionalProperties": false
683
679
  },
@@ -701,19 +697,15 @@
701
697
  },
702
698
  "plumbing": {
703
699
  "type": "number"
704
- },
705
- "accountedFor": {
706
- "type": "number"
707
700
  }
708
701
  },
709
702
  "required": [
710
- "accountedFor",
703
+ "stepsRead",
711
704
  "candidates",
712
- "excluded",
713
- "plumbing",
714
- "reconciler",
715
705
  "runners",
716
- "stepsRead"
706
+ "reconciler",
707
+ "excluded",
708
+ "plumbing"
717
709
  ],
718
710
  "additionalProperties": false
719
711
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spec-controller",
3
- "version": "0.1.147",
3
+ "version": "0.1.149",
4
4
  "description": "Reconcile the behaviour your scenarios name against the evidence that actually ran — the deterministic `balance` CLI.",
5
5
  "keywords": [
6
6
  "reconciliation",
@@ -26,7 +26,7 @@
26
26
  "fast-xml-parser": "^5.11.2",
27
27
  "ts-json-schema-generator": "^2.9.0",
28
28
  "yaml": "^2.9.0",
29
- "@3f-consulting/spec-controller-core": "0.1.147"
29
+ "@3f-consulting/spec-controller-core": "0.1.149"
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public"