@herbertgao/pi-extensions 2026.11.6 → 2026.11.8

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 (419) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +9 -9
  3. package/THIRD_PARTY_NOTICES.md +2 -2
  4. package/node_modules/@herbertgao/pi-impeccable/CHANGELOG.md +6 -0
  5. package/node_modules/@herbertgao/pi-impeccable/README.md +2 -2
  6. package/node_modules/@herbertgao/pi-impeccable/package.json +4 -4
  7. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/SKILL.md +1 -1
  8. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/VERSION +1 -1
  9. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/engine-checksums.txt +5 -5
  10. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/live-browser.js +71 -56
  11. package/node_modules/@herbertgao/pi-subagents/CHANGELOG.md +6 -0
  12. package/node_modules/@herbertgao/pi-subagents/README.md +2 -2
  13. package/node_modules/@herbertgao/pi-subagents/package.json +4 -4
  14. package/node_modules/@herbertgao/pi-subagents/src/ui/conversation-viewer.ts +10 -6
  15. package/node_modules/@herbertgao/pi-subagents/src/ui/viewer-keys.ts +47 -4
  16. package/node_modules/@narumitw/pi-btw/CHANGELOG.md +12 -0
  17. package/node_modules/@narumitw/pi-btw/dist/chunks/{main-tree-picker-WHRN26NJ.ts → main-tree-picker-3PXJARQW.ts} +59 -53
  18. package/node_modules/@narumitw/pi-btw/dist/chunks/main-tree-picker-3PXJARQW.ts.map +7 -0
  19. package/node_modules/@narumitw/pi-btw/dist/index.ts +1 -1
  20. package/node_modules/@narumitw/pi-btw/docs/main-tree-snapshots.md +39 -0
  21. package/node_modules/@narumitw/pi-btw/docs/workflows.md +1 -0
  22. package/node_modules/@narumitw/pi-btw/package.json +1 -1
  23. package/node_modules/@narumitw/pi-btw/src/main-tree-picker.ts +73 -63
  24. package/node_modules/@pi-plugins/fast-mode/dist/index.d.mts +1 -4
  25. package/node_modules/@pi-plugins/fast-mode/dist/index.d.mts.map +1 -1
  26. package/node_modules/@pi-plugins/fast-mode/dist/index.mjs +5620 -2946
  27. package/node_modules/@pi-plugins/fast-mode/dist/index.mjs.map +1 -1
  28. package/node_modules/@pi-plugins/fast-mode/package.json +11 -11
  29. package/node_modules/pi-commandcode-provider/CHANGELOG.md +5 -0
  30. package/node_modules/pi-commandcode-provider/README.md +1 -1
  31. package/node_modules/pi-commandcode-provider/package.json +1 -1
  32. package/node_modules/pi-commandcode-provider/src/commandcode-catalog.ts +5 -4
  33. package/node_modules/pi-commandcode-provider/src/pricing.ts +8 -2
  34. package/node_modules/pi-lens/CHANGELOG-USER.md +12 -12
  35. package/node_modules/pi-lens/CHANGELOG.md +212 -0
  36. package/node_modules/pi-lens/README.md +1 -0
  37. package/node_modules/pi-lens/dist/{chunk-W4CUK5G6.js → chunk-2HWVG3IM.js} +2 -2
  38. package/node_modules/pi-lens/dist/{chunk-B2YUE6YD.js → chunk-3EIZMRXI.js} +11 -11
  39. package/node_modules/pi-lens/dist/{chunk-Y3EHLUPL.js → chunk-3MHY4BQY.js} +4 -4
  40. package/node_modules/pi-lens/dist/{chunk-IDCTDKIA.js → chunk-3PMLYGJN.js} +6 -6
  41. package/node_modules/pi-lens/dist/{chunk-VPFRU5IG.js → chunk-3QMLB4TI.js} +3 -3
  42. package/node_modules/pi-lens/dist/{chunk-NL5LSKVD.js → chunk-3R3Z54J7.js} +10 -4
  43. package/node_modules/pi-lens/dist/chunk-3VWEZ6H2.js +72 -0
  44. package/node_modules/pi-lens/dist/{chunk-YT2VR4SL.js → chunk-5EEWCJG7.js} +7 -7
  45. package/node_modules/pi-lens/dist/{chunk-4NCDHTFI.js → chunk-5FDUKJZO.js} +10 -10
  46. package/node_modules/pi-lens/dist/{chunk-QUQY3IME.js → chunk-5KLRCUDT.js} +9 -8
  47. package/node_modules/pi-lens/dist/{chunk-FOEPIX76.js → chunk-6EIV3H7O.js} +158 -61
  48. package/node_modules/pi-lens/dist/{chunk-GMC4ZGYR.js → chunk-6EXGCXM5.js} +5 -5
  49. package/node_modules/pi-lens/dist/{chunk-CTB5BAJI.js → chunk-6GWCYEP7.js} +17 -16
  50. package/node_modules/pi-lens/dist/{chunk-NBM7PNBP.js → chunk-6JLNZ6DP.js} +37 -26
  51. package/node_modules/pi-lens/dist/{chunk-ACRJ2GZ5.js → chunk-7424ANRU.js} +2 -2
  52. package/node_modules/pi-lens/dist/{chunk-TJQSYX3J.js → chunk-75TVYCQW.js} +6 -6
  53. package/node_modules/pi-lens/dist/{chunk-J6BR5XN2.js → chunk-7BEADGAZ.js} +3 -3
  54. package/node_modules/pi-lens/dist/chunk-7KWI5UHL.js +28 -0
  55. package/node_modules/pi-lens/dist/{chunk-GUGKKGG7.js → chunk-7M64NTAK.js} +3 -3
  56. package/node_modules/pi-lens/dist/{chunk-SKVNHCT5.js → chunk-7T64QA5D.js} +48 -43
  57. package/node_modules/pi-lens/dist/{chunk-YQA34KAF.js → chunk-7ZVEFWOE.js} +11 -11
  58. package/node_modules/pi-lens/dist/{chunk-SJQUWQR6.js → chunk-AAIVSSUU.js} +2 -2
  59. package/node_modules/pi-lens/dist/{chunk-6I44EDNQ.js → chunk-AD7JDEI6.js} +17 -15
  60. package/node_modules/pi-lens/dist/{chunk-3FRI5H4T.js → chunk-AGEQRJ5A.js} +24 -10
  61. package/node_modules/pi-lens/dist/{chunk-NPNFGYLV.js → chunk-AVBEPUCD.js} +19 -2
  62. package/node_modules/pi-lens/dist/{chunk-OTSTS7L2.js → chunk-AYDE7RFV.js} +34 -3
  63. package/node_modules/pi-lens/dist/{chunk-UOO4D2TK.js → chunk-AZXTLZHE.js} +34 -35
  64. package/node_modules/pi-lens/dist/{chunk-AWQWXSW4.js → chunk-B4FAFEBP.js} +7 -2
  65. package/node_modules/pi-lens/dist/{chunk-S3WFVG5P.js → chunk-BEIPWPVR.js} +137 -126
  66. package/node_modules/pi-lens/dist/{chunk-CZAWWXP6.js → chunk-BMMRLJA4.js} +7 -5
  67. package/node_modules/pi-lens/dist/{chunk-QWTHFFU6.js → chunk-C6V2DSZZ.js} +12 -12
  68. package/node_modules/pi-lens/dist/chunk-CIA7X2PZ.js +26 -0
  69. package/node_modules/pi-lens/dist/{chunk-ZD4KVFXI.js → chunk-D2ZYRI7M.js} +172 -3
  70. package/node_modules/pi-lens/dist/{chunk-F6FT6BVQ.js → chunk-D6ANA6YU.js} +34 -35
  71. package/node_modules/pi-lens/dist/{chunk-HILZE4BQ.js → chunk-D7OEGXDX.js} +396 -306
  72. package/node_modules/pi-lens/dist/{chunk-FCQSZQAT.js → chunk-DFAY7JUN.js} +14 -5
  73. package/node_modules/pi-lens/dist/{chunk-DOUAWKLO.js → chunk-DIIDMDZU.js} +12 -12
  74. package/node_modules/pi-lens/dist/{chunk-6MDM5MQT.js → chunk-DZSQXG66.js} +394 -162
  75. package/node_modules/pi-lens/dist/{chunk-QGITU23N.js → chunk-E3PNZDPH.js} +1 -1
  76. package/node_modules/pi-lens/dist/{chunk-QSCZAP24.js → chunk-E5SSUV2A.js} +4 -4
  77. package/node_modules/pi-lens/dist/{chunk-H65TYP6V.js → chunk-ET3DSSFZ.js} +37 -21
  78. package/node_modules/pi-lens/dist/chunk-F7AMFFVK.js +22 -0
  79. package/node_modules/pi-lens/dist/{chunk-4ITEFRDH.js → chunk-FDLGJFAE.js} +37 -145
  80. package/node_modules/pi-lens/dist/{chunk-XAFZJEXY.js → chunk-FVQKX5KI.js} +23 -23
  81. package/node_modules/pi-lens/dist/{chunk-CYUJB552.js → chunk-G3LR6V6N.js} +18 -12
  82. package/node_modules/pi-lens/dist/{chunk-ZOPXB2KK.js → chunk-GHATCG2A.js} +111 -107
  83. package/node_modules/pi-lens/dist/{chunk-XVB3Q2PG.js → chunk-HGEE5LDW.js} +3 -2
  84. package/node_modules/pi-lens/dist/{chunk-UNBRHPHJ.js → chunk-HJWF7CGW.js} +17 -15
  85. package/node_modules/pi-lens/dist/chunk-HRQTYU2T.js +355 -0
  86. package/node_modules/pi-lens/dist/{chunk-QUPYLQA4.js → chunk-HSTN27NR.js} +14 -9
  87. package/node_modules/pi-lens/dist/{chunk-YF4G5NN5.js → chunk-HWMNTQBJ.js} +2 -2
  88. package/node_modules/pi-lens/dist/{chunk-K6WIBVMK.js → chunk-HYDJUVOE.js} +8 -9
  89. package/node_modules/pi-lens/dist/{chunk-OPFNQBS5.js → chunk-HYR25MV3.js} +21 -25
  90. package/node_modules/pi-lens/dist/{chunk-MAD4QJTP.js → chunk-IC4L65U7.js} +21 -17
  91. package/node_modules/pi-lens/dist/{chunk-I32RSMH6.js → chunk-ILC2B7IJ.js} +11 -10
  92. package/node_modules/pi-lens/dist/{chunk-BGLS5SDN.js → chunk-IT7MFVGP.js} +2 -2
  93. package/node_modules/pi-lens/dist/{chunk-KDCIG23C.js → chunk-IZ36G463.js} +13 -9
  94. package/node_modules/pi-lens/dist/{chunk-ALIZWXHZ.js → chunk-JKAVKTMY.js} +9 -9
  95. package/node_modules/pi-lens/dist/{chunk-3HM4BUHR.js → chunk-JLMS7EMD.js} +16 -15
  96. package/node_modules/pi-lens/dist/{chunk-HSYFLOZY.js → chunk-JRSS6KM4.js} +3 -3
  97. package/node_modules/pi-lens/dist/{chunk-VCRVNLE7.js → chunk-K2GV34T2.js} +9 -1
  98. package/node_modules/pi-lens/dist/{chunk-KJ3AHOCK.js → chunk-K2LD6YNH.js} +10 -10
  99. package/node_modules/pi-lens/dist/chunk-KUDUKKQE.js +89 -0
  100. package/node_modules/pi-lens/dist/{chunk-7JX3RNG4.js → chunk-KXDQD34C.js} +1 -1
  101. package/node_modules/pi-lens/dist/{chunk-VGTBLTPN.js → chunk-LD7SXICE.js} +18 -66
  102. package/node_modules/pi-lens/dist/{chunk-UY745U35.js → chunk-ME6MF2N2.js} +1 -1
  103. package/node_modules/pi-lens/dist/{chunk-QHOTTC4A.js → chunk-MOEWCPMC.js} +2 -2
  104. package/node_modules/pi-lens/dist/{chunk-JZQGRARR.js → chunk-MV6ST2KT.js} +15 -12
  105. package/node_modules/pi-lens/dist/{chunk-QL37SGTS.js → chunk-NCDH2JB7.js} +18 -18
  106. package/node_modules/pi-lens/dist/{chunk-AON2QIJF.js → chunk-NRVWLTOY.js} +20 -17
  107. package/node_modules/pi-lens/dist/chunk-NZINZCHB.js +108 -0
  108. package/node_modules/pi-lens/dist/{chunk-A5TEJZGJ.js → chunk-O6LCSHHI.js} +1 -1
  109. package/node_modules/pi-lens/dist/{chunk-PTSA6QKL.js → chunk-OEPWTSUG.js} +8 -8
  110. package/node_modules/pi-lens/dist/{chunk-QMV2APEH.js → chunk-OF2YGDUE.js} +36 -36
  111. package/node_modules/pi-lens/dist/{chunk-GTTMQ6XB.js → chunk-OHEUOWYT.js} +1 -1
  112. package/node_modules/pi-lens/dist/{chunk-GVWIU7M7.js → chunk-ORYQGVC3.js} +41 -4
  113. package/node_modules/pi-lens/dist/{chunk-KSTQ4VXT.js → chunk-OVPR3GQ6.js} +10 -13
  114. package/node_modules/pi-lens/dist/{chunk-MN635QYA.js → chunk-OYXD2MOM.js} +3 -3
  115. package/node_modules/pi-lens/dist/{chunk-TN5CWX5D.js → chunk-PCREZ4HJ.js} +34 -35
  116. package/node_modules/pi-lens/dist/{chunk-SG2JQ2YP.js → chunk-PK3GDU4M.js} +1 -1
  117. package/node_modules/pi-lens/dist/{chunk-NE4EFHJX.js → chunk-PPYUBO6Y.js} +2 -2
  118. package/node_modules/pi-lens/dist/{chunk-DVRJBQOJ.js → chunk-PTJXMYRY.js} +19 -20
  119. package/node_modules/pi-lens/dist/{chunk-TYHOEX4V.js → chunk-PXGVB2CY.js} +36 -39
  120. package/node_modules/pi-lens/dist/{chunk-LT62P654.js → chunk-QJ4T73J5.js} +1 -1
  121. package/node_modules/pi-lens/dist/{chunk-2LVJQU3I.js → chunk-QY6J2FTK.js} +33 -29
  122. package/node_modules/pi-lens/dist/{chunk-ZZDVGCGG.js → chunk-R67WQ5RY.js} +9 -9
  123. package/node_modules/pi-lens/dist/{chunk-Q2VCKC3X.js → chunk-S6ZQFPOX.js} +11 -8
  124. package/node_modules/pi-lens/dist/{chunk-KFRDFAOE.js → chunk-SF7KSXB5.js} +7 -7
  125. package/node_modules/pi-lens/dist/{chunk-CZCAZVTD.js → chunk-SRXYSLMW.js} +2 -2
  126. package/node_modules/pi-lens/dist/{chunk-WS3UFJOU.js → chunk-SUIZOCSY.js} +3 -2
  127. package/node_modules/pi-lens/dist/{chunk-NUSXS6YB.js → chunk-T5EGSBM2.js} +4 -4
  128. package/node_modules/pi-lens/dist/{chunk-V7F7JHS5.js → chunk-T6PPK3T6.js} +563 -554
  129. package/node_modules/pi-lens/dist/chunk-TM3A3K7T.js +28 -0
  130. package/node_modules/pi-lens/dist/{chunk-RQRKIRFY.js → chunk-TOOXNL6M.js} +8 -8
  131. package/node_modules/pi-lens/dist/chunk-TS5EIWEF.js +25 -0
  132. package/node_modules/pi-lens/dist/chunk-VD7MQFEV.js +56 -0
  133. package/node_modules/pi-lens/dist/{chunk-2ADRLTM2.js → chunk-VU2PRGRI.js} +6 -35
  134. package/node_modules/pi-lens/dist/chunk-W6VLB6LL.js +145 -0
  135. package/node_modules/pi-lens/dist/{chunk-CB7PEVOJ.js → chunk-WLD6BGON.js} +176 -60
  136. package/node_modules/pi-lens/dist/{chunk-C6AODRNU.js → chunk-WTSQKJAR.js} +11 -10
  137. package/node_modules/pi-lens/dist/{chunk-46TQJSUE.js → chunk-X33QECRJ.js} +2 -2
  138. package/node_modules/pi-lens/dist/{chunk-B6HXETWY.js → chunk-Y7XMKBFP.js} +28 -26
  139. package/node_modules/pi-lens/dist/{chunk-TLWFZ66Y.js → chunk-YLHJWAQS.js} +4 -4
  140. package/node_modules/pi-lens/dist/{chunk-BRESRQBE.js → chunk-YLW26OHX.js} +8 -8
  141. package/node_modules/pi-lens/dist/{chunk-IL6PIV33.js → chunk-YTXFNCVN.js} +2 -2
  142. package/node_modules/pi-lens/dist/chunk-YULIERZW.js +27 -0
  143. package/node_modules/pi-lens/dist/chunk-Z2W5YJBW.js +25 -0
  144. package/node_modules/pi-lens/dist/{chunk-XPGH5O74.js → chunk-Z6WTLVUL.js} +30 -39
  145. package/node_modules/pi-lens/dist/{chunk-W7TY6HYX.js → chunk-ZRQMENT4.js} +5 -27
  146. package/node_modules/pi-lens/dist/{chunk-E4VXKTBR.js → chunk-ZWZD4TJ5.js} +163 -173
  147. package/node_modules/pi-lens/dist/index.js +6405 -4497
  148. package/node_modules/pi-lens/dist/mcp/analyze-cli.js +17 -13
  149. package/node_modules/pi-lens/dist/mcp/cli.js +42 -43
  150. package/node_modules/pi-lens/dist/mcp/server.js +1520 -608
  151. package/node_modules/pi-lens/dist/mcp/worker.js +62 -61
  152. package/node_modules/pi-lens/dist/probes/installer.js +19 -18
  153. package/node_modules/pi-lens/docs/agent-guide.md +3 -1
  154. package/node_modules/pi-lens/docs/agent-tools.md +57 -13
  155. package/node_modules/pi-lens/docs/alignment-families.md +5 -1
  156. package/node_modules/pi-lens/docs/ci.md +120 -0
  157. package/node_modules/pi-lens/docs/configuration.md +24 -6
  158. package/node_modules/pi-lens/docs/custom-rules.md +1 -0
  159. package/node_modules/pi-lens/docs/defect-shapes.md +107 -71
  160. package/node_modules/pi-lens/docs/durable-store-audit-1202.md +1 -1
  161. package/node_modules/pi-lens/docs/engineering-principles.md +46 -12
  162. package/node_modules/pi-lens/docs/environment-variables.md +25 -2
  163. package/node_modules/pi-lens/docs/features.md +1 -1
  164. package/node_modules/pi-lens/docs/globalconfig.md +8 -1
  165. package/node_modules/pi-lens/docs/invariants/dispatch-runners.md +13 -0
  166. package/node_modules/pi-lens/docs/invariants/lsp-trust-exec.md +7 -0
  167. package/node_modules/pi-lens/docs/language-coverage.md +1 -1
  168. package/node_modules/pi-lens/docs/lsp-capability-matrix.md +15 -16
  169. package/node_modules/pi-lens/docs/lsp-idle-eviction.md +1 -1
  170. package/node_modules/pi-lens/docs/mcp.md +2 -1
  171. package/node_modules/pi-lens/docs/module-report-read-symbol.md +2 -2
  172. package/node_modules/pi-lens/docs/pi-lens-fixer.md +3 -2
  173. package/node_modules/pi-lens/docs/pi-lens-merge-policy.md +1 -0
  174. package/node_modules/pi-lens/docs/pi-lens-monitor.md +4 -1
  175. package/node_modules/pi-lens/docs/pi-lens-release.md +19 -0
  176. package/node_modules/pi-lens/docs/pi-lens-reviewer.md +8 -2
  177. package/node_modules/pi-lens/docs/public-api-stability.md +41 -6
  178. package/node_modules/pi-lens/docs/rfcs/5138-query-surface.md +121 -0
  179. package/node_modules/pi-lens/docs/servercapabilities.md +1 -1
  180. package/node_modules/pi-lens/docs/settings.md +9 -0
  181. package/node_modules/pi-lens/docs/usage.md +1 -1
  182. package/node_modules/pi-lens/docs/word-index.md +9 -10
  183. package/node_modules/pi-lens/package.json +3 -3
  184. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/README.md +2 -0
  185. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/dont-call-system-c.yml +2 -1
  186. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/file-access-before-action-c.yml +2 -1
  187. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/file-stat-before-action-c.yml +2 -1
  188. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/insecure-hash-c.yml +2 -1
  189. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/libxml2-audit-parser-c.yml +2 -1
  190. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/null-library-function-c.yml +2 -1
  191. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/sizeof-this-c.yml +2 -1
  192. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/small-key-size-c.yml +2 -1
  193. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/world-writable-file-c.yml +2 -1
  194. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/dont-call-system-cpp.yml +2 -1
  195. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/file-access-before-action-cpp.yml +2 -1
  196. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/file-stat-before-action-cpp.yml +2 -1
  197. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/fix-format-security-error-cpp.yml +2 -1
  198. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/insecure-hash-cpp.yml +2 -1
  199. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/libxml2-audit-parser-cpp.yml +2 -1
  200. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/missing-nul-cpp-string-memcpy-cpp.yml +2 -1
  201. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/null-library-function-cpp.yml +2 -1
  202. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/return-c-str-cpp.yml +2 -1
  203. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/sizeof-this-cpp.yml +2 -1
  204. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/small-key-size-cpp.yml +2 -1
  205. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/std-return-data-cpp.yml +2 -1
  206. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/std-vector-invalidation-cpp.yml +2 -1
  207. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/string-view-temporary-string-cpp.yml +2 -1
  208. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/world-writable-file-cpp.yml +2 -1
  209. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/httponly-false-csharp.yml +2 -1
  210. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/insecure-binaryformatter-deserialization-csharp.yml +2 -1
  211. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/jwt-decode-without-verify-csharp.yml +2 -1
  212. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/jwt-hardcoded-secret-csharp.yml +2 -1
  213. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/jwt-tokenvalidationparameters-no-expiry-validation-csharp.yml +2 -1
  214. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/networkcredential-hardcoded-secret-python.yml +2 -1
  215. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/npgsqlconnectionstringbuilder-hardcoded-secret-csharp.yml +2 -1
  216. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/oracleconnectionstringbuilder-hardcoded-secret-csharp.yml +2 -1
  217. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/sqlconnectionstringbuilder-hardcoded-secret-csharp.yml +2 -1
  218. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/stacktrace-disclosure-csharp.yml +2 -1
  219. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/use-ecb-mode-csharp.yml +2 -1
  220. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/avoid-bind-to-all-interfaces-go.yml +2 -1
  221. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/gorilla-cookie-store-hardcoded-session-key-go.yml +2 -1
  222. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/gorilla-csrf-hardcoded-auth-key-go.yml +2 -1
  223. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/grpc-client-insecure-connection-go.yml +2 -1
  224. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/jwt-go-none-algorithm-go.yml +2 -1
  225. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/missing-ssl-minversion-go.yml +2 -1
  226. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/openai-empty-secret-go.yml +2 -1
  227. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/openai-hardcoded-secret-go.yml +2 -1
  228. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/ssl-v3-is-insecure-go.yml +2 -1
  229. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/tls-with-insecure-cipher-go.yml +2 -1
  230. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/use-of-weak-rsa-key-go.yml +2 -1
  231. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/html/security/plaintext-http-link-html.yml +2 -1
  232. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/cbc-padding-oracle-java.yml +2 -1
  233. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-httponly-false-java.yml +2 -1
  234. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-missing-httponly-java.yml +2 -1
  235. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-missing-samesite-java.yml +2 -1
  236. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-missing-secure-flag-java.yml +2 -1
  237. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-secure-flag-false-java.yml +2 -1
  238. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/datanucleus-hardcoded-connection-password-java.yml +2 -1
  239. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/des-is-deprecated-java.yml +2 -1
  240. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/desede-is-deprecated-java.yml +2 -1
  241. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/documentbuilderfactory-disallow-doctype-decl-false-java.yml +2 -1
  242. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/documentbuilderfactory-external-general-entities-true-java.yml +2 -1
  243. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/documentbuilderfactory-external-parameter-entities-true-java.yml +2 -1
  244. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/drivermanager-hardcoded-secret-java.yml +2 -1
  245. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/ecb-cipher-java.yml +2 -1
  246. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/hardcoded-connection-password-java.yml +2 -1
  247. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/hardcoded-secret-in-credentials-java.yml +2 -1
  248. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/java-jwt-hardcoded-secret-java.yml +2 -1
  249. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/jedis-jedisclientconfig-hardcoded-password-java.yml +2 -1
  250. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/jedis-jedisfactory-hardcoded-password-java.yml +2 -1
  251. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/missing-httponly-java.yml +2 -1
  252. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/missing-secure-java.yml +2 -1
  253. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/no-null-cipher-java.yml +2 -1
  254. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/passwordauthentication-hardcoded-password-java.yml +2 -1
  255. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/rsa-no-padding-java.yml +2 -1
  256. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/simple-command-injection-direct-input-java.yml +2 -1
  257. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/system-setproperty-hardcoded-secret-java.yml +2 -1
  258. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/unencrypted-socket-java.yml +2 -1
  259. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-aes-ecb-java.yml +2 -1
  260. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-blowfish-java.yml +2 -1
  261. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-default-aes-java.yml +2 -1
  262. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-md5-digest-utils-java.yml +2 -1
  263. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-md5-java.yml +2 -1
  264. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-rc2-java.yml +2 -1
  265. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-rc4-java.yml +2 -1
  266. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-sha1-java.yml +2 -1
  267. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/weak-ssl-context-java.yml +2 -1
  268. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/detect-angular-sce-disabled-javascript.yml +2 -1
  269. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/express-jwt-hardcoded-secret-javascript.yml +2 -1
  270. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/express-session-hardcoded-secret-javascript.yml +2 -1
  271. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/jwt-simple-noverify-javascript.yml +2 -1
  272. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/node-rsa-weak-key-javascript.yml +2 -1
  273. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/node-sequelize-empty-password-argument-javascript.yml +2 -1
  274. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/node-sequelize-hardcoded-secret-argument-javascript.yml +2 -1
  275. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/kotlin/security/des-is-deprecated-kotlin.yml +2 -1
  276. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/kotlin/security/desede-is-deprecated-kotlin.yml +2 -1
  277. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/kotlin/security/jwt-hardcode-kotlin.yml +2 -1
  278. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/kotlin/security/rsa-no-padding-kotlin.yml +2 -1
  279. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/kotlin/security/system-setproperty-hardcoded-secret-kotlin.yml +2 -1
  280. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/php/security/openssl-cbc-static-iv-php.yml +2 -1
  281. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/php/security/search-active-debug-php.yml +2 -1
  282. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/avoid-mktemp-python.yml +2 -1
  283. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/avoid_app_run_with_bad_host-python.yml +2 -1
  284. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/debug-enabled-python.yml +2 -1
  285. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/hashids-with-django-secret-python.yml +2 -1
  286. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/hashids-with-flask-secret-python.yml +2 -1
  287. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/insecure-cipher-algorithm-rc4-python.yml +2 -1
  288. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/jwt-python-hardcoded-secret-python.yml +2 -1
  289. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/openai-hardcoded-secret-python.yml +2 -1
  290. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-cassandra-empty-password-python.yml +2 -1
  291. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-cassandra-hardcoded-secret-python.yml +2 -1
  292. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-couchbase-empty-password-python.yml +2 -1
  293. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-couchbase-hardcoded-secret-python.yml +2 -1
  294. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-elasticsearch-hardcoded-bearer-auth-python.yml +2 -1
  295. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-ldap3-empty-password-python.yml +2 -1
  296. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-ldap3-hardcoded-secret-python.yml +2 -1
  297. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-mariadb-empty-password-python.yml +2 -1
  298. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-mariadb-hardcoded-secret-python.yml +2 -1
  299. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysql-empty-password-python.yml +2 -1
  300. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysql-hardcoded-secret-python.yml +2 -1
  301. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysqlclient-empty-password-python.yml +2 -1
  302. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysqlclient-hardcoded-secret-python.yml +2 -1
  303. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-neo4j-empty-password-python.yml +2 -1
  304. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-neo4j-hardcoded-secret-python.yml +2 -1
  305. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-mysql-empty-password-python.yml +2 -1
  306. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-mysql-hardcoded-secret-python.yml +2 -1
  307. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-pg-empty-password-python.yml +2 -1
  308. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-pg-hardcoded-secret-python.yml +2 -1
  309. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pg8000-empty-password-python.yml +2 -1
  310. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pg8000-hardcoded-secret-python.yml +2 -1
  311. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-psycopg2-empty-password-python.yml +2 -1
  312. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-psycopg2-hardcoded-secret-python.yml +2 -1
  313. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pyjwt-hardcoded-secret-python.yml +2 -1
  314. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymongo-empty-password-python.yml +2 -1
  315. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymongo-hardcoded-secret-python.yml +2 -1
  316. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymssql-empty-password-python.yml +2 -1
  317. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymssql-hardcoded-secret-python.yml +2 -1
  318. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymysql-empty-password-python.yml +2 -1
  319. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymysql-hardcoded-secret-python.yml +2 -1
  320. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-redis-empty-password-python.yml +2 -1
  321. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-redis-hardcoded-secret-python.yml +2 -1
  322. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-requests-empty-password-python.yml +2 -1
  323. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-requests-hardcoded-secret-python.yml +2 -1
  324. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-requests-oauth-hardcoded-secret-python.yml +2 -1
  325. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-tormysql-empty-password-python.yml +2 -1
  326. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-tormysql-hardcoded-secret-python.yml +2 -1
  327. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-urllib3-hardcoded-secret-python.yml +2 -1
  328. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-webrepl-empty-password-python.yml +2 -1
  329. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-webrepl-hardcoded-secret-python.yml +2 -1
  330. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/force-ssl-false-ruby.yml +2 -1
  331. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/hardcoded-http-auth-in-controller-ruby.yml +2 -1
  332. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/hardcoded-secret-rsa-passphrase-ruby.yml +2 -1
  333. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/insufficient-rsa-key-size-ruby.yml +2 -1
  334. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-aws-sdk-hardcoded-secret-ruby.yml +2 -1
  335. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-cassandra-empty-password-ruby.yml +2 -1
  336. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-cassandra-hardcoded-secret-ruby.yml +2 -1
  337. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-excon-hardcoded-secret-ruby.yml +2 -1
  338. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-faraday-hardcoded-secret-ruby.yml +2 -1
  339. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mongo-empty-password-ruby.yml +2 -1
  340. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mongo-hardcoded-secret-ruby.yml +2 -1
  341. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mysql2-empty-password-ruby.yml +2 -1
  342. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mysql2-hardcoded-secret-ruby.yml +2 -1
  343. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-octokit-hardcoded-secret-ruby.yml +2 -1
  344. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-pg-empty-password-ruby.yml +2 -1
  345. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-pg-hardcoded-secret-ruby.yml +2 -1
  346. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-redis-empty-password-ruby.yml +2 -1
  347. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-redis-hardcoded-secret-ruby.yml +2 -1
  348. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/empty-password-rust.yml +2 -1
  349. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/hardcoded-password-rust.yml +2 -1
  350. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/postgres-empty-password-rust.yml +2 -1
  351. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/reqwest-accept-invalid-rust.yml +2 -1
  352. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/secrets-reqwest-hardcoded-auth-rust.yml +2 -1
  353. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/ssl-verify-none-rust.yml +2 -1
  354. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/tokio-postgres-empty-password-rust.yml +2 -1
  355. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/tokio-postgres-hardcoded-password-rust.yml +2 -1
  356. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/scala/security/jwt-scala-hardcode-scala.yml +2 -1
  357. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/scala/security/scala-jwt-hardcoded-secret-scala.yml +2 -1
  358. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/swift/security/aes-hardcoded-secret-swift.yml +2 -1
  359. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/swift/security/blowfish-hardcoded-secret-swift.yml +2 -1
  360. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/swift/security/chacha20-hardcoded-secret-swift.yml +2 -1
  361. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/swift/security/insecure-biometrics-swift.yml +2 -1
  362. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/swift/security/rabbit-hardcoded-secret-swift.yml +2 -1
  363. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/typescript/security/detect-angular-sce-disabled-typescript.yml +2 -1
  364. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/typescript/security/express-session-hardcoded-secret-typescript.yml +2 -1
  365. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/typescript/security/jwt-simple-noverify-typescript.yml +2 -1
  366. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/typescript/security/node-rsa-weak-key-typescript.yml +2 -1
  367. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/typescript/security/node-sequelize-empty-password-argument-typescript.yml +2 -1
  368. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/typescript/security/node-sequelize-hardcoded-secret-argument-typescript.yml +2 -1
  369. package/node_modules/pi-lens/rules/ast-grep-rules/rule-schema.json +1 -1
  370. package/node_modules/pi-lens/rules/ast-grep-rules/rules/c-no-malloc-free.yml +13 -12
  371. package/node_modules/pi-lens/rules/ast-grep-rules/rules/cpp-no-malloc-free.yml +11 -10
  372. package/node_modules/pi-lens/rules/ast-grep-rules/rules/cpp-no-printf.yml +10 -9
  373. package/node_modules/pi-lens/rules/ast-grep-rules/rules/go-defer-func-call-antipattern.yml +14 -13
  374. package/node_modules/pi-lens/rules/ast-grep-rules/rules/go-no-fmt-println.yml +14 -13
  375. package/node_modules/pi-lens/rules/ast-grep-rules/rules/go-no-panic-in-lib.yml +20 -19
  376. package/node_modules/pi-lens/rules/ast-grep-rules/rules/go-no-underscore-func-name.yml +14 -13
  377. package/node_modules/pi-lens/rules/ast-grep-rules/rules/go-prefer-errors-is.yml +14 -13
  378. package/node_modules/pi-lens/rules/ast-grep-rules/rules/go-prefer-string-builder.yml +19 -18
  379. package/node_modules/pi-lens/rules/ast-grep-rules/rules/go-test-functions.yml +14 -13
  380. package/node_modules/pi-lens/rules/ast-grep-rules/rules/hyphenated-svg-attribute.yml +10 -9
  381. package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-no-lateinit.yml +12 -11
  382. package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-no-nullable-boolean.yml +11 -10
  383. package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-no-println.yml +15 -14
  384. package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-no-unnecessary-let.yml +10 -9
  385. package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-no-unsafe-cast.yml +10 -9
  386. package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-no-var.yml +11 -10
  387. package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-prefer-data-class.yml +10 -9
  388. package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-prefer-is-empty.yml +10 -9
  389. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-aws-access-key-literal.yml +1 -1
  390. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-compile-call.yml +13 -12
  391. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-flask-secret-key-literal.yml +1 -1
  392. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-hardcoded-password.yml +1 -1
  393. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-marshal-load.yml +12 -11
  394. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-python-sql-string-concat.yml +12 -11
  395. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-requests-verify-false.yml +13 -12
  396. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-secret-in-env-var-name.yml +1 -1
  397. package/node_modules/pi-lens/rules/ast-grep-rules/rules/python-optional-type.yml +9 -8
  398. package/node_modules/pi-lens/rules/ast-grep-rules/rules/reducible-list-comprehension.yml +8 -7
  399. package/node_modules/pi-lens/rules/ast-grep-rules/rules/ruby-detect-path-traversal.yml +14 -13
  400. package/node_modules/pi-lens/rules/ast-grep-rules/rules/ruby-symbol-to-proc-candidate.yml +8 -7
  401. package/node_modules/pi-lens/rules/ast-grep-rules/rules/rust-no-chars-enumerate.yml +9 -8
  402. package/node_modules/pi-lens/rules/ast-grep-rules/rules-disabled/gorm-unbounded-preload.yml +7 -6
  403. package/node_modules/pi-lens/rules/ast-grep-rules/rules-disabled/shadow-err-variable.yml +6 -5
  404. package/node_modules/pi-lens/scripts/analyze-pi-lens-logs.mjs +262 -3
  405. package/node_modules/pi-lens/scripts/lib/latency-log-phases.mjs +125 -0
  406. package/package.json +8 -8
  407. package/node_modules/@narumitw/pi-btw/dist/chunks/main-tree-picker-WHRN26NJ.ts.map +0 -7
  408. package/node_modules/pi-lens/dist/chunk-3QWVOBZJ.js +0 -73
  409. package/node_modules/pi-lens/dist/chunk-7WJ55KBN.js +0 -162
  410. package/node_modules/pi-lens/dist/chunk-BDR5MEZY.js +0 -25
  411. package/node_modules/pi-lens/dist/chunk-CKEQFGLT.js +0 -32
  412. package/node_modules/pi-lens/dist/chunk-DBS736MA.js +0 -57
  413. package/node_modules/pi-lens/dist/chunk-I74RQGKA.js +0 -88
  414. package/node_modules/pi-lens/dist/chunk-IK4YS3KC.js +0 -25
  415. package/node_modules/pi-lens/dist/chunk-JKOZ2Z4U.js +0 -20
  416. package/node_modules/pi-lens/dist/chunk-TQHOKMVZ.js +0 -28
  417. package/node_modules/pi-lens/dist/chunk-VS2L7QDI.js +0 -25
  418. package/node_modules/pi-lens/dist/chunk-WAA63ZJV.js +0 -140
  419. package/node_modules/pi-lens/dist/chunk-ZPFLHB3R.js +0 -28
