@prooflane/inspector-beta 0.1.0-beta.1 → 0.1.0-beta.11

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
@@ -10,9 +10,11 @@
10
10
  // npx @prooflane/inspector-beta@beta --port 7400 --control-plane https://api.prooflane.ai
11
11
  import { dirname, join } from "node:path";
12
12
  import { fileURLToPath } from "node:url";
13
+ import { readFile } from "node:fs/promises";
13
14
 
14
15
  const here = dirname(fileURLToPath(import.meta.url));
15
16
  const dist = join(here, "..", "dist");
17
+ const packageMetadata = JSON.parse(await readFile(join(here, "..", "package.json"), "utf8"));
16
18
 
17
19
  const args = process.argv.slice(2);
18
20
  const flag = (name) => {
@@ -20,10 +22,12 @@ const flag = (name) => {
20
22
  return i >= 0 ? args[i + 1] : undefined;
21
23
  };
22
24
 
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]);
25
+ // The same npm package serves both experiences: no arguments (or the two UI
26
+ // configuration flags) open the Inspector. Every named command is delegated to
27
+ // the public CLI, so every command shown in Command Deck runs headlessly from
28
+ // this package instead of silently launching the browser console.
29
+ const uiMode = args.length === 0 || args[0] === "--port" || args[0] === "--control-plane";
30
+ const cliMode = !uiMode;
27
31
  if (cliMode) {
28
32
  await import(join(dist, "cli.mjs"));
29
33
  } else {
@@ -49,6 +53,12 @@ env.KAWACH_INTELLIGENCE_MODE = "hosted";
49
53
  env.AUTH0_DOMAIN = env.AUTH0_DOMAIN ?? AUTH0_DOMAIN;
50
54
  env.AUTH0_CLIENT_ID = env.AUTH0_CLIENT_ID ?? AUTH0_CLIENT_ID;
51
55
  env.AUTH0_AUDIENCE = env.AUTH0_AUDIENCE ?? AUTH0_AUDIENCE;
56
+ env.ANALYTICS_ENABLED = env.ANALYTICS_ENABLED ?? "true";
57
+ env.ANALYTICS_RELEASE_POLICY_VERSION = env.ANALYTICS_RELEASE_POLICY_VERSION ?? "2026-08-20";
58
+ env.ANALYTICS_CONSENT_VERSION = env.ANALYTICS_CONSENT_VERSION ?? "1";
59
+ env.GA4_MEASUREMENT_ID = env.GA4_MEASUREMENT_ID ?? "G-YMR4BXXRM2";
60
+ env.PROOFLANE_RELEASE_CHANNEL = env.PROOFLANE_RELEASE_CHANNEL ?? "beta";
61
+ env.PROOFLANE_INSPECTOR_VERSION = env.PROOFLANE_INSPECTOR_VERSION ?? packageMetadata.version;
52
62
 
53
63
  const port = env.KAWACH_UI_PORT;
54
64
  const url = `http://localhost:${port}`;