pi-lens 4.4.10 → 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 (376) hide show
  1. package/CHANGELOG-USER.md +6 -6
  2. package/CHANGELOG.md +182 -0
  3. package/dist/{chunk-NE4EFHJX.js → chunk-2SD2CGVH.js} +2 -2
  4. package/dist/{chunk-7JX3RNG4.js → chunk-34RXPR7M.js} +1 -1
  5. package/dist/{chunk-2LVJQU3I.js → chunk-3C6ZZAB2.js} +33 -27
  6. package/dist/{chunk-WAA63ZJV.js → chunk-3HZ6MNB2.js} +1 -1
  7. package/dist/{chunk-IDCTDKIA.js → chunk-3NVGBFJS.js} +6 -6
  8. package/dist/{chunk-B2YUE6YD.js → chunk-3QCI3V6C.js} +11 -11
  9. package/dist/{chunk-NL5LSKVD.js → chunk-3R3Z54J7.js} +10 -4
  10. package/dist/{chunk-7WJ55KBN.js → chunk-43KD3PPM.js} +1 -1
  11. package/dist/{chunk-DVRJBQOJ.js → chunk-4HNBY7S7.js} +20 -19
  12. package/dist/chunk-4WWPDMRA.js +22 -0
  13. package/dist/{chunk-QL37SGTS.js → chunk-532X3OCZ.js} +18 -16
  14. package/dist/{chunk-ZZDVGCGG.js → chunk-5RLEDUUE.js} +9 -9
  15. package/dist/{chunk-GUGKKGG7.js → chunk-5YTDZ5WP.js} +3 -3
  16. package/dist/{chunk-FOEPIX76.js → chunk-6EIV3H7O.js} +158 -61
  17. package/dist/{chunk-E4VXKTBR.js → chunk-6K4X7IIF.js} +164 -172
  18. package/dist/{chunk-HSYFLOZY.js → chunk-6RXMQYNU.js} +3 -3
  19. package/dist/{chunk-K6WIBVMK.js → chunk-6XNVY3FW.js} +8 -9
  20. package/dist/{chunk-ACRJ2GZ5.js → chunk-7424ANRU.js} +2 -2
  21. package/dist/{chunk-PTSA6QKL.js → chunk-A4HKPAEN.js} +8 -8
  22. package/dist/{chunk-RQRKIRFY.js → chunk-AFNPNHJV.js} +8 -8
  23. package/dist/{chunk-3FRI5H4T.js → chunk-AGEQRJ5A.js} +24 -10
  24. package/dist/{chunk-MAD4QJTP.js → chunk-AJ62EQIQ.js} +15 -14
  25. package/dist/{chunk-FCQSZQAT.js → chunk-AOQKQWZU.js} +14 -5
  26. package/dist/{chunk-ZOPXB2KK.js → chunk-AVOUHMCS.js} +111 -107
  27. package/dist/{chunk-OTSTS7L2.js → chunk-AYDE7RFV.js} +34 -3
  28. package/dist/{chunk-AWQWXSW4.js → chunk-B4FAFEBP.js} +7 -2
  29. package/dist/{chunk-SKVNHCT5.js → chunk-B4K6OSLL.js} +49 -42
  30. package/dist/{chunk-2ADRLTM2.js → chunk-BBJXIZ3X.js} +3 -3
  31. package/dist/chunk-BJDB7PXU.js +25 -0
  32. package/dist/{chunk-GTTMQ6XB.js → chunk-BLL4VYGZ.js} +1 -1
  33. package/dist/{chunk-CZAWWXP6.js → chunk-BMMRLJA4.js} +7 -5
  34. package/dist/{chunk-TN5CWX5D.js → chunk-BN36MQW5.js} +35 -34
  35. package/dist/{chunk-IL6PIV33.js → chunk-C2REOMPO.js} +2 -2
  36. package/dist/{chunk-XAFZJEXY.js → chunk-C4ICGFEO.js} +23 -23
  37. package/dist/chunk-CIA7X2PZ.js +26 -0
  38. package/dist/{chunk-SJQUWQR6.js → chunk-D5L7Q57Z.js} +2 -2
  39. package/dist/{chunk-XPGH5O74.js → chunk-DBAHJFBU.js} +31 -35
  40. package/dist/{chunk-H65TYP6V.js → chunk-DNB4ZQGN.js} +37 -21
  41. package/dist/chunk-DPDA3ILA.js +108 -0
  42. package/dist/{chunk-QGITU23N.js → chunk-E3PNZDPH.js} +1 -1
  43. package/dist/{chunk-KDCIG23C.js → chunk-E6Z3CJT2.js} +13 -9
  44. package/dist/{chunk-V7F7JHS5.js → chunk-ECYUBKYX.js} +557 -551
  45. package/dist/chunk-F37CCZUA.js +27 -0
  46. package/dist/{chunk-KSTQ4VXT.js → chunk-FVEEEEIM.js} +10 -13
  47. package/dist/{chunk-GMC4ZGYR.js → chunk-GL6J5R34.js} +5 -5
  48. package/dist/{chunk-C6AODRNU.js → chunk-GTNO6F6K.js} +11 -10
  49. package/dist/{chunk-KJ3AHOCK.js → chunk-HASJPQBC.js} +10 -10
  50. package/dist/{chunk-XVB3Q2PG.js → chunk-HGEE5LDW.js} +3 -2
  51. package/dist/{chunk-F6FT6BVQ.js → chunk-HIUVHRLM.js} +35 -34
  52. package/dist/{chunk-BRESRQBE.js → chunk-HTUG7ZFK.js} +8 -8
  53. package/dist/{chunk-ALIZWXHZ.js → chunk-IBEYUBCM.js} +9 -9
  54. package/dist/{chunk-JZQGRARR.js → chunk-IJ55MYO6.js} +15 -12
  55. package/dist/{chunk-BGLS5SDN.js → chunk-IT7MFVGP.js} +2 -2
  56. package/dist/{chunk-AON2QIJF.js → chunk-ITAPXBIB.js} +20 -17
  57. package/dist/{chunk-TLWFZ66Y.js → chunk-JSQK5DH3.js} +4 -4
  58. package/dist/{chunk-VCRVNLE7.js → chunk-K2GV34T2.js} +9 -1
  59. package/dist/{chunk-QUQY3IME.js → chunk-KBSC5Z3G.js} +9 -8
  60. package/dist/{chunk-W4CUK5G6.js → chunk-KDGKKK7A.js} +2 -2
  61. package/dist/{chunk-YQA34KAF.js → chunk-KDMJ2DJD.js} +11 -11
  62. package/dist/{chunk-SG2JQ2YP.js → chunk-KNP4ENFT.js} +1 -1
  63. package/dist/chunk-KX4DF6XX.js +25 -0
  64. package/dist/{chunk-4ITEFRDH.js → chunk-LHCDWFDB.js} +37 -145
  65. package/dist/{chunk-3HM4BUHR.js → chunk-LHU6NG5Z.js} +16 -15
  66. package/dist/{chunk-6I44EDNQ.js → chunk-LIDFFCZZ.js} +17 -15
  67. package/dist/{chunk-KFRDFAOE.js → chunk-LPM6NKVI.js} +7 -7
  68. package/dist/{chunk-NBM7PNBP.js → chunk-LXE7JAMV.js} +37 -26
  69. package/dist/{chunk-UY745U35.js → chunk-ME6MF2N2.js} +1 -1
  70. package/dist/{chunk-YT2VR4SL.js → chunk-NLRKB32C.js} +7 -7
  71. package/dist/{chunk-QHOTTC4A.js → chunk-NQFXN5U7.js} +2 -2
  72. package/dist/{chunk-QUPYLQA4.js → chunk-NR4KQOXZ.js} +14 -9
  73. package/dist/{chunk-Y3EHLUPL.js → chunk-NWK7KKNO.js} +4 -4
  74. package/dist/{chunk-A5TEJZGJ.js → chunk-O6LCSHHI.js} +1 -1
  75. package/dist/{chunk-CTB5BAJI.js → chunk-OC4ZGVMH.js} +17 -14
  76. package/dist/{chunk-VPFRU5IG.js → chunk-OP5BMZKK.js} +3 -3
  77. package/dist/{chunk-MN635QYA.js → chunk-OYXD2MOM.js} +3 -3
  78. package/dist/{chunk-GVWIU7M7.js → chunk-PSUXESQ5.js} +41 -4
  79. package/dist/{chunk-J6BR5XN2.js → chunk-QAM2Q3VO.js} +3 -3
  80. package/dist/{chunk-6MDM5MQT.js → chunk-QBUSONNE.js} +367 -153
  81. package/dist/{chunk-VGTBLTPN.js → chunk-QDZ3ZZMY.js} +18 -66
  82. package/dist/{chunk-LT62P654.js → chunk-QJ4T73J5.js} +1 -1
  83. package/dist/{chunk-DOUAWKLO.js → chunk-QUZYRDT6.js} +12 -12
  84. package/dist/{chunk-UNBRHPHJ.js → chunk-R2UF54ON.js} +17 -15
  85. package/dist/{chunk-I32RSMH6.js → chunk-R2VUZZPJ.js} +11 -10
  86. package/dist/chunk-R5BNSOIV.js +29 -0
  87. package/dist/chunk-RV5VX2XW.js +29 -0
  88. package/dist/{chunk-QWTHFFU6.js → chunk-SQBDX6IO.js} +12 -12
  89. package/dist/{chunk-CZCAZVTD.js → chunk-SRXYSLMW.js} +2 -2
  90. package/dist/{chunk-WS3UFJOU.js → chunk-SUIZOCSY.js} +3 -2
  91. package/dist/{chunk-NUSXS6YB.js → chunk-T5EGSBM2.js} +4 -4
  92. package/dist/{chunk-QMV2APEH.js → chunk-TBE4OLPA.js} +37 -35
  93. package/dist/{chunk-B6HXETWY.js → chunk-TPMBNWHO.js} +28 -26
  94. package/dist/{chunk-CYUJB552.js → chunk-TRYOYWWU.js} +18 -12
  95. package/dist/{chunk-TJQSYX3J.js → chunk-TTGDTNSN.js} +6 -6
  96. package/dist/{chunk-S3WFVG5P.js → chunk-UELHWF5I.js} +137 -126
  97. package/dist/chunk-UG4YLCJ5.js +58 -0
  98. package/dist/chunk-UQ6OZYTO.js +91 -0
  99. package/dist/{chunk-QSCZAP24.js → chunk-UY3WWW5R.js} +4 -4
  100. package/dist/chunk-V7IPIAE5.js +74 -0
  101. package/dist/{chunk-4NCDHTFI.js → chunk-VDMF7Q2P.js} +10 -10
  102. package/dist/{chunk-TYHOEX4V.js → chunk-VI3BJMZO.js} +35 -34
  103. package/dist/{chunk-UOO4D2TK.js → chunk-VTXJAO5R.js} +34 -35
  104. package/dist/chunk-W6VLB6LL.js +145 -0
  105. package/dist/{chunk-NPNFGYLV.js → chunk-WBXCIRVI.js} +19 -2
  106. package/dist/{chunk-CB7PEVOJ.js → chunk-WLD6BGON.js} +176 -60
  107. package/dist/{chunk-Q2VCKC3X.js → chunk-WMCAEP2K.js} +11 -8
  108. package/dist/{chunk-OPFNQBS5.js → chunk-WXMUGUZV.js} +21 -25
  109. package/dist/{chunk-46TQJSUE.js → chunk-X33QECRJ.js} +2 -2
  110. package/dist/{chunk-HILZE4BQ.js → chunk-YUF4DRYB.js} +396 -306
  111. package/dist/{chunk-YF4G5NN5.js → chunk-YVPB5YGO.js} +2 -2
  112. package/dist/{chunk-W7TY6HYX.js → chunk-ZRQMENT4.js} +5 -27
  113. package/dist/index.js +5573 -4181
  114. package/dist/mcp/analyze-cli.js +17 -11
  115. package/dist/mcp/cli.js +43 -42
  116. package/dist/mcp/server.js +1521 -610
  117. package/dist/mcp/worker.js +62 -59
  118. package/dist/probes/installer.js +19 -18
  119. package/docs/agent-guide.md +3 -1
  120. package/docs/agent-tools.md +4 -2
  121. package/docs/alignment-families.md +5 -1
  122. package/docs/ci.md +120 -0
  123. package/docs/configuration.md +21 -3
  124. package/docs/custom-rules.md +1 -0
  125. package/docs/defect-shapes.md +107 -71
  126. package/docs/durable-store-audit-1202.md +1 -1
  127. package/docs/engineering-principles.md +46 -12
  128. package/docs/environment-variables.md +25 -2
  129. package/docs/features.md +1 -1
  130. package/docs/invariants/dispatch-runners.md +13 -0
  131. package/docs/language-coverage.md +1 -1
  132. package/docs/lsp-capability-matrix.md +15 -16
  133. package/docs/lsp-idle-eviction.md +1 -1
  134. package/docs/module-report-read-symbol.md +2 -2
  135. package/docs/pi-lens-fixer.md +3 -2
  136. package/docs/pi-lens-merge-policy.md +1 -0
  137. package/docs/pi-lens-monitor.md +4 -1
  138. package/docs/pi-lens-release.md +19 -0
  139. package/docs/pi-lens-reviewer.md +8 -2
  140. package/docs/public-api-stability.md +41 -6
  141. package/docs/rfcs/5138-query-surface.md +121 -0
  142. package/docs/servercapabilities.md +1 -1
  143. package/docs/settings.md +9 -0
  144. package/docs/word-index.md +9 -10
  145. package/package.json +3 -3
  146. package/rules/ast-grep-rules/coderabbit/README.md +2 -0
  147. package/rules/ast-grep-rules/coderabbit/rules/c/security/dont-call-system-c.yml +2 -1
  148. package/rules/ast-grep-rules/coderabbit/rules/c/security/file-access-before-action-c.yml +2 -1
  149. package/rules/ast-grep-rules/coderabbit/rules/c/security/file-stat-before-action-c.yml +2 -1
  150. package/rules/ast-grep-rules/coderabbit/rules/c/security/insecure-hash-c.yml +2 -1
  151. package/rules/ast-grep-rules/coderabbit/rules/c/security/libxml2-audit-parser-c.yml +2 -1
  152. package/rules/ast-grep-rules/coderabbit/rules/c/security/null-library-function-c.yml +2 -1
  153. package/rules/ast-grep-rules/coderabbit/rules/c/security/sizeof-this-c.yml +2 -1
  154. package/rules/ast-grep-rules/coderabbit/rules/c/security/small-key-size-c.yml +2 -1
  155. package/rules/ast-grep-rules/coderabbit/rules/c/security/world-writable-file-c.yml +2 -1
  156. package/rules/ast-grep-rules/coderabbit/rules/cpp/security/dont-call-system-cpp.yml +2 -1
  157. package/rules/ast-grep-rules/coderabbit/rules/cpp/security/file-access-before-action-cpp.yml +2 -1
  158. package/rules/ast-grep-rules/coderabbit/rules/cpp/security/file-stat-before-action-cpp.yml +2 -1
  159. package/rules/ast-grep-rules/coderabbit/rules/cpp/security/fix-format-security-error-cpp.yml +2 -1
  160. package/rules/ast-grep-rules/coderabbit/rules/cpp/security/insecure-hash-cpp.yml +2 -1
  161. package/rules/ast-grep-rules/coderabbit/rules/cpp/security/libxml2-audit-parser-cpp.yml +2 -1
  162. package/rules/ast-grep-rules/coderabbit/rules/cpp/security/missing-nul-cpp-string-memcpy-cpp.yml +2 -1
  163. package/rules/ast-grep-rules/coderabbit/rules/cpp/security/null-library-function-cpp.yml +2 -1
  164. package/rules/ast-grep-rules/coderabbit/rules/cpp/security/return-c-str-cpp.yml +2 -1
  165. package/rules/ast-grep-rules/coderabbit/rules/cpp/security/sizeof-this-cpp.yml +2 -1
  166. package/rules/ast-grep-rules/coderabbit/rules/cpp/security/small-key-size-cpp.yml +2 -1
  167. package/rules/ast-grep-rules/coderabbit/rules/cpp/security/std-return-data-cpp.yml +2 -1
  168. package/rules/ast-grep-rules/coderabbit/rules/cpp/security/std-vector-invalidation-cpp.yml +2 -1
  169. package/rules/ast-grep-rules/coderabbit/rules/cpp/security/string-view-temporary-string-cpp.yml +2 -1
  170. package/rules/ast-grep-rules/coderabbit/rules/cpp/security/world-writable-file-cpp.yml +2 -1
  171. package/rules/ast-grep-rules/coderabbit/rules/csharp/security/httponly-false-csharp.yml +2 -1
  172. package/rules/ast-grep-rules/coderabbit/rules/csharp/security/insecure-binaryformatter-deserialization-csharp.yml +2 -1
  173. package/rules/ast-grep-rules/coderabbit/rules/csharp/security/jwt-decode-without-verify-csharp.yml +2 -1
  174. package/rules/ast-grep-rules/coderabbit/rules/csharp/security/jwt-hardcoded-secret-csharp.yml +2 -1
  175. package/rules/ast-grep-rules/coderabbit/rules/csharp/security/jwt-tokenvalidationparameters-no-expiry-validation-csharp.yml +2 -1
  176. package/rules/ast-grep-rules/coderabbit/rules/csharp/security/networkcredential-hardcoded-secret-python.yml +2 -1
  177. package/rules/ast-grep-rules/coderabbit/rules/csharp/security/npgsqlconnectionstringbuilder-hardcoded-secret-csharp.yml +2 -1
  178. package/rules/ast-grep-rules/coderabbit/rules/csharp/security/oracleconnectionstringbuilder-hardcoded-secret-csharp.yml +2 -1
  179. package/rules/ast-grep-rules/coderabbit/rules/csharp/security/sqlconnectionstringbuilder-hardcoded-secret-csharp.yml +2 -1
  180. package/rules/ast-grep-rules/coderabbit/rules/csharp/security/stacktrace-disclosure-csharp.yml +2 -1
  181. package/rules/ast-grep-rules/coderabbit/rules/csharp/security/use-ecb-mode-csharp.yml +2 -1
  182. package/rules/ast-grep-rules/coderabbit/rules/go/security/avoid-bind-to-all-interfaces-go.yml +2 -1
  183. package/rules/ast-grep-rules/coderabbit/rules/go/security/gorilla-cookie-store-hardcoded-session-key-go.yml +2 -1
  184. package/rules/ast-grep-rules/coderabbit/rules/go/security/gorilla-csrf-hardcoded-auth-key-go.yml +2 -1
  185. package/rules/ast-grep-rules/coderabbit/rules/go/security/grpc-client-insecure-connection-go.yml +2 -1
  186. package/rules/ast-grep-rules/coderabbit/rules/go/security/jwt-go-none-algorithm-go.yml +2 -1
  187. package/rules/ast-grep-rules/coderabbit/rules/go/security/missing-ssl-minversion-go.yml +2 -1
  188. package/rules/ast-grep-rules/coderabbit/rules/go/security/openai-empty-secret-go.yml +2 -1
  189. package/rules/ast-grep-rules/coderabbit/rules/go/security/openai-hardcoded-secret-go.yml +2 -1
  190. package/rules/ast-grep-rules/coderabbit/rules/go/security/ssl-v3-is-insecure-go.yml +2 -1
  191. package/rules/ast-grep-rules/coderabbit/rules/go/security/tls-with-insecure-cipher-go.yml +2 -1
  192. package/rules/ast-grep-rules/coderabbit/rules/go/security/use-of-weak-rsa-key-go.yml +2 -1
  193. package/rules/ast-grep-rules/coderabbit/rules/html/security/plaintext-http-link-html.yml +2 -1
  194. package/rules/ast-grep-rules/coderabbit/rules/java/security/cbc-padding-oracle-java.yml +2 -1
  195. package/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-httponly-false-java.yml +2 -1
  196. package/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-missing-httponly-java.yml +2 -1
  197. package/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-missing-samesite-java.yml +2 -1
  198. package/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-missing-secure-flag-java.yml +2 -1
  199. package/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-secure-flag-false-java.yml +2 -1
  200. package/rules/ast-grep-rules/coderabbit/rules/java/security/datanucleus-hardcoded-connection-password-java.yml +2 -1
  201. package/rules/ast-grep-rules/coderabbit/rules/java/security/des-is-deprecated-java.yml +2 -1
  202. package/rules/ast-grep-rules/coderabbit/rules/java/security/desede-is-deprecated-java.yml +2 -1
  203. package/rules/ast-grep-rules/coderabbit/rules/java/security/documentbuilderfactory-disallow-doctype-decl-false-java.yml +2 -1
  204. package/rules/ast-grep-rules/coderabbit/rules/java/security/documentbuilderfactory-external-general-entities-true-java.yml +2 -1
  205. package/rules/ast-grep-rules/coderabbit/rules/java/security/documentbuilderfactory-external-parameter-entities-true-java.yml +2 -1
  206. package/rules/ast-grep-rules/coderabbit/rules/java/security/drivermanager-hardcoded-secret-java.yml +2 -1
  207. package/rules/ast-grep-rules/coderabbit/rules/java/security/ecb-cipher-java.yml +2 -1
  208. package/rules/ast-grep-rules/coderabbit/rules/java/security/hardcoded-connection-password-java.yml +2 -1
  209. package/rules/ast-grep-rules/coderabbit/rules/java/security/hardcoded-secret-in-credentials-java.yml +2 -1
  210. package/rules/ast-grep-rules/coderabbit/rules/java/security/java-jwt-hardcoded-secret-java.yml +2 -1
  211. package/rules/ast-grep-rules/coderabbit/rules/java/security/jedis-jedisclientconfig-hardcoded-password-java.yml +2 -1
  212. package/rules/ast-grep-rules/coderabbit/rules/java/security/jedis-jedisfactory-hardcoded-password-java.yml +2 -1
  213. package/rules/ast-grep-rules/coderabbit/rules/java/security/missing-httponly-java.yml +2 -1
  214. package/rules/ast-grep-rules/coderabbit/rules/java/security/missing-secure-java.yml +2 -1
  215. package/rules/ast-grep-rules/coderabbit/rules/java/security/no-null-cipher-java.yml +2 -1
  216. package/rules/ast-grep-rules/coderabbit/rules/java/security/passwordauthentication-hardcoded-password-java.yml +2 -1
  217. package/rules/ast-grep-rules/coderabbit/rules/java/security/rsa-no-padding-java.yml +2 -1
  218. package/rules/ast-grep-rules/coderabbit/rules/java/security/simple-command-injection-direct-input-java.yml +2 -1
  219. package/rules/ast-grep-rules/coderabbit/rules/java/security/system-setproperty-hardcoded-secret-java.yml +2 -1
  220. package/rules/ast-grep-rules/coderabbit/rules/java/security/unencrypted-socket-java.yml +2 -1
  221. package/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-aes-ecb-java.yml +2 -1
  222. package/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-blowfish-java.yml +2 -1
  223. package/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-default-aes-java.yml +2 -1
  224. package/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-md5-digest-utils-java.yml +2 -1
  225. package/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-md5-java.yml +2 -1
  226. package/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-rc2-java.yml +2 -1
  227. package/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-rc4-java.yml +2 -1
  228. package/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-sha1-java.yml +2 -1
  229. package/rules/ast-grep-rules/coderabbit/rules/java/security/weak-ssl-context-java.yml +2 -1
  230. package/rules/ast-grep-rules/coderabbit/rules/javascript/security/detect-angular-sce-disabled-javascript.yml +2 -1
  231. package/rules/ast-grep-rules/coderabbit/rules/javascript/security/express-jwt-hardcoded-secret-javascript.yml +2 -1
  232. package/rules/ast-grep-rules/coderabbit/rules/javascript/security/express-session-hardcoded-secret-javascript.yml +2 -1
  233. package/rules/ast-grep-rules/coderabbit/rules/javascript/security/jwt-simple-noverify-javascript.yml +2 -1
  234. package/rules/ast-grep-rules/coderabbit/rules/javascript/security/node-rsa-weak-key-javascript.yml +2 -1
  235. package/rules/ast-grep-rules/coderabbit/rules/javascript/security/node-sequelize-empty-password-argument-javascript.yml +2 -1
  236. package/rules/ast-grep-rules/coderabbit/rules/javascript/security/node-sequelize-hardcoded-secret-argument-javascript.yml +2 -1
  237. package/rules/ast-grep-rules/coderabbit/rules/kotlin/security/des-is-deprecated-kotlin.yml +2 -1
  238. package/rules/ast-grep-rules/coderabbit/rules/kotlin/security/desede-is-deprecated-kotlin.yml +2 -1
  239. package/rules/ast-grep-rules/coderabbit/rules/kotlin/security/jwt-hardcode-kotlin.yml +2 -1
  240. package/rules/ast-grep-rules/coderabbit/rules/kotlin/security/rsa-no-padding-kotlin.yml +2 -1
  241. package/rules/ast-grep-rules/coderabbit/rules/kotlin/security/system-setproperty-hardcoded-secret-kotlin.yml +2 -1
  242. package/rules/ast-grep-rules/coderabbit/rules/php/security/openssl-cbc-static-iv-php.yml +2 -1
  243. package/rules/ast-grep-rules/coderabbit/rules/php/security/search-active-debug-php.yml +2 -1
  244. package/rules/ast-grep-rules/coderabbit/rules/python/security/avoid-mktemp-python.yml +2 -1
  245. package/rules/ast-grep-rules/coderabbit/rules/python/security/avoid_app_run_with_bad_host-python.yml +2 -1
  246. package/rules/ast-grep-rules/coderabbit/rules/python/security/debug-enabled-python.yml +2 -1
  247. package/rules/ast-grep-rules/coderabbit/rules/python/security/hashids-with-django-secret-python.yml +2 -1
  248. package/rules/ast-grep-rules/coderabbit/rules/python/security/hashids-with-flask-secret-python.yml +2 -1
  249. package/rules/ast-grep-rules/coderabbit/rules/python/security/insecure-cipher-algorithm-rc4-python.yml +2 -1
  250. package/rules/ast-grep-rules/coderabbit/rules/python/security/jwt-python-hardcoded-secret-python.yml +2 -1
  251. package/rules/ast-grep-rules/coderabbit/rules/python/security/openai-hardcoded-secret-python.yml +2 -1
  252. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-cassandra-empty-password-python.yml +2 -1
  253. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-cassandra-hardcoded-secret-python.yml +2 -1
  254. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-couchbase-empty-password-python.yml +2 -1
  255. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-couchbase-hardcoded-secret-python.yml +2 -1
  256. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-elasticsearch-hardcoded-bearer-auth-python.yml +2 -1
  257. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-ldap3-empty-password-python.yml +2 -1
  258. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-ldap3-hardcoded-secret-python.yml +2 -1
  259. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-mariadb-empty-password-python.yml +2 -1
  260. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-mariadb-hardcoded-secret-python.yml +2 -1
  261. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysql-empty-password-python.yml +2 -1
  262. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysql-hardcoded-secret-python.yml +2 -1
  263. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysqlclient-empty-password-python.yml +2 -1
  264. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysqlclient-hardcoded-secret-python.yml +2 -1
  265. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-neo4j-empty-password-python.yml +2 -1
  266. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-neo4j-hardcoded-secret-python.yml +2 -1
  267. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-mysql-empty-password-python.yml +2 -1
  268. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-mysql-hardcoded-secret-python.yml +2 -1
  269. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-pg-empty-password-python.yml +2 -1
  270. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-pg-hardcoded-secret-python.yml +2 -1
  271. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-pg8000-empty-password-python.yml +2 -1
  272. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-pg8000-hardcoded-secret-python.yml +2 -1
  273. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-psycopg2-empty-password-python.yml +2 -1
  274. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-psycopg2-hardcoded-secret-python.yml +2 -1
  275. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-pyjwt-hardcoded-secret-python.yml +2 -1
  276. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymongo-empty-password-python.yml +2 -1
  277. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymongo-hardcoded-secret-python.yml +2 -1
  278. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymssql-empty-password-python.yml +2 -1
  279. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymssql-hardcoded-secret-python.yml +2 -1
  280. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymysql-empty-password-python.yml +2 -1
  281. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymysql-hardcoded-secret-python.yml +2 -1
  282. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-redis-empty-password-python.yml +2 -1
  283. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-redis-hardcoded-secret-python.yml +2 -1
  284. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-requests-empty-password-python.yml +2 -1
  285. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-requests-hardcoded-secret-python.yml +2 -1
  286. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-requests-oauth-hardcoded-secret-python.yml +2 -1
  287. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-tormysql-empty-password-python.yml +2 -1
  288. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-tormysql-hardcoded-secret-python.yml +2 -1
  289. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-urllib3-hardcoded-secret-python.yml +2 -1
  290. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-webrepl-empty-password-python.yml +2 -1
  291. package/rules/ast-grep-rules/coderabbit/rules/python/security/python-webrepl-hardcoded-secret-python.yml +2 -1
  292. package/rules/ast-grep-rules/coderabbit/rules/ruby/security/force-ssl-false-ruby.yml +2 -1
  293. package/rules/ast-grep-rules/coderabbit/rules/ruby/security/hardcoded-http-auth-in-controller-ruby.yml +2 -1
  294. package/rules/ast-grep-rules/coderabbit/rules/ruby/security/hardcoded-secret-rsa-passphrase-ruby.yml +2 -1
  295. package/rules/ast-grep-rules/coderabbit/rules/ruby/security/insufficient-rsa-key-size-ruby.yml +2 -1
  296. package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-aws-sdk-hardcoded-secret-ruby.yml +2 -1
  297. package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-cassandra-empty-password-ruby.yml +2 -1
  298. package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-cassandra-hardcoded-secret-ruby.yml +2 -1
  299. package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-excon-hardcoded-secret-ruby.yml +2 -1
  300. package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-faraday-hardcoded-secret-ruby.yml +2 -1
  301. package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mongo-empty-password-ruby.yml +2 -1
  302. package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mongo-hardcoded-secret-ruby.yml +2 -1
  303. package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mysql2-empty-password-ruby.yml +2 -1
  304. package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mysql2-hardcoded-secret-ruby.yml +2 -1
  305. package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-octokit-hardcoded-secret-ruby.yml +2 -1
  306. package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-pg-empty-password-ruby.yml +2 -1
  307. package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-pg-hardcoded-secret-ruby.yml +2 -1
  308. package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-redis-empty-password-ruby.yml +2 -1
  309. package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-redis-hardcoded-secret-ruby.yml +2 -1
  310. package/rules/ast-grep-rules/coderabbit/rules/rust/security/empty-password-rust.yml +2 -1
  311. package/rules/ast-grep-rules/coderabbit/rules/rust/security/hardcoded-password-rust.yml +2 -1
  312. package/rules/ast-grep-rules/coderabbit/rules/rust/security/postgres-empty-password-rust.yml +2 -1
  313. package/rules/ast-grep-rules/coderabbit/rules/rust/security/reqwest-accept-invalid-rust.yml +2 -1
  314. package/rules/ast-grep-rules/coderabbit/rules/rust/security/secrets-reqwest-hardcoded-auth-rust.yml +2 -1
  315. package/rules/ast-grep-rules/coderabbit/rules/rust/security/ssl-verify-none-rust.yml +2 -1
  316. package/rules/ast-grep-rules/coderabbit/rules/rust/security/tokio-postgres-empty-password-rust.yml +2 -1
  317. package/rules/ast-grep-rules/coderabbit/rules/rust/security/tokio-postgres-hardcoded-password-rust.yml +2 -1
  318. package/rules/ast-grep-rules/coderabbit/rules/scala/security/jwt-scala-hardcode-scala.yml +2 -1
  319. package/rules/ast-grep-rules/coderabbit/rules/scala/security/scala-jwt-hardcoded-secret-scala.yml +2 -1
  320. package/rules/ast-grep-rules/coderabbit/rules/swift/security/aes-hardcoded-secret-swift.yml +2 -1
  321. package/rules/ast-grep-rules/coderabbit/rules/swift/security/blowfish-hardcoded-secret-swift.yml +2 -1
  322. package/rules/ast-grep-rules/coderabbit/rules/swift/security/chacha20-hardcoded-secret-swift.yml +2 -1
  323. package/rules/ast-grep-rules/coderabbit/rules/swift/security/insecure-biometrics-swift.yml +2 -1
  324. package/rules/ast-grep-rules/coderabbit/rules/swift/security/rabbit-hardcoded-secret-swift.yml +2 -1
  325. package/rules/ast-grep-rules/coderabbit/rules/typescript/security/detect-angular-sce-disabled-typescript.yml +2 -1
  326. package/rules/ast-grep-rules/coderabbit/rules/typescript/security/express-session-hardcoded-secret-typescript.yml +2 -1
  327. package/rules/ast-grep-rules/coderabbit/rules/typescript/security/jwt-simple-noverify-typescript.yml +2 -1
  328. package/rules/ast-grep-rules/coderabbit/rules/typescript/security/node-rsa-weak-key-typescript.yml +2 -1
  329. package/rules/ast-grep-rules/coderabbit/rules/typescript/security/node-sequelize-empty-password-argument-typescript.yml +2 -1
  330. package/rules/ast-grep-rules/coderabbit/rules/typescript/security/node-sequelize-hardcoded-secret-argument-typescript.yml +2 -1
  331. package/rules/ast-grep-rules/rule-schema.json +1 -1
  332. package/rules/ast-grep-rules/rules/c-no-malloc-free.yml +13 -12
  333. package/rules/ast-grep-rules/rules/cpp-no-malloc-free.yml +11 -10
  334. package/rules/ast-grep-rules/rules/cpp-no-printf.yml +10 -9
  335. package/rules/ast-grep-rules/rules/go-defer-func-call-antipattern.yml +14 -13
  336. package/rules/ast-grep-rules/rules/go-no-fmt-println.yml +14 -13
  337. package/rules/ast-grep-rules/rules/go-no-panic-in-lib.yml +20 -19
  338. package/rules/ast-grep-rules/rules/go-no-underscore-func-name.yml +14 -13
  339. package/rules/ast-grep-rules/rules/go-prefer-errors-is.yml +14 -13
  340. package/rules/ast-grep-rules/rules/go-prefer-string-builder.yml +19 -18
  341. package/rules/ast-grep-rules/rules/go-test-functions.yml +14 -13
  342. package/rules/ast-grep-rules/rules/hyphenated-svg-attribute.yml +10 -9
  343. package/rules/ast-grep-rules/rules/kotlin-no-lateinit.yml +12 -11
  344. package/rules/ast-grep-rules/rules/kotlin-no-nullable-boolean.yml +11 -10
  345. package/rules/ast-grep-rules/rules/kotlin-no-println.yml +15 -14
  346. package/rules/ast-grep-rules/rules/kotlin-no-unnecessary-let.yml +10 -9
  347. package/rules/ast-grep-rules/rules/kotlin-no-unsafe-cast.yml +10 -9
  348. package/rules/ast-grep-rules/rules/kotlin-no-var.yml +11 -10
  349. package/rules/ast-grep-rules/rules/kotlin-prefer-data-class.yml +10 -9
  350. package/rules/ast-grep-rules/rules/kotlin-prefer-is-empty.yml +10 -9
  351. package/rules/ast-grep-rules/rules/no-aws-access-key-literal.yml +1 -1
  352. package/rules/ast-grep-rules/rules/no-compile-call.yml +13 -12
  353. package/rules/ast-grep-rules/rules/no-flask-secret-key-literal.yml +1 -1
  354. package/rules/ast-grep-rules/rules/no-hardcoded-password.yml +1 -1
  355. package/rules/ast-grep-rules/rules/no-marshal-load.yml +12 -11
  356. package/rules/ast-grep-rules/rules/no-python-sql-string-concat.yml +12 -11
  357. package/rules/ast-grep-rules/rules/no-requests-verify-false.yml +13 -12
  358. package/rules/ast-grep-rules/rules/no-secret-in-env-var-name.yml +1 -1
  359. package/rules/ast-grep-rules/rules/python-optional-type.yml +9 -8
  360. package/rules/ast-grep-rules/rules/reducible-list-comprehension.yml +8 -7
  361. package/rules/ast-grep-rules/rules/ruby-detect-path-traversal.yml +14 -13
  362. package/rules/ast-grep-rules/rules/ruby-symbol-to-proc-candidate.yml +8 -7
  363. package/rules/ast-grep-rules/rules/rust-no-chars-enumerate.yml +9 -8
  364. package/rules/ast-grep-rules/rules-disabled/gorm-unbounded-preload.yml +7 -6
  365. package/rules/ast-grep-rules/rules-disabled/shadow-err-variable.yml +6 -5
  366. package/scripts/analyze-pi-lens-logs.mjs +262 -3
  367. package/scripts/lib/latency-log-phases.mjs +125 -0
  368. package/dist/chunk-3QWVOBZJ.js +0 -73
  369. package/dist/chunk-BDR5MEZY.js +0 -25
  370. package/dist/chunk-DBS736MA.js +0 -57
  371. package/dist/chunk-I74RQGKA.js +0 -88
  372. package/dist/chunk-IK4YS3KC.js +0 -25
  373. package/dist/chunk-JKOZ2Z4U.js +0 -20
  374. package/dist/chunk-TQHOKMVZ.js +0 -28
  375. package/dist/chunk-VS2L7QDI.js +0 -25
  376. package/dist/chunk-ZPFLHB3R.js +0 -28
