@herbertgao/pi-extensions 2026.11.6 → 2026.11.7

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 (397) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/README.md +6 -6
  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/@pi-plugins/fast-mode/dist/index.d.mts +1 -4
  12. package/node_modules/@pi-plugins/fast-mode/dist/index.d.mts.map +1 -1
  13. package/node_modules/@pi-plugins/fast-mode/dist/index.mjs +5620 -2946
  14. package/node_modules/@pi-plugins/fast-mode/dist/index.mjs.map +1 -1
  15. package/node_modules/@pi-plugins/fast-mode/package.json +11 -11
  16. package/node_modules/pi-commandcode-provider/CHANGELOG.md +5 -0
  17. package/node_modules/pi-commandcode-provider/README.md +1 -1
  18. package/node_modules/pi-commandcode-provider/package.json +1 -1
  19. package/node_modules/pi-commandcode-provider/src/commandcode-catalog.ts +5 -4
  20. package/node_modules/pi-commandcode-provider/src/pricing.ts +8 -2
  21. package/node_modules/pi-lens/CHANGELOG-USER.md +6 -6
  22. package/node_modules/pi-lens/CHANGELOG.md +182 -0
  23. package/node_modules/pi-lens/dist/{chunk-NE4EFHJX.js → chunk-2SD2CGVH.js} +2 -2
  24. package/node_modules/pi-lens/dist/{chunk-7JX3RNG4.js → chunk-34RXPR7M.js} +1 -1
  25. package/node_modules/pi-lens/dist/{chunk-2LVJQU3I.js → chunk-3C6ZZAB2.js} +33 -27
  26. package/node_modules/pi-lens/dist/{chunk-WAA63ZJV.js → chunk-3HZ6MNB2.js} +1 -1
  27. package/node_modules/pi-lens/dist/{chunk-IDCTDKIA.js → chunk-3NVGBFJS.js} +6 -6
  28. package/node_modules/pi-lens/dist/{chunk-B2YUE6YD.js → chunk-3QCI3V6C.js} +11 -11
  29. package/node_modules/pi-lens/dist/{chunk-NL5LSKVD.js → chunk-3R3Z54J7.js} +10 -4
  30. package/node_modules/pi-lens/dist/{chunk-7WJ55KBN.js → chunk-43KD3PPM.js} +1 -1
  31. package/node_modules/pi-lens/dist/{chunk-DVRJBQOJ.js → chunk-4HNBY7S7.js} +20 -19
  32. package/node_modules/pi-lens/dist/chunk-4WWPDMRA.js +22 -0
  33. package/node_modules/pi-lens/dist/{chunk-QL37SGTS.js → chunk-532X3OCZ.js} +18 -16
  34. package/node_modules/pi-lens/dist/{chunk-ZZDVGCGG.js → chunk-5RLEDUUE.js} +9 -9
  35. package/node_modules/pi-lens/dist/{chunk-GUGKKGG7.js → chunk-5YTDZ5WP.js} +3 -3
  36. package/node_modules/pi-lens/dist/{chunk-FOEPIX76.js → chunk-6EIV3H7O.js} +158 -61
  37. package/node_modules/pi-lens/dist/{chunk-E4VXKTBR.js → chunk-6K4X7IIF.js} +164 -172
  38. package/node_modules/pi-lens/dist/{chunk-HSYFLOZY.js → chunk-6RXMQYNU.js} +3 -3
  39. package/node_modules/pi-lens/dist/{chunk-K6WIBVMK.js → chunk-6XNVY3FW.js} +8 -9
  40. package/node_modules/pi-lens/dist/{chunk-ACRJ2GZ5.js → chunk-7424ANRU.js} +2 -2
  41. package/node_modules/pi-lens/dist/{chunk-PTSA6QKL.js → chunk-A4HKPAEN.js} +8 -8
  42. package/node_modules/pi-lens/dist/{chunk-RQRKIRFY.js → chunk-AFNPNHJV.js} +8 -8
  43. package/node_modules/pi-lens/dist/{chunk-3FRI5H4T.js → chunk-AGEQRJ5A.js} +24 -10
  44. package/node_modules/pi-lens/dist/{chunk-MAD4QJTP.js → chunk-AJ62EQIQ.js} +15 -14
  45. package/node_modules/pi-lens/dist/{chunk-FCQSZQAT.js → chunk-AOQKQWZU.js} +14 -5
  46. package/node_modules/pi-lens/dist/{chunk-ZOPXB2KK.js → chunk-AVOUHMCS.js} +111 -107
  47. package/node_modules/pi-lens/dist/{chunk-OTSTS7L2.js → chunk-AYDE7RFV.js} +34 -3
  48. package/node_modules/pi-lens/dist/{chunk-AWQWXSW4.js → chunk-B4FAFEBP.js} +7 -2
  49. package/node_modules/pi-lens/dist/{chunk-SKVNHCT5.js → chunk-B4K6OSLL.js} +49 -42
  50. package/node_modules/pi-lens/dist/{chunk-2ADRLTM2.js → chunk-BBJXIZ3X.js} +3 -3
  51. package/node_modules/pi-lens/dist/chunk-BJDB7PXU.js +25 -0
  52. package/node_modules/pi-lens/dist/{chunk-GTTMQ6XB.js → chunk-BLL4VYGZ.js} +1 -1
  53. package/node_modules/pi-lens/dist/{chunk-CZAWWXP6.js → chunk-BMMRLJA4.js} +7 -5
  54. package/node_modules/pi-lens/dist/{chunk-TN5CWX5D.js → chunk-BN36MQW5.js} +35 -34
  55. package/node_modules/pi-lens/dist/{chunk-IL6PIV33.js → chunk-C2REOMPO.js} +2 -2
  56. package/node_modules/pi-lens/dist/{chunk-XAFZJEXY.js → chunk-C4ICGFEO.js} +23 -23
  57. package/node_modules/pi-lens/dist/chunk-CIA7X2PZ.js +26 -0
  58. package/node_modules/pi-lens/dist/{chunk-SJQUWQR6.js → chunk-D5L7Q57Z.js} +2 -2
  59. package/node_modules/pi-lens/dist/{chunk-XPGH5O74.js → chunk-DBAHJFBU.js} +31 -35
  60. package/node_modules/pi-lens/dist/{chunk-H65TYP6V.js → chunk-DNB4ZQGN.js} +37 -21
  61. package/node_modules/pi-lens/dist/chunk-DPDA3ILA.js +108 -0
  62. package/node_modules/pi-lens/dist/{chunk-QGITU23N.js → chunk-E3PNZDPH.js} +1 -1
  63. package/node_modules/pi-lens/dist/{chunk-KDCIG23C.js → chunk-E6Z3CJT2.js} +13 -9
  64. package/node_modules/pi-lens/dist/{chunk-V7F7JHS5.js → chunk-ECYUBKYX.js} +557 -551
  65. package/node_modules/pi-lens/dist/chunk-F37CCZUA.js +27 -0
  66. package/node_modules/pi-lens/dist/{chunk-KSTQ4VXT.js → chunk-FVEEEEIM.js} +10 -13
  67. package/node_modules/pi-lens/dist/{chunk-GMC4ZGYR.js → chunk-GL6J5R34.js} +5 -5
  68. package/node_modules/pi-lens/dist/{chunk-C6AODRNU.js → chunk-GTNO6F6K.js} +11 -10
  69. package/node_modules/pi-lens/dist/{chunk-KJ3AHOCK.js → chunk-HASJPQBC.js} +10 -10
  70. package/node_modules/pi-lens/dist/{chunk-XVB3Q2PG.js → chunk-HGEE5LDW.js} +3 -2
  71. package/node_modules/pi-lens/dist/{chunk-F6FT6BVQ.js → chunk-HIUVHRLM.js} +35 -34
  72. package/node_modules/pi-lens/dist/{chunk-BRESRQBE.js → chunk-HTUG7ZFK.js} +8 -8
  73. package/node_modules/pi-lens/dist/{chunk-ALIZWXHZ.js → chunk-IBEYUBCM.js} +9 -9
  74. package/node_modules/pi-lens/dist/{chunk-JZQGRARR.js → chunk-IJ55MYO6.js} +15 -12
  75. package/node_modules/pi-lens/dist/{chunk-BGLS5SDN.js → chunk-IT7MFVGP.js} +2 -2
  76. package/node_modules/pi-lens/dist/{chunk-AON2QIJF.js → chunk-ITAPXBIB.js} +20 -17
  77. package/node_modules/pi-lens/dist/{chunk-TLWFZ66Y.js → chunk-JSQK5DH3.js} +4 -4
  78. package/node_modules/pi-lens/dist/{chunk-VCRVNLE7.js → chunk-K2GV34T2.js} +9 -1
  79. package/node_modules/pi-lens/dist/{chunk-QUQY3IME.js → chunk-KBSC5Z3G.js} +9 -8
  80. package/node_modules/pi-lens/dist/{chunk-W4CUK5G6.js → chunk-KDGKKK7A.js} +2 -2
  81. package/node_modules/pi-lens/dist/{chunk-YQA34KAF.js → chunk-KDMJ2DJD.js} +11 -11
  82. package/node_modules/pi-lens/dist/{chunk-SG2JQ2YP.js → chunk-KNP4ENFT.js} +1 -1
  83. package/node_modules/pi-lens/dist/chunk-KX4DF6XX.js +25 -0
  84. package/node_modules/pi-lens/dist/{chunk-4ITEFRDH.js → chunk-LHCDWFDB.js} +37 -145
  85. package/node_modules/pi-lens/dist/{chunk-3HM4BUHR.js → chunk-LHU6NG5Z.js} +16 -15
  86. package/node_modules/pi-lens/dist/{chunk-6I44EDNQ.js → chunk-LIDFFCZZ.js} +17 -15
  87. package/node_modules/pi-lens/dist/{chunk-KFRDFAOE.js → chunk-LPM6NKVI.js} +7 -7
  88. package/node_modules/pi-lens/dist/{chunk-NBM7PNBP.js → chunk-LXE7JAMV.js} +37 -26
  89. package/node_modules/pi-lens/dist/{chunk-UY745U35.js → chunk-ME6MF2N2.js} +1 -1
  90. package/node_modules/pi-lens/dist/{chunk-YT2VR4SL.js → chunk-NLRKB32C.js} +7 -7
  91. package/node_modules/pi-lens/dist/{chunk-QHOTTC4A.js → chunk-NQFXN5U7.js} +2 -2
  92. package/node_modules/pi-lens/dist/{chunk-QUPYLQA4.js → chunk-NR4KQOXZ.js} +14 -9
  93. package/node_modules/pi-lens/dist/{chunk-Y3EHLUPL.js → chunk-NWK7KKNO.js} +4 -4
  94. package/node_modules/pi-lens/dist/{chunk-A5TEJZGJ.js → chunk-O6LCSHHI.js} +1 -1
  95. package/node_modules/pi-lens/dist/{chunk-CTB5BAJI.js → chunk-OC4ZGVMH.js} +17 -14
  96. package/node_modules/pi-lens/dist/{chunk-VPFRU5IG.js → chunk-OP5BMZKK.js} +3 -3
  97. package/node_modules/pi-lens/dist/{chunk-MN635QYA.js → chunk-OYXD2MOM.js} +3 -3
  98. package/node_modules/pi-lens/dist/{chunk-GVWIU7M7.js → chunk-PSUXESQ5.js} +41 -4
  99. package/node_modules/pi-lens/dist/{chunk-J6BR5XN2.js → chunk-QAM2Q3VO.js} +3 -3
  100. package/node_modules/pi-lens/dist/{chunk-6MDM5MQT.js → chunk-QBUSONNE.js} +367 -153
  101. package/node_modules/pi-lens/dist/{chunk-VGTBLTPN.js → chunk-QDZ3ZZMY.js} +18 -66
  102. package/node_modules/pi-lens/dist/{chunk-LT62P654.js → chunk-QJ4T73J5.js} +1 -1
  103. package/node_modules/pi-lens/dist/{chunk-DOUAWKLO.js → chunk-QUZYRDT6.js} +12 -12
  104. package/node_modules/pi-lens/dist/{chunk-UNBRHPHJ.js → chunk-R2UF54ON.js} +17 -15
  105. package/node_modules/pi-lens/dist/{chunk-I32RSMH6.js → chunk-R2VUZZPJ.js} +11 -10
  106. package/node_modules/pi-lens/dist/chunk-R5BNSOIV.js +29 -0
  107. package/node_modules/pi-lens/dist/chunk-RV5VX2XW.js +29 -0
  108. package/node_modules/pi-lens/dist/{chunk-QWTHFFU6.js → chunk-SQBDX6IO.js} +12 -12
  109. package/node_modules/pi-lens/dist/{chunk-CZCAZVTD.js → chunk-SRXYSLMW.js} +2 -2
  110. package/node_modules/pi-lens/dist/{chunk-WS3UFJOU.js → chunk-SUIZOCSY.js} +3 -2
  111. package/node_modules/pi-lens/dist/{chunk-NUSXS6YB.js → chunk-T5EGSBM2.js} +4 -4
  112. package/node_modules/pi-lens/dist/{chunk-QMV2APEH.js → chunk-TBE4OLPA.js} +37 -35
  113. package/node_modules/pi-lens/dist/{chunk-B6HXETWY.js → chunk-TPMBNWHO.js} +28 -26
  114. package/node_modules/pi-lens/dist/{chunk-CYUJB552.js → chunk-TRYOYWWU.js} +18 -12
  115. package/node_modules/pi-lens/dist/{chunk-TJQSYX3J.js → chunk-TTGDTNSN.js} +6 -6
  116. package/node_modules/pi-lens/dist/{chunk-S3WFVG5P.js → chunk-UELHWF5I.js} +137 -126
  117. package/node_modules/pi-lens/dist/chunk-UG4YLCJ5.js +58 -0
  118. package/node_modules/pi-lens/dist/chunk-UQ6OZYTO.js +91 -0
  119. package/node_modules/pi-lens/dist/{chunk-QSCZAP24.js → chunk-UY3WWW5R.js} +4 -4
  120. package/node_modules/pi-lens/dist/chunk-V7IPIAE5.js +74 -0
  121. package/node_modules/pi-lens/dist/{chunk-4NCDHTFI.js → chunk-VDMF7Q2P.js} +10 -10
  122. package/node_modules/pi-lens/dist/{chunk-TYHOEX4V.js → chunk-VI3BJMZO.js} +35 -34
  123. package/node_modules/pi-lens/dist/{chunk-UOO4D2TK.js → chunk-VTXJAO5R.js} +34 -35
  124. package/node_modules/pi-lens/dist/chunk-W6VLB6LL.js +145 -0
  125. package/node_modules/pi-lens/dist/{chunk-NPNFGYLV.js → chunk-WBXCIRVI.js} +19 -2
  126. package/node_modules/pi-lens/dist/{chunk-CB7PEVOJ.js → chunk-WLD6BGON.js} +176 -60
  127. package/node_modules/pi-lens/dist/{chunk-Q2VCKC3X.js → chunk-WMCAEP2K.js} +11 -8
  128. package/node_modules/pi-lens/dist/{chunk-OPFNQBS5.js → chunk-WXMUGUZV.js} +21 -25
  129. package/node_modules/pi-lens/dist/{chunk-46TQJSUE.js → chunk-X33QECRJ.js} +2 -2
  130. package/node_modules/pi-lens/dist/{chunk-HILZE4BQ.js → chunk-YUF4DRYB.js} +396 -306
  131. package/node_modules/pi-lens/dist/{chunk-YF4G5NN5.js → chunk-YVPB5YGO.js} +2 -2
  132. package/node_modules/pi-lens/dist/{chunk-W7TY6HYX.js → chunk-ZRQMENT4.js} +5 -27
  133. package/node_modules/pi-lens/dist/index.js +5573 -4181
  134. package/node_modules/pi-lens/dist/mcp/analyze-cli.js +17 -11
  135. package/node_modules/pi-lens/dist/mcp/cli.js +43 -42
  136. package/node_modules/pi-lens/dist/mcp/server.js +1521 -610
  137. package/node_modules/pi-lens/dist/mcp/worker.js +62 -59
  138. package/node_modules/pi-lens/dist/probes/installer.js +19 -18
  139. package/node_modules/pi-lens/docs/agent-guide.md +3 -1
  140. package/node_modules/pi-lens/docs/agent-tools.md +4 -2
  141. package/node_modules/pi-lens/docs/alignment-families.md +5 -1
  142. package/node_modules/pi-lens/docs/ci.md +120 -0
  143. package/node_modules/pi-lens/docs/configuration.md +21 -3
  144. package/node_modules/pi-lens/docs/custom-rules.md +1 -0
  145. package/node_modules/pi-lens/docs/defect-shapes.md +107 -71
  146. package/node_modules/pi-lens/docs/durable-store-audit-1202.md +1 -1
  147. package/node_modules/pi-lens/docs/engineering-principles.md +46 -12
  148. package/node_modules/pi-lens/docs/environment-variables.md +25 -2
  149. package/node_modules/pi-lens/docs/features.md +1 -1
  150. package/node_modules/pi-lens/docs/invariants/dispatch-runners.md +13 -0
  151. package/node_modules/pi-lens/docs/language-coverage.md +1 -1
  152. package/node_modules/pi-lens/docs/lsp-capability-matrix.md +15 -16
  153. package/node_modules/pi-lens/docs/lsp-idle-eviction.md +1 -1
  154. package/node_modules/pi-lens/docs/module-report-read-symbol.md +2 -2
  155. package/node_modules/pi-lens/docs/pi-lens-fixer.md +3 -2
  156. package/node_modules/pi-lens/docs/pi-lens-merge-policy.md +1 -0
  157. package/node_modules/pi-lens/docs/pi-lens-monitor.md +4 -1
  158. package/node_modules/pi-lens/docs/pi-lens-release.md +19 -0
  159. package/node_modules/pi-lens/docs/pi-lens-reviewer.md +8 -2
  160. package/node_modules/pi-lens/docs/public-api-stability.md +41 -6
  161. package/node_modules/pi-lens/docs/rfcs/5138-query-surface.md +121 -0
  162. package/node_modules/pi-lens/docs/servercapabilities.md +1 -1
  163. package/node_modules/pi-lens/docs/settings.md +9 -0
  164. package/node_modules/pi-lens/docs/word-index.md +9 -10
  165. package/node_modules/pi-lens/package.json +3 -3
  166. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/README.md +2 -0
  167. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/dont-call-system-c.yml +2 -1
  168. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/file-access-before-action-c.yml +2 -1
  169. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/file-stat-before-action-c.yml +2 -1
  170. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/insecure-hash-c.yml +2 -1
  171. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/libxml2-audit-parser-c.yml +2 -1
  172. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/null-library-function-c.yml +2 -1
  173. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/sizeof-this-c.yml +2 -1
  174. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/small-key-size-c.yml +2 -1
  175. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/world-writable-file-c.yml +2 -1
  176. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/dont-call-system-cpp.yml +2 -1
  177. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/file-access-before-action-cpp.yml +2 -1
  178. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/file-stat-before-action-cpp.yml +2 -1
  179. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/fix-format-security-error-cpp.yml +2 -1
  180. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/insecure-hash-cpp.yml +2 -1
  181. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/libxml2-audit-parser-cpp.yml +2 -1
  182. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/missing-nul-cpp-string-memcpy-cpp.yml +2 -1
  183. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/null-library-function-cpp.yml +2 -1
  184. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/return-c-str-cpp.yml +2 -1
  185. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/sizeof-this-cpp.yml +2 -1
  186. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/small-key-size-cpp.yml +2 -1
  187. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/std-return-data-cpp.yml +2 -1
  188. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/std-vector-invalidation-cpp.yml +2 -1
  189. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/string-view-temporary-string-cpp.yml +2 -1
  190. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/world-writable-file-cpp.yml +2 -1
  191. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/httponly-false-csharp.yml +2 -1
  192. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/insecure-binaryformatter-deserialization-csharp.yml +2 -1
  193. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/jwt-decode-without-verify-csharp.yml +2 -1
  194. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/jwt-hardcoded-secret-csharp.yml +2 -1
  195. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/jwt-tokenvalidationparameters-no-expiry-validation-csharp.yml +2 -1
  196. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/networkcredential-hardcoded-secret-python.yml +2 -1
  197. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/npgsqlconnectionstringbuilder-hardcoded-secret-csharp.yml +2 -1
  198. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/oracleconnectionstringbuilder-hardcoded-secret-csharp.yml +2 -1
  199. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/sqlconnectionstringbuilder-hardcoded-secret-csharp.yml +2 -1
  200. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/stacktrace-disclosure-csharp.yml +2 -1
  201. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/use-ecb-mode-csharp.yml +2 -1
  202. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/avoid-bind-to-all-interfaces-go.yml +2 -1
  203. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/gorilla-cookie-store-hardcoded-session-key-go.yml +2 -1
  204. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/gorilla-csrf-hardcoded-auth-key-go.yml +2 -1
  205. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/grpc-client-insecure-connection-go.yml +2 -1
  206. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/jwt-go-none-algorithm-go.yml +2 -1
  207. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/missing-ssl-minversion-go.yml +2 -1
  208. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/openai-empty-secret-go.yml +2 -1
  209. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/openai-hardcoded-secret-go.yml +2 -1
  210. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/ssl-v3-is-insecure-go.yml +2 -1
  211. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/tls-with-insecure-cipher-go.yml +2 -1
  212. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/use-of-weak-rsa-key-go.yml +2 -1
  213. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/html/security/plaintext-http-link-html.yml +2 -1
  214. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/cbc-padding-oracle-java.yml +2 -1
  215. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-httponly-false-java.yml +2 -1
  216. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-missing-httponly-java.yml +2 -1
  217. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-missing-samesite-java.yml +2 -1
  218. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-missing-secure-flag-java.yml +2 -1
  219. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-secure-flag-false-java.yml +2 -1
  220. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/datanucleus-hardcoded-connection-password-java.yml +2 -1
  221. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/des-is-deprecated-java.yml +2 -1
  222. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/desede-is-deprecated-java.yml +2 -1
  223. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/documentbuilderfactory-disallow-doctype-decl-false-java.yml +2 -1
  224. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/documentbuilderfactory-external-general-entities-true-java.yml +2 -1
  225. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/documentbuilderfactory-external-parameter-entities-true-java.yml +2 -1
  226. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/drivermanager-hardcoded-secret-java.yml +2 -1
  227. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/ecb-cipher-java.yml +2 -1
  228. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/hardcoded-connection-password-java.yml +2 -1
  229. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/hardcoded-secret-in-credentials-java.yml +2 -1
  230. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/java-jwt-hardcoded-secret-java.yml +2 -1
  231. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/jedis-jedisclientconfig-hardcoded-password-java.yml +2 -1
  232. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/jedis-jedisfactory-hardcoded-password-java.yml +2 -1
  233. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/missing-httponly-java.yml +2 -1
  234. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/missing-secure-java.yml +2 -1
  235. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/no-null-cipher-java.yml +2 -1
  236. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/passwordauthentication-hardcoded-password-java.yml +2 -1
  237. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/rsa-no-padding-java.yml +2 -1
  238. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/simple-command-injection-direct-input-java.yml +2 -1
  239. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/system-setproperty-hardcoded-secret-java.yml +2 -1
  240. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/unencrypted-socket-java.yml +2 -1
  241. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-aes-ecb-java.yml +2 -1
  242. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-blowfish-java.yml +2 -1
  243. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-default-aes-java.yml +2 -1
  244. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-md5-digest-utils-java.yml +2 -1
  245. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-md5-java.yml +2 -1
  246. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-rc2-java.yml +2 -1
  247. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-rc4-java.yml +2 -1
  248. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-sha1-java.yml +2 -1
  249. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/weak-ssl-context-java.yml +2 -1
  250. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/detect-angular-sce-disabled-javascript.yml +2 -1
  251. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/express-jwt-hardcoded-secret-javascript.yml +2 -1
  252. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/express-session-hardcoded-secret-javascript.yml +2 -1
  253. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/jwt-simple-noverify-javascript.yml +2 -1
  254. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/node-rsa-weak-key-javascript.yml +2 -1
  255. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/node-sequelize-empty-password-argument-javascript.yml +2 -1
  256. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/node-sequelize-hardcoded-secret-argument-javascript.yml +2 -1
  257. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/kotlin/security/des-is-deprecated-kotlin.yml +2 -1
  258. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/kotlin/security/desede-is-deprecated-kotlin.yml +2 -1
  259. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/kotlin/security/jwt-hardcode-kotlin.yml +2 -1
  260. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/kotlin/security/rsa-no-padding-kotlin.yml +2 -1
  261. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/kotlin/security/system-setproperty-hardcoded-secret-kotlin.yml +2 -1
  262. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/php/security/openssl-cbc-static-iv-php.yml +2 -1
  263. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/php/security/search-active-debug-php.yml +2 -1
  264. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/avoid-mktemp-python.yml +2 -1
  265. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/avoid_app_run_with_bad_host-python.yml +2 -1
  266. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/debug-enabled-python.yml +2 -1
  267. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/hashids-with-django-secret-python.yml +2 -1
  268. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/hashids-with-flask-secret-python.yml +2 -1
  269. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/insecure-cipher-algorithm-rc4-python.yml +2 -1
  270. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/jwt-python-hardcoded-secret-python.yml +2 -1
  271. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/openai-hardcoded-secret-python.yml +2 -1
  272. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-cassandra-empty-password-python.yml +2 -1
  273. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-cassandra-hardcoded-secret-python.yml +2 -1
  274. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-couchbase-empty-password-python.yml +2 -1
  275. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-couchbase-hardcoded-secret-python.yml +2 -1
  276. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-elasticsearch-hardcoded-bearer-auth-python.yml +2 -1
  277. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-ldap3-empty-password-python.yml +2 -1
  278. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-ldap3-hardcoded-secret-python.yml +2 -1
  279. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-mariadb-empty-password-python.yml +2 -1
  280. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-mariadb-hardcoded-secret-python.yml +2 -1
  281. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysql-empty-password-python.yml +2 -1
  282. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysql-hardcoded-secret-python.yml +2 -1
  283. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysqlclient-empty-password-python.yml +2 -1
  284. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysqlclient-hardcoded-secret-python.yml +2 -1
  285. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-neo4j-empty-password-python.yml +2 -1
  286. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-neo4j-hardcoded-secret-python.yml +2 -1
  287. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-mysql-empty-password-python.yml +2 -1
  288. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-mysql-hardcoded-secret-python.yml +2 -1
  289. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-pg-empty-password-python.yml +2 -1
  290. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-pg-hardcoded-secret-python.yml +2 -1
  291. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pg8000-empty-password-python.yml +2 -1
  292. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pg8000-hardcoded-secret-python.yml +2 -1
  293. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-psycopg2-empty-password-python.yml +2 -1
  294. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-psycopg2-hardcoded-secret-python.yml +2 -1
  295. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pyjwt-hardcoded-secret-python.yml +2 -1
  296. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymongo-empty-password-python.yml +2 -1
  297. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymongo-hardcoded-secret-python.yml +2 -1
  298. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymssql-empty-password-python.yml +2 -1
  299. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymssql-hardcoded-secret-python.yml +2 -1
  300. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymysql-empty-password-python.yml +2 -1
  301. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymysql-hardcoded-secret-python.yml +2 -1
  302. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-redis-empty-password-python.yml +2 -1
  303. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-redis-hardcoded-secret-python.yml +2 -1
  304. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-requests-empty-password-python.yml +2 -1
  305. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-requests-hardcoded-secret-python.yml +2 -1
  306. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-requests-oauth-hardcoded-secret-python.yml +2 -1
  307. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-tormysql-empty-password-python.yml +2 -1
  308. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-tormysql-hardcoded-secret-python.yml +2 -1
  309. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-urllib3-hardcoded-secret-python.yml +2 -1
  310. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-webrepl-empty-password-python.yml +2 -1
  311. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-webrepl-hardcoded-secret-python.yml +2 -1
  312. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/force-ssl-false-ruby.yml +2 -1
  313. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/hardcoded-http-auth-in-controller-ruby.yml +2 -1
  314. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/hardcoded-secret-rsa-passphrase-ruby.yml +2 -1
  315. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/insufficient-rsa-key-size-ruby.yml +2 -1
  316. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-aws-sdk-hardcoded-secret-ruby.yml +2 -1
  317. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-cassandra-empty-password-ruby.yml +2 -1
  318. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-cassandra-hardcoded-secret-ruby.yml +2 -1
  319. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-excon-hardcoded-secret-ruby.yml +2 -1
  320. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-faraday-hardcoded-secret-ruby.yml +2 -1
  321. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mongo-empty-password-ruby.yml +2 -1
  322. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mongo-hardcoded-secret-ruby.yml +2 -1
  323. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mysql2-empty-password-ruby.yml +2 -1
  324. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mysql2-hardcoded-secret-ruby.yml +2 -1
  325. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-octokit-hardcoded-secret-ruby.yml +2 -1
  326. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-pg-empty-password-ruby.yml +2 -1
  327. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-pg-hardcoded-secret-ruby.yml +2 -1
  328. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-redis-empty-password-ruby.yml +2 -1
  329. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-redis-hardcoded-secret-ruby.yml +2 -1
  330. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/empty-password-rust.yml +2 -1
  331. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/hardcoded-password-rust.yml +2 -1
  332. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/postgres-empty-password-rust.yml +2 -1
  333. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/reqwest-accept-invalid-rust.yml +2 -1
  334. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/secrets-reqwest-hardcoded-auth-rust.yml +2 -1
  335. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/ssl-verify-none-rust.yml +2 -1
  336. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/tokio-postgres-empty-password-rust.yml +2 -1
  337. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/tokio-postgres-hardcoded-password-rust.yml +2 -1
  338. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/scala/security/jwt-scala-hardcode-scala.yml +2 -1
  339. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/scala/security/scala-jwt-hardcoded-secret-scala.yml +2 -1
  340. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/swift/security/aes-hardcoded-secret-swift.yml +2 -1
  341. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/swift/security/blowfish-hardcoded-secret-swift.yml +2 -1
  342. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/swift/security/chacha20-hardcoded-secret-swift.yml +2 -1
  343. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/swift/security/insecure-biometrics-swift.yml +2 -1
  344. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/swift/security/rabbit-hardcoded-secret-swift.yml +2 -1
  345. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/typescript/security/detect-angular-sce-disabled-typescript.yml +2 -1
  346. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/typescript/security/express-session-hardcoded-secret-typescript.yml +2 -1
  347. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/typescript/security/jwt-simple-noverify-typescript.yml +2 -1
  348. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/typescript/security/node-rsa-weak-key-typescript.yml +2 -1
  349. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/typescript/security/node-sequelize-empty-password-argument-typescript.yml +2 -1
  350. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/typescript/security/node-sequelize-hardcoded-secret-argument-typescript.yml +2 -1
  351. package/node_modules/pi-lens/rules/ast-grep-rules/rule-schema.json +1 -1
  352. package/node_modules/pi-lens/rules/ast-grep-rules/rules/c-no-malloc-free.yml +13 -12
  353. package/node_modules/pi-lens/rules/ast-grep-rules/rules/cpp-no-malloc-free.yml +11 -10
  354. package/node_modules/pi-lens/rules/ast-grep-rules/rules/cpp-no-printf.yml +10 -9
  355. package/node_modules/pi-lens/rules/ast-grep-rules/rules/go-defer-func-call-antipattern.yml +14 -13
  356. package/node_modules/pi-lens/rules/ast-grep-rules/rules/go-no-fmt-println.yml +14 -13
  357. package/node_modules/pi-lens/rules/ast-grep-rules/rules/go-no-panic-in-lib.yml +20 -19
  358. package/node_modules/pi-lens/rules/ast-grep-rules/rules/go-no-underscore-func-name.yml +14 -13
  359. package/node_modules/pi-lens/rules/ast-grep-rules/rules/go-prefer-errors-is.yml +14 -13
  360. package/node_modules/pi-lens/rules/ast-grep-rules/rules/go-prefer-string-builder.yml +19 -18
  361. package/node_modules/pi-lens/rules/ast-grep-rules/rules/go-test-functions.yml +14 -13
  362. package/node_modules/pi-lens/rules/ast-grep-rules/rules/hyphenated-svg-attribute.yml +10 -9
  363. package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-no-lateinit.yml +12 -11
  364. package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-no-nullable-boolean.yml +11 -10
  365. package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-no-println.yml +15 -14
  366. package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-no-unnecessary-let.yml +10 -9
  367. package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-no-unsafe-cast.yml +10 -9
  368. package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-no-var.yml +11 -10
  369. package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-prefer-data-class.yml +10 -9
  370. package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-prefer-is-empty.yml +10 -9
  371. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-aws-access-key-literal.yml +1 -1
  372. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-compile-call.yml +13 -12
  373. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-flask-secret-key-literal.yml +1 -1
  374. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-hardcoded-password.yml +1 -1
  375. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-marshal-load.yml +12 -11
  376. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-python-sql-string-concat.yml +12 -11
  377. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-requests-verify-false.yml +13 -12
  378. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-secret-in-env-var-name.yml +1 -1
  379. package/node_modules/pi-lens/rules/ast-grep-rules/rules/python-optional-type.yml +9 -8
  380. package/node_modules/pi-lens/rules/ast-grep-rules/rules/reducible-list-comprehension.yml +8 -7
  381. package/node_modules/pi-lens/rules/ast-grep-rules/rules/ruby-detect-path-traversal.yml +14 -13
  382. package/node_modules/pi-lens/rules/ast-grep-rules/rules/ruby-symbol-to-proc-candidate.yml +8 -7
  383. package/node_modules/pi-lens/rules/ast-grep-rules/rules/rust-no-chars-enumerate.yml +9 -8
  384. package/node_modules/pi-lens/rules/ast-grep-rules/rules-disabled/gorm-unbounded-preload.yml +7 -6
  385. package/node_modules/pi-lens/rules/ast-grep-rules/rules-disabled/shadow-err-variable.yml +6 -5
  386. package/node_modules/pi-lens/scripts/analyze-pi-lens-logs.mjs +262 -3
  387. package/node_modules/pi-lens/scripts/lib/latency-log-phases.mjs +125 -0
  388. package/package.json +6 -6
  389. package/node_modules/pi-lens/dist/chunk-3QWVOBZJ.js +0 -73
  390. package/node_modules/pi-lens/dist/chunk-BDR5MEZY.js +0 -25
  391. package/node_modules/pi-lens/dist/chunk-DBS736MA.js +0 -57
  392. package/node_modules/pi-lens/dist/chunk-I74RQGKA.js +0 -88
  393. package/node_modules/pi-lens/dist/chunk-IK4YS3KC.js +0 -25
  394. package/node_modules/pi-lens/dist/chunk-JKOZ2Z4U.js +0 -20
  395. package/node_modules/pi-lens/dist/chunk-TQHOKMVZ.js +0 -28
  396. package/node_modules/pi-lens/dist/chunk-VS2L7QDI.js +0 -25
  397. package/node_modules/pi-lens/dist/chunk-ZPFLHB3R.js +0 -28
