spec-controller 0.1.170 → 0.1.171
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 +15 -10
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -12082,7 +12082,7 @@ function observationCountOf(row, qualityCheckKind) {
|
|
|
12082
12082
|
}
|
|
12083
12083
|
function stepsAt(row, qualityCheckKind, stepsByQualityCheckKind) {
|
|
12084
12084
|
if (qualityCheckKind === "fitness") {
|
|
12085
|
-
return observationsOf(row).flatMap((o) =>
|
|
12085
|
+
return observationsOf(row).flatMap((o) => isFitnessObservation(o) && o.step !== void 0 ? [o.step] : []);
|
|
12086
12086
|
}
|
|
12087
12087
|
const observed = observationsOf(row).some((o) => o.qualityCheckKind === qualityCheckKind);
|
|
12088
12088
|
if (!namesQualityCheckKind(row, qualityCheckKind) && !observed)
|
|
@@ -27687,7 +27687,7 @@ function stepAccountOf(steps, dispositionOf, nameOf2, roleOf) {
|
|
|
27687
27687
|
return {
|
|
27688
27688
|
byJob,
|
|
27689
27689
|
total: totalOf(byJob),
|
|
27690
|
-
steps: stepsBehindCounts(
|
|
27690
|
+
steps: stepsBehindCounts(stepsInAccountingOrder(steps), dispositionOf, nameOf2, roleOf)
|
|
27691
27691
|
};
|
|
27692
27692
|
}
|
|
27693
27693
|
function declaredRunnersRunBy(scripts, runners, shell) {
|
|
@@ -27709,7 +27709,11 @@ function recognisedRunners(steps, nameOf2, scripts, runners, shell) {
|
|
|
27709
27709
|
step: nameOf2(step)
|
|
27710
27710
|
})));
|
|
27711
27711
|
}
|
|
27712
|
-
|
|
27712
|
+
function countedRunners(steps, dispositionOf, nameOf2, scripts, runners, shell) {
|
|
27713
|
+
const counted2 = stepsInAccountingOrder(steps).filter((step) => dispositionOf(step) === "runner");
|
|
27714
|
+
return recognisedRunners(counted2, nameOf2, scripts, runners, shell);
|
|
27715
|
+
}
|
|
27716
|
+
var WORKFLOW_FILE_THEN_COLON, jobKeyOf, byCodeUnit, byWorkflowThenJob, stepsInAccountingOrder, workflowsReadInOrder, COUNTED_AS, noStepsOf;
|
|
27713
27717
|
var init_uncitedFitnessFunctions = __esm({
|
|
27714
27718
|
"../core/dist/domain/uncitedFitnessFunctions.js"() {
|
|
27715
27719
|
"use strict";
|
|
@@ -27717,6 +27721,7 @@ var init_uncitedFitnessFunctions = __esm({
|
|
|
27717
27721
|
jobKeyOf = (step) => `${step.workflow}:${step.job}`;
|
|
27718
27722
|
byCodeUnit = (a, b) => a < b ? -1 : a > b ? 1 : 0;
|
|
27719
27723
|
byWorkflowThenJob = (a, b) => byCodeUnit(a.workflow, b.workflow) || byCodeUnit(a.job, b.job);
|
|
27724
|
+
stepsInAccountingOrder = (steps) => [...steps].sort(byWorkflowThenJob);
|
|
27720
27725
|
workflowsReadInOrder = (files) => [...files].sort(byCodeUnit);
|
|
27721
27726
|
COUNTED_AS = {
|
|
27722
27727
|
candidate: "candidates",
|
|
@@ -28221,7 +28226,7 @@ function withScenarioCodeErrors(reconciliation, input) {
|
|
|
28221
28226
|
};
|
|
28222
28227
|
}
|
|
28223
28228
|
function withReaderAccounts(reconciliation, packageJson, { steps, runners, notApplied, workflowsRead, reconciler, dispositionOf }) {
|
|
28224
|
-
return withStepAccounting(withUnmatchedNonChecks(withRunnerAccount(reconciliation, steps, packageJson, runners), notApplied), steps, dispositionOf, reconciler.roleOf, { namingAWorkflowNotRead: notApplied.namingAWorkflowNotRead, workflowsRead });
|
|
28229
|
+
return withStepAccounting(withUnmatchedNonChecks(withRunnerAccount(reconciliation, steps, dispositionOf, packageJson, runners), notApplied), steps, dispositionOf, reconciler.roleOf, { namingAWorkflowNotRead: notApplied.namingAWorkflowNotRead, workflowsRead });
|
|
28225
28230
|
}
|
|
28226
28231
|
function withStepAccounting(reconciliation, steps, dispositionOf, roleOf, { namingAWorkflowNotRead, workflowsRead }) {
|
|
28227
28232
|
if (steps.length === 0)
|
|
@@ -28248,16 +28253,16 @@ function withUnmatchedNonChecks(reconciliation, { matchingNoStep, notAStepName }
|
|
|
28248
28253
|
}
|
|
28249
28254
|
};
|
|
28250
28255
|
}
|
|
28251
|
-
function withRunnerAccount(reconciliation, steps, packageJson, { layers: runnerLayers, unrecognisedKeys }) {
|
|
28256
|
+
function withRunnerAccount(reconciliation, steps, dispositionOf, packageJson, { layers: runnerLayers, unrecognisedKeys }) {
|
|
28252
28257
|
const scripts = packageJson.scripts ?? {};
|
|
28253
|
-
const behaviouralRunners =
|
|
28258
|
+
const behaviouralRunners = countedRunners(steps, dispositionOf, qualifiedStepName, scripts, runnerLayers, shellReading);
|
|
28254
28259
|
const { evidenceObservations } = reconciliation.summary;
|
|
28255
28260
|
return {
|
|
28256
28261
|
...reconciliation,
|
|
28257
28262
|
summary: {
|
|
28258
28263
|
...reconciliation.summary,
|
|
28259
28264
|
...evidenceObservations === void 0 ? {} : {
|
|
28260
|
-
evidenceObservations: ciStepsJoined(evidenceObservations, reconciliation.ledger, behaviouralRunners, runnerLayers, steps.map(qualifiedStepName))
|
|
28265
|
+
evidenceObservations: ciStepsJoined(evidenceObservations, reconciliation.ledger, behaviouralRunners, runnerLayers, stepsInAccountingOrder(steps).map(qualifiedStepName))
|
|
28261
28266
|
},
|
|
28262
28267
|
...unrecognisedKeys.length > 0 ? { runnerKeysNotALayer: unrecognisedKeys } : {}
|
|
28263
28268
|
}
|
|
@@ -28416,7 +28421,7 @@ var init_messages4 = __esm({
|
|
|
28416
28421
|
CoreMessage2[CoreMessage2["FitnessCiStep"] = 85] = "FitnessCiStep";
|
|
28417
28422
|
CoreMessage2[CoreMessage2["RunnerLayerNamesNone"] = 86] = "RunnerLayerNamesNone";
|
|
28418
28423
|
CoreMessage2[CoreMessage2["RunnerLayerUnnamed"] = 87] = "RunnerLayerUnnamed";
|
|
28419
|
-
CoreMessage2[CoreMessage2["
|
|
28424
|
+
CoreMessage2[CoreMessage2["NoStepCountedAsItsRunnerRunsIt"] = 88] = "NoStepCountedAsItsRunnerRunsIt";
|
|
28420
28425
|
CoreMessage2[CoreMessage2["RunnerKeyNotALayer"] = 89] = "RunnerKeyNotALayer";
|
|
28421
28426
|
CoreMessage2[CoreMessage2["ReconcilerStep"] = 90] = "ReconcilerStep";
|
|
28422
28427
|
CoreMessage2[CoreMessage2["ReconcilerReconciles"] = 91] = "ReconcilerReconciles";
|
|
@@ -28583,7 +28588,7 @@ var init_messages4 = __esm({
|
|
|
28583
28588
|
[CoreMessage.FitnessCiStep]: (steps) => `${steps} step(s), each named on its fitness function's row of Claim Reconciliations.`,
|
|
28584
28589
|
[CoreMessage.RunnerLayerNamesNone]: "no runner: the target names none.",
|
|
28585
28590
|
[CoreMessage.RunnerLayerUnnamed]: "unnamed: the target has not said.",
|
|
28586
|
-
[CoreMessage.
|
|
28591
|
+
[CoreMessage.NoStepCountedAsItsRunnerRunsIt]: "no step counted as its runner runs it.",
|
|
28587
28592
|
[CoreMessage.RunnerKeyNotALayer]: (key) => `${key} \u2014 not a tier: the runner block is keyed by the four tiers, and this key excludes nothing.`,
|
|
28588
28593
|
[CoreMessage.ReconcilerStep]: (step, whatItIs) => `${step} \u2014 the reconciler: ${whatItIs}.`,
|
|
28589
28594
|
[CoreMessage.ReconcilerReconciles]: "this step runs the reconciliation this report is",
|
|
@@ -29110,7 +29115,7 @@ var init_evidenceObservations = __esm({
|
|
|
29110
29115
|
if (typeof runner === "string") {
|
|
29111
29116
|
return [
|
|
29112
29117
|
cellSafe(runner),
|
|
29113
|
-
ciSteps ? cellSafe(ciSteps.join(", ")) : CORE_MESSAGES[CoreMessage.
|
|
29118
|
+
ciSteps ? cellSafe(ciSteps.join(", ")) : CORE_MESSAGES[CoreMessage.NoStepCountedAsItsRunnerRunsIt]
|
|
29114
29119
|
];
|
|
29115
29120
|
}
|
|
29116
29121
|
if (qualityCheckKind === "fitness") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spec-controller",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.171",
|
|
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.171"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|