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.
- package/CHANGELOG-USER.md +12 -12
- package/CHANGELOG.md +262 -0
- package/README.md +2 -0
- package/dist/{chunk-7YTRG6YW.js → chunk-2SD2CGVH.js} +2 -2
- package/dist/{chunk-CDFJF5YD.js → chunk-34RXPR7M.js} +1 -1
- package/dist/{chunk-XO756WE5.js → chunk-3C6ZZAB2.js} +34 -27
- package/dist/{chunk-MKPDIAZH.js → chunk-3HZ6MNB2.js} +1 -1
- package/dist/{chunk-RNXOWDM6.js → chunk-3NVGBFJS.js} +6 -6
- package/dist/{chunk-DGKFWQK4.js → chunk-3QCI3V6C.js} +11 -11
- package/dist/{chunk-NL5LSKVD.js → chunk-3R3Z54J7.js} +10 -4
- package/dist/{chunk-PIIUNJIT.js → chunk-43KD3PPM.js} +1 -1
- package/dist/{chunk-LAHHGNAY.js → chunk-4HNBY7S7.js} +20 -19
- package/dist/chunk-4WWPDMRA.js +22 -0
- package/dist/{chunk-L7O774U7.js → chunk-532X3OCZ.js} +116 -22
- package/dist/{chunk-ZVCDHYWZ.js → chunk-5RLEDUUE.js} +9 -9
- package/dist/{chunk-5YSEQHJN.js → chunk-5YTDZ5WP.js} +3 -3
- package/dist/{chunk-X5BJ3G2P.js → chunk-6EIV3H7O.js} +158 -61
- package/dist/{chunk-KV6GQOGN.js → chunk-6K4X7IIF.js} +164 -172
- package/dist/{chunk-HYSKJMZK.js → chunk-6RXMQYNU.js} +3 -3
- package/dist/{chunk-7UTSNTWM.js → chunk-6XNVY3FW.js} +10 -10
- package/dist/{chunk-ACRJ2GZ5.js → chunk-7424ANRU.js} +2 -2
- package/dist/{chunk-JUZ67QZQ.js → chunk-A4HKPAEN.js} +8 -8
- package/dist/{chunk-EKNYSXFB.js → chunk-AFNPNHJV.js} +8 -8
- package/dist/{chunk-W5E72HJA.js → chunk-AGEQRJ5A.js} +37 -11
- package/dist/{chunk-4ENEJHF4.js → chunk-AJ62EQIQ.js} +15 -14
- package/dist/{chunk-VWLSU3XV.js → chunk-AOQKQWZU.js} +14 -5
- package/dist/{chunk-CJS6WE66.js → chunk-AVOUHMCS.js} +111 -107
- package/dist/{chunk-WTB4GKMH.js → chunk-AYDE7RFV.js} +45 -5
- package/dist/{chunk-AWQWXSW4.js → chunk-B4FAFEBP.js} +7 -2
- package/dist/{chunk-SLSMJPEF.js → chunk-B4K6OSLL.js} +49 -42
- package/dist/{chunk-CM6BDY4E.js → chunk-BBJXIZ3X.js} +3 -3
- package/dist/chunk-BJDB7PXU.js +25 -0
- package/dist/{chunk-TOE2RRCS.js → chunk-BLL4VYGZ.js} +1 -1
- package/dist/{chunk-THYHUIDR.js → chunk-BMMRLJA4.js} +7 -5
- package/dist/{chunk-LWOM6LVS.js → chunk-BN36MQW5.js} +35 -34
- package/dist/{chunk-ZCQBNPRH.js → chunk-C2REOMPO.js} +2 -2
- package/dist/{chunk-T5QSLSMM.js → chunk-C4ICGFEO.js} +23 -23
- package/dist/chunk-CIA7X2PZ.js +26 -0
- package/dist/{chunk-VO4JFPTV.js → chunk-D5L7Q57Z.js} +2 -2
- package/dist/{chunk-YOXCCJDF.js → chunk-DBAHJFBU.js} +70 -64
- package/dist/{chunk-TMNUTMT5.js → chunk-DNB4ZQGN.js} +59 -22
- package/dist/chunk-DPDA3ILA.js +108 -0
- package/dist/{chunk-QGITU23N.js → chunk-E3PNZDPH.js} +1 -1
- package/dist/{chunk-QVBOXT3L.js → chunk-E6Z3CJT2.js} +13 -9
- package/dist/{chunk-ZDMFGACN.js → chunk-ECYUBKYX.js} +588 -566
- package/dist/chunk-F37CCZUA.js +27 -0
- package/dist/{chunk-E65WJVI5.js → chunk-FVEEEEIM.js} +10 -13
- package/dist/{chunk-F6BEQWAK.js → chunk-GL6J5R34.js} +5 -5
- package/dist/{chunk-5GEYJJHG.js → chunk-GTNO6F6K.js} +11 -10
- package/dist/{chunk-NMUSOZ2D.js → chunk-HASJPQBC.js} +10 -10
- package/dist/{chunk-XVB3Q2PG.js → chunk-HGEE5LDW.js} +3 -2
- package/dist/{chunk-XKFO2SZV.js → chunk-HIUVHRLM.js} +35 -34
- package/dist/{chunk-PRHYIA6X.js → chunk-HTUG7ZFK.js} +8 -8
- package/dist/{chunk-HEA3EM23.js → chunk-IBEYUBCM.js} +9 -9
- package/dist/{chunk-WSSLVMDA.js → chunk-IJ55MYO6.js} +15 -12
- package/dist/{chunk-MRLH4MYU.js → chunk-IT7MFVGP.js} +2 -2
- package/dist/{chunk-MQ4PPCJB.js → chunk-ITAPXBIB.js} +42 -43
- package/dist/{chunk-RNJFRXEN.js → chunk-JSQK5DH3.js} +4 -4
- package/dist/{chunk-VCRVNLE7.js → chunk-K2GV34T2.js} +9 -1
- package/dist/{chunk-3NPWO5UO.js → chunk-KBSC5Z3G.js} +9 -8
- package/dist/{chunk-PXQ45SGD.js → chunk-KDGKKK7A.js} +2 -2
- package/dist/{chunk-SIQHOB6P.js → chunk-KDMJ2DJD.js} +11 -11
- package/dist/{chunk-RTFMDIKV.js → chunk-KNP4ENFT.js} +1 -1
- package/dist/chunk-KX4DF6XX.js +25 -0
- package/dist/{chunk-ZZN74OGD.js → chunk-LHCDWFDB.js} +37 -144
- package/dist/{chunk-N5CEGQPG.js → chunk-LHU6NG5Z.js} +16 -15
- package/dist/{chunk-G22UNQID.js → chunk-LIDFFCZZ.js} +17 -15
- package/dist/{chunk-NOWH2VA2.js → chunk-LPM6NKVI.js} +7 -7
- package/dist/{chunk-KXMJLOZF.js → chunk-LXE7JAMV.js} +37 -26
- package/dist/{chunk-47UCC4MM.js → chunk-ME6MF2N2.js} +1 -1
- package/dist/{chunk-V67D6TMU.js → chunk-NLRKB32C.js} +7 -7
- package/dist/{chunk-2VZ3VN3N.js → chunk-NQFXN5U7.js} +2 -2
- package/dist/{chunk-IILEH3ZC.js → chunk-NR4KQOXZ.js} +14 -9
- package/dist/{chunk-UXTQ3QPD.js → chunk-NWK7KKNO.js} +4 -4
- package/dist/{chunk-ZMMHHXSW.js → chunk-O6LCSHHI.js} +2 -1
- package/dist/{chunk-ZZSJAR76.js → chunk-OC4ZGVMH.js} +33 -17
- package/dist/{chunk-L6WBJGQS.js → chunk-OP5BMZKK.js} +3 -3
- package/dist/{chunk-MN635QYA.js → chunk-OYXD2MOM.js} +3 -3
- package/dist/{chunk-OSEKJEUU.js → chunk-PSUXESQ5.js} +41 -4
- package/dist/{chunk-6GPB3JLL.js → chunk-QAM2Q3VO.js} +3 -3
- package/dist/{chunk-OUYAUXAT.js → chunk-QBUSONNE.js} +518 -191
- package/dist/{chunk-PBZNYHMM.js → chunk-QDZ3ZZMY.js} +18 -66
- package/dist/{chunk-LT62P654.js → chunk-QJ4T73J5.js} +1 -1
- package/dist/{chunk-XLAI7UYY.js → chunk-QUZYRDT6.js} +12 -12
- package/dist/{chunk-QP33NKYC.js → chunk-R2UF54ON.js} +17 -15
- package/dist/{chunk-V2WDBOLZ.js → chunk-R2VUZZPJ.js} +11 -10
- package/dist/chunk-R5BNSOIV.js +29 -0
- package/dist/chunk-RV5VX2XW.js +29 -0
- package/dist/{chunk-FGNSESAC.js → chunk-SQBDX6IO.js} +12 -12
- package/dist/{chunk-CZCAZVTD.js → chunk-SRXYSLMW.js} +2 -2
- package/dist/{chunk-J3Q2NYJR.js → chunk-SUIZOCSY.js} +3 -2
- package/dist/{chunk-NUSXS6YB.js → chunk-T5EGSBM2.js} +4 -4
- package/dist/{chunk-FRUBVFXV.js → chunk-TBE4OLPA.js} +37 -35
- package/dist/{chunk-GQTQUNCG.js → chunk-TPMBNWHO.js} +28 -26
- package/dist/{chunk-IICERRFF.js → chunk-TRYOYWWU.js} +18 -12
- package/dist/{chunk-3HTZDY3C.js → chunk-TTGDTNSN.js} +6 -6
- package/dist/{chunk-NCLO6E6N.js → chunk-UELHWF5I.js} +139 -135
- package/dist/chunk-UG4YLCJ5.js +58 -0
- package/dist/chunk-UQ6OZYTO.js +91 -0
- package/dist/{chunk-L4Y3ROKQ.js → chunk-UY3WWW5R.js} +4 -4
- package/dist/chunk-V7IPIAE5.js +74 -0
- package/dist/{chunk-C3YRO3EU.js → chunk-VDMF7Q2P.js} +10 -10
- package/dist/{chunk-N56BNAA6.js → chunk-VI3BJMZO.js} +35 -34
- package/dist/{chunk-EY6LY2HO.js → chunk-VTXJAO5R.js} +34 -35
- package/dist/chunk-W6VLB6LL.js +145 -0
- package/dist/{chunk-AACN5GNE.js → chunk-WBXCIRVI.js} +21 -2
- package/dist/{chunk-CB7PEVOJ.js → chunk-WLD6BGON.js} +176 -60
- package/dist/{chunk-ZPM7ZIFL.js → chunk-WMCAEP2K.js} +11 -8
- package/dist/{chunk-H3BVMK47.js → chunk-WXMUGUZV.js} +21 -25
- package/dist/{chunk-QB7T2PHK.js → chunk-X33QECRJ.js} +4 -2
- package/dist/{chunk-7R5GZIA6.js → chunk-YUF4DRYB.js} +399 -308
- package/dist/{chunk-HSOBIN22.js → chunk-YVPB5YGO.js} +2 -2
- package/dist/{chunk-W7TY6HYX.js → chunk-ZRQMENT4.js} +5 -27
- package/dist/index.js +6100 -4440
- package/dist/mcp/analyze-cli.js +17 -11
- package/dist/mcp/cli.js +43 -42
- package/dist/mcp/server.js +1534 -623
- package/dist/mcp/worker.js +62 -59
- package/dist/probes/installer.js +19 -18
- package/docs/agent-guide.md +5 -2
- package/docs/agent-tools.md +17 -4
- package/docs/alignment-families.md +5 -1
- package/docs/ci.md +120 -0
- package/docs/configuration.md +30 -7
- package/docs/custom-rules.md +1 -0
- package/docs/defect-shapes.md +122 -72
- package/docs/durable-store-audit-1202.md +1 -1
- package/docs/engineering-principles.md +46 -12
- package/docs/environment-variables.md +25 -2
- package/docs/features.md +12 -2
- package/docs/globalconfig.md +13 -0
- package/docs/invariants/dispatch-runners.md +13 -0
- package/docs/invariants/language-config.md +9 -1
- package/docs/language-coverage.md +67 -1
- package/docs/lsp-capability-matrix.md +68 -23
- package/docs/lsp-idle-eviction.md +17 -13
- package/docs/module-report-read-symbol.md +2 -2
- package/docs/pi-lens-fixer.md +11 -8
- package/docs/pi-lens-merge-policy.md +6 -1
- package/docs/pi-lens-monitor.md +4 -1
- package/docs/pi-lens-release.md +22 -2
- package/docs/pi-lens-reviewer.md +60 -13
- package/docs/public-api-stability.md +41 -6
- package/docs/rfcs/5138-query-surface.md +121 -0
- package/docs/servercapabilities.md +1 -1
- package/docs/settings.md +16 -4
- package/docs/usage.md +1 -0
- package/docs/word-index.md +9 -10
- package/package.json +4 -4
- package/rules/ast-grep-rules/coderabbit/README.md +2 -0
- package/rules/ast-grep-rules/coderabbit/rules/c/security/dont-call-system-c.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/c/security/file-access-before-action-c.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/c/security/file-stat-before-action-c.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/c/security/insecure-hash-c.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/c/security/libxml2-audit-parser-c.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/c/security/null-library-function-c.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/c/security/sizeof-this-c.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/c/security/small-key-size-c.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/c/security/world-writable-file-c.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/cpp/security/dont-call-system-cpp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/cpp/security/file-access-before-action-cpp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/cpp/security/file-stat-before-action-cpp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/cpp/security/fix-format-security-error-cpp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/cpp/security/insecure-hash-cpp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/cpp/security/libxml2-audit-parser-cpp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/cpp/security/missing-nul-cpp-string-memcpy-cpp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/cpp/security/null-library-function-cpp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/cpp/security/return-c-str-cpp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/cpp/security/sizeof-this-cpp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/cpp/security/small-key-size-cpp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/cpp/security/std-return-data-cpp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/cpp/security/std-vector-invalidation-cpp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/cpp/security/string-view-temporary-string-cpp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/cpp/security/world-writable-file-cpp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/csharp/security/httponly-false-csharp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/csharp/security/insecure-binaryformatter-deserialization-csharp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/csharp/security/jwt-decode-without-verify-csharp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/csharp/security/jwt-hardcoded-secret-csharp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/csharp/security/jwt-tokenvalidationparameters-no-expiry-validation-csharp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/csharp/security/networkcredential-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/csharp/security/npgsqlconnectionstringbuilder-hardcoded-secret-csharp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/csharp/security/oracleconnectionstringbuilder-hardcoded-secret-csharp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/csharp/security/sqlconnectionstringbuilder-hardcoded-secret-csharp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/csharp/security/stacktrace-disclosure-csharp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/csharp/security/use-ecb-mode-csharp.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/go/security/avoid-bind-to-all-interfaces-go.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/go/security/gorilla-cookie-store-hardcoded-session-key-go.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/go/security/gorilla-csrf-hardcoded-auth-key-go.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/go/security/grpc-client-insecure-connection-go.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/go/security/jwt-go-none-algorithm-go.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/go/security/missing-ssl-minversion-go.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/go/security/openai-empty-secret-go.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/go/security/openai-hardcoded-secret-go.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/go/security/ssl-v3-is-insecure-go.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/go/security/tls-with-insecure-cipher-go.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/go/security/use-of-weak-rsa-key-go.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/html/security/plaintext-http-link-html.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/cbc-padding-oracle-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-httponly-false-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-missing-httponly-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-missing-samesite-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-missing-secure-flag-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-secure-flag-false-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/datanucleus-hardcoded-connection-password-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/des-is-deprecated-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/desede-is-deprecated-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/documentbuilderfactory-disallow-doctype-decl-false-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/documentbuilderfactory-external-general-entities-true-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/documentbuilderfactory-external-parameter-entities-true-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/drivermanager-hardcoded-secret-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/ecb-cipher-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/hardcoded-connection-password-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/hardcoded-secret-in-credentials-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/java-jwt-hardcoded-secret-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/jedis-jedisclientconfig-hardcoded-password-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/jedis-jedisfactory-hardcoded-password-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/missing-httponly-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/missing-secure-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/no-null-cipher-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/passwordauthentication-hardcoded-password-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/rsa-no-padding-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/simple-command-injection-direct-input-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/system-setproperty-hardcoded-secret-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/unencrypted-socket-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-aes-ecb-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-blowfish-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-default-aes-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-md5-digest-utils-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-md5-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-rc2-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-rc4-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-sha1-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/java/security/weak-ssl-context-java.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/javascript/security/detect-angular-sce-disabled-javascript.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/javascript/security/express-jwt-hardcoded-secret-javascript.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/javascript/security/express-session-hardcoded-secret-javascript.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/javascript/security/jwt-simple-noverify-javascript.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/javascript/security/node-rsa-weak-key-javascript.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/javascript/security/node-sequelize-empty-password-argument-javascript.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/javascript/security/node-sequelize-hardcoded-secret-argument-javascript.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/kotlin/security/des-is-deprecated-kotlin.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/kotlin/security/desede-is-deprecated-kotlin.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/kotlin/security/jwt-hardcode-kotlin.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/kotlin/security/rsa-no-padding-kotlin.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/kotlin/security/system-setproperty-hardcoded-secret-kotlin.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/php/security/openssl-cbc-static-iv-php.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/php/security/search-active-debug-php.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/avoid-mktemp-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/avoid_app_run_with_bad_host-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/debug-enabled-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/hashids-with-django-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/hashids-with-flask-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/insecure-cipher-algorithm-rc4-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/jwt-python-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/openai-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-cassandra-empty-password-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-cassandra-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-couchbase-empty-password-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-couchbase-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-elasticsearch-hardcoded-bearer-auth-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-ldap3-empty-password-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-ldap3-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-mariadb-empty-password-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-mariadb-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysql-empty-password-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysql-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysqlclient-empty-password-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysqlclient-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-neo4j-empty-password-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-neo4j-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-mysql-empty-password-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-mysql-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-pg-empty-password-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-pg-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-pg8000-empty-password-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-pg8000-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-psycopg2-empty-password-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-psycopg2-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-pyjwt-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymongo-empty-password-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymongo-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymssql-empty-password-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymssql-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymysql-empty-password-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymysql-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-redis-empty-password-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-redis-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-requests-empty-password-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-requests-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-requests-oauth-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-tormysql-empty-password-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-tormysql-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-urllib3-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-webrepl-empty-password-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/python/security/python-webrepl-hardcoded-secret-python.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/ruby/security/force-ssl-false-ruby.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/ruby/security/hardcoded-http-auth-in-controller-ruby.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/ruby/security/hardcoded-secret-rsa-passphrase-ruby.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/ruby/security/insufficient-rsa-key-size-ruby.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-aws-sdk-hardcoded-secret-ruby.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-cassandra-empty-password-ruby.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-cassandra-hardcoded-secret-ruby.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-excon-hardcoded-secret-ruby.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-faraday-hardcoded-secret-ruby.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mongo-empty-password-ruby.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mongo-hardcoded-secret-ruby.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mysql2-empty-password-ruby.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mysql2-hardcoded-secret-ruby.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-octokit-hardcoded-secret-ruby.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-pg-empty-password-ruby.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-pg-hardcoded-secret-ruby.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-redis-empty-password-ruby.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-redis-hardcoded-secret-ruby.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/rust/security/empty-password-rust.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/rust/security/hardcoded-password-rust.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/rust/security/postgres-empty-password-rust.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/rust/security/reqwest-accept-invalid-rust.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/rust/security/secrets-reqwest-hardcoded-auth-rust.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/rust/security/ssl-verify-none-rust.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/rust/security/tokio-postgres-empty-password-rust.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/rust/security/tokio-postgres-hardcoded-password-rust.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/scala/security/jwt-scala-hardcode-scala.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/scala/security/scala-jwt-hardcoded-secret-scala.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/swift/security/aes-hardcoded-secret-swift.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/swift/security/blowfish-hardcoded-secret-swift.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/swift/security/chacha20-hardcoded-secret-swift.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/swift/security/insecure-biometrics-swift.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/swift/security/rabbit-hardcoded-secret-swift.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/typescript/security/detect-angular-sce-disabled-typescript.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/typescript/security/express-session-hardcoded-secret-typescript.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/typescript/security/jwt-simple-noverify-typescript.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/typescript/security/node-rsa-weak-key-typescript.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/typescript/security/node-sequelize-empty-password-argument-typescript.yml +2 -1
- package/rules/ast-grep-rules/coderabbit/rules/typescript/security/node-sequelize-hardcoded-secret-argument-typescript.yml +2 -1
- package/rules/ast-grep-rules/rule-schema.json +1 -1
- package/rules/ast-grep-rules/rules/c-no-malloc-free.yml +13 -12
- package/rules/ast-grep-rules/rules/cpp-no-malloc-free.yml +11 -10
- package/rules/ast-grep-rules/rules/cpp-no-printf.yml +10 -9
- package/rules/ast-grep-rules/rules/go-defer-func-call-antipattern.yml +14 -13
- package/rules/ast-grep-rules/rules/go-no-fmt-println.yml +14 -13
- package/rules/ast-grep-rules/rules/go-no-panic-in-lib.yml +20 -19
- package/rules/ast-grep-rules/rules/go-no-underscore-func-name.yml +14 -13
- package/rules/ast-grep-rules/rules/go-prefer-errors-is.yml +14 -13
- package/rules/ast-grep-rules/rules/go-prefer-string-builder.yml +19 -18
- package/rules/ast-grep-rules/rules/go-test-functions.yml +14 -13
- package/rules/ast-grep-rules/rules/hyphenated-svg-attribute.yml +10 -9
- package/rules/ast-grep-rules/rules/kotlin-no-lateinit.yml +12 -11
- package/rules/ast-grep-rules/rules/kotlin-no-nullable-boolean.yml +11 -10
- package/rules/ast-grep-rules/rules/kotlin-no-println.yml +15 -14
- package/rules/ast-grep-rules/rules/kotlin-no-unnecessary-let.yml +10 -9
- package/rules/ast-grep-rules/rules/kotlin-no-unsafe-cast.yml +10 -9
- package/rules/ast-grep-rules/rules/kotlin-no-var.yml +11 -10
- package/rules/ast-grep-rules/rules/kotlin-prefer-data-class.yml +10 -9
- package/rules/ast-grep-rules/rules/kotlin-prefer-is-empty.yml +10 -9
- package/rules/ast-grep-rules/rules/no-aws-access-key-literal.yml +1 -1
- package/rules/ast-grep-rules/rules/no-compile-call.yml +13 -12
- package/rules/ast-grep-rules/rules/no-flask-secret-key-literal.yml +1 -1
- package/rules/ast-grep-rules/rules/no-hardcoded-password.yml +1 -1
- package/rules/ast-grep-rules/rules/no-marshal-load.yml +12 -11
- package/rules/ast-grep-rules/rules/no-python-sql-string-concat.yml +12 -11
- package/rules/ast-grep-rules/rules/no-requests-verify-false.yml +13 -12
- package/rules/ast-grep-rules/rules/no-secret-in-env-var-name.yml +1 -1
- package/rules/ast-grep-rules/rules/python-optional-type.yml +9 -8
- package/rules/ast-grep-rules/rules/reducible-list-comprehension.yml +8 -7
- package/rules/ast-grep-rules/rules/ruby-detect-path-traversal.yml +14 -13
- package/rules/ast-grep-rules/rules/ruby-symbol-to-proc-candidate.yml +8 -7
- package/rules/ast-grep-rules/rules/rust-no-chars-enumerate.yml +9 -8
- package/rules/ast-grep-rules/rules-disabled/gorm-unbounded-preload.yml +7 -6
- package/rules/ast-grep-rules/rules-disabled/shadow-err-variable.yml +6 -5
- package/scripts/analyze-pi-lens-logs.mjs +262 -3
- package/scripts/download-grammars.js +10 -0
- package/scripts/grammars.lock.json +7 -0
- package/scripts/lib/latency-log-phases.mjs +125 -0
- package/vendor/grammars/tree-sitter-groovy.wasm +0 -0
- package/dist/chunk-H6FLQ5NW.js +0 -28
- package/dist/chunk-KR5VGMVT.js +0 -25
- package/dist/chunk-Q6JQKWPK.js +0 -25
- package/dist/chunk-QJJKOHLH.js +0 -57
- package/dist/chunk-TGQDAG4B.js +0 -88
- package/dist/chunk-TYHPVE5H.js +0 -25
- package/dist/chunk-UAKO2M6B.js +0 -73
- package/dist/chunk-UC5AXW5Z.js +0 -20
- package/dist/chunk-UTJP6WOS.js +0 -28
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-S26LC76R.js";
|
|
7
7
|
import {
|
|
8
8
|
logLatency
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-K2GV34T2.js";
|
|
10
10
|
import {
|
|
11
11
|
isWindowsPath,
|
|
12
12
|
nameMatchesMarkerGlob,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
realpathOrResolve,
|
|
15
15
|
toPosix,
|
|
16
16
|
walkUpDirs
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-WLD6BGON.js";
|
|
18
18
|
|
|
19
19
|
// dist/clients/workspace-topology.js
|
|
20
20
|
import * as fs2 from "node:fs";
|
|
@@ -73,8 +73,14 @@ var DECLARED_LEGACY_FILE_SURFACES = [
|
|
|
73
73
|
...PROJECT_CONFIG_LOCATIONS,
|
|
74
74
|
...GLOBAL_CONFIG_LOCATIONS
|
|
75
75
|
].filter((location) => location.legacy).map((location) => location.surface);
|
|
76
|
-
function configSearchDirs(startDir, homeDir = os.homedir()) {
|
|
77
|
-
|
|
76
|
+
function configSearchDirs(startDir, homeDir = os.homedir(), stopAtGitRoot = false) {
|
|
77
|
+
const dirs = [];
|
|
78
|
+
for (const dir of walkUpDirs(startDir, { homeDir })) {
|
|
79
|
+
dirs.push(dir);
|
|
80
|
+
if (stopAtGitRoot && fs.existsSync(path.join(dir, ".git")))
|
|
81
|
+
break;
|
|
82
|
+
}
|
|
83
|
+
return dirs;
|
|
78
84
|
}
|
|
79
85
|
function defaultGlobalConfigExists(file) {
|
|
80
86
|
try {
|
|
@@ -7,31 +7,32 @@ import {
|
|
|
7
7
|
extractForwardImportPaths,
|
|
8
8
|
extractForwardImports,
|
|
9
9
|
sweepInlineBlockerFreshness
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-532X3OCZ.js";
|
|
11
|
+
import "./chunk-6XNVY3FW.js";
|
|
12
|
+
import "./chunk-7424ANRU.js";
|
|
13
|
+
import "./chunk-SUIZOCSY.js";
|
|
14
|
+
import "./chunk-OC4ZGVMH.js";
|
|
15
15
|
import "./chunk-Z54ZSOBZ.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-WTB4GKMH.js";
|
|
16
|
+
import "./chunk-5YTDZ5WP.js";
|
|
17
|
+
import "./chunk-E3PNZDPH.js";
|
|
19
18
|
import "./chunk-CKEQFGLT.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-AYDE7RFV.js";
|
|
20
|
+
import "./chunk-ZRQMENT4.js";
|
|
21
|
+
import "./chunk-3HZ6MNB2.js";
|
|
22
|
+
import "./chunk-WBXCIRVI.js";
|
|
23
|
+
import "./chunk-DNB4ZQGN.js";
|
|
24
|
+
import "./chunk-SRXYSLMW.js";
|
|
25
|
+
import "./chunk-6EIV3H7O.js";
|
|
26
|
+
import "./chunk-3R3Z54J7.js";
|
|
27
|
+
import "./chunk-CIA7X2PZ.js";
|
|
28
|
+
import "./chunk-43KD3PPM.js";
|
|
29
|
+
import "./chunk-AGEQRJ5A.js";
|
|
29
30
|
import {
|
|
30
31
|
MTIME_DRIFT_TOLERANCE_MS
|
|
31
32
|
} from "./chunk-S26LC76R.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-K2GV34T2.js";
|
|
33
34
|
import "./chunk-LJDODBBZ.js";
|
|
34
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-WLD6BGON.js";
|
|
35
36
|
import "./chunk-NXL4FFQQ.js";
|
|
36
37
|
export {
|
|
37
38
|
DEPENDENCY_DRIFT_MAX_DELIVERIES,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
AgentBehaviorClient,
|
|
4
|
+
agentBehaviorClient,
|
|
5
|
+
toolCallProgress
|
|
6
|
+
} from "./chunk-PSUXESQ5.js";
|
|
7
|
+
import "./chunk-AOQKQWZU.js";
|
|
8
|
+
import "./chunk-DNB4ZQGN.js";
|
|
9
|
+
import "./chunk-6EIV3H7O.js";
|
|
10
|
+
import "./chunk-3R3Z54J7.js";
|
|
11
|
+
import "./chunk-43KD3PPM.js";
|
|
12
|
+
import "./chunk-AGEQRJ5A.js";
|
|
13
|
+
import "./chunk-S26LC76R.js";
|
|
14
|
+
import "./chunk-K2GV34T2.js";
|
|
15
|
+
import "./chunk-LJDODBBZ.js";
|
|
16
|
+
import "./chunk-WLD6BGON.js";
|
|
17
|
+
import "./chunk-NXL4FFQQ.js";
|
|
18
|
+
export {
|
|
19
|
+
AgentBehaviorClient,
|
|
20
|
+
agentBehaviorClient,
|
|
21
|
+
toolCallProgress
|
|
22
|
+
};
|
|
@@ -1,59 +1,64 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
buildModuleGraph
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6XNVY3FW.js";
|
|
5
5
|
import {
|
|
6
6
|
aliasedImportTargets,
|
|
7
7
|
referencedProjectImportTarget
|
|
8
|
-
} from "./chunk-
|
|
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-
|
|
16
|
-
import {
|
|
17
|
-
EXTENSION_TO_GRAMMAR,
|
|
18
|
-
KIND_TO_GRAMMAR
|
|
19
|
-
} from "./chunk-WTB4GKMH.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
|
-
|
|
20
|
+
EXTENSION_TO_GRAMMAR,
|
|
21
|
+
KIND_TO_GRAMMAR
|
|
22
|
+
} from "./chunk-AYDE7RFV.js";
|
|
23
|
+
import {
|
|
25
24
|
toRunnerDisplayPath
|
|
26
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-ZRQMENT4.js";
|
|
27
26
|
import {
|
|
28
27
|
bounded
|
|
29
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-3HZ6MNB2.js";
|
|
30
29
|
import {
|
|
30
|
+
LSP_QUERY_MAX_FILE_LINES_MAX,
|
|
31
|
+
getGlobalLspQueryMaxFileLines,
|
|
31
32
|
loadPiLensGlobalConfig
|
|
32
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-DNB4ZQGN.js";
|
|
33
34
|
import {
|
|
34
35
|
isFileKind
|
|
35
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-SRXYSLMW.js";
|
|
36
37
|
import {
|
|
37
38
|
isDeclarationFile
|
|
38
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-6EIV3H7O.js";
|
|
40
|
+
import {
|
|
41
|
+
hashContentBytes
|
|
42
|
+
} from "./chunk-CIA7X2PZ.js";
|
|
39
43
|
import {
|
|
40
44
|
incrementDegradationCount,
|
|
41
45
|
recordDegradationOnce
|
|
42
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-AGEQRJ5A.js";
|
|
43
47
|
import {
|
|
44
48
|
freshnessFromMtime
|
|
45
49
|
} from "./chunk-S26LC76R.js";
|
|
46
50
|
import {
|
|
47
51
|
toPositiveFinite
|
|
48
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-K2GV34T2.js";
|
|
49
53
|
import {
|
|
50
54
|
BoundedFifoMap,
|
|
51
55
|
BoundedLruCache,
|
|
52
56
|
isUnderDir,
|
|
57
|
+
isWithinForm,
|
|
53
58
|
normalizeEphemeralMapKey,
|
|
54
59
|
normalizeMapKey,
|
|
55
60
|
walkUpDirs
|
|
56
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-WLD6BGON.js";
|
|
57
62
|
|
|
58
63
|
// dist/clients/blocker-freshness.js
|
|
59
64
|
import * as fs4 from "node:fs";
|
|
@@ -98,6 +103,12 @@ var RUNTIME_CONFIG = {
|
|
|
98
103
|
pipeline: {
|
|
99
104
|
lspMaxFileBytes: 2 * 1024 * 1024,
|
|
100
105
|
lspMaxFileLines: 5e3,
|
|
106
|
+
// #5306: hard cap (ms) on the per-server diagnostics wait of the explicit
|
|
107
|
+
// single-file `lens_diagnostics source=lsp` query when it passes an explicit
|
|
108
|
+
// `waitMs` (`LSPTouchFileOptions.explicitQuery`). 30 s covers clangd on a
|
|
109
|
+
// 20,000-line file (~11 s measured, investigation #5306) with margin, and
|
|
110
|
+
// keeps one tool call from parking a turn for an arbitrary caller-chosen time.
|
|
111
|
+
lspExplicitQueryMaxWaitMs: 3e4,
|
|
101
112
|
cascadeMaxFiles: 5,
|
|
102
113
|
cascadeMaxDiagnosticsPerFile: 20,
|
|
103
114
|
// Hard cap on how long the pipeline will wait for an LSP client to spawn.
|
|
@@ -196,23 +207,39 @@ function lineTextAt(content, line) {
|
|
|
196
207
|
// dist/clients/lsp/content-limits.js
|
|
197
208
|
var LSP_MAX_FILE_BYTES = RUNTIME_CONFIG.pipeline.lspMaxFileBytes;
|
|
198
209
|
var LSP_MAX_FILE_LINES = RUNTIME_CONFIG.pipeline.lspMaxFileLines;
|
|
199
|
-
function exceedsLspSyncLimits(content) {
|
|
210
|
+
function exceedsLspSyncLimits(content, maxLines = LSP_MAX_FILE_LINES) {
|
|
200
211
|
const sizeBytes = Buffer.byteLength(content, "utf-8");
|
|
201
212
|
if (sizeBytes > LSP_MAX_FILE_BYTES) {
|
|
202
213
|
return {
|
|
203
214
|
tooLarge: true,
|
|
204
|
-
reason: `${sizeBytes} bytes > ${LSP_MAX_FILE_BYTES} limit
|
|
215
|
+
reason: `${sizeBytes} bytes > ${LSP_MAX_FILE_BYTES} limit`,
|
|
216
|
+
bound: "bytes"
|
|
205
217
|
};
|
|
206
218
|
}
|
|
207
219
|
const lineCount = countLfNewlines(content) + 1;
|
|
208
|
-
if (lineCount >
|
|
220
|
+
if (lineCount > maxLines) {
|
|
209
221
|
return {
|
|
210
222
|
tooLarge: true,
|
|
211
|
-
reason: `${lineCount} lines > ${
|
|
223
|
+
reason: `${lineCount} lines > ${maxLines} limit`,
|
|
224
|
+
bound: "lines"
|
|
212
225
|
};
|
|
213
226
|
}
|
|
214
227
|
return { tooLarge: false, reason: "" };
|
|
215
228
|
}
|
|
229
|
+
function exceedsExplicitQueryLimits(content) {
|
|
230
|
+
const shared = exceedsLspSyncLimits(content);
|
|
231
|
+
if (shared.bound !== "lines")
|
|
232
|
+
return shared;
|
|
233
|
+
const maxLines = getGlobalLspQueryMaxFileLines() ?? LSP_MAX_FILE_LINES;
|
|
234
|
+
const verdict = exceedsLspSyncLimits(content, maxLines);
|
|
235
|
+
if (!verdict.tooLarge || maxLines >= LSP_QUERY_MAX_FILE_LINES_MAX) {
|
|
236
|
+
return verdict;
|
|
237
|
+
}
|
|
238
|
+
return {
|
|
239
|
+
...verdict,
|
|
240
|
+
reason: `${verdict.reason}; this single-file query can raise its line limit with lsp.queryMaxFileLines in the user-level pi-lens config (up to ${LSP_QUERY_MAX_FILE_LINES_MAX})`
|
|
241
|
+
};
|
|
242
|
+
}
|
|
216
243
|
|
|
217
244
|
// dist/clients/lsp/implicit-scope.js
|
|
218
245
|
function isGoSourceFile(filePath) {
|
|
@@ -1237,6 +1264,70 @@ var SYMBOL_QUERIES = {
|
|
|
1237
1264
|
name: (command_name (word) @callIdent)) @callRef
|
|
1238
1265
|
`
|
|
1239
1266
|
},
|
|
1267
|
+
// #5235: tree-sitter-groovy (dekobon v0.3.0, vendored as is). Node names
|
|
1268
|
+
// were probed against the committed wasm. A Spock feature name
|
|
1269
|
+
// (`def "adds two numbers"()`) parses as `quoted_identifier`, so the method
|
|
1270
|
+
// name keeps its quotes. Named closures are limited to class fields and
|
|
1271
|
+
// top-level script variables: a method-local `def c = {}` is also a
|
|
1272
|
+
// `local_variable_declaration`, and listing it would put locals in the
|
|
1273
|
+
// module outline. Closure-taking calls (`list.each { }`, DSL blocks) parse
|
|
1274
|
+
// as sibling statements or `command_chain`, not `method_invocation`, so
|
|
1275
|
+
// they yield no call ref; only `foo(1)`, `a.b(2)` and `new X()` do. The
|
|
1276
|
+
// grammar's known parse gaps are in docs/language-coverage.md.
|
|
1277
|
+
groovy: {
|
|
1278
|
+
defs: `
|
|
1279
|
+
(class_declaration
|
|
1280
|
+
name: (identifier) @className) @classDef
|
|
1281
|
+
|
|
1282
|
+
(trait_declaration
|
|
1283
|
+
name: (identifier) @className) @classDef
|
|
1284
|
+
|
|
1285
|
+
(enum_declaration
|
|
1286
|
+
name: (identifier) @className) @classDef
|
|
1287
|
+
|
|
1288
|
+
(record_declaration
|
|
1289
|
+
name: (identifier) @className) @classDef
|
|
1290
|
+
|
|
1291
|
+
(interface_declaration
|
|
1292
|
+
name: (identifier) @interfaceName) @interfaceDef
|
|
1293
|
+
|
|
1294
|
+
(method_declaration
|
|
1295
|
+
name: [(identifier) (quoted_identifier)] @methodName
|
|
1296
|
+
parameters: (formal_parameters) @methodParams) @methodDef
|
|
1297
|
+
|
|
1298
|
+
(constructor_declaration
|
|
1299
|
+
name: (identifier) @funcName
|
|
1300
|
+
parameters: (formal_parameters) @funcParams) @funcDef
|
|
1301
|
+
|
|
1302
|
+
(field_declaration
|
|
1303
|
+
(variable_declarator
|
|
1304
|
+
name: (identifier) @arrowName
|
|
1305
|
+
value: (closure))) @arrowDef
|
|
1306
|
+
|
|
1307
|
+
(source_file
|
|
1308
|
+
(local_variable_declaration
|
|
1309
|
+
(variable_declarator
|
|
1310
|
+
name: (identifier) @arrowName
|
|
1311
|
+
value: (closure))) @arrowDef)
|
|
1312
|
+
`,
|
|
1313
|
+
refs: `
|
|
1314
|
+
(method_invocation
|
|
1315
|
+
function: (identifier) @callIdent) @callRef
|
|
1316
|
+
|
|
1317
|
+
(method_invocation
|
|
1318
|
+
function: (field_access
|
|
1319
|
+
field: (identifier) @callMethod)) @callMethodRef
|
|
1320
|
+
|
|
1321
|
+
(object_creation_expression
|
|
1322
|
+
type: (type_identifier) @newIdent) @newRef
|
|
1323
|
+
|
|
1324
|
+
(object_creation_expression
|
|
1325
|
+
type: (generic_type
|
|
1326
|
+
base: (type_identifier) @newIdent)) @newRef
|
|
1327
|
+
|
|
1328
|
+
(type_identifier) @typeIdent
|
|
1329
|
+
`
|
|
1330
|
+
},
|
|
1240
1331
|
// #1522: tree-sitter-cue (eonpatapon/tree-sitter-cue, vendored per #1520) has
|
|
1241
1332
|
// no `label:`/`value:` field names on `field` — verified directly against the
|
|
1242
1333
|
// committed wasm (`value:` fails query compilation with "Bad field name");
|
|
@@ -1435,6 +1526,9 @@ var IMPORT_QUERIES = {
|
|
|
1435
1526
|
(word) @importSource
|
|
1436
1527
|
(#match? @_m "^(source|\\.)$"))
|
|
1437
1528
|
`,
|
|
1529
|
+
// import a.b.C / import static a.b.C.m / import a.b.* — `name:` is the
|
|
1530
|
+
// qualified_name on every form, aliases (`as X`) included (#5235).
|
|
1531
|
+
groovy: `(import_declaration name: (qualified_name) @importSource)`,
|
|
1438
1532
|
// import "strings" / import x "encoding/json" — `import_spec`'s `path:`
|
|
1439
1533
|
// field is verified against the committed wasm. Block-form
|
|
1440
1534
|
// (`import (\n\t"strings"\n)`) nests each `import_spec` one level deeper,
|
|
@@ -1975,8 +2069,7 @@ function createImplicitScopeCheck(runtime, cwd) {
|
|
|
1975
2069
|
return role;
|
|
1976
2070
|
};
|
|
1977
2071
|
const rootKey = normalizeMapKey(nodePath.resolve(cwd));
|
|
1978
|
-
const
|
|
1979
|
-
const inRoot = (file) => file === rootKey || file.startsWith(rootPrefix);
|
|
2072
|
+
const inRoot = (file) => isWithinForm(file, rootKey);
|
|
1980
2073
|
let scanned;
|
|
1981
2074
|
const feeding = [];
|
|
1982
2075
|
let newestUnknownTs = Number.NEGATIVE_INFINITY;
|
|
@@ -2477,6 +2570,7 @@ export {
|
|
|
2477
2570
|
scanDocumentContent,
|
|
2478
2571
|
lineTextAt,
|
|
2479
2572
|
exceedsLspSyncLimits,
|
|
2573
|
+
exceedsExplicitQueryLimits,
|
|
2480
2574
|
loadAstGrepNapi,
|
|
2481
2575
|
isGoSourceFile,
|
|
2482
2576
|
goPackageFiles,
|
|
@@ -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-
|
|
4
|
+
} from "./chunk-QAM2Q3VO.js";
|
|
5
5
|
import {
|
|
6
6
|
isTestRoleCollateral
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ME6MF2N2.js";
|
|
8
8
|
import "./chunk-3MED75HT.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
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-
|
|
15
|
+
import "./chunk-K2GV34T2.js";
|
|
16
16
|
import "./chunk-LJDODBBZ.js";
|
|
17
|
-
import "./chunk-
|
|
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-
|
|
4
|
+
} from "./chunk-DNB4ZQGN.js";
|
|
5
5
|
import {
|
|
6
6
|
getTurnId
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-K2GV34T2.js";
|
|
8
8
|
import {
|
|
9
9
|
BoundedFifoMap
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WLD6BGON.js";
|
|
11
11
|
|
|
12
12
|
// dist/clients/custom-rule-locations.js
|
|
13
13
|
import * as path from "node:path";
|