@vibgrate/cli 0.1.2 → 0.1.3

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/dist/cli.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-AMOJCCF5.js";
5
5
  import {
6
6
  baselineCommand
7
- } from "./chunk-OHAVLM6P.js";
7
+ } from "./chunk-3X3ZMVHI.js";
8
8
  import {
9
9
  VERSION,
10
10
  ensureDir,
@@ -15,7 +15,7 @@ import {
15
15
  scanCommand,
16
16
  writeDefaultConfig,
17
17
  writeTextFile
18
- } from "./chunk-DLRBJYO6.js";
18
+ } from "./chunk-VXEZ7APL.js";
19
19
 
20
20
  // src/cli.ts
21
21
  import { Command as Command6 } 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-AENFLFQT.js");
41
+ const { runBaseline } = await import("./baseline-D5UDXOEJ.js");
42
42
  await runBaseline(rootDir);
43
43
  }
44
44
  console.log("");
package/dist/index.d.ts CHANGED
@@ -69,6 +69,7 @@ interface ScanArtifact {
69
69
  findings: Finding[];
70
70
  baseline?: string;
71
71
  delta?: number;
72
+ extended?: ExtendedScanResults;
72
73
  }
73
74
  interface ScanOptions {
74
75
  out?: string;
@@ -109,6 +110,131 @@ interface VibgrateConfig {
109
110
  };
110
111
  };
111
112
  }
113
+ interface PlatformMatrixResult {
114
+ nodeEngines?: string;
115
+ npmEngines?: string;
116
+ pnpmEngines?: string;
117
+ dotnetTargetFrameworks: string[];
118
+ nativeModules: string[];
119
+ osAssumptions: string[];
120
+ dockerBaseImages: string[];
121
+ nodeVersionFiles: string[];
122
+ }
123
+ interface DependencyRiskResult {
124
+ deprecatedPackages: string[];
125
+ nativeModulePackages: string[];
126
+ totalDependencies: number;
127
+ }
128
+ interface DuplicatedPackage {
129
+ name: string;
130
+ versions: string[];
131
+ consumers: number;
132
+ }
133
+ interface DependencyGraphResult {
134
+ lockfileType: string | null;
135
+ totalUnique: number;
136
+ totalInstalled: number;
137
+ duplicatedPackages: DuplicatedPackage[];
138
+ phantomDependencies: string[];
139
+ }
140
+ interface InventoryItem {
141
+ name: string;
142
+ package: string;
143
+ version: string | null;
144
+ }
145
+ interface ToolingInventoryResult {
146
+ frontend: InventoryItem[];
147
+ metaFrameworks: InventoryItem[];
148
+ bundlers: InventoryItem[];
149
+ css: InventoryItem[];
150
+ backend: InventoryItem[];
151
+ orm: InventoryItem[];
152
+ testing: InventoryItem[];
153
+ lintFormat: InventoryItem[];
154
+ apiMessaging: InventoryItem[];
155
+ observability: InventoryItem[];
156
+ }
157
+ interface BuildDeployResult {
158
+ ci: string[];
159
+ ciWorkflowCount: number;
160
+ docker: {
161
+ dockerfileCount: number;
162
+ baseImages: string[];
163
+ };
164
+ iac: string[];
165
+ releaseTooling: string[];
166
+ packageManagers: string[];
167
+ monorepoTools: string[];
168
+ }
169
+ interface TsModernityResult {
170
+ typescriptVersion: string | null;
171
+ strict: boolean | null;
172
+ noImplicitAny: boolean | null;
173
+ strictNullChecks: boolean | null;
174
+ module: string | null;
175
+ moduleResolution: string | null;
176
+ target: string | null;
177
+ moduleType: 'esm' | 'cjs' | 'mixed' | null;
178
+ exportsField: boolean;
179
+ }
180
+ interface BreakingChangeExposureResult {
181
+ deprecatedPackages: string[];
182
+ legacyPolyfills: string[];
183
+ peerConflictsDetected: boolean;
184
+ exposureScore: number;
185
+ }
186
+ interface FileHotspot {
187
+ path: string;
188
+ bytes: number;
189
+ }
190
+ interface PackageCentrality {
191
+ name: string;
192
+ referencedInProjects: number;
193
+ }
194
+ interface FileHotspotsResult {
195
+ fileCountByExtension: Record<string, number>;
196
+ largestFiles: FileHotspot[];
197
+ totalFiles: number;
198
+ maxDirectoryDepth: number;
199
+ mostUsedPackages: PackageCentrality[];
200
+ }
201
+ interface SecurityPostureResult {
202
+ lockfilePresent: boolean;
203
+ multipleLockfileTypes: boolean;
204
+ gitignoreCoversEnv: boolean;
205
+ gitignoreCoversNodeModules: boolean;
206
+ envFilesTracked: boolean;
207
+ lockfileTypes: string[];
208
+ }
209
+ interface ServiceDependencyItem {
210
+ name: string;
211
+ package: string;
212
+ version: string | null;
213
+ }
214
+ interface ServiceDependenciesResult {
215
+ payment: ServiceDependencyItem[];
216
+ auth: ServiceDependencyItem[];
217
+ email: ServiceDependencyItem[];
218
+ cloud: ServiceDependencyItem[];
219
+ databases: ServiceDependencyItem[];
220
+ messaging: ServiceDependencyItem[];
221
+ observability: ServiceDependencyItem[];
222
+ crm: ServiceDependencyItem[];
223
+ storage: ServiceDependencyItem[];
224
+ search: ServiceDependencyItem[];
225
+ }
226
+ interface ExtendedScanResults {
227
+ platformMatrix?: PlatformMatrixResult;
228
+ dependencyRisk?: DependencyRiskResult;
229
+ dependencyGraph?: DependencyGraphResult;
230
+ toolingInventory?: ToolingInventoryResult;
231
+ buildDeploy?: BuildDeployResult;
232
+ tsModernity?: TsModernityResult;
233
+ breakingChangeExposure?: BreakingChangeExposureResult;
234
+ fileHotspots?: FileHotspotsResult;
235
+ securityPosture?: SecurityPostureResult;
236
+ serviceDependencies?: ServiceDependenciesResult;
237
+ }
112
238
 
113
239
  declare function runScan(rootDir: string, opts: ScanOptions): Promise<ScanArtifact>;
114
240
 
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  formatText,
8
8
  generateFindings,
9
9
  runScan
10
- } from "./chunk-DLRBJYO6.js";
10
+ } from "./chunk-VXEZ7APL.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": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "CLI for measuring upgrade drift across Node & .NET projects",
5
5
  "type": "module",
6
6
  "bin": {