@@ -1,53 +1,55 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  buildModuleGraph
4
- } from "./chunk-K6WIBVMK.js";
4
+ } from "./chunk-6XNVY3FW.js";
5
5
  import {
6
6
  aliasedImportTargets,
7
7
  referencedProjectImportTarget
8
- } from "./chunk-ACRJ2GZ5.js";
8
+ } from "./chunk-7424ANRU.js";
9
9
  import {
10
10
  getSharedTreeSitterClient,
11
11
  loadWebTreeSitter,
12
12
  logTreeSitterDiagnostic,
13
13
  resolveTreeSitterLanguage,
14
14
  wasmQueryInput
15
- } from "./chunk-CTB5BAJI.js";
16
- import {
17
- EXTENSION_TO_GRAMMAR,
18
- KIND_TO_GRAMMAR
19
- } from "./chunk-OTSTS7L2.js";
15
+ } from "./chunk-OC4ZGVMH.js";
20
16
  import {
21
17
  HOOK_WALL_BUDGET_MS
22
18
  } from "./chunk-CKEQFGLT.js";
23
19
  import {
24
- hashContentBytes,
20
+ EXTENSION_TO_GRAMMAR,
21
+ KIND_TO_GRAMMAR
22
+ } from "./chunk-AYDE7RFV.js";
23
+ import {
25
24
  toRunnerDisplayPath
26
- } from "./chunk-W7TY6HYX.js";
25
+ } from "./chunk-ZRQMENT4.js";
27
26
  import {
28
27
  bounded
29
- } from "./chunk-WAA63ZJV.js";
28
+ } from "./chunk-3HZ6MNB2.js";
30
29
  import {
31
30
  LSP_QUERY_MAX_FILE_LINES_MAX,
32
31
  getGlobalLspQueryMaxFileLines,
33
32
  loadPiLensGlobalConfig
34
- } from "./chunk-H65TYP6V.js";
33
+ } from "./chunk-DNB4ZQGN.js";
35
34
  import {
36
35
  isFileKind
37
- } from "./chunk-CZCAZVTD.js";
36
+ } from "./chunk-SRXYSLMW.js";
38
37
  import {
39
38
  isDeclarationFile
40
- } from "./chunk-FOEPIX76.js";
39
+ } from "./chunk-6EIV3H7O.js";
40
+ import {
41
+ hashContentBytes
42
+ } from "./chunk-CIA7X2PZ.js";
41
43
  import {
42
44
  incrementDegradationCount,
43
45
  recordDegradationOnce
44
- } from "./chunk-3FRI5H4T.js";
46
+ } from "./chunk-AGEQRJ5A.js";
45
47
  import {
46
48
  freshnessFromMtime
47
49
  } from "./chunk-S26LC76R.js";
