@vibgrate/cli 2026.4.30 → 2026.6.5153336

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,10 +0,0 @@
1
- import {
2
- baselineCommand,
3
- runBaseline
4
- } from "./chunk-2VJCLUTR.js";
5
- import "./chunk-XCIPC2J7.js";
6
- import "./chunk-JQHUH6A3.js";
7
- export {
8
- baselineCommand,
9
- runBaseline
10
- };
@@ -1,31 +0,0 @@
1
- import {
2
- runScan
3
- } from "./chunk-XCIPC2J7.js";
4
- import {
5
- writeJsonFile
6
- } from "./chunk-JQHUH6A3.js";
7
-
8
- // src/commands/baseline.ts
9
- import * as path from "path";
10
- import { Command } from "commander";
11
- import chalk from "chalk";
12
- async function runBaseline(rootDir) {
13
- console.log(chalk.dim("Creating baseline..."));
14
- const artifact = await runScan(rootDir, {
15
- format: "text",
16
- concurrency: 8
17
- });
18
- const baselinePath = path.join(rootDir, ".vibgrate", "baseline.json");
19
- await writeJsonFile(baselinePath, artifact);
20
- console.log(chalk.green("\u2714") + ` Baseline saved to ${chalk.bold(".vibgrate/baseline.json")}`);
21
- console.log(chalk.dim(` Baseline score: ${artifact.drift.score}/100`));
22
- }
23
- var baselineCommand = new Command("baseline").description("Create a drift baseline snapshot").argument("[path]", "Path to baseline", ".").action(async (targetPath) => {
24
- const rootDir = path.resolve(targetPath);
25
- await runBaseline(rootDir);
26
- });
27
-
28
- export {
29
- runBaseline,
30
- baselineCommand
31
- };