@vibgrate/cli 2026.824.3 → 2026.825.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.
Files changed (98) hide show
  1. package/dist/{agent-6SJVWFPV.js → agent-DHQYEHVW.js} +13 -12
  2. package/dist/{agent-6SJVWFPV.js.map → agent-DHQYEHVW.js.map} +1 -1
  3. package/dist/{approvals-5UBLBNJF.js → approvals-KBM72NU2.js} +5 -5
  4. package/dist/{approvals-5UBLBNJF.js.map → approvals-KBM72NU2.js.map} +1 -1
  5. package/dist/{attach-PSGCCJMA.js → attach-O74NL4M5.js} +3 -3
  6. package/dist/{attach-PSGCCJMA.js.map → attach-O74NL4M5.js.map} +1 -1
  7. package/dist/{baseline-HPXACNFU.js → baseline-4X6MQBDA.js} +3 -3
  8. package/dist/{baseline-HPXACNFU.js.map → baseline-4X6MQBDA.js.map} +1 -1
  9. package/dist/{chunk-B5GOCQFB.js → chunk-27TS2AUJ.js} +8 -8
  10. package/dist/{chunk-B5GOCQFB.js.map → chunk-27TS2AUJ.js.map} +1 -1
  11. package/dist/{chunk-2IY24TTR.js → chunk-2NUS5BOR.js} +3 -3
  12. package/dist/{chunk-2IY24TTR.js.map → chunk-2NUS5BOR.js.map} +1 -1
  13. package/dist/{chunk-JL66EPZ4.js → chunk-3E7QT4NE.js} +9 -9
  14. package/dist/{chunk-JL66EPZ4.js.map → chunk-3E7QT4NE.js.map} +1 -1
  15. package/dist/{chunk-M5QSBXA6.js → chunk-6MIJLO5B.js} +11 -4
  16. package/dist/chunk-6MIJLO5B.js.map +1 -0
  17. package/dist/{chunk-SGIFJIII.js → chunk-7M4E7UGX.js} +3 -3
  18. package/dist/{chunk-SGIFJIII.js.map → chunk-7M4E7UGX.js.map} +1 -1
  19. package/dist/{chunk-KBLKNR3V.js → chunk-BICZR6UJ.js} +3 -3
  20. package/dist/{chunk-KBLKNR3V.js.map → chunk-BICZR6UJ.js.map} +1 -1
  21. package/dist/{chunk-UUNEUEPQ.js → chunk-DIZ5KI5Q.js} +6 -6
  22. package/dist/{chunk-UUNEUEPQ.js.map → chunk-DIZ5KI5Q.js.map} +1 -1
  23. package/dist/{chunk-IKB5U3AH.js → chunk-E3XVIFSH.js} +3 -3
  24. package/dist/{chunk-IKB5U3AH.js.map → chunk-E3XVIFSH.js.map} +1 -1
  25. package/dist/{chunk-3PNAQUZM.js → chunk-FQHWPOTS.js} +3 -3
  26. package/dist/{chunk-3PNAQUZM.js.map → chunk-FQHWPOTS.js.map} +1 -1
  27. package/dist/chunk-G3ACLBMG.js +6 -0
  28. package/dist/{chunk-AGOKTI77.js.map → chunk-G3ACLBMG.js.map} +1 -1
  29. package/dist/{chunk-5QO2GFAE.js → chunk-GR7SFCQJ.js} +44 -12
  30. package/dist/chunk-GR7SFCQJ.js.map +1 -0
  31. package/dist/{chunk-4PDWV4AE.js → chunk-GWSJYDK7.js} +5 -5
  32. package/dist/{chunk-4PDWV4AE.js.map → chunk-GWSJYDK7.js.map} +1 -1
  33. package/dist/{chunk-CJ2R3LVX.js → chunk-HFQIYM6E.js} +4 -4
  34. package/dist/{chunk-CJ2R3LVX.js.map → chunk-HFQIYM6E.js.map} +1 -1
  35. package/dist/{chunk-LMHKIQA5.js → chunk-IJVWKZRS.js} +3 -3
  36. package/dist/{chunk-LMHKIQA5.js.map → chunk-IJVWKZRS.js.map} +1 -1
  37. package/dist/{chunk-YJ23GGAJ.js → chunk-JAEHLTVX.js} +3 -3
  38. package/dist/{chunk-YJ23GGAJ.js.map → chunk-JAEHLTVX.js.map} +1 -1
  39. package/dist/{chunk-USW5WHUG.js → chunk-K3SXWOTT.js} +3 -3
  40. package/dist/{chunk-USW5WHUG.js.map → chunk-K3SXWOTT.js.map} +1 -1
  41. package/dist/{chunk-RAEHWCN6.js → chunk-KYM55VZX.js} +6 -6
  42. package/dist/{chunk-RAEHWCN6.js.map → chunk-KYM55VZX.js.map} +1 -1
  43. package/dist/chunk-L7GCJNDT.js +90 -0
  44. package/dist/chunk-L7GCJNDT.js.map +1 -0
  45. package/dist/{chunk-QP3P4V4I.js → chunk-NS4DL3QR.js} +8 -8
  46. package/dist/{chunk-QP3P4V4I.js.map → chunk-NS4DL3QR.js.map} +1 -1
  47. package/dist/{chunk-WATYIYWP.js → chunk-NZES47ST.js} +3 -3
  48. package/dist/{chunk-WATYIYWP.js.map → chunk-NZES47ST.js.map} +1 -1
  49. package/dist/{chunk-III7S75O.js → chunk-OIUVWCKM.js} +3 -3
  50. package/dist/{chunk-III7S75O.js.map → chunk-OIUVWCKM.js.map} +1 -1
  51. package/dist/{chunk-LA4CETXN.js → chunk-SIXWWQ6S.js} +3 -3
  52. package/dist/{chunk-LA4CETXN.js.map → chunk-SIXWWQ6S.js.map} +1 -1
  53. package/dist/{chunk-TWWVTKA7.js → chunk-SYMJSRYF.js} +3 -3
  54. package/dist/{chunk-TWWVTKA7.js.map → chunk-SYMJSRYF.js.map} +1 -1
  55. package/dist/{chunk-KRE7SXSA.js → chunk-TT2J2TB6.js} +6 -6
  56. package/dist/{chunk-KRE7SXSA.js.map → chunk-TT2J2TB6.js.map} +1 -1
  57. package/dist/{chunk-XHIWQGRE.js → chunk-VMPKOMHG.js} +5 -5
  58. package/dist/{chunk-XHIWQGRE.js.map → chunk-VMPKOMHG.js.map} +1 -1
  59. package/dist/cli.js +52 -48
  60. package/dist/cli.js.map +1 -1
  61. package/dist/{daemon-AEL5N4SJ.js → daemon-RZS5FPIW.js} +9 -9
  62. package/dist/{daemon-AEL5N4SJ.js.map → daemon-RZS5FPIW.js.map} +1 -1
  63. package/dist/embed-worker-main.js +3 -3
  64. package/dist/{ensure-map-YL5NR6UH.js → ensure-map-DL2S774J.js} +14 -14
  65. package/dist/{ensure-map-YL5NR6UH.js.map → ensure-map-DL2S774J.js.map} +1 -1
  66. package/dist/{graph-backend-LEPXFPXQ.js → graph-backend-JXARVT3R.js} +7 -7
  67. package/dist/{graph-backend-LEPXFPXQ.js.map → graph-backend-JXARVT3R.js.map} +1 -1
  68. package/dist/index.d.ts +45 -4
  69. package/dist/index.js +15 -14
  70. package/dist/index.js.map +1 -1
  71. package/dist/{interactive-YJ37ZWTA.js → interactive-2XRBRFRB.js} +25 -24
  72. package/dist/interactive-2XRBRFRB.js.map +1 -0
  73. package/dist/load-7C5VETRD.js +11 -0
  74. package/dist/{load-LT6R73IZ.js.map → load-7C5VETRD.js.map} +1 -1
  75. package/dist/parse-worker.js +2 -2
  76. package/dist/{run-outcome-YQBPYNEY.js → run-outcome-TMB5TJNA.js} +5 -5
  77. package/dist/{run-outcome-YQBPYNEY.js.map → run-outcome-TMB5TJNA.js.map} +1 -1
  78. package/dist/{runtime-session-JSH5UL7Z.js → runtime-session-Y23NVY7R.js} +9 -9
  79. package/dist/{runtime-session-JSH5UL7Z.js.map → runtime-session-Y23NVY7R.js.map} +1 -1
  80. package/dist/{session-3FLVZRMM.js → session-KXT2ZTPE.js} +8 -8
  81. package/dist/{session-3FLVZRMM.js.map → session-KXT2ZTPE.js.map} +1 -1
  82. package/dist/{stream-json-VJ2O52CR.js → stream-json-NW6AOE47.js} +13 -12
  83. package/dist/stream-json-NW6AOE47.js.map +1 -0
  84. package/dist/version-7ABYXWOZ.js +4 -0
  85. package/dist/{version-VUTM46C5.js.map → version-7ABYXWOZ.js.map} +1 -1
  86. package/dist/{vg-mcp-bridge-UUMEOJSO.js → vg-mcp-bridge-LXBHKEFR.js} +8 -8
  87. package/dist/{vg-mcp-bridge-UUMEOJSO.js.map → vg-mcp-bridge-LXBHKEFR.js.map} +1 -1
  88. package/dist/{vgd-XFT574U6.js → vgd-RW7HCEIP.js} +8 -8
  89. package/dist/vgd-RW7HCEIP.js.map +1 -0
  90. package/package.json +2 -5
  91. package/dist/chunk-5QO2GFAE.js.map +0 -1
  92. package/dist/chunk-AGOKTI77.js +0 -6
  93. package/dist/chunk-M5QSBXA6.js.map +0 -1
  94. package/dist/interactive-YJ37ZWTA.js.map +0 -1
  95. package/dist/load-LT6R73IZ.js +0 -11
  96. package/dist/stream-json-VJ2O52CR.js.map +0 -1
  97. package/dist/version-VUTM46C5.js +0 -4
  98. package/dist/vgd-XFT574U6.js.map +0 -1
