pi-lens 4.4.9 → 4.4.11

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 (383) hide show
  1. package/CHANGELOG-USER.md +12 -12
  2. package/CHANGELOG.md +262 -0
  3. package/README.md +2 -0
  4. package/dist/{chunk-7YTRG6YW.js → chunk-2SD2CGVH.js} +2 -2
  5. package/dist/{chunk-CDFJF5YD.js → chunk-34RXPR7M.js} +1 -1
  6. package/dist/{chunk-XO756WE5.js → chunk-3C6ZZAB2.js} +34 -27
  7. package/dist/{chunk-MKPDIAZH.js → chunk-3HZ6MNB2.js} +1 -1
  8. package/dist/{chunk-RNXOWDM6.js → chunk-3NVGBFJS.js} +6 -6
  9. package/dist/{chunk-DGKFWQK4.js → chunk-3QCI3V6C.js} +11 -11
  10. package/dist/{chunk-NL5LSKVD.js → chunk-3R3Z54J7.js} +10 -4
  11. package/dist/{chunk-PIIUNJIT.js → chunk-43KD3PPM.js} +1 -1
  12. package/dist/{chunk-LAHHGNAY.js → chunk-4HNBY7S7.js} +20 -19
  13. package/dist/chunk-4WWPDMRA.js +22 -0
  14. package/dist/{chunk-L7O774U7.js → chunk-532X3OCZ.js} +116 -22
  15. package/dist/{chunk-ZVCDHYWZ.js → chunk-5RLEDUUE.js} +9 -9
  16. package/dist/{chunk-5YSEQHJN.js → chunk-5YTDZ5WP.js} +3 -3
  17. package/dist/{chunk-X5BJ3G2P.js → chunk-6EIV3H7O.js} +158 -61
  18. package/dist/{chunk-KV6GQOGN.js → chunk-6K4X7IIF.js} +164 -172
  19. package/dist/{chunk-HYSKJMZK.js → chunk-6RXMQYNU.js} +3 -3
  20. package/dist/{chunk-7UTSNTWM.js → chunk-6XNVY3FW.js} +10 -10
  21. package/dist/{chunk-ACRJ2GZ5.js → chunk-7424ANRU.js} +2 -2
  22. package/dist/{chunk-JUZ67QZQ.js → chunk-A4HKPAEN.js} +8 -8
  23. package/dist/{chunk-EKNYSXFB.js → chunk-AFNPNHJV.js} +8 -8
  24. package/dist/{chunk-W5E72HJA.js → chunk-AGEQRJ5A.js} +37 -11
  25. package/dist/{chunk-4ENEJHF4.js → chunk-AJ62EQIQ.js} +15 -14
  26. package/dist/{chunk-VWLSU3XV.js → chunk-AOQKQWZU.js} +14 -5
  27. package/dist/{chunk-CJS6WE66.js → chunk-AVOUHMCS.js} +111 -107
  28. package/dist/{chunk-WTB4GKMH.js → chunk-AYDE7RFV.js} +45 -5
  29. package/dist/{chunk-AWQWXSW4.js → chunk-B4FAFEBP.js} +7 -2
  30. package/dist/{chunk-SLSMJPEF.js → chunk-B4K6OSLL.js} +49 -42
  31. package/dist/{chunk-CM6BDY4E.js → chunk-BBJXIZ3X.js} +3 -3
  32. package/dist/chunk-BJDB7PXU.js +25 -0
  33. package/dist/{chunk-TOE2RRCS.js → chunk-BLL4VYGZ.js} +1 -1
  34. package/dist/{chunk-THYHUIDR.js → chunk-BMMRLJA4.js} +7 -5
  35. package/dist/{chunk-LWOM6LVS.js → chunk-BN36MQW5.js} +35 -34
  36. package/dist/{chunk-ZCQBNPRH.js → chunk-C2REOMPO.js} +2 -2
  37. package/dist/{chunk-T5QSLSMM.js → chunk-C4ICGFEO.js} +23 -23
  38. package/dist/chunk-CIA7X2PZ.js +26 -0
  39. package/dist/{chunk-VO4JFPTV.js → chunk-D5L7Q57Z.js} +2 -2
  40. package/dist/{chunk-YOXCCJDF.js → chunk-DBAHJFBU.js} +70 -64
  41. package/dist/{chunk-TMNUTMT5.js → chunk-DNB4ZQGN.js} +59 -22
  42. package/dist/chunk-DPDA3ILA.js +108 -0
  43. package/dist/{chunk-QGITU23N.js → chunk-E3PNZDPH.js} +1 -1
  44. package/dist/{chunk-QVBOXT3L.js → chunk-E6Z3CJT2.js} +13 -9
  45. package/dist/{chunk-ZDMFGACN.js → chunk-ECYUBKYX.js} +588 -566
  46. package/dist/chunk-F37CCZUA.js +27 -0
  47. package/dist/{chunk-E65WJVI5.js → chunk-FVEEEEIM.js} +10 -13
  48. package/dist/{chunk-F6BEQWAK.js → chunk-GL6J5R34.js} +5 -5
  49. package/dist/{chunk-5GEYJJHG.js → chunk-GTNO6F6K.js} +11 -10
  50. package/dist/{chunk-NMUSOZ2D.js → chunk-HASJPQBC.js} +10 -10
  51. package/dist/{chunk-XVB3Q2PG.js → chunk-HGEE5LDW.js} +3 -2
  52. package/dist/{chunk-XKFO2SZV.js → chunk-HIUVHRLM.js} +35 -34
  53. package/dist/{chunk-PRHYIA6X.js → chunk-HTUG7ZFK.js} +8 -8
  54. package/dist/{chunk-HEA3EM23.js → chunk-IBEYUBCM.js} +9 -9
  55. package/dist/{chunk-WSSLVMDA.js → chunk-IJ55MYO6.js} +15 -12
  56. package/dist/{chunk-MRLH4MYU.js → chunk-IT7MFVGP.js} +2 -2
  57. package/dist/{chunk-MQ4PPCJB.js → chunk-ITAPXBIB.js} +42 -43
  58. package/dist/{chunk-RNJFRXEN.js → chunk-JSQK5DH3.js} +4 -4
  59. package/dist/{chunk-VCRVNLE7.js → chunk-K2GV34T2.js} +9 -1
  60. package/dist/{chunk-3NPWO5UO.js → chunk-KBSC5Z3G.js} +9 -8
  61. package/dist/{chunk-PXQ45SGD.js → chunk-KDGKKK7A.js} +2 -2
  62. package/dist/{chunk-SIQHOB6P.js → chunk-KDMJ2DJD.js} +11 -11
  63. package/dist/{chunk-RTFMDIKV.js → chunk-KNP4ENFT.js} +1 -1
  64. package/dist/chunk-KX4DF6XX.js +25 -0
  65. package/dist/{chunk-ZZN74OGD.js → chunk-LHCDWFDB.js} +37 -144
  66. package/dist/{chunk-N5CEGQPG.js → chunk-LHU6NG5Z.js} +16 -15
  67. package/dist/{chunk-G22UNQID.js → chunk-LIDFFCZZ.js} +17 -15
  68. package/dist/{chunk-NOWH2VA2.js → chunk-LPM6NKVI.js} +7 -7
  69. package/dist/{chunk-KXMJLOZF.js → chunk-LXE7JAMV.js} +37 -26
  70. package/dist/{chunk-47UCC4MM.js → chunk-ME6MF2N2.js} +1 -1
  71. package/dist/{chunk-V67D6TMU.js → chunk-NLRKB32C.js} +7 -7
  72. package/dist/{chunk-2VZ3VN3N.js → chunk-NQFXN5U7.js} +2 -2
  73. package/dist/{chunk-IILEH3ZC.js → chunk-NR4KQOXZ.js} +14 -9
  74. package/dist/{chunk-UXTQ3QPD.js → chunk-NWK7KKNO.js} +4 -4
  75. package/dist/{chunk-ZMMHHXSW.js → chunk-O6LCSHHI.js} +2 -1
  76. package/dist/{chunk-ZZSJAR76.js → chunk-OC4ZGVMH.js} +33 -17
  77. package/dist/{chunk-L6WBJGQS.js → chunk-OP5BMZKK.js} +3 -3
  78. package/dist/{chunk-MN635QYA.js → chunk-OYXD2MOM.js} +3 -3
  79. package/dist/{chunk-OSEKJEUU.js → chunk-PSUXESQ5.js} +41 -4
  80. package/dist/{chunk-6GPB3JLL.js → chunk-QAM2Q3VO.js} +3 -3
  81. package/dist/{chunk-OUYAUXAT.js → chunk-QBUSONNE.js} +518 -191
  82. package/dist/{chunk-PBZNYHMM.js → chunk-QDZ3ZZMY.js} +18 -66
  83. package/dist/{chunk-LT62P654.js → chunk-QJ4T73J5.js} +1 -1
  84. package/dist/{chunk-XLAI7UYY.js → chunk-QUZYRDT6.js} +12 -12
  85. package/dist/{chunk-QP33NKYC.js → chunk-R2UF54ON.js} +17 -15
  86. package/dist/{chunk-V2WDBOLZ.js → chunk-R2VUZZPJ.js} +11 -10
  87. package/dist/chunk-R5BNSOIV.js +29 -0
  88. package/dist/chunk-RV5VX2XW.js +29 -0
  89. package/dist/{chunk-FGNSESAC.js → chunk-SQBDX6IO.js} +12 -12
  90. package/dist/{chunk-CZCAZVTD.js → chunk-SRXYSLMW.js} +2 -2
  91. package/dist/{chunk-J3Q2NYJR.js → chunk-SUIZOCSY.js} +3 -2
  92. package/dist/{chunk-NUSXS6YB.js → chunk-T5EGSBM2.js} +4 -4
  93. package/dist/{chunk-FRUBVFXV.js → chunk-TBE4OLPA.js} +37 -35
  94. package/dist/{chunk-GQTQUNCG.js → chunk-TPMBNWHO.js} +28 -26
  95. package/dist/{chunk-IICERRFF.js → chunk-TRYOYWWU.js} +18 -12
  96. package/dist/{chunk-3HTZDY3C.js → chunk-TTGDTNSN.js} +6 -6
  97. package/dist/{chunk-NCLO6E6N.js → chunk-UELHWF5I.js} +139 -135
  98. package/dist/chunk-UG4YLCJ5.js +58 -0
  99. package/dist/chunk-UQ6OZYTO.js +91 -0
  100. package/dist/{chunk-L4Y3ROKQ.js → chunk-UY3WWW5R.js} +4 -4
  101. package/dist/chunk-V7IPIAE5.js +74 -0
  102. package/dist/{chunk-C3YRO3EU.js → chunk-VDMF7Q2P.js} +10 -10
  103. package/dist/{chunk-N56BNAA6.js → chunk-VI3BJMZO.js} +35 -34
  104. package/dist/{chunk-EY6LY2HO.js → chunk-VTXJAO5R.js} +34 -35
  105. package/dist/chunk-W6VLB6LL.js +145 -0
  106. package/dist/{chunk-AACN5GNE.js → chunk-WBXCIRVI.js} +21 -2
  107. package/dist/{chunk-CB7PEVOJ.js → chunk-WLD6BGON.js} +176 -60
  108. package/dist/{chunk-ZPM7ZIFL.js → chunk-WMCAEP2K.js} +11 -8
  109. package/dist/{chunk-H3BVMK47.js → chunk-WXMUGUZV.js} +21 -25
  110. package/dist/{chunk-QB7T2PHK.js → chunk-X33QECRJ.js} +4 -2
  111. package/dist/{chunk-7R5GZIA6.js → chunk-YUF4DRYB.js} +399 -308
  112. package/dist/{chunk-HSOBIN22.js → chunk-YVPB5YGO.js} +2 -2
  113. package/dist/{chunk-W7TY6HYX.js → chunk-ZRQMENT4.js} +5 -27
  114. package/dist/index.js +6100 -4440
  115. package/dist/mcp/analyze-cli.js +17 -11
  116. package/dist/mcp/cli.js +43 -42
  117. package/dist/mcp/server.js +1534 -623
  118. package/dist/mcp/worker.js +62 -59
  119. package/dist/probes/installer.js +19 -18
  120. package/docs/agent-guide.md +5 -2
  121. package/docs/agent-tools.md +17 -4
  122. package/docs/alignment-families.md +5 -1
  123. package/docs/ci.md +120 -0
  124. package/docs/configuration.md +30 -7
  125. package/docs/custom-rules.md +1 -0
  126. package/docs/defect-shapes.md +122 -72
  127. package/docs/durable-store-audit-1202.md +1 -1
  128. package/docs/engineering-principles.md +46 -12
  129. package/docs/environment-variables.md +25 -2
  130. package/docs/features.md +12 -2
  131. package/docs/globalconfig.md +13 -0
  132. package/docs/invariants/dispatch-runners.md +13 -0
  133. package/docs/invariants/language-config.md +9 -1
  134. package/docs/language-coverage.md +67 -1
  135. package/docs/lsp-capability-matrix.md +68 -23
  136. package/docs/lsp-idle-eviction.md +17 -13
  137. package/docs/module-report-read-symbol.md +2 -2
  138. package/docs/pi-lens-fixer.md +11 -8
  139. package/docs/pi-lens-merge-policy.md +6 -1
  140. package/docs/pi-lens-monitor.md +4 -1
  141. package/docs/pi-lens-release.md +22 -2
  142. package/docs/pi-lens-reviewer.md +60 -13
  143. package/docs/public-api-stability.md +41 -6
  144. package/docs/rfcs/5138-query-surface.md +121 -0
  145. package/docs/servercapabilities.md +1 -1
  146. package/docs/settings.md +16 -4
  147. package/docs/usage.md +1 -0
  148. package/docs/word-index.md +9 -10
  149. package/package.json +4 -4
  150. package/rules/ast-grep-rules/coderabbit/README.md +2 -0
  151. package/rules/ast-grep-rules/coderabbit/rules/c/security/dont-call-system-c.yml +2 -1
  152. package/rules/ast-grep-rules/coderabbit/rules/c/security/file-access-before-action-c.yml +2 -1
  153. package/rules/ast-grep-rules/coderabbit/rules/c/security/file-stat-before-action-c.yml +2 -1
  154. package/rules/ast-grep-rules/coderabbit/rules/c/security/insecure-hash-c.yml +2 -1
  155. package/rules/ast-grep-rules/coderabbit/rules/c/security/libxml2-audit-parser-c.yml +2 -1
  156. package/rules/ast-grep-rules/coderabbit/rules/c/security/null-library-function-c.yml +2 -1
  157. package/rules/ast-grep-rules/coderabbit/rules/c/security/sizeof-this-c.yml +2 -1
  158. package/rules/ast-grep-rules/coderabbit/rules/c/security/small-key-size-c.yml +2 -1
  159. package/rules/ast-grep-rules/coderabbit/rules/c/security/world-writable-file-c.yml +2 -1
  160. package/rules/ast-grep-rules/coderabbit/rules/cpp/security/dont-call-system-cpp.yml +2 -1
  161. package/rules/ast-grep-rules/coderabbit/rules/cpp/security/file-access-before-action-cpp.yml +2 -1
  162. package/rules/ast-grep-rules/coderabbit/rules/cpp/security/file-stat-before-action-cpp.yml +2 -1
  163. package/rules/ast-grep-rules/coderabbit/rules/cpp/security/fix-format-security-error-cpp.yml +2 -1
  164. package/rules/ast-grep-rules/coderabbit/rules/cpp/security/insecure-hash-cpp.yml +2 -1
  165. package/rules/ast-grep-rules/coderabbit/rules/cpp/security/libxml2-audit-parser-cpp.yml +2 -1
  166. package/rules/ast-grep-rules/coderabbit/rules/cpp/security/missing-nul-cpp-string-memcpy-cpp.yml +2 -1
  167. package/rules/ast-grep-rules/coderabbit/rules/cpp/security/null-library-function-cpp.yml +2 -1
  168. package/rules/ast-grep-rules/coderabbit/rules/cpp/security/return-c-str-cpp.yml +2 -1
  169. package/rules/ast-grep-rules/coderabbit/rules/cpp/security/sizeof-this-cpp.yml +2 -1
  170. package/rules/ast-grep-rules/coderabbit/rules/cpp/security/small-key-size-cpp.yml +2 -1
  171. package/rules/ast-grep-rules/coderabbit/rules/cpp/security/std-return-data-cpp.yml +2 -1
  172. package/rules/ast-grep-rules/coderabbit/rules/cpp/security/std-vector-invalidation-cpp.yml +2 -1
  173. package/rules/ast-grep-rules/coderabbit/rules/cpp/security/string-view-temporary-string-cpp.yml +2 -1
  174. package/rules/ast-grep-rules/coderabbit/rules/cpp/security/world-writable-file-cpp.yml +2 -1
  175. package/rules/ast-grep-rules/coderabbit/rules/csharp/security/httponly-false-csharp.yml +2 -1
  176. package/rules/ast-grep-rules/coderabbit/rules/csharp/security/insecure-binaryformatter-deserialization-csharp.yml +2 -1
  177. package/rules/ast-grep-rules/coderabbit/rules/csharp/security/jwt-decode-without-verify-csharp.yml +2 -1
  178. package/rules/ast-grep-rules/coderabbit/rules/csharp/security/jwt-hardcoded-secret-csharp.yml +2 -1
  179. package/rules/ast-grep-rules/coderabbit/rules/csharp/security/jwt-tokenvalidationparameters-no-expiry-validation-csharp.yml +2 -1
  180. package/rules/ast-grep-rules/coderabbit/rules/csharp/security/networkcredential-hardcoded-secret-python.yml +2 -1
  181. package/rules/ast-grep-rules/coderabbit/rules/csharp/security/npgsqlconnectionstringbuilder-hardcoded-secret-csharp.yml +2 -1
  182. package/rules/ast-grep-rules/coderabbit/rules/csharp/security/oracleconnectionstringbuilder-hardcoded-secret-csharp.yml +2 -1
  183. package/rules/ast-grep-rules/coderabbit/rules/csharp/security/sqlconnectionstringbuilder-hardcoded-secret-csharp.yml +2 -1
  184. package/rules/ast-grep-rules/coderabbit/rules/csharp/security/stacktrace-disclosure-csharp.yml +2 -1
  185. package/rules/ast-grep-rules/coderabbit/rules/csharp/security/use-ecb-mode-csharp.yml +2 -1
  186. package/rules/ast-grep-rules/coderabbit/rules/go/security/avoid-bind-to-all-interfaces-go.yml +2 -1
  187. package/rules/ast-grep-rules/coderabbit/rules/go/security/gorilla-cookie-store-hardcoded-session-key-go.yml +2 -1
  188. package/rules/ast-grep-rules/coderabbit/rules/go/security/gorilla-csrf-hardcoded-auth-key-go.yml +2 -1
  189. package/rules/ast-grep-rules/coderabbit/rules/go/security/grpc-client-insecure-connection-go.yml +2 -1
  190. package/rules/ast-grep-rules/coderabbit/rules/go/security/jwt-go-none-algorithm-go.yml +2 -1
  191. package/rules/ast-grep-rules/coderabbit/rules/go/security/missing-ssl-minversion-go.yml +2 -1
  192. package/rules/ast-grep-rules/coderabbit/rules/go/security/openai-empty-secret-go.yml +2 -1
  193. package/rules/ast-grep-rules/coderabbit/rules/go/security/openai-hardcoded-secret-go.yml +2 -1
  194. package/rules/ast-grep-rules/coderabbit/rules/go/security/ssl-v3-is-insecure-go.yml +2 -1
  195. package/rules/ast-grep-rules/coderabbit/rules/go/security/tls-with-insecure-cipher-go.yml +2 -1
  196. package/rules/ast-grep-rules/coderabbit/rules/go/security/use-of-weak-rsa-key-go.yml +2 -1
  197. package/rules/ast-grep-rules/coderabbit/rules/html/security/plaintext-http-link-html.yml +2 -1
  198. package/rules/ast-grep-rules/coderabbit/rules/java/security/cbc-padding-oracle-java.yml +2 -1
  199. package/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-httponly-false-java.yml +2 -1
  200. package/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-missing-httponly-java.yml +2 -1
  201. package/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-missing-samesite-java.yml +2 -1
  202. package/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-missing-secure-flag-java.yml +2 -1
  203. package/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-secure-flag-false-java.yml +2 -1
  204. package/rules/ast-grep-rules/coderabbit/rules/java/security/datanucleus-hardcoded-connection-password-java.yml +2 -1
  205. package/rules/ast-grep-rules/coderabbit/rules/java/security/des-is-deprecated-java.yml +2 -1
  206. package/rules/ast-grep-rules/coderabbit/rules/java/security/desede-is-deprecated-java.yml +2 -1
  207. package/rules/ast-grep-rules/coderabbit/rules/java/security/documentbuilderfactory-disallow-doctype-decl-false-java.yml +2 -1
  208. package/rules/ast-grep-rules/coderabbit/rules/java/security/documentbuilderfactory-external-general-entities-true-java.yml +2 -1
  209. package/rules/ast-grep-rules/coderabbit/rules/java/security/documentbuilderfactory-external-parameter-entities-true-java.yml +2 -1
  210. package/rules/ast-grep-rules/coderabbit/rules/java/security/drivermanager-hardcoded-secret-java.yml +2 -1
  211. package/rules/ast-grep-rules/coderabbit/rules/java/security/ecb-cipher-java.yml +2 -1
  212. package/rules/ast-grep-rules/coderabbit/rules/java/security/hardcoded-connection-password-java.yml +2 -1
  213. package/rules/ast-grep-rules/coderabbit/rules/java/security/hardcoded-secret-in-credentials-java.yml +2 -1
  214. package/rules/ast-grep-rules/coderabbit/rules/java/security/java-jwt-hardcoded-secret-java.yml +2 -1
  215. package/rules/ast-grep-rules/coderabbit/rules/java/security/jedis-jedisclientconfig-hardcoded-password-java.yml +2 -1
  216. package/rules/ast-grep-rules/coderabbit/rules/java/security/jedis-jedisfactory-hardcoded-password-java.yml +2 -1
  217. package/rules/ast-grep-rules/coderabbit/rules/java/security/missing-httponly-java.yml +2 -1
  218. package/rules/ast-grep-rules/coderabbit/rules/java/security/missing-secure-java.yml +2 -1
  219. package/rules/ast-grep-rules/coderabbit/rules/java/security/no-null-cipher-java.yml +2 -1
  220. package/rules/ast-grep-rules/coderabbit/rules/java/security/passwordauthentication-hardcoded-password-java.yml +2 -1
  221. package/rules/ast-grep-rules/coderabbit/rules/java/security/rsa-no-padding-java.yml +2 -1
  222. package/rules/ast-grep-rules/coderabbit/rules/java/security/simple-command-injection-direct-input-java.yml +2 -1
  223. package/rules/ast-grep-rules/coderabbit/rules/java/security/system-setproperty-hardcoded-secret-java.yml +2 -1
  224. package/rules/ast-grep-rules/coderabbit/rules/java/security/unencrypted-socket-java.yml +2 -1
  225. package/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-aes-ecb-java.yml +2 -1
  226. package/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-blowfish-java.yml +2 -1
  227. package/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-default-aes-java.yml +2 -1
  228. package/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-md5-digest-utils-java.yml +2 -1
  229. package/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-md5-java.yml +2 -1
  230. package/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-rc2-java.yml +2 -1
  231. package/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-rc4-java.yml +2 -1
  232. package/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-sha1-java.yml +2 -1
  233. package/rules/ast-grep-rules/coderabbit/rules/java/security/weak-ssl-context-java.yml +2 -1
  234. package/rules/ast-grep-rules/coderabbit/rules/javascript/security/detect-angular-sce-disabled-javascript.yml +2 -1
  235. package/rules/ast-grep-rules/coderabbit/rules/javascript/security/express-jwt-hardcoded-secret-javascript.yml +2 -1
  236. package/rules/ast-grep-rules/coderabbit/rules/javascript/security/express-session-hardcoded-secret-javascript.yml +2 -1
  237. package/rules/ast-grep-rules/coderabbit/rules/javascript/security/jwt-simple-noverify-javascript.yml +2 -1
  238. package/rules/ast-grep-rules/coderabbit/rules/javascript/security/node-rsa-weak-key-javascript.yml +2 -1
  239. package/rules/ast-grep-rules/coderabbit/rules/javascript/security/node-sequelize-empty-password-argument-javascript.yml +2 -1
  240. package/rules/ast-grep-rules/coderabbit/rules/javascript/security/node-sequelize-hardcoded-secret-argument-javascript.yml +2 -1
  241. package/rules/ast-grep-rules/coderabbit/rules/kotlin/security/des-is-deprecated-kotlin.yml +2 -1
  242. package/rules/ast-grep-rules/coderabbit/rules/kotlin/security/desede-is-deprecated-kotlin.yml +2 -1
  243. package/rules/ast-grep-rules/coderabbit/rules/kotlin/security/jwt-hardcode-kotlin.yml +2 -1
  244. package/rules/ast-grep-rules/coderabbit/rules/kotlin/security/rsa-no-padding-kotlin.yml +2 -1
  245. package/rules/ast-grep-rules/coderabbit/rules/kotlin/security/system-setproperty-hardcoded-secret-kotlin.yml +2 -1
  246. package/rules/ast-grep-rules/coderabbit/rules/php/security/openssl-cbc-static-iv-php.yml +2 -1
  247. package/rules/ast-grep-rules/coderabbit/rules/php/security/search-active-debug-php.yml +2 -1
  248. package/rules/ast-grep-rules/coderabbit/rules/python/security/avoid-mktemp-python.yml +2 -1
  249. package/rules/ast-grep-rules/coderabbit/rules/python/security/avoid_app_run_with_bad_host-python.yml +2 -1
  250. package/rules/ast-grep-rules/coderabbit/rules/python/security/debug-enabled-python.yml +2 -1
  251. package/rules/ast-grep-rules/coderabbit/rules/python/security/hashids-with-django-secret-python.yml +2 -1
  252. package/rules/ast-grep-rules/coderabbit/rules/python/security/hashids-with-flask-secret-python.yml +2 -1
  253. package/rules/ast-grep-rules/coderabbit/rules/python/security/insecure-cipher-algorithm-rc4-python.yml +2 -1
  254. package/rules/ast-grep-rules/coderabbit/rules/python/security/jwt-python-hardcoded-secret-python.yml +2 -1
  255. package/rules/ast-grep-rules/coderabbit/rules/python/security/openai-hardcoded-secret-python.yml +2 -1
  256. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-cassandra-empty-password-python.yml +2 -1
  257. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-cassandra-hardcoded-secret-python.yml +2 -1
  258. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-couchbase-empty-password-python.yml +2 -1
  259. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-couchbase-hardcoded-secret-python.yml +2 -1
  260. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-elasticsearch-hardcoded-bearer-auth-python.yml +2 -1
  261. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-ldap3-empty-password-python.yml +2 -1
  262. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-ldap3-hardcoded-secret-python.yml +2 -1
  263. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-mariadb-empty-password-python.yml +2 -1
  264. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-mariadb-hardcoded-secret-python.yml +2 -1
  265. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysql-empty-password-python.yml +2 -1
  266. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysql-hardcoded-secret-python.yml +2 -1
  267. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysqlclient-empty-password-python.yml +2 -1
  268. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysqlclient-hardcoded-secret-python.yml +2 -1
  269. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-neo4j-empty-password-python.yml +2 -1
  270. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-neo4j-hardcoded-secret-python.yml +2 -1
  271. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-mysql-empty-password-python.yml +2 -1
  272. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-mysql-hardcoded-secret-python.yml +2 -1
  273. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-pg-empty-password-python.yml +2 -1
  274. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-pg-hardcoded-secret-python.yml +2 -1
  275. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-pg8000-empty-password-python.yml +2 -1
  276. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-pg8000-hardcoded-secret-python.yml +2 -1
  277. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-psycopg2-empty-password-python.yml +2 -1
  278. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-psycopg2-hardcoded-secret-python.yml +2 -1
  279. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-pyjwt-hardcoded-secret-python.yml +2 -1
  280. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymongo-empty-password-python.yml +2 -1
  281. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymongo-hardcoded-secret-python.yml +2 -1
  282. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymssql-empty-password-python.yml +2 -1
  283. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymssql-hardcoded-secret-python.yml +2 -1
  284. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymysql-empty-password-python.yml +2 -1
  285. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymysql-hardcoded-secret-python.yml +2 -1
  286. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-redis-empty-password-python.yml +2 -1
  287. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-redis-hardcoded-secret-python.yml +2 -1
  288. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-requests-empty-password-python.yml +2 -1
  289. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-requests-hardcoded-secret-python.yml +2 -1
  290. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-requests-oauth-hardcoded-secret-python.yml +2 -1
  291. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-tormysql-empty-password-python.yml +2 -1
  292. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-tormysql-hardcoded-secret-python.yml +2 -1
  293. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-urllib3-hardcoded-secret-python.yml +2 -1
  294. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-webrepl-empty-password-python.yml +2 -1
  295. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-webrepl-hardcoded-secret-python.yml +2 -1
  296. package/rules/ast-grep-rules/coderabbit/rules/ruby/security/force-ssl-false-ruby.yml +2 -1
  297. package/rules/ast-grep-rules/coderabbit/rules/ruby/security/hardcoded-http-auth-in-controller-ruby.yml +2 -1
  298. package/rules/ast-grep-rules/coderabbit/rules/ruby/security/hardcoded-secret-rsa-passphrase-ruby.yml +2 -1
  299. package/rules/ast-grep-rules/coderabbit/rules/ruby/security/insufficient-rsa-key-size-ruby.yml +2 -1
  300. package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-aws-sdk-hardcoded-secret-ruby.yml +2 -1
  301. package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-cassandra-empty-password-ruby.yml +2 -1
  302. package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-cassandra-hardcoded-secret-ruby.yml +2 -1
  303. package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-excon-hardcoded-secret-ruby.yml +2 -1
  304. package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-faraday-hardcoded-secret-ruby.yml +2 -1
  305. package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mongo-empty-password-ruby.yml +2 -1
  306. package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mongo-hardcoded-secret-ruby.yml +2 -1
  307. package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mysql2-empty-password-ruby.yml +2 -1
  308. package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mysql2-hardcoded-secret-ruby.yml +2 -1
  309. package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-octokit-hardcoded-secret-ruby.yml +2 -1
  310. package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-pg-empty-password-ruby.yml +2 -1
  311. package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-pg-hardcoded-secret-ruby.yml +2 -1
  312. package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-redis-empty-password-ruby.yml +2 -1
  313. package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-redis-hardcoded-secret-ruby.yml +2 -1
  314. package/rules/ast-grep-rules/coderabbit/rules/rust/security/empty-password-rust.yml +2 -1
  315. package/rules/ast-grep-rules/coderabbit/rules/rust/security/hardcoded-password-rust.yml +2 -1
  316. package/rules/ast-grep-rules/coderabbit/rules/rust/security/postgres-empty-password-rust.yml +2 -1
  317. package/rules/ast-grep-rules/coderabbit/rules/rust/security/reqwest-accept-invalid-rust.yml +2 -1
  318. package/rules/ast-grep-rules/coderabbit/rules/rust/security/secrets-reqwest-hardcoded-auth-rust.yml +2 -1
  319. package/rules/ast-grep-rules/coderabbit/rules/rust/security/ssl-verify-none-rust.yml +2 -1
  320. package/rules/ast-grep-rules/coderabbit/rules/rust/security/tokio-postgres-empty-password-rust.yml +2 -1
  321. package/rules/ast-grep-rules/coderabbit/rules/rust/security/tokio-postgres-hardcoded-password-rust.yml +2 -1
  322. package/rules/ast-grep-rules/coderabbit/rules/scala/security/jwt-scala-hardcode-scala.yml +2 -1
  323. package/rules/ast-grep-rules/coderabbit/rules/scala/security/scala-jwt-hardcoded-secret-scala.yml +2 -1
  324. package/rules/ast-grep-rules/coderabbit/rules/swift/security/aes-hardcoded-secret-swift.yml +2 -1
  325. package/rules/ast-grep-rules/coderabbit/rules/swift/security/blowfish-hardcoded-secret-swift.yml +2 -1
  326. package/rules/ast-grep-rules/coderabbit/rules/swift/security/chacha20-hardcoded-secret-swift.yml +2 -1
  327. package/rules/ast-grep-rules/coderabbit/rules/swift/security/insecure-biometrics-swift.yml +2 -1
  328. package/rules/ast-grep-rules/coderabbit/rules/swift/security/rabbit-hardcoded-secret-swift.yml +2 -1
  329. package/rules/ast-grep-rules/coderabbit/rules/typescript/security/detect-angular-sce-disabled-typescript.yml +2 -1
  330. package/rules/ast-grep-rules/coderabbit/rules/typescript/security/express-session-hardcoded-secret-typescript.yml +2 -1
  331. package/rules/ast-grep-rules/coderabbit/rules/typescript/security/jwt-simple-noverify-typescript.yml +2 -1
  332. package/rules/ast-grep-rules/coderabbit/rules/typescript/security/node-rsa-weak-key-typescript.yml +2 -1
  333. package/rules/ast-grep-rules/coderabbit/rules/typescript/security/node-sequelize-empty-password-argument-typescript.yml +2 -1
  334. package/rules/ast-grep-rules/coderabbit/rules/typescript/security/node-sequelize-hardcoded-secret-argument-typescript.yml +2 -1
  335. package/rules/ast-grep-rules/rule-schema.json +1 -1
  336. package/rules/ast-grep-rules/rules/c-no-malloc-free.yml +13 -12
  337. package/rules/ast-grep-rules/rules/cpp-no-malloc-free.yml +11 -10
  338. package/rules/ast-grep-rules/rules/cpp-no-printf.yml +10 -9
  339. package/rules/ast-grep-rules/rules/go-defer-func-call-antipattern.yml +14 -13
  340. package/rules/ast-grep-rules/rules/go-no-fmt-println.yml +14 -13
  341. package/rules/ast-grep-rules/rules/go-no-panic-in-lib.yml +20 -19
  342. package/rules/ast-grep-rules/rules/go-no-underscore-func-name.yml +14 -13
  343. package/rules/ast-grep-rules/rules/go-prefer-errors-is.yml +14 -13
  344. package/rules/ast-grep-rules/rules/go-prefer-string-builder.yml +19 -18
  345. package/rules/ast-grep-rules/rules/go-test-functions.yml +14 -13
  346. package/rules/ast-grep-rules/rules/hyphenated-svg-attribute.yml +10 -9
  347. package/rules/ast-grep-rules/rules/kotlin-no-lateinit.yml +12 -11
  348. package/rules/ast-grep-rules/rules/kotlin-no-nullable-boolean.yml +11 -10
  349. package/rules/ast-grep-rules/rules/kotlin-no-println.yml +15 -14
  350. package/rules/ast-grep-rules/rules/kotlin-no-unnecessary-let.yml +10 -9
  351. package/rules/ast-grep-rules/rules/kotlin-no-unsafe-cast.yml +10 -9
  352. package/rules/ast-grep-rules/rules/kotlin-no-var.yml +11 -10
  353. package/rules/ast-grep-rules/rules/kotlin-prefer-data-class.yml +10 -9
  354. package/rules/ast-grep-rules/rules/kotlin-prefer-is-empty.yml +10 -9
  355. package/rules/ast-grep-rules/rules/no-aws-access-key-literal.yml +1 -1
  356. package/rules/ast-grep-rules/rules/no-compile-call.yml +13 -12
  357. package/rules/ast-grep-rules/rules/no-flask-secret-key-literal.yml +1 -1
  358. package/rules/ast-grep-rules/rules/no-hardcoded-password.yml +1 -1
  359. package/rules/ast-grep-rules/rules/no-marshal-load.yml +12 -11
  360. package/rules/ast-grep-rules/rules/no-python-sql-string-concat.yml +12 -11
  361. package/rules/ast-grep-rules/rules/no-requests-verify-false.yml +13 -12
  362. package/rules/ast-grep-rules/rules/no-secret-in-env-var-name.yml +1 -1
  363. package/rules/ast-grep-rules/rules/python-optional-type.yml +9 -8
  364. package/rules/ast-grep-rules/rules/reducible-list-comprehension.yml +8 -7
  365. package/rules/ast-grep-rules/rules/ruby-detect-path-traversal.yml +14 -13
  366. package/rules/ast-grep-rules/rules/ruby-symbol-to-proc-candidate.yml +8 -7
  367. package/rules/ast-grep-rules/rules/rust-no-chars-enumerate.yml +9 -8
  368. package/rules/ast-grep-rules/rules-disabled/gorm-unbounded-preload.yml +7 -6
  369. package/rules/ast-grep-rules/rules-disabled/shadow-err-variable.yml +6 -5
  370. package/scripts/analyze-pi-lens-logs.mjs +262 -3
  371. package/scripts/download-grammars.js +10 -0
  372. package/scripts/grammars.lock.json +7 -0
  373. package/scripts/lib/latency-log-phases.mjs +125 -0
  374. package/vendor/grammars/tree-sitter-groovy.wasm +0 -0
  375. package/dist/chunk-H6FLQ5NW.js +0 -28
  376. package/dist/chunk-KR5VGMVT.js +0 -25
  377. package/dist/chunk-Q6JQKWPK.js +0 -25
  378. package/dist/chunk-QJJKOHLH.js +0 -57
  379. package/dist/chunk-TGQDAG4B.js +0 -88
  380. package/dist/chunk-TYHPVE5H.js +0 -25
  381. package/dist/chunk-UAKO2M6B.js +0 -73
  382. package/dist/chunk-UC5AXW5Z.js +0 -20
  383. package/dist/chunk-UTJP6WOS.js +0 -28
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  withTreeSitterRoot
4
- } from "./chunk-ZZSJAR76.js";
4
+ } from "./chunk-OC4ZGVMH.js";
5
5
 
