@vibgrate/cli 2026.818.2 → 2026.819.1
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-X6VYCE63.js → agent-3CKNTCRX.js} +12 -12
- package/dist/{agent-X6VYCE63.js.map → agent-3CKNTCRX.js.map} +1 -1
- package/dist/{approvals-TPQFQSWG.js → approvals-DHTG3HI4.js} +5 -5
- package/dist/{approvals-TPQFQSWG.js.map → approvals-DHTG3HI4.js.map} +1 -1
- package/dist/{attach-G5JUIWIT.js → attach-OCQ3I76L.js} +3 -3
- package/dist/{attach-G5JUIWIT.js.map → attach-OCQ3I76L.js.map} +1 -1
- package/dist/baseline-QDC6OQ2X.js +9 -0
- package/dist/{baseline-DXI64VLW.js.map → baseline-QDC6OQ2X.js.map} +1 -1
- package/dist/{chunk-NJQZRM55.js → chunk-4VAA2XSM.js} +3 -3
- package/dist/{chunk-NJQZRM55.js.map → chunk-4VAA2XSM.js.map} +1 -1
- package/dist/{chunk-YF54UMOU.js → chunk-5O6O7DJH.js} +3 -3
- package/dist/{chunk-YF54UMOU.js.map → chunk-5O6O7DJH.js.map} +1 -1
- package/dist/{chunk-6ABMV74F.js → chunk-5XY4EFR7.js} +4 -4
- package/dist/{chunk-6ABMV74F.js.map → chunk-5XY4EFR7.js.map} +1 -1
- package/dist/{chunk-MRZHNUN7.js → chunk-6F52QR6F.js} +4 -4
- package/dist/{chunk-MRZHNUN7.js.map → chunk-6F52QR6F.js.map} +1 -1
- package/dist/{chunk-ZUOBPKVK.js → chunk-D33M2ARL.js} +3 -3
- package/dist/{chunk-ZUOBPKVK.js.map → chunk-D33M2ARL.js.map} +1 -1
- package/dist/{chunk-X2MQ7UFL.js → chunk-D44PGMH7.js} +9 -9
- package/dist/{chunk-X2MQ7UFL.js.map → chunk-D44PGMH7.js.map} +1 -1
- package/dist/chunk-DHU3OOEI.js +6 -0
- package/dist/{chunk-4NTNMT6T.js.map → chunk-DHU3OOEI.js.map} +1 -1
- package/dist/{chunk-BMOFJIMG.js → chunk-EI5AKDSC.js} +3 -3
- package/dist/{chunk-BMOFJIMG.js.map → chunk-EI5AKDSC.js.map} +1 -1
- package/dist/{chunk-AEJYA6HZ.js → chunk-EIESBKLW.js} +5 -5
- package/dist/{chunk-AEJYA6HZ.js.map → chunk-EIESBKLW.js.map} +1 -1
- package/dist/{chunk-B4EXD5LK.js → chunk-EMEMHNE3.js} +9 -7
- package/dist/chunk-EMEMHNE3.js.map +1 -0
- package/dist/{chunk-VQ5KMHW6.js → chunk-F46Q3AEI.js} +7 -7
- package/dist/{chunk-VQ5KMHW6.js.map → chunk-F46Q3AEI.js.map} +1 -1
- package/dist/{chunk-VMAIDM4K.js → chunk-FFY6NW7P.js} +3 -3
- package/dist/{chunk-VMAIDM4K.js.map → chunk-FFY6NW7P.js.map} +1 -1
- package/dist/{chunk-PRHH4DVO.js → chunk-FQVAQVJV.js} +3 -3
- package/dist/{chunk-PRHH4DVO.js.map → chunk-FQVAQVJV.js.map} +1 -1
- package/dist/{chunk-E3O5UKNA.js → chunk-JGBOYZAF.js} +7 -7
- package/dist/{chunk-E3O5UKNA.js.map → chunk-JGBOYZAF.js.map} +1 -1
- package/dist/{chunk-L2OS4WHT.js → chunk-KFEM6FWP.js} +4 -4
- package/dist/{chunk-L2OS4WHT.js.map → chunk-KFEM6FWP.js.map} +1 -1
- package/dist/{chunk-RHKOUPWT.js → chunk-KKQX3F5F.js} +3 -3
- package/dist/{chunk-RHKOUPWT.js.map → chunk-KKQX3F5F.js.map} +1 -1
- package/dist/{chunk-V6WONSIK.js → chunk-NWWLUFN5.js} +3 -3
- package/dist/{chunk-V6WONSIK.js.map → chunk-NWWLUFN5.js.map} +1 -1
- package/dist/{chunk-KU7FI5EV.js → chunk-O5ASXWKF.js} +3 -3
- package/dist/{chunk-KU7FI5EV.js.map → chunk-O5ASXWKF.js.map} +1 -1
- package/dist/{chunk-V2UGRUTL.js → chunk-OQT3JBWW.js} +11 -11
- package/dist/{chunk-V2UGRUTL.js.map → chunk-OQT3JBWW.js.map} +1 -1
- package/dist/{chunk-NG4KIJW6.js → chunk-PVNALGTG.js} +10 -6
- package/dist/chunk-PVNALGTG.js.map +1 -0
- package/dist/{chunk-2C33WR5O.js → chunk-QMRSCJUN.js} +3 -3
- package/dist/{chunk-2C33WR5O.js.map → chunk-QMRSCJUN.js.map} +1 -1
- package/dist/{chunk-NKLYDSB7.js → chunk-QSLVOVNZ.js} +8 -8
- package/dist/{chunk-NKLYDSB7.js.map → chunk-QSLVOVNZ.js.map} +1 -1
- package/dist/{chunk-6PFHDHOL.js → chunk-TS25WFAT.js} +16 -14
- package/dist/chunk-TS25WFAT.js.map +1 -0
- package/dist/{chunk-5I4VSBWQ.js → chunk-TS7STRMI.js} +370 -111
- package/dist/chunk-TS7STRMI.js.map +1 -0
- package/dist/{chunk-FFXGWFAE.js → chunk-U7A7D2HP.js} +3 -3
- package/dist/{chunk-FFXGWFAE.js.map → chunk-U7A7D2HP.js.map} +1 -1
- package/dist/{chunk-O5IJDMTB.js → chunk-VYSDR2QE.js} +3 -3
- package/dist/{chunk-O5IJDMTB.js.map → chunk-VYSDR2QE.js.map} +1 -1
- package/dist/{chunk-JGA63RGF.js → chunk-WJYJCDNY.js} +11 -11
- package/dist/{chunk-JGA63RGF.js.map → chunk-WJYJCDNY.js.map} +1 -1
- package/dist/{chunk-HF6R73UC.js → chunk-YIEP5GK5.js} +22 -12
- package/dist/chunk-YIEP5GK5.js.map +1 -0
- package/dist/cli.js +61 -67
- package/dist/cli.js.map +1 -1
- package/dist/{daemon-GUMWMKCA.js → daemon-UNL65PTP.js} +10 -11
- package/dist/{daemon-GUMWMKCA.js.map → daemon-UNL65PTP.js.map} +1 -1
- package/dist/embed-worker-main.js +3 -3
- package/dist/{ensure-map-FHDJTO7Y.js → ensure-map-4D2HJ6MA.js} +17 -18
- package/dist/{ensure-map-FHDJTO7Y.js.map → ensure-map-4D2HJ6MA.js.map} +1 -1
- package/dist/federation-SZYVHYB2.js +8 -0
- package/dist/{federation-MDQPO3PW.js.map → federation-SZYVHYB2.js.map} +1 -1
- package/dist/fs-FO3NQHPT.js +4 -0
- package/dist/fs-FO3NQHPT.js.map +1 -0
- package/dist/{graph-backend-W2D3HRRD.js → graph-backend-36EIAAPQ.js} +7 -7
- package/dist/{graph-backend-W2D3HRRD.js.map → graph-backend-36EIAAPQ.js.map} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +17 -18
- package/dist/index.js.map +1 -1
- package/dist/{interactive-2MK4TLRD.js → interactive-ZZMHSZ3W.js} +27 -28
- package/dist/interactive-ZZMHSZ3W.js.map +1 -0
- package/dist/load-6CYLMUT5.js +11 -0
- package/dist/{load-4R4HYMBB.js.map → load-6CYLMUT5.js.map} +1 -1
- package/dist/parse-worker.js +2 -2
- package/dist/{run-outcome-H5GVDDZJ.js → run-outcome-ADEAKXHH.js} +5 -5
- package/dist/{run-outcome-H5GVDDZJ.js.map → run-outcome-ADEAKXHH.js.map} +1 -1
- package/dist/{runtime-session-JBIHHH5N.js → runtime-session-VNSXQAEO.js} +10 -11
- package/dist/{runtime-session-JBIHHH5N.js.map → runtime-session-VNSXQAEO.js.map} +1 -1
- package/dist/{session-N5IU4K5Q.js → session-3A6LKJHD.js} +8 -8
- package/dist/{session-N5IU4K5Q.js.map → session-3A6LKJHD.js.map} +1 -1
- package/dist/{stream-json-4WLSUF6I.js → stream-json-S2TP2VPU.js} +12 -12
- package/dist/{stream-json-4WLSUF6I.js.map → stream-json-S2TP2VPU.js.map} +1 -1
- package/dist/version-SZI6I3A2.js +4 -0
- package/dist/{version-DTEU3SQD.js.map → version-SZI6I3A2.js.map} +1 -1
- package/dist/{vg-mcp-bridge-KDVYIMFX.js → vg-mcp-bridge-IIBEAOEB.js} +12 -11
- package/dist/vg-mcp-bridge-IIBEAOEB.js.map +1 -0
- package/dist/{vgd-M7UOPWLB.js → vgd-KGXIKGOS.js} +9 -10
- package/dist/vgd-KGXIKGOS.js.map +1 -0
- package/package.json +1 -1
- package/dist/baseline-DXI64VLW.js +0 -9
- package/dist/chunk-4NTNMT6T.js +0 -6
- package/dist/chunk-5I4VSBWQ.js.map +0 -1
- package/dist/chunk-6PFHDHOL.js.map +0 -1
- package/dist/chunk-B4EXD5LK.js.map +0 -1
- package/dist/chunk-HF6R73UC.js.map +0 -1
- package/dist/chunk-NG4KIJW6.js.map +0 -1
- package/dist/chunk-POOL355F.js +0 -237
- package/dist/chunk-POOL355F.js.map +0 -1
- package/dist/federation-MDQPO3PW.js +0 -7
- package/dist/fs-TLPOWC2D.js +0 -4
- package/dist/fs-TLPOWC2D.js.map +0 -1
- package/dist/interactive-2MK4TLRD.js.map +0 -1
- package/dist/load-4R4HYMBB.js +0 -11
- package/dist/version-DTEU3SQD.js +0 -4
- package/dist/vg-mcp-bridge-KDVYIMFX.js.map +0 -1
- package/dist/vgd-M7UOPWLB.js.map +0 -1
package/dist/cli.js
CHANGED
|
@@ -1,66 +1,65 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { fetchCatalog, resolveProviders } from './chunk-
|
|
3
|
-
import { telemetryOptOut, StatsSharer, statsEndpoint, isCI } from './chunk-
|
|
4
|
-
import { loadAdvancedScanHook, baselineCommand } from './chunk-
|
|
5
|
-
import { sha256Hex, generateKeypair, dssePae, DSSE_PAYLOAD_TYPE, keyId, registerBuild, LiveStatus, ProgressBar, printLogo, runBuild } from './chunk-
|
|
6
|
-
export { runBuild } from './chunk-
|
|
2
|
+
import { fetchCatalog, resolveProviders } from './chunk-U7A7D2HP.js';
|
|
3
|
+
import { telemetryOptOut, StatsSharer, statsEndpoint, isCI } from './chunk-EI5AKDSC.js';
|
|
4
|
+
import { loadAdvancedScanHook, baselineCommand } from './chunk-5XY4EFR7.js';
|
|
5
|
+
import { sha256Hex, generateKeypair, dssePae, DSSE_PAYLOAD_TYPE, keyId, registerBuild, LiveStatus, ProgressBar, printLogo, runBuild } from './chunk-YIEP5GK5.js';
|
|
6
|
+
export { runBuild } from './chunk-YIEP5GK5.js';
|
|
7
7
|
import { readOrchestratorState, writeOrchestratorState, parseMode, setDefaultMode, recommendMode, activePin, resolveMode, providerForBackend, QUALIFIED_PACKS, pinPack, unpinPack, buildOrchestratorStatus } from './chunk-NZELMYT4.js';
|
|
8
8
|
import { defaultProcessEndpoint, startProcessHostServer, resolveInferenceIsolation } from './chunk-JFE7XCAE.js';
|
|
9
|
-
import { runCodeSession } from './chunk-
|
|
10
|
-
import { CONTEXT_POLICY_VERSION, computeFcsReport, renderFcsReportMarkdown, createTrajectoryCollector, runAgent } from './chunk-
|
|
9
|
+
import { runCodeSession } from './chunk-EIESBKLW.js';
|
|
10
|
+
import { CONTEXT_POLICY_VERSION, computeFcsReport, renderFcsReportMarkdown, createTrajectoryCollector, runAgent } from './chunk-WJYJCDNY.js';
|
|
11
11
|
import './chunk-543E6WDJ.js';
|
|
12
|
-
import './chunk-
|
|
13
|
-
import './chunk-
|
|
12
|
+
import './chunk-D33M2ARL.js';
|
|
13
|
+
import './chunk-VYSDR2QE.js';
|
|
14
14
|
import { parseReasoningEffort, summarizeDiffs, ScriptedProvider } from './chunk-74UBGF4P.js';
|
|
15
15
|
import './chunk-7AVYKZEM.js';
|
|
16
16
|
import { buildModelInstallPlan } from './chunk-I5LP55B6.js';
|
|
17
17
|
import { ensurePackage, ensureUnavailableMessage } from './chunk-3HNPVXUK.js';
|
|
18
|
-
import { vgdVersionSkew, restartVgdIfRunning, stopVgd, registerDaemon, rootOf, requireGraph } from './chunk-
|
|
18
|
+
import { vgdVersionSkew, restartVgdIfRunning, stopVgd, registerDaemon, rootOf, requireGraph } from './chunk-JGBOYZAF.js';
|
|
19
19
|
import { readGlobal, applyGlobalOptions } from './chunk-YENM3HT7.js';
|
|
20
20
|
import { ActivityLog } from './chunk-H5Q4JUY4.js';
|
|
21
21
|
import { disableColor, info, c, json, out } from './chunk-CT5BS56U.js';
|
|
22
22
|
import { init_resolve_ollama, gatherSystemMemory, resolveOllamaBinary, hasOllamaBinary, resolve_ollama_exports } from './chunk-FJG5AXKZ.js';
|
|
23
23
|
import { fmt, estimateModelBytes } from './chunk-7N4Y3E47.js';
|
|
24
|
-
import { isManifest, isDependencyFile, manifestHash, loadScanCache, writeScanCache, manifestKind, findPackageLine, endOfLine, findRuntimeLine } from './chunk-
|
|
24
|
+
import { isManifest, isDependencyFile, manifestHash, loadScanCache, writeScanCache, manifestKind, findPackageLine, endOfLine, findRuntimeLine } from './chunk-F46Q3AEI.js';
|
|
25
25
|
import { clearHostSessionPool, acquireHostSession, generateOnSession, listHostSessions, hostSessionPoolSize } from './chunk-3LOWJSAF.js';
|
|
26
26
|
import { buildIdentifierTrieFromGraph } from './chunk-5HYCB55P.js';
|
|
27
27
|
import './chunk-IS7VTH2Q.js';
|
|
28
28
|
import './chunk-IZDH67DX.js';
|
|
29
|
-
import { DaemonSemanticSession, serveStdio, exportGraph, GraphSource, createServer, formatForExt, RefreshScheduler } from './chunk-
|
|
30
|
-
import { refreshIfStale } from './chunk-
|
|
31
|
-
import { driftCount, ASSISTANTS, detectAssistants, isAssistantInstalled, detectServeLaunch, installAssistant, writeNavigationConfig, uninstallAssistant, buildGraph, writeSnapshot, probeFreshness, assistantById, SMALL_REPO_FILES } from './chunk-
|
|
32
|
-
import { resolveDsn, createWorkspaceDsn, writeStoredCredentials, credentialsPath, findGitRoot, ensureGitignored, gitignoreEntryForCredentials, clearStoredCredentials, parseDsn as parseDsn$1, uploadScanArtifact, dsnCommand, pushCommand, countTokens, shortestPath, pathDisconnect, testsToRun, detectRunner, coveringTests, FREE_PACK, readScanArtifact, publishPrivateLibrary, assessDocQuality, symbolsFromApi, fetchHostedDocsCached, selectForBudget, hostedBase, readStoredCredentials, projectCredentialsPath, homeCredentialsPath } from './chunk-
|
|
29
|
+
import { DaemonSemanticSession, serveStdio, exportGraph, GraphSource, createServer, formatForExt, RefreshScheduler } from './chunk-D44PGMH7.js';
|
|
30
|
+
import { refreshIfStale } from './chunk-EMEMHNE3.js';
|
|
31
|
+
import { driftCount, ASSISTANTS, detectAssistants, isAssistantInstalled, detectServeLaunch, installAssistant, writeNavigationConfig, uninstallAssistant, buildGraph, writeSnapshot, probeFreshness, assistantById, SMALL_REPO_FILES } from './chunk-TS25WFAT.js';
|
|
32
|
+
import { resolveDsn, createWorkspaceDsn, writeStoredCredentials, credentialsPath, findGitRoot, ensureGitignored, gitignoreEntryForCredentials, clearStoredCredentials, parseDsn as parseDsn$1, uploadScanArtifact, dsnCommand, pushCommand, countTokens, shortestPath, pathDisconnect, testsToRun, detectRunner, coveringTests, FREE_PACK, readScanArtifact, publishPrivateLibrary, assessDocQuality, symbolsFromApi, fetchHostedDocsCached, selectForBudget, hostedBase, readStoredCredentials, projectCredentialsPath, homeCredentialsPath } from './chunk-QSLVOVNZ.js';
|
|
33
33
|
import { resolveIngestHost, dashHostForIngestHost, availableRegionIds, ingestHostForRegionId } from './chunk-HTLDXEHW.js';
|
|
34
|
-
import { writeDefaultConfig, parseDsn, detectVcs, computeRepoFingerprint, resolveRepositoryName, fetchScanPreflight, runCoreScan, loadConfig, prepareCompressedUpload, computeDriftScore, titleBox, projectTypeToVulnEcosystem, driftBar, gitHistoryAvailable, buildVersionTimelines, findPackageAnyEcosystem, normalizeConstraint, findVersionCrossings, versionSatisfies, refineArchitectureWithAstRoles, refineArchitectureWithGraph, PROJECT_TYPE_TO_OSV_ECOSYSTEM, fetchRiskySymbols, perDependencyDrift, boundaryProfileRules } from './chunk-
|
|
34
|
+
import { writeDefaultConfig, parseDsn, detectVcs, computeRepoFingerprint, resolveRepositoryName, fetchScanPreflight, runCoreScan, loadConfig, prepareCompressedUpload, computeDriftScore, titleBox, projectTypeToVulnEcosystem, driftBar, gitHistoryAvailable, buildVersionTimelines, findPackageAnyEcosystem, normalizeConstraint, findVersionCrossings, versionSatisfies, refineArchitectureWithAstRoles, refineArchitectureWithGraph, PROJECT_TYPE_TO_OSV_ECOSYSTEM, fetchRiskySymbols, perDependencyDrift, boundaryProfileRules } from './chunk-OQT3JBWW.js';
|
|
35
35
|
import './chunk-VIWZ4QT7.js';
|
|
36
|
-
import { catalogPath, libDir, loadCatalog, driftFor, addLibrary, resolveLib, libId, resolveVersion, readDoc, localPackageDocs, localApiSurface } from './chunk-
|
|
37
|
-
import { recordCliCall, CLI_TOOL_ALIASES, savingsLedgerPath, clearSavings, readSavings, readUsage, readModelSavings, CAPSULE_RANKING_VERSION, SAVINGS_TOOLS, sanitizeClient } from './chunk-
|
|
36
|
+
import { catalogPath, libDir, loadCatalog, driftFor, addLibrary, resolveLib, libId, resolveVersion, readDoc, localPackageDocs, localApiSurface } from './chunk-KKQX3F5F.js';
|
|
37
|
+
import { recordCliCall, CLI_TOOL_ALIASES, savingsLedgerPath, clearSavings, readSavings, readUsage, readModelSavings, CAPSULE_RANKING_VERSION, SAVINGS_TOOLS, sanitizeClient } from './chunk-5O6O7DJH.js';
|
|
38
38
|
import { discoverModels } from './chunk-CQDUBAQY.js';
|
|
39
39
|
import { freeBytesOnVolume, weightStoreDir, listCachedWeights, ensureWeightCached, catalogIntegrityReport } from './chunk-OV4KGXPD.js';
|
|
40
40
|
import { CliError, ExitCode, usageError, engineUnavailable } from './chunk-MS6V5XKB.js';
|
|
41
|
-
import { attachVgd } from './chunk-
|
|
42
|
-
import { pathExists as pathExists$1, parseExcludePatterns } from './chunk-
|
|
41
|
+
import { attachVgd } from './chunk-4VAA2XSM.js';
|
|
42
|
+
import { pathExists as pathExists$1, parseExcludePatterns } from './chunk-PVNALGTG.js';
|
|
43
43
|
import { ensureDir, pathExists, readJsonFile, writeTextFile, writeJsonFile } from './chunk-CRAMOEBE.js';
|
|
44
44
|
import './chunk-5IQBIXHS.js';
|
|
45
45
|
import { init_cli_invocation, resolveCliInvocation, NPX_INVOCATION } from './chunk-EZ7UC5Y5.js';
|
|
46
46
|
import { publishGraphToVgd } from './chunk-LJSJX6U4.js';
|
|
47
47
|
import { isRelevantChange } from './chunk-DBX3DL27.js';
|
|
48
|
-
import { discover, SKIP_DIRS } from './chunk-POOL355F.js';
|
|
49
48
|
import { inventory, enrichOnline, ECOSYSTEMS } from './chunk-6BEBJCK4.js';
|
|
50
49
|
import { resolveOne } from './chunk-J7LKEB2R.js';
|
|
51
|
-
import { queryGraphSemantic, queryGraph, indexFor, impactOf } from './chunk-
|
|
52
|
-
import { loadGraph, loadGraphPreferIndex, SCHEMA_VERSION } from './chunk-
|
|
50
|
+
import { queryGraphSemantic, queryGraph, indexFor, impactOf } from './chunk-6F52QR6F.js';
|
|
51
|
+
import { loadGraph, loadGraphPreferIndex, SCHEMA_VERSION } from './chunk-O5ASXWKF.js';
|
|
53
52
|
import './chunk-E53WBVUQ.js';
|
|
54
53
|
import './chunk-NDNNOAS6.js';
|
|
55
|
-
import './chunk-
|
|
56
|
-
import { resolvedGrammarFiles, TOOLCHAIN_GRAMMARS, resolveToolchainGrammar, grammarSetVersion, fileRolesFromParseCache } from './chunk-
|
|
54
|
+
import { discover, isSkippedDirName } from './chunk-TS7STRMI.js';
|
|
55
|
+
import { resolvedGrammarFiles, TOOLCHAIN_GRAMMARS, resolveToolchainGrammar, grammarSetVersion, fileRolesFromParseCache } from './chunk-FQVAQVJV.js';
|
|
57
56
|
import './chunk-T7RSQ5WD.js';
|
|
58
57
|
import './chunk-6WRG7VDO.js';
|
|
59
|
-
import { embeddingsCached, resolveEmbedModel, loadEmbedder, getNodeEmbeddings, unavailableMessage, countPending, modelCacheInfo, embeddingsPath, clearModelCache, withTimeout } from './chunk-
|
|
60
|
-
import { resetRelevanceProviderCache, loadRelevanceProvider, relevanceModuleDir, resolveGraphPath, analyzeQuestion, loadTopicTags, renderReport, loadGraphFileWithSnapshot, writeArtifacts, vibgrateDir, mapFileExists, ensureVibgrateGitignore } from './chunk-
|
|
58
|
+
import { embeddingsCached, resolveEmbedModel, loadEmbedder, getNodeEmbeddings, unavailableMessage, countPending, modelCacheInfo, embeddingsPath, clearModelCache, withTimeout } from './chunk-QMRSCJUN.js';
|
|
59
|
+
import { resetRelevanceProviderCache, loadRelevanceProvider, relevanceModuleDir, resolveGraphPath, analyzeQuestion, loadTopicTags, renderReport, loadGraphFileWithSnapshot, writeArtifacts, vibgrateDir, mapFileExists, ensureVibgrateGitignore } from './chunk-FFY6NW7P.js';
|
|
61
60
|
import { cacheDir } from './chunk-MVPRPSXU.js';
|
|
62
61
|
import { serializeGraph, stableStringify, parseGraph } from './chunk-O3LABX6I.js';
|
|
63
|
-
import { VERSION } from './chunk-
|
|
62
|
+
import { VERSION } from './chunk-DHU3OOEI.js';
|
|
64
63
|
import './chunk-BWPBB45M.js';
|
|
65
64
|
import { canonicalize, hashString } from './chunk-JFGYT6BI.js';
|
|
66
65
|
import './chunk-BPF3YX2U.js';
|
|
@@ -3393,12 +3392,7 @@ function looksLikeScanArtifactJson(text) {
|
|
|
3393
3392
|
function isPrunedWorkspacePath(relPath) {
|
|
3394
3393
|
if (!relPath || relPath === "." || relPath === "") return false;
|
|
3395
3394
|
const parts = relPath.split(/[/\\]/).filter(Boolean);
|
|
3396
|
-
|
|
3397
|
-
return parts.some((p) => {
|
|
3398
|
-
if (SKIP_DIRS.has(p)) return true;
|
|
3399
|
-
if (p.startsWith(".venv") || p.startsWith("venv-") || p === "site-packages") return true;
|
|
3400
|
-
return false;
|
|
3401
|
-
});
|
|
3395
|
+
return parts.some((p) => isSkippedDirName(p));
|
|
3402
3396
|
}
|
|
3403
3397
|
function pruneArtifactProjects(a) {
|
|
3404
3398
|
const projects = (a.projects ?? []).filter(
|
|
@@ -7614,7 +7608,7 @@ function registerCode(program) {
|
|
|
7614
7608
|
try {
|
|
7615
7609
|
const { parseMode: parseMode2, resolveMode: resolveMode2, readOrchestratorState: readOrchestratorState2, activePin: activePin2 } = await import('./model-orchestrator-LHYPJBFH.js');
|
|
7616
7610
|
const { gatherSystemMemory: gatherSystemMemory2 } = await import('./local-runtime-6SNWKSA7.js');
|
|
7617
|
-
const { loadGraph: loadGraph2 } = await import('./load-
|
|
7611
|
+
const { loadGraph: loadGraph2 } = await import('./load-6CYLMUT5.js');
|
|
7618
7612
|
const state = readOrchestratorState2();
|
|
7619
7613
|
const mode = parseMode2(modeFlag) ?? state.defaultMode ?? void 0;
|
|
7620
7614
|
const pin = mode ? activePin2(mode, state) : null;
|
|
@@ -7699,7 +7693,7 @@ function registerCode(program) {
|
|
|
7699
7693
|
if (!(process.stdin.isTTY && process.stdout.isTTY)) {
|
|
7700
7694
|
throw usageError('say what to change, e.g. `vg code "add a --timeout flag to the scan command"` (guided mode needs an interactive terminal)');
|
|
7701
7695
|
}
|
|
7702
|
-
const { runInteractive } = await import('./interactive-
|
|
7696
|
+
const { runInteractive } = await import('./interactive-ZZMHSZ3W.js');
|
|
7703
7697
|
await runInteractive(
|
|
7704
7698
|
rootOf(global),
|
|
7705
7699
|
global,
|
|
@@ -7729,7 +7723,7 @@ function registerCode(program) {
|
|
|
7729
7723
|
}
|
|
7730
7724
|
if (!instruction && !stdinFirstTurn) throw usageError('say what to change, e.g. `vg code "add a --timeout flag to the scan command"`');
|
|
7731
7725
|
{
|
|
7732
|
-
const { ensureCodeMap } = await import('./ensure-map-
|
|
7726
|
+
const { ensureCodeMap } = await import('./ensure-map-4D2HJ6MA.js');
|
|
7733
7727
|
const mapRoot = rootOf(global);
|
|
7734
7728
|
try {
|
|
7735
7729
|
await ensureCodeMap(mapRoot, global, {
|
|
@@ -7814,20 +7808,20 @@ function registerCode(program) {
|
|
|
7814
7808
|
process.stdout.write(JSON.stringify(line) + "\n");
|
|
7815
7809
|
};
|
|
7816
7810
|
try {
|
|
7817
|
-
const { RunOutcomeRecorder, newOneShotRunId, turnRunId } = await import('./run-outcome-
|
|
7811
|
+
const { RunOutcomeRecorder, newOneShotRunId, turnRunId } = await import('./run-outcome-ADEAKXHH.js');
|
|
7818
7812
|
const primarySlug = route.providers[0]?.model.includes("/") ? route.providers[0].model.split("/")[0] : route.providers[0]?.id;
|
|
7819
|
-
const { runCodeStreamJson, parseHostMessage } = await import('./stream-json-
|
|
7820
|
-
const { nodeCodeFs } = await import('./session-
|
|
7813
|
+
const { runCodeStreamJson, parseHostMessage } = await import('./stream-json-S2TP2VPU.js');
|
|
7814
|
+
const { nodeCodeFs } = await import('./session-3A6LKJHD.js');
|
|
7821
7815
|
const readline6 = await import('readline');
|
|
7822
7816
|
const child = await import('child_process');
|
|
7823
|
-
const { loadOrDiscoverFederation } = await import('./federation-
|
|
7817
|
+
const { loadOrDiscoverFederation } = await import('./federation-SZYVHYB2.js');
|
|
7824
7818
|
const { resolveExecutionEnv } = await import('./execution-env-4MS5AYAN.js');
|
|
7825
7819
|
const { resolveModelExecutionProfile, mergeModelExecutionProfile } = await import('./model-execution-profile-ELWF3Z6H.js');
|
|
7826
|
-
const { startCodeRuntimeSession } = await import('./runtime-session-
|
|
7827
|
-
const { resolveGraphBackend } = await import('./graph-backend-
|
|
7820
|
+
const { startCodeRuntimeSession } = await import('./runtime-session-VNSXQAEO.js');
|
|
7821
|
+
const { resolveGraphBackend } = await import('./graph-backend-36EIAAPQ.js');
|
|
7828
7822
|
const { detectGitRef } = await import('./git-ref-RSRAN4OH.js');
|
|
7829
7823
|
const { repositoryIdFromRoot } = await import('./paths-62AKTFSR.js');
|
|
7830
|
-
const { vgdRequest } = await import('./vgd-
|
|
7824
|
+
const { vgdRequest } = await import('./vgd-KGXIKGOS.js');
|
|
7831
7825
|
const federation = loadOrDiscoverFederation(root3);
|
|
7832
7826
|
const modelProfile = mergeModelExecutionProfile(
|
|
7833
7827
|
resolveModelExecutionProfile({
|
|
@@ -7885,7 +7879,7 @@ ${res.stderr}` : ""),
|
|
|
7885
7879
|
exitCode: res.status ?? 1
|
|
7886
7880
|
};
|
|
7887
7881
|
};
|
|
7888
|
-
const { createVgBuiltinMcpTools, mergeExternalToolsets } = await import('./vg-mcp-bridge-
|
|
7882
|
+
const { createVgBuiltinMcpTools, mergeExternalToolsets } = await import('./vg-mcp-bridge-IIBEAOEB.js');
|
|
7889
7883
|
const vgBuiltin = createVgBuiltinMcpTools({
|
|
7890
7884
|
getGraph: () => graph,
|
|
7891
7885
|
root: root3,
|
|
@@ -7930,7 +7924,7 @@ ${res.stderr}` : ""),
|
|
|
7930
7924
|
files,
|
|
7931
7925
|
indexFile: checkpointIndex
|
|
7932
7926
|
});
|
|
7933
|
-
const { loadApprovalRules, addApprovalRule, ruleForAction, ruleLabel } = await import('./approvals-
|
|
7927
|
+
const { loadApprovalRules, addApprovalRule, ruleForAction, ruleLabel } = await import('./approvals-DHTG3HI4.js');
|
|
7934
7928
|
const { loadProjectRules, nodeRulesReader } = await import('./rules-ASYEUNB5.js');
|
|
7935
7929
|
const projectRules = loadProjectRules(nodeRulesReader(root3));
|
|
7936
7930
|
if (projectRules.sources.length && !global.quiet) {
|
|
@@ -7988,8 +7982,8 @@ ${res.stderr}` : ""),
|
|
|
7988
7982
|
};
|
|
7989
7983
|
try {
|
|
7990
7984
|
if (opts.session) {
|
|
7991
|
-
const { runCodeStreamJsonSession, STREAM_JSON_PROTOCOL_VERSION } = await import('./stream-json-
|
|
7992
|
-
const { runAgent: runAgent2 } = await import('./agent-
|
|
7985
|
+
const { runCodeStreamJsonSession, STREAM_JSON_PROTOCOL_VERSION } = await import('./stream-json-S2TP2VPU.js');
|
|
7986
|
+
const { runAgent: runAgent2 } = await import('./agent-3CKNTCRX.js');
|
|
7993
7987
|
const {
|
|
7994
7988
|
condenseSession,
|
|
7995
7989
|
loadLatestSession,
|
|
@@ -8000,7 +7994,7 @@ ${res.stderr}` : ""),
|
|
|
8000
7994
|
sessionsDir,
|
|
8001
7995
|
summarizeSession
|
|
8002
7996
|
} = await import('./session-store-AQUORKWB.js');
|
|
8003
|
-
const { VERSION: VERSION2 } = await import('./version-
|
|
7997
|
+
const { VERSION: VERSION2 } = await import('./version-SZI6I3A2.js');
|
|
8004
7998
|
const resumedRecord = typeof opts.continue === "string" ? loadSession(mainRoot, opts.continue) : opts.continue ? loadLatestSession(mainRoot) : void 0;
|
|
8005
7999
|
if (typeof opts.continue === "string" && !resumedRecord) {
|
|
8006
8000
|
emitStream({
|
|
@@ -8212,8 +8206,8 @@ ${res.stderr}` : ""),
|
|
|
8212
8206
|
if (!autonomous && !tty) {
|
|
8213
8207
|
throw usageError("the agent approves each edit/command \u2014 run in a terminal to approve interactively, or pass --auto to run autonomously (or --single for a one-shot diff).");
|
|
8214
8208
|
}
|
|
8215
|
-
const { agentTask } = await import('./interactive-
|
|
8216
|
-
const { nodeCodeFs } = await import('./session-
|
|
8209
|
+
const { agentTask } = await import('./interactive-ZZMHSZ3W.js');
|
|
8210
|
+
const { nodeCodeFs } = await import('./session-3A6LKJHD.js');
|
|
8217
8211
|
const { TtyPrompter } = await import('./ui-K7D3BCHD.js');
|
|
8218
8212
|
let priorSummary;
|
|
8219
8213
|
let priorInstruction;
|
|
@@ -8228,7 +8222,7 @@ ${res.stderr}` : ""),
|
|
|
8228
8222
|
}
|
|
8229
8223
|
}
|
|
8230
8224
|
const prompter = tty ? new TtyPrompter() : void 0;
|
|
8231
|
-
const { createVgBuiltinMcpTools, mergeExternalToolsets } = await import('./vg-mcp-bridge-
|
|
8225
|
+
const { createVgBuiltinMcpTools, mergeExternalToolsets } = await import('./vg-mcp-bridge-IIBEAOEB.js');
|
|
8232
8226
|
const vgBuiltin = createVgBuiltinMcpTools({
|
|
8233
8227
|
getGraph: () => graph,
|
|
8234
8228
|
root: root3,
|
|
@@ -8249,14 +8243,14 @@ ${res.stderr}` : ""),
|
|
|
8249
8243
|
}
|
|
8250
8244
|
const mcpTools = mergeExternalToolsets(vgBuiltin, projectMcp);
|
|
8251
8245
|
try {
|
|
8252
|
-
const { loadFederation } = await import('./federation-
|
|
8246
|
+
const { loadFederation } = await import('./federation-SZYVHYB2.js');
|
|
8253
8247
|
const { resolveExecutionEnv } = await import('./execution-env-4MS5AYAN.js');
|
|
8254
8248
|
const { resolveModelExecutionProfile, mergeModelExecutionProfile } = await import('./model-execution-profile-ELWF3Z6H.js');
|
|
8255
|
-
const { startCodeRuntimeSession } = await import('./runtime-session-
|
|
8256
|
-
const { resolveGraphBackend } = await import('./graph-backend-
|
|
8249
|
+
const { startCodeRuntimeSession } = await import('./runtime-session-VNSXQAEO.js');
|
|
8250
|
+
const { resolveGraphBackend } = await import('./graph-backend-36EIAAPQ.js');
|
|
8257
8251
|
const { detectGitRef } = await import('./git-ref-RSRAN4OH.js');
|
|
8258
8252
|
const { repositoryIdFromRoot } = await import('./paths-62AKTFSR.js');
|
|
8259
|
-
const { vgdRequest } = await import('./vgd-
|
|
8253
|
+
const { vgdRequest } = await import('./vgd-KGXIKGOS.js');
|
|
8260
8254
|
const federation = loadFederation(root3);
|
|
8261
8255
|
const modelProfile = mergeModelExecutionProfile(
|
|
8262
8256
|
resolveModelExecutionProfile({
|
|
@@ -9156,7 +9150,7 @@ var LANGUAGE_EXTENSIONS = {
|
|
|
9156
9150
|
cobol: [".cbl", ".cob", ".cpy", ".cob85", ".cobol"],
|
|
9157
9151
|
vb6: [".vbp", ".bas", ".cls", ".frm", ".ctl", ".dsr"]
|
|
9158
9152
|
};
|
|
9159
|
-
var
|
|
9153
|
+
var SKIP_DIRS = /* @__PURE__ */ new Set([
|
|
9160
9154
|
"node_modules",
|
|
9161
9155
|
".git",
|
|
9162
9156
|
".vibgrate",
|
|
@@ -9284,7 +9278,7 @@ function registerHcs(program) {
|
|
|
9284
9278
|
const absChild = path46.join(abs, entry.name);
|
|
9285
9279
|
const relChild = rel ? `${rel}/${entry.name}` : entry.name;
|
|
9286
9280
|
if (entry.isDirectory()) {
|
|
9287
|
-
if (!
|
|
9281
|
+
if (!SKIP_DIRS.has(entry.name)) walk2(absChild, relChild);
|
|
9288
9282
|
continue;
|
|
9289
9283
|
}
|
|
9290
9284
|
if (!entry.isFile()) continue;
|
|
@@ -9440,7 +9434,7 @@ var initCommand = new Command("init").description("Initialize vibgrate in a proj
|
|
|
9440
9434
|
console.log(chalk7.green("\u2714") + ` Created ${chalk7.bold("vibgrate.config.ts")}`);
|
|
9441
9435
|
}
|
|
9442
9436
|
if (opts.baseline) {
|
|
9443
|
-
const { runBaseline } = await import('./baseline-
|
|
9437
|
+
const { runBaseline } = await import('./baseline-QDC6OQ2X.js');
|
|
9444
9438
|
await runBaseline(rootDir);
|
|
9445
9439
|
}
|
|
9446
9440
|
console.log("");
|
|
@@ -9973,7 +9967,7 @@ function reportStandards(rootDir) {
|
|
|
9973
9967
|
}
|
|
9974
9968
|
async function printRuntimeSnapshot(rootDir, opts, already) {
|
|
9975
9969
|
try {
|
|
9976
|
-
const { attachVgd: attachVgd2 } = await import('./attach-
|
|
9970
|
+
const { attachVgd: attachVgd2 } = await import('./attach-OCQ3I76L.js');
|
|
9977
9971
|
const { vgdRequest } = await import('./client-UQIELEEZ.js');
|
|
9978
9972
|
const { formatSemanticProgress } = await import('./semantic-status-2JFLIQQJ.js');
|
|
9979
9973
|
let repositoryId = already?.repositoryId;
|
|
@@ -10182,7 +10176,7 @@ var scanCommand = new Command("scan").description("Scan a project for upgrade dr
|
|
|
10182
10176
|
const advanced = await loadAdvancedScanHook();
|
|
10183
10177
|
const artifact = await runCoreScan(rootDir, scanOpts, advanced);
|
|
10184
10178
|
if (wantGraph && builtGraph) {
|
|
10185
|
-
const { attachVgd: attachVgd2 } = await import('./attach-
|
|
10179
|
+
const { attachVgd: attachVgd2 } = await import('./attach-OCQ3I76L.js');
|
|
10186
10180
|
const { ActivityLog: ActivityLog2 } = await import('./activity-MF2GNYAI.js');
|
|
10187
10181
|
const activity = new ActivityLog2();
|
|
10188
10182
|
const attached = await activity.time(
|
|
@@ -10309,7 +10303,7 @@ var WATCHED_FILES = /* @__PURE__ */ new Set([
|
|
|
10309
10303
|
"packages.lock.json"
|
|
10310
10304
|
]);
|
|
10311
10305
|
var WATCHED_EXT = /\.(cs|fs)proj$/i;
|
|
10312
|
-
var
|
|
10306
|
+
var SKIP_DIRS2 = /* @__PURE__ */ new Set([
|
|
10313
10307
|
"node_modules",
|
|
10314
10308
|
".git",
|
|
10315
10309
|
"dist",
|
|
@@ -10350,7 +10344,7 @@ function scanStaleness(rootDir, artifactPath) {
|
|
|
10350
10344
|
scanned++;
|
|
10351
10345
|
if (scanned > MAX_ENTRIES2) break;
|
|
10352
10346
|
if (e.isDirectory()) {
|
|
10353
|
-
if (!
|
|
10347
|
+
if (!SKIP_DIRS2.has(e.name) && !e.name.startsWith(".")) walk2(path46.join(dir, e.name), depth + 1);
|
|
10354
10348
|
continue;
|
|
10355
10349
|
}
|
|
10356
10350
|
if (!WATCHED_FILES.has(e.name) && !WATCHED_EXT.test(e.name)) continue;
|
|
@@ -10427,7 +10421,7 @@ function extractContracts(content, pkg, ecosystem) {
|
|
|
10427
10421
|
}
|
|
10428
10422
|
|
|
10429
10423
|
// src/reporting/planning/usage.ts
|
|
10430
|
-
var
|
|
10424
|
+
var SKIP_DIRS3 = /* @__PURE__ */ new Set([
|
|
10431
10425
|
"node_modules",
|
|
10432
10426
|
".git",
|
|
10433
10427
|
"dist",
|
|
@@ -10502,7 +10496,7 @@ function analyzeTree(root3, packages) {
|
|
|
10502
10496
|
for (const entry of entries) {
|
|
10503
10497
|
if (filesSeen >= MAX_FILES) return;
|
|
10504
10498
|
if (entry.isDirectory()) {
|
|
10505
|
-
if (
|
|
10499
|
+
if (SKIP_DIRS3.has(entry.name) || entry.name.startsWith(".")) continue;
|
|
10506
10500
|
walk2(path46.join(dir, entry.name), depth + 1);
|
|
10507
10501
|
continue;
|
|
10508
10502
|
}
|
|
@@ -11088,7 +11082,7 @@ ${String(err)}` }));
|
|
|
11088
11082
|
async function releaseWindowsFileLocks(cwd, keepVersion) {
|
|
11089
11083
|
reapAndReport(cwd, keepVersion);
|
|
11090
11084
|
try {
|
|
11091
|
-
const { vgdSocketPath } = await import('./vgd-
|
|
11085
|
+
const { vgdSocketPath } = await import('./vgd-KGXIKGOS.js');
|
|
11092
11086
|
const result = await stopVgd(vgdSocketPath());
|
|
11093
11087
|
if (result === "stopped") {
|
|
11094
11088
|
console.log(chalk7.dim("Stopped the vgd daemon so its files can be replaced \u2014 it restarts on the next command."));
|
|
@@ -11214,7 +11208,7 @@ var updateCommand = new Command("update").description("Update vibgrate to the la
|
|
|
11214
11208
|
);
|
|
11215
11209
|
async function rewarmVgdAndReport(cwd) {
|
|
11216
11210
|
try {
|
|
11217
|
-
const { vgdIsRunning, vgdRequest } = await import('./vgd-
|
|
11211
|
+
const { vgdIsRunning, vgdRequest } = await import('./vgd-KGXIKGOS.js');
|
|
11218
11212
|
if (!await vgdIsRunning()) return;
|
|
11219
11213
|
const loaded = await vgdRequest({ op: "load-graph", root: cwd });
|
|
11220
11214
|
if (!loaded.ok || !("stored" in loaded)) return;
|