@vibgrate/cli 1.0.76 → 1.0.78

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-CCU77BBA.js";
5
- import "./chunk-S5HZOJPF.js";
4
+ } from "./chunk-DKSPLRJV.js";
5
+ import "./chunk-TKNDQ337.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-S5HZOJPF.js";
3
+ } from "./chunk-TKNDQ337.js";
4
4
  import {
5
5
  writeJsonFile
6
6
  } from "./chunk-JQHUH6A3.js";
@@ -1378,6 +1378,9 @@ function parseDsn(dsn) {
1378
1378
  workspaceId: match[5]
1379
1379
  };
1380
1380
  }
1381
+ function computeHmac(body, secret) {
1382
+ return crypto3.createHmac("sha256", secret).update(body).digest("base64");
1383
+ }
1381
1384
  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) => {
1382
1385
  const dsn = opts.dsn || process.env.VIBGRATE_DSN;
1383
1386
  if (!dsn) {
@@ -12684,6 +12687,8 @@ export {
12684
12687
  formatSarif,
12685
12688
  formatMarkdown,
12686
12689
  dsnCommand,
12690
+ parseDsn,
12691
+ computeHmac,
12687
12692
  pushCommand,
12688
12693
  runScan,
12689
12694
  scanCommand