pi-lens 4.4.5 → 4.4.6

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 (149) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/README.md +32 -0
  3. package/config/biome/core.jsonc +3 -3
  4. package/dist/{chunk-K2GUZ4DN.js → chunk-2DDDCJDL.js} +4 -4
  5. package/dist/{chunk-DS2USX5G.js → chunk-2DMLM3ZO.js} +11 -11
  6. package/dist/chunk-2F47TQOA.js +73 -0
  7. package/dist/{chunk-YXDCRUKQ.js → chunk-2PHMIAKO.js} +4 -4
  8. package/dist/{chunk-PP2A5V2T.js → chunk-2RLWJO5K.js} +7 -7
  9. package/dist/{chunk-T4NGVFYI.js → chunk-2X4VLOCC.js} +2 -2
  10. package/dist/{chunk-QT66NEYN.js → chunk-3MYEA7QD.js} +3 -3
  11. package/dist/{chunk-7ZS7MC24.js → chunk-3WEPUD2V.js} +22 -22
  12. package/dist/{chunk-TL2TCJYL.js → chunk-4AVZ3TG7.js} +14 -14
  13. package/dist/{chunk-SNEUMLM7.js → chunk-4PCQCU47.js} +4 -4
  14. package/dist/chunk-4WX4CTUE.js +57 -0
  15. package/dist/{chunk-5LRUKYFA.js → chunk-5APMQ2IJ.js} +2 -2
  16. package/dist/{chunk-4U7GDSZQ.js → chunk-5CV5ITZF.js} +2 -2
  17. package/dist/{chunk-VUAVE3QC.js → chunk-5ZR3APIM.js} +36 -36
  18. package/dist/{chunk-CPZ5JJW6.js → chunk-63RIVFQI.js} +4 -4
  19. package/dist/{chunk-EDMLIW6W.js → chunk-75SY4F24.js} +12 -12
  20. package/dist/{chunk-RCHO5W7M.js → chunk-7RQXA5GG.js} +6 -6
  21. package/dist/{chunk-XHDBJODR.js → chunk-A3YNG5KP.js} +21 -21
  22. package/dist/{chunk-3WCEHYOI.js → chunk-AE37FEGH.js} +1 -1
  23. package/dist/{chunk-KPVLQHCZ.js → chunk-AMXIUN2R.js} +2 -2
  24. package/dist/{chunk-XI34NWDI.js → chunk-ARD426WI.js} +1 -1
  25. package/dist/{chunk-RG3MXTRI.js → chunk-BHUWL2Y3.js} +7 -7
  26. package/dist/{chunk-4ODSZ35Z.js → chunk-BI5LAQ3Y.js} +44 -44
  27. package/dist/{chunk-Q42LJANT.js → chunk-BM5GS6ZH.js} +2 -2
  28. package/dist/{chunk-CG5V25HX.js → chunk-BWYQUPOS.js} +1 -1
  29. package/dist/{chunk-HYVXA3BB.js → chunk-CFRQMBGP.js} +23 -23
  30. package/dist/{chunk-NLIVE7L6.js → chunk-CJYKEW2L.js} +1 -1
  31. package/dist/{chunk-MEFLGBCS.js → chunk-DC4CFXM5.js} +3 -3
  32. package/dist/{chunk-ASRAO7KG.js → chunk-DMSLNKF7.js} +27 -27
  33. package/dist/{chunk-YSDPVDFC.js → chunk-DQXSPYRI.js} +3 -3
  34. package/dist/{chunk-YKVDBNPO.js → chunk-EVDGNG4F.js} +3 -3
  35. package/dist/{chunk-2LDMXL2M.js → chunk-F5Z6URKM.js} +2 -2
  36. package/dist/{chunk-72J27ICO.js → chunk-F6X3YJWD.js} +2 -2
  37. package/dist/{chunk-YXGRRORB.js → chunk-FA5LDARD.js} +13 -13
  38. package/dist/{chunk-OMJ3OFBJ.js → chunk-FFL3A2VP.js} +6 -6
  39. package/dist/chunk-FJIVKLPH.js +31 -0
  40. package/dist/chunk-G2B7F6ZU.js +88 -0
  41. package/dist/{chunk-YWWG4AQA.js → chunk-GAACZY6R.js} +24 -25
  42. package/dist/{chunk-F7BO6FWH.js → chunk-GMTFDAOK.js} +11 -11
  43. package/dist/{chunk-UVY4TOJH.js → chunk-GNSIWBAT.js} +3 -3
  44. package/dist/chunk-GTAI2J6U.js +27 -0
  45. package/dist/{chunk-SJHC3BCZ.js → chunk-GZE7WOI4.js} +98 -111
  46. package/dist/{chunk-ZAPSUBLU.js → chunk-H7HTEQUZ.js} +7 -7
  47. package/dist/{chunk-ZPJM7DID.js → chunk-HK6JVFZC.js} +3 -3
  48. package/dist/chunk-IPDG45G5.js +26 -0
  49. package/dist/{chunk-ZSUX7KEM.js → chunk-J6JP25XU.js} +2 -2
  50. package/dist/{chunk-6XSESGWD.js → chunk-JL6CXUMW.js} +2 -2
  51. package/dist/{chunk-Y5KTA2OB.js → chunk-K2YGBXOA.js} +2 -2
  52. package/dist/{chunk-AHWA4AKM.js → chunk-KLQVC3XC.js} +4 -4
  53. package/dist/{chunk-27VWVB23.js → chunk-KSR7RGQY.js} +10 -10
  54. package/dist/{chunk-N3PLNNCW.js → chunk-KXF5R4UN.js} +1 -1
  55. package/dist/{chunk-GLW3YDZZ.js → chunk-LEJOJDXL.js} +9 -9
  56. package/dist/{chunk-Y2TPADJR.js → chunk-MA77RSFN.js} +9 -9
  57. package/dist/{chunk-IL7K66ZQ.js → chunk-MKVZQUEG.js} +15 -15
  58. package/dist/{chunk-EIKRZ32J.js → chunk-MN7MHUXQ.js} +2 -2
  59. package/dist/{chunk-4FHUGDKU.js → chunk-MT6BVNFW.js} +5 -5
  60. package/dist/{chunk-3SNDVPOR.js → chunk-NDMCVUYK.js} +8 -8
  61. package/dist/{chunk-63NMUNYP.js → chunk-NIU2IPC5.js} +6 -6
  62. package/dist/{chunk-APFJKOP6.js → chunk-NNKXDXXS.js} +2 -2
  63. package/dist/{chunk-FEDWAYDS.js → chunk-OJLTLYHB.js} +12 -12
  64. package/dist/{chunk-KJJAVH3X.js → chunk-OLAWH5UQ.js} +5 -5
  65. package/dist/{chunk-G224FADB.js → chunk-OOU2WZZE.js} +1 -1
  66. package/dist/{chunk-NFNVDDGB.js → chunk-OSTKYB55.js} +1 -1
  67. package/dist/chunk-P4QNXS6I.js +27 -0
  68. package/dist/{chunk-7IYC4ENJ.js → chunk-PKES3ISE.js} +2 -2
  69. package/dist/{chunk-UCVMSOXF.js → chunk-PO45POGF.js} +2 -2
  70. package/dist/{chunk-JWOVP5BL.js → chunk-PPIBVH4R.js} +6 -6
  71. package/dist/{chunk-EWXXLS26.js → chunk-PQJFG24Z.js} +82 -12
  72. package/dist/{chunk-TPYYEDP5.js → chunk-Q3UZHW6N.js} +45 -22
  73. package/dist/{chunk-5DKE4HGX.js → chunk-Q4EMRFNA.js} +34 -34
  74. package/dist/{chunk-XHLK33VM.js → chunk-Q4FCYCRE.js} +16 -16
  75. package/dist/chunk-Q6D6VMI4.js +22 -0
  76. package/dist/{chunk-Q4BKKOVC.js → chunk-QGSTQH4D.js} +8 -8
  77. package/dist/{chunk-GYRZ72R4.js → chunk-RZOXUSPC.js} +2 -2
  78. package/dist/{chunk-EN5AM7PX.js → chunk-S67UJDGQ.js} +10 -10
  79. package/dist/{chunk-YWNO5Q4R.js → chunk-SCIUNBPF.js} +17 -17
  80. package/dist/{chunk-VIDEKABZ.js → chunk-SJJYRZB4.js} +2 -2
  81. package/dist/chunk-SXGD4ANG.js +25 -0
  82. package/dist/{chunk-THEXI2QO.js → chunk-T7FTXGS3.js} +42 -42
  83. package/dist/{chunk-WUY4BZEP.js → chunk-TIQJPRDD.js} +106 -50
  84. package/dist/{chunk-EXVXBSGN.js → chunk-TIYGSODX.js} +17 -17
  85. package/dist/{chunk-2FYKETQJ.js → chunk-U2SDMG7C.js} +5 -5
  86. package/dist/{chunk-PJXNTPB2.js → chunk-U6OC3QEM.js} +21 -21
  87. package/dist/{chunk-LMCTHJ2H.js → chunk-UCGQT677.js} +18 -18
  88. package/dist/{chunk-UL5SXQVX.js → chunk-UHGF5UT5.js} +1 -1
  89. package/dist/{chunk-AI3GP74G.js → chunk-UN4TEBWN.js} +15 -15
  90. package/dist/{chunk-2SDHYHHO.js → chunk-V3APN3DY.js} +13 -13
  91. package/dist/{chunk-7FLRUH6B.js → chunk-V63BC55Q.js} +1 -1
  92. package/dist/{chunk-S55TEC7I.js → chunk-VG5JS5SW.js} +2 -2
  93. package/dist/{chunk-IEBJF3PN.js → chunk-VPBIMOAQ.js} +11 -11
  94. package/dist/{chunk-EX4EXBW7.js → chunk-VQH24FIP.js} +15 -15
  95. package/dist/{chunk-TVZRLTG6.js → chunk-VSFLRN5Y.js} +1 -1
  96. package/dist/{chunk-KCBRHV5E.js → chunk-W2V54OCL.js} +3 -3
  97. package/dist/{chunk-VITFDI3O.js → chunk-W5LGKNET.js} +12 -12
  98. package/dist/{chunk-OZNCKLOX.js → chunk-W5R5SABV.js} +12 -12
  99. package/dist/{chunk-ELZRSR5N.js → chunk-WIZWZR4C.js} +38 -38
  100. package/dist/{chunk-MKPCELNI.js → chunk-WQOIR3QY.js} +13 -13
  101. package/dist/{chunk-COOUUC5W.js → chunk-XAIT2YGS.js} +6 -6
  102. package/dist/chunk-XCUHKYCQ.js +23 -0
  103. package/dist/{chunk-KFXCL4OV.js → chunk-XQCSWV2G.js} +22 -23
  104. package/dist/{chunk-RU34BA4D.js → chunk-YBSONGSZ.js} +34 -34
  105. package/dist/{chunk-GTDSYEA2.js → chunk-YISME6ON.js} +1 -1
  106. package/dist/chunk-YRD4ISED.js +30 -0
  107. package/dist/{chunk-X3UTCXAA.js → chunk-YSBHPOY6.js} +12 -12
  108. package/dist/{chunk-XWFIHYCH.js → chunk-Z2XAOKHK.js} +2 -2
  109. package/dist/{chunk-K4SZB56V.js → chunk-Z7IGUAXL.js} +7 -7
  110. package/dist/{chunk-KX56K73G.js → chunk-ZKXQKGWZ.js} +2 -2
  111. package/dist/{chunk-FWZRGGGY.js → chunk-ZQ6NZZTB.js} +6 -4
  112. package/dist/{chunk-2Y6OJRSI.js → chunk-ZUUI3ZSA.js} +3 -3
  113. package/dist/{chunk-UO66IMVP.js → chunk-ZYNI26MI.js} +2 -2
  114. package/dist/index.js +571 -409
  115. package/dist/mcp/analyze-cli.js +10 -10
  116. package/dist/mcp/cli.js +42 -42
  117. package/dist/mcp/server.js +108 -108
  118. package/dist/mcp/worker.js +61 -61
  119. package/dist/probes/installer.js +19 -19
  120. package/docs/agent-tools.md +28 -7
  121. package/docs/configuration.md +3 -1
  122. package/docs/defect-shapes.md +738 -0
  123. package/docs/invariants/caches-stores.md +30 -0
  124. package/docs/invariants/dispatch-runners.md +164 -0
  125. package/docs/invariants/git-guard-host.md +53 -0
  126. package/docs/invariants/language-config.md +31 -0
  127. package/docs/invariants/lsp-trust-exec.md +286 -0
  128. package/docs/invariants/paths-os.md +59 -0
  129. package/docs/invariants/session-telemetry.md +74 -0
  130. package/docs/pi-lens-fixer.md +2 -1
  131. package/docs/pi-lens-merge-policy.md +10 -8
  132. package/docs/pi-lens-monitor.md +2 -2
  133. package/docs/pi-lens-orchestration.md +41 -0
  134. package/docs/pi-lens-release.md +20 -0
  135. package/docs/pi-lens-retro.md +3 -2
  136. package/docs/pi-lens-reviewer.md +6 -6
  137. package/docs/pi-lens-subagent.md +2 -2
  138. package/package.json +3 -2
  139. package/dist/chunk-22Y2BM7H.js +0 -23
  140. package/dist/chunk-44X7VIKR.js +0 -73
  141. package/dist/chunk-54NIOJJZ.js +0 -25
  142. package/dist/chunk-7WWQAW5P.js +0 -30
  143. package/dist/chunk-EA2ZRG44.js +0 -27
  144. package/dist/chunk-EKNWOL2I.js +0 -27
  145. package/dist/chunk-G5UCJFT7.js +0 -26
  146. package/dist/chunk-N5FBM25N.js +0 -22
  147. package/dist/chunk-P5XUGPIX.js +0 -31
  148. package/dist/chunk-PKOXJIVT.js +0 -88
  149. package/dist/chunk-RG7OODGM.js +0 -57