@@ -1,7 +1,7 @@
1
- import { probeFreshness, hasDrift, buildGraph, writeSnapshot } from './chunk-QP3P4V4I.js';
1
+ import { probeFreshness, hasDrift, buildGraph, writeSnapshot } from './chunk-NS4DL3QR.js';
2
2
  import { mergeExcludes } from './chunk-RTURQXQL.js';
3
- import { acquireLock, releaseLock } from './chunk-3PNAQUZM.js';
4
- import { vibgrateDir, writeArtifacts } from './chunk-III7S75O.js';
3
+ import { acquireLock, releaseLock } from './chunk-FQHWPOTS.js';
4
+ import { vibgrateDir, writeArtifacts } from './chunk-OIUVWCKM.js';
5
5
  import { cacheDir } from './chunk-MVPRPSXU.js';
6
6
  import * as fs from 'fs';
7
7
  import * as path from 'path';
@@ -63,5 +63,5 @@ async function refreshIfStale(root, opts = {}) {
63
63
  }
64
64
 
65
65
  export { refreshIfStale };
66
- //# sourceMappingURL=chunk-XHIWQGRE.js.map
67
- //# sourceMappingURL=chunk-XHIWQGRE.js.map
66
+ //# sourceMappingURL=chunk-VMPKOMHG.js.map
67
+ //# sourceMappingURL=chunk-VMPKOMHG.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/engine/refresh.ts"],"names":[],"mappings":"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","file":"chunk-XHIWQGRE.js","sourcesContent":["import * as fs from 'node:fs';\nimport * as path from 'node:path';\nimport { buildGraph } from './build.js';\nimport { mergeExcludes } from './discover.js';\nimport { probeFreshness, writeSnapshot, hasDrift, type Drift } from './freshness.js';\nimport { writeArtifacts, vibgrateDir } from './artifacts.js';\nimport { acquireLock, releaseLock } from './lock.js';\nimport { cacheDir } from './cache.js';\nimport type { ClusterMode } from './analyze.js';\n\n/**\n * Auto-refresh: bring the code map back in sync with the working tree when the\n * freshness probe says it drifted. The rebuild is the ordinary incremental\n * `buildGraph` (warm parse cache → only changed files re-parse), replaying the\n * scope recorded at the last explicit build, guarded by a cross-process lock\n * so a serving MCP process and a foreground command never write at once.\n *\n * Two properties keep this safe to run implicitly:\n * - **No git churn**: if the rebuilt corpusHash equals the snapshot's (e.g. a\n * drift that reverted itself), `graph.json` is left untouched — the artifact\n * stays byte-identical.\n * - **No surprise artifacts**: `GRAPH_REPORT.md`/`graph.html` are rewritten\n * only if they already exist; a refresh never adds files a user's explicit\n * build chose not to produce.\n */\n\nexport interface RefreshOptions {\n /** Force single-threaded parsing (tests / constrained hosts). */\n inline?: boolean;\n /** Worker count for the parse pool. */\n jobs?: number;\n /**\n * The map path already resolved by the caller (e.g. `vg serve`'s startup\n * resolution). Passed straight through to `writeArtifacts` so a refresh\n * never re-resolves it: `defaultGraphPath` shells out to `git rev-parse`\n * (Fusion §4.1.1 branch keying), and re-running that on every drift-driven\n * refresh put a synchronous git spawn back on the hot tool-call path this\n * function exists to keep off of. Omit only when no caller-known path\n * exists (falls back to a fresh `defaultGraphPath` resolution).\n */\n graphPath?: string;\n}\n\nexport type RefreshOutcome =\n /** Map already matches the working tree. */\n | { status: 'fresh' }\n /** No freshness snapshot — no build ever ran here, so scope is unknown. */\n | { status: 'no-snapshot' }\n /** Another vg process is rebuilding right now; its write will land shortly. */\n | { status: 'locked' }\n /** Rebuilt. `wrote` is false when the corpus turned out unchanged. */\n | { status: 'refreshed'; drift: Drift; ms: number; reparsed: number; totalFiles: number; wrote: boolean }\n | { status: 'error'; message: string };\n\n/** A refresh stuck longer than this is presumed crashed and its lock reclaimed. */\nconst REFRESH_LOCK_STALE_MS = 10 * 60 * 1000;\n\nfunction refreshLockPath(root: string): string {\n return path.join(cacheDir(root), 'refresh.lock');\n}\n\n/**\n * Probe, and rebuild incrementally if the tree drifted from the map.\n * Silent (no output) — callers own the messaging for their surface.\n */\nexport async function refreshIfStale(root: string, opts: RefreshOptions = {}): Promise<RefreshOutcome> {\n const probe = probeFreshness(root);\n if (!probe) return { status: 'no-snapshot' };\n if (!hasDrift(probe.drift)) return { status: 'fresh' };\n\n const lock = refreshLockPath(root);\n if (!acquireLock(lock, REFRESH_LOCK_STALE_MS)) return { status: 'locked' };\n\n const start = process.hrtime.bigint();\n try {\n const { scope } = probe;\n const exclude = mergeExcludes(root, scope.exclude);\n const result = await buildGraph({\n root,\n only: scope.only,\n exclude,\n paths: scope.paths,\n deep: scope.deep,\n noGround: scope.noGround,\n scip: scope.scip,\n noScip: scope.noScip,\n noTsc: scope.noTsc,\n cluster: scope.cluster as ClusterMode | undefined,\n grammarsDir: scope.grammarsDir,\n inline: opts.inline,\n jobs: opts.jobs,\n });\n\n const wrote = result.graph.provenance.corpusHash !== probe.corpusHash;\n if (wrote) {\n const dir = vibgrateDir(root);\n writeArtifacts(result.graph, {\n root,\n graphPath: opts.graphPath,\n report: fs.existsSync(path.join(dir, 'GRAPH_REPORT.md')),\n html: fs.existsSync(path.join(dir, 'graph.html')),\n });\n }\n writeSnapshot(root, result.graph.provenance.corpusHash, result.fileStats, { ...scope, exclude });\n\n const ms = Number((process.hrtime.bigint() - start) / 1000000n);\n return {\n status: 'refreshed',\n drift: probe.drift,\n ms,\n reparsed: result.reparsed,\n totalFiles: result.totalFiles,\n wrote,\n };\n } catch (err) {\n return { status: 'error', message: (err as Error).message };\n } finally {\n releaseLock(lock);\n }\n}\n"]}
1
+ {"version":3,"sources":["../src/engine/refresh.ts"],"names":[],"mappings":"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","file":"chunk-VMPKOMHG.js","sourcesContent":["import * as fs from 'node:fs';\nimport * as path from 'node:path';\nimport { buildGraph } from './build.js';\nimport { mergeExcludes } from './discover.js';\nimport { probeFreshness, writeSnapshot, hasDrift, type Drift } from './freshness.js';\nimport { writeArtifacts, vibgrateDir } from './artifacts.js';\nimport { acquireLock, releaseLock } from './lock.js';\nimport { cacheDir } from './cache.js';\nimport type { ClusterMode } from './analyze.js';\n\n/**\n * Auto-refresh: bring the code map back in sync with the working tree when the\n * freshness probe says it drifted. The rebuild is the ordinary incremental\n * `buildGraph` (warm parse cache → only changed files re-parse), replaying the\n * scope recorded at the last explicit build, guarded by a cross-process lock\n * so a serving MCP process and a foreground command never write at once.\n *\n * Two properties keep this safe to run implicitly:\n * - **No git churn**: if the rebuilt corpusHash equals the snapshot's (e.g. a\n * drift that reverted itself), `graph.json` is left untouched — the artifact\n * stays byte-identical.\n * - **No surprise artifacts**: `GRAPH_REPORT.md`/`graph.html` are rewritten\n * only if they already exist; a refresh never adds files a user's explicit\n * build chose not to produce.\n */\n\nexport interface RefreshOptions {\n /** Force single-threaded parsing (tests / constrained hosts). */\n inline?: boolean;\n /** Worker count for the parse pool. */\n jobs?: number;\n /**\n * The map path already resolved by the caller (e.g. `vg serve`'s startup\n * resolution). Passed straight through to `writeArtifacts` so a refresh\n * never re-resolves it: `defaultGraphPath` shells out to `git rev-parse`\n * (Fusion §4.1.1 branch keying), and re-running that on every drift-driven\n * refresh put a synchronous git spawn back on the hot tool-call path this\n * function exists to keep off of. Omit only when no caller-known path\n * exists (falls back to a fresh `defaultGraphPath` resolution).\n */\n graphPath?: string;\n}\n\nexport type RefreshOutcome =\n /** Map already matches the working tree. */\n | { status: 'fresh' }\n /** No freshness snapshot — no build ever ran here, so scope is unknown. */\n | { status: 'no-snapshot' }\n /** Another vg process is rebuilding right now; its write will land shortly. */\n | { status: 'locked' }\n /** Rebuilt. `wrote` is false when the corpus turned out unchanged. */\n | { status: 'refreshed'; drift: Drift; ms: number; reparsed: number; totalFiles: number; wrote: boolean }\n | { status: 'error'; message: string };\n\n/** A refresh stuck longer than this is presumed crashed and its lock reclaimed. */\nconst REFRESH_LOCK_STALE_MS = 10 * 60 * 1000;\n\nfunction refreshLockPath(root: string): string {\n return path.join(cacheDir(root), 'refresh.lock');\n}\n\n/**\n * Probe, and rebuild incrementally if the tree drifted from the map.\n * Silent (no output) — callers own the messaging for their surface.\n */\nexport async function refreshIfStale(root: string, opts: RefreshOptions = {}): Promise<RefreshOutcome> {\n const probe = probeFreshness(root);\n if (!probe) return { status: 'no-snapshot' };\n if (!hasDrift(probe.drift)) return { status: 'fresh' };\n\n const lock = refreshLockPath(root);\n if (!acquireLock(lock, REFRESH_LOCK_STALE_MS)) return { status: 'locked' };\n\n const start = process.hrtime.bigint();\n try {\n const { scope } = probe;\n const exclude = mergeExcludes(root, scope.exclude);\n const result = await buildGraph({\n root,\n only: scope.only,\n exclude,\n paths: scope.paths,\n deep: scope.deep,\n noGround: scope.noGround,\n scip: scope.scip,\n noScip: scope.noScip,\n noTsc: scope.noTsc,\n cluster: scope.cluster as ClusterMode | undefined,\n grammarsDir: scope.grammarsDir,\n inline: opts.inline,\n jobs: opts.jobs,\n });\n\n const wrote = result.graph.provenance.corpusHash !== probe.corpusHash;\n if (wrote) {\n const dir = vibgrateDir(root);\n writeArtifacts(result.graph, {\n root,\n graphPath: opts.graphPath,\n report: fs.existsSync(path.join(dir, 'GRAPH_REPORT.md')),\n html: fs.existsSync(path.join(dir, 'graph.html')),\n });\n }\n writeSnapshot(root, result.graph.provenance.corpusHash, result.fileStats, { ...scope, exclude });\n\n const ms = Number((process.hrtime.bigint() - start) / 1000000n);\n return {\n status: 'refreshed',\n drift: probe.drift,\n ms,\n reparsed: result.reparsed,\n totalFiles: result.totalFiles,\n wrote,\n };\n } catch (err) {\n return { status: 'error', message: (err as Error).message };\n } finally {\n releaseLock(lock);\n }\n}\n"]}
package/dist/cli.js CHANGED
@@ -1,44 +1,45 @@
1
1
  #!/usr/bin/env node
