@vibgrate/cli 1.0.14 → 1.0.16

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,7 +1,7 @@
1
1
  import {
2
2
  runScan,
3
3
  writeJsonFile
4
- } from "./chunk-4N4BALQQ.js";
4
+ } from "./chunk-N37F5EZQ.js";
5
5
 
6
6
  // src/commands/baseline.ts
7
7
  import * as path from "path";
package/dist/cli.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-VXZT34Y5.js";
5
5
  import {
6
6
  baselineCommand
7
- } from "./chunk-POMRKRQN.js";
7
+ } from "./chunk-T5R4TYW4.js";
8
8
  import {
9
9
  VERSION,
10
10
  dsnCommand,
@@ -15,7 +15,7 @@ import {
15
15
  readJsonFile,
16
16
  scanCommand,
17
17
  writeDefaultConfig
18
- } from "./chunk-4N4BALQQ.js";
18
+ } from "./chunk-N37F5EZQ.js";
19
19
 
20
20
  // src/cli.ts
21
21
  import { Command as Command4 } 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-RV3GAW72.js");
41
+ const { runBaseline } = await import("./baseline-SI57J3VQ.js");
42
42
  await runBaseline(rootDir);
43
43
  }
44
44
  console.log("");
@@ -222,7 +222,7 @@ var updateCommand = new Command3("update").description("Update vibgrate to the l
222
222
 
223
223
  // src/cli.ts
224
224
  var program = new Command4();
225
- program.name("vibgrate").description("Continuous Upgrade Drift Intelligence for Node & .NET").version(VERSION);
225
+ program.name("vibgrate").description("Continuous Drift Intelligence for Node & .NET").version(VERSION);
226
226
  program.addCommand(initCommand);
227
227
  program.addCommand(scanCommand);
228
228
  program.addCommand(baselineCommand);
package/dist/index.d.ts CHANGED
@@ -110,6 +110,7 @@ interface ScannersConfig {
110
110
  fileHotspots?: ScannerToggle;
111
111
  securityPosture?: ScannerToggle;
112
112
  serviceDependencies?: ScannerToggle;
113
+ architecture?: ScannerToggle;
113
114
  }
114
115
  interface VibgrateConfig {
115
116
  include?: string[];
@@ -246,6 +247,48 @@ interface ServiceDependenciesResult {
246
247
  storage: ServiceDependencyItem[];
247
248
  search: ServiceDependencyItem[];
248
249
  }
250
+ /** Detected project archetype (fingerprint) */
251
+ type ProjectArchetype = 'nextjs' | 'remix' | 'sveltekit' | 'nuxt' | 'nestjs' | 'express' | 'fastify' | 'hono' | 'koa' | 'serverless' | 'library' | 'cli' | 'monorepo' | 'unknown';
252
+ /** Architectural layer classification */
253
+ type ArchitectureLayer = 'routing' | 'middleware' | 'services' | 'domain' | 'data-access' | 'infrastructure' | 'presentation' | 'config' | 'testing' | 'shared';
254
+ /** Per-layer aggregated data */
255
+ interface LayerSummary {
256
+ /** The layer name */
257
+ layer: ArchitectureLayer;
258
+ /** Number of files in this layer */
259
+ fileCount: number;
260
+ /** Drift score for dependencies used in this layer (0–100) */
261
+ driftScore: number;
262
+ /** Risk level derived from drift score */
263
+ riskLevel: RiskLevel;
264
+ /** Tech stack components detected in this layer */
265
+ techStack: InventoryItem[];
266
+ /** Services/integrations used in this layer */
267
+ services: ServiceDependencyItem[];
268
+ /** Packages referenced in this layer with their drift status */
269
+ packages: LayerPackageRef[];
270
+ }
271
+ /** Package reference within a layer */
272
+ interface LayerPackageRef {
273
+ name: string;
274
+ version: string | null;
275
+ latestStable: string | null;
276
+ majorsBehind: number | null;
277
+ drift: 'current' | 'minor-behind' | 'major-behind' | 'unknown';
278
+ }
279
+ /** Full architecture detection result */
280
+ interface ArchitectureResult {
281
+ /** Detected project archetype */
282
+ archetype: ProjectArchetype;
283
+ /** Confidence of archetype detection (0–1) */
284
+ archetypeConfidence: number;
285
+ /** Per-layer summaries with drift + tech data */
286
+ layers: LayerSummary[];
287
+ /** Total files classified */
288
+ totalClassified: number;
289
+ /** Files that could not be classified */
290
+ unclassified: number;
291
+ }
249
292
  interface ExtendedScanResults {
250
293
  platformMatrix?: PlatformMatrixResult;
251
294
  dependencyRisk?: DependencyRiskResult;
@@ -257,6 +300,7 @@ interface ExtendedScanResults {
257
300
  fileHotspots?: FileHotspotsResult;
258
301
  securityPosture?: SecurityPostureResult;
259
302
  serviceDependencies?: ServiceDependenciesResult;
303
+ architecture?: ArchitectureResult;
260
304
  }
261
305
 
262
306
  declare function runScan(rootDir: string, opts: ScanOptions): Promise<ScanArtifact>;
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  formatText,
8
8
  generateFindings,
9
9
  runScan
10
- } from "./chunk-4N4BALQQ.js";
10
+ } from "./chunk-N37F5EZQ.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": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "description": "CLI for measuring upgrade drift across Node & .NET projects",
5
5
  "type": "module",
6
6
  "bin": {