pi-lens 4.5.1 → 4.5.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 (139) hide show
  1. package/CHANGELOG-USER.md +6 -6
  2. package/CHANGELOG.md +121 -0
  3. package/README.md +9 -2
  4. package/dist/{chunk-ZVQUYCBU.js → chunk-2ERVW2UF.js} +161 -100
  5. package/dist/{chunk-AFSG6YUB.js → chunk-2K7BUOKS.js} +13 -13
  6. package/dist/{chunk-BJGWP4UX.js → chunk-3JJ4OAJI.js} +10 -10
  7. package/dist/{chunk-GIK6VUCY.js → chunk-3UHGSUVL.js} +1 -1
  8. package/dist/{chunk-EKQDQPX6.js → chunk-463WN3VP.js} +1 -1
  9. package/dist/{chunk-F7BFIENK.js → chunk-4X3ML2UQ.js} +29 -32
  10. package/dist/{chunk-7JMEPY6P.js → chunk-5BI5YP57.js} +10 -10
  11. package/dist/{chunk-MKW7ZUTT.js → chunk-5Z4XLUFF.js} +3 -3
  12. package/dist/{chunk-NIZKGBOU.js → chunk-62AJH3IN.js} +12 -14
  13. package/dist/{chunk-4GLSO2EM.js → chunk-6F34GMP7.js} +12 -12
  14. package/dist/{chunk-35UJUF27.js → chunk-6LIUVGOR.js} +13 -3
  15. package/dist/{chunk-WJ7GY5WJ.js → chunk-6REF4GCO.js} +1 -1
  16. package/dist/{chunk-HFIFEH46.js → chunk-7KRR24GO.js} +3 -3
  17. package/dist/{chunk-WAK2AXQQ.js → chunk-7OMOMBEQ.js} +9 -9
  18. package/dist/{chunk-S7KUDW73.js → chunk-7ZFXICNN.js} +15 -15
  19. package/dist/{chunk-VEF3GFOL.js → chunk-ABKRQVOY.js} +28 -52
  20. package/dist/{chunk-Y2LIOCA7.js → chunk-ANSLRJBG.js} +1 -1
  21. package/dist/{chunk-ARTCVE6I.js → chunk-AWMFBPGJ.js} +9 -9
  22. package/dist/{chunk-H6DNTQ4V.js → chunk-BG7KHGNX.js} +2 -2
  23. package/dist/{chunk-FD4LJQ6Y.js → chunk-BK2R2223.js} +10 -8
  24. package/dist/{chunk-TWAQFMLW.js → chunk-BXXC6KRR.js} +31 -34
  25. package/dist/{chunk-S247BOH2.js → chunk-CKJS2AUI.js} +4 -4
  26. package/dist/{chunk-GNK2IHVG.js → chunk-COGU5KQJ.js} +15 -15
  27. package/dist/{chunk-P7EV5ISR.js → chunk-CQNXALZJ.js} +12 -6
  28. package/dist/{chunk-IO6P3NBP.js → chunk-CSZESDPP.js} +1 -1
  29. package/dist/chunk-CZ5TCJPB.js +98 -0
  30. package/dist/{chunk-DLGJYQML.js → chunk-D2LFEA5U.js} +9 -2
  31. package/dist/chunk-D3KLF5CD.js +50 -0
  32. package/dist/{chunk-W2JPGW7Q.js → chunk-ENJ2M76Y.js} +20 -20
  33. package/dist/{chunk-2DWNYVUN.js → chunk-EQKF6BAK.js} +3 -3
  34. package/dist/{chunk-KIQSNH3F.js → chunk-F2SAP2FM.js} +38 -45
  35. package/dist/{chunk-BYIEU4E4.js → chunk-F6QAJXQV.js} +2 -2
  36. package/dist/chunk-GR2QDWH5.js +25 -0
  37. package/dist/{chunk-T2D2WWP6.js → chunk-GVE5VZYQ.js} +5 -5
  38. package/dist/{chunk-HMXWZUQW.js → chunk-GWZZOJD2.js} +1 -1
  39. package/dist/chunk-GZS6VPIE.js +27 -0
  40. package/dist/chunk-H4B4SC7I.js +71 -0
  41. package/dist/{chunk-2RQREVGO.js → chunk-HA6TUJOE.js} +1 -1
  42. package/dist/{chunk-NAACKIKT.js → chunk-HKPJTI47.js} +2 -2
  43. package/dist/{chunk-NHHS5T52.js → chunk-HPKC55MA.js} +1 -1
  44. package/dist/{chunk-B2QO7GHY.js → chunk-I65CQLCG.js} +1 -1
  45. package/dist/{chunk-BQ72NQQM.js → chunk-IDKLWVKY.js} +11 -11
  46. package/dist/chunk-IUM2Q7NF.js +25 -0
  47. package/dist/{chunk-PVV27TOX.js → chunk-J24IS3KZ.js} +5 -5
  48. package/dist/{chunk-DKXIUGNA.js → chunk-J2DAHH4T.js} +2 -2
  49. package/dist/{chunk-CDAJQBKJ.js → chunk-JBDZVOFL.js} +11 -11
  50. package/dist/{chunk-T7KHGEJ5.js → chunk-JC6NFC57.js} +3 -3
  51. package/dist/{chunk-BWGNVM33.js → chunk-JTHEUTW7.js} +11 -11
  52. package/dist/{chunk-WWZLT6AM.js → chunk-JWW3ODBN.js} +2 -2
  53. package/dist/{chunk-Q32RJDYC.js → chunk-K3ZIYLHT.js} +4 -4
  54. package/dist/{chunk-LDPY22FS.js → chunk-KDPZA2UE.js} +2 -3
  55. package/dist/{chunk-YIEHUKX2.js → chunk-KMY2OU4T.js} +489 -285
  56. package/dist/{chunk-WH6O4IFD.js → chunk-KQF7VT26.js} +10 -10
  57. package/dist/{chunk-OG3UCAHV.js → chunk-KVGA7X76.js} +3 -3
  58. package/dist/{chunk-TABDCX35.js → chunk-KW7O72AK.js} +2 -2
  59. package/dist/{chunk-AOEVZXR6.js → chunk-LEQTVRSV.js} +9 -9
  60. package/dist/{chunk-7BWPQZHE.js → chunk-LKPSBM6S.js} +3 -3
  61. package/dist/{chunk-WA6U2URH.js → chunk-LKW2HFSZ.js} +6 -6
  62. package/dist/{chunk-M3QGXGY4.js → chunk-LURFD4HD.js} +624 -97
  63. package/dist/{chunk-2YQ5LI7R.js → chunk-M6ELTECW.js} +4 -4
  64. package/dist/{chunk-OHTHVILU.js → chunk-MGVVYYKW.js} +12 -12
  65. package/dist/{chunk-W2YHHNY3.js → chunk-MQBKGRSB.js} +7 -7
  66. package/dist/{chunk-MET776XM.js → chunk-MVG2ZEAO.js} +6 -6
  67. package/dist/{chunk-2XALJI2K.js → chunk-MY4XNNTX.js} +39 -41
  68. package/dist/{chunk-GFCPPCNR.js → chunk-N4AJVFRF.js} +11 -11
  69. package/dist/{chunk-UARVPNAU.js → chunk-OFKKMXWM.js} +31 -36
  70. package/dist/{chunk-DHFJS2I4.js → chunk-OFZE4ANN.js} +8 -8
  71. package/dist/chunk-OLXBUTJR.js +61 -0
  72. package/dist/{chunk-SJ2SR432.js → chunk-OZGEHOSG.js} +38 -17
  73. package/dist/{chunk-6MDWNZ7E.js → chunk-PKGOROPQ.js} +40 -2
  74. package/dist/{chunk-3IWMNN2S.js → chunk-Q6D5QKRG.js} +17 -17
  75. package/dist/{chunk-JGCBMCCS.js → chunk-QECLJFHI.js} +12 -17
  76. package/dist/{chunk-KXKM2DFP.js → chunk-QJA33VD5.js} +4 -4
  77. package/dist/{chunk-YV7XVYSJ.js → chunk-R5XVJ6AN.js} +11 -11
  78. package/dist/{chunk-62PIU4TO.js → chunk-REZL4OM4.js} +1 -1
  79. package/dist/{chunk-NNDZ7DOP.js → chunk-RK5RBREN.js} +74 -107
  80. package/dist/chunk-RP5ZQTHO.js +86 -0
  81. package/dist/{chunk-HKRESBMC.js → chunk-RURPX2YV.js} +23 -23
  82. package/dist/chunk-TB5MGZLS.js +53 -0
  83. package/dist/chunk-TC63XRYP.js +27 -0
  84. package/dist/chunk-TJOYHAXJ.js +69 -0
  85. package/dist/{chunk-NZ7NSKIW.js → chunk-TRXKDCBP.js} +13 -13
  86. package/dist/{chunk-7WAQ3K26.js → chunk-TTK37D7R.js} +22 -23
  87. package/dist/{chunk-ALTHJUZO.js → chunk-UH3QHLR5.js} +2 -2
  88. package/dist/{chunk-6MZLS6CK.js → chunk-UNTJJ7GN.js} +7 -7
  89. package/dist/{chunk-XRLZ75YY.js → chunk-UPAFSETJ.js} +54 -59
  90. package/dist/{chunk-N2U644ZW.js → chunk-UX75PTQW.js} +50 -17
  91. package/dist/{chunk-EXHSWN3P.js → chunk-V353PYMK.js} +423 -233
  92. package/dist/{chunk-SL4G67AP.js → chunk-V4TFQY5G.js} +2 -2
  93. package/dist/{chunk-YOMLAKU6.js → chunk-VC3W54G3.js} +289 -138
  94. package/dist/{chunk-KSQJBGRO.js → chunk-VSBCJVPC.js} +5 -5
  95. package/dist/{chunk-EBXCYEII.js → chunk-WAQQGXVV.js} +3 -3
  96. package/dist/{chunk-7ORBRDFY.js → chunk-WLEVWR7Y.js} +2 -2
  97. package/dist/{chunk-Q4UQNTLB.js → chunk-WPMPVP5I.js} +4 -4
  98. package/dist/{chunk-TQKWR5AZ.js → chunk-WXNLFOC2.js} +7 -7
  99. package/dist/{chunk-HOWHAKXO.js → chunk-Y3ZNOZZS.js} +6 -6
  100. package/dist/{chunk-DNJJVKJZ.js → chunk-YL6JQTWC.js} +29 -32
  101. package/dist/{chunk-HUWW77QY.js → chunk-YVE5Q2UU.js} +86 -217
  102. package/dist/{chunk-25CAONWT.js → chunk-YZNARDMM.js} +12 -9
  103. package/dist/{chunk-HERQPNY6.js → chunk-ZDWNFZJ2.js} +8 -8
  104. package/dist/{chunk-MKQFSW2Q.js → chunk-ZEUF7BIN.js} +2 -2
  105. package/dist/{chunk-AB26NAHA.js → chunk-ZIF4WLWR.js} +45 -25
  106. package/dist/{chunk-6MWX2J5H.js → chunk-ZSPVF7KI.js} +227 -24
  107. package/dist/{chunk-QQGZY2BR.js → chunk-ZX6OKBVO.js} +2 -2
  108. package/dist/index.js +6455 -5243
  109. package/dist/mcp/analyze-cli.js +8 -8
  110. package/dist/mcp/cli.js +39 -41
  111. package/dist/mcp/server.js +870 -559
  112. package/dist/mcp/worker.js +68 -59
  113. package/dist/probes/installer.js +19 -20
  114. package/docs/configuration.md +24 -10
  115. package/docs/defect-shapes.md +18 -2
  116. package/docs/environment-variables.md +18 -9
  117. package/docs/globalconfig.md +16 -0
  118. package/docs/invariants/dispatch-runners.md +7 -0
  119. package/docs/invariants/lsp-trust-exec.md +33 -3
  120. package/docs/lsp-capability-matrix.md +23 -10
  121. package/docs/lsp-idle-eviction.md +8 -3
  122. package/docs/release-qa-baseline.md +22 -17
  123. package/docs/servercapabilities.md +1 -1
  124. package/docs/settings.md +9 -2
  125. package/docs/tools.md +1 -1
  126. package/package.json +3 -3
  127. package/dist/chunk-3UTDLQWO.js +0 -88
  128. package/dist/chunk-3Z7Z3B7V.js +0 -27
  129. package/dist/chunk-4E4OCW3L.js +0 -38
  130. package/dist/chunk-5HVDD7IA.js +0 -17
  131. package/dist/chunk-BKJ6WZKP.js +0 -255
  132. package/dist/chunk-D3UQWOCB.js +0 -46
  133. package/dist/chunk-EH6EHFW2.js +0 -73
  134. package/dist/chunk-J7VNGHLN.js +0 -69
  135. package/dist/chunk-L3Q72QGQ.js +0 -25
  136. package/dist/chunk-TFSBHRL2.js +0 -25
  137. package/dist/chunk-UWBD3JMH.js +0 -56
  138. package/dist/chunk-XWWFESYZ.js +0 -27
  139. package/dist/chunk-XZSXSM4K.js +0 -27
