@vibgrate/cli 1.0.8 → 1.0.10

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/README.md CHANGED
@@ -338,4 +338,4 @@ See [DOCS.md](https://github.com/crowers/vibgrate-cli/blob/main/packages/vibgrat
338
338
 
339
339
  ---
340
340
 
341
- Copyright © 2026 Vibgrate. All rights reserved. See [LICENSE](./LICENSE) for terms.
341
+ Copyright © 2026 Vibgrate. All rights reserved. See [LICENSE.md](./LICENSE) for terms.
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  baselineCommand,
3
3
  runBaseline
4
- } from "./chunk-TQMVPV2O.js";
5
- import "./chunk-7AHASIDR.js";
4
+ } from "./chunk-CQZG2R46.js";
5
+ import "./chunk-ORCNP6QX.js";
6
6
  export {
7
7
  baselineCommand,
8
8
  runBaseline
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  runScan,
3
3
  writeJsonFile
4
- } from "./chunk-7AHASIDR.js";
4
+ } from "./chunk-ORCNP6QX.js";
5
5
 
6
6
  // src/commands/baseline.ts
7
7
  import * as path from "path";
@@ -568,7 +568,8 @@ function generatePriorityActions(artifact) {
568
568
  for (const p of eolProjects) {
569
569
  fileLines.push(`
570
570
  ./${p.path}`);
571
- fileLines.push(` ${p.runtime} \u2192 ${p.runtimeLatest} (${p.runtimeMajorsBehind} major${p.runtimeMajorsBehind > 1 ? "s" : ""} behind)`);
571
+ fileLines.push(`
572
+ ${p.runtime} \u2192 ${p.runtimeLatest} (${p.runtimeMajorsBehind} major${p.runtimeMajorsBehind > 1 ? "s" : ""} behind)`);
572
573
  }
573
574
  detail += fileLines.join("");
574
575
  actions.push({
@@ -596,7 +597,8 @@ function generatePriorityActions(artifact) {
596
597
  if (shown >= 8) break;
597
598
  fileLines.push(`
598
599
  ./${sf.projectPath}`);
599
- fileLines.push(` ${sf.name}: ${sf.fw} (${sf.behind} major${sf.behind > 1 ? "s" : ""} behind)`);
600
+ fileLines.push(`
601
+ ${sf.name}: ${sf.fw} (${sf.behind} major${sf.behind > 1 ? "s" : ""} behind)`);
600
602
  shown++;
601
603
  }
602
604
  const remaining = severeFrameworks.length - shown;
@@ -627,7 +629,8 @@ function generatePriorityActions(artifact) {
627
629
  if (shown >= 8) break;
628
630
  const current = dep.resolvedVersion ?? dep.currentSpec;
629
631
  const latest = dep.latestStable ?? "?";
630
- depLines.push(` ${dep.package}: ${current} \u2192 ${latest} (${dep.majorsBehind} major${dep.majorsBehind > 1 ? "s" : ""} behind)`);
632
+ depLines.push(`
633
+ ${dep.package}: ${current} \u2192 ${latest} (${dep.majorsBehind} major${dep.majorsBehind > 1 ? "s" : ""} behind)`);
631
634
  shown++;
632
635
  }
633
636
  const remaining = worstDeps.length - shown;
@@ -662,7 +665,8 @@ function generatePriorityActions(artifact) {
662
665
  if (shown >= 8) break;
663
666
  fileLines.push(`
664
667
  ./${tf.projectPath}`);
665
- fileLines.push(` ${tf.name}: ${tf.fw}`);
668
+ fileLines.push(`
669
+ ${tf.name}: ${tf.fw}`);
666
670
  shown++;
667
671
  }
668
672
  const remaining = twoMajorFrameworks.length - shown;
@@ -696,7 +700,8 @@ function generatePriorityActions(artifact) {
696
700
  if (shown >= 10) break;
697
701
  const ver = dep.resolvedVersion ?? dep.currentSpec;
698
702
  const label = bc.deprecatedPackages.includes(dep.package) ? "deprecated" : "polyfill";
699
- fileLines.push(` ${dep.package}: ${ver} (${label})`);
703
+ fileLines.push(`
704
+ ${dep.package}: ${ver} (${label})`);
700
705
  shown++;
701
706
  }
702
707
  }
@@ -731,7 +736,8 @@ function generatePriorityActions(artifact) {
731
736
  ./${srcPath}`);
732
737
  for (const pkg2 of pkgs) {
733
738
  if (shown >= 10) break;
734
- pathLines.push(` ${pkg2.package}: ${pkg2.spec}`);
739
+ pathLines.push(`
740
+ ${pkg2.package}: ${pkg2.spec}`);
735
741
  shown++;
736
742
  }
737
743
  }
@@ -953,9 +959,6 @@ function parseDsn(dsn) {
953
959
  workspaceId: match[5]
954
960
  };
955
961
  }
956
- function computeHmac(body, secret) {
957
- return crypto3.createHmac("sha256", secret).update(body).digest("base64");
958
- }
959
962
  var pushCommand = new Command2("push").description("Push scan results to Vibgrate API").option("--dsn <dsn>", "DSN token (or use VIBGRATE_DSN env)").option("--region <region>", "Override data residency region (us, eu)").option("--file <file>", "Scan artifact file", ".vibgrate/scan_result.json").option("--strict", "Fail on upload errors").action(async (opts) => {
960
963
  const dsn = opts.dsn || process.env.VIBGRATE_DSN;
961
964
  if (!dsn) {
@@ -980,7 +983,6 @@ var pushCommand = new Command2("push").description("Push scan results to Vibgrat
980
983
  }
981
984
  const body = await readTextFile(filePath);
982
985
  const timestamp = String(Date.now());
983
- const hmac = computeHmac(body, parsed.secret);
984
986
  let host = parsed.host;
985
987
  if (opts.region) {
986
988
  try {
@@ -999,7 +1001,7 @@ var pushCommand = new Command2("push").description("Push scan results to Vibgrat
999
1001
  headers: {
1000
1002
  "Content-Type": "application/json",
1001
1003
  "X-Vibgrate-Timestamp": timestamp,
1002
- "Authorization": `VibgrateDSN ${parsed.keyId}:${hmac}`
1004
+ "Authorization": `VibgrateDSN ${parsed.keyId}:${parsed.secret}`
1003
1005
  },
1004
1006
  body
1005
1007
  });
@@ -4203,7 +4205,6 @@ async function autoPush(artifact, rootDir, opts) {
4203
4205
  }
4204
4206
  const body = JSON.stringify(artifact);
4205
4207
  const timestamp = String(Date.now());
4206
- const hmac = computeHmac(body, parsed.secret);
4207
4208
  let host = parsed.host;
4208
4209
  if (opts.region) {
4209
4210
  try {
@@ -4222,7 +4223,7 @@ async function autoPush(artifact, rootDir, opts) {
4222
4223
  headers: {
4223
4224
  "Content-Type": "application/json",
4224
4225
  "X-Vibgrate-Timestamp": timestamp,
4225
- "Authorization": `VibgrateDSN ${parsed.keyId}:${hmac}`
4226
+ "Authorization": `VibgrateDSN ${parsed.keyId}:${parsed.secret}`
4226
4227
  },
4227
4228
  body
4228
4229
  });
package/dist/cli.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-VXZT34Y5.js";
5
5
  import {
6
6
  baselineCommand
7
- } from "./chunk-TQMVPV2O.js";
7
+ } from "./chunk-CQZG2R46.js";
8
8
  import {
9
9
  VERSION,
10
10
  dsnCommand,
@@ -15,7 +15,7 @@ import {
15
15
  readJsonFile,
16
16
  scanCommand,
17
17
  writeDefaultConfig
18
- } from "./chunk-7AHASIDR.js";
18
+ } from "./chunk-ORCNP6QX.js";
19
19
 
20
20
  // src/cli.ts
21
21
  import { Command as Command4 } from "commander";
@@ -38,7 +38,7 @@ var initCommand = new Command("init").description("Initialize vibgrate in a proj
38
38
  console.log(chalk.green("\u2714") + ` Created ${chalk.bold("vibgrate.config.ts")}`);
39
39
  }
40
40
  if (opts.baseline) {
41
- const { runBaseline } = await import("./baseline-D4ATDVOG.js");
41
+ const { runBaseline } = await import("./baseline-TMCRW7B4.js");
42
42
  await runBaseline(rootDir);
43
43
  }
44
44
  console.log("");
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  formatText,
8
8
  generateFindings,
9
9
  runScan
10
- } from "./chunk-7AHASIDR.js";
10
+ } from "./chunk-ORCNP6QX.js";
11
11
  export {
12
12
  computeDriftScore,
13
13
  formatMarkdown,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibgrate/cli",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "CLI for measuring upgrade drift across Node & .NET projects",
5
5
  "type": "module",
6
6
  "bin": {
File without changes