@vibgrate/cli 2026.819.2 → 2026.824.3

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 (110) hide show
  1. package/dist/{agent-ZJRWCMR6.js → agent-6SJVWFPV.js} +12 -12
  2. package/dist/{agent-ZJRWCMR6.js.map → agent-6SJVWFPV.js.map} +1 -1
  3. package/dist/{approvals-YTUXBZWQ.js → approvals-5UBLBNJF.js} +5 -5
  4. package/dist/{approvals-YTUXBZWQ.js.map → approvals-5UBLBNJF.js.map} +1 -1
  5. package/dist/{attach-WOA25VNH.js → attach-PSGCCJMA.js} +3 -3
  6. package/dist/{attach-WOA25VNH.js.map → attach-PSGCCJMA.js.map} +1 -1
  7. package/dist/baseline-HPXACNFU.js +9 -0
  8. package/dist/{baseline-TVRRUZGA.js.map → baseline-HPXACNFU.js.map} +1 -1
  9. package/dist/{chunk-24HKTTFV.js → chunk-2IY24TTR.js} +3 -3
  10. package/dist/{chunk-24HKTTFV.js.map → chunk-2IY24TTR.js.map} +1 -1
  11. package/dist/{chunk-7BSUPHX6.js → chunk-3PNAQUZM.js} +3 -3
  12. package/dist/{chunk-7BSUPHX6.js.map → chunk-3PNAQUZM.js.map} +1 -1
  13. package/dist/{chunk-W6ASIMG5.js → chunk-4PDWV4AE.js} +10 -12
  14. package/dist/chunk-4PDWV4AE.js.map +1 -0
  15. package/dist/{chunk-2ZBLZ2S3.js → chunk-5QO2GFAE.js} +27 -23
  16. package/dist/chunk-5QO2GFAE.js.map +1 -0
  17. package/dist/{chunk-GBXOAO5V.js → chunk-5UG4UHKU.js} +40 -10
  18. package/dist/chunk-5UG4UHKU.js.map +1 -0
  19. package/dist/chunk-AGOKTI77.js +6 -0
  20. package/dist/{chunk-ZUZHYAJK.js.map → chunk-AGOKTI77.js.map} +1 -1
  21. package/dist/{chunk-C2EZIAA3.js → chunk-B5GOCQFB.js} +9 -9
  22. package/dist/{chunk-C2EZIAA3.js.map → chunk-B5GOCQFB.js.map} +1 -1
  23. package/dist/{chunk-MMJFHEZ4.js → chunk-CJ2R3LVX.js} +4 -4
  24. package/dist/{chunk-MMJFHEZ4.js.map → chunk-CJ2R3LVX.js.map} +1 -1
  25. package/dist/{chunk-2C4QT5D7.js → chunk-III7S75O.js} +53 -463
  26. package/dist/chunk-III7S75O.js.map +1 -0
  27. package/dist/{chunk-IMI2VHHZ.js → chunk-IKB5U3AH.js} +3 -3
  28. package/dist/{chunk-IMI2VHHZ.js.map → chunk-IKB5U3AH.js.map} +1 -1
  29. package/dist/{chunk-AP3JN33O.js → chunk-JL66EPZ4.js} +221 -10
  30. package/dist/chunk-JL66EPZ4.js.map +1 -0
  31. package/dist/{chunk-QE6F62FR.js → chunk-KBLKNR3V.js} +3 -3
  32. package/dist/{chunk-QE6F62FR.js.map → chunk-KBLKNR3V.js.map} +1 -1
  33. package/dist/{chunk-JPOYXG7Z.js → chunk-KRE7SXSA.js} +12 -13
  34. package/dist/chunk-KRE7SXSA.js.map +1 -0
  35. package/dist/{chunk-XW2XQM3C.js → chunk-LA4CETXN.js} +3 -3
  36. package/dist/{chunk-XW2XQM3C.js.map → chunk-LA4CETXN.js.map} +1 -1
  37. package/dist/{chunk-OGFOJG4H.js → chunk-LMHKIQA5.js} +3 -3
  38. package/dist/{chunk-OGFOJG4H.js.map → chunk-LMHKIQA5.js.map} +1 -1
  39. package/dist/{chunk-FCMWHSQ6.js → chunk-M5QSBXA6.js} +17 -4
  40. package/dist/chunk-M5QSBXA6.js.map +1 -0
  41. package/dist/{chunk-R5TQBIR6.js → chunk-QLNJ3VWO.js} +3 -3
  42. package/dist/{chunk-R5TQBIR6.js.map → chunk-QLNJ3VWO.js.map} +1 -1
  43. package/dist/{chunk-XLQ4YHS3.js → chunk-QP3P4V4I.js} +10 -8
  44. package/dist/chunk-QP3P4V4I.js.map +1 -0
  45. package/dist/{chunk-BQ6NTRRK.js → chunk-RAEHWCN6.js} +6 -6
  46. package/dist/{chunk-BQ6NTRRK.js.map → chunk-RAEHWCN6.js.map} +1 -1
  47. package/dist/{chunk-USPMMVNH.js → chunk-SGIFJIII.js} +3 -3
  48. package/dist/{chunk-USPMMVNH.js.map → chunk-SGIFJIII.js.map} +1 -1
  49. package/dist/{chunk-CBL3VY7J.js → chunk-TWWVTKA7.js} +35 -14
  50. package/dist/chunk-TWWVTKA7.js.map +1 -0
  51. package/dist/chunk-USW5WHUG.js +605 -0
  52. package/dist/chunk-USW5WHUG.js.map +1 -0
  53. package/dist/{chunk-NKKOGJ63.js → chunk-UUNEUEPQ.js} +71 -9
  54. package/dist/chunk-UUNEUEPQ.js.map +1 -0
  55. package/dist/{chunk-WPLOEFZU.js → chunk-WATYIYWP.js} +3 -3
  56. package/dist/{chunk-WPLOEFZU.js.map → chunk-WATYIYWP.js.map} +1 -1
  57. package/dist/{chunk-PJRPSYFQ.js → chunk-XHIWQGRE.js} +5 -5
  58. package/dist/{chunk-PJRPSYFQ.js.map → chunk-XHIWQGRE.js.map} +1 -1
  59. package/dist/{chunk-AQZYDFEK.js → chunk-YJ23GGAJ.js} +3 -3
  60. package/dist/{chunk-AQZYDFEK.js.map → chunk-YJ23GGAJ.js.map} +1 -1
  61. package/dist/cli.js +379 -544
  62. package/dist/cli.js.map +1 -1
  63. package/dist/{daemon-YKOEP3XA.js → daemon-AEL5N4SJ.js} +9 -9
  64. package/dist/{daemon-YKOEP3XA.js.map → daemon-AEL5N4SJ.js.map} +1 -1
  65. package/dist/embed-worker-main.js +3 -3
  66. package/dist/{ensure-map-BLRJDO2Y.js → ensure-map-YL5NR6UH.js} +15 -15
  67. package/dist/{ensure-map-BLRJDO2Y.js.map → ensure-map-YL5NR6UH.js.map} +1 -1
  68. package/dist/{graph-backend-NTYONTWW.js → graph-backend-LEPXFPXQ.js} +7 -7
  69. package/dist/{graph-backend-NTYONTWW.js.map → graph-backend-LEPXFPXQ.js.map} +1 -1
  70. package/dist/index.d.ts +72 -130
  71. package/dist/index.js +15 -15
  72. package/dist/{interactive-B3WTC7LB.js → interactive-YJ37ZWTA.js} +27 -26
  73. package/dist/interactive-YJ37ZWTA.js.map +1 -0
  74. package/dist/load-LT6R73IZ.js +11 -0
  75. package/dist/{load-AJROS77R.js.map → load-LT6R73IZ.js.map} +1 -1
  76. package/dist/parse-worker.js +3 -2
  77. package/dist/parse-worker.js.map +1 -1
  78. package/dist/{run-outcome-SBBSTSH3.js → run-outcome-YQBPYNEY.js} +5 -5
  79. package/dist/{run-outcome-SBBSTSH3.js.map → run-outcome-YQBPYNEY.js.map} +1 -1
  80. package/dist/{runtime-session-JYYKQVDX.js → runtime-session-JSH5UL7Z.js} +9 -9
  81. package/dist/{runtime-session-JYYKQVDX.js.map → runtime-session-JSH5UL7Z.js.map} +1 -1
  82. package/dist/{session-2ZMHZ2O6.js → session-3FLVZRMM.js} +8 -8
  83. package/dist/{session-2ZMHZ2O6.js.map → session-3FLVZRMM.js.map} +1 -1
  84. package/dist/{stream-json-ZWGB4C47.js → stream-json-VJ2O52CR.js} +12 -12
  85. package/dist/{stream-json-ZWGB4C47.js.map → stream-json-VJ2O52CR.js.map} +1 -1
  86. package/dist/version-VUTM46C5.js +4 -0
  87. package/dist/{version-5QIEUXU6.js.map → version-VUTM46C5.js.map} +1 -1
  88. package/dist/{vg-mcp-bridge-4FETMJ6M.js → vg-mcp-bridge-UUMEOJSO.js} +9 -9
  89. package/dist/{vg-mcp-bridge-4FETMJ6M.js.map → vg-mcp-bridge-UUMEOJSO.js.map} +1 -1
  90. package/dist/{vgd-R524P5BJ.js → vgd-XFT574U6.js} +8 -8
  91. package/dist/vgd-XFT574U6.js.map +1 -0
  92. package/package.json +2 -1
  93. package/dist/baseline-TVRRUZGA.js +0 -9
  94. package/dist/chunk-2C4QT5D7.js.map +0 -1
  95. package/dist/chunk-2ZBLZ2S3.js.map +0 -1
  96. package/dist/chunk-AP3JN33O.js.map +0 -1
  97. package/dist/chunk-CA4YQBA7.js +0 -699
  98. package/dist/chunk-CA4YQBA7.js.map +0 -1
  99. package/dist/chunk-CBL3VY7J.js.map +0 -1
  100. package/dist/chunk-FCMWHSQ6.js.map +0 -1
  101. package/dist/chunk-GBXOAO5V.js.map +0 -1
  102. package/dist/chunk-JPOYXG7Z.js.map +0 -1
  103. package/dist/chunk-NKKOGJ63.js.map +0 -1
  104. package/dist/chunk-W6ASIMG5.js.map +0 -1
  105. package/dist/chunk-XLQ4YHS3.js.map +0 -1
  106. package/dist/chunk-ZUZHYAJK.js +0 -6
  107. package/dist/interactive-B3WTC7LB.js.map +0 -1
  108. package/dist/load-AJROS77R.js +0 -11
  109. package/dist/version-5QIEUXU6.js +0 -4
  110. package/dist/vgd-R524P5BJ.js.map +0 -1