2
- import { fetchCatalog, resolveProviders } from './chunk-LA4CETXN.js';
3
- import { telemetryOptOut, StatsSharer, statsEndpoint, isCI } from './chunk-KBLKNR3V.js';
2
+ import { fetchCatalog, resolveProviders } from './chunk-SIXWWQ6S.js';
3
+ import { telemetryOptOut, StatsSharer, statsEndpoint, isCI } from './chunk-BICZR6UJ.js';
4
4
  import { loadAdvancedScanHook, baselineCommand } from './chunk-QLNJ3VWO.js';
5
- import { sha256Hex, generateKeypair, dssePae, DSSE_PAYLOAD_TYPE, keyId, registerBuild, LiveStatus, ProgressBar, printLogo, runBuild } from './chunk-B5GOCQFB.js';
6
- export { runBuild } from './chunk-B5GOCQFB.js';
5
+ import { sha256Hex, generateKeypair, dssePae, DSSE_PAYLOAD_TYPE, keyId, registerBuild, LiveStatus, ProgressBar, printLogo, runBuild } from './chunk-27TS2AUJ.js';
6
+ export { runBuild } from './chunk-27TS2AUJ.js';
7
7
  import { readOrchestratorState, writeOrchestratorState, parseMode, setDefaultMode, recommendMode, activePin, resolveMode, providerForBackend, QUALIFIED_PACKS, pinPack, unpinPack, buildOrchestratorStatus } from './chunk-OLIMW4PQ.js';
