spec-controller 0.1.221 → 0.1.222
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 +13 -12
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -32201,16 +32201,6 @@ function ledgerTallyLines(totals) {
|
|
|
32201
32201
|
}
|
|
32202
32202
|
return lines;
|
|
32203
32203
|
}
|
|
32204
|
-
function censusLines(codes, scenarios) {
|
|
32205
|
-
if (codes?.excludedOccurrences === void 0)
|
|
32206
|
-
return [];
|
|
32207
|
-
const lines = [`- ${CORE_MESSAGES[CoreMessage.ExcludedScnOccurrences](codes.excludedOccurrences)}`];
|
|
32208
|
-
const untagged = (codes.untaggedScenarios ?? []).length;
|
|
32209
|
-
if (untagged > 0)
|
|
32210
|
-
lines.push(`- ${CORE_MESSAGES[CoreMessage.UntaggedScenarios](untagged)}`);
|
|
32211
|
-
lines.push(...sharedScnCodeLines(codes.sharedScnCodes ?? [], scenarios));
|
|
32212
|
-
return lines;
|
|
32213
|
-
}
|
|
32214
32204
|
function sharedScnCodeLines(shared, scenarios) {
|
|
32215
32205
|
if (shared.length === 0)
|
|
32216
32206
|
return [];
|
|
@@ -32240,7 +32230,7 @@ function ledgerTableLines(claims, columns, stepsByQualityCheckKind) {
|
|
|
32240
32230
|
function renderReport(report, inputNames, exitCodeOf2) {
|
|
32241
32231
|
return SECTIONS.flatMap((section) => section(report, inputNames, exitCodeOf2)).join("\n");
|
|
32242
32232
|
}
|
|
32243
|
-
var reported, RESULT_MESSAGE, titleSection, runIntegritySection, summarySection, EVIDENCE_RECONCILIATION_COLUMNS, EVIDENCE_RECONCILIATION_TERMS, evidenceReconciliationSection, byFeatureSection, ledgerSection, SECTIONS;
|
|
32233
|
+
var reported, RESULT_MESSAGE, titleSection, runIntegritySection, summarySection, EVIDENCE_RECONCILIATION_COLUMNS, EVIDENCE_RECONCILIATION_TERMS, evidenceReconciliationSection, byFeatureSection, ledgerSection, scenarioCodeFactsSection, SECTIONS;
|
|
32244
32234
|
var init_markdown = __esm({
|
|
32245
32235
|
"../core/dist/render/markdown.js"() {
|
|
32246
32236
|
"use strict";
|
|
@@ -32365,13 +32355,23 @@ var init_markdown = __esm({
|
|
|
32365
32355
|
CORE_MESSAGES[CoreMessage.ClaimReconciliationsHeading],
|
|
32366
32356
|
"",
|
|
32367
32357
|
...ledgerTallyLines(report.summary.evidenceReconciliation.claimReconciliations),
|
|
32368
|
-
...censusLines(report.summary.scenarioCodes, scenarioRows.length),
|
|
32369
32358
|
"",
|
|
32370
32359
|
...evidenceKeyLines(columns),
|
|
32371
32360
|
...ledgerTableLines(claims, columns, report.summary.evidenceObservations?.byQualityCheckKind ?? []),
|
|
32372
32361
|
""
|
|
32373
32362
|
];
|
|
32374
32363
|
};
|
|
32364
|
+
scenarioCodeFactsSection = (report) => {
|
|
32365
|
+
const codes = report.summary.scenarioCodes;
|
|
32366
|
+
if (codes?.excludedOccurrences === void 0)
|
|
32367
|
+
return [];
|
|
32368
|
+
const lines = [`- ${CORE_MESSAGES[CoreMessage.ExcludedScnOccurrences](codes.excludedOccurrences)}`];
|
|
32369
|
+
const untagged = (codes.untaggedScenarios ?? []).length;
|
|
32370
|
+
if (untagged > 0)
|
|
32371
|
+
lines.push(`- ${CORE_MESSAGES[CoreMessage.UntaggedScenarios](untagged)}`);
|
|
32372
|
+
lines.push(...sharedScnCodeLines(codes.sharedScnCodes ?? [], report.claimReconciliations.filter(isScenario).length));
|
|
32373
|
+
return [...lines, ""];
|
|
32374
|
+
};
|
|
32375
32375
|
SECTIONS = [
|
|
32376
32376
|
titleSection,
|
|
32377
32377
|
provenanceSection,
|
|
@@ -32380,6 +32380,7 @@ var init_markdown = __esm({
|
|
|
32380
32380
|
summarySection,
|
|
32381
32381
|
(report, _inputNames, exitCodeOf2) => runVerdictSection(report, exitCodeOf2),
|
|
32382
32382
|
scenarioCodesCleanStatement,
|
|
32383
|
+
scenarioCodeFactsSection,
|
|
32383
32384
|
evidenceReconciliationSection,
|
|
32384
32385
|
evidenceObservationsSection,
|
|
32385
32386
|
stepAccountingSection,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spec-controller",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.222",
|
|
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.222"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|