spec-controller 0.1.145 → 0.1.147

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
@@ -27654,7 +27654,7 @@ function stepAccountOf(steps, dispositionOf, nameOf2, roleOf) {
27654
27654
  const count = COUNTED_AS[dispositionOf(step)];
27655
27655
  rows.set(jobKeyOf(step), { ...row, stepsRead: row.stepsRead + 1, [count]: row[count] + 1 });
27656
27656
  }
27657
- const byJob = [...rows.values()].sort(byWorkflowThenJob);
27657
+ const byJob = [...rows.values()].sort(byWorkflowThenJob).map((row) => ({ ...row, accountedFor: accountedForOf(row) }));
27658
27658
  return {
27659
27659
  byJob,
27660
27660
  total: totalOf(byJob),
@@ -28934,7 +28934,6 @@ var rowOf, jobRowsOf, totalRowOf, WHAT_IT_IS, runnersListOf, reconcilerListOf, e
28934
28934
  var init_stepAccounting = __esm({
28935
28935
  "../core/dist/render/stepAccounting.js"() {
28936
28936
  "use strict";
28937
- init_uncitedFitnessFunctions();
28938
28937
  init_messages4();
28939
28938
  rowOf = (cells) => `| ${cells.join(" | ")} |`;
28940
28939
  jobRowsOf = ({ byJob }) => byJob.map((row) => rowOf([
@@ -28946,7 +28945,7 @@ var init_stepAccounting = __esm({
28946
28945
  row.reconciler,
28947
28946
  row.excluded,
28948
28947
  row.plumbing,
28949
- accountedForOf(row)
28948
+ row.accountedFor
28950
28949
  ]));
28951
28950
  totalRowOf = ({ byJob, total }) => {
28952
28951
  if (byJob.length < 2)
@@ -29132,14 +29131,19 @@ function keyOf(observation) {
29132
29131
  return JSON.stringify([observation.qualityCheck, observation.locator ?? null, sharedScnCodeOf(observation)]);
29133
29132
  }
29134
29133
  function remarksOf(observations) {
29135
- return observations.flatMap(({ message, notes }) => message === void 0 && notes === void 0 ? [] : [{ ...message !== void 0 ? { message } : {}, ...notes !== void 0 ? { notes } : {} }]);
29134
+ return observations.flatMap(({ message, notes = [] }) => {
29135
+ const kept = notes.filter((note) => note.kind !== "shared-scn-code");
29136
+ return message === void 0 && kept.length === 0 ? [] : [{ ...message !== void 0 ? { message } : {}, notes: kept }];
29137
+ });
29136
29138
  }
29137
29139
  function groupOf(observations) {
29138
29140
  const [first] = observations;
29139
29141
  const passed = observations.filter((o) => o.status === "passed").length;
29142
+ const sharedScnCode = sharedScnCodeOf(first);
29140
29143
  return {
29141
29144
  qualityCheck: first.qualityCheck,
29142
29145
  locator: first.locator,
29146
+ ...sharedScnCode === null ? {} : { sharedScnCode },
29143
29147
  remarks: remarksOf(observations),
29144
29148
  ran: observations.length,
29145
29149
  passed,
@@ -29210,7 +29214,8 @@ function renderPendingItem(item) {
29210
29214
  }
29211
29215
  function renderFileGroup(group) {
29212
29216
  const remarks = group.remarks.flatMap((remark) => remarkWordsOf(remark) ?? []);
29213
- const said = [...new Set(remarks.map((remark) => cellSafe(headlineOf(remark))))].join(" / ");
29217
+ const code = group.sharedScnCode === void 0 ? [] : [cellSafe(CORE_MESSAGES[CoreMessage.SharedScnCode](group.sharedScnCode))];
29218
+ const said = [.../* @__PURE__ */ new Set([...code, ...remarks.map((remark) => cellSafe(headlineOf(remark)))])].join(" / ");
29214
29219
  const where = group.locator === void 0 ? "" : ` (${group.locator}${said === "" ? "" : `: ${said}`})`;
29215
29220
  const counts = CORE_MESSAGES[CoreMessage.UnnamedClaimGroupCounts](group.ran, group.passed, group.failed);
29216
29221
  const names = group.failedNames.map(cellSafe).filter((name) => name !== "");
@@ -663,6 +663,9 @@
663
663
  },
664
664
  "plumbing": {
665
665
  "type": "number"
666
+ },
667
+ "accountedFor": {
668
+ "type": "number"
666
669
  }
667
670
  },
668
671
  "required": [
@@ -673,7 +676,8 @@
673
676
  "runners",
674
677
  "reconciler",
675
678
  "excluded",
676
- "plumbing"
679
+ "plumbing",
680
+ "accountedFor"
677
681
  ],
678
682
  "additionalProperties": false
679
683
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spec-controller",
3
- "version": "0.1.145",
3
+ "version": "0.1.147",
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.145"
29
+ "@3f-consulting/spec-controller-core": "0.1.147"
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public"