6
6
  // dist/clients/dispatch/facts/tree-sitter-facts.js
7
7
  var withFactTree = withTreeSitterRoot;
@@ -1,23 +1,25 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
- hashFileBytes,
4
3
  resolveRunnerPath
5
- } from "./chunk-W7TY6HYX.js";
4
+ } from "./chunk-ZRQMENT4.js";
5
+ import {
6
+ hashFileBytes
7
+ } from "./chunk-CIA7X2PZ.js";
6
8
  import {
7
9
  recordDegradationOnce,
8
10
  resolveLensToolName,
9
11
  translateGuidanceToolNames
10
- } from "./chunk-W5E72HJA.js";
12
+ } from "./chunk-AGEQRJ5A.js";
11
13
  import {
12
14
  freshnessFromMtime
13
15
  } from "./chunk-S26LC76R.js";
14
16
  import {
15
17
  logLatency
16
- } from "./chunk-VCRVNLE7.js";
18
+ } from "./chunk-K2GV34T2.js";
17
19
  import {
18
20
  normalizeMapKey,
19
21
  toProjectRelativePath
20
- } from "./chunk-CB7PEVOJ.js";
22
+ } from "./chunk-WLD6BGON.js";
21
23
 
22
24
  // dist/clients/advisory-provenance.js