@@ -2,23 +2,21 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
2
2
  import {
3
3
  COLLECT_LATER_THRESHOLD_MS,
4
4
  classifyObservedRunner,
5
- getLazyInstallAttempt,
6
5
  holdFlight,
7
6
  observeRunnerLatency,
8
7
  runCollectLater,
9
- runnerFlightKey,
10
- tryLazyInstall
11
- } from "./chunk-BKJ6WZKP.js";
8
+ runnerFlightKey
9
+ } from "./chunk-CZ5TCJPB.js";
12
10
  import {
13
11
  computeImpactCascade
14
- } from "./chunk-T7KHGEJ5.js";
12
+ } from "./chunk-JC6NFC57.js";
15
13
  import {
16
14
  goClient
17
- } from "./chunk-7ORBRDFY.js";
15
+ } from "./chunk-WLEVWR7Y.js";
18
16
  import {
19
17
  isTrivyEnabled,
20
18
  resolveSeverityFloor
21
- } from "./chunk-W2YHHNY3.js";
19
+ } from "./chunk-MQBKGRSB.js";
22
20
  import {
23
21
  faultIfCutShort,
24
22
  finishParsedRun,
@@ -28,10 +26,10 @@ import {
28
26
  skipUnlessToolRan,
29
27
  spawnFailedWithNoOutput,
30
28
  spawnTimedOut
31
- } from "./chunk-QQGZY2BR.js";
29
+ } from "./chunk-ZX6OKBVO.js";
32
30
  import {
33
31
  rustClient
34
- } from "./chunk-ALTHJUZO.js";
32
+ } from "./chunk-UH3QHLR5.js";
35
33
  import {
36
34
  biomeConfigArgs,
37
35
  coveringLaneAvailable,
@@ -46,7 +44,6 @@ import {
46
44
  markdownlintConfigArgs,
47
45
  optionSafeTargetArg,
48
46
  resolveAdoptedRootCommand,
49
- resolveLocalFirstAsync,
50
47
  resolveRubocopCommand,
51
48
  resolveRunnerCwd as resolveRunnerCwd2,
52
49
  resolveToolCommand,
@@ -55,24 +52,25 @@ import {
55
52
  ruffConfigArgs,
56
53
  toolAbsentSkip,
57
54
  toolBinaryVerdict
58
- } from "./chunk-NNDZ7DOP.js";
55
+ } from "./chunk-RK5RBREN.js";
59
56
  import {
60
57
  importFactProvider
61
- } from "./chunk-Q32RJDYC.js";
58
+ } from "./chunk-K3ZIYLHT.js";
62
59
  import {
63
60
  functionFactProvider
64
- } from "./chunk-2YQ5LI7R.js";
61
+ } from "./chunk-M6ELTECW.js";
65
62
  import {
66
63
  extractFactsFromTree
67
- } from "./chunk-IO6P3NBP.js";
64
+ } from "./chunk-CSZESDPP.js";
68
65
  import {
69
66
  buildOrUpdateGraph,
70
67
  clearReviewGraphWorkspaceCache,
71
68
  fileContentProvider
72
- } from "./chunk-W2JPGW7Q.js";
69
+ } from "./chunk-ENJ2M76Y.js";
73
70
  import {
74
71
  MAX_BLOCKING_RULE_COMPLEXITY,
75
72
  PRIMARY_UNAVAILABLE_CAUSE,
73
+ TOUCH_INCONCLUSIVE_REASON_PHRASE,
76
74
  applyDispositions,
77
75
  applyDispositionsMultiFile,
78
76
  buildEffectiveAstGrepCatalog,
@@ -90,6 +88,7 @@ import {
90
88
  hasAnyDispositionMarks,
91
89
  hasAuxiliaryLspPublishedForRoot,
92
90
  hasPendingAuxiliaryCoverage,
91
+ isCrossFileBlocker,
93
92
  isOverlyBroadPattern,
94
93
  isRuleIgnoredForPath,
95
94
  isStructuredRule,
@@ -106,13 +105,13 @@ import {
106
105
  tryWarmAttachedCodeActions,
107
106
  tryWarmAttachedDiagnostics,
108
107
  warmAnswerBinding
109
- } from "./chunk-EXHSWN3P.js";
108
+ } from "./chunk-V353PYMK.js";
110
109
  import {
111
110
  ANY_POSITION,
112
111
  displayedMessage,
113
112
  hashText,
114
113
  retainRecordedFindings
115
- } from "./chunk-35UJUF27.js";
114
+ } from "./chunk-6LIUVGOR.js";
116
115
  import {
117
116
  mapWithConcurrency
118
117
  } from "./chunk-XIMYZ3JA.js";
