@vibgrate/cli 2026.704.1 → 2026.708.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/DOCS.md +90 -4
- package/README.md +1 -1
- package/dist/baseline-RRO4NNNF.js +6 -0
- package/dist/{baseline-FESLZK5O.js.map → baseline-RRO4NNNF.js.map} +1 -1
- package/dist/{chunk-YODVLV37.js → chunk-2J7DPIAL.js} +748 -371
- package/dist/chunk-2J7DPIAL.js.map +1 -0
- package/dist/{chunk-W4ANUENJ.js → chunk-FMCI3MXH.js} +3 -3
- package/dist/{chunk-W4ANUENJ.js.map → chunk-FMCI3MXH.js.map} +1 -1
- package/dist/{chunk-RJHYTD62.js → chunk-SRWMZBLG.js} +54 -21
- package/dist/chunk-SRWMZBLG.js.map +1 -0
- package/dist/cli.d.ts +5 -0
- package/dist/cli.js +1594 -336
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +20 -4
- package/dist/index.js +2 -2
- package/dist/parse-worker.d.ts +1 -1
- package/dist/{types-C6ZyQpa9.d.ts → types-CXnp1uGj.d.ts} +33 -1
- package/package.json +3 -3
- package/dist/baseline-FESLZK5O.js +0 -6
- package/dist/chunk-RJHYTD62.js.map +0 -1
- package/dist/chunk-YODVLV37.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { G as GraphNode, a as GraphEdge, A as Area, R as ResolverKind, V as VgGraph, F as FileParse, E as EdgeKind, b as Fact, c as GroundingKind, d as GroundingEdge } from './types-
|
|
2
|
-
export { C as Centrality, D as DerivedBy, e as
|
|
1
|
+
import { G as GraphNode, a as GraphEdge, A as Area, R as ResolverKind, V as VgGraph, F as FileParse, E as EdgeKind, b as Fact, c as GroundingKind, d as GroundingEdge } from './types-CXnp1uGj.js';
|
|
2
|
+
export { C as Centrality, D as DerivedBy, e as EpistemicTier, f as FactConfidence, g as FactKind, h as GraphMeta, N as NodeKind, P as Provenance, S as SCHEMA_VERSION, i as Span, T as Toolchain, U as Unknown } from './types-CXnp1uGj.js';
|
|
3
3
|
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
|
|
4
4
|
|
|
5
|
-
declare const VERSION = "2026.
|
|
5
|
+
declare const VERSION = "2026.708.1";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Analysis stage: importance, centrality, hubs, communities, and surprise.
|
|
@@ -107,9 +107,25 @@ declare function parseJsonc<T = unknown>(text: string): T;
|
|
|
107
107
|
* dropping ambiguity). SCIP/stack-graphs rungs slot in above it later, recorded
|
|
108
108
|
* via `edge.resolution`.
|
|
109
109
|
*/
|
|
110
|
+
/**
|
|
111
|
+
* A reference the heuristic resolver could not connect to a definition — the raw
|
|
112
|
+
* material for `vg unknowns`. `from` is the node id of the enclosing definition
|
|
113
|
+
* (or file) where the reference occurs; `name` is the callee/type it names. We
|
|
114
|
+
* keep the source-relative path so a later precise rung that covers this file can
|
|
115
|
+
* suppress the unknown (the compiler is authoritative there).
|
|
116
|
+
*/
|
|
117
|
+
interface UnresolvedRef {
|
|
118
|
+
from: string;
|
|
119
|
+
name: string;
|
|
120
|
+
kind: 'call' | 'extends' | 'implements';
|
|
121
|
+
count: number;
|
|
122
|
+
fromRel: string;
|
|
123
|
+
}
|
|
110
124
|
interface ResolveResult {
|
|
111
125
|
nodes: GraphNode[];
|
|
112
126
|
edges: GraphEdge[];
|
|
127
|
+
/** References the heuristic rung could not resolve (deduped, sorted). */
|
|
128
|
+
unresolved: UnresolvedRef[];
|
|
113
129
|
/** Diagnostic counts, surfaced by `vg status`. */
|
|
114
130
|
stats: {
|
|
115
131
|
callsResolved: number;
|
|
@@ -1005,7 +1021,7 @@ declare function uninstallAssistant(a: Assistant, root: string, purge: boolean):
|
|
|
1005
1021
|
* import covers the same need offline). CycloneDX/SPDX power the SBOM/AI-BOM seam
|
|
1006
1022
|
* (VG-LOCAL-MODELS §9.4).
|
|
1007
1023
|
*/
|
|
1008
|
-
type ExportFormat = 'json' | 'ndjson' | 'graphml' | 'dot' | 'cypher' | 'md' | 'html' | 'cyclonedx' | 'spdx';
|
|
1024
|
+
type ExportFormat = 'json' | 'ndjson' | 'graphml' | 'dot' | 'cypher' | 'sql' | 'md' | 'html' | 'cyclonedx' | 'spdx';
|
|
1009
1025
|
declare function formatForExt(ext: string): ExportFormat | null;
|
|
1010
1026
|
interface ExportContext {
|
|
1011
1027
|
graph: VgGraph;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { ASSISTANTS, FREE_PACK, GraphIndex, GraphSource, ResourceLimitError, SCHEMA_VERSION, SKIP_DIRS, SKIP_FILES, TOOLS, UsageError, addLibrary, analyze, applyCoverage, applyStaticTestLinkage, assistantById, buildFacts, buildGraph, buildModuleResolver, cosine, coveringTests, createServer, decodeScipIndex, defaultGraphPath, inventory as dependencyInventory, detectRunner, discover, discoverModels, driftCount, driftFor, enrichOnline, exportGraph, findNodes, formatForExt, getNodeEmbeddings, groundGraph, hasDrift, identifierParts, impactOf, installAssistant, isTestFile, libId, loadCatalog, loadCoverage, loadEmbedder, loadGraph, loadSnapshot, nodeById, nodeEmbedText, parseGraph, parseJsonc, probeFreshness, queryGraph, queryGraphSemantic, readDoc, readSavings, recordSaving, refreshIfStale, relativeResolver, renderHtml, renderReport, resolveLib, resolveLimits, resolveOne, saveCatalog, savingsRecorded, scipEdges, serializeGraph, serveStdio, shortestPath, stableStringify, testsToRun, uninstallAssistant, verifyDeterminism, vibgrateDir, writeArtifacts, writeSnapshot } from './chunk-
|
|
1
|
+
export { ASSISTANTS, FREE_PACK, GraphIndex, GraphSource, ResourceLimitError, SCHEMA_VERSION, SKIP_DIRS, SKIP_FILES, TOOLS, UsageError, addLibrary, analyze, applyCoverage, applyStaticTestLinkage, assistantById, buildFacts, buildGraph, buildModuleResolver, cosine, coveringTests, createServer, decodeScipIndex, defaultGraphPath, inventory as dependencyInventory, detectRunner, discover, discoverModels, driftCount, driftFor, enrichOnline, exportGraph, findNodes, formatForExt, getNodeEmbeddings, groundGraph, hasDrift, identifierParts, impactOf, installAssistant, isTestFile, libId, loadCatalog, loadCoverage, loadEmbedder, loadGraph, loadSnapshot, nodeById, nodeEmbedText, parseGraph, parseJsonc, probeFreshness, queryGraph, queryGraphSemantic, readDoc, readSavings, recordSaving, refreshIfStale, relativeResolver, renderHtml, renderReport, resolveLib, resolveLimits, resolveOne, saveCatalog, savingsRecorded, scipEdges, serializeGraph, serveStdio, shortestPath, stableStringify, testsToRun, uninstallAssistant, verifyDeterminism, vibgrateDir, writeArtifacts, writeSnapshot } from './chunk-2J7DPIAL.js';
|
|
2
2
|
export { LANGUAGES, allLanguageIds, grammarsSourceDir, langById, langForExtension, parseSource } from './chunk-X5YT263H.js';
|
|
3
|
-
export { VERSION } from './chunk-
|
|
3
|
+
export { VERSION } from './chunk-SRWMZBLG.js';
|
|
4
4
|
import { redactUrlCredentials, redactSecrets } from './chunk-RXP66R2E.js';
|
|
5
5
|
import './chunk-GI6W53LM.js';
|
|
6
6
|
import { execFileSync } from 'child_process';
|
package/dist/parse-worker.d.ts
CHANGED
|
@@ -8,6 +8,23 @@
|
|
|
8
8
|
*/
|
|
9
9
|
declare const SCHEMA_VERSION: "vg-graph/1.0";
|
|
10
10
|
type ResolverKind = 'scip' | 'stackgraph' | 'tsc' | 'heuristic';
|
|
11
|
+
/** Coarse, honest resolution tier for an edge (see engine/epistemic.ts). */
|
|
12
|
+
type EpistemicTier = 'observed' | 'name-matched' | 'declared';
|
|
13
|
+
/**
|
|
14
|
+
* The toolchain that produced this graph — the reproducibility fingerprint.
|
|
15
|
+
* Everything here deterministically affects graph *content* (parse trees change
|
|
16
|
+
* between grammar releases; resolvers change which edges resolve), so a CI run
|
|
17
|
+
* and a laptop run that disagree can be caught by comparing `fingerprint`.
|
|
18
|
+
* Deliberately excludes the Node/OS version so the graph stays byte-stable
|
|
19
|
+
* across host runtimes; `fingerprint` pins the parse/resolve toolchain only.
|
|
20
|
+
*/
|
|
21
|
+
interface Toolchain {
|
|
22
|
+
schema: string;
|
|
23
|
+
tool: string;
|
|
24
|
+
grammars: string;
|
|
25
|
+
resolvers: ResolverKind[];
|
|
26
|
+
fingerprint: string;
|
|
27
|
+
}
|
|
11
28
|
interface Provenance {
|
|
12
29
|
tool: 'vg';
|
|
13
30
|
version: string;
|
|
@@ -16,6 +33,7 @@ interface Provenance {
|
|
|
16
33
|
deep: boolean;
|
|
17
34
|
semanticModel?: string;
|
|
18
35
|
corpusHash: string;
|
|
36
|
+
toolchain?: Toolchain;
|
|
19
37
|
}
|
|
20
38
|
interface GraphMeta {
|
|
21
39
|
root: string;
|
|
@@ -68,6 +86,7 @@ interface GraphEdge {
|
|
|
68
86
|
dst: string;
|
|
69
87
|
resolution: ResolverKind;
|
|
70
88
|
confidence: number;
|
|
89
|
+
epistemic?: EpistemicTier;
|
|
71
90
|
surprise?: number;
|
|
72
91
|
count?: number;
|
|
73
92
|
}
|
|
@@ -94,6 +113,18 @@ interface Fact {
|
|
|
94
113
|
span: Span;
|
|
95
114
|
}[];
|
|
96
115
|
}
|
|
116
|
+
/**
|
|
117
|
+
* A reference the graph could not resolve — surfaced by `vg unknowns`. Reporting
|
|
118
|
+
* what it *cannot* connect (ranked by blast radius) is the honest inverse of a
|
|
119
|
+
* scanner that hides its unknowns. Only unknowns the precise rungs (tsc/scip)
|
|
120
|
+
* did not supersede are recorded, so a compiler-resolved file never shows here.
|
|
121
|
+
*/
|
|
122
|
+
interface Unknown {
|
|
123
|
+
from: string;
|
|
124
|
+
name: string;
|
|
125
|
+
kind: 'call' | 'extends' | 'implements';
|
|
126
|
+
count: number;
|
|
127
|
+
}
|
|
97
128
|
type GroundingKind = 'should_follow' | 'smells_like' | 'relevant_to';
|
|
98
129
|
interface GroundingEdge {
|
|
99
130
|
src: string;
|
|
@@ -116,6 +147,7 @@ interface VgGraph {
|
|
|
116
147
|
areas: Area[];
|
|
117
148
|
facts?: Fact[];
|
|
118
149
|
grounding?: GroundingEdge[];
|
|
150
|
+
unknowns?: Unknown[];
|
|
119
151
|
}
|
|
120
152
|
|
|
121
153
|
/** A definition extracted from one file (pre-resolution, pre-id). */
|
|
@@ -165,4 +197,4 @@ interface FileParse {
|
|
|
165
197
|
warnings?: string[];
|
|
166
198
|
}
|
|
167
199
|
|
|
168
|
-
export { type Area as A, type Centrality as C, type DerivedBy as D, type EdgeKind as E, type FileParse as F, type GraphNode as G, type NodeKind as N, type Provenance as P, type ResolverKind as R, SCHEMA_VERSION as S, type VgGraph as V, type GraphEdge as a, type Fact as b, type GroundingKind as c, type GroundingEdge as d, type
|
|
200
|
+
export { type Area as A, type Centrality as C, type DerivedBy as D, type EdgeKind as E, type FileParse as F, type GraphNode as G, type NodeKind as N, type Provenance as P, type ResolverKind as R, SCHEMA_VERSION as S, type Toolchain as T, type Unknown as U, type VgGraph as V, type GraphEdge as a, type Fact as b, type GroundingKind as c, type GroundingEdge as d, type EpistemicTier as e, type FactConfidence as f, type FactKind as g, type GraphMeta as h, type Span as i };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibgrate/cli",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.708.1",
|
|
4
4
|
"description": "vg — local codebase intelligence CLI + MCP server for AI coding agents: deterministic code graph, drift reporting, and version-correct library docs (Apache-2.0)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -90,12 +90,12 @@
|
|
|
90
90
|
"devDependencies": {
|
|
91
91
|
"@types/node": "^26.1.0",
|
|
92
92
|
"@types/semver": "^7.5.0",
|
|
93
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
93
|
+
"@typescript-eslint/eslint-plugin": "^8.62.1",
|
|
94
94
|
"@typescript-eslint/parser": "^8.62.1",
|
|
95
95
|
"eslint": "^10.6.0",
|
|
96
96
|
"graphology-types": "^0.24.8",
|
|
97
97
|
"tsup": "^8.0.0",
|
|
98
|
-
"tsx": "^4.
|
|
98
|
+
"tsx": "^4.23.0",
|
|
99
99
|
"vitest": "^4.0.0"
|
|
100
100
|
},
|
|
101
101
|
"engines": {
|