@prooflane/inspector-beta 0.1.0-beta.2 → 0.1.0-beta.5

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/bin/prooflane.mjs CHANGED
@@ -20,10 +20,12 @@ const flag = (name) => {
20
20
  return i >= 0 ? args[i + 1] : undefined;
21
21
  };
22
22
 
23
- // The same npm package serves both experiences: no command opens the Inspector;
24
- // CLI commands execute headlessly and never start a browser or local web server.
25
- const cliCommands = new Set(["gate", "runs", "auth", "perf", "debug", "doctor", "version", "sammy"]);
26
- const cliMode = cliCommands.has(args[0]);
23
+ // The same npm package serves both experiences: no arguments (or the two UI
24
+ // configuration flags) open the Inspector. Every named command is delegated to
25
+ // the public CLI, so every command shown in Command Deck runs headlessly from
26
+ // this package instead of silently launching the browser console.
27
+ const uiMode = args.length === 0 || args[0] === "--port" || args[0] === "--control-plane";
28
+ const cliMode = !uiMode;
27
29
  if (cliMode) {
28
30
  await import(join(dist, "cli.mjs"));
29
31
  } else {