spec-controller 0.1.229 → 0.1.231
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 +469 -455
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -88,52 +88,6 @@ var init_messages = __esm({
|
|
|
88
88
|
"src/messages.ts"() {
|
|
89
89
|
"use strict";
|
|
90
90
|
APP_MESSAGES = {
|
|
91
|
-
[0 /* HelpTitle */]: () => "spec-controller \u2014 reconcile scenarios against observed evidence",
|
|
92
|
-
[1 /* HelpUsage */]: () => "Usage:",
|
|
93
|
-
[2 /* HelpCommands */]: () => "Commands:",
|
|
94
|
-
[3 /* HelpHostModifiers */]: () => "Host modifiers (before the command):",
|
|
95
|
-
[4 /* HelpOptions */]: () => "Options:",
|
|
96
|
-
[5 /* HelpArguments */]: () => "Arguments:",
|
|
97
|
-
[6 /* HelpPointer */]: () => "Full flags, examples, and CI wiring: docs/user-guide.md.",
|
|
98
|
-
[7 /* HelpFlag */]: () => "Show this help and exit.",
|
|
99
|
-
[8 /* StoreModifier */]: () => "Store the run: write <root>/<target>/<run-id>/ with the reconciliation outputs + a run.yaml manifest. Required to store; there is no default (a default would write inside the repo).",
|
|
100
|
-
[9 /* RunIdModifier */]: () => "Name the stored run (default: an ISO-8601 UTC timestamp). Read only with --store: given without it, the run is refused, since no run would be kept under the name.",
|
|
101
|
-
[10 /* BalanceSummary */]: () => "Reconcile Gherkin scenarios against test/CI evidence and emit the Evidence Reconciliation (Markdown to stdout by default).",
|
|
102
|
-
[11 /* FeaturesFlag */]: () => "Directory of Gherkin .feature files \u2014 the scenarios, and the `@`-tags naming what each must prove (@unit, @integration, @fitness, \u2026).",
|
|
103
|
-
[12 /* VitestFlag */]: () => "A Vitest JSON report \u2014 runtime test evidence.",
|
|
104
|
-
[13 /* PytestFlag */]: () => "A pytest JUnit XML report (pytest --junitxml) \u2014 runtime unit test evidence.",
|
|
105
|
-
[14 /* JestFlag */]: () => "A Jest JSON report (jest --json --outputFile) \u2014 runtime unit test evidence.",
|
|
106
|
-
[15 /* JunitFlag */]: () => "A JUnit XML report from any test runner that writes one, such as gotestsum --junitfile, or a directory of them, such as Maven Surefire's \u2014 runtime unit test evidence.",
|
|
107
|
-
[16 /* RspecFlag */]: () => "An RSpec JSON report (rspec --format json --out) \u2014 runtime unit test evidence.",
|
|
108
|
-
[17 /* CucumberFlag */]: () => "A Cucumber JSON report \u2014 runtime test evidence.",
|
|
109
|
-
[18 /* CiFlag */]: () => "Your CI workflows \u2014 a file, or a directory of them (default .github/workflows). Where a fitness function you have not converted is found running over the real source, and where a check step's `id:` supplies the @SCN its result cites.",
|
|
110
|
-
[19 /* PackageJsonFlag */]: () => "The target's package.json \u2014 its `scripts`, and its specController.runners, specController.notChecks and specController.deferralTags. A fitness function is named by its @fitness scenario and the CI step whose id: is that scenario's @SCN; no manifest key names one.",
|
|
111
|
-
[20 /* CiStepsFlag */]: () => "The CI run's own record of what each of its steps did \u2014 your pipeline's `toJSON(steps)` dump, evidence for the converted fitness functions. Omit it if you have converted none.",
|
|
112
|
-
[21 /* TargetFlag */]: () => "A name recorded verbatim in the report's provenance (which project this run reconciled).",
|
|
113
|
-
[22 /* SourceShaFlag */]: () => "Override the git commit SHA recorded in provenance (defaults to the resolved HEAD).",
|
|
114
|
-
[23 /* FormatFlag */]: () => "Where to send output (md or json, optionally :<path> to write to a file). Repeatable.",
|
|
115
|
-
[24 /* RenderFromJsonFlag */]: () => "Re-render Markdown from a previously saved Evidence Reconciliation JSON \u2014 no reconcile, no live inputs.",
|
|
116
|
-
[25 /* StrictFlag */]: () => "Fail the run (exit 3) when it carries Pending Items \u2014 the opt-in that escalates otherwise-run-neutral deferred obligations.",
|
|
117
|
-
[26 /* ExitZeroFlag */]: () => "Print the same report but exit 0 on an out-of-balance or scenario-code-error (1) or --strict pending (3) verdict \u2014 the on-ramp before gating. Usage (2), unsound (4) and nothing-to-reconcile (5) still fail.",
|
|
118
|
-
[27 /* ConfigurationHeading */]: () => "Configuration (in the target repo's package.json):",
|
|
119
|
-
[28 /* DeferralTagsKey */]: () => "specController.deferralTags: string[]",
|
|
120
|
-
[29 /* DeferralTagsExtend */]: () => "Extra recognised deferral tags. A scenario carrying one defers every obligation it",
|
|
121
|
-
[30 /* DeferralTagsNeverReplace */]: () => "names to a Pending Item, extending (never replacing) the built-in set.",
|
|
122
|
-
[31 /* BuiltInDeferralTags */]: (tags) => `Built-in deferral tags: ${tags}`,
|
|
123
|
-
[32 /* MeasurementsReplacement */]: () => "A fitness function's evidence observation is the outcome of its own CI step: put the check's @SCN on that step's `id:` and hand balance the run's step record with --ci-steps.",
|
|
124
|
-
[33 /* AllocateSummary */]: () => "Print the next @SCN code for a feature part: one past the highest the repository has ever carried, the code alone on stdout.",
|
|
125
|
-
[34 /* FeaturePartArgument */]: () => "The feature part: a feature file's header code, two to five of A-Z and 0-9.",
|
|
126
|
-
[35 /* NewFlag */]: () => "Start a part no feature file's header carries yet: its first code, or one past any number the repository already carries for it.",
|
|
127
|
-
[36 /* HistoryBoundary */]: (unread, risk) => `history: ${unread}; ${risk} may have been used before`,
|
|
128
|
-
[37 /* ShallowHistoryUnread */]: (before) => `shallow clone \u2014 history before ${before} unread`,
|
|
129
|
-
[38 /* NoRepositoryHistoryRead */]: () => "not a git repository \u2014 none read",
|
|
130
|
-
[39 /* RiskOfPartCode */]: (part) => `a code of ${part}`,
|
|
131
|
-
[40 /* RiskAboveCode */]: (code) => `a code above ${code}`,
|
|
132
|
-
[41 /* HighestSeenNone */]: () => "highest seen: none",
|
|
133
|
-
[42 /* HighestSeenInTree */]: (code, path, line) => `highest seen: ${code}, ${path}:${line}`,
|
|
134
|
-
[43 /* HighestSeenInCommit */]: (code, path, line, commit) => `highest seen: ${code}, ${path}:${line} in ${commit}`,
|
|
135
|
-
[44 /* PartAlreadyHeaded */]: (part) => `note: a feature file's header already carries ${part}, so --new was not needed`,
|
|
136
|
-
[45 /* HelpUsageLine */]: (modifierUsage) => `spec-controller ${modifierUsage} <command> [command-args]`,
|
|
137
91
|
["unexpected-error" /* UnexpectedError */]: (name, firstLine2) => `spec-controller stopped on an unexpected error [${"unexpected-error" /* UnexpectedError */}], and gives no verdict: ${name}: ${firstLine2}`,
|
|
138
92
|
["unexpected-error-after-verdict" /* UnexpectedErrorAfterVerdict */]: (name, firstLine2) => `spec-controller hit an unexpected error [${"unexpected-error-after-verdict" /* UnexpectedErrorAfterVerdict */}] after its verdict: ${name}: ${firstLine2}`
|
|
139
93
|
};
|
|
@@ -28246,324 +28200,6 @@ var init_model = __esm({
|
|
|
28246
28200
|
}
|
|
28247
28201
|
});
|
|
28248
28202
|
|
|
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
28203
|
// ../core/dist/render/messages.en.json
|
|
28568
28204
|
var messages_en_default;
|
|
28569
28205
|
var init_messages_en = __esm({
|
|
@@ -28672,7 +28308,55 @@ var init_messages_en = __esm({
|
|
|
28672
28308
|
"step-accounting-reconciler-term": "A Reconciler step runs this reconciliation or writes the step record it reads.",
|
|
28673
28309
|
"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
28310
|
"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."
|
|
28311
|
+
"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.",
|
|
28312
|
+
"out-of-balance-by-feature-heading": "Out-of-balance by feature",
|
|
28313
|
+
"scenario-claim-reconciliations-out-of-balance": "{outOfBalance} of {claimReconciliations} Claim Reconciliation(s) of scenarios out of balance",
|
|
28314
|
+
"grouped-by-feature": ", grouped by feature",
|
|
28315
|
+
"not-grouped-by-feature": "{ungrouped} out of balance, not grouped by feature (no feature file names them)",
|
|
28316
|
+
"phantom-claim-reconciliations": "{count} Claim Reconciliation(s) for cited scenario ids with no real scenario",
|
|
28317
|
+
"unnamed-claim-reconciliations": "{count} Claim Reconciliation(s) for evidence observations no one scenario can take",
|
|
28318
|
+
"and-joiner": " and ",
|
|
28319
|
+
"by-feature-table-header": "| Feature | Count | Out-of-balance `@SCN` ids |",
|
|
28320
|
+
"no-scn-code-scenarios": "{count} with no `@SCN` code",
|
|
28321
|
+
"codes-and-no-scn-code-scenarios": "{codes} and {count} with no `@SCN` code",
|
|
28322
|
+
"claim-reconciliations-heading": "Claim Reconciliations",
|
|
28323
|
+
"claim-reconciliation-tally": "{total} Claim Reconciliation(s): {balanced} balanced, {outOfBalance} out-of-balance.",
|
|
28324
|
+
"phantom-claim-tally": "{count} Claim Reconciliation(s) for cited scenario ids with no real scenario.",
|
|
28325
|
+
"unnamed-claim-tally": '{count} Claim Reconciliation(s) for evidence observations no one scenario can take, aggregated into "{unnamedClaimId}".',
|
|
28326
|
+
"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",
|
|
28327
|
+
"untagged-scenarios": "{count} scenario(s) carry no @SCN code",
|
|
28328
|
+
"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`:",
|
|
28329
|
+
"shared-scn-code-scenario": "this one is {feature} : {title}",
|
|
28330
|
+
"claim-column": "Claim",
|
|
28331
|
+
"verdict-column": "Verdict",
|
|
28332
|
+
"reconciling-items-column": "Reconciling items",
|
|
28333
|
+
"ci-steps-column": "CI steps",
|
|
28334
|
+
"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.",
|
|
28335
|
+
"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.",
|
|
28336
|
+
"pending-item": "pending",
|
|
28337
|
+
"pending-item-for": "pending: {qualityCheckKind}",
|
|
28338
|
+
"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.",
|
|
28339
|
+
"check-step-skipped": "{scnId}: the CI run's record says this check's step was skipped \u2014 so the check did not run.",
|
|
28340
|
+
"check-step-ended": "{scnId}: the CI run's record says this check's step ended `{outcome}` \u2014 so the check did not run.",
|
|
28341
|
+
"ambiguous-named-step": 'The step "{step}" is ambiguous \u2014 two or more step definitions match it, so the step never ran.',
|
|
28342
|
+
"ambiguous-unnamed-step": "A step is ambiguous \u2014 two or more step definitions match it, so the step never ran.",
|
|
28343
|
+
"outcome-satisfied": "Evidence Observation satisfies its Evidence Obligation",
|
|
28344
|
+
"outcome-missing": "Evidence Observation is missing",
|
|
28345
|
+
"outcome-failing": "Evidence Observation is failing",
|
|
28346
|
+
"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",
|
|
28347
|
+
"outcome-no-scn-code": "Evidence Obligation has no @SCN code for an Evidence Observation to link to",
|
|
28348
|
+
"outcome-duplicate-scn-code": "Evidence Obligation's @SCN code is carried by another Scenario",
|
|
28349
|
+
"outcome-cites-unknown-scenario": "Evidence Observation cites an unknown Scenario",
|
|
28350
|
+
"outcome-cites-no-scenario": "Evidence Observation cites no Scenario",
|
|
28351
|
+
"outcome-no-evidence-obligation": "Evidence Observation cites a Scenario with no matching Evidence Obligation",
|
|
28352
|
+
"outcome-broken": "Evidence Observation is broken because its proof never ran to a result",
|
|
28353
|
+
"outcome-both-missing": "Evidence Obligation and Evidence Observation are both missing \u2014 the Scenario is untagged and uncited",
|
|
28354
|
+
"observation-passed": "passed",
|
|
28355
|
+
"observation-failed": "failed",
|
|
28356
|
+
"unnamed-claim-group-counts": "{ran} ran, {passed} passed, {failed} failed",
|
|
28357
|
+
"unnamed-claim-failed-names": "(failed: {names})",
|
|
28358
|
+
"several-scn-codes-cited": "{count} scenario codes cite {codes} \u2014 a test cites exactly one scenario, so this one credits none of them.",
|
|
28359
|
+
"shared-scn-code": "{code} is carried by more than one scenario, so evidence citing it credits none of them."
|
|
28676
28360
|
};
|
|
28677
28361
|
}
|
|
28678
28362
|
});
|
|
@@ -31476,6 +31160,264 @@ var init_coreText = __esm({
|
|
|
31476
31160
|
}
|
|
31477
31161
|
});
|
|
31478
31162
|
|
|
31163
|
+
// ../core/dist/render/messages.js
|
|
31164
|
+
var QUALITY_CHECK_FAULT_MESSAGES, CoreMessage, CoreError, CORE_MESSAGES;
|
|
31165
|
+
var init_messages4 = __esm({
|
|
31166
|
+
"../core/dist/render/messages.js"() {
|
|
31167
|
+
"use strict";
|
|
31168
|
+
init_qualityCheckFault();
|
|
31169
|
+
QUALITY_CHECK_FAULT_MESSAGES = {
|
|
31170
|
+
[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}.`
|
|
31171
|
+
};
|
|
31172
|
+
(function(CoreMessage2) {
|
|
31173
|
+
CoreMessage2[CoreMessage2["ErrorsInTheInputsHeading"] = 0] = "ErrorsInTheInputsHeading";
|
|
31174
|
+
CoreMessage2[CoreMessage2["ConfigurationNotReadHeading"] = 1] = "ConfigurationNotReadHeading";
|
|
31175
|
+
CoreMessage2[CoreMessage2["ScenarioCodeErrorsHeading"] = 2] = "ScenarioCodeErrorsHeading";
|
|
31176
|
+
CoreMessage2["ConfigurationNotReadIntro"] = "configuration-not-read-intro";
|
|
31177
|
+
CoreMessage2["ConfigurationWrongKind"] = "configuration-wrong-kind";
|
|
31178
|
+
CoreMessage2["ConfigurationUnknownKey"] = "configuration-unknown-key";
|
|
31179
|
+
CoreMessage2["ProofsNeverRan"] = "proofs-never-ran";
|
|
31180
|
+
CoreMessage2["ScenarioCodeErrorCount"] = "scenario-code-error-count";
|
|
31181
|
+
CoreMessage2["NoFeatureFileJudged"] = "no-feature-file-judged";
|
|
31182
|
+
CoreMessage2["CleanNoCodedScenario"] = "clean-no-coded-scenario";
|
|
31183
|
+
CoreMessage2["CleanEachFileOwnCode"] = "clean-each-file-own-code";
|
|
31184
|
+
CoreMessage2["CleanOthersNoFeatureCode"] = "clean-others-no-feature-code";
|
|
31185
|
+
CoreMessage2["UnnamedClaimCiSteps"] = "unnamed-claim-ci-steps";
|
|
31186
|
+
CoreMessage2["UnnamedClaimCiStepsNamed"] = "unnamed-claim-ci-steps-named";
|
|
31187
|
+
CoreMessage2["ScenarioCodeErrorsFraming"] = "scenario-code-errors-framing";
|
|
31188
|
+
CoreMessage2["SeveralScnCodesFraming"] = "several-scn-codes-framing";
|
|
31189
|
+
CoreMessage2["MisfiledAndSeveralScnCodesFraming"] = "misfiled-and-several-scn-codes-framing";
|
|
31190
|
+
CoreMessage2["DuplicateScnCodeNotListed"] = "duplicate-scn-code-not-listed";
|
|
31191
|
+
CoreMessage2["DuplicateFeatureCode"] = "duplicate-feature-code";
|
|
31192
|
+
CoreMessage2["ForeignScnCodeCarried"] = "foreign-scn-code-carried";
|
|
31193
|
+
CoreMessage2["ForeignScnCodeNoCarrier"] = "foreign-scn-code-no-carrier";
|
|
31194
|
+
CoreMessage2["NoFeatureCode"] = "no-feature-code";
|
|
31195
|
+
CoreMessage2["ScenarioSeveralScnCodes"] = "several-scn-codes";
|
|
31196
|
+
CoreMessage2["RunnerKeyNotALayer"] = "runner-key-not-a-layer";
|
|
31197
|
+
CoreMessage2["NotChecksEntryMatchesNoStep"] = "not-checks-entry-matches-no-step";
|
|
31198
|
+
CoreMessage2["NotChecksEntryNotAStepName"] = "not-checks-entry-not-a-step-name";
|
|
31199
|
+
CoreMessage2["ManifestKindList"] = "manifest-kind-list";
|
|
31200
|
+
CoreMessage2["ManifestKindObject"] = "manifest-kind-object";
|
|
31201
|
+
CoreMessage2["ManifestKindString"] = "manifest-kind-string";
|
|
31202
|
+
CoreMessage2["ManifestKindStringOrNull"] = "manifest-kind-string-or-null";
|
|
31203
|
+
CoreMessage2["ManifestKindOfType"] = "manifest-kind-of-type";
|
|
31204
|
+
CoreMessage2["ReportTitle"] = "report-title";
|
|
31205
|
+
CoreMessage2["RunProvenanceHeading"] = "run-provenance-heading";
|
|
31206
|
+
CoreMessage2["ProvenanceTargetRepo"] = "provenance-target-repo";
|
|
31207
|
+
CoreMessage2["ProvenanceTargetRepoUntargeted"] = "provenance-target-repo-untargeted";
|
|
31208
|
+
CoreMessage2["ProvenanceNoInputs"] = "provenance-no-inputs";
|
|
31209
|
+
CoreMessage2["ProvenanceInputs"] = "provenance-inputs";
|
|
31210
|
+
CoreMessage2["ProvenanceNotSupplied"] = "provenance-not-supplied";
|
|
31211
|
+
CoreMessage2["ProvenanceRunTimestamp"] = "provenance-run-timestamp";
|
|
31212
|
+
CoreMessage2["ProvenanceSourceSha"] = "provenance-source-sha";
|
|
31213
|
+
CoreMessage2["ProvenanceSourceShaUnknown"] = "provenance-source-sha-unknown";
|
|
31214
|
+
CoreMessage2["ProvenanceToolSha"] = "provenance-tool-sha";
|
|
31215
|
+
CoreMessage2["ProvenanceToolShaUnknown"] = "provenance-tool-sha-unknown";
|
|
31216
|
+
CoreMessage2["ProvenanceToolVersion"] = "provenance-tool-version";
|
|
31217
|
+
CoreMessage2["RunIntegrityHeading"] = "run-integrity-heading";
|
|
31218
|
+
CoreMessage2["RunUnsound"] = "run-unsound";
|
|
31219
|
+
CoreMessage2["BrokenEvidenceNotNamed"] = "broken-evidence-not-named";
|
|
31220
|
+
CoreMessage2["BrokenEvidenceWhatBroke"] = "broken-evidence-what-broke";
|
|
31221
|
+
CoreMessage2["BrokenEvidenceNoMessage"] = "broken-evidence-no-message";
|
|
31222
|
+
CoreMessage2["SummaryHeading"] = "summary-heading";
|
|
31223
|
+
CoreMessage2["RunVerdictHeading"] = "run-verdict-heading";
|
|
31224
|
+
CoreMessage2["VerdictExit"] = "verdict-exit";
|
|
31225
|
+
CoreMessage2["ScenarioCodeErrorsHeadline"] = "scenario-code-errors-headline";
|
|
31226
|
+
CoreMessage2["ScenarioCodeErrorsGloss"] = "scenario-code-errors-gloss";
|
|
31227
|
+
CoreMessage2["SeveralScnCodesGloss"] = "several-scn-codes-gloss";
|
|
31228
|
+
CoreMessage2["MisfiledAndSeveralScnCodesGloss"] = "misfiled-and-several-scn-codes-gloss";
|
|
31229
|
+
CoreMessage2["AlsoOutOfBalance"] = "also-out-of-balance";
|
|
31230
|
+
CoreMessage2["OutOfBalanceHeadline"] = "out-of-balance-headline";
|
|
31231
|
+
CoreMessage2["OutOfBalanceGloss"] = "out-of-balance-gloss";
|
|
31232
|
+
CoreMessage2["UnsoundHeadline"] = "unsound-headline";
|
|
31233
|
+
CoreMessage2["UnsoundGloss"] = "unsound-gloss";
|
|
31234
|
+
CoreMessage2["PendingHeadline"] = "pending-headline";
|
|
31235
|
+
CoreMessage2["PendingGloss"] = "pending-gloss";
|
|
31236
|
+
CoreMessage2["BalancedHeadline"] = "balanced-headline";
|
|
31237
|
+
CoreMessage2["BalancedGloss"] = "balanced-gloss";
|
|
31238
|
+
CoreMessage2["NothingToReconcileHeadline"] = "nothing-to-reconcile-headline";
|
|
31239
|
+
CoreMessage2["NothingToReconcileGloss"] = "nothing-to-reconcile-gloss";
|
|
31240
|
+
CoreMessage2["PendingItemsOutstanding"] = "pending-items-outstanding";
|
|
31241
|
+
CoreMessage2["ReconciliationTotalsHeading"] = "reconciliation-totals-heading";
|
|
31242
|
+
CoreMessage2["ReconciliationTotalsClaimReconciliationTerm"] = "reconciliation-totals-claim-reconciliation-term";
|
|
31243
|
+
CoreMessage2["ReconciliationTotalsReconciliationLineTerm"] = "reconciliation-totals-reconciliation-line-term";
|
|
31244
|
+
CoreMessage2["ReconciliationTotalsEvidenceObligationTerm"] = "reconciliation-totals-evidence-obligation-term";
|
|
31245
|
+
CoreMessage2["ReconciliationTotalsEvidenceObservationTerm"] = "reconciliation-totals-evidence-observation-term";
|
|
31246
|
+
CoreMessage2["SubjectColumn"] = "subject-column";
|
|
31247
|
+
CoreMessage2["TotalColumn"] = "total-column";
|
|
31248
|
+
CoreMessage2["BalancedColumn"] = "balanced-column";
|
|
31249
|
+
CoreMessage2["OutOfBalanceColumn"] = "out-of-balance-column";
|
|
31250
|
+
CoreMessage2["DetailColumn"] = "detail-column";
|
|
31251
|
+
CoreMessage2["ClaimReconciliationSubject"] = "claim-reconciliation-subject";
|
|
31252
|
+
CoreMessage2["ReconciliationLineSubject"] = "reconciliation-line-subject";
|
|
31253
|
+
CoreMessage2["PendingTally"] = "pending-tally";
|
|
31254
|
+
CoreMessage2["EvidenceObservationsHeading"] = "evidence-observations-heading";
|
|
31255
|
+
CoreMessage2["EvidenceObservationsSum"] = "evidence-observations-sum";
|
|
31256
|
+
CoreMessage2["EvidenceObservationsTableHeader"] = "evidence-observations-table-header";
|
|
31257
|
+
CoreMessage2["FitnessRunner"] = "fitness-runner";
|
|
31258
|
+
CoreMessage2["FitnessCiStep"] = "fitness-ci-step";
|
|
31259
|
+
CoreMessage2["RunnerLayerNamesNone"] = "runner-layer-names-none";
|
|
31260
|
+
CoreMessage2["RunnerLayerUnnamed"] = "runner-layer-unnamed";
|
|
31261
|
+
CoreMessage2["NoStepCountedAsItsRunnerRunsIt"] = "no-step-counted-as-its-runner-runs-it";
|
|
31262
|
+
CoreMessage2["ReconcilerStep"] = "reconciler-step";
|
|
31263
|
+
CoreMessage2["ReconcilerReconciles"] = "reconciler-reconciles";
|
|
31264
|
+
CoreMessage2["ReconcilerRecords"] = "reconciler-records";
|
|
31265
|
+
CoreMessage2["StepNonCheck"] = "step-non-check";
|
|
31266
|
+
CoreMessage2["StepAccountingHeading"] = "step-accounting-heading";
|
|
31267
|
+
CoreMessage2["StepAccountingTableHeader"] = "step-accounting-table-header";
|
|
31268
|
+
CoreMessage2["StepAccountingTotal"] = "step-accounting-total";
|
|
31269
|
+
CoreMessage2["StepAccountingRunnersLabel"] = "step-accounting-runners-label";
|
|
31270
|
+
CoreMessage2["StepAccountingReconcilerLabel"] = "step-accounting-reconciler-label";
|
|
31271
|
+
CoreMessage2["StepAccountingNonChecksLabel"] = "step-accounting-non-checks-label";
|
|
31272
|
+
CoreMessage2["StepAccountingNotAppliedWorkflowsReadLabel"] = "step-accounting-not-applied-workflows-read-label";
|
|
31273
|
+
CoreMessage2["StepAccountingNotAppliedNoWorkflowReadLabel"] = "step-accounting-not-applied-no-workflow-read-label";
|
|
31274
|
+
CoreMessage2["StepAccountingPlumbingLabel"] = "step-accounting-plumbing-label";
|
|
31275
|
+
CoreMessage2["StepAccountingCandidatesTerm"] = "step-accounting-candidates-term";
|
|
31276
|
+
CoreMessage2["StepAccountingReconcilerTerm"] = "step-accounting-reconciler-term";
|
|
31277
|
+
CoreMessage2["StepAccountingNonChecksTerm"] = "step-accounting-non-checks-term";
|
|
31278
|
+
CoreMessage2["StepAccountingPlumbingTerm"] = "step-accounting-plumbing-term";
|
|
31279
|
+
CoreMessage2["StepAccountingAccountedForTerm"] = "step-accounting-accounted-for-term";
|
|
31280
|
+
CoreMessage2["OutOfBalanceByFeatureHeading"] = "out-of-balance-by-feature-heading";
|
|
31281
|
+
CoreMessage2["ScenarioClaimReconciliationsOutOfBalance"] = "scenario-claim-reconciliations-out-of-balance";
|
|
31282
|
+
CoreMessage2["GroupedByFeature"] = "grouped-by-feature";
|
|
31283
|
+
CoreMessage2["NotGroupedByFeature"] = "not-grouped-by-feature";
|
|
31284
|
+
CoreMessage2["PhantomClaimReconciliations"] = "phantom-claim-reconciliations";
|
|
31285
|
+
CoreMessage2["UnnamedClaimReconciliations"] = "unnamed-claim-reconciliations";
|
|
31286
|
+
CoreMessage2["AndJoiner"] = "and-joiner";
|
|
31287
|
+
CoreMessage2["ByFeatureTableHeader"] = "by-feature-table-header";
|
|
31288
|
+
CoreMessage2["NoScnCodeScenarios"] = "no-scn-code-scenarios";
|
|
31289
|
+
CoreMessage2["CodesAndNoScnCodeScenarios"] = "codes-and-no-scn-code-scenarios";
|
|
31290
|
+
CoreMessage2["ClaimReconciliationsHeading"] = "claim-reconciliations-heading";
|
|
31291
|
+
CoreMessage2["ClaimReconciliationTally"] = "claim-reconciliation-tally";
|
|
31292
|
+
CoreMessage2["PhantomClaimTally"] = "phantom-claim-tally";
|
|
31293
|
+
CoreMessage2["UnnamedClaimTally"] = "unnamed-claim-tally";
|
|
31294
|
+
CoreMessage2["ExcludedScnOccurrences"] = "excluded-scn-occurrences";
|
|
31295
|
+
CoreMessage2["UntaggedScenarios"] = "untagged-scenarios";
|
|
31296
|
+
CoreMessage2["SharedScnCodes"] = "shared-scn-codes";
|
|
31297
|
+
CoreMessage2["SharedScnCodeScenario"] = "shared-scn-code-scenario";
|
|
31298
|
+
CoreMessage2["ClaimColumn"] = "claim-column";
|
|
31299
|
+
CoreMessage2["VerdictColumn"] = "verdict-column";
|
|
31300
|
+
CoreMessage2["ReconcilingItemsColumn"] = "reconciling-items-column";
|
|
31301
|
+
CoreMessage2["CiStepsColumn"] = "ci-steps-column";
|
|
31302
|
+
CoreMessage2["EvidenceCellKey"] = "evidence-cell-key";
|
|
31303
|
+
CoreMessage2["WatermelonItemKey"] = "watermelon-item-key";
|
|
31304
|
+
CoreMessage2["PendingItem"] = "pending-item";
|
|
31305
|
+
CoreMessage2["PendingItemFor"] = "pending-item-for";
|
|
31306
|
+
CoreMessage2["CheckStepNoOutcome"] = "check-step-no-outcome";
|
|
31307
|
+
CoreMessage2["CheckStepSkipped"] = "check-step-skipped";
|
|
31308
|
+
CoreMessage2["CheckStepEnded"] = "check-step-ended";
|
|
31309
|
+
CoreMessage2["AmbiguousNamedStep"] = "ambiguous-named-step";
|
|
31310
|
+
CoreMessage2["AmbiguousUnnamedStep"] = "ambiguous-unnamed-step";
|
|
31311
|
+
CoreMessage2["OutcomeSatisfied"] = "outcome-satisfied";
|
|
31312
|
+
CoreMessage2["OutcomeMissing"] = "outcome-missing";
|
|
31313
|
+
CoreMessage2["OutcomeFailing"] = "outcome-failing";
|
|
31314
|
+
CoreMessage2["OutcomeWatermelon"] = "outcome-watermelon";
|
|
31315
|
+
CoreMessage2["OutcomeNoScnCode"] = "outcome-no-scn-code";
|
|
31316
|
+
CoreMessage2["OutcomeDuplicateScnCode"] = "outcome-duplicate-scn-code";
|
|
31317
|
+
CoreMessage2["OutcomeCitesUnknownScenario"] = "outcome-cites-unknown-scenario";
|
|
31318
|
+
CoreMessage2["OutcomeCitesNoScenario"] = "outcome-cites-no-scenario";
|
|
31319
|
+
CoreMessage2["OutcomeNoEvidenceObligation"] = "outcome-no-evidence-obligation";
|
|
31320
|
+
CoreMessage2["OutcomeBroken"] = "outcome-broken";
|
|
31321
|
+
CoreMessage2["OutcomeBothMissing"] = "outcome-both-missing";
|
|
31322
|
+
CoreMessage2["ObservationPassed"] = "observation-passed";
|
|
31323
|
+
CoreMessage2["ObservationFailed"] = "observation-failed";
|
|
31324
|
+
CoreMessage2["UnnamedClaimGroupCounts"] = "unnamed-claim-group-counts";
|
|
31325
|
+
CoreMessage2["UnnamedClaimFailedNames"] = "unnamed-claim-failed-names";
|
|
31326
|
+
CoreMessage2["SeveralScnCodesCited"] = "several-scn-codes-cited";
|
|
31327
|
+
CoreMessage2["SharedScnCode"] = "shared-scn-code";
|
|
31328
|
+
})(CoreMessage || (CoreMessage = {}));
|
|
31329
|
+
(function(CoreError2) {
|
|
31330
|
+
CoreError2["ConfigurationWrongKind"] = "configuration-wrong-kind";
|
|
31331
|
+
CoreError2["ConfigurationUnknownKey"] = "configuration-unknown-key";
|
|
31332
|
+
CoreError2["RunnerKeyNotALayer"] = "runner-key-not-a-layer";
|
|
31333
|
+
CoreError2["NotChecksEntryMatchesNoStep"] = "not-checks-entry-matches-no-step";
|
|
31334
|
+
CoreError2["NotChecksEntryNotAStepName"] = "not-checks-entry-not-a-step-name";
|
|
31335
|
+
CoreError2["DuplicateFeatureCode"] = "duplicate-feature-code";
|
|
31336
|
+
CoreError2["ForeignScnCode"] = "foreign-scn-code";
|
|
31337
|
+
CoreError2["NoFeatureCode"] = "no-feature-code";
|
|
31338
|
+
CoreError2["SeveralScnCodes"] = "several-scn-codes";
|
|
31339
|
+
})(CoreError || (CoreError = {}));
|
|
31340
|
+
CORE_MESSAGES = {
|
|
31341
|
+
[CoreMessage.ErrorsInTheInputsHeading]: "## Errors in the inputs",
|
|
31342
|
+
[CoreMessage.ConfigurationNotReadHeading]: "### Configuration not read",
|
|
31343
|
+
[CoreMessage.ScenarioCodeErrorsHeading]: "### Scenario code errors"
|
|
31344
|
+
};
|
|
31345
|
+
}
|
|
31346
|
+
});
|
|
31347
|
+
|
|
31348
|
+
// ../core/dist/render/outcomeDescription.js
|
|
31349
|
+
var OUTCOME_DESCRIPTION, outcomeDescription;
|
|
31350
|
+
var init_outcomeDescription = __esm({
|
|
31351
|
+
"../core/dist/render/outcomeDescription.js"() {
|
|
31352
|
+
"use strict";
|
|
31353
|
+
init_coreText();
|
|
31354
|
+
init_messages4();
|
|
31355
|
+
OUTCOME_DESCRIPTION = {
|
|
31356
|
+
satisfied: CoreMessage.OutcomeSatisfied,
|
|
31357
|
+
missing: CoreMessage.OutcomeMissing,
|
|
31358
|
+
failing: CoreMessage.OutcomeFailing,
|
|
31359
|
+
watermelon: CoreMessage.OutcomeWatermelon,
|
|
31360
|
+
"no-scn-code": CoreMessage.OutcomeNoScnCode,
|
|
31361
|
+
"duplicate-scn-code": CoreMessage.OutcomeDuplicateScnCode,
|
|
31362
|
+
"cites-unknown-scenario": CoreMessage.OutcomeCitesUnknownScenario,
|
|
31363
|
+
"cites-no-scenario": CoreMessage.OutcomeCitesNoScenario,
|
|
31364
|
+
"no-evidence-obligation": CoreMessage.OutcomeNoEvidenceObligation,
|
|
31365
|
+
broken: CoreMessage.OutcomeBroken,
|
|
31366
|
+
"both-missing": CoreMessage.OutcomeBothMissing
|
|
31367
|
+
};
|
|
31368
|
+
outcomeDescription = (outcome) => coreMessage(OUTCOME_DESCRIPTION[outcome]);
|
|
31369
|
+
}
|
|
31370
|
+
});
|
|
31371
|
+
|
|
31372
|
+
// ../core/dist/render/cellSafe.js
|
|
31373
|
+
function cellSafe(text) {
|
|
31374
|
+
return text.replace(/\s+/g, " ").replace(/[\\|]/g, "\\$&").trim();
|
|
31375
|
+
}
|
|
31376
|
+
function cellSafeKeepingCodeSpans(text) {
|
|
31377
|
+
return text.replace(/\s+/g, " ").replace(SPAN_OR_ESCAPED, (found) => found.startsWith("`") ? found.replace(/\|/g, "\\|") : `\\${found}`);
|
|
31378
|
+
}
|
|
31379
|
+
var SPAN_OR_ESCAPED;
|
|
31380
|
+
var init_cellSafe = __esm({
|
|
31381
|
+
"../core/dist/render/cellSafe.js"() {
|
|
31382
|
+
"use strict";
|
|
31383
|
+
SPAN_OR_ESCAPED = /(`+)[\s\S]*?(?<!`)\1(?!`)|[\\|]/g;
|
|
31384
|
+
}
|
|
31385
|
+
});
|
|
31386
|
+
|
|
31387
|
+
// ../core/dist/render/codeSpan.js
|
|
31388
|
+
function codeSpan(written) {
|
|
31389
|
+
const text = spanHoldsAsWritten(written) ? written : JSON.stringify(written);
|
|
31390
|
+
const fence = "`".repeat(longestBacktickRun(text) + 1);
|
|
31391
|
+
const pad = text.startsWith("`") || text.endsWith("`") ? " " : "";
|
|
31392
|
+
return `${fence}${pad}${text}${pad}${fence}`;
|
|
31393
|
+
}
|
|
31394
|
+
function fencedBlockLines(info, text) {
|
|
31395
|
+
const fence = "`".repeat(Math.max(3, longestBacktickRun(text) + 1));
|
|
31396
|
+
return [`${fence}${info}`, ...text.split("\n"), fence];
|
|
31397
|
+
}
|
|
31398
|
+
var spanHoldsAsWritten, longestBacktickRun;
|
|
31399
|
+
var init_codeSpan = __esm({
|
|
31400
|
+
"../core/dist/render/codeSpan.js"() {
|
|
31401
|
+
"use strict";
|
|
31402
|
+
spanHoldsAsWritten = (text) => text !== "" && !(text.startsWith(" ") && text.endsWith(" ")) && !/[\n\r]/.test(text) && !(text.startsWith('"') && text.endsWith('"'));
|
|
31403
|
+
longestBacktickRun = (text) => Math.max(0, ...(text.match(/`+/g) ?? []).map((run3) => run3.length));
|
|
31404
|
+
}
|
|
31405
|
+
});
|
|
31406
|
+
|
|
31407
|
+
// ../core/dist/render/reportedName.js
|
|
31408
|
+
function reportedName(text) {
|
|
31409
|
+
const name = text.replace(/\s+/g, " ").trim();
|
|
31410
|
+
return ROW_SEPARATOR.test(name) ? codeSpan(name) : name;
|
|
31411
|
+
}
|
|
31412
|
+
var ROW_SEPARATOR;
|
|
31413
|
+
var init_reportedName = __esm({
|
|
31414
|
+
"../core/dist/render/reportedName.js"() {
|
|
31415
|
+
"use strict";
|
|
31416
|
+
init_codeSpan();
|
|
31417
|
+
ROW_SEPARATOR = /; |: | \/ |, /;
|
|
31418
|
+
}
|
|
31419
|
+
});
|
|
31420
|
+
|
|
31479
31421
|
// ../core/dist/render/heading.js
|
|
31480
31422
|
var markdownHeading;
|
|
31481
31423
|
var init_heading = __esm({
|
|
@@ -31664,7 +31606,7 @@ var init_scenarioCodeErrorsSection = __esm({
|
|
|
31664
31606
|
"",
|
|
31665
31607
|
...errors.map((error) => errorEntry(CODE_OF[error.kind], worded(error))),
|
|
31666
31608
|
"",
|
|
31667
|
-
coreMessage(CoreMessage.DuplicateScnCodeNotListed, { outcome:
|
|
31609
|
+
coreMessage(CoreMessage.DuplicateScnCodeNotListed, { outcome: coreMessage(CoreMessage.OutcomeDuplicateScnCode) }),
|
|
31668
31610
|
""
|
|
31669
31611
|
];
|
|
31670
31612
|
};
|
|
@@ -32044,21 +31986,21 @@ var init_evidenceGrid = __esm({
|
|
|
32044
31986
|
function noteWords(note) {
|
|
32045
31987
|
switch (note.kind) {
|
|
32046
31988
|
case "several-scn-codes":
|
|
32047
|
-
return
|
|
31989
|
+
return coreMessage(CoreMessage.SeveralScnCodesCited, { count: note.codes.length, codes: note.codes.join(", ") });
|
|
32048
31990
|
case "shared-scn-code":
|
|
32049
|
-
return
|
|
31991
|
+
return coreMessage(CoreMessage.SharedScnCode, { code: note.code });
|
|
32050
31992
|
case "ambiguous-step":
|
|
32051
|
-
return note.step === void 0 ?
|
|
31993
|
+
return note.step === void 0 ? coreMessage(CoreMessage.AmbiguousUnnamedStep) : coreMessage(CoreMessage.AmbiguousNamedStep, { step: note.step });
|
|
32052
31994
|
case "check-step-did-not-run":
|
|
32053
31995
|
return checkStepWords(note.code, note.outcome);
|
|
32054
31996
|
}
|
|
32055
31997
|
}
|
|
32056
31998
|
function checkStepWords(code, outcome) {
|
|
32057
31999
|
if (outcome === void 0)
|
|
32058
|
-
return
|
|
32000
|
+
return coreMessage(CoreMessage.CheckStepNoOutcome, { scnId: code });
|
|
32059
32001
|
if (outcome === "skipped")
|
|
32060
|
-
return
|
|
32061
|
-
return
|
|
32002
|
+
return coreMessage(CoreMessage.CheckStepSkipped, { scnId: code });
|
|
32003
|
+
return coreMessage(CoreMessage.CheckStepEnded, { scnId: code, outcome });
|
|
32062
32004
|
}
|
|
32063
32005
|
function remarkWordsOf({ message: message2, notes = [] }) {
|
|
32064
32006
|
const words2 = [...message2 === void 0 || message2.trim() === "" ? [] : [message2], ...notes.map(noteWords)];
|
|
@@ -32072,6 +32014,7 @@ var init_remarkWords = __esm({
|
|
|
32072
32014
|
"../core/dist/render/remarkWords.js"() {
|
|
32073
32015
|
"use strict";
|
|
32074
32016
|
init_messages4();
|
|
32017
|
+
init_coreText();
|
|
32075
32018
|
}
|
|
32076
32019
|
});
|
|
32077
32020
|
|
|
@@ -32134,7 +32077,7 @@ var init_unnamedClaimGroups = __esm({
|
|
|
32134
32077
|
|
|
32135
32078
|
// ../core/dist/render/markdown.js
|
|
32136
32079
|
function renderLine(line) {
|
|
32137
|
-
const sentence = `${
|
|
32080
|
+
const sentence = `${outcomeDescription(line.outcome)}${scenarioClauseOf(line)}`;
|
|
32138
32081
|
if (line.outcome === "both-missing" || line.outcome === "no-scn-code" || line.qualityCheckKind === void 0) {
|
|
32139
32082
|
return sentence;
|
|
32140
32083
|
}
|
|
@@ -32154,7 +32097,7 @@ function namedSuffix(o) {
|
|
|
32154
32097
|
return quotedSuffix((isFitnessObservation(o) ? [o.fitnessFunction] : [o.locator, o.testName]).map(reported));
|
|
32155
32098
|
}
|
|
32156
32099
|
function scenarioClauseOf({ scenario }) {
|
|
32157
|
-
return scenario === void 0 ? "" : ` \u2014 ${
|
|
32100
|
+
return scenario === void 0 ? "" : ` \u2014 ${coreMessage(CoreMessage.SharedScnCodeScenario, { feature: reportedName(scenario.feature), title: reportedName(scenario.title) })}`;
|
|
32158
32101
|
}
|
|
32159
32102
|
function brokenSuffix(o) {
|
|
32160
32103
|
return quotedSuffix([reported(o.locator), remarkHeadlineOf(o, reportedName)]);
|
|
@@ -32163,19 +32106,19 @@ function observationSuffix(o) {
|
|
|
32163
32106
|
return `${namedSuffix(o)}${resultOf(o)}`;
|
|
32164
32107
|
}
|
|
32165
32108
|
function resultOf(o) {
|
|
32166
|
-
return o.status === void 0 ? "" : ` \u2014 ${
|
|
32109
|
+
return o.status === void 0 ? "" : ` \u2014 ${coreMessage(RESULT_MESSAGE[o.status])}`;
|
|
32167
32110
|
}
|
|
32168
32111
|
function renderPendingItem(item) {
|
|
32169
|
-
return item.qualityCheckKind === void 0 ?
|
|
32112
|
+
return item.qualityCheckKind === void 0 ? coreMessage(CoreMessage.PendingItem) : coreMessage(CoreMessage.PendingItemFor, { qualityCheckKind: item.qualityCheckKind });
|
|
32170
32113
|
}
|
|
32171
32114
|
function renderFileGroup(group) {
|
|
32172
32115
|
const remarks = group.remarks.flatMap((remark) => remarkHeadlineOf(remark, reportedName) ?? []);
|
|
32173
|
-
const code = group.sharedScnCode === void 0 ? [] : [
|
|
32116
|
+
const code = group.sharedScnCode === void 0 ? [] : [coreMessage(CoreMessage.SharedScnCode, { code: group.sharedScnCode })];
|
|
32174
32117
|
const said = [.../* @__PURE__ */ new Set([...code, ...remarks])].filter((part) => part !== "").join(" / ");
|
|
32175
|
-
const counts =
|
|
32118
|
+
const counts = coreMessage(CoreMessage.UnnamedClaimGroupCounts, { ran: group.ran, passed: group.passed, failed: group.failed });
|
|
32176
32119
|
const names = group.failedNames.map(reportedName).filter((name) => name !== "");
|
|
32177
|
-
const failed = names.length === 0 ? "" : ` ${
|
|
32178
|
-
return `${group.qualityCheckKind}: ${
|
|
32120
|
+
const failed = names.length === 0 ? "" : ` ${coreMessage(CoreMessage.UnnamedClaimFailedNames, { names: names.join(" / ") })}`;
|
|
32121
|
+
return `${group.qualityCheckKind}: ${outcomeDescription("cites-no-scenario")}${quotedSuffix([reported(group.locator), said])} \u2014 ${counts}${failed}`;
|
|
32179
32122
|
}
|
|
32180
32123
|
function unnamedClaimCiStepsViewOf(names) {
|
|
32181
32124
|
const named = names.filter((name) => name !== "");
|
|
@@ -32193,8 +32136,8 @@ function renderUnnamedClaimGroup(group) {
|
|
|
32193
32136
|
if (!("names" in group))
|
|
32194
32137
|
return renderFileGroup(group);
|
|
32195
32138
|
const steps = unnamedClaimCiSteps(unnamedClaimCiStepsViewOf(group.names.map(reportedName)));
|
|
32196
|
-
const remark = group.sharedScnCode === void 0 ? "" : ` (${
|
|
32197
|
-
return `fitness: ${
|
|
32139
|
+
const remark = group.sharedScnCode === void 0 ? "" : ` (${coreMessage(CoreMessage.SharedScnCode, { code: group.sharedScnCode })})`;
|
|
32140
|
+
return `fitness: ${outcomeDescription("cites-no-scenario")}${remark} \u2014 ${steps}`;
|
|
32198
32141
|
}
|
|
32199
32142
|
function renderUnnamedClaimItems(lines) {
|
|
32200
32143
|
const broken = lines.filter((line) => line.outcome === "broken");
|
|
@@ -32219,7 +32162,7 @@ function pendingTally(pending) {
|
|
|
32219
32162
|
function byFeatureTableLines(groups) {
|
|
32220
32163
|
if (groups.length === 0)
|
|
32221
32164
|
return [];
|
|
32222
|
-
const lines = [
|
|
32165
|
+
const lines = [coreMessage(CoreMessage.ByFeatureTableHeader), "| --- | --- | --- |"];
|
|
32223
32166
|
for (const group of groups) {
|
|
32224
32167
|
const label = group.featureFile ? `${group.featureFile} (${group.feature})` : group.feature;
|
|
32225
32168
|
lines.push(`| ${label} | ${group.count} | ${idsCell(group)} |`);
|
|
@@ -32228,36 +32171,40 @@ function byFeatureTableLines(groups) {
|
|
|
32228
32171
|
return lines;
|
|
32229
32172
|
}
|
|
32230
32173
|
function idsCell(group) {
|
|
32231
|
-
const ids = group.claims.join(", ");
|
|
32232
32174
|
const noScnCodeCount = group.scenariosWithNoScnCode ?? 0;
|
|
32233
32175
|
if (noScnCodeCount === 0)
|
|
32234
|
-
return
|
|
32235
|
-
const
|
|
32236
|
-
|
|
32176
|
+
return codeList(group.claims);
|
|
32177
|
+
const view = outOfBalanceCodesOf(group);
|
|
32178
|
+
switch (view.kind) {
|
|
32179
|
+
case "none":
|
|
32180
|
+
return coreMessage(CoreMessage.NoScnCodeScenarios, { count: noScnCodeCount });
|
|
32181
|
+
case "some":
|
|
32182
|
+
return coreMessage(CoreMessage.CodesAndNoScnCodeScenarios, { codes: codeList(view.codes), count: noScnCodeCount });
|
|
32183
|
+
}
|
|
32237
32184
|
}
|
|
32238
32185
|
function ungroupedOutOfBalance(totals) {
|
|
32239
32186
|
return [
|
|
32240
|
-
...totals.phantomClaim > 0 ? [
|
|
32241
|
-
...totals.unnamedClaim > 0 ? [
|
|
32187
|
+
...totals.phantomClaim > 0 ? [coreMessage(CoreMessage.PhantomClaimReconciliations, { count: totals.phantomClaim })] : [],
|
|
32188
|
+
...totals.unnamedClaim > 0 ? [coreMessage(CoreMessage.UnnamedClaimReconciliations, { count: totals.unnamedClaim })] : []
|
|
32242
32189
|
];
|
|
32243
32190
|
}
|
|
32244
32191
|
function ungroupedTail(ungrouped) {
|
|
32245
|
-
return ungrouped.length > 0 ? `; ${
|
|
32192
|
+
return ungrouped.length > 0 ? `; ${coreMessage(CoreMessage.NotGroupedByFeature, { ungrouped: ungrouped.join(coreMessage(CoreMessage.AndJoiner)) })}` : "";
|
|
32246
32193
|
}
|
|
32247
32194
|
function evidenceKeyLines(columns) {
|
|
32248
32195
|
if (columns.length === 0)
|
|
32249
32196
|
return [];
|
|
32250
|
-
return [...
|
|
32197
|
+
return [...coreMessage(CoreMessage.EvidenceCellKey).split("\n"), coreMessage(CoreMessage.WatermelonItemKey), ""];
|
|
32251
32198
|
}
|
|
32252
32199
|
function ledgerTallyLines(totals) {
|
|
32253
32200
|
const lines = [
|
|
32254
|
-
`- ${
|
|
32201
|
+
`- ${coreMessage(CoreMessage.ClaimReconciliationTally, { total: totals.total, balanced: totals.balanced, outOfBalance: totals.outOfBalance })}`
|
|
32255
32202
|
];
|
|
32256
32203
|
if (totals.phantomClaim > 0) {
|
|
32257
|
-
lines.push(`- ${
|
|
32204
|
+
lines.push(`- ${coreMessage(CoreMessage.PhantomClaimTally, { count: totals.phantomClaim })}`);
|
|
32258
32205
|
}
|
|
32259
32206
|
if (totals.unnamedClaim > 0) {
|
|
32260
|
-
lines.push(`- ${
|
|
32207
|
+
lines.push(`- ${coreMessage(CoreMessage.UnnamedClaimTally, { count: totals.unnamedClaim, unnamedClaimId: UNNAMED_CLAIM_ID })}`);
|
|
32261
32208
|
}
|
|
32262
32209
|
return lines;
|
|
32263
32210
|
}
|
|
@@ -32265,18 +32212,18 @@ function sharedScnCodeLines(shared, scenarios) {
|
|
|
32265
32212
|
if (shared.length === 0)
|
|
32266
32213
|
return [];
|
|
32267
32214
|
return [
|
|
32268
|
-
`- ${
|
|
32215
|
+
`- ${coreMessage(CoreMessage.SharedScnCodes, { scenarios, codes: shared.length })}`,
|
|
32269
32216
|
...shared.map((code) => ` - ${code.scnId}: ${code.scenarios.map((s) => `${s.feature} : ${s.title}`).join("; ")}`)
|
|
32270
32217
|
];
|
|
32271
32218
|
}
|
|
32272
32219
|
function ledgerTableLines(claims, columns, stepsByQualityCheckKind) {
|
|
32273
32220
|
const withSteps2 = columns.length > 0;
|
|
32274
32221
|
const headers = [
|
|
32275
|
-
|
|
32222
|
+
coreMessage(CoreMessage.ClaimColumn),
|
|
32276
32223
|
...columns.map(columnHeader),
|
|
32277
|
-
|
|
32278
|
-
|
|
32279
|
-
...withSteps2 ? [
|
|
32224
|
+
coreMessage(CoreMessage.VerdictColumn),
|
|
32225
|
+
coreMessage(CoreMessage.ReconcilingItemsColumn),
|
|
32226
|
+
...withSteps2 ? [coreMessage(CoreMessage.CiStepsColumn)] : []
|
|
32280
32227
|
];
|
|
32281
32228
|
const lines = [`| ${headers.join(" | ")} |`, `| ${headers.map(() => "---").join(" | ")} |`];
|
|
32282
32229
|
for (const s of claims) {
|
|
@@ -32290,7 +32237,7 @@ function ledgerTableLines(claims, columns, stepsByQualityCheckKind) {
|
|
|
32290
32237
|
function renderReport(report, inputNames, exitCodeOf2) {
|
|
32291
32238
|
return SECTIONS.flatMap((section) => section(report, inputNames, exitCodeOf2)).join("\n");
|
|
32292
32239
|
}
|
|
32293
|
-
var reported, RESULT_MESSAGE, titleSection, runIntegritySection, summarySection, RECONCILIATION_TOTALS_COLUMNS, RECONCILIATION_TOTALS_TERMS, reconciliationTotalsSection, byFeatureSection, ledgerSection, scenarioCodeFactsSection, SECTIONS;
|
|
32240
|
+
var reported, RESULT_MESSAGE, titleSection, runIntegritySection, summarySection, RECONCILIATION_TOTALS_COLUMNS, RECONCILIATION_TOTALS_TERMS, reconciliationTotalsSection, byFeatureSection, outOfBalanceCodesOf, codeList, ledgerSection, scenarioCodeFactsSection, SECTIONS;
|
|
32294
32241
|
var init_markdown = __esm({
|
|
32295
32242
|
"../core/dist/render/markdown.js"() {
|
|
32296
32243
|
"use strict";
|
|
@@ -32384,7 +32331,7 @@ var init_markdown = __esm({
|
|
|
32384
32331
|
];
|
|
32385
32332
|
for (const outcome of OUT_OF_BALANCE_OUTCOMES) {
|
|
32386
32333
|
const detail = outcome === "missing" ? missingSplit : "";
|
|
32387
|
-
lines.push(row([
|
|
32334
|
+
lines.push(row([outcomeDescription(outcome), "", "", String(reconciliationLines.byOutcome[outcome]), detail]));
|
|
32388
32335
|
}
|
|
32389
32336
|
lines.push(...pendingTally(pending));
|
|
32390
32337
|
lines.push("");
|
|
@@ -32397,15 +32344,22 @@ var init_markdown = __esm({
|
|
|
32397
32344
|
const ungrouped = ungroupedOutOfBalance(report.summary.reconciliationTotals.claimReconciliations);
|
|
32398
32345
|
if (groups.length === 0 && ungrouped.length === 0)
|
|
32399
32346
|
return [];
|
|
32400
|
-
const head =
|
|
32347
|
+
const head = coreMessage(CoreMessage.ScenarioClaimReconciliationsOutOfBalance, { outOfBalance: outOfBalanceCountOf(scenarios), claimReconciliations: scenarios.length });
|
|
32401
32348
|
return [
|
|
32402
|
-
|
|
32349
|
+
markdownHeading(3, coreMessage(CoreMessage.OutOfBalanceByFeatureHeading)),
|
|
32403
32350
|
"",
|
|
32404
|
-
`${head}${groups.length > 0 ?
|
|
32351
|
+
`${head}${groups.length > 0 ? coreMessage(CoreMessage.GroupedByFeature) : ""}${ungroupedTail(ungrouped)}.`,
|
|
32405
32352
|
"",
|
|
32406
32353
|
...byFeatureTableLines(groups)
|
|
32407
32354
|
];
|
|
32408
32355
|
};
|
|
32356
|
+
outOfBalanceCodesOf = ({ claims }) => {
|
|
32357
|
+
const [first, ...rest] = claims;
|
|
32358
|
+
if (first === void 0)
|
|
32359
|
+
return { kind: "none" };
|
|
32360
|
+
return { kind: "some", codes: [first, ...rest] };
|
|
32361
|
+
};
|
|
32362
|
+
codeList = (codes) => codes.join(", ");
|
|
32409
32363
|
ledgerSection = (report) => {
|
|
32410
32364
|
const scenarioRows = report.claimReconciliations.filter(isScenario);
|
|
32411
32365
|
const phantomClaimRows2 = report.claimReconciliations.filter(isPhantomClaim);
|
|
@@ -32413,7 +32367,7 @@ var init_markdown = __esm({
|
|
|
32413
32367
|
const claims = [...scenarioRows, ...phantomClaimRows2, ...unnamedClaimRows2];
|
|
32414
32368
|
const columns = report.summary.evidenceObservations !== void 0 ? evidenceColumns(claims) : [];
|
|
32415
32369
|
return [
|
|
32416
|
-
|
|
32370
|
+
markdownHeading(2, coreMessage(CoreMessage.ClaimReconciliationsHeading)),
|
|
32417
32371
|
"",
|
|
32418
32372
|
...ledgerTallyLines(report.summary.reconciliationTotals.claimReconciliations),
|
|
32419
32373
|
"",
|
|
@@ -32426,10 +32380,10 @@ var init_markdown = __esm({
|
|
|
32426
32380
|
const codes = report.summary.scenarioCodes;
|
|
32427
32381
|
if (codes?.excludedOccurrences === void 0)
|
|
32428
32382
|
return [];
|
|
32429
|
-
const lines = [`- ${
|
|
32383
|
+
const lines = [`- ${coreMessage(CoreMessage.ExcludedScnOccurrences, { count: codes.excludedOccurrences })}`];
|
|
32430
32384
|
const untagged = (codes.untaggedScenarios ?? []).length;
|
|
32431
32385
|
if (untagged > 0)
|
|
32432
|
-
lines.push(`- ${
|
|
32386
|
+
lines.push(`- ${coreMessage(CoreMessage.UntaggedScenarios, { count: untagged })}`);
|
|
32433
32387
|
lines.push(...sharedScnCodeLines(codes.sharedScnCodes ?? [], report.claimReconciliations.filter(isScenario).length));
|
|
32434
32388
|
return [...lines, ""];
|
|
32435
32389
|
};
|
|
@@ -32602,7 +32556,51 @@ var init_messages_en2 = __esm({
|
|
|
32602
32556
|
"shape-kind-of-type": "a {type}",
|
|
32603
32557
|
"shape-top-level": "the top level",
|
|
32604
32558
|
"shape-wrong-kind": "{where} is {found}, not {expected}",
|
|
32605
|
-
"shape-field-missing": "{path} is missing"
|
|
32559
|
+
"shape-field-missing": "{path} is missing",
|
|
32560
|
+
"help-title": "spec-controller \u2014 reconcile scenarios against observed evidence",
|
|
32561
|
+
"help-usage": "Usage:",
|
|
32562
|
+
"help-commands": "Commands:",
|
|
32563
|
+
"help-host-modifiers": "Host modifiers (before the command):",
|
|
32564
|
+
"help-options": "Options:",
|
|
32565
|
+
"help-arguments": "Arguments:",
|
|
32566
|
+
"help-pointer": "Full flags, examples, and CI wiring: docs/user-guide.md.",
|
|
32567
|
+
"help-flag": "Show this help and exit.",
|
|
32568
|
+
"store-modifier": "Store the run: write <root>/<target>/<run-id>/ with the reconciliation outputs + a run.yaml manifest. Required to store; there is no default (a default would write inside the repo).",
|
|
32569
|
+
"run-id-modifier": "Name the stored run (default: an ISO-8601 UTC timestamp). Read only with --store: given without it, the run is refused, since no run would be kept under the name.",
|
|
32570
|
+
"balance-summary": "Reconcile Gherkin scenarios against test/CI evidence and emit the Evidence Reconciliation (Markdown to stdout by default).",
|
|
32571
|
+
"features-flag": "Directory of Gherkin .feature files \u2014 the scenarios, and the `@`-tags naming what each must prove (@unit, @integration, @fitness, \u2026).",
|
|
32572
|
+
"vitest-flag": "A Vitest JSON report \u2014 runtime test evidence.",
|
|
32573
|
+
"pytest-flag": "A pytest JUnit XML report (pytest --junitxml) \u2014 runtime unit test evidence.",
|
|
32574
|
+
"jest-flag": "A Jest JSON report (jest --json --outputFile) \u2014 runtime unit test evidence.",
|
|
32575
|
+
"junit-flag": "A JUnit XML report from any test runner that writes one, such as gotestsum --junitfile, or a directory of them, such as Maven Surefire's \u2014 runtime unit test evidence.",
|
|
32576
|
+
"rspec-flag": "An RSpec JSON report (rspec --format json --out) \u2014 runtime unit test evidence.",
|
|
32577
|
+
"cucumber-flag": "A Cucumber JSON report \u2014 runtime test evidence.",
|
|
32578
|
+
"ci-flag": "Your CI workflows \u2014 a file, or a directory of them (default .github/workflows). Where a fitness function you have not converted is found running over the real source, and where a check step's `id:` supplies the @SCN its result cites.",
|
|
32579
|
+
"package-json-flag": "The target's package.json \u2014 its `scripts`, and its specController.runners, specController.notChecks and specController.deferralTags. A fitness function is named by its @fitness scenario and the CI step whose id: is that scenario's @SCN; no manifest key names one.",
|
|
32580
|
+
"ci-steps-flag": "The CI run's own record of what each of its steps did \u2014 your pipeline's `toJSON(steps)` dump, evidence for the converted fitness functions. Omit it if you have converted none.",
|
|
32581
|
+
"target-flag": "A name recorded verbatim in the report's provenance (which project this run reconciled).",
|
|
32582
|
+
"source-sha-flag": "Override the git commit SHA recorded in provenance (defaults to the resolved HEAD).",
|
|
32583
|
+
"format-flag": "Where to send output (md or json, optionally :<path> to write to a file). Repeatable.",
|
|
32584
|
+
"render-from-json-flag": "Re-render Markdown from a previously saved Evidence Reconciliation JSON \u2014 no reconcile, no live inputs.",
|
|
32585
|
+
"strict-flag": "Fail the run (exit 3) when it carries Pending Items \u2014 the opt-in that escalates otherwise-run-neutral deferred obligations.",
|
|
32586
|
+
"exit-zero-flag": "Print the same report but exit 0 on an out-of-balance or scenario-code-error (1) or --strict pending (3) verdict \u2014 the on-ramp before gating. Usage (2), unsound (4) and nothing-to-reconcile (5) still fail.",
|
|
32587
|
+
"configuration-heading": "Configuration (in the target repo's package.json):",
|
|
32588
|
+
"deferral-tags-key": "specController.deferralTags: string[]",
|
|
32589
|
+
"deferral-tags-explanation": "Extra recognised deferral tags. A scenario carrying one defers every obligation it\nnames to a Pending Item, extending (never replacing) the built-in set.",
|
|
32590
|
+
"built-in-deferral-tags": "Built-in deferral tags: {tags}",
|
|
32591
|
+
"measurements-replacement": "A fitness function's evidence observation is the outcome of its own CI step: put the check's @SCN on that step's `id:` and hand balance the run's step record with --ci-steps.",
|
|
32592
|
+
"allocate-summary": "Print the next @SCN code for a feature part: one past the highest the repository has ever carried, the code alone on stdout.",
|
|
32593
|
+
"feature-part-argument": "The feature part: a feature file's header code, two to five of A-Z and 0-9.",
|
|
32594
|
+
"new-flag": "Start a part no feature file's header carries yet: its first code, or one past any number the repository already carries for it.",
|
|
32595
|
+
"shallow-history-risks-part-code": "history: shallow clone \u2014 history before {before} unread; a code of {part} may have been used before",
|
|
32596
|
+
"shallow-history-risks-code-above": "history: shallow clone \u2014 history before {before} unread; a code above {code} may have been used before",
|
|
32597
|
+
"no-repository-risks-part-code": "history: not a git repository \u2014 none read; a code of {part} may have been used before",
|
|
32598
|
+
"no-repository-risks-code-above": "history: not a git repository \u2014 none read; a code above {code} may have been used before",
|
|
32599
|
+
"highest-seen-none": "highest seen: none",
|
|
32600
|
+
"highest-seen-in-tree": "highest seen: {code}, {path}:{line}",
|
|
32601
|
+
"highest-seen-in-commit": "highest seen: {code}, {path}:{line} in {commit}",
|
|
32602
|
+
"part-already-headed": "note: a feature file's header already carries {part}, so --new was not needed",
|
|
32603
|
+
"help-usage-line": "spec-controller {modifierUsage} <command> [command-args]"
|
|
32606
32604
|
};
|
|
32607
32605
|
}
|
|
32608
32606
|
});
|
|
@@ -32990,12 +32988,12 @@ var init_evidenceInputs = __esm({
|
|
|
32990
32988
|
init_messages();
|
|
32991
32989
|
init_inputShapes();
|
|
32992
32990
|
DECLARED = [
|
|
32993
|
-
{ flag: "features", key: "features", arg: "<dir>", description:
|
|
32991
|
+
{ flag: "features", key: "features", arg: "<dir>", description: "features-flag" /* FeaturesFlag */ },
|
|
32994
32992
|
{
|
|
32995
32993
|
flag: "vitest",
|
|
32996
32994
|
key: "vitest",
|
|
32997
32995
|
arg: "<report.json>",
|
|
32998
|
-
description:
|
|
32996
|
+
description: "vitest-flag" /* VitestFlag */,
|
|
32999
32997
|
report: {
|
|
33000
32998
|
reader: "vitest",
|
|
33001
32999
|
format: "json",
|
|
@@ -33008,7 +33006,7 @@ var init_evidenceInputs = __esm({
|
|
|
33008
33006
|
flag: "pytest",
|
|
33009
33007
|
key: "pytest",
|
|
33010
33008
|
arg: "<report.xml>",
|
|
33011
|
-
description:
|
|
33009
|
+
description: "pytest-flag" /* PytestFlag */,
|
|
33012
33010
|
report: {
|
|
33013
33011
|
reader: "pytest",
|
|
33014
33012
|
format: "junit-xml",
|
|
@@ -33021,7 +33019,7 @@ var init_evidenceInputs = __esm({
|
|
|
33021
33019
|
flag: "jest",
|
|
33022
33020
|
key: "jest",
|
|
33023
33021
|
arg: "<report.json>",
|
|
33024
|
-
description:
|
|
33022
|
+
description: "jest-flag" /* JestFlag */,
|
|
33025
33023
|
report: {
|
|
33026
33024
|
reader: "jest",
|
|
33027
33025
|
format: "json-naming-its-shape",
|
|
@@ -33034,7 +33032,7 @@ var init_evidenceInputs = __esm({
|
|
|
33034
33032
|
flag: "junit",
|
|
33035
33033
|
key: "junit",
|
|
33036
33034
|
arg: "<report.xml>",
|
|
33037
|
-
description:
|
|
33035
|
+
description: "junit-flag" /* JunitFlag */,
|
|
33038
33036
|
report: {
|
|
33039
33037
|
reader: "junit",
|
|
33040
33038
|
format: "junit-xml-or-one-suite",
|
|
@@ -33048,7 +33046,7 @@ var init_evidenceInputs = __esm({
|
|
|
33048
33046
|
flag: "rspec",
|
|
33049
33047
|
key: "rspec",
|
|
33050
33048
|
arg: "<report.json>",
|
|
33051
|
-
description:
|
|
33049
|
+
description: "rspec-flag" /* RspecFlag */,
|
|
33052
33050
|
report: {
|
|
33053
33051
|
reader: "rspec",
|
|
33054
33052
|
format: "json-naming-its-shape",
|
|
@@ -33061,7 +33059,7 @@ var init_evidenceInputs = __esm({
|
|
|
33061
33059
|
flag: "cucumber",
|
|
33062
33060
|
key: "cucumber",
|
|
33063
33061
|
arg: "<report.json>",
|
|
33064
|
-
description:
|
|
33062
|
+
description: "cucumber-flag" /* CucumberFlag */,
|
|
33065
33063
|
report: {
|
|
33066
33064
|
reader: "cucumber",
|
|
33067
33065
|
format: "json",
|
|
@@ -33070,12 +33068,12 @@ var init_evidenceInputs = __esm({
|
|
|
33070
33068
|
writer: "cucumber-report-shape" /* CucumberReportShape */
|
|
33071
33069
|
}
|
|
33072
33070
|
},
|
|
33073
|
-
{ flag: "ci", key: "ci", arg: "<ci.yml>", description:
|
|
33071
|
+
{ flag: "ci", key: "ci", arg: "<ci.yml>", description: "ci-flag" /* CiFlag */ },
|
|
33074
33072
|
{
|
|
33075
33073
|
flag: "package-json",
|
|
33076
33074
|
key: "packageJson",
|
|
33077
33075
|
arg: "<path>",
|
|
33078
|
-
description:
|
|
33076
|
+
description: "package-json-flag" /* PackageJsonFlag */,
|
|
33079
33077
|
report: {
|
|
33080
33078
|
reader: "package-manifest",
|
|
33081
33079
|
format: "json",
|
|
@@ -33088,7 +33086,7 @@ var init_evidenceInputs = __esm({
|
|
|
33088
33086
|
flag: "ci-steps",
|
|
33089
33087
|
key: "ciSteps",
|
|
33090
33088
|
arg: "<record.json>",
|
|
33091
|
-
description:
|
|
33089
|
+
description: "ci-steps-flag" /* CiStepsFlag */,
|
|
33092
33090
|
report: {
|
|
33093
33091
|
reader: "ci-step-record",
|
|
33094
33092
|
format: "json",
|
|
@@ -38282,6 +38280,9 @@ var init_keptRun = __esm({
|
|
|
38282
38280
|
});
|
|
38283
38281
|
|
|
38284
38282
|
// src/cliRegistry.ts
|
|
38283
|
+
function explainingLines(entry) {
|
|
38284
|
+
return entry.split("\n").map((line) => ` ${line}`);
|
|
38285
|
+
}
|
|
38285
38286
|
function flagLabel(flag) {
|
|
38286
38287
|
const names = [flag.name, ...flag.aliases ?? []].join(", ");
|
|
38287
38288
|
return flag.arg !== void 0 ? `${names} ${flag.arg}` : names;
|
|
@@ -38298,7 +38299,7 @@ function renderCommandHelp(command) {
|
|
|
38298
38299
|
`spec-controller ${command.name} \u2014 ${command.summary}`,
|
|
38299
38300
|
...positionalHelp(command.name, command.positionals ?? []),
|
|
38300
38301
|
"",
|
|
38301
|
-
|
|
38302
|
+
message("help-options" /* HelpOptions */),
|
|
38302
38303
|
...lines,
|
|
38303
38304
|
...configHelp.length > 0 ? ["", ...configHelp] : []
|
|
38304
38305
|
].join("\n");
|
|
@@ -38308,9 +38309,9 @@ function positionalHelp(command, positionals) {
|
|
|
38308
38309
|
const width = Math.max(...positionals.map((positional) => positional.name.length));
|
|
38309
38310
|
return [
|
|
38310
38311
|
"",
|
|
38311
|
-
`${
|
|
38312
|
+
`${message("help-usage" /* HelpUsage */)} spec-controller ${command} ${positionals.map((positional) => positional.name).join(" ")} [options]`,
|
|
38312
38313
|
"",
|
|
38313
|
-
|
|
38314
|
+
message("help-arguments" /* HelpArguments */),
|
|
38314
38315
|
...positionals.map((positional) => ` ${positional.name.padEnd(width + 2)}${positional.description}`)
|
|
38315
38316
|
];
|
|
38316
38317
|
}
|
|
@@ -38327,18 +38328,18 @@ function renderTopLevelHelp(registry) {
|
|
|
38327
38328
|
);
|
|
38328
38329
|
const modifierUsage = registry.global.map((flag) => `[${flagLabel(flag)}]`).join(" ");
|
|
38329
38330
|
return [
|
|
38330
|
-
|
|
38331
|
+
message("help-title" /* HelpTitle */),
|
|
38331
38332
|
"",
|
|
38332
|
-
|
|
38333
|
-
` ${
|
|
38333
|
+
message("help-usage" /* HelpUsage */),
|
|
38334
|
+
` ${message("help-usage-line" /* HelpUsageLine */, { modifierUsage })}`,
|
|
38334
38335
|
"",
|
|
38335
|
-
|
|
38336
|
+
message("help-commands" /* HelpCommands */),
|
|
38336
38337
|
...commandLines,
|
|
38337
38338
|
"",
|
|
38338
|
-
|
|
38339
|
+
message("help-host-modifiers" /* HelpHostModifiers */),
|
|
38339
38340
|
...modifierLines,
|
|
38340
38341
|
"",
|
|
38341
|
-
|
|
38342
|
+
message("help-pointer" /* HelpPointer */)
|
|
38342
38343
|
].join("\n");
|
|
38343
38344
|
}
|
|
38344
38345
|
var balanceFlags, balanceConfigHelp, balanceRetiredFlags, globalFlags, balanceCommand, allocateCommand, cliRegistry;
|
|
@@ -38347,90 +38348,90 @@ var init_cliRegistry = __esm({
|
|
|
38347
38348
|
"use strict";
|
|
38348
38349
|
init_dist3();
|
|
38349
38350
|
init_messages();
|
|
38351
|
+
init_appText();
|
|
38350
38352
|
init_evidenceInputs();
|
|
38351
38353
|
balanceFlags = [
|
|
38352
|
-
...EVIDENCE_INPUTS.map(({ flag, arg, description }) => ({ name: `--${flag}`, arg, description:
|
|
38354
|
+
...EVIDENCE_INPUTS.map(({ flag, arg, description }) => ({ name: `--${flag}`, arg, description: message(description) })),
|
|
38353
38355
|
{
|
|
38354
38356
|
name: "--target",
|
|
38355
38357
|
arg: "<name>",
|
|
38356
|
-
description:
|
|
38358
|
+
description: message("target-flag" /* TargetFlag */)
|
|
38357
38359
|
},
|
|
38358
38360
|
{
|
|
38359
38361
|
name: "--source-sha",
|
|
38360
38362
|
arg: "<sha>",
|
|
38361
|
-
description:
|
|
38363
|
+
description: message("source-sha-flag" /* SourceShaFlag */)
|
|
38362
38364
|
},
|
|
38363
38365
|
{
|
|
38364
38366
|
name: "--format",
|
|
38365
38367
|
arg: "<fmt>[:<path>]",
|
|
38366
38368
|
repeatable: true,
|
|
38367
|
-
description:
|
|
38369
|
+
description: message("format-flag" /* FormatFlag */)
|
|
38368
38370
|
},
|
|
38369
38371
|
{
|
|
38370
38372
|
name: "--render-from-json",
|
|
38371
38373
|
arg: "<path>",
|
|
38372
|
-
description:
|
|
38374
|
+
description: message("render-from-json-flag" /* RenderFromJsonFlag */)
|
|
38373
38375
|
},
|
|
38374
38376
|
{
|
|
38375
38377
|
name: "--strict",
|
|
38376
|
-
description:
|
|
38378
|
+
description: message("strict-flag" /* StrictFlag */)
|
|
38377
38379
|
},
|
|
38378
38380
|
{
|
|
38379
38381
|
name: "--exit-zero",
|
|
38380
|
-
description:
|
|
38382
|
+
description: message("exit-zero-flag" /* ExitZeroFlag */)
|
|
38381
38383
|
},
|
|
38382
38384
|
{
|
|
38383
38385
|
name: "--help",
|
|
38384
38386
|
aliases: ["-h"],
|
|
38385
|
-
description:
|
|
38387
|
+
description: message("help-flag" /* HelpFlag */)
|
|
38386
38388
|
}
|
|
38387
38389
|
];
|
|
38388
38390
|
balanceConfigHelp = [
|
|
38389
|
-
|
|
38390
|
-
` ${
|
|
38391
|
-
|
|
38392
|
-
|
|
38393
|
-
` ${APP_MESSAGES[31 /* BuiltInDeferralTags */](BUILT_IN_DEFERRAL_TAGS.map((tag) => `@${tag}`).join(", "))}`
|
|
38391
|
+
message("configuration-heading" /* ConfigurationHeading */),
|
|
38392
|
+
` ${message("deferral-tags-key" /* DeferralTagsKey */)}`,
|
|
38393
|
+
...explainingLines(message("deferral-tags-explanation" /* DeferralTagsExplanation */)),
|
|
38394
|
+
...explainingLines(message("built-in-deferral-tags" /* BuiltInDeferralTags */, { tags: BUILT_IN_DEFERRAL_TAGS.map((tag) => `@${tag}`).join(", ") }))
|
|
38394
38395
|
];
|
|
38395
38396
|
balanceRetiredFlags = [
|
|
38396
38397
|
{
|
|
38397
38398
|
name: "--measurements",
|
|
38398
38399
|
retiredIn: "0.1.0-alpha.5",
|
|
38399
|
-
replacement:
|
|
38400
|
+
replacement: message("measurements-replacement" /* MeasurementsReplacement */)
|
|
38400
38401
|
}
|
|
38401
38402
|
];
|
|
38402
38403
|
globalFlags = [
|
|
38403
38404
|
{
|
|
38404
38405
|
name: "--store",
|
|
38405
38406
|
arg: "<root>",
|
|
38406
|
-
description:
|
|
38407
|
+
description: message("store-modifier" /* StoreModifier */)
|
|
38407
38408
|
},
|
|
38408
38409
|
{
|
|
38409
38410
|
name: "--run-id",
|
|
38410
38411
|
arg: "<id>",
|
|
38411
|
-
description:
|
|
38412
|
+
description: message("run-id-modifier" /* RunIdModifier */)
|
|
38412
38413
|
}
|
|
38413
38414
|
];
|
|
38414
38415
|
balanceCommand = {
|
|
38415
38416
|
name: "balance",
|
|
38416
|
-
summary:
|
|
38417
|
+
summary: message("balance-summary" /* BalanceSummary */),
|
|
38417
38418
|
flags: balanceFlags,
|
|
38418
38419
|
configHelp: balanceConfigHelp,
|
|
38419
38420
|
retiredFlags: balanceRetiredFlags
|
|
38420
38421
|
};
|
|
38421
38422
|
allocateCommand = {
|
|
38422
38423
|
name: "allocate",
|
|
38423
|
-
summary:
|
|
38424
|
+
summary: message("allocate-summary" /* AllocateSummary */),
|
|
38424
38425
|
acceptsHostModifiers: false,
|
|
38425
38426
|
positionals: [
|
|
38426
|
-
{ name: "<FFF>", description:
|
|
38427
|
+
{ name: "<FFF>", description: message("feature-part-argument" /* FeaturePartArgument */) }
|
|
38427
38428
|
],
|
|
38428
38429
|
flags: [
|
|
38429
38430
|
{
|
|
38430
38431
|
name: "--new",
|
|
38431
|
-
description:
|
|
38432
|
+
description: message("new-flag" /* NewFlag */)
|
|
38432
38433
|
},
|
|
38433
|
-
{ name: "--help", aliases: ["-h"], description:
|
|
38434
|
+
{ name: "--help", aliases: ["-h"], description: message("help-flag" /* HelpFlag */) }
|
|
38434
38435
|
]
|
|
38435
38436
|
};
|
|
38436
38437
|
cliRegistry = {
|
|
@@ -39106,16 +39107,29 @@ var init_readTree = __esm({
|
|
|
39106
39107
|
|
|
39107
39108
|
// src/cli-allocate/stderr.ts
|
|
39108
39109
|
function historyBoundaryLine(boundary, allocation) {
|
|
39109
|
-
|
|
39110
|
-
|
|
39111
|
-
|
|
39112
|
-
|
|
39110
|
+
switch (boundary.kind) {
|
|
39111
|
+
case "complete":
|
|
39112
|
+
return null;
|
|
39113
|
+
case "shallow":
|
|
39114
|
+
return shallowHistoryLine(boundary.before, allocation);
|
|
39115
|
+
case "not-a-repository":
|
|
39116
|
+
return noRepositoryLine(allocation);
|
|
39117
|
+
}
|
|
39118
|
+
}
|
|
39119
|
+
function shallowHistoryLine(before, allocation) {
|
|
39120
|
+
return allocation.highest === null ? message("shallow-history-risks-part-code" /* ShallowHistoryRisksPartCode */, { before, part: partOf(allocation) }) : message("shallow-history-risks-code-above" /* ShallowHistoryRisksCodeAbove */, { before, code: allocation.highest.code });
|
|
39121
|
+
}
|
|
39122
|
+
function noRepositoryLine(allocation) {
|
|
39123
|
+
return allocation.highest === null ? message("no-repository-risks-part-code" /* NoRepositoryRisksPartCode */, { part: partOf(allocation) }) : message("no-repository-risks-code-above" /* NoRepositoryRisksCodeAbove */, { code: allocation.highest.code });
|
|
39124
|
+
}
|
|
39125
|
+
function partOf(allocation) {
|
|
39126
|
+
return featureCodeOf(allocation.code) ?? "";
|
|
39113
39127
|
}
|
|
39114
39128
|
function highestSeenLine(allocation) {
|
|
39115
39129
|
const highest = allocation.highest;
|
|
39116
|
-
if (highest === null) return
|
|
39130
|
+
if (highest === null) return message("highest-seen-none" /* HighestSeenNone */);
|
|
39117
39131
|
const { path, line, commit } = highest.occurrence;
|
|
39118
|
-
return commit === void 0 ?
|
|
39132
|
+
return commit === void 0 ? message("highest-seen-in-tree" /* HighestSeenInTree */, { code: highest.code, path, line }) : message("highest-seen-in-commit" /* HighestSeenInCommit */, { code: highest.code, path, line, commit });
|
|
39119
39133
|
}
|
|
39120
39134
|
function carriedParts(carried) {
|
|
39121
39135
|
return CARRIED_PARTS[carried.kind](carried);
|
|
@@ -39125,7 +39139,7 @@ function unknownPartRefusal(unknown) {
|
|
|
39125
39139
|
}
|
|
39126
39140
|
function alreadyHeadedNote(allocation) {
|
|
39127
39141
|
if (allocation.alreadyHeaded !== true) return null;
|
|
39128
|
-
return
|
|
39142
|
+
return message("part-already-headed" /* PartAlreadyHeaded */, { part: partOf(allocation) });
|
|
39129
39143
|
}
|
|
39130
39144
|
var CARRIED_PARTS;
|
|
39131
39145
|
var init_stderr = __esm({
|