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,12 +2,10 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
2
2
  import {
3
3
  flightTail,
4
4
  holdFlight,
5
- runnerFlightKey,
6
- tryLazyInstallForFormatter
7
- } from "./chunk-BKJ6WZKP.js";
5
+ runnerFlightKey
6
+ } from "./chunk-CZ5TCJPB.js";
8
7
  import {
9
8
  OXFMT_SUPPORTED_EXTENSIONS,
10
- getAutoInstallToolIdForFormatter,
11
9
  getFormatterPolicyForFile,
12
10
  getSmartDefaultFormatterName,
13
11
  gradleBlockRanges,
@@ -17,41 +15,42 @@ import {
17
15
  hasNearestPackageJsonDependency,
18
16
  hasOxfmtSvelteConfig,
19
17
  resolveInstalledToolCommand,
18
+ shouldAutoInstallTool,
20
19
  stripGradleCommentsAndStrings
21
- } from "./chunk-NNDZ7DOP.js";
20
+ } from "./chunk-RK5RBREN.js";
22
21
  import {
23
22
  load
24
- } from "./chunk-2DWNYVUN.js";
23
+ } from "./chunk-EQKF6BAK.js";
25
24
  import {
26
25
  stripAnsi
27
26
  } from "./chunk-6HWVI6MI.js";
28
27
  import {
29
28
  getToolPath
30
- } from "./chunk-YOMLAKU6.js";
29
+ } from "./chunk-VC3W54G3.js";
31
30
  import {
32
31
  findToolConfig,
33
32
  hasToolConfig,
34
33
  resolveToolCwd
35
- } from "./chunk-T2D2WWP6.js";
34
+ } from "./chunk-GVE5VZYQ.js";
36
35
  import {
37
36
  findGlobalBinary,
38
37
  findLocalBinUpwards,
39
38
  localBinPath
40
- } from "./chunk-25CAONWT.js";
39
+ } from "./chunk-YZNARDMM.js";
41
40
  import {
42
41
  getIsolatedNpxSpawnOptions,
43
42
  probeToolAsync
44
- } from "./chunk-WWZLT6AM.js";
43
+ } from "./chunk-JWW3ODBN.js";
45
44
  import {
46
45
  readTextFileOrUndefined,
47
46
  resolveCargoPackageEdition
48
- } from "./chunk-DKXIUGNA.js";
47
+ } from "./chunk-J2DAHH4T.js";
49
48
  import {
50
49
  classifyFinderFailure,
51
50
  createAvailabilityLatch,
52
51
  logAvailabilityDecision,
53
52
  startHostStallSampler
54
- } from "./chunk-LDPY22FS.js";
53
+ } from "./chunk-KDPZA2UE.js";
55
54
  import {
56
55
  VENDOR_BIN_DIRS,
57
56
  admittedLookupAnswer,
@@ -59,24 +58,24 @@ import {
59
58
  isInSpawnTimeoutCooldown,
60
59
  resolveWriteResult,
61
60
  safeSpawnAsync
62
- } from "./chunk-M3QGXGY4.js";
61
+ } from "./chunk-LURFD4HD.js";
63
62
  import {
64
63
  TERRAGRUNT_FILENAMES
65
- } from "./chunk-SL4G67AP.js";
64
+ } from "./chunk-V4TFQY5G.js";
66
65
  import {
67
66
  assertInstallAllowed,
68
67
  getProjectTrustGeneration
69
- } from "./chunk-EKQDQPX6.js";
68
+ } from "./chunk-463WN3VP.js";
70
69
  import {
71
70
  compareOrdinal,
72
71
  getDegradationLedgerGeneration,
73
72
  incrementDegradationCount,
74
73
  logExtension,
75
74
  recordDegradationOnce
76
- } from "./chunk-P7EV5ISR.js";
75
+ } from "./chunk-CQNXALZJ.js";
77
76
  import {
78
77
  logLatency
79
- } from "./chunk-HUWW77QY.js";
78
+ } from "./chunk-YVE5Q2UU.js";
80
79
  import {
81
80
  BoundedFifoMap,
82
81
  BoundedLruCache,
@@ -85,7 +84,7 @@ import {
85
84
  realpathOrResolve,
86
85
  toPosix,
87
86
  walkUpDirs
88
- } from "./chunk-6MWX2J5H.js";
87
+ } from "./chunk-ZSPVF7KI.js";
89
88
 
