@vibgrate/cli 2026.703.7 → 2026.704.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/DOCS.md +22 -0
- package/dist/baseline-64EUPWUH.js +6 -0
- package/dist/{baseline-HBRBXJHJ.js.map → baseline-64EUPWUH.js.map} +1 -1
- package/dist/{chunk-UPPWLMVD.js → chunk-GI6W53LM.js} +3 -3
- package/dist/chunk-GI6W53LM.js.map +1 -0
- package/dist/{chunk-WGXDYBAN.js → chunk-JL7FIC6W.js} +579 -132
- package/dist/chunk-JL7FIC6W.js.map +1 -0
- package/dist/{chunk-ZNVLRKWK.js → chunk-WHQRV66O.js} +3 -3
- package/dist/{chunk-ZNVLRKWK.js.map → chunk-WHQRV66O.js.map} +1 -1
- package/dist/{chunk-QWS7M7DG.js → chunk-YN5OGRWU.js} +12 -12
- package/dist/{chunk-QWS7M7DG.js.map → chunk-YN5OGRWU.js.map} +1 -1
- package/dist/cli.js +115 -50
- package/dist/cli.js.map +1 -1
- package/dist/fs-IPY4FJKH.js +3 -0
- package/dist/fs-IPY4FJKH.js.map +1 -0
- package/dist/index.d.ts +48 -2
- package/dist/index.js +3 -3
- package/package.json +1 -1
- package/dist/baseline-HBRBXJHJ.js +0 -6
- package/dist/chunk-UPPWLMVD.js.map +0 -1
- package/dist/chunk-WGXDYBAN.js.map +0 -1
- package/dist/fs-DSQZWBO5.js +0 -3
- package/dist/fs-DSQZWBO5.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { runCoreScan, writeJsonFile } from './chunk-
|
|
1
|
+
import { runCoreScan, writeJsonFile } from './chunk-YN5OGRWU.js';
|
|
2
2
|
import * as path from 'path';
|
|
3
3
|
import { Command } from 'commander';
|
|
4
4
|
import chalk from 'chalk';
|
|
@@ -27,5 +27,5 @@ var baselineCommand = new Command("baseline").description("Create a drift baseli
|
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
export { baselineCommand, loadAdvancedScanHook, runBaseline };
|
|
30
|
-
//# sourceMappingURL=chunk-
|
|
31
|
-
//# sourceMappingURL=chunk-
|
|
30
|
+
//# sourceMappingURL=chunk-WHQRV66O.js.map
|
|
31
|
+
//# sourceMappingURL=chunk-WHQRV66O.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/reporting/advanced-hook.ts","../src/reporting/commands/baseline.ts"],"names":[],"mappings":";;;;;;AAUA,eAAsB,oBAAA,GAA8D;AAClF,EAAA,OAAO,MAAA;AACT;;;ACLA,eAAsB,YAAY,OAAA,EAAgC;AAChE,EAAA,OAAA,CAAQ,GAAA,CAAI,KAAA,CAAM,GAAA,CAAI,sBAAsB,CAAC,CAAA;AAE7C,EAAA,MAAM,QAAA,GAAW,MAAM,oBAAA,EAAqB;AAC5C,EAAA,MAAM,QAAA,GAAW,MAAM,WAAA,CAAY,OAAA,EAAS;AAAA,IAC1C,MAAA,EAAQ,MAAA;AAAA,IACR,WAAA,EAAa;AAAA,KACZ,QAAQ,CAAA;AAEX,EAAA,MAAM,YAAA,GAAoB,IAAA,CAAA,IAAA,CAAK,OAAA,EAAS,WAAA,EAAa,eAAe,CAAA;AACpE,EAAA,MAAM,aAAA,CAAc,cAAc,QAAQ,CAAA;AAC1C,EAAA,OAAA,CAAQ,GAAA,CAAI,KAAA,CAAM,KAAA,CAAM,QAAG,CAAA,GAAI,sBAAsB,KAAA,CAAM,IAAA,CAAK,yBAAyB,CAAC,CAAA,CAAE,CAAA;AAC5F,EAAA,OAAA,CAAQ,GAAA,CAAI,MAAM,GAAA,CAAI,CAAA,kBAAA,EAAqB,SAAS,KAAA,CAAM,KAAK,MAAM,CAAC,CAAA;AACxE;AAEO,IAAM,eAAA,GAAkB,IAAI,OAAA,CAAQ,UAAU,EAClD,WAAA,CAAY,kCAAkC,CAAA,CAC9C,QAAA,CAAS,UAAU,kBAAA,EAAoB,GAAG,CAAA,CAC1C,MAAA,CAAO,OAAO,UAAA,KAAuB;A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AC3B,CAAC","file":"chunk-WHQRV66O.js","sourcesContent":["import type { AdvancedScanHook } from '../core-open/index.js';\n\n/**\n * Open build: there is no proprietary advanced-analysis hook.\n *\n * In the public, Apache-2.0 distribution every reporting command runs purely on\n * the open base engine (`runCoreScan` from `@vibgrate/core-open`). This shim\n * keeps the call sites in `scan`/`baseline` unchanged while always resolving to\n * `undefined`, so the scan falls back to the open base engine.\n */\nexport async function loadAdvancedScanHook(): Promise<AdvancedScanHook | undefined> {\n return undefined;\n}\n","import * as path from 'node:path';\nimport { Command } from 'commander';\nimport chalk from 'chalk';\nimport { runCoreScan } from '../../core-open/index.js';\nimport { writeJsonFile } from '../utils/fs.js';\nimport { loadAdvancedScanHook } from '../advanced-hook.js';\n\nexport async function runBaseline(rootDir: string): Promise<void> {\n console.log(chalk.dim('Creating baseline...'));\n\n const advanced = await loadAdvancedScanHook();\n const artifact = await runCoreScan(rootDir, {\n format: 'text',\n concurrency: 8,\n }, advanced);\n\n const baselinePath = path.join(rootDir, '.vibgrate', 'baseline.json');\n await writeJsonFile(baselinePath, artifact);\n console.log(chalk.green('✔') + ` Baseline saved to ${chalk.bold('.vibgrate/baseline.json')}`);\n console.log(chalk.dim(` Baseline score: ${artifact.drift.score}/100`));\n}\n\nexport const baselineCommand = new Command('baseline')\n .description('Create a drift baseline snapshot')\n .argument('[path]', 'Path to baseline', '.')\n .action(async (targetPath: string) => {\n const rootDir = path.resolve(targetPath);\n await runBaseline(rootDir);\n });\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { redactUrlCredentials } from './chunk-RXP66R2E.js';
|
|
2
|
-
import { pathExists, readJsonFile, Semaphore, FileCache, quickTreeCount, ensureDir, writeJsonFile, writeTextFile, readTextFile, findPackageJsonFiles, findFiles, findSolutionFiles } from './chunk-
|
|
2
|
+
import { pathExists, readJsonFile, Semaphore, FileCache, quickTreeCount, ensureDir, writeJsonFile, writeTextFile, readTextFile, findPackageJsonFiles, findFiles, findSolutionFiles } from './chunk-GI6W53LM.js';
|
|
3
3
|
import * as path29 from 'path';
|
|
4
4
|
import { basename, dirname } from 'path';
|
|
5
5
|
import chalk3 from 'chalk';
|
|
@@ -20,7 +20,7 @@ import * as zlib from 'zlib';
|
|
|
20
20
|
import { promisify } from 'util';
|
|
21
21
|
|
|
22
22
|
// src/version.ts
|
|
23
|
-
var VERSION = "2026.
|
|
23
|
+
var VERSION = "2026.704.3";
|
|
24
24
|
var TOP_LEVEL_NODE_MODULES = /^node_modules\/((?:@[^/]+\/)?[^/]+)$/;
|
|
25
25
|
function parsePackageLock(json) {
|
|
26
26
|
const out = /* @__PURE__ */ new Map();
|
|
@@ -2332,7 +2332,7 @@ async function scanPythonProjects(rootDir, pypiCache, cache, projectScanTimeout,
|
|
|
2332
2332
|
return results;
|
|
2333
2333
|
}
|
|
2334
2334
|
async function findPythonManifests(rootDir) {
|
|
2335
|
-
const { findFiles: findFiles2 } = await import('./fs-
|
|
2335
|
+
const { findFiles: findFiles2 } = await import('./fs-IPY4FJKH.js');
|
|
2336
2336
|
return findFiles2(rootDir, (name) => PYTHON_MANIFEST_FILES.has(name) || /^requirements.*\.txt$/.test(name));
|
|
2337
2337
|
}
|
|
2338
2338
|
async function scanOnePythonProject(dir, manifestFiles, rootDir, pypiCache, cache, catalog) {
|
|
@@ -2772,7 +2772,7 @@ async function scanJavaProjects(rootDir, mavenCache, cache, projectScanTimeout,
|
|
|
2772
2772
|
return results;
|
|
2773
2773
|
}
|
|
2774
2774
|
async function findJavaManifests(rootDir) {
|
|
2775
|
-
const { findFiles: findFiles2 } = await import('./fs-
|
|
2775
|
+
const { findFiles: findFiles2 } = await import('./fs-IPY4FJKH.js');
|
|
2776
2776
|
return findFiles2(rootDir, (name) => JAVA_MANIFEST_FILES.has(name));
|
|
2777
2777
|
}
|
|
2778
2778
|
async function scanOneJavaProject(dir, manifestFiles, rootDir, mavenCache, cache, catalog) {
|
|
@@ -3177,7 +3177,7 @@ async function scanRubyProjects(rootDir, rubygemsCache, cache, projectScanTimeou
|
|
|
3177
3177
|
return results;
|
|
3178
3178
|
}
|
|
3179
3179
|
async function findRubyManifests(rootDir) {
|
|
3180
|
-
const { findFiles: findFiles2 } = await import('./fs-
|
|
3180
|
+
const { findFiles: findFiles2 } = await import('./fs-IPY4FJKH.js');
|
|
3181
3181
|
return findFiles2(rootDir, (name) => RUBY_MANIFEST_FILES.has(name) || isGemspec(name));
|
|
3182
3182
|
}
|
|
3183
3183
|
async function scanOneRubyProject(dir, manifestFiles, rootDir, rubygemsCache, cache, catalog) {
|
|
@@ -3418,7 +3418,7 @@ async function scanSwiftProjects(rootDir, swiftCache, cache, projectScanTimeout)
|
|
|
3418
3418
|
return results;
|
|
3419
3419
|
}
|
|
3420
3420
|
async function findSwiftManifests(rootDir) {
|
|
3421
|
-
const { findFiles: findFiles2 } = await import('./fs-
|
|
3421
|
+
const { findFiles: findFiles2 } = await import('./fs-IPY4FJKH.js');
|
|
3422
3422
|
return findFiles2(rootDir, (name) => SWIFT_MANIFEST_FILES.has(name));
|
|
3423
3423
|
}
|
|
3424
3424
|
async function scanOneSwiftProject(dir, manifestFile, rootDir, swiftCache, cache) {
|
|
@@ -3654,7 +3654,7 @@ async function scanGoProjects(rootDir, goCache, cache, projectScanTimeout, catal
|
|
|
3654
3654
|
return results;
|
|
3655
3655
|
}
|
|
3656
3656
|
async function findGoManifests(rootDir) {
|
|
3657
|
-
const { findFiles: findFiles2 } = await import('./fs-
|
|
3657
|
+
const { findFiles: findFiles2 } = await import('./fs-IPY4FJKH.js');
|
|
3658
3658
|
return findFiles2(rootDir, (name) => GO_MANIFEST_FILES.has(name));
|
|
3659
3659
|
}
|
|
3660
3660
|
async function scanOneGoProject(dir, manifestFile, rootDir, goCache, cache, catalog) {
|
|
@@ -3940,7 +3940,7 @@ async function scanRustProjects(rootDir, cargoCache, cache, projectScanTimeout)
|
|
|
3940
3940
|
return results;
|
|
3941
3941
|
}
|
|
3942
3942
|
async function findRustManifests(rootDir) {
|
|
3943
|
-
const { findFiles: findFiles2 } = await import('./fs-
|
|
3943
|
+
const { findFiles: findFiles2 } = await import('./fs-IPY4FJKH.js');
|
|
3944
3944
|
return findFiles2(rootDir, (name) => RUST_MANIFEST_FILES.has(name));
|
|
3945
3945
|
}
|
|
3946
3946
|
async function scanOneRustProject(dir, manifestFile, rootDir, cargoCache, cache) {
|
|
@@ -4172,7 +4172,7 @@ async function scanPhpProjects(rootDir, composerCache, cache, projectScanTimeout
|
|
|
4172
4172
|
return results;
|
|
4173
4173
|
}
|
|
4174
4174
|
async function findPhpManifests(rootDir) {
|
|
4175
|
-
const { findFiles: findFiles2 } = await import('./fs-
|
|
4175
|
+
const { findFiles: findFiles2 } = await import('./fs-IPY4FJKH.js');
|
|
4176
4176
|
return findFiles2(rootDir, (name) => PHP_MANIFEST_FILES.has(name));
|
|
4177
4177
|
}
|
|
4178
4178
|
async function scanOnePhpProject(dir, manifestFile, rootDir, composerCache, cache) {
|
|
@@ -4437,7 +4437,7 @@ async function scanDartProjects(rootDir, pubCache, cache, projectScanTimeout) {
|
|
|
4437
4437
|
return results;
|
|
4438
4438
|
}
|
|
4439
4439
|
async function findDartManifests(rootDir) {
|
|
4440
|
-
const { findFiles: findFiles2 } = await import('./fs-
|
|
4440
|
+
const { findFiles: findFiles2 } = await import('./fs-IPY4FJKH.js');
|
|
4441
4441
|
return findFiles2(rootDir, (name) => DART_MANIFEST_FILES.has(name));
|
|
4442
4442
|
}
|
|
4443
4443
|
async function scanOneDartProject(dir, manifestFile, rootDir, pubCache, cache) {
|
|
@@ -11385,5 +11385,5 @@ async function writeTextFile2(filePath, content) {
|
|
|
11385
11385
|
}
|
|
11386
11386
|
|
|
11387
11387
|
export { VERSION, brandProgressBar, buildVersionTimelines, computeRepoFingerprint, computeUpgradeImpact, detectVcs, driftBar, ensureDir2 as ensureDir, fetchScanPreflight, findPackageAnyEcosystem, findPackageTimeline, findVersionCrossings, getChangelogSignals, gitHistoryAvailable, normalizeConstraint, parseDsn, pathExists2 as pathExists, prepareCompressedUpload, projectTypeToVulnEcosystem, readJsonFile2 as readJsonFile, resolveRepositoryName, runCoreScan, severityRank, titleBox, versionSatisfies, writeDefaultConfig, writeJsonFile2 as writeJsonFile, writeTextFile2 as writeTextFile };
|
|
11388
|
-
//# sourceMappingURL=chunk-
|
|
11389
|
-
//# sourceMappingURL=chunk-
|
|
11388
|
+
//# sourceMappingURL=chunk-YN5OGRWU.js.map
|
|
11389
|
+
//# sourceMappingURL=chunk-YN5OGRWU.js.map
|