@vibgrate/cli 1.0.81 → 1.0.83

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.
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  baselineCommand,
3
3
  runBaseline
4
- } from "./chunk-DEPG5EIH.js";
5
- import "./chunk-W6TXQI4D.js";
4
+ } from "./chunk-BAV5Z7AD.js";
5
+ import "./chunk-TGBW3GQE.js";
6
6
  import "./chunk-JQHUH6A3.js";
7
7
  export {
8
8
  baselineCommand,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  runScan
3
- } from "./chunk-W6TXQI4D.js";
3
+ } from "./chunk-TGBW3GQE.js";
4
4
  import {
5
5
  writeJsonFile
6
6
  } from "./chunk-JQHUH6A3.js";
@@ -7290,6 +7290,15 @@ var ScanProgress = class {
7290
7290
  setSteps(steps) {
7291
7291
  this.steps = steps.map((s) => ({ ...s, status: "pending", weight: s.weight ?? 1 }));
7292
7292
  if (this.isTTY) {
7293
+ const header = [
7294
+ "",
7295
+ ` ${ROBOT[0]} ${BRAND[0]}`,
7296
+ ` ${ROBOT[1]} ${BRAND[1]}`,
7297
+ ` ${ROBOT[2]}`,
7298
+ ` ${ROBOT[3]} ${chalk4.dim(this.rootDir)}`,
7299
+ ""
7300
+ ].join("\n") + "\n";
7301
+ process.stderr.write(header);
7293
7302
  this.startSpinner();
7294
7303
  }
7295
7304
  this.render();
@@ -7384,10 +7393,7 @@ var ScanProgress = class {
7384
7393
  let buf = "";
7385
7394
  if (this.lastLineCount > 0) {
7386
7395
  buf += `\x1B[${this.lastLineCount}A`;
7387
- for (let i = 0; i < this.lastLineCount; i++) {
7388
- buf += "\x1B[2K\n";
7389
- }
7390
- buf += `\x1B[${this.lastLineCount}A`;
7396
+ buf += "\x1B[J";
7391
7397
  }
7392
7398
  buf += "\x1B[?25h";
7393
7399
  if (buf) process.stderr.write(buf);
@@ -7424,12 +7430,6 @@ var ScanProgress = class {
7424
7430
  return;
7425
7431
  }
7426
7432
  const lines = [];
7427
- lines.push("");
7428
- lines.push(` ${ROBOT[0]} ${BRAND[0]}`);
7429
- lines.push(` ${ROBOT[1]} ${BRAND[1]}`);
7430
- lines.push(` ${ROBOT[2]}`);
7431
- lines.push(` ${ROBOT[3]} ${chalk4.dim(this.rootDir)}`);
7432
- lines.push("");
7433
7433
  for (const step of this.steps) {
7434
7434
  lines.push(this.renderStep(step));
7435
7435
  }
@@ -7471,10 +7471,7 @@ var ScanProgress = class {
7471
7471
  let buf = "";
7472
7472
  if (this.lastLineCount > 0) {
7473
7473
  buf += `\x1B[${this.lastLineCount}A`;
7474
- for (let i = 0; i < this.lastLineCount; i++) {
7475
- buf += "\x1B[2K\n";
7476
- }
7477
- buf += `\x1B[${this.lastLineCount}A`;
7474
+ buf += "\x1B[J";
7478
7475
  }
7479
7476
  buf += content;
7480
7477
  process.stderr.write(buf);
@@ -7595,7 +7592,8 @@ var ScanProgress = class {
7595
7592
  if (this.estimatedTotalMs !== null && this.estimatedTotalMs > 0) {
7596
7593
  const histRemaining = Math.max(0, this.estimatedTotalMs - elapsedMs);
7597
7594
  const histWeight = Math.max(0.1, 1 - fraction);
7598
- remainingMs = histRemaining * histWeight + liveRemaining * (1 - histWeight);
7595
+ const blended = histRemaining * histWeight + liveRemaining * (1 - histWeight);
7596
+ remainingMs = Math.min(histRemaining, blended);
7599
7597
  } else {
7600
7598
  remainingMs = liveRemaining;
7601
7599
  }
package/dist/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  baselineCommand
4
- } from "./chunk-DEPG5EIH.js";
4
+ } from "./chunk-BAV5Z7AD.js";
5
5
  import {
6
6
  VERSION,
7
7
  computeHmac,
@@ -12,7 +12,7 @@ import {
12
12
  pushCommand,
13
13
  scanCommand,
14
14
  writeDefaultConfig
15
- } from "./chunk-W6TXQI4D.js";
15
+ } from "./chunk-TGBW3GQE.js";
16
16
  import {
17
17
  Semaphore,
18
18
  ensureDir,
@@ -42,7 +42,7 @@ var initCommand = new Command("init").description("Initialize vibgrate in a proj
42
42
  console.log(chalk.green("\u2714") + ` Created ${chalk.bold("vibgrate.config.ts")}`);
43
43
  }
44
44
  if (opts.baseline) {
45
- const { runBaseline } = await import("./baseline-5AZAIOQ6.js");
45
+ const { runBaseline } = await import("./baseline-WNGVBOCO.js");
46
46
  await runBaseline(rootDir);
47
47
  }
48
48
  console.log("");
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  formatText,
6
6
  generateFindings,
7
7
  runScan
8
- } from "./chunk-W6TXQI4D.js";
8
+ } from "./chunk-TGBW3GQE.js";
9
9
  import "./chunk-JQHUH6A3.js";
10
10
  export {
11
11
  computeDriftScore,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibgrate/cli",
3
- "version": "1.0.81",
3
+ "version": "1.0.83",
4
4
  "description": "CLI for measuring upgrade drift across Node, .NET, Python & Java projects",
5
5
  "type": "module",
6
6
  "bin": {