@herbertgao/pi-extensions 2026.11.6 → 2026.11.7
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 +9 -0
- package/README.md +6 -6
- 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/@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 +6 -6
- package/node_modules/pi-lens/CHANGELOG.md +182 -0
- package/node_modules/pi-lens/dist/{chunk-NE4EFHJX.js → chunk-2SD2CGVH.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-7JX3RNG4.js → chunk-34RXPR7M.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-2LVJQU3I.js → chunk-3C6ZZAB2.js} +33 -27
- package/node_modules/pi-lens/dist/{chunk-WAA63ZJV.js → chunk-3HZ6MNB2.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-IDCTDKIA.js → chunk-3NVGBFJS.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-B2YUE6YD.js → chunk-3QCI3V6C.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-NL5LSKVD.js → chunk-3R3Z54J7.js} +10 -4
- package/node_modules/pi-lens/dist/{chunk-7WJ55KBN.js → chunk-43KD3PPM.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-DVRJBQOJ.js → chunk-4HNBY7S7.js} +20 -19
- package/node_modules/pi-lens/dist/chunk-4WWPDMRA.js +22 -0
- package/node_modules/pi-lens/dist/{chunk-QL37SGTS.js → chunk-532X3OCZ.js} +18 -16
- package/node_modules/pi-lens/dist/{chunk-ZZDVGCGG.js → chunk-5RLEDUUE.js} +9 -9
- package/node_modules/pi-lens/dist/{chunk-GUGKKGG7.js → chunk-5YTDZ5WP.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-FOEPIX76.js → chunk-6EIV3H7O.js} +158 -61
- package/node_modules/pi-lens/dist/{chunk-E4VXKTBR.js → chunk-6K4X7IIF.js} +164 -172
- package/node_modules/pi-lens/dist/{chunk-HSYFLOZY.js → chunk-6RXMQYNU.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-K6WIBVMK.js → chunk-6XNVY3FW.js} +8 -9
- package/node_modules/pi-lens/dist/{chunk-ACRJ2GZ5.js → chunk-7424ANRU.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-PTSA6QKL.js → chunk-A4HKPAEN.js} +8 -8
- package/node_modules/pi-lens/dist/{chunk-RQRKIRFY.js → chunk-AFNPNHJV.js} +8 -8
- package/node_modules/pi-lens/dist/{chunk-3FRI5H4T.js → chunk-AGEQRJ5A.js} +24 -10
- package/node_modules/pi-lens/dist/{chunk-MAD4QJTP.js → chunk-AJ62EQIQ.js} +15 -14
- package/node_modules/pi-lens/dist/{chunk-FCQSZQAT.js → chunk-AOQKQWZU.js} +14 -5
- package/node_modules/pi-lens/dist/{chunk-ZOPXB2KK.js → chunk-AVOUHMCS.js} +111 -107
- package/node_modules/pi-lens/dist/{chunk-OTSTS7L2.js → chunk-AYDE7RFV.js} +34 -3
- package/node_modules/pi-lens/dist/{chunk-AWQWXSW4.js → chunk-B4FAFEBP.js} +7 -2
- package/node_modules/pi-lens/dist/{chunk-SKVNHCT5.js → chunk-B4K6OSLL.js} +49 -42
- package/node_modules/pi-lens/dist/{chunk-2ADRLTM2.js → chunk-BBJXIZ3X.js} +3 -3
- package/node_modules/pi-lens/dist/chunk-BJDB7PXU.js +25 -0
- package/node_modules/pi-lens/dist/{chunk-GTTMQ6XB.js → chunk-BLL4VYGZ.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-CZAWWXP6.js → chunk-BMMRLJA4.js} +7 -5
- package/node_modules/pi-lens/dist/{chunk-TN5CWX5D.js → chunk-BN36MQW5.js} +35 -34
- package/node_modules/pi-lens/dist/{chunk-IL6PIV33.js → chunk-C2REOMPO.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-XAFZJEXY.js → chunk-C4ICGFEO.js} +23 -23
- package/node_modules/pi-lens/dist/chunk-CIA7X2PZ.js +26 -0
- package/node_modules/pi-lens/dist/{chunk-SJQUWQR6.js → chunk-D5L7Q57Z.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-XPGH5O74.js → chunk-DBAHJFBU.js} +31 -35
- package/node_modules/pi-lens/dist/{chunk-H65TYP6V.js → chunk-DNB4ZQGN.js} +37 -21
- package/node_modules/pi-lens/dist/chunk-DPDA3ILA.js +108 -0
- package/node_modules/pi-lens/dist/{chunk-QGITU23N.js → chunk-E3PNZDPH.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-KDCIG23C.js → chunk-E6Z3CJT2.js} +13 -9
- package/node_modules/pi-lens/dist/{chunk-V7F7JHS5.js → chunk-ECYUBKYX.js} +557 -551
- package/node_modules/pi-lens/dist/chunk-F37CCZUA.js +27 -0
- package/node_modules/pi-lens/dist/{chunk-KSTQ4VXT.js → chunk-FVEEEEIM.js} +10 -13
- package/node_modules/pi-lens/dist/{chunk-GMC4ZGYR.js → chunk-GL6J5R34.js} +5 -5
- package/node_modules/pi-lens/dist/{chunk-C6AODRNU.js → chunk-GTNO6F6K.js} +11 -10
- package/node_modules/pi-lens/dist/{chunk-KJ3AHOCK.js → chunk-HASJPQBC.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-XVB3Q2PG.js → chunk-HGEE5LDW.js} +3 -2
- package/node_modules/pi-lens/dist/{chunk-F6FT6BVQ.js → chunk-HIUVHRLM.js} +35 -34
- package/node_modules/pi-lens/dist/{chunk-BRESRQBE.js → chunk-HTUG7ZFK.js} +8 -8
- package/node_modules/pi-lens/dist/{chunk-ALIZWXHZ.js → chunk-IBEYUBCM.js} +9 -9
- package/node_modules/pi-lens/dist/{chunk-JZQGRARR.js → chunk-IJ55MYO6.js} +15 -12
- package/node_modules/pi-lens/dist/{chunk-BGLS5SDN.js → chunk-IT7MFVGP.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-AON2QIJF.js → chunk-ITAPXBIB.js} +20 -17
- package/node_modules/pi-lens/dist/{chunk-TLWFZ66Y.js → chunk-JSQK5DH3.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-VCRVNLE7.js → chunk-K2GV34T2.js} +9 -1
- package/node_modules/pi-lens/dist/{chunk-QUQY3IME.js → chunk-KBSC5Z3G.js} +9 -8
- package/node_modules/pi-lens/dist/{chunk-W4CUK5G6.js → chunk-KDGKKK7A.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-YQA34KAF.js → chunk-KDMJ2DJD.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-SG2JQ2YP.js → chunk-KNP4ENFT.js} +1 -1
- package/node_modules/pi-lens/dist/chunk-KX4DF6XX.js +25 -0
- package/node_modules/pi-lens/dist/{chunk-4ITEFRDH.js → chunk-LHCDWFDB.js} +37 -145
- package/node_modules/pi-lens/dist/{chunk-3HM4BUHR.js → chunk-LHU6NG5Z.js} +16 -15
- package/node_modules/pi-lens/dist/{chunk-6I44EDNQ.js → chunk-LIDFFCZZ.js} +17 -15
- package/node_modules/pi-lens/dist/{chunk-KFRDFAOE.js → chunk-LPM6NKVI.js} +7 -7
- package/node_modules/pi-lens/dist/{chunk-NBM7PNBP.js → chunk-LXE7JAMV.js} +37 -26
- package/node_modules/pi-lens/dist/{chunk-UY745U35.js → chunk-ME6MF2N2.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-YT2VR4SL.js → chunk-NLRKB32C.js} +7 -7
- package/node_modules/pi-lens/dist/{chunk-QHOTTC4A.js → chunk-NQFXN5U7.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-QUPYLQA4.js → chunk-NR4KQOXZ.js} +14 -9
- package/node_modules/pi-lens/dist/{chunk-Y3EHLUPL.js → chunk-NWK7KKNO.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-A5TEJZGJ.js → chunk-O6LCSHHI.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-CTB5BAJI.js → chunk-OC4ZGVMH.js} +17 -14
- package/node_modules/pi-lens/dist/{chunk-VPFRU5IG.js → chunk-OP5BMZKK.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-MN635QYA.js → chunk-OYXD2MOM.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-GVWIU7M7.js → chunk-PSUXESQ5.js} +41 -4
- package/node_modules/pi-lens/dist/{chunk-J6BR5XN2.js → chunk-QAM2Q3VO.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-6MDM5MQT.js → chunk-QBUSONNE.js} +367 -153
- package/node_modules/pi-lens/dist/{chunk-VGTBLTPN.js → chunk-QDZ3ZZMY.js} +18 -66
- package/node_modules/pi-lens/dist/{chunk-LT62P654.js → chunk-QJ4T73J5.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-DOUAWKLO.js → chunk-QUZYRDT6.js} +12 -12
- package/node_modules/pi-lens/dist/{chunk-UNBRHPHJ.js → chunk-R2UF54ON.js} +17 -15
- package/node_modules/pi-lens/dist/{chunk-I32RSMH6.js → chunk-R2VUZZPJ.js} +11 -10
- package/node_modules/pi-lens/dist/chunk-R5BNSOIV.js +29 -0
- package/node_modules/pi-lens/dist/chunk-RV5VX2XW.js +29 -0
- package/node_modules/pi-lens/dist/{chunk-QWTHFFU6.js → chunk-SQBDX6IO.js} +12 -12
- 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-QMV2APEH.js → chunk-TBE4OLPA.js} +37 -35
- package/node_modules/pi-lens/dist/{chunk-B6HXETWY.js → chunk-TPMBNWHO.js} +28 -26
- package/node_modules/pi-lens/dist/{chunk-CYUJB552.js → chunk-TRYOYWWU.js} +18 -12
- package/node_modules/pi-lens/dist/{chunk-TJQSYX3J.js → chunk-TTGDTNSN.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-S3WFVG5P.js → chunk-UELHWF5I.js} +137 -126
- package/node_modules/pi-lens/dist/chunk-UG4YLCJ5.js +58 -0
- package/node_modules/pi-lens/dist/chunk-UQ6OZYTO.js +91 -0
- package/node_modules/pi-lens/dist/{chunk-QSCZAP24.js → chunk-UY3WWW5R.js} +4 -4
- package/node_modules/pi-lens/dist/chunk-V7IPIAE5.js +74 -0
- package/node_modules/pi-lens/dist/{chunk-4NCDHTFI.js → chunk-VDMF7Q2P.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-TYHOEX4V.js → chunk-VI3BJMZO.js} +35 -34
- package/node_modules/pi-lens/dist/{chunk-UOO4D2TK.js → chunk-VTXJAO5R.js} +34 -35
- package/node_modules/pi-lens/dist/chunk-W6VLB6LL.js +145 -0
- package/node_modules/pi-lens/dist/{chunk-NPNFGYLV.js → chunk-WBXCIRVI.js} +19 -2
- package/node_modules/pi-lens/dist/{chunk-CB7PEVOJ.js → chunk-WLD6BGON.js} +176 -60
- package/node_modules/pi-lens/dist/{chunk-Q2VCKC3X.js → chunk-WMCAEP2K.js} +11 -8
- package/node_modules/pi-lens/dist/{chunk-OPFNQBS5.js → chunk-WXMUGUZV.js} +21 -25
- package/node_modules/pi-lens/dist/{chunk-46TQJSUE.js → chunk-X33QECRJ.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-HILZE4BQ.js → chunk-YUF4DRYB.js} +396 -306
- package/node_modules/pi-lens/dist/{chunk-YF4G5NN5.js → chunk-YVPB5YGO.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-W7TY6HYX.js → chunk-ZRQMENT4.js} +5 -27
- package/node_modules/pi-lens/dist/index.js +5573 -4181
- package/node_modules/pi-lens/dist/mcp/analyze-cli.js +17 -11
- package/node_modules/pi-lens/dist/mcp/cli.js +43 -42
- package/node_modules/pi-lens/dist/mcp/server.js +1521 -610
- package/node_modules/pi-lens/dist/mcp/worker.js +62 -59
- 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 +4 -2
- 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 +21 -3
- 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/invariants/dispatch-runners.md +13 -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/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/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 +6 -6
- package/node_modules/pi-lens/dist/chunk-3QWVOBZJ.js +0 -73
- package/node_modules/pi-lens/dist/chunk-BDR5MEZY.js +0 -25
- 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-ZPFLHB3R.js +0 -28
|
@@ -13,15 +13,16 @@ rule:
|
|
|
13
13
|
- pattern: requests.$FN($$$ARGS, verify=False, $$$REST)
|
|
14
14
|
- pattern: requests.$FN($$$ARGS, $$$BEFORE, verify=False)
|
|
15
15
|
- pattern: requests.$FN(verify=False)
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
16
|
+
metadata:
|
|
17
|
+
has_fix: false
|
|
18
|
+
tags:
|
|
19
|
+
- python
|
|
20
|
+
- security
|
|
21
|
+
- tls
|
|
22
|
+
- verification
|
|
23
|
+
- cwe-295
|
|
24
|
+
examples:
|
|
25
|
+
bad: |
|
|
26
|
+
r = requests.get("https://api.example.com", verify=False)
|
|
27
|
+
good: |
|
|
28
|
+
r = requests.get("https://api.example.com")
|
|
@@ -23,8 +23,8 @@ note: |-
|
|
|
23
23
|
string check to direct children of the assignment — this
|
|
24
24
|
skips cases where the RHS is a complex expression like
|
|
25
25
|
`os.environ["DB_PASSWORD"]` (no direct string child).
|
|
26
|
-
ast-grep-essentials: true
|
|
27
26
|
metadata:
|
|
27
|
+
ast-grep-essentials: true
|
|
28
28
|
sonar: S6418
|
|
29
29
|
rule:
|
|
30
30
|
all:
|
|
@@ -12,11 +12,12 @@ note: |
|
|
|
12
12
|
rule:
|
|
13
13
|
kind: type
|
|
14
14
|
regex: '^(Optional|typing\.Optional|t\.Optional)\['
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
metadata:
|
|
16
|
+
has_fix: false
|
|
17
|
+
tags:
|
|
18
|
+
- python
|
|
19
|
+
- typing
|
|
20
|
+
- modernization
|
|
21
|
+
examples:
|
|
22
|
+
bad: "value: Optional[str]"
|
|
23
|
+
good: "value: str | None"
|
|
@@ -20,10 +20,11 @@ constraints:
|
|
|
20
20
|
FN:
|
|
21
21
|
regex: "^(any|all|sum)$"
|
|
22
22
|
fix: "$FN($X for $Y in $Z)"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
metadata:
|
|
24
|
+
tags:
|
|
25
|
+
- python
|
|
26
|
+
- performance
|
|
27
|
+
- modernization
|
|
28
|
+
examples:
|
|
29
|
+
bad: "total = sum([price for price in prices])"
|
|
30
|
+
good: "total = sum(price for price in prices)"
|
|
@@ -18,16 +18,17 @@ rule:
|
|
|
18
18
|
- pattern: File.join($$$ARGS)
|
|
19
19
|
- pattern: send_file $VAR
|
|
20
20
|
fix: ""
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
21
|
+
metadata:
|
|
22
|
+
tags:
|
|
23
|
+
- ruby
|
|
24
|
+
- security
|
|
25
|
+
- path-traversal
|
|
26
|
+
- cwe-22
|
|
27
|
+
- rails
|
|
28
|
+
examples:
|
|
29
|
+
bad: |
|
|
30
|
+
Rails.root.join('uploads', params[:filename])
|
|
31
|
+
send_file params[:file]
|
|
32
|
+
good: |
|
|
33
|
+
Rails.root.join('uploads', 'safe.png')
|
|
34
|
+
send_file 'public/index.html'
|
|
@@ -16,10 +16,11 @@ constraints:
|
|
|
16
16
|
METHOD:
|
|
17
17
|
regex: '^[A-Za-z_][A-Za-z0-9_]*[?!=]?$'
|
|
18
18
|
fix: "$LIST.$ITER(&:$METHOD)"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
metadata:
|
|
20
|
+
tags:
|
|
21
|
+
- ruby
|
|
22
|
+
- style
|
|
23
|
+
- modernization
|
|
24
|
+
examples:
|
|
25
|
+
bad: "names.map { |name| name.upcase }"
|
|
26
|
+
good: "names.map(&:upcase)"
|
|
@@ -9,11 +9,12 @@ note: |
|
|
|
9
9
|
consumer requires byte offsets.
|
|
10
10
|
rule:
|
|
11
11
|
pattern: $TEXT.chars().enumerate()
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
12
|
+
metadata:
|
|
13
|
+
has_fix: false
|
|
14
|
+
tags:
|
|
15
|
+
- rust
|
|
16
|
+
- correctness
|
|
17
|
+
- unicode
|
|
18
|
+
examples:
|
|
19
|
+
bad: "for (index, character) in text.chars().enumerate() {}"
|
|
20
|
+
good: "for (index, character) in text.char_indices() {}"
|
|
@@ -20,6 +20,11 @@ import os from "node:os";
|
|
|
20
20
|
import path from "node:path";
|
|
21
21
|
import readline from "node:readline";
|
|
22
22
|
import { minimatch } from "minimatch";
|
|
23
|
+
import {
|
|
24
|
+
latencyAgeMs,
|
|
25
|
+
latencySpanMs,
|
|
26
|
+
lowerRankPercentile,
|
|
27
|
+
} from "./lib/latency-log-phases.mjs";
|
|
23
28
|
|
|
24
29
|
const DEFAULT_ROOT = path.join(os.homedir(), ".pi-lens");
|
|
25
30
|
const DEFAULT_SINCE = "2d";
|
|
@@ -33,8 +38,7 @@ const DEFAULT_EXCLUDE_GLOBS = [
|
|
|
33
38
|
const args = parseArgs(process.argv.slice(2));
|
|
34
39
|
const root = path.resolve(expandHome(args.root ?? DEFAULT_ROOT));
|
|
35
40
|
const since = parseSince(args.since ?? DEFAULT_SINCE);
|
|
36
|
-
const limit =
|
|
37
|
-
Number.parseInt(args.limit ?? `${DEFAULT_LIMIT}`, 10) || DEFAULT_LIMIT;
|
|
41
|
+
const limit = parseLimit(args.limit);
|
|
38
42
|
const outputJson = Boolean(args.json);
|
|
39
43
|
const includeArchived = Boolean(args.archived);
|
|
40
44
|
const excludeGlobs = [
|
|
@@ -113,6 +117,22 @@ function parseArgs(argv) {
|
|
|
113
117
|
return out;
|
|
114
118
|
}
|
|
115
119
|
|
|
120
|
+
/**
|
|
121
|
+
* `--limit` caps each section's rows through `pushTop`, which truncates with
|
|
122
|
+
* `array.length = max`: a value below 1 threw `RangeError` mid-report (-1) or
|
|
123
|
+
* silently became the default (0). A non-numeric value keeps falling back to
|
|
124
|
+
* the default, as before.
|
|
125
|
+
*/
|
|
126
|
+
function parseLimit(value) {
|
|
127
|
+
const parsed = Number.parseInt(value ?? `${DEFAULT_LIMIT}`, 10);
|
|
128
|
+
if (Number.isNaN(parsed)) return DEFAULT_LIMIT;
|
|
129
|
+
if (parsed < 1) {
|
|
130
|
+
console.error(`Invalid --limit value: ${value} (must be at least 1)`);
|
|
131
|
+
process.exit(2);
|
|
132
|
+
}
|
|
133
|
+
return parsed;
|
|
134
|
+
}
|
|
135
|
+
|
|
116
136
|
function printHelp() {
|
|
117
137
|
console.log(
|
|
118
138
|
`Usage: node scripts/analyze-pi-lens-logs.mjs [options]\n\nOptions:\n --since <2d|24h|YYYY-MM-DD|all> Time window (default: ${DEFAULT_SINCE})\n --root <dir> pi-lens log root (default: ~/.pi-lens)\n --limit <n> Top-N rows per section (default: ${DEFAULT_LIMIT})\n --archived Include archived rotated logs too\n --json Emit machine-readable JSON\n\nThresholds:\n --startupSlowMs <n> session_start total threshold (default: ${thresholds.startupSlowMs})\n --backgroundSlowMs <n> session_start background task threshold (default: ${thresholds.backgroundSlowMs})\n --totalSlowMs <n> tool total phase threshold (default: ${thresholds.totalSlowMs})\n --runnerSlowMs <n> runner duration threshold (default: ${thresholds.runnerSlowMs})\n --cascadeGraphSlowMs <n> cascade graph build threshold (default: ${thresholds.cascadeGraphSlowMs})\n`,
|
|
@@ -221,6 +241,19 @@ function createState(files) {
|
|
|
221
241
|
toolResults: counter(),
|
|
222
242
|
phaseCounts: counter(),
|
|
223
243
|
phaseTimeouts: counter(),
|
|
244
|
+
// #5263: every in-window `durationMs` per (tool, phase) and per runner, so
|
|
245
|
+
// the report answers "how long does this phase actually take" instead of
|
|
246
|
+
// only "how many rows crossed a fixed threshold". See
|
|
247
|
+
// `latencyDistribution` for the percentile method and the memory bound.
|
|
248
|
+
phaseDurations: new Map(),
|
|
249
|
+
// #5263 r2 F2: parent `total` phase rows, which sum the phases under them
|
|
250
|
+
// and are therefore excluded from the phase sample like `tool_result`.
|
|
251
|
+
phaseParentRows: 0,
|
|
252
|
+
runnerDurations: new Map(),
|
|
253
|
+
// Runner rows that record a plan decision or a placeholder instead of
|
|
254
|
+
// work (`skipped`, `not_registered`, `pending`), counted per runner so a
|
|
255
|
+
// distribution count can be reconciled against `runnerStatus`.
|
|
256
|
+
runnerSkipped: counter(),
|
|
224
257
|
skillsResolved: counter(),
|
|
225
258
|
// D1: every latency row timestamp (ms) in window, for the coverage-gap
|
|
226
259
|
// scan. Sorted after all files are read.
|
|
@@ -437,6 +470,7 @@ async function analyzeLatency(files, state) {
|
|
|
437
470
|
state.seen.inc("latency");
|
|
438
471
|
trackLatencyProject(state, entry);
|
|
439
472
|
trackLatencySignals(state, entry, ts);
|
|
473
|
+
recordLatencyDuration(state, entry);
|
|
440
474
|
|
|
441
475
|
if (entry.type === "runner") {
|
|
442
476
|
const status = entry.status ?? "unknown";
|
|
@@ -1427,7 +1461,11 @@ function summarizeWorkspaceSweep(entry) {
|
|
|
1427
1461
|
if (md.perFileMs) bits.push(`perFileMs=${md.perFileMs}`);
|
|
1428
1462
|
return {
|
|
1429
1463
|
ts: entry.ts,
|
|
1430
|
-
|
|
1464
|
+
// A finished sweep carries a span; a heartbeat carries its elapsed time so
|
|
1465
|
+
// far, an age (#5379). Both read through the one shared span-or-age rule
|
|
1466
|
+
// (a pre-#5379 heartbeat holds the age in `durationMs`), and this field is
|
|
1467
|
+
// the elapsed time either way: it is shown, never ranked as a duration.
|
|
1468
|
+
durationMs: latencySpanMs(entry) ?? latencyAgeMs(entry),
|
|
1431
1469
|
project: projectOf(entry.filePath),
|
|
1432
1470
|
filePath: shortPath(entry.filePath),
|
|
1433
1471
|
message: bits.join(", "),
|
|
@@ -1859,6 +1897,168 @@ async function analyzeExtension(files, state) {
|
|
|
1859
1897
|
}
|
|
1860
1898
|
}
|
|
1861
1899
|
|
|
1900
|
+
/**
|
|
1901
|
+
* #5263: keep one duration sample per in-window latency row, so the report can
|
|
1902
|
+
* state a per-(tool, phase) and per-runner distribution. Rows that carry no
|
|
1903
|
+
* usable `durationMs` (absent, null, non-finite, or negative — a row from a
|
|
1904
|
+
* build that computed it wrong) are counted out rather than guessed at as 0:
|
|
1905
|
+
* a phantom 0 would move p50 without being a measurement. They stay in
|
|
1906
|
+
* `phaseCounts`, which counts rows, not milliseconds.
|
|
1907
|
+
*
|
|
1908
|
+
* Only the two row types with a duration that means work are sampled. A
|
|
1909
|
+
* `tool_result` row's `durationMs` is the whole hook's total, which is the sum
|
|
1910
|
+
* of the phases under it, so sampling it too would double-count the same
|
|
1911
|
+
* milliseconds into the same denominator. A parent `total` phase row is the same
|
|
1912
|
+
* double-count one level down (#5263 r2 F2), and is counted out instead.
|
|
1913
|
+
*
|
|
1914
|
+
* `latencySpanMs` is the one span-or-age rule (#5379, `scripts/lib/latency-log-phases.mjs`):
|
|
1915
|
+
* a row that carries `ageMs`, or is a legacy age line, is not a duration at all,
|
|
1916
|
+
* so it never enters a percentile and this script keeps no phase-name list.
|
|
1917
|
+
*/
|
|
1918
|
+
function recordLatencyDuration(state, entry) {
|
|
1919
|
+
const ms = latencySpanMs(entry);
|
|
1920
|
+
if (ms === undefined || ms < 0) return;
|
|
1921
|
+
if (entry.type === "phase") {
|
|
1922
|
+
const phase = entry.phase ?? "unknown";
|
|
1923
|
+
const key = `${entry.toolName ?? "unknown"}:${phase}`;
|
|
1924
|
+
if (phase === "total") {
|
|
1925
|
+
state.latency.phaseParentRows += 1;
|
|
1926
|
+
return;
|
|
1927
|
+
}
|
|
1928
|
+
pushDurationGroup(state.latency.phaseDurations, key, ms);
|
|
1929
|
+
} else if (entry.type === "runner") {
|
|
1930
|
+
const runner = entry.runnerId ?? "unknown";
|
|
1931
|
+
if (!runnerRowRan(entry)) {
|
|
1932
|
+
state.latency.runnerSkipped.inc(runner);
|
|
1933
|
+
return;
|
|
1934
|
+
}
|
|
1935
|
+
pushDurationGroup(state.latency.runnerDurations, runner, ms);
|
|
1936
|
+
}
|
|
1937
|
+
}
|
|
1938
|
+
|
|
1939
|
+
function pushDurationGroup(groups, key, ms) {
|
|
1940
|
+
const list = groups.get(key);
|
|
1941
|
+
if (list) list.push(ms);
|
|
1942
|
+
else groups.set(key, [ms]);
|
|
1943
|
+
}
|
|
1944
|
+
|
|
1945
|
+
/**
|
|
1946
|
+
* Did this runner row measure work? The dispatcher writes `durationMs: 0`
|
|
1947
|
+
* beside every plan decision (`skipped`, `test_file_skipped`, `when_skipped`,
|
|
1948
|
+
* `not_registered` in `clients/dispatch/dispatcher.ts`), so a runner that never
|
|
1949
|
+
* ran would add a zero sample to its own distribution and drag p50 toward the
|
|
1950
|
+
* skip time. The status family is matched by suffix, not by an enumerated
|
|
1951
|
+
* list, so a new `<something>_skipped` status is excluded the way its siblings
|
|
1952
|
+
* are. A row with no status at all, or with an empty one (an older build),
|
|
1953
|
+
* counts as work: the suffix cannot match an empty string, so it needs no clause
|
|
1954
|
+
* of its own — pinned by the `status: ""` cell in
|
|
1955
|
+
* `tests/fixtures/analyze-logs/sample-rules/latency.log`.
|
|
1956
|
+
*
|
|
1957
|
+
* `pending` is the collect-later runner's placeholder (`durationMs: 0`, written
|
|
1958
|
+
* by `clients/dispatch/dispatcher.ts` before the turn-end result settles it):
|
|
1959
|
+
* it measures nothing, so it is non-work like the skip family and the settled
|
|
1960
|
+
* row alone carries the runner's time.
|
|
1961
|
+
*/
|
|
1962
|
+
function runnerRowRan(entry) {
|
|
1963
|
+
const status = entry.status;
|
|
1964
|
+
if (typeof status !== "string") return true;
|
|
1965
|
+
return (
|
|
1966
|
+
!/(?:^|_)skipped$/.test(status) &&
|
|
1967
|
+
status !== "not_registered" &&
|
|
1968
|
+
status !== "pending"
|
|
1969
|
+
);
|
|
1970
|
+
}
|
|
1971
|
+
|
|
1972
|
+
/**
|
|
1973
|
+
* One row per group: count, the p50/p95 from `lowerRankPercentile` (the shared
|
|
1974
|
+
* clamped floor-rank rule in `scripts/lib/latency-log-phases.mjs`, which names
|
|
1975
|
+
* the method and its small-n behaviour), the group's total, and its share of the
|
|
1976
|
+
* family total. The report exists to rank real work for a human, so an 8.55th
|
|
1977
|
+
* sample would name no row anyone can go find.
|
|
1978
|
+
*
|
|
1979
|
+
* The sample is the whole group: exact rather than approximate, which is what
|
|
1980
|
+
* an offline forensic run wants (no histogram edges, no summary state to keep
|
|
1981
|
+
* in sync with a late row). The retained population is one number per in-window
|
|
1982
|
+
* duration row; the maintainer's ~12 MB live-plus-rotation `latency.log` held
|
|
1983
|
+
* 25,310 rows in its 7-day window, so this is a few MB in a process that prints
|
|
1984
|
+
* one report and exits. The analyzer already retains one number per row this
|
|
1985
|
+
* way (`latency.rowTs`, D1), so the distribution scales with the axis the
|
|
1986
|
+
* window already bounds rather than opening a new unbounded one.
|
|
1987
|
+
*/
|
|
1988
|
+
function latencyDistribution(groups, cap, label) {
|
|
1989
|
+
let totalMs = 0;
|
|
1990
|
+
for (const durations of groups.values()) {
|
|
1991
|
+
for (const ms of durations) totalMs += ms;
|
|
1992
|
+
}
|
|
1993
|
+
const rows = [];
|
|
1994
|
+
for (const [key, durations] of groups) {
|
|
1995
|
+
durations.sort((a, b) => a - b);
|
|
1996
|
+
const groupMs = durations.reduce((acc, ms) => acc + ms, 0);
|
|
1997
|
+
pushTop(
|
|
1998
|
+
rows,
|
|
1999
|
+
{
|
|
2000
|
+
key,
|
|
2001
|
+
...(label ? label(key) : {}),
|
|
2002
|
+
count: durations.length,
|
|
2003
|
+
p50Ms: lowerRankPercentile(durations, 0.5),
|
|
2004
|
+
p95Ms: lowerRankPercentile(durations, 0.95),
|
|
2005
|
+
maxMs: durations.at(-1),
|
|
2006
|
+
totalMs: groupMs,
|
|
2007
|
+
// The denominator is this family's total, so a phase's share reads as
|
|
2008
|
+
// "of the recorded phase spans in window" and runner time never dilutes it.
|
|
2009
|
+
share: totalMs > 0 ? groupMs / totalMs : 0,
|
|
2010
|
+
},
|
|
2011
|
+
cap,
|
|
2012
|
+
(a, b) => b.totalMs - a.totalMs || a.key.localeCompare(b.key),
|
|
2013
|
+
);
|
|
2014
|
+
}
|
|
2015
|
+
// `groups`/`shown` are the disclosure of the cap (#5263 r2 F3): the field run
|
|
2016
|
+
// read the 12-row `--limit` as the population, because the report said
|
|
2017
|
+
// nothing about the 122 groups it had hidden.
|
|
2018
|
+
return { totalMs, groups: groups.size, shown: rows.length, rows };
|
|
2019
|
+
}
|
|
2020
|
+
|
|
2021
|
+
/**
|
|
2022
|
+
* The phase block's row label. Phase rows key on `"<toolName>:<phase>"`, so the
|
|
2023
|
+
* split is on the FIRST colon: a phase name can hold one (a runner id does not,
|
|
2024
|
+
* but a future `tool:sub` phase label might), while the tool name written by
|
|
2025
|
+
* `logLatency` is always a bare tool name.
|
|
2026
|
+
*/
|
|
2027
|
+
function phaseKeyLabel(key) {
|
|
2028
|
+
const at = key.indexOf(":");
|
|
2029
|
+
return { tool: key.slice(0, at), phase: key.slice(at + 1) };
|
|
2030
|
+
}
|
|
2031
|
+
|
|
2032
|
+
/**
|
|
2033
|
+
* The #5263 report sections. `phaseLatency` is the ranking of recorded phase
|
|
2034
|
+
* spans and `runnerLatency` is the per-runner distribution with its own
|
|
2035
|
+
* denominator.
|
|
2036
|
+
*/
|
|
2037
|
+
function buildLatencyDistributions(state) {
|
|
2038
|
+
const phaseLatency = latencyDistribution(
|
|
2039
|
+
state.latency.phaseDurations,
|
|
2040
|
+
limit,
|
|
2041
|
+
phaseKeyLabel,
|
|
2042
|
+
);
|
|
2043
|
+
// Disclosed rather than silently dropped: a reader needs to know the 1,000 ms
|
|
2044
|
+
// they can see is not the 2,500 ms the hook path spent.
|
|
2045
|
+
phaseLatency.parentTotalRows = state.latency.phaseParentRows;
|
|
2046
|
+
const runnerLatency = latencyDistribution(
|
|
2047
|
+
state.latency.runnerDurations,
|
|
2048
|
+
limit,
|
|
2049
|
+
(key) => ({ runner: key }),
|
|
2050
|
+
);
|
|
2051
|
+
for (const row of runnerLatency.rows) {
|
|
2052
|
+
row.skippedRows = state.latency.runnerSkipped.get(row.key);
|
|
2053
|
+
}
|
|
2054
|
+
// The per-row count cannot show a runner that only ever had non-work rows
|
|
2055
|
+
// (it owns no group), so the section carries the whole total (#5263 C7.1).
|
|
2056
|
+
runnerLatency.skippedRows = state.latency.runnerSkipped
|
|
2057
|
+
.entries()
|
|
2058
|
+
.reduce((sum, [, count]) => sum + count, 0);
|
|
2059
|
+
return { phaseLatency, runnerLatency };
|
|
2060
|
+
}
|
|
2061
|
+
|
|
1862
2062
|
function countBetween(sorted, a, b) {
|
|
1863
2063
|
let n = 0;
|
|
1864
2064
|
for (const value of sorted) {
|
|
@@ -2639,6 +2839,7 @@ function buildReport(state) {
|
|
|
2639
2839
|
toolResults: state.latency.toolResults.toJSON(),
|
|
2640
2840
|
phaseCounts: state.latency.phaseCounts.top(limit),
|
|
2641
2841
|
phaseTimeouts: state.latency.phaseTimeouts.toJSON(),
|
|
2842
|
+
...buildLatencyDistributions(state),
|
|
2642
2843
|
skillsResolved: state.latency.skillsResolved.toJSON(),
|
|
2643
2844
|
workspaceDiagnostics: {
|
|
2644
2845
|
started: ws.started,
|
|
@@ -2891,6 +3092,43 @@ function printReport(report) {
|
|
|
2891
3092
|
report.latency.runnerStatus,
|
|
2892
3093
|
(x) => `${x.count.toString().padStart(5)} ${x.key}`,
|
|
2893
3094
|
);
|
|
3095
|
+
const phaseDist = report.latency.phaseLatency;
|
|
3096
|
+
if (phaseDist?.rows?.length) {
|
|
3097
|
+
console.log("\nPhase latency");
|
|
3098
|
+
console.log(
|
|
3099
|
+
` p50/p95/max (clamped floor-rank percentile) per (tool, phase), share of ${formatMs(phaseDist.totalMs)}ms summed recorded phase spans (nested spans overlap)`,
|
|
3100
|
+
);
|
|
3101
|
+
if (phaseDist.parentTotalRows) {
|
|
3102
|
+
console.log(
|
|
3103
|
+
` ${phaseDist.parentTotalRows} parent \`total\` rows excluded (they sum the phases under them)`,
|
|
3104
|
+
);
|
|
3105
|
+
}
|
|
3106
|
+
for (const row of phaseDist.rows) console.log(` ${formatLatencyRow(row)}`);
|
|
3107
|
+
const hidden = phaseDist.groups - phaseDist.shown;
|
|
3108
|
+
if (hidden > 0)
|
|
3109
|
+
console.log(
|
|
3110
|
+
` showing ${phaseDist.shown} of ${phaseDist.groups} groups (${hidden} hidden by --limit ${limit})`,
|
|
3111
|
+
);
|
|
3112
|
+
}
|
|
3113
|
+
const runnerDist = report.latency.runnerLatency;
|
|
3114
|
+
if (runnerDist?.rows?.length) {
|
|
3115
|
+
console.log("\nRunner latency");
|
|
3116
|
+
console.log(
|
|
3117
|
+
` p50/p95/max (clamped floor-rank percentile) per runner, share of ${formatMs(runnerDist.totalMs)}ms runner time (skip rows excluded)`,
|
|
3118
|
+
);
|
|
3119
|
+
if (runnerDist.skippedRows) {
|
|
3120
|
+
console.log(
|
|
3121
|
+
` ${runnerDist.skippedRows} skipped or pending rows excluded (they record a decision or a placeholder, not work)`,
|
|
3122
|
+
);
|
|
3123
|
+
}
|
|
3124
|
+
for (const row of runnerDist.rows)
|
|
3125
|
+
console.log(` ${formatLatencyRow(row)}`);
|
|
3126
|
+
const hidden = runnerDist.groups - runnerDist.shown;
|
|
3127
|
+
if (hidden > 0)
|
|
3128
|
+
console.log(
|
|
3129
|
+
` showing ${runnerDist.shown} of ${runnerDist.groups} groups (${hidden} hidden by --limit ${limit})`,
|
|
3130
|
+
);
|
|
3131
|
+
}
|
|
2894
3132
|
section(
|
|
2895
3133
|
"Read-guard events",
|
|
2896
3134
|
Object.entries(report.readGuard.events).map(([key, count]) => ({
|
|
@@ -3021,6 +3259,27 @@ function section(title, rows, formatter) {
|
|
|
3021
3259
|
for (const row of rows.slice(0, limit)) console.log(` ${formatter(row)}`);
|
|
3022
3260
|
}
|
|
3023
3261
|
|
|
3262
|
+
function formatLatencyRow(row) {
|
|
3263
|
+
return (
|
|
3264
|
+
`${String(row.count).padStart(6)} p50=${formatMs(row.p50Ms)} p95=${formatMs(row.p95Ms)} max=${formatMs(row.maxMs)}` +
|
|
3265
|
+
` ${(row.share * 100).toFixed(1)}%` +
|
|
3266
|
+
` ${row.key}` +
|
|
3267
|
+
(row.skippedRows ? ` (skipped ${row.skippedRows})` : "")
|
|
3268
|
+
);
|
|
3269
|
+
}
|
|
3270
|
+
|
|
3271
|
+
/**
|
|
3272
|
+
* The report is a ranking a human reads, so a duration keeps at most one
|
|
3273
|
+
* decimal: several producers time with `performance.now()` and write 677.82059…
|
|
3274
|
+
* (a 45-column number per row hides the ranking). `--json` keeps the exact
|
|
3275
|
+
* value; only the text rendering rounds.
|
|
3276
|
+
*/
|
|
3277
|
+
function formatMs(ms) {
|
|
3278
|
+
return typeof ms === "number" && Number.isInteger(ms)
|
|
3279
|
+
? `${ms}`
|
|
3280
|
+
: `${Number(ms).toFixed(1)}`;
|
|
3281
|
+
}
|
|
3282
|
+
|
|
3024
3283
|
function formatExample(ex) {
|
|
3025
3284
|
if (!ex) return "";
|
|
3026
3285
|
const bits = [];
|
|
@@ -93,3 +93,128 @@ export function countEntriesSince(entries, sinceIso) {
|
|
|
93
93
|
return Number.isFinite(ts) && ts >= sinceMs;
|
|
94
94
|
}).length;
|
|
95
95
|
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* The p-quantile of an ascending sample by the clamped floor-rank index
|
|
99
|
+
* `clamp(floor(p * n), 0, n - 1)`, so `p(0)` answers the first element, `p(1)`
|
|
100
|
+
* the last, and every reported number is an OBSERVED sample rather than an
|
|
101
|
+
* interpolation between two.
|
|
102
|
+
*
|
|
103
|
+
* The exact rule matters at small n, so it is named rather than labelled
|
|
104
|
+
* "nearest-rank": at even n the p50 is the UPPER of the two middle samples
|
|
105
|
+
* (`n = 2` → the 2nd, `n = 20` → the 11th, where nearest-rank answers the 10th),
|
|
106
|
+
* and for every `n <= 20` the p95 index `floor(0.95 * n)` is the last index, so
|
|
107
|
+
* a 20-row group reports p95 equal to max and shows no tail of its own.
|
|
108
|
+
*
|
|
109
|
+
* This is the ONE implementation for both consumers of a latency-log percentile:
|
|
110
|
+
* the published log analyzer (`scripts/analyze-pi-lens-logs.mjs`, #5263) and the
|
|
111
|
+
* hot-path gate's bootstrapped CI tails (`scripts/lib/latency-stats.mjs`, #4363).
|
|
112
|
+
* It lives here because this module is the only percentile home in `package.json`
|
|
113
|
+
* `files`: `latency-stats.mjs` is dev/CI-only, so having the analyzer import it
|
|
114
|
+
* shipped `scripts/analyze-pi-lens-logs.mjs -> './lib/latency-stats.mjs'` →
|
|
115
|
+
* `NOT FOUND` in the packed tree (the `Install test` leg runs
|
|
116
|
+
* `scripts/check-extensions.mjs` over the installed files). The two percentile
|
|
117
|
+
* siblings that stay separate are different methods on purpose:
|
|
118
|
+
* `clients/performance-report.ts` interpolates between samples for its
|
|
119
|
+
* in-session p50/p99 summary, and `scripts/bench-word-index-replacement.mjs`
|
|
120
|
+
* uses `floor((n - 1) * p)`; folding either would change shipped numbers.
|
|
121
|
+
*
|
|
122
|
+
* @param {readonly number[]} sorted ascending sample
|
|
123
|
+
* @param {number} p quantile in [0, 1]
|
|
124
|
+
*/
|
|
125
|
+
export function lowerRankPercentile(sorted, p) {
|
|
126
|
+
const at = Math.min(
|
|
127
|
+
sorted.length - 1,
|
|
128
|
+
Math.max(0, Math.floor(p * sorted.length)),
|
|
129
|
+
);
|
|
130
|
+
return sorted[at];
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// #5379 — span versus age. A latency row's `durationMs` is a SPAN: how long the
|
|
134
|
+
// work the row names took. Some producers instead had a value that is an AGE
|
|
135
|
+
// (time since an earlier event: a document's last sync, a hold's acquisition, a
|
|
136
|
+
// process's start) or a partial elapsed time of work that had not finished, and
|
|
137
|
+
// wrote it to `durationMs` as well; every reader that ranks phases by duration
|
|
138
|
+
// then ranked waiting time as work (`lsp_document_drift` was 81.8% of a live
|
|
139
|
+
// log's phase time). Producers now write such a value to `ageMs` and no
|
|
140
|
+
// `durationMs`. This is the ONE rule both `clients/performance-report.ts` and
|
|
141
|
+
// `scripts/analyze-pi-lens-logs.mjs` read: a row is a duration only if it
|
|
142
|
+
// carries `durationMs` and no `ageMs`. A reader never keeps a phase-name list of
|
|
143
|
+
// its own; a new producer of a non-span value writes `ageMs` and every reader
|
|
144
|
+
// follows.
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* COMPAT for log lines written before #5379, which hold an age in `durationMs`
|
|
148
|
+
* and carry no `ageMs`. This fixed list is consulted ONLY for a line without
|
|
149
|
+
* `ageMs`; a line from a build that has the field never reads it. The list is
|
|
150
|
+
* closed on purpose: it names the producers that existed when the field was
|
|
151
|
+
* introduced and is never extended. A new producer of an age writes `ageMs`.
|
|
152
|
+
* Each name was verified against its producer, and `durationMs` was an age (or
|
|
153
|
+
* a partial elapsed time) on every row of the phase, never only some:
|
|
154
|
+
* - lsp_document_drift: now minus the document's last sync (clients/lsp/index.ts)
|
|
155
|
+
* - lsp_workspace_sweep_hold_force_released: the hold's age at the cap reap
|
|
156
|
+
* - event_loop_hold_force_released: the oldest released hold's age
|
|
157
|
+
* - lsp_notify_resync_deferred: the age of ANOTHER writer's outstanding write
|
|
158
|
+
* - lsp_notify_stall_cpu_busy: a still-outstanding write's age at a stall sample
|
|
159
|
+
* - lsp_workspace_diagnostics_progress: cumulative elapsed at a 10 s heartbeat
|
|
160
|
+
* - lsp_empty_first_publish_held: time from didOpen to the server's first publish
|
|
161
|
+
* - format_late_resync_chained / inband_format_late_resync /
|
|
162
|
+
* deferred_format_late_resync: time since the format write row began
|
|
163
|
+
* - host_boot: ms since process start; extension_loaded: host_boot plus eval
|
|
164
|
+
*/
|
|
165
|
+
export const LEGACY_AGE_PHASES = new Set([
|
|
166
|
+
"lsp_document_drift",
|
|
167
|
+
"lsp_workspace_sweep_hold_force_released",
|
|
168
|
+
"event_loop_hold_force_released",
|
|
169
|
+
"lsp_notify_resync_deferred",
|
|
170
|
+
"lsp_notify_stall_cpu_busy",
|
|
171
|
+
"lsp_workspace_diagnostics_progress",
|
|
172
|
+
"lsp_empty_first_publish_held",
|
|
173
|
+
"format_late_resync_chained",
|
|
174
|
+
"inband_format_late_resync",
|
|
175
|
+
"deferred_format_late_resync",
|
|
176
|
+
"host_boot",
|
|
177
|
+
"extension_loaded",
|
|
178
|
+
]);
|
|
179
|
+
|
|
180
|
+
function finiteMs(value) {
|
|
181
|
+
return typeof value === "number" && Number.isFinite(value)
|
|
182
|
+
? value
|
|
183
|
+
: undefined;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/** True when the row is an age row: it carries `ageMs`, or is a legacy age line. */
|
|
187
|
+
function isAgeRow(entry) {
|
|
188
|
+
if (entry.ageMs !== undefined && entry.ageMs !== null) return true;
|
|
189
|
+
return entry.type === "phase" && LEGACY_AGE_PHASES.has(entry.phase);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* The age a row carries, or undefined when it is not an age row (or its age is
|
|
194
|
+
* not a finite number). Reads `ageMs`; only a line without the field falls back
|
|
195
|
+
* to `durationMs` of a `LEGACY_AGE_PHASES` name.
|
|
196
|
+
*
|
|
197
|
+
* @param {unknown} entry a parsed latency.log row
|
|
198
|
+
* @returns {number | undefined}
|
|
199
|
+
*/
|
|
200
|
+
export function latencyAgeMs(entry) {
|
|
201
|
+
if (!entry || typeof entry !== "object") return undefined;
|
|
202
|
+
if (!isAgeRow(entry)) return undefined;
|
|
203
|
+
if (entry.ageMs !== undefined && entry.ageMs !== null) {
|
|
204
|
+
return finiteMs(entry.ageMs);
|
|
205
|
+
}
|
|
206
|
+
return finiteMs(entry.durationMs);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* The span a row measures, or undefined when the row is an age row or carries
|
|
211
|
+
* no finite `durationMs`. This is the only function a ranking reads.
|
|
212
|
+
*
|
|
213
|
+
* @param {unknown} entry a parsed latency.log row
|
|
214
|
+
* @returns {number | undefined}
|
|
215
|
+
*/
|
|
216
|
+
export function latencySpanMs(entry) {
|
|
217
|
+
if (!entry || typeof entry !== "object") return undefined;
|
|
218
|
+
if (isAgeRow(entry)) return undefined;
|
|
219
|
+
return finiteMs(entry.durationMs);
|
|
220
|
+
}
|