@@ -1,8 +1,12 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  GROOVY_FILENAMES,
4
+ KIND_EXTENSIONS,
4
5
  SPECIAL_FILENAMES
5
- } from "./chunk-CZCAZVTD.js";
6
+ } from "./chunk-SRXYSLMW.js";
7
+ import {
8
+ compareOrdinal
9
+ } from "./chunk-AGEQRJ5A.js";
6
10
 
7
11
  // dist/clients/language-registry.js
8
12
  var LANGUAGES = [
@@ -371,7 +375,34 @@ var GRAMMAR_TO_EXTENSIONS = Object.freeze((() => {
371
375
  ]));
372
376
  })());
373
377
  function extensionsForLanguageToken(token) {
374
- return GRAMMAR_TO_EXTENSIONS[token] ?? extensionsForLanguage(token);
378
+ return (Object.hasOwn(GRAMMAR_TO_EXTENSIONS, token) ? GRAMMAR_TO_EXTENSIONS[token] : void 0) ?? extensionsForLanguage(token);
379
+ }
380
+ function resolveLanguageScope(token, options = {}) {
381
+ const normalized = token.trim().toLowerCase();
382
+ const byLanguage = extensionsForLanguageToken(normalized);
383
+ const byKind = Object.hasOwn(KIND_EXTENSIONS, normalized) ? KIND_EXTENSIONS[normalized] : void 0;
384
+ const known = byLanguage.length > 0 || BY_ID.has(normalized) || Object.hasOwn(GRAMMAR_TO_EXTENSIONS, normalized);
385
+ if (!known && !byKind) {
386
+ return { refusal: unknownLanguageScopeMessage(token) };
387
+ }
388
+ const extensions = byKind && (!known || options.includeKindExtensions) ? [.../* @__PURE__ */ new Set([...byLanguage, ...byKind])] : byLanguage;
389
+ const named = SPECIAL_FILENAMES.flatMap((entry) => entry.kind === normalized ? [entry.pattern] : []);
390
+ return {
391
+ extensions,
392
+ matches: (file) => {
393
+ const declared = resolveFilenameLanguage(file);
394
+ if (declared && (declared.id === normalized || declared.grammar === normalized)) {
395
+ return true;
396
+ }
397
+ const base = basenameOf(file);
398
+ return named.some((pattern) => pattern.test(base)) || extensions.includes(extensionOf(file));
399
+ }
400
+ };
401
+ }
402
+ function unknownLanguageScopeMessage(token) {
403
+ const kinds = Object.keys(KIND_EXTENSIONS).sort(compareOrdinal).join(", ");
404
+ const ids = LANGUAGES.map((entry) => entry.id).sort(compareOrdinal).join(", ");
405
+ return `Unknown lang: "${token}" \u2014 accepted file kinds: ${kinds}; accepted language ids: ${ids}.`;
375
406
  }
