spec-controller 0.1.172 → 0.1.174
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 +82 -67
- 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,17 +29026,18 @@ 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";
|
|
29031
29033
|
init_uncitedFitnessFunctions();
|
|
29032
29034
|
init_messages4();
|
|
29035
|
+
init_cellSafe();
|
|
29033
29036
|
init_codeSpan();
|
|
29034
29037
|
rowOf = (cells) => `| ${cells.join(" | ")} |`;
|
|
29035
29038
|
jobRowsOf = ({ byJob }) => byJob.map((row) => rowOf([
|
|
29036
|
-
row.workflow,
|
|
29037
|
-
row.job,
|
|
29039
|
+
cellSafe(row.workflow),
|
|
29040
|
+
cellSafe(row.job),
|
|
29038
29041
|
row.stepsRead,
|
|
29039
29042
|
row.candidates,
|
|
29040
29043
|
row.runners,
|
|
@@ -29050,6 +29053,17 @@ var init_stepAccounting = __esm({
|
|
|
29050
29053
|
const counts = rowOf([stepsRead, candidates, runners, reconciler, nonChecks, plumbing, accountedForOf(total)]);
|
|
29051
29054
|
return [`| ${CORE_MESSAGES[CoreMessage.StepAccountingTotal]} | ${counts}`];
|
|
29052
29055
|
};
|
|
29056
|
+
tableOf = (accounting) => {
|
|
29057
|
+
if (accounting.byJob.length === 0)
|
|
29058
|
+
return [];
|
|
29059
|
+
return [
|
|
29060
|
+
CORE_MESSAGES[CoreMessage.StepAccountingTableHeader],
|
|
29061
|
+
"| --- | --- | --- | --- | --- | --- | --- | --- | --- |",
|
|
29062
|
+
...jobRowsOf(accounting),
|
|
29063
|
+
...totalRowOf(accounting),
|
|
29064
|
+
""
|
|
29065
|
+
];
|
|
29066
|
+
};
|
|
29053
29067
|
WHAT_IT_IS = {
|
|
29054
29068
|
reconciles: CORE_MESSAGES[CoreMessage.ReconcilerReconciles],
|
|
29055
29069
|
records: CORE_MESSAGES[CoreMessage.ReconcilerRecords]
|
|
@@ -29058,7 +29072,7 @@ var init_stepAccounting = __esm({
|
|
|
29058
29072
|
const runners = steps.runners ?? [];
|
|
29059
29073
|
if (runners.length === 0)
|
|
29060
29074
|
return [];
|
|
29061
|
-
return [CORE_MESSAGES[CoreMessage.StepAccountingRunnersLabel], ...runners.map((step) => `- ${step}`), ""];
|
|
29075
|
+
return [CORE_MESSAGES[CoreMessage.StepAccountingRunnersLabel], ...runners.map((step) => `- ${codeSpan(step)}`), ""];
|
|
29062
29076
|
};
|
|
29063
29077
|
reconcilerListOf = ({ steps }) => {
|
|
29064
29078
|
const reconciler = steps.reconciler ?? [];
|
|
@@ -29066,7 +29080,7 @@ var init_stepAccounting = __esm({
|
|
|
29066
29080
|
return [];
|
|
29067
29081
|
return [
|
|
29068
29082
|
CORE_MESSAGES[CoreMessage.StepAccountingReconcilerLabel],
|
|
29069
|
-
...reconciler.map(({ step, role }) => `- ${CORE_MESSAGES[CoreMessage.ReconcilerStep](step, WHAT_IT_IS[role])}`),
|
|
29083
|
+
...reconciler.map(({ step, role }) => `- ${CORE_MESSAGES[CoreMessage.ReconcilerStep](codeSpan(step), WHAT_IT_IS[role])}`),
|
|
29070
29084
|
""
|
|
29071
29085
|
];
|
|
29072
29086
|
};
|
|
@@ -29076,11 +29090,16 @@ var init_stepAccounting = __esm({
|
|
|
29076
29090
|
return [];
|
|
29077
29091
|
return [
|
|
29078
29092
|
CORE_MESSAGES[CoreMessage.StepAccountingExcludedLabel],
|
|
29079
|
-
...nonChecks.map((step) => `- ${CORE_MESSAGES[CoreMessage.StepExcluded](step)}`),
|
|
29093
|
+
...nonChecks.map((step) => `- ${CORE_MESSAGES[CoreMessage.StepExcluded](codeSpan(step))}`),
|
|
29080
29094
|
""
|
|
29081
29095
|
];
|
|
29082
29096
|
};
|
|
29083
|
-
workflowsReadOf = ({ workflowsRead, byJob }) =>
|
|
29097
|
+
workflowsReadOf = ({ workflowsRead, byJob }) => {
|
|
29098
|
+
const workflows = [...new Set(workflowsRead ?? byJob.map(({ workflow }) => workflow))];
|
|
29099
|
+
if (workflows.length === 0)
|
|
29100
|
+
return CORE_MESSAGES[CoreMessage.StepAccountingNoWorkflowRead];
|
|
29101
|
+
return workflows.map((workflow) => codeSpan(workflow)).join(", ");
|
|
29102
|
+
};
|
|
29084
29103
|
notAppliedListOf = (accounting) => {
|
|
29085
29104
|
const notApplied = accounting.nonChecksNamingAWorkflowNotRead;
|
|
29086
29105
|
if (notApplied === void 0)
|
|
@@ -29095,7 +29114,7 @@ var init_stepAccounting = __esm({
|
|
|
29095
29114
|
const plumbing = steps.plumbing ?? [];
|
|
29096
29115
|
if (plumbing.length === 0)
|
|
29097
29116
|
return [];
|
|
29098
|
-
return [CORE_MESSAGES[CoreMessage.StepAccountingPlumbingLabel], ...plumbing.map((step) => `- ${step}`), ""];
|
|
29117
|
+
return [CORE_MESSAGES[CoreMessage.StepAccountingPlumbingLabel], ...plumbing.map((step) => `- ${codeSpan(step)}`), ""];
|
|
29099
29118
|
};
|
|
29100
29119
|
stepAccountingSection = (report) => {
|
|
29101
29120
|
const accounting = report.summary.stepAccounting;
|
|
@@ -29104,11 +29123,7 @@ var init_stepAccounting = __esm({
|
|
|
29104
29123
|
return [
|
|
29105
29124
|
CORE_MESSAGES[CoreMessage.StepAccountingHeading],
|
|
29106
29125
|
"",
|
|
29107
|
-
|
|
29108
|
-
"| --- | --- | --- | --- | --- | --- | --- | --- | --- |",
|
|
29109
|
-
...jobRowsOf(accounting),
|
|
29110
|
-
...totalRowOf(accounting),
|
|
29111
|
-
"",
|
|
29126
|
+
...tableOf(accounting),
|
|
29112
29127
|
...runnersListOf(accounting),
|
|
29113
29128
|
...reconcilerListOf(accounting),
|
|
29114
29129
|
...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.174",
|
|
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.174"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|