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
@@ -2,83 +2,86 @@
2
2
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
3
3
  import {
4
4
  analyzeFile
5
- } from "../chunk-ZDMFGACN.js";
6
- import "../chunk-F6BEQWAK.js";
7
- import "../chunk-47UCC4MM.js";
8
- import "../chunk-HYSKJMZK.js";
9
- import "../chunk-2VZ3VN3N.js";
10
- import "../chunk-H3BVMK47.js";
11
- import "../chunk-VO4JFPTV.js";
12
- import "../chunk-PBZNYHMM.js";
13
- import "../chunk-ZZN74OGD.js";
14
- import "../chunk-PXQ45SGD.js";
15
- import "../chunk-L4Y3ROKQ.js";
16
- import "../chunk-QVBOXT3L.js";
17
- import "../chunk-NCLO6E6N.js";
18
- import "../chunk-7R5GZIA6.js";
19
- import "../chunk-UXTQ3QPD.js";
20
- import "../chunk-CM6BDY4E.js";
5
+ } from "../chunk-ECYUBKYX.js";
6
+ import "../chunk-GL6J5R34.js";
7
+ import "../chunk-ME6MF2N2.js";
8
+ import "../chunk-6RXMQYNU.js";
9
+ import "../chunk-NQFXN5U7.js";
10
+ import "../chunk-WXMUGUZV.js";
11
+ import "../chunk-D5L7Q57Z.js";
12
+ import "../chunk-QDZ3ZZMY.js";
13
+ import "../chunk-DPDA3ILA.js";
14
+ import "../chunk-LHCDWFDB.js";
15
+ import "../chunk-KDGKKK7A.js";
16
+ import "../chunk-UY3WWW5R.js";
17
+ import "../chunk-E6Z3CJT2.js";
18
+ import "../chunk-UELHWF5I.js";
19
+ import "../chunk-YUF4DRYB.js";
20
+ import "../chunk-NWK7KKNO.js";
21
+ import "../chunk-BBJXIZ3X.js";
21
22
  import "../chunk-ZD4KVFXI.js";
22
- import "../chunk-TOE2RRCS.js";
23
- import "../chunk-XO756WE5.js";
23
+ import "../chunk-BLL4VYGZ.js";
24
+ import "../chunk-3C6ZZAB2.js";
24
25
  import "../chunk-3MED75HT.js";
25
26
  import "../chunk-PKLB2XJL.js";
26
- import "../chunk-OUYAUXAT.js";
27
- import "../chunk-VWLSU3XV.js";
27
+ import "../chunk-QBUSONNE.js";
28
+ import "../chunk-AOQKQWZU.js";
28
29
  import "../chunk-XIMYZ3JA.js";
29
- import "../chunk-YOXCCJDF.js";
30
- import "../chunk-7YTRG6YW.js";
31
- import "../chunk-V67D6TMU.js";
32
- import "../chunk-LT62P654.js";
33
- import "../chunk-PRHYIA6X.js";
34
- import "../chunk-XVB3Q2PG.js";
30
+ import "../chunk-DBAHJFBU.js";
31
+ import "../chunk-2SD2CGVH.js";
32
+ import "../chunk-NLRKB32C.js";
33
+ import "../chunk-QJ4T73J5.js";
34
+ import "../chunk-HTUG7ZFK.js";
35
+ import "../chunk-HGEE5LDW.js";
35
36
  import "../chunk-5W3R6LFT.js";
36
- import "../chunk-L7O774U7.js";
37
- import "../chunk-7UTSNTWM.js";
38
- import "../chunk-ACRJ2GZ5.js";
39
- import "../chunk-J3Q2NYJR.js";
40
- import "../chunk-ZZSJAR76.js";
37
+ import "../chunk-532X3OCZ.js";
38
+ import "../chunk-6XNVY3FW.js";
39
+ import "../chunk-7424ANRU.js";
40
+ import "../chunk-SUIZOCSY.js";
41
+ import "../chunk-OC4ZGVMH.js";
41
42
  import "../chunk-Z54ZSOBZ.js";
42
- import "../chunk-5YSEQHJN.js";
43
- import "../chunk-QGITU23N.js";
44
- import "../chunk-WTB4GKMH.js";
43
+ import "../chunk-5YTDZ5WP.js";
44
+ import "../chunk-E3PNZDPH.js";
45
45
  import "../chunk-6HWVI6MI.js";
