@herbertgao/pi-extensions 2026.11.13 → 2026.11.15

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 (198) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +7 -7
  3. package/THIRD_PARTY_NOTICES.md +1 -1
  4. package/node_modules/@herbertgao/pi-cc-extensions/CHANGELOG.md +6 -0
  5. package/node_modules/@herbertgao/pi-cc-extensions/README.en.md +3 -2
  6. package/node_modules/@herbertgao/pi-cc-extensions/README.md +3 -2
  7. package/node_modules/@herbertgao/pi-cc-extensions/extensions/config/config.ts +5 -0
  8. package/node_modules/@herbertgao/pi-cc-extensions/extensions/config/panel.ts +9 -0
  9. package/node_modules/@herbertgao/pi-cc-extensions/extensions/index.ts +32 -2
  10. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/markdown-enhance.ts +26 -21
  11. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/table-copy.ts +753 -0
  12. package/node_modules/@herbertgao/pi-cc-extensions/extensions/utils/fullscreen-detect.ts +11 -0
  13. package/node_modules/@herbertgao/pi-cc-extensions/package.json +4 -4
  14. package/node_modules/@herbertgao/pi-inline-skill-commands/README.md +6 -2
  15. package/node_modules/@herbertgao/pi-inline-skill-commands/package.json +1 -1
  16. package/node_modules/@herbertgao/pi-inline-skill-commands/src/index.ts +41 -15
  17. package/node_modules/@herbertgao/pi-subagents/CHANGELOG.md +16 -0
  18. package/node_modules/@herbertgao/pi-subagents/README.md +54 -22
  19. package/node_modules/@herbertgao/pi-subagents/docs/workflows.md +114 -35
  20. package/node_modules/@herbertgao/pi-subagents/package.json +9 -4
  21. package/node_modules/@herbertgao/pi-subagents/skills/workflow-authoring/SKILL.md +147 -0
  22. package/node_modules/@herbertgao/pi-subagents/src/agent-manager.ts +48 -32
  23. package/node_modules/@herbertgao/pi-subagents/src/agent-runner.ts +34 -13
  24. package/node_modules/@herbertgao/pi-subagents/src/agent-types.ts +88 -0
  25. package/node_modules/@herbertgao/pi-subagents/src/custom-agents.ts +16 -6
  26. package/node_modules/@herbertgao/pi-subagents/src/index.ts +114 -98
  27. package/node_modules/@herbertgao/pi-subagents/src/mention-clone.ts +6 -2
  28. package/node_modules/@herbertgao/pi-subagents/src/mention.ts +5 -7
  29. package/node_modules/@herbertgao/pi-subagents/src/nested-tools.ts +18 -2
  30. package/node_modules/@herbertgao/pi-subagents/src/prompts.ts +25 -3
  31. package/node_modules/@herbertgao/pi-subagents/src/settings.ts +26 -0
  32. package/node_modules/@herbertgao/pi-subagents/src/structured-output.ts +13 -5
  33. package/node_modules/@herbertgao/pi-subagents/src/ui/fleet-list.ts +55 -8
  34. package/node_modules/@herbertgao/pi-subagents/src/ui/workflow-card-redraw.ts +86 -0
  35. package/node_modules/@herbertgao/pi-subagents/src/ui/workflow-card.ts +5 -5
  36. package/node_modules/@herbertgao/pi-subagents/src/ui/workflow-dialog.ts +478 -115
  37. package/node_modules/@herbertgao/pi-subagents/src/ui/workflow-menu.ts +77 -6
  38. package/node_modules/@herbertgao/pi-subagents/src/workflow/agent-detail.ts +148 -0
  39. package/node_modules/@herbertgao/pi-subagents/src/workflow/host.ts +88 -14
  40. package/node_modules/@herbertgao/pi-subagents/src/workflow/journal.ts +8 -0
  41. package/node_modules/@herbertgao/pi-subagents/src/workflow/json-schema.ts +507 -57
  42. package/node_modules/@herbertgao/pi-subagents/src/workflow/progress.ts +41 -11
  43. package/node_modules/@herbertgao/pi-subagents/src/workflow/runtime.ts +106 -34
  44. package/node_modules/@herbertgao/pi-subagents/src/workflow/task.ts +43 -5
  45. package/node_modules/@herbertgao/pi-subagents/src/workflow/tool-description.ts +93 -153
  46. package/node_modules/@herbertgao/pi-subagents/src/workflow/worker-source.ts +283 -71
  47. package/node_modules/@pi-plugins/fast-mode/dist/index.mjs +288 -177
  48. package/node_modules/@pi-plugins/fast-mode/dist/index.mjs.map +1 -1
  49. package/node_modules/@pi-plugins/fast-mode/package.json +7 -7
  50. package/node_modules/pi-commandcode-provider/CHANGELOG.md +20 -0
  51. package/node_modules/pi-commandcode-provider/README.md +1 -1
  52. package/node_modules/pi-commandcode-provider/index.ts +2 -1
  53. package/node_modules/pi-commandcode-provider/package.json +1 -1
  54. package/node_modules/pi-commandcode-provider/src/commandcode-catalog.ts +9 -2
  55. package/node_modules/pi-commandcode-provider/src/pricing.ts +5 -1
  56. package/node_modules/pi-commandcode-provider/src/responses-compat.ts +24 -1
  57. package/node_modules/pi-commandcode-provider/src/responses-stream.ts +99 -6
  58. package/node_modules/pi-lens/CHANGELOG-USER.md +6 -6
  59. package/node_modules/pi-lens/CHANGELOG.md +132 -0
  60. package/node_modules/pi-lens/README.md +2 -0
  61. package/node_modules/pi-lens/config/dependency-cruiser-eager-allowlist.json +1 -0
  62. package/node_modules/pi-lens/dist/{chunk-LGH2HHZG.js → chunk-25CAONWT.js} +36 -25
  63. package/node_modules/pi-lens/dist/{chunk-ZQSSO7LO.js → chunk-2DWNYVUN.js} +3 -3
  64. package/node_modules/pi-lens/dist/{chunk-YCR6ZYTE.js → chunk-2RQREVGO.js} +1 -1
  65. package/node_modules/pi-lens/dist/{chunk-VWEBZ2JV.js → chunk-2XALJI2K.js} +40 -40
  66. package/node_modules/pi-lens/dist/{chunk-PQXUZYTQ.js → chunk-2YQ5LI7R.js} +4 -4
  67. package/node_modules/pi-lens/dist/{chunk-VSQT6IHZ.js → chunk-35UJUF27.js} +18 -4
  68. package/node_modules/pi-lens/dist/{chunk-OLWGYBYT.js → chunk-3IWMNN2S.js} +17 -17
  69. package/node_modules/pi-lens/dist/chunk-3UTDLQWO.js +88 -0
  70. package/node_modules/pi-lens/dist/chunk-3Z7Z3B7V.js +27 -0
  71. package/node_modules/pi-lens/dist/{chunk-UNP6Y4JV.js → chunk-4E4OCW3L.js} +16 -16
  72. package/node_modules/pi-lens/dist/{chunk-37IDWT6O.js → chunk-4GLSO2EM.js} +13 -11
  73. package/node_modules/pi-lens/dist/{chunk-QV3JPCMK.js → chunk-5HVDD7IA.js} +1 -1
  74. package/node_modules/pi-lens/dist/{chunk-ZRQMENT4.js → chunk-62PIU4TO.js} +1 -1
  75. package/node_modules/pi-lens/dist/{chunk-3TSMQZG6.js → chunk-6MDWNZ7E.js} +2 -2
  76. package/node_modules/pi-lens/dist/{chunk-WLD6BGON.js → chunk-6MWX2J5H.js} +4 -0
  77. package/node_modules/pi-lens/dist/{chunk-SCU62JLX.js → chunk-6MZLS6CK.js} +7 -7
  78. package/node_modules/pi-lens/dist/{chunk-B42AIWPJ.js → chunk-7BWPQZHE.js} +3 -3
  79. package/node_modules/pi-lens/dist/{chunk-I3NZVAMN.js → chunk-7JMEPY6P.js} +10 -10
  80. package/node_modules/pi-lens/dist/{chunk-7DPXUPRF.js → chunk-7ORBRDFY.js} +2 -2
  81. package/node_modules/pi-lens/dist/{chunk-6E5QLMWI.js → chunk-7WAQ3K26.js} +23 -23
  82. package/node_modules/pi-lens/dist/{chunk-2H5GHZKC.js → chunk-AB26NAHA.js} +7 -7
  83. package/node_modules/pi-lens/dist/{chunk-BBSDJTOV.js → chunk-AFSG6YUB.js} +13 -13
  84. package/node_modules/pi-lens/dist/{chunk-XDNWR7SG.js → chunk-ALTHJUZO.js} +2 -2
  85. package/node_modules/pi-lens/dist/{chunk-UN72ZAJ5.js → chunk-AOEVZXR6.js} +9 -9
  86. package/node_modules/pi-lens/dist/{chunk-HRLF35WL.js → chunk-ARTCVE6I.js} +9 -9
  87. package/node_modules/pi-lens/dist/{chunk-LQQNFCQJ.js → chunk-B2QO7GHY.js} +1 -1
  88. package/node_modules/pi-lens/dist/{chunk-I2FYOZNW.js → chunk-BJGWP4UX.js} +10 -10
  89. package/node_modules/pi-lens/dist/{chunk-G53LBDNU.js → chunk-BKJ6WZKP.js} +6 -6
  90. package/node_modules/pi-lens/dist/{chunk-P5MSLVUW.js → chunk-BQ72NQQM.js} +11 -11
  91. package/node_modules/pi-lens/dist/{chunk-K7O6AHSJ.js → chunk-BWGNVM33.js} +11 -11
  92. package/node_modules/pi-lens/dist/{chunk-ADYQRETD.js → chunk-BYIEU4E4.js} +2 -2
  93. package/node_modules/pi-lens/dist/{chunk-7ZVTFLCC.js → chunk-CDAJQBKJ.js} +11 -11
  94. package/node_modules/pi-lens/dist/{chunk-BKWFDWYM.js → chunk-D3UQWOCB.js} +16 -16
  95. package/node_modules/pi-lens/dist/{chunk-3PAS2ERX.js → chunk-DHFJS2I4.js} +8 -8
  96. package/node_modules/pi-lens/dist/{chunk-KNSOA43J.js → chunk-DKXIUGNA.js} +2 -2
  97. package/node_modules/pi-lens/dist/{chunk-LOEJFTF2.js → chunk-DLGJYQML.js} +2 -2
  98. package/node_modules/pi-lens/dist/{chunk-VGRGW4UL.js → chunk-DNJJVKJZ.js} +31 -31
  99. package/node_modules/pi-lens/dist/{chunk-5HBQL7DH.js → chunk-EBXCYEII.js} +3 -3
  100. package/node_modules/pi-lens/dist/chunk-EH6EHFW2.js +73 -0
  101. package/node_modules/pi-lens/dist/{chunk-W26QZ3OM.js → chunk-EKQDQPX6.js} +10 -10
  102. package/node_modules/pi-lens/dist/{chunk-TWEOJE3D.js → chunk-EXHSWN3P.js} +844 -377
  103. package/node_modules/pi-lens/dist/{chunk-4IZZEN63.js → chunk-F7BFIENK.js} +33 -33
  104. package/node_modules/pi-lens/dist/{chunk-ZI7YHV6I.js → chunk-FD4LJQ6Y.js} +5 -5
  105. package/node_modules/pi-lens/dist/{chunk-RIH3UBK4.js → chunk-GFCPPCNR.js} +11 -11
  106. package/node_modules/pi-lens/dist/{chunk-5JB4WENL.js → chunk-GIK6VUCY.js} +1 -1
  107. package/node_modules/pi-lens/dist/{chunk-PPQHMSPH.js → chunk-GNK2IHVG.js} +15 -15
  108. package/node_modules/pi-lens/dist/{chunk-CXQYK4YT.js → chunk-H6DNTQ4V.js} +2 -2
  109. package/node_modules/pi-lens/dist/{chunk-NGNBJIUO.js → chunk-HERQPNY6.js} +8 -8
  110. package/node_modules/pi-lens/dist/{chunk-INBK3HIT.js → chunk-HFIFEH46.js} +3 -3
  111. package/node_modules/pi-lens/dist/{chunk-J2ZB5MDS.js → chunk-HKRESBMC.js} +20 -20
  112. package/node_modules/pi-lens/dist/{chunk-AZG5UJYY.js → chunk-HMXWZUQW.js} +1 -1
  113. package/node_modules/pi-lens/dist/{chunk-XSC3BCN3.js → chunk-HOWHAKXO.js} +6 -6
  114. package/node_modules/pi-lens/dist/{chunk-7CLWC2UH.js → chunk-HUWW77QY.js} +1 -1
  115. package/node_modules/pi-lens/dist/{chunk-KZ732ZVW.js → chunk-IO6P3NBP.js} +1 -1
  116. package/node_modules/pi-lens/dist/{chunk-7WKVCZI4.js → chunk-J7VNGHLN.js} +2 -2
  117. package/node_modules/pi-lens/dist/{chunk-QE7BJQ6K.js → chunk-JGCBMCCS.js} +8 -8
  118. package/node_modules/pi-lens/dist/{chunk-PFJLYRO3.js → chunk-KIQSNH3F.js} +34 -34
  119. package/node_modules/pi-lens/dist/{chunk-JGUDT5KD.js → chunk-KSQJBGRO.js} +5 -5
  120. package/node_modules/pi-lens/dist/{chunk-RJ3APNIP.js → chunk-KXKM2DFP.js} +4 -4
  121. package/node_modules/pi-lens/dist/chunk-L3Q72QGQ.js +25 -0
  122. package/node_modules/pi-lens/dist/{chunk-6GLMMGCX.js → chunk-LDPY22FS.js} +2 -2
  123. package/node_modules/pi-lens/dist/{chunk-3PO4YYOX.js → chunk-M3QGXGY4.js} +3793 -3814
  124. package/node_modules/pi-lens/dist/{chunk-NNEQOC3U.js → chunk-MET776XM.js} +9 -7
  125. package/node_modules/pi-lens/dist/{chunk-X33QECRJ.js → chunk-MKQFSW2Q.js} +2 -2
  126. package/node_modules/pi-lens/dist/{chunk-7U36VQL6.js → chunk-MKW7ZUTT.js} +3 -3
  127. package/node_modules/pi-lens/dist/{chunk-PQF6YGYB.js → chunk-N2U644ZW.js} +4 -18
  128. package/node_modules/pi-lens/dist/{chunk-DI4AZZNY.js → chunk-NAACKIKT.js} +2 -2
  129. package/node_modules/pi-lens/dist/{chunk-O6LCSHHI.js → chunk-NHHS5T52.js} +1 -1
  130. package/node_modules/pi-lens/dist/{chunk-DCA2MXVQ.js → chunk-NIZKGBOU.js} +51 -27
  131. package/node_modules/pi-lens/dist/{chunk-PKWEBMCA.js → chunk-NNDZ7DOP.js} +194 -111
  132. package/node_modules/pi-lens/dist/{chunk-Q7J3JYJ2.js → chunk-NZ7NSKIW.js} +13 -13
  133. package/node_modules/pi-lens/dist/{chunk-S6MCMD27.js → chunk-OG3UCAHV.js} +3 -3
  134. package/node_modules/pi-lens/dist/{chunk-3QXFUP6T.js → chunk-OHTHVILU.js} +12 -12
  135. package/node_modules/pi-lens/dist/{chunk-NHA5K226.js → chunk-P7EV5ISR.js} +17 -2
  136. package/node_modules/pi-lens/dist/{chunk-L6BDRYUK.js → chunk-PVV27TOX.js} +5 -5
  137. package/node_modules/pi-lens/dist/{chunk-HIRBC72R.js → chunk-Q32RJDYC.js} +4 -4
  138. package/node_modules/pi-lens/dist/{chunk-QE5DJ7MX.js → chunk-Q4UQNTLB.js} +4 -4
  139. package/node_modules/pi-lens/dist/{chunk-SDYLT45T.js → chunk-QQGZY2BR.js} +2 -2
  140. package/node_modules/pi-lens/dist/{chunk-QMWKSYWB.js → chunk-S247BOH2.js} +4 -4
  141. package/node_modules/pi-lens/dist/{chunk-ARTYCUGF.js → chunk-S7KUDW73.js} +121 -18
  142. package/node_modules/pi-lens/dist/{chunk-6CFSDLHE.js → chunk-SJ2SR432.js} +17 -17
  143. package/node_modules/pi-lens/dist/{chunk-CQY2HEH7.js → chunk-SL4G67AP.js} +2 -2
  144. package/node_modules/pi-lens/dist/{chunk-LVLPA32Q.js → chunk-T2D2WWP6.js} +48 -11
  145. package/node_modules/pi-lens/dist/{chunk-HIJ4CHFF.js → chunk-T7KHGEJ5.js} +3 -3
  146. package/node_modules/pi-lens/dist/{chunk-74AMPWNC.js → chunk-TABDCX35.js} +2 -2
  147. package/node_modules/pi-lens/dist/chunk-TFSBHRL2.js +25 -0
  148. package/node_modules/pi-lens/dist/{chunk-KNJH6WJQ.js → chunk-TQKWR5AZ.js} +7 -7
  149. package/node_modules/pi-lens/dist/chunk-TWAQFMLW.js +110 -0
  150. package/node_modules/pi-lens/dist/{chunk-TKOFTLGB.js → chunk-UARVPNAU.js} +33 -33
  151. package/node_modules/pi-lens/dist/chunk-UWBD3JMH.js +56 -0
  152. package/node_modules/pi-lens/dist/{chunk-K4Z7MK6T.js → chunk-VEF3GFOL.js} +15 -15
  153. package/node_modules/pi-lens/dist/{chunk-4DAHGU3V.js → chunk-W2JPGW7Q.js} +27 -25
  154. package/node_modules/pi-lens/dist/{chunk-CZJGAOKL.js → chunk-W2YHHNY3.js} +7 -7
  155. package/node_modules/pi-lens/dist/{chunk-R4L7KZ7R.js → chunk-WA6U2URH.js} +9 -9
  156. package/node_modules/pi-lens/dist/{chunk-OZQQ3AIR.js → chunk-WAK2AXQQ.js} +9 -9
  157. package/node_modules/pi-lens/dist/{chunk-DFKOA74L.js → chunk-WH6O4IFD.js} +10 -10
  158. package/node_modules/pi-lens/dist/{chunk-27JQHK7Y.js → chunk-WJ7GY5WJ.js} +1 -1
  159. package/node_modules/pi-lens/dist/{chunk-KXGTLAUW.js → chunk-WWZLT6AM.js} +2 -2
  160. package/node_modules/pi-lens/dist/{chunk-O2MHF7QM.js → chunk-XRLZ75YY.js} +38 -38
  161. package/node_modules/pi-lens/dist/chunk-XWWFESYZ.js +27 -0
  162. package/node_modules/pi-lens/dist/chunk-XZSXSM4K.js +27 -0
  163. package/node_modules/pi-lens/dist/{chunk-C5PLBTNR.js → chunk-Y2LIOCA7.js} +1 -1
  164. package/node_modules/pi-lens/dist/{chunk-AXAR5ZW2.js → chunk-YIEHUKX2.js} +84 -169
  165. package/node_modules/pi-lens/dist/{chunk-B2OXE4AH.js → chunk-YOMLAKU6.js} +182 -180
  166. package/node_modules/pi-lens/dist/{chunk-MOAVEPC4.js → chunk-YV7XVYSJ.js} +11 -11
  167. package/node_modules/pi-lens/dist/{chunk-ZULZS2I6.js → chunk-ZVQUYCBU.js} +996 -365
  168. package/node_modules/pi-lens/dist/index.js +4911 -2376
  169. package/node_modules/pi-lens/dist/mcp/analyze-cli.js +8 -8
  170. package/node_modules/pi-lens/dist/mcp/cli.js +40 -40
  171. package/node_modules/pi-lens/dist/mcp/server.js +321 -234
  172. package/node_modules/pi-lens/dist/mcp/worker.js +58 -58
  173. package/node_modules/pi-lens/dist/probes/installer.js +21 -21
  174. package/node_modules/pi-lens/docs/ci-bot-pr-checks.md +18 -9
  175. package/node_modules/pi-lens/docs/ci.md +7 -0
  176. package/node_modules/pi-lens/docs/defect-shapes.md +43 -28
  177. package/node_modules/pi-lens/docs/globalconfig.md +1 -0
  178. package/node_modules/pi-lens/docs/invariants/dispatch-runners.md +15 -0
  179. package/node_modules/pi-lens/docs/lsp-capability-matrix.md +3 -3
  180. package/node_modules/pi-lens/docs/lsp-idle-eviction.md +3 -2
  181. package/node_modules/pi-lens/docs/module-report-read-symbol.md +6 -2
  182. package/node_modules/pi-lens/docs/pi-lens-merge-policy.md +3 -2
  183. package/node_modules/pi-lens/docs/pi-lens-orchestration.md +2 -1
  184. package/node_modules/pi-lens/docs/pi-lens-subagent.md +2 -1
  185. package/node_modules/pi-lens/docs/servercapabilities.md +1 -1
  186. package/node_modules/pi-lens/docs/settings.md +1 -0
  187. package/node_modules/pi-lens/docs/usage.md +1 -0
  188. package/node_modules/pi-lens/package.json +1 -1
  189. package/package.json +9 -7
  190. package/node_modules/pi-lens/dist/chunk-2H7NFZ4Q.js +0 -25
  191. package/node_modules/pi-lens/dist/chunk-5YJXF2IS.js +0 -56
  192. package/node_modules/pi-lens/dist/chunk-GCSDF5IE.js +0 -27
  193. package/node_modules/pi-lens/dist/chunk-H5API74E.js +0 -67
  194. package/node_modules/pi-lens/dist/chunk-HBX55MWO.js +0 -27
  195. package/node_modules/pi-lens/dist/chunk-JOIKBUQN.js +0 -88
  196. package/node_modules/pi-lens/dist/chunk-M2YMBT5G.js +0 -73
  197. package/node_modules/pi-lens/dist/chunk-MJRGPEQ5.js +0 -25
  198. package/node_modules/pi-lens/dist/chunk-TFKN5EIR.js +0 -27