90
89
  // dist/clients/formatters.js
91
90
  import { AsyncLocalStorage } from "node:async_hooks";
@@ -1147,12 +1146,6 @@ var agreementCache = new BoundedFifoMap(512);
1147
1146
  var agreementResolutionCount = 0;
1148
1147
 
1149
1148
  // dist/clients/formatters.js
1150
- async function tryLazyInstallFormatterTool(tool, cwd) {
1151
- const ok = await tryLazyInstallForFormatter(tool, cwd);
1152
- if (ok)
1153
- resetWhichLatches();
1154
- return ok;
1155
- }
1156
1149
  var SKIP_FORMATTING = "skip-formatting";
1157
1150
  var FORMATTER_UNAVAILABLE = "formatter-unavailable";
1158
1151
  var FORMATTER_AGREEMENT_UNAVAILABLE = "formatter-agreement-unavailable";
@@ -1371,9 +1364,9 @@ async function canUseBundleExec(cwd) {
1371
1364
  return lockfiles.length > 0;
1372
1365
  }
1373
1366
  async function resolveManagedSmartDefaultCommand(formatterName, filePath, args) {
1374
- const toolId = getAutoInstallToolIdForFormatter(formatterName);
1375
- if (!toolId)
1367
+ if (!shouldAutoInstallTool(formatterName))
1376
1368
  return FORMATTER_UNAVAILABLE;
1369
+ const toolId = formatterName;
1377
1370
  const found = await resolveFormatterToolCommand(toolId, filePath, formatterName);
1378
1371
  if (found.command)
1379
1372
  return [found.command, ...args, filePath];
@@ -1528,11 +1521,10 @@ var biomeFormatter = {
1528
1521
  const global = await findGlobalBinary("biome");
1529
1522
  if (global)
1530
1523
  return [global, ...args, filePath];
1531
- const toolId = getAutoInstallToolIdForFormatter("biome");
1532
- if (!toolId)
1524
+ if (!shouldAutoInstallTool("biome"))
1533
1525
  return null;
1534
1526
  const { ensureTool } = await import("./probes/installer.js");
1535
- const installed = await ensureTool(toolId);
1527
+ const installed = await ensureTool("biome");
1536
1528
  if (installed)
1537
1529
  return [installed, ...args, filePath];
1538
1530
  return null;
@@ -1653,11 +1645,10 @@ var ruffFormatter = {
1653
1645
  const found = await resolveFormatterToolCommand("ruff", filePath);
1654
1646
  if (found.command)
1655
1647
  return [found.command, ...args, filePath];
1656
- const toolId = getAutoInstallToolIdForFormatter("ruff");
1657
- if (!toolId)
1648
+ if (!shouldAutoInstallTool("ruff"))
1658
1649
  return null;
1659
1650
  const { ensureTool } = await import("./probes/installer.js");
1660
- const installed = await ensureTool(toolId);
1651
+ const installed = await ensureTool("ruff");
1661
1652
  if (installed)
1662
1653
  return [installed, ...args, filePath];
1663
1654
  return ladderMiss(found, "ruff");
@@ -1723,15 +1714,7 @@ var rustfmtFormatter = {
1723
1714
  return null;
1724
1715
  return ["rustfmt", "--edition", edition, filePath];
1725
1716
  },
1726
- async detect(cwd) {
1727
- if (await which("rustfmt") !== null)
1728
- return true;
1729
- const rustProject = (await findUp(["Cargo.toml"], cwd)).length > 0;
1730
- if (!rustProject)
1731
- return false;
1732
- if (await which("rustup") === null)
1733
- return false;
1734
- await tryLazyInstallFormatterTool("rustfmt", cwd);
1717
+ async detect(_cwd) {
1735
1718
  return await which("rustfmt") !== null;
1736
1719
  }
1737
1720
  };
@@ -1839,8 +1822,7 @@ var ktfmtFormatter = {
1839
1822
  const found = await resolveFormatterToolCommand("ktfmt", filePath);
1840
1823
  if (found.command)
1841
1824
  return styleFlag ? [found.command, styleFlag, filePath] : [found.command, filePath];
1842
- const { ensureTool } = await import("./probes/installer.js");
1843
- const installed = await ensureTool("ktfmt");
1825
+ const installed = shouldAutoInstallTool("ktfmt") ? await (await import("./probes/installer.js")).ensureTool("ktfmt") : void 0;
1844
1826
  if (!installed)
1845
1827
  return ladderMiss(found, "ktfmt");
1846
1828
  return styleFlag ? [installed, styleFlag, filePath] : [installed, filePath];
@@ -1863,9 +1845,6 @@ var rubocopFormatter = {
1863
1845
  async detect(cwd) {
1864
1846
  if (!hasToolConfig("rubocop", cwd))
1865
1847
  return false;
1866
- if (await which("rubocop") !== null)
1867
- return true;
1868
- await tryLazyInstallFormatterTool("rubocop", cwd);
1869
1848
  return await which("rubocop") !== null;
1870
1849
  }
1871
1850
  };
@@ -2303,8 +2282,7 @@ async function getFormattersForFile(filePath, cwd) {
2303
2282
  } else if (smartDefaultFormatterName) {
2304
2283
  const smartDefaultFormatter = candidateFormatters.find((f) => f.name === smartDefaultFormatterName);
2305
2284
  if (smartDefaultFormatter) {
2306
- const autoInstallToolId = getAutoInstallToolIdForFormatter(smartDefaultFormatter.name);
2307
- if (autoInstallToolId) {
2285
+ if (shouldAutoInstallTool(smartDefaultFormatter.name)) {
2308
2286
  selected = smartDefaultFormatter;
2309
2287
  } else {
2310
2288
  const { detected, error, outcome } = await detectCandidate(smartDefaultFormatter, cwd);
@@ -2434,11 +2412,10 @@ function diagnosticTail(text, maxLines = FORMATTER_ERROR_TAIL_LINES) {
2434
2412
  return lines.slice(-maxLines).join("\n");
2435
2413
  }
2436
2414
  async function resolveNpxFallback(formatterName, fallback) {
2437
- const toolId = getAutoInstallToolIdForFormatter(formatterName);
2438
- if (!toolId)
2415
+ if (!shouldAutoInstallTool(formatterName))
2439
2416
  return fallback;
2440
2417
  const { ensureTool } = await import("./probes/installer.js");
2441
- const installed = await ensureTool(toolId);
2418
+ const installed = await ensureTool(formatterName);
2442
2419
  if (!installed)
2443
2420
  return fallback;
2444
2421
  return [installed, ...fallback.slice(2)];
@@ -2588,7 +2565,6 @@ function listAllFormatters() {
2588
2565
  }
2589
2566
 
2590
2567
  export {
2591
- tryLazyInstallFormatterTool,
2592
2568
  SKIP_FORMATTING,
2593
2569
  FORMATTER_UNAVAILABLE,
2594
2570
  FORMATTER_AGREEMENT_UNAVAILABLE,
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-5W3R6LFT.js";
5
5
  import {
6
6
  firstChildOfType
7
- } from "./chunk-4GLSO2EM.js";
7
+ } from "./chunk-6F34GMP7.js";
8
8
 
9
9
  // dist/clients/metrics/function-metrics.js
10
10
  var JSTS = {
@@ -3,17 +3,17 @@ import {
3
3
  AgentBehaviorClient,
4
4
  agentBehaviorClient,
5
5
  toolCallProgress
6
- } from "./chunk-7BWPQZHE.js";
7
- import "./chunk-35UJUF27.js";
8
- import "./chunk-M3QGXGY4.js";
9
- import "./chunk-N2U644ZW.js";
10
- import "./chunk-DLGJYQML.js";
11
- import "./chunk-EKQDQPX6.js";
12
- import "./chunk-P7EV5ISR.js";
6
+ } from "./chunk-LKPSBM6S.js";
7
+ import "./chunk-6LIUVGOR.js";
8
+ import "./chunk-LURFD4HD.js";
9
+ import "./chunk-UX75PTQW.js";
10
+ import "./chunk-D2LFEA5U.js";
11
+ import "./chunk-463WN3VP.js";
12
+ import "./chunk-CQNXALZJ.js";
13
13
  import "./chunk-S26LC76R.js";
14
- import "./chunk-HUWW77QY.js";
14
+ import "./chunk-YVE5Q2UU.js";
15
15
  import "./chunk-LJDODBBZ.js";
16
- import "./chunk-6MWX2J5H.js";
16
+ import "./chunk-ZSPVF7KI.js";
17
17
  import "./chunk-NXL4FFQQ.js";
18
18
  export {
19
19
  AgentBehaviorClient,
@@ -3,10 +3,10 @@ import {
3
3
  findGoverningTsconfigDir,
4
4
  getDirectoryMarkers,
5
5
  registerWorkspaceTopologyReset
6
- } from "./chunk-DLGJYQML.js";
6
+ } from "./chunk-D2LFEA5U.js";
7
7
  import {
8
8
  BoundedLruCache
9
- } from "./chunk-6MWX2J5H.js";
9
+ } from "./chunk-ZSPVF7KI.js";
10
10
 
11
11
  // dist/clients/review-graph/tsconfig-paths.js
12
12
  import * as fs from "node:fs";
@@ -1,11 +1,14 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  runReportScan
4
- } from "./chunk-HFIFEH46.js";
4
+ } from "./chunk-7KRR24GO.js";
5
+ import {
6
+ findManagedReleaseBinary
7
+ } from "./chunk-RK5RBREN.js";
5
8
  import {
6
9
  createAvailabilityProbeFlight,
7
10
  probeToolAsync
8
- } from "./chunk-WWZLT6AM.js";
11
+ } from "./chunk-JWW3ODBN.js";
9
12
  import {
10
13
  classifyProbeFailure,
11
14
  createAvailabilityLatch,
@@ -13,14 +16,14 @@ import {
13
16
  describeProbeEvidence,
14
17
  logAvailabilityDecision,
15
18
  startHostStallSampler
16
- } from "./chunk-LDPY22FS.js";
19
+ } from "./chunk-KDPZA2UE.js";
17
20
  import {
18
21
  createSingleFlight
19
- } from "./chunk-GIK6VUCY.js";
22
+ } from "./chunk-3UHGSUVL.js";
20
23
  import {
21
24
  createSubsystemLogger,
22
25
  incrementDegradationCount
23
- } from "./chunk-P7EV5ISR.js";
26
+ } from "./chunk-CQNXALZJ.js";
24
27
 
25
28
  // dist/clients/security-scan-client.js
26
29
  import * as path from "node:path";
@@ -136,13 +139,12 @@ var SecurityScanClient = class {
136
139
  let probeJoined = false;
137
140
  try {
138
141
  const shared = securityProbeFlights.run(`security:${this.toolName}|${versionArgs.join("|")}`, async () => {
139
- const { findManagedToolBinary } = await import("./probes/installer.js");
140
- const managed = await findManagedToolBinary(this.toolName);
142
+ const managed = await findManagedReleaseBinary(this.toolName, versionArgs);
141
143
  return {
142
144
  probe: await probeToolAsync(managed ?? this.toolName, versionArgs, {
143
145
  timeout: 5e3
144
146
  }),
145
- binaryPath: managed ?? null
147
+ binaryPath: managed
146
148
  };
147
149
  });
148
150
  probeJoined = shared.joined;
@@ -6,6 +6,7 @@ import {
6
6
  createVenvFinder,
7
7
  discoverManagedTool,
8
8
  findManagedNodeToolBinary,
9
+ findManagedReleaseBinary,
9
10
  getDispatchAvailabilityGeneration,
10
11
  getManagedToolEnvironment,
11
12
  lspPrimaryCoversFile,
@@ -14,7 +15,6 @@ import {
14
15
  resolveAdoptedRootCommand,
15
16
  resolveAvailableOrInstall,
16
17
  resolveInstalledToolCommand,
17
- resolveLocalFirstAsync,
18
18
  resolveManagedToolClient,
19
19
  resolveNodeToolCommand,
20
20
  resolveRubocopCommand,
@@ -25,26 +25,24 @@ import {
25
25
  toolAbsentSkip,
26
26
  toolBinaryVerdict,
27
27
  toolOnPath
28
- } from "./chunk-NNDZ7DOP.js";
29
- import "./chunk-YIEHUKX2.js";
30
- import "./chunk-J7VNGHLN.js";
31
- import "./chunk-AB26NAHA.js";
32
- import "./chunk-5HVDD7IA.js";
33
- import "./chunk-H6DNTQ4V.js";
34
- import "./chunk-2DWNYVUN.js";
35
- import "./chunk-HMXWZUQW.js";
36
- import "./chunk-MET776XM.js";
37
- import "./chunk-BQ72NQQM.js";
38
- import "./chunk-BYIEU4E4.js";
39
- import "./chunk-NAACKIKT.js";
28
+ } from "./chunk-RK5RBREN.js";
29
+ import "./chunk-KMY2OU4T.js";
30
+ import "./chunk-ZIF4WLWR.js";
31
+ import "./chunk-BG7KHGNX.js";
32
+ import "./chunk-EQKF6BAK.js";
33
+ import "./chunk-GWZZOJD2.js";
34
+ import "./chunk-MVG2ZEAO.js";
35
+ import "./chunk-IDKLWVKY.js";
36
+ import "./chunk-F6QAJXQV.js";
37
+ import "./chunk-HKPJTI47.js";
40
38
  import "./chunk-2APSZHHI.js";
41
39
  import "./chunk-2BEMIWEW.js";
42
40
  import "./chunk-IJYGIDF4.js";
43
- import "./chunk-YOMLAKU6.js";
44
- import "./chunk-T2D2WWP6.js";
45
- import "./chunk-25CAONWT.js";
46
- import "./chunk-WWZLT6AM.js";
47
- import "./chunk-DKXIUGNA.js";
41
+ import "./chunk-VC3W54G3.js";
42
+ import "./chunk-GVE5VZYQ.js";
43
+ import "./chunk-YZNARDMM.js";
44
+ import "./chunk-JWW3ODBN.js";
45
+ import "./chunk-J2DAHH4T.js";
48
46
  import {
49
47
  classifyProbeFailure,
50
48
  createAvailabilityLatch,
@@ -53,26 +51,25 @@ import {
53
51
  isTransientDecision,
54
52
  logAvailabilityDecision,
55
53
  startHostStallSampler
56
- } from "./chunk-LDPY22FS.js";
57
- import "./chunk-HOWHAKXO.js";
58
- import "./chunk-WJ7GY5WJ.js";
59
- import "./chunk-WA6U2URH.js";
60
- import "./chunk-TABDCX35.js";
54
+ } from "./chunk-KDPZA2UE.js";
55
+ import "./chunk-Y3ZNOZZS.js";
56
+ import "./chunk-6REF4GCO.js";
57
+ import "./chunk-LKW2HFSZ.js";
58
+ import "./chunk-KW7O72AK.js";
61
59
  import "./chunk-TQWRH25U.js";
62
60
  import "./chunk-UYXV5NIS.js";
63
- import "./chunk-M3QGXGY4.js";
64
- import "./chunk-GIK6VUCY.js";
61
+ import "./chunk-LURFD4HD.js";
62
+ import "./chunk-3UHGSUVL.js";
65
63
  import "./chunk-QYF5S6P6.js";
66
- import "./chunk-N2U644ZW.js";
67
- import "./chunk-SL4G67AP.js";
68
- import "./chunk-DLGJYQML.js";
69
- import "./chunk-CIA7X2PZ.js";
70
- import "./chunk-EKQDQPX6.js";
71
- import "./chunk-P7EV5ISR.js";
64
+ import "./chunk-UX75PTQW.js";
65
+ import "./chunk-V4TFQY5G.js";
66
+ import "./chunk-D2LFEA5U.js";
67
+ import "./chunk-463WN3VP.js";
68
+ import "./chunk-CQNXALZJ.js";
72
69
  import "./chunk-S26LC76R.js";
73
- import "./chunk-HUWW77QY.js";
70
+ import "./chunk-YVE5Q2UU.js";
74
71
  import "./chunk-LJDODBBZ.js";
75
- import "./chunk-6MWX2J5H.js";
72
+ import "./chunk-ZSPVF7KI.js";
76
73
  import "./chunk-NXL4FFQQ.js";
77
74
  export {
78
75
  classifyProbeFailure,
@@ -85,6 +82,7 @@ export {
85
82
  describeUnavailability,
86
83
  discoverManagedTool,
87
84
  findManagedNodeToolBinary,
85
+ findManagedReleaseBinary,
88
86
  getDispatchAvailabilityGeneration,
89
87
  getManagedToolEnvironment,
90
88
  isTransientDecision,
@@ -95,7 +93,6 @@ export {
95
93
  resolveAdoptedRootCommand,
96
94
  resolveAvailableOrInstall,
97
95
  resolveInstalledToolCommand,
98
- resolveLocalFirstAsync,
99
96
  resolveManagedToolClient,
100
97
  resolveNodeToolCommand,
101
98
  resolveRubocopCommand,
@@ -2,21 +2,21 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
2
2
  import {
3
3
  createAvailabilityProbeFlight,
4
4
  probeToolAsync
5
- } from "./chunk-WWZLT6AM.js";
5
+ } from "./chunk-JWW3ODBN.js";
6
6
  import {
7
7
  classifyProbeFailure,
8
8
  createAvailabilityLatch,
9
9
  logAvailabilityDecision,
10
10
  startHostStallSampler
11
- } from "./chunk-LDPY22FS.js";
11
+ } from "./chunk-KDPZA2UE.js";
12
12
  import {
13
13
  createGenerationSource,
14
14
  isUntrustedProjectPath,
15
15
  recordProjectCommandRefusal
16
- } from "./chunk-M3QGXGY4.js";
16
+ } from "./chunk-LURFD4HD.js";
17
17
  import {
18
18
  createSingleFlight
19
- } from "./chunk-GIK6VUCY.js";
19
+ } from "./chunk-3UHGSUVL.js";
20
20
 
21
21
  // dist/clients/dispatch/runners/utils/candidate-probe.js
22
22
  import * as fs from "node:fs";
@@ -9,26 +9,26 @@ import {
9
9
  getDeadCodeClients,
10
10
  parseVultureOutput,
11
11
  stableFindingKey
12
- } from "./chunk-WAK2AXQQ.js";
12
+ } from "./chunk-7OMOMBEQ.js";
13
13
  import "./chunk-7U2IDNXN.js";
14
- import "./chunk-OG3UCAHV.js";
15
- import "./chunk-QQGZY2BR.js";
14
+ import "./chunk-KVGA7X76.js";
15
+ import "./chunk-ZX6OKBVO.js";
16
16
  import "./chunk-2APSZHHI.js";
17
- import "./chunk-25CAONWT.js";
18
- import "./chunk-WWZLT6AM.js";
19
- import "./chunk-DKXIUGNA.js";
20
- import "./chunk-LDPY22FS.js";
17
+ import "./chunk-YZNARDMM.js";
18
+ import "./chunk-JWW3ODBN.js";
19
+ import "./chunk-J2DAHH4T.js";
20
+ import "./chunk-KDPZA2UE.js";
21
21
  import "./chunk-UYXV5NIS.js";
22
- import "./chunk-M3QGXGY4.js";
23
- import "./chunk-GIK6VUCY.js";
24
- import "./chunk-N2U644ZW.js";
25
- import "./chunk-DLGJYQML.js";
26
- import "./chunk-EKQDQPX6.js";
27
- import "./chunk-P7EV5ISR.js";
22
+ import "./chunk-LURFD4HD.js";
23
+ import "./chunk-3UHGSUVL.js";
24
+ import "./chunk-UX75PTQW.js";
25
+ import "./chunk-D2LFEA5U.js";
26
+ import "./chunk-463WN3VP.js";
27
+ import "./chunk-CQNXALZJ.js";
28
28
  import "./chunk-S26LC76R.js";
29
- import "./chunk-HUWW77QY.js";
29
+ import "./chunk-YVE5Q2UU.js";
30
30
  import "./chunk-LJDODBBZ.js";
31
- import "./chunk-6MWX2J5H.js";
31
+ import "./chunk-ZSPVF7KI.js";
32
32
  import "./chunk-NXL4FFQQ.js";
33
33
  export {
34
34
  DEAD_CODE_DELTA_MAX_SHOWN,
@@ -19,11 +19,11 @@ import {
19
19
  logLatency,
20
20
  resetSinkRotations,
21
21
  resetSinkWriteFailures
22
- } from "./chunk-HUWW77QY.js";
22
+ } from "./chunk-YVE5Q2UU.js";
23
23
  import {
24
24
  getPathIdentityFallbacks,
25
25
  resetPathIdentityFallbacks
26
- } from "./chunk-6MWX2J5H.js";
26
+ } from "./chunk-ZSPVF7KI.js";
27
27
 
28
28
  // dist/clients/extension-log.js
29
29
  import * as path from "node:path";
@@ -373,14 +373,20 @@ var INFORMATIONAL_DEGRADATION_KINDS = /* @__PURE__ */ new Set([
373
373
  // #3952: both are the idle-eviction POLICY answering, not a timer that
374
374
  // failed. `lsp-idle-eviction` is the memory bound releasing a client that
375
375
  // respawns on the next request; `lsp-idle-eviction-declined` is the
376
- // declaration `unmeasured`/`resident` doing its job, once per server, so a
377
- // nominal session writes up to one row per non-`transparent` server (32 of
378
- // the 49 built-ins today). A `⚠` per server on every healthy session is
376
+ // declaration `resident` doing its job, once per server, so a
377
+ // nominal session writes up to one row per `resident` server (the five
378
+ // held indexers today, #5700). A `⚠` per server on every healthy session is
379
379
  // the cry-wolf shape #2505 rejected; the sibling that DOES stand out is a
380
380
  // measurement whose arm never reached the policy, and that one reads as a
381
381
  // missing row, not as a warning here.
382
382
  "lsp-idle-eviction",
383
- "lsp-idle-eviction-declined"
383
+ "lsp-idle-eviction-declined",
384
+ // #5700: the open-document cap closing a cold document is the resident
385
+ // budget working; the server reopens it on the next touch.
386
+ "lsp-open-document-cap",
387
+ // #5733: a group that outlived its leader at shutdown was SIGKILLed; the
388
+ // ladder ending it is the design working.
389
+ "held-group-outlived-leader"
384
390
  ]);
385
391
  function renderDegradationLines(summary = getDegradationSummary()) {
386
392
  if (!isRenderableSummary(summary))
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  withTreeSitterRoot
4
- } from "./chunk-4GLSO2EM.js";
4
+ } from "./chunk-6F34GMP7.js";
5
5
 
6
6
  // dist/clients/dispatch/facts/tree-sitter-facts.js
7
7
  var withFactTree = withTreeSitterRoot;
@@ -0,0 +1,98 @@
1
+ import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
+ import {
3
+ normalizeMapKey
4
+ } from "./chunk-ZSPVF7KI.js";
5
+
6
+ // dist/clients/dispatch/collect-later-tier.js
7
+ var COLLECT_LATER_THRESHOLD_MS = 5e3;
8
+ var slowRunners = /* @__PURE__ */ new Map();
9
+ function runnerFlightKey(projectRoot, runnerId) {
10
+ return `${normalizeMapKey(projectRoot)}\0${runnerId}`;
11
+ }
12
+ function classifyObservedRunner(projectRoot, runnerId, dispatch) {
13
+ const runnerKey = runnerFlightKey(projectRoot, runnerId);
14
+ const flight = flights.get(runnerKey);
15
+ return slowRunners.has(runnerKey) || flight !== void 0 && (flight.owner === void 0 || flight.owner !== dispatch) ? "collect-later" : "inline";
16
+ }
17
+ function observeRunnerLatency(options) {
18
+ const normalizedProjectRoot = normalizeMapKey(options.projectRoot);
19
+ const runnerKey = runnerFlightKey(normalizedProjectRoot, options.runnerId);
20
+ if (options.timedOut === true || options.durationMs > COLLECT_LATER_THRESHOLD_MS) {
21
+ slowRunners.set(runnerKey, {
22
+ projectRoot: normalizedProjectRoot,
23
+ runnerId: options.runnerId
24
+ });
25
+ return "collect-later";
26
+ }
27
+ slowRunners.delete(runnerKey);
28
+ return "inline";
29
+ }
30
+ var flights = /* @__PURE__ */ new Map();
31
+ var DROPPED_BY_RESET = {
32
+ status: "skipped",
33
+ diagnostics: [],
34
+ semantic: "none"
35
+ };
36
+ function runCollectLater(options) {
37
+ const flightKey = runnerFlightKey(options.projectRoot, options.runnerId);
38
+ const flight = flights.get(flightKey);
39
+ if (flight) {
40
+ const fileKey = normalizeMapKey(options.filePath);
41
+ const queued = flight.queued.get(fileKey);
42
+ if (queued) {
43
+ queued.start = options.start;
44
+ return { promise: queued.promise, coalesced: true };
45
+ }
46
+ const slot = {
47
+ start: options.start,
48
+ promise: Promise.allSettled([flight.tail]).then(() => startQueued(flightKey, flight, fileKey, slot))
49
+ };
50
+ flight.queued.set(fileKey, slot);
51
+ chain(flightKey, flight, slot.promise);
52
+ return { promise: slot.promise, coalesced: true };
53
+ }
54
+ const promise = options.start();
55
+ holdFlight(flightKey, promise);
56
+ return { promise, coalesced: false };
57
+ }
58
+ function holdFlight(flightKey, promise, owner) {
59
+ const held = flights.get(flightKey);
60
+ if (held) {
61
+ chain(flightKey, held, Promise.allSettled([held.tail, promise]));
62
+ return;
63
+ }
64
+ const started = { tail: promise, queued: /* @__PURE__ */ new Map(), owner };
65
+ flights.set(flightKey, started);
66
+ chain(flightKey, started, promise);
67
+ }
68
+ function flightTail(flightKey) {
69
+ return flights.get(flightKey)?.tail;
70
+ }
71
+ function startQueued(flightKey, flight, fileKey, slot) {
72
+ if (flights.get(flightKey) !== flight)
73
+ return DROPPED_BY_RESET;
74
+ flight.queued.delete(fileKey);
75
+ return slot.start();
76
+ }
77
+ function chain(flightKey, flight, run) {
78
+ flight.tail = run;
79
+ void Promise.allSettled([run]).then(() => {
80
+ if (flight.tail === run && flights.get(flightKey) === flight)
81
+ flights.delete(flightKey);
82
+ });
83
+ }
84
+ function resetObservedRunnerLatency() {
85
+ slowRunners.clear();
86
+ flights.clear();
87
+ }
88
+
89
+ export {
90
+ COLLECT_LATER_THRESHOLD_MS,
91
+ runnerFlightKey,
92
+ classifyObservedRunner,
93
+ observeRunnerLatency,
94
+ runCollectLater,
95
+ holdFlight,
96
+ flightTail,
97
+ resetObservedRunnerLatency
98
+ };