23
25
  import * as fs from "node:fs";
@@ -1,40 +1,40 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  resolveManagedToolClient
4
- } from "./chunk-NCLO6E6N.js";
4
+ } from "./chunk-UELHWF5I.js";
5
5
  import {
6
6
  biomeConfigArgs
7
- } from "./chunk-7R5GZIA6.js";
8
- import "./chunk-YOXCCJDF.js";
9
- import "./chunk-7YTRG6YW.js";
10
- import "./chunk-V67D6TMU.js";
11
- import "./chunk-LT62P654.js";
12
- import "./chunk-PRHYIA6X.js";
13
- import "./chunk-ACRJ2GZ5.js";
14
- import "./chunk-J3Q2NYJR.js";
15
- import "./chunk-5YSEQHJN.js";
16
- import "./chunk-QGITU23N.js";
17
- import "./chunk-WTB4GKMH.js";
18
- import "./chunk-RTFMDIKV.js";
7
+ } from "./chunk-YUF4DRYB.js";
8
+ import "./chunk-DBAHJFBU.js";
9
+ import "./chunk-2SD2CGVH.js";
10
+ import "./chunk-NLRKB32C.js";
11
+ import "./chunk-QJ4T73J5.js";
12
+ import "./chunk-HTUG7ZFK.js";
13
+ import "./chunk-7424ANRU.js";
14
+ import "./chunk-SUIZOCSY.js";
15
+ import "./chunk-5YTDZ5WP.js";
16
+ import "./chunk-E3PNZDPH.js";
17
+ import "./chunk-KNP4ENFT.js";
19
18
  import "./chunk-CKEQFGLT.js";
