@vibgrate/cli 2026.728.4 → 2026.729.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.
Files changed (46) hide show
  1. package/dist/baseline-MROWBNK7.js +9 -0
  2. package/dist/{baseline-QD4HVNVJ.js.map → baseline-MROWBNK7.js.map} +1 -1
  3. package/dist/{chunk-EVWW3BPM.js → chunk-2JV3J5NF.js} +3 -3
  4. package/dist/{chunk-EVWW3BPM.js.map → chunk-2JV3J5NF.js.map} +1 -1
  5. package/dist/{chunk-DBOT2ELH.js → chunk-3IJB5UJI.js} +3 -3
  6. package/dist/{chunk-DBOT2ELH.js.map → chunk-3IJB5UJI.js.map} +1 -1
  7. package/dist/{chunk-HY2RVURA.js → chunk-CF2MLSOV.js} +3 -3
  8. package/dist/{chunk-HY2RVURA.js.map → chunk-CF2MLSOV.js.map} +1 -1
  9. package/dist/{chunk-LYDH2PHN.js → chunk-EEVZVXT2.js} +6 -5
  10. package/dist/chunk-EEVZVXT2.js.map +1 -0
  11. package/dist/chunk-NQ4FSRXL.js +6 -0
  12. package/dist/chunk-NQ4FSRXL.js.map +1 -0
  13. package/dist/{chunk-RCBMY7CR.js → chunk-OIWHR57Q.js} +3 -5
  14. package/dist/chunk-OIWHR57Q.js.map +1 -0
  15. package/dist/{chunk-SA4BMEU6.js → chunk-QS5BTBRX.js} +3 -3
  16. package/dist/{chunk-SA4BMEU6.js.map → chunk-QS5BTBRX.js.map} +1 -1
  17. package/dist/{chunk-ZU7VD4QL.js → chunk-TQFY6OSV.js} +7 -7
  18. package/dist/chunk-TQFY6OSV.js.map +1 -0
  19. package/dist/{chunk-RYNAK4LK.js → chunk-YKVNMNEM.js} +178 -39
  20. package/dist/chunk-YKVNMNEM.js.map +1 -0
  21. package/dist/{chunk-WDJNUC6V.js → chunk-YMHQZ24Q.js} +5 -5
  22. package/dist/{chunk-WDJNUC6V.js.map → chunk-YMHQZ24Q.js.map} +1 -1
  23. package/dist/cli.js +175 -153
  24. package/dist/cli.js.map +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +6 -5
  27. package/dist/index.js.map +1 -1
  28. package/dist/{interactive-32LSIBRG.js → interactive-R5VQGDWP.js} +11 -10
  29. package/dist/interactive-R5VQGDWP.js.map +1 -0
  30. package/dist/load-WKIZF2AK.js +9 -0
  31. package/dist/{load-SEFJA3M5.js.map → load-WKIZF2AK.js.map} +1 -1
  32. package/dist/{runtime-session-4IACVDSY.js → runtime-session-5NRB6BTR.js} +6 -5
  33. package/dist/{runtime-session-4IACVDSY.js.map → runtime-session-5NRB6BTR.js.map} +1 -1
  34. package/dist/{vg-mcp-bridge-E4SJFL7Q.js → vg-mcp-bridge-YXQS6HTO.js} +5 -4
  35. package/dist/vg-mcp-bridge-YXQS6HTO.js.map +1 -0
  36. package/dist/{vgd-KDQFS33M.js → vgd-KC5RCOP6.js} +5 -4
  37. package/dist/{vgd-KDQFS33M.js.map → vgd-KC5RCOP6.js.map} +1 -1
  38. package/package.json +2 -1
  39. package/dist/baseline-QD4HVNVJ.js +0 -8
  40. package/dist/chunk-LYDH2PHN.js.map +0 -1
  41. package/dist/chunk-RCBMY7CR.js.map +0 -1
  42. package/dist/chunk-RYNAK4LK.js.map +0 -1
  43. package/dist/chunk-ZU7VD4QL.js.map +0 -1
  44. package/dist/interactive-32LSIBRG.js.map +0 -1
  45. package/dist/load-SEFJA3M5.js +0 -8
  46. package/dist/vg-mcp-bridge-E4SJFL7Q.js.map +0 -1
@@ -1,8 +1,8 @@
1
- import { refreshIfStale } from './chunk-WDJNUC6V.js';
2
- import { TOOLS, renderToolResult, warmEmbedderInBackground, countTokens } from './chunk-SA4BMEU6.js';
3
- import { VERSION } from './chunk-RCBMY7CR.js';
1
+ import { refreshIfStale } from './chunk-YMHQZ24Q.js';
2
+ import { TOOLS, renderToolResult, warmEmbedderInBackground, countTokens } from './chunk-QS5BTBRX.js';
4
3
  import { sanitizeClient, recordSaving, SAVINGS_TOOLS, PER_FILE_TOKENS } from './chunk-US2DAKCM.js';
5
- import { loadGraphPreferIndex, renderHtml, renderReport } from './chunk-RYNAK4LK.js';
4
+ import { mapFileStat, loadGraphPreferIndex, renderHtml, renderReport } from './chunk-YKVNMNEM.js';
5
+ import { VERSION } from './chunk-NQ4FSRXL.js';
6
6
  import { parseGraph, slimGraphForExport, serializeGraph } from './chunk-ZKNB4YH4.js';
7
7
  import * as fs from 'fs';
8
8
  import * as path from 'path';