@@ -7,7 +7,7 @@ import {
7
7
  normalizeMessage,
8
8
  sanitizeCorrelationId,
9
9
  stableFindingId
10
- } from "./chunk-MEFLGBCS.js";
10
+ } from "./chunk-DC4CFXM5.js";
11
11
  import {
12
12
  mapWithConcurrency
13
13
  } from "./chunk-XIMYZ3JA.js";
@@ -38,24 +38,24 @@ import {
38
38
  resolveLspServerCwd,
39
39
  serverTraits,
40
40
  withLspProjectCodePermission
41
- } from "./chunk-7ZS7MC24.js";
41
+ } from "./chunk-3WEPUD2V.js";
42
42
  import {
43
43
  findLocalOpengrepConfig
44
- } from "./chunk-6XSESGWD.js";
44
+ } from "./chunk-JL6CXUMW.js";
45
45
  import {
46
46
  emitBounded
47
- } from "./chunk-3SNDVPOR.js";
47
+ } from "./chunk-NDMCVUYK.js";
48
48
  import {
49
49
  loadProjectSnapshot,
50
50
  readJsonCache
51
- } from "./chunk-JWOVP5BL.js";
51
+ } from "./chunk-PPIBVH4R.js";
52
52
  import {
53
53
  acquireWorkspaceSweepHold,
54
54
  configureLspServiceLifecycle,
55
55
  getOwnedLspService,
56
56
  peekOwnedLspService,
57
57
  resetOwnedLspService
58
- } from "./chunk-2LDMXL2M.js";
58
+ } from "./chunk-F5Z6URKM.js";
59
59
  import {
60
60
  collectForwardImportMtimes,
61
61
  exceedsLspSyncLimits,
@@ -69,15 +69,15 @@ import {
69
69
  lineTextAt,
70
70
  pathBirthtimeMs,
71
71
  scanDocumentContent
72
- } from "./chunk-FEDWAYDS.js";
72
+ } from "./chunk-OJLTLYHB.js";
73
73
  import {
74
74
  js_yaml_default
75
- } from "./chunk-WUY4BZEP.js";
75
+ } from "./chunk-TIQJPRDD.js";
76
76
  import {
77
77
  EXTENSION_TO_LSP_ID,
78
78
  lspLanguageId,
79
79
  resolveFilenameLanguage
80
- } from "./chunk-GTDSYEA2.js";
80
+ } from "./chunk-YISME6ON.js";
81
81
  import {
82
82
  HOOK_WALL_BUDGET_MS
83
83
  } from "./chunk-CKEQFGLT.js";