48
50
  import {
49
51
  toPositiveFinite
50
- } from "./chunk-VCRVNLE7.js";
52
+ } from "./chunk-K2GV34T2.js";
51
53
  import {
52
54
  BoundedFifoMap,
53
55
  BoundedLruCache,
@@ -56,7 +58,7 @@ import {
56
58
  normalizeEphemeralMapKey,
57
59
  normalizeMapKey,
58
60
  walkUpDirs
59
- } from "./chunk-CB7PEVOJ.js";
61
+ } from "./chunk-WLD6BGON.js";
60
62
 
61
63
  // dist/clients/blocker-freshness.js
62
64
  import * as fs4 from "node:fs";
@@ -1,20 +1,20 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  parseSymbolKey
4
- } from "./chunk-J6BR5XN2.js";
4
+ } from "./chunk-QAM2Q3VO.js";
5
5
  import {
6
6
  isTestRoleCollateral
7
- } from "./chunk-UY745U35.js";
7
+ } from "./chunk-ME6MF2N2.js";
8
8
  import "./chunk-3MED75HT.js";
9
- import "./chunk-H65TYP6V.js";
10
- import "./chunk-FOEPIX76.js";
11
- import "./chunk-NL5LSKVD.js";
12
- import "./chunk-7WJ55KBN.js";
13
- import "./chunk-3FRI5H4T.js";
9
+ import "./chunk-DNB4ZQGN.js";
10
+ import "./chunk-6EIV3H7O.js";
11
+ import "./chunk-3R3Z54J7.js";
12
+ import "./chunk-43KD3PPM.js";
13
+ import "./chunk-AGEQRJ5A.js";
14
14
  import "./chunk-S26LC76R.js";