@@ -1,7 +1,7 @@
1
- export { compareDaemonVersion, ensureVgd, ensureVgdSoft, registerDaemon, restartVgdIfRunning, startDetachedVgd, stopVgd, vgdCliVersion, vgdVersionSkew } from './chunk-NKKOGJ63.js';
1
+ export { compareDaemonVersion, ensureVgd, ensureVgdSoft, registerDaemon, restartVgdIfRunning, retireWedgedVgd, startDetachedVgd, stopVgd, vgdCliVersion, vgdVersionSkew } from './chunk-UUNEUEPQ.js';
2
2
  import './chunk-YENM3HT7.js';
3
3
  import './chunk-CT5BS56U.js';
4
- import './chunk-BQ6NTRRK.js';
4
+ import './chunk-RAEHWCN6.js';
5
5
  import './chunk-3LOWJSAF.js';
6
6
  import './chunk-5HYCB55P.js';
7
7
  import './chunk-IS7VTH2Q.js';
@@ -11,20 +11,20 @@ import './chunk-EZ7UC5Y5.js';
11
11
  import './chunk-DBX3DL27.js';
12
12
  import './chunk-6BEBJCK4.js';
13
13
  import './chunk-J7LKEB2R.js';
14
- import './chunk-CA4YQBA7.js';
15
- import './chunk-USPMMVNH.js';
14
+ import './chunk-USW5WHUG.js';
15
+ import './chunk-SGIFJIII.js';
16
16
  import './chunk-VHRSG6CF.js';
17
17
  import './chunk-6H2QV5DR.js';
18
18
  import './chunk-RTURQXQL.js';
19
19
  import './chunk-6WRG7VDO.js';
20
- import './chunk-7BSUPHX6.js';
21
- import './chunk-2C4QT5D7.js';
20
+ import './chunk-3PNAQUZM.js';
21
+ import './chunk-III7S75O.js';
22
22
  import './chunk-MVPRPSXU.js';
23
23
  import './chunk-O3LABX6I.js';
24
- import './chunk-ZUZHYAJK.js';
24
+ import './chunk-AGOKTI77.js';
25
25
  import './chunk-XP6UUCZZ.js';
26
26
  import './chunk-JFGYT6BI.js';
27
27
  import './chunk-XQNKCA2J.js';
28
28
  import './chunk-Z6ZWNWWR.js';
29
- //# sourceMappingURL=daemon-YKOEP3XA.js.map
30
- //# sourceMappingURL=daemon-YKOEP3XA.js.map
29
+ //# sourceMappingURL=daemon-AEL5N4SJ.js.map
30
+ //# sourceMappingURL=daemon-AEL5N4SJ.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"daemon-YKOEP3XA.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"daemon-AEL5N4SJ.js"}
@@ -1,8 +1,8 @@
1
- import { resolveEmbedModel, loadEmbedder } from './chunk-7BSUPHX6.js';
2
- import './chunk-2C4QT5D7.js';
1
+ import { resolveEmbedModel, loadEmbedder } from './chunk-3PNAQUZM.js';
2
+ import './chunk-III7S75O.js';
3
3
  import './chunk-MVPRPSXU.js';
4
4
  import './chunk-O3LABX6I.js';
5
- import './chunk-ZUZHYAJK.js';
5
+ import './chunk-AGOKTI77.js';
6
6
  import './chunk-XP6UUCZZ.js';