8
8
  import { defaultProcessEndpoint, startProcessHostServer, resolveInferenceIsolation } from './chunk-IASO2HCI.js';
9
- import { runCodeSession } from './chunk-4PDWV4AE.js';
10
- import { CONTEXT_POLICY_VERSION, computeFcsReport, renderFcsReportMarkdown, createTrajectoryCollector, runAgent } from './chunk-5QO2GFAE.js';
9
+ import { runCodeSession } from './chunk-GWSJYDK7.js';
10
+ import { CONTEXT_POLICY_VERSION, computeFcsReport, renderFcsReportMarkdown, createTrajectoryCollector, runAgent } from './chunk-GR7SFCQJ.js';
11
11
  import './chunk-543E6WDJ.js';
12
- import './chunk-IKB5U3AH.js';
13
- import './chunk-YJ23GGAJ.js';
12
+ import './chunk-E3XVIFSH.js';
13
+ import './chunk-JAEHLTVX.js';
14
14
  import { parseReasoningEffort, summarizeDiffs, ScriptedProvider } from './chunk-SHD5TCZ5.js';
15
15
  import './chunk-NV7XNBX4.js';
16
16
  import { buildModelInstallPlan } from './chunk-W44THEXF.js';
17
17
  import { ensurePackage, ensureUnavailableMessage } from './chunk-3HNPVXUK.js';
