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
|
@@ -1,86 +1,92 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
nestedWorktreeOffsets
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-D5L7Q57Z.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
parseReportJson,
|
|
7
|
+
runReportScan
|
|
8
|
+
} from "./chunk-DPDA3ILA.js";
|
|
9
|
+
import "./chunk-LHCDWFDB.js";
|
|
8
10
|
import {
|
|
9
11
|
createAvailabilityChecker,
|
|
10
12
|
findManagedNodeToolBinary,
|
|
11
13
|
resolveAvailableOrInstall
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-QGITU23N.js";
|
|
25
|
-
import "./chunk-WTB4GKMH.js";
|
|
26
|
-
import "./chunk-RTFMDIKV.js";
|
|
14
|
+
} from "./chunk-UELHWF5I.js";
|
|
15
|
+
import "./chunk-YUF4DRYB.js";
|
|
16
|
+
import "./chunk-DBAHJFBU.js";
|
|
17
|
+
import "./chunk-2SD2CGVH.js";
|
|
18
|
+
import "./chunk-NLRKB32C.js";
|
|
19
|
+
import "./chunk-QJ4T73J5.js";
|
|
20
|
+
import "./chunk-HTUG7ZFK.js";
|
|
21
|
+
import "./chunk-7424ANRU.js";
|
|
22
|
+
import "./chunk-SUIZOCSY.js";
|
|
23
|
+
import "./chunk-5YTDZ5WP.js";
|
|
24
|
+
import "./chunk-E3PNZDPH.js";
|
|
25
|
+
import "./chunk-KNP4ENFT.js";
|
|
27
26
|
import "./chunk-CKEQFGLT.js";
|
|
28
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-LXE7JAMV.js";
|
|
29
28
|
import {
|
|
30
29
|
getJscpdMaxEntriesDerived
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
30
|
+
} from "./chunk-IT7MFVGP.js";
|
|
31
|
+
import "./chunk-AYDE7RFV.js";
|
|
32
|
+
import "./chunk-W6VLB6LL.js";
|
|
33
|
+
import "./chunk-3HZ6MNB2.js";
|
|
33
34
|
import "./chunk-2BEMIWEW.js";
|
|
34
35
|
import "./chunk-IJYGIDF4.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-ITAPXBIB.js";
|
|
37
|
+
import "./chunk-JSQK5DH3.js";
|
|
37
38
|
import {
|
|
38
39
|
findNodeToolBinary
|
|
39
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-FVEEEEIM.js";
|
|
40
41
|
import {
|
|
41
42
|
getIsolatedNpxSpawnOptions
|
|
42
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-OP5BMZKK.js";
|
|
43
44
|
import "./chunk-UYXV5NIS.js";
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-WBXCIRVI.js";
|
|
46
|
+
import "./chunk-TTGDTNSN.js";
|
|
47
|
+
import "./chunk-34RXPR7M.js";
|
|
48
|
+
import "./chunk-3NVGBFJS.js";
|
|
48
49
|
import {
|
|
49
50
|
shouldRecurseIntoDir,
|
|
50
51
|
walkTreeStackSync
|
|
51
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-C2REOMPO.js";
|
|
52
53
|
import {
|
|
53
54
|
getExcludedDirGlobs,
|
|
54
55
|
getProjectIgnoreGlobs,
|
|
55
56
|
getProjectIgnoreMatcher,
|
|
56
57
|
safeSpawnAsync
|
|
57
|
-
} from "./chunk-
|
|
58
|
-
import "./chunk-
|
|
58
|
+
} from "./chunk-DNB4ZQGN.js";
|
|
59
|
+
import "./chunk-B4FAFEBP.js";
|
|
59
60
|
import "./chunk-QYF5S6P6.js";
|
|
60
|
-
import
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
import
|
|
61
|
+
import {
|
|
62
|
+
isJstsFactFile
|
|
63
|
+
} from "./chunk-SRXYSLMW.js";
|
|
64
|
+
import {
|
|
65
|
+
isDeclarationFile
|
|
66
|
+
} from "./chunk-6EIV3H7O.js";
|
|
67
|
+
import "./chunk-3R3Z54J7.js";
|
|
68
|
+
import "./chunk-CIA7X2PZ.js";
|
|
69
|
+
import "./chunk-43KD3PPM.js";
|
|
64
70
|
import {
|
|
65
71
|
createSubsystemLogger,
|
|
66
72
|
incrementDegradationCount
|
|
67
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-AGEQRJ5A.js";
|
|
68
74
|
import "./chunk-S26LC76R.js";
|
|
69
|
-
import "./chunk-
|
|
75
|
+
import "./chunk-K2GV34T2.js";
|
|
70
76
|
import "./chunk-LJDODBBZ.js";
|
|
71
77
|
import {
|
|
72
78
|
isAtOrAboveHomeDir,
|
|
73
79
|
isFullyQualified,
|
|
74
80
|
realpathOrResolve,
|
|
75
81
|
toPosix
|
|
76
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-WLD6BGON.js";
|
|
77
83
|
import "./chunk-NXL4FFQQ.js";
|
|
78
84
|
|
|
79
85
|
// dist/clients/jscpd-client.js
|
|
80
86
|
import * as fs from "node:fs";
|
|
81
|
-
import { mkdtempSync } from "node:fs";
|
|
82
87
|
import * as os from "node:os";
|
|
83
88
|
import * as path from "node:path";
|
|
89
|
+
var JSCPD_WALK_OTHER_SOURCE = /\.(py|pyi|java|go|rs|rb|php|swift|kt|kts|dart|lua|scala|c|h|cpp|cc|cxx|hpp|hxx|cs|m|mm)$/;
|
|
84
90
|
var EMPTY_RESULT = {
|
|
85
91
|
success: false,
|
|
86
92
|
clones: [],
|
|
@@ -204,8 +210,8 @@ var JscpdClient = class {
|
|
|
204
210
|
}
|
|
205
211
|
if (!entry.isFile())
|
|
206
212
|
return "skip";
|
|
207
|
-
if (
|
|
208
|
-
if (entry.name
|
|
213
|
+
if (isJstsFactFile(entry.name) || JSCPD_WALK_OTHER_SOURCE.test(entry.name)) {
|
|
214
|
+
if (isDeclarationFile(entry.name))
|
|
209
215
|
return "skip";
|
|
210
216
|
if (ignoreMatcher.isIgnored(fullPath, false))
|
|
211
217
|
return "skip";
|
|
@@ -289,104 +295,95 @@ var JscpdClient = class {
|
|
|
289
295
|
this.inFlight.set(key, promise);
|
|
290
296
|
return promise;
|
|
291
297
|
}
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
}
|
|
315
|
-
const bin = await findNodeToolBinary("jscpd", cwd);
|
|
316
|
-
const { cmd, prefix } = bin ? { cmd: bin, prefix: [] } : this.jscpdManagedPath ? { cmd: this.jscpdManagedPath, prefix: [] } : { cmd: "npx", prefix: ["jscpd"] };
|
|
317
|
-
const config = readProjectJscpdConfig(cwd);
|
|
318
|
-
const worktreeGlobs = worktreeIgnoreGlobs(cwd);
|
|
319
|
-
let patterns;
|
|
320
|
-
if (config === null) {
|
|
321
|
-
patterns = [...baseIgnores, ...worktreeGlobs];
|
|
322
|
-
} else if (worktreeGlobs.length > 0) {
|
|
323
|
-
if (config.ignoreList === null) {
|
|
324
|
-
incrementDegradationCount({
|
|
325
|
-
kind: "scan-worktree-exclusion-skipped",
|
|
326
|
-
subject: "jscpd",
|
|
327
|
-
reason: `config-ignore-unreadable: ${worktreeGlobs.length} linked worktree(s) under ${cwd} not ignored`
|
|
328
|
-
});
|
|
329
|
-
} else {
|
|
330
|
-
patterns = [...config.ignoreList, ...worktreeGlobs];
|
|
298
|
+
runScan(cwd, minLines, minTokens, isTsProject) {
|
|
299
|
+
let command = "jscpd";
|
|
300
|
+
return runReportScan("jscpd", {
|
|
301
|
+
spawn: async ({ outDir }) => {
|
|
302
|
+
const baseIgnores = [
|
|
303
|
+
...getExcludedDirGlobs(),
|
|
304
|
+
...getProjectIgnoreGlobs(cwd),
|
|
305
|
+
"**/*.md",
|
|
306
|
+
"**/*.txt",
|
|
307
|
+
"**/*.json",
|
|
308
|
+
"**/*.yaml",
|
|
309
|
+
"**/*.yml",
|
|
310
|
+
"**/*.toml",
|
|
311
|
+
"**/*.lock",
|
|
312
|
+
"**/*.test.*",
|
|
313
|
+
"**/*.spec.*",
|
|
314
|
+
"**/*.poc.test.*",
|
|
315
|
+
"**/__tests__/**",
|
|
316
|
+
"**/tests/**"
|
|
317
|
+
];
|
|
318
|
+
if (isTsProject) {
|
|
319
|
+
baseIgnores.push("**/*.js", "**/*.jsx");
|
|
331
320
|
}
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
// (#4268 acceptance 3); local/managed jscpd keeps the project cwd.
|
|
351
|
-
cwd,
|
|
352
|
-
...cmd === "npx" ? getIsolatedNpxSpawnOptions() : {}
|
|
353
|
-
});
|
|
354
|
-
if (result.error) {
|
|
355
|
-
this.log(`Scan error: ${result.error.message}`);
|
|
356
|
-
return { ...EMPTY_RESULT };
|
|
357
|
-
}
|
|
358
|
-
const reportPath = path.join(outDir, "jscpd-report.json");
|
|
359
|
-
if (!fs.existsSync(reportPath)) {
|
|
360
|
-
if (result.status !== 0) {
|
|
361
|
-
const reason = formatToolFailure({
|
|
362
|
-
tool: "jscpd",
|
|
363
|
-
status: result.status,
|
|
364
|
-
signal: result.signal,
|
|
365
|
-
stderr: result.stderr,
|
|
366
|
-
reportMissing: true,
|
|
367
|
-
fields: { command: cmd }
|
|
368
|
-
});
|
|
369
|
-
this.log(reason);
|
|
370
|
-
incrementDegradationCount({
|
|
371
|
-
kind: "runner-empty-result",
|
|
372
|
-
subject: "jscpd",
|
|
373
|
-
reason
|
|
374
|
-
});
|
|
375
|
-
return { ...EMPTY_RESULT };
|
|
321
|
+
const bin = await findNodeToolBinary("jscpd", cwd);
|
|
322
|
+
const { cmd, prefix } = bin ? { cmd: bin, prefix: [] } : this.jscpdManagedPath ? { cmd: this.jscpdManagedPath, prefix: [] } : { cmd: "npx", prefix: ["jscpd"] };
|
|
323
|
+
command = cmd;
|
|
324
|
+
const config = readProjectJscpdConfig(cwd);
|
|
325
|
+
const worktreeGlobs = worktreeIgnoreGlobs(cwd);
|
|
326
|
+
let patterns;
|
|
327
|
+
if (config === null) {
|
|
328
|
+
patterns = [...baseIgnores, ...worktreeGlobs];
|
|
329
|
+
} else if (worktreeGlobs.length > 0) {
|
|
330
|
+
if (config.ignoreList === null) {
|
|
331
|
+
incrementDegradationCount({
|
|
332
|
+
kind: "scan-worktree-exclusion-skipped",
|
|
333
|
+
subject: "jscpd",
|
|
334
|
+
reason: `config-ignore-unreadable: ${worktreeGlobs.length} linked worktree(s) under ${cwd} not ignored`
|
|
335
|
+
});
|
|
336
|
+
} else {
|
|
337
|
+
patterns = [...config.ignoreList, ...worktreeGlobs];
|
|
338
|
+
}
|
|
376
339
|
}
|
|
377
|
-
return
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
340
|
+
return safeSpawnAsync(cmd, [
|
|
341
|
+
...prefix,
|
|
342
|
+
".",
|
|
343
|
+
...config === null ? [
|
|
344
|
+
"--min-lines",
|
|
345
|
+
String(minLines),
|
|
346
|
+
"--min-tokens",
|
|
347
|
+
String(minTokens)
|
|
348
|
+
] : [],
|
|
349
|
+
"--reporters",
|
|
350
|
+
"json",
|
|
351
|
+
"--output",
|
|
352
|
+
outDir,
|
|
353
|
+
...patterns === void 0 ? [] : ["--ignore", patterns.join(",")]
|
|
354
|
+
], {
|
|
355
|
+
timeout: SCAN_TIMEOUT_MS,
|
|
356
|
+
// A cache-only npx fallback must not read the project's `.npmrc`
|
|
357
|
+
// (#4268 acceptance 3); local/managed jscpd keeps the project cwd.
|
|
358
|
+
cwd,
|
|
359
|
+
...cmd === "npx" ? getIsolatedNpxSpawnOptions() : {}
|
|
360
|
+
});
|
|
361
|
+
},
|
|
362
|
+
// #3600: the lifecycle stamps `scannedAt` before the spawn, so a widget
|
|
363
|
+
// row's freshness is judged against the run's own read time. The exit
|
|
364
|
+
// code is not part of the verdict here: #1736's measured table (jscpd
|
|
365
|
+
// 3.5.10) is now the lifecycle's, and a report that exists is parsed
|
|
366
|
+
// whatever the exit.
|
|
367
|
+
parse: (raw, scannedAt) => ({
|
|
368
|
+
...this.parseReport(raw),
|
|
369
|
+
scannedAt
|
|
370
|
+
}),
|
|
371
|
+
// jscpd's result carries no summary: the reason an agent can read is the
|
|
372
|
+
// `runner-empty-result` row `recordFailure` writes. A zero exit that wrote
|
|
373
|
+
// no report stays a successful empty run (#1736's measured table), so the
|
|
374
|
+
// arm follows the lifecycle's verdict instead of calling every cell failed.
|
|
375
|
+
fail: (failure) => ({
|
|
376
|
+
...EMPTY_RESULT,
|
|
377
|
+
success: failure.success === true
|
|
378
|
+
}),
|
|
379
|
+
recordFailure: (failure) => incrementDegradationCount({
|
|
380
|
+
kind: "runner-empty-result",
|
|
381
|
+
subject: "jscpd",
|
|
382
|
+
reason: failure.summary
|
|
383
|
+
}),
|
|
384
|
+
failureFields: () => ({ command }),
|
|
385
|
+
log: this.log
|
|
386
|
+
});
|
|
390
387
|
}
|
|
391
388
|
formatResult(result, maxClones = 8) {
|
|
392
389
|
if (!result.success || result.clones.length === 0)
|
|
@@ -407,40 +404,35 @@ var JscpdClient = class {
|
|
|
407
404
|
return output;
|
|
408
405
|
}
|
|
409
406
|
// --- Internal ---
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
duplicatedLines: 0,
|
|
440
|
-
totalLines: 0,
|
|
441
|
-
percentage: 0
|
|
442
|
-
};
|
|
443
|
-
}
|
|
407
|
+
/**
|
|
408
|
+
* Turn jscpd's `jscpd-report.json` into the result shape. Input that is not a
|
|
409
|
+
* jscpd report throws: `runReportScan` turns that into a recorded failed
|
|
410
|
+
* scan, so a broken report never reads as a scan that ran and found nothing
|
|
411
|
+
* (#5411). #1736: `statistics.total` holds the stats, not `statistics.clones`.
|
|
412
|
+
*/
|
|
413
|
+
parseReport(raw) {
|
|
414
|
+
const data = parseReportJson("jscpd", raw);
|
|
415
|
+
const total = data.statistics?.total ?? {};
|
|
416
|
+
const duplicatedLines = total.duplicatedLines ?? 0;
|
|
417
|
+
const totalLines = total.lines ?? 0;
|
|
418
|
+
const percentage = total.percentage ?? (totalLines > 0 ? duplicatedLines / totalLines * 100 : 0);
|
|
419
|
+
const rawClones = data.duplicates ?? [];
|
|
420
|
+
const clones = rawClones.map((c) => ({
|
|
421
|
+
fileA: c.firstFile?.name ?? "",
|
|
422
|
+
startA: c.firstFile?.start ?? 0,
|
|
423
|
+
fileB: c.secondFile?.name ?? "",
|
|
424
|
+
startB: c.secondFile?.start ?? 0,
|
|
425
|
+
lines: c.lines ?? 0,
|
|
426
|
+
tokens: c.tokens ?? 0
|
|
427
|
+
}));
|
|
428
|
+
return {
|
|
429
|
+
success: true,
|
|
430
|
+
analyzed: true,
|
|
431
|
+
clones,
|
|
432
|
+
duplicatedLines,
|
|
433
|
+
totalLines,
|
|
434
|
+
percentage
|
|
435
|
+
};
|
|
444
436
|
}
|
|
445
437
|
};
|
|
446
438
|
export {
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
findModuleForPath,
|
|
7
7
|
getDownstreamModules,
|
|
8
8
|
getModuleSourceFiles
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6XNVY3FW.js";
|
|
10
10
|
import {
|
|
11
11
|
detectFileRole
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6EIV3H7O.js";
|
|
13
13
|
import {
|
|
14
14
|
normalizeMapKey
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WLD6BGON.js";
|
|
16
16
|
|
|
17
17
|
// dist/clients/review-graph/query.js
|
|
18
18
|
function dedupe(items) {
|
|
@@ -4,28 +4,28 @@ import {
|
|
|
4
4
|
readCargoDependencyNames,
|
|
5
5
|
readCargoPackageName,
|
|
6
6
|
readCargoWorkspaceMembers
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SUIZOCSY.js";
|
|
8
8
|
import {
|
|
9
9
|
getProjectIgnoreMatcher,
|
|
10
10
|
isExcludedDirName
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-DNB4ZQGN.js";
|
|
12
|
+
import {
|
|
13
|
+
isJstsFactFile
|
|
14
|
+
} from "./chunk-SRXYSLMW.js";
|
|
12
15
|
import {
|
|
13
16
|
getWorkspaceManifestMarkers
|
|
14
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-3R3Z54J7.js";
|
|
15
18
|
import {
|
|
19
|
+
isWithinForm,
|
|
16
20
|
normalizeMapKey,
|
|
17
21
|
toPosix
|
|
18
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-WLD6BGON.js";
|
|
19
23
|
|
|
20
24
|
// dist/clients/review-graph/workspace-modules.js
|
|
21
25
|
import * as fs from "node:fs";
|
|
22
26
|
import * as path from "node:path";
|
|
23
27
|
var MAX_WORKSPACE_CANDIDATES = 5e3;
|
|
24
28
|
var SOURCE_EXTS = /* @__PURE__ */ new Set([
|
|
25
|
-
".ts",
|
|
26
|
-
".tsx",
|
|
27
|
-
".js",
|
|
28
|
-
".jsx",
|
|
29
29
|
".py",
|
|
30
30
|
".go",
|
|
31
31
|
".rs",
|
|
@@ -293,7 +293,7 @@ function findModuleForPath(graph, filePath) {
|
|
|
293
293
|
const normalized = normalizeMapKey(filePath);
|
|
294
294
|
let best;
|
|
295
295
|
for (const mod of graph.modules.values()) {
|
|
296
|
-
if (normalized
|
|
296
|
+
if (isWithinForm(normalized, mod.root)) {
|
|
297
297
|
if (!best || mod.root.length > best.root.length)
|
|
298
298
|
best = mod;
|
|
299
299
|
}
|
|
@@ -371,7 +371,7 @@ function getModuleSourceFiles(moduleRoot, maxFiles = 20) {
|
|
|
371
371
|
}
|
|
372
372
|
if (!entry.isFile())
|
|
373
373
|
continue;
|
|
374
|
-
if (!SOURCE_EXTS.has(path.extname(entry.name).toLowerCase()))
|
|
374
|
+
if (!SOURCE_EXTS.has(path.extname(entry.name).toLowerCase()) && !isJstsFactFile(entry.name))
|
|
375
375
|
continue;
|
|
376
376
|
if (ignoreMatcher.isIgnored(fullPath, false))
|
|
377
377
|
continue;
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
findGoverningTsconfigDir,
|
|
4
4
|
getDirectoryMarkers,
|
|
5
5
|
registerWorkspaceTopologyReset
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3R3Z54J7.js";
|
|
7
7
|
import {
|
|
8
8
|
BoundedLruCache
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WLD6BGON.js";
|
|
10
10
|
|
|
11
11
|
// dist/clients/review-graph/tsconfig-paths.js
|
|
12
12
|
import * as fs from "node:fs";
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
SecurityScanClient
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QDZ3ZZMY.js";
|
|
5
5
|
import {
|
|
6
6
|
firstOutputLine,
|
|
7
7
|
spawnFailedWithNoOutput
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-LHCDWFDB.js";
|
|
9
9
|
import {
|
|
10
10
|
probeToolAsync
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-OP5BMZKK.js";
|
|
12
12
|
import {
|
|
13
13
|
INSTALL_TRANSIENT_MAX_ATTEMPTS,
|
|
14
14
|
classifyProbeFailure,
|
|
15
15
|
describeProbeEvidence,
|
|
16
16
|
logAvailabilityDecision,
|
|
17
17
|
startHostStallSampler
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-WBXCIRVI.js";
|
|
19
19
|
import {
|
|
20
20
|
isUntrustedProjectPath,
|
|
21
21
|
recordProjectCommandRefusal,
|
|
22
22
|
safeSpawnAsync
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-DNB4ZQGN.js";
|
|
24
24
|
import {
|
|
25
25
|
assertInstallAllowed
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-43KD3PPM.js";
|
|
27
27
|
import {
|
|
28
28
|
recordDegradationOnce
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-AGEQRJ5A.js";
|
|
30
30
|
import {
|
|
31
31
|
isToolInstallDisabled
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-K2GV34T2.js";
|
|
33
33
|
|
|
34
34
|
// dist/clients/govulncheck-client.js
|
|
35
35
|
import * as fs from "node:fs";
|
|
@@ -7,17 +7,17 @@ import {
|
|
|
7
7
|
loadCallGraph,
|
|
8
8
|
parseSymbolKey,
|
|
9
9
|
saveCallGraph
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QAM2Q3VO.js";
|
|
11
11
|
import "./chunk-3MED75HT.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-DNB4ZQGN.js";
|
|
13
|
+
import "./chunk-6EIV3H7O.js";
|
|
14
|
+
import "./chunk-3R3Z54J7.js";
|
|
15
|
+
import "./chunk-43KD3PPM.js";
|
|
16
|
+
import "./chunk-AGEQRJ5A.js";
|
|
17
17
|
import "./chunk-S26LC76R.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-K2GV34T2.js";
|
|
19
19
|
import "./chunk-LJDODBBZ.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-WLD6BGON.js";
|
|
21
21
|
import "./chunk-NXL4FFQQ.js";
|
|
22
22
|
export {
|
|
23
23
|
CALL_GRAPH_CACHE_VERSION,
|
|
@@ -18,11 +18,11 @@ import {
|
|
|
18
18
|
logLatency,
|
|
19
19
|
resetSinkRotations,
|
|
20
20
|
resetSinkWriteFailures
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-K2GV34T2.js";
|
|
22
22
|
import {
|
|
23
23
|
getPathIdentityFallbacks,
|
|
24
24
|
resetPathIdentityFallbacks
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-WLD6BGON.js";
|
|
26
26
|
|
|
27
27
|
// dist/clients/extension-log.js
|
|
28
28
|
import * as path from "node:path";
|
|
@@ -82,6 +82,7 @@ function truncateForLedger(value) {
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
// dist/clients/degradation-ledger.js
|
|
85
|
+
import { createHash } from "node:crypto";
|
|
85
86
|
var ENTRIES_PER_KIND = DEGRADATION_ENTRIES_PER_KIND;
|
|
86
87
|
var MAX_DISTINCT_KINDS = 32;
|
|
87
88
|
var OVERFLOW_KIND = "other";
|
|
@@ -115,14 +116,17 @@ function recordDegradation(record) {
|
|
|
115
116
|
}
|
|
116
117
|
function recordDegradationOnce(record) {
|
|
117
118
|
try {
|
|
118
|
-
const kind =
|
|
119
|
-
const
|
|
120
|
-
const
|
|
119
|
+
const { kind: rawKind, subject: rawSubject, reason, metadata, code } = record;
|
|
120
|
+
const kindText = truncateForLedger(rawKind);
|
|
121
|
+
const subjectText = subjectIdentity(rawSubject);
|
|
122
|
+
const key = onceKey(kindText, subjectText);
|
|
121
123
|
if (onceKeys.has(key))
|
|
122
124
|
return false;
|
|
123
125
|
onceKeys.add(key);
|
|
124
|
-
|
|
125
|
-
|
|
126
|
+
const kind = boundedKind(kindText);
|
|
127
|
+
const subject = subjectForLedger(subjectText);
|
|
128
|
+
if (recordDegradation({ kind, subject, reason })) {
|
|
129
|
+
logDurableDegradation(kind, subject, 1, metadata, code);
|
|
126
130
|
}
|
|
127
131
|
return true;
|
|
128
132
|
} catch (error) {
|
|
@@ -130,12 +134,18 @@ function recordDegradationOnce(record) {
|
|
|
130
134
|
return false;
|
|
131
135
|
}
|
|
132
136
|
}
|
|
137
|
+
function onceKey(kindText, subjectText) {
|
|
138
|
+
return createHash("sha256").update(JSON.stringify([kindText, subjectText])).digest("hex");
|
|
139
|
+
}
|
|
133
140
|
function incrementDegradationCount(record) {
|
|
134
141
|
try {
|
|
135
|
-
const kind =
|
|
136
|
-
const
|
|
142
|
+
const { kind: rawKind, subject: rawSubject } = record;
|
|
143
|
+
const kindText = truncateForLedger(rawKind);
|
|
144
|
+
const subjectText = subjectIdentity(rawSubject);
|
|
145
|
+
const kind = boundedKind(kindText);
|
|
146
|
+
const subject = subjectForLedger(subjectText);
|
|
137
147
|
const reason = truncateForLedger(record.reason);
|
|
138
|
-
const key =
|
|
148
|
+
const key = onceKey(kindText, subjectText);
|
|
139
149
|
const count = (tallies.get(key) ?? 0) + 1;
|
|
140
150
|
tallies.set(key, count);
|
|
141
151
|
let group = groups.get(kind);
|
|
@@ -199,6 +209,10 @@ function subjectForLedger(value) {
|
|
|
199
209
|
const subject = truncateForLedger(value);
|
|
200
210
|
return subject.trim() === "" ? "unknown" : subject;
|
|
201
211
|
}
|
|
212
|
+
function subjectIdentity(value) {
|
|
213
|
+
const text = normalizeForLedger(value);
|
|
214
|
+
return text.trim() === "" ? "unknown" : text;
|
|
215
|
+
}
|
|
202
216
|
function boundedKind(value) {
|
|
203
217
|
const kind = truncateForLedger(value);
|
|
204
218
|
if (groups.has(kind) || kind === OVERFLOW_KIND)
|
|
@@ -545,6 +559,14 @@ var LENS_FLAGS = [
|
|
|
545
559
|
default: false,
|
|
546
560
|
scope: "global"
|
|
547
561
|
},
|
|
562
|
+
{
|
|
563
|
+
name: "no-read-expansion",
|
|
564
|
+
description: "Disable automatic read widening while keeping the read-before-edit monitor active. Also via readGuard.expandReads=false in ~/.pi-lens/config.json.",
|
|
565
|
+
configKey: "readGuard.expandReads",
|
|
566
|
+
negated: true,
|
|
567
|
+
default: false,
|
|
568
|
+
scope: "global"
|
|
569
|
+
},
|
|
548
570
|
{
|
|
549
571
|
name: "no-lens-context",
|
|
550
572
|
description: "Disable automatic context injection (session-start guidance, turn-end & test findings) while keeping tools, LSP, read-guard, and formatting active. Toggle with /lens-context-toggle. Also via contextInjection.enabled=false in config or PI_LENS_NO_CONTEXT_INJECTION=1.",
|
|
@@ -667,7 +689,11 @@ var GLOBAL_NON_FLAG_CONFIG_SECTIONS = [
|
|
|
667
689
|
];
|
|
668
690
|
var GLOBAL_ONLY_NON_FLAG_KEYS = [
|
|
669
691
|
"actionableWarnings.autoFix.maxFixes",
|
|
670
|
-
"dispatch.runnerTimeoutFloorMs"
|
|
692
|
+
"dispatch.runnerTimeoutFloorMs",
|
|
693
|
+
// #5306: the explicit single-file diagnostics query's line limit. `lsp` is
|
|
694
|
+
// recognized at project scope (the LSP loader's namespace), so a project file
|
|
695
|
+
// carrying this is told it does nothing there.
|
|
696
|
+
"lsp.queryMaxFileLines"
|
|
671
697
|
];
|
|
672
698
|
var PROJECT_NON_FLAG_CONFIG_SECTIONS = [
|
|
673
699
|
"ignore",
|