20
- import "./chunk-KXMJLOZF.js";
21
- import "./chunk-MRLH4MYU.js";
22
- import "./chunk-MKPDIAZH.js";
19
+ import "./chunk-LXE7JAMV.js";
20
+ import "./chunk-IT7MFVGP.js";
21
+ import "./chunk-AYDE7RFV.js";
22
+ import "./chunk-3HZ6MNB2.js";
23
23
  import "./chunk-2BEMIWEW.js";
24
24
  import "./chunk-IJYGIDF4.js";
25
- import "./chunk-MQ4PPCJB.js";
25
+ import "./chunk-ITAPXBIB.js";
26
26
  import {
27
27
  resolveToolCwd
28
- } from "./chunk-RNJFRXEN.js";
28
+ } from "./chunk-JSQK5DH3.js";
29
29
  import {
30
30
  findGlobalBinary,
31
31
  findLocalBinAt,
32
32
  localBinPath
33
- } from "./chunk-E65WJVI5.js";
33
+ } from "./chunk-FVEEEEIM.js";
34
34
  import {
35
35
  getIsolatedNpxSpawnOptions,
36
36
  probeToolAsync
37
- } from "./chunk-L6WBJGQS.js";
37
+ } from "./chunk-OP5BMZKK.js";
38
38
  import "./chunk-UYXV5NIS.js";
