@vibgrate/cli 1.0.82 → 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-32UVQ5PT.js";
5
- import "./chunk-2E4MGFBS.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-2E4MGFBS.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();
@@ -7421,12 +7430,6 @@ var ScanProgress = class {
7421
7430
  return;
7422
7431
  }
7423
7432
  const lines = [];
7424
- lines.push("");
7425
- lines.push(` ${ROBOT[0]} ${BRAND[0]}`);
7426
- lines.push(` ${ROBOT[1]} ${BRAND[1]}`);
7427
- lines.push(` ${ROBOT[2]}`);
7428
- lines.push(` ${ROBOT[3]} ${chalk4.dim(this.rootDir)}`);
7429
- lines.push("");
7430
7433
  for (const step of this.steps) {
7431
7434
  lines.push(this.renderStep(step));
7432
7435
  }
@@ -7589,7 +7592,8 @@ var ScanProgress = class {
7589
7592
  if (this.estimatedTotalMs !== null && this.estimatedTotalMs > 0) {
7590
7593
  const histRemaining = Math.max(0, this.estimatedTotalMs - elapsedMs);
7591
7594
  const histWeight = Math.max(0.1, 1 - fraction);
7592
- remainingMs = histRemaining * histWeight + liveRemaining * (1 - histWeight);
7595
+ const blended = histRemaining * histWeight + liveRemaining * (1 - histWeight);
7596
+ remainingMs = Math.min(histRemaining, blended);
7593
7597
  } else {
7594
7598
  remainingMs = liveRemaining;
7595
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-32UVQ5PT.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-2E4MGFBS.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-YIHDZC5Y.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-2E4MGFBS.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.82",
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": {