spec-controller 0.1.169 → 0.1.170
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 +10 -7
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -28922,16 +28922,20 @@ var init_provenanceSection = __esm({
|
|
|
28922
28922
|
// ../core/dist/render/codeSpan.js
|
|
28923
28923
|
function codeSpan(written) {
|
|
28924
28924
|
const text = spanHoldsAsWritten(written) ? written : JSON.stringify(written);
|
|
28925
|
-
const
|
|
28926
|
-
const fence = "`".repeat(longestRun + 1);
|
|
28925
|
+
const fence = "`".repeat(longestBacktickRun(text) + 1);
|
|
28927
28926
|
const pad = text.startsWith("`") || text.endsWith("`") ? " " : "";
|
|
28928
28927
|
return `${fence}${pad}${text}${pad}${fence}`;
|
|
28929
28928
|
}
|
|
28930
|
-
|
|
28929
|
+
function fencedBlockLines(info, text) {
|
|
28930
|
+
const fence = "`".repeat(Math.max(3, longestBacktickRun(text) + 1));
|
|
28931
|
+
return [`${fence}${info}`, ...text.split("\n"), fence];
|
|
28932
|
+
}
|
|
28933
|
+
var spanHoldsAsWritten, longestBacktickRun;
|
|
28931
28934
|
var init_codeSpan = __esm({
|
|
28932
28935
|
"../core/dist/render/codeSpan.js"() {
|
|
28933
28936
|
"use strict";
|
|
28934
28937
|
spanHoldsAsWritten = (text) => text !== "" && !(text.startsWith(" ") && text.endsWith(" ")) && !/[\n\r]/.test(text) && !(text.startsWith('"') && text.endsWith('"'));
|
|
28938
|
+
longestBacktickRun = (text) => Math.max(0, ...(text.match(/`+/g) ?? []).map((run3) => run3.length));
|
|
28935
28939
|
}
|
|
28936
28940
|
});
|
|
28937
28941
|
|
|
@@ -29193,7 +29197,7 @@ function checkStepWords(code, outcome) {
|
|
|
29193
29197
|
return CORE_MESSAGES[CoreMessage.CheckStepEnded](code, outcome);
|
|
29194
29198
|
}
|
|
29195
29199
|
function remarkWordsOf({ message, notes = [] }) {
|
|
29196
|
-
const words = [...message === void 0 ? [] : [message], ...notes.map(noteWords)];
|
|
29200
|
+
const words = [...message === void 0 || message.trim() === "" ? [] : [message], ...notes.map(noteWords)];
|
|
29197
29201
|
return words.length === 0 ? void 0 : words.join(" ");
|
|
29198
29202
|
}
|
|
29199
29203
|
function remarkHeadlineOf({ message, notes = [] }) {
|
|
@@ -29435,6 +29439,7 @@ var init_markdown = __esm({
|
|
|
29435
29439
|
init_evidenceGrid();
|
|
29436
29440
|
init_messages4();
|
|
29437
29441
|
init_remarkWords();
|
|
29442
|
+
init_codeSpan();
|
|
29438
29443
|
init_unnamedClaimGroups();
|
|
29439
29444
|
RESULT_MESSAGE = {
|
|
29440
29445
|
passed: CoreMessage.ObservationPassed,
|
|
@@ -29459,9 +29464,7 @@ var init_markdown = __esm({
|
|
|
29459
29464
|
const locator = item.locator?.trim() ? item.locator : CORE_MESSAGES[CoreMessage.BrokenEvidenceNotNamed];
|
|
29460
29465
|
lines.push(`- ${CORE_MESSAGES[CoreMessage.BrokenEvidenceWhatBroke](`\`${locator}\``)}`);
|
|
29461
29466
|
lines.push("");
|
|
29462
|
-
lines.push("
|
|
29463
|
-
lines.push(...(remarkWordsOf(item) ?? CORE_MESSAGES[CoreMessage.BrokenEvidenceNoMessage]).split("\n"));
|
|
29464
|
-
lines.push("```");
|
|
29467
|
+
lines.push(...fencedBlockLines("text", remarkWordsOf(item) ?? CORE_MESSAGES[CoreMessage.BrokenEvidenceNoMessage]));
|
|
29465
29468
|
lines.push("");
|
|
29466
29469
|
}
|
|
29467
29470
|
return lines;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spec-controller",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.170",
|
|
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.
|
|
29
|
+
"@3f-consulting/spec-controller-core": "0.1.170"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|