@vibgrate/cli 2026.730.2 → 2026.731.2
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/{agent-33BMKWJC.js → agent-6PPW5GIV.js} +4 -4
- package/dist/{agent-33BMKWJC.js.map → agent-6PPW5GIV.js.map} +1 -1
- package/dist/baseline-ZMHL6DXF.js +9 -0
- package/dist/{baseline-536TQZIB.js.map → baseline-ZMHL6DXF.js.map} +1 -1
- package/dist/{chunk-EGCB5K3P.js → chunk-4CGLQXSI.js} +3 -3
- package/dist/{chunk-EGCB5K3P.js.map → chunk-4CGLQXSI.js.map} +1 -1
- package/dist/chunk-4DZC3ADC.js +42 -0
- package/dist/chunk-4DZC3ADC.js.map +1 -0
- package/dist/chunk-4TC6RJ7U.js +326 -0
- package/dist/chunk-4TC6RJ7U.js.map +1 -0
- package/dist/{chunk-ZW5W627G.js → chunk-5J45MN3K.js} +13 -328
- package/dist/chunk-5J45MN3K.js.map +1 -0
- package/dist/{chunk-IDAQV3NQ.js → chunk-DT4KIVRI.js} +57 -17
- package/dist/chunk-DT4KIVRI.js.map +1 -0
- package/dist/{chunk-NSK25UT2.js → chunk-EX2SH5CT.js} +3 -3
- package/dist/{chunk-NSK25UT2.js.map → chunk-EX2SH5CT.js.map} +1 -1
- package/dist/{chunk-UPH2RJ7L.js → chunk-FF5ZQ6KI.js} +23 -6
- package/dist/chunk-FF5ZQ6KI.js.map +1 -0
- package/dist/{chunk-HWN4P64B.js → chunk-IZNOMGR6.js} +3 -3
- package/dist/{chunk-HWN4P64B.js.map → chunk-IZNOMGR6.js.map} +1 -1
- package/dist/chunk-L6BRBFBP.js +65 -0
- package/dist/chunk-L6BRBFBP.js.map +1 -0
- package/dist/{chunk-WHXVU23K.js → chunk-LZX5NH4V.js} +7 -7
- package/dist/{chunk-WHXVU23K.js.map → chunk-LZX5NH4V.js.map} +1 -1
- package/dist/chunk-NNB2H4BA.js +6 -0
- package/dist/{chunk-BZPZ3OM6.js.map → chunk-NNB2H4BA.js.map} +1 -1
- package/dist/{chunk-KGWEBM2J.js → chunk-Q7HUXIUF.js} +3 -3
- package/dist/{chunk-KGWEBM2J.js.map → chunk-Q7HUXIUF.js.map} +1 -1
- package/dist/{chunk-PHVVVOW7.js → chunk-QWOJO32H.js} +3 -3
- package/dist/{chunk-PHVVVOW7.js.map → chunk-QWOJO32H.js.map} +1 -1
- package/dist/{chunk-RV5DTGYT.js → chunk-RIWLXMMT.js} +3 -3
- package/dist/{chunk-RV5DTGYT.js.map → chunk-RIWLXMMT.js.map} +1 -1
- package/dist/{chunk-LCQILWQL.js → chunk-TNCD5VFX.js} +3 -3
- package/dist/{chunk-LCQILWQL.js.map → chunk-TNCD5VFX.js.map} +1 -1
- package/dist/{chunk-CPX7XP3O.js → chunk-XRN7DQGR.js} +11 -11
- package/dist/{chunk-CPX7XP3O.js.map → chunk-XRN7DQGR.js.map} +1 -1
- package/dist/{chunk-A5LF4VS4.js → chunk-Y44GPOBL.js} +41 -65
- package/dist/chunk-Y44GPOBL.js.map +1 -0
- package/dist/cli.d.ts +5 -1
- package/dist/cli.js +467 -86
- package/dist/cli.js.map +1 -1
- package/dist/ensure-map-C3NEC2GI.js +28 -0
- package/dist/ensure-map-C3NEC2GI.js.map +1 -0
- package/dist/fs-NTQUFCXV.js +4 -0
- package/dist/fs-NTQUFCXV.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +10 -9
- package/dist/index.js.map +1 -1
- package/dist/{interactive-MR7DTVYS.js → interactive-2TAYVEHE.js} +19 -16
- package/dist/interactive-2TAYVEHE.js.map +1 -0
- package/dist/load-A5BGEQWP.js +10 -0
- package/dist/{load-RFQFTTIT.js.map → load-A5BGEQWP.js.map} +1 -1
- package/dist/{run-outcome-EKB6YQIK.js → run-outcome-OSIVMVT7.js} +5 -5
- package/dist/{run-outcome-EKB6YQIK.js.map → run-outcome-OSIVMVT7.js.map} +1 -1
- package/dist/{runtime-session-23RZLEA4.js → runtime-session-UPTC3E6N.js} +7 -7
- package/dist/{runtime-session-23RZLEA4.js.map → runtime-session-UPTC3E6N.js.map} +1 -1
- package/dist/{stream-json-3YOPU3LF.js → stream-json-CFKBL3MR.js} +4 -4
- package/dist/{stream-json-3YOPU3LF.js.map → stream-json-CFKBL3MR.js.map} +1 -1
- package/dist/{vg-mcp-bridge-UZFHPP2Q.js → vg-mcp-bridge-JHRKJBVT.js} +6 -6
- package/dist/{vg-mcp-bridge-UZFHPP2Q.js.map → vg-mcp-bridge-JHRKJBVT.js.map} +1 -1
- package/dist/{vgd-VIPBL7W4.js → vgd-HNPOSXKZ.js} +6 -6
- package/dist/vgd-HNPOSXKZ.js.map +1 -0
- package/package.json +1 -1
- package/dist/baseline-536TQZIB.js +0 -9
- package/dist/chunk-A5LF4VS4.js.map +0 -1
- package/dist/chunk-BZPZ3OM6.js +0 -6
- package/dist/chunk-IDAQV3NQ.js.map +0 -1
- package/dist/chunk-UPH2RJ7L.js.map +0 -1
- package/dist/chunk-ZW5W627G.js.map +0 -1
- package/dist/fs-HNR6LAI7.js +0 -4
- package/dist/fs-HNR6LAI7.js.map +0 -1
- package/dist/interactive-MR7DTVYS.js.map +0 -1
- package/dist/load-RFQFTTIT.js +0 -10
- package/dist/vgd-VIPBL7W4.js.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { FREE_PACK, navigationToolsetConfig, deferredToolNames, HOT_TOOLS } from './chunk-
|
|
1
|
+
import { FREE_PACK, navigationToolsetConfig, deferredToolNames, HOT_TOOLS } from './chunk-RIWLXMMT.js';
|
|
2
2
|
import { edgeId, buildModuleResolver, resolve, applyStaticTestLinkage, nodeId } from './chunk-IPICO2RV.js';
|
|
3
3
|
import { init_cli_invocation, whichOnPath, isInstalledOwnBinary } from './chunk-3LSG7Z4I.js';
|
|
4
|
-
import {
|
|
4
|
+
import { indexFor } from './chunk-EETK7S43.js';
|
|
5
5
|
import { langById, grammarSetVersion, langForExtension, setGrammarsOverride, parseSource } from './chunk-UTNNGKKX.js';
|
|
6
6
|
import { redactSecrets } from './chunk-RXP66R2E.js';
|
|
7
|
-
import { writeGraphIndex, SCHEMA_VERSION, loadGraph } from './chunk-
|
|
8
|
-
import { ensureVibgrateGitignore
|
|
9
|
-
import { VERSION } from './chunk-
|
|
7
|
+
import { writeGraphIndex, SCHEMA_VERSION, loadGraph } from './chunk-IZNOMGR6.js';
|
|
8
|
+
import { ensureVibgrateGitignore } from './chunk-QWOJO32H.js';
|
|
9
|
+
import { VERSION } from './chunk-NNB2H4BA.js';
|
|
10
10
|
import { loadCache, serializeGraph, cacheDir, stableStringify } from './chunk-ZKNB4YH4.js';
|
|
11
11
|
import { shortId, canonicalize, hashString, hashBytes } from './chunk-JFGYT6BI.js';
|
|
12
12
|
import * as fs10 from 'fs';
|
|
@@ -115,6 +115,13 @@ var SKIP_DIRS = /* @__PURE__ */ new Set([
|
|
|
115
115
|
"cdk.out",
|
|
116
116
|
".aws-sam"
|
|
117
117
|
]);
|
|
118
|
+
function isSkippedDirName(name) {
|
|
119
|
+
if (!name) return false;
|
|
120
|
+
if (SKIP_DIRS.has(name)) return true;
|
|
121
|
+
if (name.startsWith(".venv") || name.startsWith("venv-")) return true;
|
|
122
|
+
if (name === "site-packages") return true;
|
|
123
|
+
return false;
|
|
124
|
+
}
|
|
118
125
|
var SKIP_FILES = /* @__PURE__ */ new Set([
|
|
119
126
|
// JavaScript / Node
|
|
120
127
|
"package-lock.json",
|
|
@@ -222,7 +229,7 @@ function discover(options) {
|
|
|
222
229
|
const abs = path10.join(dir, entry.name);
|
|
223
230
|
const rel2 = toPosix(path10.relative(root, abs));
|
|
224
231
|
if (entry.isDirectory()) {
|
|
225
|
-
if (
|
|
232
|
+
if (isSkippedDirName(entry.name)) continue;
|
|
226
233
|
if (rel2 && rootIg.ignores(`${rel2}/`)) continue;
|
|
227
234
|
walk(abs);
|
|
228
235
|
} else if (entry.isFile()) {
|
|
@@ -1575,7 +1582,7 @@ function discoverDocs(options) {
|
|
|
1575
1582
|
const abs = path10.join(dir, entry.name);
|
|
1576
1583
|
const rel2 = toPosix2(path10.relative(root, abs));
|
|
1577
1584
|
if (entry.isDirectory()) {
|
|
1578
|
-
if (
|
|
1585
|
+
if (isSkippedDirName(entry.name)) continue;
|
|
1579
1586
|
if (rel2 && rootIg.ignores(`${rel2}/`) && !rel2.startsWith(".github")) continue;
|
|
1580
1587
|
walk(abs, depth + 1);
|
|
1581
1588
|
} else if (entry.isFile()) {
|
|
@@ -1985,7 +1992,7 @@ function walkManifests(root, dir, ig, found) {
|
|
|
1985
1992
|
const abs = path10.join(dir, entry.name);
|
|
1986
1993
|
const rel2 = path10.relative(root, abs).split(path10.sep).join("/");
|
|
1987
1994
|
if (entry.isDirectory()) {
|
|
1988
|
-
if (
|
|
1995
|
+
if (isSkippedDirName(entry.name)) continue;
|
|
1989
1996
|
if (rel2 && ig.ignores(`${rel2}/`)) continue;
|
|
1990
1997
|
walkManifests(root, abs, ig, found);
|
|
1991
1998
|
} else if (entry.isFile()) {
|
|
@@ -2860,6 +2867,29 @@ function uninstallAssistant(a, root, purge) {
|
|
|
2860
2867
|
}
|
|
2861
2868
|
return removed;
|
|
2862
2869
|
}
|
|
2870
|
+
function isAssistantInstalled(a, root) {
|
|
2871
|
+
if (a.skill && fs10.existsSync(path10.join(root, a.skill))) return true;
|
|
2872
|
+
if (a.mcp) {
|
|
2873
|
+
const file = path10.join(root, a.mcp.file);
|
|
2874
|
+
if (fs10.existsSync(file)) {
|
|
2875
|
+
try {
|
|
2876
|
+
const config = readJson(file);
|
|
2877
|
+
const bag = config[a.mcp.key];
|
|
2878
|
+
if (bag && typeof bag === "object" && bag !== null && "vg" in bag) return true;
|
|
2879
|
+
} catch {
|
|
2880
|
+
}
|
|
2881
|
+
}
|
|
2882
|
+
}
|
|
2883
|
+
if (a.nudge) {
|
|
2884
|
+
const file = path10.join(root, a.nudge.file);
|
|
2885
|
+
if (!fs10.existsSync(file)) return false;
|
|
2886
|
+
const text = readTextSafe(file);
|
|
2887
|
+
if (!text) return false;
|
|
2888
|
+
if (a.nudge.kind === "block") return text.includes(NUDGE_BEGIN);
|
|
2889
|
+
return installedContentVersion(text) !== null || text.includes("# vg") || text.includes("Vibgrate");
|
|
2890
|
+
}
|
|
2891
|
+
return false;
|
|
2892
|
+
}
|
|
2863
2893
|
function writeFileEnsured(file, content) {
|
|
2864
2894
|
fs10.mkdirSync(path10.dirname(file), { recursive: true });
|
|
2865
2895
|
fs10.writeFileSync(file, content);
|
|
@@ -3002,61 +3032,7 @@ function stripMarkers(s) {
|
|
|
3002
3032
|
function escapeRe(s) {
|
|
3003
3033
|
return s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
3004
3034
|
}
|
|
3005
|
-
var REFRESH_LOCK_STALE_MS = 10 * 60 * 1e3;
|
|
3006
|
-
function refreshLockPath(root) {
|
|
3007
|
-
return path10.join(cacheDir(root), "refresh.lock");
|
|
3008
|
-
}
|
|
3009
|
-
async function refreshIfStale(root, opts = {}) {
|
|
3010
|
-
const probe = probeFreshness(root);
|
|
3011
|
-
if (!probe) return { status: "no-snapshot" };
|
|
3012
|
-
if (!hasDrift(probe.drift)) return { status: "fresh" };
|
|
3013
|
-
const lock = refreshLockPath(root);
|
|
3014
|
-
if (!acquireLock(lock, REFRESH_LOCK_STALE_MS)) return { status: "locked" };
|
|
3015
|
-
const start = process.hrtime.bigint();
|
|
3016
|
-
try {
|
|
3017
|
-
const { scope } = probe;
|
|
3018
|
-
const result = await buildGraph({
|
|
3019
|
-
root,
|
|
3020
|
-
only: scope.only,
|
|
3021
|
-
exclude: scope.exclude,
|
|
3022
|
-
paths: scope.paths,
|
|
3023
|
-
deep: scope.deep,
|
|
3024
|
-
noGround: scope.noGround,
|
|
3025
|
-
scip: scope.scip,
|
|
3026
|
-
noScip: scope.noScip,
|
|
3027
|
-
noTsc: scope.noTsc,
|
|
3028
|
-
cluster: scope.cluster,
|
|
3029
|
-
grammarsDir: scope.grammarsDir,
|
|
3030
|
-
inline: opts.inline,
|
|
3031
|
-
jobs: opts.jobs
|
|
3032
|
-
});
|
|
3033
|
-
const wrote = result.graph.provenance.corpusHash !== probe.corpusHash;
|
|
3034
|
-
if (wrote) {
|
|
3035
|
-
const dir = vibgrateDir(root);
|
|
3036
|
-
writeArtifacts(result.graph, {
|
|
3037
|
-
root,
|
|
3038
|
-
graphPath: opts.graphPath,
|
|
3039
|
-
report: fs10.existsSync(path10.join(dir, "GRAPH_REPORT.md")),
|
|
3040
|
-
html: fs10.existsSync(path10.join(dir, "graph.html"))
|
|
3041
|
-
});
|
|
3042
|
-
}
|
|
3043
|
-
writeSnapshot(root, result.graph.provenance.corpusHash, result.fileStats, scope);
|
|
3044
|
-
const ms = Number((process.hrtime.bigint() - start) / 1000000n);
|
|
3045
|
-
return {
|
|
3046
|
-
status: "refreshed",
|
|
3047
|
-
drift: probe.drift,
|
|
3048
|
-
ms,
|
|
3049
|
-
reparsed: result.reparsed,
|
|
3050
|
-
totalFiles: result.totalFiles,
|
|
3051
|
-
wrote
|
|
3052
|
-
};
|
|
3053
|
-
} catch (err) {
|
|
3054
|
-
return { status: "error", message: err.message };
|
|
3055
|
-
} finally {
|
|
3056
|
-
releaseLock(lock);
|
|
3057
|
-
}
|
|
3058
|
-
}
|
|
3059
3035
|
|
|
3060
|
-
export { ASSISTANTS, CliError, ExitCode, ResourceLimitError, SKIP_DIRS, SKIP_FILES, SMALL_REPO_FILES, UsageError, analyze, applyCoverage, assistantById, buildFacts, buildGraph, decodeScipIndex, detectAssistants, detectServeLaunch, discover, driftCount, epistemicBreakdown, groundGraph, hasDrift, installAssistant, loadCoverage, loadSnapshot, probeFreshness,
|
|
3061
|
-
//# sourceMappingURL=chunk-
|
|
3062
|
-
//# sourceMappingURL=chunk-
|
|
3036
|
+
export { ASSISTANTS, CliError, ExitCode, ResourceLimitError, SKIP_DIRS, SKIP_FILES, SMALL_REPO_FILES, UsageError, analyze, applyCoverage, assistantById, buildFacts, buildGraph, decodeScipIndex, detectAssistants, detectServeLaunch, discover, driftCount, epistemicBreakdown, groundGraph, hasDrift, installAssistant, isAssistantInstalled, isSkippedDirName, loadCoverage, loadSnapshot, probeFreshness, refreshInstalledInstructions, resolveLimits, scipEdges, uninstallAssistant, usageError, verifyDeterminism, writeNavigationConfig, writeSnapshot };
|
|
3037
|
+
//# sourceMappingURL=chunk-Y44GPOBL.js.map
|
|
3038
|
+
//# sourceMappingURL=chunk-Y44GPOBL.js.map
|