376
407
  function basenameOf(filePath) {
377
408
  const cut = Math.max(filePath.lastIndexOf("/"), filePath.lastIndexOf("\\"));
@@ -467,7 +498,7 @@ var SCAN_LANGUAGE_PRIORITY = [
467
498
  export {
468
499
  lspLanguageId,
469
500
  extensionsForLanguage,
470
- extensionsForLanguageToken,
501
+ resolveLanguageScope,
471
502
  resolveFilenameLanguage,
472
503
  resolveLanguage,
473
504
  isTypeScriptFile,
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  tryLazyInstallForFormatter
4
- } from "./chunk-GMC4ZGYR.js";
4
+ } from "./chunk-6EXGCXM5.js";
5
5
  import {
6
6
  OXFMT_SUPPORTED_EXTENSIONS,
7
7
  findPSScriptAnalyzerConfigPath,
@@ -41,74 +41,75 @@ import {
41
41
  hasSwiftformatConfig,
42
42
  hasTaploConfig,
43
43
  hasTerraformConfig,
44
+ hasToolConfig,
44
45
  hasVitePlusConfig,
45
46
  stripGradleCommentsAndStrings
46
- } from "./chunk-HILZE4BQ.js";
47
+ } from "./chunk-D7OEGXDX.js";
47
48
  import {
48
49
  readTextFileOrUndefined,
49
50
  resolveCargoPackageEdition
50
- } from "./chunk-WS3UFJOU.js";
51
+ } from "./chunk-SUIZOCSY.js";
51
52
  import {
52
53
  load
53
- } from "./chunk-QGITU23N.js";
54
+ } from "./chunk-E3PNZDPH.js";
54
55
  import {
55
56
  stripAnsi
56
57
  } from "./chunk-6HWVI6MI.js";
