spec-controller 0.1.168 → 0.1.169

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 +7 -3
  2. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -28654,7 +28654,11 @@ var init_messages4 = __esm({
28654
28654
  [CoreMessage.ObservationPassed]: "passed",
28655
28655
  [CoreMessage.ObservationFailed]: "failed",
28656
28656
  [CoreMessage.UnnamedClaimGroupCounts]: (ran, passed, failed) => `${ran} ran, ${passed} passed, ${failed} failed`,
28657
- [CoreMessage.UnnamedClaimCiSteps]: (names) => `${names.length} CI step${names.length === 1 ? "" : "s"}: ${names.join(", ")}`,
28657
+ [CoreMessage.UnnamedClaimCiSteps]: (names) => {
28658
+ const named = names.map((name) => name.trim()).filter((name) => name !== "");
28659
+ const listed = named.length === 0 ? "" : `: ${named.join(", ")}`;
28660
+ return `${names.length} CI step${names.length === 1 ? "" : "s"}${listed}`;
28661
+ },
28658
28662
  [CoreMessage.UnnamedClaimFailedNames]: (names) => `(failed: ${names.join(" / ")})`,
28659
28663
  [CoreMessage.SeveralScnCodes]: (codes) => `${codes.length} scenario codes cite ${codes.join(", ")} \u2014 a test cites exactly one scenario, so this one credits none of them.`,
28660
28664
  [CoreMessage.SharedScnCode]: (code) => `${code} is carried by more than one scenario, so evidence citing it credits none of them.`
@@ -29193,7 +29197,7 @@ function remarkWordsOf({ message, notes = [] }) {
29193
29197
  return words.length === 0 ? void 0 : words.join(" ");
29194
29198
  }
29195
29199
  function remarkHeadlineOf({ message, notes = [] }) {
29196
- const headline = message?.split("\n").map((line) => line.trim()).find((line) => line.length > 0);
29200
+ const headline = message?.split("\n").map((line) => line.replace(/\s+/g, " ").trim()).find((line) => line.length > 0);
29197
29201
  return remarkWordsOf({ ...headline === void 0 ? {} : { message: headline }, notes });
29198
29202
  }
29199
29203
  var init_remarkWords = __esm({
@@ -29452,7 +29456,7 @@ var init_markdown = __esm({
29452
29456
  ""
29453
29457
  ];
29454
29458
  for (const item of brokenObservations) {
29455
- const locator = item.locator ?? CORE_MESSAGES[CoreMessage.BrokenEvidenceNotNamed];
29459
+ const locator = item.locator?.trim() ? item.locator : CORE_MESSAGES[CoreMessage.BrokenEvidenceNotNamed];
29456
29460
  lines.push(`- ${CORE_MESSAGES[CoreMessage.BrokenEvidenceWhatBroke](`\`${locator}\``)}`);
29457
29461
  lines.push("");
29458
29462
  lines.push("```text");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spec-controller",
3
- "version": "0.1.168",
3
+ "version": "0.1.169",
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.168"
29
+ "@3f-consulting/spec-controller-core": "0.1.169"
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public"