@@ -4,16 +4,16 @@ import {
4
4
  getServersForFileWithConfig,
5
5
  isAuxiliary,
6
6
  resolveAnalysisRootPath
7
- } from "./chunk-AXAR5ZW2.js";
7
+ } from "./chunk-YIEHUKX2.js";
8
8
  import {
9
9
  emitBounded
10
- } from "./chunk-2H5GHZKC.js";
11
- import {
12
- loadProjectSnapshotWithoutWordIndex
13
- } from "./chunk-NNEQOC3U.js";
10
+ } from "./chunk-AB26NAHA.js";
14
11
  import {
15
12
  resolvePackagePath
16
- } from "./chunk-ZQSSO7LO.js";
13
+ } from "./chunk-2DWNYVUN.js";
14
+ import {
15
+ loadProjectSnapshotWithoutWordIndex
16
+ } from "./chunk-MET776XM.js";
17
17
  import {
18
18
  skipped
19
19
  } from "./chunk-2APSZHHI.js";
@@ -26,26 +26,26 @@ import {
26
26
  isSpawnableCommand,
27
27
  logSessionStart,
28
28
  resetPathWalkMemo
29
- } from "./chunk-B2OXE4AH.js";
29
+ } from "./chunk-YOMLAKU6.js";
30
30
  import {
31
31
  hasToolConfig,
32
32
  resolveToolCwd,
33
33
  toolConfigDirs
34
- } from "./chunk-LVLPA32Q.js";
34
+ } from "./chunk-T2D2WWP6.js";
35
35
  import {
36
36
  findGlobalBinary,
37
37
  findLocalBinAt,
38
38
  findLocalBinUpwards,
39
39
  isLocalBinTrustRefusal,
40
40
  localBinPath
41
- } from "./chunk-LGH2HHZG.js";
41
+ } from "./chunk-25CAONWT.js";
42
42
  import {
43
43
  createAvailabilityProbeFlight,
44
44
  probeToolAsync
45
- } from "./chunk-KXGTLAUW.js";
45
+ } from "./chunk-WWZLT6AM.js";
46
46
  import {
47
47
  normalizeToml
48
- } from "./chunk-KNSOA43J.js";
48
+ } from "./chunk-DKXIUGNA.js";
49
49
  import {
50
50
  classifyProbeFailure,
51
51
  createAvailabilityLatch,
@@ -54,9 +54,10 @@ import {
54
54
  isLatchingOutcome,
55
55
  logAvailabilityDecision,
56
56
  startHostStallSampler
57
- } from "./chunk-6GLMMGCX.js";
57
+ } from "./chunk-LDPY22FS.js";
58
58
  import {
59
59
  NODE_MODULES_BIN_DIRS,
60
+ PROJECT_BIN_DIR_WINDOWS_EXT,
60
61
  VENDOR_BIN_DIRS,
61
62
  VENV_BIN_DIRS,
62
63
  createGenerationSource,
@@ -64,33 +65,39 @@ import {
64
65
  isInSpawnTimeoutCooldown,
65
66
  resolveWindowsCommandForEnvironment,
66
67
  safeSpawnAsync
67
- } from "./chunk-3PO4YYOX.js";
68
+ } from "./chunk-M3QGXGY4.js";
69
+ import {
70
+ PathKeyedMap
71
+ } from "./chunk-N2U644ZW.js";
68
72
  import {
69
73
  TERRAGRUNT_FILENAMES,
70
74
  isJstsFactFile
71
- } from "./chunk-CQY2HEH7.js";
72
- import {
73
- PathKeyedMap
74
- } from "./chunk-PQF6YGYB.js";
75
+ } from "./chunk-SL4G67AP.js";
75
76
  import {
77
+ getProjectTrustGeneration,
76
78
  getProjectTrustState
77
- } from "./chunk-W26QZ3OM.js";
79
+ } from "./chunk-EKQDQPX6.js";
78
80
  import {
79
81
  compareOrdinal,
80
82
  incrementDegradationCount,
81
83
  recordDegradationOnce
82
- } from "./chunk-NHA5K226.js";
84
+ } from "./chunk-P7EV5ISR.js";
83
85
  import {
84
86
  isToolInstallDisabled,
85
87
  logLatency
86
- } from "./chunk-7CLWC2UH.js";
88
+ } from "./chunk-HUWW77QY.js";
87
89
  import {
88
90
  isUnderDir,
89
91
  normalizeEphemeralMapKey,
90
92
  normalizeMapKey,
91
93
  relativeInside,
92
94
  walkUpDirs
93
- } from "./chunk-WLD6BGON.js";
95
+ } from "./chunk-6MWX2J5H.js";
96
+
97
+ // dist/clients/dispatch/runners/utils/runner-helpers.js
98
+ import * as fs2 from "node:fs";
99
+ import * as path2 from "node:path";
100
+ import { delimiter, resolve as resolveCommandPath } from "node:path";
94
101
 
