@vibgrate/cli 2026.819.1 → 2026.819.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 (170) hide show
  1. package/DOCS.md +3 -3
  2. package/dist/agent-ZJRWCMR6.js +30 -0
  3. package/dist/{agent-3CKNTCRX.js.map → agent-ZJRWCMR6.js.map} +1 -1
  4. package/dist/{approvals-DHTG3HI4.js → approvals-YTUXBZWQ.js} +7 -7
  5. package/dist/{approvals-DHTG3HI4.js.map → approvals-YTUXBZWQ.js.map} +1 -1
  6. package/dist/attach-WOA25VNH.js +10 -0
  7. package/dist/{attach-OCQ3I76L.js.map → attach-WOA25VNH.js.map} +1 -1
  8. package/dist/baseline-TVRRUZGA.js +9 -0
  9. package/dist/{baseline-QDC6OQ2X.js.map → baseline-TVRRUZGA.js.map} +1 -1
  10. package/dist/{chunk-NWWLUFN5.js → chunk-24HKTTFV.js} +5 -5
  11. package/dist/{chunk-NWWLUFN5.js.map → chunk-24HKTTFV.js.map} +1 -1
  12. package/dist/{chunk-FFY6NW7P.js → chunk-2C4QT5D7.js} +5 -5
  13. package/dist/{chunk-FFY6NW7P.js.map → chunk-2C4QT5D7.js.map} +1 -1
  14. package/dist/{chunk-WJYJCDNY.js → chunk-2ZBLZ2S3.js} +13 -13
  15. package/dist/{chunk-WJYJCDNY.js.map → chunk-2ZBLZ2S3.js.map} +1 -1
  16. package/dist/{chunk-OV4KGXPD.js → chunk-57ZRSCHY.js} +3 -3
  17. package/dist/{chunk-OV4KGXPD.js.map → chunk-57ZRSCHY.js.map} +1 -1
  18. package/dist/{chunk-NDNNOAS6.js → chunk-6H2QV5DR.js} +3 -3
  19. package/dist/{chunk-NDNNOAS6.js.map → chunk-6H2QV5DR.js.map} +1 -1
  20. package/dist/{chunk-QMRSCJUN.js → chunk-7BSUPHX6.js} +3 -3
  21. package/dist/{chunk-QMRSCJUN.js.map → chunk-7BSUPHX6.js.map} +1 -1
  22. package/dist/{chunk-LJSJX6U4.js → chunk-A3WWRW7U.js} +3 -3
  23. package/dist/{chunk-LJSJX6U4.js.map → chunk-A3WWRW7U.js.map} +1 -1
  24. package/dist/{chunk-D44PGMH7.js → chunk-AP3JN33O.js} +12 -12
  25. package/dist/{chunk-D44PGMH7.js.map → chunk-AP3JN33O.js.map} +1 -1
  26. package/dist/{chunk-VYSDR2QE.js → chunk-AQZYDFEK.js} +4 -4
  27. package/dist/{chunk-VYSDR2QE.js.map → chunk-AQZYDFEK.js.map} +1 -1
  28. package/dist/{chunk-F46Q3AEI.js → chunk-BQ6NTRRK.js} +44 -15
  29. package/dist/chunk-BQ6NTRRK.js.map +1 -0
  30. package/dist/{chunk-YIEP5GK5.js → chunk-C2EZIAA3.js} +15 -11
  31. package/dist/chunk-C2EZIAA3.js.map +1 -0
  32. package/dist/{chunk-6F52QR6F.js → chunk-CA4YQBA7.js} +4 -4
  33. package/dist/{chunk-6F52QR6F.js.map → chunk-CA4YQBA7.js.map} +1 -1
  34. package/dist/{chunk-5O6O7DJH.js → chunk-CBL3VY7J.js} +3 -3
  35. package/dist/{chunk-5O6O7DJH.js.map → chunk-CBL3VY7J.js.map} +1 -1
  36. package/dist/{chunk-FQVAQVJV.js → chunk-FCMWHSQ6.js} +3 -3
  37. package/dist/{chunk-FQVAQVJV.js.map → chunk-FCMWHSQ6.js.map} +1 -1
  38. package/dist/{chunk-OQT3JBWW.js → chunk-GBXOAO5V.js} +167 -28
  39. package/dist/chunk-GBXOAO5V.js.map +1 -0
  40. package/dist/{chunk-JFE7XCAE.js → chunk-IASO2HCI.js} +3 -3
  41. package/dist/{chunk-JFE7XCAE.js.map → chunk-IASO2HCI.js.map} +1 -1
  42. package/dist/{chunk-D33M2ARL.js → chunk-IMI2VHHZ.js} +3 -3
  43. package/dist/{chunk-D33M2ARL.js.map → chunk-IMI2VHHZ.js.map} +1 -1
  44. package/dist/{chunk-QSLVOVNZ.js → chunk-JPOYXG7Z.js} +10 -10
  45. package/dist/{chunk-QSLVOVNZ.js.map → chunk-JPOYXG7Z.js.map} +1 -1
  46. package/dist/{chunk-KFEM6FWP.js → chunk-MMJFHEZ4.js} +4 -4
  47. package/dist/{chunk-KFEM6FWP.js.map → chunk-MMJFHEZ4.js.map} +1 -1
  48. package/dist/{chunk-JGBOYZAF.js → chunk-NKKOGJ63.js} +35 -17
  49. package/dist/chunk-NKKOGJ63.js.map +1 -0
  50. package/dist/{chunk-7AVYKZEM.js → chunk-NV7XNBX4.js} +4 -4
  51. package/dist/{chunk-7AVYKZEM.js.map → chunk-NV7XNBX4.js.map} +1 -1
  52. package/dist/{chunk-4VAA2XSM.js → chunk-OGFOJG4H.js} +6 -6
  53. package/dist/{chunk-4VAA2XSM.js.map → chunk-OGFOJG4H.js.map} +1 -1
  54. package/dist/{chunk-NZELMYT4.js → chunk-OLIMW4PQ.js} +8 -56
  55. package/dist/chunk-OLIMW4PQ.js.map +1 -0
  56. package/dist/{chunk-EMEMHNE3.js → chunk-PJRPSYFQ.js} +6 -6
  57. package/dist/{chunk-EMEMHNE3.js.map → chunk-PJRPSYFQ.js.map} +1 -1
  58. package/dist/{chunk-EI5AKDSC.js → chunk-QE6F62FR.js} +3 -3
  59. package/dist/{chunk-EI5AKDSC.js.map → chunk-QE6F62FR.js.map} +1 -1
  60. package/dist/{chunk-5XY4EFR7.js → chunk-R5TQBIR6.js} +3 -3
  61. package/dist/{chunk-5XY4EFR7.js.map → chunk-R5TQBIR6.js.map} +1 -1
  62. package/dist/{chunk-TS7STRMI.js → chunk-RTURQXQL.js} +4 -4
  63. package/dist/{chunk-TS7STRMI.js.map → chunk-RTURQXQL.js.map} +1 -1
  64. package/dist/{chunk-74UBGF4P.js → chunk-SHD5TCZ5.js} +3 -3
  65. package/dist/{chunk-74UBGF4P.js.map → chunk-SHD5TCZ5.js.map} +1 -1
  66. package/dist/{chunk-O5ASXWKF.js → chunk-USPMMVNH.js} +3 -3
  67. package/dist/{chunk-O5ASXWKF.js.map → chunk-USPMMVNH.js.map} +1 -1
  68. package/dist/{chunk-E53WBVUQ.js → chunk-VHRSG6CF.js} +3 -3
  69. package/dist/{chunk-E53WBVUQ.js.map → chunk-VHRSG6CF.js.map} +1 -1
  70. package/dist/{chunk-I5LP55B6.js → chunk-W44THEXF.js} +3 -3
  71. package/dist/{chunk-I5LP55B6.js.map → chunk-W44THEXF.js.map} +1 -1
  72. package/dist/{chunk-EIESBKLW.js → chunk-W6ASIMG5.js} +7 -7
  73. package/dist/{chunk-EIESBKLW.js.map → chunk-W6ASIMG5.js.map} +1 -1
  74. package/dist/{chunk-CQDUBAQY.js → chunk-WNKGRXUA.js} +3 -3
  75. package/dist/{chunk-CQDUBAQY.js.map → chunk-WNKGRXUA.js.map} +1 -1
  76. package/dist/{chunk-KKQX3F5F.js → chunk-WPLOEFZU.js} +7 -5
  77. package/dist/chunk-WPLOEFZU.js.map +1 -0
  78. package/dist/{chunk-FJG5AXKZ.js → chunk-WUFIXAEJ.js} +22 -6
  79. package/dist/chunk-WUFIXAEJ.js.map +1 -0
  80. package/dist/{chunk-TS25WFAT.js → chunk-XLQ4YHS3.js} +9 -9
  81. package/dist/{chunk-TS25WFAT.js.map → chunk-XLQ4YHS3.js.map} +1 -1
  82. package/dist/{chunk-BWPBB45M.js → chunk-XP6UUCZZ.js} +3 -3
  83. package/dist/{chunk-BWPBB45M.js.map → chunk-XP6UUCZZ.js.map} +1 -1
  84. package/dist/{chunk-BPF3YX2U.js → chunk-XQNKCA2J.js} +6 -3
  85. package/dist/chunk-XQNKCA2J.js.map +1 -0
  86. package/dist/{chunk-U7A7D2HP.js → chunk-XW2XQM3C.js} +7 -7
  87. package/dist/{chunk-U7A7D2HP.js.map → chunk-XW2XQM3C.js.map} +1 -1
  88. package/dist/{chunk-7N4Y3E47.js → chunk-YJYEPYB2.js} +13 -18
  89. package/dist/chunk-YJYEPYB2.js.map +1 -0
  90. package/dist/chunk-ZUZHYAJK.js +6 -0
  91. package/dist/{chunk-DHU3OOEI.js.map → chunk-ZUZHYAJK.js.map} +1 -1
  92. package/dist/cli.js +104 -94
  93. package/dist/cli.js.map +1 -1
  94. package/dist/client-P5XSRFV4.js +8 -0
  95. package/dist/{client-UQIELEEZ.js.map → client-P5XSRFV4.js.map} +1 -1
  96. package/dist/{daemon-UNL65PTP.js → daemon-YKOEP3XA.js} +14 -14
  97. package/dist/{daemon-UNL65PTP.js.map → daemon-YKOEP3XA.js.map} +1 -1
  98. package/dist/embed-worker-main.js +5 -5
  99. package/dist/ensure-map-BLRJDO2Y.js +40 -0
  100. package/dist/{ensure-map-4D2HJ6MA.js.map → ensure-map-BLRJDO2Y.js.map} +1 -1
  101. package/dist/{federation-SZYVHYB2.js → federation-M4ZNXOPX.js} +5 -5
  102. package/dist/{federation-SZYVHYB2.js.map → federation-M4ZNXOPX.js.map} +1 -1
  103. package/dist/git-ref-LMT3EXYY.js +4 -0
  104. package/dist/{git-ref-RSRAN4OH.js.map → git-ref-LMT3EXYY.js.map} +1 -1
  105. package/dist/graph-backend-NTYONTWW.js +16 -0
  106. package/dist/{graph-backend-36EIAAPQ.js.map → graph-backend-NTYONTWW.js.map} +1 -1
  107. package/dist/index.d.ts +1 -1
  108. package/dist/index.js +23 -23
  109. package/dist/{interactive-ZZMHSZ3W.js → interactive-B3WTC7LB.js} +40 -40
  110. package/dist/{interactive-ZZMHSZ3W.js.map → interactive-B3WTC7LB.js.map} +1 -1
  111. package/dist/{llm-host-XFYFOAAX.js → llm-host-QVTJJVER.js} +5 -5
  112. package/dist/{llm-host-XFYFOAAX.js.map → llm-host-QVTJJVER.js.map} +1 -1
  113. package/dist/load-AJROS77R.js +11 -0
  114. package/dist/{load-6CYLMUT5.js.map → load-AJROS77R.js.map} +1 -1
  115. package/dist/local-runtime-GA43KYS5.js +6 -0
  116. package/dist/{local-runtime-6SNWKSA7.js.map → local-runtime-GA43KYS5.js.map} +1 -1
  117. package/dist/model-manager-6H3TMZKK.js +10 -0
  118. package/dist/{model-manager-SXHZ5VD4.js.map → model-manager-6H3TMZKK.js.map} +1 -1
  119. package/dist/{model-orchestrator-LHYPJBFH.js → model-orchestrator-X3NE3Y2G.js} +6 -6
  120. package/dist/{model-orchestrator-LHYPJBFH.js.map → model-orchestrator-X3NE3Y2G.js.map} +1 -1
  121. package/dist/parse-worker.js +2 -2
  122. package/dist/{paths-62AKTFSR.js → paths-RVK6FKRN.js} +4 -4
  123. package/dist/{paths-62AKTFSR.js.map → paths-RVK6FKRN.js.map} +1 -1
  124. package/dist/publish-27S66NOW.js +9 -0
  125. package/dist/{publish-7YHRTBRA.js.map → publish-27S66NOW.js.map} +1 -1
  126. package/dist/resolve-gguf-WVKVDN45.js +9 -0
  127. package/dist/{resolve-gguf-SDIYGGI6.js.map → resolve-gguf-WVKVDN45.js.map} +1 -1
  128. package/dist/{run-outcome-ADEAKXHH.js → run-outcome-SBBSTSH3.js} +7 -7
  129. package/dist/{run-outcome-ADEAKXHH.js.map → run-outcome-SBBSTSH3.js.map} +1 -1
  130. package/dist/runtime-session-JYYKQVDX.js +26 -0
  131. package/dist/{runtime-session-VNSXQAEO.js.map → runtime-session-JYYKQVDX.js.map} +1 -1
  132. package/dist/session-2ZMHZ2O6.js +17 -0
  133. package/dist/{session-3A6LKJHD.js.map → session-2ZMHZ2O6.js.map} +1 -1
  134. package/dist/{slot-subscription-25GOARW5.js → slot-subscription-C2ZUJED6.js} +5 -5
  135. package/dist/{slot-subscription-25GOARW5.js.map → slot-subscription-C2ZUJED6.js.map} +1 -1
  136. package/dist/{stream-json-S2TP2VPU.js → stream-json-ZWGB4C47.js} +17 -17
  137. package/dist/{stream-json-S2TP2VPU.js.map → stream-json-ZWGB4C47.js.map} +1 -1
  138. package/dist/version-5QIEUXU6.js +4 -0
  139. package/dist/{version-SZI6I3A2.js.map → version-5QIEUXU6.js.map} +1 -1
  140. package/dist/{vg-mcp-bridge-IIBEAOEB.js → vg-mcp-bridge-4FETMJ6M.js} +14 -14
  141. package/dist/{vg-mcp-bridge-IIBEAOEB.js.map → vg-mcp-bridge-4FETMJ6M.js.map} +1 -1
  142. package/dist/{vgd-KGXIKGOS.js → vgd-R524P5BJ.js} +13 -13
  143. package/dist/vgd-R524P5BJ.js.map +1 -0
  144. package/package.json +1 -1
  145. package/dist/agent-3CKNTCRX.js +0 -30
  146. package/dist/attach-OCQ3I76L.js +0 -10
  147. package/dist/baseline-QDC6OQ2X.js +0 -9
  148. package/dist/chunk-7N4Y3E47.js.map +0 -1
  149. package/dist/chunk-BPF3YX2U.js.map +0 -1
  150. package/dist/chunk-DHU3OOEI.js +0 -6
  151. package/dist/chunk-F46Q3AEI.js.map +0 -1
  152. package/dist/chunk-FJG5AXKZ.js.map +0 -1
  153. package/dist/chunk-JGBOYZAF.js.map +0 -1
  154. package/dist/chunk-KKQX3F5F.js.map +0 -1
  155. package/dist/chunk-NZELMYT4.js.map +0 -1
  156. package/dist/chunk-OQT3JBWW.js.map +0 -1
  157. package/dist/chunk-YIEP5GK5.js.map +0 -1
  158. package/dist/client-UQIELEEZ.js +0 -8
  159. package/dist/ensure-map-4D2HJ6MA.js +0 -40
  160. package/dist/git-ref-RSRAN4OH.js +0 -4
  161. package/dist/graph-backend-36EIAAPQ.js +0 -16
  162. package/dist/load-6CYLMUT5.js +0 -11
  163. package/dist/local-runtime-6SNWKSA7.js +0 -6
  164. package/dist/model-manager-SXHZ5VD4.js +0 -10
  165. package/dist/publish-7YHRTBRA.js +0 -9
  166. package/dist/resolve-gguf-SDIYGGI6.js +0 -9
  167. package/dist/runtime-session-VNSXQAEO.js +0 -26
  168. package/dist/session-3A6LKJHD.js +0 -17
  169. package/dist/version-SZI6I3A2.js +0 -4
  170. package/dist/vgd-KGXIKGOS.js.map +0 -1
