@vibgrate/cli 2026.704.3 → 2026.708.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/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-C6ZyQpa9.js';
2
- export { C as Centrality, D as DerivedBy, e as FactConfidence, f as FactKind, g as GraphMeta, N as NodeKind, P as Provenance, S as SCHEMA_VERSION, h as Span } from './types-C6ZyQpa9.js';
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.704.3";
5
+ declare const VERSION = "2026.708.2";
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;
@@ -880,9 +896,17 @@ interface LocalModel {
880
896
  }
881
897
  declare function discoverModels(home?: string): LocalModel[];
882
898
 
899
+ /**
900
+ * Outcome of a recorded navigation call:
901
+ * - `complete` — returned results, with nothing capped or paginated;
902
+ * - `partial` — returned results, but more were available/truncated;
903
+ * - `miss` — returned no result (no match, not-found, not-connected).
904
+ */
905
+ type Outcome = 'complete' | 'partial' | 'miss';
883
906
  interface SavingEntry {
884
907
  ts: number;
885
908
  tool: string;
909
+ outcome?: Outcome;
886
910
  vgTokens: number;
887
911
  baselineTokens: number;
888
912
  }
@@ -1005,7 +1029,7 @@ declare function uninstallAssistant(a: Assistant, root: string, purge: boolean):
1005
1029
  * import covers the same need offline). CycloneDX/SPDX power the SBOM/AI-BOM seam
1006
1030
  * (VG-LOCAL-MODELS §9.4).
1007
1031
  */
1008
- type ExportFormat = 'json' | 'ndjson' | 'graphml' | 'dot' | 'cypher' | 'md' | 'html' | 'cyclonedx' | 'spdx';
1032
+ type ExportFormat = 'json' | 'ndjson' | 'graphml' | 'dot' | 'cypher' | 'sql' | 'md' | 'html' | 'cyclonedx' | 'spdx';
1009
1033
  declare function formatForExt(ext: string): ExportFormat | null;
1010
1034
  interface ExportContext {
1011
1035
  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-JL7FIC6W.js';
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-AWEAREOE.js';
2
2
  export { LANGUAGES, allLanguageIds, grammarsSourceDir, langById, langForExtension, parseSource } from './chunk-X5YT263H.js';
3
- export { VERSION } from './chunk-YN5OGRWU.js';
3
+ export { VERSION } from './chunk-ICBBG6U3.js';
4
4
  import { redactUrlCredentials, redactSecrets } from './chunk-RXP66R2E.js';
5
5
  import './chunk-GI6W53LM.js';
6
6
  import { execFileSync } from 'child_process';
@@ -1,4 +1,4 @@
1
- import { F as FileParse } from './types-C6ZyQpa9.js';
1
+ import { F as FileParse } from './types-CXnp1uGj.js';
2
2
 
3
3
  /**
4
4
  * tinypool worker entry. Receives a chunk of files, reads and parses each, and
@@ -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 FactConfidence as e, type FactKind as f, type GraphMeta as g, type Span as h };
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.704.3",
3
+ "version": "2026.708.2",
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.61.0",
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.22.4",
98
+ "tsx": "^4.23.0",
99
99
  "vitest": "^4.0.0"
100
100
  },
101
101
  "engines": {
@@ -1,6 +0,0 @@
1
- export { baselineCommand, runBaseline } from './chunk-WHQRV66O.js';
2
- import './chunk-YN5OGRWU.js';
3
- import './chunk-RXP66R2E.js';
4
- import './chunk-GI6W53LM.js';
5
- //# sourceMappingURL=baseline-64EUPWUH.js.map
6
- //# sourceMappingURL=baseline-64EUPWUH.js.map