spec-controller 0.1.172 → 0.1.173
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 +75 -61
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -28244,7 +28244,7 @@ function withReaderAccounts(reconciliation, packageJson, { steps, runners, notAp
|
|
|
28244
28244
|
return withStepAccounting(withUnmatchedNonChecks(withRunnerAccount(reconciliation, steps, dispositionOf, packageJson, runners), notApplied), steps, dispositionOf, reconciler.roleOf, { namingAWorkflowNotRead: notApplied.namingAWorkflowNotRead, workflowsRead });
|
|
28245
28245
|
}
|
|
28246
28246
|
function withStepAccounting(reconciliation, steps, dispositionOf, roleOf, { namingAWorkflowNotRead, workflowsRead }) {
|
|
28247
|
-
if (steps.length === 0)
|
|
28247
|
+
if (steps.length === 0 && namingAWorkflowNotRead.length === 0)
|
|
28248
28248
|
return reconciliation;
|
|
28249
28249
|
return {
|
|
28250
28250
|
...reconciliation,
|
|
@@ -28451,59 +28451,60 @@ var init_messages4 = __esm({
|
|
|
28451
28451
|
CoreMessage2[CoreMessage2["StepAccountingReconcilerLabel"] = 100] = "StepAccountingReconcilerLabel";
|
|
28452
28452
|
CoreMessage2[CoreMessage2["StepAccountingExcludedLabel"] = 101] = "StepAccountingExcludedLabel";
|
|
28453
28453
|
CoreMessage2[CoreMessage2["StepAccountingNotAppliedLabel"] = 102] = "StepAccountingNotAppliedLabel";
|
|
28454
|
-
CoreMessage2[CoreMessage2["
|
|
28455
|
-
CoreMessage2[CoreMessage2["
|
|
28456
|
-
CoreMessage2[CoreMessage2["
|
|
28457
|
-
CoreMessage2[CoreMessage2["
|
|
28458
|
-
CoreMessage2[CoreMessage2["
|
|
28459
|
-
CoreMessage2[CoreMessage2["
|
|
28460
|
-
CoreMessage2[CoreMessage2["
|
|
28461
|
-
CoreMessage2[CoreMessage2["
|
|
28462
|
-
CoreMessage2[CoreMessage2["
|
|
28463
|
-
CoreMessage2[CoreMessage2["
|
|
28464
|
-
CoreMessage2[CoreMessage2["
|
|
28465
|
-
CoreMessage2[CoreMessage2["
|
|
28466
|
-
CoreMessage2[CoreMessage2["
|
|
28467
|
-
CoreMessage2[CoreMessage2["
|
|
28468
|
-
CoreMessage2[CoreMessage2["
|
|
28469
|
-
CoreMessage2[CoreMessage2["
|
|
28470
|
-
CoreMessage2[CoreMessage2["
|
|
28471
|
-
CoreMessage2[CoreMessage2["
|
|
28472
|
-
CoreMessage2[CoreMessage2["
|
|
28473
|
-
CoreMessage2[CoreMessage2["
|
|
28474
|
-
CoreMessage2[CoreMessage2["
|
|
28475
|
-
CoreMessage2[CoreMessage2["
|
|
28476
|
-
CoreMessage2[CoreMessage2["
|
|
28477
|
-
CoreMessage2[CoreMessage2["
|
|
28478
|
-
CoreMessage2[CoreMessage2["
|
|
28479
|
-
CoreMessage2[CoreMessage2["
|
|
28480
|
-
CoreMessage2[CoreMessage2["
|
|
28481
|
-
CoreMessage2[CoreMessage2["
|
|
28482
|
-
CoreMessage2[CoreMessage2["
|
|
28483
|
-
CoreMessage2[CoreMessage2["
|
|
28484
|
-
CoreMessage2[CoreMessage2["
|
|
28485
|
-
CoreMessage2[CoreMessage2["
|
|
28486
|
-
CoreMessage2[CoreMessage2["
|
|
28487
|
-
CoreMessage2[CoreMessage2["
|
|
28488
|
-
CoreMessage2[CoreMessage2["
|
|
28489
|
-
CoreMessage2[CoreMessage2["
|
|
28490
|
-
CoreMessage2[CoreMessage2["
|
|
28491
|
-
CoreMessage2[CoreMessage2["
|
|
28492
|
-
CoreMessage2[CoreMessage2["
|
|
28493
|
-
CoreMessage2[CoreMessage2["
|
|
28494
|
-
CoreMessage2[CoreMessage2["
|
|
28495
|
-
CoreMessage2[CoreMessage2["
|
|
28496
|
-
CoreMessage2[CoreMessage2["
|
|
28497
|
-
CoreMessage2[CoreMessage2["
|
|
28498
|
-
CoreMessage2[CoreMessage2["
|
|
28499
|
-
CoreMessage2[CoreMessage2["
|
|
28500
|
-
CoreMessage2[CoreMessage2["
|
|
28501
|
-
CoreMessage2[CoreMessage2["
|
|
28502
|
-
CoreMessage2[CoreMessage2["
|
|
28503
|
-
CoreMessage2[CoreMessage2["
|
|
28504
|
-
CoreMessage2[CoreMessage2["
|
|
28505
|
-
CoreMessage2[CoreMessage2["
|
|
28506
|
-
CoreMessage2[CoreMessage2["
|
|
28454
|
+
CoreMessage2[CoreMessage2["StepAccountingNoWorkflowRead"] = 103] = "StepAccountingNoWorkflowRead";
|
|
28455
|
+
CoreMessage2[CoreMessage2["StepAccountingPlumbingLabel"] = 104] = "StepAccountingPlumbingLabel";
|
|
28456
|
+
CoreMessage2[CoreMessage2["OutOfBalanceByFeatureHeading"] = 105] = "OutOfBalanceByFeatureHeading";
|
|
28457
|
+
CoreMessage2[CoreMessage2["ScenarioClaimReconciliationsOutOfBalance"] = 106] = "ScenarioClaimReconciliationsOutOfBalance";
|
|
28458
|
+
CoreMessage2[CoreMessage2["GroupedByFeature"] = 107] = "GroupedByFeature";
|
|
28459
|
+
CoreMessage2[CoreMessage2["NotGroupedByFeature"] = 108] = "NotGroupedByFeature";
|
|
28460
|
+
CoreMessage2[CoreMessage2["PhantomClaimReconciliations"] = 109] = "PhantomClaimReconciliations";
|
|
28461
|
+
CoreMessage2[CoreMessage2["UnnamedClaimReconciliations"] = 110] = "UnnamedClaimReconciliations";
|
|
28462
|
+
CoreMessage2[CoreMessage2["AndJoiner"] = 111] = "AndJoiner";
|
|
28463
|
+
CoreMessage2[CoreMessage2["ByFeatureTableHeader"] = 112] = "ByFeatureTableHeader";
|
|
28464
|
+
CoreMessage2[CoreMessage2["NoScnCodeScenarios"] = 113] = "NoScnCodeScenarios";
|
|
28465
|
+
CoreMessage2[CoreMessage2["ClaimReconciliationsHeading"] = 114] = "ClaimReconciliationsHeading";
|
|
28466
|
+
CoreMessage2[CoreMessage2["ClaimReconciliationTally"] = 115] = "ClaimReconciliationTally";
|
|
28467
|
+
CoreMessage2[CoreMessage2["PhantomClaimTally"] = 116] = "PhantomClaimTally";
|
|
28468
|
+
CoreMessage2[CoreMessage2["UnnamedClaimTally"] = 117] = "UnnamedClaimTally";
|
|
28469
|
+
CoreMessage2[CoreMessage2["ExcludedScnOccurrences"] = 118] = "ExcludedScnOccurrences";
|
|
28470
|
+
CoreMessage2[CoreMessage2["UntaggedScenarios"] = 119] = "UntaggedScenarios";
|
|
28471
|
+
CoreMessage2[CoreMessage2["SharedScnCodes"] = 120] = "SharedScnCodes";
|
|
28472
|
+
CoreMessage2[CoreMessage2["SharedScnCodeScenario"] = 121] = "SharedScnCodeScenario";
|
|
28473
|
+
CoreMessage2[CoreMessage2["ClaimColumn"] = 122] = "ClaimColumn";
|
|
28474
|
+
CoreMessage2[CoreMessage2["VerdictColumn"] = 123] = "VerdictColumn";
|
|
28475
|
+
CoreMessage2[CoreMessage2["ReconcilingItemsColumn"] = 124] = "ReconcilingItemsColumn";
|
|
28476
|
+
CoreMessage2[CoreMessage2["CiStepsColumn"] = 125] = "CiStepsColumn";
|
|
28477
|
+
CoreMessage2[CoreMessage2["EvidenceCellKey"] = 126] = "EvidenceCellKey";
|
|
28478
|
+
CoreMessage2[CoreMessage2["PendingItem"] = 127] = "PendingItem";
|
|
28479
|
+
CoreMessage2[CoreMessage2["PendingItemFor"] = 128] = "PendingItemFor";
|
|
28480
|
+
CoreMessage2[CoreMessage2["CheckStepNoOutcome"] = 129] = "CheckStepNoOutcome";
|
|
28481
|
+
CoreMessage2[CoreMessage2["CheckStepSkipped"] = 130] = "CheckStepSkipped";
|
|
28482
|
+
CoreMessage2[CoreMessage2["CheckStepEnded"] = 131] = "CheckStepEnded";
|
|
28483
|
+
CoreMessage2[CoreMessage2["AmbiguousNamedStep"] = 132] = "AmbiguousNamedStep";
|
|
28484
|
+
CoreMessage2[CoreMessage2["AmbiguousUnnamedStep"] = 133] = "AmbiguousUnnamedStep";
|
|
28485
|
+
CoreMessage2[CoreMessage2["ManifestKindList"] = 134] = "ManifestKindList";
|
|
28486
|
+
CoreMessage2[CoreMessage2["ManifestKindObject"] = 135] = "ManifestKindObject";
|
|
28487
|
+
CoreMessage2[CoreMessage2["ManifestKindString"] = 136] = "ManifestKindString";
|
|
28488
|
+
CoreMessage2[CoreMessage2["ManifestKindStringOrNull"] = 137] = "ManifestKindStringOrNull";
|
|
28489
|
+
CoreMessage2[CoreMessage2["ManifestKindOfType"] = 138] = "ManifestKindOfType";
|
|
28490
|
+
CoreMessage2[CoreMessage2["OutcomeSatisfied"] = 139] = "OutcomeSatisfied";
|
|
28491
|
+
CoreMessage2[CoreMessage2["OutcomeMissing"] = 140] = "OutcomeMissing";
|
|
28492
|
+
CoreMessage2[CoreMessage2["OutcomeFailing"] = 141] = "OutcomeFailing";
|
|
28493
|
+
CoreMessage2[CoreMessage2["OutcomeWatermelon"] = 142] = "OutcomeWatermelon";
|
|
28494
|
+
CoreMessage2[CoreMessage2["OutcomeNoScnCode"] = 143] = "OutcomeNoScnCode";
|
|
28495
|
+
CoreMessage2[CoreMessage2["OutcomeDuplicateScnCode"] = 144] = "OutcomeDuplicateScnCode";
|
|
28496
|
+
CoreMessage2[CoreMessage2["OutcomeCitesUnknownScenario"] = 145] = "OutcomeCitesUnknownScenario";
|
|
28497
|
+
CoreMessage2[CoreMessage2["OutcomeCitesNoScenario"] = 146] = "OutcomeCitesNoScenario";
|
|
28498
|
+
CoreMessage2[CoreMessage2["OutcomeNoEvidenceObligation"] = 147] = "OutcomeNoEvidenceObligation";
|
|
28499
|
+
CoreMessage2[CoreMessage2["OutcomeBroken"] = 148] = "OutcomeBroken";
|
|
28500
|
+
CoreMessage2[CoreMessage2["OutcomeBothMissing"] = 149] = "OutcomeBothMissing";
|
|
28501
|
+
CoreMessage2[CoreMessage2["ObservationPassed"] = 150] = "ObservationPassed";
|
|
28502
|
+
CoreMessage2[CoreMessage2["ObservationFailed"] = 151] = "ObservationFailed";
|
|
28503
|
+
CoreMessage2[CoreMessage2["UnnamedClaimGroupCounts"] = 152] = "UnnamedClaimGroupCounts";
|
|
28504
|
+
CoreMessage2[CoreMessage2["UnnamedClaimCiSteps"] = 153] = "UnnamedClaimCiSteps";
|
|
28505
|
+
CoreMessage2[CoreMessage2["UnnamedClaimFailedNames"] = 154] = "UnnamedClaimFailedNames";
|
|
28506
|
+
CoreMessage2[CoreMessage2["SeveralScnCodes"] = 155] = "SeveralScnCodes";
|
|
28507
|
+
CoreMessage2[CoreMessage2["SharedScnCode"] = 156] = "SharedScnCode";
|
|
28507
28508
|
})(CoreMessage || (CoreMessage = {}));
|
|
28508
28509
|
SATISFIED = "Evidence Observation satisfies its Evidence Obligation";
|
|
28509
28510
|
MISSING = "Evidence Observation is missing";
|
|
@@ -28618,6 +28619,7 @@ var init_messages4 = __esm({
|
|
|
28618
28619
|
[CoreMessage.StepAccountingReconcilerLabel]: "Reconciler:",
|
|
28619
28620
|
[CoreMessage.StepAccountingExcludedLabel]: "Excluded:",
|
|
28620
28621
|
[CoreMessage.StepAccountingNotAppliedLabel]: (key, workflowsRead) => `Not applied, because each ${key} entry below names a workflow this run did not read (this run read ${workflowsRead}):`,
|
|
28622
|
+
[CoreMessage.StepAccountingNoWorkflowRead]: "no workflow",
|
|
28621
28623
|
[CoreMessage.StepAccountingPlumbingLabel]: "GitHub plumbing:",
|
|
28622
28624
|
[CoreMessage.OutOfBalanceByFeatureHeading]: "### Out-of-balance by feature",
|
|
28623
28625
|
[CoreMessage.ScenarioClaimReconciliationsOutOfBalance]: (outOfBalance, claimReconciliations) => `${outOfBalance} of ${claimReconciliations} Claim Reconciliation(s) of scenarios out of balance`,
|
|
@@ -29024,7 +29026,7 @@ var init_errorsInTheInputs = __esm({
|
|
|
29024
29026
|
});
|
|
29025
29027
|
|
|
29026
29028
|
// ../core/dist/render/stepAccounting.js
|
|
29027
|
-
var rowOf, jobRowsOf, totalRowOf, WHAT_IT_IS, runnersListOf, reconcilerListOf, nonChecksListOf, workflowsReadOf, notAppliedListOf, plumbingListOf, stepAccountingSection;
|
|
29029
|
+
var rowOf, jobRowsOf, totalRowOf, tableOf, WHAT_IT_IS, runnersListOf, reconcilerListOf, nonChecksListOf, workflowsReadOf, notAppliedListOf, plumbingListOf, stepAccountingSection;
|
|
29028
29030
|
var init_stepAccounting = __esm({
|
|
29029
29031
|
"../core/dist/render/stepAccounting.js"() {
|
|
29030
29032
|
"use strict";
|
|
@@ -29050,6 +29052,17 @@ var init_stepAccounting = __esm({
|
|
|
29050
29052
|
const counts = rowOf([stepsRead, candidates, runners, reconciler, nonChecks, plumbing, accountedForOf(total)]);
|
|
29051
29053
|
return [`| ${CORE_MESSAGES[CoreMessage.StepAccountingTotal]} | ${counts}`];
|
|
29052
29054
|
};
|
|
29055
|
+
tableOf = (accounting) => {
|
|
29056
|
+
if (accounting.byJob.length === 0)
|
|
29057
|
+
return [];
|
|
29058
|
+
return [
|
|
29059
|
+
CORE_MESSAGES[CoreMessage.StepAccountingTableHeader],
|
|
29060
|
+
"| --- | --- | --- | --- | --- | --- | --- | --- | --- |",
|
|
29061
|
+
...jobRowsOf(accounting),
|
|
29062
|
+
...totalRowOf(accounting),
|
|
29063
|
+
""
|
|
29064
|
+
];
|
|
29065
|
+
};
|
|
29053
29066
|
WHAT_IT_IS = {
|
|
29054
29067
|
reconciles: CORE_MESSAGES[CoreMessage.ReconcilerReconciles],
|
|
29055
29068
|
records: CORE_MESSAGES[CoreMessage.ReconcilerRecords]
|
|
@@ -29080,7 +29093,12 @@ var init_stepAccounting = __esm({
|
|
|
29080
29093
|
""
|
|
29081
29094
|
];
|
|
29082
29095
|
};
|
|
29083
|
-
workflowsReadOf = ({ workflowsRead, byJob }) =>
|
|
29096
|
+
workflowsReadOf = ({ workflowsRead, byJob }) => {
|
|
29097
|
+
const workflows = [...new Set(workflowsRead ?? byJob.map(({ workflow }) => workflow))];
|
|
29098
|
+
if (workflows.length === 0)
|
|
29099
|
+
return CORE_MESSAGES[CoreMessage.StepAccountingNoWorkflowRead];
|
|
29100
|
+
return workflows.map((workflow) => codeSpan(workflow)).join(", ");
|
|
29101
|
+
};
|
|
29084
29102
|
notAppliedListOf = (accounting) => {
|
|
29085
29103
|
const notApplied = accounting.nonChecksNamingAWorkflowNotRead;
|
|
29086
29104
|
if (notApplied === void 0)
|
|
@@ -29104,11 +29122,7 @@ var init_stepAccounting = __esm({
|
|
|
29104
29122
|
return [
|
|
29105
29123
|
CORE_MESSAGES[CoreMessage.StepAccountingHeading],
|
|
29106
29124
|
"",
|
|
29107
|
-
|
|
29108
|
-
"| --- | --- | --- | --- | --- | --- | --- | --- | --- |",
|
|
29109
|
-
...jobRowsOf(accounting),
|
|
29110
|
-
...totalRowOf(accounting),
|
|
29111
|
-
"",
|
|
29125
|
+
...tableOf(accounting),
|
|
29112
29126
|
...runnersListOf(accounting),
|
|
29113
29127
|
...reconcilerListOf(accounting),
|
|
29114
29128
|
...nonChecksListOf(accounting),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spec-controller",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.173",
|
|
4
4
|
"description": "Reconcile the behaviour your scenarios name against the evidence that actually ran — the deterministic `balance` CLI.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"reconciliation",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"fast-xml-parser": "^5.11.2",
|
|
27
27
|
"ts-json-schema-generator": "^2.9.0",
|
|
28
28
|
"yaml": "^2.9.0",
|
|
29
|
-
"@3f-consulting/spec-controller-core": "0.1.
|
|
29
|
+
"@3f-consulting/spec-controller-core": "0.1.173"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|