@@ -1,29 +1,267 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  loadProjectSnapshotWithoutWordIndex
4
- } from "./chunk-BRESRQBE.js";
4
+ } from "./chunk-HTUG7ZFK.js";
5
+ import {
6
+ hasTomlTable,
7
+ normalizeToml
8
+ } from "./chunk-SUIZOCSY.js";
5
9
  import {
6
10
  resolvePackagePath
7
- } from "./chunk-QGITU23N.js";
11
+ } from "./chunk-E3PNZDPH.js";
8
12
  import {
9
13
  TERRAGRUNT_FILENAMES,
10
14
  isJstsFactFile
11
- } from "./chunk-CZCAZVTD.js";
15
+ } from "./chunk-SRXYSLMW.js";
12
16
  import {
13
17
  recordDegradationOnce
14
- } from "./chunk-3FRI5H4T.js";
18
+ } from "./chunk-AGEQRJ5A.js";
15
19
  import {
16
20
  logLatency
17
- } from "./chunk-VCRVNLE7.js";
21
+ } from "./chunk-K2GV34T2.js";
18
22
  import {
19
23
  findNearestContaining,
20
24
  normalizeMapKey,
25
+ pathsEqual,
26
+ realpathOrResolve,
21
27
  walkUpDirs
22
- } from "./chunk-CB7PEVOJ.js";
28
+ } from "./chunk-WLD6BGON.js";
23
29
 
