spec-controller 0.1.226 → 0.1.227

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 CHANGED
@@ -27812,7 +27812,7 @@ function errorsOf(scenarioCodeErrors, summary) {
27812
27812
  ...nonEmpty("nonChecksNotAStepName", summary.nonChecksNotAStepName)
27813
27813
  };
27814
27814
  const errors = {
27815
- ...nonEmpty("scenarioCodes", scenarioCodeErrors),
27815
+ ...nonEmpty("scenarioCodeErrors", scenarioCodeErrors),
27816
27816
  ...Object.keys(configurationNotRead2).length > 0 ? { configurationNotRead: configurationNotRead2 } : {}
27817
27817
  };
27818
27818
  return Object.keys(errors).length > 0 ? errors : void 0;
@@ -27895,12 +27895,12 @@ function concludedSummary(summary, verdictInputs) {
27895
27895
  return { runVerdict: runVerdict(verdictInputs), ...rest };
27896
27896
  }
27897
27897
  function assembleRenderInput(evidenceReconciliation, ctx, evidenceObligations2, featureNames) {
27898
- const errors = errorsOf(evidenceReconciliation.scenarioCodeErrors, evidenceReconciliation.summary);
27898
+ const errorsInTheInputs = errorsOf(evidenceReconciliation.scenarioCodeErrors, evidenceReconciliation.summary);
27899
27899
  const scenarioCodes = scenarioCodesOf2(evidenceReconciliation.scenarioCodePopulation, evidenceObligations2);
27900
27900
  const byFeature = outOfBalanceByFeature(evidenceReconciliation.ledger.claimReconciliations, scenarioCodes?.untaggedScenarios ?? [], Object.fromEntries(featureNames ?? []));
27901
27901
  return {
27902
27902
  runProvenance: provenanceObject(ctx),
27903
- ...errors ? { errors } : {},
27903
+ ...errorsInTheInputs ? { errorsInTheInputs } : {},
27904
27904
  summary: concludedSummary({
27905
27905
  ...scenarioCodes ? { scenarioCodes } : {},
27906
27906
  ...summaryStatingNoFault(evidenceReconciliation.summary),
@@ -28217,7 +28217,7 @@ function assembleSavedReport(saved, strictGiven) {
28217
28217
  runProvenance: { ...saved.runProvenance, strict },
28218
28218
  summary: concludedSummary(saved.summary, {
28219
28219
  ledger: { claimReconciliations: saved.claimReconciliations },
28220
- scenarioCodeErrors: saved.errors?.scenarioCodes,
28220
+ scenarioCodeErrors: saved.errorsInTheInputs?.scenarioCodeErrors,
28221
28221
  strict
28222
28222
  })
28223
28223
  };
@@ -31548,7 +31548,7 @@ var init_runVerdict2 = __esm({
31548
31548
  };
31549
31549
  runVerdictSection = (report, exitCodeOf2) => {
31550
31550
  const verdict = report.summary.runVerdict;
31551
- const line = verdictFor2(verdict, report, report.runProvenance.corpus, report.errors?.scenarioCodes ?? []);
31551
+ const line = verdictFor2(verdict, report, report.runProvenance.corpus, report.errorsInTheInputs?.scenarioCodeErrors ?? []);
31552
31552
  const exit = coreMessage(CoreMessage.VerdictExit, { code: exitCodeOf2(verdict) });
31553
31553
  const lines = [markdownHeading(3, coreMessage(CoreMessage.RunVerdictHeading)), "", `${line.headline} \u2014 ${line.gloss} (${exit})`];
31554
31554
  if (verdict === "balanced" && hasPendingItems(report)) {
@@ -31648,7 +31648,7 @@ var init_scenarioCodeErrorsSection = __esm({
31648
31648
  "several-scn-codes": CoreError.SeveralScnCodes
31649
31649
  };
31650
31650
  scenarioCodeErrorsSection = (report) => {
31651
- const errors = report.errors?.scenarioCodes;
31651
+ const errors = report.errorsInTheInputs?.scenarioCodeErrors;
31652
31652
  if (errors === void 0)
31653
31653
  return [];
31654
31654
  const count = coreMessage(CoreMessage.ScenarioCodeErrorCount, { count: errors.length });
@@ -31664,7 +31664,7 @@ var init_scenarioCodeErrorsSection = __esm({
31664
31664
  ];
31665
31665
  };
31666
31666
  scenarioCodesCleanStatement = (report) => {
31667
- if (report.errors?.scenarioCodes !== void 0)
31667
+ if (report.errorsInTheInputs?.scenarioCodeErrors !== void 0)
31668
31668
  return [];
31669
31669
  const { featureFiles, featureCodes } = report.summary.scenarioCodes ?? {};
31670
31670
  if (typeof featureFiles !== "number" || typeof featureCodes !== "number")
@@ -31768,11 +31768,11 @@ var init_configurationNotRead = __esm({
31768
31768
  init_codeSpan();
31769
31769
  init_errorEntry();
31770
31770
  configurationNotReadSection = (report) => {
31771
- const wrongKinds = report.errors?.configurationNotRead?.ofWrongKind ?? [];
31772
- const unknownKeys = report.errors?.configurationNotRead?.keysNotRead ?? [];
31773
- const runnerKeysNotALayer = report.errors?.configurationNotRead?.runnerKeysNotALayer ?? [];
31774
- const nonChecksMatchingNoStep = report.errors?.configurationNotRead?.nonChecksMatchingNoStep ?? [];
31775
- const nonChecksNotAStepName = report.errors?.configurationNotRead?.nonChecksNotAStepName ?? [];
31771
+ const wrongKinds = report.errorsInTheInputs?.configurationNotRead?.ofWrongKind ?? [];
31772
+ const unknownKeys = report.errorsInTheInputs?.configurationNotRead?.keysNotRead ?? [];
31773
+ const runnerKeysNotALayer = report.errorsInTheInputs?.configurationNotRead?.runnerKeysNotALayer ?? [];
31774
+ const nonChecksMatchingNoStep = report.errorsInTheInputs?.configurationNotRead?.nonChecksMatchingNoStep ?? [];
31775
+ const nonChecksNotAStepName = report.errorsInTheInputs?.configurationNotRead?.nonChecksNotAStepName ?? [];
31776
31776
  if (wrongKinds.length === 0 && unknownKeys.length === 0 && runnerKeysNotALayer.length === 0 && nonChecksMatchingNoStep.length === 0 && nonChecksNotAStepName.length === 0)
31777
31777
  return [];
31778
31778
  return [
@@ -32914,9 +32914,9 @@ var init_inputShapes = __esm({
32914
32914
  }
32915
32915
  }
32916
32916
  },
32917
- errors: {
32917
+ errorsInTheInputs: {
32918
32918
  fields: {
32919
- scenarioCodes: { list: "anything" },
32919
+ scenarioCodeErrors: { list: "anything" },
32920
32920
  configurationNotRead: {
32921
32921
  fields: {
32922
32922
  keysNotRead: { list: "anything" },
@@ -32927,10 +32927,11 @@ var init_inputShapes = __esm({
32927
32927
  }
32928
32928
  }
32929
32929
  },
32930
- retired: { configuration: "configurationNotRead" }
32930
+ retired: { scenarioCodes: "scenarioCodeErrors", configuration: "configurationNotRead" }
32931
32931
  }
32932
32932
  },
32933
- required: ["runProvenance", "summary", "claimReconciliations"]
32933
+ required: ["runProvenance", "summary", "claimReconciliations"],
32934
+ retired: { errors: "errorsInTheInputs" }
32934
32935
  };
32935
32936
  TOP = { kind: "top" };
32936
32937
  }
@@ -8,7 +8,7 @@
8
8
  "runProvenance": {
9
9
  "$ref": "#/definitions/ProvenanceObject"
10
10
  },
11
- "errors": {
11
+ "errorsInTheInputs": {
12
12
  "$ref": "#/definitions/ErrorsSection"
13
13
  },
14
14
  "summary": {
@@ -130,7 +130,7 @@
130
130
  "ErrorsSection": {
131
131
  "type": "object",
132
132
  "properties": {
133
- "scenarioCodes": {
133
+ "scenarioCodeErrors": {
134
134
  "type": "array",
135
135
  "items": {
136
136
  "$ref": "#/definitions/ScenarioCodeError"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spec-controller",
3
- "version": "0.1.226",
3
+ "version": "0.1.227",
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.226"
29
+ "@3f-consulting/spec-controller-core": "0.1.227"
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public"