15
- import "./chunk-VCRVNLE7.js";
15
+ import "./chunk-K2GV34T2.js";
16
16
  import "./chunk-LJDODBBZ.js";
17
- import "./chunk-CB7PEVOJ.js";
17
+ import "./chunk-WLD6BGON.js";
18
18
  import "./chunk-NXL4FFQQ.js";
19
19
 
20
20
  // dist/clients/project-diagnostics/runner-adapters/call-graph-impact.js
@@ -1,13 +1,13 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  getGlobalPiLensDir
4
- } from "./chunk-H65TYP6V.js";
4
+ } from "./chunk-DNB4ZQGN.js";
5
5
  import {
6
6
  getTurnId
7
- } from "./chunk-VCRVNLE7.js";
7
+ } from "./chunk-K2GV34T2.js";
8
8
  import {
9
9
  BoundedFifoMap
10
- } from "./chunk-CB7PEVOJ.js";
10
+ } from "./chunk-WLD6BGON.js";
11
11
 
12
12
  // dist/clients/custom-rule-locations.js
13
13
  import * as path from "node:path";
@@ -14,7 +14,7 @@ import {
14
14
  findPiLensConfigMarkerInDir,
15
15
  getPiLensGlobalConfigPath,
16
16
  isResolvedGlobalConfigPath
17
- } from "./chunk-NL5LSKVD.js";
17
+ } from "./chunk-3R3Z54J7.js";
18
18
  import {
19
19
  DEGRADATION_ENTRIES_PER_KIND,
20
20
  GLOBAL_NON_FLAG_CONFIG_SECTIONS,
@@ -32,7 +32,7 @@ import {
32
32
  readFlagConfigValue,
33
33
  readToolConfig,
34
34
  recordDegradationOnce
35
- } from "./chunk-3FRI5H4T.js";
35
+ } from "./chunk-AGEQRJ5A.js";
36
36
  import {
37
37
  CONFIG_SCHEMA_ANCHOR_KEY,
38
38
  CONFIG_SCHEMA_ID,
@@ -43,7 +43,7 @@ import {
43
43
  import {
44
44
  redactSecrets,
45
45
  toPositiveFinite
46
- } from "./chunk-VCRVNLE7.js";
46
+ } from "./chunk-K2GV34T2.js";
47
47
  import {
48
48
  BoundedFifoMap,
49
49
  BoundedLruCache,
@@ -53,7 +53,7 @@ import {
53
53
  realpathOrResolve,
54
54
  toPosix,
55
55
  walkUpDirs
56
- } from "./chunk-CB7PEVOJ.js";
56
+ } from "./chunk-WLD6BGON.js";
57
57
 
58
58
  // dist/clients/generated-artifacts.js
59
59
  import * as fs from "node:fs";
@@ -379,6 +379,11 @@ var PathKeyedMap = class {
379
379
  }
380
380
  };
