spec-controller 0.1.220 → 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 +23 -22
- package/dist/spec-reconciliation.schema.json +14 -14
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -27895,8 +27895,8 @@ function assembleRenderInput(evidenceReconciliation, ctx, evidenceObligations2,
|
|
|
27895
27895
|
return {
|
|
27896
27896
|
runProvenance: provenanceObject(ctx),
|
|
27897
27897
|
...errors ? { errors } : {},
|
|
27898
|
-
...scenarioCodes ? { scenarioCodes } : {},
|
|
27899
27898
|
summary: concludedSummary({
|
|
27899
|
+
...scenarioCodes ? { scenarioCodes } : {},
|
|
27900
27900
|
...summaryStatingNoFault(evidenceReconciliation.summary),
|
|
27901
27901
|
...byFeature.length > 0 ? { outOfBalanceByFeature: byFeature } : {}
|
|
27902
27902
|
}, {
|
|
@@ -31666,7 +31666,7 @@ var init_scenarioCodeErrorsSection = __esm({
|
|
|
31666
31666
|
scenarioCodesCleanStatement = (report) => {
|
|
31667
31667
|
if (report.errors?.scenarioCodes !== void 0)
|
|
31668
31668
|
return [];
|
|
31669
|
-
const { featureFiles, featureCodes } = report.scenarioCodes ?? {};
|
|
31669
|
+
const { featureFiles, featureCodes } = report.summary.scenarioCodes ?? {};
|
|
31670
31670
|
if (featureFiles === void 0 || featureCodes === void 0)
|
|
31671
31671
|
return [];
|
|
31672
31672
|
if (featureFiles === 0)
|
|
@@ -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.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,
|
|
@@ -32870,9 +32871,15 @@ var init_inputShapes = __esm({
|
|
|
32870
32871
|
}
|
|
32871
32872
|
}
|
|
32872
32873
|
},
|
|
32873
|
-
evidenceObservations: { fields: {} }
|
|
32874
|
+
evidenceObservations: { fields: {} },
|
|
32875
|
+
scenarioCodes: {
|
|
32876
|
+
fields: {
|
|
32877
|
+
untaggedScenarios: { list: SCENARIO_NAME },
|
|
32878
|
+
sharedScnCodes: { list: { fields: { scenarios: { list: SCENARIO_NAME } } } }
|
|
32879
|
+
}
|
|
32880
|
+
}
|
|
32874
32881
|
},
|
|
32875
|
-
required: ["evidenceReconciliation", "evidenceObservations"]
|
|
32882
|
+
required: ["evidenceReconciliation", "evidenceObservations", "scenarioCodes"]
|
|
32876
32883
|
},
|
|
32877
32884
|
claimReconciliations: {
|
|
32878
32885
|
list: {
|
|
@@ -32897,12 +32904,6 @@ var init_inputShapes = __esm({
|
|
|
32897
32904
|
}
|
|
32898
32905
|
},
|
|
32899
32906
|
retired: { configuration: "configurationNotRead" }
|
|
32900
|
-
},
|
|
32901
|
-
scenarioCodes: {
|
|
32902
|
-
fields: {
|
|
32903
|
-
untaggedScenarios: { list: SCENARIO_NAME },
|
|
32904
|
-
sharedScnCodes: { list: { fields: { scenarios: { list: SCENARIO_NAME } } } }
|
|
32905
|
-
}
|
|
32906
32907
|
}
|
|
32907
32908
|
},
|
|
32908
32909
|
required: ["runProvenance", "summary", "claimReconciliations"]
|
|
@@ -11,9 +11,6 @@
|
|
|
11
11
|
"errors": {
|
|
12
12
|
"$ref": "#/definitions/ErrorsSection"
|
|
13
13
|
},
|
|
14
|
-
"scenarioCodes": {
|
|
15
|
-
"$ref": "#/definitions/ScenarioCodesSection"
|
|
16
|
-
},
|
|
17
14
|
"summary": {
|
|
18
15
|
"type": "object",
|
|
19
16
|
"additionalProperties": false,
|
|
@@ -21,6 +18,9 @@
|
|
|
21
18
|
"runVerdict": {
|
|
22
19
|
"$ref": "#/definitions/RunVerdict"
|
|
23
20
|
},
|
|
21
|
+
"scenarioCodes": {
|
|
22
|
+
"$ref": "#/definitions/ScenarioCodesSection"
|
|
23
|
+
},
|
|
24
24
|
"outOfBalanceByFeature": {
|
|
25
25
|
"type": "array",
|
|
26
26
|
"items": {
|
|
@@ -332,6 +332,17 @@
|
|
|
332
332
|
"function"
|
|
333
333
|
]
|
|
334
334
|
},
|
|
335
|
+
"RunVerdict": {
|
|
336
|
+
"type": "string",
|
|
337
|
+
"enum": [
|
|
338
|
+
"nothing-to-reconcile",
|
|
339
|
+
"unsound",
|
|
340
|
+
"scenario-code-errors",
|
|
341
|
+
"out-of-balance",
|
|
342
|
+
"pending",
|
|
343
|
+
"balanced"
|
|
344
|
+
]
|
|
345
|
+
},
|
|
335
346
|
"ScenarioCodesSection": {
|
|
336
347
|
"type": "object",
|
|
337
348
|
"properties": {
|
|
@@ -395,17 +406,6 @@
|
|
|
395
406
|
],
|
|
396
407
|
"additionalProperties": false
|
|
397
408
|
},
|
|
398
|
-
"RunVerdict": {
|
|
399
|
-
"type": "string",
|
|
400
|
-
"enum": [
|
|
401
|
-
"nothing-to-reconcile",
|
|
402
|
-
"unsound",
|
|
403
|
-
"scenario-code-errors",
|
|
404
|
-
"out-of-balance",
|
|
405
|
-
"pending",
|
|
406
|
-
"balanced"
|
|
407
|
-
]
|
|
408
|
-
},
|
|
409
409
|
"FeatureOutOfBalance": {
|
|
410
410
|
"type": "object",
|
|
411
411
|
"properties": {
|
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"
|