@vibgrate/cli 1.0.73 → 1.0.74
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.
|
@@ -7249,6 +7249,16 @@ var ScanProgress = class {
|
|
|
7249
7249
|
}
|
|
7250
7250
|
this.render();
|
|
7251
7251
|
}
|
|
7252
|
+
/** Insert a new step before an existing step (used for dynamically discovered items) */
|
|
7253
|
+
insertStepBefore(beforeId, step) {
|
|
7254
|
+
const idx = this.steps.findIndex((s) => s.id === beforeId);
|
|
7255
|
+
const newStep = { ...step, status: "pending", weight: step.weight ?? 1 };
|
|
7256
|
+
if (idx >= 0) {
|
|
7257
|
+
this.steps.splice(idx, 0, newStep);
|
|
7258
|
+
} else {
|
|
7259
|
+
this.steps.push(newStep);
|
|
7260
|
+
}
|
|
7261
|
+
}
|
|
7252
7262
|
/** Mark a step as active (currently running), optionally with expected total */
|
|
7253
7263
|
startStep(id, subTotal) {
|
|
7254
7264
|
const step = this.steps.find((s) => s.id === id);
|
|
@@ -11706,21 +11716,6 @@ async function runScan(rootDir, opts) {
|
|
|
11706
11716
|
{ id: "discovery", label: "Discovering workspace", weight: 3 },
|
|
11707
11717
|
{ id: "vcs", label: "Detecting version control" },
|
|
11708
11718
|
{ id: "walk", label: "Indexing files", weight: 8 },
|
|
11709
|
-
{ id: "node", label: "Found Node projects", weight: 4 },
|
|
11710
|
-
{ id: "dotnet", label: "Found .NET projects", weight: 2 },
|
|
11711
|
-
{ id: "python", label: "Found Python projects", weight: 3 },
|
|
11712
|
-
{ id: "java", label: "Found Java projects", weight: 3 },
|
|
11713
|
-
{ id: "ruby", label: "Found Ruby projects", weight: 2 },
|
|
11714
|
-
{ id: "swift", label: "Found Swift projects", weight: 2 },
|
|
11715
|
-
{ id: "go", label: "Found Go projects", weight: 2 },
|
|
11716
|
-
{ id: "rust", label: "Found Rust projects", weight: 2 },
|
|
11717
|
-
{ id: "php", label: "Found PHP projects", weight: 2 },
|
|
11718
|
-
{ id: "dart", label: "Found Dart projects", weight: 2 },
|
|
11719
|
-
{ id: "elixir", label: "Found Elixir projects", weight: 2 },
|
|
11720
|
-
{ id: "docker", label: "Found Docker images", weight: 2 },
|
|
11721
|
-
{ id: "helm", label: "Found Helm charts", weight: 2 },
|
|
11722
|
-
{ id: "terraform", label: "Found Terraform configs", weight: 2 },
|
|
11723
|
-
{ id: "polyglot", label: "Found additional language projects", weight: 2 },
|
|
11724
11719
|
...scanners !== false ? [
|
|
11725
11720
|
...scannerPolicy.platformMatrix && scanners?.platformMatrix?.enabled !== false ? [{ id: "platform", label: "Platform matrix" }] : [],
|
|
11726
11721
|
...scannerPolicy.toolingInventory && scanners?.toolingInventory?.enabled !== false ? [{ id: "tooling", label: "Tooling inventory" }] : [],
|
|
@@ -11792,6 +11787,7 @@ async function runScan(rootDir, opts) {
|
|
|
11792
11787
|
progress.completeStep("walk", `${treeCount.totalFiles.toLocaleString()} files indexed`);
|
|
11793
11788
|
const nodeProjects = await scanNodeProjects(rootDir, npmCache, fileCache, projectScanTimeoutMs);
|
|
11794
11789
|
if (nodeProjects.length > 0) {
|
|
11790
|
+
progress.insertStepBefore("drift", { id: "node", label: "Found Node projects", weight: 4 });
|
|
11795
11791
|
progress.startStep("node");
|
|
11796
11792
|
for (const p of nodeProjects) {
|
|
11797
11793
|
progress.addDependencies(p.dependencies.length);
|
|
@@ -11803,6 +11799,7 @@ async function runScan(rootDir, opts) {
|
|
|
11803
11799
|
}
|
|
11804
11800
|
const dotnetProjects = await scanDotnetProjects(rootDir, nugetCache, fileCache, projectScanTimeoutMs);
|
|
11805
11801
|
if (dotnetProjects.length > 0) {
|
|
11802
|
+
progress.insertStepBefore("drift", { id: "dotnet", label: "Found .NET projects", weight: 2 });
|
|
11806
11803
|
progress.startStep("dotnet");
|
|
11807
11804
|
for (const p of dotnetProjects) {
|
|
11808
11805
|
progress.addDependencies(p.dependencies.length);
|
|
@@ -11814,6 +11811,7 @@ async function runScan(rootDir, opts) {
|
|
|
11814
11811
|
}
|
|
11815
11812
|
const pythonProjects = await scanPythonProjects(rootDir, pypiCache, fileCache, projectScanTimeoutMs);
|
|
11816
11813
|
if (pythonProjects.length > 0) {
|
|
11814
|
+
progress.insertStepBefore("drift", { id: "python", label: "Found Python projects", weight: 3 });
|
|
11817
11815
|
progress.startStep("python");
|
|
11818
11816
|
for (const p of pythonProjects) {
|
|
11819
11817
|
progress.addDependencies(p.dependencies.length);
|
|
@@ -11825,6 +11823,7 @@ async function runScan(rootDir, opts) {
|
|
|
11825
11823
|
}
|
|
11826
11824
|
const javaProjects = await scanJavaProjects(rootDir, mavenCache, fileCache, projectScanTimeoutMs);
|
|
11827
11825
|
if (javaProjects.length > 0) {
|
|
11826
|
+
progress.insertStepBefore("drift", { id: "java", label: "Found Java projects", weight: 3 });
|
|
11828
11827
|
progress.startStep("java");
|
|
11829
11828
|
for (const p of javaProjects) {
|
|
11830
11829
|
progress.addDependencies(p.dependencies.length);
|
|
@@ -11836,6 +11835,7 @@ async function runScan(rootDir, opts) {
|
|
|
11836
11835
|
}
|
|
11837
11836
|
const rubyProjects = await scanRubyProjects(rootDir, rubygemsCache, fileCache, projectScanTimeoutMs);
|
|
11838
11837
|
if (rubyProjects.length > 0) {
|
|
11838
|
+
progress.insertStepBefore("drift", { id: "ruby", label: "Found Ruby projects", weight: 2 });
|
|
11839
11839
|
progress.startStep("ruby");
|
|
11840
11840
|
for (const p of rubyProjects) {
|
|
11841
11841
|
progress.addDependencies(p.dependencies.length);
|
|
@@ -11847,6 +11847,7 @@ async function runScan(rootDir, opts) {
|
|
|
11847
11847
|
}
|
|
11848
11848
|
const swiftProjects = await scanSwiftProjects(rootDir, swiftCache, fileCache, projectScanTimeoutMs);
|
|
11849
11849
|
if (swiftProjects.length > 0) {
|
|
11850
|
+
progress.insertStepBefore("drift", { id: "swift", label: "Found Swift projects", weight: 2 });
|
|
11850
11851
|
progress.startStep("swift");
|
|
11851
11852
|
for (const p of swiftProjects) {
|
|
11852
11853
|
progress.addDependencies(p.dependencies.length);
|
|
@@ -11858,6 +11859,7 @@ async function runScan(rootDir, opts) {
|
|
|
11858
11859
|
}
|
|
11859
11860
|
const goProjects = await scanGoProjects(rootDir, goCache, fileCache, projectScanTimeoutMs);
|
|
11860
11861
|
if (goProjects.length > 0) {
|
|
11862
|
+
progress.insertStepBefore("drift", { id: "go", label: "Found Go projects", weight: 2 });
|
|
11861
11863
|
progress.startStep("go");
|
|
11862
11864
|
for (const p of goProjects) {
|
|
11863
11865
|
progress.addDependencies(p.dependencies.length);
|
|
@@ -11869,6 +11871,7 @@ async function runScan(rootDir, opts) {
|
|
|
11869
11871
|
}
|
|
11870
11872
|
const rustProjects = await scanRustProjects(rootDir, cargoCache, fileCache, projectScanTimeoutMs);
|
|
11871
11873
|
if (rustProjects.length > 0) {
|
|
11874
|
+
progress.insertStepBefore("drift", { id: "rust", label: "Found Rust projects", weight: 2 });
|
|
11872
11875
|
progress.startStep("rust");
|
|
11873
11876
|
for (const p of rustProjects) {
|
|
11874
11877
|
progress.addDependencies(p.dependencies.length);
|
|
@@ -11880,6 +11883,7 @@ async function runScan(rootDir, opts) {
|
|
|
11880
11883
|
}
|
|
11881
11884
|
const phpProjects = await scanPhpProjects(rootDir, composerCache, fileCache, projectScanTimeoutMs);
|
|
11882
11885
|
if (phpProjects.length > 0) {
|
|
11886
|
+
progress.insertStepBefore("drift", { id: "php", label: "Found PHP projects", weight: 2 });
|
|
11883
11887
|
progress.startStep("php");
|
|
11884
11888
|
for (const p of phpProjects) {
|
|
11885
11889
|
progress.addDependencies(p.dependencies.length);
|
|
@@ -11891,6 +11895,7 @@ async function runScan(rootDir, opts) {
|
|
|
11891
11895
|
}
|
|
11892
11896
|
const dartProjects = await scanDartProjects(rootDir, pubCache, fileCache, projectScanTimeoutMs);
|
|
11893
11897
|
if (dartProjects.length > 0) {
|
|
11898
|
+
progress.insertStepBefore("drift", { id: "dart", label: "Found Dart projects", weight: 2 });
|
|
11894
11899
|
progress.startStep("dart");
|
|
11895
11900
|
for (const p of dartProjects) {
|
|
11896
11901
|
progress.addDependencies(p.dependencies.length);
|
|
@@ -11902,6 +11907,7 @@ async function runScan(rootDir, opts) {
|
|
|
11902
11907
|
}
|
|
11903
11908
|
const elixirProjects = await scanElixirProjects(rootDir, packageManifest, fileCache, projectScanTimeoutMs, offlineMode);
|
|
11904
11909
|
if (elixirProjects.length > 0) {
|
|
11910
|
+
progress.insertStepBefore("drift", { id: "elixir", label: "Found Elixir projects", weight: 2 });
|
|
11905
11911
|
progress.startStep("elixir");
|
|
11906
11912
|
for (const p of elixirProjects) {
|
|
11907
11913
|
progress.addDependencies(p.dependencies.length);
|
|
@@ -11913,6 +11919,7 @@ async function runScan(rootDir, opts) {
|
|
|
11913
11919
|
}
|
|
11914
11920
|
const dockerProjects = await scanDockerProjects(rootDir, packageManifest, fileCache, projectScanTimeoutMs, offlineMode);
|
|
11915
11921
|
if (dockerProjects.length > 0) {
|
|
11922
|
+
progress.insertStepBefore("drift", { id: "docker", label: "Found Docker images", weight: 2 });
|
|
11916
11923
|
progress.startStep("docker");
|
|
11917
11924
|
for (const p of dockerProjects) {
|
|
11918
11925
|
progress.addDependencies(p.dependencies.length);
|
|
@@ -11923,6 +11930,7 @@ async function runScan(rootDir, opts) {
|
|
|
11923
11930
|
}
|
|
11924
11931
|
const helmProjects = await scanHelmProjects(rootDir, packageManifest, fileCache, projectScanTimeoutMs, offlineMode);
|
|
11925
11932
|
if (helmProjects.length > 0) {
|
|
11933
|
+
progress.insertStepBefore("drift", { id: "helm", label: "Found Helm charts", weight: 2 });
|
|
11926
11934
|
progress.startStep("helm");
|
|
11927
11935
|
for (const p of helmProjects) {
|
|
11928
11936
|
progress.addDependencies(p.dependencies.length);
|
|
@@ -11934,6 +11942,7 @@ async function runScan(rootDir, opts) {
|
|
|
11934
11942
|
}
|
|
11935
11943
|
const terraformProjects = await scanTerraformProjects(rootDir, packageManifest, fileCache, projectScanTimeoutMs, offlineMode);
|
|
11936
11944
|
if (terraformProjects.length > 0) {
|
|
11945
|
+
progress.insertStepBefore("drift", { id: "terraform", label: "Found Terraform configs", weight: 2 });
|
|
11937
11946
|
progress.startStep("terraform");
|
|
11938
11947
|
for (const p of terraformProjects) {
|
|
11939
11948
|
progress.addDependencies(p.dependencies.length);
|
|
@@ -11944,6 +11953,7 @@ async function runScan(rootDir, opts) {
|
|
|
11944
11953
|
}
|
|
11945
11954
|
const polyglotProjects = await scanPolyglotProjects(rootDir, fileCache);
|
|
11946
11955
|
if (polyglotProjects.length > 0) {
|
|
11956
|
+
progress.insertStepBefore("drift", { id: "polyglot", label: "Found additional language projects", weight: 2 });
|
|
11947
11957
|
progress.startStep("polyglot");
|
|
11948
11958
|
for (const p of polyglotProjects) {
|
|
11949
11959
|
progress.addDependencies(p.dependencies.length);
|
package/dist/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
baselineCommand
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6X2BYLQ3.js";
|
|
5
5
|
import {
|
|
6
6
|
VERSION,
|
|
7
7
|
dsnCommand,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
pushCommand,
|
|
11
11
|
scanCommand,
|
|
12
12
|
writeDefaultConfig
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6666OEOV.js";
|
|
14
14
|
import {
|
|
15
15
|
ensureDir,
|
|
16
16
|
pathExists,
|
|
@@ -39,7 +39,7 @@ var initCommand = new Command("init").description("Initialize vibgrate in a proj
|
|
|
39
39
|
console.log(chalk.green("\u2714") + ` Created ${chalk.bold("vibgrate.config.ts")}`);
|
|
40
40
|
}
|
|
41
41
|
if (opts.baseline) {
|
|
42
|
-
const { runBaseline } = await import("./baseline-
|
|
42
|
+
const { runBaseline } = await import("./baseline-WYKVNIRH.js");
|
|
43
43
|
await runBaseline(rootDir);
|
|
44
44
|
}
|
|
45
45
|
console.log("");
|
package/dist/index.js
CHANGED