@@ -2,17 +2,17 @@ import { listHostSessions, hostSessionPoolSize, acquireHostSession, evictIdleSes
2
2
  import { isRelevantChange } from './chunk-DBX3DL27.js';
3
3
  import { inventory } from './chunk-6BEBJCK4.js';
4
4
  import { resolveOne } from './chunk-J7LKEB2R.js';
5
- import { impactOf, queryGraph, queryGraphSemantic } from './chunk-6F52QR6F.js';
6
- import { loadGraph } from './chunk-O5ASXWKF.js';
7
- import { vgdSocketPath, vgdPidPath } from './chunk-NDNNOAS6.js';
8
- import { isSkippedDirName, SKIP_FILES } from './chunk-TS7STRMI.js';
9
- import { embedTargets, readCachedVectors, cosine } from './chunk-QMRSCJUN.js';
5
+ import { impactOf, queryGraph, queryGraphSemantic } from './chunk-CA4YQBA7.js';
6
+ import { loadGraph } from './chunk-USPMMVNH.js';
7
+ import { vgdSocketPath, vgdPidPath } from './chunk-6H2QV5DR.js';
8
+ import { isSkippedDirName, SKIP_FILES } from './chunk-RTURQXQL.js';
9
+ import { embedTargets, readCachedVectors, cosine } from './chunk-7BSUPHX6.js';
10
10
  import { cacheDir } from './chunk-MVPRPSXU.js';
11
11
  import { stableStringify } from './chunk-O3LABX6I.js';
12
- import { VERSION } from './chunk-DHU3OOEI.js';
13
- import { repositoryIdFromRoot, globalGraphPathForRef, globalGraphPath } from './chunk-BWPBB45M.js';
12
+ import { VERSION } from './chunk-ZUZHYAJK.js';
13
+ import { repositoryIdFromRoot, globalGraphPathForRef, globalGraphPath } from './chunk-XP6UUCZZ.js';
14
14
  import { hashString, canonicalize, hashBytes } from './chunk-JFGYT6BI.js';
15
- import { activeGraphSlotKey, detectGitRef, clearDetectGitRefCache } from './chunk-BPF3YX2U.js';
15
+ import { activeGraphSlotKey, detectGitRef, clearDetectGitRefCache } from './chunk-XQNKCA2J.js';
16
16
  import * as path3 from 'path';
17
17
  import * as fs4 from 'fs';
18
18
  import * as net from 'net';
@@ -639,6 +639,7 @@ function getVgdHostBroker() {
639
639
  if (!defaultBroker) defaultBroker = new VgdHostBroker();
640
640
  return defaultBroker;
641
641
  }
642
+ var CRASH_RETRY_DELAY_MS = 5e3;
642
643
  var EmbedBroker = class {
643
644
  child = null;
644
645
  starting = false;
@@ -654,6 +655,8 @@ var EmbedBroker = class {
654
655
  inflight = /* @__PURE__ */ new Map();
655
656
  /** One deferred retry per slot after standing down for an on-disk writer. */
656
657
  rewarmTimers = /* @__PURE__ */ new Map();
658
+ /** Consecutive failed builds per slot — bounds the automatic retries below. */
659
+ failedBuilds = /* @__PURE__ */ new Map();
657
660
  /** The slot most recently made current — logged on change. */
658
661
  currentKey;
659
662
  graphProvider;
@@ -663,6 +666,7 @@ var EmbedBroker = class {
663
666
  maxCrashes;
664
667
  requestTimeoutMs;
665
668
  batchSize;
669
+ crashRetryDelayMs;
666
670
  now;
667
671
  sleepImpl;
668
672
  constructor(options = {}) {
@@ -672,6 +676,7 @@ var EmbedBroker = class {
672
676
  this.maxCrashes = options.maxCrashes ?? 3;
673
677
  this.requestTimeoutMs = options.requestTimeoutMs ?? 12e4;
674
678
  this.batchSize = options.batchSize ?? 256;
679
+ this.crashRetryDelayMs = options.crashRetryDelayMs ?? CRASH_RETRY_DELAY_MS;
675
680
  this.now = options.now ?? (() => Date.now());
676
681
  this.sleepImpl = options.sleep ?? ((ms) => new Promise((resolve3) => setTimeout(resolve3, ms)));
677
682
  }
@@ -731,6 +736,7 @@ var EmbedBroker = class {
731
736
  vectors: kept,
732
737
  nodeCount
733
738
  });
739
+ this.failedBuilds.delete(key);
734
740
  }
735
741
  /**
736
742
  * Supplies the graph for a slot so a select can warm without the caller
@@ -776,6 +782,7 @@ var EmbedBroker = class {
776
782
  if (!idx) return;
777
783
  this.indexes.delete(key);
778
784
  this.clearRewarm(key);
785
+ this.failedBuilds.delete(key);
779
786
  this.log(`semantic: ${repositoryId}@${gitRef} index evicted with its graph slot (${idx.vectors.size} vectors freed)`);
780
787
  }
781
788
  /** Drop everything (daemon shutdown / registry clear). */
@@ -784,6 +791,7 @@ var EmbedBroker = class {
784
791
  this.inflight.clear();
785
792
  for (const timer of this.rewarmTimers.values()) clearTimeout(timer);
786
793
  this.rewarmTimers.clear();
794
+ this.failedBuilds.clear();
787
795
  }
788
796
  /**
789
797
  * Ensure the slot has vectors, building them if needed. Resolves when the
@@ -872,6 +880,7 @@ var EmbedBroker = class {
872
880
  idx.buildMs = idx.builtAt - started;
873
881
  idx.error = void 0;
874
882
  this.clearRewarm(key);
883
+ this.failedBuilds.delete(key);
875
884
  this.log(`semantic: index ready for ${repositoryId}@${gitRef} \u2014 ${vectors.size} vectors in ${idx.buildMs}ms`);
876
885
  } catch (err) {
877
886
  idx.vectors = vectors;
@@ -879,6 +888,14 @@ var EmbedBroker = class {
879
888
  idx.state = "failed";
880
889
  idx.error = err instanceof Error ? err.message : String(err);
881
890
  this.log(`semantic: index build failed for ${repositoryId}@${gitRef} \u2014 ${idx.error}; callers fall back to lexical`);
891
+ const failures = (this.failedBuilds.get(key) ?? 0) + 1;
892
+ this.failedBuilds.set(key, failures);
893
+ if (!this.gaveUp && failures < this.maxCrashes) {
894
+ this.log(
895
+ `semantic: retrying ${repositoryId}@${gitRef} in ${this.crashRetryDelayMs / 1e3}s (${failures}/${this.maxCrashes} failed builds)`
896
+ );
897
+ this.scheduleRewarm(repositoryId, gitRef, this.crashRetryDelayMs);
898
+ }
882
899
  }
883
900
  return idx;
884
901
  }
@@ -891,8 +908,8 @@ var EmbedBroker = class {
891
908
  await this.sleepImpl(250);
892
909
  }
893
910
  }
894
- /** Retry a slot that stood down for an on-disk writer, once the writer should have moved. */
895
- scheduleRewarm(repositoryId, gitRef) {
911
+ /** Retry a slot that stood down for an on-disk writer, or whose build failed. */
912
+ scheduleRewarm(repositoryId, gitRef, delayMs = 2e3) {
896
913
  const key = activeGraphSlotKey(repositoryId, gitRef);
897
914
  if (this.rewarmTimers.has(key)) return;
898
915
  const timer = setTimeout(() => {
@@ -902,7 +919,7 @@ var EmbedBroker = class {
902
919
  const graph = this.graphProvider?.(repositoryId, gitRef);
903
920
  if (!graph) return;
904
921
  void this.ensureIndex(repositoryId, gitRef, graph);
905
- }, 2e3);
922
+ }, delayMs);
906
923
  timer.unref?.();
907
924
  this.rewarmTimers.set(key, timer);
908
925
  }
@@ -1103,7 +1120,14 @@ function defaultSpawnWorker() {
1103
1120
  stdio: ["pipe", "pipe", "pipe"],
1104
1121
  // Never inherit loader flags or a debugger port: this child exists to be
1105
1122
  // expendable, and anything that changes how it loads defeats the point.
1106
- env: { ...process.env, NODE_OPTIONS: "" }
1123
+ env: { ...process.env, NODE_OPTIONS: "" },
1124
+ // The daemon can be running without a console (older builds spawn it with
1125
+ // DETACHED_PROCESS), and a console-subsystem child of a console-less
1126
+ // parent gets a brand-new VISIBLE console window on Windows — a bare
1127
+ // node.exe window on the user's desktop. Closing that window killed the
1128
+ // worker with STATUS_CONTROL_C_EXIT (0xC000013A) and took the semantic
1129
+ // index down with it. windowsHide gives the worker a windowless console.
1130
+ windowsHide: true
1107
1131
  });
1108
1132
  }
1109
1133
 
@@ -1472,7 +1496,12 @@ function spawnRebuild(root, timeoutMs) {
1472
1496
  try {
1473
1497
  child = spawn(process.execPath, [process.argv[1] ?? "", "build", "-C", root, "--json", "--no-daemon", "--no-warm"], {
1474
1498
  stdio: "ignore",
1475
- env: { ...process.env, NODE_OPTIONS: "" }
1499
+ env: { ...process.env, NODE_OPTIONS: "" },
1500
+ // A console-less daemon parent means this child (and its git/npm
1501
+ // grandchildren, which inherit the console this flag creates) would
1502
+ // otherwise pop visible console windows on Windows for every
1503
+ // background rebuild.
1504
+ windowsHide: true
1476
1505
  });
1477
1506
  } catch (e) {
1478
1507
  resolve3({ ok: false, error: e instanceof Error ? e.message : String(e) });
@@ -2111,5 +2140,5 @@ var BranchGraphSession = class {
2111
2140
  };
2112
2141
 
2113
2142
  export { ActiveGraphCache, BranchGraphSession, DEFAULT_ACTIVE_GRAPH_IDLE_MS, VGD_PROTOCOL_VERSION, WorkspaceRegistry, endOfLine, findPackageLine, findRuntimeLine, isDependencyFile, isManifest, loadScanCache, manifestHash, manifestKind, parseRequest, startVgdServer, writeScanCache };
2114
- //# sourceMappingURL=chunk-F46Q3AEI.js.map
2115
- //# sourceMappingURL=chunk-F46Q3AEI.js.map
2143
+ //# sourceMappingURL=chunk-BQ6NTRRK.js.map
2144
+ //# sourceMappingURL=chunk-BQ6NTRRK.js.map