@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.
- package/DOCS.md +1 -1
- package/dist/{baseline-RV3GAW72.js → baseline-SI57J3VQ.js} +2 -2
- package/dist/{chunk-4N4BALQQ.js → chunk-N37F5EZQ.js} +960 -118
- package/dist/{chunk-POMRKRQN.js → chunk-T5R4TYW4.js} +1 -1
- package/dist/cli.js +4 -4
- package/dist/index.d.ts +44 -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-VXZT34Y5.js";
|
|
5
5
|
import {
|
|
6
6
|
baselineCommand
|
|
7
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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
|
|
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