spec-controller 0.1.75 → 0.1.76

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.
Files changed (2) hide show
  1. package/dist/cli.js +4 -3
  2. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -12878,7 +12878,7 @@ function commandHeads(line) {
12878
12878
  });
12879
12879
  }
12880
12880
  function handedOn(words) {
12881
- const prefix = LAUNCHERS.find((row) => opensWith(words, row.words.join(" ")));
12881
+ const prefix = LAUNCHERS.find((row) => opensWithWords(words, row.words));
12882
12882
  return prefix === void 0 ? void 0 : words.slice(prefix.words.length + prefix.operands);
12883
12883
  }
12884
12884
  function launched(words) {
@@ -12914,7 +12914,7 @@ function pastOptions(words, at, prefix) {
12914
12914
  return pastOptions(words, at + (prefix.valued.includes(word) ? 2 : 1), prefix);
12915
12915
  }
12916
12916
  function passedOn(words) {
12917
- const prefix = COMMAND_PREFIXES.find((row) => opensWith(words, row.words.join(" ")));
12917
+ const prefix = COMMAND_PREFIXES.find((row) => opensWithWords(words, row.words));
12918
12918
  return prefix === void 0 ? void 0 : words.slice(pastOptions(words, prefix.words.length, prefix) + prefix.operands);
12919
12919
  }
12920
12920
  function runsScript(head, script) {
@@ -12942,7 +12942,7 @@ function runsBy(lineRuns) {
12942
12942
  function finalStages(command) {
12943
12943
  return command.replace(/\\\r?\n/g, " ").split(/\r?\n/).map((line) => line.replace(UP_TO_LAST_PIPE, "")).join("\n");
12944
12944
  }
12945
- var SCRIPT_CHAIN_DEPTH, UP_TO_LAST_PIPE, COMMAND_SEPARATOR, BACKGROUND, ASSIGNMENT, launcher, runsNext, SHELL_WORDS, COMMAND_PREFIXES, LAUNCHERS, SCRIPT_INVOCATIONS, anywhere, isOneOf, asCommand, commandRuns, commandRunsAsCommand, shellReading;
12945
+ var SCRIPT_CHAIN_DEPTH, UP_TO_LAST_PIPE, COMMAND_SEPARATOR, BACKGROUND, ASSIGNMENT, launcher, runsNext, SHELL_WORDS, COMMAND_PREFIXES, LAUNCHERS, SCRIPT_INVOCATIONS, opensWithWords, anywhere, isOneOf, asCommand, commandRuns, commandRunsAsCommand, shellReading;
12946
12946
  var init_commandRuns = __esm({
12947
12947
  "../core/dist/parse/commandRuns.js"() {
12948
12948
  "use strict";
@@ -13033,6 +13033,7 @@ var init_commandRuns = __esm({
13033
13033
  }
13034
13034
  ]
13035
13035
  ]);
13036
+ opensWithWords = (words, prefix) => prefix.every((word, at) => words[at] === word);
13036
13037
  anywhere = (line, invocation) => {
13037
13038
  const words = wordsOf(line);
13038
13039
  return words.some((_, at) => opensWith(words.slice(at), invocation));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spec-controller",
3
- "version": "0.1.75",
3
+ "version": "0.1.76",
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",
@@ -24,7 +24,7 @@
24
24
  "dependencies": {
25
25
  "fast-xml-parser": "^5.11.2",
26
26
  "yaml": "^2.9.0",
27
- "@3f-consulting/spec-controller-core": "0.1.75"
27
+ "@3f-consulting/spec-controller-core": "0.1.76"
28
28
  },
29
29
  "devDependencies": {
30
30
  "esbuild": "0.28.1"