18
- import { vgdVersionSkew, restartVgdIfRunning, stopVgd, registerDaemon, rootOf, requireGraph } from './chunk-UUNEUEPQ.js';
18
+ import { vgdVersionSkew, restartVgdIfRunning, stopVgd, registerDaemon, rootOf, requireGraph } from './chunk-DIZ5KI5Q.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-WUFIXAEJ.js';
23
23
  import { fmt, estimateModelBytes } from './chunk-YJYEPYB2.js';
24
- import { isManifest, isDependencyFile, manifestHash, loadScanCache, writeScanCache, manifestKind, findPackageLine, endOfLine, findRuntimeLine } from './chunk-RAEHWCN6.js';
24
+ import { isManifest, isDependencyFile, manifestHash, loadScanCache, writeScanCache, manifestKind, findPackageLine, endOfLine, findRuntimeLine } from './chunk-KYM55VZX.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 { moduleInstalled, removeRelevanceModule, installRelevanceModule, DISCLOSURE, RELEVANCE_MODULE_NAME, moduleInstalledAt, removeModule, installModule, kickRelevanceReadiness, modulesBaseDir, ensureRelevanceModule, DaemonSemanticSession, serveStdio, kernelDisabled, writeConsent, readConsent, exportGraph, GraphSource, createServer, formatForExt, RefreshScheduler } from './chunk-JL66EPZ4.js';
30
- import { refreshIfStale } from './chunk-XHIWQGRE.js';
31
- import { driftCount, ASSISTANTS, detectAssistants, isAssistantInstalled, detectServeLaunch, installAssistant, writeNavigationConfig, uninstallAssistant, buildGraph, writeSnapshot, probeFreshness, assistantById, SMALL_REPO_FILES } from './chunk-QP3P4V4I.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-KRE7SXSA.js';
29
+ import { moduleInstalled, removeRelevanceModule, installRelevanceModule, DISCLOSURE, RELEVANCE_MODULE_NAME, moduleInstalledAt, removeModule, installModule, kickRelevanceReadiness, modulesBaseDir, ensureRelevanceModule, DaemonSemanticSession, serveStdio, kernelDisabled, writeConsent, readConsent, exportGraph, GraphSource, createServer, formatForExt, RefreshScheduler } from './chunk-3E7QT4NE.js';
30
+ import { refreshIfStale } from './chunk-VMPKOMHG.js';
31
+ import { driftCount, ASSISTANTS, detectAssistants, isAssistantInstalled, detectServeLaunch, installAssistant, writeNavigationConfig, uninstallAssistant, buildGraph, writeSnapshot, probeFreshness, assistantById, SMALL_REPO_FILES } from './chunk-NS4DL3QR.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-TT2J2TB6.js';
33
33
  import { resolveIngestHost, dashHostForIngestHost, availableRegionIds, ingestHostForRegionId } from './chunk-HTLDXEHW.js';
34
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-5UG4UHKU.js';
35
+ import './chunk-L7GCJNDT.js';
35
36
  import './chunk-VIWZ4QT7.js';
36
- import { catalogPath, libDir, loadCatalog, driftFor, addLibrary, resolveLib, libId, resolveVersion, readDoc, localPackageDocs, localApiSurface } from './chunk-WATYIYWP.js';
37
- import { recordCliCall, CLI_TOOL_ALIASES, savingsLedgerPath, clearSavings, readSavings, readUsage, readModelSavings, CAPSULE_RANKING_VERSION, SAVINGS_TOOLS, sanitizeClient } from './chunk-TWWVTKA7.js';
37
+ import { catalogPath, libDir, loadCatalog, driftFor, addLibrary, resolveLib, libId, resolveVersion, readDoc, localPackageDocs, localApiSurface } from './chunk-NZES47ST.js';
38
+ import { recordCliCall, CLI_TOOL_ALIASES, savingsLedgerPath, clearSavings, readSavings, readUsage, readModelSavings, CAPSULE_RANKING_VERSION, SAVINGS_TOOLS, sanitizeClient } from './chunk-SYMJSRYF.js';
38
39
  import { discoverModels } from './chunk-WNKGRXUA.js';
39
40
  import { freeBytesOnVolume, weightStoreDir, listCachedWeights, ensureWeightCached, catalogIntegrityReport } from './chunk-57ZRSCHY.js';
40
41
  import { CliError, ExitCode, usageError, engineUnavailable } from './chunk-MS6V5XKB.js';
41
- import { attachVgd } from './chunk-LMHKIQA5.js';
42
+ import { attachVgd } from './chunk-IJVWKZRS.js';
42
43
  import { pathExists as pathExists$1, parseExcludePatterns } from './chunk-PVNALGTG.js';