57
58
  import {
58
59
  getToolPath
59
- } from "./chunk-AON2QIJF.js";
60
+ } from "./chunk-NRVWLTOY.js";
60
61
  import {
61
62
  resolveToolCwd
62
- } from "./chunk-TLWFZ66Y.js";
63
+ } from "./chunk-YLHJWAQS.js";
63
64
  import {
64
65
  findGlobalBinary,
65
66
  findLocalBinUpwards,
66
67
  localBinPath
67
- } from "./chunk-KSTQ4VXT.js";
68
+ } from "./chunk-OVPR3GQ6.js";
68
69
  import {
69
70
  getIsolatedNpxSpawnOptions,
70
71
  probeToolAsync
71
- } from "./chunk-VPFRU5IG.js";
72
+ } from "./chunk-3QMLB4TI.js";
72
73
  import {
73
- classifyProbeFailure,
74
+ classifyFinderFailure,
74
75
  createAvailabilityLatch,
75
76
  logAvailabilityDecision,
76
77
  startHostStallSampler
77
- } from "./chunk-NPNFGYLV.js";
78
+ } from "./chunk-AVBEPUCD.js";
78
79
  import {
79
80
  VENDOR_BIN_DIRS,
80
81
  VENV_BIN_DIRS,
81
82
  admittedLookupAnswer,
82
83
  createGenerationSource,
84
+ resolveWriteResult,
83
85
  safeSpawnAsync
84
- } from "./chunk-H65TYP6V.js";
86
+ } from "./chunk-ET3DSSFZ.js";
85
87
  import {
86
88
  TERRAGRUNT_FILENAMES
87
- } from "./chunk-CZCAZVTD.js";
89
+ } from "./chunk-SRXYSLMW.js";
88
90
  import {
89
91
  assertInstallAllowed,
90
92
  getProjectTrustGeneration
91
- } from "./chunk-7WJ55KBN.js";
93
+ } from "./chunk-HRQTYU2T.js";
92
94
  import {
93
95
  compareOrdinal,
94
96
  getDegradationLedgerGeneration,
95
97
  incrementDegradationCount,
96
98
  logExtension,
97
99
  recordDegradationOnce
98
- } from "./chunk-3FRI5H4T.js";
100
+ } from "./chunk-AGEQRJ5A.js";
99
101
  import {
100
102
  logLatency
101
- } from "./chunk-VCRVNLE7.js";
103
+ } from "./chunk-K2GV34T2.js";
102
104
  import {
103
105
  BoundedFifoMap,
104
106
  BoundedLruCache,
105
- findNearestContaining,
106
107
  findNearestMarkerRoot,
107
108
  normalizeMapKey,
108
109
  realpathOrResolve,
109
110
  toPosix,
110
111
  walkUpDirs
111
- } from "./chunk-CB7PEVOJ.js";
112
+ } from "./chunk-WLD6BGON.js";
112
113
 
