@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
|
@@ -73,15 +73,16 @@ constraints:
|
|
|
73
73
|
has:
|
|
74
74
|
stopBy: end
|
|
75
75
|
pattern: $SRC = ast.$METHOD($$$A)
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
76
|
+
metadata:
|
|
77
|
+
has_fix: false
|
|
78
|
+
tags:
|
|
79
|
+
- python
|
|
80
|
+
- security
|
|
81
|
+
- code-injection
|
|
82
|
+
- cwe-78
|
|
83
|
+
examples:
|
|
84
|
+
bad: |
|
|
85
|
+
code = compile(user_input, "<user>", "exec")
|
|
86
|
+
exec(code)
|
|
87
|
+
good: |
|
|
88
|
+
tree = ast.parse(static_source)
|
|
@@ -25,8 +25,8 @@ note: |-
|
|
|
25
25
|
- Two variants cover both single- and double-quoted string
|
|
26
26
|
literals. Pattern matching on quoted strings works directly
|
|
27
27
|
in ast-grep's matcher.
|
|
28
|
-
ast-grep-essentials: true
|
|
29
28
|
metadata:
|
|
29
|
+
ast-grep-essentials: true
|
|
30
30
|
sonar: S6779
|
|
31
31
|
rule:
|
|
32
32
|
any:
|
|
@@ -25,8 +25,8 @@ note: |-
|
|
|
25
25
|
string LITERAL, not an identifier).
|
|
26
26
|
- The identifier check is on the `kind: identifier` AST node, not
|
|
27
27
|
the kwarg text — more idiomatic than text regex.
|
|
28
|
-
ast-grep-essentials: true
|
|
29
28
|
metadata:
|
|
29
|
+
ast-grep-essentials: true
|
|
30
30
|
sonar: S6437
|
|
31
31
|
rule:
|
|
32
32
|
kind: call
|
|
@@ -11,14 +11,15 @@ note: |
|
|
|
11
11
|
most dangerous deserializer in the standard library.
|
|
12
12
|
rule:
|
|
13
13
|
pattern: marshal.$FN($$$ARGS)
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
14
|
+
metadata:
|
|
15
|
+
has_fix: false
|
|
16
|
+
tags:
|
|
17
|
+
- python
|
|
18
|
+
- security
|
|
19
|
+
- deserialization
|
|
20
|
+
- cwe-502
|
|
21
|
+
examples:
|
|
22
|
+
bad: |
|
|
23
|
+
obj = marshal.loads(request.body)
|
|
24
|
+
good: |
|
|
25
|
+
obj = json.loads(request.body)
|
|
@@ -24,14 +24,15 @@ rule:
|
|
|
24
24
|
- pattern: conn.execute($QUERY + $REST)
|
|
25
25
|
- pattern: connection.execute($QUERY + $REST)
|
|
26
26
|
- pattern: self.cursor.execute($QUERY + $REST)
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
27
|
+
metadata:
|
|
28
|
+
has_fix: false
|
|
29
|
+
tags:
|
|
30
|
+
- python
|
|
31
|
+
- security
|
|
32
|
+
- sql-injection
|
|
33
|
+
- cwe-89
|
|
34
|
+
examples:
|
|
35
|
+
bad: |
|
|
36
|
+
cursor.execute("SELECT * FROM users WHERE id = " + user_id)
|
|
37
|
+
good: |
|
|
38
|
+
cursor.execute("SELECT * FROM users WHERE id = %s", (user_id,))
|
|
@@ -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 = [];
|