@@ -85,28 +85,28 @@ import {
85
85
  bounded,
86
86
  withDeadline,
87
87
  withTimeout
88
- } from "./chunk-NLIVE7L6.js";
88
+ } from "./chunk-CJYKEW2L.js";
89
89
  import {
90
90
  diagnosticsIpcPathForCwd,
91
91
  requestWarmCodeActions,
92
92
  requestWarmDiagnostics
93
- } from "./chunk-Q42LJANT.js";
93
+ } from "./chunk-BM5GS6ZH.js";
94
94
  import {
95
95
  CONTENT_HASH_MAX_BYTES,
96
96
  hashContentBytes,
97
97
  hashFileBytes
98
- } from "./chunk-APFJKOP6.js";
98
+ } from "./chunk-NNKXDXXS.js";
99
99
  import {
100
100
  findLocalZizmorConfig,
101
101
  logSessionStart
102
- } from "./chunk-IL7K66ZQ.js";
102
+ } from "./chunk-MKVZQUEG.js";
103
103
  import {
104
104
  findLocalBinUpwards,
105
105
  isProjectLocalBinPath
106
- } from "./chunk-K4SZB56V.js";
106
+ } from "./chunk-Z7IGUAXL.js";
107
107
  import {
108
108
  getLspCapableKinds
109
- } from "./chunk-63NMUNYP.js";
109
+ } from "./chunk-NIU2IPC5.js";
110
110
  import {
111
111
  createGenerationMap,
112
112
  createGenerationSource,
@@ -124,34 +124,34 @@ import {
124
124
  removeLspChild,
125
125
  sampleProcessTreeCpuPercent,
126
126
  selectLivePeerInstances
127
- } from "./chunk-TPYYEDP5.js";
127
+ } from "./chunk-Q3UZHW6N.js";
128
128
  import {
129
129
  createSingleFlight
130
130
  } from "./chunk-AWQWXSW4.js";