46
- import "../chunk-RTFMDIKV.js";
46
+ import "../chunk-KNP4ENFT.js";
47
47
  import "../chunk-CKEQFGLT.js";
48
- import "../chunk-KXMJLOZF.js";
49
- import "../chunk-MRLH4MYU.js";
50
- import "../chunk-HSOBIN22.js";
51
- import "../chunk-W7TY6HYX.js";
52
- import "../chunk-MKPDIAZH.js";
48
+ import "../chunk-LXE7JAMV.js";
49
+ import "../chunk-IT7MFVGP.js";
50
+ import "../chunk-AYDE7RFV.js";
51
+ import "../chunk-W6VLB6LL.js";
52
+ import "../chunk-YVPB5YGO.js";
53
+ import "../chunk-ZRQMENT4.js";
54
+ import "../chunk-3HZ6MNB2.js";
53
55
  import "../chunk-2BEMIWEW.js";
54
56
  import "../chunk-IJYGIDF4.js";
55
- import "../chunk-MQ4PPCJB.js";
56
- import "../chunk-RNJFRXEN.js";
57
- import "../chunk-E65WJVI5.js";
58
- import "../chunk-L6WBJGQS.js";
57
+ import "../chunk-ITAPXBIB.js";
58
+ import "../chunk-JSQK5DH3.js";
59
+ import "../chunk-FVEEEEIM.js";
60
+ import "../chunk-OP5BMZKK.js";
59
61
  import "../chunk-UYXV5NIS.js";
60
- import "../chunk-AACN5GNE.js";
61
- import "../chunk-3HTZDY3C.js";
62
- import "../chunk-CDFJF5YD.js";
63
- import "../chunk-RNXOWDM6.js";
64
- import "../chunk-ZCQBNPRH.js";
65
- import "../chunk-TMNUTMT5.js";
66
- import "../chunk-AWQWXSW4.js";
62
+ import "../chunk-WBXCIRVI.js";
63
+ import "../chunk-TTGDTNSN.js";
64
+ import "../chunk-34RXPR7M.js";
65
+ import "../chunk-3NVGBFJS.js";
66
+ import "../chunk-C2REOMPO.js";
67
+ import "../chunk-DNB4ZQGN.js";
68
+ import "../chunk-B4FAFEBP.js";
67
69
  import "../chunk-QYF5S6P6.js";
68
- import "../chunk-CZCAZVTD.js";
69
- import "../chunk-X5BJ3G2P.js";
70
- import "../chunk-NL5LSKVD.js";
70
+ import "../chunk-SRXYSLMW.js";
71
+ import "../chunk-6EIV3H7O.js";
72
+ import "../chunk-3R3Z54J7.js";
73
+ import "../chunk-CIA7X2PZ.js";
71
74
  import {
72
75
  setProjectTrustState
73
- } from "../chunk-PIIUNJIT.js";
76
+ } from "../chunk-43KD3PPM.js";
74
77
  import {
75
78
  logExtension
76
- } from "../chunk-W5E72HJA.js";
79
+ } from "../chunk-AGEQRJ5A.js";
77
80
  import "../chunk-S26LC76R.js";
78
- import "../chunk-VCRVNLE7.js";
81
+ import "../chunk-K2GV34T2.js";
79
82
  import "../chunk-LJDODBBZ.js";
80
- import "../chunk-ZMMHHXSW.js";
81
- import "../chunk-CB7PEVOJ.js";
83
+ import "../chunk-O6LCSHHI.js";
84
+ import "../chunk-WLD6BGON.js";
82
85
  import "../chunk-NXL4FFQQ.js";
83
86
 
84
87
  // dist/mcp/worker.js
@@ -53,28 +53,29 @@ import {
53
53
  verifyNpmPackageEntry,
54
54
  verifyToolBinary,
55
55
  wasLastResolveTransient
56
- } from "../chunk-MQ4PPCJB.js";
57
- import "../chunk-RNJFRXEN.js";
58
- import "../chunk-E65WJVI5.js";
59
- import "../chunk-L6WBJGQS.js";
56
+ } from "../chunk-ITAPXBIB.js";
57
+ import "../chunk-JSQK5DH3.js";
58
+ import "../chunk-FVEEEEIM.js";
59
+ import "../chunk-OP5BMZKK.js";
60
60
  import "../chunk-UYXV5NIS.js";