24
- // dist/clients/tool-policy.js
25
- import * as fs from "node:fs";
30
+ // dist/clients/tool-config-presence.js
31
+ import * as fs2 from "node:fs";
32
+ import * as os from "node:os";
26
33
  import * as path from "node:path";
34
+
35
+ // dist/clients/dispatch/runners/utils.js
36
+ import * as fs from "node:fs";
37
+ function readFileContent(filePath) {
38
+ try {
39
+ return fs.readFileSync(filePath, "utf-8");
40
+ } catch {
41
+ return void 0;
42
+ }
43
+ }
44
+
45
+ // dist/clients/tool-config-presence.js
46
+ var TOOL_CONFIG_SPECS = {
47
+ detekt: {
48
+ files: [
49
+ "detekt.yml",
50
+ ".detekt.yml",
51
+ path.join("config", "detekt", "detekt.yml"),
52
+ path.join("detekt", "detekt.yml")
53
+ ]
54
+ },
55
+ // tflint ships built-in rules and runs without config, so `.tflint.hcl` is
56
+ // the project electing it, not a prerequisite. It resolves config from its
57
+ // own working directory and never walks parents, so the runner hands the
58
+ // found file over with `--config`.
59
+ tflint: { files: [".tflint.hcl"] },
60
+ black: {
61
+ tomlTables: [{ file: "pyproject.toml", table: String.raw`tool\.black` }],
62
+ dependency: { name: "black", files: ["requirements.txt", "Pipfile"] }
63
+ },
64
+ // Ruff ignores a `pyproject.toml` without `[tool.ruff]` (measured, see
65
+ // `python-environment.ts`), so the table is the evidence.
66
+ ruff: {
67
+ files: ["ruff.toml", ".ruff.toml"],
68
+ tomlTables: [{ file: "pyproject.toml", table: String.raw`tool\.ruff` }]
69
+ },
70
+ sqlfluff: {
71
+ files: [".sqlfluff"],
72
+ tomlTables: [{ file: "pyproject.toml", table: String.raw`tool\.sqlfluff` }],
73
+ iniSections: [
74
+ { file: "setup.cfg", section: "sqlfluff" },
75
+ { file: "tox.ini", section: "sqlfluff" }
76
+ ],
77
+ dependency: {
78
+ name: "sqlfluff",
79
+ files: ["requirements.txt", "Pipfile", "pyproject.toml"]
80
+ }
81
+ },
82
+ yamllint: {
83
+ files: [".yamllint", ".yamllint.yml", ".yamllint.yaml"],
84
+ tomlTables: [{ file: "pyproject.toml", table: String.raw`tool\.yamllint` }],
85
+ iniSections: [
86
+ { file: "setup.cfg", section: "yamllint" },
87
+ { file: "tox.ini", section: "yamllint" }
88
+ ],
89
+ dependency: {
90
+ name: "yamllint",
91
+ files: ["requirements.txt", "Pipfile", "pyproject.toml"]
92
+ }
93
+ },
94
+ mypy: {
95
+ files: ["mypy.ini", ".mypy.ini"],
96
+ tomlTables: [{ file: "pyproject.toml", table: String.raw`tool\.mypy` }],
97
+ iniSections: [{ file: "setup.cfg", section: "mypy" }]
98
+ },
99
+ // The Mix project descriptor, the evidence credo and `mix compile` need.
100
+ mix: { files: ["mix.exs"], exactDir: true },
101
+ // shfmt's only config source, and the formatters' indentation opt-out.
102
+ editorconfig: { files: [".editorconfig"] }
103
+ };
104
+ function normalizeDistributionName(name) {
105
+ return name.toLowerCase().replace(/[-_.]+/g, "-");
106
+ }
107
+ var REQUIREMENT_NAME = /^\s*([A-Za-z0-9](?:[A-Za-z0-9._-]*[A-Za-z0-9])?)\s*(?:\[[^\]]*\])?\s*(?:$|[<>=!~;@(,\s])/;
108
+ function requirementName(requirement) {
109
+ const match = REQUIREMENT_NAME.exec(requirement);
110
+ return match ? normalizeDistributionName(match[1] ?? "") : void 0;
111
+ }
112
+ function requirementsNames(content) {
113
+ const names = [];
114
+ for (const raw of content.replace(/^/, "").split(/\r?\n/)) {
115
+ const line = raw.replace(/(^|\s)#.*$/, "").trim();
116
+ if (line === "" || line.startsWith("-"))
117
+ continue;
118
+ const name = requirementName(line);
119
+ if (name)
120
+ names.push(name);
121
+ }
122
+ return names;
123
+ }
124
+ var TOML_TABLE_HEADING = /^[ \t]*\[([^[\]]+)\][ \t]*$/;
125
+ var TOML_KEY_LINE = /^[ \t]*("[^"]+"|'[^']+'|[A-Za-z0-9_.-]+)[ \t]*=[ \t]*(.*)$/;
126
+ function bracketDelta(text) {
127
+ let depth = 0;
128
+ let quote;
129
+ for (const ch of text) {
130
+ if (quote) {
131
+ if (ch === quote)
132
+ quote = void 0;
133
+ } else if (ch === '"' || ch === "'")
134
+ quote = ch;
135
+ else if (ch === "[")
136
+ depth += 1;
137
+ else if (ch === "]")
138
+ depth -= 1;
139
+ }
140
+ return depth;
141
+ }
142
+ function tomlEntries(content) {
143
+ const entries = [];
144
+ const lines = normalizeToml(content).split("\n");
145
+ let table = "";
146
+ for (let i = 0; i < lines.length; i++) {
147
+ const line = lines[i] ?? "";
148
+ if (/^[ \t]*\[\[/.test(line)) {
149
+ table = "";
150
+ continue;
151
+ }
152
+ const heading = TOML_TABLE_HEADING.exec(line);
153
+ if (heading) {
154
+ table = (heading[1] ?? "").replace(/["'\s]/g, "");
155
+ continue;
156
+ }
157
+ const keyLine = TOML_KEY_LINE.exec(line);
158
+ if (!keyLine)
159
+ continue;
160
+ let value = keyLine[2] ?? "";
161
+ let depth = bracketDelta(value);
162
+ while (depth > 0 && i + 1 < lines.length) {
163
+ i += 1;
164
+ value += `
165
+ ${lines[i] ?? ""}`;
166
+ depth += bracketDelta(lines[i] ?? "");
167
+ }
168
+ entries.push({
169
+ table,
170
+ key: (keyLine[1] ?? "").replace(/^["']|["']$/g, ""),
171
+ value
172
+ });
173
+ }
174
+ return entries;
175
+ }
176
+ function quotedStrings(value) {
177
+ return [...value.matchAll(/"((?:[^"\\]|\\.)*)"|'([^']*)'/g)].map((m) => m[1] ?? m[2] ?? "");
178
+ }
179
+ var POETRY_DEPENDENCY_TABLE = /^tool\.poetry(?:\.group\.[^.]+)?\.(?:dev-)?dependencies$/;
180
+ function pyprojectDependencyNames(content) {
181
+ const names = [];
182
+ for (const { table, key, value } of tomlEntries(content)) {
183
+ if (POETRY_DEPENDENCY_TABLE.test(table)) {
184
+ names.push(normalizeDistributionName(key));
185
+ } else if (table === "project" && key === "dependencies" || table === "tool.uv" && key === "dev-dependencies" || table === "project.optional-dependencies" || table === "dependency-groups") {
186
+ for (const text of quotedStrings(value)) {
187
+ const name = requirementName(text);
188
+ if (name)
189
+ names.push(name);
190
+ }
191
+ }
192
+ }
193
+ return names;
194
+ }
195
+ function pipfileNames(content) {
196
+ return tomlEntries(content).flatMap(({ table, key }) => table === "packages" || table === "dev-packages" ? [normalizeDistributionName(key)] : []);
197
+ }
198
+ function dependencyNames(file, content) {
199
+ switch (file) {
200
+ case "requirements.txt":
201
+ return requirementsNames(content);
202
+ case "Pipfile":
203
+ return pipfileNames(content);
204
+ case "pyproject.toml":
205
+ return pyprojectDependencyNames(content);
206
+ }
207
+ }
208
+ function hasIniSection(content, section) {
209
+ return new RegExp(`^[ \\t]*\\[${section}\\][ \\t]*(?:[#;].*)?$`, "m").test(content);
210
+ }
211
+ function findInDir(spec, dir) {
212
+ for (const name of spec.files ?? []) {
213
+ const candidate = path.join(dir, name);
214
+ if (fs2.existsSync(candidate)) {
215
+ return { file: candidate, dir, source: "file" };
216
+ }
217
+ }
218
+ for (const { file, table } of spec.tomlTables ?? []) {
219
+ const candidate = path.join(dir, file);
220
+ const content = readFileContent(candidate);
221
+ if (content !== void 0 && hasTomlTable(content, table)) {
222
+ return { file: candidate, dir, source: "toml-table" };
223
+ }
224
+ }
225
+ for (const { file, section } of spec.iniSections ?? []) {
226
+ const candidate = path.join(dir, file);
227
+ const content = readFileContent(candidate);
228
+ if (content !== void 0 && hasIniSection(content, section)) {
229
+ return { file: candidate, dir, source: "ini-section" };
230
+ }
231
+ }
232
+ if (spec.dependency) {
233
+ const wanted = normalizeDistributionName(spec.dependency.name);
234
+ for (const file of spec.dependency.files) {
235
+ const candidate = path.join(dir, file);
236
+ const content = readFileContent(candidate);
237
+ if (content !== void 0 && dependencyNames(file, content).includes(wanted)) {
238
+ return { file: candidate, dir, source: "dependency" };
239
+ }
240
+ }
241
+ }
242
+ return void 0;
243
+ }
244
+ function findToolConfig(tool, startDir, options = {}) {
245
+ const spec = TOOL_CONFIG_SPECS[tool];
246
+ if (spec.exactDir)
247
+ return findInDir(spec, realpathOrResolve(startDir));
248
+ const home = realpathOrResolve(options.homeDir ?? os.homedir());
249
+ for (const dir of walkUpDirs(startDir)) {
250
+ const hit = findInDir(spec, dir);
251
+ if (hit)
252
+ return hit;
253
+ if (pathsEqual(dir, home))
254
+ return void 0;
255
+ }
256
+ return void 0;
257
+ }
258
+ function hasToolConfig(tool, startDir, options = {}) {
259
+ return findToolConfig(tool, startDir, options) !== void 0;
260
+ }
261
+
262
+ // dist/clients/tool-policy.js
263
+ import * as fs3 from "node:fs";
264
+ import * as path2 from "node:path";
27
265
  var FORMATTER_POLICY_BY_EXTENSION = /* @__PURE__ */ new Map([
28
266
  [
29
267
  ".js",
@@ -749,10 +987,10 @@ function getFormatterPolicyForExtension(ext) {
749
987
  return FORMATTER_POLICY_BY_EXTENSION.get(ext.toLowerCase());
750
988
  }
751
989
  function getFormatterPolicyForFile(filePath) {
752
- const byFilename = FORMATTER_POLICY_BY_FILENAME.get(path.basename(filePath).toLowerCase());
990
+ const byFilename = FORMATTER_POLICY_BY_FILENAME.get(path2.basename(filePath).toLowerCase());
753
991
  if (byFilename)
754
992
  return byFilename;
755
- return getFormatterPolicyForExtension(path.extname(filePath));
993
+ return getFormatterPolicyForExtension(path2.extname(filePath));
756
994
  }
757
995
  function getSmartDefaultFormatterName(filePath) {
758
996
  const policy = getFormatterPolicyForFile(filePath);
@@ -837,58 +1075,68 @@ var TOOL_EXECUTION_POLICY = /* @__PURE__ */ new Map([
837
1075
  // Dispatch/LSP runners use the shared availability/install seam. These
838
1076
  // managed tools are missing-command repair candidates; probe failures still
839
1077
  // fail closed before this policy is consulted.
840
- ["pyright", { gate: "smart-default", autoInstall: true }],
841
- ["shellcheck", { gate: "smart-default", autoInstall: true }],
842
- ["shfmt", { gate: "smart-default", autoInstall: true }],
843
- ["tflint", { gate: "smart-default", autoInstall: true }],
844
- ["terragrunt", { gate: "smart-default", autoInstall: true }],
845
- ["trivy", { gate: "config-first", autoInstall: true }],
846
- ["biome", { gate: "smart-default", autoInstall: true }],
847
- ["ruff", { gate: "smart-default", autoInstall: true }],
848
- ["jscpd", { gate: "smart-default", autoInstall: true }],
849
- ["madge", { gate: "smart-default", autoInstall: true }],
850
- ["knip", { gate: "smart-default", autoInstall: true }],
851
- ["ast-grep", { gate: "smart-default", autoInstall: true }],
852
- ["oxlint", { gate: "smart-default", autoInstall: true }],
853
- ["stylelint", { gate: "smart-default", autoInstall: true }],
854
- ["sqlfluff", { gate: "smart-default", autoInstall: true }],
855
- ["rubocop", { gate: "smart-default", autoInstall: true }],
856
- ["yamllint", { gate: "smart-default", autoInstall: true }],
857
- ["actionlint", { gate: "smart-default", autoInstall: true }],
858
- ["markdownlint", { gate: "smart-default", autoInstall: true }],
859
- ["mypy", { gate: "config-first", autoInstall: true }],
860
- ["taplo", { gate: "smart-default", autoInstall: true }],
861
- ["hadolint", { gate: "smart-default", autoInstall: true }],
862
- ["helm", { gate: "smart-default", autoInstall: true }],
863
- ["htmlhint", { gate: "smart-default", autoInstall: true }],
864
- ["ktlint", { gate: "smart-default", autoInstall: true }],
1078
+ ["pyright", { configEligibility: "smart-default", autoInstall: true }],
1079
+ ["shellcheck", { configEligibility: "smart-default", autoInstall: true }],
1080
+ ["shfmt", { configEligibility: "smart-default", autoInstall: true }],
1081
+ ["tflint", { configEligibility: "smart-default", autoInstall: true }],
1082
+ ["terragrunt", { configEligibility: "smart-default", autoInstall: true }],
1083
+ ["trivy", { configEligibility: "config-first", autoInstall: true }],
1084
+ ["biome", { configEligibility: "smart-default", autoInstall: true }],
1085
+ ["ruff", { configEligibility: "smart-default", autoInstall: true }],
1086
+ ["jscpd", { configEligibility: "smart-default", autoInstall: true }],
1087
+ ["madge", { configEligibility: "smart-default", autoInstall: true }],
1088
+ ["knip", { configEligibility: "smart-default", autoInstall: true }],
1089
+ ["ast-grep", { configEligibility: "smart-default", autoInstall: true }],
1090
+ ["oxlint", { configEligibility: "smart-default", autoInstall: true }],
1091
+ ["stylelint", { configEligibility: "smart-default", autoInstall: true }],
1092
+ ["sqlfluff", { configEligibility: "smart-default", autoInstall: true }],
1093
+ ["rubocop", { configEligibility: "smart-default", autoInstall: true }],
1094
+ ["yamllint", { configEligibility: "smart-default", autoInstall: true }],
1095
+ ["actionlint", { configEligibility: "smart-default", autoInstall: true }],
1096
+ ["markdownlint", { configEligibility: "smart-default", autoInstall: true }],
1097
+ ["mypy", { configEligibility: "config-first", autoInstall: true }],
1098
+ ["taplo", { configEligibility: "smart-default", autoInstall: true }],
1099
+ ["hadolint", { configEligibility: "smart-default", autoInstall: true }],
1100
+ ["helm", { configEligibility: "smart-default", autoInstall: true }],
1101
+ ["htmlhint", { configEligibility: "smart-default", autoInstall: true }],
1102
+ ["ktlint", { configEligibility: "smart-default", autoInstall: true }],
865
1103
  // ktfmt is opt-in (a project's explicit formatting choice), so it only runs
866
1104
  // when its config marker is present — config-first, but auto-installable via
867
1105
  // the maven-JAR strategy once elected (#129).
868
- ["ktfmt", { gate: "config-first", autoInstall: true }],
869
- ["golangci-lint", { gate: "config-first", autoInstall: true }],
1106
+ ["ktfmt", { configEligibility: "config-first", autoInstall: true }],
1107
+ ["golangci-lint", { configEligibility: "config-first", autoInstall: true }],
870
1108
  // SpotBugs is opt-in (lens-spotbugs flag) + config-first (needs a Java build
871
1109
  // descriptor + compiled .class files), auto-installed via the archive
872
1110
  // strategy when elected (#133).
873
- ["spotbugs", { gate: "config-first", autoInstall: true }],
1111
+ ["spotbugs", { configEligibility: "config-first", autoInstall: true }],
874
1112
  // Opengrep is opt-in (lens-opengrep flag or a discovered rule file) and
875
1113
  // config-first, but auto-installable via the GitHub single-binary strategy
876
1114
  // once elected — no login/token required, unlike Semgrep (#111).
877
- ["opengrep", { gate: "config-first", autoInstall: true }],
878
- ["phpstan", { gate: "config-first", autoInstall: false }],
879
- ["eslint", { gate: "config-first", autoInstall: false }],
880
- ["prettier", { gate: "smart-default", autoInstall: true }],
881
- ["vale", { gate: "config-first", autoInstall: false }],
882
- ["swiftlint", { gate: "smart-default", autoInstall: true }]
1115
+ ["opengrep", { configEligibility: "config-first", autoInstall: true }],
1116
+ ["phpstan", { configEligibility: "config-first", autoInstall: false }],
1117
+ ["eslint", { configEligibility: "config-first", autoInstall: false }],
1118
+ ["prettier", { configEligibility: "smart-default", autoInstall: true }],
1119
+ ["vale", { configEligibility: "config-first", autoInstall: false }],
1120
+ ["swiftlint", { configEligibility: "smart-default", autoInstall: true }],
1121
+ // typstyle is the default Typst formatter, so it carries the same
1122
+ // smart-default/auto-install row its AUTO_INSTALLABLE_DEFAULT_FORMATTERS
1123
+ // entry implies. The formatter path in `clients/formatters.ts` is what
1124
+ // installs it; the row exists so the policy table does not disagree with the
1125
+ // formatter table about a tool it names (#5418). The row states what already
1126
+ // runs, and changes no install decision: whether typstyle should auto-install
1127
+ // at all is an open product decision this branch deliberately leaves open.
1128
+ ["typstyle", { configEligibility: "smart-default", autoInstall: true }]
883
1129
  ]);
884
1130
  var TOOL_COMMAND_SPECS = /* @__PURE__ */ new Map([
885
1131
  [
1132
+ // No managedToolId: the installer registry has no `eslint` entry (the
1133
+ // runner resolves the project's own `node_modules/.bin/eslint` first), so
1134
+ // a pointer here named an install path that does not exist (#5418).
886
1135
  "eslint",
887
1136
  {
888
1137
  command: "eslint",
889
1138
  windowsExt: ".cmd",
890
- versionArgs: ["--version"],
891
- managedToolId: "eslint"
1139
+ versionArgs: ["--version"]
892
1140
  }
893
1141
  ],
894
1142
  [
@@ -984,6 +1232,7 @@ var TOOL_COMMAND_SPECS = /* @__PURE__ */ new Map([
984
1232
  "swiftlint",
985
1233
  {
986
1234
  command: "swiftlint",
1235
+ windowsExt: ".exe",
987
1236
  versionArgs: ["--version"],
988
1237
  managedToolId: "swiftlint"
989
1238
  }
@@ -997,12 +1246,13 @@ var TOOL_COMMAND_SPECS = /* @__PURE__ */ new Map([
997
1246
  }
998
1247
  ],
999
1248
  [
1249
+ // No managedToolId: no installer entry for `phpstan` exists, so the
1250
+ // pointer resolved to nothing (#5418; auto-install stays an open decision).
1000
1251
  "phpstan",
1001
1252
  {
1002
1253
  command: "phpstan",
1003
1254
  windowsExt: ".bat",
1004
- versionArgs: ["--version"],
1005
- managedToolId: "phpstan"
1255
+ versionArgs: ["--version"]
1006
1256
  }
1007
1257
  ],
1008
1258
  [
@@ -1027,6 +1277,7 @@ var TOOL_COMMAND_SPECS = /* @__PURE__ */ new Map([
1027
1277
  "htmlhint",
1028
1278
  {
1029
1279
  command: "htmlhint",
1280
+ windowsExt: ".cmd",
1030
1281
  versionArgs: ["--version"],
1031
1282
  managedToolId: "htmlhint"
1032
1283
  }
@@ -1062,22 +1313,7 @@ var STYLELINT_CONFIGS = [
1062
1313
  "stylelint.config.cjs",
1063
1314
  "stylelint.config.mjs"
1064
1315
  ];
1065
- var SQLFLUFF_CONFIGS = [
1066
- ".sqlfluff",
1067
- "pyproject.toml",
1068
- "setup.cfg",
1069
- "tox.ini"
1070
- ];
1071
1316
  var RUBOCOP_CONFIGS = [".rubocop.yml", ".rubocop.yaml"];
1072
- var MYPY_CONFIGS = ["mypy.ini", ".mypy.ini", "setup.cfg", "pyproject.toml"];
1073
- var YAMLLINT_CONFIGS = [
1074
- ".yamllint",
1075
- ".yamllint.yml",
1076
- ".yamllint.yaml",
1077
- "pyproject.toml",
1078
- "setup.cfg",
1079
- "tox.ini"
1080
- ];
1081
1317
  var MARKDOWNLINT_CONFIGS = [
1082
1318
  // markdownlint-cli2's built-in config names (keep this list in sync with
1083
1319
  // the installed CLI's supported configuration file names).
@@ -1109,7 +1345,6 @@ var PRETTIER_CONFIGS = [
1109
1345
  "prettier.config.mjs",
1110
1346
  "prettier.config.ts"
1111
1347
  ];
1112
- var RUFF_PROJECT_CONFIGS = ["ruff.toml", ".ruff.toml"];
1113
1348
  var GOLANGCI_CONFIGS = [
1114
1349
  ".golangci.yml",
1115
1350
  ".golangci.yaml",
@@ -1130,7 +1365,7 @@ var VITE_CONFIGS = [
1130
1365
  "vite.config.cjs"
1131
1366
  ];
1132
1367
  function getLinterPolicyForFile(filePath, context = {}) {
1133
- const ext = path.extname(filePath).toLowerCase();
1368
+ const ext = path2.extname(filePath).toLowerCase();
1134
1369
  if (isJstsFactFile(filePath)) {
1135
1370
  const policy = getJstsLintPolicy({
1136
1371
  hasEslintConfig: context.hasEslintConfig,
@@ -1171,8 +1406,8 @@ function getLinterPolicyForFile(filePath, context = {}) {
1171
1406
  runnerNames: ["sqlfluff"],
1172
1407
  preferredRunners: ["sqlfluff"],
1173
1408
  defaultRunner: "sqlfluff",
1174
- defaultWhenUnconfigured: false,
1175
- gate: "config-first"
1409
+ defaultWhenUnconfigured: true,
1410
+ gate: "smart-default"
1176
1411
  };
1177
1412
  }
1178
1413
  if ([".rb", ".rake", ".gemspec", ".ru"].includes(ext)) {
@@ -1211,7 +1446,7 @@ function getLinterPolicyForFile(filePath, context = {}) {
1211
1446
  gate: "smart-default"
1212
1447
  };
1213
1448
  }
1214
- if (path.basename(filePath).toLowerCase() === "dockerfile") {
1449
+ if (path2.basename(filePath).toLowerCase() === "dockerfile") {
1215
1450
  return {
1216
1451
  runnerNames: ["hadolint"],
1217
1452
  preferredRunners: ["hadolint"],
@@ -1220,7 +1455,7 @@ function getLinterPolicyForFile(filePath, context = {}) {
1220
1455
  gate: "smart-default"
1221
1456
  };
1222
1457
  }
1223
- if (TERRAGRUNT_FILENAMES.includes(path.basename(filePath).toLowerCase())) {
1458
+ if (TERRAGRUNT_FILENAMES.includes(path2.basename(filePath).toLowerCase())) {
1224
1459
  return {
1225
1460
  runnerNames: ["terragrunt"],
1226
1461
  preferredRunners: ["terragrunt"],
@@ -1383,7 +1618,7 @@ function getLinterPolicyForCwd(filePath, cwd) {
1383
1618
  hasKtfmtConfig: hasKtfmtConfig(cwd),
1384
1619
  // From the file's directory, not cwd: a `.tflint.hcl` in a terraform
1385
1620
  // subdirectory is invisible to an upward walk that starts at the repo root.
1386
- hasTflintConfig: hasTflintConfig(path.dirname(path.resolve(cwd, filePath)))
1621
+ hasTflintConfig: hasTflintConfig(path2.dirname(path2.resolve(cwd, filePath)))
1387
1622
  };
1388
1623
  const policy = getLinterPolicyForFile(filePath, context);
1389
1624
  if (policy) {
@@ -1426,14 +1661,14 @@ var ESLINT_LEGACY_CONFIGS = [
1426
1661
  function* walkUpDirsUntilPackageJson(cwd) {
1427
1662
  for (const dir of walkUpDirs(cwd)) {
1428
1663
  yield dir;
1429
- if (fs.existsSync(path.join(dir, "package.json")))
1664
+ if (fs3.existsSync(path2.join(dir, "package.json")))
1430
1665
  return;
1431
1666
  }
1432
1667
  }
1433
1668
  function findNearestPackageJsonPath(cwd) {
1434
1669
  for (const dir of walkUpDirs(cwd)) {
1435
- const pkgPath = path.join(dir, "package.json");
1436
- if (fs.existsSync(pkgPath))
1670
+ const pkgPath = path2.join(dir, "package.json");
1671
+ if (fs3.existsSync(pkgPath))
1437
1672
  return pkgPath;
1438
1673
  }
1439
1674
  return void 0;
@@ -1443,7 +1678,7 @@ function hasNearestPackageJsonDependency(cwd, dependencyName) {
1443
1678
  if (!pkgPath)
1444
1679
  return false;
1445
1680
  try {
1446
- const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf-8"));
1681
+ const pkg = JSON.parse(fs3.readFileSync(pkgPath, "utf-8"));
1447
1682
  return Boolean(pkg.dependencies?.[dependencyName] ?? pkg.devDependencies?.[dependencyName]);
1448
1683
  } catch {
1449
1684
  }
@@ -1454,7 +1689,7 @@ function hasNearestPackageJsonField(cwd, fieldName) {
1454
1689
  if (!pkgPath)
1455
1690
  return false;
1456
1691
  try {
1457
- const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf-8"));
1692
+ const pkg = JSON.parse(fs3.readFileSync(pkgPath, "utf-8"));
1458
1693
  return pkg[fieldName] !== void 0;
1459
1694
  } catch {
1460
1695
  }
@@ -1463,19 +1698,19 @@ function hasNearestPackageJsonField(cwd, fieldName) {
1463
1698
  function hasEslintConfig(cwd) {
1464
1699
  for (const dir of walkUpDirs(cwd)) {
1465
1700
  for (const cfg of ESLINT_FLAT_CONFIGS) {
1466
- if (fs.existsSync(path.join(dir, cfg)))
1701
+ if (fs3.existsSync(path2.join(dir, cfg)))
1467
1702
  return true;
1468
1703
  }
1469
1704
  }
1470
1705
  for (const dir of walkUpDirsUntilPackageJson(cwd)) {
1471
1706
  for (const cfg of ESLINT_LEGACY_CONFIGS) {
1472
- if (fs.existsSync(path.join(dir, cfg)))
1707
+ if (fs3.existsSync(path2.join(dir, cfg)))
1473
1708
  return true;
1474
1709
  }
1475
- const pkgPath = path.join(dir, "package.json");
1476
- if (fs.existsSync(pkgPath)) {
1710
+ const pkgPath = path2.join(dir, "package.json");
1711
+ if (fs3.existsSync(pkgPath)) {
1477
1712
  try {
1478
- if (JSON.parse(fs.readFileSync(pkgPath, "utf-8")).eslintConfig)
1713
+ if (JSON.parse(fs3.readFileSync(pkgPath, "utf-8")).eslintConfig)
1479
1714
  return true;
1480
1715
  } catch {
1481
1716
  }
@@ -1488,27 +1723,27 @@ function hasBiomeConfig(cwd) {
1488
1723
  }
1489
1724
  function getBiomeConfigPath(cwd) {
1490
1725
  for (const dir of walkUpDirs(cwd)) {
1491
- const jsoncPath = path.join(dir, "biome.jsonc");
1492
- if (fs.existsSync(jsoncPath))
1726
+ const jsoncPath = path2.join(dir, "biome.jsonc");
1727
+ if (fs3.existsSync(jsoncPath))
1493
1728
  return jsoncPath;
1494
- const jsonPath = path.join(dir, "biome.json");
1495
- if (fs.existsSync(jsonPath))
1729
+ const jsonPath = path2.join(dir, "biome.json");
1730
+ if (fs3.existsSync(jsonPath))
1496
1731
  return jsonPath;
1497
1732
  }
1498
1733
  return void 0;
1499
1734
  }
1500
1735
  function hasOxfmtConfig(cwd) {
1501
1736
  for (const dir of walkUpDirs(cwd)) {
1502
- if (fs.existsSync(path.join(dir, "oxfmt.toml")))
1737
+ if (fs3.existsSync(path2.join(dir, "oxfmt.toml")))
1503
1738
  return true;
1504
- if (fs.existsSync(path.join(dir, ".oxfmtrc.json")))
1739
+ if (fs3.existsSync(path2.join(dir, ".oxfmtrc.json")))
1505
1740
  return true;
1506
1741
  if (hasVitePlusConfig(dir))
1507
1742
  return true;
1508
- const pkgPath = path.join(dir, "package.json");
1509
- if (fs.existsSync(pkgPath)) {
1743
+ const pkgPath = path2.join(dir, "package.json");
1744
+ if (fs3.existsSync(pkgPath)) {
1510
1745
  try {
1511
- const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf-8"));
1746
+ const pkg = JSON.parse(fs3.readFileSync(pkgPath, "utf-8"));
1512
1747
  const deps = {
1513
1748
  ...pkg.dependencies,
1514
1749
  ...pkg.devDependencies
@@ -1526,19 +1761,19 @@ function hasOxfmtSvelteConfig(cwd) {
1526
1761
  if (!hasNearestPackageJsonDependency(cwd, "svelte"))
1527
1762
  return false;
1528
1763
  for (const dir of walkUpDirs(cwd)) {
1529
- const rcPath = path.join(dir, ".oxfmtrc.json");
1530
- if (fs.existsSync(rcPath)) {
1764
+ const rcPath = path2.join(dir, ".oxfmtrc.json");
1765
+ if (fs3.existsSync(rcPath)) {
1531
1766
  try {
1532
- const cfg = JSON.parse(fs.readFileSync(rcPath, "utf-8"));
1767
+ const cfg = JSON.parse(fs3.readFileSync(rcPath, "utf-8"));
1533
1768
  if (cfg.svelte === true)
1534
1769
  return true;
1535
1770
  } catch {
1536
1771
  }
1537
1772
  }
1538
- const tomlPath = path.join(dir, "oxfmt.toml");
1539
- if (fs.existsSync(tomlPath)) {
1773
+ const tomlPath = path2.join(dir, "oxfmt.toml");
1774
+ if (fs3.existsSync(tomlPath)) {
1540
1775
  try {
1541
- const content = fs.readFileSync(tomlPath, "utf-8");
1776
+ const content = fs3.readFileSync(tomlPath, "utf-8");
1542
1777
  if (OXFMT_SVELTE_TOML_TRUE.test(content))
1543
1778
  return true;
1544
1779
  } catch {
@@ -1549,13 +1784,13 @@ function hasOxfmtSvelteConfig(cwd) {
1549
1784
  }
1550
1785
  function hasStylelintConfig(cwd) {
1551
1786
  for (const dir of walkUpDirs(cwd)) {
1552
- if (STYLELINT_CONFIGS.some((cfg) => fs.existsSync(path.join(dir, cfg)))) {
1787
+ if (STYLELINT_CONFIGS.some((cfg) => fs3.existsSync(path2.join(dir, cfg)))) {
1553
1788
  return true;
1554
1789
  }
1555
- const pkgPath = path.join(dir, "package.json");
1556
- if (fs.existsSync(pkgPath)) {
1790
+ const pkgPath = path2.join(dir, "package.json");
1791
+ if (fs3.existsSync(pkgPath)) {
1557
1792
  try {
1558
- const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf-8"));
1793
+ const pkg = JSON.parse(fs3.readFileSync(pkgPath, "utf-8"));
1559
1794
  if (pkg.stylelint)
1560
1795
  return true;
1561
1796
  } catch {
@@ -1565,57 +1800,18 @@ function hasStylelintConfig(cwd) {
1565
1800
  return false;
1566
1801
  }
1567
1802
  function hasSqlfluffConfig(cwd) {
1568
- for (const dir of walkUpDirs(cwd)) {
1569
- for (const cfg of SQLFLUFF_CONFIGS) {
1570
- const cfgPath = path.join(dir, cfg);
1571
- if (!fs.existsSync(cfgPath))
1572
- continue;
1573
- if (cfg === "pyproject.toml") {
1574
- try {
1575
- const content = fs.readFileSync(cfgPath, "utf-8");
1576
- if (content.includes("[tool.sqlfluff]"))
1577
- return true;
1578
- } catch {
1579
- }
1580
- continue;
1581
- }
1582
- if (cfg === "setup.cfg" || cfg === "tox.ini") {
1583
- try {
1584
- const content = fs.readFileSync(cfgPath, "utf-8");
1585
- if (content.includes("[sqlfluff]"))
1586
- return true;
1587
- } catch {
1588
- }
1589
- continue;
1590
- }
1591
- return true;
1592
- }
1593
- }
1594
- for (const dir of walkUpDirs(cwd)) {
1595
- for (const depFile of ["requirements.txt", "Pipfile", "pyproject.toml"]) {
1596
- const depPath = path.join(dir, depFile);
1597
- if (!fs.existsSync(depPath))
1598
- continue;
1599
- try {
1600
- const content = fs.readFileSync(depPath, "utf-8").toLowerCase();
1601
- if (content.includes("sqlfluff"))
1602
- return true;
1603
- } catch {
1604
- }
1605
- }
1606
- }
1607
- return false;
1803
+ return hasToolConfig("sqlfluff", cwd);
1608
1804
  }
1609
1805
  function hasRubocopConfig(cwd) {
1610
1806
  for (const dir of walkUpDirs(cwd)) {
1611
1807
  for (const cfg of RUBOCOP_CONFIGS) {
1612
- if (fs.existsSync(path.join(dir, cfg)))
1808
+ if (fs3.existsSync(path2.join(dir, cfg)))
1613
1809
  return true;
1614
1810
  }
1615
- const gemfile = path.join(dir, "Gemfile");
1616
- if (fs.existsSync(gemfile)) {
1811
+ const gemfile = path2.join(dir, "Gemfile");
1812
+ if (fs3.existsSync(gemfile)) {
1617
1813
  try {
1618
- const content = fs.readFileSync(gemfile, "utf-8");
1814
+ const content = fs3.readFileSync(gemfile, "utf-8");
1619
1815
  if (content.includes("rubocop"))
1620
1816
  return true;
1621
1817
  } catch {
@@ -1625,85 +1821,22 @@ function hasRubocopConfig(cwd) {
1625
1821
  return false;
1626
1822
  }
1627
1823
  function hasMypyConfig(cwd) {
1628
- for (const dir of walkUpDirs(cwd)) {
1629
- for (const cfg of MYPY_CONFIGS) {
1630
- const cfgPath = path.join(dir, cfg);
1631
- if (!fs.existsSync(cfgPath))
1632
- continue;
1633
- if (cfg === "setup.cfg") {
1634
- try {
1635
- if (fs.readFileSync(cfgPath, "utf-8").includes("[mypy]"))
1636
- return true;
1637
- } catch {
1638
- }
1639
- continue;
1640
- }
1641
- if (cfg === "pyproject.toml") {
1642
- try {
1643
- if (fs.readFileSync(cfgPath, "utf-8").includes("[tool.mypy]"))
1644
- return true;
1645
- } catch {
1646
- }
1647
- continue;
1648
- }
1649
- return true;
1650
- }
1651
- }
1652
- return false;
1824
+ return hasToolConfig("mypy", cwd);
1653
1825
  }
1654
1826
  function hasYamllintConfig(cwd) {
1655
- for (const dir of walkUpDirs(cwd)) {
1656
- for (const cfg of YAMLLINT_CONFIGS) {
1657
- const cfgPath = path.join(dir, cfg);
1658
- if (!fs.existsSync(cfgPath))
1659
- continue;
1660
- if (cfg === "pyproject.toml") {
1661
- try {
1662
- const content = fs.readFileSync(cfgPath, "utf-8");
1663
- if (content.includes("[tool.yamllint]"))
1664
- return true;
1665
- } catch {
1666
- }
1667
- continue;
1668
- }
1669
- if (cfg === "setup.cfg" || cfg === "tox.ini") {
1670
- try {
1671
- const content = fs.readFileSync(cfgPath, "utf-8");
1672
- if (content.includes("[yamllint]"))
1673
- return true;
1674
- } catch {
1675
- }
1676
- continue;
1677
- }
1678
- return true;
1679
- }
1680
- }
1681
- for (const dir of walkUpDirs(cwd)) {
1682
- for (const depFile of ["requirements.txt", "Pipfile", "pyproject.toml"]) {
1683
- const depPath = path.join(dir, depFile);
1684
- if (!fs.existsSync(depPath))
1685
- continue;
1686
- try {
1687
- const content = fs.readFileSync(depPath, "utf-8").toLowerCase();
1688
- if (content.includes("yamllint"))
1689
- return true;
1690
- } catch {
1691
- }
1692
- }
1693
- }
1694
- return false;
1827
+ return hasToolConfig("yamllint", cwd);
1695
1828
  }
1696
1829
  function hasMarkdownlintConfig(cwd) {
1697
1830
  return findNearestContaining(cwd, MARKDOWNLINT_CONFIGS) !== void 0;
1698
1831
  }
1699
1832
  function hasPrettierConfig(cwd) {
1700
1833
  for (const dir of walkUpDirs(cwd)) {
1701
- if (PRETTIER_CONFIGS.some((cfg) => fs.existsSync(path.join(dir, cfg))))
1834
+ if (PRETTIER_CONFIGS.some((cfg) => fs3.existsSync(path2.join(dir, cfg))))
1702
1835
  return true;
1703
- const pkgPath = path.join(dir, "package.json");
1704
- if (fs.existsSync(pkgPath)) {
1836
+ const pkgPath = path2.join(dir, "package.json");
1837
+ if (fs3.existsSync(pkgPath)) {
1705
1838
  try {
1706
- const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf-8"));
1839
+ const pkg = JSON.parse(fs3.readFileSync(pkgPath, "utf-8"));
1707
1840
  if (Object.hasOwn(pkg, "prettier"))
1708
1841
  return true;
1709
1842
  } catch {
@@ -1713,46 +1846,10 @@ function hasPrettierConfig(cwd) {
1713
1846
  return false;
1714
1847
  }
1715
1848
  function hasBlackConfig(cwd) {
1716
- for (const dir of walkUpDirs(cwd)) {
1717
- const pyproject = path.join(dir, "pyproject.toml");
1718
- if (fs.existsSync(pyproject)) {
1719
- try {
1720
- if (fs.readFileSync(pyproject, "utf-8").includes("[tool.black]"))
1721
- return true;
1722
- } catch {
1723
- }
1724
- }
1725
- }
1726
- for (const dir of walkUpDirs(cwd)) {
1727
- for (const depFile of ["requirements.txt", "Pipfile"]) {
1728
- const depPath = path.join(dir, depFile);
1729
- if (!fs.existsSync(depPath))
1730
- continue;
1731
- try {
1732
- if (fs.readFileSync(depPath, "utf-8").toLowerCase().includes("black"))
1733
- return true;
1734
- } catch {
1735
- }
1736
- }
1737
- }
1738
- return false;
1849
+ return hasToolConfig("black", cwd);
1739
1850
  }
1740
1851
  function hasRuffConfig(cwd) {
1741
- for (const dir of walkUpDirs(cwd)) {
1742
- for (const cfg of RUFF_PROJECT_CONFIGS) {
1743
- if (fs.existsSync(path.join(dir, cfg)))
1744
- return true;
1745
- }
1746
- const pyproject = path.join(dir, "pyproject.toml");
1747
- if (fs.existsSync(pyproject)) {
1748
- try {
1749
- if (fs.readFileSync(pyproject, "utf-8").includes("[tool.ruff]"))
1750
- return true;
1751
- } catch {
1752
- }
1753
- }
1754
- }
1755
- return false;
1852
+ return hasToolConfig("ruff", cwd);
1756
1853
  }
1757
1854
  function configArgsWithFallback(hasConfig, toolArgs, packageConfigPath) {
1758
1855
  return hasConfig ? [] : [...toolArgs, resolvePackagePath(import.meta.url, packageConfigPath)];
@@ -1774,7 +1871,7 @@ function hasGolangciConfig(cwd) {
1774
1871
  return findNearestContaining(cwd, GOLANGCI_CONFIGS) !== void 0;
1775
1872
  }
1776
1873
  function hasTflintConfig(startDir) {
1777
- return findNearestContaining(startDir, [".tflint.hcl"]) !== void 0;
1874
+ return hasToolConfig("tflint", startDir);
1778
1875
  }
1779
1876
  function hasClangFormatConfig(cwd) {
1780
1877
  return findNearestContaining(cwd, [".clang-format", "_clang-format"]) !== void 0;
@@ -1815,8 +1912,8 @@ var PSSCRIPTANALYZER_SETTINGS_FILES = [
1815
1912
  function findPSScriptAnalyzerConfigPath(cwd) {
1816
1913
  for (const dir of walkUpDirs(cwd)) {
1817
1914
  for (const name of PSSCRIPTANALYZER_SETTINGS_FILES) {
1818
- const candidate = path.join(dir, name);
1819
- if (fs.existsSync(candidate))
1915
+ const candidate = path2.join(dir, name);
1916
+ if (fs3.existsSync(candidate))
1820
1917
  return candidate;
1821
1918
  }
1822
1919
  }
@@ -1854,18 +1951,8 @@ function hasMixFormatConfig(cwd) {
1854
1951
  function hasPhpstanConfig(cwd) {
1855
1952
  return findNearestContaining(cwd, PHPSTAN_CONFIGS) !== void 0;
1856
1953
  }
1857
- var DETEKT_CONFIGS = [
1858
- "detekt.yml",
1859
- ".detekt.yml",
1860
- path.join("config", "detekt", "detekt.yml"),
1861
- path.join("detekt", "detekt.yml")
1862
- ];
1863
1954
  function hasDetektConfig(cwd) {
1864
- for (const dir of walkUpDirs(cwd)) {
1865
- if (DETEKT_CONFIGS.some((cfg) => fs.existsSync(path.join(dir, cfg))))
1866
- return true;
1867
- }
1868
- return false;
1955
+ return hasToolConfig("detekt", cwd);
1869
1956
  }
1870
1957
  var KTFMT_CONFIG_FILES = [".ktfmt", ".ktfmt.kts"];
1871
1958
  var KTFMT_GRADLE_FILES = [
@@ -1987,14 +2074,14 @@ function namedGradleBlockBodies(source, name) {
1987
2074
  function getSpotlessKotlinFormatter(cwd) {
1988
2075
  for (const dir of walkUpDirs(cwd)) {
1989
2076
  for (const gradle of KOTLIN_GRADLE_FILES) {
1990
- const filePath = path.join(dir, gradle);
1991
- if (!fs.existsSync(filePath))
2077
+ const filePath = path2.join(dir, gradle);
2078
+ if (!fs3.existsSync(filePath))
1992
2079
  continue;
1993
2080
  try {
1994
- const mtime = fs.statSync(filePath).mtimeMs;
2081
+ const mtime = fs3.statSync(filePath).mtimeMs;
1995
2082
  let config = spotlessKotlinConfigCache.get(filePath);
1996
2083
  if (!config || config.mtime !== mtime) {
1997
- const source = stripGradleCommentsAndStrings(fs.readFileSync(filePath, "utf-8"));
2084
+ const source = stripGradleCommentsAndStrings(fs3.readFileSync(filePath, "utf-8"));
1998
2085
  spotlessGradleReadCount += 1;
1999
2086
  const kotlinBodies = namedGradleBlockBodies(source, "spotless").flatMap((spotless) => namedGradleBlockBodies(spotless, "kotlin"));
2000
2087
  config = {
@@ -2022,21 +2109,21 @@ function hasGradleKtlintPlugin(cwd) {
2022
2109
  const scan = { entries: 0, exceeded: false, indeterminate: false };
2023
2110
  for (const dir of walkUpDirs(cwd)) {
2024
2111
  for (const gradle of KOTLIN_GRADLE_FILES) {
2025
- const filePath = path.join(dir, gradle);
2026
- if (fs.existsSync(filePath))
2112
+ const filePath = path2.join(dir, gradle);
2113
+ if (fs3.existsSync(filePath))
2027
2114
  files.add(filePath);
2028
2115
  }
2029
2116
  for (const buildLogicDir of GRADLE_BUILD_LOGIC_DIRS) {
2030
- if (!addGradleBuildLogicFiles(path.join(dir, buildLogicDir), files, scan)) {
2117
+ if (!addGradleBuildLogicFiles(path2.join(dir, buildLogicDir), files, scan)) {
2031
2118
  scan.exceeded = true;
2032
2119
  }
2033
2120
  }
2034
2121
  for (const settings of ["settings.gradle.kts", "settings.gradle"]) {
2035
- const settingsPath = path.join(dir, settings);
2036
- if (!fs.existsSync(settingsPath))
2122
+ const settingsPath = path2.join(dir, settings);
2123
+ if (!fs3.existsSync(settingsPath))
2037
2124
  continue;
2038
2125
  try {
2039
- const raw = fs.readFileSync(settingsPath, "utf-8");
2126
+ const raw = fs3.readFileSync(settingsPath, "utf-8");
2040
2127
  const stripped = stripGradleCommentsAndStrings(raw);
2041
2128
  GRADLE_INCLUDE_BUILD_PATTERN.lastIndex = 0;
2042
2129
  let match;
@@ -2044,7 +2131,7 @@ function hasGradleKtlintPlugin(cwd) {
2044
2131
  const code = stripped.slice(match.index, match.index + match[0].length);
2045
2132
  const includedBuild = match[1];
2046
2133
  if (includedBuild && /^\s*includeBuild\s*\(\s*/.test(code)) {
2047
- if (!addGradleBuildLogicFiles(path.resolve(dir, includedBuild), files, scan)) {
2134
+ if (!addGradleBuildLogicFiles(path2.resolve(dir, includedBuild), files, scan)) {
2048
2135
  scan.exceeded = true;
2049
2136
  }
2050
2137
  }
@@ -2066,7 +2153,7 @@ function hasGradleKtlintPlugin(cwd) {
2066
2153
  return { kind: "indeterminate" };
2067
2154
  for (const filePath of files) {
2068
2155
  try {
2069
- const raw = fs.readFileSync(filePath, "utf-8");
2156
+ const raw = fs3.readFileSync(filePath, "utf-8");
2070
2157
  const stripped = stripGradleCommentsAndStrings(raw);
2071
2158
  GRADLE_KTLINT_PLUGIN_PATTERN.lastIndex = 0;
2072
2159
  let match;
@@ -2082,7 +2169,7 @@ function hasGradleKtlintPlugin(cwd) {
2082
2169
  return { kind: "not-owned" };
2083
2170
  }
2084
2171
  function addGradleBuildLogicFiles(root, files, scan) {
2085
- if (!fs.existsSync(root))
2172
+ if (!fs3.existsSync(root))
2086
2173
  return true;
2087
2174
  const pending = [root];
2088
2175
  while (pending.length > 0) {
@@ -2091,7 +2178,7 @@ function addGradleBuildLogicFiles(root, files, scan) {
2091
2178
  continue;
2092
2179
  let entries;
2093
2180
  try {
2094
- entries = fs.readdirSync(dir, { withFileTypes: true });
2181
+ entries = fs3.readdirSync(dir, { withFileTypes: true });
2095
2182
  } catch {
2096
2183
  scan.indeterminate = true;
2097
2184
  continue;
@@ -2100,7 +2187,7 @@ function addGradleBuildLogicFiles(root, files, scan) {
2100
2187
  scan.entries += 1;
2101
2188
  if (scan.entries > GRADLE_BUILD_LOGIC_SCAN_MAX_ENTRIES)
2102
2189
  return false;
2103
- const entryPath = path.join(dir, entry.name);
2190
+ const entryPath = path2.join(dir, entry.name);
2104
2191
  if (entry.isDirectory()) {
2105
2192
  pending.push(entryPath);
2106
2193
  } else if (entry.isFile() && GRADLE_BUILD_LOGIC_EXTENSIONS.some((extension) => entry.name.endsWith(extension))) {
@@ -2115,13 +2202,13 @@ function hasKtfmtConfig(cwd) {
2115
2202
  if (spotlessFormatter)
2116
2203
  return spotlessFormatter === "ktfmt";
2117
2204
  for (const dir of walkUpDirs(cwd)) {
2118
- if (KTFMT_CONFIG_FILES.some((cfg) => fs.existsSync(path.join(dir, cfg))))
2205
+ if (KTFMT_CONFIG_FILES.some((cfg) => fs3.existsSync(path2.join(dir, cfg))))
2119
2206
  return true;
2120
2207
  for (const gradle of KTFMT_GRADLE_FILES) {
2121
- const p = path.join(dir, gradle);
2122
- if (fs.existsSync(p)) {
2208
+ const p = path2.join(dir, gradle);
2209
+ if (fs3.existsSync(p)) {
2123
2210
  try {
2124
- if (/ktfmt|com\.facebook\.ktfmt/i.test(fs.readFileSync(p, "utf-8")))
2211
+ if (/ktfmt|com\.facebook\.ktfmt/i.test(fs3.readFileSync(p, "utf-8")))
2125
2212
  return true;
2126
2213
  } catch {
2127
2214
  }
@@ -2138,17 +2225,17 @@ var JAVA_BUILD_DESCRIPTORS = [
2138
2225
  "settings.gradle.kts"
2139
2226
  ];
2140
2227
  var COMPILED_CLASSES_DIRS = [
2141
- path.join("target", "classes"),
2142
- path.join("build", "classes"),
2143
- path.join("out", "production"),
2144
- path.join("bin", "main")
2228
+ path2.join("target", "classes"),
2229
+ path2.join("build", "classes"),
2230
+ path2.join("out", "production"),
2231
+ path2.join("bin", "main")
2145
2232
  ];
2146
2233
  function hasJavaBuildDescriptor(cwd, ceiling) {
2147
- const normalizedCeiling = ceiling ? normalizeMapKey(path.resolve(ceiling)) : void 0;
2234
+ const normalizedCeiling = ceiling ? normalizeMapKey(path2.resolve(ceiling)) : void 0;
2148
2235
  for (const dir of walkUpDirs(cwd)) {
2149
- if (JAVA_BUILD_DESCRIPTORS.some((d) => fs.existsSync(path.join(dir, d))))
2236
+ if (JAVA_BUILD_DESCRIPTORS.some((d) => fs3.existsSync(path2.join(dir, d))))
2150
2237
  return true;
2151
- if (normalizedCeiling && normalizeMapKey(path.resolve(dir)) === normalizedCeiling)
2238
+ if (normalizedCeiling && normalizeMapKey(path2.resolve(dir)) === normalizedCeiling)
2152
2239
  break;
2153
2240
  }
2154
2241
  return false;
@@ -2156,8 +2243,8 @@ function hasJavaBuildDescriptor(cwd, ceiling) {
2156
2243
  function findCompiledClassesDir(cwd) {
2157
2244
  for (const dir of walkUpDirs(cwd)) {
2158
2245
  for (const rel of COMPILED_CLASSES_DIRS) {
2159
- const candidate = path.join(dir, rel);
2160
- if (fs.existsSync(candidate))
2246
+ const candidate = path2.join(dir, rel);
2247
+ if (fs3.existsSync(candidate))
2161
2248
  return candidate;
2162
2249
  }
2163
2250
  }
@@ -2165,10 +2252,10 @@ function findCompiledClassesDir(cwd) {
2165
2252
  }
2166
2253
  function hasStandardrbConfig(cwd) {
2167
2254
  for (const dir of walkUpDirs(cwd)) {
2168
- const gemfile = path.join(dir, "Gemfile");
2169
- if (fs.existsSync(gemfile)) {
2255
+ const gemfile = path2.join(dir, "Gemfile");
2256
+ if (fs3.existsSync(gemfile)) {
2170
2257
  try {
2171
- if (fs.readFileSync(gemfile, "utf-8").includes("standard"))
2258
+ if (fs3.readFileSync(gemfile, "utf-8").includes("standard"))
2172
2259
  return true;
2173
2260
  } catch {
2174
2261
  }
@@ -2177,10 +2264,10 @@ function hasStandardrbConfig(cwd) {
2177
2264
  return false;
2178
2265
  }
2179
2266
  function getRubocopCommand(cwd) {
2180
- const gemfile = path.join(cwd, "Gemfile");
2181
- if (fs.existsSync(gemfile)) {
2267
+ const gemfile = path2.join(cwd, "Gemfile");
2268
+ if (fs3.existsSync(gemfile)) {
2182
2269
  try {
2183
- const content = fs.readFileSync(gemfile, "utf-8");
2270
+ const content = fs3.readFileSync(gemfile, "utf-8");
2184
2271
  if (content.includes("rubocop")) {
2185
2272
  return { cmd: "bundle", args: ["exec", "rubocop"] };
2186
2273
  }
@@ -2191,12 +2278,12 @@ function getRubocopCommand(cwd) {
2191
2278
  }
2192
2279
  function hasVitePlusConfig(cwd) {
2193
2280
  for (const dir of walkUpDirs(cwd)) {
2194
- if (fs.existsSync(path.join(dir, "vite-plus.json")))
2281
+ if (fs3.existsSync(path2.join(dir, "vite-plus.json")))
2195
2282
  return true;
2196
- const pkgPath = path.join(dir, "package.json");
2197
- if (fs.existsSync(pkgPath)) {
2283
+ const pkgPath = path2.join(dir, "package.json");
2284
+ if (fs3.existsSync(pkgPath)) {
2198
2285
  try {
2199
- const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf-8"));
2286
+ const pkg = JSON.parse(fs3.readFileSync(pkgPath, "utf-8"));
2200
2287
  const deps = { ...pkg.dependencies, ...pkg.devDependencies };
2201
2288
  if (deps["vite-plus"] || deps["@voidzero-dev/vite-plus-core"]) {
2202
2289
  return true;
@@ -2205,11 +2292,11 @@ function hasVitePlusConfig(cwd) {
2205
2292
  }
2206
2293
  }
2207
2294
  for (const cfg of VITE_CONFIGS) {
2208
- const cfgPath = path.join(dir, cfg);
2209
- if (!fs.existsSync(cfgPath))
2295
+ const cfgPath = path2.join(dir, cfg);
2296
+ if (!fs3.existsSync(cfgPath))
2210
2297
  continue;
2211
2298
  try {
2212
- const content = fs.readFileSync(cfgPath, "utf-8");
2299
+ const content = fs3.readFileSync(cfgPath, "utf-8");
2213
2300
  if (content.includes("vite-plus"))
2214
2301
  return true;
2215
2302
  } catch {
@@ -2228,7 +2315,7 @@ var OXLINT_CONFIGS = [
2228
2315
  function hasOxlintConfig(cwd) {
2229
2316
  for (const dir of walkUpDirs(cwd)) {
2230
2317
  for (const cfg of OXLINT_CONFIGS) {
2231
- if (fs.existsSync(path.join(dir, cfg)))
2318
+ if (fs3.existsSync(path2.join(dir, cfg)))
2232
2319
  return true;
2233
2320
  }
2234
2321
  }
@@ -2268,6 +2355,9 @@ function getJstsLintPolicyForCwd(cwd) {
2268
2355
  }
2269
2356
 
2270
2357
  export {
2358
+ readFileContent,
2359
+ findToolConfig,
2360
+ hasToolConfig,
2271
2361
  OXFMT_SUPPORTED_EXTENSIONS,
2272
2362
  getFormatterPolicyForFile,
2273
2363
  getSmartDefaultFormatterName,