@vibgrate/cli 1.0.46 → 1.0.47
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/DOCS.md +95 -10
- package/README.md +68 -3
- package/dist/{baseline-AWRL3ITR.js → baseline-K7V6GAP3.js} +2 -2
- package/dist/{chunk-SKROLJET.js → chunk-NASGRGXK.js} +1 -1
- package/dist/{chunk-HEILEAVO.js → chunk-UVFIFNYG.js} +542 -196
- package/dist/cli.js +3 -3
- package/dist/index.d.ts +37 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-PTMLMDZU.js";
|
|
5
5
|
import {
|
|
6
6
|
baselineCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NASGRGXK.js";
|
|
8
8
|
import {
|
|
9
9
|
VERSION,
|
|
10
10
|
dsnCommand,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
pushCommand,
|
|
13
13
|
scanCommand,
|
|
14
14
|
writeDefaultConfig
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-UVFIFNYG.js";
|
|
16
16
|
import {
|
|
17
17
|
ensureDir,
|
|
18
18
|
pathExists,
|
|
@@ -41,7 +41,7 @@ var initCommand = new Command("init").description("Initialize vibgrate in a proj
|
|
|
41
41
|
console.log(chalk.green("\u2714") + ` Created ${chalk.bold("vibgrate.config.ts")}`);
|
|
42
42
|
}
|
|
43
43
|
if (opts.baseline) {
|
|
44
|
-
const { runBaseline } = await import("./baseline-
|
|
44
|
+
const { runBaseline } = await import("./baseline-K7V6GAP3.js");
|
|
45
45
|
await runBaseline(rootDir);
|
|
46
46
|
}
|
|
47
47
|
console.log("");
|
package/dist/index.d.ts
CHANGED
|
@@ -31,6 +31,10 @@ interface ProjectScan {
|
|
|
31
31
|
name: string;
|
|
32
32
|
/** Deterministic project ID: SHA-256 hash of `${path}:${name}:${workspaceId}` */
|
|
33
33
|
projectId?: string;
|
|
34
|
+
/** Optional solution identifier when project belongs to a solution/workspace file */
|
|
35
|
+
solutionId?: string;
|
|
36
|
+
/** Optional solution name resolved from solution/workspace metadata */
|
|
37
|
+
solutionName?: string;
|
|
34
38
|
runtime?: string;
|
|
35
39
|
runtimeLatest?: string;
|
|
36
40
|
runtimeMajorsBehind?: number;
|
|
@@ -54,6 +58,22 @@ interface ProjectScan {
|
|
|
54
58
|
/** Project-level relationship diagram (first-level parents + children) */
|
|
55
59
|
relationshipDiagram?: MermaidDiagram;
|
|
56
60
|
}
|
|
61
|
+
interface SolutionScan {
|
|
62
|
+
/** Deterministic solution ID: SHA-256 hash of `${path}:${name}:${workspaceId}` */
|
|
63
|
+
solutionId: string;
|
|
64
|
+
/** Relative path to solution file */
|
|
65
|
+
path: string;
|
|
66
|
+
/** Solution display name */
|
|
67
|
+
name: string;
|
|
68
|
+
/** Solution file type */
|
|
69
|
+
type: 'dotnet-sln';
|
|
70
|
+
/** Projects resolved as belonging to this solution (by relative project path) */
|
|
71
|
+
projectPaths: string[];
|
|
72
|
+
/** Aggregate drift score for all resolved projects in this solution */
|
|
73
|
+
drift?: DriftScore;
|
|
74
|
+
/** Solution relationship diagram with top-level solution node and project links */
|
|
75
|
+
relationshipDiagram?: MermaidDiagram;
|
|
76
|
+
}
|
|
57
77
|
interface MermaidDiagram {
|
|
58
78
|
mermaid: string;
|
|
59
79
|
svg?: string;
|
|
@@ -83,6 +103,13 @@ interface VcsInfo {
|
|
|
83
103
|
sha?: string;
|
|
84
104
|
shortSha?: string;
|
|
85
105
|
branch?: string;
|
|
106
|
+
remoteUrl?: string;
|
|
107
|
+
}
|
|
108
|
+
interface RepositoryInfo {
|
|
109
|
+
name: string;
|
|
110
|
+
version?: string;
|
|
111
|
+
pipeline?: string;
|
|
112
|
+
remoteUrl?: string;
|
|
86
113
|
}
|
|
87
114
|
interface TreeCount {
|
|
88
115
|
/** Total files discovered (excluding skipped dirs like node_modules, .git, dist) */
|
|
@@ -96,7 +123,9 @@ interface ScanArtifact {
|
|
|
96
123
|
vibgrateVersion: string;
|
|
97
124
|
rootPath: string;
|
|
98
125
|
vcs?: VcsInfo;
|
|
126
|
+
repository?: RepositoryInfo;
|
|
99
127
|
projects: ProjectScan[];
|
|
128
|
+
solutions?: SolutionScan[];
|
|
100
129
|
drift: DriftScore;
|
|
101
130
|
findings: Finding[];
|
|
102
131
|
baseline?: string;
|
|
@@ -129,6 +158,14 @@ interface ScanOptions {
|
|
|
129
158
|
installTools?: boolean;
|
|
130
159
|
/** Enable optional UI-purpose evidence extraction (slower, richer context for dashboard) */
|
|
131
160
|
uiPurpose?: boolean;
|
|
161
|
+
/** Prevent writing .vibgrate JSON artifacts to disk */
|
|
162
|
+
noLocalArtifacts?: boolean;
|
|
163
|
+
/** Enable strongest privacy profile: minimize scanners and suppress local artifacts */
|
|
164
|
+
maxPrivacy?: boolean;
|
|
165
|
+
/** Run without any network calls; drift may be partial without a package manifest */
|
|
166
|
+
offline?: boolean;
|
|
167
|
+
/** Path to package-version manifest JSON or ZIP used in offline/privacy workflows */
|
|
168
|
+
packageManifest?: string;
|
|
132
169
|
/** Fail the run if drift score is above this absolute budget */
|
|
133
170
|
driftBudget?: number;
|
|
134
171
|
/** Fail when drift worsens by more than this percentage vs baseline */
|
package/dist/index.js
CHANGED