spec-controller 0.1.211 → 0.1.213
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 +19 -4
- package/dist/spec-reconciliation.schema.json +13 -13
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -12059,7 +12059,7 @@ function reconciliationLineTotals(ledger) {
|
|
|
12059
12059
|
total,
|
|
12060
12060
|
byOutcome,
|
|
12061
12061
|
outOfBalance: total - byOutcome.satisfied,
|
|
12062
|
-
missingByQualityCheckKind: QUALITY_CHECK_KINDS.filter((s) => (missing.get(s) ?? 0) > 0).map((
|
|
12062
|
+
missingByQualityCheckKind: QUALITY_CHECK_KINDS.filter((s) => (missing.get(s) ?? 0) > 0).map((qualityCheckKind) => ({ qualityCheckKind, count: missing.get(qualityCheckKind) }))
|
|
12063
12063
|
};
|
|
12064
12064
|
}
|
|
12065
12065
|
function behaviouralObservationTally(ledger) {
|
|
@@ -27777,6 +27777,9 @@ var init_provenance = __esm({
|
|
|
27777
27777
|
});
|
|
27778
27778
|
|
|
27779
27779
|
// ../core/dist/domain/renderInput.js
|
|
27780
|
+
function featureFilesWithNoFeatureCodeOf({ featureFiles, featureCodes }) {
|
|
27781
|
+
return featureFiles - featureCodes;
|
|
27782
|
+
}
|
|
27780
27783
|
function scenarioCodesOf2(population, obligations) {
|
|
27781
27784
|
if (!population && !obligations)
|
|
27782
27785
|
return void 0;
|
|
@@ -31588,7 +31591,7 @@ function cleanStatement(featureFiles, featureCodes) {
|
|
|
31588
31591
|
}
|
|
31589
31592
|
if (featureCodes === featureFiles)
|
|
31590
31593
|
return CORE_MESSAGES[CoreMessage.CleanEachFileOwnCode](over);
|
|
31591
|
-
const noFeatureCode = featureFiles
|
|
31594
|
+
const noFeatureCode = featureFilesWithNoFeatureCodeOf({ featureFiles, featureCodes });
|
|
31592
31595
|
const hold = noFeatureCode === 1 ? CORE_MESSAGES[CoreMessage.HoldsVerb] : CORE_MESSAGES[CoreMessage.HoldVerb];
|
|
31593
31596
|
return CORE_MESSAGES[CoreMessage.CleanOthersNoFeatureCode](over, noFeatureCode, hold);
|
|
31594
31597
|
}
|
|
@@ -31629,6 +31632,7 @@ var CODE_OF, scenarioCodeErrorsSection, scenarioCodesCleanStatement;
|
|
|
31629
31632
|
var init_scenarioCodeErrorsSection = __esm({
|
|
31630
31633
|
"../core/dist/render/scenarioCodeErrorsSection.js"() {
|
|
31631
31634
|
"use strict";
|
|
31635
|
+
init_renderInput();
|
|
31632
31636
|
init_scnTags();
|
|
31633
31637
|
init_messages4();
|
|
31634
31638
|
init_coreText();
|
|
@@ -32302,7 +32306,7 @@ var init_markdown = __esm({
|
|
|
32302
32306
|
evidenceReconciliationSection = (report) => {
|
|
32303
32307
|
const { claimReconciliations, reconciliationLines, pending } = report.summary.evidenceReconciliation;
|
|
32304
32308
|
const row = (cells) => `| ${cells.join(" | ")} |`;
|
|
32305
|
-
const missingSplit = reconciliationLines.missingByQualityCheckKind.map(({
|
|
32309
|
+
const missingSplit = reconciliationLines.missingByQualityCheckKind.map(({ qualityCheckKind, count }) => `${count} ${qualityCheckKind}`).join(" + ");
|
|
32306
32310
|
const lines = [
|
|
32307
32311
|
CORE_MESSAGES[CoreMessage.EvidenceReconciliationHeading],
|
|
32308
32312
|
"",
|
|
@@ -32850,7 +32854,18 @@ var init_inputShapes = __esm({
|
|
|
32850
32854
|
fields: {
|
|
32851
32855
|
runProvenance: { fields: { corpus: "string" }, required: ["corpus"] },
|
|
32852
32856
|
summary: {
|
|
32853
|
-
fields: {
|
|
32857
|
+
fields: {
|
|
32858
|
+
evidenceReconciliation: {
|
|
32859
|
+
fields: {
|
|
32860
|
+
reconciliationLines: {
|
|
32861
|
+
fields: {
|
|
32862
|
+
missingByQualityCheckKind: { list: { fields: { qualityCheckKind: "string" }, required: ["qualityCheckKind"] } }
|
|
32863
|
+
}
|
|
32864
|
+
}
|
|
32865
|
+
}
|
|
32866
|
+
},
|
|
32867
|
+
evidenceObservations: { fields: {} }
|
|
32868
|
+
},
|
|
32854
32869
|
required: ["evidenceReconciliation", "evidenceObservations"]
|
|
32855
32870
|
},
|
|
32856
32871
|
ledger: { fields: { claimReconciliations: { list: "anything" } }, required: ["claimReconciliations"] },
|
|
@@ -538,19 +538,29 @@
|
|
|
538
538
|
"MissingByQualityCheckKind": {
|
|
539
539
|
"type": "object",
|
|
540
540
|
"properties": {
|
|
541
|
-
"
|
|
542
|
-
"
|
|
541
|
+
"qualityCheckKind": {
|
|
542
|
+
"$ref": "#/definitions/QualityCheckKind"
|
|
543
543
|
},
|
|
544
544
|
"count": {
|
|
545
545
|
"type": "number"
|
|
546
546
|
}
|
|
547
547
|
},
|
|
548
548
|
"required": [
|
|
549
|
-
"
|
|
549
|
+
"qualityCheckKind",
|
|
550
550
|
"count"
|
|
551
551
|
],
|
|
552
552
|
"additionalProperties": false
|
|
553
553
|
},
|
|
554
|
+
"QualityCheckKind": {
|
|
555
|
+
"type": "string",
|
|
556
|
+
"enum": [
|
|
557
|
+
"fitness",
|
|
558
|
+
"unit",
|
|
559
|
+
"integration",
|
|
560
|
+
"e2e",
|
|
561
|
+
"performance"
|
|
562
|
+
]
|
|
563
|
+
},
|
|
554
564
|
"EvidenceObservationTally": {
|
|
555
565
|
"type": "object",
|
|
556
566
|
"properties": {
|
|
@@ -610,16 +620,6 @@
|
|
|
610
620
|
],
|
|
611
621
|
"additionalProperties": false
|
|
612
622
|
},
|
|
613
|
-
"QualityCheckKind": {
|
|
614
|
-
"type": "string",
|
|
615
|
-
"enum": [
|
|
616
|
-
"fitness",
|
|
617
|
-
"unit",
|
|
618
|
-
"integration",
|
|
619
|
-
"e2e",
|
|
620
|
-
"performance"
|
|
621
|
-
]
|
|
622
|
-
},
|
|
623
623
|
"StepAccounting": {
|
|
624
624
|
"type": "object",
|
|
625
625
|
"properties": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spec-controller",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.213",
|
|
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.213"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|