61
- import "../chunk-AACN5GNE.js";
62
- import "../chunk-3HTZDY3C.js";
63
- import "../chunk-CDFJF5YD.js";
64
- import "../chunk-RNXOWDM6.js";
65
- import "../chunk-ZCQBNPRH.js";
66
- import "../chunk-TMNUTMT5.js";
67
- import "../chunk-AWQWXSW4.js";
61
+ import "../chunk-WBXCIRVI.js";
62
+ import "../chunk-TTGDTNSN.js";
63
+ import "../chunk-34RXPR7M.js";
64
+ import "../chunk-3NVGBFJS.js";
65
+ import "../chunk-C2REOMPO.js";
66
+ import "../chunk-DNB4ZQGN.js";
67
+ import "../chunk-B4FAFEBP.js";
68
68
  import "../chunk-QYF5S6P6.js";
69
- import "../chunk-CZCAZVTD.js";
70
- import "../chunk-X5BJ3G2P.js";
71
- import "../chunk-NL5LSKVD.js";
72
- import "../chunk-PIIUNJIT.js";
73
- import "../chunk-W5E72HJA.js";
69
+ import "../chunk-SRXYSLMW.js";
70
+ import "../chunk-6EIV3H7O.js";
71
+ import "../chunk-3R3Z54J7.js";
72
+ import "../chunk-CIA7X2PZ.js";
73
+ import "../chunk-43KD3PPM.js";
74
+ import "../chunk-AGEQRJ5A.js";
74
75
  import "../chunk-S26LC76R.js";
75
- import "../chunk-VCRVNLE7.js";
76
+ import "../chunk-K2GV34T2.js";
76
77
  import "../chunk-LJDODBBZ.js";
77
- import "../chunk-CB7PEVOJ.js";
78
+ import "../chunk-WLD6BGON.js";
78
79
  import "../chunk-NXL4FFQQ.js";
