spec-controller 0.1.0-alpha.20 → 0.1.0-alpha.22
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/README.md +3 -4
- package/dist/cli-args.d.ts +1 -3
- package/dist/cli-args.d.ts.map +1 -1
- package/dist/cli-args.js +1 -3
- package/dist/cli-args.js.map +1 -1
- package/dist/cli-balance/cli.d.ts.map +1 -1
- package/dist/cli-balance/cli.js +7 -3
- package/dist/cli-balance/cli.js.map +1 -1
- package/dist/cli-registry.d.ts.map +1 -1
- package/dist/cli-registry.js +1 -36
- package/dist/cli-registry.js.map +1 -1
- package/dist/cli.d.ts +3 -5
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +3 -9
- package/dist/cli.js.map +1 -1
- package/dist/host.d.ts +5 -11
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +7 -13
- package/dist/host.js.map +1 -1
- package/dist/ingest/gherkinValidation.d.ts +3 -7
- package/dist/ingest/gherkinValidation.d.ts.map +1 -1
- package/dist/ingest/gherkinValidation.js +3 -7
- package/dist/ingest/gherkinValidation.js.map +1 -1
- package/dist/ingest/ingestQualityChecks.d.ts +3 -4
- package/dist/ingest/ingestQualityChecks.d.ts.map +1 -1
- package/dist/ingest/ingestQualityChecks.js +16 -10
- package/dist/ingest/ingestQualityChecks.js.map +1 -1
- package/package.json +2 -2
- package/dist/corpus/cli.d.ts +0 -34
- package/dist/corpus/cli.d.ts.map +0 -1
- package/dist/corpus/cli.js +0 -125
- package/dist/corpus/cli.js.map +0 -1
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ Or without installing anything:
|
|
|
20
20
|
npx spec-controller@alpha balance --help
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
`@alpha` is not optional until `0.1.0` publishes: a bare install resolves `latest`, which npm set to `0.1.0-alpha.1` on the first publish, and that version has
|
|
23
|
+
`@alpha` is not optional until `0.1.0` publishes: a bare install resolves `latest`, which npm set to `0.1.0-alpha.1` on the first publish, and that version has no `--ci-steps` and no scenario code errors.
|
|
24
24
|
|
|
25
25
|
## Your first run
|
|
26
26
|
|
|
@@ -42,7 +42,7 @@ To bring it into a pipeline you already have without redding it on day one, add
|
|
|
42
42
|
spec-controller balance --features ./features --vitest ./vitest-report.json --exit-zero
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
The report is byte for byte the one the gate prints: the same rows, the same out-of-balance count, and the same headline naming the code the gate would give. Only the exit status moves. Out-of-balance (`1`) and pending under `--strict` (`3`) exit `0`. Usage (`2`), unsound (`4`) and nothing to reconcile (`5`) still fail, because each means the run could not give a verdict at all, and a flag that suppresses verdicts does not suppress that.
|
|
45
|
+
The report is byte for byte the one the gate prints: the same rows, the same out-of-balance count, and the same headline naming the code the gate would give. Only the exit status moves. Out-of-balance and scenario code errors (`1`), and pending under `--strict` (`3`), exit `0`. Usage (`2`), unsound (`4`) and nothing to reconcile (`5`) still fail, because each means the run could not give a verdict at all, and a flag that suppresses verdicts does not suppress that.
|
|
46
46
|
|
|
47
47
|
Work the out-of-balance rows down, then delete `--exit-zero`, and the gate is on. Don't wrap the step in `continue-on-error` or `|| true` instead: those swallow the codes that mean the run could not be trusted, and they leave nothing in the command to say the gate is off.
|
|
48
48
|
|
|
@@ -62,12 +62,11 @@ A scenario tagged `@unit` names an obligation — a unit test must exist and pas
|
|
|
62
62
|
| Exit | What it says |
|
|
63
63
|
| --- | --- |
|
|
64
64
|
| `0` | balanced — every obligation has evidence, and it holds |
|
|
65
|
-
| `1` | out-of-balance — the two records disagree, and the report says where |
|
|
65
|
+
| `1` | out-of-balance — the two records disagree, and the report says where; or a scenario code is misfiled, listed under `## Scenario code errors` |
|
|
66
66
|
| `2` | usage — the invocation was wrong |
|
|
67
67
|
| `3` | balanced, but carrying Pending Items, and you asked for `--strict` |
|
|
68
68
|
| `4` | unsound — a proving suite failed to collect, so the ledger could not be trusted to disagree |
|
|
69
69
|
| `5` | nothing to reconcile — no scenario was declared and no evidence was produced, so the run had no basis for a verdict |
|
|
70
|
-
| `6` | no verdict — spec-controller was asked something it cannot answer, such as a command it does not have, so it reached no verdict about your corpus |
|
|
71
70
|
|
|
72
71
|
The whole report is written before the code is set, so a failing run still tells you why.
|
|
73
72
|
|
package/dist/cli-args.d.ts
CHANGED
|
@@ -13,9 +13,7 @@
|
|
|
13
13
|
* command rather than for the one this code was written beside. `checkUnknownFlags` took the
|
|
14
14
|
* registry and looked `balance` up inside itself; the command is a parameter now, exactly as it
|
|
15
15
|
* became one for `renderCommandHelp` (3F-3298). @SCN-CLI-009's scenario is unchanged and still
|
|
16
|
-
* asks about `balance`:
|
|
17
|
-
* residual — that an unregistered flag to `tags` is unproven by a scenario of its own — is named
|
|
18
|
-
* on 3F-3286 rather than left silent.
|
|
16
|
+
* asks about `balance`: a command added later gets the same bounding BY CONSTRUCTION.
|
|
19
17
|
*/
|
|
20
18
|
import type { CliRegistry } from "./cli-registry.js";
|
|
21
19
|
/**
|
package/dist/cli-args.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-args.d.ts","sourceRoot":"","sources":["../src/cli-args.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"cli-args.d.ts","sourceRoot":"","sources":["../src/cli-args.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAe,MAAM,mBAAmB,CAAC;AAElE;;;;;;;;;;;GAWG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAgBzE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC5B,QAAQ,EAAE,WAAW,EACrB,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,GAClB,MAAM,GAAG,IAAI,CA2Bf"}
|
package/dist/cli-args.js
CHANGED
|
@@ -13,9 +13,7 @@
|
|
|
13
13
|
* command rather than for the one this code was written beside. `checkUnknownFlags` took the
|
|
14
14
|
* registry and looked `balance` up inside itself; the command is a parameter now, exactly as it
|
|
15
15
|
* became one for `renderCommandHelp` (3F-3298). @SCN-CLI-009's scenario is unchanged and still
|
|
16
|
-
* asks about `balance`:
|
|
17
|
-
* residual — that an unregistered flag to `tags` is unproven by a scenario of its own — is named
|
|
18
|
-
* on 3F-3286 rather than left silent.
|
|
16
|
+
* asks about `balance`: a command added later gets the same bounding BY CONSTRUCTION.
|
|
19
17
|
*/
|
|
20
18
|
/**
|
|
21
19
|
* Parse `--flag value` pairs from a command's argv into a record, keys with the `--` stripped.
|
package/dist/cli-args.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-args.js","sourceRoot":"","sources":["../src/cli-args.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"cli-args.js","sourceRoot":"","sources":["../src/cli-args.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,SAAS,CAAC,IAAuB;IAC/C,MAAM,IAAI,GAA2B,EAAE,CAAC;IACxC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACrC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,IAAI,CAAC,KAAK,SAAS,IAAI,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;YAC1C,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YACvB,MAAM,KAAK,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;YAC1B,IAAI,KAAK,KAAK,SAAS,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GAAG,EAAE,OAAO,EAAE,WAAW,CAAC;gBACpD,kBAAkB,GAAG,yBAAyB,OAAO,8BAA8B;oBACnF,GAAG,WAAW,iCAAiC,OAAO,WAAW;oBACjE,oFAAoF;oBACpF,oCAAoC,OAAO,eAAe,GAAG,KAAK;oBAClE,kCAAkC,OAAO,iDAAiD,CAC3F,CAAC;QACJ,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;;GAMG;AACH,SAAS,kBAAkB,CACzB,KAA8B,EAC9B,GAAW,EACX,OAAe,EACf,WAAmB;IAEnB,MAAM,OAAO,GAAG,KAAK,EAAE,YAAY,EAAE,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,GAAG,CAAC,CAAC;IAC1F,IAAI,OAAO,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IAC5C,OAAO,CACL,gBAAgB,OAAO,CAAC,IAAI,yBAAyB,OAAO,iCAAiC;QAC7F,GAAG,OAAO,CAAC,SAAS,8DAA8D,WAAW,MAAM;QACnG,6FAA6F;QAC7F,GAAG,OAAO,CAAC,WAAW,IAAI;QAC1B,wBAAwB,OAAO,iDAAiD,CACjF,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/cli-balance/cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/cli-balance/cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAiDH;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,GAAG,IAAI,CAS3E;AAED;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAEjE;AAqBD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC5B,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,GAChC,MAAM,GAAG,IAAI,CAcf;AAYD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC5B,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GAC7B,MAAM,GAAG,IAAI,CAef;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC5B,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GAC7B,MAAM,GAAG,IAAI,CAcf;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAkJ/C"}
|
package/dist/cli-balance/cli.js
CHANGED
|
@@ -16,7 +16,7 @@ import { dirname } from "node:path";
|
|
|
16
16
|
import { runReconcile, readEvidenceObligations, readFeatureNames, featureCorpusParseErrors, } from "../ingest/ingestQualityChecks.js";
|
|
17
17
|
import { planOutput } from "./emit/format.js";
|
|
18
18
|
import { writeOutputs } from "./emit/writer.js";
|
|
19
|
-
import { renderReportFromJson, isBalanced, hasPendingItems, hasBrokenEvidence, hasNothingToReconcile, } from "@3f-consulting/spec-controller-core";
|
|
19
|
+
import { renderReportFromJson, isBalanced, hasPendingItems, hasBrokenEvidence, hasNothingToReconcile, hasScenarioCodeErrors, } from "@3f-consulting/spec-controller-core";
|
|
20
20
|
import { resolveSourceSha, resolveTargetRoot, resolveToolIdentity } from "../run-management/resolveRunInputs.js";
|
|
21
21
|
import { cliRegistry, renderCommandHelp } from "../cli-registry.js";
|
|
22
22
|
// THE ARGV READING AND ITS REGISTRY BOUNDING, SHARED WITH EVERY OTHER COMMAND (3F-3300). Both
|
|
@@ -327,7 +327,7 @@ export function runBalance(argv) {
|
|
|
327
327
|
// credits HAS a row — its suspense row — and is an ordinary out-of-balance report at exit 1
|
|
328
328
|
// (@SCN-CLI-020). @SCN-CLI-004/005/010/012 are BYSTANDERS: every one of their fixtures carries
|
|
329
329
|
// rows, so none reaches this branch.
|
|
330
|
-
const verdict = verdictExitCode(balance
|
|
330
|
+
const verdict = verdictExitCode(balance, args["strict"] !== undefined);
|
|
331
331
|
const code = args["exit-zero"] !== undefined ? exitZeroStatus(verdict) : verdict;
|
|
332
332
|
// Assigned only when NON-ZERO, so a balanced run still LEAVES process.exitCode at its default
|
|
333
333
|
// rather than writing a 0 over it — the distinction @SCN-CLI-005 and @SCN-CLI-010 both rest on.
|
|
@@ -456,11 +456,15 @@ function runContextOf(args, inputs, runStart) {
|
|
|
456
456
|
* ENUMERATED, NEVER A COUNT — a count would 8-bit `& 0xFF` wrap into a false pass. Returns 0 for a
|
|
457
457
|
* balanced run; the caller leaves the process's default alone rather than writing that 0 back.
|
|
458
458
|
*/
|
|
459
|
-
function verdictExitCode(
|
|
459
|
+
function verdictExitCode(balance, strict) {
|
|
460
|
+
const { ledger } = balance;
|
|
460
461
|
if (hasNothingToReconcile(ledger))
|
|
461
462
|
return 5;
|
|
462
463
|
if (hasBrokenEvidence(ledger))
|
|
463
464
|
return 4;
|
|
465
|
+
// A misfiled code (3F-3635): every account still reconciles, so `isBalanced` alone would pass it.
|
|
466
|
+
if (hasScenarioCodeErrors(balance))
|
|
467
|
+
return 1;
|
|
464
468
|
if (!isBalanced(ledger))
|
|
465
469
|
return 1;
|
|
466
470
|
if (strict && hasPendingItems(ledger))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/cli-balance/cli.ts"],"names":[],"mappings":"AA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IAC9B,4DAA4D;IAC5D,IAAI,EAAE,MAAM,CAAC;IACb,uEAAuE;IACvE,SAAS,EAAE,MAAM,CAAC;IAClB,wDAAwD;IACxD,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,0FAA0F;AAC1F,MAAM,WAAW,WAAW;IAC1B,iFAAiF;IACjF,MAAM,EAAE,QAAQ,EAAE,CAAC;IACnB,8BAA8B;IAC9B,QAAQ,EAAE,WAAW,EAAE,CAAC;CACzB;AA0HD;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,WAYzB,CAAC;AAQF;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAgBhF;AAED;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,WAAW,GAAG,MAAM,CA0BhE"}
|
package/dist/cli-registry.js
CHANGED
|
@@ -86,7 +86,7 @@ const balanceFlags = [
|
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
88
|
name: "--exit-zero",
|
|
89
|
-
description: "Print the same report but exit 0 on an out-of-balance (1) or --strict pending (3) verdict — the on-ramp before gating. Usage (2), unsound (4)
|
|
89
|
+
description: "Print the same report but exit 0 on an out-of-balance or scenario-code-error (1) or --strict pending (3) verdict — the on-ramp before gating. Usage (2), unsound (4) and nothing-to-reconcile (5) still fail.",
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
name: "--help",
|
|
@@ -120,36 +120,6 @@ const balanceRetiredFlags = [
|
|
|
120
120
|
replacement: "A fitness check is credited by 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.",
|
|
121
121
|
},
|
|
122
122
|
];
|
|
123
|
-
/**
|
|
124
|
-
* The `tags` command's per-command scope (3F-3300). Two input flags and `--help`/`-h`, and the
|
|
125
|
-
* two are `balance`'s own spellings on purpose: a consumer pointing one command at a corpus and a
|
|
126
|
-
* manifest should not have to learn a second name for each when they point the other at the same
|
|
127
|
-
* two files. The descriptions are this command's — what it reads them FOR is not what `balance`
|
|
128
|
-
* reads them for — but the flags are the same flags.
|
|
129
|
-
*
|
|
130
|
-
* NO `configHelp`. A command's config block documents the `package.json` fields THAT command
|
|
131
|
-
* reads, and `tags` reads none yet: the check-tag union and the recognised deferral set arrive
|
|
132
|
-
* with the grammar rules (3F-3302 onward), and the entry gains its block then. Appending
|
|
133
|
-
* `balance`'s block here would document, under this command, fields this command does not read —
|
|
134
|
-
* which is the fault 3F-3298 moved that block onto a command entry to prevent.
|
|
135
|
-
*/
|
|
136
|
-
const tagsFlags = [
|
|
137
|
-
{
|
|
138
|
-
name: "--features",
|
|
139
|
-
arg: "<dir>",
|
|
140
|
-
description: "Directory of Gherkin .feature files — the corpus these rules are asked about (default ./features).",
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
name: "--package-json",
|
|
144
|
-
arg: "<path>",
|
|
145
|
-
description: "The target's package.json — its specController block, from which the configured fitness rows and the tags that park a scenario are resolved (default ./package.json).",
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
name: "--help",
|
|
149
|
-
aliases: ["-h"],
|
|
150
|
-
description: "Show this help and exit.",
|
|
151
|
-
},
|
|
152
|
-
];
|
|
153
123
|
/** The global host-modifier scope — recognised before the command; the CLI-007 surface. */
|
|
154
124
|
const globalFlags = [
|
|
155
125
|
{
|
|
@@ -176,11 +146,6 @@ export const cliRegistry = {
|
|
|
176
146
|
configHelp: balanceConfigHelp,
|
|
177
147
|
retiredFlags: balanceRetiredFlags,
|
|
178
148
|
},
|
|
179
|
-
{
|
|
180
|
-
name: "tags",
|
|
181
|
-
summary: "Police the @SCN scheme over your Gherkin corpus — the rules the scheme itself imposes on the tags and header codes a feature file carries (exit 1 on findings, 2 on a corpus that cannot be read).",
|
|
182
|
-
flags: tagsFlags,
|
|
183
|
-
},
|
|
184
149
|
],
|
|
185
150
|
};
|
|
186
151
|
/** The display label for a flag: its name, any aliases, then its arg-placeholder. */
|
package/dist/cli-registry.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-registry.js","sourceRoot":"","sources":["../src/cli-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AA4D1D;;;;GAIG;AACH,MAAM,YAAY,GAAe;IAC/B;QACE,IAAI,EAAE,YAAY;QAClB,GAAG,EAAE,OAAO;QACZ,WAAW,EACT,uIAAuI;KAC1I;IACD;QACE,IAAI,EAAE,UAAU;QAChB,GAAG,EAAE,eAAe;QACpB,WAAW,EAAE,+CAA+C;KAC7D;IACD;QACE,IAAI,EAAE,YAAY;QAClB,GAAG,EAAE,eAAe;QACpB,WAAW,EAAE,iDAAiD;KAC/D;IACD;QACE,IAAI,EAAE,MAAM;QACZ,GAAG,EAAE,UAAU;QACf,WAAW,EACT,uOAAuO;KAC1O;IACD;QACE,IAAI,EAAE,gBAAgB;QACtB,GAAG,EAAE,QAAQ;QACb,WAAW,EACT,4OAA4O;KAC/O;IACD;QACE,IAAI,EAAE,YAAY;QAClB,GAAG,EAAE,eAAe;QACpB,WAAW,EACT,8KAA8K;KACjL;IACD;QACE,IAAI,EAAE,UAAU;QAChB,GAAG,EAAE,QAAQ;QACb,WAAW,EAAE,0FAA0F;KACxG;IACD;QACE,IAAI,EAAE,cAAc;QACpB,GAAG,EAAE,OAAO;QACZ,WAAW,EAAE,qFAAqF;KACnG;IACD;QACE,IAAI,EAAE,UAAU;QAChB,GAAG,EAAE,gBAAgB;QACrB,UAAU,EAAE,IAAI;QAChB,WAAW,EAAE,uFAAuF;KACrG;IACD;QACE,IAAI,EAAE,oBAAoB;QAC1B,GAAG,EAAE,QAAQ;QACb,WAAW,EAAE,yGAAyG;KACvH;IACD;QACE,IAAI,EAAE,UAAU;QAChB,WAAW,EAAE,6HAA6H;KAC3I;IACD;QACE,IAAI,EAAE,aAAa;QACnB,WAAW,EAAE
|
|
1
|
+
{"version":3,"file":"cli-registry.js","sourceRoot":"","sources":["../src/cli-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AA4D1D;;;;GAIG;AACH,MAAM,YAAY,GAAe;IAC/B;QACE,IAAI,EAAE,YAAY;QAClB,GAAG,EAAE,OAAO;QACZ,WAAW,EACT,uIAAuI;KAC1I;IACD;QACE,IAAI,EAAE,UAAU;QAChB,GAAG,EAAE,eAAe;QACpB,WAAW,EAAE,+CAA+C;KAC7D;IACD;QACE,IAAI,EAAE,YAAY;QAClB,GAAG,EAAE,eAAe;QACpB,WAAW,EAAE,iDAAiD;KAC/D;IACD;QACE,IAAI,EAAE,MAAM;QACZ,GAAG,EAAE,UAAU;QACf,WAAW,EACT,uOAAuO;KAC1O;IACD;QACE,IAAI,EAAE,gBAAgB;QACtB,GAAG,EAAE,QAAQ;QACb,WAAW,EACT,4OAA4O;KAC/O;IACD;QACE,IAAI,EAAE,YAAY;QAClB,GAAG,EAAE,eAAe;QACpB,WAAW,EACT,8KAA8K;KACjL;IACD;QACE,IAAI,EAAE,UAAU;QAChB,GAAG,EAAE,QAAQ;QACb,WAAW,EAAE,0FAA0F;KACxG;IACD;QACE,IAAI,EAAE,cAAc;QACpB,GAAG,EAAE,OAAO;QACZ,WAAW,EAAE,qFAAqF;KACnG;IACD;QACE,IAAI,EAAE,UAAU;QAChB,GAAG,EAAE,gBAAgB;QACrB,UAAU,EAAE,IAAI;QAChB,WAAW,EAAE,uFAAuF;KACrG;IACD;QACE,IAAI,EAAE,oBAAoB;QAC1B,GAAG,EAAE,QAAQ;QACb,WAAW,EAAE,yGAAyG;KACvH;IACD;QACE,IAAI,EAAE,UAAU;QAChB,WAAW,EAAE,6HAA6H;KAC3I;IACD;QACE,IAAI,EAAE,aAAa;QACnB,WAAW,EAAE,+MAA+M;K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|
|
|
6
6
|
* spec-controller [--store <root>] [--run-id <id>] <command> [command-args]
|
|
7
7
|
*
|
|
8
8
|
* Commands: `balance` — the deterministic reconciliation of scenarios against
|
|
9
|
-
* observed evidence, standalone on the public core + app layer (no engine)
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* meaning on balance's. The `analyse` / `migrate` capabilities are a separate, closed offering
|
|
13
|
-
* built on the same core.
|
|
9
|
+
* observed evidence, standalone on the public core + app layer (no engine). It also polices the
|
|
10
|
+
* corpus's own scenario codes (3F-3635), which is why there is no second command for that. The
|
|
11
|
+
* `analyse` / `migrate` capabilities are a separate, closed offering built on the same core.
|
|
14
12
|
*
|
|
15
13
|
* Storage is a CROSS-CUTTING host modifier, not a command. A leading `--store <root>`
|
|
16
14
|
* turns any command into a STORED run: the host wraps the command via the kept-run
|
package/dist/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;;;GAkBG"}
|
package/dist/cli.js
CHANGED
|
@@ -6,11 +6,9 @@
|
|
|
6
6
|
* spec-controller [--store <root>] [--run-id <id>] <command> [command-args]
|
|
7
7
|
*
|
|
8
8
|
* Commands: `balance` — the deterministic reconciliation of scenarios against
|
|
9
|
-
* observed evidence, standalone on the public core + app layer (no engine)
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* meaning on balance's. The `analyse` / `migrate` capabilities are a separate, closed offering
|
|
13
|
-
* built on the same core.
|
|
9
|
+
* observed evidence, standalone on the public core + app layer (no engine). It also polices the
|
|
10
|
+
* corpus's own scenario codes (3F-3635), which is why there is no second command for that. The
|
|
11
|
+
* `analyse` / `migrate` capabilities are a separate, closed offering built on the same core.
|
|
14
12
|
*
|
|
15
13
|
* Storage is a CROSS-CUTTING host modifier, not a command. A leading `--store <root>`
|
|
16
14
|
* turns any command into a STORED run: the host wraps the command via the kept-run
|
|
@@ -22,7 +20,6 @@
|
|
|
22
20
|
*/
|
|
23
21
|
import { dirname } from "node:path";
|
|
24
22
|
import { runBalance } from "./cli-balance/cli.js";
|
|
25
|
-
import { runTags } from "./corpus/cli.js";
|
|
26
23
|
import { resolveSourceSha, resolveToolIdentity } from "./run-management/resolveRunInputs.js";
|
|
27
24
|
import { executeKeptRun, resolveRunId, } from "./run-management/keptRun.js";
|
|
28
25
|
import { parseHostInvocation, wrapCommandArgv, peekFlag, answerUnknownCommand } from "./host.js";
|
|
@@ -33,9 +30,6 @@ function runCommand(command, argv) {
|
|
|
33
30
|
case "balance":
|
|
34
31
|
runBalance(argv);
|
|
35
32
|
return;
|
|
36
|
-
case "tags":
|
|
37
|
-
runTags(argv);
|
|
38
|
-
return;
|
|
39
33
|
default: {
|
|
40
34
|
const answer = answerUnknownCommand(command, renderTopLevelHelp(cliRegistry));
|
|
41
35
|
process.stderr.write(answer.stderr);
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC7F,OAAO,EACL,cAAc,EACd,YAAY,GAGb,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AACjG,OAAO,EAAE,WAAW,EAAE,k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
CHANGED
|
@@ -47,17 +47,6 @@ export declare function wrapCommandArgv(commandArgs: readonly string[], formatSp
|
|
|
47
47
|
* them in its own args. Returns undefined when the flag is absent or has no value.
|
|
48
48
|
*/
|
|
49
49
|
export declare function peekFlag(argv: readonly string[], name: string): string | undefined;
|
|
50
|
-
/**
|
|
51
|
-
* The status for a request spec-controller cannot answer, so no verdict about the corpus was
|
|
52
|
-
* reached (3F-3634). Never 1, which is a verdict against the corpus; and not a verdict at all, so
|
|
53
|
-
* `--exit-zero`, which moves only verdicts, never moves it. A later command that is asked something
|
|
54
|
-
* it cannot answer cites this constant rather than writing a second 6.
|
|
55
|
-
*
|
|
56
|
-
* @SCN-CLI-056 — features/cli-balance.feature.
|
|
57
|
-
*/
|
|
58
|
-
export declare const NO_VERDICT_EXIT_CODE = 6;
|
|
59
|
-
/** The one sentence a pipeline's log needs; the help that follows it is for a person. */
|
|
60
|
-
export declare const NO_VERDICT_STATEMENT = "spec-controller was asked something it cannot answer, and reached no verdict about your corpus.";
|
|
61
50
|
/** The host's answer to a command it does not know: what goes to stderr, and the status. */
|
|
62
51
|
export interface UnknownCommandAnswer {
|
|
63
52
|
exitCode: number;
|
|
@@ -66,6 +55,11 @@ export interface UnknownCommandAnswer {
|
|
|
66
55
|
/**
|
|
67
56
|
* Answer a command the registry does not carry. It is given the command token and the rendered
|
|
68
57
|
* help, never the command's args, so no flag after the command can change the answer.
|
|
58
|
+
*
|
|
59
|
+
* An unknown command is a usage fault, so it exits 2, the published usage code
|
|
60
|
+
* (packages/spec-controller/README.md), which `--exit-zero` never masks (3F-3649).
|
|
61
|
+
*
|
|
62
|
+
* @SCN-CLI-056 @SCN-CLI-057 — features/cli-balance.feature.
|
|
69
63
|
*/
|
|
70
64
|
export declare function answerUnknownCommand(command: string, help: string): UnknownCommandAnswer;
|
|
71
65
|
//# sourceMappingURL=host.d.ts.map
|
package/dist/host.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../src/host.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,6FAA6F;AAC7F,MAAM,WAAW,cAAc;IAC7B,wFAAwF;IACxF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2FAA2F;IAC3F,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4EAA4E;IAC5E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,6EAA6E;IAC7E,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,cAAc,CAmB3E;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,EAAE,WAAW,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,CAExG;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CASlF;AAED
|
|
1
|
+
{"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../src/host.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,6FAA6F;AAC7F,MAAM,WAAW,cAAc;IAC7B,wFAAwF;IACxF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2FAA2F;IAC3F,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4EAA4E;IAC5E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,6EAA6E;IAC7E,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,cAAc,CAmB3E;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,EAAE,WAAW,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,CAExG;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CASlF;AAED,4FAA4F;AAC5F,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,oBAAoB,CAKxF"}
|
package/dist/host.js
CHANGED
|
@@ -66,25 +66,19 @@ export function peekFlag(argv, name) {
|
|
|
66
66
|
}
|
|
67
67
|
return undefined;
|
|
68
68
|
}
|
|
69
|
-
/**
|
|
70
|
-
* The status for a request spec-controller cannot answer, so no verdict about the corpus was
|
|
71
|
-
* reached (3F-3634). Never 1, which is a verdict against the corpus; and not a verdict at all, so
|
|
72
|
-
* `--exit-zero`, which moves only verdicts, never moves it. A later command that is asked something
|
|
73
|
-
* it cannot answer cites this constant rather than writing a second 6.
|
|
74
|
-
*
|
|
75
|
-
* @SCN-CLI-056 — features/cli-balance.feature.
|
|
76
|
-
*/
|
|
77
|
-
export const NO_VERDICT_EXIT_CODE = 6;
|
|
78
|
-
/** The one sentence a pipeline's log needs; the help that follows it is for a person. */
|
|
79
|
-
export const NO_VERDICT_STATEMENT = "spec-controller was asked something it cannot answer, and reached no verdict about your corpus.";
|
|
80
69
|
/**
|
|
81
70
|
* Answer a command the registry does not carry. It is given the command token and the rendered
|
|
82
71
|
* help, never the command's args, so no flag after the command can change the answer.
|
|
72
|
+
*
|
|
73
|
+
* An unknown command is a usage fault, so it exits 2, the published usage code
|
|
74
|
+
* (packages/spec-controller/README.md), which `--exit-zero` never masks (3F-3649).
|
|
75
|
+
*
|
|
76
|
+
* @SCN-CLI-056 @SCN-CLI-057 — features/cli-balance.feature.
|
|
83
77
|
*/
|
|
84
78
|
export function answerUnknownCommand(command, help) {
|
|
85
79
|
return {
|
|
86
|
-
exitCode:
|
|
87
|
-
stderr: `spec-controller: unknown command "${command}".\n
|
|
80
|
+
exitCode: 2,
|
|
81
|
+
stderr: `spec-controller: unknown command "${command}".\n\n${help}\n`,
|
|
88
82
|
};
|
|
89
83
|
}
|
|
90
84
|
//# sourceMappingURL=host.js.map
|
package/dist/host.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host.js","sourceRoot":"","sources":["../src/host.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAcH;;;;;;;;GAQG;AACH,MAAM,UAAU,mBAAmB,CAAC,IAAuB;IACzD,IAAI,KAAyB,CAAC;IAC9B,IAAI,KAAyB,CAAC;IAC9B,IAAI,CAAC,GAAG,CAAC,CAAC;IACV,OAAO,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAC5B,MAAM,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;QACtB,IAAI,KAAK,KAAK,SAAS,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;YAC/C,KAAK,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;YACpB,CAAC,EAAE,CAAC;YACJ,SAAS;QACX,CAAC;QACD,IAAI,KAAK,KAAK,UAAU,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;YAChD,KAAK,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;YACpB,CAAC,EAAE,CAAC;YACJ,SAAS;QACX,CAAC;QACD,MAAM,CAAC,+CAA+C;IACxD,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,CA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AAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAQD;;;;;;;;GAQG;AACH,MAAM,UAAU,oBAAoB,CAAC,OAAe,EAAE,IAAY;IAChE,OAAO;QACL,QAAQ,EAAE,CAAC;QACX,MAAM,EAAE,qCAAqC,OAAO,SAAS,IAAI,IAAI;KACtE,CAAC;AACJ,CAAC"}
|
|
@@ -74,13 +74,9 @@ export declare class UnreadableFeatureCorpusError extends Error {
|
|
|
74
74
|
* refusal means for it.
|
|
75
75
|
*
|
|
76
76
|
* WHY A TYPED ERROR RATHER THAN AN EMPTY CORPUS. The obvious fix is for `discoverFeatures` to hand
|
|
77
|
-
* back `[]` when the directory is not there
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
* `checkInputsExist`, a supplied-but-absent `--features` too — into `The corpus could not be
|
|
81
|
-
* read: …` at exit 2. Tolerance at the reader turns both into `tags: OK …` at exit 0, inside the
|
|
82
|
-
* slice whose whole purpose is killing a vacuous certification. Typed, both survive untouched:
|
|
83
|
-
* this IS an `Error`, so it still lands in that generic catch.
|
|
77
|
+
* back `[]` when the directory is not there, and that would decide for every reader that absence
|
|
78
|
+
* is empty. Typed, each caller decides: `balance` reads it as no corpus (@SCN-CLI-017), and any
|
|
79
|
+
* other reader still meets a refusal. (The second command this guarded, `tags`, left at 3F-3635.)
|
|
84
80
|
*
|
|
85
81
|
* IT CARRIES THE DIRECTORY because the report is owed the name of what it examined — "I found no
|
|
86
82
|
* record" and "I found no regression" must never wear one word (3F-2947), and a consumer told
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gherkinValidation.d.ts","sourceRoot":"","sources":["../../src/ingest/gherkinValidation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAKH,6EAA6E;AAC7E,MAAM,WAAW,iBAAiB;IAChC,qFAAqF;IACrF,IAAI,EAAE,MAAM,CAAC;IACb,8EAA8E;IAC9E,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,iBAAiB,EAAE,CAa/E;AAED;;;;;;;;;;;GAWG;AACH,qBAAa,4BAA6B,SAAQ,KAAK;IACrD,QAAQ,CAAC,MAAM,EAAE,SAAS,iBAAiB,EAAE,CAAC;gBAElC,MAAM,EAAE,SAAS,iBAAiB,EAAE;CAUjD;AAED
|
|
1
|
+
{"version":3,"file":"gherkinValidation.d.ts","sourceRoot":"","sources":["../../src/ingest/gherkinValidation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAKH,6EAA6E;AAC7E,MAAM,WAAW,iBAAiB;IAChC,qFAAqF;IACrF,IAAI,EAAE,MAAM,CAAC;IACb,8EAA8E;IAC9E,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,iBAAiB,EAAE,CAa/E;AAED;;;;;;;;;;;GAWG;AACH,qBAAa,4BAA6B,SAAQ,KAAK;IACrD,QAAQ,CAAC,MAAM,EAAE,SAAS,iBAAiB,EAAE,CAAC;gBAElC,MAAM,EAAE,SAAS,iBAAiB,EAAE;CAUjD;AAED;;;;;;;;;;;;;GAaG;AACH,qBAAa,yBAA0B,SAAQ,KAAK;IAClD,8FAA8F;IAC9F,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;gBAEf,SAAS,EAAE,MAAM;CAK9B"}
|
|
@@ -89,13 +89,9 @@ export class UnreadableFeatureCorpusError extends Error {
|
|
|
89
89
|
* refusal means for it.
|
|
90
90
|
*
|
|
91
91
|
* WHY A TYPED ERROR RATHER THAN AN EMPTY CORPUS. The obvious fix is for `discoverFeatures` to hand
|
|
92
|
-
* back `[]` when the directory is not there
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
* `checkInputsExist`, a supplied-but-absent `--features` too — into `The corpus could not be
|
|
96
|
-
* read: …` at exit 2. Tolerance at the reader turns both into `tags: OK …` at exit 0, inside the
|
|
97
|
-
* slice whose whole purpose is killing a vacuous certification. Typed, both survive untouched:
|
|
98
|
-
* this IS an `Error`, so it still lands in that generic catch.
|
|
92
|
+
* back `[]` when the directory is not there, and that would decide for every reader that absence
|
|
93
|
+
* is empty. Typed, each caller decides: `balance` reads it as no corpus (@SCN-CLI-017), and any
|
|
94
|
+
* other reader still meets a refusal. (The second command this guarded, `tags`, left at 3F-3635.)
|
|
99
95
|
*
|
|
100
96
|
* IT CARRIES THE DIRECTORY because the report is owed the name of what it examined — "I found no
|
|
101
97
|
* record" and "I found no regression" must never wear one word (3F-2947), and a consumer told
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gherkinValidation.js","sourceRoot":"","sources":["../../src/ingest/gherkinValidation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,EAAE,UAAU,EAAE,0BAA0B,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AACnF,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAUjD;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,aAAa,CAAC,IAAY,EAAE,MAAc;IACxD,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,UAAU,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI,0BAA0B,EAAE,CAAC,CAAC;IAEhG,IAAI,CAAC;QACH,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACrB,OAAO,EAAE,CAAC;IACZ,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,0FAA0F;QAC1F,sFAAsF;QACtF,0FAA0F;QAC1F,MAAM,OAAO,GAAG,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAA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,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACjE,OAAO,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;IAC7B,CAAC;AACH,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,4BAA6B,SAAQ,KAAK;IAC5C,MAAM,CAA+B;IAE9C,YAAY,MAAoC;QAC9C,KAAK,CACH;YACE,yEAAyE;YACzE,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,GAAG,IAAI,KAAK,OAAO,EAAE,CAAC;SAC5D,CAAC,IAAI,CAAC,IAAI,CAAC,CACb,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,8BAA8B,CAAC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CACF;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAO,yBAA0B,SAAQ,KAAK;IAClD,8FAA8F;IACrF,SAAS,CAAS;IAE3B,YAAY,SAAiB;QAC3B,KAAK,CAAC,gDAAgD,SAAS,EAAE,CAAC,CAAC;QACnE,IAAI,CAAC,IAAI,GAAG,2BAA2B,CAAC;QACxC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;CACF"}
|
|
@@ -68,10 +68,9 @@ export declare function featureCorpusParseErrors(featuresDir: string | undefined
|
|
|
68
68
|
* the balance, threaded to `renderMarkdown` (via `writeOutputs`) as the 5th sibling arg
|
|
69
69
|
* (markdown-only — the by-feature cut is markdown-only, so it is NOT serialised to JSON).
|
|
70
70
|
* Uncoded files (`featureCode === null`) are omitted, so the by-feature emitter falls
|
|
71
|
-
* back to the bare `FFF` for any id whose code no file registers.
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
* now, which is the first time a CONSUMER of this reader has it too.
|
|
71
|
+
* back to the bare `FFF` for any id whose code no file registers. When two files carry one
|
|
72
|
+
* code the map keeps the last, and that run lists `duplicate-feature-code` under Scenario code
|
|
73
|
+
* errors and fails (@SCN-STG-010, 3F-3635), so a report whose map is ambiguous never passes.
|
|
75
74
|
*/
|
|
76
75
|
export declare function readFeatureNames(featuresDir?: string): Map<string, string>;
|
|
77
76
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ingestQualityChecks.d.ts","sourceRoot":"","sources":["../../src/ingest/ingestQualityChecks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAaH,OAAO,EAGL,KAAK,iBAAiB,EACvB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAEL,KAAK,mBAAmB,EAEzB,MAAM,qCAAqC,CAAC;AAkB7C,OAAO,KAAK,EAIV,sBAAsB,EACvB,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"ingestQualityChecks.d.ts","sourceRoot":"","sources":["../../src/ingest/ingestQualityChecks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAaH,OAAO,EAGL,KAAK,iBAAiB,EACvB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAEL,KAAK,mBAAmB,EAEzB,MAAM,qCAAqC,CAAC;AAkB7C,OAAO,KAAK,EAIV,sBAAsB,EACvB,MAAM,qCAAqC,CAAC;AA4B7C;;;;;;;GAOG;AACH,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AA8ED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,wBAAwB,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,iBAAiB,EAAE,CAQ7F;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAM1E;AAED;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,mBAAmB,CAuB9E;AAyCD,wBAAgB,YAAY,CAAC,IAAI,EAAE,gBAAgB,GAAG,sBAAsB,CAoE3E"}
|
|
@@ -48,10 +48,9 @@ const CUCUMBER_QUALITY_CHECK = "integration";
|
|
|
48
48
|
* publishes and `balance` is the command that reconciles; the engine holds neither, and a core
|
|
49
49
|
* that assumed them would be asserting something about a command line it never sees.
|
|
50
50
|
*
|
|
51
|
-
* BOTH TOKENS, AND THE SECOND IS NOT DECORATION.
|
|
52
|
-
* `
|
|
53
|
-
*
|
|
54
|
-
* would take that step off the books. The comparison is whole, adjacent shell tokens
|
|
51
|
+
* BOTH TOKENS, AND THE SECOND IS NOT DECORATION. A step running the same binary for anything but
|
|
52
|
+
* `balance` is an ordinary step of the pipeline being reconciled, so an invocation naming the
|
|
53
|
+
* binary alone would take that step off the books. The comparison is whole, adjacent shell tokens
|
|
55
54
|
* (`parse/commandRuns`), so this names the reconciliation and nothing else the tool can do.
|
|
56
55
|
*/
|
|
57
56
|
const RECONCILER_INVOCATION = "spec-controller balance";
|
|
@@ -75,7 +74,7 @@ function readJsonIfPresent(path) {
|
|
|
75
74
|
* this by hand is five chances for one to stay intolerant, and a run that reports on a corpus for
|
|
76
75
|
* four of its readings and throws on the fifth is worse than one that throws. The translation is
|
|
77
76
|
* also why `discoverFeatures` is not the place to be tolerant — see its own note, and
|
|
78
|
-
* `MissingFeatureCorpusError`'s
|
|
77
|
+
* `MissingFeatureCorpusError`'s.
|
|
79
78
|
*
|
|
80
79
|
* IT IS `[]`, NOT A VERDICT. Zero rows is what @SCN-CLI-019 reads as NOTHING TO RECONCILE, and a
|
|
81
80
|
* corpus-less target that still has uncited credits keeps its suspense row and its exit 1
|
|
@@ -158,10 +157,9 @@ export function featureCorpusParseErrors(featuresDir) {
|
|
|
158
157
|
* the balance, threaded to `renderMarkdown` (via `writeOutputs`) as the 5th sibling arg
|
|
159
158
|
* (markdown-only — the by-feature cut is markdown-only, so it is NOT serialised to JSON).
|
|
160
159
|
* Uncoded files (`featureCode === null`) are omitted, so the by-feature emitter falls
|
|
161
|
-
* back to the bare `FFF` for any id whose code no file registers.
|
|
162
|
-
*
|
|
163
|
-
*
|
|
164
|
-
* now, which is the first time a CONSUMER of this reader has it too.
|
|
160
|
+
* back to the bare `FFF` for any id whose code no file registers. When two files carry one
|
|
161
|
+
* code the map keeps the last, and that run lists `duplicate-feature-code` under Scenario code
|
|
162
|
+
* errors and fails (@SCN-STG-010, 3F-3635), so a report whose map is ambiguous never passes.
|
|
165
163
|
*/
|
|
166
164
|
export function readFeatureNames(featuresDir) {
|
|
167
165
|
const map = new Map();
|
|
@@ -245,11 +243,19 @@ export function runReconcile(opts) {
|
|
|
245
243
|
// keeping the core that way is the point. Resolving the list twice would be two chances for the
|
|
246
244
|
// bytes and the names to fall out of the order they are paired by.
|
|
247
245
|
const ciPaths = ciSourcePathsOf(ciPath);
|
|
246
|
+
// The corpus, discovered and read ONCE: its bytes, and — paired by index — which file each came
|
|
247
|
+
// from and the header code it carries, for the scenario code errors (3F-3635).
|
|
248
|
+
const corpusFiles = balanceCorpus(opts.features).map((f) => ({
|
|
249
|
+
slug: f.slug,
|
|
250
|
+
featureCode: f.featureCode,
|
|
251
|
+
source: readFileSync(f.path, "utf8"),
|
|
252
|
+
}));
|
|
248
253
|
return evidenceReconciliationFromSources({
|
|
249
254
|
// The corpus's bytes, read ONCE at this impure edge (3F-3088). The engine composes the three
|
|
250
255
|
// readings a citing run needs from this one array, so they cannot be assembled from two
|
|
251
256
|
// discoveries that disagree about the corpus (@SCN-LNT-009).
|
|
252
|
-
featureSources:
|
|
257
|
+
featureSources: corpusFiles.map((f) => f.source),
|
|
258
|
+
featureFiles: corpusFiles.map(({ slug, featureCode }) => ({ slug, featureCode })),
|
|
253
259
|
// The untagged half by its `<feature> : <scenario>` locator — parsed here because the locator
|
|
254
260
|
// names the FILE, which the discovery knows and a source string does not.
|
|
255
261
|
untaggedScenarios: untaggedScenariosFromFeatures(opts.features),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ingestQualityChecks.js","sourceRoot":"","sources":["../../src/ingest/ingestQualityChecks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAA0B,MAAM,sBAAsB,CAAC;AAChF,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,sBAAsB,EACtB,cAAc,EACd,gBAAgB,GACjB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,yBAAyB,EACzB,4BAA4B,GAE7B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EACL,mBAAmB,GAGpB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,+BAA+B,GAEhC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,iCAAiC,GAElC,MAAM,qCAAqC,CAAC;AAC7C,mGAAmG;AACnG,yFAAyF;AACzF,yFAAyF;AACzF,gGAAgG;AAChG,iGAAiG;AACjG,oGAAoG;AACpG,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AAExF,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAQ1E;;;;;;GAMG;AACH,MAAM,oBAAoB,GAAwB,MAAM,CAAC;AACzD,MAAM,sBAAsB,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;QACjF,8FAA8F;QAC9F,0EAA0E;QAC1E,iBAAiB,EAAE,6BAA6B,CAAC,IAAI,CAAC,QAAQ,CAAC;QAC/D,WAAW;QACX,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAC5D,6FAA6F;QAC7F,2FAA2F;QAC3F,6FAA6F;QAC7F,+FAA+F;QAC/F,aAAa,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACpD,+FAA+F;QAC/F,2FAA2F;QAC3F,8FAA8F;QAC9F,6CAA6C;QAC7C,gIAAgI;QAChI,gGAAgG;QAChG,6EAA6E;QAC7E,YAAY,EAAE,iBAAiB,CAC7B,IAAI,CAAC,OAAO,CACb;QACD,mBAAmB,EAAE,wBAAwB,CAAC,IAAI,EAAE,IAAI,CAAC;QACzD,sFAAsF;QACtF,8FAA8F;QAC9F,kIAAkI;QAClI,4FAA4F;QAC5F,wBAAwB;QACxB,YAAY,EAAE,qBAAqB;QACnC,oBAAoB,EAAE,qBAAqB;KAC5C,CAAC,CAAC;AACL,CAAC;AAED,iGAAiG;AACjG,8FAA8F;AAC9F,gGAAgG;AAChG,+FAA+F;AAC/F,oGAAoG;AACpG,yFAAyF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spec-controller",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.22",
|
|
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",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@cucumber/gherkin": "^41.0.0",
|
|
26
26
|
"@cucumber/messages": "^34.0.1",
|
|
27
27
|
"yaml": "^2.9.0",
|
|
28
|
-
"@3f-consulting/spec-controller-core": "0.1.0-alpha.
|
|
28
|
+
"@3f-consulting/spec-controller-core": "0.1.0-alpha.22"
|
|
29
29
|
},
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|
package/dist/corpus/cli.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The `tags` command — `spec-controller tags`, the `@SCN` scheme policing itself over a
|
|
3
|
-
* target's Gherkin corpus.
|
|
4
|
-
*
|
|
5
|
-
* THIS EDGE OWNS ONLY THE READS. The rule is `corpusFaults`, in core, reached through the ROOT
|
|
6
|
-
* barrel and nothing else: `./internal` is dropped by `publishConfig.exports` at pack time, and
|
|
7
|
-
* this module travels in the tarball. That is not a style preference — an installed
|
|
8
|
-
* `balance --help` once threw ERR_PACKAGE_PATH_NOT_EXPORTED behind thirteen green gates because a
|
|
9
|
-
* published module reached that subpath (3F-3086). So what happens here is: discover the corpus,
|
|
10
|
-
* read the manifest, build the mutation-record reader, hand over the bytes.
|
|
11
|
-
*
|
|
12
|
-
* ITS OWN COMMAND RATHER THAN A `balance` FLAG. `balance`'s exit code IS its verdict — 0
|
|
13
|
-
* balanced, 1 out of balance, 3 pending-under-strict, 4 unsound, 5 nothing to reconcile — and a
|
|
14
|
-
* corpus FAULT is not a reconciliation verdict. A flag would either overload one of those codes or
|
|
15
|
-
* add a further meaning to a status a consumer's CI branches on. A second command costs one registry entry and gives
|
|
16
|
-
* the fault its own ladder:
|
|
17
|
-
*
|
|
18
|
-
* 0 — the corpus obeys the scheme.
|
|
19
|
-
* 1 — findings; the corpus was read and it breaks a rule.
|
|
20
|
-
* 2 — the corpus (or the manifest) could not be READ at all. Not a verdict, because nothing was
|
|
21
|
-
* concluded. Sibling to @SCN-CLI-014/015/016 on `balance`, and the same argument: an input
|
|
22
|
-
* the tool cannot read is a usage error, never a verdict.
|
|
23
|
-
*
|
|
24
|
-
* Usage:
|
|
25
|
-
* spec-controller tags [--features <dir>] [--package-json <path>]
|
|
26
|
-
*/
|
|
27
|
-
/**
|
|
28
|
-
* Police a target's corpus against the `@SCN` scheme's own rules.
|
|
29
|
-
*
|
|
30
|
-
* `process.exitCode` RATHER THAN `process.exit`, so whatever has been written is flushed intact
|
|
31
|
-
* rather than truncated mid-write — the convention `balance`'s own gate settled on.
|
|
32
|
-
*/
|
|
33
|
-
export declare function runTags(argv: string[]): void;
|
|
34
|
-
//# sourceMappingURL=cli.d.ts.map
|
package/dist/corpus/cli.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/corpus/cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AA8DH;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAiD5C"}
|
package/dist/corpus/cli.js
DELETED
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The `tags` command — `spec-controller tags`, the `@SCN` scheme policing itself over a
|
|
3
|
-
* target's Gherkin corpus.
|
|
4
|
-
*
|
|
5
|
-
* THIS EDGE OWNS ONLY THE READS. The rule is `corpusFaults`, in core, reached through the ROOT
|
|
6
|
-
* barrel and nothing else: `./internal` is dropped by `publishConfig.exports` at pack time, and
|
|
7
|
-
* this module travels in the tarball. That is not a style preference — an installed
|
|
8
|
-
* `balance --help` once threw ERR_PACKAGE_PATH_NOT_EXPORTED behind thirteen green gates because a
|
|
9
|
-
* published module reached that subpath (3F-3086). So what happens here is: discover the corpus,
|
|
10
|
-
* read the manifest, build the mutation-record reader, hand over the bytes.
|
|
11
|
-
*
|
|
12
|
-
* ITS OWN COMMAND RATHER THAN A `balance` FLAG. `balance`'s exit code IS its verdict — 0
|
|
13
|
-
* balanced, 1 out of balance, 3 pending-under-strict, 4 unsound, 5 nothing to reconcile — and a
|
|
14
|
-
* corpus FAULT is not a reconciliation verdict. A flag would either overload one of those codes or
|
|
15
|
-
* add a further meaning to a status a consumer's CI branches on. A second command costs one registry entry and gives
|
|
16
|
-
* the fault its own ladder:
|
|
17
|
-
*
|
|
18
|
-
* 0 — the corpus obeys the scheme.
|
|
19
|
-
* 1 — findings; the corpus was read and it breaks a rule.
|
|
20
|
-
* 2 — the corpus (or the manifest) could not be READ at all. Not a verdict, because nothing was
|
|
21
|
-
* concluded. Sibling to @SCN-CLI-014/015/016 on `balance`, and the same argument: an input
|
|
22
|
-
* the tool cannot read is a usage error, never a verdict.
|
|
23
|
-
*
|
|
24
|
-
* Usage:
|
|
25
|
-
* spec-controller tags [--features <dir>] [--package-json <path>]
|
|
26
|
-
*/
|
|
27
|
-
import { existsSync, readFileSync } from "node:fs";
|
|
28
|
-
import { corpusFaults } from "@3f-consulting/spec-controller-core";
|
|
29
|
-
import { cliRegistry, renderCommandHelp } from "../cli-registry.js";
|
|
30
|
-
import { checkUnknownFlags, parseArgs } from "../cli-args.js";
|
|
31
|
-
import { DEFAULT_DEFERRAL_TAGS } from "../deferralTags.js";
|
|
32
|
-
import { UnreadableFeatureCorpusError } from "../ingest/gherkinValidation.js";
|
|
33
|
-
import { discoverFeatures } from "../ingest/ingestScenarios.js";
|
|
34
|
-
import { resolveToolIdentity } from "../run-management/resolveRunInputs.js";
|
|
35
|
-
/**
|
|
36
|
-
* Read everything the rule takes, or say why it could not be read.
|
|
37
|
-
*
|
|
38
|
-
* ONE PLACE, ONE STATUS, because it is one Rule. A corpus the Gherkin parser rejects, a features
|
|
39
|
-
* directory that is not there, and a manifest that is not JSON are three spellings of "the tool
|
|
40
|
-
* could not read its input" — and every one of them, left to escape, lands on Node's default exit
|
|
41
|
-
* 1, which is this command's code for FINDINGS. A crashed invocation would then be
|
|
42
|
-
* indistinguishable by status from a corpus that genuinely breaks a rule, which is exactly the
|
|
43
|
-
* collision 3F-1742 closed on `balance`.
|
|
44
|
-
*
|
|
45
|
-
* THE PARSE REFUSAL IS INHERITED, NOT RESTATED (@SCN-GPG-001). `discoverFeatures` refuses a corpus
|
|
46
|
-
* cucumber could not run rather than returning one, so this command gets that refusal by going
|
|
47
|
-
* through the shared discovery — the same way `balance` does — and what is left here is turning
|
|
48
|
-
* it into this command's status. Its message carries the parser's own words verbatim.
|
|
49
|
-
*
|
|
50
|
-
* THE SOURCES ARE READ HERE because the rule is pure and takes bytes. `DiscoveredFeature` carries
|
|
51
|
-
* the header code and the scenario ids but not the file's text, and the grammar rules that follow
|
|
52
|
-
* this one need the text to walk the tags.
|
|
53
|
-
*/
|
|
54
|
-
function readCorpusInputs(featuresDir, manifestPath) {
|
|
55
|
-
try {
|
|
56
|
-
const discovered = featuresDir === undefined ? discoverFeatures() : discoverFeatures(featuresDir);
|
|
57
|
-
return {
|
|
58
|
-
ok: true,
|
|
59
|
-
features: discovered.map((f) => ({
|
|
60
|
-
slug: f.slug,
|
|
61
|
-
featureCode: f.featureCode,
|
|
62
|
-
source: readFileSync(f.path, "utf8"),
|
|
63
|
-
})),
|
|
64
|
-
packageJson: existsSync(manifestPath)
|
|
65
|
-
? JSON.parse(readFileSync(manifestPath, "utf8"))
|
|
66
|
-
: {},
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
catch (err) {
|
|
70
|
-
if (err instanceof UnreadableFeatureCorpusError)
|
|
71
|
-
return { ok: false, error: err.message };
|
|
72
|
-
const failure = err instanceof Error ? err.message : String(err);
|
|
73
|
-
return { ok: false, error: `The corpus could not be read: ${failure}` };
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Police a target's corpus against the `@SCN` scheme's own rules.
|
|
78
|
-
*
|
|
79
|
-
* `process.exitCode` RATHER THAN `process.exit`, so whatever has been written is flushed intact
|
|
80
|
-
* rather than truncated mid-write — the convention `balance`'s own gate settled on.
|
|
81
|
-
*/
|
|
82
|
-
export function runTags(argv) {
|
|
83
|
-
// Answer `--help`/`-h` from the registry BEFORE any parse, so it never falls through as a stray
|
|
84
|
-
// flag while the command runs anyway. The registry is the single source, so a flag that exists
|
|
85
|
-
// is a flag that appears in help — there is no hand-kept list here to drift.
|
|
86
|
-
if (argv.includes("--help") || argv.includes("-h")) {
|
|
87
|
-
process.stdout.write(renderCommandHelp(cliRegistry, "tags") + "\n");
|
|
88
|
-
return;
|
|
89
|
-
}
|
|
90
|
-
const args = parseArgs(argv);
|
|
91
|
-
// Registry-bounded parse (@SCN-CLI-009's rule, applied to this command's own scope): `tags`
|
|
92
|
-
// accepts ONLY the flags its registry entry lists. By construction, not by assertion — the
|
|
93
|
-
// helper is the one `balance` uses, given this command's name.
|
|
94
|
-
const unknownFlagError = checkUnknownFlags(args, cliRegistry, "tags", resolveToolIdentity().toolVersion);
|
|
95
|
-
if (unknownFlagError) {
|
|
96
|
-
process.stderr.write(unknownFlagError + "\n");
|
|
97
|
-
process.exitCode = 2;
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
// `--package-json` defaults to the manifest at the cwd, matching `balance`'s default: the
|
|
101
|
-
// target is the tree you are standing in unless you say otherwise.
|
|
102
|
-
const inputs = readCorpusInputs(args["features"], args["package-json"] ?? "package.json");
|
|
103
|
-
if (!inputs.ok) {
|
|
104
|
-
process.stderr.write(inputs.error + "\n");
|
|
105
|
-
process.exitCode = 2;
|
|
106
|
-
return;
|
|
107
|
-
}
|
|
108
|
-
const faults = corpusFaults({
|
|
109
|
-
features: inputs.features,
|
|
110
|
-
packageJson: inputs.packageJson,
|
|
111
|
-
// The STARTER deferral set — the application layer's own policy, which a target's config may
|
|
112
|
-
// only extend. Single-sourced here for the reason the reconcile composition takes it as a
|
|
113
|
-
// parameter: which words the community recognises is the product's answer, not the engine's.
|
|
114
|
-
deferralTags: DEFAULT_DEFERRAL_TAGS,
|
|
115
|
-
});
|
|
116
|
-
if (faults.length === 0) {
|
|
117
|
-
process.stdout.write("tags: OK — every feature code names one feature file, and every tag on the corpus obeys the @SCN scheme's own rules.\n");
|
|
118
|
-
return;
|
|
119
|
-
}
|
|
120
|
-
process.stderr.write(`tags: FAILED — ${faults.length} finding(s):\n`);
|
|
121
|
-
for (const fault of faults)
|
|
122
|
-
process.stderr.write(` ${fault.message}\n`);
|
|
123
|
-
process.exitCode = 1;
|
|
124
|
-
}
|
|
125
|
-
//# sourceMappingURL=cli.js.map
|
package/dist/corpus/cli.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/corpus/cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEnD,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAEnE,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAW5E;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAS,gBAAgB,CAAC,WAA+B,EAAE,YAAoB;IAC7E,IAAI,CAAC;QACH,MAAM,UAAU,GAAG,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;QAClG,OAAO;YACL,EAAE,EAAE,IAAI;YACR,QAAQ,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;gBAC/B,IAAI,EAAE,CAAC,CAAC,IAAI;gBACZ,WAAW,EAAE,CAAC,CAAC,WAAW;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