7
7
  import './chunk-JFGYT6BI.js';
8
8
  import './chunk-XQNKCA2J.js';
@@ -1,40 +1,40 @@
1
- export { ensureCodeMap } from './chunk-MMJFHEZ4.js';
2
- import './chunk-C2EZIAA3.js';
1
+ export { ensureCodeMap } from './chunk-CJ2R3LVX.js';
2
+ import './chunk-B5GOCQFB.js';
3
3
  import './chunk-YENM3HT7.js';
4
4
  import './chunk-H5Q4JUY4.js';
5
5
  import './chunk-CT5BS56U.js';
6
- import './chunk-XLQ4YHS3.js';
7
- import './chunk-JPOYXG7Z.js';
6
+ import './chunk-QP3P4V4I.js';
7
+ import './chunk-KRE7SXSA.js';
8
8
  import './chunk-HTLDXEHW.js';
9
- import './chunk-GBXOAO5V.js';
9
+ import './chunk-5UG4UHKU.js';
10
10
  import './chunk-VIWZ4QT7.js';
11
- import './chunk-WPLOEFZU.js';
11
+ import './chunk-WATYIYWP.js';
12
12
  import './chunk-WNKGRXUA.js';
13
13
  import './chunk-57ZRSCHY.js';
14
14
  import './chunk-MS6V5XKB.js';
15
- import './chunk-OGFOJG4H.js';
15
+ import './chunk-LMHKIQA5.js';
16
16
  import './chunk-PVNALGTG.js';
17
17
  import './chunk-CRAMOEBE.js';
18
18
  import './chunk-EZ7UC5Y5.js';
19
19
  import './chunk-A3WWRW7U.js';
20
20
  import './chunk-6BEBJCK4.js';
21
21
  import './chunk-J7LKEB2R.js';
22
- import './chunk-CA4YQBA7.js';
23
- import './chunk-USPMMVNH.js';
22
+ import './chunk-USW5WHUG.js';
23
+ import './chunk-SGIFJIII.js';
24
24
  import './chunk-VHRSG6CF.js';
25
25
  import './chunk-6H2QV5DR.js';
26
26
  import './chunk-RTURQXQL.js';
27
- import './chunk-FCMWHSQ6.js';
27
+ import './chunk-M5QSBXA6.js';
28
28
  import './chunk-T7RSQ5WD.js';
29
29
  import './chunk-6WRG7VDO.js';
30
- import './chunk-7BSUPHX6.js';
31
- import './chunk-2C4QT5D7.js';
30
+ import './chunk-3PNAQUZM.js';
31
+ import './chunk-III7S75O.js';
32
32
  import './chunk-MVPRPSXU.js';
33
33
  import './chunk-O3LABX6I.js';
34
- import './chunk-ZUZHYAJK.js';
34
+ import './chunk-AGOKTI77.js';
35
35
  import './chunk-XP6UUCZZ.js';
36
36
  import './chunk-JFGYT6BI.js';
37
37
  import './chunk-XQNKCA2J.js';
38
38
  import './chunk-Z6ZWNWWR.js';
39
- //# sourceMappingURL=ensure-map-BLRJDO2Y.js.map
40
- //# sourceMappingURL=ensure-map-BLRJDO2Y.js.map
39
+ //# sourceMappingURL=ensure-map-YL5NR6UH.js.map
40
+ //# sourceMappingURL=ensure-map-YL5NR6UH.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"ensure-map-BLRJDO2Y.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"ensure-map-YL5NR6UH.js"}
@@ -1,16 +1,16 @@
1
- export { localGraphBackend, resolveGraphBackend, vgdGraphBackend } from './chunk-AQZYDFEK.js';
1
+ export { localGraphBackend, resolveGraphBackend, vgdGraphBackend } from './chunk-YJ23GGAJ.js';
2
2
  import './chunk-J7LKEB2R.js';
3
- import './chunk-CA4YQBA7.js';
3
+ import './chunk-USW5WHUG.js';
4
4
  import './chunk-VHRSG6CF.js';
5
5
  import './chunk-6H2QV5DR.js';
6
- import './chunk-7BSUPHX6.js';
7
- import './chunk-2C4QT5D7.js';
6
+ import './chunk-3PNAQUZM.js';
7
+ import './chunk-III7S75O.js';
8
8
  import './chunk-MVPRPSXU.js';
9
9
  import './chunk-O3LABX6I.js';
10
- import './chunk-ZUZHYAJK.js';
10
+ import './chunk-AGOKTI77.js';
11
11
  import './chunk-XP6UUCZZ.js';
12
12
  import './chunk-JFGYT6BI.js';
13
13
  import './chunk-XQNKCA2J.js';
14
14
  import './chunk-Z6ZWNWWR.js';
