spec-controller 0.1.226 → 0.1.228
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 +25 -24
- package/dist/spec-reconciliation.schema.json +2 -2
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -11507,7 +11507,7 @@ function pendingQualityCheckKind(tag) {
|
|
|
11507
11507
|
return PENDING_TAG_TO_QUALITY_CHECK_KIND[tag] ?? null;
|
|
11508
11508
|
}
|
|
11509
11509
|
function convertedFitnessObligationsOf(tags) {
|
|
11510
|
-
if (!tags.includes(
|
|
11510
|
+
if (!tags.includes(FITNESS_TAG))
|
|
11511
11511
|
return [];
|
|
11512
11512
|
return [{ qualityCheckKind: "fitness" }];
|
|
11513
11513
|
}
|
|
@@ -11516,10 +11516,10 @@ function obligationsRaisedBy(tags, deferralTags) {
|
|
|
11516
11516
|
const seenLayers = /* @__PURE__ */ new Set();
|
|
11517
11517
|
const seenPending = /* @__PURE__ */ new Set();
|
|
11518
11518
|
for (const t of tags) {
|
|
11519
|
-
const
|
|
11520
|
-
if (
|
|
11521
|
-
seenPending.add(
|
|
11522
|
-
evidenceObligations2.push({ qualityCheckKind:
|
|
11519
|
+
const pendingKind = pendingQualityCheckKind(t);
|
|
11520
|
+
if (pendingKind && !seenPending.has(pendingKind)) {
|
|
11521
|
+
seenPending.add(pendingKind);
|
|
11522
|
+
evidenceObligations2.push({ qualityCheckKind: pendingKind, pending: true });
|
|
11523
11523
|
continue;
|
|
11524
11524
|
}
|
|
11525
11525
|
const layer = TAG_TO_LAYER[t];
|
|
@@ -11536,7 +11536,7 @@ function obligationsRaisedBy(tags, deferralTags) {
|
|
|
11536
11536
|
return [{ pending: true }];
|
|
11537
11537
|
return evidenceObligations2.map((obligation) => ({ ...obligation, pending: true }));
|
|
11538
11538
|
}
|
|
11539
|
-
var PENDING_TAG_TO_QUALITY_CHECK_KIND, TAG_TO_LAYER,
|
|
11539
|
+
var PENDING_TAG_TO_QUALITY_CHECK_KIND, TAG_TO_LAYER, FITNESS_TAG;
|
|
11540
11540
|
var init_scenarioObligations = __esm({
|
|
11541
11541
|
"../core/dist/domain/scenarioObligations.js"() {
|
|
11542
11542
|
"use strict";
|
|
@@ -11553,7 +11553,7 @@ var init_scenarioObligations = __esm({
|
|
|
11553
11553
|
e2e: "e2e",
|
|
11554
11554
|
performance: "performance"
|
|
11555
11555
|
};
|
|
11556
|
-
|
|
11556
|
+
FITNESS_TAG = "fitness";
|
|
11557
11557
|
}
|
|
11558
11558
|
});
|
|
11559
11559
|
|
|
@@ -12099,7 +12099,7 @@ function behaviouralObservationTally(ledger) {
|
|
|
12099
12099
|
onScenario++;
|
|
12100
12100
|
}
|
|
12101
12101
|
}
|
|
12102
|
-
const total = LAYERS.reduce((n,
|
|
12102
|
+
const total = LAYERS.reduce((n, layer) => n + rawByLayer[layer], 0);
|
|
12103
12103
|
return { rawByLayer, total, onScenario, onPhantomClaim, onUnnamedClaim };
|
|
12104
12104
|
}
|
|
12105
12105
|
function runningFitnessObservations(ledger) {
|
|
@@ -27812,7 +27812,7 @@ function errorsOf(scenarioCodeErrors, summary) {
|
|
|
27812
27812
|
...nonEmpty("nonChecksNotAStepName", summary.nonChecksNotAStepName)
|
|
27813
27813
|
};
|
|
27814
27814
|
const errors = {
|
|
27815
|
-
...nonEmpty("
|
|
27815
|
+
...nonEmpty("scenarioCodeErrors", scenarioCodeErrors),
|
|
27816
27816
|
...Object.keys(configurationNotRead2).length > 0 ? { configurationNotRead: configurationNotRead2 } : {}
|
|
27817
27817
|
};
|
|
27818
27818
|
return Object.keys(errors).length > 0 ? errors : void 0;
|
|
@@ -27895,12 +27895,12 @@ function concludedSummary(summary, verdictInputs) {
|
|
|
27895
27895
|
return { runVerdict: runVerdict(verdictInputs), ...rest };
|
|
27896
27896
|
}
|
|
27897
27897
|
function assembleRenderInput(evidenceReconciliation, ctx, evidenceObligations2, featureNames) {
|
|
27898
|
-
const
|
|
27898
|
+
const errorsInTheInputs = errorsOf(evidenceReconciliation.scenarioCodeErrors, evidenceReconciliation.summary);
|
|
27899
27899
|
const scenarioCodes = scenarioCodesOf2(evidenceReconciliation.scenarioCodePopulation, evidenceObligations2);
|
|
27900
27900
|
const byFeature = outOfBalanceByFeature(evidenceReconciliation.ledger.claimReconciliations, scenarioCodes?.untaggedScenarios ?? [], Object.fromEntries(featureNames ?? []));
|
|
27901
27901
|
return {
|
|
27902
27902
|
runProvenance: provenanceObject(ctx),
|
|
27903
|
-
...
|
|
27903
|
+
...errorsInTheInputs ? { errorsInTheInputs } : {},
|
|
27904
27904
|
summary: concludedSummary({
|
|
27905
27905
|
...scenarioCodes ? { scenarioCodes } : {},
|
|
27906
27906
|
...summaryStatingNoFault(evidenceReconciliation.summary),
|
|
@@ -28217,7 +28217,7 @@ function assembleSavedReport(saved, strictGiven) {
|
|
|
28217
28217
|
runProvenance: { ...saved.runProvenance, strict },
|
|
28218
28218
|
summary: concludedSummary(saved.summary, {
|
|
28219
28219
|
ledger: { claimReconciliations: saved.claimReconciliations },
|
|
28220
|
-
scenarioCodeErrors: saved.
|
|
28220
|
+
scenarioCodeErrors: saved.errorsInTheInputs?.scenarioCodeErrors,
|
|
28221
28221
|
strict
|
|
28222
28222
|
})
|
|
28223
28223
|
};
|
|
@@ -31548,7 +31548,7 @@ var init_runVerdict2 = __esm({
|
|
|
31548
31548
|
};
|
|
31549
31549
|
runVerdictSection = (report, exitCodeOf2) => {
|
|
31550
31550
|
const verdict = report.summary.runVerdict;
|
|
31551
|
-
const line = verdictFor2(verdict, report, report.runProvenance.corpus, report.
|
|
31551
|
+
const line = verdictFor2(verdict, report, report.runProvenance.corpus, report.errorsInTheInputs?.scenarioCodeErrors ?? []);
|
|
31552
31552
|
const exit = coreMessage(CoreMessage.VerdictExit, { code: exitCodeOf2(verdict) });
|
|
31553
31553
|
const lines = [markdownHeading(3, coreMessage(CoreMessage.RunVerdictHeading)), "", `${line.headline} \u2014 ${line.gloss} (${exit})`];
|
|
31554
31554
|
if (verdict === "balanced" && hasPendingItems(report)) {
|
|
@@ -31648,7 +31648,7 @@ var init_scenarioCodeErrorsSection = __esm({
|
|
|
31648
31648
|
"several-scn-codes": CoreError.SeveralScnCodes
|
|
31649
31649
|
};
|
|
31650
31650
|
scenarioCodeErrorsSection = (report) => {
|
|
31651
|
-
const errors = report.
|
|
31651
|
+
const errors = report.errorsInTheInputs?.scenarioCodeErrors;
|
|
31652
31652
|
if (errors === void 0)
|
|
31653
31653
|
return [];
|
|
31654
31654
|
const count = coreMessage(CoreMessage.ScenarioCodeErrorCount, { count: errors.length });
|
|
@@ -31664,7 +31664,7 @@ var init_scenarioCodeErrorsSection = __esm({
|
|
|
31664
31664
|
];
|
|
31665
31665
|
};
|
|
31666
31666
|
scenarioCodesCleanStatement = (report) => {
|
|
31667
|
-
if (report.
|
|
31667
|
+
if (report.errorsInTheInputs?.scenarioCodeErrors !== void 0)
|
|
31668
31668
|
return [];
|
|
31669
31669
|
const { featureFiles, featureCodes } = report.summary.scenarioCodes ?? {};
|
|
31670
31670
|
if (typeof featureFiles !== "number" || typeof featureCodes !== "number")
|
|
@@ -31768,11 +31768,11 @@ var init_configurationNotRead = __esm({
|
|
|
31768
31768
|
init_codeSpan();
|
|
31769
31769
|
init_errorEntry();
|
|
31770
31770
|
configurationNotReadSection = (report) => {
|
|
31771
|
-
const wrongKinds = report.
|
|
31772
|
-
const unknownKeys = report.
|
|
31773
|
-
const runnerKeysNotALayer = report.
|
|
31774
|
-
const nonChecksMatchingNoStep = report.
|
|
31775
|
-
const nonChecksNotAStepName = report.
|
|
31771
|
+
const wrongKinds = report.errorsInTheInputs?.configurationNotRead?.ofWrongKind ?? [];
|
|
31772
|
+
const unknownKeys = report.errorsInTheInputs?.configurationNotRead?.keysNotRead ?? [];
|
|
31773
|
+
const runnerKeysNotALayer = report.errorsInTheInputs?.configurationNotRead?.runnerKeysNotALayer ?? [];
|
|
31774
|
+
const nonChecksMatchingNoStep = report.errorsInTheInputs?.configurationNotRead?.nonChecksMatchingNoStep ?? [];
|
|
31775
|
+
const nonChecksNotAStepName = report.errorsInTheInputs?.configurationNotRead?.nonChecksNotAStepName ?? [];
|
|
31776
31776
|
if (wrongKinds.length === 0 && unknownKeys.length === 0 && runnerKeysNotALayer.length === 0 && nonChecksMatchingNoStep.length === 0 && nonChecksNotAStepName.length === 0)
|
|
31777
31777
|
return [];
|
|
31778
31778
|
return [
|
|
@@ -32914,9 +32914,9 @@ var init_inputShapes = __esm({
|
|
|
32914
32914
|
}
|
|
32915
32915
|
}
|
|
32916
32916
|
},
|
|
32917
|
-
|
|
32917
|
+
errorsInTheInputs: {
|
|
32918
32918
|
fields: {
|
|
32919
|
-
|
|
32919
|
+
scenarioCodeErrors: { list: "anything" },
|
|
32920
32920
|
configurationNotRead: {
|
|
32921
32921
|
fields: {
|
|
32922
32922
|
keysNotRead: { list: "anything" },
|
|
@@ -32927,10 +32927,11 @@ var init_inputShapes = __esm({
|
|
|
32927
32927
|
}
|
|
32928
32928
|
}
|
|
32929
32929
|
},
|
|
32930
|
-
retired: { configuration: "configurationNotRead" }
|
|
32930
|
+
retired: { scenarioCodes: "scenarioCodeErrors", configuration: "configurationNotRead" }
|
|
32931
32931
|
}
|
|
32932
32932
|
},
|
|
32933
|
-
required: ["runProvenance", "summary", "claimReconciliations"]
|
|
32933
|
+
required: ["runProvenance", "summary", "claimReconciliations"],
|
|
32934
|
+
retired: { errors: "errorsInTheInputs" }
|
|
32934
32935
|
};
|
|
32935
32936
|
TOP = { kind: "top" };
|
|
32936
32937
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"runProvenance": {
|
|
9
9
|
"$ref": "#/definitions/ProvenanceObject"
|
|
10
10
|
},
|
|
11
|
-
"
|
|
11
|
+
"errorsInTheInputs": {
|
|
12
12
|
"$ref": "#/definitions/ErrorsSection"
|
|
13
13
|
},
|
|
14
14
|
"summary": {
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
"ErrorsSection": {
|
|
131
131
|
"type": "object",
|
|
132
132
|
"properties": {
|
|
133
|
-
"
|
|
133
|
+
"scenarioCodeErrors": {
|
|
134
134
|
"type": "array",
|
|
135
135
|
"items": {
|
|
136
136
|
"$ref": "#/definitions/ScenarioCodeError"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spec-controller",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.228",
|
|
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.228"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|