@@ -128,7 +127,7 @@ import {
128
127
  resolveSessionConfigRoot,
129
128
  resolveShellFileDialect,
130
129
  runnerIdentityPopulated
131
- } from "./chunk-YIEHUKX2.js";
130
+ } from "./chunk-KMY2OU4T.js";
132
131
  import {
133
132
  augmentPythonEnvironment,
134
133
  describePythonCompileWithheld,
@@ -136,21 +135,19 @@ import {
136
135
  detectPythonTargetVersion,
137
136
  emitBounded,
138
137
  partitionOutrankedPythonCompileVerdicts,
139
- recordPythonCompileVerdictDrop
140
- } from "./chunk-AB26NAHA.js";
141
- import {
138
+ recordPythonCompileVerdictDrop,
142
139
  scannerReportParentDir
143
- } from "./chunk-5HVDD7IA.js";
140
+ } from "./chunk-ZIF4WLWR.js";
144
141
  import {
145
142
  RUNTIME_CONFIG,
146
143
  exceedsLspSyncLimits,
147
144
  getRunnerTimeoutFloorMs,
148
145
  loadAstGrepNapi
149
- } from "./chunk-S7KUDW73.js";
146
+ } from "./chunk-7ZFXICNN.js";
150
147
  import {
151
148
  buildModuleGraph,
152
149
  clearModuleGraphCache
153
- } from "./chunk-KSQJBGRO.js";
150
+ } from "./chunk-VSBCJVPC.js";
154
151
  import {
155
152
  BUNDLED_QUERIES_ROOT,
156
153
  classifyTreeSitterWasmError,
@@ -170,17 +167,17 @@ import {
170
167
  ruleFilesForLanguage,
171
168
  ruleSourceLanguages,
172
169
  walk
173
- } from "./chunk-4GLSO2EM.js";
170
+ } from "./chunk-6F34GMP7.js";
174
171
  import {
175
172
  js_yaml_default,
176
173
  resolvePackagePath
177
- } from "./chunk-2DWNYVUN.js";
174
+ } from "./chunk-EQKF6BAK.js";
178
175
  import {
179
176
  stripAnsi
180
177
  } from "./chunk-6HWVI6MI.js";
