spec-controller 0.1.224 → 0.1.226
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 +354 -330
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -11364,6 +11364,15 @@ function scenarioCodeErrorsAre(errors) {
|
|
|
11364
11364
|
return "misfilings";
|
|
11365
11365
|
return several === errors.length ? "several-codes" : "both";
|
|
11366
11366
|
}
|
|
11367
|
+
function scenarioCodeCleanlinessOf({ featureFiles, featureCodes }) {
|
|
11368
|
+
if (featureFiles === 0)
|
|
11369
|
+
return { kind: "no-feature-file" };
|
|
11370
|
+
if (featureCodes === 0)
|
|
11371
|
+
return { kind: "no-coded-scenario", featureFiles };
|
|
11372
|
+
if (featureCodes === featureFiles)
|
|
11373
|
+
return { kind: "each-file-own-code", featureFiles, featureCodes };
|
|
11374
|
+
return { kind: "others-no-feature-code", featureFiles, featureCodes, noFeatureCode: featureFiles - featureCodes };
|
|
11375
|
+
}
|
|
11367
11376
|
function scenarioCodesOf(tags) {
|
|
11368
11377
|
return attributionOf(tags.filter((tag) => SCN_CODE.test(tag)));
|
|
11369
11378
|
}
|
|
@@ -27618,8 +27627,8 @@ function recognisedRunners(steps, nameOf3, scripts, runners, shell) {
|
|
|
27618
27627
|
})));
|
|
27619
27628
|
}
|
|
27620
27629
|
function countedRunners(steps, dispositionOf, nameOf3, scripts, runners, shell) {
|
|
27621
|
-
const
|
|
27622
|
-
return recognisedRunners(
|
|
27630
|
+
const counted = stepsInAccountingOrder(steps).filter((step) => dispositionOf(step) === "runner");
|
|
27631
|
+
return recognisedRunners(counted, nameOf3, scripts, runners, shell);
|
|
27623
27632
|
}
|
|
27624
27633
|
var WORKFLOW_FILE_THEN_COLON, jobKeyOf, byCodeUnit, byWorkflowThenJob, stepsInAccountingOrder, workflowsReadInOrder, COUNTED_AS, noStepsOf;
|
|
27625
27634
|
var init_uncitedFitnessFunctions = __esm({
|
|
@@ -27782,9 +27791,6 @@ var init_provenance = __esm({
|
|
|
27782
27791
|
});
|
|
27783
27792
|
|
|
27784
27793
|
// ../core/dist/domain/renderInput.js
|
|
27785
|
-
function featureFilesWithNoFeatureCodeOf({ featureFiles, featureCodes }) {
|
|
27786
|
-
return featureFiles - featureCodes;
|
|
27787
|
-
}
|
|
27788
27794
|
function scenarioCodesOf2(population, obligations) {
|
|
27789
27795
|
if (!population && !obligations)
|
|
27790
27796
|
return void 0;
|
|
@@ -28235,7 +28241,7 @@ var init_model = __esm({
|
|
|
28235
28241
|
});
|
|
28236
28242
|
|
|
28237
28243
|
// ../core/dist/render/messages.js
|
|
28238
|
-
var QUALITY_CHECK_FAULT_MESSAGES, CoreMessage, CoreError, SATISFIED, MISSING, DUPLICATE_SCN_CODE, CITED_WITH_NO_SCENARIO, NO_ONE_SCENARIO_CAN_TAKE, RUNNERS_PLACE,
|
|
28244
|
+
var QUALITY_CHECK_FAULT_MESSAGES, CoreMessage, CoreError, SATISFIED, MISSING, DUPLICATE_SCN_CODE, CITED_WITH_NO_SCENARIO, NO_ONE_SCENARIO_CAN_TAKE, RUNNERS_PLACE, CORE_MESSAGES;
|
|
28239
28245
|
var init_messages4 = __esm({
|
|
28240
28246
|
"../core/dist/render/messages.js"() {
|
|
28241
28247
|
"use strict";
|
|
@@ -28245,151 +28251,106 @@ var init_messages4 = __esm({
|
|
|
28245
28251
|
[QualityCheckFaultCode.EvidenceDivergesFromOutcome]: (fault) => `QualityCheckReconciliation invariant (@SCN-LDG-030): outcome "${fault.outcome}" has the ${fault.evidence === "evidence-obligation" ? "evidence obligation (debit)" : "evidence observation"} side ${fault.presenceForOutcome} for that outcome, but it was ${fault.presenceFound}.`
|
|
28246
28252
|
};
|
|
28247
28253
|
(function(CoreMessage2) {
|
|
28248
|
-
CoreMessage2[CoreMessage2["
|
|
28249
|
-
CoreMessage2[CoreMessage2["
|
|
28250
|
-
CoreMessage2[CoreMessage2["
|
|
28251
|
-
CoreMessage2[CoreMessage2["
|
|
28252
|
-
CoreMessage2[CoreMessage2["
|
|
28253
|
-
CoreMessage2[CoreMessage2["
|
|
28254
|
-
CoreMessage2[CoreMessage2["
|
|
28255
|
-
CoreMessage2[CoreMessage2["
|
|
28256
|
-
CoreMessage2[CoreMessage2["
|
|
28257
|
-
CoreMessage2[CoreMessage2["
|
|
28258
|
-
CoreMessage2[CoreMessage2["
|
|
28259
|
-
CoreMessage2[CoreMessage2["
|
|
28260
|
-
CoreMessage2[CoreMessage2["
|
|
28261
|
-
CoreMessage2[CoreMessage2["
|
|
28262
|
-
CoreMessage2[CoreMessage2["
|
|
28263
|
-
CoreMessage2[CoreMessage2["
|
|
28264
|
-
CoreMessage2[CoreMessage2["
|
|
28265
|
-
CoreMessage2[CoreMessage2["
|
|
28266
|
-
CoreMessage2[CoreMessage2["
|
|
28267
|
-
CoreMessage2[CoreMessage2["
|
|
28268
|
-
CoreMessage2[CoreMessage2["
|
|
28269
|
-
CoreMessage2[CoreMessage2["
|
|
28270
|
-
CoreMessage2[CoreMessage2["
|
|
28271
|
-
CoreMessage2[CoreMessage2["
|
|
28272
|
-
CoreMessage2[CoreMessage2["
|
|
28273
|
-
CoreMessage2[CoreMessage2["
|
|
28274
|
-
CoreMessage2[CoreMessage2["
|
|
28275
|
-
CoreMessage2[CoreMessage2["
|
|
28276
|
-
CoreMessage2[CoreMessage2["
|
|
28277
|
-
CoreMessage2[CoreMessage2["
|
|
28278
|
-
CoreMessage2[CoreMessage2["
|
|
28279
|
-
CoreMessage2[CoreMessage2["
|
|
28280
|
-
CoreMessage2[CoreMessage2["
|
|
28281
|
-
CoreMessage2[CoreMessage2["
|
|
28282
|
-
CoreMessage2[CoreMessage2["
|
|
28283
|
-
CoreMessage2[CoreMessage2["
|
|
28284
|
-
CoreMessage2[CoreMessage2["
|
|
28285
|
-
CoreMessage2[CoreMessage2["
|
|
28286
|
-
CoreMessage2[CoreMessage2["
|
|
28287
|
-
CoreMessage2[CoreMessage2["
|
|
28288
|
-
CoreMessage2[CoreMessage2["
|
|
28289
|
-
CoreMessage2[CoreMessage2["
|
|
28290
|
-
CoreMessage2[CoreMessage2["
|
|
28291
|
-
CoreMessage2[CoreMessage2["
|
|
28292
|
-
CoreMessage2[CoreMessage2["
|
|
28293
|
-
CoreMessage2[CoreMessage2["
|
|
28294
|
-
CoreMessage2[CoreMessage2["
|
|
28295
|
-
CoreMessage2[CoreMessage2["
|
|
28296
|
-
CoreMessage2[CoreMessage2["
|
|
28297
|
-
CoreMessage2[CoreMessage2["
|
|
28298
|
-
CoreMessage2[CoreMessage2["
|
|
28299
|
-
CoreMessage2[CoreMessage2["
|
|
28300
|
-
CoreMessage2[CoreMessage2["
|
|
28301
|
-
CoreMessage2[CoreMessage2["
|
|
28302
|
-
CoreMessage2[CoreMessage2["
|
|
28303
|
-
CoreMessage2[CoreMessage2["
|
|
28304
|
-
CoreMessage2[CoreMessage2["
|
|
28305
|
-
CoreMessage2[CoreMessage2["
|
|
28306
|
-
CoreMessage2[CoreMessage2["
|
|
28307
|
-
CoreMessage2[CoreMessage2["
|
|
28308
|
-
CoreMessage2[CoreMessage2["
|
|
28309
|
-
CoreMessage2[CoreMessage2["
|
|
28310
|
-
CoreMessage2[CoreMessage2["
|
|
28311
|
-
CoreMessage2[CoreMessage2["
|
|
28312
|
-
CoreMessage2[CoreMessage2["
|
|
28313
|
-
CoreMessage2[CoreMessage2["
|
|
28314
|
-
CoreMessage2[CoreMessage2["
|
|
28315
|
-
CoreMessage2[CoreMessage2["
|
|
28316
|
-
CoreMessage2[CoreMessage2["
|
|
28317
|
-
CoreMessage2[CoreMessage2["
|
|
28318
|
-
CoreMessage2[CoreMessage2["
|
|
28319
|
-
CoreMessage2[CoreMessage2["
|
|
28320
|
-
CoreMessage2[CoreMessage2["
|
|
28321
|
-
CoreMessage2[CoreMessage2["
|
|
28322
|
-
CoreMessage2[CoreMessage2["
|
|
28323
|
-
CoreMessage2[CoreMessage2["
|
|
28324
|
-
CoreMessage2[CoreMessage2["
|
|
28325
|
-
CoreMessage2[CoreMessage2["
|
|
28326
|
-
CoreMessage2[CoreMessage2["
|
|
28327
|
-
CoreMessage2[CoreMessage2["
|
|
28328
|
-
CoreMessage2[CoreMessage2["
|
|
28329
|
-
CoreMessage2[CoreMessage2["
|
|
28330
|
-
CoreMessage2[CoreMessage2["
|
|
28331
|
-
CoreMessage2[CoreMessage2["
|
|
28332
|
-
CoreMessage2[CoreMessage2["
|
|
28333
|
-
CoreMessage2[CoreMessage2["
|
|
28334
|
-
CoreMessage2[CoreMessage2["
|
|
28335
|
-
CoreMessage2[CoreMessage2["
|
|
28336
|
-
CoreMessage2[CoreMessage2["
|
|
28337
|
-
CoreMessage2[CoreMessage2["StepAccountingNonChecksTerm"] = 89] = "StepAccountingNonChecksTerm";
|
|
28338
|
-
CoreMessage2[CoreMessage2["StepAccountingPlumbingTerm"] = 90] = "StepAccountingPlumbingTerm";
|
|
28339
|
-
CoreMessage2[CoreMessage2["StepAccountingAccountedForTerm"] = 91] = "StepAccountingAccountedForTerm";
|
|
28340
|
-
CoreMessage2[CoreMessage2["OutOfBalanceByFeatureHeading"] = 92] = "OutOfBalanceByFeatureHeading";
|
|
28341
|
-
CoreMessage2[CoreMessage2["ScenarioClaimReconciliationsOutOfBalance"] = 93] = "ScenarioClaimReconciliationsOutOfBalance";
|
|
28342
|
-
CoreMessage2[CoreMessage2["GroupedByFeature"] = 94] = "GroupedByFeature";
|
|
28343
|
-
CoreMessage2[CoreMessage2["NotGroupedByFeature"] = 95] = "NotGroupedByFeature";
|
|
28344
|
-
CoreMessage2[CoreMessage2["PhantomClaimReconciliations"] = 96] = "PhantomClaimReconciliations";
|
|
28345
|
-
CoreMessage2[CoreMessage2["UnnamedClaimReconciliations"] = 97] = "UnnamedClaimReconciliations";
|
|
28346
|
-
CoreMessage2[CoreMessage2["AndJoiner"] = 98] = "AndJoiner";
|
|
28347
|
-
CoreMessage2[CoreMessage2["ByFeatureTableHeader"] = 99] = "ByFeatureTableHeader";
|
|
28348
|
-
CoreMessage2[CoreMessage2["NoScnCodeScenarios"] = 100] = "NoScnCodeScenarios";
|
|
28349
|
-
CoreMessage2[CoreMessage2["ClaimReconciliationsHeading"] = 101] = "ClaimReconciliationsHeading";
|
|
28350
|
-
CoreMessage2[CoreMessage2["ClaimReconciliationTally"] = 102] = "ClaimReconciliationTally";
|
|
28351
|
-
CoreMessage2[CoreMessage2["PhantomClaimTally"] = 103] = "PhantomClaimTally";
|
|
28352
|
-
CoreMessage2[CoreMessage2["UnnamedClaimTally"] = 104] = "UnnamedClaimTally";
|
|
28353
|
-
CoreMessage2[CoreMessage2["ExcludedScnOccurrences"] = 105] = "ExcludedScnOccurrences";
|
|
28354
|
-
CoreMessage2[CoreMessage2["UntaggedScenarios"] = 106] = "UntaggedScenarios";
|
|
28355
|
-
CoreMessage2[CoreMessage2["SharedScnCodes"] = 107] = "SharedScnCodes";
|
|
28356
|
-
CoreMessage2[CoreMessage2["SharedScnCodeScenario"] = 108] = "SharedScnCodeScenario";
|
|
28357
|
-
CoreMessage2[CoreMessage2["ClaimColumn"] = 109] = "ClaimColumn";
|
|
28358
|
-
CoreMessage2[CoreMessage2["VerdictColumn"] = 110] = "VerdictColumn";
|
|
28359
|
-
CoreMessage2[CoreMessage2["ReconcilingItemsColumn"] = 111] = "ReconcilingItemsColumn";
|
|
28360
|
-
CoreMessage2[CoreMessage2["CiStepsColumn"] = 112] = "CiStepsColumn";
|
|
28361
|
-
CoreMessage2[CoreMessage2["EvidenceCellKey"] = 113] = "EvidenceCellKey";
|
|
28362
|
-
CoreMessage2[CoreMessage2["WatermelonItemKey"] = 114] = "WatermelonItemKey";
|
|
28363
|
-
CoreMessage2[CoreMessage2["PendingItem"] = 115] = "PendingItem";
|
|
28364
|
-
CoreMessage2[CoreMessage2["PendingItemFor"] = 116] = "PendingItemFor";
|
|
28365
|
-
CoreMessage2[CoreMessage2["CheckStepNoOutcome"] = 117] = "CheckStepNoOutcome";
|
|
28366
|
-
CoreMessage2[CoreMessage2["CheckStepSkipped"] = 118] = "CheckStepSkipped";
|
|
28367
|
-
CoreMessage2[CoreMessage2["CheckStepEnded"] = 119] = "CheckStepEnded";
|
|
28368
|
-
CoreMessage2[CoreMessage2["AmbiguousNamedStep"] = 120] = "AmbiguousNamedStep";
|
|
28369
|
-
CoreMessage2[CoreMessage2["AmbiguousUnnamedStep"] = 121] = "AmbiguousUnnamedStep";
|
|
28370
|
-
CoreMessage2[CoreMessage2["OutcomeSatisfied"] = 122] = "OutcomeSatisfied";
|
|
28371
|
-
CoreMessage2[CoreMessage2["OutcomeMissing"] = 123] = "OutcomeMissing";
|
|
28372
|
-
CoreMessage2[CoreMessage2["OutcomeFailing"] = 124] = "OutcomeFailing";
|
|
28373
|
-
CoreMessage2[CoreMessage2["OutcomeWatermelon"] = 125] = "OutcomeWatermelon";
|
|
28374
|
-
CoreMessage2[CoreMessage2["OutcomeNoScnCode"] = 126] = "OutcomeNoScnCode";
|
|
28375
|
-
CoreMessage2[CoreMessage2["OutcomeDuplicateScnCode"] = 127] = "OutcomeDuplicateScnCode";
|
|
28376
|
-
CoreMessage2[CoreMessage2["OutcomeCitesUnknownScenario"] = 128] = "OutcomeCitesUnknownScenario";
|
|
28377
|
-
CoreMessage2[CoreMessage2["OutcomeCitesNoScenario"] = 129] = "OutcomeCitesNoScenario";
|
|
28378
|
-
CoreMessage2[CoreMessage2["OutcomeNoEvidenceObligation"] = 130] = "OutcomeNoEvidenceObligation";
|
|
28379
|
-
CoreMessage2[CoreMessage2["OutcomeBroken"] = 131] = "OutcomeBroken";
|
|
28380
|
-
CoreMessage2[CoreMessage2["OutcomeBothMissing"] = 132] = "OutcomeBothMissing";
|
|
28381
|
-
CoreMessage2[CoreMessage2["ObservationPassed"] = 133] = "ObservationPassed";
|
|
28382
|
-
CoreMessage2[CoreMessage2["ObservationFailed"] = 134] = "ObservationFailed";
|
|
28383
|
-
CoreMessage2[CoreMessage2["UnnamedClaimGroupCounts"] = 135] = "UnnamedClaimGroupCounts";
|
|
28384
|
-
CoreMessage2[CoreMessage2["UnnamedClaimCiSteps"] = 136] = "UnnamedClaimCiSteps";
|
|
28385
|
-
CoreMessage2[CoreMessage2["UnnamedClaimFailedNames"] = 137] = "UnnamedClaimFailedNames";
|
|
28386
|
-
CoreMessage2[CoreMessage2["SeveralScnCodes"] = 138] = "SeveralScnCodes";
|
|
28387
|
-
CoreMessage2[CoreMessage2["SharedScnCode"] = 139] = "SharedScnCode";
|
|
28254
|
+
CoreMessage2[CoreMessage2["ErrorsInTheInputsHeading"] = 0] = "ErrorsInTheInputsHeading";
|
|
28255
|
+
CoreMessage2[CoreMessage2["ConfigurationNotReadHeading"] = 1] = "ConfigurationNotReadHeading";
|
|
28256
|
+
CoreMessage2[CoreMessage2["ScenarioCodeErrorsHeading"] = 2] = "ScenarioCodeErrorsHeading";
|
|
28257
|
+
CoreMessage2[CoreMessage2["ReconciliationTotalsHeading"] = 3] = "ReconciliationTotalsHeading";
|
|
28258
|
+
CoreMessage2[CoreMessage2["ReconciliationTotalsClaimReconciliationTerm"] = 4] = "ReconciliationTotalsClaimReconciliationTerm";
|
|
28259
|
+
CoreMessage2[CoreMessage2["ReconciliationTotalsReconciliationLineTerm"] = 5] = "ReconciliationTotalsReconciliationLineTerm";
|
|
28260
|
+
CoreMessage2[CoreMessage2["ReconciliationTotalsEvidenceObligationTerm"] = 6] = "ReconciliationTotalsEvidenceObligationTerm";
|
|
28261
|
+
CoreMessage2[CoreMessage2["ReconciliationTotalsEvidenceObservationTerm"] = 7] = "ReconciliationTotalsEvidenceObservationTerm";
|
|
28262
|
+
CoreMessage2[CoreMessage2["SubjectColumn"] = 8] = "SubjectColumn";
|
|
28263
|
+
CoreMessage2[CoreMessage2["TotalColumn"] = 9] = "TotalColumn";
|
|
28264
|
+
CoreMessage2[CoreMessage2["BalancedColumn"] = 10] = "BalancedColumn";
|
|
28265
|
+
CoreMessage2[CoreMessage2["OutOfBalanceColumn"] = 11] = "OutOfBalanceColumn";
|
|
28266
|
+
CoreMessage2[CoreMessage2["DetailColumn"] = 12] = "DetailColumn";
|
|
28267
|
+
CoreMessage2[CoreMessage2["ClaimReconciliationSubject"] = 13] = "ClaimReconciliationSubject";
|
|
28268
|
+
CoreMessage2[CoreMessage2["ReconciliationLineSubject"] = 14] = "ReconciliationLineSubject";
|
|
28269
|
+
CoreMessage2[CoreMessage2["PendingTally"] = 15] = "PendingTally";
|
|
28270
|
+
CoreMessage2[CoreMessage2["EvidenceObservationsHeading"] = 16] = "EvidenceObservationsHeading";
|
|
28271
|
+
CoreMessage2[CoreMessage2["EvidenceObservationsSum"] = 17] = "EvidenceObservationsSum";
|
|
28272
|
+
CoreMessage2[CoreMessage2["EvidenceObservationsTableHeader"] = 18] = "EvidenceObservationsTableHeader";
|
|
28273
|
+
CoreMessage2[CoreMessage2["FitnessRunner"] = 19] = "FitnessRunner";
|
|
28274
|
+
CoreMessage2[CoreMessage2["FitnessCiStep"] = 20] = "FitnessCiStep";
|
|
28275
|
+
CoreMessage2[CoreMessage2["RunnerLayerNamesNone"] = 21] = "RunnerLayerNamesNone";
|
|
28276
|
+
CoreMessage2[CoreMessage2["RunnerLayerUnnamed"] = 22] = "RunnerLayerUnnamed";
|
|
28277
|
+
CoreMessage2[CoreMessage2["NoStepCountedAsItsRunnerRunsIt"] = 23] = "NoStepCountedAsItsRunnerRunsIt";
|
|
28278
|
+
CoreMessage2[CoreMessage2["ReconcilerStep"] = 24] = "ReconcilerStep";
|
|
28279
|
+
CoreMessage2[CoreMessage2["ReconcilerReconciles"] = 25] = "ReconcilerReconciles";
|
|
28280
|
+
CoreMessage2[CoreMessage2["ReconcilerRecords"] = 26] = "ReconcilerRecords";
|
|
28281
|
+
CoreMessage2[CoreMessage2["StepNonCheck"] = 27] = "StepNonCheck";
|
|
28282
|
+
CoreMessage2[CoreMessage2["StepAccountingHeading"] = 28] = "StepAccountingHeading";
|
|
28283
|
+
CoreMessage2[CoreMessage2["StepAccountingTableHeader"] = 29] = "StepAccountingTableHeader";
|
|
28284
|
+
CoreMessage2[CoreMessage2["StepAccountingTotal"] = 30] = "StepAccountingTotal";
|
|
28285
|
+
CoreMessage2[CoreMessage2["StepAccountingRunnersLabel"] = 31] = "StepAccountingRunnersLabel";
|
|
28286
|
+
CoreMessage2[CoreMessage2["StepAccountingReconcilerLabel"] = 32] = "StepAccountingReconcilerLabel";
|
|
28287
|
+
CoreMessage2[CoreMessage2["StepAccountingNonChecksLabel"] = 33] = "StepAccountingNonChecksLabel";
|
|
28288
|
+
CoreMessage2[CoreMessage2["StepAccountingNotAppliedLabel"] = 34] = "StepAccountingNotAppliedLabel";
|
|
28289
|
+
CoreMessage2[CoreMessage2["StepAccountingNoWorkflowRead"] = 35] = "StepAccountingNoWorkflowRead";
|
|
28290
|
+
CoreMessage2[CoreMessage2["StepAccountingPlumbingLabel"] = 36] = "StepAccountingPlumbingLabel";
|
|
28291
|
+
CoreMessage2[CoreMessage2["StepAccountingCandidatesTerm"] = 37] = "StepAccountingCandidatesTerm";
|
|
28292
|
+
CoreMessage2[CoreMessage2["StepAccountingReconcilerTerm"] = 38] = "StepAccountingReconcilerTerm";
|
|
28293
|
+
CoreMessage2[CoreMessage2["StepAccountingNonChecksTerm"] = 39] = "StepAccountingNonChecksTerm";
|
|
28294
|
+
CoreMessage2[CoreMessage2["StepAccountingPlumbingTerm"] = 40] = "StepAccountingPlumbingTerm";
|
|
28295
|
+
CoreMessage2[CoreMessage2["StepAccountingAccountedForTerm"] = 41] = "StepAccountingAccountedForTerm";
|
|
28296
|
+
CoreMessage2[CoreMessage2["OutOfBalanceByFeatureHeading"] = 42] = "OutOfBalanceByFeatureHeading";
|
|
28297
|
+
CoreMessage2[CoreMessage2["ScenarioClaimReconciliationsOutOfBalance"] = 43] = "ScenarioClaimReconciliationsOutOfBalance";
|
|
28298
|
+
CoreMessage2[CoreMessage2["GroupedByFeature"] = 44] = "GroupedByFeature";
|
|
28299
|
+
CoreMessage2[CoreMessage2["NotGroupedByFeature"] = 45] = "NotGroupedByFeature";
|
|
28300
|
+
CoreMessage2[CoreMessage2["PhantomClaimReconciliations"] = 46] = "PhantomClaimReconciliations";
|
|
28301
|
+
CoreMessage2[CoreMessage2["UnnamedClaimReconciliations"] = 47] = "UnnamedClaimReconciliations";
|
|
28302
|
+
CoreMessage2[CoreMessage2["AndJoiner"] = 48] = "AndJoiner";
|
|
28303
|
+
CoreMessage2[CoreMessage2["ByFeatureTableHeader"] = 49] = "ByFeatureTableHeader";
|
|
28304
|
+
CoreMessage2[CoreMessage2["NoScnCodeScenarios"] = 50] = "NoScnCodeScenarios";
|
|
28305
|
+
CoreMessage2[CoreMessage2["ClaimReconciliationsHeading"] = 51] = "ClaimReconciliationsHeading";
|
|
28306
|
+
CoreMessage2[CoreMessage2["ClaimReconciliationTally"] = 52] = "ClaimReconciliationTally";
|
|
28307
|
+
CoreMessage2[CoreMessage2["PhantomClaimTally"] = 53] = "PhantomClaimTally";
|
|
28308
|
+
CoreMessage2[CoreMessage2["UnnamedClaimTally"] = 54] = "UnnamedClaimTally";
|
|
28309
|
+
CoreMessage2[CoreMessage2["ExcludedScnOccurrences"] = 55] = "ExcludedScnOccurrences";
|
|
28310
|
+
CoreMessage2[CoreMessage2["UntaggedScenarios"] = 56] = "UntaggedScenarios";
|
|
28311
|
+
CoreMessage2[CoreMessage2["SharedScnCodes"] = 57] = "SharedScnCodes";
|
|
28312
|
+
CoreMessage2[CoreMessage2["SharedScnCodeScenario"] = 58] = "SharedScnCodeScenario";
|
|
28313
|
+
CoreMessage2[CoreMessage2["ClaimColumn"] = 59] = "ClaimColumn";
|
|
28314
|
+
CoreMessage2[CoreMessage2["VerdictColumn"] = 60] = "VerdictColumn";
|
|
28315
|
+
CoreMessage2[CoreMessage2["ReconcilingItemsColumn"] = 61] = "ReconcilingItemsColumn";
|
|
28316
|
+
CoreMessage2[CoreMessage2["CiStepsColumn"] = 62] = "CiStepsColumn";
|
|
28317
|
+
CoreMessage2[CoreMessage2["EvidenceCellKey"] = 63] = "EvidenceCellKey";
|
|
28318
|
+
CoreMessage2[CoreMessage2["WatermelonItemKey"] = 64] = "WatermelonItemKey";
|
|
28319
|
+
CoreMessage2[CoreMessage2["PendingItem"] = 65] = "PendingItem";
|
|
28320
|
+
CoreMessage2[CoreMessage2["PendingItemFor"] = 66] = "PendingItemFor";
|
|
28321
|
+
CoreMessage2[CoreMessage2["CheckStepNoOutcome"] = 67] = "CheckStepNoOutcome";
|
|
28322
|
+
CoreMessage2[CoreMessage2["CheckStepSkipped"] = 68] = "CheckStepSkipped";
|
|
28323
|
+
CoreMessage2[CoreMessage2["CheckStepEnded"] = 69] = "CheckStepEnded";
|
|
28324
|
+
CoreMessage2[CoreMessage2["AmbiguousNamedStep"] = 70] = "AmbiguousNamedStep";
|
|
28325
|
+
CoreMessage2[CoreMessage2["AmbiguousUnnamedStep"] = 71] = "AmbiguousUnnamedStep";
|
|
28326
|
+
CoreMessage2[CoreMessage2["OutcomeSatisfied"] = 72] = "OutcomeSatisfied";
|
|
28327
|
+
CoreMessage2[CoreMessage2["OutcomeMissing"] = 73] = "OutcomeMissing";
|
|
28328
|
+
CoreMessage2[CoreMessage2["OutcomeFailing"] = 74] = "OutcomeFailing";
|
|
28329
|
+
CoreMessage2[CoreMessage2["OutcomeWatermelon"] = 75] = "OutcomeWatermelon";
|
|
28330
|
+
CoreMessage2[CoreMessage2["OutcomeNoScnCode"] = 76] = "OutcomeNoScnCode";
|
|
28331
|
+
CoreMessage2[CoreMessage2["OutcomeDuplicateScnCode"] = 77] = "OutcomeDuplicateScnCode";
|
|
28332
|
+
CoreMessage2[CoreMessage2["OutcomeCitesUnknownScenario"] = 78] = "OutcomeCitesUnknownScenario";
|
|
28333
|
+
CoreMessage2[CoreMessage2["OutcomeCitesNoScenario"] = 79] = "OutcomeCitesNoScenario";
|
|
28334
|
+
CoreMessage2[CoreMessage2["OutcomeNoEvidenceObligation"] = 80] = "OutcomeNoEvidenceObligation";
|
|
28335
|
+
CoreMessage2[CoreMessage2["OutcomeBroken"] = 81] = "OutcomeBroken";
|
|
28336
|
+
CoreMessage2[CoreMessage2["OutcomeBothMissing"] = 82] = "OutcomeBothMissing";
|
|
28337
|
+
CoreMessage2[CoreMessage2["ObservationPassed"] = 83] = "ObservationPassed";
|
|
28338
|
+
CoreMessage2[CoreMessage2["ObservationFailed"] = 84] = "ObservationFailed";
|
|
28339
|
+
CoreMessage2[CoreMessage2["UnnamedClaimGroupCounts"] = 85] = "UnnamedClaimGroupCounts";
|
|
28340
|
+
CoreMessage2[CoreMessage2["UnnamedClaimFailedNames"] = 86] = "UnnamedClaimFailedNames";
|
|
28341
|
+
CoreMessage2[CoreMessage2["SeveralScnCodes"] = 87] = "SeveralScnCodes";
|
|
28342
|
+
CoreMessage2[CoreMessage2["SharedScnCode"] = 88] = "SharedScnCode";
|
|
28388
28343
|
CoreMessage2["ConfigurationNotReadIntro"] = "configuration-not-read-intro";
|
|
28389
28344
|
CoreMessage2["ConfigurationWrongKind"] = "configuration-wrong-kind";
|
|
28390
28345
|
CoreMessage2["ConfigurationUnknownKey"] = "configuration-unknown-key";
|
|
28391
|
-
CoreMessage2["
|
|
28346
|
+
CoreMessage2["ProofsNeverRan"] = "proofs-never-ran";
|
|
28392
28347
|
CoreMessage2["ScenarioCodeErrorCount"] = "scenario-code-error-count";
|
|
28348
|
+
CoreMessage2["NoFeatureFileJudged"] = "no-feature-file-judged";
|
|
28349
|
+
CoreMessage2["CleanNoCodedScenario"] = "clean-no-coded-scenario";
|
|
28350
|
+
CoreMessage2["CleanEachFileOwnCode"] = "clean-each-file-own-code";
|
|
28351
|
+
CoreMessage2["CleanOthersNoFeatureCode"] = "clean-others-no-feature-code";
|
|
28352
|
+
CoreMessage2["UnnamedClaimCiSteps"] = "unnamed-claim-ci-steps";
|
|
28353
|
+
CoreMessage2["UnnamedClaimCiStepsNamed"] = "unnamed-claim-ci-steps-named";
|
|
28393
28354
|
CoreMessage2["ScenarioCodeErrorsFraming"] = "scenario-code-errors-framing";
|
|
28394
28355
|
CoreMessage2["SeveralScnCodesFraming"] = "several-scn-codes-framing";
|
|
28395
28356
|
CoreMessage2["MisfiledAndSeveralScnCodesFraming"] = "misfiled-and-several-scn-codes-framing";
|
|
@@ -28407,6 +28368,43 @@ var init_messages4 = __esm({
|
|
|
28407
28368
|
CoreMessage2["ManifestKindString"] = "manifest-kind-string";
|
|
28408
28369
|
CoreMessage2["ManifestKindStringOrNull"] = "manifest-kind-string-or-null";
|
|
28409
28370
|
CoreMessage2["ManifestKindOfType"] = "manifest-kind-of-type";
|
|
28371
|
+
CoreMessage2["ReportTitle"] = "report-title";
|
|
28372
|
+
CoreMessage2["RunProvenanceHeading"] = "run-provenance-heading";
|
|
28373
|
+
CoreMessage2["ProvenanceTargetRepo"] = "provenance-target-repo";
|
|
28374
|
+
CoreMessage2["ProvenanceTargetRepoUntargeted"] = "provenance-target-repo-untargeted";
|
|
28375
|
+
CoreMessage2["ProvenanceNoInputs"] = "provenance-no-inputs";
|
|
28376
|
+
CoreMessage2["ProvenanceInputs"] = "provenance-inputs";
|
|
28377
|
+
CoreMessage2["ProvenanceNotSupplied"] = "provenance-not-supplied";
|
|
28378
|
+
CoreMessage2["ProvenanceRunTimestamp"] = "provenance-run-timestamp";
|
|
28379
|
+
CoreMessage2["ProvenanceSourceSha"] = "provenance-source-sha";
|
|
28380
|
+
CoreMessage2["ProvenanceSourceShaUnknown"] = "provenance-source-sha-unknown";
|
|
28381
|
+
CoreMessage2["ProvenanceToolSha"] = "provenance-tool-sha";
|
|
28382
|
+
CoreMessage2["ProvenanceToolShaUnknown"] = "provenance-tool-sha-unknown";
|
|
28383
|
+
CoreMessage2["ProvenanceToolVersion"] = "provenance-tool-version";
|
|
28384
|
+
CoreMessage2["RunIntegrityHeading"] = "run-integrity-heading";
|
|
28385
|
+
CoreMessage2["RunUnsound"] = "run-unsound";
|
|
28386
|
+
CoreMessage2["BrokenEvidenceNotNamed"] = "broken-evidence-not-named";
|
|
28387
|
+
CoreMessage2["BrokenEvidenceWhatBroke"] = "broken-evidence-what-broke";
|
|
28388
|
+
CoreMessage2["BrokenEvidenceNoMessage"] = "broken-evidence-no-message";
|
|
28389
|
+
CoreMessage2["SummaryHeading"] = "summary-heading";
|
|
28390
|
+
CoreMessage2["RunVerdictHeading"] = "run-verdict-heading";
|
|
28391
|
+
CoreMessage2["VerdictExit"] = "verdict-exit";
|
|
28392
|
+
CoreMessage2["ScenarioCodeErrorsHeadline"] = "scenario-code-errors-headline";
|
|
28393
|
+
CoreMessage2["ScenarioCodeErrorsGloss"] = "scenario-code-errors-gloss";
|
|
28394
|
+
CoreMessage2["SeveralScnCodesGloss"] = "several-scn-codes-gloss";
|
|
28395
|
+
CoreMessage2["MisfiledAndSeveralScnCodesGloss"] = "misfiled-and-several-scn-codes-gloss";
|
|
28396
|
+
CoreMessage2["AlsoOutOfBalance"] = "also-out-of-balance";
|
|
28397
|
+
CoreMessage2["OutOfBalanceHeadline"] = "out-of-balance-headline";
|
|
28398
|
+
CoreMessage2["OutOfBalanceGloss"] = "out-of-balance-gloss";
|
|
28399
|
+
CoreMessage2["UnsoundHeadline"] = "unsound-headline";
|
|
28400
|
+
CoreMessage2["UnsoundGloss"] = "unsound-gloss";
|
|
28401
|
+
CoreMessage2["PendingHeadline"] = "pending-headline";
|
|
28402
|
+
CoreMessage2["PendingGloss"] = "pending-gloss";
|
|
28403
|
+
CoreMessage2["BalancedHeadline"] = "balanced-headline";
|
|
28404
|
+
CoreMessage2["BalancedGloss"] = "balanced-gloss";
|
|
28405
|
+
CoreMessage2["NothingToReconcileHeadline"] = "nothing-to-reconcile-headline";
|
|
28406
|
+
CoreMessage2["NothingToReconcileGloss"] = "nothing-to-reconcile-gloss";
|
|
28407
|
+
CoreMessage2["PendingItemsOutstanding"] = "pending-items-outstanding";
|
|
28410
28408
|
})(CoreMessage || (CoreMessage = {}));
|
|
28411
28409
|
(function(CoreError2) {
|
|
28412
28410
|
CoreError2["ConfigurationWrongKind"] = "configuration-wrong-kind";
|
|
@@ -28425,61 +28423,10 @@ var init_messages4 = __esm({
|
|
|
28425
28423
|
CITED_WITH_NO_SCENARIO = "cited scenario ids with no real scenario";
|
|
28426
28424
|
NO_ONE_SCENARIO_CAN_TAKE = "evidence observations no one scenario can take";
|
|
28427
28425
|
RUNNERS_PLACE = "`specController.runners` in its `package.json`";
|
|
28428
|
-
IN_ITS_FILE = "every coded scenario sits in the file its code names";
|
|
28429
28426
|
CORE_MESSAGES = {
|
|
28430
|
-
[CoreMessage.ReportTitle]: "# Evidence Reconciliation",
|
|
28431
|
-
[CoreMessage.RunProvenanceHeading]: "## Run provenance",
|
|
28432
|
-
[CoreMessage.ProvenanceTargetRepo]: (target) => `Target repo: ${target}`,
|
|
28433
|
-
[CoreMessage.ProvenanceTargetRepoUntargeted]: (target, origin) => `Target repo: ${target} (no --target given; origin is ${origin})`,
|
|
28434
|
-
[CoreMessage.ProvenanceNoInputs]: "Inputs: none specified",
|
|
28435
|
-
[CoreMessage.ProvenanceInputs]: "Inputs:",
|
|
28436
|
-
[CoreMessage.ProvenanceNotSupplied]: (flags) => `Not supplied: ${flags}`,
|
|
28437
|
-
[CoreMessage.ProvenanceRunTimestamp]: (runStartUtc) => `Run timestamp (UTC): ${runStartUtc}`,
|
|
28438
|
-
[CoreMessage.ProvenanceSourceSha]: (sha) => `Source SHA: ${sha}`,
|
|
28439
|
-
[CoreMessage.ProvenanceSourceShaUnknown]: "unknown (non-git target)",
|
|
28440
|
-
[CoreMessage.ProvenanceToolSha]: (sha) => `Tool SHA: ${sha}`,
|
|
28441
|
-
[CoreMessage.ProvenanceToolShaUnknown]: "unknown (not a git checkout)",
|
|
28442
|
-
[CoreMessage.ProvenanceToolVersion]: (version2) => `Tool version: ${version2}`,
|
|
28443
28427
|
[CoreMessage.ErrorsInTheInputsHeading]: "## Errors in the inputs",
|
|
28444
28428
|
[CoreMessage.ConfigurationNotReadHeading]: "### Configuration not read",
|
|
28445
|
-
[CoreMessage.RunIntegrityHeading]: "## Run integrity: unsound",
|
|
28446
|
-
[CoreMessage.OneProofNeverRan]: "1 Evidence Observation never ran to a result, so the behaviour it proves was never exercised.",
|
|
28447
|
-
[CoreMessage.ProofsNeverRan]: (count) => `${count} Evidence Observations never ran to a result, so the behaviours they prove were never exercised.`,
|
|
28448
|
-
[CoreMessage.RunUnsound]: (proofs) => `**This run is unsound.** ${proofs} A broken proof sits on the row of the claim it names, as every Evidence Observation does. On a scenario's row, an Evidence Obligation of its kind of quality check that no other proof answers reads "${MISSING}", though its test may already be written. A broken proof on the row of a phantom claim or of the unnamed claim may be the proof behind any item of its kind of quality check that reads "${MISSING}", on any row. Fix what stopped each proof listed below from running, such as its test, the code it loads, its step definitions, its runner or the CI job that runs it. Then run them again and regenerate this report.`,
|
|
28449
|
-
[CoreMessage.BrokenEvidenceNotNamed]: "(evidence not named by the runner)",
|
|
28450
|
-
[CoreMessage.BrokenEvidenceWhatBroke]: (locator) => `${locator} \u2014 what broke:`,
|
|
28451
|
-
[CoreMessage.BrokenEvidenceNoMessage]: "(no message reported by the runner)",
|
|
28452
28429
|
[CoreMessage.ScenarioCodeErrorsHeading]: "### Scenario code errors",
|
|
28453
|
-
[CoreMessage.FeatureFileNoun]: "feature file",
|
|
28454
|
-
[CoreMessage.FeatureCodeNoun]: "feature code",
|
|
28455
|
-
[CoreMessage.NoFeatureFileJudged]: "No feature file was judged, so no scenario code is vouched for.",
|
|
28456
|
-
[CoreMessage.ScenarioCodesCleanOver]: (featureFiles, featureCodes) => `Scenario codes are clean over ${featureFiles} carrying ${featureCodes} (a feature code is the tag heading a feature file, the \`<FFF>\` that each \`@SCN-<FFF>-<NNN>\` code in that file repeats)`,
|
|
28457
|
-
[CoreMessage.CleanNoCodedScenario]: (over, them) => `${over}: no scenario in ${them} carries an @SCN code to misfile.`,
|
|
28458
|
-
[CoreMessage.CleanEachFileOwnCode]: (over) => `${over}: each file carries a code of its own, and ${IN_ITS_FILE}.`,
|
|
28459
|
-
[CoreMessage.CleanOthersNoFeatureCode]: (over, noFeatureCode, hold) => `${over}: each code is carried by exactly one file, ${IN_ITS_FILE}, and the other ${noFeatureCode} ${hold} no coded scenario.`,
|
|
28460
|
-
[CoreMessage.ItPronoun]: "it",
|
|
28461
|
-
[CoreMessage.ThemPronoun]: "them",
|
|
28462
|
-
[CoreMessage.HoldsVerb]: "holds",
|
|
28463
|
-
[CoreMessage.HoldVerb]: "hold",
|
|
28464
|
-
[CoreMessage.SummaryHeading]: "## Summary",
|
|
28465
|
-
[CoreMessage.RunVerdictHeading]: "### Run verdict",
|
|
28466
|
-
[CoreMessage.VerdictExit]: (code) => `exit ${code}`,
|
|
28467
|
-
[CoreMessage.ScenarioCodeErrorsHeadline]: "**SCENARIO CODE ERRORS**",
|
|
28468
|
-
[CoreMessage.ScenarioCodeErrorsGloss]: (alsoOutOfBalance) => `the corpus files a scenario code under the wrong feature, so the by-feature grouping cannot be trusted. Read \`### Scenario code errors\` above.${alsoOutOfBalance} This run FAILED.`,
|
|
28469
|
-
[CoreMessage.SeveralScnCodesGloss]: (alsoOutOfBalance) => `a scenario in the corpus carries more than one scenario code, so no account was raised for it under any of them. Read \`### Scenario code errors\` above.${alsoOutOfBalance} This run FAILED.`,
|
|
28470
|
-
[CoreMessage.MisfiledAndSeveralScnCodesGloss]: (alsoOutOfBalance) => `the corpus files a scenario code under the wrong feature, so the by-feature grouping cannot be trusted, and a scenario in it carries more than one scenario code, so no account was raised for it under any of them. Read \`### Scenario code errors\` above.${alsoOutOfBalance} This run FAILED.`,
|
|
28471
|
-
[CoreMessage.AlsoOutOfBalance]: " The accounts do not agree either: at least one Claim Reconciliation carries a reconciling item.",
|
|
28472
|
-
[CoreMessage.OutOfBalanceHeadline]: "**OUT-OF-BALANCE**",
|
|
28473
|
-
[CoreMessage.OutOfBalanceGloss]: "the accounts do not agree. At least one Claim Reconciliation carries a reconciling item. This run FAILED.",
|
|
28474
|
-
[CoreMessage.UnsoundHeadline]: "**UNSOUND**",
|
|
28475
|
-
[CoreMessage.UnsoundGloss]: "the evidence could not be TRUSTED to reconcile. A proof never ran, so the behaviour it proves was never exercised. Read the run-integrity stamp above before any count below it.",
|
|
28476
|
-
[CoreMessage.PendingHeadline]: "**PENDING**",
|
|
28477
|
-
[CoreMessage.PendingGloss]: "every Claim Reconciliation balances, but Pending Items are outstanding and this run treats a deferral as a failure (`--strict`). This run FAILED.",
|
|
28478
|
-
[CoreMessage.BalancedHeadline]: "**BALANCED**",
|
|
28479
|
-
[CoreMessage.BalancedGloss]: `every Claim Reconciliation balances: every ${SATISFIED}.`,
|
|
28480
|
-
[CoreMessage.NothingToReconcileHeadline]: "**NOTHING TO RECONCILE**",
|
|
28481
|
-
[CoreMessage.NothingToReconcileGloss]: (corpusDir) => `there were no accounts to agree. The ledger carries no Claim Reconciliation at all, so this run has NO BASIS FOR A VERDICT \u2014 the corpus \`${corpusDir}\` carried no scenario and nothing was produced. Not balanced: a run that examined nothing must not certify.`,
|
|
28482
|
-
[CoreMessage.PendingItemsOutstanding]: "Pending Items are outstanding \u2014 deferred, not out-of-balance, so the verdict stands. A run that treats a deferral as a failure gives exit 3 under `--strict`.",
|
|
28483
28430
|
[CoreMessage.ReconciliationTotalsHeading]: "### Reconciliation totals",
|
|
28484
28431
|
[CoreMessage.ReconciliationTotalsClaimReconciliationTerm]: "A Claim Reconciliation is one row of the ledger: one claim, reconciled in its Quality Check Reconciliations. A Quality Check Reconciliation reconciles the evidence of one kind of quality check within the claim: the claim's Evidence Obligation of that kind, when it has one, against its Evidence Observations of that kind. A claim is a scenario, a phantom claim (a code that evidence cites and no scenario carries, which the table below calls an unknown Scenario) or the unnamed claim (the one row for the evidence that no scenario or phantom claim takes).",
|
|
28485
28432
|
[CoreMessage.ReconciliationTotalsReconciliationLineTerm]: "A Reconciliation line is one line of a Quality Check Reconciliation, with its own outcome: each Evidence Observation it holds is one line, and its Evidence Obligation is one more when no Evidence Observation that ran answers it. A scenario with no Evidence Obligation, no Pending Item and no Evidence Observation still has one Quality Check Reconciliation, holding neither, and it is a single line. No line stands in for another: a scenario whose one Evidence Obligation two passing tests answer adds one to the Claim Reconciliation total and two to the Reconciliation line total.",
|
|
@@ -28573,11 +28520,6 @@ var init_messages4 = __esm({
|
|
|
28573
28520
|
[CoreMessage.ObservationPassed]: "passed",
|
|
28574
28521
|
[CoreMessage.ObservationFailed]: "failed",
|
|
28575
28522
|
[CoreMessage.UnnamedClaimGroupCounts]: (ran, passed, failed) => `${ran} ran, ${passed} passed, ${failed} failed`,
|
|
28576
|
-
[CoreMessage.UnnamedClaimCiSteps]: (names) => {
|
|
28577
|
-
const named = names.map((name) => name.trim()).filter((name) => name !== "");
|
|
28578
|
-
const listed = named.length === 0 ? "" : `: ${named.join(", ")}`;
|
|
28579
|
-
return `${names.length} CI step${names.length === 1 ? "" : "s"}${listed}`;
|
|
28580
|
-
},
|
|
28581
28523
|
[CoreMessage.UnnamedClaimFailedNames]: (names) => `(failed: ${names.join(" / ")})`,
|
|
28582
28524
|
[CoreMessage.SeveralScnCodes]: (codes) => `${codes.length} scenario codes cite ${codes.join(", ")} \u2014 a test cites exactly one scenario, so this one credits none of them.`,
|
|
28583
28525
|
[CoreMessage.SharedScnCode]: (code) => `${code} is carried by more than one scenario, so evidence citing it credits none of them.`
|
|
@@ -28656,84 +28598,6 @@ var init_reportedName = __esm({
|
|
|
28656
28598
|
}
|
|
28657
28599
|
});
|
|
28658
28600
|
|
|
28659
|
-
// ../core/dist/render/runVerdict.js
|
|
28660
|
-
function scenarioCodeErrorsGloss(errors, alsoOutOfBalance) {
|
|
28661
|
-
switch (scenarioCodeErrorsAre(errors)) {
|
|
28662
|
-
case "misfilings":
|
|
28663
|
-
return CORE_MESSAGES[CoreMessage.ScenarioCodeErrorsGloss](alsoOutOfBalance);
|
|
28664
|
-
case "several-codes":
|
|
28665
|
-
return CORE_MESSAGES[CoreMessage.SeveralScnCodesGloss](alsoOutOfBalance);
|
|
28666
|
-
case "both":
|
|
28667
|
-
return CORE_MESSAGES[CoreMessage.MisfiledAndSeveralScnCodesGloss](alsoOutOfBalance);
|
|
28668
|
-
}
|
|
28669
|
-
}
|
|
28670
|
-
function scenarioCodeErrorsVerdict(ledger, errors) {
|
|
28671
|
-
const alsoOutOfBalance = isBalanced(ledger) ? "" : CORE_MESSAGES[CoreMessage.AlsoOutOfBalance];
|
|
28672
|
-
return {
|
|
28673
|
-
headline: CORE_MESSAGES[CoreMessage.ScenarioCodeErrorsHeadline],
|
|
28674
|
-
gloss: scenarioCodeErrorsGloss(errors, alsoOutOfBalance)
|
|
28675
|
-
};
|
|
28676
|
-
}
|
|
28677
|
-
function nothingToReconcile(corpusDir) {
|
|
28678
|
-
return {
|
|
28679
|
-
headline: CORE_MESSAGES[CoreMessage.NothingToReconcileHeadline],
|
|
28680
|
-
gloss: CORE_MESSAGES[CoreMessage.NothingToReconcileGloss](corpusDir)
|
|
28681
|
-
};
|
|
28682
|
-
}
|
|
28683
|
-
function verdictFor2(verdict, ledger, corpusDir, codeErrors) {
|
|
28684
|
-
switch (verdict) {
|
|
28685
|
-
case "nothing-to-reconcile":
|
|
28686
|
-
return nothingToReconcile(corpusDir);
|
|
28687
|
-
case "unsound":
|
|
28688
|
-
return UNSOUND;
|
|
28689
|
-
case "scenario-code-errors":
|
|
28690
|
-
return scenarioCodeErrorsVerdict(ledger, codeErrors);
|
|
28691
|
-
case "out-of-balance":
|
|
28692
|
-
return OUT_OF_BALANCE;
|
|
28693
|
-
case "pending":
|
|
28694
|
-
return PENDING;
|
|
28695
|
-
case "balanced":
|
|
28696
|
-
return BALANCED;
|
|
28697
|
-
}
|
|
28698
|
-
}
|
|
28699
|
-
var OUT_OF_BALANCE, UNSOUND, PENDING, BALANCED, runVerdictSection;
|
|
28700
|
-
var init_runVerdict2 = __esm({
|
|
28701
|
-
"../core/dist/render/runVerdict.js"() {
|
|
28702
|
-
"use strict";
|
|
28703
|
-
init_ledger();
|
|
28704
|
-
init_scnTags();
|
|
28705
|
-
init_messages4();
|
|
28706
|
-
OUT_OF_BALANCE = {
|
|
28707
|
-
headline: CORE_MESSAGES[CoreMessage.OutOfBalanceHeadline],
|
|
28708
|
-
gloss: CORE_MESSAGES[CoreMessage.OutOfBalanceGloss]
|
|
28709
|
-
};
|
|
28710
|
-
UNSOUND = {
|
|
28711
|
-
headline: CORE_MESSAGES[CoreMessage.UnsoundHeadline],
|
|
28712
|
-
gloss: CORE_MESSAGES[CoreMessage.UnsoundGloss]
|
|
28713
|
-
};
|
|
28714
|
-
PENDING = {
|
|
28715
|
-
headline: CORE_MESSAGES[CoreMessage.PendingHeadline],
|
|
28716
|
-
gloss: CORE_MESSAGES[CoreMessage.PendingGloss]
|
|
28717
|
-
};
|
|
28718
|
-
BALANCED = {
|
|
28719
|
-
headline: CORE_MESSAGES[CoreMessage.BalancedHeadline],
|
|
28720
|
-
gloss: CORE_MESSAGES[CoreMessage.BalancedGloss]
|
|
28721
|
-
};
|
|
28722
|
-
runVerdictSection = (report, exitCodeOf2) => {
|
|
28723
|
-
const verdict = report.summary.runVerdict;
|
|
28724
|
-
const line = verdictFor2(verdict, report, report.runProvenance.corpus, report.errors?.scenarioCodes ?? []);
|
|
28725
|
-
const exit = CORE_MESSAGES[CoreMessage.VerdictExit](exitCodeOf2(verdict));
|
|
28726
|
-
const lines = [CORE_MESSAGES[CoreMessage.RunVerdictHeading], "", `${line.headline} \u2014 ${line.gloss} (${exit})`];
|
|
28727
|
-
if (verdict === "balanced" && hasPendingItems(report)) {
|
|
28728
|
-
lines.push("");
|
|
28729
|
-
lines.push(CORE_MESSAGES[CoreMessage.PendingItemsOutstanding]);
|
|
28730
|
-
}
|
|
28731
|
-
lines.push("");
|
|
28732
|
-
return lines;
|
|
28733
|
-
};
|
|
28734
|
-
}
|
|
28735
|
-
});
|
|
28736
|
-
|
|
28737
28601
|
// ../core/dist/render/messages.en.json
|
|
28738
28602
|
var messages_en_default;
|
|
28739
28603
|
var init_messages_en = __esm({
|
|
@@ -28750,8 +28614,14 @@ var init_messages_en = __esm({
|
|
|
28750
28614
|
"manifest-kind-string": "a string",
|
|
28751
28615
|
"manifest-kind-string-or-null": "a string or null",
|
|
28752
28616
|
"manifest-kind-of-type": "a {type}",
|
|
28753
|
-
"
|
|
28754
|
-
"scenario-code-error-count": "{count} scenario code errors",
|
|
28617
|
+
"proofs-never-ran": "{count, plural, one {{count} Evidence Observation never ran to a result, so the behaviour it proves was never exercised.} other {{count} Evidence Observations never ran to a result, so the behaviours they prove were never exercised.}}",
|
|
28618
|
+
"scenario-code-error-count": "{count, plural, one {{count} scenario code error} other {{count} scenario code errors}}",
|
|
28619
|
+
"no-feature-file-judged": "No feature file was judged, so no scenario code is vouched for.",
|
|
28620
|
+
"clean-no-coded-scenario": "Scenario codes are clean over {featureFiles, plural, one {{featureFiles} feature file} other {{featureFiles} feature files}} carrying 0 feature codes (a feature code is the tag heading a feature file, the `<FFF>` that each `@SCN-<FFF>-<NNN>` code in that file repeats): no scenario in {featureFiles, plural, one {it} other {them}} carries an @SCN code to misfile.",
|
|
28621
|
+
"clean-each-file-own-code": "Scenario codes are clean over {featureFiles, plural, one {{featureFiles} feature file} other {{featureFiles} feature files}} carrying {featureCodes, plural, one {{featureCodes} feature code} other {{featureCodes} feature codes}} (a feature code is the tag heading a feature file, the `<FFF>` that each `@SCN-<FFF>-<NNN>` code in that file repeats): each file carries a code of its own, and every coded scenario sits in the file its code names.",
|
|
28622
|
+
"clean-others-no-feature-code": "Scenario codes are clean over {featureFiles, plural, one {{featureFiles} feature file} other {{featureFiles} feature files}} carrying {featureCodes, plural, one {{featureCodes} feature code} other {{featureCodes} feature codes}} (a feature code is the tag heading a feature file, the `<FFF>` that each `@SCN-<FFF>-<NNN>` code in that file repeats): each code is carried by exactly one file, every coded scenario sits in the file its code names, and the other {noFeatureCode} {noFeatureCode, plural, one {holds} other {hold}} no coded scenario.",
|
|
28623
|
+
"unnamed-claim-ci-steps": "{count, plural, one {{count} CI step} other {{count} CI steps}}",
|
|
28624
|
+
"unnamed-claim-ci-steps-named": "{count, plural, one {{count} CI step} other {{count} CI steps}}: {list}",
|
|
28755
28625
|
"scenario-code-errors-framing": "{count} \u2014 each misfiles a scenario code, so the by-feature cut below cannot be trusted, and the run fails (exit 1). Every account still reconciles as it would if the code were filed correctly.",
|
|
28756
28626
|
"several-scn-codes-framing": "{count} \u2014 each is a scenario carrying more than one scenario code, so no account was raised for it under any of them, and the run fails (exit 1).",
|
|
28757
28627
|
"misfiled-and-several-scn-codes-framing": "{count} \u2014 each either misfiles a scenario code, so the by-feature cut below cannot be trusted, or is a scenario carrying more than one scenario code, so no account was raised for it under any of them. The run fails (exit 1).",
|
|
@@ -28760,7 +28630,44 @@ var init_messages_en = __esm({
|
|
|
28760
28630
|
"foreign-scn-code-carried": "{file} carries the feature code @{featureCode}, but holds the scenario @{scnId}, whose feature part names {named}. A reconciliation's by-feature cut groups on the id, so it counts this scenario under {carrierCount, plural, one {{carriers}'s row, not {file}'s. Re-code the scenario for @{featureCode}, or move it to {carriers}.} other {the one row for {named}, which {carrierCount} feature files carry \u2014 {carriers} \u2014 so that row cannot say which of them it belongs to. Re-code the scenario for @{featureCode}, or move it once a single file carries {named}.}}",
|
|
28761
28631
|
"foreign-scn-code-no-carrier": "{file} carries the feature code @{featureCode}, but holds the scenario @{scnId}, whose feature part names {named}. A reconciliation's by-feature cut groups on the id, so it opens a row for {named}, which no feature file carries as its header code, so that row stands for no file. Re-code the scenario for @{featureCode}.",
|
|
28762
28632
|
"no-feature-code": "{file} carries no feature code, but its scenarios carry @SCN codes. A feature file is the class its scenarios' codes are filed under: give it a header code of its own, and code its scenarios for it.",
|
|
28763
|
-
"several-scn-codes": `{file}'s scenario "{scenario}" carries {codeCount} @SCN codes \u2014 {codes}. A scenario is one account, so it raises its evidence obligations under none of them, and a test citing any of them cites a code no scenario carries. Give it one code
|
|
28633
|
+
"several-scn-codes": `{file}'s scenario "{scenario}" carries {codeCount} @SCN codes \u2014 {codes}. A scenario is one account, so it raises its evidence obligations under none of them, and a test citing any of them cites a code no scenario carries. Give it one code.`,
|
|
28634
|
+
"report-title": "Evidence Reconciliation",
|
|
28635
|
+
"run-provenance-heading": "Run provenance",
|
|
28636
|
+
"provenance-target-repo": "Target repo: {target}",
|
|
28637
|
+
"provenance-target-repo-untargeted": "Target repo: {target} (no --target given; origin is {origin})",
|
|
28638
|
+
"provenance-no-inputs": "Inputs: none specified",
|
|
28639
|
+
"provenance-inputs": "Inputs:",
|
|
28640
|
+
"provenance-not-supplied": "Not supplied: {flags}",
|
|
28641
|
+
"provenance-run-timestamp": "Run timestamp (UTC): {runStartUtc}",
|
|
28642
|
+
"provenance-source-sha": "Source SHA: {sha}",
|
|
28643
|
+
"provenance-source-sha-unknown": "unknown (non-git target)",
|
|
28644
|
+
"provenance-tool-sha": "Tool SHA: {sha}",
|
|
28645
|
+
"provenance-tool-sha-unknown": "unknown (not a git checkout)",
|
|
28646
|
+
"provenance-tool-version": "Tool version: {version}",
|
|
28647
|
+
"run-integrity-heading": "Run integrity: unsound",
|
|
28648
|
+
"run-unsound": `**This run is unsound.** {proofs} A broken proof sits on the row of the claim it names, as every Evidence Observation does. On a scenario's row, an Evidence Obligation of its kind of quality check that no other proof answers reads "Evidence Observation is missing", though its test may already be written. A broken proof on the row of a phantom claim or of the unnamed claim may be the proof behind any item of its kind of quality check that reads "Evidence Observation is missing", on any row. Fix what stopped each proof listed below from running, such as its test, the code it loads, its step definitions, its runner or the CI job that runs it. Then run them again and regenerate this report.`,
|
|
28649
|
+
"broken-evidence-not-named": "(evidence not named by the runner)",
|
|
28650
|
+
"broken-evidence-what-broke": "{locator} \u2014 what broke:",
|
|
28651
|
+
"broken-evidence-no-message": "(no message reported by the runner)",
|
|
28652
|
+
"summary-heading": "Summary",
|
|
28653
|
+
"run-verdict-heading": "Run verdict",
|
|
28654
|
+
"verdict-exit": "exit {code}",
|
|
28655
|
+
"scenario-code-errors-headline": "**SCENARIO CODE ERRORS**",
|
|
28656
|
+
"scenario-code-errors-gloss": "the corpus files a scenario code under the wrong feature, so the by-feature grouping cannot be trusted. Read `{heading}` above.{alsoOutOfBalance} This run FAILED.",
|
|
28657
|
+
"several-scn-codes-gloss": "a scenario in the corpus carries more than one scenario code, so no account was raised for it under any of them. Read `{heading}` above.{alsoOutOfBalance} This run FAILED.",
|
|
28658
|
+
"misfiled-and-several-scn-codes-gloss": "the corpus files a scenario code under the wrong feature, so the by-feature grouping cannot be trusted, and a scenario in it carries more than one scenario code, so no account was raised for it under any of them. Read `{heading}` above.{alsoOutOfBalance} This run FAILED.",
|
|
28659
|
+
"also-out-of-balance": " The accounts do not agree either: at least one Claim Reconciliation carries a reconciling item.",
|
|
28660
|
+
"out-of-balance-headline": "**OUT-OF-BALANCE**",
|
|
28661
|
+
"out-of-balance-gloss": "the accounts do not agree. At least one Claim Reconciliation carries a reconciling item. This run FAILED.",
|
|
28662
|
+
"unsound-headline": "**UNSOUND**",
|
|
28663
|
+
"unsound-gloss": "the evidence could not be TRUSTED to reconcile. A proof never ran, so the behaviour it proves was never exercised. Read the run-integrity stamp above before any count below it.",
|
|
28664
|
+
"pending-headline": "**PENDING**",
|
|
28665
|
+
"pending-gloss": "every Claim Reconciliation balances, but Pending Items are outstanding and this run treats a deferral as a failure (`--strict`). This run FAILED.",
|
|
28666
|
+
"balanced-headline": "**BALANCED**",
|
|
28667
|
+
"balanced-gloss": "every Claim Reconciliation balances: every Evidence Observation satisfies its Evidence Obligation.",
|
|
28668
|
+
"nothing-to-reconcile-headline": "**NOTHING TO RECONCILE**",
|
|
28669
|
+
"nothing-to-reconcile-gloss": "there were no accounts to agree. The ledger carries no Claim Reconciliation at all, so this run has NO BASIS FOR A VERDICT \u2014 the corpus `{corpusDir}` carried no scenario and nothing was produced. Not balanced: a run that examined nothing must not certify.",
|
|
28670
|
+
"pending-items-outstanding": "Pending Items are outstanding \u2014 deferred, not out-of-balance, so the verdict stands. A run that treats a deferral as a failure gives exit 3 under `--strict`."
|
|
28764
28671
|
};
|
|
28765
28672
|
}
|
|
28766
28673
|
});
|
|
@@ -31564,6 +31471,96 @@ var init_coreText = __esm({
|
|
|
31564
31471
|
}
|
|
31565
31472
|
});
|
|
31566
31473
|
|
|
31474
|
+
// ../core/dist/render/heading.js
|
|
31475
|
+
var markdownHeading;
|
|
31476
|
+
var init_heading = __esm({
|
|
31477
|
+
"../core/dist/render/heading.js"() {
|
|
31478
|
+
"use strict";
|
|
31479
|
+
markdownHeading = (level, words2) => `${"#".repeat(level)} ${words2}`;
|
|
31480
|
+
}
|
|
31481
|
+
});
|
|
31482
|
+
|
|
31483
|
+
// ../core/dist/render/runVerdict.js
|
|
31484
|
+
function scenarioCodeErrorsGloss(errors, alsoOutOfBalance) {
|
|
31485
|
+
const values = { heading: CORE_MESSAGES[CoreMessage.ScenarioCodeErrorsHeading], alsoOutOfBalance };
|
|
31486
|
+
switch (scenarioCodeErrorsAre(errors)) {
|
|
31487
|
+
case "misfilings":
|
|
31488
|
+
return coreMessage(CoreMessage.ScenarioCodeErrorsGloss, values);
|
|
31489
|
+
case "several-codes":
|
|
31490
|
+
return coreMessage(CoreMessage.SeveralScnCodesGloss, values);
|
|
31491
|
+
case "both":
|
|
31492
|
+
return coreMessage(CoreMessage.MisfiledAndSeveralScnCodesGloss, values);
|
|
31493
|
+
}
|
|
31494
|
+
}
|
|
31495
|
+
function scenarioCodeErrorsVerdict(ledger, errors) {
|
|
31496
|
+
const alsoOutOfBalance = isBalanced(ledger) ? "" : coreMessage(CoreMessage.AlsoOutOfBalance);
|
|
31497
|
+
return {
|
|
31498
|
+
headline: coreMessage(CoreMessage.ScenarioCodeErrorsHeadline),
|
|
31499
|
+
gloss: scenarioCodeErrorsGloss(errors, alsoOutOfBalance)
|
|
31500
|
+
};
|
|
31501
|
+
}
|
|
31502
|
+
function nothingToReconcile(corpusDir) {
|
|
31503
|
+
return {
|
|
31504
|
+
headline: coreMessage(CoreMessage.NothingToReconcileHeadline),
|
|
31505
|
+
gloss: coreMessage(CoreMessage.NothingToReconcileGloss, { corpusDir })
|
|
31506
|
+
};
|
|
31507
|
+
}
|
|
31508
|
+
function verdictFor2(verdict, ledger, corpusDir, codeErrors) {
|
|
31509
|
+
switch (verdict) {
|
|
31510
|
+
case "nothing-to-reconcile":
|
|
31511
|
+
return nothingToReconcile(corpusDir);
|
|
31512
|
+
case "unsound":
|
|
31513
|
+
return UNSOUND;
|
|
31514
|
+
case "scenario-code-errors":
|
|
31515
|
+
return scenarioCodeErrorsVerdict(ledger, codeErrors);
|
|
31516
|
+
case "out-of-balance":
|
|
31517
|
+
return OUT_OF_BALANCE;
|
|
31518
|
+
case "pending":
|
|
31519
|
+
return PENDING;
|
|
31520
|
+
case "balanced":
|
|
31521
|
+
return BALANCED;
|
|
31522
|
+
}
|
|
31523
|
+
}
|
|
31524
|
+
var OUT_OF_BALANCE, UNSOUND, PENDING, BALANCED, runVerdictSection;
|
|
31525
|
+
var init_runVerdict2 = __esm({
|
|
31526
|
+
"../core/dist/render/runVerdict.js"() {
|
|
31527
|
+
"use strict";
|
|
31528
|
+
init_ledger();
|
|
31529
|
+
init_scnTags();
|
|
31530
|
+
init_messages4();
|
|
31531
|
+
init_coreText();
|
|
31532
|
+
init_heading();
|
|
31533
|
+
OUT_OF_BALANCE = {
|
|
31534
|
+
headline: coreMessage(CoreMessage.OutOfBalanceHeadline),
|
|
31535
|
+
gloss: coreMessage(CoreMessage.OutOfBalanceGloss)
|
|
31536
|
+
};
|
|
31537
|
+
UNSOUND = {
|
|
31538
|
+
headline: coreMessage(CoreMessage.UnsoundHeadline),
|
|
31539
|
+
gloss: coreMessage(CoreMessage.UnsoundGloss)
|
|
31540
|
+
};
|
|
31541
|
+
PENDING = {
|
|
31542
|
+
headline: coreMessage(CoreMessage.PendingHeadline),
|
|
31543
|
+
gloss: coreMessage(CoreMessage.PendingGloss)
|
|
31544
|
+
};
|
|
31545
|
+
BALANCED = {
|
|
31546
|
+
headline: coreMessage(CoreMessage.BalancedHeadline),
|
|
31547
|
+
gloss: coreMessage(CoreMessage.BalancedGloss)
|
|
31548
|
+
};
|
|
31549
|
+
runVerdictSection = (report, exitCodeOf2) => {
|
|
31550
|
+
const verdict = report.summary.runVerdict;
|
|
31551
|
+
const line = verdictFor2(verdict, report, report.runProvenance.corpus, report.errors?.scenarioCodes ?? []);
|
|
31552
|
+
const exit = coreMessage(CoreMessage.VerdictExit, { code: exitCodeOf2(verdict) });
|
|
31553
|
+
const lines = [markdownHeading(3, coreMessage(CoreMessage.RunVerdictHeading)), "", `${line.headline} \u2014 ${line.gloss} (${exit})`];
|
|
31554
|
+
if (verdict === "balanced" && hasPendingItems(report)) {
|
|
31555
|
+
lines.push("");
|
|
31556
|
+
lines.push(coreMessage(CoreMessage.PendingItemsOutstanding));
|
|
31557
|
+
}
|
|
31558
|
+
lines.push("");
|
|
31559
|
+
return lines;
|
|
31560
|
+
};
|
|
31561
|
+
}
|
|
31562
|
+
});
|
|
31563
|
+
|
|
31567
31564
|
// ../core/dist/render/errorEntry.js
|
|
31568
31565
|
var errorEntry;
|
|
31569
31566
|
var init_errorEntry = __esm({
|
|
@@ -31584,20 +31581,24 @@ function scenarioCodeErrorsFraming(errors, count) {
|
|
|
31584
31581
|
return coreMessage(CoreMessage.MisfiledAndSeveralScnCodesFraming, { count });
|
|
31585
31582
|
}
|
|
31586
31583
|
}
|
|
31587
|
-
function
|
|
31588
|
-
|
|
31589
|
-
|
|
31590
|
-
|
|
31591
|
-
|
|
31592
|
-
|
|
31593
|
-
|
|
31594
|
-
|
|
31584
|
+
function cleanStatement(cleanliness) {
|
|
31585
|
+
switch (cleanliness.kind) {
|
|
31586
|
+
case "no-feature-file":
|
|
31587
|
+
return coreMessage(CoreMessage.NoFeatureFileJudged);
|
|
31588
|
+
case "no-coded-scenario":
|
|
31589
|
+
return coreMessage(CoreMessage.CleanNoCodedScenario, { featureFiles: cleanliness.featureFiles });
|
|
31590
|
+
case "each-file-own-code":
|
|
31591
|
+
return coreMessage(CoreMessage.CleanEachFileOwnCode, {
|
|
31592
|
+
featureFiles: cleanliness.featureFiles,
|
|
31593
|
+
featureCodes: cleanliness.featureCodes
|
|
31594
|
+
});
|
|
31595
|
+
case "others-no-feature-code":
|
|
31596
|
+
return coreMessage(CoreMessage.CleanOthersNoFeatureCode, {
|
|
31597
|
+
featureFiles: cleanliness.featureFiles,
|
|
31598
|
+
featureCodes: cleanliness.featureCodes,
|
|
31599
|
+
noFeatureCode: cleanliness.noFeatureCode
|
|
31600
|
+
});
|
|
31595
31601
|
}
|
|
31596
|
-
if (featureCodes === featureFiles)
|
|
31597
|
-
return CORE_MESSAGES[CoreMessage.CleanEachFileOwnCode](over);
|
|
31598
|
-
const noFeatureCode = featureFilesWithNoFeatureCodeOf({ featureFiles, featureCodes });
|
|
31599
|
-
const hold = noFeatureCode === 1 ? CORE_MESSAGES[CoreMessage.HoldsVerb] : CORE_MESSAGES[CoreMessage.HoldVerb];
|
|
31600
|
-
return CORE_MESSAGES[CoreMessage.CleanOthersNoFeatureCode](over, noFeatureCode, hold);
|
|
31601
31602
|
}
|
|
31602
31603
|
function worded(error) {
|
|
31603
31604
|
if (error.kind === "duplicate-feature-code") {
|
|
@@ -31636,7 +31637,6 @@ var CODE_OF, scenarioCodeErrorsSection, scenarioCodesCleanStatement;
|
|
|
31636
31637
|
var init_scenarioCodeErrorsSection = __esm({
|
|
31637
31638
|
"../core/dist/render/scenarioCodeErrorsSection.js"() {
|
|
31638
31639
|
"use strict";
|
|
31639
|
-
init_renderInput();
|
|
31640
31640
|
init_scnTags();
|
|
31641
31641
|
init_messages4();
|
|
31642
31642
|
init_coreText();
|
|
@@ -31651,7 +31651,7 @@ var init_scenarioCodeErrorsSection = __esm({
|
|
|
31651
31651
|
const errors = report.errors?.scenarioCodes;
|
|
31652
31652
|
if (errors === void 0)
|
|
31653
31653
|
return [];
|
|
31654
|
-
const count =
|
|
31654
|
+
const count = coreMessage(CoreMessage.ScenarioCodeErrorCount, { count: errors.length });
|
|
31655
31655
|
return [
|
|
31656
31656
|
CORE_MESSAGES[CoreMessage.ScenarioCodeErrorsHeading],
|
|
31657
31657
|
"",
|
|
@@ -31667,11 +31667,9 @@ var init_scenarioCodeErrorsSection = __esm({
|
|
|
31667
31667
|
if (report.errors?.scenarioCodes !== void 0)
|
|
31668
31668
|
return [];
|
|
31669
31669
|
const { featureFiles, featureCodes } = report.summary.scenarioCodes ?? {};
|
|
31670
|
-
if (featureFiles
|
|
31670
|
+
if (typeof featureFiles !== "number" || typeof featureCodes !== "number")
|
|
31671
31671
|
return [];
|
|
31672
|
-
|
|
31673
|
-
return [CORE_MESSAGES[CoreMessage.NoFeatureFileJudged], ""];
|
|
31674
|
-
return [cleanStatement(featureFiles, featureCodes), ""];
|
|
31672
|
+
return [cleanStatement(scenarioCodeCleanlinessOf({ featureFiles, featureCodes })), ""];
|
|
31675
31673
|
};
|
|
31676
31674
|
}
|
|
31677
31675
|
});
|
|
@@ -31699,6 +31697,10 @@ function projectProvenanceObject(obj, inputNames) {
|
|
|
31699
31697
|
toolVersion: obj.toolVersion
|
|
31700
31698
|
};
|
|
31701
31699
|
}
|
|
31700
|
+
function provenanceInputsView(inputs) {
|
|
31701
|
+
const [first, ...rest] = inputs;
|
|
31702
|
+
return first === void 0 ? { kind: "none" } : { kind: "given", inputs: [first, ...rest] };
|
|
31703
|
+
}
|
|
31702
31704
|
var init_provenanceFacts = __esm({
|
|
31703
31705
|
"../core/dist/render/provenanceFacts.js"() {
|
|
31704
31706
|
"use strict";
|
|
@@ -31706,30 +31708,34 @@ var init_provenanceFacts = __esm({
|
|
|
31706
31708
|
});
|
|
31707
31709
|
|
|
31708
31710
|
// ../core/dist/render/provenanceSection.js
|
|
31711
|
+
function inputsLines(inputs) {
|
|
31712
|
+
switch (inputs.kind) {
|
|
31713
|
+
case "none":
|
|
31714
|
+
return [`- ${coreMessage(CoreMessage.ProvenanceNoInputs)}`];
|
|
31715
|
+
case "given":
|
|
31716
|
+
return [`- ${coreMessage(CoreMessage.ProvenanceInputs)}`, ...inputs.inputs.map(({ flag, value }) => ` - \`${flag} ${value}\``)];
|
|
31717
|
+
}
|
|
31718
|
+
}
|
|
31709
31719
|
var provenanceSection;
|
|
31710
31720
|
var init_provenanceSection = __esm({
|
|
31711
31721
|
"../core/dist/render/provenanceSection.js"() {
|
|
31712
31722
|
"use strict";
|
|
31713
31723
|
init_provenanceFacts();
|
|
31714
31724
|
init_messages4();
|
|
31725
|
+
init_coreText();
|
|
31726
|
+
init_heading();
|
|
31715
31727
|
provenanceSection = (report, inputNames) => {
|
|
31716
31728
|
const p = projectProvenanceObject(report.runProvenance, inputNames);
|
|
31717
|
-
const lines = [
|
|
31718
|
-
const targetRepo = p.targetOrigin === void 0 ?
|
|
31729
|
+
const lines = [markdownHeading(2, coreMessage(CoreMessage.RunProvenanceHeading)), ""];
|
|
31730
|
+
const targetRepo = p.targetOrigin === void 0 ? coreMessage(CoreMessage.ProvenanceTargetRepo, { target: p.target }) : coreMessage(CoreMessage.ProvenanceTargetRepoUntargeted, { target: p.target, origin: p.targetOrigin });
|
|
31719
31731
|
lines.push(`- ${targetRepo}`);
|
|
31720
|
-
|
|
31721
|
-
lines.push(`- ${CORE_MESSAGES[CoreMessage.ProvenanceNoInputs]}`);
|
|
31722
|
-
} else {
|
|
31723
|
-
lines.push(`- ${CORE_MESSAGES[CoreMessage.ProvenanceInputs]}`);
|
|
31724
|
-
for (const { flag, value } of p.inputs)
|
|
31725
|
-
lines.push(` - \`${flag} ${value}\``);
|
|
31726
|
-
}
|
|
31732
|
+
lines.push(...inputsLines(provenanceInputsView(p.inputs)));
|
|
31727
31733
|
if (p.absentInputs.length > 0)
|
|
31728
|
-
lines.push(`- ${
|
|
31729
|
-
lines.push(`- ${
|
|
31730
|
-
lines.push(`- ${
|
|
31731
|
-
lines.push(`- ${
|
|
31732
|
-
lines.push(`- ${
|
|
31734
|
+
lines.push(`- ${coreMessage(CoreMessage.ProvenanceNotSupplied, { flags: p.absentInputs.map((flag) => `\`${flag}\``).join(", ") })}`);
|
|
31735
|
+
lines.push(`- ${coreMessage(CoreMessage.ProvenanceRunTimestamp, { runStartUtc: p.runStartUtc })}`);
|
|
31736
|
+
lines.push(`- ${coreMessage(CoreMessage.ProvenanceSourceSha, { sha: p.sourceSha ?? coreMessage(CoreMessage.ProvenanceSourceShaUnknown) })}`);
|
|
31737
|
+
lines.push(`- ${coreMessage(CoreMessage.ProvenanceToolSha, { sha: p.toolSha ?? coreMessage(CoreMessage.ProvenanceToolShaUnknown) })}`);
|
|
31738
|
+
lines.push(`- ${coreMessage(CoreMessage.ProvenanceToolVersion, { version: p.toolVersion })}`);
|
|
31733
31739
|
lines.push("");
|
|
31734
31740
|
return lines;
|
|
31735
31741
|
};
|
|
@@ -32135,10 +32141,22 @@ function renderFileGroup(group) {
|
|
|
32135
32141
|
const failed = names.length === 0 ? "" : ` ${CORE_MESSAGES[CoreMessage.UnnamedClaimFailedNames](names)}`;
|
|
32136
32142
|
return `${group.qualityCheckKind}: ${OUTCOME_DESCRIPTION["cites-no-scenario"]}${quotedSuffix([reported(group.locator), said])} \u2014 ${counts}${failed}`;
|
|
32137
32143
|
}
|
|
32144
|
+
function unnamedClaimCiStepsViewOf(names) {
|
|
32145
|
+
const named = names.filter((name) => name !== "");
|
|
32146
|
+
return { count: names.length, named: named.length === 0 ? { kind: "none" } : { kind: "some", list: named.join(", ") } };
|
|
32147
|
+
}
|
|
32148
|
+
function unnamedClaimCiSteps({ count, named }) {
|
|
32149
|
+
switch (named.kind) {
|
|
32150
|
+
case "none":
|
|
32151
|
+
return coreMessage(CoreMessage.UnnamedClaimCiSteps, { count });
|
|
32152
|
+
case "some":
|
|
32153
|
+
return coreMessage(CoreMessage.UnnamedClaimCiStepsNamed, { count, list: named.list });
|
|
32154
|
+
}
|
|
32155
|
+
}
|
|
32138
32156
|
function renderUnnamedClaimGroup(group) {
|
|
32139
32157
|
if (!("names" in group))
|
|
32140
32158
|
return renderFileGroup(group);
|
|
32141
|
-
const steps =
|
|
32159
|
+
const steps = unnamedClaimCiSteps(unnamedClaimCiStepsViewOf(group.names.map(reportedName)));
|
|
32142
32160
|
const remark = group.sharedScnCode === void 0 ? "" : ` (${CORE_MESSAGES[CoreMessage.SharedScnCode](group.sharedScnCode)})`;
|
|
32143
32161
|
return `fitness: ${OUTCOME_DESCRIPTION["cites-no-scenario"]}${remark} \u2014 ${steps}`;
|
|
32144
32162
|
}
|
|
@@ -32153,6 +32171,12 @@ function renderRowExceptions(s) {
|
|
|
32153
32171
|
const groups = [reconciling, pending].filter((g) => g.length > 0);
|
|
32154
32172
|
return groups.length === 0 ? "\u2014" : groups.join("; ");
|
|
32155
32173
|
}
|
|
32174
|
+
function brokenEvidenceNameOf({ locator }) {
|
|
32175
|
+
return locator?.trim() ? { kind: "named", locator } : { kind: "unnamed" };
|
|
32176
|
+
}
|
|
32177
|
+
function brokenEvidenceNameWords(name) {
|
|
32178
|
+
return name.kind === "named" ? name.locator : coreMessage(CoreMessage.BrokenEvidenceNotNamed);
|
|
32179
|
+
}
|
|
32156
32180
|
function pendingTally(pending) {
|
|
32157
32181
|
return pending > 0 ? ["", CORE_MESSAGES[CoreMessage.PendingTally](pending)] : [];
|
|
32158
32182
|
}
|
|
@@ -32251,6 +32275,8 @@ var init_markdown = __esm({
|
|
|
32251
32275
|
init_evidenceObservations();
|
|
32252
32276
|
init_evidenceGrid();
|
|
32253
32277
|
init_messages4();
|
|
32278
|
+
init_coreText();
|
|
32279
|
+
init_heading();
|
|
32254
32280
|
init_remarkWords();
|
|
32255
32281
|
init_codeSpan();
|
|
32256
32282
|
init_unnamedClaimGroups();
|
|
@@ -32259,29 +32285,28 @@ var init_markdown = __esm({
|
|
|
32259
32285
|
passed: CoreMessage.ObservationPassed,
|
|
32260
32286
|
failed: CoreMessage.ObservationFailed
|
|
32261
32287
|
};
|
|
32262
|
-
titleSection = () => [
|
|
32288
|
+
titleSection = () => [markdownHeading(1, coreMessage(CoreMessage.ReportTitle)), ""];
|
|
32263
32289
|
runIntegritySection = (report) => {
|
|
32264
32290
|
if (!hasBrokenEvidence(report))
|
|
32265
32291
|
return [];
|
|
32266
32292
|
const brokenObservations = brokenItemsOf(report).flatMap((line) => line.evidenceObservation ?? []);
|
|
32267
|
-
const
|
|
32268
|
-
const proofs = count === 1 ? CORE_MESSAGES[CoreMessage.OneProofNeverRan] : CORE_MESSAGES[CoreMessage.ProofsNeverRan](count);
|
|
32293
|
+
const proofs = coreMessage(CoreMessage.ProofsNeverRan, { count: brokenObservations.length });
|
|
32269
32294
|
const lines = [
|
|
32270
|
-
|
|
32295
|
+
markdownHeading(2, coreMessage(CoreMessage.RunIntegrityHeading)),
|
|
32271
32296
|
"",
|
|
32272
|
-
|
|
32297
|
+
coreMessage(CoreMessage.RunUnsound, { proofs }),
|
|
32273
32298
|
""
|
|
32274
32299
|
];
|
|
32275
32300
|
for (const item of brokenObservations) {
|
|
32276
|
-
const locator = item
|
|
32277
|
-
lines.push(`- ${
|
|
32301
|
+
const locator = brokenEvidenceNameWords(brokenEvidenceNameOf(item));
|
|
32302
|
+
lines.push(`- ${coreMessage(CoreMessage.BrokenEvidenceWhatBroke, { locator: `\`${locator}\`` })}`);
|
|
32278
32303
|
lines.push("");
|
|
32279
|
-
lines.push(...fencedBlockLines("text", remarkWordsOf(item) ??
|
|
32304
|
+
lines.push(...fencedBlockLines("text", remarkWordsOf(item) ?? coreMessage(CoreMessage.BrokenEvidenceNoMessage)));
|
|
32280
32305
|
lines.push("");
|
|
32281
32306
|
}
|
|
32282
32307
|
return lines;
|
|
32283
32308
|
};
|
|
32284
|
-
summarySection = () => [
|
|
32309
|
+
summarySection = () => [markdownHeading(2, coreMessage(CoreMessage.SummaryHeading)), ""];
|
|
32285
32310
|
RECONCILIATION_TOTALS_COLUMNS = [
|
|
32286
32311
|
CORE_MESSAGES[CoreMessage.SubjectColumn],
|
|
32287
32312
|
CORE_MESSAGES[CoreMessage.TotalColumn],
|
|
@@ -32472,8 +32497,7 @@ var init_messages_en2 = __esm({
|
|
|
32472
32497
|
"retired-flag": "Retired flag {flag} for ''{scope}'' \u2014 retired in spec-controller {retiredIn}, and no later version accepts it (this is spec-controller {toolVersion}).",
|
|
32473
32498
|
"do-not-pin-retired": "Do not pin an earlier version to get it back: that restores the route it was retired with.",
|
|
32474
32499
|
"re-render-not-stored": "'balance --render-from-json' re-renders a saved report to stdout and keeps no run, and was given {modifiers}: a re-render is not stored.",
|
|
32475
|
-
"re-render-without
|
|
32476
|
-
"re-render-without-them": "Run 'spec-controller balance --render-from-json <path>' without them.",
|
|
32500
|
+
"re-render-without": "{count, plural, one {Run 'spec-controller balance --render-from-json <path>' without it.} other {Run 'spec-controller balance --render-from-json <path>' without them.}}",
|
|
32477
32501
|
"run-id-without-store": "--run-id names a stored run, and was given ''{runId}'' with no --store, so no run is kept under it.",
|
|
32478
32502
|
"keep-run-under-name": "To keep the run under that name, give --store <root> as well; otherwise run ''{command}'' without --run-id.",
|
|
32479
32503
|
"legacy-json-removed": "The --json <path> flag has been removed. Use --format json:<path> to write the JSON report to a file (e.g. --format json:spec-reconciliation.json).",
|
|
@@ -39281,7 +39305,7 @@ function storedReRenderRefusal(inv) {
|
|
|
39281
39305
|
return refusal(
|
|
39282
39306
|
"re-render-not-stored" /* ReRenderNotStored */,
|
|
39283
39307
|
{ modifiers: given.join(", ") },
|
|
39284
|
-
[message(
|
|
39308
|
+
[message("re-render-without" /* ReRenderWithout */, { count: given.length })]
|
|
39285
39309
|
);
|
|
39286
39310
|
}
|
|
39287
39311
|
function unstoredRunIdRefusal(inv, commands = cliRegistry.commands) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spec-controller",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.226",
|
|
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.226"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|