79
80
  export {
80
81
  GITHUB_TOOLS,
@@ -173,7 +173,8 @@ Helpful mechanics you can rely on:
173
173
  function/method/class (or Markdown section), and coverage is recorded at
174
174
  symbol level. The result starts with a `[pi-lens: read widened ...]` note
175
175
  naming the requested and the returned lines; ask for `limit` above 100 for
176
- the exact range. It is off with the read guard (`--no-read-guard`).
176
+ the exact range. It is off with the read guard (`--no-read-guard`), or on its
177
+ own with `--no-read-expansion` / `readGuard.expandReads=false`.
177
178
  - `read_symbol` / `read_enclosing` reads count as edit coverage for that symbol range.
178
179
  - Markdown warns instead of blocking; `.txt`/`.log` are exempt.
179
180
  - Escape hatch (human): `/lens-allow-edit <path>` arms one exemption.
@@ -289,7 +290,7 @@ Registered as pi agent tools. Verified names:
289
290
  |---|---|---|
290
291
  | `lens_diagnostics` | Session-cache or LSP-probe diagnostics with `source` and `scope` selectors. | Use `source=lsp` with `scope=paths` for targeted checks; an empty cache is not proof of clean. |
291
292
  | `lsp_navigation` | LSP navigation (definition/references/etc.). | Trace symbols semantically. |
292
- | `symbol_search` | Ranked identifier search over the warm word index (BM25 + priors). | Entry point of the discovery funnel. |
293
+ | `symbol_search` | Ranked identifier search over the warm word index (BM25 + priors). Accepts inline `lang:`/`file:`/`ext:` filters and structured `paths`/`lang`; the query contract is owned by the tool description in `tools/symbol-search.ts`. | Entry point of the discovery funnel. |
293
294
  | `module_report` | Navigable outline + signatures + decorators + imports + callbacks for a file; optional `blastRadius`. | Understand a module without reading the whole body. |
294
295
  | `read_symbol` | Verbatim body of one symbol/callback handle (records read-guard coverage). | Read exactly the symbol you'll edit. |
295
296
  | `read_enclosing` | Smallest enclosing symbol/callback body for a file+line (records coverage). | Bridge a diagnostic location → exact body. |
@@ -297,6 +298,8 @@ Registered as pi agent tools. Verified names:
297
298
  | `ast_grep_search` / `ast_grep_replace` | Structural AST search / replace. | Find or rewrite by code shape, not regex. |
298
299
  | `ast_grep_outline` / `ast_grep_search` (`dump=true`) | Outline / AST dump. | Inspect structure. |
299
300
  | `lens_diagnostic_mark` | Mark a finding false-positive / suppressed / deferred / flagged-to-fix (honored across surfaces). | Triage a finding you've judged. |
301
+ | `effective_config` | Resolved configuration and provenance for a file or the workspace. | Diagnose which LSP server or runner a file resolves to. |
302
+ | `pi_lens_activate_tools` | Activate registered situational tools for the next turn. | Bring a situational tool (e.g. `ast_grep_search`) into the tool list. |
300
303
 
301
304
  Funnel discipline: **`symbol_search` → `module_report` → `read_symbol`/`read_enclosing`**
302
305
  (find candidates → explain one → read the body).
@@ -96,9 +96,20 @@ and `[]` mean no arguments.
96
96
  tier. `source=lsp` reads a file's on-disk content and will not sync it to a
97
97
  language server past **2 MiB or 5000 lines** (`clients/runtime-config.ts`
98
98
  `pipeline.lspMaxFileBytes`/`lspMaxFileLines`, checked in
99
- `clients/lsp/content-limits.ts`) — not env-tunable today. A file over that
99
+ `clients/lsp/content-limits.ts`) — not env-tunable. A file over that
100
100
  bound gets an explicit `file too large for LSP diagnostics (<N> bytes/lines
101
- > <limit>)` result instead of stale or partial diagnostics. This is a
101
+ > <limit>)` result instead of stale or partial diagnostics. One
102
+ exception for the line limit: the explicit single-file query (`path`, not
103
+ `paths`) takes the user-level `lsp.queryMaxFileLines` config key (suggested
104
+ `20000`, maximum `40000`; see
105
+ [globalconfig](globalconfig.md#explicit-diagnostics-query-line-limit)); a
106
+ project config or a tool argument cannot raise it. On that same single-file
107
+ query an explicit `waitMs` sets the wait past the language server's usual
108
+ per-server wait, up to 30000 ms, and a shorter one never shortens it, so a
109
+ large file's server can finish; batch and directory queries keep their
110
+ per-server budgets, except that a batch's 20 s pre-sweep warm-up still opens
111
+ a file past the bound (a named residual, #5306). A timed-out wait
112
+ reports `check timed out`, never a clean file. This is a
102
113
  *different* 2 MiB from the auto-fix full-content attachment cap described in
103
114
  [agent-guide.md](agent-guide.md), section 6 ("Auto-format / auto-fix
104
115
  timing") — the two caps currently share one constant
@@ -186,8 +197,10 @@ and `[]` mean no arguments.
186
197
  `grep` (raw substrings) and `lsp_navigation` (exact references). Returns
187
198
  `available: false` with a retry hint when the index isn't built yet — it
188
199
  self-builds in the background and never blocks the call. The answer is one
189
- ranked table: a row per file with its path, best-matching line, score, hit
190
- count and any graph annotations, then a footer with index coverage and a
200
+ ranked table: a `symbol` row per file with its path, best-matching line,
201
+ score, hit count and any graph annotations, or a `file` listing row with just
202
+ its path when the query carries a scope but no terms; then a footer with
203
+ index coverage and a
191
204
  next-step line naming the top-ranked hit (`module_report <path>`) — read that
192
205
  line with `offset=<line>, limit=1`. Both surfaces render it through
193
206
  `renderCompactSymbolSearch`, so no JSON payload rides along. See
@@ -1,6 +1,6 @@
1
1
  # Alignment families
2
2
 
3
- Seven user-facing ideas that pi-lens implements in more than one place. The same idea has drifted into different meanings before: PR #5011 found one ignore pattern read three ways. This file is the single list. The daily alignment routine reads it to pick a family, and `scripts/check-pr-body.mjs` reads it to validate the `Alignment:` line in `### Class sweep`.
3
+ Nine user-facing ideas that pi-lens implements in more than one place. The same idea has drifted into different meanings before: PR #5011 found one ignore pattern read three ways. This file is the single list. The daily alignment routine reads it to pick a family, and `scripts/check-pr-body.mjs` reads it to validate the `Alignment:` line in `### Class sweep`.
4
4
 
