@vibgrate/cli 2026.618.1 → 2026.618.2
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-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-34KD4UJ3.js";
|
|
5
|
+
import "./chunk-XKZBEQYY.js";
|
|
6
6
|
import "./chunk-5IXVOEZN.js";
|
|
7
7
|
import "./chunk-C7LU6YIL.js";
|
|
8
8
|
import "./chunk-JSBRDJBE.js";
|
|
@@ -18815,7 +18815,7 @@ async function runScan(rootDir, opts) {
|
|
|
18815
18815
|
if (extended.assetBranding) filesScanned += extended.assetBranding.faviconFiles.length + extended.assetBranding.productLogos.length;
|
|
18816
18816
|
if (extended.ossGovernance) filesScanned += extended.ossGovernance.directDependencies;
|
|
18817
18817
|
const durationMs = Date.now() - scanStart;
|
|
18818
|
-
const repository = await buildRepositoryInfo(rootDir, vcs.remoteUrl, extended.buildDeploy?.ci);
|
|
18818
|
+
const repository = await buildRepositoryInfo(rootDir, vcs.remoteUrl, extended.buildDeploy?.ci, opts.repositoryName);
|
|
18819
18819
|
const artifact = {
|
|
18820
18820
|
schemaVersion: "1.0",
|
|
18821
18821
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
@@ -18926,8 +18926,8 @@ async function runScan(rootDir, opts) {
|
|
|
18926
18926
|
}
|
|
18927
18927
|
return artifact;
|
|
18928
18928
|
}
|
|
18929
|
-
async function buildRepositoryInfo(rootDir, remoteUrl, ciSystems) {
|
|
18930
|
-
const name = await resolveRepositoryName(rootDir);
|
|
18929
|
+
async function buildRepositoryInfo(rootDir, remoteUrl, ciSystems, nameOverride) {
|
|
18930
|
+
const name = nameOverride?.trim() ? nameOverride.trim() : await resolveRepositoryName(rootDir);
|
|
18931
18931
|
let version;
|
|
18932
18932
|
const packageJsonPath = path34.join(rootDir, "package.json");
|
|
18933
18933
|
if (await pathExists(packageJsonPath)) {
|
package/dist/cli.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
pathExists,
|
|
7
7
|
readJsonFile,
|
|
8
8
|
writeTextFile
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-34KD4UJ3.js";
|
|
10
10
|
import {
|
|
11
11
|
computeRepoFingerprint,
|
|
12
12
|
detectVcs,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
resolveRepositoryName,
|
|
17
17
|
runScan,
|
|
18
18
|
writeDefaultConfig
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-XKZBEQYY.js";
|
|
20
20
|
import {
|
|
21
21
|
require_semver
|
|
22
22
|
} from "./chunk-5IXVOEZN.js";
|
|
@@ -49,7 +49,7 @@ var initCommand = new Command("init").description("Initialize vibgrate in a proj
|
|
|
49
49
|
console.log(chalk.green("\u2714") + ` Created ${chalk.bold("vibgrate.config.ts")}`);
|
|
50
50
|
}
|
|
51
51
|
if (opts.baseline) {
|
|
52
|
-
const { runBaseline } = await import("./baseline-
|
|
52
|
+
const { runBaseline } = await import("./baseline-6CJI5Z45.js");
|
|
53
53
|
await runBaseline(rootDir);
|
|
54
54
|
}
|
|
55
55
|
console.log("");
|
|
@@ -406,7 +406,7 @@ var scanCommand = new Command3("scan").description("Scan a project for upgrade d
|
|
|
406
406
|
'Exclude paths matching a glob pattern. Repeatable, and a single value may list several patterns separated by commas or semicolons (e.g. --exclude "legacy/**,vendor/**"). Merged with excludes from the config file.',
|
|
407
407
|
collectExcludes,
|
|
408
408
|
[]
|
|
409
|
-
).option("--concurrency <n>", "Max concurrent npm calls", "8").option("--push", "Auto-push results to Vibgrate API after scan").option("--dsn <dsn>", "DSN token for push (or use VIBGRATE_DSN env)").option("--region <region>", "Override data residency region for push (us, eu)").option("--strict", "Fail on push errors").option("--ui-purpose", "Enable optional UI purpose evidence extraction (slower)").option("--no-local-artifacts", "Do not write .vibgrate JSON artifacts to disk").option("--max-privacy", "Enable strongest privacy mode (minimal scanners, no local artifacts)").option("--offline", "Run without network calls; do not upload results").option("--package-manifest <file>", "Use local package-version manifest JSON/ZIP (for offline mode)").option("--project-scan-timeout <seconds>", "Per-project scan timeout in seconds (default: 180)").option("--drift-budget <score>", "Fail if drift score is above budget (0-100)").option("--drift-worsening <percent>", "Fail if drift worsens by more than % since baseline").action(async (targetPath, opts) => {
|
|
409
|
+
).option("--concurrency <n>", "Max concurrent npm calls", "8").option("--push", "Auto-push results to Vibgrate API after scan").option("--dsn <dsn>", "DSN token for push (or use VIBGRATE_DSN env)").option("--region <region>", "Override data residency region for push (us, eu)").option("--strict", "Fail on push errors").option("--ui-purpose", "Enable optional UI purpose evidence extraction (slower)").option("--no-local-artifacts", "Do not write .vibgrate JSON artifacts to disk").option("--max-privacy", "Enable strongest privacy mode (minimal scanners, no local artifacts)").option("--offline", "Run without network calls; do not upload results").option("--package-manifest <file>", "Use local package-version manifest JSON/ZIP (for offline mode)").option("--project-scan-timeout <seconds>", "Per-project scan timeout in seconds (default: 180)").option("--drift-budget <score>", "Fail if drift score is above budget (0-100)").option("--drift-worsening <percent>", "Fail if drift worsens by more than % since baseline").option("--repository-name <name>", "Override the repository name recorded for this scan (defaults to the directory or package.json name)").action(async (targetPath, opts) => {
|
|
410
410
|
const rootDir = path4.resolve(targetPath);
|
|
411
411
|
if (!await pathExists2(rootDir)) {
|
|
412
412
|
console.error(chalk4.red(`Path does not exist: ${rootDir}`));
|
|
@@ -422,7 +422,7 @@ var scanCommand = new Command3("scan").description("Scan a project for upgrade d
|
|
|
422
422
|
const ingestHost = opts.region ? resolveIngestHost(opts.region) : parsed.host;
|
|
423
423
|
const vcs = await detectVcs(rootDir);
|
|
424
424
|
const fingerprint = await computeRepoFingerprint(rootDir, vcs);
|
|
425
|
-
const repositoryName = await resolveRepositoryName(rootDir);
|
|
425
|
+
const repositoryName = opts.repositoryName?.trim() || await resolveRepositoryName(rootDir);
|
|
426
426
|
try {
|
|
427
427
|
const preflight = await fetchScanPreflight(parsed, ingestHost, {
|
|
428
428
|
repositoryName,
|
|
@@ -496,7 +496,8 @@ var scanCommand = new Command3("scan").description("Scan a project for upgrade d
|
|
|
496
496
|
packageManifest: opts.packageManifest,
|
|
497
497
|
driftBudget: parseNonNegativeNumber(opts.driftBudget, "--drift-budget"),
|
|
498
498
|
driftWorseningPercent: parseNonNegativeNumber(opts.driftWorsening, "--drift-worsening"),
|
|
499
|
-
projectScanTimeout: opts.projectScanTimeout ? parseInt(opts.projectScanTimeout, 10) || void 0 : void 0
|
|
499
|
+
projectScanTimeout: opts.projectScanTimeout ? parseInt(opts.projectScanTimeout, 10) || void 0 : void 0,
|
|
500
|
+
repositoryName: opts.repositoryName?.trim() || void 0
|
|
500
501
|
};
|
|
501
502
|
const artifact = await runScan(rootDir, scanOpts);
|
|
502
503
|
if (opts.failOn) {
|
package/dist/index.js
CHANGED