spec-controller 0.1.219 → 0.1.221
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 +24 -20
- package/dist/spec-reconciliation.schema.json +15 -15
- 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
|
}
|
|
@@ -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)
|
|
@@ -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 [
|
|
@@ -32365,7 +32365,7 @@ var init_markdown = __esm({
|
|
|
32365
32365
|
CORE_MESSAGES[CoreMessage.ClaimReconciliationsHeading],
|
|
32366
32366
|
"",
|
|
32367
32367
|
...ledgerTallyLines(report.summary.evidenceReconciliation.claimReconciliations),
|
|
32368
|
-
...censusLines(report.scenarioCodes, scenarioRows.length),
|
|
32368
|
+
...censusLines(report.summary.scenarioCodes, scenarioRows.length),
|
|
32369
32369
|
"",
|
|
32370
32370
|
...evidenceKeyLines(columns),
|
|
32371
32371
|
...ledgerTableLines(claims, columns, report.summary.evidenceObservations?.byQualityCheckKind ?? []),
|
|
@@ -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) {
|
|
@@ -32867,9 +32870,15 @@ var init_inputShapes = __esm({
|
|
|
32867
32870
|
}
|
|
32868
32871
|
}
|
|
32869
32872
|
},
|
|
32870
|
-
evidenceObservations: { fields: {} }
|
|
32873
|
+
evidenceObservations: { fields: {} },
|
|
32874
|
+
scenarioCodes: {
|
|
32875
|
+
fields: {
|
|
32876
|
+
untaggedScenarios: { list: SCENARIO_NAME },
|
|
32877
|
+
sharedScnCodes: { list: { fields: { scenarios: { list: SCENARIO_NAME } } } }
|
|
32878
|
+
}
|
|
32879
|
+
}
|
|
32871
32880
|
},
|
|
32872
|
-
required: ["evidenceReconciliation", "evidenceObservations"]
|
|
32881
|
+
required: ["evidenceReconciliation", "evidenceObservations", "scenarioCodes"]
|
|
32873
32882
|
},
|
|
32874
32883
|
claimReconciliations: {
|
|
32875
32884
|
list: {
|
|
@@ -32883,7 +32892,7 @@ var init_inputShapes = __esm({
|
|
|
32883
32892
|
errors: {
|
|
32884
32893
|
fields: {
|
|
32885
32894
|
scenarioCodes: { list: "anything" },
|
|
32886
|
-
|
|
32895
|
+
configurationNotRead: {
|
|
32887
32896
|
fields: {
|
|
32888
32897
|
keysNotRead: { list: "anything" },
|
|
32889
32898
|
ofWrongKind: { list: "anything" },
|
|
@@ -32892,13 +32901,8 @@ var init_inputShapes = __esm({
|
|
|
32892
32901
|
nonChecksNotAStepName: { list: "anything" }
|
|
32893
32902
|
}
|
|
32894
32903
|
}
|
|
32895
|
-
}
|
|
32896
|
-
|
|
32897
|
-
scenarioCodes: {
|
|
32898
|
-
fields: {
|
|
32899
|
-
untaggedScenarios: { list: SCENARIO_NAME },
|
|
32900
|
-
sharedScnCodes: { list: { fields: { scenarios: { list: SCENARIO_NAME } } } }
|
|
32901
|
-
}
|
|
32904
|
+
},
|
|
32905
|
+
retired: { configuration: "configurationNotRead" }
|
|
32902
32906
|
}
|
|
32903
32907
|
},
|
|
32904
32908
|
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": {
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
"$ref": "#/definitions/ScenarioCodeError"
|
|
137
137
|
}
|
|
138
138
|
},
|
|
139
|
-
"
|
|
139
|
+
"configurationNotRead": {
|
|
140
140
|
"type": "object",
|
|
141
141
|
"properties": {
|
|
142
142
|
"keysNotRead": {
|
|
@@ -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.221",
|
|
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.221"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|