39
39
  import {
40
40
  classifyProbeFailure,
@@ -42,32 +42,33 @@ import {
42
42
  describeInstallAttempt,
43
43
  logAvailabilityDecision,
44
44
  startHostStallSampler
45
- } from "./chunk-AACN5GNE.js";
46
- import "./chunk-3HTZDY3C.js";
47
- import "./chunk-CDFJF5YD.js";
48
- import "./chunk-RNXOWDM6.js";
49
- import "./chunk-ZCQBNPRH.js";
45
+ } from "./chunk-WBXCIRVI.js";
46
+ import "./chunk-TTGDTNSN.js";
47
+ import "./chunk-34RXPR7M.js";
48
+ import "./chunk-3NVGBFJS.js";
49
+ import "./chunk-C2REOMPO.js";
50
50
  import {
51
51
  getGlobalPiLensDir,
52
52
  safeSpawnAsync
53
- } from "./chunk-TMNUTMT5.js";
53
+ } from "./chunk-DNB4ZQGN.js";
54
54
  import {
55
55
  createSingleFlight
56
- } from "./chunk-AWQWXSW4.js";
56
+ } from "./chunk-B4FAFEBP.js";
57
57
  import "./chunk-QYF5S6P6.js";
58
58
  import {
59
59
  isFileKind
60
- } from "./chunk-CZCAZVTD.js";
61
- import "./chunk-X5BJ3G2P.js";
62
- import "./chunk-NL5LSKVD.js";
63
- import "./chunk-PIIUNJIT.js";
60
+ } from "./chunk-SRXYSLMW.js";
61
+ import "./chunk-6EIV3H7O.js";
62
+ import "./chunk-3R3Z54J7.js";
63
+ import "./chunk-CIA7X2PZ.js";
64
+ import "./chunk-43KD3PPM.js";
64
65
  import {
65
66
  createSubsystemLogger
66
- } from "./chunk-W5E72HJA.js";
67
+ } from "./chunk-AGEQRJ5A.js";
67
68
  import "./chunk-S26LC76R.js";
