@herbertgao/pi-extensions 2026.11.6 → 2026.11.8
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.md +20 -0
- package/README.md +9 -9
- package/THIRD_PARTY_NOTICES.md +2 -2
- package/node_modules/@herbertgao/pi-impeccable/CHANGELOG.md +6 -0
- package/node_modules/@herbertgao/pi-impeccable/README.md +2 -2
- package/node_modules/@herbertgao/pi-impeccable/package.json +4 -4
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/SKILL.md +1 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/VERSION +1 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/engine-checksums.txt +5 -5
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/live-browser.js +71 -56
- package/node_modules/@herbertgao/pi-subagents/CHANGELOG.md +6 -0
- package/node_modules/@herbertgao/pi-subagents/README.md +2 -2
- package/node_modules/@herbertgao/pi-subagents/package.json +4 -4
- package/node_modules/@herbertgao/pi-subagents/src/ui/conversation-viewer.ts +10 -6
- package/node_modules/@herbertgao/pi-subagents/src/ui/viewer-keys.ts +47 -4
- package/node_modules/@narumitw/pi-btw/CHANGELOG.md +12 -0
- package/node_modules/@narumitw/pi-btw/dist/chunks/{main-tree-picker-WHRN26NJ.ts → main-tree-picker-3PXJARQW.ts} +59 -53
- package/node_modules/@narumitw/pi-btw/dist/chunks/main-tree-picker-3PXJARQW.ts.map +7 -0
- package/node_modules/@narumitw/pi-btw/dist/index.ts +1 -1
- package/node_modules/@narumitw/pi-btw/docs/main-tree-snapshots.md +39 -0
- package/node_modules/@narumitw/pi-btw/docs/workflows.md +1 -0
- package/node_modules/@narumitw/pi-btw/package.json +1 -1
- package/node_modules/@narumitw/pi-btw/src/main-tree-picker.ts +73 -63
- package/node_modules/@pi-plugins/fast-mode/dist/index.d.mts +1 -4
- package/node_modules/@pi-plugins/fast-mode/dist/index.d.mts.map +1 -1
- package/node_modules/@pi-plugins/fast-mode/dist/index.mjs +5620 -2946
- package/node_modules/@pi-plugins/fast-mode/dist/index.mjs.map +1 -1
- package/node_modules/@pi-plugins/fast-mode/package.json +11 -11
- package/node_modules/pi-commandcode-provider/CHANGELOG.md +5 -0
- package/node_modules/pi-commandcode-provider/README.md +1 -1
- package/node_modules/pi-commandcode-provider/package.json +1 -1
- package/node_modules/pi-commandcode-provider/src/commandcode-catalog.ts +5 -4
- package/node_modules/pi-commandcode-provider/src/pricing.ts +8 -2
- package/node_modules/pi-lens/CHANGELOG-USER.md +12 -12
- package/node_modules/pi-lens/CHANGELOG.md +212 -0
- package/node_modules/pi-lens/README.md +1 -0
- package/node_modules/pi-lens/dist/{chunk-W4CUK5G6.js → chunk-2HWVG3IM.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-B2YUE6YD.js → chunk-3EIZMRXI.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-Y3EHLUPL.js → chunk-3MHY4BQY.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-IDCTDKIA.js → chunk-3PMLYGJN.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-VPFRU5IG.js → chunk-3QMLB4TI.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-NL5LSKVD.js → chunk-3R3Z54J7.js} +10 -4
- package/node_modules/pi-lens/dist/chunk-3VWEZ6H2.js +72 -0
- package/node_modules/pi-lens/dist/{chunk-YT2VR4SL.js → chunk-5EEWCJG7.js} +7 -7
- package/node_modules/pi-lens/dist/{chunk-4NCDHTFI.js → chunk-5FDUKJZO.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-QUQY3IME.js → chunk-5KLRCUDT.js} +9 -8
- package/node_modules/pi-lens/dist/{chunk-FOEPIX76.js → chunk-6EIV3H7O.js} +158 -61
- package/node_modules/pi-lens/dist/{chunk-GMC4ZGYR.js → chunk-6EXGCXM5.js} +5 -5
- package/node_modules/pi-lens/dist/{chunk-CTB5BAJI.js → chunk-6GWCYEP7.js} +17 -16
- package/node_modules/pi-lens/dist/{chunk-NBM7PNBP.js → chunk-6JLNZ6DP.js} +37 -26
- package/node_modules/pi-lens/dist/{chunk-ACRJ2GZ5.js → chunk-7424ANRU.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-TJQSYX3J.js → chunk-75TVYCQW.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-J6BR5XN2.js → chunk-7BEADGAZ.js} +3 -3
- package/node_modules/pi-lens/dist/chunk-7KWI5UHL.js +28 -0
- package/node_modules/pi-lens/dist/{chunk-GUGKKGG7.js → chunk-7M64NTAK.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-SKVNHCT5.js → chunk-7T64QA5D.js} +48 -43
- package/node_modules/pi-lens/dist/{chunk-YQA34KAF.js → chunk-7ZVEFWOE.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-SJQUWQR6.js → chunk-AAIVSSUU.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-6I44EDNQ.js → chunk-AD7JDEI6.js} +17 -15
- package/node_modules/pi-lens/dist/{chunk-3FRI5H4T.js → chunk-AGEQRJ5A.js} +24 -10
- package/node_modules/pi-lens/dist/{chunk-NPNFGYLV.js → chunk-AVBEPUCD.js} +19 -2
- package/node_modules/pi-lens/dist/{chunk-OTSTS7L2.js → chunk-AYDE7RFV.js} +34 -3
- package/node_modules/pi-lens/dist/{chunk-UOO4D2TK.js → chunk-AZXTLZHE.js} +34 -35
- package/node_modules/pi-lens/dist/{chunk-AWQWXSW4.js → chunk-B4FAFEBP.js} +7 -2
- package/node_modules/pi-lens/dist/{chunk-S3WFVG5P.js → chunk-BEIPWPVR.js} +137 -126
- package/node_modules/pi-lens/dist/{chunk-CZAWWXP6.js → chunk-BMMRLJA4.js} +7 -5
- package/node_modules/pi-lens/dist/{chunk-QWTHFFU6.js → chunk-C6V2DSZZ.js} +12 -12
- package/node_modules/pi-lens/dist/chunk-CIA7X2PZ.js +26 -0
- package/node_modules/pi-lens/dist/{chunk-ZD4KVFXI.js → chunk-D2ZYRI7M.js} +172 -3
- package/node_modules/pi-lens/dist/{chunk-F6FT6BVQ.js → chunk-D6ANA6YU.js} +34 -35
- package/node_modules/pi-lens/dist/{chunk-HILZE4BQ.js → chunk-D7OEGXDX.js} +396 -306
- package/node_modules/pi-lens/dist/{chunk-FCQSZQAT.js → chunk-DFAY7JUN.js} +14 -5
- package/node_modules/pi-lens/dist/{chunk-DOUAWKLO.js → chunk-DIIDMDZU.js} +12 -12
- package/node_modules/pi-lens/dist/{chunk-6MDM5MQT.js → chunk-DZSQXG66.js} +394 -162
- package/node_modules/pi-lens/dist/{chunk-QGITU23N.js → chunk-E3PNZDPH.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-QSCZAP24.js → chunk-E5SSUV2A.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-H65TYP6V.js → chunk-ET3DSSFZ.js} +37 -21
- package/node_modules/pi-lens/dist/chunk-F7AMFFVK.js +22 -0
- package/node_modules/pi-lens/dist/{chunk-4ITEFRDH.js → chunk-FDLGJFAE.js} +37 -145
- package/node_modules/pi-lens/dist/{chunk-XAFZJEXY.js → chunk-FVQKX5KI.js} +23 -23
- package/node_modules/pi-lens/dist/{chunk-CYUJB552.js → chunk-G3LR6V6N.js} +18 -12
- package/node_modules/pi-lens/dist/{chunk-ZOPXB2KK.js → chunk-GHATCG2A.js} +111 -107
- package/node_modules/pi-lens/dist/{chunk-XVB3Q2PG.js → chunk-HGEE5LDW.js} +3 -2
- package/node_modules/pi-lens/dist/{chunk-UNBRHPHJ.js → chunk-HJWF7CGW.js} +17 -15
- package/node_modules/pi-lens/dist/chunk-HRQTYU2T.js +355 -0
- package/node_modules/pi-lens/dist/{chunk-QUPYLQA4.js → chunk-HSTN27NR.js} +14 -9
- package/node_modules/pi-lens/dist/{chunk-YF4G5NN5.js → chunk-HWMNTQBJ.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-K6WIBVMK.js → chunk-HYDJUVOE.js} +8 -9
- package/node_modules/pi-lens/dist/{chunk-OPFNQBS5.js → chunk-HYR25MV3.js} +21 -25
- package/node_modules/pi-lens/dist/{chunk-MAD4QJTP.js → chunk-IC4L65U7.js} +21 -17
- package/node_modules/pi-lens/dist/{chunk-I32RSMH6.js → chunk-ILC2B7IJ.js} +11 -10
- package/node_modules/pi-lens/dist/{chunk-BGLS5SDN.js → chunk-IT7MFVGP.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-KDCIG23C.js → chunk-IZ36G463.js} +13 -9
- package/node_modules/pi-lens/dist/{chunk-ALIZWXHZ.js → chunk-JKAVKTMY.js} +9 -9
- package/node_modules/pi-lens/dist/{chunk-3HM4BUHR.js → chunk-JLMS7EMD.js} +16 -15
- package/node_modules/pi-lens/dist/{chunk-HSYFLOZY.js → chunk-JRSS6KM4.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-VCRVNLE7.js → chunk-K2GV34T2.js} +9 -1
- package/node_modules/pi-lens/dist/{chunk-KJ3AHOCK.js → chunk-K2LD6YNH.js} +10 -10
- package/node_modules/pi-lens/dist/chunk-KUDUKKQE.js +89 -0
- package/node_modules/pi-lens/dist/{chunk-7JX3RNG4.js → chunk-KXDQD34C.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-VGTBLTPN.js → chunk-LD7SXICE.js} +18 -66
- package/node_modules/pi-lens/dist/{chunk-UY745U35.js → chunk-ME6MF2N2.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-QHOTTC4A.js → chunk-MOEWCPMC.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-JZQGRARR.js → chunk-MV6ST2KT.js} +15 -12
- package/node_modules/pi-lens/dist/{chunk-QL37SGTS.js → chunk-NCDH2JB7.js} +18 -18
- package/node_modules/pi-lens/dist/{chunk-AON2QIJF.js → chunk-NRVWLTOY.js} +20 -17
- package/node_modules/pi-lens/dist/chunk-NZINZCHB.js +108 -0
- package/node_modules/pi-lens/dist/{chunk-A5TEJZGJ.js → chunk-O6LCSHHI.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-PTSA6QKL.js → chunk-OEPWTSUG.js} +8 -8
- package/node_modules/pi-lens/dist/{chunk-QMV2APEH.js → chunk-OF2YGDUE.js} +36 -36
- package/node_modules/pi-lens/dist/{chunk-GTTMQ6XB.js → chunk-OHEUOWYT.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-GVWIU7M7.js → chunk-ORYQGVC3.js} +41 -4
- package/node_modules/pi-lens/dist/{chunk-KSTQ4VXT.js → chunk-OVPR3GQ6.js} +10 -13
- package/node_modules/pi-lens/dist/{chunk-MN635QYA.js → chunk-OYXD2MOM.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-TN5CWX5D.js → chunk-PCREZ4HJ.js} +34 -35
- package/node_modules/pi-lens/dist/{chunk-SG2JQ2YP.js → chunk-PK3GDU4M.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-NE4EFHJX.js → chunk-PPYUBO6Y.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-DVRJBQOJ.js → chunk-PTJXMYRY.js} +19 -20
- package/node_modules/pi-lens/dist/{chunk-TYHOEX4V.js → chunk-PXGVB2CY.js} +36 -39
- package/node_modules/pi-lens/dist/{chunk-LT62P654.js → chunk-QJ4T73J5.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-2LVJQU3I.js → chunk-QY6J2FTK.js} +33 -29
- package/node_modules/pi-lens/dist/{chunk-ZZDVGCGG.js → chunk-R67WQ5RY.js} +9 -9
- package/node_modules/pi-lens/dist/{chunk-Q2VCKC3X.js → chunk-S6ZQFPOX.js} +11 -8
- package/node_modules/pi-lens/dist/{chunk-KFRDFAOE.js → chunk-SF7KSXB5.js} +7 -7
- package/node_modules/pi-lens/dist/{chunk-CZCAZVTD.js → chunk-SRXYSLMW.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-WS3UFJOU.js → chunk-SUIZOCSY.js} +3 -2
- package/node_modules/pi-lens/dist/{chunk-NUSXS6YB.js → chunk-T5EGSBM2.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-V7F7JHS5.js → chunk-T6PPK3T6.js} +563 -554
- package/node_modules/pi-lens/dist/chunk-TM3A3K7T.js +28 -0
- package/node_modules/pi-lens/dist/{chunk-RQRKIRFY.js → chunk-TOOXNL6M.js} +8 -8
- package/node_modules/pi-lens/dist/chunk-TS5EIWEF.js +25 -0
- package/node_modules/pi-lens/dist/chunk-VD7MQFEV.js +56 -0
- package/node_modules/pi-lens/dist/{chunk-2ADRLTM2.js → chunk-VU2PRGRI.js} +6 -35
- package/node_modules/pi-lens/dist/chunk-W6VLB6LL.js +145 -0
- package/node_modules/pi-lens/dist/{chunk-CB7PEVOJ.js → chunk-WLD6BGON.js} +176 -60
- package/node_modules/pi-lens/dist/{chunk-C6AODRNU.js → chunk-WTSQKJAR.js} +11 -10
- package/node_modules/pi-lens/dist/{chunk-46TQJSUE.js → chunk-X33QECRJ.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-B6HXETWY.js → chunk-Y7XMKBFP.js} +28 -26
- package/node_modules/pi-lens/dist/{chunk-TLWFZ66Y.js → chunk-YLHJWAQS.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-BRESRQBE.js → chunk-YLW26OHX.js} +8 -8
- package/node_modules/pi-lens/dist/{chunk-IL6PIV33.js → chunk-YTXFNCVN.js} +2 -2
- package/node_modules/pi-lens/dist/chunk-YULIERZW.js +27 -0
- package/node_modules/pi-lens/dist/chunk-Z2W5YJBW.js +25 -0
- package/node_modules/pi-lens/dist/{chunk-XPGH5O74.js → chunk-Z6WTLVUL.js} +30 -39
- package/node_modules/pi-lens/dist/{chunk-W7TY6HYX.js → chunk-ZRQMENT4.js} +5 -27
- package/node_modules/pi-lens/dist/{chunk-E4VXKTBR.js → chunk-ZWZD4TJ5.js} +163 -173
- package/node_modules/pi-lens/dist/index.js +6405 -4497
- package/node_modules/pi-lens/dist/mcp/analyze-cli.js +17 -13
- package/node_modules/pi-lens/dist/mcp/cli.js +42 -43
- package/node_modules/pi-lens/dist/mcp/server.js +1520 -608
- package/node_modules/pi-lens/dist/mcp/worker.js +62 -61
- package/node_modules/pi-lens/dist/probes/installer.js +19 -18
- package/node_modules/pi-lens/docs/agent-guide.md +3 -1
- package/node_modules/pi-lens/docs/agent-tools.md +57 -13
- package/node_modules/pi-lens/docs/alignment-families.md +5 -1
- package/node_modules/pi-lens/docs/ci.md +120 -0
- package/node_modules/pi-lens/docs/configuration.md +24 -6
- package/node_modules/pi-lens/docs/custom-rules.md +1 -0
- package/node_modules/pi-lens/docs/defect-shapes.md +107 -71
- package/node_modules/pi-lens/docs/durable-store-audit-1202.md +1 -1
- package/node_modules/pi-lens/docs/engineering-principles.md +46 -12
- package/node_modules/pi-lens/docs/environment-variables.md +25 -2
- package/node_modules/pi-lens/docs/features.md +1 -1
- package/node_modules/pi-lens/docs/globalconfig.md +8 -1
- package/node_modules/pi-lens/docs/invariants/dispatch-runners.md +13 -0
- package/node_modules/pi-lens/docs/invariants/lsp-trust-exec.md +7 -0
- package/node_modules/pi-lens/docs/language-coverage.md +1 -1
- package/node_modules/pi-lens/docs/lsp-capability-matrix.md +15 -16
- package/node_modules/pi-lens/docs/lsp-idle-eviction.md +1 -1
- package/node_modules/pi-lens/docs/mcp.md +2 -1
- package/node_modules/pi-lens/docs/module-report-read-symbol.md +2 -2
- package/node_modules/pi-lens/docs/pi-lens-fixer.md +3 -2
- package/node_modules/pi-lens/docs/pi-lens-merge-policy.md +1 -0
- package/node_modules/pi-lens/docs/pi-lens-monitor.md +4 -1
- package/node_modules/pi-lens/docs/pi-lens-release.md +19 -0
- package/node_modules/pi-lens/docs/pi-lens-reviewer.md +8 -2
- package/node_modules/pi-lens/docs/public-api-stability.md +41 -6
- package/node_modules/pi-lens/docs/rfcs/5138-query-surface.md +121 -0
- package/node_modules/pi-lens/docs/servercapabilities.md +1 -1
- package/node_modules/pi-lens/docs/settings.md +9 -0
- package/node_modules/pi-lens/docs/usage.md +1 -1
- package/node_modules/pi-lens/docs/word-index.md +9 -10
- package/node_modules/pi-lens/package.json +3 -3
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/README.md +2 -0
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/dont-call-system-c.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/file-access-before-action-c.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/file-stat-before-action-c.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/insecure-hash-c.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/libxml2-audit-parser-c.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/null-library-function-c.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/sizeof-this-c.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/small-key-size-c.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/world-writable-file-c.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/dont-call-system-cpp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/file-access-before-action-cpp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/file-stat-before-action-cpp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/fix-format-security-error-cpp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/insecure-hash-cpp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/libxml2-audit-parser-cpp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/missing-nul-cpp-string-memcpy-cpp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/null-library-function-cpp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/return-c-str-cpp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/sizeof-this-cpp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/small-key-size-cpp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/std-return-data-cpp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/std-vector-invalidation-cpp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/string-view-temporary-string-cpp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/world-writable-file-cpp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/httponly-false-csharp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/insecure-binaryformatter-deserialization-csharp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/jwt-decode-without-verify-csharp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/jwt-hardcoded-secret-csharp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/jwt-tokenvalidationparameters-no-expiry-validation-csharp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/networkcredential-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/npgsqlconnectionstringbuilder-hardcoded-secret-csharp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/oracleconnectionstringbuilder-hardcoded-secret-csharp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/sqlconnectionstringbuilder-hardcoded-secret-csharp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/stacktrace-disclosure-csharp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/use-ecb-mode-csharp.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/avoid-bind-to-all-interfaces-go.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/gorilla-cookie-store-hardcoded-session-key-go.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/gorilla-csrf-hardcoded-auth-key-go.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/grpc-client-insecure-connection-go.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/jwt-go-none-algorithm-go.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/missing-ssl-minversion-go.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/openai-empty-secret-go.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/openai-hardcoded-secret-go.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/ssl-v3-is-insecure-go.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/tls-with-insecure-cipher-go.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/use-of-weak-rsa-key-go.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/html/security/plaintext-http-link-html.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/cbc-padding-oracle-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-httponly-false-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-missing-httponly-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-missing-samesite-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-missing-secure-flag-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-secure-flag-false-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/datanucleus-hardcoded-connection-password-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/des-is-deprecated-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/desede-is-deprecated-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/documentbuilderfactory-disallow-doctype-decl-false-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/documentbuilderfactory-external-general-entities-true-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/documentbuilderfactory-external-parameter-entities-true-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/drivermanager-hardcoded-secret-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/ecb-cipher-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/hardcoded-connection-password-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/hardcoded-secret-in-credentials-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/java-jwt-hardcoded-secret-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/jedis-jedisclientconfig-hardcoded-password-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/jedis-jedisfactory-hardcoded-password-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/missing-httponly-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/missing-secure-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/no-null-cipher-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/passwordauthentication-hardcoded-password-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/rsa-no-padding-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/simple-command-injection-direct-input-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/system-setproperty-hardcoded-secret-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/unencrypted-socket-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-aes-ecb-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-blowfish-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-default-aes-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-md5-digest-utils-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-md5-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-rc2-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-rc4-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-sha1-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/weak-ssl-context-java.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/detect-angular-sce-disabled-javascript.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/express-jwt-hardcoded-secret-javascript.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/express-session-hardcoded-secret-javascript.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/jwt-simple-noverify-javascript.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/node-rsa-weak-key-javascript.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/node-sequelize-empty-password-argument-javascript.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/node-sequelize-hardcoded-secret-argument-javascript.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/kotlin/security/des-is-deprecated-kotlin.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/kotlin/security/desede-is-deprecated-kotlin.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/kotlin/security/jwt-hardcode-kotlin.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/kotlin/security/rsa-no-padding-kotlin.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/kotlin/security/system-setproperty-hardcoded-secret-kotlin.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/php/security/openssl-cbc-static-iv-php.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/php/security/search-active-debug-php.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/avoid-mktemp-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/avoid_app_run_with_bad_host-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/debug-enabled-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/hashids-with-django-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/hashids-with-flask-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/insecure-cipher-algorithm-rc4-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/jwt-python-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/openai-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-cassandra-empty-password-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-cassandra-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-couchbase-empty-password-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-couchbase-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-elasticsearch-hardcoded-bearer-auth-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-ldap3-empty-password-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-ldap3-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-mariadb-empty-password-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-mariadb-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysql-empty-password-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysql-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysqlclient-empty-password-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysqlclient-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-neo4j-empty-password-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-neo4j-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-mysql-empty-password-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-mysql-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-pg-empty-password-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-pg-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pg8000-empty-password-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pg8000-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-psycopg2-empty-password-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-psycopg2-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pyjwt-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymongo-empty-password-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymongo-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymssql-empty-password-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymssql-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymysql-empty-password-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymysql-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-redis-empty-password-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-redis-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-requests-empty-password-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-requests-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-requests-oauth-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-tormysql-empty-password-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-tormysql-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-urllib3-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-webrepl-empty-password-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-webrepl-hardcoded-secret-python.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/force-ssl-false-ruby.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/hardcoded-http-auth-in-controller-ruby.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/hardcoded-secret-rsa-passphrase-ruby.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/insufficient-rsa-key-size-ruby.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-aws-sdk-hardcoded-secret-ruby.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-cassandra-empty-password-ruby.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-cassandra-hardcoded-secret-ruby.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-excon-hardcoded-secret-ruby.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-faraday-hardcoded-secret-ruby.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mongo-empty-password-ruby.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mongo-hardcoded-secret-ruby.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mysql2-empty-password-ruby.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mysql2-hardcoded-secret-ruby.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-octokit-hardcoded-secret-ruby.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-pg-empty-password-ruby.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-pg-hardcoded-secret-ruby.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-redis-empty-password-ruby.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-redis-hardcoded-secret-ruby.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/empty-password-rust.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/hardcoded-password-rust.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/postgres-empty-password-rust.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/reqwest-accept-invalid-rust.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/secrets-reqwest-hardcoded-auth-rust.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/ssl-verify-none-rust.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/tokio-postgres-empty-password-rust.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/tokio-postgres-hardcoded-password-rust.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/scala/security/jwt-scala-hardcode-scala.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/scala/security/scala-jwt-hardcoded-secret-scala.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/swift/security/aes-hardcoded-secret-swift.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/swift/security/blowfish-hardcoded-secret-swift.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/swift/security/chacha20-hardcoded-secret-swift.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/swift/security/insecure-biometrics-swift.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/swift/security/rabbit-hardcoded-secret-swift.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/typescript/security/detect-angular-sce-disabled-typescript.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/typescript/security/express-session-hardcoded-secret-typescript.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/typescript/security/jwt-simple-noverify-typescript.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/typescript/security/node-rsa-weak-key-typescript.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/typescript/security/node-sequelize-empty-password-argument-typescript.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/typescript/security/node-sequelize-hardcoded-secret-argument-typescript.yml +2 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/rule-schema.json +1 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/c-no-malloc-free.yml +13 -12
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/cpp-no-malloc-free.yml +11 -10
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/cpp-no-printf.yml +10 -9
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/go-defer-func-call-antipattern.yml +14 -13
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/go-no-fmt-println.yml +14 -13
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/go-no-panic-in-lib.yml +20 -19
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/go-no-underscore-func-name.yml +14 -13
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/go-prefer-errors-is.yml +14 -13
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/go-prefer-string-builder.yml +19 -18
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/go-test-functions.yml +14 -13
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/hyphenated-svg-attribute.yml +10 -9
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-no-lateinit.yml +12 -11
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-no-nullable-boolean.yml +11 -10
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-no-println.yml +15 -14
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-no-unnecessary-let.yml +10 -9
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-no-unsafe-cast.yml +10 -9
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-no-var.yml +11 -10
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-prefer-data-class.yml +10 -9
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-prefer-is-empty.yml +10 -9
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-aws-access-key-literal.yml +1 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-compile-call.yml +13 -12
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-flask-secret-key-literal.yml +1 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-hardcoded-password.yml +1 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-marshal-load.yml +12 -11
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-python-sql-string-concat.yml +12 -11
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-requests-verify-false.yml +13 -12
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-secret-in-env-var-name.yml +1 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/python-optional-type.yml +9 -8
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/reducible-list-comprehension.yml +8 -7
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/ruby-detect-path-traversal.yml +14 -13
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/ruby-symbol-to-proc-candidate.yml +8 -7
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/rust-no-chars-enumerate.yml +9 -8
- package/node_modules/pi-lens/rules/ast-grep-rules/rules-disabled/gorm-unbounded-preload.yml +7 -6
- package/node_modules/pi-lens/rules/ast-grep-rules/rules-disabled/shadow-err-variable.yml +6 -5
- package/node_modules/pi-lens/scripts/analyze-pi-lens-logs.mjs +262 -3
- package/node_modules/pi-lens/scripts/lib/latency-log-phases.mjs +125 -0
- package/package.json +8 -8
- package/node_modules/@narumitw/pi-btw/dist/chunks/main-tree-picker-WHRN26NJ.ts.map +0 -7
- package/node_modules/pi-lens/dist/chunk-3QWVOBZJ.js +0 -73
- package/node_modules/pi-lens/dist/chunk-7WJ55KBN.js +0 -162
- package/node_modules/pi-lens/dist/chunk-BDR5MEZY.js +0 -25
- package/node_modules/pi-lens/dist/chunk-CKEQFGLT.js +0 -32
- package/node_modules/pi-lens/dist/chunk-DBS736MA.js +0 -57
- package/node_modules/pi-lens/dist/chunk-I74RQGKA.js +0 -88
- package/node_modules/pi-lens/dist/chunk-IK4YS3KC.js +0 -25
- package/node_modules/pi-lens/dist/chunk-JKOZ2Z4U.js +0 -20
- package/node_modules/pi-lens/dist/chunk-TQHOKMVZ.js +0 -28
- package/node_modules/pi-lens/dist/chunk-VS2L7QDI.js +0 -25
- package/node_modules/pi-lens/dist/chunk-WAA63ZJV.js +0 -140
- package/node_modules/pi-lens/dist/chunk-ZPFLHB3R.js +0 -28
|
@@ -1,40 +1,34 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
resolveOpengrepConfig
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PPYUBO6Y.js";
|
|
5
5
|
import {
|
|
6
6
|
PYTHON_COMPILE_VERDICT_SERVER_ID,
|
|
7
7
|
augmentPythonEnvironment,
|
|
8
8
|
detectPythonEnvironment,
|
|
9
9
|
pythonEnvironmentToolCandidates
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5EEWCJG7.js";
|
|
11
11
|
import {
|
|
12
12
|
scannerReportParentDir
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-QJ4T73J5.js";
|
|
14
14
|
import {
|
|
15
15
|
hasCargoWorkspaceTable,
|
|
16
16
|
readCargoWorkspaceExclude,
|
|
17
17
|
readCargoWorkspaceMembers,
|
|
18
18
|
readTextFileOrUndefined
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-SUIZOCSY.js";
|
|
20
20
|
import {
|
|
21
21
|
getUserRuleRoot,
|
|
22
22
|
ruleCorpusFingerprintForCycle
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-7M64NTAK.js";
|
|
24
24
|
import {
|
|
25
25
|
load,
|
|
26
26
|
resolvePackagePath
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-E3PNZDPH.js";
|
|
28
28
|
import {
|
|
29
29
|
extensionsForLanguage,
|
|
30
30
|
isTypeScriptFile
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import {
|
|
33
|
-
HOOK_WALL_BUDGET_MS
|
|
34
|
-
} from "./chunk-CKEQFGLT.js";
|
|
35
|
-
import {
|
|
36
|
-
bounded
|
|
37
|
-
} from "./chunk-WAA63ZJV.js";
|
|
31
|
+
} from "./chunk-AYDE7RFV.js";
|
|
38
32
|
import {
|
|
39
33
|
ensureTool,
|
|
40
34
|
findManagedToolBinary,
|
|
@@ -44,25 +38,26 @@ import {
|
|
|
44
38
|
isZizmorAuditTarget,
|
|
45
39
|
logSessionStart,
|
|
46
40
|
resolveZizmorGitHubToken
|
|
47
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-NRVWLTOY.js";
|
|
48
42
|
import {
|
|
49
43
|
resolveToolCwd
|
|
50
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-YLHJWAQS.js";
|
|
51
45
|
import {
|
|
52
46
|
commandSearchReachesProject,
|
|
53
47
|
findGlobalBinary,
|
|
54
48
|
isProjectLocalBinPath
|
|
55
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-OVPR3GQ6.js";
|
|
56
50
|
import {
|
|
51
|
+
classifyFinderFailure,
|
|
57
52
|
classifyProbeFailure,
|
|
58
53
|
createAvailabilityLatch,
|
|
59
54
|
describeInstallAttempt,
|
|
60
55
|
logAvailabilityDecision,
|
|
61
56
|
startHostStallSampler
|
|
62
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-AVBEPUCD.js";
|
|
63
58
|
import {
|
|
64
59
|
readDirEntriesSafeAsync
|
|
65
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-YTXFNCVN.js";
|
|
66
61
|
import {
|
|
67
62
|
OWNER_TAG_ENV,
|
|
68
63
|
SpawnFailureError,
|
|
@@ -91,13 +86,13 @@ import {
|
|
|
91
86
|
safeSpawnAsync,
|
|
92
87
|
statIsFile,
|
|
93
88
|
trustScopedEnvironment
|
|
94
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-ET3DSSFZ.js";
|
|
95
90
|
import {
|
|
96
91
|
DOTNET_CSHARP_ROOT_MARKERS,
|
|
97
92
|
DOTNET_FSHARP_ROOT_MARKERS,
|
|
98
93
|
KIND_EXTENSIONS,
|
|
99
94
|
LEAN_ROOT_MARKERS
|
|
100
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-SRXYSLMW.js";
|
|
101
96
|
import {
|
|
102
97
|
boundedKeyLabel,
|
|
103
98
|
finalizeRecords,
|
|
@@ -109,7 +104,7 @@ import {
|
|
|
109
104
|
reportPiLensConfigRecords,
|
|
110
105
|
resolvePiLensConfig,
|
|
111
106
|
summarizeConfigResolution
|
|
112
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-6EIV3H7O.js";
|
|
113
108
|
import {
|
|
114
109
|
FRESHNESS_CADENCE_MS,
|
|
115
110
|
LSP_NAMESPACE_KEY,
|
|
@@ -120,17 +115,19 @@ import {
|
|
|
120
115
|
getDirectoryMarkers,
|
|
121
116
|
getPiLensGlobalConfigPath,
|
|
122
117
|
unknownDirMtimeRecords
|
|
123
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-3R3Z54J7.js";
|
|
124
119
|
import {
|
|
120
|
+
HOOK_WALL_BUDGET_MS,
|
|
121
|
+
bounded,
|
|
125
122
|
getProjectTrustGeneration,
|
|
126
123
|
getProjectTrustState
|
|
127
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-HRQTYU2T.js";
|
|
128
125
|
import {
|
|
129
126
|
getDegradationLedgerGeneration,
|
|
130
127
|
incrementDegradationCount,
|
|
131
128
|
logExtension,
|
|
132
129
|
recordDegradationOnce
|
|
133
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-AGEQRJ5A.js";
|
|
134
131
|
import {
|
|
135
132
|
claimPhaseOncePerSession,
|
|
136
133
|
currentSessionRecordId,
|
|
@@ -141,7 +138,7 @@ import {
|
|
|
141
138
|
logLatency,
|
|
142
139
|
redactSecrets,
|
|
143
140
|
releasePhaseClaim
|
|
144
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-K2GV34T2.js";
|
|
145
142
|
import {
|
|
146
143
|
STAGE_TMP_PATTERN
|
|
147
144
|
} from "./chunk-LJDODBBZ.js";
|
|
@@ -164,10 +161,11 @@ import {
|
|
|
164
161
|
normalizeMapKey,
|
|
165
162
|
pathsEqual,
|
|
166
163
|
realpathOrResolve,
|
|
164
|
+
relativeInside,
|
|
167
165
|
toPosix,
|
|
168
166
|
toProjectRelativePath,
|
|
169
167
|
walkUpDirs
|
|
170
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-WLD6BGON.js";
|
|
171
169
|
|
|
172
170
|
// dist/clients/analysis-root.js
|
|
173
171
|
import * as fs from "node:fs";
|
|
@@ -1006,8 +1004,7 @@ function recordUntrustedLspExecution(request, trust) {
|
|
|
1006
1004
|
});
|
|
1007
1005
|
}
|
|
1008
1006
|
}
|
|
1009
|
-
function refuseUntrustedLspExecution(request) {
|
|
1010
|
-
const trust = getProjectTrustState();
|
|
1007
|
+
function refuseUntrustedLspExecution(request, trust = getProjectTrustState()) {
|
|
1011
1008
|
const needsTrust = request.kind === "project-code-server" ? trust !== "trusted" : !admitProjectSuppliedTsserver(request.resolvedCommand, request.cwd, true);
|
|
1012
1009
|
if (!needsTrust)
|
|
1013
1010
|
return;
|
|
@@ -2801,9 +2798,8 @@ async function runJavaProbe() {
|
|
|
2801
2798
|
});
|
|
2802
2799
|
return true;
|
|
2803
2800
|
}
|
|
2804
|
-
const { outcome, cause } =
|
|
2805
|
-
hostStallMs
|
|
2806
|
-
unclassifiedFailureOutcome: "missing"
|
|
2801
|
+
const { outcome, cause, forced } = classifyFinderFailure(result, {
|
|
2802
|
+
hostStallMs
|
|
2807
2803
|
});
|
|
2808
2804
|
const retryAfterMs = javaAvailabilityLatch.noteUnavailable(outcome, cause);
|
|
2809
2805
|
logAvailabilityDecision({
|
|
@@ -2816,7 +2812,7 @@ async function runJavaProbe() {
|
|
|
2816
2812
|
hostStallMs,
|
|
2817
2813
|
...retryAfterMs > 0 && { retryAfterMs },
|
|
2818
2814
|
budgetMs: JAVA_PROBE_TIMEOUT_MS,
|
|
2819
|
-
classifiedBy: "probe"
|
|
2815
|
+
classifiedBy: forced ? "caller" : "probe"
|
|
2820
2816
|
});
|
|
2821
2817
|
return outcome === "transient" ? void 0 : false;
|
|
2822
2818
|
}
|
|
@@ -3806,7 +3802,7 @@ function NearestRoot(includePatterns, excludePatterns, stopDir) {
|
|
|
3806
3802
|
const fsRoot = path8.parse(startDir).root;
|
|
3807
3803
|
const stop = stopDir ? realpathOrResolve(stopDir) : fsRoot;
|
|
3808
3804
|
for (const currentDir of walkUpDirs(startDir)) {
|
|
3809
|
-
if (stop !== fsRoot &&
|
|
3805
|
+
if (stop !== fsRoot && relativeInside(stop, currentDir) === void 0) {
|
|
3810
3806
|
break;
|
|
3811
3807
|
}
|
|
3812
3808
|
const stepDirs = [
|
|
@@ -5847,18 +5843,13 @@ function registerSessionRoot(cwd) {
|
|
|
5847
5843
|
function setSessionRootConfig(cwd, config) {
|
|
5848
5844
|
return noteEvictedRoots(sessionRoots.set(path9.resolve(cwd), config));
|
|
5849
5845
|
}
|
|
5850
|
-
function isSameOrChildPath(filePath, candidateRoot) {
|
|
5851
|
-
if (filePath === candidateRoot)
|
|
5852
|
-
return true;
|
|
5853
|
-
return filePath.startsWith(`${candidateRoot}${path9.sep}`);
|
|
5854
|
-
}
|
|
5855
5846
|
function sessionRootConfigForFile(filePath) {
|
|
5856
5847
|
const resolvedFilePath = path9.resolve(filePath);
|
|
5857
5848
|
let bestMatch;
|
|
5858
5849
|
for (const [root, config] of sessionRoots) {
|
|
5859
5850
|
if (config === void 0)
|
|
5860
5851
|
continue;
|
|
5861
|
-
if (!
|
|
5852
|
+
if (!isSameOrWithin(root, resolvedFilePath))
|
|
5862
5853
|
continue;
|
|
5863
5854
|
if (!bestMatch || root.length > bestMatch.root.length) {
|
|
5864
5855
|
bestMatch = { root, config };
|
|
@@ -5,28 +5,10 @@ import {
|
|
|
5
5
|
relativeInside,
|
|
6
6
|
toPosix,
|
|
7
7
|
walkUpDirs
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
|
|
10
|
-
// dist/clients/content-stamp.js
|
|
11
|
-
import { createHash } from "node:crypto";
|
|
12
|
-
import * as fs from "node:fs";
|
|
13
|
-
var CONTENT_HASH_MAX_BYTES = 4 * 1024 * 1024;
|
|
14
|
-
function hashContentBytes(bytes) {
|
|
15
|
-
return createHash("sha256").update(bytes).digest("hex");
|
|
16
|
-
}
|
|
17
|
-
function hashFileBytes(filePath) {
|
|
18
|
-
return hashContentBytes(fs.readFileSync(filePath));
|
|
19
|
-
}
|
|
20
|
-
function stampContentBytes(bytes, mtimeMs) {
|
|
21
|
-
return {
|
|
22
|
-
size: bytes.byteLength,
|
|
23
|
-
mtimeMs,
|
|
24
|
-
...bytes.byteLength <= CONTENT_HASH_MAX_BYTES ? { sha256: hashContentBytes(bytes) } : {}
|
|
25
|
-
};
|
|
26
|
-
}
|
|
8
|
+
} from "./chunk-WLD6BGON.js";
|
|
27
9
|
|
|
28
10
|
// dist/clients/dispatch/runner-context.js
|
|
29
|
-
import * as
|
|
11
|
+
import * as fs from "node:fs";
|
|
30
12
|
import * as path from "node:path";
|
|
31
13
|
function resolveAgainstAncestors(cwd, filePath) {
|
|
32
14
|
filePath = normalizeHostToolPath(filePath);
|
|
@@ -38,17 +20,17 @@ function resolveAgainstAncestors(cwd, filePath) {
|
|
|
38
20
|
if (cwdBaseName && (normalizedRelative === cwdBaseName || normalizedRelative.startsWith(`${cwdBaseName}/`))) {
|
|
39
21
|
const trimmedRelative = normalizedRelative === cwdBaseName ? "" : normalizedRelative.slice(cwdBaseName.length + 1);
|
|
40
22
|
const trimmedCandidate = trimmedRelative ? path.resolve(cwd, trimmedRelative) : path.resolve(cwd);
|
|
41
|
-
if (
|
|
23
|
+
if (fs.existsSync(trimmedCandidate)) {
|
|
42
24
|
return trimmedCandidate;
|
|
43
25
|
}
|
|
44
26
|
}
|
|
45
27
|
const directCandidate = path.resolve(cwd, filePath);
|
|
46
|
-
if (
|
|
28
|
+
if (fs.existsSync(directCandidate)) {
|
|
47
29
|
return directCandidate;
|
|
48
30
|
}
|
|
49
31
|
for (const dir of walkUpDirs(cwd)) {
|
|
50
32
|
const candidate = path.resolve(dir, filePath);
|
|
51
|
-
if (
|
|
33
|
+
if (fs.existsSync(candidate)) {
|
|
52
34
|
return candidate;
|
|
53
35
|
}
|
|
54
36
|
}
|
|
@@ -64,10 +46,6 @@ function toRunnerDisplayPath(cwd, filePath) {
|
|
|
64
46
|
}
|
|
65
47
|
|
|
66
48
|
export {
|
|
67
|
-
CONTENT_HASH_MAX_BYTES,
|
|
68
|
-
hashContentBytes,
|
|
69
|
-
hashFileBytes,
|
|
70
|
-
stampContentBytes,
|
|
71
49
|
resolveRunnerPath,
|
|
72
50
|
toRunnerDisplayPath
|
|
73
51
|
};
|
|
@@ -1,86 +1,90 @@
|
|
|
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-AAIVSSUU.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
parseReportJson,
|
|
7
|
+
runReportScan
|
|
8
|
+
} from "./chunk-NZINZCHB.js";
|
|
9
|
+
import "./chunk-FDLGJFAE.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-
|
|
25
|
-
import "./chunk-OTSTS7L2.js";
|
|
26
|
-
import "./chunk-SG2JQ2YP.js";
|
|
27
|
-
import "./chunk-CKEQFGLT.js";
|
|
28
|
-
import "./chunk-NBM7PNBP.js";
|
|
14
|
+
} from "./chunk-BEIPWPVR.js";
|
|
15
|
+
import "./chunk-D7OEGXDX.js";
|
|
16
|
+
import "./chunk-Z6WTLVUL.js";
|
|
17
|
+
import "./chunk-PPYUBO6Y.js";
|
|
18
|
+
import "./chunk-5EEWCJG7.js";
|
|
19
|
+
import "./chunk-QJ4T73J5.js";
|
|
20
|
+
import "./chunk-YLW26OHX.js";
|
|
21
|
+
import "./chunk-7424ANRU.js";
|
|
22
|
+
import "./chunk-SUIZOCSY.js";
|
|
23
|
+
import "./chunk-7M64NTAK.js";
|
|
24
|
+
import "./chunk-E3PNZDPH.js";
|
|
25
|
+
import "./chunk-PK3GDU4M.js";
|
|
26
|
+
import "./chunk-6JLNZ6DP.js";
|
|
29
27
|
import {
|
|
30
28
|
getJscpdMaxEntriesDerived
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
29
|
+
} from "./chunk-IT7MFVGP.js";
|
|
30
|
+
import "./chunk-AYDE7RFV.js";
|
|
31
|
+
import "./chunk-W6VLB6LL.js";
|
|
33
32
|
import "./chunk-2BEMIWEW.js";
|
|
34
33
|
import "./chunk-IJYGIDF4.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-NRVWLTOY.js";
|
|
35
|
+
import "./chunk-YLHJWAQS.js";
|
|
37
36
|
import {
|
|
38
37
|
findNodeToolBinary
|
|
39
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-OVPR3GQ6.js";
|
|
40
39
|
import {
|
|
41
40
|
getIsolatedNpxSpawnOptions
|
|
42
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-3QMLB4TI.js";
|
|
43
42
|
import "./chunk-UYXV5NIS.js";
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-AVBEPUCD.js";
|
|
44
|
+
import "./chunk-75TVYCQW.js";
|
|
45
|
+
import "./chunk-KXDQD34C.js";
|
|
46
|
+
import "./chunk-3PMLYGJN.js";
|
|
48
47
|
import {
|
|
49
48
|
shouldRecurseIntoDir,
|
|
50
49
|
walkTreeStackSync
|
|
51
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-YTXFNCVN.js";
|
|
52
51
|
import {
|
|
53
52
|
getExcludedDirGlobs,
|
|
54
53
|
getProjectIgnoreGlobs,
|
|
55
54
|
getProjectIgnoreMatcher,
|
|
56
55
|
safeSpawnAsync
|
|
57
|
-
} from "./chunk-
|
|
58
|
-
import "./chunk-
|
|
56
|
+
} from "./chunk-ET3DSSFZ.js";
|
|
57
|
+
import "./chunk-B4FAFEBP.js";
|
|
59
58
|
import "./chunk-QYF5S6P6.js";
|
|
60
|
-
import
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
import
|
|
59
|
+
import {
|
|
60
|
+
isJstsFactFile
|
|
61
|
+
} from "./chunk-SRXYSLMW.js";
|
|
62
|
+
import {
|
|
63
|
+
isDeclarationFile
|
|
64
|
+
} from "./chunk-6EIV3H7O.js";
|
|
65
|
+
import "./chunk-3R3Z54J7.js";
|
|
66
|
+
import "./chunk-CIA7X2PZ.js";
|
|
67
|
+
import "./chunk-HRQTYU2T.js";
|
|
64
68
|
import {
|
|
65
69
|
createSubsystemLogger,
|
|
66
70
|
incrementDegradationCount
|
|
67
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-AGEQRJ5A.js";
|
|
68
72
|
import "./chunk-S26LC76R.js";
|
|
69
|
-
import "./chunk-
|
|
73
|
+
import "./chunk-K2GV34T2.js";
|
|
70
74
|
import "./chunk-LJDODBBZ.js";
|
|
71
75
|
import {
|
|
72
76
|
isAtOrAboveHomeDir,
|
|
73
77
|
isFullyQualified,
|
|
74
78
|
realpathOrResolve,
|
|
75
79
|
toPosix
|
|
76
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-WLD6BGON.js";
|
|
77
81
|
import "./chunk-NXL4FFQQ.js";
|
|
78
82
|
|
|
79
83
|
// dist/clients/jscpd-client.js
|
|
80
84
|
import * as fs from "node:fs";
|
|
81
|
-
import { mkdtempSync } from "node:fs";
|
|
82
85
|
import * as os from "node:os";
|
|
83
86
|
import * as path from "node:path";
|
|
87
|
+
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
88
|
var EMPTY_RESULT = {
|
|
85
89
|
success: false,
|
|
86
90
|
clones: [],
|
|
@@ -204,8 +208,8 @@ var JscpdClient = class {
|
|
|
204
208
|
}
|
|
205
209
|
if (!entry.isFile())
|
|
206
210
|
return "skip";
|
|
207
|
-
if (
|
|
208
|
-
if (entry.name
|
|
211
|
+
if (isJstsFactFile(entry.name) || JSCPD_WALK_OTHER_SOURCE.test(entry.name)) {
|
|
212
|
+
if (isDeclarationFile(entry.name))
|
|
209
213
|
return "skip";
|
|
210
214
|
if (ignoreMatcher.isIgnored(fullPath, false))
|
|
211
215
|
return "skip";
|
|
@@ -289,104 +293,95 @@ var JscpdClient = class {
|
|
|
289
293
|
this.inFlight.set(key, promise);
|
|
290
294
|
return promise;
|
|
291
295
|
}
|
|
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];
|
|
296
|
+
runScan(cwd, minLines, minTokens, isTsProject) {
|
|
297
|
+
let command = "jscpd";
|
|
298
|
+
return runReportScan("jscpd", {
|
|
299
|
+
spawn: async ({ outDir }) => {
|
|
300
|
+
const baseIgnores = [
|
|
301
|
+
...getExcludedDirGlobs(),
|
|
302
|
+
...getProjectIgnoreGlobs(cwd),
|
|
303
|
+
"**/*.md",
|
|
304
|
+
"**/*.txt",
|
|
305
|
+
"**/*.json",
|
|
306
|
+
"**/*.yaml",
|
|
307
|
+
"**/*.yml",
|
|
308
|
+
"**/*.toml",
|
|
309
|
+
"**/*.lock",
|
|
310
|
+
"**/*.test.*",
|
|
311
|
+
"**/*.spec.*",
|
|
312
|
+
"**/*.poc.test.*",
|
|
313
|
+
"**/__tests__/**",
|
|
314
|
+
"**/tests/**"
|
|
315
|
+
];
|
|
316
|
+
if (isTsProject) {
|
|
317
|
+
baseIgnores.push("**/*.js", "**/*.jsx");
|
|
331
318
|
}
|
|
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 };
|
|
319
|
+
const bin = await findNodeToolBinary("jscpd", cwd);
|
|
320
|
+
const { cmd, prefix } = bin ? { cmd: bin, prefix: [] } : this.jscpdManagedPath ? { cmd: this.jscpdManagedPath, prefix: [] } : { cmd: "npx", prefix: ["jscpd"] };
|
|
321
|
+
command = cmd;
|
|
322
|
+
const config = readProjectJscpdConfig(cwd);
|
|
323
|
+
const worktreeGlobs = worktreeIgnoreGlobs(cwd);
|
|
324
|
+
let patterns;
|
|
325
|
+
if (config === null) {
|
|
326
|
+
patterns = [...baseIgnores, ...worktreeGlobs];
|
|
327
|
+
} else if (worktreeGlobs.length > 0) {
|
|
328
|
+
if (config.ignoreList === null) {
|
|
329
|
+
incrementDegradationCount({
|
|
330
|
+
kind: "scan-worktree-exclusion-skipped",
|
|
331
|
+
subject: "jscpd",
|
|
332
|
+
reason: `config-ignore-unreadable: ${worktreeGlobs.length} linked worktree(s) under ${cwd} not ignored`
|
|
333
|
+
});
|
|
334
|
+
} else {
|
|
335
|
+
patterns = [...config.ignoreList, ...worktreeGlobs];
|
|
336
|
+
}
|
|
376
337
|
}
|
|
377
|
-
return
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
338
|
+
return safeSpawnAsync(cmd, [
|
|
339
|
+
...prefix,
|
|
340
|
+
".",
|
|
341
|
+
...config === null ? [
|
|
342
|
+
"--min-lines",
|
|
343
|
+
String(minLines),
|
|
344
|
+
"--min-tokens",
|
|
345
|
+
String(minTokens)
|
|
346
|
+
] : [],
|
|
347
|
+
"--reporters",
|
|
348
|
+
"json",
|
|
349
|
+
"--output",
|
|
350
|
+
outDir,
|
|
351
|
+
...patterns === void 0 ? [] : ["--ignore", patterns.join(",")]
|
|
352
|
+
], {
|
|
353
|
+
timeout: SCAN_TIMEOUT_MS,
|
|
354
|
+
// A cache-only npx fallback must not read the project's `.npmrc`
|
|
355
|
+
// (#4268 acceptance 3); local/managed jscpd keeps the project cwd.
|
|
356
|
+
cwd,
|
|
357
|
+
...cmd === "npx" ? getIsolatedNpxSpawnOptions() : {}
|
|
358
|
+
});
|
|
359
|
+
},
|
|
360
|
+
// #3600: the lifecycle stamps `scannedAt` before the spawn, so a widget
|
|
361
|
+
// row's freshness is judged against the run's own read time. The exit
|
|
362
|
+
// code is not part of the verdict here: #1736's measured table (jscpd
|
|
363
|
+
// 3.5.10) is now the lifecycle's, and a report that exists is parsed
|
|
364
|
+
// whatever the exit.
|
|
365
|
+
parse: (raw, scannedAt) => ({
|
|
366
|
+
...this.parseReport(raw),
|
|
367
|
+
scannedAt
|
|
368
|
+
}),
|
|
369
|
+
// jscpd's result carries no summary: the reason an agent can read is the
|
|
370
|
+
// `runner-empty-result` row `recordFailure` writes. A zero exit that wrote
|
|
371
|
+
// no report stays a successful empty run (#1736's measured table), so the
|
|
372
|
+
// arm follows the lifecycle's verdict instead of calling every cell failed.
|
|
373
|
+
fail: (failure) => ({
|
|
374
|
+
...EMPTY_RESULT,
|
|
375
|
+
success: failure.success === true
|
|
376
|
+
}),
|
|
377
|
+
recordFailure: (failure) => incrementDegradationCount({
|
|
378
|
+
kind: "runner-empty-result",
|
|
379
|
+
subject: "jscpd",
|
|
380
|
+
reason: failure.summary
|
|
381
|
+
}),
|
|
382
|
+
failureFields: () => ({ command }),
|
|
383
|
+
log: this.log
|
|
384
|
+
});
|
|
390
385
|
}
|
|
391
386
|
formatResult(result, maxClones = 8) {
|
|
392
387
|
if (!result.success || result.clones.length === 0)
|
|
@@ -407,40 +402,35 @@ var JscpdClient = class {
|
|
|
407
402
|
return output;
|
|
408
403
|
}
|
|
409
404
|
// --- 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
|
-
}
|
|
405
|
+
/**
|
|
406
|
+
* Turn jscpd's `jscpd-report.json` into the result shape. Input that is not a
|
|
407
|
+
* jscpd report throws: `runReportScan` turns that into a recorded failed
|
|
408
|
+
* scan, so a broken report never reads as a scan that ran and found nothing
|
|
409
|
+
* (#5411). #1736: `statistics.total` holds the stats, not `statistics.clones`.
|
|
410
|
+
*/
|
|
411
|
+
parseReport(raw) {
|
|
412
|
+
const data = parseReportJson("jscpd", raw);
|
|
413
|
+
const total = data.statistics?.total ?? {};
|
|
414
|
+
const duplicatedLines = total.duplicatedLines ?? 0;
|
|
415
|
+
const totalLines = total.lines ?? 0;
|
|
416
|
+
const percentage = total.percentage ?? (totalLines > 0 ? duplicatedLines / totalLines * 100 : 0);
|
|
417
|
+
const rawClones = data.duplicates ?? [];
|
|
418
|
+
const clones = rawClones.map((c) => ({
|
|
419
|
+
fileA: c.firstFile?.name ?? "",
|
|
420
|
+
startA: c.firstFile?.start ?? 0,
|
|
421
|
+
fileB: c.secondFile?.name ?? "",
|
|
422
|
+
startB: c.secondFile?.start ?? 0,
|
|
423
|
+
lines: c.lines ?? 0,
|
|
424
|
+
tokens: c.tokens ?? 0
|
|
425
|
+
}));
|
|
426
|
+
return {
|
|
427
|
+
success: true,
|
|
428
|
+
analyzed: true,
|
|
429
|
+
clones,
|
|
430
|
+
duplicatedLines,
|
|
431
|
+
totalLines,
|
|
432
|
+
percentage
|
|
433
|
+
};
|
|
444
434
|
}
|
|
445
435
|
};
|
|
446
436
|
export {
|