181
178
  import {
182
179
  loadProjectSnapshot
183
- } from "./chunk-MET776XM.js";
180
+ } from "./chunk-MVG2ZEAO.js";
184
181
  import {
185
182
  WORD_INDEX_MAX_BYTES,
186
183
  deserializeWordIndex,
@@ -189,14 +186,14 @@ import {
189
186
  scheduleWordIndexPersist,
190
187
  setWordIndexPublishedListener,
191
188
  updateWordIndexDocumentForEdit
192
- } from "./chunk-BQ72NQQM.js";
189
+ } from "./chunk-IDKLWVKY.js";
193
190
  import {
194
191
  isTypeScriptFile
195
- } from "./chunk-NAACKIKT.js";
192
+ } from "./chunk-HKPJTI47.js";
196
193
  import {
197
194
  WARM_CODE_ACTION_LOOKUP_LIMIT,
198
195
  contentHash
199
- } from "./chunk-6MDWNZ7E.js";
196
+ } from "./chunk-PKGOROPQ.js";
200
197
  import {
201
198
  IN_FLIGHT_REASON,
202
199
  NO_ANALYZER_REASON,
@@ -222,10 +219,10 @@ import {
222
219
  import {
223
220
  resolveRunnerPath,
224
221
  toRunnerDisplayPath
225
- } from "./chunk-62PIU4TO.js";
222
+ } from "./chunk-REZL4OM4.js";
226
223
  import {
227
224
  isSpawnableCommand
228
- } from "./chunk-YOMLAKU6.js";
225
+ } from "./chunk-VC3W54G3.js";
229
226
  import {
230
227
  configCeiling,
231
228
  findCommandOnPath,
@@ -235,30 +232,30 @@ import {
235
232
  readFileContent,
236
233
  resolveRunnerCwd,
237
234
  resolveRunnerCwdWithReason
238
- } from "./chunk-T2D2WWP6.js";
235
+ } from "./chunk-GVE5VZYQ.js";
239
236
  import {
237
+ findGlobalBinary,
240
238
  findLocalBinUpwards,
241
239
  isLocalBinTrustRefusal,
242
240
  localBinPath
243
- } from "./chunk-25CAONWT.js";
241
+ } from "./chunk-YZNARDMM.js";
244
242
  import {
245
243
  getIsolatedNpxSpawnOptions,
246
244
  probeToolAsync
247
- } from "./chunk-WWZLT6AM.js";
245
+ } from "./chunk-JWW3ODBN.js";
248
246
  import {
249
247
  classifyProbeFailure,
250
248
  createAvailabilityLatch,
251
- describeInstallAttempt,
252
249
  describeUnavailability,
253
250
  isLatchingOutcome,
254
251
  logAvailabilityDecision,
255
252
  startHostStallSampler
256
- } from "./chunk-LDPY22FS.js";
253
+ } from "./chunk-KDPZA2UE.js";
257
254
  import {
258
255
  getLspCapableKinds,
259
256
  getPrimaryDispatchGroup,
260
257
  resolveLanguageRootForFile
261
- } from "./chunk-HOWHAKXO.js";
258
+ } from "./chunk-Y3ZNOZZS.js";
262
259
  import {
263
260
  readJsonCache,
264
261
  readJsonCacheAsync
@@ -273,7 +270,7 @@ import {
273
270
  realIsPidAlive,
274
271
  resolvePiLensFlag,
275
272
  safeSpawnAsync
276
- } from "./chunk-M3QGXGY4.js";
273
+ } from "./chunk-LURFD4HD.js";
277
274
  import {
278
275
  PathKeyedMap,
279
276
  boundedKeyLabel,
@@ -285,17 +282,18 @@ import {
285
282
  reportPiLensConfigRecords,
286
283
  resolveOnePiLensConfigDocument,
287
284
  resolvePiLensConfig
288
- } from "./chunk-N2U644ZW.js";
285
+ } from "./chunk-UX75PTQW.js";
289
286
  import {
290
287
  DOTNET_CSHARP_PROJECT_MARKERS,
291
288
  DOTNET_CSHARP_SOLUTION_MARKERS,
292
289
  detectFileKind,
293
290
  isJstsFactFile
294
- } from "./chunk-SL4G67AP.js";
291
+ } from "./chunk-V4TFQY5G.js";
295
292
  import {
296
293
  findNearestDirWithMarker,
297
- getPiLensGlobalConfigPath
298
- } from "./chunk-DLGJYQML.js";
294
+ getPiLensGlobalConfigPath,
295
+ holdsCanonicalProjectConfig
296
+ } from "./chunk-D2LFEA5U.js";
299
297
  import {
300
298
  getProjectTrustState,
301
299
  killedForOutputCap,
@@ -303,14 +301,14 @@ import {
303
301
  truncatedByOutputCap,
304
302
  withBudget,
305
303
  writeFileAtomic
306
- } from "./chunk-EKQDQPX6.js";
304
+ } from "./chunk-463WN3VP.js";
307
305
  import {
308
306
  createSubsystemLogger,
309
307
  incrementDegradationCount,
310
308
  logExtension,
311
309
  recordDegradationOnce,
312
310
  spawnCooldownScope
313
- } from "./chunk-P7EV5ISR.js";
311
+ } from "./chunk-CQNXALZJ.js";
314
312
  import {
315
313
  createNdjsonLogger,
316
314
  getGlobalPiLensLogDir,
@@ -320,11 +318,11 @@ import {
320
318
  nonNegativeIntEnv,
321
319
  phaseFinished,
322
320
  phaseStarted
323
- } from "./chunk-HUWW77QY.js";
321
+ } from "./chunk-YVE5Q2UU.js";
324
322
  import {
325
323
  FactStore,
326
324
  setFactStoreEvictionReporter
327
- } from "./chunk-NHHS5T52.js";
325
+ } from "./chunk-HPKC55MA.js";
328
326
  import {
329
327
  BoundedFifoMap,
330
328
  BoundedLruCache,
@@ -334,6 +332,7 @@ import {
334
332
  isWindowsPath,
335
333
  isWithinIdentity,
336
334
  normalizeEphemeralMapKey,
335
+ normalizeFilePath,
337
336
  normalizeLoggedPath,
338
337
  normalizeMapKey,
339
338
  pathsEqual,
@@ -342,7 +341,7 @@ import {
342
341
  resolveHostToolPath,
343
342
  toPosix,
344
343
  toProjectRelativePath
345
- } from "./chunk-6MWX2J5H.js";
344
+ } from "./chunk-ZSPVF7KI.js";
346
345
 
347
346
  // dist/clients/mcp/analyze.js
348
347
  import * as fs16 from "node:fs";
@@ -1226,7 +1225,8 @@ function resolveDispatchPolicyConfig(root) {
1226
1225
  return resolvePiLensConfig({
1227
1226
  cwd: root,
1228
1227
  globalDir: getGlobalPiLensDir(),
1229
- globalConfigPath: getPiLensGlobalConfigPath()
1228
+ globalConfigPath: getPiLensGlobalConfigPath(),
1229
+ excludeLegacyProjectDocuments: holdsCanonicalProjectConfig(root)
1230
1230
  });
1231
1231
  }
1232
1232
  function configOwnerFor(filePath, root) {
@@ -1264,8 +1264,7 @@ function anchoredIgnorePaths(documents, root) {
1264
1264
  const rules2 = resolveOnePiLensConfigDocument(document).value.rules;
1265
1265
  if (!rules2 || typeof rules2 !== "object" || Array.isArray(rules2))
1266
1266
  continue;
1267
- const prefix = document.tier === "global" ? void 0 : anchorPrefix(document, root);
1268
- const baseDir = prefix ? nodePath.resolve(root, prefix) : root;
1267
+ const baseDir = document.tier === "global" ? root : ignoreBaseDir(document, root);
1269
1268
  for (const [key, rawEntry] of Object.entries(rules2)) {
1270
1269
  const ignorePaths = rawEntry?.ignorePaths;
1271
1270
  if (!Array.isArray(ignorePaths))
@@ -1282,15 +1281,19 @@ function anchoredIgnorePaths(documents, root) {
1282
1281
  }
1283
1282
  return byKey;
1284
1283
  }
1285
- function anchorPrefix(document, root) {
1284
+ function ignoreBaseDir(document, root) {
1286
1285
  const pathApi = isWindowsPath(root) || isWindowsPath(document.file) ? nodePath.win32 : nodePath.posix;
1287
1286
  let dir = document.file;
1288
1287
  for (const _segment of document.location.relativePath.split("/")) {
1289
1288
  dir = pathApi.dirname(dir);
1290
1289
  }
1291
- if (pathsEqual(dir, root) || !isUnderDir(dir, root))
1292
- return void 0;
1293
- return toProjectRelativePath(dir, root);
1290
+ if (pathsEqual(dir, root))
1291
+ return root;
1292
+ if (isUnderDir(dir, root)) {
1293
+ return nodePath.resolve(root, toProjectRelativePath(dir, root));
1294
+ }
1295
+ const above = pathApi.resolve(root, pathApi.relative(normalizeFilePath(root), dir));
1296
+ return pathsEqual(above, dir) ? above : root;
1294
1297
  }
1295
1298
  function projectRulePolicy(root, known) {
1296
1299
  const ownerByDir = /* @__PURE__ */ new Map();
@@ -1557,7 +1560,8 @@ function filterDisposed(diagnostics, options) {
1557
1560
  ...diagnostic.line !== void 0 && { line: diagnostic.line },
1558
1561
  ...diagnostic.semantic !== void 0 && {
1559
1562
  semantic: diagnostic.semantic
1560
- }
1563
+ },
1564
+ finding: diagnostic
1561
1565
  }
1562
1566
  })));