15
- //# sourceMappingURL=graph-backend-NTYONTWW.js.map
16
- //# sourceMappingURL=graph-backend-NTYONTWW.js.map
15
+ //# sourceMappingURL=graph-backend-LEPXFPXQ.js.map
16
+ //# sourceMappingURL=graph-backend-LEPXFPXQ.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"graph-backend-NTYONTWW.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"graph-backend-LEPXFPXQ.js"}
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import { G as GraphNode, a as GraphEdge, A as Area, R as ResolverKind, V as VgGr
2
2
  export { e as AnalysisTier, C as Centrality, D as DerivedBy, f as EpistemicTier, g as FactConfidence, h as FactKind, i as GraphMeta, j as GraphSummaries, H as HubBlastSummary, N as NodeKind, P as Provenance, k as SUPPORTED_SCHEMA_VERSIONS, l as Span, m as SupportedSchemaVersion, T as Toolchain, U as Unknown } from './types-DHqH0XIE.js';
3
3
  import { Server } from '@modelcontextprotocol/sdk/server/index.js';
4
4
 
5
- declare const VERSION = "2026.819.2";
5
+ declare const VERSION = "2026.824.3";
6
6
 
7
7
  /**
8
8
  * Analysis stage: importance, centrality, hubs, communities, and surprise.
@@ -572,119 +572,47 @@ type EmbedProgress = (done: number, total: number) => void;
572
572
  */
573
573
  declare function getNodeEmbeddings(graph: VgGraph, embedder: Embedder, root: string, onProgress?: EmbedProgress): Promise<Map<string, number[]>>;
574
574
 
575
- interface RelevanceExpansion {
576
- /** Single lowercase word, ready for identifier-part matching. */
577
- term: string;
578
- /** The question token/phrase (or topic id) that produced it. */
579
- from: string;
580
- /** 0..1 relative confidence; scales the expansion's scoring contribution. */
581
- weight: number;
582
- }
583
- interface RelevanceTopic {
584
- id: string;
585
- /** 0..1, normalized within one analysis. */
586
- score: number;
587
- }
588
- /** One level of a matched taxonomy path, root-first. */
589
- interface RelevanceTaxonomyLevel {
575
+ interface RankedSeed {
590
576
  id: string;
591
- path: string;
592
- /** 0..1 — never lower than the levels beneath it. */
593
577
  score: number;
594
- /** This level's own vocabulary. */
595
- terms: string[];
596
- }
597
- /** A hierarchical match: the most specific node plus its ancestor chain. */
598
- interface RelevanceTaxonomyMatch {
599
- /** "infrastructure/networking/dns/cname" */
600
- path: string;
601
- levels: RelevanceTaxonomyLevel[];
602
- score: number;
603
- /** Absolute evidence behind the match, not relative to other matches. */
604
- evidence: number;
605
- /** What matched — "~" prefixes a fuzzy repair. */
606
- via: string[];
607
- /** The matched node's OWN vocabulary, for explaining the domain. */
608
- terms: string[];
609
- /** Filenames and extensions this node's work lives in, nearest first. */
610
- files: string[];
611
- /** Standards governing this node, current revision first. */
612
- standards: RelevanceStandard[];
613
- }
614
- /** A product the ask names, including through a misspelling. */
615
- interface RelevanceVendorMatch {
616
- name: string;
617
- from: string;
618
- node?: string;
619
- topic: string;
620
- score: number;
621
- /** Filenames and extensions this vendor's configuration lives in. */
622
- files: string[];
623
- }
624
- /** A standard governing the matched area, at the revision the pack tracks. */
625
- interface RelevanceStandard {
626
- name: string;
627
- publisher: string;
628
- node: string;
629
- /** "standard" or "regulation". */
630
- kind: string;
631
- /** Lowercase category slugs from the website's own vocabulary. */
632
- categories: string[];
633
- }
634
- /** A misspelling the provider resolved. */
635
- interface RelevanceCorrection {
636
- from: string;
637
- to: string;
638
- distance: number;
578
+ why: string;
639
579
  }
640
- interface RelevanceAnalysis {
580
+ /** Sanitized module ranking, ready for `queryGraph({ ranked })`. */
581
+ interface SanitizedRank {
641
582
  version: string;
642
- topics: RelevanceTopic[];
643
- expansions: RelevanceExpansion[];
644
- /** Hierarchical matches, most specific first. Absent from older providers. */
645
- taxonomy?: RelevanceTaxonomyMatch[];
646
- vendors?: RelevanceVendorMatch[];
647
- corrections?: RelevanceCorrection[];
648
- /** Every file hint the analysis implies, most specific first. */
649
- files?: string[];
650
- /** Standards governing what the ask is about, most specific node first. */
651
- standards?: RelevanceStandard[];
652
- /** Deduped lowercase category slugs across those standards. */
653
- categories?: string[];
583
+ hasContent: boolean;
584
+ seeds: RankedSeed[];
585
+ conceptMap: string[];
654
586
  }
655
587
 
656
588
  /**
657
- * Deterministic retrieval for `vg ask` (VG-CLI-SPEC §3.2).
589
+ * Retrieval front-end for `vg ask` / `vg code` capsule seeds (VG-CLI-SPEC
590
+ * §3.2).
591
+ *
592
+ * Since the 2026-08 relevance relocation, the RANKING ENGINE lives in the
593
+ * optional relevance module (`@vibgrate/relevance`, auto-provisioned): the
594
+ * async callers run the ask through the module via
595
+ * `relevance-provider.rankQuestion` and pass the SANITIZED result in as
596
+ * `options.ranked`. This file keeps only what is mechanical:
658
597
  *
659
- * Builds a structured, fact-annotated, budget-bounded context block for a
660
- * question — designed to drop straight into an assistant's context. The default
661
- * is deterministic lexical+structural retrieval: identifier/term matching with
662
- * morphological prefix-fuzzing, term-role weighting (process verbs like "add"
663
- * only corroborate, never seed see engine/concepts.ts), static concept
664
- * expansion ("payments" stripe/billing/…, "direct debit" sepa/bacs/mandate),
665
- * and a multi-term coverage bonus, ranked with importance as a mild tiebreaker.
666
- * `--semantic`/`--deep` adds
667
- * a hybrid local-embedding pass (`queryGraphSemantic`) that surfaces conceptually
668
- * related code even when no word is shared — still no API key.
598
+ * - literal string/URL needle handling (the locate path exact-text
599
+ * matching, not relevance);
600
+ * - a deliberately dumb module-less fallback: exact identifier-name and
601
+ * name-part matching, nothing that understands language (no lexicon, no
602
+ * term roles, no IDF, no typo repair, no expansion) enough that an ask
603
+ * NAMING a symbol still pins its file when the module is unavailable;
604
+ * - context-block rendering and the semantic Reciprocal Rank Fusion
605
+ * plumbing (`--semantic`), which fuses ORDERINGS and carries no ranking
606
+ * heuristics of its own.
669
607
  */
670
608
  interface QueryOptions {
671
609
  budget?: number;
672
610
  limit?: number;
673
- /** Optional pre-computed relevance analysis (engine/relevance-provider.ts).
674
- * Injected by async callers so this module stays pure and sync; when
675
- * absent, ranking is exactly the built-in lexicon path. */
676
- relevance?: RelevanceAnalysis | null;
677
- /** Optional per-node topic tags (engine/relevance-enrich.ts). Combined with
678
- * `relevance.topics` into a bounded affinity bonus: a node structurally
679
- * tagged with a topic the question is about ranks above an equal textual
680
- * match outside it. Never seeds alone — it multiplies existing evidence. */
681
- topicTags?: Map<string, readonly string[]> | null;
682
- /** Previous conversational ask (multi-turn `vg code`). Its content terms —
683
- * never its process verbs — join ranking at a damped weight (CARRY_WEIGHT)
684
- * so a follow-up like "can we use direct debits?" keeps the prior turn's
685
- * topic ("where is stripe used?") instead of ranking the repo on the
686
- * follow-up's words alone. Absent → behaviour is unchanged. */
687
- priorQuestion?: string | null;
611
+ /** Sanitized module ranking (engine/relevance-provider.ts rankQuestion),
612
+ * injected by async callers so this module stays pure and sync. When
613
+ * absent module not installed, predates the ranking API, or failed —
614
+ * the mechanical fallback below answers. */
615
+ ranked?: SanitizedRank | null;
688
616
  }
689
617
  interface QueryMatch {
690
618
  node: GraphNode;
@@ -719,22 +647,21 @@ interface SemanticQueryOptions extends QueryOptions {
719
647
  }>;
720
648
  }
721
649
  /**
722
- * Hybrid lexical + local-embedding retrieval, combined with Reciprocal Rank
723
- * Fusion (Phase 3.2 replaces the former 50/50 score blend), so a question
724
- * like "where do we handle auth failures?" can surface `verify_token` even
725
- * with no shared identifier. Topic affinity and importance stay multiplicative
726
- * tiebreakers on the fused score. Deterministic given the same model + cached
727
- * vectors; embeddings live in a binary sidecar next to the map, never in `graph.json`.
650
+ * Hybrid retrieval, combined with Reciprocal Rank Fusion: the module ranking
651
+ * (or the mechanical fallback) is one arm, the local-embedding pass the
652
+ * other, so a question like "where do we handle auth failures?" can surface
653
+ * `verify_token` even with no shared word. Deterministic given the same
654
+ * model + cached vectors; embeddings live in a binary sidecar next to the
655
+ * map, never in `graph.json`.
728
656
  */
729
657
  declare function queryGraphSemantic(graph: VgGraph, question: string, options: SemanticQueryOptions): Promise<QueryResult>;
730
658
  /**
731
- * camelCase / snake_case / kebab split of an identifier → lowercased parts.
732
- * The separator alternative is Unicode-letter-aware (`\p{L}\p{N}`, not
733
- * ASCII-only `a-zA-Z0-9`) so non-Latin identifiers split on punctuation
734
- * without losing every character to it; the camelCase boundary lookaround
735
- * stays ASCII-only since upper/lowercase casing is itself an ASCII-script
736
- * concept scripts without case simply never trigger it and fall through to
737
- * the separator split.
659
+ * camelCase / snake_case / kebab / letter↔digit split of an identifier →
660
+ * lowercased parts. The separator alternative is Unicode-letter-aware
661
+ * (`\p{L}\p{N}`, not ASCII-only) so non-Latin identifiers split on
662
+ * punctuation without losing every character to it; the camelCase boundary
663
+ * lookaround stays ASCII-only since casing is itself an ASCII-script concept.
664
+ * Letter↔digit boundaries split too, so `Session2` keeps `session` reachable.
738
665
  */
739
666
  declare function identifierParts(name: string): Set<string>;
740
667
 
@@ -2169,6 +2096,11 @@ declare function redactGraph(graph: VgGraph): VgGraph;
2169
2096
  */
2170
2097
  declare function grammarsSourceDir(): string | null;
2171
2098
 
2099
+ declare function moduleInstalled(): {
2100
+ installed: boolean;
2101
+ version?: string;
2102
+ };
2103
+
2172
2104
  /** The graph-grounded context handed to the model, plus what fed it. */
2173
2105
  interface CodeContext {
2174
2106
  instruction: string;
@@ -2217,16 +2149,11 @@ interface BuildContextOptions {
2217
2149
  impactDepth?: number;
2218
2150
  /** Restrict the edit surface to these files (from `--file`), if given. */
2219
2151
  files?: string[];
2220
- /** Optional pre-computed relevance analysis (engine/relevance-provider.ts),
2221
- * loaded by the async caller; widens seed vocabulary deterministically. */
2222
- relevance?: RelevanceAnalysis | null;
2223
- /** Optional per-node topic tags (engine/relevance-enrich.ts). */
2224
- topicTags?: Map<string, readonly string[]> | null;
2225
- /** The previous conversational ask (multi-turn `vg code`). Its content
2226
- * terms join seed ranking at a damped weight so follow-ups ("do we
2227
- * support direct debits?" after "where is stripe used?") stay anchored to
2228
- * the conversation's topic. Absent → single-turn behaviour, unchanged. */
2229
- priorInstruction?: string | null;
2152
+ /** Sanitized module ranking (engine/relevance-provider.ts rankQuestion),
2153
+ * computed by the async caller over the user's ask — carries the seed
2154
+ * ordering AND the plain-language concept map. Absent → the mechanical
2155
+ * fallback ranks and the concept map is empty. */
2156
+ ranked?: SanitizedRank | null;
2230
2157
  }
2231
2158
  /**
2232
2159
  * Build the context block for a coding instruction. The ordering is
@@ -2238,10 +2165,10 @@ interface BuildContextOptions {
2238
2165
  declare function buildCodeContext(graph: VgGraph, instruction: string, options?: BuildContextOptions): CodeContext;
2239
2166
 
2240
2167
  /**
2241
- * Source-bearing Task Capsule compiler (Fusion Runtime Phase 0).
2168
+ * Source-bearing Context Capsule compiler (Fusion Runtime Phase 0).
2242
2169
  *
2243
2170
  * Today's {@link buildCodeContext} pays for graph metadata, then the model still
2244
- * calls `read_file` — double payment. This module compiles a Task Capsule that
2171
+ * calls `read_file` — double payment. This module compiles a Context Capsule that
2245
2172
  * includes exact source ranges (from Tree-sitter spans already on graph nodes)
2246
2173
  * so the first inference can solve without navigation tool calls (ZNS@1 path).
2247
2174
  *
@@ -2268,7 +2195,14 @@ declare const TASK_CAPSULE_SCHEMA_VERSION: "task-capsule/0";
2268
2195
  * CARRY_WEIGHT when the caller passes `priorInstruction`. (c) A plain-language
2269
2196
  * "how the ask was interpreted" concept map is rendered for small local models.
2270
2197
  * No prior instruction + no bigram ask = 2026.08.2 behaviour exactly. */
2271
- declare const CAPSULE_RANKING_VERSION: "capsule-rank@2026.08.3";
2198
+ /** Bumped 2026.08.4: relevance relocation — the ranking engine (lexicon, term
2199
+ * roles, IDF, tiers, typo repair, morphology, diversification, concept map)
2200
+ * moved into the auto-provisioned relevance module behind the seam's
2201
+ * rankSymbols API; the host keeps mechanical name matching as the
2202
+ * module-less fallback. Seed content with the module active matches
2203
+ * 2026.08.3 + the coding-prompt-corpus improvements; the recorded
2204
+ * relevanceVersion says which engine ranked this capsule. */
2205
+ declare const CAPSULE_RANKING_VERSION: "capsule-rank@2026.08.4";
2272
2206
  declare const CAPSULE_COMPILER_ID: "vg-task-capsule/0";
2273
2207
  interface BuildCapsuleOptions extends BuildContextOptions {
2274
2208
  /**
@@ -2365,23 +2299,31 @@ interface CapsuleSummary {
2365
2299
  qualifiedName: string;
2366
2300
  file: string;
2367
2301
  kind: string;
2302
+ why: string;
2368
2303
  }>;
2369
2304
  supporting: Array<{
2370
2305
  qualifiedName: string;
2371
2306
  file: string;
2372
2307
  kind: string;
2308
+ why: string;
2373
2309
  }>;
2374
2310
  sourceSliceCount: number;
2375
2311
  sourceFiles: string[];
2376
2312
  tokensEstimate: number;
2377
2313
  rankingVersion: string;
2314
+ /**
2315
+ * How the ask was interpreted, ready to show a human: the capsule's concept
2316
+ * map with the model-facing seed-notation legend dropped and the leading
2317
+ * "- " bullet stripped. Empty when no relevance engine widened the ask.
2318
+ */
2319
+ interpretation: string[];
2378
2320
  /** Truncated rendered capsule for display (not the full prompt dump). */
2379
2321
  preview: string;
2380
2322
  }
2381
2323
  /** Host-safe capsule summary (capsule transparency UI / stream-json). */
2382
2324
  declare function summarizeCapsule(capsule: TaskCapsule): CapsuleSummary;
2383
2325
  /**
2384
- * Compile a source-bearing Task Capsule. Reuses the same seed / impact /
2326
+ * Compile a source-bearing Context Capsule. Reuses the same seed / impact /
2385
2327
  * fact-pinning path as {@link buildCodeContext}, then attaches exact source
2386
2328
  * slices and a verification sketch.
2387
2329
  */
@@ -2441,4 +2383,4 @@ interface SearchResult {
2441
2383
  }
2442
2384
  declare function searchSymbols(graph: VgGraph, root: string, query: string, limit: number): Promise<SearchResult>;
2443
2385
 
2444
- export { ASSISTANTS, type AnalyzeOptions, type AnalyzeResult, Area, type Assistant, type BuildCapsuleOptions, type BuildContextOptions, type BuildOptions, type BuildResult, type BuildScope, CAPSULE_COMPILER_ID, CAPSULE_RANKING_VERSION, type CapsuleSummary, type CapsuleSymbolRef, type ClusterMode, type DepRecord, type DiscoverOptions, type DiscoveredFile, type Drift, type DriftInventory, type DriftNote, EdgeKind, type Embedder, type ExportContext, type ExportFormat, FREE_PACK, Fact, FileParse, GraphEdge, GraphIndex, GraphNode, GraphSource, type GraphUploadEnvelope, GroundingEdge, GroundingKind, type ImpactItem, type ImpactResult, type KnowledgePack, LANGUAGES, type LanguageDef, type LibCatalog, type LibEntry, type LibSource, type LoadEmbedderOptions, type LocalModel, type ModuleResolver, type PackEntry, type PathResult, type ProbeResult, type QueryMatch, type QueryOptions, type QueryResult, type RefreshOptions, type RefreshOutcome, ResolverKind, ResourceLimitError, type ResourceLimits, SCHEMA_VERSION, SKIP_DIRS, SKIP_FILES, type SavingsReport, type ScipDocument, type ScipIndex, type ScipOccurrence, type SearchResult, type SemanticQueryOptions, type ServeOptions, type SourceSlice, type SymbolHit, TASK_CAPSULE_SCHEMA_VERSION, TOOLS, type TaskCapsule, type TextHit, UsageError, VERSION, type VerifyResult, VgGraph, type VgTool, type WriteOptions, type WrittenArtifacts, addLibrary, allLanguageIds, analyze, applyCoverage, applyStaticTestLinkage, assistantById, buildCodeContext, buildEnvelope, buildFacts, buildGraph, buildModuleResolver, buildTaskCapsule, capsuleToCodeContext, cosine, coveringTests, createServer, decodeScipIndex, defaultGraphPath, inventory as dependencyInventory, detectRunner, discover, discoverModels, driftCount, driftFor, embeddingsCached, embeddingsPath, embeddingsPathFor, enrichOnline, exportGraph, findNodes, formatForExt, getNodeEmbeddings, grammarsSourceDir, groundGraph, hasDrift, identifierParts, impactOf, installAssistant, isTestFile, langById, langForExtension, legacyGraphPath, libId, loadCatalog, loadCoverage, loadEmbedder, loadGraph, loadSnapshot, nodeById, nodeEmbedText, parseGraph, parseJsonc, parseSource, preferInRepoGraph, probeFreshness, queryGraph, queryGraphSemantic, readDoc, readSavings, recordSaving, redactGraph, refreshIfStale, relativeResolver, renderHtml, renderReport, resolveGraphPath, resolveLib, resolveLimits, resolveOne, saveCatalog, savingsRecorded, scipEdges, searchSymbols, serializeGraph, serveStdio, shortestPath, stableStringify, summarizeCapsule, testsToRun, uninstallAssistant, verifyDeterminism, vibgrateDir, writeArtifacts, writeSnapshot };
2386
+ export { ASSISTANTS, type AnalyzeOptions, type AnalyzeResult, Area, type Assistant, type BuildCapsuleOptions, type BuildContextOptions, type BuildOptions, type BuildResult, type BuildScope, CAPSULE_COMPILER_ID, CAPSULE_RANKING_VERSION, type CapsuleSummary, type CapsuleSymbolRef, type ClusterMode, type DepRecord, type DiscoverOptions, type DiscoveredFile, type Drift, type DriftInventory, type DriftNote, EdgeKind, type Embedder, type ExportContext, type ExportFormat, FREE_PACK, Fact, FileParse, GraphEdge, GraphIndex, GraphNode, GraphSource, type GraphUploadEnvelope, GroundingEdge, GroundingKind, type ImpactItem, type ImpactResult, type KnowledgePack, LANGUAGES, type LanguageDef, type LibCatalog, type LibEntry, type LibSource, type LoadEmbedderOptions, type LocalModel, type ModuleResolver, type PackEntry, type PathResult, type ProbeResult, type QueryMatch, type QueryOptions, type QueryResult, type RefreshOptions, type RefreshOutcome, ResolverKind, ResourceLimitError, type ResourceLimits, SCHEMA_VERSION, SKIP_DIRS, SKIP_FILES, type SavingsReport, type ScipDocument, type ScipIndex, type ScipOccurrence, type SearchResult, type SemanticQueryOptions, type ServeOptions, type SourceSlice, type SymbolHit, TASK_CAPSULE_SCHEMA_VERSION, TOOLS, type TaskCapsule, type TextHit, UsageError, VERSION, type VerifyResult, VgGraph, type VgTool, type WriteOptions, type WrittenArtifacts, addLibrary, allLanguageIds, analyze, applyCoverage, applyStaticTestLinkage, assistantById, buildCodeContext, buildEnvelope, buildFacts, buildGraph, buildModuleResolver, buildTaskCapsule, capsuleToCodeContext, cosine, coveringTests, createServer, decodeScipIndex, defaultGraphPath, inventory as dependencyInventory, detectRunner, discover, discoverModels, driftCount, driftFor, embeddingsCached, embeddingsPath, embeddingsPathFor, enrichOnline, exportGraph, findNodes, formatForExt, getNodeEmbeddings, grammarsSourceDir, groundGraph, hasDrift, identifierParts, impactOf, installAssistant, isTestFile, langById, langForExtension, legacyGraphPath, libId, loadCatalog, loadCoverage, loadEmbedder, loadGraph, loadSnapshot, nodeById, nodeEmbedText, parseGraph, parseJsonc, parseSource, preferInRepoGraph, probeFreshness, queryGraph, queryGraphSemantic, readDoc, readSavings, recordSaving, redactGraph, refreshIfStale, relativeResolver, moduleInstalled as relevanceModuleInstalled, renderHtml, renderReport, resolveGraphPath, resolveLib, resolveLimits, resolveOne, saveCatalog, savingsRecorded, scipEdges, searchSymbols, serializeGraph, serveStdio, shortestPath, stableStringify, summarizeCapsule, testsToRun, uninstallAssistant, verifyDeterminism, vibgrateDir, writeArtifacts, writeSnapshot };
package/dist/index.js CHANGED
@@ -1,16 +1,16 @@
1
- export { GraphSource, createServer, exportGraph, formatForExt, serveStdio } from './chunk-AP3JN33O.js';
2
- export { refreshIfStale } from './chunk-PJRPSYFQ.js';
3
- export { ASSISTANTS, ResourceLimitError, analyze, applyCoverage, assistantById, buildFacts, buildGraph, decodeScipIndex, driftCount, groundGraph, hasDrift, installAssistant, loadCoverage, loadSnapshot, probeFreshness, resolveLimits, scipEdges, uninstallAssistant, verifyDeterminism, writeSnapshot } from './chunk-XLQ4YHS3.js';
4
- export { FREE_PACK, TOOLS, coveringTests, detectRunner, shortestPath, testsToRun } from './chunk-JPOYXG7Z.js';
1
+ export { GraphSource, createServer, exportGraph, formatForExt, moduleInstalled as relevanceModuleInstalled, serveStdio } from './chunk-JL66EPZ4.js';
2
+ export { refreshIfStale } from './chunk-XHIWQGRE.js';
3
+ export { ASSISTANTS, ResourceLimitError, analyze, applyCoverage, assistantById, buildFacts, buildGraph, decodeScipIndex, driftCount, groundGraph, hasDrift, installAssistant, loadCoverage, loadSnapshot, probeFreshness, resolveLimits, scipEdges, uninstallAssistant, verifyDeterminism, writeSnapshot } from './chunk-QP3P4V4I.js';
4
+ export { FREE_PACK, TOOLS, coveringTests, detectRunner, shortestPath, testsToRun } from './chunk-KRE7SXSA.js';
5
5
  import './chunk-HTLDXEHW.js';
6
- import './chunk-GBXOAO5V.js';
6
+ import './chunk-5UG4UHKU.js';
7
7
  export { applyStaticTestLinkage, buildModuleResolver, isTestFile, parseJsonc, relativeResolver } from './chunk-VIWZ4QT7.js';
8
- export { addLibrary, driftFor, libId, loadCatalog, readDoc, resolveLib, saveCatalog, searchSymbols } from './chunk-WPLOEFZU.js';
9
- export { CAPSULE_COMPILER_ID, CAPSULE_RANKING_VERSION, TASK_CAPSULE_SCHEMA_VERSION, buildCodeContext, buildTaskCapsule, capsuleToCodeContext, readSavings, recordSaving, savingsRecorded, summarizeCapsule } from './chunk-CBL3VY7J.js';
8
+ export { addLibrary, driftFor, libId, loadCatalog, readDoc, resolveLib, saveCatalog, searchSymbols } from './chunk-WATYIYWP.js';
9
+ export { CAPSULE_COMPILER_ID, CAPSULE_RANKING_VERSION, TASK_CAPSULE_SCHEMA_VERSION, buildCodeContext, buildTaskCapsule, capsuleToCodeContext, readSavings, recordSaving, savingsRecorded, summarizeCapsule } from './chunk-TWWVTKA7.js';
10
10
  export { discoverModels } from './chunk-WNKGRXUA.js';
11
11
  import './chunk-57ZRSCHY.js';
12
12
  import './chunk-MS6V5XKB.js';
13
- import './chunk-OGFOJG4H.js';
13
+ import './chunk-LMHKIQA5.js';
14
14
  import './chunk-PVNALGTG.js';
15
15
  import './chunk-CRAMOEBE.js';
16
16
  import './chunk-5IQBIXHS.js';
@@ -19,20 +19,20 @@ import './chunk-A3WWRW7U.js';
19
19
  import './chunk-DBX3DL27.js';
20
20
  export { inventory as dependencyInventory, enrichOnline } from './chunk-6BEBJCK4.js';
21
21
  export { findNodes, nodeById, resolveOne } from './chunk-J7LKEB2R.js';
22
- export { GraphIndex, identifierParts, impactOf, queryGraph, queryGraphSemantic } from './chunk-CA4YQBA7.js';
23
- import { SCHEMA_VERSION } from './chunk-USPMMVNH.js';
24
- export { SCHEMA_VERSION, SUPPORTED_SCHEMA_VERSIONS, loadGraph } from './chunk-USPMMVNH.js';
22
+ export { GraphIndex, identifierParts, impactOf, queryGraph, queryGraphSemantic } from './chunk-USW5WHUG.js';
23
+ import { SCHEMA_VERSION } from './chunk-SGIFJIII.js';
24
+ export { SCHEMA_VERSION, SUPPORTED_SCHEMA_VERSIONS, loadGraph } from './chunk-SGIFJIII.js';
25
25
  import './chunk-VHRSG6CF.js';
26
26
  import './chunk-6H2QV5DR.js';
27
27
  export { SKIP_DIRS, SKIP_FILES, UsageError, discover } from './chunk-RTURQXQL.js';
28
- export { grammarsSourceDir, parseSource } from './chunk-FCMWHSQ6.js';
28
+ export { grammarsSourceDir, parseSource } from './chunk-M5QSBXA6.js';
29
29
  import { redactUrlCredentials, redactSecrets } from './chunk-T7RSQ5WD.js';
30
30
  export { LANGUAGES, allLanguageIds, langById, langForExtension } from './chunk-6WRG7VDO.js';
31
- export { cosine, embeddingsCached, embeddingsPath, embeddingsPathFor, getNodeEmbeddings, loadEmbedder, nodeEmbedText } from './chunk-7BSUPHX6.js';
32
- export { defaultGraphPath, legacyGraphPath, preferInRepoGraph, renderHtml, renderReport, resolveGraphPath, vibgrateDir, writeArtifacts } from './chunk-2C4QT5D7.js';
31
+ export { cosine, embeddingsCached, embeddingsPath, embeddingsPathFor, getNodeEmbeddings, loadEmbedder, nodeEmbedText } from './chunk-3PNAQUZM.js';
32
+ export { defaultGraphPath, legacyGraphPath, preferInRepoGraph, renderHtml, renderReport, resolveGraphPath, vibgrateDir, writeArtifacts } from './chunk-III7S75O.js';
33
33
  import './chunk-MVPRPSXU.js';
34
34
  export { parseGraph, serializeGraph, stableStringify } from './chunk-O3LABX6I.js';
35
- export { VERSION } from './chunk-ZUZHYAJK.js';
35
+ export { VERSION } from './chunk-AGOKTI77.js';
36
36
  import './chunk-XP6UUCZZ.js';
37
37
  import './chunk-JFGYT6BI.js';
38
38
  import './chunk-XQNKCA2J.js';
@@ -1,15 +1,15 @@
1
1
  import { newSession, loadSession, loadLatestSession, summarizeSession, saveSession, condenseSession, recordTask } from './chunk-AJS4EL2C.js';
2
- import { ensureCodeMap } from './chunk-MMJFHEZ4.js';
2
+ import { ensureCodeMap } from './chunk-CJ2R3LVX.js';
3
3
  import { TtyPrompter, PromptCancelled } from './chunk-JYS4OBN2.js';
4
4
  import { McpToolset, defaultMcpConnect } from './chunk-LEPTUB4H.js';
5
- import { startCodeRuntimeSession } from './chunk-24HKTTFV.js';
6
- import { fetchCatalog, resolveProviders, topProviders } from './chunk-XW2XQM3C.js';
7
- import { printCodeLogo } from './chunk-C2EZIAA3.js';
8
- import { nodeCodeFs, undoChanges } from './chunk-W6ASIMG5.js';
9
- import { runAgent } from './chunk-2ZBLZ2S3.js';
5
+ import { startCodeRuntimeSession } from './chunk-2IY24TTR.js';
6
+ import { fetchCatalog, resolveProviders, topProviders } from './chunk-LA4CETXN.js';
7
+ import { printCodeLogo } from './chunk-B5GOCQFB.js';
8
+ import { nodeCodeFs, undoChanges } from './chunk-4PDWV4AE.js';
9
+ import { runAgent } from './chunk-5QO2GFAE.js';
10
10
  import './chunk-543E6WDJ.js';
11
- import './chunk-IMI2VHHZ.js';
12
- import { resolveGraphBackend } from './chunk-AQZYDFEK.js';
11
+ import './chunk-IKB5U3AH.js';
12
+ import { resolveGraphBackend } from './chunk-YJ23GGAJ.js';
13
13
  import { summarizeDiffs } from './chunk-SHD5TCZ5.js';
14
14
  import './chunk-NV7XNBX4.js';
15
15
  import './chunk-W44THEXF.js';
@@ -19,23 +19,23 @@ import './chunk-H5Q4JUY4.js';
19
19
  import { info, c, out } from './chunk-CT5BS56U.js';
20
20
  import { hasOllama, gatherSystemMemory, stopModel, pullModelClean } from './chunk-WUFIXAEJ.js';
21
21
  import { estimateModelBytes, assessCapability, fmt } from './chunk-YJYEPYB2.js';
22
- import { BranchGraphSession } from './chunk-BQ6NTRRK.js';
22
+ import { BranchGraphSession } from './chunk-RAEHWCN6.js';
23
23
  import './chunk-3LOWJSAF.js';
24
24
  import './chunk-5HYCB55P.js';
25
25
  import { resolveExecutionEnv } from './chunk-IS7VTH2Q.js';
26
26
  import { mergeModelExecutionProfile, resolveModelExecutionProfile } from './chunk-IZDH67DX.js';
27
- import { refreshIfStale } from './chunk-PJRPSYFQ.js';
28
- import './chunk-XLQ4YHS3.js';
29
- import './chunk-JPOYXG7Z.js';
27
+ import { refreshIfStale } from './chunk-XHIWQGRE.js';
28
+ import './chunk-QP3P4V4I.js';
29
+ import './chunk-KRE7SXSA.js';
30
30
  import './chunk-HTLDXEHW.js';
31
- import './chunk-GBXOAO5V.js';
31
+ import './chunk-5UG4UHKU.js';
32
32
  import './chunk-VIWZ4QT7.js';
33
- import './chunk-WPLOEFZU.js';
34
- import { readModelSavings } from './chunk-CBL3VY7J.js';
33
+ import './chunk-WATYIYWP.js';
34
+ import { readModelSavings, capsuleTransparencyLines } from './chunk-TWWVTKA7.js';
35
35
  import { discoverModels } from './chunk-WNKGRXUA.js';
36
36
  import './chunk-57ZRSCHY.js';
37
37
  import './chunk-MS6V5XKB.js';
38
- import './chunk-OGFOJG4H.js';
38
+ import './chunk-LMHKIQA5.js';
39
39
  import './chunk-PVNALGTG.js';
40
40
  import './chunk-CRAMOEBE.js';
41
41
  import './chunk-EZ7UC5Y5.js';
@@ -43,19 +43,19 @@ import './chunk-A3WWRW7U.js';
43
43
  import './chunk-DBX3DL27.js';
44
44
  import './chunk-6BEBJCK4.js';
45
45
  import './chunk-J7LKEB2R.js';
46
- import './chunk-CA4YQBA7.js';
47
- import { loadGraph } from './chunk-USPMMVNH.js';
46
+ import './chunk-USW5WHUG.js';
47
+ import { loadGraph } from './chunk-SGIFJIII.js';
48
48
  import { vgdIsRunning, vgdRequest } from './chunk-VHRSG6CF.js';
49
49
  import './chunk-6H2QV5DR.js';
50
50
  import { loadOrDiscoverFederation } from './chunk-RTURQXQL.js';
51
- import './chunk-FCMWHSQ6.js';
51
+ import './chunk-M5QSBXA6.js';
52
52
  import './chunk-T7RSQ5WD.js';
53
53
  import './chunk-6WRG7VDO.js';
54
- import './chunk-7BSUPHX6.js';
55
- import { resolveGraphPath } from './chunk-2C4QT5D7.js';
54
+ import './chunk-3PNAQUZM.js';
55
+ import { resolveGraphPath } from './chunk-III7S75O.js';
56
56
  import './chunk-MVPRPSXU.js';
57
57
  import './chunk-O3LABX6I.js';
58
- import './chunk-ZUZHYAJK.js';
58
+ import './chunk-AGOKTI77.js';
59
59
  import './chunk-XP6UUCZZ.js';
60
60
  import './chunk-JFGYT6BI.js';
61
61
  import './chunk-XQNKCA2J.js';
@@ -328,7 +328,7 @@ async function codingRepl(root, global, opts, selection, prompter) {
328
328
  } else prompter.note(c.dim("no previous session to continue"));
329
329
  }
330
330
  const graphHolder = { current: null };
331
- const { createVgBuiltinMcpTools, mergeExternalToolsets } = await import('./vg-mcp-bridge-4FETMJ6M.js');
331
+ const { createVgBuiltinMcpTools, mergeExternalToolsets } = await import('./vg-mcp-bridge-UUMEOJSO.js');
332
332
  const vgBuiltin = createVgBuiltinMcpTools({
333
333
  getGraph: () => {
334
334
  if (!graphHolder.current) throw new Error("graph not loaded yet");
@@ -654,7 +654,8 @@ async function agentTask(params) {
654
654
  } else if (e.type === "session-graph") {
655
655
  info(c.dim(` \xB7 session graph updated (${e.reparsed} reparsed, ${e.dirty} dirty)`));
656
656
  } else if (e.type === "capsule") {
657
- info(c.dim(` \xB7 Task Capsule \xB7 ${e.summary.primary.length} primary \xB7 ${e.summary.sourceSliceCount} source slice(s) \xB7 ~${e.summary.tokensEstimate} tokens`));
657
+ info(c.dim(` \xB7 Context Capsule \xB7 ${e.summary.primary.length} primary \xB7 ${e.summary.sourceSliceCount} source slice(s) \xB7 ~${e.summary.tokensEstimate} tokens`));
658
+ for (const line of capsuleTransparencyLines(e.summary)) info(c.dim(line));
658
659
  } else if (e.type === "failure-capsule") {
659
660
  info(c.yellow(` \xB7 Failure Capsule \xB7 ${e.capsule.failedStep.type}${e.capsule.failedStep.command ? ` \xB7 ${e.capsule.failedStep.command}` : ""}`));
660
661
  } else if (e.type === "metrics") {
@@ -727,5 +728,5 @@ ${res.stderr}` : "");
727
728
  }
728
729
 
729
730
  export { agentTask, runInteractive };
730
- //# sourceMappingURL=interactive-B3WTC7LB.js.map
731
- //# sourceMappingURL=interactive-B3WTC7LB.js.map
731
+ //# sourceMappingURL=interactive-YJ37ZWTA.js.map
732
+ //# sourceMappingURL=interactive-YJ37ZWTA.js.map