95
102
  // dist/clients/tool-policy.js
96
103
  import * as fs from "node:fs";
@@ -974,6 +981,19 @@ var TOOL_COMMAND_SPECS = new Map([
974
981
  versionArgs: ["--version"]
975
982
  }
976
983
  ],
984
+ [
985
+ // The installer's pyright is an npm package (`.cmd` on Windows). A pip
986
+ // venv's `Scripts/pyright.exe` is matched through the bin dir's own
987
+ // extension (`PROJECT_BIN_DIR_WINDOWS_EXT`), not this row. Unprobed on
988
+ // Windows (#5410 S1).
989
+ "pyright",
990
+ {
991
+ command: "pyright",
992
+ windowsExt: ".cmd",
993
+ versionArgs: ["--version"],
994
+ managedToolId: "pyright"
995
+ }
996
+ ],
977
997
  [
978
998
  "stylelint",
979
999
  {
@@ -1024,7 +1044,9 @@ var TOOL_COMMAND_SPECS = new Map([
1024
1044
  {
1025
1045
  command: "rubocop",
1026
1046
  versionArgs: ["--version"],
1027
- managedToolId: "rubocop"
1047
+ managedToolId: "rubocop",
1048
+ // A Ruby start is slow; the bundler form's probe had this budget (#5410).
1049
+ probeTimeoutMs: 1e4
1028
1050
  }
1029
1051
  ],
1030
1052
  [
@@ -1137,6 +1159,61 @@ var TOOL_COMMAND_SPECS = new Map([
1137
1159
  managedToolId: "golangci-lint"
1138
1160
  }
1139
1161
  ],
1162
+ // The six install-capable runner tools (#5410 S2). Each `windowsExt` is the
1163
+ // one the runner's own checker carried, and each is the installer entry's
1164
+ // release launcher (`.exe`); unprobed on Windows. A project's
1165
+ // `node_modules/.bin` is matched through that dir's own extension
1166
+ // (`PROJECT_BIN_DIR_WINDOWS_EXT`), not these rows. `shfmt`'s row sits with
1167
+ // the formatter binaries below.
1168
+ [
1169
+ "shellcheck",
1170
+ {
1171
+ command: "shellcheck",
1172
+ windowsExt: ".exe",
1173
+ versionArgs: ["--version"],
1174
+ managedToolId: "shellcheck"
1175
+ }
1176
+ ],
1177
+ [
1178
+ "tflint",
1179
+ {
1180
+ command: "tflint",
1181
+ windowsExt: ".exe",
1182
+ versionArgs: ["--version"],
1183
+ managedToolId: "tflint"
1184
+ }
1185
+ ],
1186
+ [
1187
+ "terragrunt",
1188
+ {
1189
+ command: "terragrunt",
1190
+ windowsExt: ".exe",
1191
+ versionArgs: ["--version"],
1192
+ managedToolId: "terragrunt"
1193
+ }
1194
+ ],
1195
+ [
1196
+ // `cue version`: the installer entry's own probe (v0.17.1 exits 0); the CLI
1197
+ // has no `--version`. cue has no execution-policy row, so the shared
1198
+ // ladder never installs it, as cue-vet never did.
1199
+ "cue",
1200
+ {
1201
+ command: "cue",
1202
+ windowsExt: ".exe",
1203
+ versionArgs: ["version"],
1204
+ managedToolId: "cue"
1205
+ }
1206
+ ],
1207
+ [
1208
+ // The spellcheck runner's `typos` CLI. No managedToolId: the installer has
1209
+ // `typos-lsp`, a different binary, and no `typos` entry (#5418).
1210
+ "typos",
1211
+ {
1212
+ command: "typos",
1213
+ windowsExt: ".exe",
1214
+ versionArgs: ["--version"]
1215
+ }
1216
+ ],
1140
1217
  [
1141
1218
  // No managedToolId: no installer entry for `detekt` exists, and it has no
1142
1219
  // execution-policy row, so nothing installs it (#5410).
@@ -1158,6 +1235,28 @@ var TOOL_COMMAND_SPECS = new Map([
1158
1235
  versionArgs: ["-version"]
1159
1236
  }
1160
1237
  ],
1238
+ [
1239
+ // Rubocop's bundler form (`bundle exec rubocop`) is available when
1240
+ // bundler is. No managedToolId: pi-lens never installs bundler.
1241
+ "bundle",
1242
+ {
1243
+ command: "bundle",
1244
+ windowsExt: ".bat",
1245
+ versionArgs: ["--version"],
1246
+ probeTimeoutMs: 1e4
1247
+ }
1248
+ ],
1249
+ [
1250
+ // The archive launcher is `bin/spotbugs`, which prints its version under
1251
+ // `-version` and rejects `--version` (installer entry, #133).
1252
+ "spotbugs",
1253
+ {
1254
+ command: "spotbugs",
1255
+ windowsExt: ".bat",
1256
+ versionArgs: ["-version"],
1257
+ managedToolId: "spotbugs"
1258
+ }
1259
+ ],
1161
1260
  [
1162
1261
  "htmlhint",
1163
1262
  {
@@ -1883,9 +1982,6 @@ function getJstsLintPolicyForCwd(cwd) {
1883
1982
  }
1884
1983
 
1885
1984
  // dist/clients/dispatch/runners/utils/runner-helpers.js
1886
- import * as fs2 from "node:fs";
1887
- import * as path2 from "node:path";
1888
- import { delimiter, resolve as resolveCommandPath } from "node:path";
1889
1985
  function toolAbsentSkip(cwd, tool = {}) {
1890
1986
  const ownVerdict = "verdict" in tool;
1891
1987
  const checker = ownVerdict ? void 0 : tool.checker ?? (tool.id ? toolBinaryChecker(tool.id, "managed-first") ?? void 0 : void 0);
@@ -2057,12 +2153,13 @@ function resolveAdoptedRootCommand(command, ctx, cwd) {
2057
2153
  return null;
2058
2154
  }
2059
2155
  }
2060
- function createVenvFinder(command, windowsExt = "", verificationArgs = ["--version"], allowProjectLocal = true, projectBinDirs = VENV_BIN_DIRS) {
2156
+ function createVenvFinder(command, windowsExt = "", verificationArgs = ["--version"], allowProjectLocal = true, projectBinDirs = VENV_BIN_DIRS, projectBinDirWindowsExt) {
2061
2157
  return async (cwd) => {
2062
2158
  if (allowProjectLocal) {
2063
2159
  const venvBin = localBinPath(findLocalBinAt(command, cwd, {
2064
2160
  windowsExt,
2065
- binDirs: projectBinDirs
2161
+ binDirs: projectBinDirs,
2162
+ binDirWindowsExt: projectBinDirWindowsExt
2066
2163
  }));
2067
2164
  if (venvBin)
2068
2165
  return { path: venvBin, rung: "venv" };
@@ -2133,7 +2230,6 @@ async function discoverManagedTool(toolId) {
2133
2230
  var installAttemptsByCwd = new PathKeyedMap(normalizeMapKey);
2134
2231
  var resolveInstallInFlightByCwd = new PathKeyedMap(normalizeEphemeralMapKey);
2135
2232
  var correctedAvailabilityByCwd = new PathKeyedMap(normalizeMapKey);
2136
- var uncorrectedEmissionsByCwd = new PathKeyedMap(normalizeMapKey);
2137
2233
  var latchedUnavailableByCwd = new PathKeyedMap(normalizeMapKey);
2138
2234
  var availabilityGeneration = createGenerationSource("dispatch-availability");
2139
2235
  var getDispatchAvailabilityGeneration = () => availabilityGeneration.current();
@@ -2256,10 +2352,6 @@ function emitCompensatingAvailableRow(cwd, toolId, installStartedAt, installedPa
2256
2352
  if (correctsLatchedRow) {
2257
2353
  noteAvailabilityCorrected(cwd, toolId);
2258
2354
  clearLatchedUnavailable(cwd, ...latchKeys);
2259
- } else {
2260
- if (hasId(uncorrectedEmissionsByCwd, cwd, toolId))
2261
- return;
2262
- addId(uncorrectedEmissionsByCwd, cwd, toolId);
2263
2355
  }
2264
2356
  const attempt = getInstallAttempt(toolId);
2265
2357
  const installEvidence = describeInstallAttempt(attempt);
@@ -2299,7 +2391,6 @@ function resetDispatchAvailabilityState() {
2299
2391
  installAttemptsByCwd.clear();
2300
2392
  resolveInstallInFlightByCwd.clear();
2301
2393
  correctedAvailabilityByCwd.clear();
2302
- uncorrectedEmissionsByCwd.clear();
2303
2394
  latchedUnavailableByCwd.clear();
2304
2395
  managedBinaryVerdicts.clear();
2305
2396
  managedVerifyInFlight.clear();
@@ -2318,12 +2409,13 @@ function createAvailabilityChecker(command, windowsExt = "", versionArgs = ["--v
2318
2409
  const pathRung = () => ({ path: command, rung: "path" });
2319
2410
  const projectRung = (cwd) => findLocalBinAt(command, cwd, {
2320
2411
  windowsExt,
2321
- binDirs: options.projectBinDirs ?? VENV_BIN_DIRS
2412
+ binDirs: options.projectBinDirs ?? VENV_BIN_DIRS,
2413
+ binDirWindowsExt: options.projectBinDirWindowsExt
2322
2414
  });
2323
2415
  const findCommand = options.pathOnly ? async () => pathRung() : pathFirst ? async (cwd) => {
2324
2416
  const project = allowProjectLocal ? localBinPath(projectRung(cwd)) : void 0;
2325
2417
  return project ? { path: project, rung: "venv" } : pathRung();
2326
- } : createVenvFinder(command, windowsExt, versionArgs, allowProjectLocal, options.projectBinDirs);
2418
+ } : createVenvFinder(command, windowsExt, versionArgs, allowProjectLocal, options.projectBinDirs, options.projectBinDirWindowsExt);
2327
2419
  const findBeyondProject = createVenvFinder(command, windowsExt, versionArgs, false);
2328
2420
  async function nextRung(from, cwd) {
2329
2421
  if (!pathFirst)
@@ -2362,23 +2454,29 @@ function createAvailabilityChecker(command, windowsExt = "", versionArgs = ["--v
2362
2454
  cacheByCwd.set(key, created);
2363
2455
  return created;
2364
2456
  }
2365
- function noteDecision(cache, resolvedCwd, verdict) {
2366
- cache.elapsedMs = verdict.elapsedMs;
2367
- cache.rejectedOutput = verdict.available ? void 0 : verdict.rejectedOutput;
2457
+ function noteDecision(cache, resolvedCwd, verdict, publishes) {
2368
2458
  let retryAfterMs;
2369
- if (verdict.available) {
2370
- cache.latch.noteAvailable(verdict.cause);
2371
- } else {
2372
- cache.command = null;
2373
- const delay = cache.latch.noteUnavailable(verdict.outcome, verdict.cause);
2374
- if (delay > 0)
2375
- retryAfterMs = delay;
2459
+ if (publishes) {
2460
+ cache.elapsedMs = verdict.elapsedMs;
2461
+ cache.rejectedOutput = verdict.available ? void 0 : verdict.rejectedOutput;
2462
+ if (verdict.available) {
2463
+ if (verdict.command !== void 0)
2464
+ cache.command = verdict.command;
2465
+ cache.latch.noteAvailable(verdict.cause);
2466
+ } else {
2467
+ cache.command = null;
2468
+ const delay = cache.latch.noteUnavailable(verdict.outcome, verdict.cause);
2469
+ if (delay > 0)
2470
+ retryAfterMs = delay;
2471
+ }
2376
2472
  }
2377
- const latched = verdict.available || isLatchingOutcome(verdict.outcome);
2378
- if (!verdict.available && latched) {
2379
- noteLatchedUnavailable(resolvedCwd, command);
2380
- } else if (verdict.available) {
2381
- clearLatchedUnavailable(resolvedCwd, ...latchKeysFor(command));
2473
+ const latched = publishes && (verdict.available || isLatchingOutcome(verdict.outcome));
2474
+ if (publishes) {
2475
+ if (!verdict.available && latched) {
2476
+ noteLatchedUnavailable(resolvedCwd, command);
2477
+ } else if (verdict.available) {
2478
+ clearLatchedUnavailable(resolvedCwd, ...latchKeysFor(command));
2479
+ }
2382
2480
  }
2383
2481
  logAvailabilityDecision({
2384
2482
  tool: command,
@@ -2413,17 +2511,21 @@ function createAvailabilityChecker(command, windowsExt = "", versionArgs = ["--v
2413
2511
  cache.command = null;
2414
2512
  }
2415
2513
  const key = path2.resolve(resolvedCwd);
2514
+ const trustGeneration = getProjectTrustGeneration();
2416
2515
  const existing = inFlightByCwd.get(key);
2516
+ if (existing?.trustGeneration === trustGeneration)
2517
+ return existing.promise;
2417
2518
  if (existing)
2418
- return existing;
2519
+ cache.latch.reset();
2419
2520
  const promiseGeneration = checkerGeneration;
2420
2521
  let promise;
2522
+ const note = (verdict) => noteDecision(cache, resolvedCwd, verdict, inFlightByCwd.get(key)?.promise === promise);
2421
2523
  promise = (async () => {
2422
2524
  const fastPath = await options.fastPath?.();
2423
2525
  if (fastPath) {
2424
- cache.command = fastPath;
2425
- noteDecision(cache, resolvedCwd, {
2526
+ note({
2426
2527
  available: true,
2528
+ command: fastPath,
2427
2529
  outcome: "success",
2428
2530
  cause: "fast-path",
2429
2531
  elapsedMs: 0,
@@ -2436,7 +2538,7 @@ function createAvailabilityChecker(command, windowsExt = "", versionArgs = ["--v
2436
2538
  try {
2437
2539
  const cwdStat = await fs2.promises.stat(resolvedCwd);
2438
2540
  if (!cwdStat.isDirectory()) {
2439
- noteDecision(cache, resolvedCwd, {
2541
+ note({
2440
2542
  available: false,
2441
2543
  outcome: "non-installable",
2442
2544
  cause: "bad-cwd",
@@ -2448,7 +2550,7 @@ function createAvailabilityChecker(command, windowsExt = "", versionArgs = ["--v
2448
2550
  return false;
2449
2551
  }
2450
2552
  } catch {
2451
- noteDecision(cache, resolvedCwd, {
2553
+ note({
2452
2554
  available: false,
2453
2555
  outcome: "non-installable",
2454
2556
  cause: "bad-cwd",
@@ -2463,7 +2565,7 @@ function createAvailabilityChecker(command, windowsExt = "", versionArgs = ["--v
2463
2565
  for (; ; ) {
2464
2566
  const cmd = resolution.path;
2465
2567
  if (isInSpawnTimeoutCooldown(cmd)) {
2466
- noteDecision(cache, resolvedCwd, {
2568
+ note({
2467
2569
  available: false,
2468
2570
  outcome: "transient",
2469
2571
  cause: "probe-timeout",
@@ -2483,7 +2585,7 @@ function createAvailabilityChecker(command, windowsExt = "", versionArgs = ["--v
2483
2585
  let hostStallMs;
2484
2586
  let probeJoined = false;
2485
2587
  try {
2486
- const shared = checkerProbeFlights.run(`checker:${command}|${versionArgs.join("|")}|${key}|${checkerFlightGeneration}|${windowsExt}|${cmd}|${JSON.stringify(Object.entries(env ?? {}).sort(([a], [b]) => compareOrdinal(a, b)))}`, () => (
2588
+ const shared = checkerProbeFlights.run(`checker:${command}|${versionArgs.join("|")}|${key}|${trustGeneration}|${checkerFlightGeneration}|${windowsExt}|${cmd}|${JSON.stringify(Object.entries(env ?? {}).sort(([a], [b]) => compareOrdinal(a, b)))}`, () => (
2487
2589
  // A bare PATH-only probe goes through the cwd-less probe seam
2488
2590
  // (#2894): nothing it answers is read out of a project.
2489
2591
  options.pathOnly ? probeToolAsync(cmd, versionArgs, {
@@ -2505,9 +2607,9 @@ function createAvailabilityChecker(command, windowsExt = "", versionArgs = ["--v
2505
2607
  const elapsedMs = Date.now() - startedAt;
2506
2608
  recordAvailabilityProbeOverrun(command, resolvedCwd, elapsedMs, options.probeTimeout ?? 5e3, result.failure);
2507
2609
  if (!result.error && result.status === 0) {
2508
- cache.command = cmd;
2509
- noteDecision(cache, resolvedCwd, {
2610
+ note({
2510
2611
  available: true,
2612
+ command: cmd,
2511
2613
  outcome: "success",
2512
2614
  cause: "ok",
2513
2615
  elapsedMs,
@@ -2536,7 +2638,7 @@ function createAvailabilityChecker(command, windowsExt = "", versionArgs = ["--v
2536
2638
  }
2537
2639
  if (result.spawnFailure?.kind === "tool-not-found")
2538
2640
  resetPathWalkMemo();
2539
- noteDecision(cache, resolvedCwd, {
2641
+ note({
2540
2642
  available: false,
2541
2643
  outcome,
2542
2644
  cause,
@@ -2551,11 +2653,11 @@ function createAvailabilityChecker(command, windowsExt = "", versionArgs = ["--v
2551
2653
  return false;
2552
2654
  }
2553
2655
  })().finally(() => {
2554
- if (checkerGeneration === promiseGeneration && inFlightByCwd.get(key) === promise) {
2656
+ if (checkerGeneration === promiseGeneration && inFlightByCwd.get(key)?.promise === promise) {
2555
2657
  inFlightByCwd.delete(key);
2556
2658
  }
2557
2659
  });
2558
- inFlightByCwd.set(key, promise);
2660
+ inFlightByCwd.set(key, { trustGeneration, promise });
2559
2661
  return promise;
2560
2662
  }
2561
2663
  function getCommand(cwd) {
@@ -2765,7 +2867,11 @@ function toolBinaryChecker(toolId, order) {
2765
2867
  return null;
2766
2868
  const checker = createAvailabilityChecker(spec.command, spec.windowsExt ?? "", spec.versionArgs ?? ["--version"], {
2767
2869
  projectBinDirs: [...VENV_BIN_DIRS, ...NODE_MODULES_BIN_DIRS],
2768
- order
2870
+ projectBinDirWindowsExt: PROJECT_BIN_DIR_WINDOWS_EXT,
2871
+ ...spec.probeTimeoutMs !== void 0 && {
2872
+ probeTimeout: spec.probeTimeoutMs
2873
+ },
2874
+ ...order === "path-only" ? { pathOnly: true } : { order }
2769
2875
  });
2770
2876
  toolBinaryCheckers.set(key, checker);
2771
2877
  return checker;
@@ -2776,6 +2882,18 @@ async function resolveToolCommandWithInstallFallback(cwd, toolId) {
2776
2882
  return null;
2777
2883
  return resolveAvailableOrInstall(checker, getToolCommandSpec(toolId)?.managedToolId ?? toolId, cwd);
2778
2884
  }
2885
+ async function toolOnPath(toolId) {
2886
+ const checker = toolBinaryChecker(toolId, "path-only");
2887
+ if (!checker)
2888
+ return false;
2889
+ const trustGeneration = getProjectTrustGeneration();
2890
+ const onPath = await checker.isAvailableAsync();
2891
+ if (getProjectTrustGeneration() !== trustGeneration)
2892
+ return void 0;
2893
+ if (onPath)
2894
+ return true;
2895
+ return checker.getOutcome() === "transient" ? void 0 : false;
2896
+ }
2779
2897
  var UNPROBED_VERDICT = {
2780
2898
  outcome: null,
2781
2899
  cause: null,
@@ -2796,51 +2914,14 @@ async function resolveInstalledToolCommand(cwd, toolId) {
2796
2914
  const { cause, rejectedOutput } = checker.getVerdict(cwd);
2797
2915
  return cause === "probe-rejected" ? { command: null, rejected: rejectedOutput ?? "" } : { command: null };
2798
2916
  }
2799
- async function verifyOrInstallCommand(command, toolId, cwd, versionArgs = ["--version"], timeout = 5e3, onUnusable = () => {
2800
- }) {
2801
- const spawnable = await isSpawnableCommand(command);
2802
- if (spawnable) {
2803
- const versionCheck = await safeSpawnAsync(command, versionArgs, {
2804
- timeout,
2805
- cwd,
2806
- input: "",
2807
- cooldown: false
2808
- });
2809
- if (!versionCheck.error && versionCheck.status === 0) {
2810
- return command;
2811
- }
2812
- const { outcome, cause } = classifyProbeFailure(versionCheck, { command });
2813
- onUnusable({ outcome, cause });
2814
- return null;
2815
- }
2816
- if (!shouldAutoInstallTool(toolId))
2817
- return null;
2818
- const state = installStateFor(cwd, toolId);
2819
- if (state.suppressed)
2820
- return null;
2821
- const installStartedAt = Date.now();
2822
- const installed = await ensureTool(toolId);
2823
- if (installed) {
2824
- noteInstallSuccess(toolId, cwd);
2825
- emitCompensatingAvailableRow(cwd, toolId, installStartedAt, installed, latchKeysFor(toolId, command));
2826
- return installed;
2827
- }
2828
- noteInstallFailure(toolId, cwd);
2829
- return null;
2830
- }
2831
- async function resolveCommandArgsWithInstallFallback(command, toolId, cwd, versionArgs = ["--version"], timeout = 5e3, onUnusable) {
2832
- const versionCheck = await safeSpawnAsync(command.cmd, [...command.args, ...versionArgs], { timeout, cwd, input: "", cooldown: false });
2833
- if (!versionCheck.error && versionCheck.status === 0) {
2834
- return command;
2835
- }
2836
- const installed = await verifyOrInstallCommand(command.cmd, toolId, cwd, versionArgs, timeout, onUnusable);
2837
- if (!installed) {
2838
- return null;
2839
- }
2840
- if (installed === command.cmd) {
2841
- return command;
2917
+ async function resolveRubocopCommand(form, cwd) {
2918
+ if (form.cmd === "bundle") {
2919
+ const bundle = await resolveToolCommandWithInstallFallback(cwd, "bundle");
2920
+ if (bundle)
2921
+ return { cmd: bundle, args: form.args };
2842
2922
  }
2843
- return { cmd: installed, args: [] };
2923
+ const cmd = await resolveToolCommandWithInstallFallback(cwd, "rubocop");
2924
+ return cmd ? { cmd, args: [] } : null;
2844
2925
  }
2845
2926
  async function resolveAvailableOrInstallUnshared(checker, toolId, cwd) {
2846
2927
  const available = await checker.isAvailableAsync(cwd);
@@ -2906,9 +2987,6 @@ async function resolveLocalFirstAsync(toolName, cwd, windowsExt = ".cmd") {
2906
2987
  }
2907
2988
  return { cmd: "npx", args: ["--no", toolName] };
2908
2989
  }
2909
- var pyright = createAvailabilityChecker("pyright", ".exe");
2910
- var ruff = createAvailabilityChecker("ruff", ".exe");
2911
- var biome = createAvailabilityChecker("biome");
2912
2990
  function resolveRunnerCwd(ctx, tool) {
2913
2991
  return resolveToolCwd("runner", tool, ctx.filePath, ctx).cwd;
2914
2992
  }
@@ -2939,18 +3017,23 @@ export {
2939
3017
  coveringLaneAvailable,
2940
3018
  findManagedNodeToolBinary,
2941
3019
  resolveAdoptedRootCommand,
3020
+ createVenvFinder,
2942
3021
  resolveManagedToolClient,
2943
3022
  getManagedToolEnvironment,
2944
3023
  discoverManagedTool,
3024
+ getDispatchAvailabilityGeneration,
3025
+ recordAvailabilityProbeOverrun,
2945
3026
  resetDispatchAvailabilityState,
2946
3027
  createAvailabilityChecker,
2947
3028
  createCwdCachedProbe,
3029
+ resolveNodeToolCommand,
2948
3030
  resolveToolCommand,
2949
3031
  resolveVendorToolCommand,
2950
3032
  resolveToolCommandWithInstallFallback,
3033
+ toolOnPath,
2951
3034
  toolBinaryVerdict,
2952
3035
  resolveInstalledToolCommand,
2953
- resolveCommandArgsWithInstallFallback,
3036
+ resolveRubocopCommand,
2954
3037
  resolveAvailableOrInstall,
2955
3038
  resolveLocalFirstAsync,
2956
3039
  resolveRunnerCwd
@@ -45,26 +45,26 @@ import {
45
45
  snapshotWorkerEnabled,
46
46
  terminateProjectSnapshotPersistWorkerForTests,
47
47
  waitForProjectSnapshotPersistsForTests
48
- } from "./chunk-NNEQOC3U.js";
49
- import "./chunk-P5MSLVUW.js";
50
- import "./chunk-ADYQRETD.js";
51
- import "./chunk-DI4AZZNY.js";
48
+ } from "./chunk-MET776XM.js";
49
+ import "./chunk-BQ72NQQM.js";
50
+ import "./chunk-BYIEU4E4.js";
51
+ import "./chunk-NAACKIKT.js";
52
52
  import "./chunk-2BEMIWEW.js";
53
53
  import "./chunk-IJYGIDF4.js";
54
54
  import "./chunk-TQWRH25U.js";
55
55
  import "./chunk-UYXV5NIS.js";
56
- import "./chunk-3PO4YYOX.js";
57
- import "./chunk-5JB4WENL.js";
56
+ import "./chunk-M3QGXGY4.js";
57
+ import "./chunk-GIK6VUCY.js";
58
58
  import "./chunk-QYF5S6P6.js";
59
- import "./chunk-CQY2HEH7.js";
60
- import "./chunk-PQF6YGYB.js";
61
- import "./chunk-LOEJFTF2.js";
62
- import "./chunk-W26QZ3OM.js";
63
- import "./chunk-NHA5K226.js";
59
+ import "./chunk-N2U644ZW.js";
60
+ import "./chunk-SL4G67AP.js";
61
+ import "./chunk-DLGJYQML.js";
62
+ import "./chunk-EKQDQPX6.js";
63
+ import "./chunk-P7EV5ISR.js";
64
64
  import "./chunk-S26LC76R.js";
65
- import "./chunk-7CLWC2UH.js";
65
+ import "./chunk-HUWW77QY.js";
66
66
  import "./chunk-LJDODBBZ.js";
67
- import "./chunk-WLD6BGON.js";
67
+ import "./chunk-6MWX2J5H.js";
68
68
  import "./chunk-NXL4FFQQ.js";
69
69
  export {
70
70
  PROJECT_SNAPSHOT_MAX_WARM_ROOTS,
@@ -3,14 +3,14 @@ import {
3
3
  EXCLUDED_DIRS,
4
4
  getExcludedDirGlobs,
5
5
  listNestedLinkedWorktreeRoots
6
- } from "./chunk-3PO4YYOX.js";
6
+ } from "./chunk-M3QGXGY4.js";
7
7
  import {
8
8
  escapeRegExp
9
- } from "./chunk-NHA5K226.js";
9
+ } from "./chunk-P7EV5ISR.js";
10
10
  import {
11
11
  realpathOrResolve,
12
12
  relativeInside
13
- } from "./chunk-WLD6BGON.js";
13
+ } from "./chunk-6MWX2J5H.js";
14
14
 
15
15
  // dist/clients/scratch-tree-policy.js
16
16
  import { relative, resolve } from "node:path";
@@ -8,21 +8,21 @@ import {
8
8
  getDefaultStartupTools,
9
9
  resolveLanguageRootForFile,
10
10
  rootMarkersForFile
11
- } from "./chunk-XSC3BCN3.js";
12
- import "./chunk-27JQHK7Y.js";
13
- import "./chunk-R4L7KZ7R.js";
14
- import "./chunk-74AMPWNC.js";
15
- import "./chunk-3PO4YYOX.js";
11
+ } from "./chunk-HOWHAKXO.js";
12
+ import "./chunk-WJ7GY5WJ.js";
13
+ import "./chunk-WA6U2URH.js";
14
+ import "./chunk-TABDCX35.js";
15
+ import "./chunk-M3QGXGY4.js";
16
16
  import "./chunk-QYF5S6P6.js";
17
- import "./chunk-CQY2HEH7.js";
18
- import "./chunk-PQF6YGYB.js";
19
- import "./chunk-LOEJFTF2.js";
20
- import "./chunk-W26QZ3OM.js";
21
- import "./chunk-NHA5K226.js";
17
+ import "./chunk-N2U644ZW.js";
18
+ import "./chunk-SL4G67AP.js";
19
+ import "./chunk-DLGJYQML.js";
20
+ import "./chunk-EKQDQPX6.js";
21
+ import "./chunk-P7EV5ISR.js";
22
22
  import "./chunk-S26LC76R.js";
23
- import "./chunk-7CLWC2UH.js";
23
+ import "./chunk-HUWW77QY.js";
24
24
  import "./chunk-LJDODBBZ.js";
25
- import "./chunk-WLD6BGON.js";
25
+ import "./chunk-6MWX2J5H.js";
26
26
  import "./chunk-NXL4FFQQ.js";
27
27
  export {
28
28
  SUPPORTED_FILE_KINDS,