113
114
  // dist/clients/formatters.js
114
115
  import { AsyncLocalStorage } from "node:async_hooks";
@@ -1329,18 +1330,9 @@ async function which(command) {
1329
1330
  return resolved;
1330
1331
  }
1331
1332
  entry.resolved = null;
1332
- const proberRan = !result.error;
1333
- const classified = classifyProbeFailure(result, {
1334
- hostStallMs,
1335
- ...proberRan && { unclassifiedFailureOutcome: "missing" }
1333
+ const { outcome, cause, forced } = classifyFinderFailure(result, {
1334
+ hostStallMs
1336
1335
  });
1337
- let { outcome, cause } = classified;
1338
- let outcomeForced = false;
1339
- if (!proberRan && outcome !== "transient") {
1340
- outcome = "transient";
1341
- cause = "probe-rejected";
1342
- outcomeForced = true;
1343
- }
1344
1336
  const retryAfterMs = entry.latch.noteUnavailable(outcome, cause);
1345
1337
  if (outcome === "transient")
1346
1338
  whichTransientCommands.add(command);
@@ -1357,7 +1349,7 @@ async function which(command) {
1357
1349
  hostStallMs,
1358
1350
  ...retryAfterMs > 0 && { retryAfterMs },
1359
1351
  budgetMs: WHICH_BUDGET_MS,
1360
- classifiedBy: outcomeForced ? "caller" : "probe"
1352
+ classifiedBy: forced ? "caller" : "probe"
1361
1353
  });
1362
1354
  return null;
1363
1355
  }