68
- import "./chunk-VCRVNLE7.js";
69
+ import "./chunk-K2GV34T2.js";
69
70
  import "./chunk-LJDODBBZ.js";
70
- import "./chunk-CB7PEVOJ.js";
71
+ import "./chunk-WLD6BGON.js";
71
72
  import "./chunk-NXL4FFQQ.js";
72
73
 
73
74
  // dist/clients/biome-client.js
@@ -1,14 +1,14 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  isExcludedDirName
4
- } from "./chunk-TMNUTMT5.js";
4
+ } from "./chunk-DNB4ZQGN.js";
5
5
  import {
6
6
  createDeadline,
7
7
  yieldIfOverBudget
8
8
  } from "./chunk-QYF5S6P6.js";
9
9
  import {
10
10
  isGeneratedArtifactDirectoryName
11
- } from "./chunk-X5BJ3G2P.js";
11
+ } from "./chunk-6EIV3H7O.js";
12
12
 
13
13
  // dist/clients/source-walker.js
14
14
  import * as fs from "node:fs";
@@ -9,33 +9,33 @@ import {
9
9
  isExcludedTestTarget,
10
10
  isRunnerErrorResult,
11
11
  stripWrapperArgs
12
- } from "./chunk-XLAI7UYY.js";
13
- import "./chunk-V67D6TMU.js";
14
- import "./chunk-LT62P654.js";
15
- import "./chunk-ACRJ2GZ5.js";
16
- import "./chunk-J3Q2NYJR.js";
17
- import "./chunk-WTB4GKMH.js";
12
+ } from "./chunk-QUZYRDT6.js";
13
+ import "./chunk-NLRKB32C.js";
14
+ import "./chunk-QJ4T73J5.js";
15
+ import "./chunk-7424ANRU.js";
16
+ import "./chunk-SUIZOCSY.js";
18
17
  import "./chunk-6HWVI6MI.js";
19
- import "./chunk-RNJFRXEN.js";
20
- import "./chunk-E65WJVI5.js";
21
- import "./chunk-L6WBJGQS.js";
22
- import "./chunk-AACN5GNE.js";
23
- import "./chunk-3HTZDY3C.js";
24
- import "./chunk-CDFJF5YD.js";
25
- import "./chunk-RNXOWDM6.js";
26
- import "./chunk-ZCQBNPRH.js";
27
- import "./chunk-TMNUTMT5.js";
28
- import "./chunk-AWQWXSW4.js";
18
+ import "./chunk-AYDE7RFV.js";
19
+ import "./chunk-JSQK5DH3.js";
20
+ import "./chunk-FVEEEEIM.js";
21
+ import "./chunk-OP5BMZKK.js";
22
+ import "./chunk-WBXCIRVI.js";
23
+ import "./chunk-TTGDTNSN.js";
24
+ import "./chunk-34RXPR7M.js";
25
+ import "./chunk-3NVGBFJS.js";
26
+ import "./chunk-C2REOMPO.js";
27
+ import "./chunk-DNB4ZQGN.js";
28
+ import "./chunk-B4FAFEBP.js";
29
29
  import "./chunk-QYF5S6P6.js";
30
- import "./chunk-CZCAZVTD.js";
31
- import "./chunk-X5BJ3G2P.js";
32
- import "./chunk-NL5LSKVD.js";
33
- import "./chunk-PIIUNJIT.js";
34
- import "./chunk-W5E72HJA.js";
30
+ import "./chunk-SRXYSLMW.js";
31
+ import "./chunk-6EIV3H7O.js";
32
+ import "./chunk-3R3Z54J7.js";
33
+ import "./chunk-43KD3PPM.js";
34
+ import "./chunk-AGEQRJ5A.js";
35
35
  import "./chunk-S26LC76R.js";
36
- import "./chunk-VCRVNLE7.js";
36
+ import "./chunk-K2GV34T2.js";
37
37
  import "./chunk-LJDODBBZ.js";
38
- import "./chunk-CB7PEVOJ.js";
38
+ import "./chunk-WLD6BGON.js";
39
39
  import "./chunk-NXL4FFQQ.js";
40
40
  export {
41
41
  MAX_CANONICAL_ROOT_MEMO_ENTRIES,
@@ -0,0 +1,26 @@
1
+ import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
+
3
+ // dist/clients/content-stamp.js
4
+ import { createHash } from "node:crypto";
5
+ import * as fs from "node:fs";
6
+ var CONTENT_HASH_MAX_BYTES = 4 * 1024 * 1024;
7
+ function hashContentBytes(bytes) {
8
+ return createHash("sha256").update(bytes).digest("hex");
9
+ }
10
+ function hashFileBytes(filePath) {
11
+ return hashContentBytes(fs.readFileSync(filePath));
12
+ }
13
+ function stampContentBytes(bytes, mtimeMs) {
14
+ return {
15
+ size: bytes.byteLength,
16
+ mtimeMs,
17
+ ...bytes.byteLength <= CONTENT_HASH_MAX_BYTES ? { sha256: hashContentBytes(bytes) } : {}
18
+ };
19
+ }
20
+
21
+ export {
22
+ CONTENT_HASH_MAX_BYTES,
23
+ hashContentBytes,
24
+ hashFileBytes,
25
+ stampContentBytes
26
+ };
@@ -4,10 +4,10 @@ import {
4
4
  canonicalDirectory,
5
5
  getExcludedDirGlobs,
6
6
  listNestedLinkedWorktreeRoots
7
- } from "./chunk-TMNUTMT5.js";
7
+ } from "./chunk-DNB4ZQGN.js";
8
8
  import {
9
9
  escapeRegExp
10
- } from "./chunk-W5E72HJA.js";
10
+ } from "./chunk-AGEQRJ5A.js";
11
11
 
12
12
  // dist/clients/scratch-tree-policy.js
13
13
  import { relative } from "node:path";
@@ -1,39 +1,40 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  resolveOpengrepConfig
4
- } from "./chunk-7YTRG6YW.js";
4
+ } from "./chunk-2SD2CGVH.js";
5
5
  import {
6
6
  PYTHON_COMPILE_VERDICT_SERVER_ID,
7
7
  augmentPythonEnvironment,
8
8
  detectPythonEnvironment,
9
9
  pythonEnvironmentToolCandidates
10
- } from "./chunk-V67D6TMU.js";
10
+ } from "./chunk-NLRKB32C.js";
11
11
  import {
12
12
  scannerReportParentDir
13
- } from "./chunk-LT62P654.js";
13
+ } from "./chunk-QJ4T73J5.js";
14
14
  import {
15
15
  hasCargoWorkspaceTable,
16
16
  readCargoWorkspaceExclude,
17
17
  readCargoWorkspaceMembers,
18
18
  readTextFileOrUndefined
19
- } from "./chunk-J3Q2NYJR.js";
19
+ } from "./chunk-SUIZOCSY.js";
20
20
  import {
21
21
  getUserRuleRoot,
22
22
  ruleCorpusFingerprintForCycle
23
- } from "./chunk-5YSEQHJN.js";
23
+ } from "./chunk-5YTDZ5WP.js";
24
24
  import {
25
25
  load,
26
26
  resolvePackagePath
27
- } from "./chunk-QGITU23N.js";
28
- import {
29
- extensionsForLanguage
30
- } from "./chunk-WTB4GKMH.js";
27
+ } from "./chunk-E3PNZDPH.js";
31
28
  import {
32
29
  HOOK_WALL_BUDGET_MS
33
30
  } from "./chunk-CKEQFGLT.js";
