@node9/proxy 1.12.4 → 1.12.6

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 (3) hide show
  1. package/dist/cli.js +13 -11
  2. package/dist/cli.mjs +13 -11
  3. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -9426,8 +9426,11 @@ function registerScanCommand(program2) {
9426
9426
  import_chalk2.default.cyan.bold("\u{1F50D} Scanning your AI history") + import_chalk2.default.dim(" \u2014 what would node9 have caught?")
9427
9427
  );
9428
9428
  console.log("");
9429
- if (!isInstalled) {
9430
- process.stdout.write(" " + import_chalk2.default.dim("Scanning... this may take a moment\n"));
9429
+ const useTTY = process.stdout.isTTY === true && process.env.NODE9_WRAPPER !== "1";
9430
+ if (!useTTY) {
9431
+ process.stdout.write(
9432
+ " " + import_chalk2.default.dim("Scanning your history \u2014 this may take a moment...\n")
9433
+ );
9431
9434
  }
9432
9435
  const totalFiles = countScanFiles();
9433
9436
  let filesScanned = 0;
@@ -9435,18 +9438,18 @@ function registerScanCommand(program2) {
9435
9438
  let lastRender = 0;
9436
9439
  const onProgress = (done) => {
9437
9440
  filesScanned = done;
9438
- if (isInstalled) renderProgressBar(filesScanned, totalFiles, linesScanned);
9441
+ if (useTTY) renderProgressBar(filesScanned, totalFiles, linesScanned);
9439
9442
  lastRender = Date.now();
9440
9443
  };
9441
9444
  const onLine = () => {
9442
9445
  linesScanned++;
9443
9446
  const now = Date.now();
9444
- if (isInstalled && now - lastRender >= 80) {
9447
+ if (useTTY && now - lastRender >= 80) {
9445
9448
  lastRender = now;
9446
9449
  renderProgressBar(filesScanned, totalFiles, linesScanned);
9447
9450
  }
9448
9451
  };
9449
- if (isInstalled) renderProgressBar(0, totalFiles, 0);
9452
+ if (useTTY) renderProgressBar(0, totalFiles, 0);
9450
9453
  const claudeScan = scanClaudeHistory(startDate, onProgress, onLine);
9451
9454
  const geminiScan = scanGeminiHistory(
9452
9455
  startDate,
@@ -9464,7 +9467,7 @@ function registerScanCommand(program2) {
9464
9467
  { id: "gemini", label: "Gemini", icon: "\u264A", scan: geminiScan },
9465
9468
  { id: "codex", label: "Codex", icon: "\u{1F52E}", scan: codexScan }
9466
9469
  ]);
9467
- if (isInstalled) process.stdout.write("\r" + " ".repeat(60) + "\r");
9470
+ if (useTTY) process.stdout.write("\r" + " ".repeat(60) + "\r");
9468
9471
  if (scan.filesScanned === 0) {
9469
9472
  console.log(import_chalk2.default.yellow(" No session history found."));
9470
9473
  console.log(
@@ -9654,9 +9657,6 @@ function registerScanCommand(program2) {
9654
9657
  console.log("");
9655
9658
  if (!isTestingMode()) {
9656
9659
  if (isInstalled) {
9657
- if (!isDaemonRunning()) {
9658
- await autoStartDaemonAndWait(false);
9659
- }
9660
9660
  const url = `http://${DAEMON_HOST}:${DAEMON_PORT}/`;
9661
9661
  if (isDaemonRunning()) {
9662
9662
  const internalToken = getInternalToken();
@@ -9683,12 +9683,14 @@ function registerScanCommand(program2) {
9683
9683
  }
9684
9684
  console.log(" " + import_chalk2.default.cyan("\u{1F310} View in browser:") + " " + import_chalk2.default.underline(url));
9685
9685
  if (!isDaemonRunning()) {
9686
- console.log(" " + import_chalk2.default.dim(" run node9 daemon --background to activate"));
9686
+ console.log(
9687
+ " " + import_chalk2.default.dim(" run ") + import_chalk2.default.cyan("node9 daemon --background") + import_chalk2.default.dim(" to open the dashboard")
9688
+ );
9687
9689
  }
9688
9690
  console.log("");
9689
9691
  } else {
9690
9692
  console.log(
9691
- " " + import_chalk2.default.dim("\u{1F4CA} For a full browser report:") + " " + import_chalk2.default.cyan("npm install -g node9-ai")
9693
+ " " + import_chalk2.default.dim("\u{1F4CA} For a full browser report, install node9:") + " " + import_chalk2.default.cyan("npm install -g node9-ai")
9692
9694
  );
9693
9695
  console.log("");
9694
9696
  }
package/dist/cli.mjs CHANGED
@@ -9406,8 +9406,11 @@ function registerScanCommand(program2) {
9406
9406
  chalk2.cyan.bold("\u{1F50D} Scanning your AI history") + chalk2.dim(" \u2014 what would node9 have caught?")
9407
9407
  );
9408
9408
  console.log("");
9409
- if (!isInstalled) {
9410
- process.stdout.write(" " + chalk2.dim("Scanning... this may take a moment\n"));
9409
+ const useTTY = process.stdout.isTTY === true && process.env.NODE9_WRAPPER !== "1";
9410
+ if (!useTTY) {
9411
+ process.stdout.write(
9412
+ " " + chalk2.dim("Scanning your history \u2014 this may take a moment...\n")
9413
+ );
9411
9414
  }
9412
9415
  const totalFiles = countScanFiles();
9413
9416
  let filesScanned = 0;
@@ -9415,18 +9418,18 @@ function registerScanCommand(program2) {
9415
9418
  let lastRender = 0;
9416
9419
  const onProgress = (done) => {
9417
9420
  filesScanned = done;
9418
- if (isInstalled) renderProgressBar(filesScanned, totalFiles, linesScanned);
9421
+ if (useTTY) renderProgressBar(filesScanned, totalFiles, linesScanned);
9419
9422
  lastRender = Date.now();
9420
9423
  };
9421
9424
  const onLine = () => {
9422
9425
  linesScanned++;
9423
9426
  const now = Date.now();
9424
- if (isInstalled && now - lastRender >= 80) {
9427
+ if (useTTY && now - lastRender >= 80) {
9425
9428
  lastRender = now;
9426
9429
  renderProgressBar(filesScanned, totalFiles, linesScanned);
9427
9430
  }
9428
9431
  };
9429
- if (isInstalled) renderProgressBar(0, totalFiles, 0);
9432
+ if (useTTY) renderProgressBar(0, totalFiles, 0);
9430
9433
  const claudeScan = scanClaudeHistory(startDate, onProgress, onLine);
9431
9434
  const geminiScan = scanGeminiHistory(
9432
9435
  startDate,
@@ -9444,7 +9447,7 @@ function registerScanCommand(program2) {
9444
9447
  { id: "gemini", label: "Gemini", icon: "\u264A", scan: geminiScan },
9445
9448
  { id: "codex", label: "Codex", icon: "\u{1F52E}", scan: codexScan }
9446
9449
  ]);
9447
- if (isInstalled) process.stdout.write("\r" + " ".repeat(60) + "\r");
9450
+ if (useTTY) process.stdout.write("\r" + " ".repeat(60) + "\r");
9448
9451
  if (scan.filesScanned === 0) {
9449
9452
  console.log(chalk2.yellow(" No session history found."));
9450
9453
  console.log(
@@ -9634,9 +9637,6 @@ function registerScanCommand(program2) {
9634
9637
  console.log("");
9635
9638
  if (!isTestingMode()) {
9636
9639
  if (isInstalled) {
9637
- if (!isDaemonRunning()) {
9638
- await autoStartDaemonAndWait(false);
9639
- }
9640
9640
  const url = `http://${DAEMON_HOST}:${DAEMON_PORT}/`;
9641
9641
  if (isDaemonRunning()) {
9642
9642
  const internalToken = getInternalToken();
@@ -9663,12 +9663,14 @@ function registerScanCommand(program2) {
9663
9663
  }
9664
9664
  console.log(" " + chalk2.cyan("\u{1F310} View in browser:") + " " + chalk2.underline(url));
9665
9665
  if (!isDaemonRunning()) {
9666
- console.log(" " + chalk2.dim(" run node9 daemon --background to activate"));
9666
+ console.log(
9667
+ " " + chalk2.dim(" run ") + chalk2.cyan("node9 daemon --background") + chalk2.dim(" to open the dashboard")
9668
+ );
9667
9669
  }
9668
9670
  console.log("");
9669
9671
  } else {
9670
9672
  console.log(
9671
- " " + chalk2.dim("\u{1F4CA} For a full browser report:") + " " + chalk2.cyan("npm install -g node9-ai")
9673
+ " " + chalk2.dim("\u{1F4CA} For a full browser report, install node9:") + " " + chalk2.cyan("npm install -g node9-ai")
9672
9674
  );
9673
9675
  console.log("");
9674
9676
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@node9/proxy",
3
- "version": "1.12.4",
3
+ "version": "1.12.6",
4
4
  "description": "The Sudo Command for AI Agents. Execution Security for Claude Code & MCP.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",