@@ -1477,7 +1469,7 @@ function hasExplicitFormatterConfig(formatterName, cwd, ext) {
1477
1469
  }
1478
1470
  var FORMATTERS_WITH_EXPLICIT_CONFIG_CHECK = new Set(EXPLICIT_FORMATTER_CONFIG_CHECKS.keys());
1479
1471
  async function hasEditorConfig(cwd) {
1480
- return findNearestContaining(cwd, [".editorconfig"]) !== void 0;
1472
+ return hasToolConfig("editorconfig", cwd);
1481
1473
  }
1482
1474
  async function indentationArgs(filePath, tool, cwd) {
1483
1475
  if (await hasEditorConfig(cwd) || hasExplicitFormatterConfig(tool, cwd, path4.extname(filePath))) {
@@ -2552,11 +2544,18 @@ async function formatFile(filePath, formatter, enter) {
2552
2544
  error: result.spawnFailure.message
2553
2545
  };
2554
2546
  }
2555
- const lenientOk = formatter.lenientExitCode !== void 0 && result.status !== null && (formatter.lenientStatuses ?? []).includes(result.status);
2556
- if (result.error || result.status !== 0 && !lenientOk) {
2547
+ let contentAfter;
2548
+ let readBackError;
2549
+ try {
2550
+ contentAfter = await fs2.readFile(absolutePath, "utf-8");
2551
+ } catch (readError) {
2552
+ readBackError = readError;
2553
+ }
2554
+ const { changed, success } = resolveWriteResult(contentBefore, contentAfter, result, formatter.lenientExitCode === void 0 ? [0] : [0, ...formatter.lenientStatuses ?? []]);
2555
+ if (!success) {
2557
2556
  return {
2558
2557
  success: false,
2559
- changed: false,
2558
+ changed,
2560
2559
  outcome: "failed",
2561
2560
  error: result.error?.message || diagnosticTail(result.stderr) || // biome, ktlint and `mix format` report on STDOUT; without this
2562
2561
  // their diagnostic is discarded and the user is told only that
@@ -2564,8 +2563,8 @@ async function formatFile(filePath, formatter, enter) {
2564
2563
  diagnosticTail(result.stdout) || `${formatter.name} exited with status ${result.status}`
2565
2564
  };
2566
2565
  }
2567
- const contentAfter = await fs2.readFile(absolutePath, "utf-8");
2568
- const changed = contentBefore !== contentAfter;
2566
+ if (readBackError !== void 0)
2567
+ throw readBackError;
2569
2568
  return {
2570
2569
  success: true,
2571
2570
  changed,
@@ -1,4 +1,8 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
+ import {
3
+ spawnAbortScope,
4
+ spawnCooldownScope
5
+ } from "./chunk-6EIV3H7O.js";
2
6
 
3
7
  // dist/clients/single-flight.js
4
8
  function createSingleFlight(options = {}) {
@@ -28,11 +32,12 @@ function createSingleFlight(options = {}) {
28
32
  generation: currentGeneration(),
29
33
  rerunRequested: false
30
34
  };
35
+ const pass = () => spawnAbortScope.exit(() => spawnCooldownScope.exit(fn));
31
36
  const chain = async () => {
32
- let result = await fn();
37
+ let result = await pass();
33
38
  while (flight.rerunRequested) {
34
39
  flight.rerunRequested = false;
35
- result = await fn();
40
+ result = await pass();
36
41
  }
37
42
  return result;
38
43
  };
@@ -2,16 +2,16 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
2
2
  import {
3
3
  getToolCommandSpec,
4
4
  shouldAutoInstallTool
5
- } from "./chunk-HILZE4BQ.js";
5
+ } from "./chunk-D7OEGXDX.js";
6
6
  import {
7
7
  BUILTIN_SERVER_RUNNER_COVERS,
8
8
  getServersForFileWithConfig,
9
9
  isAuxiliary,
10
10
  resolveAnalysisRootPath
11
- } from "./chunk-XPGH5O74.js";
11
+ } from "./chunk-Z6WTLVUL.js";
12
12
  import {
13
13
  emitBounded
14
- } from "./chunk-YT2VR4SL.js";
14
+ } from "./chunk-5EEWCJG7.js";
15
15
  import {
16
16
  ensureTool,
17
17
  findManagedToolBinary,
@@ -21,20 +21,20 @@ import {
21
21
  isSpawnableCommand,
22
22
  logSessionStart,
23
23
  resetPathWalkMemo
24
- } from "./chunk-AON2QIJF.js";
24
+ } from "./chunk-NRVWLTOY.js";
25
25
  import {
26
26
  resolveToolCwd
27
- } from "./chunk-TLWFZ66Y.js";
27
+ } from "./chunk-YLHJWAQS.js";
28
28
  import {
29
29
  findGlobalBinary,
30
30
  findLocalBinAt,
31
31
  findLocalBinUpwards,
32
32
  localBinPath
33
- } from "./chunk-KSTQ4VXT.js";
33
+ } from "./chunk-OVPR3GQ6.js";
34
34
  import {
35
35
  createAvailabilityProbeFlight,
36
36
  probeToolAsync
37
- } from "./chunk-VPFRU5IG.js";
37
+ } from "./chunk-3QMLB4TI.js";
38
38
  import {
39
39
  classifyProbeFailure,
40
40
  createAvailabilityLatch,
@@ -42,10 +42,10 @@ import {
42
42
  describeProbeEvidence,
43
43
  isLatchingOutcome,
44
44
  logAvailabilityDecision,
45
- startHostStallSampler,
46
- transientRetryDelayMs
47
- } from "./chunk-NPNFGYLV.js";
45
+ startHostStallSampler
46
+ } from "./chunk-AVBEPUCD.js";
48
47
  import {
48
+ NODE_MODULES_BIN_DIRS,
49
49
  VENDOR_BIN_DIRS,
50
50
  VENV_BIN_DIRS,
51
51
  createGenerationSource,
@@ -53,22 +53,22 @@ import {
53
53
  isInSpawnTimeoutCooldown,
54
54
  resolveWindowsCommandForEnvironment,
55
55
  safeSpawnAsync
56
- } from "./chunk-H65TYP6V.js";
56
+ } from "./chunk-ET3DSSFZ.js";
57
57
  import {
58
58
  PathKeyedMap
59
- } from "./chunk-FOEPIX76.js";
59
+ } from "./chunk-6EIV3H7O.js";
60
60
  import {
61
61
  getProjectTrustState
62
- } from "./chunk-7WJ55KBN.js";
62
+ } from "./chunk-HRQTYU2T.js";
63
63
  import {
64
64
  compareOrdinal,
65
65
  incrementDegradationCount
66
- } from "./chunk-3FRI5H4T.js";
66
+ } from "./chunk-AGEQRJ5A.js";
67
67
  import {
68
68
  isUnderDir,
69
69
  normalizeEphemeralMapKey,
70
70
  normalizeMapKey
71
- } from "./chunk-CB7PEVOJ.js";
71
+ } from "./chunk-WLD6BGON.js";
72
72
 