31
+ import {
32
+ extensionsForLanguage,
33
+ isTypeScriptFile
34
+ } from "./chunk-AYDE7RFV.js";
34
35
  import {
35
36
  bounded
36
- } from "./chunk-MKPDIAZH.js";
37
+ } from "./chunk-3HZ6MNB2.js";
37
38
  import {
38
39
  ensureTool,
39
40
  findManagedToolBinary,
@@ -43,25 +44,26 @@ import {
43
44
  isZizmorAuditTarget,
44
45
  logSessionStart,
45
46
  resolveZizmorGitHubToken
46
- } from "./chunk-MQ4PPCJB.js";
47
+ } from "./chunk-ITAPXBIB.js";
47
48
  import {
48
49
  resolveToolCwd
49
- } from "./chunk-RNJFRXEN.js";
50
+ } from "./chunk-JSQK5DH3.js";
50
51
  import {
51
52
  commandSearchReachesProject,
52
53
  findGlobalBinary,
53
54
  isProjectLocalBinPath
54
- } from "./chunk-E65WJVI5.js";
55
+ } from "./chunk-FVEEEEIM.js";
55
56
  import {
57
+ classifyFinderFailure,
56
58
  classifyProbeFailure,
57
59
  createAvailabilityLatch,
58
60
  describeInstallAttempt,
59
61
  logAvailabilityDecision,
60
62
  startHostStallSampler
61
- } from "./chunk-AACN5GNE.js";
63
+ } from "./chunk-WBXCIRVI.js";
62
64
  import {
63
65
  readDirEntriesSafeAsync
64
- } from "./chunk-ZCQBNPRH.js";
66
+ } from "./chunk-C2REOMPO.js";
65
67
  import {
66
68
  OWNER_TAG_ENV,
67
69
  SpawnFailureError,
@@ -90,13 +92,13 @@ import {
90
92
  safeSpawnAsync,
91
93
  statIsFile,
92
94
  trustScopedEnvironment
93
- } from "./chunk-TMNUTMT5.js";
95
+ } from "./chunk-DNB4ZQGN.js";
94
96
  import {
95
97
  DOTNET_CSHARP_ROOT_MARKERS,
96
98
  DOTNET_FSHARP_ROOT_MARKERS,
97
99
  KIND_EXTENSIONS,
98
100
  LEAN_ROOT_MARKERS
99
- } from "./chunk-CZCAZVTD.js";
101
+ } from "./chunk-SRXYSLMW.js";
100
102
  import {
101
103
  boundedKeyLabel,
102
104
  finalizeRecords,
@@ -108,7 +110,7 @@ import {
108
110
  reportPiLensConfigRecords,
109
111
  resolvePiLensConfig,
110
112
  summarizeConfigResolution
111
- } from "./chunk-X5BJ3G2P.js";
113
+ } from "./chunk-6EIV3H7O.js";
112
114
  import {
113
115
  FRESHNESS_CADENCE_MS,
114
116
  LSP_NAMESPACE_KEY,
@@ -119,17 +121,17 @@ import {
119
121
  getDirectoryMarkers,
120
122
  getPiLensGlobalConfigPath,
121
123
  unknownDirMtimeRecords
122
- } from "./chunk-NL5LSKVD.js";
124
+ } from "./chunk-3R3Z54J7.js";
123
125
  import {
124
126
  getProjectTrustGeneration,
125
127
  getProjectTrustState
126
- } from "./chunk-PIIUNJIT.js";
128
+ } from "./chunk-43KD3PPM.js";
127
129
  import {
128
130
  getDegradationLedgerGeneration,
129
131
  incrementDegradationCount,
130
132
  logExtension,
131
133
  recordDegradationOnce
132
- } from "./chunk-W5E72HJA.js";
134
+ } from "./chunk-AGEQRJ5A.js";
133
135
  import {
134
136
  claimPhaseOncePerSession,
135
137
  currentSessionRecordId,
@@ -140,7 +142,7 @@ import {
140
142
  logLatency,
141
143
  redactSecrets,
142
144
  releasePhaseClaim
143
- } from "./chunk-VCRVNLE7.js";
145
+ } from "./chunk-K2GV34T2.js";
144
146
  import {
145
147
  STAGE_TMP_PATTERN
146
148
  } from "./chunk-LJDODBBZ.js";
@@ -163,10 +165,11 @@ import {
163
165
  normalizeMapKey,
164
166
  pathsEqual,
165
167
  realpathOrResolve,
168
+ relativeInside,
166
169
  toPosix,
167
170
  toProjectRelativePath,
168
171
  walkUpDirs
169
- } from "./chunk-CB7PEVOJ.js";
172
+ } from "./chunk-WLD6BGON.js";
170
173
 
171
174
  // dist/clients/analysis-root.js
172
175
  import * as fs from "node:fs";
@@ -910,22 +913,23 @@ async function buildAugmentedPath(basePath) {
910
913
  return toAppend.join(path4.delimiter);
911
914
  return `${basePath}${path4.delimiter}${toAppend.join(path4.delimiter)}`;
912
915
  }