381
381
 
382
+ // dist/clients/spawn-abort-scope.js
383
+ import { AsyncLocalStorage } from "node:async_hooks";
384
+ var spawnAbortScope = new AsyncLocalStorage();
385
+ var spawnCooldownScope = new AsyncLocalStorage();
386
+
382
387
  // dist/clients/user-notify.js
383
388
  var notifierGetter;
384
389
  function notifyUserDegradation(message, level = "warning", options) {
@@ -1744,6 +1749,7 @@ function collectDocuments(dir, locations, tier, onReadError) {
1744
1749
  }
1745
1750
  return documents;
1746
1751
  }
1752
+ var CANONICAL_PROJECT_CONFIG_LOCATIONS = PROJECT_CONFIG_LOCATIONS.filter((location) => !location.legacy);
1747
1753
  function collectPiLensConfigDocuments(options) {
1748
1754
  const documents = [];
1749
1755
  const { globalDir, onReadError } = options;
@@ -1770,10 +1776,11 @@ function collectPiLensConfigDocuments(options) {
1770
1776
  }
1771
1777
  }
1772
1778
  if (options.cwd !== void 0) {
1773
- const dirs = configSearchDirs(options.cwd, options.homeDir ?? os.homedir()).reverse();
1779
+ const dirs = configSearchDirs(options.cwd, options.homeDir ?? os.homedir(), options.stopAtGitRoot === true).reverse();
1780
+ const locations = options.excludeLegacyProjectDocuments ? CANONICAL_PROJECT_CONFIG_LOCATIONS : PROJECT_CONFIG_LOCATIONS;
1774
1781
  const bearing = dirs.map((dir) => ({
1775
1782
  dir,
1776
- found: collectDocuments(dir, PROJECT_CONFIG_LOCATIONS, "project", onReadError)
1783
+ found: collectDocuments(dir, locations, "project", onReadError)
1777
1784
  })).filter((entry) => entry.found.length > 0);
1778
1785
  bearing.forEach((entry, index) => {
1779
1786
  const tier = index === 0 ? "project" : "nested-project";
@@ -2109,6 +2116,9 @@ function replayConfigNotices(entry) {
2109
2116
  }
2110
2117
  function loadPiLensProjectConfig(startDir, preloadedInfo) {
2111
2118
  const entry = discoveryEntryFor(startDir);
2119
+ if (layeredReadApplies(entry)) {
2120
+ return loadLayeredProjectConfig(entry, path3.resolve(startDir));
2121
+ }
2112
2122
  const configInfo = preloadedInfo ?? freshInfoFor(entry);
2113
2123
  const selectedLegacyPath = configInfo?.path;
2114
2124
  reportPiLensConfigRecords(entry.legacyRecords.filter((record4) => record4.file !== selectedLegacyPath));
@@ -2116,6 +2126,59 @@ function loadPiLensProjectConfig(startDir, preloadedInfo) {
2116
2126
  return EMPTY_PROJECT_CONFIG;
2117
2127
  return loadCachedConfigFile(configInfo);
2118
2128
  }
2129
+ function layeredReadApplies(entry) {
2130
+ if (entry.canonicalSources.length === 0)
2131
+ return false;
2132
+ if (entry.canonicalSources.length >= 2)
2133
+ return true;
2134
+ const only = entry.canonicalSources[0];
2135
+ return only !== void 0 && entry.info?.path !== only.path;
2136
+ }
2137
+ function loadLayeredProjectConfig(entry, startDir) {
2138
+ reportPiLensConfigRecords(entry.legacyRecords);
2139
+ const cached = entry.layered;
2140
+ if (cached && cached.sources.length > 0 && fileStampsStillFresh(cached.sources)) {
2141
+ replayConfigNotices(cached);
2142
+ return cached.config;
2143
+ }
2144
+ const resolution = resolvePiLensConfig({
2145
+ cwd: startDir,
2146
+ excludeLegacyProjectDocuments: true,
2147
+ stopAtGitRoot: true,
2148
+ onReadError: reportConfigReadFailure
2149
+ });
2150
+ if (resolution.documents.length === 0) {
2151
+ return EMPTY_PROJECT_CONFIG;
2152
+ }
2153
+ const nearest = resolution.documents[resolution.documents.length - 1];
2154
+ if (nearest === void 0)
2155
+ return EMPTY_PROJECT_CONFIG;
2156
+ const parsed = parseLayeredProjectConfig(resolution, nearest.file);
2157
+ const sources = resolution.documents.map((document) => {
2158
+ const stat = safeFileStat(document.file);
2159
+ return {
2160
+ path: document.file,
2161
+ mtimeMs: stat?.mtimeMs ?? -1,
2162
+ size: stat?.size ?? -1
2163
+ };
2164
+ });
2165
+ entry.layered = {
2166
+ sources,
2167
+ config: parsed.config,
2168
+ records: parsed.records,
2169
+ ignored: parsed.ignored
2170
+ };
2171
+ replayConfigNotices(entry.layered);
2172
+ return parsed.config;
2173
+ }
2174
+ function parseLayeredProjectConfig(resolution, configPath) {
2175
+ const { note, records: ignoredRecords } = ignoredRecordCollector(configPath, "project");
2176
+ return {
2177
+ config: parseProjectConfigFields(resolution.value, note, resolution.value, configPath),
2178
+ records: resolution.records,
2179
+ ignored: ignoredRecords()
2180
+ };
2181
+ }
2119
2182
  function findPiLensConfigInDir(dir) {
2120
2183
  const marker = findPiLensConfigMarkerInDir(dir);
2121
2184
  if (!marker)
@@ -2186,10 +2249,13 @@ function discoveryCacheStillFresh(entry) {
2186
2249
  if (!dirMtimesStillFresh(entry.dirMtimes)) {
2187
2250
  return false;
2188
2251
  }
2189
- if (entry.info === void 0 && Date.now() - entry.checkedAtMs >= FRESHNESS_CADENCE_MS) {
2252
+ if (Date.now() - entry.checkedAtMs >= FRESHNESS_CADENCE_MS) {
2190
2253
  return false;
2191
2254
  }
2192
- return entry.legacySources.every((source) => {
2255
+ return fileStampsStillFresh(entry.legacySources);
2256
+ }
2257
+ function fileStampsStillFresh(sources) {
2258
+ return sources.every((source) => {
2193
2259
  const stat = safeFileStat(source.path);
2194
2260
  return stat?.isFile() === true && stat.mtimeMs === source.mtimeMs && stat.size === source.size;
2195
2261
  });
@@ -2199,9 +2265,23 @@ function discoverPiLensProjectConfig(startDir) {
2199
2265
  const dirMtimes = [];
2200
2266
  const legacyDocuments = [];
2201
2267
  const legacySources = [];
2268
+ const canonicalSources = [];
2202
2269
  let info;
2203
- for (const dir of configSearchDirs(startDir)) {
2270
+ const searchDirs = configSearchDirs(startDir);
2271
+ const layeredDirCount = configSearchDirs(startDir, void 0, true).length;
2272
+ for (const [dirIndex, dir] of searchDirs.entries()) {
2204
2273
  dirMtimes.push({ dir, mtimeMs: safeDirMtimeMs(dir) });
2274
+ const canonicalCandidate = path3.join(dir, CANONICAL_PROJECT_CONFIG_FILE);
2275
+ if (dirIndex < layeredDirCount && !isResolvedGlobalConfigPath(canonicalCandidate)) {
2276
+ const canonicalStat = safeFileStat(canonicalCandidate);
2277
+ if (canonicalStat?.isFile()) {
2278
+ canonicalSources.push({
2279
+ path: canonicalCandidate,
2280
+ mtimeMs: canonicalStat.mtimeMs,
2281
+ size: canonicalStat.size
2282
+ });
2283
+ }
2284
+ }
2205
2285
  if (!info) {
2206
2286
  for (const name of PROJECT_CONFIG_BASENAMES) {
2207
2287
  const candidate = path3.join(dir, name);
@@ -2254,9 +2334,10 @@ function discoverPiLensProjectConfig(startDir) {
2254
2334
  }
2255
2335
  return {
2256
2336
  info,
2257
- dirMtimes: bearingDirMtimes(dirMtimes, info),
2337
+ dirMtimes: bearingDirMtimes(dirMtimes, info, canonicalSources),
2258
2338
  legacyRecords: legacyDeprecationRecords(legacyDocuments),
2259
2339
  legacySources,
2340
+ canonicalSources,
2260
2341
  checkedAtMs: Date.now()
2261
2342
  };
2262
2343
  }
@@ -2267,11 +2348,21 @@ function legacyDeprecationRecords(documents) {
2267
2348
  tier: document.tier
2268
2349
  }));
2269
2350
  }
2270
- function bearingDirMtimes(dirMtimes, info) {
2351
+ function bearingDirMtimes(dirMtimes, info, canonicalSources) {
2352
+ let end = -1;
2271
2353
  if (info) {
2272
2354
  const bearing = dirMtimes.findIndex((entry) => entry.dir === info.dir);
2273
- return bearing < 0 ? [...dirMtimes] : dirMtimes.slice(0, bearing + 1);
2355
+ if (bearing >= 0)
2356
+ end = bearing;
2357
+ }
2358
+ const outermost = canonicalSources[canonicalSources.length - 1];
2359
+ if (outermost !== void 0) {
2360
+ const outerIndex = dirMtimes.findIndex((entry) => entry.dir === path3.dirname(outermost.path));
2361
+ if (outerIndex > end)
2362
+ end = outerIndex;
2274
2363
  }
2364
+ if (end >= 0)
2365
+ return dirMtimes.slice(0, end + 1);
2275
2366
  return dirMtimes.slice(0, 1);
2276
2367
  }
2277
2368
  function parseRulePolicyList(note, ruleId, key, value) {
@@ -2309,44 +2400,7 @@ function parseRulePathList(note, ruleId, value) {
2309
2400
  return paths;
2310
2401
  }
2311
2402
  var NO_RECORDS = [];
2312
- function parseConfigFile(configPath) {
2313
- const { note, records: ignoredRecords } = ignoredRecordCollector(configPath, "project");
2314
- const outcome = readConfigDocument(configPath);
2315
- if (outcome.status === "error") {
2316
- note({ parseError: outcome.error, sourceText: outcome.sourceText }, "PILENS_CFG_0001");
2317
- return {
2318
- config: EMPTY_PROJECT_CONFIG,
2319
- records: NO_RECORDS,
2320
- ignored: ignoredRecords()
2321
- };
2322
- }
2323
- if (outcome.status === "missing") {
2324
- return {
2325
- config: EMPTY_PROJECT_CONFIG,
2326
- records: NO_RECORDS,
2327
- ignored: NO_RECORDS
2328
- };
2329
- }
2330
- if (!outcome.value || typeof outcome.value !== "object" || Array.isArray(outcome.value)) {
2331
- note("top-level value must be an object", "PILENS_CFG_0001");
2332
- return {
2333
- config: EMPTY_PROJECT_CONFIG,
2334
- records: NO_RECORDS,
2335
- ignored: ignoredRecords()
2336
- };
2337
- }
2338
- const resolved = resolveOnePiLensConfigDocument({
2339
- tier: "project",
2340
- file: configPath,
2341
- location: projectLocationFor(configPath),
2342
- value: outcome.value
2343
- });
2344
- const raw = resolved.value;
2345
- const rawProject = outcome.value;
2346
- const obj = {
2347
- ...resolved.value,
2348
- ...rawProject.rules !== void 0 ? { rules: rawProject.rules } : {}
2349
- };
2403
+ function parseProjectConfigFields(obj, note, raw, configPath) {
2350
2404
  const ignore = Array.isArray(obj.ignore) ? obj.ignore.filter((p) => typeof p === "string") : [];
2351
2405
  const mutations = {};
2352
2406
  for (const spec of PROJECT_SCOPED_LENS_FLAGS) {
@@ -2493,17 +2547,58 @@ function parseConfigFile(configPath) {
2493
2547
  warnUnhonoredKey(configKey, true);
2494
2548
  }
2495
2549
  return {
2496
- config: {
2497
- ...toolConfig === void 0 ? {} : { tools: toolConfig },
2498
- ...startup === void 0 ? {} : { startup },
2499
- ignore,
2500
- rules,
2501
- ...mutations,
2502
- maxProjectFiles,
2503
- reviewGraph,
2504
- raw,
2505
- configPath
2506
- },
2550
+ ...toolConfig === void 0 ? {} : { tools: toolConfig },
2551
+ ...startup === void 0 ? {} : { startup },
2552
+ ignore,
2553
+ rules,
2554
+ ...mutations,
2555
+ maxProjectFiles,
2556
+ reviewGraph,
2557
+ raw,
2558
+ configPath
2559
+ };
2560
+ }
2561
+ function parseConfigFile(configPath) {
2562
+ const { note, records: ignoredRecords } = ignoredRecordCollector(configPath, "project");
2563
+ const outcome = readConfigDocument(configPath);
2564
+ if (outcome.status === "error") {
2565
+ note({ parseError: outcome.error, sourceText: outcome.sourceText }, "PILENS_CFG_0001");
2566
+ return {
2567
+ config: EMPTY_PROJECT_CONFIG,
2568
+ records: NO_RECORDS,
2569
+ ignored: ignoredRecords()
2570
+ };
2571
+ }
2572
+ if (outcome.status === "missing") {
2573
+ return {
2574
+ config: EMPTY_PROJECT_CONFIG,
2575
+ records: NO_RECORDS,
2576
+ ignored: NO_RECORDS
2577
+ };
2578
+ }
2579
+ if (!outcome.value || typeof outcome.value !== "object" || Array.isArray(outcome.value)) {
2580
+ note("top-level value must be an object", "PILENS_CFG_0001");
2581
+ return {
2582
+ config: EMPTY_PROJECT_CONFIG,
2583
+ records: NO_RECORDS,
2584
+ ignored: ignoredRecords()
2585
+ };
2586
+ }
2587
+ const resolved = resolveOnePiLensConfigDocument({
2588
+ tier: "project",
2589
+ file: configPath,
2590
+ location: projectLocationFor(configPath),
2591
+ value: outcome.value
2592
+ });
2593
+ const raw = resolved.value;
2594
+ const rawProject = outcome.value;
2595
+ const obj = {
2596
+ ...resolved.value,
2597
+ ...rawProject.rules !== void 0 ? { rules: rawProject.rules } : {}
2598
+ };
2599
+ const config = parseProjectConfigFields(obj, note, raw, configPath);
2600
+ return {
2601
+ config,
2507
2602
  records: resolved.records.filter((record4) => !record4.key.startsWith("/rules/")),
2508
2603
  ignored: ignoredRecords()
2509
2604
  };
@@ -2516,6 +2611,8 @@ export {
2516
2611
  isTestFileName,
2517
2612
  detectFileRole,
2518
2613
  PathKeyedMap,
2614
+ spawnAbortScope,
2615
+ spawnCooldownScope,
2519
2616
  notifyUserDegradation,
2520
2617
  warnIgnoredConfigOnce,
2521
2618
  isRepoTier,