43
44
  import { ensureDir, pathExists, readJsonFile, writeTextFile, writeJsonFile } from './chunk-CRAMOEBE.js';
44
45
  import './chunk-5IQBIXHS.js';
@@ -47,19 +48,19 @@ import { publishGraphToVgd } from './chunk-A3WWRW7U.js';
47
48
  import { isRelevantChange } from './chunk-DBX3DL27.js';
48
49
  import { inventory, enrichOnline, ECOSYSTEMS } from './chunk-6BEBJCK4.js';
49
50
  import { resolveOne } from './chunk-J7LKEB2R.js';
50
- import { queryGraphSemantic, queryGraph, indexFor, impactOf } from './chunk-USW5WHUG.js';
51
- import { loadGraph, loadGraphPreferIndex, SCHEMA_VERSION } from './chunk-SGIFJIII.js';
51
+ import { queryGraphSemantic, queryGraph, indexFor, impactOf } from './chunk-K3SXWOTT.js';
52
+ import { loadGraph, loadGraphPreferIndex, SCHEMA_VERSION } from './chunk-7M4E7UGX.js';
52
53
  import './chunk-VHRSG6CF.js';
53
54
  import './chunk-6H2QV5DR.js';
54
55
  import { discover, isSkippedDirName } from './chunk-RTURQXQL.js';
55
- import { resolvedGrammarFiles, TOOLCHAIN_GRAMMARS, resolveToolchainGrammar, grammarSetVersion, fileRolesFromParseCache } from './chunk-M5QSBXA6.js';
56
+ import { resolvedGrammarFiles, TOOLCHAIN_GRAMMARS, resolveToolchainGrammar, grammarSetVersion, fileRolesFromParseCache } from './chunk-6MIJLO5B.js';
56
57
  import './chunk-T7RSQ5WD.js';
57
58
  import './chunk-6WRG7VDO.js';
58
- import { embeddingsCached, resolveEmbedModel, loadEmbedder, getNodeEmbeddings, unavailableMessage, countPending, modelCacheInfo, embeddingsPath, clearModelCache, withTimeout } from './chunk-3PNAQUZM.js';
59
- import { resetRelevanceProviderCache, loadRelevanceProvider, resolveGraphPath, loadTopicTags, rankQuestion, renderReport, loadGraphFileWithSnapshot, writeArtifacts, vibgrateDir, mapFileExists, ensureVibgrateGitignore } from './chunk-III7S75O.js';
59
+ import { embeddingsCached, resolveEmbedModel, loadEmbedder, getNodeEmbeddings, unavailableMessage, countPending, modelCacheInfo, embeddingsPath, clearModelCache, withTimeout } from './chunk-FQHWPOTS.js';
60
+ import { resetRelevanceProviderCache, loadRelevanceProvider, resolveGraphPath, loadTopicTags, rankQuestion, renderReport, loadGraphFileWithSnapshot, writeArtifacts, vibgrateDir, mapFileExists, ensureVibgrateGitignore } from './chunk-OIUVWCKM.js';
60
61
  import { cacheDir } from './chunk-MVPRPSXU.js';
61
62
  import { serializeGraph, stableStringify, parseGraph } from './chunk-O3LABX6I.js';
62
- import { VERSION } from './chunk-AGOKTI77.js';
63
+ import { VERSION } from './chunk-G3ACLBMG.js';
63
64
  import './chunk-XP6UUCZZ.js';
64
65
  import { canonicalize, hashString } from './chunk-JFGYT6BI.js';
65
66
  import './chunk-XQNKCA2J.js';
