spec-controller 0.1.146 → 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.
Files changed (2) hide show
  1. package/dist/cli.js +8 -2
  2. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -29131,14 +29131,19 @@ function keyOf(observation) {
29131
29131
  return JSON.stringify([observation.qualityCheck, observation.locator ?? null, sharedScnCodeOf(observation)]);
29132
29132
  }
29133
29133
  function remarksOf(observations) {
29134
- 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
+ });
29135
29138
  }
29136
29139
  function groupOf(observations) {
29137
29140
  const [first] = observations;
29138
29141
  const passed = observations.filter((o) => o.status === "passed").length;
29142
+ const sharedScnCode = sharedScnCodeOf(first);
29139
29143
  return {
29140
29144
  qualityCheck: first.qualityCheck,
29141
29145
  locator: first.locator,
29146
+ ...sharedScnCode === null ? {} : { sharedScnCode },
29142
29147
  remarks: remarksOf(observations),
29143
29148
  ran: observations.length,
29144
29149
  passed,
@@ -29209,7 +29214,8 @@ function renderPendingItem(item) {
29209
29214
  }
29210
29215
  function renderFileGroup(group) {
29211
29216
  const remarks = group.remarks.flatMap((remark) => remarkWordsOf(remark) ?? []);
29212
- 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(" / ");
29213
29219
  const where = group.locator === void 0 ? "" : ` (${group.locator}${said === "" ? "" : `: ${said}`})`;
29214
29220
  const counts = CORE_MESSAGES[CoreMessage.UnnamedClaimGroupCounts](group.ran, group.passed, group.failed);
29215
29221
  const names = group.failedNames.map(cellSafe).filter((name) => name !== "");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spec-controller",
3
- "version": "0.1.146",
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.146"
29
+ "@3f-consulting/spec-controller-core": "0.1.147"
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public"