spec-controller 0.1.217 → 0.1.219
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 +14 -8
- package/dist/spec-reconciliation.schema.json +7 -23
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -11459,14 +11459,14 @@ var init_scnTags = __esm({
|
|
|
11459
11459
|
});
|
|
11460
11460
|
|
|
11461
11461
|
// ../core/dist/domain/corpusCounts.js
|
|
11462
|
-
function untaggedScenarioId({ feature,
|
|
11463
|
-
return `${feature} : ${
|
|
11462
|
+
function untaggedScenarioId({ feature, title }) {
|
|
11463
|
+
return `${feature} : ${title}`;
|
|
11464
11464
|
}
|
|
11465
11465
|
function sharedScnCodesOf(files) {
|
|
11466
11466
|
const byCode = /* @__PURE__ */ new Map();
|
|
11467
11467
|
for (const { feature, taggedScenarios } of files) {
|
|
11468
11468
|
for (const { scnId, name } of taggedScenarios) {
|
|
11469
|
-
byCode.set(scnId, [...byCode.get(scnId) ?? [], { feature,
|
|
11469
|
+
byCode.set(scnId, [...byCode.get(scnId) ?? [], { feature, title: name }]);
|
|
11470
11470
|
}
|
|
11471
11471
|
}
|
|
11472
11472
|
return [...byCode].filter(([, scenarios]) => scenarios.length > 1).map(([scnId, scenarios]) => ({ scnId, scenarios })).sort((a, b) => a.scnId.localeCompare(b.scnId));
|
|
@@ -11475,7 +11475,7 @@ function corpusCountsOf(files) {
|
|
|
11475
11475
|
const raw = files.reduce((n, f) => n + f.rawScnOccurrences, 0);
|
|
11476
11476
|
const scenarioCount = files.reduce((n, f) => n + f.taggedScenarios.length, 0);
|
|
11477
11477
|
const tagOccurrences = files.reduce((n, f) => n + f.tagScnOccurrences, 0);
|
|
11478
|
-
const untagged = files.flatMap(({ feature, untaggedScenarios }) => untaggedScenarios.map((
|
|
11478
|
+
const untagged = files.flatMap(({ feature, untaggedScenarios }) => untaggedScenarios.map((title) => ({ feature, title }))).sort((a, b) => a.feature.localeCompare(b.feature) || a.title.localeCompare(b.title));
|
|
11479
11479
|
return evidenceObligations(raw, scenarioCount, untagged, sharedScnCodesOf(files), tagOccurrences);
|
|
11480
11480
|
}
|
|
11481
11481
|
function evidenceObligations(raw, scenarioCount, untaggedScenarios = [], sharedScnCodes = [], tagOccurrences = scenarioCount) {
|
|
@@ -28108,7 +28108,7 @@ function pipelineReadings(input) {
|
|
|
28108
28108
|
};
|
|
28109
28109
|
}
|
|
28110
28110
|
function untaggedScenariosAmong(features) {
|
|
28111
|
-
return features.flatMap((parsed) => untaggedScenariosOf(parsed).map((
|
|
28111
|
+
return features.flatMap((parsed) => untaggedScenariosOf(parsed).map((title) => untaggedScenarioId({ feature: parsed.file, title })));
|
|
28112
28112
|
}
|
|
28113
28113
|
function evidenceReconciliationFromSources(input) {
|
|
28114
28114
|
const { packageJson } = input;
|
|
@@ -32216,7 +32216,7 @@ function sharedScnCodeLines(shared, scenarios) {
|
|
|
32216
32216
|
return [];
|
|
32217
32217
|
return [
|
|
32218
32218
|
`- ${CORE_MESSAGES[CoreMessage.SharedScnCodes](scenarios, shared.length)}`,
|
|
32219
|
-
...shared.map((code) => ` - ${code.scnId}: ${code.scenarios.map((s) => `${s.feature} : ${s.
|
|
32219
|
+
...shared.map((code) => ` - ${code.scnId}: ${code.scenarios.map((s) => `${s.feature} : ${s.title}`).join("; ")}`)
|
|
32220
32220
|
];
|
|
32221
32221
|
}
|
|
32222
32222
|
function ledgerTableLines(claims, columns, stepsByQualityCheckKind) {
|
|
@@ -32789,7 +32789,7 @@ function entriesFault(record, shape, where) {
|
|
|
32789
32789
|
}
|
|
32790
32790
|
return null;
|
|
32791
32791
|
}
|
|
32792
|
-
var VITEST_REPORT, JUNIT_REPORT, RSPEC_REPORT, CUCUMBER_REPORT, CI_STEP_RECORD, PACKAGE_MANIFEST, SAVED_RECONCILIATION, TOP;
|
|
32792
|
+
var VITEST_REPORT, JUNIT_REPORT, RSPEC_REPORT, CUCUMBER_REPORT, CI_STEP_RECORD, PACKAGE_MANIFEST, SCENARIO_NAME, SAVED_RECONCILIATION, TOP;
|
|
32793
32793
|
var init_inputShapes = __esm({
|
|
32794
32794
|
"src/ingest/inputShapes.ts"() {
|
|
32795
32795
|
"use strict";
|
|
@@ -32852,6 +32852,7 @@ var init_inputShapes = __esm({
|
|
|
32852
32852
|
keys: (key) => featureCodeOf(key) !== null
|
|
32853
32853
|
};
|
|
32854
32854
|
PACKAGE_MANIFEST = { fields: { scripts: { entries: "string" } } };
|
|
32855
|
+
SCENARIO_NAME = { fields: { title: "string" }, required: ["title"] };
|
|
32855
32856
|
SAVED_RECONCILIATION = {
|
|
32856
32857
|
fields: {
|
|
32857
32858
|
runProvenance: { fields: { corpus: "string" }, required: ["corpus"] },
|
|
@@ -32893,7 +32894,12 @@ var init_inputShapes = __esm({
|
|
|
32893
32894
|
}
|
|
32894
32895
|
}
|
|
32895
32896
|
},
|
|
32896
|
-
scenarioCodes: {
|
|
32897
|
+
scenarioCodes: {
|
|
32898
|
+
fields: {
|
|
32899
|
+
untaggedScenarios: { list: SCENARIO_NAME },
|
|
32900
|
+
sharedScnCodes: { list: { fields: { scenarios: { list: SCENARIO_NAME } } } }
|
|
32901
|
+
}
|
|
32902
|
+
}
|
|
32897
32903
|
},
|
|
32898
32904
|
required: ["runProvenance", "summary", "claimReconciliations"]
|
|
32899
32905
|
};
|
|
@@ -347,7 +347,7 @@
|
|
|
347
347
|
"untaggedScenarios": {
|
|
348
348
|
"type": "array",
|
|
349
349
|
"items": {
|
|
350
|
-
"$ref": "#/definitions/
|
|
350
|
+
"$ref": "#/definitions/ScenarioName"
|
|
351
351
|
}
|
|
352
352
|
},
|
|
353
353
|
"sharedScnCodes": {
|
|
@@ -359,21 +359,22 @@
|
|
|
359
359
|
},
|
|
360
360
|
"additionalProperties": false
|
|
361
361
|
},
|
|
362
|
-
"
|
|
362
|
+
"ScenarioName": {
|
|
363
363
|
"type": "object",
|
|
364
364
|
"properties": {
|
|
365
365
|
"feature": {
|
|
366
366
|
"type": "string"
|
|
367
367
|
},
|
|
368
|
-
"
|
|
368
|
+
"title": {
|
|
369
369
|
"type": "string"
|
|
370
370
|
}
|
|
371
371
|
},
|
|
372
372
|
"required": [
|
|
373
373
|
"feature",
|
|
374
|
-
"
|
|
374
|
+
"title"
|
|
375
375
|
],
|
|
376
|
-
"additionalProperties": false
|
|
376
|
+
"additionalProperties": false,
|
|
377
|
+
"description": "A scenario, named by its feature file and its title."
|
|
377
378
|
},
|
|
378
379
|
"SharedScnCode": {
|
|
379
380
|
"type": "object",
|
|
@@ -384,7 +385,7 @@
|
|
|
384
385
|
"scenarios": {
|
|
385
386
|
"type": "array",
|
|
386
387
|
"items": {
|
|
387
|
-
"$ref": "#/definitions/
|
|
388
|
+
"$ref": "#/definitions/ScenarioName"
|
|
388
389
|
}
|
|
389
390
|
}
|
|
390
391
|
},
|
|
@@ -1090,23 +1091,6 @@
|
|
|
1090
1091
|
}
|
|
1091
1092
|
]
|
|
1092
1093
|
},
|
|
1093
|
-
"ScenarioName": {
|
|
1094
|
-
"type": "object",
|
|
1095
|
-
"properties": {
|
|
1096
|
-
"feature": {
|
|
1097
|
-
"type": "string"
|
|
1098
|
-
},
|
|
1099
|
-
"title": {
|
|
1100
|
-
"type": "string"
|
|
1101
|
-
}
|
|
1102
|
-
},
|
|
1103
|
-
"required": [
|
|
1104
|
-
"feature",
|
|
1105
|
-
"title"
|
|
1106
|
-
],
|
|
1107
|
-
"additionalProperties": false,
|
|
1108
|
-
"description": "The scenario a duplicate-scn-code reconciliation reconciles, by its feature file and title."
|
|
1109
|
-
},
|
|
1110
1094
|
"PendingItem": {
|
|
1111
1095
|
"type": "object",
|
|
1112
1096
|
"properties": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spec-controller",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.219",
|
|
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.219"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|