spec-controller 0.1.219 → 0.1.220
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 -9
- package/dist/spec-reconciliation.schema.json +1 -1
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -27798,7 +27798,7 @@ function scenarioCodesOf2(population, obligations) {
|
|
|
27798
27798
|
};
|
|
27799
27799
|
}
|
|
27800
27800
|
function errorsOf(scenarioCodeErrors, summary) {
|
|
27801
|
-
const
|
|
27801
|
+
const configurationNotRead2 = {
|
|
27802
27802
|
...nonEmpty("keysNotRead", summary.configurationKeysNotRead),
|
|
27803
27803
|
...nonEmpty("ofWrongKind", summary.configurationOfWrongKind),
|
|
27804
27804
|
...nonEmpty("runnerKeysNotALayer", summary.runnerKeysNotALayer),
|
|
@@ -27807,7 +27807,7 @@ function errorsOf(scenarioCodeErrors, summary) {
|
|
|
27807
27807
|
};
|
|
27808
27808
|
const errors = {
|
|
27809
27809
|
...nonEmpty("scenarioCodes", scenarioCodeErrors),
|
|
27810
|
-
...Object.keys(
|
|
27810
|
+
...Object.keys(configurationNotRead2).length > 0 ? { configurationNotRead: configurationNotRead2 } : {}
|
|
27811
27811
|
};
|
|
27812
27812
|
return Object.keys(errors).length > 0 ? errors : void 0;
|
|
27813
27813
|
}
|
|
@@ -31762,11 +31762,11 @@ var init_configurationNotRead = __esm({
|
|
|
31762
31762
|
init_codeSpan();
|
|
31763
31763
|
init_errorEntry();
|
|
31764
31764
|
configurationNotReadSection = (report) => {
|
|
31765
|
-
const wrongKinds = report.errors?.
|
|
31766
|
-
const unknownKeys = report.errors?.
|
|
31767
|
-
const runnerKeysNotALayer = report.errors?.
|
|
31768
|
-
const nonChecksMatchingNoStep = report.errors?.
|
|
31769
|
-
const nonChecksNotAStepName = report.errors?.
|
|
31765
|
+
const wrongKinds = report.errors?.configurationNotRead?.ofWrongKind ?? [];
|
|
31766
|
+
const unknownKeys = report.errors?.configurationNotRead?.keysNotRead ?? [];
|
|
31767
|
+
const runnerKeysNotALayer = report.errors?.configurationNotRead?.runnerKeysNotALayer ?? [];
|
|
31768
|
+
const nonChecksMatchingNoStep = report.errors?.configurationNotRead?.nonChecksMatchingNoStep ?? [];
|
|
31769
|
+
const nonChecksNotAStepName = report.errors?.configurationNotRead?.nonChecksNotAStepName ?? [];
|
|
31770
31770
|
if (wrongKinds.length === 0 && unknownKeys.length === 0 && runnerKeysNotALayer.length === 0 && nonChecksMatchingNoStep.length === 0 && nonChecksNotAStepName.length === 0)
|
|
31771
31771
|
return [];
|
|
31772
31772
|
return [
|
|
@@ -32770,6 +32770,9 @@ function listFault(items, item, where) {
|
|
|
32770
32770
|
return null;
|
|
32771
32771
|
}
|
|
32772
32772
|
function fieldsFault(record, shape, where) {
|
|
32773
|
+
for (const [old, replacement] of Object.entries(shape.retired ?? {}))
|
|
32774
|
+
if (record[old] !== void 0 && record[replacement] === void 0)
|
|
32775
|
+
return message("shape-field-missing" /* ShapeFieldMissing */, { path: fieldOf(where, replacement).path });
|
|
32773
32776
|
for (const [key, field] of Object.entries(shape.fields)) {
|
|
32774
32777
|
const position = fieldOf(where, key);
|
|
32775
32778
|
if (record[key] === void 0) {
|
|
@@ -32883,7 +32886,7 @@ var init_inputShapes = __esm({
|
|
|
32883
32886
|
errors: {
|
|
32884
32887
|
fields: {
|
|
32885
32888
|
scenarioCodes: { list: "anything" },
|
|
32886
|
-
|
|
32889
|
+
configurationNotRead: {
|
|
32887
32890
|
fields: {
|
|
32888
32891
|
keysNotRead: { list: "anything" },
|
|
32889
32892
|
ofWrongKind: { list: "anything" },
|
|
@@ -32892,7 +32895,8 @@ var init_inputShapes = __esm({
|
|
|
32892
32895
|
nonChecksNotAStepName: { list: "anything" }
|
|
32893
32896
|
}
|
|
32894
32897
|
}
|
|
32895
|
-
}
|
|
32898
|
+
},
|
|
32899
|
+
retired: { configuration: "configurationNotRead" }
|
|
32896
32900
|
},
|
|
32897
32901
|
scenarioCodes: {
|
|
32898
32902
|
fields: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spec-controller",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.220",
|
|
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.220"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|