@vibgrate/cli 2026.819.1 → 2026.819.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.
- package/DOCS.md +3 -3
- package/dist/agent-AFMDB4GM.js +30 -0
- package/dist/{agent-3CKNTCRX.js.map → agent-AFMDB4GM.js.map} +1 -1
- package/dist/{approvals-DHTG3HI4.js → approvals-F2DJGPU7.js} +7 -7
- package/dist/{approvals-DHTG3HI4.js.map → approvals-F2DJGPU7.js.map} +1 -1
- package/dist/attach-XTX2Q3AD.js +10 -0
- package/dist/{attach-OCQ3I76L.js.map → attach-XTX2Q3AD.js.map} +1 -1
- package/dist/baseline-KTE2C3LW.js +9 -0
- package/dist/{baseline-QDC6OQ2X.js.map → baseline-KTE2C3LW.js.map} +1 -1
- package/dist/{chunk-D33M2ARL.js → chunk-3SOJZ3VV.js} +3 -3
- package/dist/{chunk-D33M2ARL.js.map → chunk-3SOJZ3VV.js.map} +1 -1
- package/dist/{chunk-JGBOYZAF.js → chunk-3XMTRK24.js} +99 -19
- package/dist/chunk-3XMTRK24.js.map +1 -0
- package/dist/{chunk-OV4KGXPD.js → chunk-57ZRSCHY.js} +3 -3
- package/dist/{chunk-OV4KGXPD.js.map → chunk-57ZRSCHY.js.map} +1 -1
- package/dist/{chunk-KFEM6FWP.js → chunk-5R4HYDTC.js} +4 -4
- package/dist/{chunk-KFEM6FWP.js.map → chunk-5R4HYDTC.js.map} +1 -1
- package/dist/{chunk-EI5AKDSC.js → chunk-5RMME7PT.js} +3 -3
- package/dist/{chunk-EI5AKDSC.js.map → chunk-5RMME7PT.js.map} +1 -1
- package/dist/{chunk-OQT3JBWW.js → chunk-5UG4UHKU.js} +205 -36
- package/dist/chunk-5UG4UHKU.js.map +1 -0
- package/dist/{chunk-NDNNOAS6.js → chunk-6H2QV5DR.js} +3 -3
- package/dist/{chunk-NDNNOAS6.js.map → chunk-6H2QV5DR.js.map} +1 -1
- package/dist/{chunk-LJSJX6U4.js → chunk-A3WWRW7U.js} +3 -3
- package/dist/{chunk-LJSJX6U4.js.map → chunk-A3WWRW7U.js.map} +1 -1
- package/dist/{chunk-O5ASXWKF.js → chunk-ARGYMFST.js} +3 -3
- package/dist/{chunk-O5ASXWKF.js.map → chunk-ARGYMFST.js.map} +1 -1
- package/dist/{chunk-FFY6NW7P.js → chunk-C5AOLTQS.js} +5 -5
- package/dist/{chunk-FFY6NW7P.js.map → chunk-C5AOLTQS.js.map} +1 -1
- package/dist/{chunk-F46Q3AEI.js → chunk-CEJIX3O7.js} +44 -15
- package/dist/chunk-CEJIX3O7.js.map +1 -0
- package/dist/{chunk-QMRSCJUN.js → chunk-DMI4BMUL.js} +3 -3
- package/dist/{chunk-QMRSCJUN.js.map → chunk-DMI4BMUL.js.map} +1 -1
- package/dist/{chunk-TS25WFAT.js → chunk-EXFA7QFC.js} +9 -9
- package/dist/{chunk-TS25WFAT.js.map → chunk-EXFA7QFC.js.map} +1 -1
- package/dist/{chunk-VYSDR2QE.js → chunk-HB3SONYP.js} +4 -4
- package/dist/{chunk-VYSDR2QE.js.map → chunk-HB3SONYP.js.map} +1 -1
- package/dist/{chunk-KKQX3F5F.js → chunk-HRYF4PWE.js} +7 -5
- package/dist/chunk-HRYF4PWE.js.map +1 -0
- package/dist/{chunk-EIESBKLW.js → chunk-HVJHFTIV.js} +7 -7
- package/dist/{chunk-EIESBKLW.js.map → chunk-HVJHFTIV.js.map} +1 -1
- package/dist/{chunk-JFE7XCAE.js → chunk-IASO2HCI.js} +3 -3
- package/dist/{chunk-JFE7XCAE.js.map → chunk-IASO2HCI.js.map} +1 -1
- package/dist/chunk-MQJY4EQV.js +6 -0
- package/dist/{chunk-DHU3OOEI.js.map → chunk-MQJY4EQV.js.map} +1 -1
- package/dist/{chunk-7AVYKZEM.js → chunk-NV7XNBX4.js} +4 -4
- package/dist/{chunk-7AVYKZEM.js.map → chunk-NV7XNBX4.js.map} +1 -1
- package/dist/{chunk-NZELMYT4.js → chunk-OLIMW4PQ.js} +8 -56
- package/dist/chunk-OLIMW4PQ.js.map +1 -0
- package/dist/{chunk-NWWLUFN5.js → chunk-PQISIPYP.js} +5 -5
- package/dist/{chunk-NWWLUFN5.js.map → chunk-PQISIPYP.js.map} +1 -1
- package/dist/{chunk-5XY4EFR7.js → chunk-QLNJ3VWO.js} +3 -3
- package/dist/{chunk-5XY4EFR7.js.map → chunk-QLNJ3VWO.js.map} +1 -1
- package/dist/{chunk-D44PGMH7.js → chunk-QOU2Q5L4.js} +12 -12
- package/dist/{chunk-D44PGMH7.js.map → chunk-QOU2Q5L4.js.map} +1 -1
- package/dist/{chunk-TS7STRMI.js → chunk-RTURQXQL.js} +4 -4
- package/dist/{chunk-TS7STRMI.js.map → chunk-RTURQXQL.js.map} +1 -1
- package/dist/{chunk-74UBGF4P.js → chunk-SHD5TCZ5.js} +3 -3
- package/dist/{chunk-74UBGF4P.js.map → chunk-SHD5TCZ5.js.map} +1 -1
- package/dist/{chunk-WJYJCDNY.js → chunk-SOAEPTSW.js} +13 -13
- package/dist/{chunk-WJYJCDNY.js.map → chunk-SOAEPTSW.js.map} +1 -1
- package/dist/{chunk-EMEMHNE3.js → chunk-TD4JAEMH.js} +6 -6
- package/dist/{chunk-EMEMHNE3.js.map → chunk-TD4JAEMH.js.map} +1 -1
- package/dist/{chunk-5O6O7DJH.js → chunk-UAPA5AHX.js} +3 -3
- package/dist/{chunk-5O6O7DJH.js.map → chunk-UAPA5AHX.js.map} +1 -1
- package/dist/{chunk-4VAA2XSM.js → chunk-UEXDSWKN.js} +6 -6
- package/dist/{chunk-4VAA2XSM.js.map → chunk-UEXDSWKN.js.map} +1 -1
- package/dist/{chunk-YIEP5GK5.js → chunk-UP2BR6TV.js} +15 -11
- package/dist/chunk-UP2BR6TV.js.map +1 -0
- package/dist/{chunk-6F52QR6F.js → chunk-VEQA2FSM.js} +4 -4
- package/dist/{chunk-6F52QR6F.js.map → chunk-VEQA2FSM.js.map} +1 -1
- package/dist/{chunk-E53WBVUQ.js → chunk-VHRSG6CF.js} +3 -3
- package/dist/{chunk-E53WBVUQ.js.map → chunk-VHRSG6CF.js.map} +1 -1
- package/dist/{chunk-I5LP55B6.js → chunk-W44THEXF.js} +3 -3
- package/dist/{chunk-I5LP55B6.js.map → chunk-W44THEXF.js.map} +1 -1
- package/dist/{chunk-FQVAQVJV.js → chunk-WI66PODG.js} +3 -3
- package/dist/{chunk-FQVAQVJV.js.map → chunk-WI66PODG.js.map} +1 -1
- package/dist/{chunk-CQDUBAQY.js → chunk-WNKGRXUA.js} +3 -3
- package/dist/{chunk-CQDUBAQY.js.map → chunk-WNKGRXUA.js.map} +1 -1
- package/dist/{chunk-FJG5AXKZ.js → chunk-WUFIXAEJ.js} +22 -6
- package/dist/chunk-WUFIXAEJ.js.map +1 -0
- package/dist/{chunk-QSLVOVNZ.js → chunk-XAS45W3G.js} +10 -10
- package/dist/{chunk-QSLVOVNZ.js.map → chunk-XAS45W3G.js.map} +1 -1
- package/dist/{chunk-BWPBB45M.js → chunk-XP6UUCZZ.js} +3 -3
- package/dist/{chunk-BWPBB45M.js.map → chunk-XP6UUCZZ.js.map} +1 -1
- package/dist/{chunk-BPF3YX2U.js → chunk-XQNKCA2J.js} +6 -3
- package/dist/chunk-XQNKCA2J.js.map +1 -0
- package/dist/{chunk-U7A7D2HP.js → chunk-XZDI2N7M.js} +7 -7
- package/dist/{chunk-U7A7D2HP.js.map → chunk-XZDI2N7M.js.map} +1 -1
- package/dist/{chunk-7N4Y3E47.js → chunk-YJYEPYB2.js} +13 -18
- package/dist/chunk-YJYEPYB2.js.map +1 -0
- package/dist/cli.js +104 -94
- package/dist/cli.js.map +1 -1
- package/dist/client-P5XSRFV4.js +8 -0
- package/dist/{client-UQIELEEZ.js.map → client-P5XSRFV4.js.map} +1 -1
- package/dist/daemon-VMQKIIYP.js +30 -0
- package/dist/{daemon-UNL65PTP.js.map → daemon-VMQKIIYP.js.map} +1 -1
- package/dist/embed-worker-main.js +5 -5
- package/dist/ensure-map-YIUJWMBK.js +40 -0
- package/dist/{ensure-map-4D2HJ6MA.js.map → ensure-map-YIUJWMBK.js.map} +1 -1
- package/dist/{federation-SZYVHYB2.js → federation-M4ZNXOPX.js} +5 -5
- package/dist/{federation-SZYVHYB2.js.map → federation-M4ZNXOPX.js.map} +1 -1
- package/dist/git-ref-LMT3EXYY.js +4 -0
- package/dist/{git-ref-RSRAN4OH.js.map → git-ref-LMT3EXYY.js.map} +1 -1
- package/dist/graph-backend-FDZUY4TR.js +16 -0
- package/dist/{graph-backend-36EIAAPQ.js.map → graph-backend-FDZUY4TR.js.map} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +23 -23
- package/dist/{interactive-ZZMHSZ3W.js → interactive-CS4PGZPK.js} +40 -40
- package/dist/{interactive-ZZMHSZ3W.js.map → interactive-CS4PGZPK.js.map} +1 -1
- package/dist/{llm-host-XFYFOAAX.js → llm-host-QVTJJVER.js} +5 -5
- package/dist/{llm-host-XFYFOAAX.js.map → llm-host-QVTJJVER.js.map} +1 -1
- package/dist/load-4EY64JJO.js +11 -0
- package/dist/{load-6CYLMUT5.js.map → load-4EY64JJO.js.map} +1 -1
- package/dist/local-runtime-GA43KYS5.js +6 -0
- package/dist/{local-runtime-6SNWKSA7.js.map → local-runtime-GA43KYS5.js.map} +1 -1
- package/dist/model-manager-6H3TMZKK.js +10 -0
- package/dist/{model-manager-SXHZ5VD4.js.map → model-manager-6H3TMZKK.js.map} +1 -1
- package/dist/{model-orchestrator-LHYPJBFH.js → model-orchestrator-X3NE3Y2G.js} +6 -6
- package/dist/{model-orchestrator-LHYPJBFH.js.map → model-orchestrator-X3NE3Y2G.js.map} +1 -1
- package/dist/parse-worker.js +2 -2
- package/dist/{paths-62AKTFSR.js → paths-RVK6FKRN.js} +4 -4
- package/dist/{paths-62AKTFSR.js.map → paths-RVK6FKRN.js.map} +1 -1
- package/dist/publish-27S66NOW.js +9 -0
- package/dist/{publish-7YHRTBRA.js.map → publish-27S66NOW.js.map} +1 -1
- package/dist/resolve-gguf-WVKVDN45.js +9 -0
- package/dist/{resolve-gguf-SDIYGGI6.js.map → resolve-gguf-WVKVDN45.js.map} +1 -1
- package/dist/{run-outcome-ADEAKXHH.js → run-outcome-T7VDBNWB.js} +7 -7
- package/dist/{run-outcome-ADEAKXHH.js.map → run-outcome-T7VDBNWB.js.map} +1 -1
- package/dist/runtime-session-WZLVADPQ.js +26 -0
- package/dist/{runtime-session-VNSXQAEO.js.map → runtime-session-WZLVADPQ.js.map} +1 -1
- package/dist/session-VPP2VGUN.js +17 -0
- package/dist/{session-3A6LKJHD.js.map → session-VPP2VGUN.js.map} +1 -1
- package/dist/{slot-subscription-25GOARW5.js → slot-subscription-C2ZUJED6.js} +5 -5
- package/dist/{slot-subscription-25GOARW5.js.map → slot-subscription-C2ZUJED6.js.map} +1 -1
- package/dist/{stream-json-S2TP2VPU.js → stream-json-XXCFN4MF.js} +17 -17
- package/dist/{stream-json-S2TP2VPU.js.map → stream-json-XXCFN4MF.js.map} +1 -1
- package/dist/version-2UBJ7N2I.js +4 -0
- package/dist/{version-SZI6I3A2.js.map → version-2UBJ7N2I.js.map} +1 -1
- package/dist/{vg-mcp-bridge-IIBEAOEB.js → vg-mcp-bridge-H6GXYNKV.js} +14 -14
- package/dist/{vg-mcp-bridge-IIBEAOEB.js.map → vg-mcp-bridge-H6GXYNKV.js.map} +1 -1
- package/dist/{vgd-KGXIKGOS.js → vgd-SBZO4ONQ.js} +13 -13
- package/dist/vgd-SBZO4ONQ.js.map +1 -0
- package/package.json +1 -1
- package/dist/agent-3CKNTCRX.js +0 -30
- package/dist/attach-OCQ3I76L.js +0 -10
- package/dist/baseline-QDC6OQ2X.js +0 -9
- package/dist/chunk-7N4Y3E47.js.map +0 -1
- package/dist/chunk-BPF3YX2U.js.map +0 -1
- package/dist/chunk-DHU3OOEI.js +0 -6
- package/dist/chunk-F46Q3AEI.js.map +0 -1
- package/dist/chunk-FJG5AXKZ.js.map +0 -1
- package/dist/chunk-JGBOYZAF.js.map +0 -1
- package/dist/chunk-KKQX3F5F.js.map +0 -1
- package/dist/chunk-NZELMYT4.js.map +0 -1
- package/dist/chunk-OQT3JBWW.js.map +0 -1
- package/dist/chunk-YIEP5GK5.js.map +0 -1
- package/dist/client-UQIELEEZ.js +0 -8
- package/dist/daemon-UNL65PTP.js +0 -30
- package/dist/ensure-map-4D2HJ6MA.js +0 -40
- package/dist/git-ref-RSRAN4OH.js +0 -4
- package/dist/graph-backend-36EIAAPQ.js +0 -16
- package/dist/load-6CYLMUT5.js +0 -11
- package/dist/local-runtime-6SNWKSA7.js +0 -6
- package/dist/model-manager-SXHZ5VD4.js +0 -10
- package/dist/publish-7YHRTBRA.js +0 -9
- package/dist/resolve-gguf-SDIYGGI6.js +0 -9
- package/dist/runtime-session-VNSXQAEO.js +0 -26
- package/dist/session-3A6LKJHD.js +0 -17
- package/dist/version-SZI6I3A2.js +0 -4
- 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-
|
|
6
|
-
import { loadGraph } from './chunk-
|
|
7
|
-
import { vgdSocketPath, vgdPidPath } from './chunk-
|
|
8
|
-
import { isSkippedDirName, SKIP_FILES } from './chunk-
|
|
9
|
-
import { embedTargets, readCachedVectors, cosine } from './chunk-
|
|
5
|
+
import { impactOf, queryGraph, queryGraphSemantic } from './chunk-VEQA2FSM.js';
|
|
6
|
+
import { loadGraph } from './chunk-ARGYMFST.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-DMI4BMUL.js';
|
|
10
10
|
import { cacheDir } from './chunk-MVPRPSXU.js';
|
|
11
11
|
import { stableStringify } from './chunk-O3LABX6I.js';
|
|
12
|
-
import { VERSION } from './chunk-
|
|
13
|
-
import { repositoryIdFromRoot, globalGraphPathForRef, globalGraphPath } from './chunk-
|
|
12
|
+
import { VERSION } from './chunk-MQJY4EQV.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-
|
|
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,
|
|
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
|
-
},
|
|
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-
|
|
2115
|
-
//# sourceMappingURL=chunk-
|
|
2143
|
+
//# sourceMappingURL=chunk-CEJIX3O7.js.map
|
|
2144
|
+
//# sourceMappingURL=chunk-CEJIX3O7.js.map
|