@@ -6153,6 +6154,9 @@ AssertionError: expected 5000`,
6153
6154
  approve: async () => options.autoApprove !== false,
6154
6155
  auto: true,
6155
6156
  capsule: usedCapsule,
6157
+ // FCS / ZNS@1 measure the ranked Task Capsule. Tiny fixtures would
6158
+ // otherwise auto-select whole-repo paste and report usedCapsule=false.
6159
+ capsuleMode: usedCapsule ? "compile" : void 0,
6156
6160
  verify: task.verifyCommand ? { command: task.verifyCommand, maxRounds: 2 } : void 0,
6157
6161
  verifyLadder: usedCapsule,
6158
6162
  overlay: usedCapsule,
@@ -7445,7 +7449,7 @@ function registerCode(program) {
7445
7449
  try {
7446
7450
  const { parseMode: parseMode2, resolveMode: resolveMode2, readOrchestratorState: readOrchestratorState2, activePin: activePin2 } = await import('./model-orchestrator-X3NE3Y2G.js');
7447
7451
  const { gatherSystemMemory: gatherSystemMemory2 } = await import('./local-runtime-GA43KYS5.js');
7448
- const { loadGraph: loadGraph2 } = await import('./load-LT6R73IZ.js');
7452
+ const { loadGraph: loadGraph2 } = await import('./load-7C5VETRD.js');
7449
7453
  const state = readOrchestratorState2();
7450
7454
  const mode = parseMode2(modeFlag) ?? state.defaultMode ?? void 0;
7451
7455
  const pin = mode ? activePin2(mode, state) : null;
@@ -7530,7 +7534,7 @@ function registerCode(program) {
7530
7534
  if (!(process.stdin.isTTY && process.stdout.isTTY)) {
7531
7535
  throw usageError('say what to change, e.g. `vg code "add a --timeout flag to the scan command"` (guided mode needs an interactive terminal)');
7532
7536
  }
7533
- const { runInteractive } = await import('./interactive-YJ37ZWTA.js');
7537
+ const { runInteractive } = await import('./interactive-2XRBRFRB.js');
7534
7538
  await runInteractive(
7535
7539
  rootOf(global),
7536
7540
  global,
@@ -7560,7 +7564,7 @@ function registerCode(program) {
7560
7564
  }
7561
7565
  if (!instruction && !stdinFirstTurn) throw usageError('say what to change, e.g. `vg code "add a --timeout flag to the scan command"`');
7562
7566
  {
7563
- const { ensureCodeMap } = await import('./ensure-map-YL5NR6UH.js');
7567
+ const { ensureCodeMap } = await import('./ensure-map-DL2S774J.js');
7564
7568
  const mapRoot = rootOf(global);
7565
7569
  try {
7566
7570
  await ensureCodeMap(mapRoot, global, {
@@ -7645,20 +7649,20 @@ function registerCode(program) {
7645
7649
  process.stdout.write(JSON.stringify(line) + "\n");
7646
7650
  };
7647
7651
  try {
7648
- const { RunOutcomeRecorder, newOneShotRunId, turnRunId } = await import('./run-outcome-YQBPYNEY.js');
7652
+ const { RunOutcomeRecorder, newOneShotRunId, turnRunId } = await import('./run-outcome-TMB5TJNA.js');
7649
7653
  const primarySlug = route.providers[0]?.model.includes("/") ? route.providers[0].model.split("/")[0] : route.providers[0]?.id;
7650
- const { runCodeStreamJson, parseHostMessage } = await import('./stream-json-VJ2O52CR.js');
7651
- const { nodeCodeFs } = await import('./session-3FLVZRMM.js');
7654
+ const { runCodeStreamJson, parseHostMessage } = await import('./stream-json-NW6AOE47.js');
7655
+ const { nodeCodeFs } = await import('./session-KXT2ZTPE.js');
7652
7656
  const readline6 = await import('readline');
7653
7657
  const child = await import('child_process');
7654
7658
  const { loadOrDiscoverFederation } = await import('./federation-M4ZNXOPX.js');
7655
7659
  const { resolveExecutionEnv } = await import('./execution-env-4MS5AYAN.js');
7656
7660
  const { resolveModelExecutionProfile, mergeModelExecutionProfile } = await import('./model-execution-profile-ELWF3Z6H.js');
7657
- const { startCodeRuntimeSession } = await import('./runtime-session-JSH5UL7Z.js');
7658
- const { resolveGraphBackend } = await import('./graph-backend-LEPXFPXQ.js');
7661
+ const { startCodeRuntimeSession } = await import('./runtime-session-Y23NVY7R.js');
7662
+ const { resolveGraphBackend } = await import('./graph-backend-JXARVT3R.js');
7659
7663
  const { detectGitRef } = await import('./git-ref-LMT3EXYY.js');
7660
7664
  const { repositoryIdFromRoot } = await import('./paths-RVK6FKRN.js');
7661
- const { vgdRequest } = await import('./vgd-XFT574U6.js');
7665
+ const { vgdRequest } = await import('./vgd-RW7HCEIP.js');
7662
7666
  const federation = loadOrDiscoverFederation(root3);
7663
7667
  const modelProfile = mergeModelExecutionProfile(
7664
7668
  resolveModelExecutionProfile({
@@ -7716,7 +7720,7 @@ ${res.stderr}` : ""),
7716
7720
  exitCode: res.status ?? 1
7717
7721
  };
7718
7722
  };
7719
- const { createVgBuiltinMcpTools, mergeExternalToolsets } = await import('./vg-mcp-bridge-UUMEOJSO.js');
7723
+ const { createVgBuiltinMcpTools, mergeExternalToolsets } = await import('./vg-mcp-bridge-LXBHKEFR.js');
7720
7724
  const vgBuiltin = createVgBuiltinMcpTools({
7721
7725
  getGraph: () => graph,
7722
7726
  root: root3,
@@ -7761,7 +7765,7 @@ ${res.stderr}` : ""),
7761
7765
  files,
7762
7766
  indexFile: checkpointIndex
7763
7767
  });
7764
- const { loadApprovalRules, addApprovalRule, ruleForAction, ruleLabel } = await import('./approvals-5UBLBNJF.js');
7768
+ const { loadApprovalRules, addApprovalRule, ruleForAction, ruleLabel } = await import('./approvals-KBM72NU2.js');
7765
7769
  const { loadProjectRules, nodeRulesReader } = await import('./rules-ASYEUNB5.js');
7766
7770
  const projectRules = loadProjectRules(nodeRulesReader(root3));
7767
7771
  if (projectRules.sources.length && !global.quiet) {
@@ -7819,8 +7823,8 @@ ${res.stderr}` : ""),
7819
7823
  };
7820
7824
  try {
7821
7825
  if (opts.session) {
7822
- const { runCodeStreamJsonSession, STREAM_JSON_PROTOCOL_VERSION } = await import('./stream-json-VJ2O52CR.js');
7823
- const { runAgent: runAgent2 } = await import('./agent-6SJVWFPV.js');
7826
+ const { runCodeStreamJsonSession, STREAM_JSON_PROTOCOL_VERSION } = await import('./stream-json-NW6AOE47.js');
7827
+ const { runAgent: runAgent2 } = await import('./agent-DHQYEHVW.js');
7824
7828
  const {
7825
7829
  condenseSession,
7826
7830
  loadLatestSession,
@@ -7831,7 +7835,7 @@ ${res.stderr}` : ""),
7831
7835
  sessionsDir,
7832
7836
  summarizeSession
7833
7837
  } = await import('./session-store-AQUORKWB.js');
7834
- const { VERSION: VERSION2 } = await import('./version-VUTM46C5.js');
7838
+ const { VERSION: VERSION2 } = await import('./version-7ABYXWOZ.js');
7835
7839
  const resumedRecord = typeof opts.continue === "string" ? loadSession(mainRoot, opts.continue) : opts.continue ? loadLatestSession(mainRoot) : void 0;
7836
7840
  if (typeof opts.continue === "string" && !resumedRecord) {
7837
7841
  emitStream({
@@ -8043,8 +8047,8 @@ ${res.stderr}` : ""),
8043
8047
  if (!autonomous && !tty) {
8044
8048
  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).");
8045
8049
  }
8046
- const { agentTask } = await import('./interactive-YJ37ZWTA.js');
8047
- const { nodeCodeFs } = await import('./session-3FLVZRMM.js');
8050
+ const { agentTask } = await import('./interactive-2XRBRFRB.js');
8051
+ const { nodeCodeFs } = await import('./session-KXT2ZTPE.js');
8048
8052
  const { TtyPrompter } = await import('./ui-K7D3BCHD.js');
8049
8053
  let priorSummary;
8050
8054
  let priorInstruction;
@@ -8059,7 +8063,7 @@ ${res.stderr}` : ""),
8059
8063
  }
8060
8064
  }
8061
8065
  const prompter = tty ? new TtyPrompter() : void 0;
8062
- const { createVgBuiltinMcpTools, mergeExternalToolsets } = await import('./vg-mcp-bridge-UUMEOJSO.js');
8066
+ const { createVgBuiltinMcpTools, mergeExternalToolsets } = await import('./vg-mcp-bridge-LXBHKEFR.js');
8063
8067
  const vgBuiltin = createVgBuiltinMcpTools({
8064
8068
  getGraph: () => graph,
8065
8069
  root: root3,
@@ -8083,11 +8087,11 @@ ${res.stderr}` : ""),
8083
8087
  const { loadFederation } = await import('./federation-M4ZNXOPX.js');