1563
1567
  const survivors = new Set(applyDispositions(expanded.map((entry) => entry.candidate), options.cwd, options.filePath, options.content));
@@ -1696,7 +1700,8 @@ function filterFindingsByDisposition(findings, cwd, toDiagnostic3) {
1696
1700
  semantic: diagnostic.semantic
1697
1701
  },
1698
1702
  ...identity.tool !== void 0 && { tool: identity.tool },
1699
- ...identity.rule !== void 0 && { rule: identity.rule }
1703
+ ...identity.rule !== void 0 && { rule: identity.rule },
1704
+ finding: diagnostic
1700
1705
  }
1701
1706
  }));
1702
1707
  });
@@ -2343,12 +2348,16 @@ var EMOJI = {
2343
2348
  silent: "\u{1F4CA}",
2344
2349
  none: ""
2345
2350
  };
2346
- function formatDiagnostic(d) {
2351
+ function crossFileRowLabel(d, editedFile, root) {
2352
+ return editedFile !== void 0 && isCrossFileBlocker(d, editedFile, root) ? `${d.filePath} ` : "";
2353
+ }
2354
+ function formatDiagnostic(d, renderedFor) {
2347
2355
  const line = d.line ? `L${d.line}: ` : "";
2348
2356
  const indented = d.message.split("\n").join("\n ");
2349
2357
  const fix = d.fixSuggestion ? `
2350
2358
  \u{1F4A1} Fix: ${d.fixSuggestion}` : "";
2351
- return ` ${line}${indented}${fix}`;
2359
+ const label = renderedFor ? crossFileRowLabel(d, renderedFor.editedFile, renderedFor.root) : "";
2360
+ return ` ${label}${line}${indented}${fix}`;
2352
2361
  }
2353
2362
  var DELTA_UNUSED_PROMOTION_NOTE = "new in this edit \u2192 blocks in delta mode; pre-existing unused declarations only advise.";
2354
2363
  function formatPromotionNotes(diagnostics) {
@@ -2362,7 +2371,7 @@ function formatPromotionNotes(diagnostics) {
2362
2371
  return [...notes].map((note) => ` \u2139\uFE0F ${note}
2363
2372
  `).join("");
2364
2373
  }
2365
- function formatDiagnostics(diagnostics, semantic, maxDisplay = 10) {
2374
+ function formatDiagnostics(diagnostics, semantic, maxDisplay = 10, renderedFor) {
2366
2375
  if (diagnostics.length === 0)
2367
2376
  return "";
2368
2377
  const emoji = EMOJI[semantic] ?? EMOJI.warning;
@@ -2381,7 +2390,7 @@ ${emoji} Auto-fixed ${diagnostics.length} issue(s):
2381
2390
  `;
2382
2391
  }
2383
2392
  for (const d of diagnostics.slice(0, maxDisplay)) {
2384
- output += `${formatDiagnostic(d)}
2393
+ output += `${formatDiagnostic(d, renderedFor)}
2385
2394
  `;
2386
2395
  }
2387
2396
  if (diagnostics.length > maxDisplay) {
@@ -2698,6 +2707,16 @@ function buildCoverageNotice(ctx, runnerLatencies, dedupe) {
2698
2707
  const unconfirmedServerIds = [
2699
2708
  ...new Set(relevant.flatMap((r) => r.unconfirmedServerIds ?? []))
2700
2709
  ];
2710
+ const inconclusiveDetails = [
2711
+ ...new Set(relevant.flatMap((r) => {
2712
+ if (r.inconclusiveReason === void 0 || r.inconclusiveReason === "primary-unavailable")
2713
+ return [];
2714
+ const ids = r.unconfirmedServerIds ?? [];
2715
+ const subject = ids.length > 0 ? `${ids.join(", ")}: ` : "";
2716
+ const cause2 = TOUCH_INCONCLUSIVE_REASON_PHRASE[r.inconclusiveReason];
2717
+ return [`${subject}${cause2}`];
2718
+ }))
2719
+ ];
2701
2720
  if (unconfirmedServerIds.length > 0) {
2702
2721
  const deferredIds = new Set(relevant.flatMap((r) => r.deferredServerIds ?? []));
2703
2722
  const markerFor = (ids) => {
@@ -2727,6 +2746,9 @@ function buildCoverageNotice(ctx, runnerLatencies, dedupe) {
2727
2746
  if (silentServerIds.length > 0) {
2728
2747
  coverageParts.push(`coverage: ${markerFor(silentServerIds)} silent \u2014 diagnostics are incomplete (not a clean result).`);
2729
2748
  }
2749
+ if (inconclusiveDetails.length > 0) {
2750
+ coverageParts.push(`cause: ${inconclusiveDetails.join("; ")}.`);
2751
+ }
2730
2752
  return {
2731
2753
  notice: {
2732
2754
  id: `coverage-partial:${ctx.kind}:${path4.basename(ctx.filePath)}`,
@@ -2781,7 +2803,8 @@ function buildCoverageNotice(ctx, runnerLatencies, dedupe) {
2781
2803
  const statedCauses = causesOf(statedRows);
2782
2804
  const everyRowStated = statedRows.length === relevant.length;
2783
2805
  const unexplainedCauses = causesOf(statedRows.filter((r) => !isNotApplicableSkipReason(r.skipReason)));
2784
- const unavailableReason = cause ? `no primary language server answered (${PRIMARY_UNAVAILABLE_CAUSE[cause]})${deniedRunnerIds.length > 0 ? `; ${deniedNote}` : ""}` : deniedRunnerIds.length > 0 ? onlySwitchedOff ? `not checked (${deniedNote})` : `not fully checked (a language tool is missing, timed out, or failed to run; ${deniedNote})` : everyRowStated ? `not checked (${statedCauses.join("; ")})` : `not fully checked (a language tool is missing, timed out, or failed to run${unexplainedCauses.length > 0 ? `; ${unexplainedCauses.join("; ")}` : ""})`;
2806
+ const carriedInconclusiveReason = inconclusiveDetails.length > 0 ? `; ${inconclusiveDetails.join("; ")}` : "";
2807
+ const unavailableReason = cause ? `no primary language server answered (${PRIMARY_UNAVAILABLE_CAUSE[cause]})${deniedRunnerIds.length > 0 ? `; ${deniedNote}` : ""}` : deniedRunnerIds.length > 0 ? onlySwitchedOff ? `not checked (${deniedNote})` : `not fully checked (a language tool is missing, timed out, or failed to run; ${deniedNote})` : everyRowStated ? `not checked (${statedCauses.join("; ")})` : `not fully checked (a language tool is missing, timed out, or failed to run${unexplainedCauses.length > 0 ? `; ${unexplainedCauses.join("; ")}` : ""}${carriedInconclusiveReason})`;
2785
2808
  const verdict = unchecked(unavailableReason);
2786
2809
  if (ctx.analysisRootMode === "adopted") {
2787
2810
  return { verdict: unchecked(`not analyzed (${unavailableReason})`) };
@@ -2821,7 +2844,7 @@ function buildCoverageNotice(ctx, runnerLatencies, dedupe) {
2821
2844
  return {
2822
2845
  notice: {
2823
2846
  id: `coverage-unavailable:${ctx.kind}:${path4.basename(ctx.filePath)}`,
2824
- message: everyRowStated && deniedRunnerIds.length === 0 ? `Pi-lens ${ctx.kind} analysis unavailable \u2014 ${statedCauses.join("; ")}, so this file was not checked (not a clean result).` : `Pi-lens ${ctx.kind} analysis unavailable \u2014 a language tool is missing, timed out, or failed to run, or the LSP server isn't ready yet, so this file was not fully checked (not a clean result).${unexplainedCauses.length > 0 ? ` Stated: ${unexplainedCauses.join("; ")}.` : ""}${deniedRunnerIds.length > 0 ? ` Runner (${deniedRunnerIds.join(", ")}) is also disabled in config by dispatch.disabledRunners.` : ""}`,
2847
+ message: everyRowStated && deniedRunnerIds.length === 0 ? `Pi-lens ${ctx.kind} analysis unavailable \u2014 ${statedCauses.join("; ")}, so this file was not checked (not a clean result).` : `Pi-lens ${ctx.kind} analysis unavailable \u2014 a language tool is missing, timed out, or failed to run, or the LSP server isn't ready yet, so this file was not fully checked (not a clean result).${unexplainedCauses.length > 0 ? ` Stated: ${unexplainedCauses.join("; ")}.` : ""}${inconclusiveDetails.length > 0 ? ` Stated: ${inconclusiveDetails.join("; ")}.` : ""}${deniedRunnerIds.length > 0 ? ` Runner (${deniedRunnerIds.join(", ")}) is also disabled in config by dispatch.disabledRunners.` : ""}`,
2825
2848
  filePath: ctx.filePath,
2826
2849
  severity: "warning",
2827
2850
  semantic: "warning",
@@ -2859,6 +2882,7 @@ async function runGroup(ctx, group, registry, onRunnerResult) {
2859
2882
  const outOfEditScope = [];
2860
2883
  const inconclusiveRunnerIds = [];
2861
2884
  const inconclusiveServerIds = [];
2885
+ const answeredServerIds = [];
2862
2886
  const collectLaterRunnerIds = [];
2863
2887
  const editScopedRunnerIds = [];
2864
2888
  const answeredRunnerIds = [];
@@ -3109,6 +3133,9 @@ async function runGroup(ctx, group, registry, onRunnerResult) {
3109
3133
  failureKind: result.failureKind
3110
3134
  },
3111
3135
  ...result.inconclusive === true && { inconclusive: true },
3136
+ ...result.inconclusiveReason !== void 0 && {
3137
+ inconclusiveReason: result.inconclusiveReason
3138
+ },
3112
3139
  ...skipReason !== void 0 && {
3113
3140
  skipReason
3114
3141
  },
@@ -3146,7 +3173,13 @@ async function runGroup(ctx, group, registry, onRunnerResult) {
3146
3173
  line: d.line,
3147
3174
  semantic: d.semantic
3148
3175
  })) : void 0,
3149
- metadata: failureRowMetadata(result) ?? (skipReason ? { skipReason, ...claimSource !== void 0 && { claimSource } } : void 0)
3176
+ metadata: failureRowMetadata(result) ?? (skipReason !== void 0 || result.inconclusiveReason !== void 0 ? {
3177
+ ...skipReason !== void 0 && { skipReason },
3178
+ ...result.inconclusiveReason !== void 0 && {
3179
+ inconclusiveReason: result.inconclusiveReason
3180
+ },
3181
+ ...claimSource !== void 0 && { claimSource }
3182
+ } : void 0)
3150
3183
  });
3151
3184
  if (!ctx.preEditCapture)
3152
3185
  recordRunner(ctx.filePath, runnerId, result.status, result.diagnostics.length, duration, ctx.writeIndex);
@@ -3156,9 +3189,11 @@ async function runGroup(ctx, group, registry, onRunnerResult) {
3156
3189
  d.runnerId ??= runnerId;
3157
3190
  outOfEditScope.push(d);
3158
3191
  }
3159
- if (reachedNoVerdict(result))
3192
+ if (reachedNoVerdict(result)) {
3160
3193
  inconclusiveRunnerIds.push(runnerId);
3161
- else {
3194
+ if (result.answeredServerIds?.length)
3195
+ answeredServerIds.push([runnerId, result.answeredServerIds]);
3196
+ } else {
3162
3197
  answeredRunnerIds.push(runnerId);
3163
3198
  if (result.coveredBy)
3164
3199
  coveredRunners.push({
@@ -3186,6 +3221,7 @@ async function runGroup(ctx, group, registry, onRunnerResult) {
3186
3221
  outOfEditScope,
3187
3222
  inconclusiveRunnerIds,
3188
3223
  inconclusiveServerIds,
3224
+ answeredServerIds,
3189
3225
  collectLaterRunnerIds,
3190
3226
  editScopedRunnerIds,
3191
3227
  answeredRunnerIds,
@@ -3269,17 +3305,22 @@ async function dispatchForFile(ctx, groups, registry, onRunnerResult, options) {
3269
3305
  const outOfEditScope = [];
3270
3306
  const inconclusiveRunnerIds = /* @__PURE__ */ new Set();
3271
3307
  const inconclusiveServerIds = /* @__PURE__ */ new Set();
3308
+ const answeredServerIds = /* @__PURE__ */ new Map();
3272
3309
  const collectLaterRunnerIds = /* @__PURE__ */ new Set();
3273
3310
  const editScopedRunnerIds = [];
3274
3311
  const answeredRunnerIds = /* @__PURE__ */ new Set();
3275
3312
  const coveredRunners = [];
3276
- for (const { diagnostics: groupDiags, latencies, hadBlocker, outOfEditScope: groupOutOfScope, inconclusiveRunnerIds: groupRunnerIds, inconclusiveServerIds: groupServerIds, collectLaterRunnerIds: groupCollectLater, editScopedRunnerIds: groupEditScoped, answeredRunnerIds: groupAnswered, coveredRunners: groupCovered } of groupResults) {
3313
+ for (const { diagnostics: groupDiags, latencies, hadBlocker, outOfEditScope: groupOutOfScope, inconclusiveRunnerIds: groupRunnerIds, inconclusiveServerIds: groupServerIds, answeredServerIds: groupAnsweredServers, collectLaterRunnerIds: groupCollectLater, editScopedRunnerIds: groupEditScoped, answeredRunnerIds: groupAnswered, coveredRunners: groupCovered } of groupResults) {
3277
3314
  runnerLatencies.push(...latencies);
3278
3315
  outOfEditScope.push(...groupOutOfScope);
3279
3316
  for (const id of groupRunnerIds)
3280
3317
  inconclusiveRunnerIds.add(id);
3281
3318
  for (const id of groupServerIds)
3282
3319
  inconclusiveServerIds.add(id);
3320
+ for (const [runnerId, ids] of groupAnsweredServers)
3321
+ answeredServerIds.set(runnerId, [
3322
+ .../* @__PURE__ */ new Set([...answeredServerIds.get(runnerId) ?? [], ...ids])
3323
+ ]);
3283
3324
  for (const id of groupCollectLater)
3284
3325
  collectLaterRunnerIds.add(id);
3285
3326
  editScopedRunnerIds.push(...groupEditScoped);
@@ -3317,7 +3358,8 @@ async function dispatchForFile(ctx, groups, registry, onRunnerResult, options) {
3317
3358
  cwd: rulePolicyRoot,
3318
3359
  filePath: ctx.filePath,
3319
3360
  content: fileContent,
3320
- policyMap: void 0
3361
+ policyMap: void 0,
3362
+ identities: (d) => d.semantic === "blocking" ? inlineBlockerIdentities(d) : [{ tool: d.tool, ...d.rule !== void 0 && { rule: d.rule } }]
3321
3363
  });
3322
3364
  return applyRulePolicy(disposition, rulePolicy, {
3323
3365
  root: rulePolicyRoot,
@@ -3367,14 +3409,14 @@ async function dispatchForFile(ctx, groups, registry, onRunnerResult, options) {
3367
3409
  provider: ctx.telemetryProvider
3368
3410
  };
3369
3411
  if (fixedItems.length > 0) {
3370
- import("./chunk-6MZLS6CK.js").then(({ appendToWorklog }) => {
3412
+ import("./chunk-UNTJJ7GN.js").then(({ appendToWorklog }) => {
3371
3413
  appendToWorklog(ctx.cwd, fixedItems, true, worklogIdentity);
3372
3414
  }).catch(() => {
3373
3415
  });
3374
3416
  }
3375
3417
  const fixableWarnings = warnings.filter((d) => d.fixable);
3376
3418
  if (fixableWarnings.length > 0) {
3377
- import("./chunk-6MZLS6CK.js").then(({ appendToWorklog }) => {
3419
+ import("./chunk-UNTJJ7GN.js").then(({ appendToWorklog }) => {
3378
3420
  appendToWorklog(ctx.cwd, fixableWarnings, false, worklogIdentity);
3379
3421
  }).catch(() => {
3380
3422
  });
@@ -3382,7 +3424,7 @@ async function dispatchForFile(ctx, groups, registry, onRunnerResult, options) {
3382
3424
  const inlineBlockers = blockers;
3383
3425
  const inlineFixed = fixedItems;
3384
3426
  const { notice: coverageNotice, verdict, coverage } = buildCoverageNotice(ctx, runnerLatencies, options?.dedupeCoverageNotice ?? true);
3385
- const blockerOutput = formatDiagnostics(inlineBlockers, "blocking");
3427
+ const blockerOutput = formatDiagnostics(inlineBlockers, "blocking", void 0, { editedFile: ctx.filePath, root: ctx.projectRoot ?? ctx.cwd });
3386
3428
  let output = blockerOutput;
3387
3429
  output += formatDiagnostics(inlineFixed, "fixed");
3388
3430
  const withheldMessages = [
@@ -3429,6 +3471,19 @@ async function dispatchForFile(ctx, groups, registry, onRunnerResult, options) {
3429
3471
  }
3430
3472
  const sumMs = runnerLatencies.reduce((s, r) => s + r.durationMs, 0);
3431
3473
  const wallClockMs = latencyReport.totalDurationMs;
3474
+ const runnerMetadata = runnerLatencies.map((r) => {
3475
+ const row = {
3476
+ id: r.runnerId,
3477
+ startedAt: new Date(r.startTime).toISOString(),
3478
+ duration: r.durationMs,
3479
+ status: r.status
3480
+ };
3481
+ if (r.skipReason !== void 0)
3482
+ row.skipReason = r.skipReason;
3483
+ if (r.inconclusiveReason !== void 0)
3484
+ row.inconclusiveReason = r.inconclusiveReason;
3485
+ return row;
3486
+ });
3432
3487
  logLatency({
3433
3488
  type: "tool_result",
3434
3489
  filePath: ctx.filePath,
@@ -3438,12 +3493,7 @@ async function dispatchForFile(ctx, groups, registry, onRunnerResult, options) {
3438
3493
  parallelGainMs: Math.max(0, sumMs - wallClockMs),
3439
3494
  result: "dispatch_complete",
3440
3495
  metadata: {
3441
- runners: runnerLatencies.map((r) => ({
3442
- id: r.runnerId,
3443
- startedAt: new Date(r.startTime).toISOString(),
3444
- duration: r.durationMs,
3445
- status: r.status
3446
- })),
3496
+ runners: runnerMetadata,
3447
3497
  totalDiagnostics: visibleDiagnostics.length,
3448
3498
  blockers: blockers.length,
3449
3499
  // #2489 round 2: distinguishes a delta baseline HIT (a prior snapshot
@@ -3488,7 +3538,8 @@ async function dispatchForFile(ctx, groups, registry, onRunnerResult, options) {
3488
3538
  inconclusiveSources: {
3489
3539
  runnerIds: [...inconclusiveRunnerIds],
3490
3540
  serverIds: [...inconclusiveServerIds],
3491
- collectLaterRunnerIds: [...collectLaterRunnerIds]
3541
+ collectLaterRunnerIds: [...collectLaterRunnerIds],
3542
+ ...answeredServerIds.size > 0 && { answeredServerIds }
3492
3543
  }
3493
3544
  },
3494
3545
  verdict,
@@ -8713,9 +8764,11 @@ var lspRunner = {
8713
8764
  let lspClientReady = true;
8714
8765
  let diagnosticsInconclusive = false;
8715
8766
  let inconclusiveServerIds = [];
8767
+ let inconclusiveReason;
8716
8768
  let primaryUnavailable;
8717
8769
  let unconfirmedServerIds = [];
8718
8770
  let deferredServerIds = [];
8771
+ let answeredServerIds = [];
8719
8772
  let primaryAnswered = false;
8720
8773
  let primaryAnswerStale = false;
8721
8774
  let usedWarmAttach = false;
@@ -8770,6 +8823,7 @@ var lspRunner = {
8770
8823
  lspDiags = touched.diags;
8771
8824
  diagnosticsInconclusive = touched.inconclusive === true;
8772
8825
  inconclusiveServerIds = touched.inconclusiveServerIds ?? [];
8826
+ inconclusiveReason = touched.inconclusiveReason;
8773
8827
  if (touched.inconclusiveReason === "primary-unavailable") {
8774
8828
  const disabledPrimaryServerIds = touched.disabledPrimaryServerIds ?? [];
8775
8829
  primaryUnavailable = {
@@ -8786,6 +8840,7 @@ var lspRunner = {
8786
8840
  ])
8787
8841
  ];
8788
8842
  deferredServerIds = touched.deferredServerIds ?? [];
8843
+ answeredServerIds = touched.answeredServerIds ?? [];
8789
8844
  primaryAnswerStale = readBoundToCurrentDisk(touched) === false;
8790
8845
  primaryAnswered = touchCompletedConfirmationPolicy(touched) && !primaryAnswerStale;
8791
8846
  if (primaryAnswerStale) {
@@ -8798,6 +8853,8 @@ var lspRunner = {
8798
8853
  }
8799
8854
  }
8800
8855
  lspDiags = currentContentDiags;
8856
+ if (!namesStaleContributor)
8857
+ answeredServerIds = [];
8801
8858
  }
8802
8859
  }
8803
8860
  } catch (err) {
@@ -8844,6 +8901,16 @@ var lspRunner = {
8844
8901
  status: "skipped",
8845
8902
  diagnostics: [],
8846
8903
  semantic: "none",
8904
+ ...inconclusiveReason !== void 0 && {
8905
+ inconclusiveReason
8906
+ },
8907
+ ...inconclusiveServerIds.length > 0 && inconclusiveReason !== "primary-unavailable" && {
8908
+ unconfirmedServerIds: [...inconclusiveServerIds]
8909
+ },
8910
+ // #5727: the run has no verdict, but these servers answered clean.
8911
+ ...answeredServerIds.length > 0 && {
8912
+ answeredServerIds: [...answeredServerIds]
8913
+ },
8847
8914
  ...primaryUnavailable
8848
8915
  };
8849
8916
  }
@@ -8949,12 +9016,16 @@ var lspRunner = {
8949
9016
  // reading (a diagnostics-unsupported primary, an incumbent built before the
8950
9017
  // confirmation field), which is today's behaviour.
8951
9018
  ...diagnosticsInconclusive && { inconclusive: true },
9019
+ ...inconclusiveReason !== void 0 && { inconclusiveReason },
8952
9020
  ...unconfirmedServerIds.length > 0 && {
8953
9021
  unconfirmedServerIds: [...unconfirmedServerIds]
8954
9022
  },
8955
9023
  ...deferredServerIds.length > 0 && {
8956
9024
  deferredServerIds: [...deferredServerIds]
8957
9025
  },
9026
+ ...answeredServerIds.length > 0 && {
9027
+ answeredServerIds: [...answeredServerIds]
9028
+ },
8958
9029
  ...outOfEditScope.length > 0 && { outOfEditScope },
8959
9030
  ...withheldNotice !== void 0 && { withheldNotice }
8960
9031
  };
@@ -9203,11 +9274,7 @@ async function resolveVitePlusCommand(packageDir, cwd) {
9203
9274
  const local = resolveLocalVp(packageDir);
9204
9275
  if (local)
9205
9276
  return local;
9206
- const version = await safeSpawnAsync("vp", ["--version"], {
9207
- timeout: 5e3,
9208
- cwd
9209
- });
9210
- return !version.error && version.status === 0 ? "vp" : null;
9277
+ return resolveToolCommandWithInstallFallback(cwd, "vp");
9211
9278
  }
9212
9279
  var oxlintRunner = {
9213
9280
  id: "oxlint",
@@ -9847,6 +9914,15 @@ function parsePrismaValidateOutput(raw, filePath) {
9847
9914
  }
9848
9915
  ];
9849
9916
  }
9917
+ async function resolvePrisma(cwd) {
9918
+ const resolved = await resolveToolCommandWithInstallFallback(cwd, "prisma");
9919
+ if (resolved)
9920
+ return { cmd: resolved, args: [] };
9921
+ const globalBin = await findGlobalBinary("prisma");
9922
+ if (globalBin)
9923
+ return { cmd: globalBin, args: [] };
9924
+ return { cmd: "npx", args: ["--no", "prisma"] };
9925
+ }
9850
9926
  var prismaValidateRunner = {
9851
9927
  id: "prisma-validate",
9852
9928
  appliesTo: ["prisma"],
@@ -9854,7 +9930,7 @@ var prismaValidateRunner = {
9854
9930
  skipTestFiles: false,
9855
9931
  async run(ctx) {
9856
9932
  const cwd = resolveRunnerCwd(ctx, "prisma-validate");
9857
- const resolved = await resolveLocalFirstAsync("prisma", cwd);
9933
+ const resolved = await resolvePrisma(cwd);
9858
9934
  const absPath = path33.resolve(cwd, ctx.filePath);
9859
9935
  const result = await safeSpawnAsync(resolved.cmd, [...resolved.args, "validate", "--schema", absPath], {
9860
9936
  timeout: 2e4,
@@ -10501,22 +10577,7 @@ var rustClippyRunner = {
10501
10577
  if (clippyProbe.getVerdict(ctx.cwd).outcome === "transient") {
10502
10578
  return { status: "skipped", diagnostics: [], semantic: "none" };
10503
10579
  }
10504
- await tryLazyInstall("rust-clippy", ctx.cwd);
10505
- const refreshedProbe = refreshClippyProbe(cargoExe);
10506
- if (!await refreshedProbe(ctx.cwd)) {
10507
- const verdict = refreshedProbe.getVerdict(ctx.cwd);
10508
- logAvailabilityDecision({
10509
- tool: "rust-clippy",
10510
- verdict: "unavailable",
10511
- outcome: verdict.outcome ?? "missing",
10512
- cause: verdict.cause ?? "not-found",
10513
- classifiedBy: "caller",
10514
- evidence: describeInstallAttempt(getLazyInstallAttempt("rust-clippy", ctx.cwd)),
10515
- elapsedMs: 0,
10516
- latched: false
10517
- });
10518
- return toolAbsentSkip(ctx.cwd, { checker: refreshedProbe });
10519
- }
10580
+ return toolAbsentSkip(ctx.cwd, { checker: clippyProbe });
10520
10581
  }
10521
10582
  const cargoResolution = resolveRunnerCwdWithReason(ctx, "rust-clippy");
10522
10583
  const cargoDir = cargoResolution.cwd;