5
5
  ## Families
6
6
 
@@ -15,6 +15,8 @@ The family name is the text before the first colon in the Family column. Names c
15
15
  | 5 | Tool parameter shapes across pi tools and MCP tools: names, defaults and accepted spellings of path / paths / scope / severity / wait parameters | `tools/`, `clients/mcp/` |
16
16
  | 6 | Closed vocabularies: skip reasons (`RUNNER_SKIP_REASONS`), owner keys, degradation codes, `PILENS_CFG_*` diagnostic codes; one idea with two names, or one name with two meanings | `clients/config-diagnostic-codes.ts`, `clients/degradation-ledger.ts`, `tests/support/session-state-registry.ts` |
17
17
  | 7 | Env tunables: `PI_LENS_*` variables, how each is parsed (int, bool, list), clamped and defaulted, and what an unparseable value does | `git grep -n "process.env.PI_LENS_" clients tools index.ts` |
18
+ | 8 | One object with different keys: a file, finding, session, turn, runner run, LSP document or blocker keyed by two spellings, or by a key that is not stable across its life (raw vs normalized path, URI vs path, display text, list position, a per-session counter) | `clients/path-keyed-map.ts` (`PathKeyedMap`), `clients/path-utils.ts` (the normalizers), `clients/finding-identity.ts`, `docs/invariants/`, `docs/defect-shapes.md` shape 1 |
19
+ | 9 | Tool config presence: whether tool X counts as configured for a file, answered by the tool policy (`hasXConfig` helpers), each runner's own gate, the formatter's explicit-config check and effective-config; where each looks, how far it walks, and what counts as config | `clients/tool-policy.ts` (`getLinterPolicyForCwd`, the `hasXConfig` helpers), `clients/dispatch/runners/`, `clients/formatters.ts`, `clients/effective-config.ts`; known divergences are #5408 |
18
20
 
19
21
  ## What touches means
20
22
 
@@ -27,3 +29,5 @@ A change touches a family when it adds or edits a member of that family. Naming
27
29
  5. **Tool parameter shapes across pi tools and MCP tools.** Touched when the change adds or edits one of these: names, defaults and accepted spellings of path / paths / scope / severity / wait parameters.
28
30
  6. **Closed vocabularies.** Touched when the change adds or edits one of these: skip reasons (`RUNNER_SKIP_REASONS`), owner keys, degradation codes, `PILENS_CFG_*` diagnostic codes; one idea with two names, or one name with two meanings.
29
31
  7. **Env tunables.** Touched when the change adds or edits one of these: `PI_LENS_*` variables, how each is parsed (int, bool, list), clamped and defaulted, and what an unparseable value does.
