spec-controller 0.1.0-alpha.33 → 0.1.0-alpha.35

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/host.d.ts CHANGED
@@ -9,8 +9,6 @@
9
9
  * holds the pure rules the impure dispatcher (`cli.ts`) drives — parsing the leading
10
10
  * options, building the wrapped command argv, and peeking the conventional provenance
11
11
  * flags — so the whole host contract is `@unit`-testable with no IO.
12
- *
13
- * @SCN-RMG-004 — features/run-management.feature.
14
12
  */
15
13
  import { type CommandSpec, type FlagSpec } from "./cli-registry.js";
16
14
  /** A parsed host invocation: leading global options, then the command and its clean args. */
@@ -25,7 +23,7 @@ export interface HostInvocation {
25
23
  commandArgs: string[];
26
24
  /**
27
25
  * The usage fault in the leading tokens, when there is one: the host refuses it at exit 2 before
28
- * any command or stored run starts (@SCN-CLI-059).
26
+ * any command or stored run starts.
29
27
  */
30
28
  refusal?: string;
31
29
  }
@@ -37,7 +35,8 @@ export interface HostInvocation {
37
35
  * --features f` yields the store + `balance` + `[--features, f]`, while `balance --store
38
36
  * /s` leaves `--store` in the command's args (a `--store` AFTER the command is the
39
37
  * command's own arg, never a host store directive) — the "global before command" contract.
40
- * A modifier with nothing after it is refused (@SCN-CLI-067); an empty argv is the bare help.
38
+ * A modifier with nothing after it is refused; an empty argv is the bare help. A `--help` or `-h`
39
+ * among the host's own tokens answers the top-level help ahead of any refusal beside it.
41
40
  */
42
41
  export declare function parseHostInvocation(argv: readonly string[], globalFlags?: readonly FlagSpec[], commands?: readonly string[]): HostInvocation;
43
42
  /**
@@ -64,9 +63,7 @@ export interface UnknownCommandAnswer {
64
63
  * help, never the command's args, so no flag after the command can change the answer.
65
64
  *
66
65
  * An unknown command is a usage fault, so it exits 2, the published usage code
67
- * (packages/spec-controller/README.md), which `--exit-zero` never masks (3F-3649).
68
- *
69
- * @SCN-CLI-056 @SCN-CLI-057 — features/cli-balance.feature.
66
+ * (packages/spec-controller/README.md), which `--exit-zero` never masks.
70
67
  */
71
68
  export declare function answerUnknownCommand(command: string, help: string): UnknownCommandAnswer;
72
69
  /** The refusal for host modifiers given before a command that takes none, else undefined. */
@@ -1 +1 @@
1
- {"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../src/host.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAUH,OAAO,EAAe,KAAK,WAAW,EAAE,KAAK,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAEjF,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;IACtB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,WAAW,GAAE,SAAS,QAAQ,EAAuB,EACrD,QAAQ,GAAE,SAAS,MAAM,EAAwD,GAChF,cAAc,CA2BhB;AAyFD;;;;;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,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AM,GAAG,oBAAoB,CAKxF;AAED,6FAA6F;AAC7F,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,cAAc,EACnB,QAAQ,GAAE,SAAS,WAAW,EAAyB,GACtD,MAAM,GAAG,SAAS,CAUpB"}
package/dist/host.js CHANGED
@@ -9,8 +9,6 @@
9
9
  * holds the pure rules the impure dispatcher (`cli.ts`) drives — parsing the leading
10
10
  * options, building the wrapped command argv, and peeking the conventional provenance
11
11
  * flags — so the whole host contract is `@unit`-testable with no IO.
12
- *
13
- * @SCN-RMG-004 — features/run-management.feature.
14
12
  */
15
13
  import { equalsFormRefusal, givenTwiceRefusal, isEqualsForm, isMissingValue, missingValueRefusal, valueFlagsOf, } from "./cli-args.js";
16
14
  import { cliRegistry } from "./cli-registry.js";
@@ -22,11 +20,27 @@ import { cliRegistry } from "./cli-registry.js";
22
20
  * --features f` yields the store + `balance` + `[--features, f]`, while `balance --store
23
21
  * /s` leaves `--store` in the command's args (a `--store` AFTER the command is the
24
22
  * command's own arg, never a host store directive) — the "global before command" contract.
25
- * A modifier with nothing after it is refused (@SCN-CLI-067); an empty argv is the bare help.
23
+ * A modifier with nothing after it is refused; an empty argv is the bare help. A `--help` or `-h`
24
+ * among the host's own tokens answers the top-level help ahead of any refusal beside it.
26
25
  */
27
26
  export function parseHostInvocation(argv, globalFlags = cliRegistry.global, commands = cliRegistry.commands.map((command) => command.name)) {
28
- // The modifiers and the values they take are the registry's global scope, never a list kept here
29
- // (@SCN-CLI-059): a modifier added later is read, and refused without its value, by construction.
27
+ const read = readHostTokens(argv, globalFlags, commands);
28
+ const help = argv.slice(0, hostTokenCount(argv, read)).find((token) => TOP_LEVEL_HELP.has(token));
29
+ return help === undefined ? read : { command: help, commandArgs: [] };
30
+ }
31
+ /**
32
+ * How many leading tokens are the host's own: those before the command it hands the rest to, or
33
+ * every token when it hands them to none, because it refused one or found no command.
34
+ */
35
+ function hostTokenCount(argv, read) {
36
+ if (read.refusal !== undefined || read.command === undefined)
37
+ return argv.length;
38
+ return argv.length - read.commandArgs.length - 1;
39
+ }
40
+ /** The host's tokens read in order: its modifiers, then the command and the command's own args. */
41
+ function readHostTokens(argv, globalFlags, commands) {
42
+ // The modifiers and the values they take are the registry's global scope, never a list kept here:
43
+ // a modifier added later is read, and refused without its value, by construction.
30
44
  const modifiers = valueFlagsOf(globalFlags);
31
45
  const values = new Map();
32
46
  let i = 0;
@@ -57,10 +71,10 @@ export function parseHostInvocation(argv, globalFlags = cliRegistry.global, comm
57
71
  }
58
72
  /**
59
73
  * The refusal a modifier earns where it stands, else undefined; `ahead` is its value and the token
60
- * after it. Given twice, it is never read as its last value (@SCN-CLI-064): `--store A --store B` used
61
- * to store under B without a word. Given no value, it is never handed the next token (@SCN-CLI-059):
74
+ * after it. Given twice, it is never read as its last value: `--store A --store B` used
75
+ * to store under B without a word. Given no value, it is never handed the next token:
62
76
  * `--store --run-id r1` used to store under a directory called `--run-id`. Given the command as its
63
- * value with no command after it, it has eaten the command (@SCN-CLI-066): `--store balance
77
+ * value with no command after it, it has eaten the command: `--store balance
64
78
  * --features f` used to blame `--features`, and `--store balance` alone answered help at exit 0. A
65
79
  * command name followed by the command is still a value: `--store balance balance …` is read.
66
80
  */
@@ -76,8 +90,8 @@ function modifierRefusal(token, modifier, [value, after], read) {
76
90
  }
77
91
  /**
78
92
  * The refusal for host modifiers with nothing after them: every modifier given, in one line, and the
79
- * fix (@SCN-CLI-067). Given last, `--store <root>` used to answer the top-level help at exit 0 having
80
- * run nothing, a false green for a CI step that lost its command word (3F-3686). Help after a
93
+ * fix. Given last, `--store <root>` used to answer the top-level help at exit 0 having
94
+ * run nothing, a false green for a CI step that lost its command word. Help after a
81
95
  * modifier is a command here, and a bare `spec-controller` never reaches this.
82
96
  */
83
97
  function noCommandRefusal(given) {
@@ -93,8 +107,8 @@ function commandAsValueRefusal(token, modifier, command) {
93
107
  }
94
108
  /**
95
109
  * The refusal a leading token that is no modifier earns, else undefined (it is the command). A
96
- * modifier written `--store=<root>` is a form that is not read (@SCN-CLI-065), never a flag out of
97
- * place; any other flag here is out of place, never a command (@SCN-CLI-060): `--exit-zero balance`
110
+ * modifier written `--store=<root>` is a form that is not read, never a flag out of
111
+ * place; any other flag here is out of place, never a command: `--exit-zero balance`
98
112
  * used to answer `unknown command "--exit-zero"`. The top-level help stays where it was.
99
113
  */
100
114
  function leadingFlagRefusal(token, modifiers, globalFlags) {
@@ -148,9 +162,7 @@ export function peekFlag(argv, name) {
148
162
  * help, never the command's args, so no flag after the command can change the answer.
149
163
  *
150
164
  * An unknown command is a usage fault, so it exits 2, the published usage code
151
- * (packages/spec-controller/README.md), which `--exit-zero` never masks (3F-3649).
152
- *
153
- * @SCN-CLI-056 @SCN-CLI-057 — features/cli-balance.feature.
165
+ * (packages/spec-controller/README.md), which `--exit-zero` never masks.
154
166
  */
155
167
  export function answerUnknownCommand(command, help) {
156
168
  return {
package/dist/host.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"host.js","sourceRoot":"","sources":["../src/host.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,YAAY,EACZ,cAAc,EACd,mBAAmB,EACnB,YAAY,GACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,WAAW,EAAmC,MAAM,mBAAmB,CAAC;AAmBjF;;;;;;;;;GASG;AACH,MAAM,UAAU,mBAAmB,CACjC,IAAuB,EACvB,cAAmC,WAAW,CAAC,MAAM,EACrD,WAA8B,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IAEjF,iGAAiG;IACjG,kGAAkG;IAClG,MAAM,SAAS,GAAG,YAAY,CAAC,WAAW,CAAC,CAAC;IAC5C,MAAM,MAAM,GAAG,IAAI,GAAG,EAAkB,CAAC;IACzC,IAAI,CAAC,GAAG,CAAC,CAAC;IACV,OAAO,CAAC,GAAG,IAAI,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E,OAAO,SAAS,CAAC;IAC5D,MAAM,KAAK,GAAG,CAAC,GAAG,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,GAAG,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAC/G,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IACzC,OAAO,CACL,mCAAmC,KAAK,CAAC,IAAI,2CAA2C,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI;QAC5G,wCAAwC;QACxC,wBAAwB,KAAK,CAAC,IAAI,mBAAmB,CACtD,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spec-controller",
3
- "version": "0.1.0-alpha.33",
3
+ "version": "0.1.0-alpha.35",
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.33"
28
+ "@3f-consulting/spec-controller-core": "0.1.0-alpha.35"
29
29
  },
30
30
  "publishConfig": {
31
31
  "access": "public"