913
- function isCmdShimValid(cmdPath) {
916
+ function isCmdShimValid(cmdPath, cwd) {
917
+ const shimFile = cwd === void 0 ? cmdPath : path4.resolve(cwd, cmdPath);
914
918
  try {
915
- const content = fs5.readFileSync(cmdPath, "utf-8");
919
+ const content = fs5.readFileSync(shimFile, "utf-8");
916
920
  const match = content.match(/"%~dp0[/\\]\.\.[/\\]((?:[\w./@-]|\\)+\.(?:mjs|cjs|js))"/i);
917
921
  if (!match)
918
922
  return true;
919
923
  const relPath = match[1].replace(/[/\\]/g, path4.sep);
920
- const target = path4.resolve(path4.dirname(cmdPath), "..", relPath);
924
+ const target = path4.resolve(path4.dirname(shimFile), "..", relPath);
921
925
  return fs5.existsSync(target);
922
926
  } catch {
923
- return true;
927
+ return statIsFile(shimFile);
924
928
  }
925
929
  }
926
930
  function windowsCommandPresence(evidence) {
927
931
  const { command, spawnCommand } = evidence;
928
- if (/\.(cmd|bat)$/i.test(spawnCommand) && isCmdShimValid(spawnCommand)) {
932
+ if (/\.(cmd|bat)$/i.test(spawnCommand) && isCmdShimValid(spawnCommand, evidence.cwd)) {
929
933
  return "present";
930
934
  }
931
935
  if (evidence.isBareCommand) {
@@ -933,10 +937,10 @@ function windowsCommandPresence(evidence) {
933
937
  }
934
938
  return statIsFile(spawnCommand) || resolveWindowsCommandForEnvironment(spawnCommand, evidence.cwd, evidence.env) ? "present" : "absent";
935
939
  }
936
- function isMissingWindowsStartupCommand(spawnCommand, presence) {
940
+ function isMissingWindowsStartupCommand(spawnCommand, presence, cwd) {
937
941
  if (!isWindows)
938
942
  return false;
939
- if (/\.(cmd|bat)$/i.test(spawnCommand) && !isCmdShimValid(spawnCommand)) {
943
+ if (/\.(cmd|bat)$/i.test(spawnCommand) && !isCmdShimValid(spawnCommand, cwd)) {
940
944
  return true;
941
945
  }
942
946
  return presence === "absent";
@@ -1190,7 +1194,7 @@ async function launchLSP(command, args = [], options = {}) {
1190
1194
  }
1191
1195
  if (isBareCommand)
1192
1196
  refuseProjectLookup(command, spawnCommand, cwd, env);
1193
- if (isWindows && /\.(cmd|bat)$/i.test(spawnCommand) && !isCmdShimValid(spawnCommand)) {
1197
+ if (isWindows && /\.(cmd|bat)$/i.test(spawnCommand) && !isCmdShimValid(spawnCommand, cwd)) {
1194
1198
  logSessionStart2(`lsp cmd-shim-invalid: ${spawnCommand} target missing \u2014 skipping candidate`);
1195
1199
  const cause = Object.assign(new Error(`LSP .cmd shim target not found: ${spawnCommand}`), { code: "ENOENT" });
1196
1200
  throw await classifySpawnFailure(cause, { command, cwd });
@@ -1228,7 +1232,7 @@ async function launchLSP(command, args = [], options = {}) {
1228
1232
  if (proc.exitCode !== null || proc.killed) {
1229
1233
  const message = `LSP server ${command} exited immediately (code: ${proc.exitCode}). The binary may be missing or corrupted.`;
1230
1234
  const failure = new Error(message);
1231
- if (proc.exitCode === 1 && isMissingWindowsStartupCommand(spawnCommand, commandPresence)) {
1235
+ if (proc.exitCode === 1 && isMissingWindowsStartupCommand(spawnCommand, commandPresence, cwd)) {
1232
1236
  throw new SpawnFailureError("tool-not-found", message, failure);
1233
1237
  }
1234
1238
  throw failure;
@@ -1266,7 +1270,7 @@ async function launchLSP(command, args = [], options = {}) {
1266
1270
  const errorMsg = isWindowsCmd && code === 1 ? `npm .cmd shim failed (underlying binary not installed). Run 'npm install' in this project or use a global installation.` : `The binary may be missing or corrupted.`;
1267
1271
  const message = `LSP server ${command} exited immediately with code ${code}. ${errorMsg}${formatStartupStderr(startupStderr)}`;
1268
1272
  const failure = new Error(message);
1269
- if (code === 1 && isMissingWindowsStartupCommand(spawnCommand, commandPresence)) {
1273
+ if (code === 1 && isMissingWindowsStartupCommand(spawnCommand, commandPresence, cwd)) {
1270
1274
  reject(new SpawnFailureError("tool-not-found", message, failure));
1271
1275
  return;
1272
1276
  }
@@ -2035,13 +2039,12 @@ var SERVER_DIAGNOSTIC_STRATEGIES = {
2035
2039
  // clean→clean edit (docs/lsp-capability-matrix.md, re-confirmed
2036
2040
  // 2026-07-12). It's the lone core-set tier-3 server, which is exactly
2037
2041
  // why the cascade lane's in-lane wait is worth skipping for it
2038
- // specifically. Applies to the CLASSIC server only (#524/#529/#558)
2042
+ // specifically. Applies to the CLASSIC server only (#524/#529/#558/#5348)
2039
2043
  // — TS7's native `tsc --lsp --stdio` variant shares this
2040
- // "typescript" server id but the 2026-07-12 dual-environment
2041
- // re-measurement found it now publishes on clean (a drift from the
2042
- // #541 measurement); wait-policy/classification.ts's classifier checks the live
2043
- // snapshot's launchVariant and never applies this flag to a
2044
- // native-ts7 instance.
2044
+ // "typescript" server id; `getStrategy` answers it with
2045
+ // NATIVE_TS7_DIAGNOSTIC_STRATEGY and wait-policy/classification.ts's
2046
+ // classifier checks the live snapshot's launchVariant, so neither
2047
+ // applies this flag to a native-ts7 instance.
2045
2048
  silentOnClean: true
2046
2049
  },
2047
2050
  "rust-analyzer": {
@@ -2377,8 +2380,12 @@ var SERVER_DIAGNOSTIC_STRATEGIES = {
2377
2380
  var NATIVE_TS7_DIAGNOSTIC_STRATEGY = {
2378
2381
  ...SERVER_DIAGNOSTIC_STRATEGIES.typescript,
2379
2382
  seedFirstPush: false,
2380
- // Native TS7 demonstrably publishes on clean, so the classic-only marker
2381
- // must not leak through the shared server id.
2383
+ // #5348: the classic-only marker must not leak through the shared server id.
2384
+ // It turns a wait that lapses with no publish into a confirmed clean, and
2385
+ // nothing measures that a push-only TS7 build publishes a file's errors
2386
+ // inside the budget. Native TS7 7.0.2 and `effect-tsgo` (this strategy is
2387
+ // also its) are pull servers, so the marker is not read for them today (see
2388
+ // `silentOnClean`).
2382
2389
  silentOnClean: false
2383
2390
  };
2384
2391
  var DEFAULT_STRATEGY = {
@@ -2796,9 +2803,8 @@ async function runJavaProbe() {
2796
2803
  });
2797
2804
  return true;
2798
2805
  }
2799
- const { outcome, cause } = classifyProbeFailure(result, {
2800
- hostStallMs,
2801
- unclassifiedFailureOutcome: "missing"
2806
+ const { outcome, cause, forced } = classifyFinderFailure(result, {
2807
+ hostStallMs
2802
2808
  });
2803
2809
  const retryAfterMs = javaAvailabilityLatch.noteUnavailable(outcome, cause);
2804
2810
  logAvailabilityDecision({
@@ -2811,7 +2817,7 @@ async function runJavaProbe() {
2811
2817
  hostStallMs,
2812
2818
  ...retryAfterMs > 0 && { retryAfterMs },
2813
2819
  budgetMs: JAVA_PROBE_TIMEOUT_MS,
2814
- classifiedBy: "probe"
2820
+ classifiedBy: forced ? "caller" : "probe"
2815
2821
  });
2816
2822
  return outcome === "transient" ? void 0 : false;
2817
2823
  }
@@ -3801,7 +3807,7 @@ function NearestRoot(includePatterns, excludePatterns, stopDir) {
3801
3807
  const fsRoot = path8.parse(startDir).root;
3802
3808
  const stop = stopDir ? realpathOrResolve(stopDir) : fsRoot;
3803
3809
  for (const currentDir of walkUpDirs(startDir)) {
3804
- if (stop !== fsRoot && currentDir.startsWith(stop + path8.sep) === false && currentDir !== stop) {
3810
+ if (stop !== fsRoot && relativeInside(stop, currentDir) === void 0) {
3805
3811
  break;
3806
3812
  }
3807
3813
  const stepDirs = [
@@ -4143,18 +4149,14 @@ var TS_TOOLING_MARKERS = [
4143
4149
  "yarn.lock",
4144
4150
  "package.json"
4145
4151
  ];
4146
- var TS_FAMILY_EXTENSIONS = /* @__PURE__ */ new Set([".ts", ".tsx", ".mts", ".cts"]);
4147
- function isTsFamilyFile(file) {
4148
- return TS_FAMILY_EXTENSIONS.has(path8.extname(file).toLowerCase());
4149
- }
4150
4152
  function tsConfigMarkersForFile(file) {
4151
- return isTsFamilyFile(file) ? ["tsconfig.json"] : TS_CONFIG_MARKERS;
4153
+ return isTypeScriptFile(file) ? ["tsconfig.json"] : TS_CONFIG_MARKERS;
4152
4154
  }
4153
4155
  var TypeScriptConfigRootTsOnly = IgnoreHomeRoot(createRootDetector(["tsconfig.json"]));
4154
4156
  var TypeScriptConfigRootEither = IgnoreHomeRoot(createRootDetector([...TS_CONFIG_MARKERS]));
4155
4157
  var TypeScriptToolingRoot = IgnoreHomeRoot(createRootDetector([...TS_TOOLING_MARKERS]));
4156
4158
  async function findTypeScriptProjectRoot(file) {
4157
- const configDetector = isTsFamilyFile(file) ? TypeScriptConfigRootTsOnly : TypeScriptConfigRootEither;
4159
+ const configDetector = isTypeScriptFile(file) ? TypeScriptConfigRootTsOnly : TypeScriptConfigRootEither;
4158
4160
  const [configRoot, toolingRoot] = await Promise.all([
4159
4161
  configDetector(file),
4160
4162
  TypeScriptToolingRoot(file)
@@ -4192,18 +4194,23 @@ async function findExtensionBoundedRoot(file, extensionRootKey) {
4192
4194
  }
4193
4195
  return void 0;
4194
4196
  }
4195
- async function hasAgentLevelProjectMarker(extensionRootKey) {
4197
+ async function classifyAgentLevelMarker(extensionRootKey, file) {
4196
4198
  const agentDir = path8.dirname(extensionRootKey);
4197
4199
  if (!agentDir || agentDir === extensionRootKey)
4198
- return false;
4199
- for (const pattern of [...TS_CONFIG_MARKERS, ...TS_TOOLING_MARKERS]) {
4200
+ return void 0;
4201
+ const configMarkers = tsConfigMarkersForFile(file);
4202
+ for (const pattern of [
4203
+ ...configMarkers,
4204
+ ...TS_CONFIG_MARKERS,
4205
+ ...TS_TOOLING_MARKERS
4206
+ ]) {
4200
4207
  try {
4201
4208
  await stat(path8.join(agentDir, pattern));
4202
- return true;
4209
+ return configMarkers.includes(pattern) ? "config" : "other";
4203
4210
  } catch {
4204
4211
  }
4205
4212
  }
4206
- return false;
4213
+ return void 0;
4207
4214
  }
4208
4215
  var TypeScriptRoot = withRootMarkers(DenoExcludeRoot(async (file) => {
4209
4216
  const extensionRootKey = piAgentExtensionsRootKey(file) ?? piAgentExtensionsRootKey(realpathOrResolve(file));
@@ -4211,7 +4218,11 @@ var TypeScriptRoot = withRootMarkers(DenoExcludeRoot(async (file) => {
4211
4218
  const bounded2 = await findExtensionBoundedRoot(file, extensionRootKey);
4212
4219
  if (bounded2)
4213
4220
  return bounded2;
4214
- if (await hasAgentLevelProjectMarker(extensionRootKey)) {
4221
+ const agentMarker = await classifyAgentLevelMarker(extensionRootKey, file);
4222
+ if (agentMarker === "config") {
4223
+ return realpathOrResolve(path8.dirname(extensionRootKey));
4224
+ }
4225
+ if (agentMarker === "other") {
4215
4226
  return FileDirRoot(file);
4216
4227
  }
4217
4228
  return void 0;
@@ -5837,18 +5848,13 @@ function registerSessionRoot(cwd) {
5837
5848
  function setSessionRootConfig(cwd, config) {
5838
5849
  return noteEvictedRoots(sessionRoots.set(path9.resolve(cwd), config));
5839
5850
  }
5840
- function isSameOrChildPath(filePath, candidateRoot) {
5841
- if (filePath === candidateRoot)
5842
- return true;
5843
- return filePath.startsWith(`${candidateRoot}${path9.sep}`);
5844
- }
5845
5851
  function sessionRootConfigForFile(filePath) {
5846
5852
  const resolvedFilePath = path9.resolve(filePath);
5847
5853
  let bestMatch;
5848
5854
  for (const [root, config] of sessionRoots) {
5849
5855
  if (config === void 0)
5850
5856
  continue;
5851
- if (!isSameOrChildPath(resolvedFilePath, root))
5857
+ if (!isSameOrWithin(root, resolvedFilePath))
5852
5858
  continue;
5853
5859
  if (!bestMatch || root.length > bestMatch.root.length) {
5854
5860
  bestMatch = { root, config };