32
+ 8. **One object with different keys.** Touched when the change adds or edits one of these: a key, map, cache or record that identifies a file, finding, session, turn, runner run, LSP document or blocker.
33
+ 9. **Tool config presence.** Touched when the change adds or edits one of these: a config-file check, walk or stop rule that decides whether a linter, formatter or runner counts as configured.
package/docs/ci.md ADDED
@@ -0,0 +1,120 @@
1
+ # CI workflows, gates and caches
2
+
3
+ The CI facts an agent needs when it edits a workflow, a required check, a cache
4
+ or a CI-facing script. `AGENTS.md` "Commands and gates" keeps the commands and
5
+ the rules an agent obeys, and points here for the rest. Where a paragraph names
6
+ a test, that test is its enforcer. Bot-opened pull requests are in
7
+ `docs/ci-bot-pr-checks.md`.
8
+
9
+ ## Jobs and required contexts
10
+
11
+ The seven advisory lint tools are steps of one `Lint (advisory)` job, and the PR
12
+ title and close-keyword checks are steps of one gating `PR metadata` job.
13
+ `actionlint` and `markdownlint` share one gating `actionlint & markdownlint` job,
14
+ and the required `Lint & type-check` also runs `depcruise:check`.
15
+ `ci-infra-kill-rerun.yml` has no `pull_request` trigger, so its jobs post no
16
+ skipped rows on a PR; the label cleanup lives in `ci-verdict-labels.yml`.
17
+
18
+ CI cost gates (#3801). ci.yml has no heavy-advisory gate: its `heavy-gate` job
19
+ and ci-verdict's deferred-row list are retired (an older head's
20
+ `Heavy advisory gate (advisory)` row still classifies as advisory by its
21
+ suffix and never gates). CodeQL runs only in `codeql.yml`, once a day on a
22
+ schedule and on dispatch, with no master-push or pull-request run, so a new
23
+ alert surfaces on master up to a day after its change, not on its PR. A
24
+ docs-only pull request (root `*.md`, `docs/**`, `.changelog/**` and
25
+ nothing else, classified by `scripts/ci-changed-files.mjs`; every doubt runs the
26
+ full suite) skips no test job: the Unit shards and every
27
+ other test job always run, because a docs edit can red tests outside tests/config
28
+ (`docs/public-api-stability.md`, `docs/*_rules_catalog.md`). The one exception
29
+ is the three `Install test` legs: outside `INSTALL_PATHS` in that script
30
+ they report success without installing, and `Strict install` and the macOS APFS
31
+ step run on non-pull_request events only. On a pull request, `TLA+ models`
32
+ model-checks only when `formal/` (or its checker or ci.yml) changed: its shards
33
+ skip at job level and the aggregate still reports. Push and merge-queue runs
34
+ always model-check (`changes` sets `formal=true` for every non-PR event). A REQUIRED job never skips at
35
+ job level: ci-verdict and the merge train demand a literal `success`. Implicit
36
+ `success()` reads every ancestor, so a job behind a skippable ancestor skips even
37
+ when its direct needs are green.
38
+
39
+ Master requires the ten contexts in `BRANCH_PROTECTION_CONTEXTS`
40
+ (`scripts/lib/ci-checks.mjs`). ci-verdict reads the live list, and it also gates
41
+ every other non-advisory row a run posts.
42
+
43
+ ## The Windows unit leg
44
+
45
+ The Windows unit leg (`Unit tests Windows`, job key `unit-tests-windows`) GATES
46
+ by maintainer decision on 2026-10-17: it runs the real `win32` gates, and
47
+ advisory reds were waved through (the incidents are in `HISTORY.md`). It
48
+ therefore starts on every event like the Unit shards and never skips at job
49
+ level. Its name
50
+ carries no `(advisory)` suffix, and it is a required context on master. Its
51
+ population is every
52
+ `tests/config/*` file, every `process.platform` Windows gate, and the
53
+ shrink-only `WINDOWS_LANE_ADMISSIONS` rows
54
+ (`scripts/lib/win32-gate-population.mjs`); a failed or under-executed subset
55
+ reds the job, and no step of it is `continue-on-error`. The tmp-fixture
56
+ hygiene census asserts on every lane, `win32` included, and its teardown
57
+ prints `verdict=asserted`. A census a lane declines still leaves a record:
58
+ it prints `verdict=declined`, so a quarantine shows in the log.
59
+
60
+ ## Smoke paths and shard weights
61
+
62
+ The same script's `smoke` output (`PR_SMOKE_PATHS`: RPC, install, LSP launch,
63
+ trust) makes `install-smoke.yml` run all four pi-load cells and an advisory LSP
64
+ handshake job on a pull request; any other PR that reaches that workflow keeps
65
+ the one pnpm-global cell (`tests/config/pr-smoke-paths.test.ts`).
66
+ The Unit shards are packed by the per-file seconds in
67
+ `scripts/test-shard-weights.json`; regenerate it from the shards' uploaded
68
+ `vitest-results.json` when `tests/config/test-shard-assignment.test.ts` reds.
69
+
70
+ ## Actions cache
71
+
72
+ Actions cache. The repository cache is capped at 10 GB. The nightly
73
+ smoke workflows restore the managed tool tree through
74
+ `.github/actions/tool-tree-cache`, keyed on the hash of
75
+ `clients/installer/index.ts` (every pin) plus the ISO week; a pin that moves out
76
+ of that file moves the action's `hashFiles` target in the same change
77
+ (`tests/config/tool-tree-cache-workflow.test.ts`). A smoke saves its tree once
78
+ its last install step ran, red or green, because the key is first-wins per week.
79
+ `cache-prune.yml` runs `scripts/prune-actions-cache.mjs` nightly and when the
80
+ `CodeQL` workflow completes on master (its overlay base database is ~785 MB per
81
+ run, and the nightly run starts hours late), so a closed pull request's
82
+ caches and superseded copies never fill the cap; only its `prune` job holds
83
+ `actions: write` and passes `--apply`
84
+ (`tests/config/cache-prune-workflow.test.ts`).
85
+ A workflow that `pull_request_target` or `workflow_run` starts never restores
86
+ or saves a cache, so a pull request cannot poison what a privileged run
87
+ restores (`tests/config/untrusted-trigger-cache.test.ts`).
88
+
89
+ ## Workflow jobs no pull request runs
90
+
91
+ A workflow job no pull request can run needs a registered reason in
92
+ `tests/config/workflow-pull-request-reachability.test.ts`, and the branch run
93
+ (`gh workflow run <file> --ref <branch>`) quoted with its run id (#3043). The
94
+ same quote is enforced per file for an edit to any workflow whose post-image no
95
+ `pull_request` run executes (no trigger, `pull_request_target` only, or a
96
+ filter that excludes the file): `scripts/check-pr-body.mjs` reds the body
97
+ without it. `Workflow run unaffected: <file> — <reason>` clears the rule only
98
+ for a workflow with no `workflow_dispatch` trigger or an edit of comments and
99
+ blank lines, verified against the merge base (#3085). The run id is quoted
100
+ evidence, not verified provenance.
101
+
102
+ ## Heavy-advisory census pins
103
+
104
+ For `tests/config/heavy-advisory-gate-workflow.test.ts`, set
105
+ `PI_LENS_PRINT_PINS=1` to print the current parsed census pins as pasteable
106
+ assertion lines after workflow edits; the assertions remain shrink-only pins.
107
+
108
+ ## Pre-push and the stale-build guard
109
+
110
+ The stale-build guard rejects a missing or older compiled twin. Pre-push and
111
+ `lane:check` also rebuild the bounded `dist/` dependency population before
112
+ governance suites when a bundled file is missing or older than its source.
113
+ Pre-push diffs each pushed ref against `origin/master`, or `upstream/master`
114
+ when that has commits `origin/master` lacks, and
115
+ skips a head whose tree-bound record already passed the same selection. When
116
+ that base range cannot be resolved it falls back to the remote-tip
117
+ range, and to the loud build-only pass only when that cannot resolve either.
118
+ Pre-push fails
119
+ when its bounded test-lock wait times out (#3717); `PI_LENS_PREPUSH_LOCK_SKIP=1`
120
+ is the only lock opt-out and is logged to `pre-push.log`. CI stays the gate.
@@ -149,6 +149,17 @@ whole, so setting one key never silently drops the rest of a section.
149
149
  3. **nested-project** — every `.pi-lens.json` between that root and your working
150
150
  directory, outermost first. The nearest file wins, per field.
151
151
 
152
+ For the project settings read through the project config loader (`autofix`,
153
+ `maxProjectFiles`, `tools.*`, `trivy`, `helm`, `ignore` and the rest), that walk
154
+ stops at the git root: a `.pi-lens.json` in a folder above your repository is never merged into
155
+ it, so permission keys such as `trivy.enabled` and
156
+ `helm.renderValidation.enabled` come from the repository alone (#5291). A
157
+ checkout with no `.git` entry anywhere above the working directory keeps the
158
+ `$HOME` ceiling instead. A repository with no `.pi-lens.json` of its own still
159
+ inherits the nearest one above it, whole, as before. The language-server
160
+ section and the dispatch policy's turn-off lists are read by their own loaders,
161
+ which still walk to the `$HOME` ceiling.
162
+
152
163
  Those three are the tiers the config **files** resolve through, and they are the
153
164
  only ones this resolution populates. Four more tiers are reserved in the
154
165
  precedence table — `builtin` below them, and `env`, `cli`, `host` above — and
@@ -241,7 +252,7 @@ denied server, the tier that contributed it.
241
252
 
242
253
  ```console
243
254
  $ # which servers run for this file, and why
244
- $ pilens_effective_config file=src/main.rs
255
+ $ pilens_effective_config path=src/main.rs
245
256
  ✗ typos — disabled-by-config (global ~/.pi-lens/config.json → /lsp/disabledServers/0)
246
257
  ```
247
258
 
@@ -318,11 +329,11 @@ Two rules make the rest of the table unambiguous:
318
329
  timed out, or failed as well, the notice says so and names the denial beside
319
330
  it.
320
331
 
321
- `pilens_effective_config file=Program.cs` reports the runner as denied, with the
332
+ `pilens_effective_config path=Program.cs` reports the runner as denied, with the
322
333
  tier and file that denied it, while the language server stays selected:
323
334
 
324
335
  ```console
325
- $ pilens_effective_config file=src/Program.cs
336
+ $ pilens_effective_config path=src/Program.cs
326
337
  tools:
327
338
  lsp selected
328
339
  dotnet-build ✗ disabled-by-config (global ~/.pi-lens/config.json → /dispatch/disabledRunners/0)
@@ -334,14 +345,19 @@ notice.
334
345
 
335
346
  ### `rules.<id>` — read from each file's own config
336
347
 
337
- `rules.<id>.disable`, `select`, and `ignorePaths` are resolved for each file
338
- from the nearest directory at or above it that holds a `.pi-lens.json`, up to
339
- the workspace root. That resolution layers the global file, the workspace
348
+ `rules.<id>.threshold`, `disable`, `select`, and `ignorePaths` are resolved for
349
+ each file from the nearest directory at or above it that holds a `.pi-lens.json`,
350
+ up to the workspace root. That resolution layers the global file, the workspace
340
351
  root's file, and every nested file between, by the field-wise order above. So a
341
352
  nested `.pi-lens.json` governs the files under it and no others, and the
342
353
  workspace root's policy still reaches them. Every surface that filters by rule
343
354
  policy reads it this way: the per-edit dispatch, `lens_diagnostics`,
344
- `lsp_diagnostics`, and the turn-end advisories.
355
+ `lsp_diagnostics`, and the turn-end advisories. A threshold is a value, not a
356
+ denial: for a rule the nearest file that sets a number supplies it, and a file
357
+ that sets none inherits the farther file's. A value that is not a finite number,
358
+ such as a string, `null`, or `1e999`, is dropped when the file is read, so the
359
+ farther file's value still applies. A number of `0` or less is kept: the rule's
360
+ own default applies, and the farther file's value does not come back.
345
361
 
346
362
  `rules.<id>.disable` is a denial, like `lsp.disabledServers`: it resolves as the
347
363
  union of every tier's list. A project or nested file can add rules to what the
@@ -418,6 +434,13 @@ these dates instantiate.
418
434
  A `.pi-lens.json` that mixes both spellings is fine while you migrate: the
419
435
  canonical key wins, and the keys you have not moved yet keep working.
420
436
 
437
+ For project settings the same rule reaches across directories (#5291): a legacy
438
+ `pi-lens.json` still supplies its values whole while it is the only config
439
+ file in the chain from your working directory upward, and once a canonical
440
+ `.pi-lens.json` sits anywhere in that chain the legacy file only produces its
441
+ migration notices — its fields are not merged in, and the canonical files
442
+ layer per field as above. Move the settings; the notices name the file.
443
+
421
444
  Only keys pi-lens actually recognizes get "move it to …" advice. A key in a
422
445
  legacy file that is not a pi-lens setting at all — a typo, or a leftover from
423
446
  another tool — cannot be migrated anywhere, so it gets the ordinary
@@ -164,6 +164,7 @@ See [`rules/ast-grep-rules/rule-schema.json`](../rules/ast-grep-rules/rule-schem
164
164
  | `fix` | — | string | Suggested replacement |
165
165
  | `metadata.weight` | — | number | Priority weight |
166
166
  | `metadata.category` | — | string | |
167
+ | `metadata.*` | — | any | Free-form author data (`tags`, `examples`, `has_fix`, `sonar`). ast-grep 0.51.1 and later refuse a top-level key outside the rule schema, so extra keys go under `metadata`. |
167
168
  | `constraints` | — | Record\<string, {regex}\> | Metavariable regex — `KEY: { regex: "..." }` narrows what `$KEY` will match. Supported by the napi engine + the ast-grep CLI/LSP. |
168
169
 
169
170
  Valid `language` values: `TypeScript` `JavaScript` `Python` `Go` `Rust` `Java` `C` `Cpp` `CSharp` `Kotlin` `Ruby` `Php`