spec-controller 0.1.229 → 0.1.230
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 +361 -361
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -28246,324 +28246,6 @@ var init_model = __esm({
|
|
|
28246
28246
|
}
|
|
28247
28247
|
});
|
|
28248
28248
|
|
|
28249
|
-
// ../core/dist/render/messages.js
|
|
28250
|
-
var QUALITY_CHECK_FAULT_MESSAGES, CoreMessage, CoreError, SATISFIED, MISSING, DUPLICATE_SCN_CODE, CITED_WITH_NO_SCENARIO, NO_ONE_SCENARIO_CAN_TAKE, CORE_MESSAGES;
|
|
28251
|
-
var init_messages4 = __esm({
|
|
28252
|
-
"../core/dist/render/messages.js"() {
|
|
28253
|
-
"use strict";
|
|
28254
|
-
init_qualityCheckFault();
|
|
28255
|
-
init_claimReconciliation();
|
|
28256
|
-
QUALITY_CHECK_FAULT_MESSAGES = {
|
|
28257
|
-
[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}.`
|
|
28258
|
-
};
|
|
28259
|
-
(function(CoreMessage2) {
|
|
28260
|
-
CoreMessage2[CoreMessage2["ErrorsInTheInputsHeading"] = 0] = "ErrorsInTheInputsHeading";
|
|
28261
|
-
CoreMessage2[CoreMessage2["ConfigurationNotReadHeading"] = 1] = "ConfigurationNotReadHeading";
|
|
28262
|
-
CoreMessage2[CoreMessage2["ScenarioCodeErrorsHeading"] = 2] = "ScenarioCodeErrorsHeading";
|
|
28263
|
-
CoreMessage2[CoreMessage2["OutOfBalanceByFeatureHeading"] = 3] = "OutOfBalanceByFeatureHeading";
|
|
28264
|
-
CoreMessage2[CoreMessage2["ScenarioClaimReconciliationsOutOfBalance"] = 4] = "ScenarioClaimReconciliationsOutOfBalance";
|
|
28265
|
-
CoreMessage2[CoreMessage2["GroupedByFeature"] = 5] = "GroupedByFeature";
|
|
28266
|
-
CoreMessage2[CoreMessage2["NotGroupedByFeature"] = 6] = "NotGroupedByFeature";
|
|
28267
|
-
CoreMessage2[CoreMessage2["PhantomClaimReconciliations"] = 7] = "PhantomClaimReconciliations";
|
|
28268
|
-
CoreMessage2[CoreMessage2["UnnamedClaimReconciliations"] = 8] = "UnnamedClaimReconciliations";
|
|
28269
|
-
CoreMessage2[CoreMessage2["AndJoiner"] = 9] = "AndJoiner";
|
|
28270
|
-
CoreMessage2[CoreMessage2["ByFeatureTableHeader"] = 10] = "ByFeatureTableHeader";
|
|
28271
|
-
CoreMessage2[CoreMessage2["NoScnCodeScenarios"] = 11] = "NoScnCodeScenarios";
|
|
28272
|
-
CoreMessage2[CoreMessage2["ClaimReconciliationsHeading"] = 12] = "ClaimReconciliationsHeading";
|
|
28273
|
-
CoreMessage2[CoreMessage2["ClaimReconciliationTally"] = 13] = "ClaimReconciliationTally";
|
|
28274
|
-
CoreMessage2[CoreMessage2["PhantomClaimTally"] = 14] = "PhantomClaimTally";
|
|
28275
|
-
CoreMessage2[CoreMessage2["UnnamedClaimTally"] = 15] = "UnnamedClaimTally";
|
|
28276
|
-
CoreMessage2[CoreMessage2["ExcludedScnOccurrences"] = 16] = "ExcludedScnOccurrences";
|
|
28277
|
-
CoreMessage2[CoreMessage2["UntaggedScenarios"] = 17] = "UntaggedScenarios";
|
|
28278
|
-
CoreMessage2[CoreMessage2["SharedScnCodes"] = 18] = "SharedScnCodes";
|
|
28279
|
-
CoreMessage2[CoreMessage2["SharedScnCodeScenario"] = 19] = "SharedScnCodeScenario";
|
|
28280
|
-
CoreMessage2[CoreMessage2["ClaimColumn"] = 20] = "ClaimColumn";
|
|
28281
|
-
CoreMessage2[CoreMessage2["VerdictColumn"] = 21] = "VerdictColumn";
|
|
28282
|
-
CoreMessage2[CoreMessage2["ReconcilingItemsColumn"] = 22] = "ReconcilingItemsColumn";
|
|
28283
|
-
CoreMessage2[CoreMessage2["CiStepsColumn"] = 23] = "CiStepsColumn";
|
|
28284
|
-
CoreMessage2[CoreMessage2["EvidenceCellKey"] = 24] = "EvidenceCellKey";
|
|
28285
|
-
CoreMessage2[CoreMessage2["WatermelonItemKey"] = 25] = "WatermelonItemKey";
|
|
28286
|
-
CoreMessage2[CoreMessage2["PendingItem"] = 26] = "PendingItem";
|
|
28287
|
-
CoreMessage2[CoreMessage2["PendingItemFor"] = 27] = "PendingItemFor";
|
|
28288
|
-
CoreMessage2[CoreMessage2["CheckStepNoOutcome"] = 28] = "CheckStepNoOutcome";
|
|
28289
|
-
CoreMessage2[CoreMessage2["CheckStepSkipped"] = 29] = "CheckStepSkipped";
|
|
28290
|
-
CoreMessage2[CoreMessage2["CheckStepEnded"] = 30] = "CheckStepEnded";
|
|
28291
|
-
CoreMessage2[CoreMessage2["AmbiguousNamedStep"] = 31] = "AmbiguousNamedStep";
|
|
28292
|
-
CoreMessage2[CoreMessage2["AmbiguousUnnamedStep"] = 32] = "AmbiguousUnnamedStep";
|
|
28293
|
-
CoreMessage2[CoreMessage2["OutcomeSatisfied"] = 33] = "OutcomeSatisfied";
|
|
28294
|
-
CoreMessage2[CoreMessage2["OutcomeMissing"] = 34] = "OutcomeMissing";
|
|
28295
|
-
CoreMessage2[CoreMessage2["OutcomeFailing"] = 35] = "OutcomeFailing";
|
|
28296
|
-
CoreMessage2[CoreMessage2["OutcomeWatermelon"] = 36] = "OutcomeWatermelon";
|
|
28297
|
-
CoreMessage2[CoreMessage2["OutcomeNoScnCode"] = 37] = "OutcomeNoScnCode";
|
|
28298
|
-
CoreMessage2[CoreMessage2["OutcomeDuplicateScnCode"] = 38] = "OutcomeDuplicateScnCode";
|
|
28299
|
-
CoreMessage2[CoreMessage2["OutcomeCitesUnknownScenario"] = 39] = "OutcomeCitesUnknownScenario";
|
|
28300
|
-
CoreMessage2[CoreMessage2["OutcomeCitesNoScenario"] = 40] = "OutcomeCitesNoScenario";
|
|
28301
|
-
CoreMessage2[CoreMessage2["OutcomeNoEvidenceObligation"] = 41] = "OutcomeNoEvidenceObligation";
|
|
28302
|
-
CoreMessage2[CoreMessage2["OutcomeBroken"] = 42] = "OutcomeBroken";
|
|
28303
|
-
CoreMessage2[CoreMessage2["OutcomeBothMissing"] = 43] = "OutcomeBothMissing";
|
|
28304
|
-
CoreMessage2[CoreMessage2["ObservationPassed"] = 44] = "ObservationPassed";
|
|
28305
|
-
CoreMessage2[CoreMessage2["ObservationFailed"] = 45] = "ObservationFailed";
|
|
28306
|
-
CoreMessage2[CoreMessage2["UnnamedClaimGroupCounts"] = 46] = "UnnamedClaimGroupCounts";
|
|
28307
|
-
CoreMessage2[CoreMessage2["UnnamedClaimFailedNames"] = 47] = "UnnamedClaimFailedNames";
|
|
28308
|
-
CoreMessage2[CoreMessage2["SeveralScnCodes"] = 48] = "SeveralScnCodes";
|
|
28309
|
-
CoreMessage2[CoreMessage2["SharedScnCode"] = 49] = "SharedScnCode";
|
|
28310
|
-
CoreMessage2["ConfigurationNotReadIntro"] = "configuration-not-read-intro";
|
|
28311
|
-
CoreMessage2["ConfigurationWrongKind"] = "configuration-wrong-kind";
|
|
28312
|
-
CoreMessage2["ConfigurationUnknownKey"] = "configuration-unknown-key";
|
|
28313
|
-
CoreMessage2["ProofsNeverRan"] = "proofs-never-ran";
|
|
28314
|
-
CoreMessage2["ScenarioCodeErrorCount"] = "scenario-code-error-count";
|
|
28315
|
-
CoreMessage2["NoFeatureFileJudged"] = "no-feature-file-judged";
|
|
28316
|
-
CoreMessage2["CleanNoCodedScenario"] = "clean-no-coded-scenario";
|
|
28317
|
-
CoreMessage2["CleanEachFileOwnCode"] = "clean-each-file-own-code";
|
|
28318
|
-
CoreMessage2["CleanOthersNoFeatureCode"] = "clean-others-no-feature-code";
|
|
28319
|
-
CoreMessage2["UnnamedClaimCiSteps"] = "unnamed-claim-ci-steps";
|
|
28320
|
-
CoreMessage2["UnnamedClaimCiStepsNamed"] = "unnamed-claim-ci-steps-named";
|
|
28321
|
-
CoreMessage2["ScenarioCodeErrorsFraming"] = "scenario-code-errors-framing";
|
|
28322
|
-
CoreMessage2["SeveralScnCodesFraming"] = "several-scn-codes-framing";
|
|
28323
|
-
CoreMessage2["MisfiledAndSeveralScnCodesFraming"] = "misfiled-and-several-scn-codes-framing";
|
|
28324
|
-
CoreMessage2["DuplicateScnCodeNotListed"] = "duplicate-scn-code-not-listed";
|
|
28325
|
-
CoreMessage2["DuplicateFeatureCode"] = "duplicate-feature-code";
|
|
28326
|
-
CoreMessage2["ForeignScnCodeCarried"] = "foreign-scn-code-carried";
|
|
28327
|
-
CoreMessage2["ForeignScnCodeNoCarrier"] = "foreign-scn-code-no-carrier";
|
|
28328
|
-
CoreMessage2["NoFeatureCode"] = "no-feature-code";
|
|
28329
|
-
CoreMessage2["ScenarioSeveralScnCodes"] = "several-scn-codes";
|
|
28330
|
-
CoreMessage2["RunnerKeyNotALayer"] = "runner-key-not-a-layer";
|
|
28331
|
-
CoreMessage2["NotChecksEntryMatchesNoStep"] = "not-checks-entry-matches-no-step";
|
|
28332
|
-
CoreMessage2["NotChecksEntryNotAStepName"] = "not-checks-entry-not-a-step-name";
|
|
28333
|
-
CoreMessage2["ManifestKindList"] = "manifest-kind-list";
|
|
28334
|
-
CoreMessage2["ManifestKindObject"] = "manifest-kind-object";
|
|
28335
|
-
CoreMessage2["ManifestKindString"] = "manifest-kind-string";
|
|
28336
|
-
CoreMessage2["ManifestKindStringOrNull"] = "manifest-kind-string-or-null";
|
|
28337
|
-
CoreMessage2["ManifestKindOfType"] = "manifest-kind-of-type";
|
|
28338
|
-
CoreMessage2["ReportTitle"] = "report-title";
|
|
28339
|
-
CoreMessage2["RunProvenanceHeading"] = "run-provenance-heading";
|
|
28340
|
-
CoreMessage2["ProvenanceTargetRepo"] = "provenance-target-repo";
|
|
28341
|
-
CoreMessage2["ProvenanceTargetRepoUntargeted"] = "provenance-target-repo-untargeted";
|
|
28342
|
-
CoreMessage2["ProvenanceNoInputs"] = "provenance-no-inputs";
|
|
28343
|
-
CoreMessage2["ProvenanceInputs"] = "provenance-inputs";
|
|
28344
|
-
CoreMessage2["ProvenanceNotSupplied"] = "provenance-not-supplied";
|
|
28345
|
-
CoreMessage2["ProvenanceRunTimestamp"] = "provenance-run-timestamp";
|
|
28346
|
-
CoreMessage2["ProvenanceSourceSha"] = "provenance-source-sha";
|
|
28347
|
-
CoreMessage2["ProvenanceSourceShaUnknown"] = "provenance-source-sha-unknown";
|
|
28348
|
-
CoreMessage2["ProvenanceToolSha"] = "provenance-tool-sha";
|
|
28349
|
-
CoreMessage2["ProvenanceToolShaUnknown"] = "provenance-tool-sha-unknown";
|
|
28350
|
-
CoreMessage2["ProvenanceToolVersion"] = "provenance-tool-version";
|
|
28351
|
-
CoreMessage2["RunIntegrityHeading"] = "run-integrity-heading";
|
|
28352
|
-
CoreMessage2["RunUnsound"] = "run-unsound";
|
|
28353
|
-
CoreMessage2["BrokenEvidenceNotNamed"] = "broken-evidence-not-named";
|
|
28354
|
-
CoreMessage2["BrokenEvidenceWhatBroke"] = "broken-evidence-what-broke";
|
|
28355
|
-
CoreMessage2["BrokenEvidenceNoMessage"] = "broken-evidence-no-message";
|
|
28356
|
-
CoreMessage2["SummaryHeading"] = "summary-heading";
|
|
28357
|
-
CoreMessage2["RunVerdictHeading"] = "run-verdict-heading";
|
|
28358
|
-
CoreMessage2["VerdictExit"] = "verdict-exit";
|
|
28359
|
-
CoreMessage2["ScenarioCodeErrorsHeadline"] = "scenario-code-errors-headline";
|
|
28360
|
-
CoreMessage2["ScenarioCodeErrorsGloss"] = "scenario-code-errors-gloss";
|
|
28361
|
-
CoreMessage2["SeveralScnCodesGloss"] = "several-scn-codes-gloss";
|
|
28362
|
-
CoreMessage2["MisfiledAndSeveralScnCodesGloss"] = "misfiled-and-several-scn-codes-gloss";
|
|
28363
|
-
CoreMessage2["AlsoOutOfBalance"] = "also-out-of-balance";
|
|
28364
|
-
CoreMessage2["OutOfBalanceHeadline"] = "out-of-balance-headline";
|
|
28365
|
-
CoreMessage2["OutOfBalanceGloss"] = "out-of-balance-gloss";
|
|
28366
|
-
CoreMessage2["UnsoundHeadline"] = "unsound-headline";
|
|
28367
|
-
CoreMessage2["UnsoundGloss"] = "unsound-gloss";
|
|
28368
|
-
CoreMessage2["PendingHeadline"] = "pending-headline";
|
|
28369
|
-
CoreMessage2["PendingGloss"] = "pending-gloss";
|
|
28370
|
-
CoreMessage2["BalancedHeadline"] = "balanced-headline";
|
|
28371
|
-
CoreMessage2["BalancedGloss"] = "balanced-gloss";
|
|
28372
|
-
CoreMessage2["NothingToReconcileHeadline"] = "nothing-to-reconcile-headline";
|
|
28373
|
-
CoreMessage2["NothingToReconcileGloss"] = "nothing-to-reconcile-gloss";
|
|
28374
|
-
CoreMessage2["PendingItemsOutstanding"] = "pending-items-outstanding";
|
|
28375
|
-
CoreMessage2["ReconciliationTotalsHeading"] = "reconciliation-totals-heading";
|
|
28376
|
-
CoreMessage2["ReconciliationTotalsClaimReconciliationTerm"] = "reconciliation-totals-claim-reconciliation-term";
|
|
28377
|
-
CoreMessage2["ReconciliationTotalsReconciliationLineTerm"] = "reconciliation-totals-reconciliation-line-term";
|
|
28378
|
-
CoreMessage2["ReconciliationTotalsEvidenceObligationTerm"] = "reconciliation-totals-evidence-obligation-term";
|
|
28379
|
-
CoreMessage2["ReconciliationTotalsEvidenceObservationTerm"] = "reconciliation-totals-evidence-observation-term";
|
|
28380
|
-
CoreMessage2["SubjectColumn"] = "subject-column";
|
|
28381
|
-
CoreMessage2["TotalColumn"] = "total-column";
|
|
28382
|
-
CoreMessage2["BalancedColumn"] = "balanced-column";
|
|
28383
|
-
CoreMessage2["OutOfBalanceColumn"] = "out-of-balance-column";
|
|
28384
|
-
CoreMessage2["DetailColumn"] = "detail-column";
|
|
28385
|
-
CoreMessage2["ClaimReconciliationSubject"] = "claim-reconciliation-subject";
|
|
28386
|
-
CoreMessage2["ReconciliationLineSubject"] = "reconciliation-line-subject";
|
|
28387
|
-
CoreMessage2["PendingTally"] = "pending-tally";
|
|
28388
|
-
CoreMessage2["EvidenceObservationsHeading"] = "evidence-observations-heading";
|
|
28389
|
-
CoreMessage2["EvidenceObservationsSum"] = "evidence-observations-sum";
|
|
28390
|
-
CoreMessage2["EvidenceObservationsTableHeader"] = "evidence-observations-table-header";
|
|
28391
|
-
CoreMessage2["FitnessRunner"] = "fitness-runner";
|
|
28392
|
-
CoreMessage2["FitnessCiStep"] = "fitness-ci-step";
|
|
28393
|
-
CoreMessage2["RunnerLayerNamesNone"] = "runner-layer-names-none";
|
|
28394
|
-
CoreMessage2["RunnerLayerUnnamed"] = "runner-layer-unnamed";
|
|
28395
|
-
CoreMessage2["NoStepCountedAsItsRunnerRunsIt"] = "no-step-counted-as-its-runner-runs-it";
|
|
28396
|
-
CoreMessage2["ReconcilerStep"] = "reconciler-step";
|
|
28397
|
-
CoreMessage2["ReconcilerReconciles"] = "reconciler-reconciles";
|
|
28398
|
-
CoreMessage2["ReconcilerRecords"] = "reconciler-records";
|
|
28399
|
-
CoreMessage2["StepNonCheck"] = "step-non-check";
|
|
28400
|
-
CoreMessage2["StepAccountingHeading"] = "step-accounting-heading";
|
|
28401
|
-
CoreMessage2["StepAccountingTableHeader"] = "step-accounting-table-header";
|
|
28402
|
-
CoreMessage2["StepAccountingTotal"] = "step-accounting-total";
|
|
28403
|
-
CoreMessage2["StepAccountingRunnersLabel"] = "step-accounting-runners-label";
|
|
28404
|
-
CoreMessage2["StepAccountingReconcilerLabel"] = "step-accounting-reconciler-label";
|
|
28405
|
-
CoreMessage2["StepAccountingNonChecksLabel"] = "step-accounting-non-checks-label";
|
|
28406
|
-
CoreMessage2["StepAccountingNotAppliedWorkflowsReadLabel"] = "step-accounting-not-applied-workflows-read-label";
|
|
28407
|
-
CoreMessage2["StepAccountingNotAppliedNoWorkflowReadLabel"] = "step-accounting-not-applied-no-workflow-read-label";
|
|
28408
|
-
CoreMessage2["StepAccountingPlumbingLabel"] = "step-accounting-plumbing-label";
|
|
28409
|
-
CoreMessage2["StepAccountingCandidatesTerm"] = "step-accounting-candidates-term";
|
|
28410
|
-
CoreMessage2["StepAccountingReconcilerTerm"] = "step-accounting-reconciler-term";
|
|
28411
|
-
CoreMessage2["StepAccountingNonChecksTerm"] = "step-accounting-non-checks-term";
|
|
28412
|
-
CoreMessage2["StepAccountingPlumbingTerm"] = "step-accounting-plumbing-term";
|
|
28413
|
-
CoreMessage2["StepAccountingAccountedForTerm"] = "step-accounting-accounted-for-term";
|
|
28414
|
-
})(CoreMessage || (CoreMessage = {}));
|
|
28415
|
-
(function(CoreError2) {
|
|
28416
|
-
CoreError2["ConfigurationWrongKind"] = "configuration-wrong-kind";
|
|
28417
|
-
CoreError2["ConfigurationUnknownKey"] = "configuration-unknown-key";
|
|
28418
|
-
CoreError2["RunnerKeyNotALayer"] = "runner-key-not-a-layer";
|
|
28419
|
-
CoreError2["NotChecksEntryMatchesNoStep"] = "not-checks-entry-matches-no-step";
|
|
28420
|
-
CoreError2["NotChecksEntryNotAStepName"] = "not-checks-entry-not-a-step-name";
|
|
28421
|
-
CoreError2["DuplicateFeatureCode"] = "duplicate-feature-code";
|
|
28422
|
-
CoreError2["ForeignScnCode"] = "foreign-scn-code";
|
|
28423
|
-
CoreError2["NoFeatureCode"] = "no-feature-code";
|
|
28424
|
-
CoreError2["SeveralScnCodes"] = "several-scn-codes";
|
|
28425
|
-
})(CoreError || (CoreError = {}));
|
|
28426
|
-
SATISFIED = "Evidence Observation satisfies its Evidence Obligation";
|
|
28427
|
-
MISSING = "Evidence Observation is missing";
|
|
28428
|
-
DUPLICATE_SCN_CODE = "Evidence Obligation's @SCN code is carried by another Scenario";
|
|
28429
|
-
CITED_WITH_NO_SCENARIO = "cited scenario ids with no real scenario";
|
|
28430
|
-
NO_ONE_SCENARIO_CAN_TAKE = "evidence observations no one scenario can take";
|
|
28431
|
-
CORE_MESSAGES = {
|
|
28432
|
-
[CoreMessage.ErrorsInTheInputsHeading]: "## Errors in the inputs",
|
|
28433
|
-
[CoreMessage.ConfigurationNotReadHeading]: "### Configuration not read",
|
|
28434
|
-
[CoreMessage.ScenarioCodeErrorsHeading]: "### Scenario code errors",
|
|
28435
|
-
[CoreMessage.OutOfBalanceByFeatureHeading]: "### Out-of-balance by feature",
|
|
28436
|
-
[CoreMessage.ScenarioClaimReconciliationsOutOfBalance]: (outOfBalance, claimReconciliations) => `${outOfBalance} of ${claimReconciliations} Claim Reconciliation(s) of scenarios out of balance`,
|
|
28437
|
-
[CoreMessage.GroupedByFeature]: ", grouped by feature",
|
|
28438
|
-
[CoreMessage.NotGroupedByFeature]: (ungrouped) => `${ungrouped} out of balance, not grouped by feature (no feature file names them)`,
|
|
28439
|
-
[CoreMessage.PhantomClaimReconciliations]: (count) => `${count} Claim Reconciliation(s) for ${CITED_WITH_NO_SCENARIO}`,
|
|
28440
|
-
[CoreMessage.UnnamedClaimReconciliations]: (count) => `${count} Claim Reconciliation(s) for ${NO_ONE_SCENARIO_CAN_TAKE}`,
|
|
28441
|
-
[CoreMessage.AndJoiner]: " and ",
|
|
28442
|
-
[CoreMessage.ByFeatureTableHeader]: "| Feature | Count | Out-of-balance `@SCN` ids |",
|
|
28443
|
-
[CoreMessage.NoScnCodeScenarios]: (count) => `${count} with no \`@SCN\` code`,
|
|
28444
|
-
[CoreMessage.ClaimReconciliationsHeading]: "## Claim Reconciliations",
|
|
28445
|
-
[CoreMessage.ClaimReconciliationTally]: (total, balanced, outOfBalance) => `${total} Claim Reconciliation(s): ${balanced} balanced, ${outOfBalance} out-of-balance.`,
|
|
28446
|
-
[CoreMessage.PhantomClaimTally]: (count) => `${count} Claim Reconciliation(s) for ${CITED_WITH_NO_SCENARIO}.`,
|
|
28447
|
-
[CoreMessage.UnnamedClaimTally]: (count) => `${count} Claim Reconciliation(s) for ${NO_ONE_SCENARIO_CAN_TAKE}, aggregated into "${UNNAMED_CLAIM_ID}".`,
|
|
28448
|
-
[CoreMessage.ExcludedScnOccurrences]: (count) => `${count} @SCN ids seen in non-tag context, excluded: each is an @SCN code written in a feature file's prose, a comment or step text rather than as a tag, so it marks no scenario and raises no claim`,
|
|
28449
|
-
[CoreMessage.UntaggedScenarios]: (count) => `${count} scenario(s) carry no @SCN code`,
|
|
28450
|
-
[CoreMessage.SharedScnCodes]: (scenarios, codes) => `The corpus holds ${scenarios} scenarios \u2014 ${codes} @SCN code(s) carried by more than one scenario, each scenario named as \`feature file : scenario title\`:`,
|
|
28451
|
-
[CoreMessage.SharedScnCodeScenario]: (feature, title) => `this one is ${feature} : ${title}`,
|
|
28452
|
-
[CoreMessage.ClaimColumn]: "Claim",
|
|
28453
|
-
[CoreMessage.VerdictColumn]: "Verdict",
|
|
28454
|
-
[CoreMessage.ReconcilingItemsColumn]: "Reconciling items",
|
|
28455
|
-
[CoreMessage.CiStepsColumn]: "CI steps",
|
|
28456
|
-
[CoreMessage.EvidenceCellKey]: [
|
|
28457
|
-
"Key: each evidence cell reads *obligation*/*observations*.",
|
|
28458
|
-
"- The letter says the scenario's tags raise an Evidence Obligation of that kind: (F)itness, (U)nit, (I)ntegration, (E)2e, (P)erformance. `-` means they raise none of that kind, as a pending tag raises none.",
|
|
28459
|
-
"- The number counts the scenario's Evidence Observations of that kind that ran. `-` means none.",
|
|
28460
|
-
"- For example, `U/2` is a unit obligation answered by two unit tests; `U/-` is a unit obligation that no unit test answered; `-/1` is one unit test citing a scenario that raises no unit obligation, which puts the row out of balance even where its unit evidence is pending.",
|
|
28461
|
-
"- A blank cell means no obligation and no Evidence Observation that ran; `\u2014` marks the row of a phantom claim or of the unnamed claim.",
|
|
28462
|
-
"- A row named `feature file : scenario title` is a scenario that carries no @SCN code. The run reads none of its tags, so its evidence cells are blank, and its reconciling item says that no Evidence Observation can link to it.",
|
|
28463
|
-
"- In Reconciling items, `\u2014` means the row has no reconciling item, and *untagged* means a scenario that carries an @SCN code and no tag that raises an Evidence Obligation.",
|
|
28464
|
-
"- On the unnamed claim's row, the counts after an item, such as `1 ran, 1 passed, 0 failed`, are of that item's own tests, and a fitness item counts its CI steps; a broken item stands alone, outside those counts.",
|
|
28465
|
-
"- CI steps names the steps the Evidence observations table gives for each kind of quality check other than fitness that the row obligates or observes, whether or not an Evidence Observation of that kind ran for the row, and the step each of the row's fitness Evidence Observations names: `U/-` beside a step names the step that runs unit tests, none of which answered this row. A blank CI steps cell means no such step is known."
|
|
28466
|
-
].join("\n"),
|
|
28467
|
-
[CoreMessage.WatermelonItemKey]: "- Where a row's item says its CI step or its job sets `continue-on-error`, the name in parentheses after it is its fitness function. Remove `continue-on-error` from its CI step and from its job, or set it to false, and the check's red fails the CI run.",
|
|
28468
|
-
[CoreMessage.PendingItem]: "pending",
|
|
28469
|
-
[CoreMessage.PendingItemFor]: (qualityCheckKind) => `pending: ${qualityCheckKind}`,
|
|
28470
|
-
[CoreMessage.CheckStepNoOutcome]: (scnId) => `${scnId}: the CI run's record carries no outcome for this check's step \u2014 so the check did not run.`,
|
|
28471
|
-
[CoreMessage.CheckStepSkipped]: (scnId) => `${scnId}: the CI run's record says this check's step was skipped \u2014 so the check did not run.`,
|
|
28472
|
-
[CoreMessage.CheckStepEnded]: (scnId, outcome) => `${scnId}: the CI run's record says this check's step ended \`${outcome}\` \u2014 so the check did not run.`,
|
|
28473
|
-
[CoreMessage.AmbiguousNamedStep]: (step) => `The step "${step}" is ambiguous \u2014 two or more step definitions match it, so the step never ran.`,
|
|
28474
|
-
[CoreMessage.AmbiguousUnnamedStep]: "A step is ambiguous \u2014 two or more step definitions match it, so the step never ran.",
|
|
28475
|
-
[CoreMessage.OutcomeSatisfied]: SATISFIED,
|
|
28476
|
-
[CoreMessage.OutcomeMissing]: MISSING,
|
|
28477
|
-
[CoreMessage.OutcomeFailing]: "Evidence Observation is failing",
|
|
28478
|
-
[CoreMessage.OutcomeWatermelon]: "Evidence Observation is passing but its CI step or its job sets `continue-on-error` so its red might not fail the CI run",
|
|
28479
|
-
[CoreMessage.OutcomeNoScnCode]: "Evidence Obligation has no @SCN code for an Evidence Observation to link to",
|
|
28480
|
-
[CoreMessage.OutcomeDuplicateScnCode]: DUPLICATE_SCN_CODE,
|
|
28481
|
-
[CoreMessage.OutcomeCitesUnknownScenario]: "Evidence Observation cites an unknown Scenario",
|
|
28482
|
-
[CoreMessage.OutcomeCitesNoScenario]: "Evidence Observation cites no Scenario",
|
|
28483
|
-
[CoreMessage.OutcomeNoEvidenceObligation]: "Evidence Observation cites a Scenario with no matching Evidence Obligation",
|
|
28484
|
-
[CoreMessage.OutcomeBroken]: "Evidence Observation is broken because its proof never ran to a result",
|
|
28485
|
-
[CoreMessage.OutcomeBothMissing]: "Evidence Obligation and Evidence Observation are both missing \u2014 the Scenario is untagged and uncited",
|
|
28486
|
-
[CoreMessage.ObservationPassed]: "passed",
|
|
28487
|
-
[CoreMessage.ObservationFailed]: "failed",
|
|
28488
|
-
[CoreMessage.UnnamedClaimGroupCounts]: (ran, passed, failed) => `${ran} ran, ${passed} passed, ${failed} failed`,
|
|
28489
|
-
[CoreMessage.UnnamedClaimFailedNames]: (names) => `(failed: ${names.join(" / ")})`,
|
|
28490
|
-
[CoreMessage.SeveralScnCodes]: (codes) => `${codes.length} scenario codes cite ${codes.join(", ")} \u2014 a test cites exactly one scenario, so this one credits none of them.`,
|
|
28491
|
-
[CoreMessage.SharedScnCode]: (code) => `${code} is carried by more than one scenario, so evidence citing it credits none of them.`
|
|
28492
|
-
};
|
|
28493
|
-
}
|
|
28494
|
-
});
|
|
28495
|
-
|
|
28496
|
-
// ../core/dist/render/outcomeDescription.js
|
|
28497
|
-
var OUTCOME_DESCRIPTION;
|
|
28498
|
-
var init_outcomeDescription = __esm({
|
|
28499
|
-
"../core/dist/render/outcomeDescription.js"() {
|
|
28500
|
-
"use strict";
|
|
28501
|
-
init_messages4();
|
|
28502
|
-
OUTCOME_DESCRIPTION = {
|
|
28503
|
-
satisfied: CORE_MESSAGES[CoreMessage.OutcomeSatisfied],
|
|
28504
|
-
missing: CORE_MESSAGES[CoreMessage.OutcomeMissing],
|
|
28505
|
-
failing: CORE_MESSAGES[CoreMessage.OutcomeFailing],
|
|
28506
|
-
watermelon: CORE_MESSAGES[CoreMessage.OutcomeWatermelon],
|
|
28507
|
-
"no-scn-code": CORE_MESSAGES[CoreMessage.OutcomeNoScnCode],
|
|
28508
|
-
"duplicate-scn-code": CORE_MESSAGES[CoreMessage.OutcomeDuplicateScnCode],
|
|
28509
|
-
"cites-unknown-scenario": CORE_MESSAGES[CoreMessage.OutcomeCitesUnknownScenario],
|
|
28510
|
-
"cites-no-scenario": CORE_MESSAGES[CoreMessage.OutcomeCitesNoScenario],
|
|
28511
|
-
"no-evidence-obligation": CORE_MESSAGES[CoreMessage.OutcomeNoEvidenceObligation],
|
|
28512
|
-
broken: CORE_MESSAGES[CoreMessage.OutcomeBroken],
|
|
28513
|
-
"both-missing": CORE_MESSAGES[CoreMessage.OutcomeBothMissing]
|
|
28514
|
-
};
|
|
28515
|
-
}
|
|
28516
|
-
});
|
|
28517
|
-
|
|
28518
|
-
// ../core/dist/render/cellSafe.js
|
|
28519
|
-
function cellSafe(text) {
|
|
28520
|
-
return text.replace(/\s+/g, " ").replace(/[\\|]/g, "\\$&").trim();
|
|
28521
|
-
}
|
|
28522
|
-
function cellSafeKeepingCodeSpans(text) {
|
|
28523
|
-
return text.replace(/\s+/g, " ").replace(SPAN_OR_ESCAPED, (found) => found.startsWith("`") ? found.replace(/\|/g, "\\|") : `\\${found}`);
|
|
28524
|
-
}
|
|
28525
|
-
var SPAN_OR_ESCAPED;
|
|
28526
|
-
var init_cellSafe = __esm({
|
|
28527
|
-
"../core/dist/render/cellSafe.js"() {
|
|
28528
|
-
"use strict";
|
|
28529
|
-
SPAN_OR_ESCAPED = /(`+)[\s\S]*?(?<!`)\1(?!`)|[\\|]/g;
|
|
28530
|
-
}
|
|
28531
|
-
});
|
|
28532
|
-
|
|
28533
|
-
// ../core/dist/render/codeSpan.js
|
|
28534
|
-
function codeSpan(written) {
|
|
28535
|
-
const text = spanHoldsAsWritten(written) ? written : JSON.stringify(written);
|
|
28536
|
-
const fence = "`".repeat(longestBacktickRun(text) + 1);
|
|
28537
|
-
const pad = text.startsWith("`") || text.endsWith("`") ? " " : "";
|
|
28538
|
-
return `${fence}${pad}${text}${pad}${fence}`;
|
|
28539
|
-
}
|
|
28540
|
-
function fencedBlockLines(info, text) {
|
|
28541
|
-
const fence = "`".repeat(Math.max(3, longestBacktickRun(text) + 1));
|
|
28542
|
-
return [`${fence}${info}`, ...text.split("\n"), fence];
|
|
28543
|
-
}
|
|
28544
|
-
var spanHoldsAsWritten, longestBacktickRun;
|
|
28545
|
-
var init_codeSpan = __esm({
|
|
28546
|
-
"../core/dist/render/codeSpan.js"() {
|
|
28547
|
-
"use strict";
|
|
28548
|
-
spanHoldsAsWritten = (text) => text !== "" && !(text.startsWith(" ") && text.endsWith(" ")) && !/[\n\r]/.test(text) && !(text.startsWith('"') && text.endsWith('"'));
|
|
28549
|
-
longestBacktickRun = (text) => Math.max(0, ...(text.match(/`+/g) ?? []).map((run3) => run3.length));
|
|
28550
|
-
}
|
|
28551
|
-
});
|
|
28552
|
-
|
|
28553
|
-
// ../core/dist/render/reportedName.js
|
|
28554
|
-
function reportedName(text) {
|
|
28555
|
-
const name = text.replace(/\s+/g, " ").trim();
|
|
28556
|
-
return ROW_SEPARATOR.test(name) ? codeSpan(name) : name;
|
|
28557
|
-
}
|
|
28558
|
-
var ROW_SEPARATOR;
|
|
28559
|
-
var init_reportedName = __esm({
|
|
28560
|
-
"../core/dist/render/reportedName.js"() {
|
|
28561
|
-
"use strict";
|
|
28562
|
-
init_codeSpan();
|
|
28563
|
-
ROW_SEPARATOR = /; |: | \/ |, /;
|
|
28564
|
-
}
|
|
28565
|
-
});
|
|
28566
|
-
|
|
28567
28249
|
// ../core/dist/render/messages.en.json
|
|
28568
28250
|
var messages_en_default;
|
|
28569
28251
|
var init_messages_en = __esm({
|
|
@@ -28672,7 +28354,55 @@ var init_messages_en = __esm({
|
|
|
28672
28354
|
"step-accounting-reconciler-term": "A Reconciler step runs this reconciliation or writes the step record it reads.",
|
|
28673
28355
|
"step-accounting-non-checks-term": "A Non-check is a step the target names under `specController.notChecks`, unless it is a Reconciler step. A GitHub plumbing step named there is a Non-check too.",
|
|
28674
28356
|
"step-accounting-plumbing-term": "A GitHub plumbing step is one that is neither a Reconciler nor a Non-check step and uses one of GitHub's own actions `actions/checkout`, `actions/cache`, `actions/upload-artifact`, `actions/download-artifact` or `actions/setup-*`. A step that runs a command, an install included, is never plumbing.",
|
|
28675
|
-
"step-accounting-accounted-for-term": "Accounted for is the sum of the five columns from Candidates to GitHub plumbing, in which each step read is counted once."
|
|
28357
|
+
"step-accounting-accounted-for-term": "Accounted for is the sum of the five columns from Candidates to GitHub plumbing, in which each step read is counted once.",
|
|
28358
|
+
"out-of-balance-by-feature-heading": "Out-of-balance by feature",
|
|
28359
|
+
"scenario-claim-reconciliations-out-of-balance": "{outOfBalance} of {claimReconciliations} Claim Reconciliation(s) of scenarios out of balance",
|
|
28360
|
+
"grouped-by-feature": ", grouped by feature",
|
|
28361
|
+
"not-grouped-by-feature": "{ungrouped} out of balance, not grouped by feature (no feature file names them)",
|
|
28362
|
+
"phantom-claim-reconciliations": "{count} Claim Reconciliation(s) for cited scenario ids with no real scenario",
|
|
28363
|
+
"unnamed-claim-reconciliations": "{count} Claim Reconciliation(s) for evidence observations no one scenario can take",
|
|
28364
|
+
"and-joiner": " and ",
|
|
28365
|
+
"by-feature-table-header": "| Feature | Count | Out-of-balance `@SCN` ids |",
|
|
28366
|
+
"no-scn-code-scenarios": "{count} with no `@SCN` code",
|
|
28367
|
+
"codes-and-no-scn-code-scenarios": "{codes} and {count} with no `@SCN` code",
|
|
28368
|
+
"claim-reconciliations-heading": "Claim Reconciliations",
|
|
28369
|
+
"claim-reconciliation-tally": "{total} Claim Reconciliation(s): {balanced} balanced, {outOfBalance} out-of-balance.",
|
|
28370
|
+
"phantom-claim-tally": "{count} Claim Reconciliation(s) for cited scenario ids with no real scenario.",
|
|
28371
|
+
"unnamed-claim-tally": '{count} Claim Reconciliation(s) for evidence observations no one scenario can take, aggregated into "{unnamedClaimId}".',
|
|
28372
|
+
"excluded-scn-occurrences": "{count} @SCN ids seen in non-tag context, excluded: each is an @SCN code written in a feature file's prose, a comment or step text rather than as a tag, so it marks no scenario and raises no claim",
|
|
28373
|
+
"untagged-scenarios": "{count} scenario(s) carry no @SCN code",
|
|
28374
|
+
"shared-scn-codes": "The corpus holds {scenarios} scenarios \u2014 {codes} @SCN code(s) carried by more than one scenario, each scenario named as `feature file : scenario title`:",
|
|
28375
|
+
"shared-scn-code-scenario": "this one is {feature} : {title}",
|
|
28376
|
+
"claim-column": "Claim",
|
|
28377
|
+
"verdict-column": "Verdict",
|
|
28378
|
+
"reconciling-items-column": "Reconciling items",
|
|
28379
|
+
"ci-steps-column": "CI steps",
|
|
28380
|
+
"evidence-cell-key": "Key: each evidence cell reads *obligation*/*observations*.\n- The letter says the scenario's tags raise an Evidence Obligation of that kind: (F)itness, (U)nit, (I)ntegration, (E)2e, (P)erformance. `-` means they raise none of that kind, as a pending tag raises none.\n- The number counts the scenario's Evidence Observations of that kind that ran. `-` means none.\n- For example, `U/2` is a unit obligation answered by two unit tests; `U/-` is a unit obligation that no unit test answered; `-/1` is one unit test citing a scenario that raises no unit obligation, which puts the row out of balance even where its unit evidence is pending.\n- A blank cell means no obligation and no Evidence Observation that ran; `\u2014` marks the row of a phantom claim or of the unnamed claim.\n- A row named `feature file : scenario title` is a scenario that carries no @SCN code. The run reads none of its tags, so its evidence cells are blank, and its reconciling item says that no Evidence Observation can link to it.\n- In Reconciling items, `\u2014` means the row has no reconciling item, and *untagged* means a scenario that carries an @SCN code and no tag that raises an Evidence Obligation.\n- On the unnamed claim's row, the counts after an item, such as `1 ran, 1 passed, 0 failed`, are of that item's own tests, and a fitness item counts its CI steps; a broken item stands alone, outside those counts.\n- CI steps names the steps the Evidence observations table gives for each kind of quality check other than fitness that the row obligates or observes, whether or not an Evidence Observation of that kind ran for the row, and the step each of the row's fitness Evidence Observations names: `U/-` beside a step names the step that runs unit tests, none of which answered this row. A blank CI steps cell means no such step is known.",
|
|
28381
|
+
"watermelon-item-key": "- Where a row's item says its CI step or its job sets `continue-on-error`, the name in parentheses after it is its fitness function. Remove `continue-on-error` from its CI step and from its job, or set it to false, and the check's red fails the CI run.",
|
|
28382
|
+
"pending-item": "pending",
|
|
28383
|
+
"pending-item-for": "pending: {qualityCheckKind}",
|
|
28384
|
+
"check-step-no-outcome": "{scnId}: the CI run's record carries no outcome for this check's step \u2014 so the check did not run.",
|
|
28385
|
+
"check-step-skipped": "{scnId}: the CI run's record says this check's step was skipped \u2014 so the check did not run.",
|
|
28386
|
+
"check-step-ended": "{scnId}: the CI run's record says this check's step ended `{outcome}` \u2014 so the check did not run.",
|
|
28387
|
+
"ambiguous-named-step": 'The step "{step}" is ambiguous \u2014 two or more step definitions match it, so the step never ran.',
|
|
28388
|
+
"ambiguous-unnamed-step": "A step is ambiguous \u2014 two or more step definitions match it, so the step never ran.",
|
|
28389
|
+
"outcome-satisfied": "Evidence Observation satisfies its Evidence Obligation",
|
|
28390
|
+
"outcome-missing": "Evidence Observation is missing",
|
|
28391
|
+
"outcome-failing": "Evidence Observation is failing",
|
|
28392
|
+
"outcome-watermelon": "Evidence Observation is passing but its CI step or its job sets `continue-on-error` so its red might not fail the CI run",
|
|
28393
|
+
"outcome-no-scn-code": "Evidence Obligation has no @SCN code for an Evidence Observation to link to",
|
|
28394
|
+
"outcome-duplicate-scn-code": "Evidence Obligation's @SCN code is carried by another Scenario",
|
|
28395
|
+
"outcome-cites-unknown-scenario": "Evidence Observation cites an unknown Scenario",
|
|
28396
|
+
"outcome-cites-no-scenario": "Evidence Observation cites no Scenario",
|
|
28397
|
+
"outcome-no-evidence-obligation": "Evidence Observation cites a Scenario with no matching Evidence Obligation",
|
|
28398
|
+
"outcome-broken": "Evidence Observation is broken because its proof never ran to a result",
|
|
28399
|
+
"outcome-both-missing": "Evidence Obligation and Evidence Observation are both missing \u2014 the Scenario is untagged and uncited",
|
|
28400
|
+
"observation-passed": "passed",
|
|
28401
|
+
"observation-failed": "failed",
|
|
28402
|
+
"unnamed-claim-group-counts": "{ran} ran, {passed} passed, {failed} failed",
|
|
28403
|
+
"unnamed-claim-failed-names": "(failed: {names})",
|
|
28404
|
+
"several-scn-codes-cited": "{count} scenario codes cite {codes} \u2014 a test cites exactly one scenario, so this one credits none of them.",
|
|
28405
|
+
"shared-scn-code": "{code} is carried by more than one scenario, so evidence citing it credits none of them."
|
|
28676
28406
|
};
|
|
28677
28407
|
}
|
|
28678
28408
|
});
|
|
@@ -31476,6 +31206,264 @@ var init_coreText = __esm({
|
|
|
31476
31206
|
}
|
|
31477
31207
|
});
|
|
31478
31208
|
|
|
31209
|
+
// ../core/dist/render/messages.js
|
|
31210
|
+
var QUALITY_CHECK_FAULT_MESSAGES, CoreMessage, CoreError, CORE_MESSAGES;
|
|
31211
|
+
var init_messages4 = __esm({
|
|
31212
|
+
"../core/dist/render/messages.js"() {
|
|
31213
|
+
"use strict";
|
|
31214
|
+
init_qualityCheckFault();
|
|
31215
|
+
QUALITY_CHECK_FAULT_MESSAGES = {
|
|
31216
|
+
[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}.`
|
|
31217
|
+
};
|
|
31218
|
+
(function(CoreMessage2) {
|
|
31219
|
+
CoreMessage2[CoreMessage2["ErrorsInTheInputsHeading"] = 0] = "ErrorsInTheInputsHeading";
|
|
31220
|
+
CoreMessage2[CoreMessage2["ConfigurationNotReadHeading"] = 1] = "ConfigurationNotReadHeading";
|
|
31221
|
+
CoreMessage2[CoreMessage2["ScenarioCodeErrorsHeading"] = 2] = "ScenarioCodeErrorsHeading";
|
|
31222
|
+
CoreMessage2["ConfigurationNotReadIntro"] = "configuration-not-read-intro";
|
|
31223
|
+
CoreMessage2["ConfigurationWrongKind"] = "configuration-wrong-kind";
|
|
31224
|
+
CoreMessage2["ConfigurationUnknownKey"] = "configuration-unknown-key";
|
|
31225
|
+
CoreMessage2["ProofsNeverRan"] = "proofs-never-ran";
|
|
31226
|
+
CoreMessage2["ScenarioCodeErrorCount"] = "scenario-code-error-count";
|
|
31227
|
+
CoreMessage2["NoFeatureFileJudged"] = "no-feature-file-judged";
|
|
31228
|
+
CoreMessage2["CleanNoCodedScenario"] = "clean-no-coded-scenario";
|
|
31229
|
+
CoreMessage2["CleanEachFileOwnCode"] = "clean-each-file-own-code";
|
|
31230
|
+
CoreMessage2["CleanOthersNoFeatureCode"] = "clean-others-no-feature-code";
|
|
31231
|
+
CoreMessage2["UnnamedClaimCiSteps"] = "unnamed-claim-ci-steps";
|
|
31232
|
+
CoreMessage2["UnnamedClaimCiStepsNamed"] = "unnamed-claim-ci-steps-named";
|
|
31233
|
+
CoreMessage2["ScenarioCodeErrorsFraming"] = "scenario-code-errors-framing";
|
|
31234
|
+
CoreMessage2["SeveralScnCodesFraming"] = "several-scn-codes-framing";
|
|
31235
|
+
CoreMessage2["MisfiledAndSeveralScnCodesFraming"] = "misfiled-and-several-scn-codes-framing";
|
|
31236
|
+
CoreMessage2["DuplicateScnCodeNotListed"] = "duplicate-scn-code-not-listed";
|
|
31237
|
+
CoreMessage2["DuplicateFeatureCode"] = "duplicate-feature-code";
|
|
31238
|
+
CoreMessage2["ForeignScnCodeCarried"] = "foreign-scn-code-carried";
|
|
31239
|
+
CoreMessage2["ForeignScnCodeNoCarrier"] = "foreign-scn-code-no-carrier";
|
|
31240
|
+
CoreMessage2["NoFeatureCode"] = "no-feature-code";
|
|
31241
|
+
CoreMessage2["ScenarioSeveralScnCodes"] = "several-scn-codes";
|
|
31242
|
+
CoreMessage2["RunnerKeyNotALayer"] = "runner-key-not-a-layer";
|
|
31243
|
+
CoreMessage2["NotChecksEntryMatchesNoStep"] = "not-checks-entry-matches-no-step";
|
|
31244
|
+
CoreMessage2["NotChecksEntryNotAStepName"] = "not-checks-entry-not-a-step-name";
|
|
31245
|
+
CoreMessage2["ManifestKindList"] = "manifest-kind-list";
|
|
31246
|
+
CoreMessage2["ManifestKindObject"] = "manifest-kind-object";
|
|
31247
|
+
CoreMessage2["ManifestKindString"] = "manifest-kind-string";
|
|
31248
|
+
CoreMessage2["ManifestKindStringOrNull"] = "manifest-kind-string-or-null";
|
|
31249
|
+
CoreMessage2["ManifestKindOfType"] = "manifest-kind-of-type";
|
|
31250
|
+
CoreMessage2["ReportTitle"] = "report-title";
|
|
31251
|
+
CoreMessage2["RunProvenanceHeading"] = "run-provenance-heading";
|
|
31252
|
+
CoreMessage2["ProvenanceTargetRepo"] = "provenance-target-repo";
|
|
31253
|
+
CoreMessage2["ProvenanceTargetRepoUntargeted"] = "provenance-target-repo-untargeted";
|
|
31254
|
+
CoreMessage2["ProvenanceNoInputs"] = "provenance-no-inputs";
|
|
31255
|
+
CoreMessage2["ProvenanceInputs"] = "provenance-inputs";
|
|
31256
|
+
CoreMessage2["ProvenanceNotSupplied"] = "provenance-not-supplied";
|
|
31257
|
+
CoreMessage2["ProvenanceRunTimestamp"] = "provenance-run-timestamp";
|
|
31258
|
+
CoreMessage2["ProvenanceSourceSha"] = "provenance-source-sha";
|
|
31259
|
+
CoreMessage2["ProvenanceSourceShaUnknown"] = "provenance-source-sha-unknown";
|
|
31260
|
+
CoreMessage2["ProvenanceToolSha"] = "provenance-tool-sha";
|
|
31261
|
+
CoreMessage2["ProvenanceToolShaUnknown"] = "provenance-tool-sha-unknown";
|
|
31262
|
+
CoreMessage2["ProvenanceToolVersion"] = "provenance-tool-version";
|
|
31263
|
+
CoreMessage2["RunIntegrityHeading"] = "run-integrity-heading";
|
|
31264
|
+
CoreMessage2["RunUnsound"] = "run-unsound";
|
|
31265
|
+
CoreMessage2["BrokenEvidenceNotNamed"] = "broken-evidence-not-named";
|
|
31266
|
+
CoreMessage2["BrokenEvidenceWhatBroke"] = "broken-evidence-what-broke";
|
|
31267
|
+
CoreMessage2["BrokenEvidenceNoMessage"] = "broken-evidence-no-message";
|
|
31268
|
+
CoreMessage2["SummaryHeading"] = "summary-heading";
|
|
31269
|
+
CoreMessage2["RunVerdictHeading"] = "run-verdict-heading";
|
|
31270
|
+
CoreMessage2["VerdictExit"] = "verdict-exit";
|
|
31271
|
+
CoreMessage2["ScenarioCodeErrorsHeadline"] = "scenario-code-errors-headline";
|
|
31272
|
+
CoreMessage2["ScenarioCodeErrorsGloss"] = "scenario-code-errors-gloss";
|
|
31273
|
+
CoreMessage2["SeveralScnCodesGloss"] = "several-scn-codes-gloss";
|
|
31274
|
+
CoreMessage2["MisfiledAndSeveralScnCodesGloss"] = "misfiled-and-several-scn-codes-gloss";
|
|
31275
|
+
CoreMessage2["AlsoOutOfBalance"] = "also-out-of-balance";
|
|
31276
|
+
CoreMessage2["OutOfBalanceHeadline"] = "out-of-balance-headline";
|
|
31277
|
+
CoreMessage2["OutOfBalanceGloss"] = "out-of-balance-gloss";
|
|
31278
|
+
CoreMessage2["UnsoundHeadline"] = "unsound-headline";
|
|
31279
|
+
CoreMessage2["UnsoundGloss"] = "unsound-gloss";
|
|
31280
|
+
CoreMessage2["PendingHeadline"] = "pending-headline";
|
|
31281
|
+
CoreMessage2["PendingGloss"] = "pending-gloss";
|
|
31282
|
+
CoreMessage2["BalancedHeadline"] = "balanced-headline";
|
|
31283
|
+
CoreMessage2["BalancedGloss"] = "balanced-gloss";
|
|
31284
|
+
CoreMessage2["NothingToReconcileHeadline"] = "nothing-to-reconcile-headline";
|
|
31285
|
+
CoreMessage2["NothingToReconcileGloss"] = "nothing-to-reconcile-gloss";
|
|
31286
|
+
CoreMessage2["PendingItemsOutstanding"] = "pending-items-outstanding";
|
|
31287
|
+
CoreMessage2["ReconciliationTotalsHeading"] = "reconciliation-totals-heading";
|
|
31288
|
+
CoreMessage2["ReconciliationTotalsClaimReconciliationTerm"] = "reconciliation-totals-claim-reconciliation-term";
|
|
31289
|
+
CoreMessage2["ReconciliationTotalsReconciliationLineTerm"] = "reconciliation-totals-reconciliation-line-term";
|
|
31290
|
+
CoreMessage2["ReconciliationTotalsEvidenceObligationTerm"] = "reconciliation-totals-evidence-obligation-term";
|
|
31291
|
+
CoreMessage2["ReconciliationTotalsEvidenceObservationTerm"] = "reconciliation-totals-evidence-observation-term";
|
|
31292
|
+
CoreMessage2["SubjectColumn"] = "subject-column";
|
|
31293
|
+
CoreMessage2["TotalColumn"] = "total-column";
|
|
31294
|
+
CoreMessage2["BalancedColumn"] = "balanced-column";
|
|
31295
|
+
CoreMessage2["OutOfBalanceColumn"] = "out-of-balance-column";
|
|
31296
|
+
CoreMessage2["DetailColumn"] = "detail-column";
|
|
31297
|
+
CoreMessage2["ClaimReconciliationSubject"] = "claim-reconciliation-subject";
|
|
31298
|
+
CoreMessage2["ReconciliationLineSubject"] = "reconciliation-line-subject";
|
|
31299
|
+
CoreMessage2["PendingTally"] = "pending-tally";
|
|
31300
|
+
CoreMessage2["EvidenceObservationsHeading"] = "evidence-observations-heading";
|
|
31301
|
+
CoreMessage2["EvidenceObservationsSum"] = "evidence-observations-sum";
|
|
31302
|
+
CoreMessage2["EvidenceObservationsTableHeader"] = "evidence-observations-table-header";
|
|
31303
|
+
CoreMessage2["FitnessRunner"] = "fitness-runner";
|
|
31304
|
+
CoreMessage2["FitnessCiStep"] = "fitness-ci-step";
|
|
31305
|
+
CoreMessage2["RunnerLayerNamesNone"] = "runner-layer-names-none";
|
|
31306
|
+
CoreMessage2["RunnerLayerUnnamed"] = "runner-layer-unnamed";
|
|
31307
|
+
CoreMessage2["NoStepCountedAsItsRunnerRunsIt"] = "no-step-counted-as-its-runner-runs-it";
|
|
31308
|
+
CoreMessage2["ReconcilerStep"] = "reconciler-step";
|
|
31309
|
+
CoreMessage2["ReconcilerReconciles"] = "reconciler-reconciles";
|
|
31310
|
+
CoreMessage2["ReconcilerRecords"] = "reconciler-records";
|
|
31311
|
+
CoreMessage2["StepNonCheck"] = "step-non-check";
|
|
31312
|
+
CoreMessage2["StepAccountingHeading"] = "step-accounting-heading";
|
|
31313
|
+
CoreMessage2["StepAccountingTableHeader"] = "step-accounting-table-header";
|
|
31314
|
+
CoreMessage2["StepAccountingTotal"] = "step-accounting-total";
|
|
31315
|
+
CoreMessage2["StepAccountingRunnersLabel"] = "step-accounting-runners-label";
|
|
31316
|
+
CoreMessage2["StepAccountingReconcilerLabel"] = "step-accounting-reconciler-label";
|
|
31317
|
+
CoreMessage2["StepAccountingNonChecksLabel"] = "step-accounting-non-checks-label";
|
|
31318
|
+
CoreMessage2["StepAccountingNotAppliedWorkflowsReadLabel"] = "step-accounting-not-applied-workflows-read-label";
|
|
31319
|
+
CoreMessage2["StepAccountingNotAppliedNoWorkflowReadLabel"] = "step-accounting-not-applied-no-workflow-read-label";
|
|
31320
|
+
CoreMessage2["StepAccountingPlumbingLabel"] = "step-accounting-plumbing-label";
|
|
31321
|
+
CoreMessage2["StepAccountingCandidatesTerm"] = "step-accounting-candidates-term";
|
|
31322
|
+
CoreMessage2["StepAccountingReconcilerTerm"] = "step-accounting-reconciler-term";
|
|
31323
|
+
CoreMessage2["StepAccountingNonChecksTerm"] = "step-accounting-non-checks-term";
|
|
31324
|
+
CoreMessage2["StepAccountingPlumbingTerm"] = "step-accounting-plumbing-term";
|
|
31325
|
+
CoreMessage2["StepAccountingAccountedForTerm"] = "step-accounting-accounted-for-term";
|
|
31326
|
+
CoreMessage2["OutOfBalanceByFeatureHeading"] = "out-of-balance-by-feature-heading";
|
|
31327
|
+
CoreMessage2["ScenarioClaimReconciliationsOutOfBalance"] = "scenario-claim-reconciliations-out-of-balance";
|
|
31328
|
+
CoreMessage2["GroupedByFeature"] = "grouped-by-feature";
|
|
31329
|
+
CoreMessage2["NotGroupedByFeature"] = "not-grouped-by-feature";
|
|
31330
|
+
CoreMessage2["PhantomClaimReconciliations"] = "phantom-claim-reconciliations";
|
|
31331
|
+
CoreMessage2["UnnamedClaimReconciliations"] = "unnamed-claim-reconciliations";
|
|
31332
|
+
CoreMessage2["AndJoiner"] = "and-joiner";
|
|
31333
|
+
CoreMessage2["ByFeatureTableHeader"] = "by-feature-table-header";
|
|
31334
|
+
CoreMessage2["NoScnCodeScenarios"] = "no-scn-code-scenarios";
|
|
31335
|
+
CoreMessage2["CodesAndNoScnCodeScenarios"] = "codes-and-no-scn-code-scenarios";
|
|
31336
|
+
CoreMessage2["ClaimReconciliationsHeading"] = "claim-reconciliations-heading";
|
|
31337
|
+
CoreMessage2["ClaimReconciliationTally"] = "claim-reconciliation-tally";
|
|
31338
|
+
CoreMessage2["PhantomClaimTally"] = "phantom-claim-tally";
|
|
31339
|
+
CoreMessage2["UnnamedClaimTally"] = "unnamed-claim-tally";
|
|
31340
|
+
CoreMessage2["ExcludedScnOccurrences"] = "excluded-scn-occurrences";
|
|
31341
|
+
CoreMessage2["UntaggedScenarios"] = "untagged-scenarios";
|
|
31342
|
+
CoreMessage2["SharedScnCodes"] = "shared-scn-codes";
|
|
31343
|
+
CoreMessage2["SharedScnCodeScenario"] = "shared-scn-code-scenario";
|
|
31344
|
+
CoreMessage2["ClaimColumn"] = "claim-column";
|
|
31345
|
+
CoreMessage2["VerdictColumn"] = "verdict-column";
|
|
31346
|
+
CoreMessage2["ReconcilingItemsColumn"] = "reconciling-items-column";
|
|
31347
|
+
CoreMessage2["CiStepsColumn"] = "ci-steps-column";
|
|
31348
|
+
CoreMessage2["EvidenceCellKey"] = "evidence-cell-key";
|
|
31349
|
+
CoreMessage2["WatermelonItemKey"] = "watermelon-item-key";
|
|
31350
|
+
CoreMessage2["PendingItem"] = "pending-item";
|
|
31351
|
+
CoreMessage2["PendingItemFor"] = "pending-item-for";
|
|
31352
|
+
CoreMessage2["CheckStepNoOutcome"] = "check-step-no-outcome";
|
|
31353
|
+
CoreMessage2["CheckStepSkipped"] = "check-step-skipped";
|
|
31354
|
+
CoreMessage2["CheckStepEnded"] = "check-step-ended";
|
|
31355
|
+
CoreMessage2["AmbiguousNamedStep"] = "ambiguous-named-step";
|
|
31356
|
+
CoreMessage2["AmbiguousUnnamedStep"] = "ambiguous-unnamed-step";
|
|
31357
|
+
CoreMessage2["OutcomeSatisfied"] = "outcome-satisfied";
|
|
31358
|
+
CoreMessage2["OutcomeMissing"] = "outcome-missing";
|
|
31359
|
+
CoreMessage2["OutcomeFailing"] = "outcome-failing";
|
|
31360
|
+
CoreMessage2["OutcomeWatermelon"] = "outcome-watermelon";
|
|
31361
|
+
CoreMessage2["OutcomeNoScnCode"] = "outcome-no-scn-code";
|
|
31362
|
+
CoreMessage2["OutcomeDuplicateScnCode"] = "outcome-duplicate-scn-code";
|
|
31363
|
+
CoreMessage2["OutcomeCitesUnknownScenario"] = "outcome-cites-unknown-scenario";
|
|
31364
|
+
CoreMessage2["OutcomeCitesNoScenario"] = "outcome-cites-no-scenario";
|
|
31365
|
+
CoreMessage2["OutcomeNoEvidenceObligation"] = "outcome-no-evidence-obligation";
|
|
31366
|
+
CoreMessage2["OutcomeBroken"] = "outcome-broken";
|
|
31367
|
+
CoreMessage2["OutcomeBothMissing"] = "outcome-both-missing";
|
|
31368
|
+
CoreMessage2["ObservationPassed"] = "observation-passed";
|
|
31369
|
+
CoreMessage2["ObservationFailed"] = "observation-failed";
|
|
31370
|
+
CoreMessage2["UnnamedClaimGroupCounts"] = "unnamed-claim-group-counts";
|
|
31371
|
+
CoreMessage2["UnnamedClaimFailedNames"] = "unnamed-claim-failed-names";
|
|
31372
|
+
CoreMessage2["SeveralScnCodesCited"] = "several-scn-codes-cited";
|
|
31373
|
+
CoreMessage2["SharedScnCode"] = "shared-scn-code";
|
|
31374
|
+
})(CoreMessage || (CoreMessage = {}));
|
|
31375
|
+
(function(CoreError2) {
|
|
31376
|
+
CoreError2["ConfigurationWrongKind"] = "configuration-wrong-kind";
|
|
31377
|
+
CoreError2["ConfigurationUnknownKey"] = "configuration-unknown-key";
|
|
31378
|
+
CoreError2["RunnerKeyNotALayer"] = "runner-key-not-a-layer";
|
|
31379
|
+
CoreError2["NotChecksEntryMatchesNoStep"] = "not-checks-entry-matches-no-step";
|
|
31380
|
+
CoreError2["NotChecksEntryNotAStepName"] = "not-checks-entry-not-a-step-name";
|
|
31381
|
+
CoreError2["DuplicateFeatureCode"] = "duplicate-feature-code";
|
|
31382
|
+
CoreError2["ForeignScnCode"] = "foreign-scn-code";
|
|
31383
|
+
CoreError2["NoFeatureCode"] = "no-feature-code";
|
|
31384
|
+
CoreError2["SeveralScnCodes"] = "several-scn-codes";
|
|
31385
|
+
})(CoreError || (CoreError = {}));
|
|
31386
|
+
CORE_MESSAGES = {
|
|
31387
|
+
[CoreMessage.ErrorsInTheInputsHeading]: "## Errors in the inputs",
|
|
31388
|
+
[CoreMessage.ConfigurationNotReadHeading]: "### Configuration not read",
|
|
31389
|
+
[CoreMessage.ScenarioCodeErrorsHeading]: "### Scenario code errors"
|
|
31390
|
+
};
|
|
31391
|
+
}
|
|
31392
|
+
});
|
|
31393
|
+
|
|
31394
|
+
// ../core/dist/render/outcomeDescription.js
|
|
31395
|
+
var OUTCOME_DESCRIPTION, outcomeDescription;
|
|
31396
|
+
var init_outcomeDescription = __esm({
|
|
31397
|
+
"../core/dist/render/outcomeDescription.js"() {
|
|
31398
|
+
"use strict";
|
|
31399
|
+
init_coreText();
|
|
31400
|
+
init_messages4();
|
|
31401
|
+
OUTCOME_DESCRIPTION = {
|
|
31402
|
+
satisfied: CoreMessage.OutcomeSatisfied,
|
|
31403
|
+
missing: CoreMessage.OutcomeMissing,
|
|
31404
|
+
failing: CoreMessage.OutcomeFailing,
|
|
31405
|
+
watermelon: CoreMessage.OutcomeWatermelon,
|
|
31406
|
+
"no-scn-code": CoreMessage.OutcomeNoScnCode,
|
|
31407
|
+
"duplicate-scn-code": CoreMessage.OutcomeDuplicateScnCode,
|
|
31408
|
+
"cites-unknown-scenario": CoreMessage.OutcomeCitesUnknownScenario,
|
|
31409
|
+
"cites-no-scenario": CoreMessage.OutcomeCitesNoScenario,
|
|
31410
|
+
"no-evidence-obligation": CoreMessage.OutcomeNoEvidenceObligation,
|
|
31411
|
+
broken: CoreMessage.OutcomeBroken,
|
|
31412
|
+
"both-missing": CoreMessage.OutcomeBothMissing
|
|
31413
|
+
};
|
|
31414
|
+
outcomeDescription = (outcome) => coreMessage(OUTCOME_DESCRIPTION[outcome]);
|
|
31415
|
+
}
|
|
31416
|
+
});
|
|
31417
|
+
|
|
31418
|
+
// ../core/dist/render/cellSafe.js
|
|
31419
|
+
function cellSafe(text) {
|
|
31420
|
+
return text.replace(/\s+/g, " ").replace(/[\\|]/g, "\\$&").trim();
|
|
31421
|
+
}
|
|
31422
|
+
function cellSafeKeepingCodeSpans(text) {
|
|
31423
|
+
return text.replace(/\s+/g, " ").replace(SPAN_OR_ESCAPED, (found) => found.startsWith("`") ? found.replace(/\|/g, "\\|") : `\\${found}`);
|
|
31424
|
+
}
|
|
31425
|
+
var SPAN_OR_ESCAPED;
|
|
31426
|
+
var init_cellSafe = __esm({
|
|
31427
|
+
"../core/dist/render/cellSafe.js"() {
|
|
31428
|
+
"use strict";
|
|
31429
|
+
SPAN_OR_ESCAPED = /(`+)[\s\S]*?(?<!`)\1(?!`)|[\\|]/g;
|
|
31430
|
+
}
|
|
31431
|
+
});
|
|
31432
|
+
|
|
31433
|
+
// ../core/dist/render/codeSpan.js
|
|
31434
|
+
function codeSpan(written) {
|
|
31435
|
+
const text = spanHoldsAsWritten(written) ? written : JSON.stringify(written);
|
|
31436
|
+
const fence = "`".repeat(longestBacktickRun(text) + 1);
|
|
31437
|
+
const pad = text.startsWith("`") || text.endsWith("`") ? " " : "";
|
|
31438
|
+
return `${fence}${pad}${text}${pad}${fence}`;
|
|
31439
|
+
}
|
|
31440
|
+
function fencedBlockLines(info, text) {
|
|
31441
|
+
const fence = "`".repeat(Math.max(3, longestBacktickRun(text) + 1));
|
|
31442
|
+
return [`${fence}${info}`, ...text.split("\n"), fence];
|
|
31443
|
+
}
|
|
31444
|
+
var spanHoldsAsWritten, longestBacktickRun;
|
|
31445
|
+
var init_codeSpan = __esm({
|
|
31446
|
+
"../core/dist/render/codeSpan.js"() {
|
|
31447
|
+
"use strict";
|
|
31448
|
+
spanHoldsAsWritten = (text) => text !== "" && !(text.startsWith(" ") && text.endsWith(" ")) && !/[\n\r]/.test(text) && !(text.startsWith('"') && text.endsWith('"'));
|
|
31449
|
+
longestBacktickRun = (text) => Math.max(0, ...(text.match(/`+/g) ?? []).map((run3) => run3.length));
|
|
31450
|
+
}
|
|
31451
|
+
});
|
|
31452
|
+
|
|
31453
|
+
// ../core/dist/render/reportedName.js
|
|
31454
|
+
function reportedName(text) {
|
|
31455
|
+
const name = text.replace(/\s+/g, " ").trim();
|
|
31456
|
+
return ROW_SEPARATOR.test(name) ? codeSpan(name) : name;
|
|
31457
|
+
}
|
|
31458
|
+
var ROW_SEPARATOR;
|
|
31459
|
+
var init_reportedName = __esm({
|
|
31460
|
+
"../core/dist/render/reportedName.js"() {
|
|
31461
|
+
"use strict";
|
|
31462
|
+
init_codeSpan();
|
|
31463
|
+
ROW_SEPARATOR = /; |: | \/ |, /;
|
|
31464
|
+
}
|
|
31465
|
+
});
|
|
31466
|
+
|
|
31479
31467
|
// ../core/dist/render/heading.js
|
|
31480
31468
|
var markdownHeading;
|
|
31481
31469
|
var init_heading = __esm({
|
|
@@ -31664,7 +31652,7 @@ var init_scenarioCodeErrorsSection = __esm({
|
|
|
31664
31652
|
"",
|
|
31665
31653
|
...errors.map((error) => errorEntry(CODE_OF[error.kind], worded(error))),
|
|
31666
31654
|
"",
|
|
31667
|
-
coreMessage(CoreMessage.DuplicateScnCodeNotListed, { outcome:
|
|
31655
|
+
coreMessage(CoreMessage.DuplicateScnCodeNotListed, { outcome: coreMessage(CoreMessage.OutcomeDuplicateScnCode) }),
|
|
31668
31656
|
""
|
|
31669
31657
|
];
|
|
31670
31658
|
};
|
|
@@ -32044,21 +32032,21 @@ var init_evidenceGrid = __esm({
|
|
|
32044
32032
|
function noteWords(note) {
|
|
32045
32033
|
switch (note.kind) {
|
|
32046
32034
|
case "several-scn-codes":
|
|
32047
|
-
return
|
|
32035
|
+
return coreMessage(CoreMessage.SeveralScnCodesCited, { count: note.codes.length, codes: note.codes.join(", ") });
|
|
32048
32036
|
case "shared-scn-code":
|
|
32049
|
-
return
|
|
32037
|
+
return coreMessage(CoreMessage.SharedScnCode, { code: note.code });
|
|
32050
32038
|
case "ambiguous-step":
|
|
32051
|
-
return note.step === void 0 ?
|
|
32039
|
+
return note.step === void 0 ? coreMessage(CoreMessage.AmbiguousUnnamedStep) : coreMessage(CoreMessage.AmbiguousNamedStep, { step: note.step });
|
|
32052
32040
|
case "check-step-did-not-run":
|
|
32053
32041
|
return checkStepWords(note.code, note.outcome);
|
|
32054
32042
|
}
|
|
32055
32043
|
}
|
|
32056
32044
|
function checkStepWords(code, outcome) {
|
|
32057
32045
|
if (outcome === void 0)
|
|
32058
|
-
return
|
|
32046
|
+
return coreMessage(CoreMessage.CheckStepNoOutcome, { scnId: code });
|
|
32059
32047
|
if (outcome === "skipped")
|
|
32060
|
-
return
|
|
32061
|
-
return
|
|
32048
|
+
return coreMessage(CoreMessage.CheckStepSkipped, { scnId: code });
|
|
32049
|
+
return coreMessage(CoreMessage.CheckStepEnded, { scnId: code, outcome });
|
|
32062
32050
|
}
|
|
32063
32051
|
function remarkWordsOf({ message: message2, notes = [] }) {
|
|
32064
32052
|
const words2 = [...message2 === void 0 || message2.trim() === "" ? [] : [message2], ...notes.map(noteWords)];
|
|
@@ -32072,6 +32060,7 @@ var init_remarkWords = __esm({
|
|
|
32072
32060
|
"../core/dist/render/remarkWords.js"() {
|
|
32073
32061
|
"use strict";
|
|
32074
32062
|
init_messages4();
|
|
32063
|
+
init_coreText();
|
|
32075
32064
|
}
|
|
32076
32065
|
});
|
|
32077
32066
|
|
|
@@ -32134,7 +32123,7 @@ var init_unnamedClaimGroups = __esm({
|
|
|
32134
32123
|
|
|
32135
32124
|
// ../core/dist/render/markdown.js
|
|
32136
32125
|
function renderLine(line) {
|
|
32137
|
-
const sentence = `${
|
|
32126
|
+
const sentence = `${outcomeDescription(line.outcome)}${scenarioClauseOf(line)}`;
|
|
32138
32127
|
if (line.outcome === "both-missing" || line.outcome === "no-scn-code" || line.qualityCheckKind === void 0) {
|
|
32139
32128
|
return sentence;
|
|
32140
32129
|
}
|
|
@@ -32154,7 +32143,7 @@ function namedSuffix(o) {
|
|
|
32154
32143
|
return quotedSuffix((isFitnessObservation(o) ? [o.fitnessFunction] : [o.locator, o.testName]).map(reported));
|
|
32155
32144
|
}
|
|
32156
32145
|
function scenarioClauseOf({ scenario }) {
|
|
32157
|
-
return scenario === void 0 ? "" : ` \u2014 ${
|
|
32146
|
+
return scenario === void 0 ? "" : ` \u2014 ${coreMessage(CoreMessage.SharedScnCodeScenario, { feature: reportedName(scenario.feature), title: reportedName(scenario.title) })}`;
|
|
32158
32147
|
}
|
|
32159
32148
|
function brokenSuffix(o) {
|
|
32160
32149
|
return quotedSuffix([reported(o.locator), remarkHeadlineOf(o, reportedName)]);
|
|
@@ -32163,19 +32152,19 @@ function observationSuffix(o) {
|
|
|
32163
32152
|
return `${namedSuffix(o)}${resultOf(o)}`;
|
|
32164
32153
|
}
|
|
32165
32154
|
function resultOf(o) {
|
|
32166
|
-
return o.status === void 0 ? "" : ` \u2014 ${
|
|
32155
|
+
return o.status === void 0 ? "" : ` \u2014 ${coreMessage(RESULT_MESSAGE[o.status])}`;
|
|
32167
32156
|
}
|
|
32168
32157
|
function renderPendingItem(item) {
|
|
32169
|
-
return item.qualityCheckKind === void 0 ?
|
|
32158
|
+
return item.qualityCheckKind === void 0 ? coreMessage(CoreMessage.PendingItem) : coreMessage(CoreMessage.PendingItemFor, { qualityCheckKind: item.qualityCheckKind });
|
|
32170
32159
|
}
|
|
32171
32160
|
function renderFileGroup(group) {
|
|
32172
32161
|
const remarks = group.remarks.flatMap((remark) => remarkHeadlineOf(remark, reportedName) ?? []);
|
|
32173
|
-
const code = group.sharedScnCode === void 0 ? [] : [
|
|
32162
|
+
const code = group.sharedScnCode === void 0 ? [] : [coreMessage(CoreMessage.SharedScnCode, { code: group.sharedScnCode })];
|
|
32174
32163
|
const said = [.../* @__PURE__ */ new Set([...code, ...remarks])].filter((part) => part !== "").join(" / ");
|
|
32175
|
-
const counts =
|
|
32164
|
+
const counts = coreMessage(CoreMessage.UnnamedClaimGroupCounts, { ran: group.ran, passed: group.passed, failed: group.failed });
|
|
32176
32165
|
const names = group.failedNames.map(reportedName).filter((name) => name !== "");
|
|
32177
|
-
const failed = names.length === 0 ? "" : ` ${
|
|
32178
|
-
return `${group.qualityCheckKind}: ${
|
|
32166
|
+
const failed = names.length === 0 ? "" : ` ${coreMessage(CoreMessage.UnnamedClaimFailedNames, { names: names.join(" / ") })}`;
|
|
32167
|
+
return `${group.qualityCheckKind}: ${outcomeDescription("cites-no-scenario")}${quotedSuffix([reported(group.locator), said])} \u2014 ${counts}${failed}`;
|
|
32179
32168
|
}
|
|
32180
32169
|
function unnamedClaimCiStepsViewOf(names) {
|
|
32181
32170
|
const named = names.filter((name) => name !== "");
|
|
@@ -32193,8 +32182,8 @@ function renderUnnamedClaimGroup(group) {
|
|
|
32193
32182
|
if (!("names" in group))
|
|
32194
32183
|
return renderFileGroup(group);
|
|
32195
32184
|
const steps = unnamedClaimCiSteps(unnamedClaimCiStepsViewOf(group.names.map(reportedName)));
|
|
32196
|
-
const remark = group.sharedScnCode === void 0 ? "" : ` (${
|
|
32197
|
-
return `fitness: ${
|
|
32185
|
+
const remark = group.sharedScnCode === void 0 ? "" : ` (${coreMessage(CoreMessage.SharedScnCode, { code: group.sharedScnCode })})`;
|
|
32186
|
+
return `fitness: ${outcomeDescription("cites-no-scenario")}${remark} \u2014 ${steps}`;
|
|
32198
32187
|
}
|
|
32199
32188
|
function renderUnnamedClaimItems(lines) {
|
|
32200
32189
|
const broken = lines.filter((line) => line.outcome === "broken");
|
|
@@ -32219,7 +32208,7 @@ function pendingTally(pending) {
|
|
|
32219
32208
|
function byFeatureTableLines(groups) {
|
|
32220
32209
|
if (groups.length === 0)
|
|
32221
32210
|
return [];
|
|
32222
|
-
const lines = [
|
|
32211
|
+
const lines = [coreMessage(CoreMessage.ByFeatureTableHeader), "| --- | --- | --- |"];
|
|
32223
32212
|
for (const group of groups) {
|
|
32224
32213
|
const label = group.featureFile ? `${group.featureFile} (${group.feature})` : group.feature;
|
|
32225
32214
|
lines.push(`| ${label} | ${group.count} | ${idsCell(group)} |`);
|
|
@@ -32228,36 +32217,40 @@ function byFeatureTableLines(groups) {
|
|
|
32228
32217
|
return lines;
|
|
32229
32218
|
}
|
|
32230
32219
|
function idsCell(group) {
|
|
32231
|
-
const ids = group.claims.join(", ");
|
|
32232
32220
|
const noScnCodeCount = group.scenariosWithNoScnCode ?? 0;
|
|
32233
32221
|
if (noScnCodeCount === 0)
|
|
32234
|
-
return
|
|
32235
|
-
const
|
|
32236
|
-
|
|
32222
|
+
return codeList(group.claims);
|
|
32223
|
+
const view = outOfBalanceCodesOf(group);
|
|
32224
|
+
switch (view.kind) {
|
|
32225
|
+
case "none":
|
|
32226
|
+
return coreMessage(CoreMessage.NoScnCodeScenarios, { count: noScnCodeCount });
|
|
32227
|
+
case "some":
|
|
32228
|
+
return coreMessage(CoreMessage.CodesAndNoScnCodeScenarios, { codes: codeList(view.codes), count: noScnCodeCount });
|
|
32229
|
+
}
|
|
32237
32230
|
}
|
|
32238
32231
|
function ungroupedOutOfBalance(totals) {
|
|
32239
32232
|
return [
|
|
32240
|
-
...totals.phantomClaim > 0 ? [
|
|
32241
|
-
...totals.unnamedClaim > 0 ? [
|
|
32233
|
+
...totals.phantomClaim > 0 ? [coreMessage(CoreMessage.PhantomClaimReconciliations, { count: totals.phantomClaim })] : [],
|
|
32234
|
+
...totals.unnamedClaim > 0 ? [coreMessage(CoreMessage.UnnamedClaimReconciliations, { count: totals.unnamedClaim })] : []
|
|
32242
32235
|
];
|
|
32243
32236
|
}
|
|
32244
32237
|
function ungroupedTail(ungrouped) {
|
|
32245
|
-
return ungrouped.length > 0 ? `; ${
|
|
32238
|
+
return ungrouped.length > 0 ? `; ${coreMessage(CoreMessage.NotGroupedByFeature, { ungrouped: ungrouped.join(coreMessage(CoreMessage.AndJoiner)) })}` : "";
|
|
32246
32239
|
}
|
|
32247
32240
|
function evidenceKeyLines(columns) {
|
|
32248
32241
|
if (columns.length === 0)
|
|
32249
32242
|
return [];
|
|
32250
|
-
return [...
|
|
32243
|
+
return [...coreMessage(CoreMessage.EvidenceCellKey).split("\n"), coreMessage(CoreMessage.WatermelonItemKey), ""];
|
|
32251
32244
|
}
|
|
32252
32245
|
function ledgerTallyLines(totals) {
|
|
32253
32246
|
const lines = [
|
|
32254
|
-
`- ${
|
|
32247
|
+
`- ${coreMessage(CoreMessage.ClaimReconciliationTally, { total: totals.total, balanced: totals.balanced, outOfBalance: totals.outOfBalance })}`
|
|
32255
32248
|
];
|
|
32256
32249
|
if (totals.phantomClaim > 0) {
|
|
32257
|
-
lines.push(`- ${
|
|
32250
|
+
lines.push(`- ${coreMessage(CoreMessage.PhantomClaimTally, { count: totals.phantomClaim })}`);
|
|
32258
32251
|
}
|
|
32259
32252
|
if (totals.unnamedClaim > 0) {
|
|
32260
|
-
lines.push(`- ${
|
|
32253
|
+
lines.push(`- ${coreMessage(CoreMessage.UnnamedClaimTally, { count: totals.unnamedClaim, unnamedClaimId: UNNAMED_CLAIM_ID })}`);
|
|
32261
32254
|
}
|
|
32262
32255
|
return lines;
|
|
32263
32256
|
}
|
|
@@ -32265,18 +32258,18 @@ function sharedScnCodeLines(shared, scenarios) {
|
|
|
32265
32258
|
if (shared.length === 0)
|
|
32266
32259
|
return [];
|
|
32267
32260
|
return [
|
|
32268
|
-
`- ${
|
|
32261
|
+
`- ${coreMessage(CoreMessage.SharedScnCodes, { scenarios, codes: shared.length })}`,
|
|
32269
32262
|
...shared.map((code) => ` - ${code.scnId}: ${code.scenarios.map((s) => `${s.feature} : ${s.title}`).join("; ")}`)
|
|
32270
32263
|
];
|
|
32271
32264
|
}
|
|
32272
32265
|
function ledgerTableLines(claims, columns, stepsByQualityCheckKind) {
|
|
32273
32266
|
const withSteps2 = columns.length > 0;
|
|
32274
32267
|
const headers = [
|
|
32275
|
-
|
|
32268
|
+
coreMessage(CoreMessage.ClaimColumn),
|
|
32276
32269
|
...columns.map(columnHeader),
|
|
32277
|
-
|
|
32278
|
-
|
|
32279
|
-
...withSteps2 ? [
|
|
32270
|
+
coreMessage(CoreMessage.VerdictColumn),
|
|
32271
|
+
coreMessage(CoreMessage.ReconcilingItemsColumn),
|
|
32272
|
+
...withSteps2 ? [coreMessage(CoreMessage.CiStepsColumn)] : []
|
|
32280
32273
|
];
|
|
32281
32274
|
const lines = [`| ${headers.join(" | ")} |`, `| ${headers.map(() => "---").join(" | ")} |`];
|
|
32282
32275
|
for (const s of claims) {
|
|
@@ -32290,7 +32283,7 @@ function ledgerTableLines(claims, columns, stepsByQualityCheckKind) {
|
|
|
32290
32283
|
function renderReport(report, inputNames, exitCodeOf2) {
|
|
32291
32284
|
return SECTIONS.flatMap((section) => section(report, inputNames, exitCodeOf2)).join("\n");
|
|
32292
32285
|
}
|
|
32293
|
-
var reported, RESULT_MESSAGE, titleSection, runIntegritySection, summarySection, RECONCILIATION_TOTALS_COLUMNS, RECONCILIATION_TOTALS_TERMS, reconciliationTotalsSection, byFeatureSection, ledgerSection, scenarioCodeFactsSection, SECTIONS;
|
|
32286
|
+
var reported, RESULT_MESSAGE, titleSection, runIntegritySection, summarySection, RECONCILIATION_TOTALS_COLUMNS, RECONCILIATION_TOTALS_TERMS, reconciliationTotalsSection, byFeatureSection, outOfBalanceCodesOf, codeList, ledgerSection, scenarioCodeFactsSection, SECTIONS;
|
|
32294
32287
|
var init_markdown = __esm({
|
|
32295
32288
|
"../core/dist/render/markdown.js"() {
|
|
32296
32289
|
"use strict";
|
|
@@ -32384,7 +32377,7 @@ var init_markdown = __esm({
|
|
|
32384
32377
|
];
|
|
32385
32378
|
for (const outcome of OUT_OF_BALANCE_OUTCOMES) {
|
|
32386
32379
|
const detail = outcome === "missing" ? missingSplit : "";
|
|
32387
|
-
lines.push(row([
|
|
32380
|
+
lines.push(row([outcomeDescription(outcome), "", "", String(reconciliationLines.byOutcome[outcome]), detail]));
|
|
32388
32381
|
}
|
|
32389
32382
|
lines.push(...pendingTally(pending));
|
|
32390
32383
|
lines.push("");
|
|
@@ -32397,15 +32390,22 @@ var init_markdown = __esm({
|
|
|
32397
32390
|
const ungrouped = ungroupedOutOfBalance(report.summary.reconciliationTotals.claimReconciliations);
|
|
32398
32391
|
if (groups.length === 0 && ungrouped.length === 0)
|
|
32399
32392
|
return [];
|
|
32400
|
-
const head =
|
|
32393
|
+
const head = coreMessage(CoreMessage.ScenarioClaimReconciliationsOutOfBalance, { outOfBalance: outOfBalanceCountOf(scenarios), claimReconciliations: scenarios.length });
|
|
32401
32394
|
return [
|
|
32402
|
-
|
|
32395
|
+
markdownHeading(3, coreMessage(CoreMessage.OutOfBalanceByFeatureHeading)),
|
|
32403
32396
|
"",
|
|
32404
|
-
`${head}${groups.length > 0 ?
|
|
32397
|
+
`${head}${groups.length > 0 ? coreMessage(CoreMessage.GroupedByFeature) : ""}${ungroupedTail(ungrouped)}.`,
|
|
32405
32398
|
"",
|
|
32406
32399
|
...byFeatureTableLines(groups)
|
|
32407
32400
|
];
|
|
32408
32401
|
};
|
|
32402
|
+
outOfBalanceCodesOf = ({ claims }) => {
|
|
32403
|
+
const [first, ...rest] = claims;
|
|
32404
|
+
if (first === void 0)
|
|
32405
|
+
return { kind: "none" };
|
|
32406
|
+
return { kind: "some", codes: [first, ...rest] };
|
|
32407
|
+
};
|
|
32408
|
+
codeList = (codes) => codes.join(", ");
|
|
32409
32409
|
ledgerSection = (report) => {
|
|
32410
32410
|
const scenarioRows = report.claimReconciliations.filter(isScenario);
|
|
32411
32411
|
const phantomClaimRows2 = report.claimReconciliations.filter(isPhantomClaim);
|
|
@@ -32413,7 +32413,7 @@ var init_markdown = __esm({
|
|
|
32413
32413
|
const claims = [...scenarioRows, ...phantomClaimRows2, ...unnamedClaimRows2];
|
|
32414
32414
|
const columns = report.summary.evidenceObservations !== void 0 ? evidenceColumns(claims) : [];
|
|
32415
32415
|
return [
|
|
32416
|
-
|
|
32416
|
+
markdownHeading(2, coreMessage(CoreMessage.ClaimReconciliationsHeading)),
|
|
32417
32417
|
"",
|
|
32418
32418
|
...ledgerTallyLines(report.summary.reconciliationTotals.claimReconciliations),
|
|
32419
32419
|
"",
|
|
@@ -32426,10 +32426,10 @@ var init_markdown = __esm({
|
|
|
32426
32426
|
const codes = report.summary.scenarioCodes;
|
|
32427
32427
|
if (codes?.excludedOccurrences === void 0)
|
|
32428
32428
|
return [];
|
|
32429
|
-
const lines = [`- ${
|
|
32429
|
+
const lines = [`- ${coreMessage(CoreMessage.ExcludedScnOccurrences, { count: codes.excludedOccurrences })}`];
|
|
32430
32430
|
const untagged = (codes.untaggedScenarios ?? []).length;
|
|
32431
32431
|
if (untagged > 0)
|
|
32432
|
-
lines.push(`- ${
|
|
32432
|
+
lines.push(`- ${coreMessage(CoreMessage.UntaggedScenarios, { count: untagged })}`);
|
|
32433
32433
|
lines.push(...sharedScnCodeLines(codes.sharedScnCodes ?? [], report.claimReconciliations.filter(isScenario).length));
|
|
32434
32434
|
return [...lines, ""];
|
|
32435
32435
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spec-controller",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.230",
|
|
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.230"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|