73
73
  // dist/clients/dispatch/runners/utils/runner-helpers.js
74
74
  import * as fs from "node:fs";
@@ -231,12 +231,12 @@ function resolveAdoptedRootCommand(command, ctx, cwd) {
231
231
  return null;
232
232
  }
233
233
  }
234
- function createVenvFinder(command, windowsExt = "", verificationArgs = ["--version"], allowProjectLocal = true) {
234
+ function createVenvFinder(command, windowsExt = "", verificationArgs = ["--version"], allowProjectLocal = true, projectBinDirs = VENV_BIN_DIRS) {
235
235
  return async (cwd) => {
236
236
  if (allowProjectLocal) {
237
237
  const venvBin = localBinPath(findLocalBinAt(command, cwd, {
238
238
  windowsExt,
239
- binDirs: VENV_BIN_DIRS
239
+ binDirs: projectBinDirs
240
240
  }));
241
241
  if (venvBin)
242
242
  return { path: venvBin, rung: "venv" };
@@ -480,7 +480,8 @@ function createAvailabilityChecker(command, windowsExt = "", versionArgs = ["--v
480
480
  const inFlightByCwd = new PathKeyedMap(normalizeEphemeralMapKey);
481
481
  let checkerGeneration = availabilityGeneration.current();
482
482
  let checkerFlightGeneration = 0;
483
- const findCommand = createVenvFinder(command, windowsExt, versionArgs, options.allowProjectLocal !== false);
483
+ const findCommand = options.pathOnly ? async () => ({ path: command, rung: "path" }) : createVenvFinder(command, windowsExt, versionArgs, options.allowProjectLocal !== false, options.projectBinDirs);
484
+ const findBeyondProject = createVenvFinder(command, windowsExt, versionArgs, false);
484
485
  function ensureCurrentGeneration() {
485
486
  if (checkerGeneration === availabilityGeneration.current())
486
487
  return;
@@ -502,33 +503,23 @@ function createAvailabilityChecker(command, windowsExt = "", versionArgs = ["--v
502
503
  if (existing)
503
504
  return existing;
504
505
  const created = {
505
- available: null,
506
+ latch: createAvailabilityLatch(),
506
507
  command: null,
507
- outcome: null,
508
- cause: null,
509
- elapsedMs: 0,
510
- retryAtMs: 0,
511
- transientAttempts: 0
508
+ elapsedMs: 0
512
509
  };
513
510
  cacheByCwd.set(key, created);
514
511
  return created;
515
512
  }
516
513
  function noteDecision(cache, resolvedCwd, verdict) {
517
- cache.available = verdict.available;
518
- cache.outcome = verdict.outcome;
519
- cache.cause = verdict.cause;
520
514
  cache.elapsedMs = verdict.elapsedMs;
521
515
  let retryAfterMs;
522
516
  if (verdict.available) {
523
- cache.retryAtMs = 0;
524
- cache.transientAttempts = 0;
525
- } else if (isLatchingOutcome(verdict.outcome)) {
526
- cache.retryAtMs = 0;
527
- cache.transientAttempts = 0;
517
+ cache.latch.noteAvailable(verdict.cause);
528
518
  } else {
529
- cache.transientAttempts += 1;
530
- retryAfterMs = transientRetryDelayMs(cache.transientAttempts, verdict.cause);
531
- cache.retryAtMs = Date.now() + retryAfterMs;
519
+ cache.command = null;
520
+ const delay = cache.latch.noteUnavailable(verdict.outcome, verdict.cause);
521
+ if (delay > 0)
522
+ retryAfterMs = delay;
532
523
  }
533
524
  const latched = verdict.available || isLatchingOutcome(verdict.outcome);
534
525
  if (!verdict.available && latched) {
@@ -558,20 +549,15 @@ function createAvailabilityChecker(command, windowsExt = "", versionArgs = ["--v
558
549
  ensureCurrentGeneration();
559
550
  const resolvedCwd = cwd || process.cwd();
560
551
  const cache = getCache(resolvedCwd);
561
- if (cache.available === false) {
562
- if (cache.outcome !== "transient")
563
- return false;
564
- if (Date.now() < cache.retryAtMs)
565
- return false;
566
- cache.available = null;
567
- }
568
- if (cache.available === true && cache.command) {
569
- if (await isSpawnableCommand(cache.command))
552
+ const answer = cache.latch.read();
553
+ if (answer === false)
554
+ return false;
555
+ if (answer === true) {
556
+ if (cache.command && await isSpawnableCommand(cache.command)) {
570
557
  return true;
571
- cache.available = null;
558
+ }
559
+ cache.latch.reset();
572
560
  cache.command = null;
573
- cache.outcome = null;
574
- cache.cause = null;
575
561
  }
576
562
  const key = path.resolve(resolvedCwd);
577
563
  const existing = inFlightByCwd.get(key);
@@ -619,76 +605,92 @@ function createAvailabilityChecker(command, windowsExt = "", versionArgs = ["--v
619
605
  return false;
620
606
  }
621
607
  const resolveStartedAt = Date.now();
622
- const resolution = await findCommand(resolvedCwd);
623
- const cmd = resolution.path;
624
- const resolveMs = Date.now() - resolveStartedAt;
625
- if (isInSpawnTimeoutCooldown(cmd)) {
626
- noteDecision(cache, resolvedCwd, {
627
- available: false,
628
- outcome: "transient",
629
- cause: "probe-timeout",
630
- elapsedMs: 0,
631
- classifiedBy: "caller",
632
- evidence: {
633
- command: cmd,
634
- status: null
635
- }
608
+ let resolution = await findCommand(resolvedCwd);
609
+ let resolveMs = Date.now() - resolveStartedAt;
610
+ for (; ; ) {
611
+ const cmd = resolution.path;
612
+ if (isInSpawnTimeoutCooldown(cmd)) {
613
+ noteDecision(cache, resolvedCwd, {
614
+ available: false,
615
+ outcome: "transient",
616
+ cause: "probe-timeout",
617
+ elapsedMs: 0,
618
+ classifiedBy: "caller",
619
+ evidence: {
620
+ command: cmd,
621
+ status: null
622
+ }
623
+ });
624
+ return false;
625
+ }
626
+ const env = await options.environment?.(resolvedCwd);
627
+ const stallSampler = startHostStallSampler();
628
+ const startedAt = Date.now();
629
+ let result;
630
+ let hostStallMs;
631
+ let probeJoined = false;
632
+ try {
633
+ const shared = checkerProbeFlights.run(`checker:${command}|${versionArgs.join("|")}|${key}|${checkerFlightGeneration}|${windowsExt}|${cmd}|${JSON.stringify(Object.entries(env ?? {}).sort(([a], [b]) => compareOrdinal(a, b)))}`, () => (
634
+ // A bare PATH-only probe goes through the cwd-less probe seam
635
+ // (#2894): nothing it answers is read out of a project.
636
+ options.pathOnly ? probeToolAsync(cmd, versionArgs, {
637
+ timeout: options.probeTimeout ?? 5e3,
638
+ ...env !== void 0 && { env },
639
+ input: ""
640
+ }) : safeSpawnAsync(cmd, versionArgs, {
641
+ timeout: options.probeTimeout ?? 5e3,
642
+ cwd: resolvedCwd,
643
+ env,
644
+ input: ""
645
+ })
646
+ ));
647
+ probeJoined = shared.joined;
648
+ result = await shared.promise;
649
+ } finally {
650
+ hostStallMs = stallSampler.stop();
651
+ }
652
+ const elapsedMs = Date.now() - startedAt;
653
+ recordAvailabilityProbeOverrun(command, resolvedCwd, elapsedMs, options.probeTimeout ?? 5e3, result.failure);
654
+ if (!result.error && result.status === 0) {
655
+ cache.command = cmd;
656
+ noteDecision(cache, resolvedCwd, {
657
+ available: true,
658
+ outcome: "success",
659
+ cause: "ok",
660
+ elapsedMs,
661
+ hostStallMs,
662
+ classifiedBy: probeJoined ? "joined" : "probe",
663
+ evidence: {
664
+ ...describeProbeEvidence(result),
665
+ ...describeManagedResolution(command, resolution),
666
+ resolveMs
667
+ }
668
+ });
669
+ return true;
670
+ }
671
+ const { outcome, cause, evidence } = classifyProbeFailure(result, {
672
+ hostStallMs,
673
+ unclassifiedFailureOutcome: options.unclassifiedFailureOutcome
636
674
  });
637
- return false;
638
- }
639
- const env = await options.environment?.(resolvedCwd);
640
- const stallSampler = startHostStallSampler();
641
- const startedAt = Date.now();
642
- let result;
643
- let hostStallMs;
644
- let probeJoined = false;
645
- try {
646
- const shared = checkerProbeFlights.run(`checker:${command}|${versionArgs.join("|")}|${key}|${checkerFlightGeneration}|${windowsExt}|${cmd}|${JSON.stringify(Object.entries(env ?? {}).sort(([a], [b]) => compareOrdinal(a, b)))}`, () => safeSpawnAsync(cmd, versionArgs, {
647
- timeout: options.probeTimeout ?? 5e3,
648
- cwd: resolvedCwd,
649
- env,
650
- input: ""
651
- }));
652
- probeJoined = shared.joined;
653
- result = await shared.promise;
654
- } finally {
655
- hostStallMs = stallSampler.stop();
656
- }
657
- const elapsedMs = Date.now() - startedAt;
658
- recordAvailabilityProbeOverrun(command, resolvedCwd, elapsedMs, options.probeTimeout ?? 5e3, result.failure);
659
- if (!result.error && result.status === 0) {
660
- cache.command = cmd;
675
+ if (resolution.rung === "venv" && isLatchingOutcome(outcome)) {
676
+ const fallStartedAt = Date.now();
677
+ resolution = await findBeyondProject(resolvedCwd);
678
+ resolveMs += Date.now() - fallStartedAt;
679
+ continue;
680
+ }
681
+ if (result.spawnFailure?.kind === "tool-not-found")
682
+ resetPathWalkMemo();
661
683
  noteDecision(cache, resolvedCwd, {
662
- available: true,
663
- outcome: "success",
664
- cause: "ok",
684
+ available: false,
685
+ outcome,
686
+ cause,
665
687
  elapsedMs,
666
688
  hostStallMs,
667
689
  classifiedBy: probeJoined ? "joined" : "probe",
668
- evidence: {
669
- ...describeProbeEvidence(result),
670
- ...describeManagedResolution(command, resolution),
671
- resolveMs
672
- }
690
+ evidence
673
691
  });
674
- return true;
692
+ return false;
675
693
  }
676
- const { outcome, cause, evidence } = classifyProbeFailure(result, {
677
- hostStallMs,
678
- unclassifiedFailureOutcome: options.unclassifiedFailureOutcome
679
- });
680
- if (result.spawnFailure?.kind === "tool-not-found")
681
- resetPathWalkMemo();
682
- noteDecision(cache, resolvedCwd, {
683
- available: false,
684
- outcome,
685
- cause,
686
- elapsedMs,
687
- hostStallMs,
688
- classifiedBy: probeJoined ? "joined" : "probe",
689
- evidence
690
- });
691
- return false;
692
694
  })().finally(() => {
693
695
  if (checkerGeneration === promiseGeneration && inFlightByCwd.get(key) === promise) {
694
696
  inFlightByCwd.delete(key);
@@ -704,17 +706,18 @@ function createAvailabilityChecker(command, windowsExt = "", versionArgs = ["--v
704
706
  }
705
707
  function getOutcome(cwd) {
706
708
  ensureCurrentGeneration();
707
- return getCache(cwd || process.cwd()).outcome;
709
+ return getCache(cwd || process.cwd()).latch.getOutcome();
708
710
  }
709
711
  function getVerdict(cwd) {
710
712
  ensureCurrentGeneration();
711
- const cache = getCache(cwd || process.cwd());
713
+ const { latch, elapsedMs } = getCache(cwd || process.cwd());
714
+ const outcome = latch.getOutcome();
712
715
  return {
713
- outcome: cache.outcome,
714
- cause: cache.cause,
715
- elapsedMs: cache.elapsedMs,
716
- latched: cache.available !== false || isLatchingOutcome(cache.outcome ?? "missing"),
717
- retryAtMs: cache.retryAtMs
716
+ outcome,
717
+ cause: latch.getCause(),
718
+ elapsedMs,
719
+ latched: outcome === null || isLatchingOutcome(outcome),
720
+ retryAtMs: latch.getRetryAtMs()
718
721
  };
719
722
  }
720
723
  return { isAvailableAsync, getCommand, getOutcome, getVerdict, reset };
@@ -881,11 +884,23 @@ function resolveVendorToolCommand(cwd, toolName, windowsExt = ".bat") {
881
884
  binDirs: VENDOR_BIN_DIRS
882
885
  })) ?? null;
883
886
  }
884
- async function resolveToolCommandWithInstallFallback(cwd, toolId, timeout = 5e3) {
887
+ var toolBinaryCheckers = /* @__PURE__ */ new Map();
888
+ function toolBinaryChecker(toolId) {
889
+ const existing = toolBinaryCheckers.get(toolId);
890
+ if (existing)
891
+ return existing;
885
892
  const spec = getToolCommandSpec(toolId);
886
893
  if (!spec)
887
894
  return null;
888
- return resolveCommandWithInstallFallback(resolveToolCommand(cwd, toolId) ?? spec.command, spec.managedToolId ?? toolId, cwd, spec.versionArgs ?? ["--version"], timeout);
895
+ const checker = createAvailabilityChecker(spec.command, spec.windowsExt ?? "", spec.versionArgs ?? ["--version"], { projectBinDirs: [...VENV_BIN_DIRS, ...NODE_MODULES_BIN_DIRS] });
896
+ toolBinaryCheckers.set(toolId, checker);
897
+ return checker;
898
+ }
899
+ async function resolveToolCommandWithInstallFallback(cwd, toolId) {
900
+ const checker = toolBinaryChecker(toolId);
901
+ if (!checker)
902
+ return null;
903
+ return resolveAvailableOrInstall(checker, getToolCommandSpec(toolId)?.managedToolId ?? toolId, cwd);
889
904
  }
890
905
  async function verifyOrInstallCommand(command, toolId, cwd, versionArgs = ["--version"], timeout = 5e3) {
891
906
  const spawnable = await isSpawnableCommand(command);
@@ -893,7 +908,8 @@ async function verifyOrInstallCommand(command, toolId, cwd, versionArgs = ["--ve
893
908
  const versionCheck = await safeSpawnAsync(command, versionArgs, {
894
909
  timeout,
895
910
  cwd,
896
- input: ""
911
+ input: "",
912
+ cooldown: false
897
913
  });
898
914
  if (!versionCheck.error && versionCheck.status === 0) {
899
915
  return command;
@@ -916,7 +932,7 @@ async function verifyOrInstallCommand(command, toolId, cwd, versionArgs = ["--ve
916
932
  return null;
917
933
  }
918
934
  async function resolveCommandArgsWithInstallFallback(command, toolId, cwd, versionArgs = ["--version"], timeout = 5e3) {
919
- const versionCheck = await safeSpawnAsync(command.cmd, [...command.args, ...versionArgs], { timeout, cwd, input: "" });
935
+ const versionCheck = await safeSpawnAsync(command.cmd, [...command.args, ...versionArgs], { timeout, cwd, input: "", cooldown: false });
920
936
  if (!versionCheck.error && versionCheck.status === 0) {
921
937
  return command;
922
938
  }
@@ -929,9 +945,6 @@ async function resolveCommandArgsWithInstallFallback(command, toolId, cwd, versi
929
945
  }
930
946
  return { cmd: installed, args: [] };
931
947
  }
932
- async function resolveCommandWithInstallFallback(command, toolId, cwd, versionArgs = ["--version"], timeout = 5e3) {
933
- return verifyOrInstallCommand(command, toolId, cwd, versionArgs, timeout);
934
- }
935
948
  async function resolveAvailableOrInstallUnshared(checker, toolId, cwd) {
936
949
  const available = await checker.isAvailableAsync(cwd);
937
950
  if (available) {
@@ -1011,8 +1024,6 @@ export {
1011
1024
  resolveManagedToolClient,
1012
1025
  getManagedToolEnvironment,
1013
1026
  discoverManagedTool,
1014
- getDispatchAvailabilityGeneration,
1015
- recordAvailabilityProbeOverrun,
1016
1027
  resetDispatchAvailabilityState,
1017
1028
  createAvailabilityChecker,
1018
1029
  createCwdCachedProbe,