131
131
  import {
132
132
  SPECIAL_FILENAMES,
133
133
  getLanguageId
134
- } from "./chunk-GYRZ72R4.js";
134
+ } from "./chunk-RZOXUSPC.js";
135
135
  import {
136
136
  PathKeyedMap,
137
137
  detectFileRole
138
- } from "./chunk-KJJAVH3X.js";
138
+ } from "./chunk-OLAWH5UQ.js";
139
139
  import {
140
140
  assertInstallAllowed,
141
141
  isLspSpawnAllowedByTrust,
142
142
  projectTrustDenialReason,
143
143
  writeFileAtomic
144
- } from "./chunk-EIKRZ32J.js";
144
+ } from "./chunk-MN7MHUXQ.js";
145
145
  import {
146
146
  compareOrdinal,
147
147
  incrementDegradationCount,
148
148
  recordDegradation,
149
149
  recordDegradationOnce,
150
150
  truncateForLedger
151
- } from "./chunk-FWZRGGGY.js";
151
+ } from "./chunk-ZQ6NZZTB.js";
152
152
  import {
153
153
  logExtension
154
- } from "./chunk-N3PLNNCW.js";
154
+ } from "./chunk-KXF5R4UN.js";
155
155
  import {
156
156
  freshnessFromMtime
157
157
  } from "./chunk-S26LC76R.js";