@@ -39,7 +39,7 @@ var GraphSource = class {
39
39
  /** Current graph: auto-refreshed if the tree drifted, reloaded if the file changed. */
40
40
  async get() {
41
41
  if (this.refresh) await this.maybeRefresh();
42
- const stat = fs.statSync(this.graphPath);
42
+ const stat = mapFileStat(this.graphPath);
43
43
  if (stat.mtimeMs !== this.cachedMtimeMs || !this.cached) {
44
44
  const preferred = loadGraphPreferIndex(this.root, this.graphPath);
45
45
  this.cached = preferred ? preferred.graph : parseGraph(fs.readFileSync(this.graphPath, "utf8"));
@@ -421,5 +421,5 @@ function spdx(ctx) {
421
421
  }
422
422
 
423
423
  export { GraphSource, createServer, exportGraph, formatForExt, serveStdio };
424
- //# sourceMappingURL=chunk-ZU7VD4QL.js.map
425
- //# sourceMappingURL=chunk-ZU7VD4QL.js.map
424
+ //# sourceMappingURL=chunk-TQFY6OSV.js.map
425
+ //# sourceMappingURL=chunk-TQFY6OSV.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/mcp/server.ts","../src/engine/export.ts"],"names":[],"mappings":";;;;;;;;;;;;AAsCA,IAAM,iBAAA,GAAoB,GAAA;AAE1B,IAAM,qBAAA,GAAwB,GAAA;AAE9B,IAAM,iBAAA,GAAoB,EAAA;AAUnB,IAAM,iBAAA,GAAoB,GAAA;AAEjC,IAAM,mBAAA,GAAsB,GAAA;AA8CrB,IAAM,cAAN,MAAkB;AAAA,EAYvB,YACW,SAAA,EACQ,OAAA,GAAU,KAAA,EAEV,MAAA,GAA4B,EAAC,EAC9C;AAJS,IAA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A,EAAa,CAAA,CAAE,SAAA,IAAa,CAAA,CAAE,QAAA;AAAA,IAC9B,gBAAA,EAAkB;AAAA,GACpB,CAAE,CAAA;AACF,EAAA,MAAM,GAAA,GAAM;AAAA,IACV,WAAA,EAAa,UAAA;AAAA,IACb,WAAA,EAAa,SAAA;AAAA,IACb,MAAA,EAAQ,kBAAA;AAAA,IACR,IAAA,EAAM,SAAA;AAAA,IACN,YAAA,EAAc,EAAE,OAAA,EAAS,GAAA,CAAI,WAAA,EAAa,QAAA,EAAU,CAAC,CAAA,SAAA,EAAY,GAAA,CAAI,KAAA,CAAM,UAAA,CAAW,OAAO,EAAE,CAAA,EAAE;AAAA,IACjG;AAAA,GACF;AACA,EAAA,OAAO,IAAA,CAAK,SAAA,CAAU,GAAA,EAAK,IAAA,EAAM,CAAC,CAAA,GAAI,IAAA;AACxC","file":"chunk-TQFY6OSV.js","sourcesContent":["import * as fs from 'node:fs';\nimport * as path from 'node:path';\nimport { Server } from '@modelcontextprotocol/sdk/server/index.js';\nimport { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';\nimport { ListToolsRequestSchema, CallToolRequestSchema } from '@modelcontextprotocol/sdk/types.js';\nimport type { CallToolResult } from '@modelcontextprotocol/sdk/types.js';\nimport { parseGraph } from '../engine/serialize.js';\nimport { mapFileStat } from '../engine/snapshot.js';\nimport { loadGraphPreferIndex } from '../engine/index-db.js';\nimport { refreshIfStale } from '../engine/refresh.js';\nimport { TOOLS, warmEmbedderInBackground } from './tools.js';\nimport { renderToolResult } from './response.js';\nimport { recordSaving, sanitizeClient, PER_FILE_TOKENS, SAVINGS_TOOLS, type Outcome } from '../engine/savings.js';\nimport type { SessionStats } from './serve-stats.js';\nimport { countTokens } from '../engine/tokens.js';\nimport { VERSION } from '../version.js';\nimport type { VgGraph } from '../schema.js';\n\n/**\n * The local `vg serve` MCP server. Self-contained and offline. Freshness is\n * two-layered, with no filesystem watcher (freshness only matters at the\n * moment of a query, so we check on read instead of watching):\n *\n * 1. **Hot reload** — `graph.json` is re-read whenever its mtime changes, so a\n * rebuild from ANY source (a foreground `vg`, another serve process, CI)\n * is picked up on the next tool call.\n * 2. **Auto-refresh** (default on) — each tool call runs a debounced, stat-only\n * freshness probe against the last build's snapshot; if the working tree\n * drifted, an incremental rebuild runs in-process (cross-process locked,\n * single-flight). The call waits only a **micro-budget** so a warm probe can\n * land without stalling MCP tools — otherwise it answers from the current\n * map while the rebuild finishes for a later call (hot-reload picks it up).\n *\n * Every tool remains read-only and auto-approvable; the refresh only rewrites\n * vg's own artifacts under `.vibgrate/`, never user code.\n */\n\n/** Min gap between freshness probes — bounds stat-walk cost under bursty tool calls. */\nconst PROBE_INTERVAL_MS = 2000;\n/** Ceiling for the self-tuned probe interval on very large repos. */\nconst MAX_PROBE_INTERVAL_MS = 30_000;\n/** Probe/rebuild may consume at most ~1/PROBE_DUTY_FACTOR of serve wall-time (20 → ≤5%). */\nconst PROBE_DUTY_FACTOR = 20;\n/**\n * How long a tool call waits for an in-flight refresh before answering from\n * the current map. Kept deliberately small: MCP tool latency is sub-10ms on\n * warm maps, and a multi-second budget (the previous 5s ceiling matched\n * `git rev-parse`'s spawn timeout) turned every sequential tool call during a\n * large-repo rebuild into a multi-second stall — measured as TypeScript p50\n * ~5.2s on the release benchmark for the `vg-cli-public` corpus entry.\n * Warm probes still finish inside this window; heavy rebuilds never should.\n */\nexport const REFRESH_BUDGET_MS = 100;\n/** After a refresh failure (e.g. read-only checkout), don't retry for this long. */\nconst FAILURE_COOLDOWN_MS = 60_000;\n\nexport type RefreshImpl = typeof refreshIfStale;\n\nexport interface GraphSourceTuning {\n probeIntervalMs?: number;\n refreshBudgetMs?: number;\n /**\n * Workspace root for freshness probes. Prefer passing this explicitly —\n * deriving it from `graphPath` via `dirname` twice only works for the legacy\n * `root/.vibgrate/graph.json` layout, not the global branch-keyed store.\n */\n root?: string;\n /** Tests only: inject a slow/fake refresh to assert the micro-budget. */\n refreshImpl?: RefreshImpl;\n}\n\nexport interface ServeOptions {\n /** Record local, counts-only usage savings (opt-in). */\n savings?: boolean;\n /**\n * Periodically upload the counts-only ledger to Vibgrate (opt-in; off by\n * default). Implies recording. The upload itself is driven by the serve\n * command (see commands/serve.ts + engine/stats-share.ts); here it just also\n * turns recording on so there's something to send.\n */\n shareStats?: boolean;\n /** Air-gapped mode (no model downloads). */\n local?: boolean;\n /** Collapse repeat heavy relation lists within a session (opt-in). */\n dedup?: boolean;\n /** Auto-refresh the map when the working tree drifts (default true). */\n refresh?: boolean;\n /**\n * Workspace root (project directory). When set, freshness probes and tools\n * use this instead of inferring root from the graph path.\n */\n root?: string;\n /**\n * In-memory session stats behind the live `vg serve` status display. Always\n * safe to pass: nothing recorded here is persisted or uploaded — it dies with\n * the process (the opt-in ledger above is a separate concern).\n */\n stats?: SessionStats;\n}\n\nexport class GraphSource {\n private cachedMtimeMs = -1;\n private cached: VgGraph | null = null;\n /** Project root used for freshness probes and rebuilds. */\n readonly root: string;\n private lastProbeAt = 0;\n private failedUntil = 0;\n private inflight: Promise<void> | null = null;\n /** Self-tuned: grows with measured probe/rebuild cost so huge repos aren't penalized. */\n private probeIntervalMs = PROBE_INTERVAL_MS;\n private readonly refreshImpl: RefreshImpl;\n\n constructor(\n readonly graphPath: string,\n private readonly refresh = false,\n /** Timing / root overrides (production passes `root`; tests may pass more). */\n private readonly tuning: GraphSourceTuning = {},\n ) {\n // Prefer an explicit root. Fallback assumes legacy `root/.vibgrate/graph.json`\n // (dirname twice); wrong for the global store — callers should pass `root`.\n this.root = tuning.root ?? path.dirname(path.dirname(graphPath));\n this.refreshImpl = tuning.refreshImpl ?? refreshIfStale;\n }\n\n /** Current graph: auto-refreshed if the tree drifted, reloaded if the file changed. */\n async get(): Promise<VgGraph> {\n if (this.refresh) await this.maybeRefresh();\n // JSON when present, else the standalone snapshot (global-store mode);\n // throws if neither exists → surfaced as tool error.\n const stat = mapFileStat(this.graphPath);\n if (stat.mtimeMs !== this.cachedMtimeMs || !this.cached) {\n // Prefer SQLite reconstruct when corpusHash matches (scale past JSON parse).\n const preferred = loadGraphPreferIndex(this.root, this.graphPath);\n this.cached = preferred\n ? preferred.graph\n : parseGraph(fs.readFileSync(this.graphPath, 'utf8'));\n this.cachedMtimeMs = stat.mtimeMs;\n }\n return this.cached;\n }\n\n /**\n * Debounced, single-flight refresh. Never throws — a refresh problem must\n * degrade to \"answer from the current map\", not break the tool call.\n */\n private async maybeRefresh(): Promise<void> {\n const now = Date.now();\n if (!this.inflight) {\n const interval = this.tuning.probeIntervalMs ?? this.probeIntervalMs;\n if (now < this.failedUntil || now - this.lastProbeAt < interval) return;\n this.lastProbeAt = now;\n this.inflight = this.refreshImpl(this.root, { graphPath: this.graphPath })\n .then((r) => {\n if (r.status === 'error') this.failedUntil = Date.now() + FAILURE_COOLDOWN_MS;\n // Self-tune off the full wall cost of *every* outcome — including a\n // multi-second incremental rebuild. Previously only probe-only\n // outcomes (fresh/no-snapshot/locked) backed off, so a 20s rebuild\n // of a large repo re-armed after the 2s floor and every sequential\n // tool call blocked on the refresh budget for the whole suite.\n const cost =\n r.status === 'refreshed' && typeof r.ms === 'number' ? Math.max(r.ms, Date.now() - now) : Date.now() - now;\n this.probeIntervalMs = Math.min(\n MAX_PROBE_INTERVAL_MS,\n Math.max(PROBE_INTERVAL_MS, cost * PROBE_DUTY_FACTOR),\n );\n })\n .catch(() => {\n this.failedUntil = Date.now() + FAILURE_COOLDOWN_MS;\n })\n .finally(() => {\n this.inflight = null;\n });\n }\n await Promise.race([this.inflight, sleep(this.tuning.refreshBudgetMs ?? REFRESH_BUDGET_MS)]);\n }\n}\n\nexport function createServer(source: GraphSource, opts: ServeOptions = {}): Server {\n const { savings = false, shareStats = false, local = false, dedup = false, stats } = opts;\n // Recording feeds both the local `vg savings` report and the opt-in upload, so\n // enabling either turns it on. Absent both, `vg serve` records nothing.\n const record = savings || shareStats;\n // Prefer GraphSource's explicit root (set by serve from the project cwd).\n const root = opts.root ?? source.root;\n // Per-session memory of node ids whose full detail was already returned — the\n // basis for opt-in cross-call dedup (`--dedup`). Scoped to this server\n // instance so it never leaks across sessions. Node ids are content-addressed\n // (blake3 of content), so an edited node gets a new id and is never falsely\n // treated as already-seen — dedup is stale-safe by construction.\n const seen = new Set<string>();\n const server = new Server(\n { name: 'vg', version: VERSION },\n {\n capabilities: { tools: {} },\n // Routing guidance once at the server level (hosts that surface\n // `instructions` get it at zero per-step schema cost): the flashlight\n // vs the map.\n instructions:\n 'vg is a code map. Use search_symbols to find a known name or literal string fast — ' +\n 'a multi-word/quoted phrase runs a complete literal sweep and reports totalTextMatches, ' +\n 'so reach for it instead of grep even for plain-string \"find every occurrence\" lookups. ' +\n 'Use orient/query_graph for meaning: symptoms, relationships, and what-breaks-if. ' +\n 'Responses are concise by default; pass response_format:\"detailed\" only when a node proves load-bearing. ' +\n // Stop-discipline: the failure mode on a focused task is over-navigation\n // — one more query, one more get_node — which re-bills the whole context\n // every step. One good navigation call usually locates the code.\n 'Navigate as little as possible: one good search/query usually locates the code. ' +\n 'As soon as you have the file and line, read that file and make the edit — ' +\n 'do not call further graph tools unless the edit fails or the match was wrong. ' +\n // Library docs: position against web search (version-correct beats\n // SEO results), and give a stopping rule so a thin doc doesn't turn\n // into an open-ended search loop.\n 'For how-do-I-use-this-library questions call resolve_library once, then library_docs ' +\n 'with the returned targetId and a focused query: the docs are official and matched to ' +\n 'the version THIS project has installed (drift-annotated) — prefer them over web search ' +\n 'or training-data recall when they conflict. Skip them for language built-ins or APIs ' +\n 'already shown in context. If two library_docs calls have not surfaced the section you ' +\n 'need, read the package source under node_modules instead of searching again.',\n },\n );\n\n server.setRequestHandler(ListToolsRequestSchema, async () => ({\n tools: TOOLS.map((t) => ({\n name: t.name,\n description: t.description,\n inputSchema: t.inputSchema,\n annotations: { readOnlyHint: true, openWorldHint: false },\n })),\n }));\n\n server.setRequestHandler(CallToolRequestSchema, async (request) => {\n const tool = TOOLS.find((t) => t.name === request.params.name);\n if (!tool) {\n return errorResult(`unknown tool \"${request.params.name}\"`);\n }\n let graph: VgGraph;\n try {\n graph = await source.get();\n } catch {\n return errorResult(\n 'no code map found. Run `vg` in the project to build .vibgrate/graph.json, then retry.',\n );\n }\n const startedAt = Date.now();\n try {\n const args = (request.params.arguments ?? {}) as Record<string, unknown>;\n const result = await tool.handler(graph, args, { root, local, dedup, seen });\n const ms = Date.now() - startedAt;\n // Live, in-memory session stats for the serve status display — always on\n // when a serve process passed them (nothing leaves the process).\n stats?.record({ ...measureCall(tool.name, result), client: sanitizeClient(detectClient(server)), ms });\n // Opt-in, counts-only usage ledger: one entry per navigation call, with its\n // outcome, the grep-baseline token counts, and — so `vg savings` can show\n // the command-vs-MCP split and which AI is calling — the source (`mcp`) and\n // the client detected from the initialize handshake.\n if (record) recordUsage(root, tool.name, result, detectClient(server), ms);\n // Compact → clamp to the token ceiling → compact-serialise. See ./response.ts.\n return renderToolResult(result);\n } catch (err) {\n // A failed call still counts in the live display — as a miss, so the\n // operator sees trouble instead of a silently frozen dashboard.\n stats?.record({\n tool: tool.name,\n client: sanitizeClient(detectClient(server)),\n outcome: 'miss',\n ms: Date.now() - startedAt,\n vgTokens: 0,\n baselineTokens: 0,\n });\n return errorResult(`tool \"${tool.name}\" failed: ${(err as Error).message}`);\n }\n });\n\n return server;\n}\n\nexport async function serveStdio(graphPath: string, opts: ServeOptions = {}): Promise<void> {\n const source = new GraphSource(graphPath, opts.refresh !== false, { root: opts.root });\n const server = createServer(source, opts);\n // Start the semantic-model warm-up as soon as the server boots, so the first\n // orient/query_graph doesn't pay a cold download. Non-blocking: navigation\n // answers lexically until the model is ready, then upgrades to semantic.\n warmEmbedderInBackground(opts.local);\n await server.connect(new StdioServerTransport());\n}\n\nfunction sleep(ms: number): Promise<void> {\n return new Promise((resolve) => {\n const timer = setTimeout(resolve, ms);\n timer.unref?.(); // never keep the server process alive just for the budget timer\n });\n}\n\n/**\n * Append a counts-only usage entry for a navigation call: which tool, how it\n * resolved (complete/partial/miss), and — for the grep-baseline tools — the\n * tokens vg spent vs the grep/read baseline it replaced.\n *\n * `vgTokens` is the size of the payload vg ACTUALLY returned — the rendered text\n * block the model receives and re-pays on every subsequent turn — measured with\n * the same token counter the budget uses. It is deliberately NOT read from a\n * `tokensEstimate` field: only query_graph's rarely-used *detailed* mode ever\n * set that (get_node never did), so the old code recorded nothing under normal\n * concise usage and `vg savings` always reported \"recording is off\".\n */\nexport function recordUsage(root: string, tool: string, result: unknown, client?: string, ms?: number): void {\n recordSaving(\n root,\n { ...measureCall(tool, result), source: 'mcp', client: sanitizeClient(client), ...(ms !== undefined ? { ms } : {}) },\n Date.now(),\n );\n}\n\n/**\n * Measure one tool call for the ledger and the live session stats: its outcome\n * plus — for the grep-baseline tools only — the context tokens vg returned and\n * the baseline they replaced (other tools report zeros, meaning \"no baseline\").\n */\nfunction measureCall(tool: string, result: unknown): { tool: string; outcome: Outcome; vgTokens: number; baselineTokens: number } {\n const outcome = classifyOutcome(result);\n let vgTokens = 0;\n let baselineTokens = 0;\n if (SAVINGS_TOOLS.has(tool) && result && typeof result === 'object') {\n vgTokens = countTokens(renderedText(renderToolResult(result)));\n // Grep/read baseline: ~PER_FILE_TOKENS per distinct file the answer points\n // at — the files a grep/read agent would have had to open to learn the same\n // thing. query_graph surfaces them as `matches[].file`; get_node as its own\n // `file` plus the files of the callers/callees it returned in one call.\n baselineTokens = referencedFiles(result).size * PER_FILE_TOKENS;\n }\n return { tool, outcome, vgTokens, baselineTokens };\n}\n\n/**\n * The coarse client label from the MCP `initialize` handshake, if the host sent\n * `clientInfo`. Read defensively — `getClientVersion()` exists on the SDK Server\n * once initialized, but we never want telemetry bookkeeping to throw. Returns\n * undefined when unknown (then sanitized to `'unknown'`).\n */\nfunction detectClient(server: Server): string | undefined {\n try {\n const info = (server as { getClientVersion?: () => { name?: string } | undefined }).getClientVersion?.();\n return typeof info?.name === 'string' ? info.name : undefined;\n } catch {\n return undefined;\n }\n}\n\n/**\n * Bucket a tool result into complete / partial / miss. A `miss` is an answer\n * that found nothing (no match, not-found, not-connected, or an empty listing);\n * a `partial` found results but capped or paginated some of them; everything\n * else is `complete`. Note that a legitimately empty `affected`/`covers` (e.g.\n * \"nothing depends on this\") is a successful answer, not a miss — only the\n * primary discovery signals below mark a miss.\n */\nfunction classifyOutcome(result: unknown): Outcome {\n if (Array.isArray(result)) return result.length === 0 ? 'miss' : 'complete';\n if (!result || typeof result !== 'object') return 'miss';\n const r = result as Record<string, unknown>;\n if (typeof r.error === 'string' && r.error) return 'miss'; // not_found / ambiguous / unresolved\n if (r.connected === false) return 'miss'; // find_path\n if (Array.isArray(r.matches) && r.matches.length === 0) return 'miss'; // query_graph / search_symbols\n return isPartial(r) ? 'partial' : 'complete';\n}\n\n/** True when a hit left results on the table: paginated, or a capped relation list. */\nfunction isPartial(r: Record<string, unknown>): boolean {\n if (r.moreAvailable === true) return true;\n if (r._truncated && typeof r._truncated === 'object') return true;\n // A `<name>Total` greater than the length of its sibling `<name>` array means\n // the array was capped (e.g. get_node's callsTotal vs the shown calls).\n for (const [key, value] of Object.entries(r)) {\n if (typeof value !== 'number' || !key.endsWith('Total')) continue;\n const base = key.slice(0, -'Total'.length);\n const shown = Array.isArray(r[base]) ? (r[base] as unknown[]).length : 0;\n if (value > shown) return true;\n }\n return false;\n}\n\n/** The text block of a rendered tool result — what the model is billed for. */\nfunction renderedText(rendered: CallToolResult): string {\n const block = rendered.content?.find((b) => b.type === 'text');\n return block && 'text' in block && typeof block.text === 'string' ? block.text : '';\n}\n\n/** Distinct files a navigation result points at (its grep/read baseline set). */\nfunction referencedFiles(result: unknown): Set<string> {\n const r = result as { file?: unknown; matches?: unknown; calls?: unknown; calledBy?: unknown };\n const files = new Set<string>();\n if (typeof r.file === 'string' && r.file) files.add(r.file);\n for (const m of asArray(r.matches)) {\n const f = (m as { file?: unknown }).file;\n if (typeof f === 'string' && f) files.add(f);\n }\n // get_node's calls/calledBy are qualified names of the form `path:symbol`; the\n // path prefix is the file a grep/read agent would open to inspect that edge.\n for (const name of [...asArray(r.calls), ...asArray(r.calledBy)]) {\n if (typeof name !== 'string') continue;\n const i = name.indexOf(':');\n if (i > 0) files.add(name.slice(0, i));\n }\n return files;\n}\n\nfunction asArray(v: unknown): unknown[] {\n return Array.isArray(v) ? v : [];\n}\n\nfunction errorResult(message: string) {\n return { content: [{ type: 'text', text: message }], isError: true };\n}\n","import { serializeGraph, slimGraphForExport } from './serialize.js';\nimport { renderReport } from './report.js';\nimport { renderHtml } from './html.js';\nimport type { DepRecord } from './drift.js';\nimport type { LocalModel } from './models.js';\nimport type { VgGraph } from '../schema.js';\n\n/** Above this node count, JSON export defaults to compact (no pretty-print). */\nexport const COMPACT_JSON_NODES = 5_000;\n\n/**\n * Deterministic exporters (VG-CLI-SPEC §4.2). One `vg export <file>` verb, format\n * inferred from the extension. Live graph-DB push is deliberately out (a file\n * import covers the same need offline). CycloneDX/SPDX power the SBOM/AI-BOM seam\n * (VG-LOCAL-MODELS §9.4).\n */\n\nexport type ExportFormat =\n | 'json'\n | 'ndjson'\n | 'graphml'\n | 'dot'\n | 'cypher'\n | 'sql'\n | 'md'\n | 'html'\n | 'cyclonedx'\n | 'spdx';\n\nexport function formatForExt(ext: string): ExportFormat | null {\n switch (ext.toLowerCase()) {\n case '.json':\n return 'json';\n case '.ndjson':\n return 'ndjson';\n case '.graphml':\n return 'graphml';\n case '.dot':\n case '.gv':\n return 'dot';\n case '.cypher':\n return 'cypher';\n case '.sql':\n return 'sql';\n case '.md':\n return 'md';\n case '.html':\n return 'html';\n default:\n return null;\n }\n}\n\nexport interface ExportContext {\n graph: VgGraph;\n deps?: DepRecord[];\n models?: LocalModel[];\n generatedAt: string;\n /** Force compact JSON (no indent). Default: auto when nodes > COMPACT_JSON_NODES. */\n compact?: boolean;\n /** Drop area members + grounding for smaller artifacts. */\n slim?: boolean;\n}\n\nexport function exportGraph(format: ExportFormat, ctx: ExportContext): string {\n const graph = ctx.slim ? slimGraphForExport(ctx.graph) : ctx.graph;\n const compact =\n ctx.compact === true ||\n (ctx.compact !== false && format === 'json' && graph.meta.counts.nodes > COMPACT_JSON_NODES);\n\n switch (format) {\n case 'json':\n return serializeGraph(graph, { compact });\n case 'md':\n return renderReport(graph);\n case 'html':\n return renderHtml(graph);\n case 'ndjson':\n return ndjson(graph);\n case 'graphml':\n return graphml(graph);\n case 'dot':\n return dot(graph);\n case 'cypher':\n return cypher(graph);\n case 'sql':\n return sql({ ...ctx, graph });\n case 'cyclonedx':\n return cyclonedx({ ...ctx, graph });\n case 'spdx':\n return spdx({ ...ctx, graph });\n }\n}\n\nfunction ndjson(graph: VgGraph): string {\n // Facts stream if present, else the node stream — one JSON object per line.\n const rows = graph.facts && graph.facts.length ? graph.facts : graph.nodes;\n return rows.map((r) => JSON.stringify(r)).join('\\n') + '\\n';\n}\n\nfunction esc(s: string): string {\n return s.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n}\n\nfunction graphml(graph: VgGraph): string {\n const lines: string[] = [];\n lines.push('<?xml version=\"1.0\" encoding=\"UTF-8\"?>');\n lines.push('<graphml xmlns=\"http://graphml.graphdrawing.org/xmlns\">');\n lines.push(' <key id=\"name\" for=\"node\" attr.name=\"name\" attr.type=\"string\"/>');\n lines.push(' <key id=\"kind\" for=\"node\" attr.name=\"kind\" attr.type=\"string\"/>');\n lines.push(' <key id=\"file\" for=\"node\" attr.name=\"file\" attr.type=\"string\"/>');\n lines.push(' <key id=\"ekind\" for=\"edge\" attr.name=\"kind\" attr.type=\"string\"/>');\n lines.push(' <graph edgedefault=\"directed\">');\n for (const n of graph.nodes) {\n lines.push(` <node id=\"${esc(n.id)}\"><data key=\"name\">${esc(n.qualifiedName)}</data><data key=\"kind\">${esc(n.kind)}</data><data key=\"file\">${esc(n.file)}</data></node>`);\n }\n for (const e of graph.edges) {\n lines.push(` <edge source=\"${esc(e.src)}\" target=\"${esc(e.dst)}\"><data key=\"ekind\">${esc(e.kind)}</data></edge>`);\n }\n lines.push(' </graph>');\n lines.push('</graphml>');\n return lines.join('\\n') + '\\n';\n}\n\nfunction dot(graph: VgGraph): string {\n const lines: string[] = ['digraph vg {'];\n for (const n of graph.nodes) lines.push(` \"${n.id}\" [label=\"${dotEsc(n.qualifiedName)}\"];`);\n for (const e of graph.edges) lines.push(` \"${e.src}\" -> \"${e.dst}\" [label=\"${e.kind}\"];`);\n lines.push('}');\n return lines.join('\\n') + '\\n';\n}\nfunction dotEsc(s: string): string {\n return s.replace(/\"/g, '\\\\\"');\n}\n\nfunction cypher(graph: VgGraph): string {\n const lines: string[] = [];\n for (const n of graph.nodes) {\n lines.push(\n `CREATE (:\\`${cypherLabel(n.kind)}\\` {id:${q(n.id)}, name:${q(n.qualifiedName)}, file:${q(n.file)}});`,\n );\n }\n for (const e of graph.edges) {\n lines.push(\n `MATCH (a {id:${q(e.src)}}),(b {id:${q(e.dst)}}) CREATE (a)-[:\\`${cypherLabel(e.kind)}\\`]->(b);`,\n );\n }\n return lines.join('\\n') + '\\n';\n}\nfunction cypherLabel(s: string): string {\n return s.replace(/[^A-Za-z0-9_]/g, '_');\n}\nfunction q(s: string): string {\n return JSON.stringify(s);\n}\n\n/**\n * Portable SQL fact-DB (VG-CLI-SPEC §4.2, agent-consumption). Emits deterministic\n * DDL + INSERT text — NOT a native driver — that loads identically into BOTH\n * sqlite3 and duckdb (`sqlite3 map.db < map.sql` / `duckdb map.db < map.sql`).\n * Text keeps the CLI dependency-free, offline, and byte-diffable; an identical\n * graph yields identical bytes. An agent can then run e.g.\n * SELECT src, dst FROM edges WHERE epistemic = 'observed' AND confidence >= 0.9;\n * Determinism: single transaction, `CREATE TABLE IF NOT EXISTS`, rows emitted in\n * the graph's own (already-sorted) array order, single quotes doubled, NULL for\n * absent optionals, booleans as 0/1, and no timestamp but the graph's generatedAt.\n */\nfunction sql(ctx: ExportContext): string {\n const graph = ctx.graph;\n const lines: string[] = [];\n lines.push('BEGIN;');\n\n // meta — provenance / toolchain fingerprint (key/value; agent can read the corpus hash).\n lines.push('CREATE TABLE IF NOT EXISTS meta (key TEXT PRIMARY KEY, value TEXT);');\n const meta: [string, string | null][] = [\n ['schemaVersion', graph.schemaVersion],\n ['generatedAt', ctx.generatedAt],\n ['corpusHash', graph.provenance.corpusHash],\n ['tool', graph.provenance.tool],\n ['toolVersion', graph.provenance.version],\n ['resolver', graph.provenance.resolver.join(',')],\n ['fingerprint', graph.provenance.toolchain?.fingerprint ?? null],\n ];\n for (const [k, v] of meta) lines.push(`INSERT INTO meta VALUES (${sqlStr(k)}, ${sqlStr(v)});`);\n\n // nodes\n lines.push(\n 'CREATE TABLE IF NOT EXISTS nodes (id TEXT PRIMARY KEY, kind TEXT, name TEXT, qualified_name TEXT, file TEXT, span_start INTEGER, span_end INTEGER, lang TEXT, visibility TEXT, signature TEXT, importance REAL, area INTEGER, is_hub INTEGER, tested INTEGER, coverage REAL);',\n );\n for (const n of graph.nodes) {\n lines.push(\n `INSERT INTO nodes VALUES (${sqlStr(n.id)}, ${sqlStr(n.kind)}, ${sqlStr(n.name)}, ${sqlStr(n.qualifiedName)}, ${sqlStr(n.file)}, ${sqlNum(n.span.start)}, ${sqlNum(n.span.end)}, ${sqlStr(n.lang)}, ${sqlStr(n.visibility)}, ${sqlStr(n.signature)}, ${sqlNum(n.importance)}, ${sqlNum(n.area)}, ${sqlBool(n.isHub)}, ${sqlBool(n.tested)}, ${sqlNum(n.coverage)});`,\n );\n }\n\n // edges — the epistemic column is the point: SELECT ... WHERE epistemic='observed'.\n lines.push(\n 'CREATE TABLE IF NOT EXISTS edges (id TEXT PRIMARY KEY, kind TEXT, src TEXT, dst TEXT, resolution TEXT, confidence REAL, epistemic TEXT, surprise REAL, \"count\" INTEGER);',\n );\n for (const e of graph.edges) {\n lines.push(\n `INSERT INTO edges VALUES (${sqlStr(e.id)}, ${sqlStr(e.kind)}, ${sqlStr(e.src)}, ${sqlStr(e.dst)}, ${sqlStr(e.resolution)}, ${sqlNum(e.confidence)}, ${sqlStr(e.epistemic)}, ${sqlNum(e.surprise)}, ${sqlNum(e.count)});`,\n );\n }\n\n // areas (+ members)\n lines.push('CREATE TABLE IF NOT EXISTS areas (id INTEGER PRIMARY KEY, label TEXT, size INTEGER, cohesion REAL, external_edges INTEGER);');\n lines.push('CREATE TABLE IF NOT EXISTS area_members (area_id INTEGER, node_id TEXT);');\n for (const a of graph.areas) {\n lines.push(`INSERT INTO areas VALUES (${sqlNum(a.id)}, ${sqlStr(a.label)}, ${sqlNum(a.size)}, ${sqlNum(a.cohesion)}, ${sqlNum(a.externalEdges)});`);\n for (const m of a.members) lines.push(`INSERT INTO area_members VALUES (${sqlNum(a.id)}, ${sqlStr(m)});`);\n }\n\n // facts (+ subjects, evidence) when the graph carried them.\n if (graph.facts && graph.facts.length) {\n lines.push('CREATE TABLE IF NOT EXISTS facts (id TEXT PRIMARY KEY, kind TEXT, predicate_json TEXT, derived_by TEXT, confidence TEXT);');\n lines.push('CREATE TABLE IF NOT EXISTS fact_subjects (fact_id TEXT, node_id TEXT);');\n lines.push('CREATE TABLE IF NOT EXISTS fact_evidence (fact_id TEXT, file TEXT, span_start INTEGER, span_end INTEGER);');\n for (const f of graph.facts) {\n lines.push(`INSERT INTO facts VALUES (${sqlStr(f.id)}, ${sqlStr(f.kind)}, ${sqlStr(JSON.stringify(f.predicate))}, ${sqlStr(f.derivedBy)}, ${sqlStr(f.confidence)});`);\n for (const s of f.subjectIds) lines.push(`INSERT INTO fact_subjects VALUES (${sqlStr(f.id)}, ${sqlStr(s)});`);\n for (const ev of f.evidence) lines.push(`INSERT INTO fact_evidence VALUES (${sqlStr(f.id)}, ${sqlStr(ev.file)}, ${sqlNum(ev.span.start)}, ${sqlNum(ev.span.end)});`);\n }\n }\n\n lines.push('COMMIT;');\n return lines.join('\\n') + '\\n';\n}\n\n/** SQL string literal (single quotes doubled) or NULL for absent values. */\nfunction sqlStr(v: string | null | undefined): string {\n if (v == null) return 'NULL';\n return `'${v.replace(/'/g, \"''\")}'`;\n}\n/** Numeric literal or NULL for absent values. */\nfunction sqlNum(v: number | null | undefined): string {\n return v == null || !Number.isFinite(v) ? 'NULL' : String(v);\n}\n/** Boolean as 0/1, NULL when unknown (e.g. an unanalyzable node's `tested`). */\nfunction sqlBool(v: boolean | null | undefined): string {\n return v == null ? 'NULL' : v ? '1' : '0';\n}\n\nfunction cyclonedx(ctx: ExportContext): string {\n // CycloneDX 1.6 JSON — dependencies as library components + local models as\n // machine-learning-model components (AI-BOM). Deterministic ordering; no\n // timestamps beyond the pinned generatedAt.\n const components: unknown[] = [];\n for (const d of ctx.deps ?? []) {\n components.push({\n type: 'library',\n name: d.name,\n version: d.installed ?? d.declared,\n purl: d.ecosystem === 'npm' ? `pkg:npm/${d.name}@${d.installed ?? ''}` : undefined,\n });\n }\n for (const m of ctx.models ?? []) {\n components.push({ type: 'machine-learning-model', name: m.name, properties: [{ name: 'vg:runtime', value: m.runtime }] });\n }\n const bom = {\n bomFormat: 'CycloneDX',\n specVersion: '1.6',\n metadata: { timestamp: ctx.generatedAt, tools: [{ name: 'vg', version: ctx.graph.provenance.version }] },\n components,\n };\n return JSON.stringify(bom, null, 2) + '\\n';\n}\n\nfunction spdx(ctx: ExportContext): string {\n const packages = (ctx.deps ?? []).map((d) => ({\n SPDXID: `SPDXRef-Package-${cypherLabel(d.name)}`,\n name: d.name,\n versionInfo: d.installed ?? d.declared,\n downloadLocation: 'NOASSERTION',\n }));\n const doc = {\n spdxVersion: 'SPDX-2.3',\n dataLicense: 'CC0-1.0',\n SPDXID: 'SPDXRef-DOCUMENT',\n name: 'vg-sbom',\n creationInfo: { created: ctx.generatedAt, creators: [`Tool: vg-${ctx.graph.provenance.version}`] },\n packages,\n };\n return JSON.stringify(doc, null, 2) + '\\n';\n}\n"]}
@@ -1,9 +1,144 @@
1
- import { stableStringify, serializeGraph, parseGraph, cacheDir } from './chunk-ZKNB4YH4.js';
1
+ import { VERSION } from './chunk-NQ4FSRXL.js';
2
+ import { parseGraph, stableStringify, serializeGraph, cacheDir } from './chunk-ZKNB4YH4.js';
2
3
  import { globalGraphPathForRef, globalGraphPath, repositoryStoreDir } from './chunk-BWPBB45M.js';
3
4
  import { detectGitRef } from './chunk-BPF3YX2U.js';
4
5
  import { __require } from './chunk-Z6ZWNWWR.js';
5
- import * as fs from 'fs';
6
+ import * as fs2 from 'fs';
6
7
  import * as path from 'path';
8
+ import * as zlib from 'zlib';
9
+ import { Packr } from 'msgpackr';
10
+
11
+ var MAGIC = Buffer.from("VGSNAP1\0", "latin1");
12
+ var crc322 = zlib.crc32 ?? jsCrc32;
13
+ var crcTable = null;
14
+ function jsCrc32(data) {
15
+ if (!crcTable) {
16
+ crcTable = new Uint32Array(256);
17
+ for (let n = 0; n < 256; n++) {
18
+ let c = n;
19
+ for (let k = 0; k < 8; k++) c = c & 1 ? 3988292384 ^ c >>> 1 : c >>> 1;
20
+ crcTable[n] = c >>> 0;
21
+ }
22
+ }
23
+ let crc = 4294967295;
24
+ for (let i = 0; i < data.length; i++) crc = crcTable[(crc ^ data[i]) & 255] ^ crc >>> 8;
25
+ return (crc ^ 4294967295) >>> 0;
26
+ }
27
+ function snapshotPathFor(graphPath) {
28
+ return graphPath.endsWith(".json") ? `${graphPath.slice(0, -5)}.snap` : `${graphPath}.snap`;
29
+ }
30
+ function newPackr() {
31
+ return new Packr({ useRecords: true });
32
+ }
33
+ function encodeGraphPayload(graph) {
34
+ return Buffer.from(newPackr().pack(graph));
35
+ }
36
+ function writeGraphSnapshot(graphPath, graph, opts = {}) {
37
+ try {
38
+ const payload = encodeGraphPayload(graph);
39
+ let header;
40
+ if (opts.standalone) {
41
+ header = newPackr().pack({
42
+ engine: VERSION,
43
+ crc32: crc322(payload),
44
+ standalone: true
45
+ });
46
+ } else {
47
+ const stat = fs2.statSync(graphPath);
48
+ header = newPackr().pack({
49
+ engine: VERSION,
50
+ sourceSize: stat.size,
51
+ sourceMtimeMs: stat.mtimeMs,
52
+ crc32: crc322(payload)
53
+ });
54
+ }
55
+ const lenBuf = Buffer.alloc(4);
56
+ lenBuf.writeUInt32LE(header.length, 0);
57
+ const file = snapshotPathFor(graphPath);
58
+ const tmp = `${file}.${process.pid}.tmp`;
59
+ try {
60
+ fs2.writeFileSync(tmp, Buffer.concat([MAGIC, lenBuf, header, payload]));
61
+ fs2.renameSync(tmp, file);
62
+ } catch (err) {
63
+ fs2.rmSync(tmp, { force: true });
64
+ throw err;
65
+ }
66
+ return true;
67
+ } catch {
68
+ return false;
69
+ }
70
+ }
71
+ function readGraphSnapshot(graphPath) {
72
+ try {
73
+ const file = snapshotPathFor(graphPath);
74
+ if (!fs2.existsSync(file)) return null;
75
+ const raw = fs2.readFileSync(file);
76
+ if (raw.length < MAGIC.length + 4 || !raw.subarray(0, MAGIC.length).equals(MAGIC)) return null;
77
+ const headerLen = raw.readUInt32LE(MAGIC.length);
78
+ const payloadStart = MAGIC.length + 4 + headerLen;
79
+ if (payloadStart > raw.length) return null;
80
+ const header = newPackr().unpack(raw.subarray(MAGIC.length + 4, payloadStart));
81
+ if (!header.standalone) {
82
+ if (header.engine !== VERSION) return null;
83
+ const sourceStat = fs2.statSync(graphPath);
84
+ if (header.sourceSize !== sourceStat.size || header.sourceMtimeMs !== sourceStat.mtimeMs) return null;
85
+ }
86
+ const payload = raw.subarray(payloadStart);
87
+ if (crc322(payload) !== header.crc32) return null;
88
+ const graph = newPackr().unpack(payload);
89
+ if (!graph || !Array.isArray(graph.nodes) || !Array.isArray(graph.edges)) return null;
90
+ return graph;
91
+ } catch {
92
+ return null;
93
+ }
94
+ }
95
+ function mapFileExists(graphPath) {
96
+ if (fs2.existsSync(graphPath)) return true;
97
+ return readSnapshotHeader(snapshotPathFor(graphPath))?.standalone === true;
98
+ }
99
+ function mapFileStat(graphPath) {
100
+ try {
101
+ return fs2.statSync(graphPath);
102
+ } catch (err) {
103
+ const snap = snapshotPathFor(graphPath);
104
+ if (fs2.existsSync(snap)) return fs2.statSync(snap);
105
+ throw err;
106
+ }
107
+ }
108
+ function readSnapshotHeader(file) {
109
+ let fd = null;
110
+ try {
111
+ fd = fs2.openSync(file, "r");
112
+ const prefix = Buffer.alloc(4096);
113
+ const read = fs2.readSync(fd, prefix, 0, prefix.length, 0);
114
+ if (read < MAGIC.length + 4 || !prefix.subarray(0, MAGIC.length).equals(MAGIC)) return null;
115
+ const headerLen = prefix.readUInt32LE(MAGIC.length);
116
+ if (MAGIC.length + 4 + headerLen > read) return null;
117
+ return newPackr().unpack(prefix.subarray(MAGIC.length + 4, MAGIC.length + 4 + headerLen));
118
+ } catch {
119
+ return null;
120
+ } finally {
121
+ if (fd !== null) fs2.closeSync(fd);
122
+ }
123
+ }
124
+ function loadGraphFileWithSnapshot(graphPath) {
125
+ const snap = readGraphSnapshot(graphPath);
126
+ if (snap) return snap;
127
+ let json;
128
+ try {
129
+ json = fs2.readFileSync(graphPath, "utf8");
130
+ } catch {
131
+ return null;
132
+ }
133
+ let graph;
134
+ try {
135
+ graph = parseGraph(json);
136
+ } catch {
137
+ return null;
138
+ }
139
+ writeGraphSnapshot(graphPath, graph);
140
+ return graph;
141
+ }
7
142
 
8
143
  // src/engine/report.ts
9
144
  function renderReport(graph) {
@@ -178,18 +313,18 @@ function resolveGraphPath(root, override, env = process.env) {
178
313
  if (override?.trim()) return path.resolve(override.trim());
179
314
  if (preferInRepoGraph(env)) {
180
315
  const legacy2 = legacyGraphPath(root);
181
- if (fs.existsSync(legacy2)) return legacy2;
316
+ if (fs2.existsSync(legacy2)) return legacy2;
182
317
  return legacy2;
183
318
  }
184
319
  const { ref, kind } = detectGitRef(root);
185
320
  if (kind !== "none" && ref) {
186
321
  const branchPath = globalGraphPathForRef(root, ref, env);
187
- if (fs.existsSync(branchPath)) return branchPath;
322
+ if (mapFileExists(branchPath)) return branchPath;
188
323
  }
189
324
  const globalPath = globalGraphPath(root, "current", env);
190
- if (fs.existsSync(globalPath)) return globalPath;
325
+ if (mapFileExists(globalPath)) return globalPath;
191
326
  const legacy = legacyGraphPath(root);
192
- if (fs.existsSync(legacy)) return legacy;
327
+ if (fs2.existsSync(legacy)) return legacy;
193
328
  return defaultGraphPath(root, env);
194
329
  }
195
330
  var DEFAULT_GITIGNORE = [
@@ -200,6 +335,7 @@ var DEFAULT_GITIGNORE = [
200
335
  ".gitignore",
201
336
  "cache/",
202
337
  "graph.json",
338
+ "graph.snap",
203
339
  "graph.html",
204
340
  "GRAPH_REPORT.md",
205
341
  "facts.jsonl",
@@ -207,9 +343,9 @@ var DEFAULT_GITIGNORE = [
207
343
  ];
208
344
  function ensureVibgrateGitignore(root) {
209
345
  const file = path.join(vibgrateDir(root), ".gitignore");
210
- if (fs.existsSync(file)) return;
211
- fs.mkdirSync(vibgrateDir(root), { recursive: true });
212
- fs.writeFileSync(file, `${DEFAULT_GITIGNORE.join("\n")}
346
+ if (fs2.existsSync(file)) return;
347
+ fs2.mkdirSync(vibgrateDir(root), { recursive: true });
348
+ fs2.writeFileSync(file, `${DEFAULT_GITIGNORE.join("\n")}
213
349
  `);
214
350
  }
215
351
  function companionArtifactDir(root, graphPath, env = process.env) {
@@ -224,35 +360,46 @@ function writeArtifacts(graph, options) {
224
360
  const graphPath = options.graphPath ?? defaultGraphPath(options.root);
225
361
  const companions = companionArtifactDir(options.root, graphPath);
226
362
  const inRepo = isPathInside(companions, options.root) || isPathInside(graphPath, options.root);
227
- fs.mkdirSync(path.dirname(graphPath), { recursive: true });
228
- fs.mkdirSync(companions, { recursive: true });
363
+ fs2.mkdirSync(path.dirname(graphPath), { recursive: true });
364
+ fs2.mkdirSync(companions, { recursive: true });
229
365
  if (inRepo && isPathInside(companions, vibgrateDir(options.root))) {
230
366
  ensureVibgrateGitignore(options.root);
231
367
  } else if (path.resolve(graphPath) === path.resolve(legacyGraphPath(options.root))) {
232
368
  ensureVibgrateGitignore(options.root);
233
369
  }
234
- const tmp = `${graphPath}.${process.pid}.tmp`;
235
- try {
236
- fs.writeFileSync(tmp, serializeGraph(graph));
237
- fs.renameSync(tmp, graphPath);
238
- } catch (err) {
239
- fs.rmSync(tmp, { force: true });
240
- throw err;
370
+ const storeMode = isPathInside(graphPath, repositoryStoreDir(options.root));
371
+ if (storeMode) {
372
+ if (!writeGraphSnapshot(graphPath, graph, { standalone: true })) ; else {
373
+ fs2.rmSync(graphPath, { force: true });
374
+ }
241
375
  }
242
- const written = { graphPath };
376
+ if (!storeMode || !fs2.existsSync(snapshotPathFor(graphPath))) {
377
+ const tmp = `${graphPath}.${process.pid}.tmp`;
378
+ try {
379
+ fs2.writeFileSync(tmp, serializeGraph(graph));
380
+ fs2.renameSync(tmp, graphPath);
381
+ } catch (err) {
382
+ fs2.rmSync(tmp, { force: true });
383
+ throw err;
384
+ }
385
+ writeGraphSnapshot(graphPath, graph);
386
+ }
387
+ const written = {
388
+ graphPath: storeMode && !fs2.existsSync(graphPath) ? snapshotPathFor(graphPath) : graphPath
389
+ };
243
390
  if (options.report !== false) {
244
391
  const reportPath = path.join(companions, "GRAPH_REPORT.md");
245
- fs.writeFileSync(reportPath, renderReport(graph));
392
+ fs2.writeFileSync(reportPath, renderReport(graph));
246
393
  written.reportPath = reportPath;
247
394
  }
248
395
  if (options.html !== false) {
249
396
  const htmlPath = path.join(companions, "graph.html");
250
- fs.writeFileSync(htmlPath, renderHtml(graph));
397
+ fs2.writeFileSync(htmlPath, renderHtml(graph));
251
398
  written.htmlPath = htmlPath;
252
399
  }
253
400
  if (graph.facts && graph.facts.length) {
254
401
  const factsPath = path.join(companions, "facts.jsonl");
255
- fs.writeFileSync(factsPath, graph.facts.map((f) => JSON.stringify(f)).join("\n") + "\n");
402
+ fs2.writeFileSync(factsPath, graph.facts.map((f) => JSON.stringify(f)).join("\n") + "\n");
256
403
  written.factsPath = factsPath;
257
404
  }
258
405
  return written;
@@ -273,10 +420,10 @@ function writeGraphIndex(root, graph) {
273
420
  const file = indexDbPath(root);
274
421
  try {
275
422
  const { DatabaseSync } = __require("sqlite");
276
- fs.mkdirSync(path.dirname(file), { recursive: true });
423
+ fs2.mkdirSync(path.dirname(file), { recursive: true });
277
424
  const tmp = `${file}.${process.pid}.tmp`;
278
425
  try {
279
- if (fs.existsSync(tmp)) fs.unlinkSync(tmp);
426
+ if (fs2.existsSync(tmp)) fs2.unlinkSync(tmp);
280
427
  } catch {
281
428
  }
282
429
  const db = new DatabaseSync(tmp);
@@ -375,7 +522,7 @@ function writeGraphIndex(root, graph) {
375
522
  insArea.run(a.id, JSON.stringify(a));
376
523
  }
377
524
  db.close();
378
- fs.renameSync(tmp, file);
525
+ fs2.renameSync(tmp, file);
379
526
  return { path: file, nodes: graph.nodes.length, edges: graph.edges.length, ok: true };
380
527
  } catch (err) {
381
528
  return {
@@ -389,7 +536,7 @@ function writeGraphIndex(root, graph) {
389
536
  }
390
537
  function loadGraphFromIndex(root) {
391
538
  const file = indexDbPath(root);
392
- if (!fs.existsSync(file)) return null;
539
+ if (!fs2.existsSync(file)) return null;
393
540
  try {
394
541
  const { DatabaseSync } = __require("sqlite");
395
542
  const db = new DatabaseSync(file, { readOnly: true });
@@ -435,14 +582,7 @@ function loadGraphFromIndex(root) {
435
582
  }
436
583
  }
437
584
  function loadGraphPreferIndex(root, graphJsonPath) {
438
- let jsonGraph = null;
439
- if (fs.existsSync(graphJsonPath)) {
440
- try {
441
- jsonGraph = JSON.parse(fs.readFileSync(graphJsonPath, "utf8"));
442
- } catch {
443
- jsonGraph = null;
444
- }
445
- }
585
+ const jsonGraph = loadGraphFileWithSnapshot(graphJsonPath);
446
586
  const fromIndex = loadGraphFromIndex(root);
447
587
  if (fromIndex) {
448
588
  if (!jsonGraph || fromIndex.provenance.corpusHash === jsonGraph.provenance.corpusHash) {
@@ -460,10 +600,9 @@ function loadGraph(root, graphPath) {
460
600
  const preferred = loadGraphPreferIndex(root, file);
461
601
  if (preferred) return preferred.graph;
462
602
  }
463
- if (!fs.existsSync(file)) return null;
464
- return parseGraph(fs.readFileSync(file, "utf8"));
603
+ return loadGraphFileWithSnapshot(file);
465
604
  }
466
605
 
467
- export { SCHEMA_VERSION, defaultGraphPath, ensureVibgrateGitignore, legacyGraphPath, loadGraph, loadGraphPreferIndex, preferInRepoGraph, renderHtml, renderReport, resolveGraphPath, vibgrateDir, writeArtifacts, writeGraphIndex };
468
- //# sourceMappingURL=chunk-RYNAK4LK.js.map
469
- //# sourceMappingURL=chunk-RYNAK4LK.js.map
606
+ export { SCHEMA_VERSION, defaultGraphPath, ensureVibgrateGitignore, legacyGraphPath, loadGraph, loadGraphFileWithSnapshot, loadGraphPreferIndex, mapFileExists, mapFileStat, preferInRepoGraph, renderHtml, renderReport, resolveGraphPath, vibgrateDir, writeArtifacts, writeGraphIndex };
607
+ //# sourceMappingURL=chunk-YKVNMNEM.js.map
608
+ //# sourceMappingURL=chunk-YKVNMNEM.js.map