8084
8088
  const { resolveExecutionEnv } = await import('./execution-env-4MS5AYAN.js');
8085
8089
  const { resolveModelExecutionProfile, mergeModelExecutionProfile } = await import('./model-execution-profile-ELWF3Z6H.js');
8086
- const { startCodeRuntimeSession } = await import('./runtime-session-JSH5UL7Z.js');
8087
- const { resolveGraphBackend } = await import('./graph-backend-LEPXFPXQ.js');
8090
+ const { startCodeRuntimeSession } = await import('./runtime-session-Y23NVY7R.js');
8091
+ const { resolveGraphBackend } = await import('./graph-backend-JXARVT3R.js');
8088
8092
  const { detectGitRef } = await import('./git-ref-LMT3EXYY.js');
8089
8093
  const { repositoryIdFromRoot } = await import('./paths-RVK6FKRN.js');
8090
- const { vgdRequest } = await import('./vgd-XFT574U6.js');
8094
+ const { vgdRequest } = await import('./vgd-RW7HCEIP.js');
8091
8095
  const federation = loadFederation(root3);
8092
8096
  const modelProfile = mergeModelExecutionProfile(
8093
8097
  resolveModelExecutionProfile({
@@ -9271,7 +9275,7 @@ var initCommand = new Command("init").description("Initialize vibgrate in a proj
9271
9275
  console.log(chalk7.green("\u2714") + ` Created ${chalk7.bold("vibgrate.config.ts")}`);
9272
9276
  }
9273
9277
  if (opts.baseline) {
9274
- const { runBaseline } = await import('./baseline-HPXACNFU.js');
9278
+ const { runBaseline } = await import('./baseline-4X6MQBDA.js');
9275
9279
  await runBaseline(rootDir);
9276
9280
  }
9277
9281
  console.log("");
@@ -9804,7 +9808,7 @@ function reportStandards(rootDir) {
9804
9808
  }
9805
9809
  async function printRuntimeSnapshot(rootDir, opts, already) {
9806
9810
  try {
9807
- const { attachVgd: attachVgd2 } = await import('./attach-PSGCCJMA.js');
9811
+ const { attachVgd: attachVgd2 } = await import('./attach-O74NL4M5.js');
9808
9812
  const { vgdRequest } = await import('./client-P5XSRFV4.js');
9809
9813
  const { formatSemanticProgress } = await import('./semantic-status-2JFLIQQJ.js');
9810
9814
  let repositoryId = already?.repositoryId;
@@ -10013,7 +10017,7 @@ var scanCommand = new Command("scan").description("Scan a project for upgrade dr
10013
10017
  const advanced = await loadAdvancedScanHook();
10014
10018
  const artifact = await runCoreScan(rootDir, scanOpts, advanced);
10015
10019
  if (wantGraph && builtGraph) {
10016
- const { attachVgd: attachVgd2 } = await import('./attach-PSGCCJMA.js');
10020
+ const { attachVgd: attachVgd2 } = await import('./attach-O74NL4M5.js');
10017
10021
  const { ActivityLog: ActivityLog2 } = await import('./activity-MF2GNYAI.js');
10018
10022
  const activity = new ActivityLog2();
10019
10023
  const attached = await activity.time(
@@ -10919,7 +10923,7 @@ ${String(err)}` }));
10919
10923
  async function releaseWindowsFileLocks(cwd, keepVersion) {
10920
10924
  reapAndReport(cwd, keepVersion);
10921
10925
  try {
10922
- const { vgdSocketPath } = await import('./vgd-XFT574U6.js');
10926
+ const { vgdSocketPath } = await import('./vgd-RW7HCEIP.js');
10923
10927
  const result = await stopVgd(vgdSocketPath());
10924
10928
  if (result === "stopped") {
10925
10929
  console.log(chalk7.dim("Stopped the vgd daemon so its files can be replaced \u2014 it restarts on the new build after the install."));
@@ -11050,7 +11054,7 @@ var updateCommand = new Command("update").description("Update vibgrate to the la
11050
11054
  );
11051
11055
  async function rewarmVgdAndReport(cwd) {
11052
11056
  try {
11053
- const { vgdIsRunning, vgdRequest } = await import('./vgd-XFT574U6.js');
11057
+ const { vgdIsRunning, vgdRequest } = await import('./vgd-RW7HCEIP.js');
11054
11058
  if (!await vgdIsRunning()) return;
11055
11059
  const loaded = await vgdRequest({ op: "load-graph", root: cwd });
11056
11060
  if (!loaded.ok || !("stored" in loaded)) return;