@herbertgao/pi-extensions 2026.11.5 → 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 +17 -0
- package/README.md +7 -7
- package/THIRD_PARTY_NOTICES.md +2 -2
- package/node_modules/@herbertgao/pi-cc-extensions/CHANGELOG.md +10 -0
- package/node_modules/@herbertgao/pi-cc-extensions/README.en.md +5 -4
- package/node_modules/@herbertgao/pi-cc-extensions/README.md +5 -4
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/config/panel.ts +4 -4
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/compact-thinking.ts +6 -0
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/shell/footer.ts +22 -4
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/shell/session-tokens.ts +3 -3
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/compact-mode.ts +22 -2
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/index.ts +5 -0
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/ccstyle-tool.ts +38 -6
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/codemode.ts +2 -1
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/diff/diff-header.ts +4 -4
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/diff/diff-layout.ts +6 -6
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/diff/diff-palette.ts +4 -4
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/diff/diff-presentation.ts +2 -2
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/tool-io.ts +3 -2
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/transcript-mode.ts +465 -0
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/transcript-scope.ts +44 -0
- package/node_modules/@herbertgao/pi-cc-extensions/package.json +4 -4
- package/node_modules/@herbertgao/pi-cc-extensions/themes/cc-dark-hc.json +2 -4
- package/node_modules/@herbertgao/pi-cc-extensions/themes/cc-dark.json +3 -5
- package/node_modules/@herbertgao/pi-cc-extensions/themes/cc-light-hc.json +2 -4
- package/node_modules/@herbertgao/pi-cc-extensions/themes/cc-light.json +3 -5
- package/node_modules/@herbertgao/pi-impeccable/CHANGELOG.md +16 -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/reference/degraded/asset-producer.md +1 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/degraded/documenter.md +4 -4
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/degraded/finish-reviewer.md +2 -2
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/degraded/manual-edit-applier.md +3 -2
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/hooks.md +13 -7
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/init.md +2 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/live.md +5 -3
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/new-work.md +2 -2
- 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/impeccable +39 -22
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/impeccable.cmd +43 -15
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/live-browser.js +426 -193
- 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 +7 -7
- 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
package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/diff/diff-presentation.ts
CHANGED
|
@@ -96,9 +96,9 @@ export function styleDiffSummaryLine(
|
|
|
96
96
|
};
|
|
97
97
|
if (countsIndex >= 0 && stats) {
|
|
98
98
|
pushMuted(countsIndex);
|
|
99
|
-
pieces.push(theme.fg("
|
|
99
|
+
pieces.push(theme.fg("success", `+${stats.added}`));
|
|
100
100
|
pieces.push(theme.fg("muted", " "));
|
|
101
|
-
pieces.push(theme.fg("
|
|
101
|
+
pieces.push(theme.fg("error", `-${stats.removed}`));
|
|
102
102
|
cursor = countsIndex + counts.length;
|
|
103
103
|
}
|
|
104
104
|
if (hintIndex >= cursor) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Text, truncateToWidth, visibleWidth, wrapTextWithAnsi } from "@earendil-works/pi-tui";
|
|
2
2
|
import { config } from "../../config/config.ts";
|
|
3
|
+
import { expandedLineLimit } from "../transcript-scope.ts";
|
|
3
4
|
import { sanitizeToolResultText } from "../../utils/tool-result-sanitize.ts";
|
|
4
5
|
import {
|
|
5
6
|
SHOW_MORE_LABEL,
|
|
@@ -648,8 +649,8 @@ export function renderExpandedToolResult(
|
|
|
648
649
|
): ExpandedToolIoView | ExpandedToolResultText | Text {
|
|
649
650
|
const { text: inputBody, codeBlock } = formatToolInputBody(args);
|
|
650
651
|
const outputBody = body;
|
|
651
|
-
const maxOutputLines = config.expandedOutputMaxLines;
|
|
652
|
-
const maxInputLines = config.expandedInputMaxLines;
|
|
652
|
+
const maxOutputLines = expandedLineLimit(config.expandedOutputMaxLines, context);
|
|
653
|
+
const maxInputLines = expandedLineLimit(config.expandedInputMaxLines, context);
|
|
653
654
|
|
|
654
655
|
// Prefer structured Input/Output when we have args or non-empty output.
|
|
655
656
|
if (inputBody.trim() || outputBody.trim()) {
|
|
@@ -0,0 +1,465 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 会话记录浏览层:对齐 Claude Code 的 transcript 视图。
|
|
3
|
+
*
|
|
4
|
+
* on / compact 模式、全屏、输入框有焦点时按「展开工具输出」键(默认 ctrl+o),
|
|
5
|
+
* 打开一个铺满屏幕的弹层,盖住对话区、输入框和底栏。弹层持有焦点,按键只用来翻阅。
|
|
6
|
+
*
|
|
7
|
+
* 弹层不走对话区的渲染流程:照着对话区现有组件新建一份副本来画。
|
|
8
|
+
* - 工具卡:按原参数与结果新建 ToolExecutionComponent,全部展开;
|
|
9
|
+
* shell 的开始/结束时钟一并抄过来,耗时不从副本首次绘制重新计;
|
|
10
|
+
* - 模型回复:按原消息新建 AssistantMessageComponent,思考块完整显示;
|
|
11
|
+
* - 其余(用户消息、提示、摘要):不受展开影响,直接画原组件;
|
|
12
|
+
* - compact 挂进对话区的回合尾行:跳过。
|
|
13
|
+
* 副本带浏览标记(见 transcript-scope),compact 折叠、分组、互斥收起与行数上限都不作用于它们。
|
|
14
|
+
* 对话区本身一个状态都不改,关掉弹层即恢复原样。
|
|
15
|
+
*
|
|
16
|
+
* Pi 把 app.tools.expand 列为保留键,registerShortcut 注册不上;这里在原始输入到达
|
|
17
|
+
* 输入框之前拦截。只认 Pi 自己会响应该键的组件(带 actionHandlers 的编辑器)。
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
import {
|
|
21
|
+
AssistantMessageComponent,
|
|
22
|
+
ToolExecutionComponent,
|
|
23
|
+
UserMessageComponent,
|
|
24
|
+
} from "@earendil-works/pi-coding-agent";
|
|
25
|
+
import { getKeybindings, isKeyRelease, matchesKey, truncateToWidth } from "@earendil-works/pi-tui";
|
|
26
|
+
import { config } from "../config/config.ts";
|
|
27
|
+
import { walkComponentTree } from "../utils/component-tree.ts";
|
|
28
|
+
import { isCompactRoundTail } from "./compact-mode.ts";
|
|
29
|
+
import { stripToolFrameMarkers } from "./mouse/packets.ts";
|
|
30
|
+
import { fullscreenLazyTui, getToolMouseTui } from "./mouse/scroll.ts";
|
|
31
|
+
import { copyShellTimingState } from "./tool/ccstyle-tool.ts";
|
|
32
|
+
import { ToolGroupComponent } from "./tool/grouping.ts";
|
|
33
|
+
import { expandShortcutText } from "./tool/names.ts";
|
|
34
|
+
import { markTranscriptComponent, withTranscriptScope } from "./transcript-scope.ts";
|
|
35
|
+
|
|
36
|
+
const EXPAND_ACTION = "app.tools.expand";
|
|
37
|
+
// 与 Pi 的 tui.altScreen.pageUp/pageDown 同一重叠行数,翻页后保留上下文。
|
|
38
|
+
const PAGE_SCROLL_OVERLAP = 4;
|
|
39
|
+
const WHEEL_LINES = 3;
|
|
40
|
+
|
|
41
|
+
type TranscriptUi = {
|
|
42
|
+
onTerminalInput(handler: (data: string) => { consume?: boolean } | undefined): () => void;
|
|
43
|
+
custom<T>(factory: (...args: any[]) => any, options?: any): Promise<T>;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
type ScrollAction =
|
|
47
|
+
| { kind: "lines"; lines: number }
|
|
48
|
+
| { kind: "half"; direction: 1 | -1 }
|
|
49
|
+
| { kind: "page"; direction: 1 | -1 }
|
|
50
|
+
| { kind: "top" }
|
|
51
|
+
| { kind: "bottom" }
|
|
52
|
+
| { kind: "prompt"; direction: 1 | -1 };
|
|
53
|
+
|
|
54
|
+
const SCROLL_KEYS: Array<[string[], ScrollAction]> = [
|
|
55
|
+
[["j", "down", "ctrl+n"], { kind: "lines", lines: 1 }],
|
|
56
|
+
[["k", "up", "ctrl+p"], { kind: "lines", lines: -1 }],
|
|
57
|
+
[["ctrl+d"], { kind: "half", direction: 1 }],
|
|
58
|
+
[["ctrl+u"], { kind: "half", direction: -1 }],
|
|
59
|
+
[["space", "ctrl+f", "pageDown"], { kind: "page", direction: 1 }],
|
|
60
|
+
[["b", "ctrl+b", "shift+space", "pageUp"], { kind: "page", direction: -1 }],
|
|
61
|
+
[["g", "home"], { kind: "top" }],
|
|
62
|
+
[["shift+g", "end"], { kind: "bottom" }],
|
|
63
|
+
[["}"], { kind: "prompt", direction: 1 }],
|
|
64
|
+
[["{"], { kind: "prompt", direction: -1 }],
|
|
65
|
+
];
|
|
66
|
+
|
|
67
|
+
const EXIT_KEYS = ["escape", "q", "ctrl+c"];
|
|
68
|
+
|
|
69
|
+
function matchesAny(data: string, keys: string[]): boolean {
|
|
70
|
+
return keys.some((key) => matchesKey(data, key as any));
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function transcriptScrollAction(data: string): ScrollAction | undefined {
|
|
74
|
+
for (const [keys, action] of SCROLL_KEYS) {
|
|
75
|
+
if (matchesAny(data, keys)) return action;
|
|
76
|
+
}
|
|
77
|
+
return undefined;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function isTranscriptExitKey(data: string): boolean {
|
|
81
|
+
return matchesAny(data, EXIT_KEYS) || getKeybindings().matches(data, EXPAND_ACTION as any);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// ---------------------------------------------------------------------------
|
|
85
|
+
// 副本
|
|
86
|
+
// ---------------------------------------------------------------------------
|
|
87
|
+
|
|
88
|
+
type TranscriptItem = { view: any; prompt: boolean };
|
|
89
|
+
type CloneEntry = { view: any; signature: unknown[] };
|
|
90
|
+
|
|
91
|
+
const clones = new WeakMap<object, CloneEntry>();
|
|
92
|
+
|
|
93
|
+
function sameSignature(left: unknown[], right: unknown[]): boolean {
|
|
94
|
+
return left.length === right.length && left.every((value, index) => value === right[index]);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function reuseOrClone(live: any, signature: unknown[], build: () => any): any {
|
|
98
|
+
const cached = clones.get(live);
|
|
99
|
+
if (cached && sameSignature(cached.signature, signature)) return cached.view;
|
|
100
|
+
const view = withTranscriptScope(build);
|
|
101
|
+
markTranscriptComponent(view);
|
|
102
|
+
clones.set(live, { view, signature });
|
|
103
|
+
return view;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
function cloneTool(live: any): any {
|
|
107
|
+
const timing = live?.rendererState;
|
|
108
|
+
const signature = [
|
|
109
|
+
live.args,
|
|
110
|
+
live.result,
|
|
111
|
+
live.isPartial,
|
|
112
|
+
live.executionStarted,
|
|
113
|
+
live.argsComplete,
|
|
114
|
+
timing?.ccstyleShellStartedAt,
|
|
115
|
+
timing?.ccstyleShellEndedAt,
|
|
116
|
+
];
|
|
117
|
+
return reuseOrClone(live, signature, () => {
|
|
118
|
+
const view: any = new ToolExecutionComponent(
|
|
119
|
+
live.toolName,
|
|
120
|
+
live.toolCallId,
|
|
121
|
+
live.args,
|
|
122
|
+
{
|
|
123
|
+
showImages: live.showImages,
|
|
124
|
+
imageWidthCells: live.imageWidthCells,
|
|
125
|
+
outputPad: live.outputPad,
|
|
126
|
+
},
|
|
127
|
+
live.toolDefinition,
|
|
128
|
+
live.ui,
|
|
129
|
+
live.cwd,
|
|
130
|
+
);
|
|
131
|
+
// 构造时 executionStarted 还是 false,不会先把开始时间写成现在。
|
|
132
|
+
// 抄完再打执行标记和结果,完成态的耗时行才会用原卡的时钟。
|
|
133
|
+
copyShellTimingState(live, view);
|
|
134
|
+
if (live.argsComplete) view.setArgsComplete();
|
|
135
|
+
if (live.executionStarted) view.markExecutionStarted();
|
|
136
|
+
if (live.result) view.updateResult(live.result, live.isPartial === true);
|
|
137
|
+
view.setExpanded(true);
|
|
138
|
+
return view;
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
function cloneAssistant(live: any): any {
|
|
143
|
+
const message = live.lastMessage;
|
|
144
|
+
if (!message) return undefined;
|
|
145
|
+
return reuseOrClone(live, [message, live.isStreaming], () => {
|
|
146
|
+
const view: any = new AssistantMessageComponent(
|
|
147
|
+
undefined,
|
|
148
|
+
false,
|
|
149
|
+
live.markdownTheme,
|
|
150
|
+
live.hiddenThinkingLabel,
|
|
151
|
+
live.outputPad,
|
|
152
|
+
live.markdownTransformers,
|
|
153
|
+
);
|
|
154
|
+
view.updateContent(message, live.isStreaming === true);
|
|
155
|
+
return view;
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/** 对话区(Pi 的 chatContainer):直接装着回复或用户消息的那个容器。 */
|
|
160
|
+
export function findChatContainer(root: any): any {
|
|
161
|
+
let found: any;
|
|
162
|
+
walkComponentTree(root, (value: any) => {
|
|
163
|
+
if (found) return false;
|
|
164
|
+
const children = value?.children;
|
|
165
|
+
if (
|
|
166
|
+
Array.isArray(children) &&
|
|
167
|
+
children.some(
|
|
168
|
+
(child: any) =>
|
|
169
|
+
child instanceof AssistantMessageComponent || child instanceof UserMessageComponent,
|
|
170
|
+
)
|
|
171
|
+
) {
|
|
172
|
+
found = value;
|
|
173
|
+
return false;
|
|
174
|
+
}
|
|
175
|
+
return undefined;
|
|
176
|
+
});
|
|
177
|
+
return found;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/** 按对话区现有内容生成浏览项:工具与回复用副本,其余直接用原组件。 */
|
|
181
|
+
export function collectTranscriptItems(container: any): TranscriptItem[] {
|
|
182
|
+
const items: TranscriptItem[] = [];
|
|
183
|
+
const pushTool = (tool: any) => {
|
|
184
|
+
if (tool instanceof ToolExecutionComponent)
|
|
185
|
+
items.push({ view: cloneTool(tool), prompt: false });
|
|
186
|
+
};
|
|
187
|
+
for (const child of Array.isArray(container?.children) ? container.children : []) {
|
|
188
|
+
if (isCompactRoundTail(child)) continue;
|
|
189
|
+
if (child instanceof ToolGroupComponent) {
|
|
190
|
+
for (const tool of child.children) pushTool(tool);
|
|
191
|
+
} else if (child instanceof ToolExecutionComponent) {
|
|
192
|
+
pushTool(child);
|
|
193
|
+
} else if (child instanceof AssistantMessageComponent) {
|
|
194
|
+
const view = cloneAssistant(child);
|
|
195
|
+
if (view) items.push({ view, prompt: false });
|
|
196
|
+
} else if (child && typeof child.render === "function") {
|
|
197
|
+
items.push({ view: child, prompt: child instanceof UserMessageComponent });
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
return items;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
// ---------------------------------------------------------------------------
|
|
204
|
+
// 弹层
|
|
205
|
+
// ---------------------------------------------------------------------------
|
|
206
|
+
|
|
207
|
+
export type TranscriptViewOptions = {
|
|
208
|
+
rows: () => number;
|
|
209
|
+
items: () => TranscriptItem[];
|
|
210
|
+
theme: any;
|
|
211
|
+
close: () => void;
|
|
212
|
+
focused: (view: object) => boolean;
|
|
213
|
+
/** 正文滚动了 delta 行(正数为向下翻),bodyHeight 为正文可见行数。 */
|
|
214
|
+
scrolled?: (delta: number, bodyHeight: number) => void;
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
type ScreenPoint = { row: number; col: number; scrollView?: unknown };
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* 让 Pi 的屏幕选区跟着浏览层的正文走。
|
|
221
|
+
*
|
|
222
|
+
* 有弹层时 Pi 的选区记的是屏幕行号(不挂 scrollView),复制也只从屏幕文字里取。
|
|
223
|
+
* 正文滚动 delta 行后把选区上移 delta 行,高亮与复制都跟着原来的文字。
|
|
224
|
+
* 选区有一端滚出正文区:屏幕上已没有那段文字,清掉选区,免得复制到别的内容。
|
|
225
|
+
*/
|
|
226
|
+
export function followScreenSelection(tui: any, delta: number, bodyHeight: number): void {
|
|
227
|
+
if (!tui || delta === 0) return;
|
|
228
|
+
const anchor: ScreenPoint | undefined = tui.selectionAnchor;
|
|
229
|
+
const focus: ScreenPoint | undefined = tui.selectionFocus;
|
|
230
|
+
if (!anchor || !focus || anchor.scrollView || focus.scrollView) return;
|
|
231
|
+
const move = (point: ScreenPoint): ScreenPoint => ({ ...point, row: point.row - delta });
|
|
232
|
+
const nextAnchor = move(anchor);
|
|
233
|
+
const nextFocus = move(focus);
|
|
234
|
+
const inside = (point: ScreenPoint) => point.row >= 0 && point.row < bodyHeight;
|
|
235
|
+
if (!inside(nextAnchor) || !inside(nextFocus)) {
|
|
236
|
+
tui.resetTextSelection?.();
|
|
237
|
+
return;
|
|
238
|
+
}
|
|
239
|
+
tui.selectionAnchor = nextAnchor;
|
|
240
|
+
tui.selectionFocus = nextFocus;
|
|
241
|
+
const range = tui.selectionInitialRange;
|
|
242
|
+
if (range?.start && range?.end) {
|
|
243
|
+
tui.selectionInitialRange = { start: move(range.start), end: move(range.end) };
|
|
244
|
+
}
|
|
245
|
+
// 双击/三击按坐标累计:位置已变,不再和上一次点击连成多击。
|
|
246
|
+
tui.lastClick = undefined;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export class TranscriptView {
|
|
250
|
+
private scrollTop = 0;
|
|
251
|
+
private followEnd = true;
|
|
252
|
+
private bodyHeight = 1;
|
|
253
|
+
private totalLines = 0;
|
|
254
|
+
private promptRows: number[] = [];
|
|
255
|
+
private hadFocus = false;
|
|
256
|
+
private closed = false;
|
|
257
|
+
/** 上一帧画出的滚动位置:与本帧不同就通知选区跟随。 */
|
|
258
|
+
private renderedScrollTop: number | undefined;
|
|
259
|
+
|
|
260
|
+
private readonly options: TranscriptViewOptions;
|
|
261
|
+
|
|
262
|
+
constructor(options: TranscriptViewOptions) {
|
|
263
|
+
this.options = options;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
private maxScroll(): number {
|
|
267
|
+
return Math.max(0, this.totalLines - this.bodyHeight);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
private scrollTo(row: number): void {
|
|
271
|
+
this.scrollTop = Math.max(0, Math.min(this.maxScroll(), row));
|
|
272
|
+
this.followEnd = this.scrollTop >= this.maxScroll();
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
private scrollBy(lines: number): void {
|
|
276
|
+
this.scrollTo(this.scrollTop + lines);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
private apply(action: ScrollAction): void {
|
|
280
|
+
switch (action.kind) {
|
|
281
|
+
case "lines":
|
|
282
|
+
this.scrollBy(action.lines);
|
|
283
|
+
break;
|
|
284
|
+
case "half":
|
|
285
|
+
this.scrollBy(action.direction * Math.max(1, Math.floor(this.bodyHeight / 2)));
|
|
286
|
+
break;
|
|
287
|
+
case "page":
|
|
288
|
+
this.scrollBy(action.direction * Math.max(1, this.bodyHeight - PAGE_SCROLL_OVERLAP));
|
|
289
|
+
break;
|
|
290
|
+
case "top":
|
|
291
|
+
this.scrollTo(0);
|
|
292
|
+
break;
|
|
293
|
+
case "bottom":
|
|
294
|
+
this.scrollTo(this.maxScroll());
|
|
295
|
+
break;
|
|
296
|
+
case "prompt": {
|
|
297
|
+
const target =
|
|
298
|
+
action.direction > 0
|
|
299
|
+
? this.promptRows.find((row) => row > this.scrollTop)
|
|
300
|
+
: this.promptRows.findLast((row) => row < this.scrollTop);
|
|
301
|
+
if (target !== undefined) this.scrollTo(target);
|
|
302
|
+
break;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
private close(): void {
|
|
308
|
+
if (this.closed) return;
|
|
309
|
+
this.closed = true;
|
|
310
|
+
this.options.close();
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
handleInput(data: string): void {
|
|
314
|
+
if (isKeyRelease(data)) return;
|
|
315
|
+
if (isTranscriptExitKey(data)) {
|
|
316
|
+
this.close();
|
|
317
|
+
return;
|
|
318
|
+
}
|
|
319
|
+
const action = transcriptScrollAction(data);
|
|
320
|
+
if (action) this.apply(action);
|
|
321
|
+
// 其余按键不做任何事:浏览层不编辑输入框。
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* 只接管滚轮。按下、拖动、松开不处理:Pi 有弹层时按屏幕文字做选中复制,
|
|
326
|
+
* 放行后浏览层里的文字照常能拖选、双击选词、复制。
|
|
327
|
+
*/
|
|
328
|
+
handleMouse(event: any): { handled: boolean } | undefined {
|
|
329
|
+
if (event?.type !== "wheel") return undefined;
|
|
330
|
+
const delta = Number(event.wheelDelta) || 0;
|
|
331
|
+
if (delta !== 0) this.scrollBy(Math.sign(delta) * WHEEL_LINES);
|
|
332
|
+
return { handled: true };
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
render(width: number): string[] {
|
|
336
|
+
// 其他界面抢走焦点(提问、权限确认等对话框):让位给它。
|
|
337
|
+
if (this.options.focused(this)) this.hadFocus = true;
|
|
338
|
+
else if (this.hadFocus) queueMicrotask(() => this.close());
|
|
339
|
+
|
|
340
|
+
// 底部两行:空一行隔开正文,下面是提示。
|
|
341
|
+
const rows = Math.max(3, this.options.rows());
|
|
342
|
+
this.bodyHeight = rows - 2;
|
|
343
|
+
const lines: string[] = [];
|
|
344
|
+
const promptRows: number[] = [];
|
|
345
|
+
withTranscriptScope(() => {
|
|
346
|
+
for (const item of this.options.items()) {
|
|
347
|
+
if (item.prompt) promptRows.push(lines.length);
|
|
348
|
+
for (const line of item.view.render(width)) lines.push(stripToolFrameMarkers(line));
|
|
349
|
+
}
|
|
350
|
+
});
|
|
351
|
+
this.totalLines = lines.length;
|
|
352
|
+
this.promptRows = promptRows;
|
|
353
|
+
if (this.followEnd) this.scrollTop = this.maxScroll();
|
|
354
|
+
else this.scrollTop = Math.min(this.scrollTop, this.maxScroll());
|
|
355
|
+
// 按键、滚轮、跟随新内容都会改滚动位置,统一在画出时结算一次。
|
|
356
|
+
if (this.renderedScrollTop !== undefined && this.renderedScrollTop !== this.scrollTop) {
|
|
357
|
+
this.options.scrolled?.(this.scrollTop - this.renderedScrollTop, this.bodyHeight);
|
|
358
|
+
}
|
|
359
|
+
this.renderedScrollTop = this.scrollTop;
|
|
360
|
+
|
|
361
|
+
const body = lines.slice(this.scrollTop, this.scrollTop + this.bodyHeight);
|
|
362
|
+
while (body.length < this.bodyHeight) body.push("");
|
|
363
|
+
return [...body, "", this.hintLine(width)];
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
private hintLine(width: number): string {
|
|
367
|
+
const theme = this.options.theme;
|
|
368
|
+
const dim = (text: string) => (typeof theme?.fg === "function" ? theme.fg("dim", text) : text);
|
|
369
|
+
const position =
|
|
370
|
+
this.totalLines > this.bodyHeight
|
|
371
|
+
? ` (${Math.min(100, Math.round(((this.scrollTop + this.bodyHeight) / this.totalLines) * 100))}%)`
|
|
372
|
+
: "";
|
|
373
|
+
// 窄屏从右侧截断:位置与退出方式放在最前。
|
|
374
|
+
return truncateToWidth(
|
|
375
|
+
dim(
|
|
376
|
+
` Showing detailed transcript${position} · esc/q to exit · ${expandShortcutText()} to toggle · j/k scroll`,
|
|
377
|
+
),
|
|
378
|
+
width,
|
|
379
|
+
);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
invalidate(): void {}
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
// ---------------------------------------------------------------------------
|
|
386
|
+
// 入口
|
|
387
|
+
// ---------------------------------------------------------------------------
|
|
388
|
+
|
|
389
|
+
let ui: TranscriptUi | undefined;
|
|
390
|
+
let unsubscribe: (() => void) | undefined;
|
|
391
|
+
let open = false;
|
|
392
|
+
let closeOpen: (() => void) | undefined;
|
|
393
|
+
|
|
394
|
+
/** 浏览层是否打开。 */
|
|
395
|
+
export function isTranscriptModeActive(): boolean {
|
|
396
|
+
return open;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
/** Pi 会把展开键交给它处理的组件:默认编辑器与继承 CustomEditor 的编辑器。 */
|
|
400
|
+
function editorFocused(tui: any): boolean {
|
|
401
|
+
const handlers = tui?.focusedComponent?.actionHandlers;
|
|
402
|
+
return handlers instanceof Map && handlers.has(EXPAND_ACTION);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
function canOpen(tui: any): boolean {
|
|
406
|
+
return (
|
|
407
|
+
config.mode !== "off" &&
|
|
408
|
+
fullscreenLazyTui(tui) &&
|
|
409
|
+
tui.hasOverlay?.() !== true &&
|
|
410
|
+
editorFocused(tui)
|
|
411
|
+
);
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
function openTranscript(): void {
|
|
415
|
+
if (!ui || open) return;
|
|
416
|
+
open = true;
|
|
417
|
+
void ui
|
|
418
|
+
.custom<void>(
|
|
419
|
+
(tui: any, theme: any, _keybindings: unknown, done: () => void) => {
|
|
420
|
+
closeOpen = done;
|
|
421
|
+
return new TranscriptView({
|
|
422
|
+
rows: () => Number(tui?.terminal?.rows) || 24,
|
|
423
|
+
items: () => collectTranscriptItems(findChatContainer(getToolMouseTui() ?? tui)),
|
|
424
|
+
theme,
|
|
425
|
+
close: done,
|
|
426
|
+
focused: (view) => tui?.focusedComponent === view,
|
|
427
|
+
scrolled: (delta, bodyHeight) => followScreenSelection(tui, delta, bodyHeight),
|
|
428
|
+
});
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
overlay: true,
|
|
432
|
+
overlayOptions: { anchor: "top-left", width: "100%", maxHeight: "100%", margin: 0 },
|
|
433
|
+
},
|
|
434
|
+
)
|
|
435
|
+
.finally(() => {
|
|
436
|
+
open = false;
|
|
437
|
+
closeOpen = undefined;
|
|
438
|
+
});
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
function handleInput(data: string): { consume?: boolean } | undefined {
|
|
442
|
+
if (open) return undefined;
|
|
443
|
+
if (!getKeybindings().matches(data, EXPAND_ACTION as any)) return undefined;
|
|
444
|
+
if (!canOpen(getToolMouseTui())) return undefined;
|
|
445
|
+
if (!isKeyRelease(data)) openTranscript();
|
|
446
|
+
return { consume: true };
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
/** 装上展开键拦截;重复安装先拆旧的。 */
|
|
450
|
+
export function installTranscriptMode(ctx: any): void {
|
|
451
|
+
teardownTranscriptMode();
|
|
452
|
+
if (ctx?.mode !== "tui" || !ctx?.hasUI) return;
|
|
453
|
+
const candidate = ctx.ui as TranscriptUi | undefined;
|
|
454
|
+
if (typeof candidate?.onTerminalInput !== "function" || typeof candidate.custom !== "function")
|
|
455
|
+
return;
|
|
456
|
+
ui = candidate;
|
|
457
|
+
unsubscribe = candidate.onTerminalInput(handleInput);
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
export function teardownTranscriptMode(): void {
|
|
461
|
+
closeOpen?.();
|
|
462
|
+
unsubscribe?.();
|
|
463
|
+
unsubscribe = undefined;
|
|
464
|
+
ui = undefined;
|
|
465
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 会话记录浏览层的组件标记。
|
|
3
|
+
*
|
|
4
|
+
* 浏览层照着对话区现有组件新建一份来画。这些副本要绕开对话区的渲染规则:
|
|
5
|
+
* compact 的整轮折叠与组件跟踪、compact-thinking 的思考跟踪、展开后的行数上限。
|
|
6
|
+
*
|
|
7
|
+
* 副本的构造与渲染都包在 withTranscriptScope 里;构造完成后再用
|
|
8
|
+
* markTranscriptComponent 打上实例标记,覆盖动画定时器等在作用域外触发的重绘。
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
const TRANSCRIPT_STATE_KEY = "ccstyleTranscript";
|
|
12
|
+
const marked = new WeakSet<object>();
|
|
13
|
+
let depth = 0;
|
|
14
|
+
|
|
15
|
+
/** 在浏览层作用域里执行:期间构造或渲染的组件都按浏览副本处理。 */
|
|
16
|
+
export function withTranscriptScope<T>(run: () => T): T {
|
|
17
|
+
depth++;
|
|
18
|
+
try {
|
|
19
|
+
return run();
|
|
20
|
+
} finally {
|
|
21
|
+
depth--;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/** 给浏览副本打实例标记;渲染状态里也记一份,供只拿得到 context 的渲染器判断。 */
|
|
26
|
+
export function markTranscriptComponent(component: any): void {
|
|
27
|
+
if (!component || typeof component !== "object") return;
|
|
28
|
+
marked.add(component);
|
|
29
|
+
const state = component.rendererState;
|
|
30
|
+
if (state && typeof state === "object") state[TRANSCRIPT_STATE_KEY] = true;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/** 组件是否为浏览副本(或正处于浏览层作用域)。 */
|
|
34
|
+
export function isTranscriptComponent(component: unknown): boolean {
|
|
35
|
+
return (
|
|
36
|
+
depth > 0 || (typeof component === "object" && component !== null && marked.has(component))
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/** 展开内容的行数上限:浏览副本不限行数,其余沿用配置。 */
|
|
41
|
+
export function expandedLineLimit(limit: number, context?: any): number {
|
|
42
|
+
if (depth > 0 || context?.state?.[TRANSCRIPT_STATE_KEY] === true) return Number.MAX_SAFE_INTEGER;
|
|
43
|
+
return limit;
|
|
44
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@herbertgao/pi-cc-extensions",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.16-local.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "A Pi productivity suite with Claude Code-style UI, context inspection, and agent/session references",
|
|
6
6
|
"type": "module",
|
|
@@ -74,10 +74,10 @@
|
|
|
74
74
|
},
|
|
75
75
|
"x-upstream": {
|
|
76
76
|
"package": "pi-cc-extensions",
|
|
77
|
-
"version": "1.0.
|
|
78
|
-
"reviewedVersion": "1.0.
|
|
77
|
+
"version": "1.0.16",
|
|
78
|
+
"reviewedVersion": "1.0.16",
|
|
79
79
|
"repository": "https://github.com/minuque/pi-cc-extensions",
|
|
80
|
-
"commit": "
|
|
80
|
+
"commit": "5e3ef6b9f96d198f93ec242eac81ff21bebdb4e1",
|
|
81
81
|
"trackVersion": true
|
|
82
82
|
}
|
|
83
83
|
}
|
|
@@ -22,9 +22,7 @@
|
|
|
22
22
|
"purple": "#be8fff",
|
|
23
23
|
"pink": "#f778ba",
|
|
24
24
|
"cyan": "#39c5cf",
|
|
25
|
-
"selection": "#1a4480"
|
|
26
|
-
"diffAddBg": "#0f2a24",
|
|
27
|
-
"diffDelBg": "#261418"
|
|
25
|
+
"selection": "#1a4480"
|
|
28
26
|
},
|
|
29
27
|
"colors": {
|
|
30
28
|
"accent": "blue",
|
|
@@ -32,7 +30,7 @@
|
|
|
32
30
|
"borderAccent": "blue",
|
|
33
31
|
"borderMuted": "borderMuted",
|
|
34
32
|
"success": "green",
|
|
35
|
-
"error": "
|
|
33
|
+
"error": "red",
|
|
36
34
|
"warning": "yellow",
|
|
37
35
|
"muted": "fgMuted",
|
|
38
36
|
"dim": "#71717a",
|
|
@@ -22,9 +22,7 @@
|
|
|
22
22
|
"purple": "#be8fff",
|
|
23
23
|
"pink": "#f778ba",
|
|
24
24
|
"cyan": "#39c5cf",
|
|
25
|
-
"selection": "#1a4480"
|
|
26
|
-
"diffAddBg": "#0f2a24",
|
|
27
|
-
"diffDelBg": "#261418"
|
|
25
|
+
"selection": "#1a4480"
|
|
28
26
|
},
|
|
29
27
|
"colors": {
|
|
30
28
|
"accent": "blue",
|
|
@@ -49,8 +47,8 @@
|
|
|
49
47
|
"customMessageText": "fgMuted",
|
|
50
48
|
"customMessageLabel": "blue",
|
|
51
49
|
"toolPendingBg": "canvasSubtle",
|
|
52
|
-
"toolSuccessBg": "
|
|
53
|
-
"toolErrorBg": "
|
|
50
|
+
"toolSuccessBg": "#0f2a24",
|
|
51
|
+
"toolErrorBg": "#261418",
|
|
54
52
|
"toolTitle": "fg",
|
|
55
53
|
"toolOutput": "fgMuted",
|
|
56
54
|
"mdHeading": "blueBright",
|
|
@@ -22,9 +22,7 @@
|
|
|
22
22
|
"purple": "#65339c",
|
|
23
23
|
"pink": "#931662",
|
|
24
24
|
"cyan": "#005359",
|
|
25
|
-
"selection": "#c5d6ee"
|
|
26
|
-
"diffAddBg": "#c3dcd0",
|
|
27
|
-
"diffDelBg": "#f0d5d8"
|
|
25
|
+
"selection": "#c5d6ee"
|
|
28
26
|
},
|
|
29
27
|
"colors": {
|
|
30
28
|
"accent": "blue",
|
|
@@ -32,7 +30,7 @@
|
|
|
32
30
|
"borderAccent": "blue",
|
|
33
31
|
"borderMuted": "borderMuted",
|
|
34
32
|
"success": "green",
|
|
35
|
-
"error": "
|
|
33
|
+
"error": "red",
|
|
36
34
|
"warning": "yellow",
|
|
37
35
|
"muted": "fgMuted",
|
|
38
36
|
"dim": "#4e5966",
|
|
@@ -22,9 +22,7 @@
|
|
|
22
22
|
"purple": "#65339c",
|
|
23
23
|
"pink": "#931662",
|
|
24
24
|
"cyan": "#005359",
|
|
25
|
-
"selection": "#c5d6ee"
|
|
26
|
-
"diffAddBg": "#c3dcd0",
|
|
27
|
-
"diffDelBg": "#f0d5d8"
|
|
25
|
+
"selection": "#c5d6ee"
|
|
28
26
|
},
|
|
29
27
|
"colors": {
|
|
30
28
|
"accent": "blue",
|
|
@@ -49,8 +47,8 @@
|
|
|
49
47
|
"customMessageText": "fgMuted",
|
|
50
48
|
"customMessageLabel": "blue",
|
|
51
49
|
"toolPendingBg": "canvasSubtle",
|
|
52
|
-
"toolSuccessBg": "
|
|
53
|
-
"toolErrorBg": "
|
|
50
|
+
"toolSuccessBg": "#c3dcd0",
|
|
51
|
+
"toolErrorBg": "#f0d5d8",
|
|
54
52
|
"toolTitle": "fg",
|
|
55
53
|
"toolOutput": "fgMuted",
|
|
56
54
|
"mdHeading": "blueBright",
|
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @herbertgao/pi-impeccable
|
|
2
2
|
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#365](https://github.com/HerbertGao/pi-extensions/pull/365) [`e29681d`](https://github.com/HerbertGao/pi-extensions/commit/e29681dc3de160f3710545f573a5c28bb1988ca3) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Vendor the official Impeccable 4.8.2 Pi skill. The launcher pins engine 0.1.21 and skips a sibling binary from another engine version. The local Go staged-removal fix is kept: a connected live selection is not detached, so Undo and Discard can restore it.
|
|
8
|
+
|
|
9
|
+
## 0.2.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#362](https://github.com/HerbertGao/pi-extensions/pull/362) [`47bf3d5`](https://github.com/HerbertGao/pi-extensions/commit/47bf3d5c5d482a4fcb1e60a994455a4fc6bbe5e4) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Vendor the official Impeccable 4.8.1 Pi skill. The launcher pins engine 0.1.19 and skips a sibling binary from another engine version. Live mode can stage removal of a picked element.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [#362](https://github.com/HerbertGao/pi-extensions/pull/362) [`47bf3d5`](https://github.com/HerbertGao/pi-extensions/commit/47bf3d5c5d482a4fcb1e60a994455a4fc6bbe5e4) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Keep a staged Live removal in the page when Go cleans the selected element, so Undo and Discard can restore it.
|
|
18
|
+
|
|
3
19
|
## 0.1.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|