@@ -159,7 +159,7 @@ import {
159
159
  logLatency,
160
160
  phaseFinished,
161
161
  phaseStarted
162
- } from "./chunk-XWFIHYCH.js";
162
+ } from "./chunk-Z2XAOKHK.js";
163
163
  import {
164
164
  createNdjsonLogger,
165
165
  getGlobalPiLensLogDir,
@@ -167,7 +167,7 @@ import {
167
167
  getProcessSingleton,
168
168
  isTestMode,
169
169
  nextModuleEvaluationOrdinal
170
- } from "./chunk-TVZRLTG6.js";
170
+ } from "./chunk-VSFLRN5Y.js";
171
171
  import {
172
172
  BoundedFifoMap,
173
173
  BoundedLruCache,
@@ -175,16 +175,18 @@ import {
175
175
  isAtOrAboveHomeDir,
176
176
  isUnderDir,
177
177
  isWindowsPath,
178
+ kernelPathIdentityAsync,
178
179
  minimatch,
179
180
  normalizeEphemeralMapKey,
180
181
  normalizeFilePath,
181
182
  normalizeMapKey,
182
183
  pathsEqual,
184
+ realpathOrResolveAsync,
183
185
  toPosix,
184
186
  toProjectRelativePath,
185
187
  uriToDiskPath,
186
188
  uriToPath
187
- } from "./chunk-EWXXLS26.js";
189
+ } from "./chunk-PQJFG24Z.js";
188
190
  import {
189
191
  __commonJS,
190
192
  __require,
@@ -1407,8 +1409,8 @@ var require_semaphore = __commonJS({
1407
1409
  this._waiting = [];
1408
1410
  }
1409
1411
  lock(thunk) {
1410
- return new Promise((resolve9, reject) => {
1411
- this._waiting.push({ thunk, resolve: resolve9, reject });
1412
+ return new Promise((resolve8, reject) => {
1413
+ this._waiting.push({ thunk, resolve: resolve8, reject });
1412
1414
  this.runNext();
1413
1415
  });
1414
1416
  }
@@ -3034,9 +3036,9 @@ ${JSON.stringify(message, null, 4)}`);
3034
3036
  if (typeof cancellationStrategy.sender.enableCancellation === "function") {
3035
3037
  cancellationStrategy.sender.enableCancellation(requestMessage);
3036
3038
  }
3037
- return new Promise(async (resolve9, reject) => {
3039
+ return new Promise(async (resolve8, reject) => {
3038
3040
  const resolveWithCleanup = (r) => {
3039
- resolve9(r);
3041
+ resolve8(r);
3040
3042
  cancellationStrategy.sender.cleanup(id);
3041
3043
  disposable?.dispose();
3042
3044
  };
@@ -3465,10 +3467,10 @@ var require_ril = __commonJS({
3465
3467
  return api_1.Disposable.create(() => this.stream.off("end", listener));
3466
3468
  }
3467
3469
  write(data, encoding) {
3468
- return new Promise((resolve9, reject) => {
3470
+ return new Promise((resolve8, reject) => {
3469
3471
  const callback = (error) => {
3470
3472
  if (error === void 0 || error === null) {
3471
- resolve9();
3473
+ resolve8();
3472
3474
  } else {
3473
3475
  reject(error);
3474
3476
  }
@@ -3760,10 +3762,10 @@ var require_main = __commonJS({
3760
3762
  }
3761
3763
  function createClientPipeTransport(pipeName, encoding = "utf-8") {
3762
3764
  let connectResolve;
3763
- const connected = new Promise((resolve9, _reject) => {
3764
- connectResolve = resolve9;
3765
+ const connected = new Promise((resolve8, _reject) => {
3766
+ connectResolve = resolve8;
3765
3767
  });
3766
- return new Promise((resolve9, reject) => {
3768
+ return new Promise((resolve8, reject) => {
3767
3769
  const server = (0, net_1.createServer)((socket) => {
3768
3770
  server.close();
3769
3771
  connectResolve([
@@ -3774,7 +3776,7 @@ var require_main = __commonJS({
3774
3776
  server.on("error", reject);
3775
3777
  server.listen(pipeName, () => {
3776
3778
  server.removeListener("error", reject);
3777
- resolve9({
3779
+ resolve8({
3778
3780
  onConnected: () => {
3779
3781
  return connected;
3780
3782
  }
@@ -3791,10 +3793,10 @@ var require_main = __commonJS({
3791
3793
  }
3792
3794
  function createClientSocketTransport(port, encoding = "utf-8") {
3793
3795
  let connectResolve;
3794
- const connected = new Promise((resolve9, _reject) => {
3795
- connectResolve = resolve9;
3796
+ const connected = new Promise((resolve8, _reject) => {
3797
+ connectResolve = resolve8;
3796
3798
  });
3797
- return new Promise((resolve9, reject) => {
3799
+ return new Promise((resolve8, reject) => {
3798
3800
  const server = (0, net_1.createServer)((socket) => {
3799
3801
  server.close();
3800
3802
  connectResolve([
@@ -3811,7 +3813,7 @@ var require_main = __commonJS({
3811
3813
  return;
3812
3814
  }
3813
3815
  const boundPort = address.port;
3814
- resolve9({
3816
+ resolve8({
3815
3817
  port: () => boundPort,
3816
3818
  onConnected: () => {
3817
3819
  return connected;
@@ -3952,7 +3954,7 @@ async function importTargetsToAnnounce(cwd, importers, onScope) {
3952
3954
  reason: `resolved the imports of ${CREATED_IMPORT_SCAN_MAX_FILES} of ${importers.length} files in one diagnostics call`
3953
3955
  });
3954
3956
  }
3955
- const { extractForwardImports } = await import("./chunk-XHDBJODR.js");
3957
+ const { extractForwardImports } = await import("./chunk-A3YNG5KP.js");
3956
3958
  const targets = /* @__PURE__ */ new Set();
3957
3959
  const reexports = /* @__PURE__ */ new Map();
3958
3960
  let resolved2 = 0;
@@ -5072,8 +5074,6 @@ function resetPendingAuxiliaryCoverage() {
5072
5074
  import * as path7 from "node:path";
5073
5075
 
5074
5076
  // dist/clients/file-mutation-queue.js
5075
- import { realpath } from "node:fs/promises";
5076
- import { resolve as resolve2 } from "node:path";
5077
5077
  var loadHostSdk;
5078
5078
  var hostQueue;
5079
5079
  var hostSessionManager;
@@ -5109,13 +5109,10 @@ function withHostFileMutationQueue(filePath, fn) {
5109
5109
  const loader = loadHostSdk;
5110
5110
  if (!loader)
5111
5111
  return fn();
5112
- return resolveHostQueue(loader).then((queue) => queue ? queue(resolve2(filePath), fn) : fn());
5112
+ return resolveHostQueue(loader).then((queue) => queue ? realpathOrResolveAsync(filePath).then((key) => queue(key, fn)) : fn());
5113
5113
  }
5114
5114
  async function withHostFileMutationQueues(filePaths, fn) {
5115
- const keys = await Promise.all(filePaths.map((filePath) => {
5116
- const resolvedPath = resolve2(filePath);
5117
- return realpath(resolvedPath).catch(() => resolvedPath);
5118
- }));
5115
+ const keys = await Promise.all(filePaths.map((filePath) => realpathOrResolveAsync(filePath)));
5119
5116
  return [...new Set(keys)].sort(compareOrdinal).reduceRight((inner, key) => () => withHostFileMutationQueue(key, inner), fn)();
5120
5117
  }
5121
5118
 
@@ -7526,9 +7523,11 @@ function getOpaqueBaselineStore() {
7526
7523
  return created;
7527
7524
  }
7528
7525
  var gitRepoMemo = /* @__PURE__ */ new Map();
7526
+ var overCapRootMemo = new BoundedFifoMap(16);
7529
7527
  function resetOpaqueMutationState() {
7530
7528
  getOpaqueBaselineStore().takeAllForTest();
7531
7529
  gitRepoMemo.clear();
7530
+ overCapRootMemo.clear();
7532
7531
  gitToplevelMemo.clear();
7533
7532
  headRecords.clear();
7534
7533
  headLooks.clear();
@@ -8317,7 +8316,7 @@ function resyncDocumentOnPastEof(filePath) {
8317
8316
  void (async () => {
8318
8317
  try {
8319
8318
  const [{ getOwnedLspService: getOwnedLspService2 }, content] = await Promise.all([
8320
- import("./chunk-YXDCRUKQ.js"),
8319
+ import("./chunk-2PHMIAKO.js"),
8321
8320
  fs7.promises.readFile(filePath, "utf-8")
8322
8321
  ]);
8323
8322
  await getOwnedLspService2().openFile(filePath, content, { preserveDiagnostics: false });
@@ -9296,14 +9295,14 @@ async function raceToCompletion(promises3, shouldComplete, options = { timeoutMs
9296
9295
  const languageCount = promises3.length - auxIndices.size;
9297
9296
  let languageRemaining = languageCount;
9298
9297
  let auxGraceStarted = false;
9299
- return new Promise((resolve9) => {
9298
+ return new Promise((resolve8) => {
9300
9299
  const timeout = setTimeout(() => {
9301
9300
  completed = true;
9302
9301
  if (graceTimer)
9303
9302
  clearTimeout(graceTimer);
9304
9303
  if (auxGraceTimer)
9305
9304
  clearTimeout(auxGraceTimer);
9306
- resolve9(results.filter((r) => r !== void 0));
9305
+ resolve8(results.filter((r) => r !== void 0));
9307
9306
  }, options.timeoutMs);
9308
9307
  const finalize = () => {
9309
9308
  if (completed)
@@ -9314,7 +9313,7 @@ async function raceToCompletion(promises3, shouldComplete, options = { timeoutMs
9314
9313
  clearTimeout(graceTimer);
9315
9314
  if (auxGraceTimer)
9316
9315
  clearTimeout(auxGraceTimer);
9317
- resolve9(results.filter((r) => r !== void 0));
9316
+ resolve8(results.filter((r) => r !== void 0));
9318
9317
  };
9319
9318
  const startAuxGrace = () => {
9320
9319
  if (auxGraceStarted || completed)
@@ -10109,27 +10108,14 @@ async function assertParentIsUsable(filePath, stateFor) {
10109
10108
  current = parent;
10110
10109
  }
10111
10110
  }
10112
- async function resolveExistingAncestor(filePath) {
10113
- let current = path10.resolve(filePath);
10114
- const tail = [];
10115
- while (true) {
10116
- try {
10117
- const resolved2 = await fs10.realpath(current);
10118
- return path10.join(resolved2, ...tail.reverse());
10119
- } catch (err) {
10120
- const code = err.code;
10121
- if (code !== "ENOENT" && code !== "ENOTDIR")
10122
- throw err;
10123
- const parent = path10.dirname(current);
10124
- if (parent === current)
10125
- throw err;
10126
- tail.push(path10.basename(current));
10127
- current = parent;
10128
- }
10129
- }
10111
+ async function requireKernelIdentity(filePath, subject) {
10112
+ const identity = await kernelPathIdentityAsync(filePath);
10113
+ if (identity === void 0 || !identity.kernelConfirmed)
10114
+ throw new Error(`workspace edit path identity is unresolvable: ${subject}`);
10115
+ return identity.identity;
10130
10116
  }
10131
10117
  async function createWorkspaceUriConfiner(cwd) {
10132
- const root = await resolveExistingAncestor(cwd);
10118
+ const root = await requireKernelIdentity(cwd, cwd);
10133
10119
  return async (uri) => {
10134
10120
  let filePath = "";
10135
10121
  try {
@@ -10142,7 +10128,7 @@ async function createWorkspaceUriConfiner(cwd) {
10142
10128
  }
10143
10129
  if (!path10.isAbsolute(filePath))
10144
10130
  throw new Error(`workspace edit path escapes workspace: ${uri}`);
10145
- const resolved2 = await resolveExistingAncestor(filePath);
10131
+ const resolved2 = await requireKernelIdentity(filePath, uri);
10146
10132
  if (!isUnderDir(resolved2, root))
10147
10133
  throw new Error(`workspace edit path escapes workspace: ${uri}`);
10148
10134
  return filePath;
@@ -10216,7 +10202,7 @@ async function preflightWorkspaceEdit(planned, cwd, options) {
10216
10202
  if (!physicalPath)
10217
10203
  throw new Error(`text edit target does not exist: ${filePath}`);
10218
10204
  const content = await fs10.readFile(physicalPath, "utf-8");
10219
- const expected = options.expectedContent?.get(await fs10.realpath(physicalPath));
10205
+ const expected = options.expectedContent?.get(await realpathOrResolveAsync(physicalPath));
10220
10206
  if (expected !== void 0 && expected !== content) {
10221
10207
  refuseStaleWorkspaceEdit(filePath, "the file changed after the edit was computed from it");
10222
10208
  }
@@ -11409,8 +11395,8 @@ async function killProcessTree(proc, pid, options = {}) {
11409
11395
  proc.unref?.();
11410
11396
  return;
11411
11397
  }
11412
- await new Promise((resolve9) => {
11413
- killer.once("close", () => resolve9());
11398
+ await new Promise((resolve8) => {
11399
+ killer.once("close", () => resolve8());
11414
11400
  killer.once("error", (err) => {
11415
11401
  logLatency({
11416
11402
  type: "phase",
@@ -11419,7 +11405,7 @@ async function killProcessTree(proc, pid, options = {}) {
11419
11405
  durationMs: 0,
11420
11406
  metadata: { pid, platform: "win32", taskkillError: String(err) }
11421
11407
  });
11422
- resolve9();
11408
+ resolve8();
11423
11409
  });
11424
11410
  });
11425
11411
  } catch (err) {
@@ -11477,18 +11463,18 @@ async function killProcessTree(proc, pid, options = {}) {
11477
11463
  proc.unref?.();
11478
11464
  return;
11479
11465
  }
11480
- const exitedInTime = await new Promise((resolve9) => {
11466
+ const exitedInTime = await new Promise((resolve8) => {
11481
11467
  if (proc.exitCode != null || proc.signalCode != null) {
11482
- resolve9(true);
11468
+ resolve8(true);
11483
11469
  return;
11484
11470
  }
11485
11471
  const onExit = () => {
11486
11472
  clearTimeout(timer);
11487
- resolve9(true);
11473
+ resolve8(true);
11488
11474
  };
11489
11475
  const timer = setTimeout(() => {
11490
11476
  proc.off?.("exit", onExit);
11491
- resolve9(false);
11477
+ resolve8(false);
11492
11478
  }, 1500);
11493
11479
  proc.once?.("exit", onExit);
11494
11480
  });
@@ -12132,7 +12118,8 @@ function setupIncomingHandlers(state4, initialization, onDiagnosticsPublished) {
12132
12118
  emptyFirstPublish: strategy.emptyFirstPublish,
12133
12119
  // `pubVersion`, the `[lsp-pub]` trace's own field name for the
12134
12120
  // publish's LSP document version — not a lifecycle identity, and
12135
- // not the retired glossary spelling (AGENTS.md "session, turn or generation lifecycle").
12121
+ // not the retired glossary spelling (docs/defect-shapes.md "session, turn or
12122
+ // generation lifecycle").
12136
12123
  pubVersion: docVersion ?? "push-unversioned"
12137
12124
  }
12138
12125
  });
@@ -12760,7 +12747,7 @@ async function clientWaitForDiagnostics(state4, filePath, timeoutMs, options = {
12760
12747
  const retryBudgetMs = strategy.pullRetryBudgetMs > 0 ? Math.min(timeoutMs, strategy.pullRetryBudgetMs) : 0;
12761
12748
  const startedAt = Date.now();
12762
12749
  while (outcome.status !== "found" && Date.now() - startedAt < retryBudgetMs) {
12763
- await new Promise((resolve9) => setTimeout(resolve9, PULL_DIAGNOSTICS_RETRY_INTERVAL_MS));
12750
+ await new Promise((resolve8) => setTimeout(resolve8, PULL_DIAGNOSTICS_RETRY_INTERVAL_MS));
12764
12751
  outcome = await clientRequestPullDiagnostics(state4, filePath, Math.max(0, retryBudgetMs - (Date.now() - startedAt)));
12765
12752
  if (outcome.status === "clean")
12766
12753
  sawClean = true;
@@ -12782,7 +12769,7 @@ async function clientWaitForDiagnostics(state4, filePath, timeoutMs, options = {
12782
12769
  return;
12783
12770
  }
12784
12771
  const answerStored = () => hasFreshDiagnostics() && !isVersionStale() && (state4.pushDiagnostics.has(normalizedPath) || state4.documentPullDiagnostics.has(normalizedPath));
12785
- return new Promise((resolve9) => {
12772
+ return new Promise((resolve8) => {
12786
12773
  let debounceTimer;
12787
12774
  let settleDeferred = storedAnswerSettles();
12788
12775
  const finish = () => {
@@ -12791,7 +12778,7 @@ async function clientWaitForDiagnostics(state4, filePath, timeoutMs, options = {
12791
12778
  state4.diagnosticEmitter.off("diagnostics", onDiagnostics);
12792
12779
  state4.diagnosticEmitter.off(PENDING_RECEIPT_DROPPED, onReceiptDropped);
12793
12780
  clearTimeout(timeout);
12794
- resolve9();
12781
+ resolve8();
12795
12782
  };
12796
12783
  const onDiagnostics = (fp) => {
12797
12784
  if (normalizeMapKey(fp) !== normalizedPath)
@@ -13030,9 +13017,9 @@ function enqueueDocumentNotify(state4, normalizedPath, run, saved = false, readS
13030
13017
  queue = { running: false, active: void 0 };
13031
13018
  state4.notifyChangeQueues.set(normalizedPath, queue);
13032
13019
  }
13033
- return new Promise((resolve9, reject) => {
13020
+ return new Promise((resolve8, reject) => {
13034
13021
  if (queue.closing && !close) {
13035
- resolve9(false);
13022
+ resolve8(false);
13036
13023
  return;
13037
13024
  }
13038
13025
  const previous = queue?.pending;
@@ -13046,7 +13033,7 @@ function enqueueDocumentNotify(state4, normalizedPath, run, saved = false, readS
13046
13033
  const before = (a, b) => a !== void 0 && b !== void 0 && a < b;
13047
13034
  const stale = previous !== void 0 && (saveOnly || before(readStamp, previous.readStamp) || before(readStamp, lastSent));
13048
13035
  const heldStamp = before(previous?.readStamp, lastSent) ? void 0 : previous?.readStamp;
13049
- waiters.push({ resolve: resolve9, reject, stale });
13036
+ waiters.push({ resolve: resolve8, reject, stale });
13050
13037
  queue.pending = {
13051
13038
  run: stale ? previous.run : run,
13052
13039
  saveOnly: stale ? previous.saveOnly : saveOnly,
@@ -14278,8 +14265,8 @@ async function safeSendRequest(connection, method, params, signal, settlement, r
14278
14265
  if (signal) {
14279
14266
  tokenSource = new import_node.CancellationTokenSource();
14280
14267
  if (releaseOnAbort) {
14281
- released = new Promise((resolve9) => {
14282
- release = () => resolve9(RELEASED_ON_ABORT);
14268
+ released = new Promise((resolve8) => {
14269
+ release = () => resolve8(RELEASED_ON_ABORT);
14283
14270
  });
14284
14271
  }
14285
14272
  onAbort = () => {
@@ -14839,8 +14826,8 @@ var ClientRegistry = class {
14839
14826
  async withClientSpawnGate(operation) {
14840
14827
  const previous = this.clientSpawnGate;
14841
14828
  let release;
14842
- this.clientSpawnGate = new Promise((resolve9) => {
14843
- release = resolve9;
14829
+ this.clientSpawnGate = new Promise((resolve8) => {
14830
+ release = resolve8;
14844
14831
  });
14845
14832
  await previous;
14846
14833
  try {
@@ -16040,7 +16027,7 @@ function createLazyImport(load) {
16040
16027
  }
16041
16028
 
16042
16029
  // dist/clients/lsp-lazy.js
16043
- var lazyLsp = createLazyImport(() => import("./chunk-44X7VIKR.js"));
16030
+ var lazyLsp = createLazyImport(() => import("./chunk-2F47TQOA.js"));
16044
16031
  function warmLspService() {
16045
16032
  return lazyLsp.get();
16046
16033
  }
@@ -17354,8 +17341,8 @@ var LSPService = class _LSPService {
17354
17341
  return { outstandingMs: 0 };
17355
17342
  }
17356
17343
  let resolveSettled;
17357
- const settled = new Promise((resolve9) => {
17358
- resolveSettled = resolve9;
17344
+ const settled = new Promise((resolve8) => {
17345
+ resolveSettled = resolve8;
17359
17346
  });
17360
17347
  const token = {
17361
17348
  startedAt: Date.now(),
@@ -17568,8 +17555,8 @@ var LSPService = class _LSPService {
17568
17555
  const effectiveMaxWaitMs = hardCapMs !== void 0 ? serverBaseMs > 0 ? Math.min(serverBaseMs, hardCapMs) : hardCapMs : serverBaseMs;
17569
17556
  let knownSlowResolve;
17570
17557
  const knownSlowSentinel = /* @__PURE__ */ Symbol("lsp-client-wait-known-slow");
17571
- const knownSlow = new Promise((resolve9) => {
17572
- knownSlowResolve = () => resolve9(knownSlowSentinel);
17558
+ const knownSlow = new Promise((resolve8) => {
17559
+ knownSlowResolve = () => resolve8(knownSlowSentinel);
17573
17560
  });
17574
17561
  const noteSpawnInFlight = (serverId) => {
17575
17562
  const knownDurationMs = getSuccessfulLspSpawnDurationMs(serverId);
@@ -17660,8 +17647,8 @@ var LSPService = class _LSPService {
17660
17647
  waitResult = await Promise.race([
17661
17648
  withBudget(),
17662
17649
  knownSlow,
17663
- new Promise((resolve9) => {
17664
- waitTimer = setTimeout(() => resolve9(timeoutSentinel), effectiveMaxWaitMs);
17650
+ new Promise((resolve8) => {
17651
+ waitTimer = setTimeout(() => resolve8(timeoutSentinel), effectiveMaxWaitMs);
17665
17652
  })
17666
17653
  ]);
17667
17654
  } finally {
@@ -18818,8 +18805,8 @@ var LSPService = class _LSPService {
18818
18805
  let shared = this.firstContactWaits.get(entry.info.id);
18819
18806
  if (!shared) {
18820
18807
  let removeShutdownListener;
18821
- const shutdown = new Promise((resolve9) => {
18822
- const onShutdown = () => resolve9("shutdown");
18808
+ const shutdown = new Promise((resolve8) => {
18809
+ const onShutdown = () => resolve8("shutdown");
18823
18810
  if (this.shutdownController.signal.aborted) {
18824
18811
  onShutdown();
18825
18812
  return;
@@ -18906,8 +18893,8 @@ var LSPService = class _LSPService {
18906
18893
  };
18907
18894
  }
18908
18895
  let timer;
18909
- const timeout = new Promise((resolve9) => {
18910
- timer = setTimeout(() => resolve9(false), budgetMs);
18896
+ const timeout = new Promise((resolve8) => {
18897
+ timer = setTimeout(() => resolve8(false), budgetMs);
18911
18898
  if (typeof timer === "object" && "unref" in timer) {
18912
18899
  timer.unref?.();
18913
18900
  }
@@ -19005,8 +18992,8 @@ var LSPService = class _LSPService {
19005
18992
  const graceMs = readTsserverSyncGraceMs();
19006
18993
  const primaryClient = spawned[0].client;
19007
18994
  const syncRacer = (async () => {
19008
- await new Promise((resolve9) => {
19009
- const timer = setTimeout(resolve9, graceMs);
18995
+ await new Promise((resolve8) => {
18996
+ const timer = setTimeout(resolve8, graceMs);
19010
18997
  timer.unref?.();
19011
18998
  });
19012
18999
  const publishedAt = primaryClient.getAllDiagnostics?.().get(normalizedPath)?.ts;
@@ -20721,12 +20708,12 @@ var LSPService = class _LSPService {
20721
20708
  ms: timeoutMs,
20722
20709
  onTimeout: "undefined"
20723
20710
  }),
20724
- new Promise((resolve9) => {
20711
+ new Promise((resolve8) => {
20725
20712
  if (options.signal.aborted) {
20726
- resolve9();
20713
+ resolve8();
20727
20714
  return;
20728
20715
  }
20729
- options.signal.addEventListener("abort", () => resolve9(), {
20716
+ options.signal.addEventListener("abort", () => resolve8(), {
20730
20717
  once: true
20731
20718
  });
20732
20719
  })
@@ -20755,10 +20742,10 @@ var LSPService = class _LSPService {
20755
20742
  if (failedServerIds.length > 0 && !options.signal?.aborted) {
20756
20743
  const backoffMs = warmupRetryBackoffMs();
20757
20744
  if (backoffMs > 0) {
20758
- await new Promise((resolve9) => {
20759
- const timer = setTimeout(resolve9, backoffMs);
20745
+ await new Promise((resolve8) => {
20746
+ const timer = setTimeout(resolve8, backoffMs);
20760
20747
  timer.unref?.();
20761
- options.signal?.addEventListener("abort", () => resolve9(), {
20748
+ options.signal?.addEventListener("abort", () => resolve8(), {
20762
20749
  once: true
20763
20750
  });
20764
20751
  });
@@ -20946,12 +20933,12 @@ var LSPService = class _LSPService {
20946
20933
  })(), { ms: perFileMs, onTimeout: "undefined" });
20947
20934
  await (signal ? Promise.race([
20948
20935
  preOpenAttempt,
20949
- new Promise((resolve9) => {
20936
+ new Promise((resolve8) => {
20950
20937
  if (signal.aborted) {
20951
- resolve9();
20938
+ resolve8();
20952
20939
  return;
20953
20940
  }
20954
- signal.addEventListener("abort", () => resolve9(), {
20941
+ signal.addEventListener("abort", () => resolve8(), {
20955
20942
  once: true
20956
20943
  });
20957
20944
  })
@@ -2,31 +2,31 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
2
2
  import {
3
3
  firstOutputLine,
4
4
  spawnFailedWithNoOutput
5
- } from "./chunk-T4NGVFYI.js";
5
+ } from "./chunk-2X4VLOCC.js";
6
6
  import {
7
7
  SecurityScanClient
8
- } from "./chunk-QT66NEYN.js";
8
+ } from "./chunk-3MYEA7QD.js";
9
9
  import {
10
10
  probeToolAsync
11
- } from "./chunk-XI34NWDI.js";
11
+ } from "./chunk-ARD426WI.js";
12
12
  import {
13
13
  INSTALL_TRANSIENT_MAX_ATTEMPTS,
14
14
  classifyProbeFailure,
15
15
  describeProbeEvidence,
16
16
  logAvailabilityDecision,
17
17
  startHostStallSampler
18
- } from "./chunk-5LRUKYFA.js";
18
+ } from "./chunk-5APMQ2IJ.js";
19
19
  import {
20
20
  isUntrustedProjectPath,
21
21
  recordProjectCommandRefusal,
22
22
  safeSpawnAsync
23
- } from "./chunk-TPYYEDP5.js";
23
+ } from "./chunk-Q3UZHW6N.js";
24
24
  import {
25
25
  assertInstallAllowed
26
- } from "./chunk-EIKRZ32J.js";
26
+ } from "./chunk-MN7MHUXQ.js";
27
27
  import {
28
28
  recordDegradationOnce
29
- } from "./chunk-FWZRGGGY.js";
29
+ } from "./chunk-ZQ6NZZTB.js";
30
30
 
31
31
  // dist/clients/govulncheck-client.js
32
32
  import * as fs from "node:fs";
@@ -1,17 +1,17 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  extractFactsFromTree
4
- } from "./chunk-G224FADB.js";
4
+ } from "./chunk-OOU2WZZE.js";
5
5
  import {
6
6
  findOwnerName
7
7
  } from "./chunk-5W3R6LFT.js";
8
8
  import {
9
9
  firstChildOfType,
10
10
  walk
11
- } from "./chunk-YWWG4AQA.js";
11
+ } from "./chunk-GAACZY6R.js";
12
12
  import {
13
13
  isJstsFactFile
14
- } from "./chunk-GYRZ72R4.js";
14
+ } from "./chunk-RZOXUSPC.js";
15
15
 
16
16
  // dist/clients/dispatch/facts/function-facts.js
17
17
  var BOUNDARY_PREFIXES = [