@herbertgao/pi-extensions 2026.11.10 → 2026.11.12
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 +31 -0
- package/README.md +10 -10
- package/THIRD_PARTY_NOTICES.md +3 -3
- package/node_modules/@herbertgao/pi-cc-extensions/CHANGELOG.md +16 -0
- package/node_modules/@herbertgao/pi-cc-extensions/README.en.md +3 -4
- package/node_modules/@herbertgao/pi-cc-extensions/README.md +3 -4
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/agent-summary/core.ts +22 -15
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/agent-summary/index.ts +22 -8
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/context.ts +0 -29
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/shell/prompt-editor.ts +5 -2
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/compact-mode.ts +73 -47
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/mouse/interaction.ts +3 -2
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/codemode.ts +0 -40
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/diff/diff-parse.ts +4 -1
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/grouping.ts +79 -18
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/tool-io.ts +0 -5
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/utils/ansi-text.ts +18 -4
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/utils/format.ts +15 -0
- package/node_modules/@herbertgao/pi-cc-extensions/package.json +4 -4
- package/node_modules/@herbertgao/pi-impeccable/CHANGELOG.md +12 -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 +4 -2
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/adapt.md +2 -2
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/animate.md +17 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/audit.md +12 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/audit.native.md +4 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/critique-rubric.md +496 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/critique.md +13 -505
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/degraded/documenter.md +1 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/degraded/finish-reviewer.md +1 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/degraded/motion-reviewer.md +29 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/distill.md +1 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/document.md +3 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/foundations.md +44 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/hooks.md +3 -3
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/live-setup.md +1 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/live.md +26 -12
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/new-work-comp.md +24 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/new-work-world.md +20 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/new-work.md +9 -37
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/onboard.md +7 -6
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/overdrive.md +2 -2
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/quieter.md +1 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/typeset.md +6 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/visualize.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/impeccable +69 -16
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/impeccable.cmd +55 -7
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/live-browser.js +51 -22
- package/node_modules/@herbertgao/pi-subagents/CHANGELOG.md +6 -0
- package/node_modules/@herbertgao/pi-subagents/README.md +27 -9
- package/node_modules/@herbertgao/pi-subagents/docs/workflows.md +11 -11
- package/node_modules/@herbertgao/pi-subagents/package.json +4 -4
- package/node_modules/@herbertgao/pi-subagents/src/agent-manager.ts +13 -0
- package/node_modules/@herbertgao/pi-subagents/src/agent-runner.ts +51 -32
- package/node_modules/@herbertgao/pi-subagents/src/default-agents.ts +7 -0
- package/node_modules/@herbertgao/pi-subagents/src/index.ts +334 -893
- package/node_modules/@herbertgao/pi-subagents/src/nested-tools.ts +4 -1
- package/node_modules/@herbertgao/pi-subagents/src/prompts.ts +13 -0
- package/node_modules/@herbertgao/pi-subagents/src/schedule-store.ts +18 -13
- package/node_modules/@herbertgao/pi-subagents/src/schedule.ts +25 -5
- package/node_modules/@herbertgao/pi-subagents/src/settings.ts +215 -69
- package/node_modules/@herbertgao/pi-subagents/src/types.ts +17 -0
- package/node_modules/@herbertgao/pi-subagents/src/ui/agent-widget.ts +9 -0
- package/node_modules/@herbertgao/pi-subagents/src/ui/agents-menu.ts +705 -0
- package/node_modules/@herbertgao/pi-subagents/src/ui/settings-menu.ts +361 -0
- package/node_modules/@herbertgao/pi-subagents/src/ui/viewer-keys.ts +1 -1
- package/node_modules/pi-antigravity/README.md +58 -9
- package/node_modules/pi-antigravity/docs/reader-guarantees.md +35 -0
- package/node_modules/pi-antigravity/package.json +15 -6
- package/node_modules/pi-antigravity/src/client/client.ts +63 -14
- package/node_modules/pi-antigravity/src/client/enterprise.ts +150 -0
- package/node_modules/pi-antigravity/src/client/index.ts +1 -0
- package/node_modules/pi-antigravity/src/diagnostics/diagnostics.ts +7 -0
- package/node_modules/pi-antigravity/src/features/generate-image.ts +56 -2
- package/node_modules/pi-antigravity/src/features/read-url-content.ts +124 -0
- package/node_modules/pi-antigravity/src/image/image.ts +16 -2
- package/node_modules/pi-antigravity/src/index.ts +145 -2
- package/node_modules/pi-antigravity/src/models/discovery.ts +3 -4
- package/node_modules/pi-antigravity/src/models/grouping.ts +39 -15
- package/node_modules/pi-antigravity/src/models/models.ts +126 -14
- package/node_modules/pi-antigravity/src/stream/stream.ts +189 -30
- package/node_modules/pi-antigravity/src/types/types.ts +30 -1
- package/node_modules/pi-antigravity/src/usage/usage.ts +58 -0
- package/node_modules/pi-antigravity/src/utils/address.ts +180 -0
- package/node_modules/pi-antigravity/src/utils/credits.ts +149 -0
- package/node_modules/pi-antigravity/src/utils/html.ts +31 -0
- package/node_modules/pi-antigravity/src/utils/index.ts +2 -0
- package/node_modules/pi-antigravity/src/utils/security.ts +172 -13
- package/node_modules/pi-antigravity/src/utils/text.ts +66 -0
- package/node_modules/pi-antigravity/src/utils/util.ts +5 -4
- package/node_modules/pi-antigravity/src/web-fetch/document.ts +83 -0
- package/node_modules/pi-antigravity/src/web-fetch/fences.ts +24 -0
- package/node_modules/pi-antigravity/src/web-fetch/header.ts +97 -0
- package/node_modules/pi-antigravity/src/web-fetch/index.ts +3 -0
- package/node_modules/pi-antigravity/src/web-fetch/inspect.ts +328 -0
- package/node_modules/pi-antigravity/src/web-fetch/limits.ts +4 -0
- package/node_modules/pi-antigravity/src/web-fetch/markdown.ts +744 -0
- package/node_modules/pi-antigravity/src/web-fetch/mdn.ts +164 -0
- package/node_modules/pi-antigravity/src/web-fetch/media.ts +11 -0
- package/node_modules/pi-antigravity/src/web-fetch/metadata.ts +9 -0
- package/node_modules/pi-antigravity/src/web-fetch/representation.ts +93 -0
- package/node_modules/pi-antigravity/src/web-fetch/save.ts +71 -0
- package/node_modules/pi-antigravity/src/web-fetch/sites.ts +138 -0
- package/node_modules/pi-antigravity/src/web-fetch/vendor.d.ts +9 -0
- package/node_modules/pi-antigravity/src/web-fetch/web-fetch.ts +957 -0
- package/node_modules/pi-antigravity/tsconfig.json +2 -2
- package/node_modules/pi-commandcode-provider/CHANGELOG.md +21 -1
- package/node_modules/pi-commandcode-provider/README.md +2 -2
- package/node_modules/pi-commandcode-provider/index.ts +2 -1
- package/node_modules/pi-commandcode-provider/package.json +5 -4
- package/node_modules/pi-commandcode-provider/src/commandcode-catalog.ts +15 -9
- package/node_modules/pi-commandcode-provider/src/oauth.ts +69 -12
- package/node_modules/pi-commandcode-provider/src/pricing.ts +8 -1
- package/node_modules/pi-commandcode-provider/src/responses-compat.ts +137 -0
- package/node_modules/pi-lens/CHANGELOG-USER.md +6 -6
- package/node_modules/pi-lens/CHANGELOG.md +172 -0
- package/node_modules/pi-lens/README.md +103 -217
- package/node_modules/pi-lens/dist/{chunk-KXDQD34C.js → chunk-27JQHK7Y.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-W6VLB6LL.js → chunk-2APSZHHI.js} +61 -3
- package/node_modules/pi-lens/dist/{chunk-5EEWCJG7.js → chunk-2H5GHZKC.js} +8 -8
- package/node_modules/pi-lens/dist/{chunk-TS5EIWEF.js → chunk-2H7NFZ4Q.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-6GWCYEP7.js → chunk-37IDWT6O.js} +64 -16
- package/node_modules/pi-lens/dist/{chunk-OEPWTSUG.js → chunk-3PAS2ERX.js} +8 -8
- package/node_modules/pi-lens/dist/{chunk-ET3DSSFZ.js → chunk-3PO4YYOX.js} +9 -17
- package/node_modules/pi-lens/dist/{chunk-C6V2DSZZ.js → chunk-3QXFUP6T.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-HWMNTQBJ.js → chunk-3TSMQZG6.js} +32 -11
- package/node_modules/pi-lens/dist/{chunk-QY6J2FTK.js → chunk-4DAHGU3V.js} +15 -14
- package/node_modules/pi-lens/dist/{chunk-PCREZ4HJ.js → chunk-4IZZEN63.js} +33 -34
- package/node_modules/pi-lens/dist/{chunk-OYXD2MOM.js → chunk-5HBQL7DH.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-B4FAFEBP.js → chunk-5JB4WENL.js} +1 -1
- package/node_modules/pi-lens/dist/chunk-5YJXF2IS.js +56 -0
- package/node_modules/pi-lens/dist/{chunk-GHATCG2A.js → chunk-6CFSDLHE.js} +22 -18
- package/node_modules/pi-lens/dist/{chunk-FVQKX5KI.js → chunk-6E5QLMWI.js} +24 -22
- package/node_modules/pi-lens/dist/{chunk-AVBEPUCD.js → chunk-6GLMMGCX.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-YTXFNCVN.js → chunk-74AMPWNC.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-K2GV34T2.js → chunk-7CLWC2UH.js} +26 -37
- package/node_modules/pi-lens/dist/{chunk-MOEWCPMC.js → chunk-7DPXUPRF.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-7BEADGAZ.js → chunk-7U36VQL6.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-PPYUBO6Y.js → chunk-7WKVCZI4.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-ILC2B7IJ.js → chunk-7ZVTFLCC.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-IT7MFVGP.js → chunk-ADYQRETD.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-NCDH2JB7.js → chunk-ARTYCUGF.js} +25 -10
- package/node_modules/pi-lens/dist/{chunk-Z6WTLVUL.js → chunk-AXAR5ZW2.js} +225 -104
- package/node_modules/pi-lens/dist/{chunk-PK3GDU4M.js → chunk-AZG5UJYY.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-NRVWLTOY.js → chunk-B2OXE4AH.js} +60 -21
- package/node_modules/pi-lens/dist/{chunk-ORYQGVC3.js → chunk-B42AIWPJ.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-IC4L65U7.js → chunk-BBSDJTOV.js} +12 -13
- package/node_modules/pi-lens/dist/{chunk-HJWF7CGW.js → chunk-BKWFDWYM.js} +16 -16
- package/node_modules/pi-lens/dist/{chunk-D2ZYRI7M.js → chunk-C5PLBTNR.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-SRXYSLMW.js → chunk-CQY2HEH7.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-7424ANRU.js → chunk-CXQYK4YT.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-HYR25MV3.js → chunk-CZJGAOKL.js} +8 -7
- package/node_modules/pi-lens/dist/{chunk-DIIDMDZU.js → chunk-DCA2MXVQ.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-K2LD6YNH.js → chunk-DFKOA74L.js} +9 -9
- package/node_modules/pi-lens/dist/{chunk-AYDE7RFV.js → chunk-DI4AZZNY.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-6EXGCXM5.js → chunk-G53LBDNU.js} +99 -5
- package/node_modules/pi-lens/dist/chunk-GCSDF5IE.js +27 -0
- package/node_modules/pi-lens/dist/{chunk-5KLRCUDT.js → chunk-H5API74E.js} +6 -6
- package/node_modules/pi-lens/dist/chunk-HBX55MWO.js +27 -0
- package/node_modules/pi-lens/dist/{chunk-JRSS6KM4.js → chunk-HIJ4CHFF.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-3MHY4BQY.js → chunk-HIRBC72R.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-F7AMFFVK.js → chunk-HRLF35WL.js} +8 -8
- package/node_modules/pi-lens/dist/{chunk-HSTN27NR.js → chunk-I2FYOZNW.js} +9 -9
- package/node_modules/pi-lens/dist/{chunk-5FDUKJZO.js → chunk-I3NZVAMN.js} +9 -9
- package/node_modules/pi-lens/dist/{chunk-NZINZCHB.js → chunk-INBK3HIT.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-PXGVB2CY.js → chunk-J2ZB5MDS.js} +20 -18
- package/node_modules/pi-lens/dist/{chunk-HYDJUVOE.js → chunk-JGUDT5KD.js} +4 -4
- package/node_modules/pi-lens/dist/chunk-JOIKBUQN.js +88 -0
- package/node_modules/pi-lens/dist/{chunk-AZXTLZHE.js → chunk-K4Z7MK6T.js} +169 -165
- package/node_modules/pi-lens/dist/{chunk-WTSQKJAR.js → chunk-K7O6AHSJ.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-S6ZQFPOX.js → chunk-KNJH6WJQ.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-SUIZOCSY.js → chunk-KNSOA43J.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-3QMLB4TI.js → chunk-KXGTLAUW.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-OHEUOWYT.js → chunk-KZ732ZVW.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-G3LR6V6N.js → chunk-L6BDRYUK.js} +19 -17
- package/node_modules/pi-lens/dist/{chunk-OVPR3GQ6.js → chunk-LGH2HHZG.js} +24 -6
- package/node_modules/pi-lens/dist/{chunk-3R3Z54J7.js → chunk-LOEJFTF2.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-HGEE5LDW.js → chunk-LQQNFCQJ.js} +1 -1
- package/node_modules/pi-lens/dist/chunk-LVLPA32Q.js +810 -0
- package/node_modules/pi-lens/dist/chunk-M2YMBT5G.js +73 -0
- package/node_modules/pi-lens/dist/{chunk-Z2W5YJBW.js → chunk-MJRGPEQ5.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-3EIZMRXI.js → chunk-MOAVEPC4.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-TOOXNL6M.js → chunk-NGNBJIUO.js} +7 -7
- package/node_modules/pi-lens/dist/{chunk-AGEQRJ5A.js → chunk-NHA5K226.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-YLW26OHX.js → chunk-NNEQOC3U.js} +31 -59
- package/node_modules/pi-lens/dist/{chunk-ZWZD4TJ5.js → chunk-O2MHF7QM.js} +35 -36
- package/node_modules/pi-lens/dist/{chunk-PTJXMYRY.js → chunk-OLWGYBYT.js} +15 -16
- package/node_modules/pi-lens/dist/{chunk-JKAVKTMY.js → chunk-OZQQ3AIR.js} +17 -20
- package/node_modules/pi-lens/dist/{chunk-6JLNZ6DP.js → chunk-P5MSLVUW.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-OF2YGDUE.js → chunk-PFJLYRO3.js} +37 -38
- package/node_modules/pi-lens/dist/chunk-PKWEBMCA.js +2957 -0
- package/node_modules/pi-lens/dist/{chunk-JLMS7EMD.js → chunk-PPQHMSPH.js} +16 -15
- package/node_modules/pi-lens/dist/{chunk-6EIV3H7O.js → chunk-PQF6YGYB.js} +12 -5
- package/node_modules/pi-lens/dist/{chunk-VU2PRGRI.js → chunk-PQXUZYTQ.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-MV6ST2KT.js → chunk-Q7J3JYJ2.js} +13 -12
- package/node_modules/pi-lens/dist/{chunk-BMMRLJA4.js → chunk-QE5DJ7MX.js} +27 -10
- package/node_modules/pi-lens/dist/{chunk-IZ36G463.js → chunk-QE7BJQ6K.js} +7 -7
- package/node_modules/pi-lens/dist/{chunk-E5SSUV2A.js → chunk-QMWKSYWB.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-QJ4T73J5.js → chunk-QV3JPCMK.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-3PMLYGJN.js → chunk-R4L7KZ7R.js} +5 -5
- package/node_modules/pi-lens/dist/{chunk-7ZVEFWOE.js → chunk-RIH3UBK4.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-T5EGSBM2.js → chunk-RJ3APNIP.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-AAIVSSUU.js → chunk-S6MCMD27.js} +35 -12
- package/node_modules/pi-lens/dist/{chunk-SF7KSXB5.js → chunk-SCU62JLX.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-FDLGJFAE.js → chunk-SDYLT45T.js} +3 -3
- package/node_modules/pi-lens/dist/chunk-TFKN5EIR.js +27 -0
- package/node_modules/pi-lens/dist/{chunk-Y7XMKBFP.js → chunk-TKOFTLGB.js} +34 -26
- package/node_modules/pi-lens/dist/chunk-TQWRH25U.js +35 -0
- package/node_modules/pi-lens/dist/{chunk-DZSQXG66.js → chunk-TWEOJE3D.js} +277 -62
- package/node_modules/pi-lens/dist/{chunk-R67WQ5RY.js → chunk-UN72ZAJ5.js} +8 -8
- package/node_modules/pi-lens/dist/{chunk-AD7JDEI6.js → chunk-UNP6Y4JV.js} +16 -16
- package/node_modules/pi-lens/dist/{chunk-D6ANA6YU.js → chunk-VGRGW4UL.js} +63 -55
- package/node_modules/pi-lens/dist/{chunk-DFAY7JUN.js → chunk-VSQT6IHZ.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-7T64QA5D.js → chunk-VWEBZ2JV.js} +39 -38
- package/node_modules/pi-lens/dist/{chunk-HRQTYU2T.js → chunk-W26QZ3OM.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-2HWVG3IM.js → chunk-XDNWR7SG.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-75TVYCQW.js → chunk-XSC3BCN3.js} +5 -5
- package/node_modules/pi-lens/dist/{chunk-ME6MF2N2.js → chunk-YCR6ZYTE.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-LD7SXICE.js → chunk-ZI7YHV6I.js} +5 -5
- package/node_modules/pi-lens/dist/{chunk-E3PNZDPH.js → chunk-ZQSSO7LO.js} +33 -1
- package/node_modules/pi-lens/dist/{chunk-T6PPK3T6.js → chunk-ZULZS2I6.js} +385 -407
- package/node_modules/pi-lens/dist/index.js +6508 -5413
- package/node_modules/pi-lens/dist/mcp/analyze-cli.js +9 -9
- package/node_modules/pi-lens/dist/mcp/cli.js +39 -38
- package/node_modules/pi-lens/dist/mcp/server.js +602 -345
- package/node_modules/pi-lens/dist/mcp/worker.js +57 -58
- package/node_modules/pi-lens/dist/probes/installer.js +19 -17
- package/node_modules/pi-lens/docs/architecture.md +113 -0
- package/node_modules/pi-lens/docs/ast-grep_rules_catalog.md +2 -2
- package/node_modules/pi-lens/docs/ci.md +18 -4
- package/node_modules/pi-lens/docs/defect-shapes.md +41 -3
- package/node_modules/pi-lens/docs/dependencies.md +10 -10
- package/node_modules/pi-lens/docs/features.md +3 -3
- package/node_modules/pi-lens/docs/invariants/dispatch-runners.md +13 -1
- package/node_modules/pi-lens/docs/invariants/lsp-trust-exec.md +19 -0
- package/node_modules/pi-lens/docs/language-coverage.md +39 -0
- package/node_modules/pi-lens/docs/lsp-capability-matrix.md +10 -4
- package/node_modules/pi-lens/docs/lsp-idle-eviction.md +1 -1
- package/node_modules/pi-lens/docs/pi-lens-fixer.md +4 -0
- package/node_modules/pi-lens/docs/pi-lens-merge-policy.md +1 -1
- package/node_modules/pi-lens/docs/pi-lens-reviewer.md +4 -5
- package/node_modules/pi-lens/docs/pi-lens-subagent.md +5 -2
- package/node_modules/pi-lens/docs/prose-standard.md +112 -0
- package/node_modules/pi-lens/docs/servercapabilities.md +1 -1
- package/node_modules/pi-lens/docs/usage.md +50 -0
- package/node_modules/pi-lens/package.json +1 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/array-callback-return-js-test.yml +23 -0
- package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/array-callback-return-test.yml +23 -0
- package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/no-negation-in-equality-check-js-test.yml +8 -0
- package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/no-negation-in-equality-check-test.yml +8 -0
- package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/unchecked-throwing-call-js-test.yml +16 -0
- package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/unchecked-throwing-call-test.yml +16 -0
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/array-callback-return-js.yml +8 -0
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/array-callback-return.yml +8 -0
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-negation-in-equality-check-js.yml +17 -5
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-negation-in-equality-check.yml +17 -5
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/unchecked-throwing-call-js.yml +8 -1
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/unchecked-throwing-call.yml +8 -1
- package/node_modules/pi-lens/rules/tree-sitter-queries/typescript/ts-react-antipatterns.yml +8 -0
- package/node_modules/pi-web-access/CHANGELOG.md +29 -0
- package/node_modules/pi-web-access/README.md +35 -15
- package/node_modules/pi-web-access/anysearch.ts +7 -3
- package/node_modules/pi-web-access/autom.ts +196 -0
- package/node_modules/pi-web-access/cloro.ts +254 -0
- package/node_modules/pi-web-access/curator-page.ts +7 -1
- package/node_modules/pi-web-access/curator-server.ts +3 -0
- package/node_modules/pi-web-access/dist/index.js +12931 -12111
- package/node_modules/pi-web-access/dist/mcp-cli.js +1188 -416
- package/node_modules/pi-web-access/domain-filter-normalization.ts +30 -0
- package/node_modules/pi-web-access/duckduckgo-rate-limit.ts +144 -34
- package/node_modules/pi-web-access/duckduckgo.ts +11 -3
- package/node_modules/pi-web-access/extract.ts +60 -4
- package/node_modules/pi-web-access/gemini-search.ts +25 -5
- package/node_modules/pi-web-access/index.ts +9 -1
- package/node_modules/pi-web-access/package.json +2 -2
- package/node_modules/pi-web-access/page-query.ts +12 -3
- package/node_modules/pi-web-access/specstream.ts +276 -0
- package/node_modules/pi-web-access/tool-activation.ts +21 -6
- package/node_modules/pi-web-access/utils.ts +4 -0
- package/node_modules/pi-web-access/video-extract.ts +2 -2
- package/node_modules/pi-web-access/web-tool-core.ts +24 -5
- package/node_modules/pi-web-access/youtube-extract.ts +2 -2
- package/package.json +11 -8
- package/node_modules/pi-lens/dist/chunk-3VWEZ6H2.js +0 -72
- package/node_modules/pi-lens/dist/chunk-7KWI5UHL.js +0 -28
- package/node_modules/pi-lens/dist/chunk-7M64NTAK.js +0 -38
- package/node_modules/pi-lens/dist/chunk-BEIPWPVR.js +0 -1037
- package/node_modules/pi-lens/dist/chunk-D7OEGXDX.js +0 -2417
- package/node_modules/pi-lens/dist/chunk-KUDUKKQE.js +0 -89
- package/node_modules/pi-lens/dist/chunk-TM3A3K7T.js +0 -28
- package/node_modules/pi-lens/dist/chunk-VD7MQFEV.js +0 -56
- package/node_modules/pi-lens/dist/chunk-YLHJWAQS.js +0 -256
- package/node_modules/pi-lens/dist/chunk-YULIERZW.js +0 -27
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# @herbertgao/pi-extensions
|
|
2
2
|
|
|
3
|
+
## 2026.11.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#380](https://github.com/HerbertGao/pi-extensions/pull/380) [`148a621`](https://github.com/HerbertGao/pi-extensions/commit/148a621b39675e5c7aaec52e4a171a6a91ed49b2) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Pin pi-antigravity 0.14.0. The package registers read_url_content and rejects a private or credentialed URL before a request. ANTIGRAVITY_NO_FETCH_TOOL=1 skips that tool. The User-Agent is antigravity/cli/1.5.5.
|
|
8
|
+
|
|
9
|
+
- [#383](https://github.com/HerbertGao/pi-extensions/pull/383) [`34e9a94`](https://github.com/HerbertGao/pi-extensions/commit/34e9a9445806afbd5be85034fe32ceea1919f9eb) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Pin pi-commandcode-provider 0.8.4. Refresh checks the stored key before returning it, and a revoked key fails with 401 invalid_token. The capability snapshot is command-code@1.89.1, so Fable, Carbon, Muse, and Inkling 2 Small Free accept images and a reasoning effort.
|
|
10
|
+
|
|
11
|
+
- [#380](https://github.com/HerbertGao/pi-extensions/pull/380) [`148a621`](https://github.com/HerbertGao/pi-extensions/commit/148a621b39675e5c7aaec52e4a171a6a91ed49b2) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Pin graphifyy 0.9.109. The CLI stays outside the npm aggregate. Warm AST caches rebuild. Python stays on >=3.10,<3.15.
|
|
12
|
+
|
|
13
|
+
- [#383](https://github.com/HerbertGao/pi-extensions/pull/383) [`34e9a94`](https://github.com/HerbertGao/pi-extensions/commit/34e9a9445806afbd5be85034fe32ceea1919f9eb) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Pin graphifyy 0.9.111. The CLI stays outside the npm aggregate. Warm AST caches rebuild. Python is now >=3.11,<3.15. uv still supplies that interpreter.
|
|
14
|
+
|
|
15
|
+
- [#380](https://github.com/HerbertGao/pi-extensions/pull/380) [`148a621`](https://github.com/HerbertGao/pi-extensions/commit/148a621b39675e5c7aaec52e4a171a6a91ed49b2) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Pin pi-lens 4.5.0. An async array callback with a block body is not flagged for a missing return. A sync block callback that does not return still is. A check that did not finish is not reported as clean.
|
|
16
|
+
|
|
17
|
+
- [#383](https://github.com/HerbertGao/pi-extensions/pull/383) [`34e9a94`](https://github.com/HerbertGao/pi-extensions/commit/34e9a9445806afbd5be85034fe32ceea1919f9eb) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Pin pi-web-access 0.48.0. SpecStream, Autom, and cloro stay explicit-only. DuckDuckGo searches are spaced at 10 seconds and at most 10 in 10 minutes, and a search timeout can fall through to the next provider.
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [[`34e9a94`](https://github.com/HerbertGao/pi-extensions/commit/34e9a9445806afbd5be85034fe32ceea1919f9eb), [`34e9a94`](https://github.com/HerbertGao/pi-extensions/commit/34e9a9445806afbd5be85034fe32ceea1919f9eb), [`148a621`](https://github.com/HerbertGao/pi-extensions/commit/148a621b39675e5c7aaec52e4a171a6a91ed49b2), [`34e9a94`](https://github.com/HerbertGao/pi-extensions/commit/34e9a9445806afbd5be85034fe32ceea1919f9eb)]:
|
|
20
|
+
- @herbertgao/pi-cc-extensions@1.0.18
|
|
21
|
+
- @herbertgao/pi-impeccable@0.5.0
|
|
22
|
+
|
|
23
|
+
## 2026.11.11
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- [#377](https://github.com/HerbertGao/pi-extensions/pull/377) [`b02be94`](https://github.com/HerbertGao/pi-extensions/commit/b02be9410f637abc110fd2ee02def0f9d75fd419) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Pin pi-commandcode-provider 0.8.3. GLM-5.3 Responses requests tag untyped messages and drop an inert reasoning effort of none. Mistral Large 4 drops that same effort. Inkling 2 Small Free is priced at zero and stays text-only.
|
|
28
|
+
|
|
29
|
+
- Updated dependencies [[`b02be94`](https://github.com/HerbertGao/pi-extensions/commit/b02be9410f637abc110fd2ee02def0f9d75fd419), [`b02be94`](https://github.com/HerbertGao/pi-extensions/commit/b02be9410f637abc110fd2ee02def0f9d75fd419), [`b02be94`](https://github.com/HerbertGao/pi-extensions/commit/b02be9410f637abc110fd2ee02def0f9d75fd419)]:
|
|
30
|
+
- @herbertgao/pi-impeccable@0.4.0
|
|
31
|
+
- @herbertgao/pi-cc-extensions@1.0.17
|
|
32
|
+
- @herbertgao/pi-subagents@0.24.0
|
|
33
|
+
|
|
3
34
|
## 2026.11.10
|
|
4
35
|
|
|
5
36
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -20,8 +20,8 @@ When migrating from `pi-mcp-adapter`, remove any standalone adapter install as w
|
|
|
20
20
|
|
|
21
21
|
The package bundles 6 active `@herbertgao/*` child packages—`pi-agency`, `pi-bark`, `pi-cc-extensions`, `pi-impeccable`, `pi-subagents`, and `sol-pi`—plus the following upstream packages under their original names:
|
|
22
22
|
|
|
23
|
-
- `pi-antigravity@0.
|
|
24
|
-
- `pi-commandcode-provider@0.8.
|
|
23
|
+
- `pi-antigravity@0.14.0`
|
|
24
|
+
- `pi-commandcode-provider@0.8.4`
|
|
25
25
|
- `pi-provider-qoder@0.6.12`
|
|
26
26
|
- `@dietrichgebert/ponytail@5.3.3`
|
|
27
27
|
- `@juicesharp/rpiv-ask-user-question@2.15.0`
|
|
@@ -36,18 +36,18 @@ The package bundles 6 active `@herbertgao/*` child packages—`pi-agency`, `pi-b
|
|
|
36
36
|
- `@tintinweb/pi-tasks@0.9.1`
|
|
37
37
|
- `pi-typesafe@0.14.0`
|
|
38
38
|
- `pi-next-cue@1.0.8`
|
|
39
|
-
- `pi-lens@4.
|
|
40
|
-
- `pi-web-access@0.
|
|
39
|
+
- `pi-lens@4.5.0`
|
|
40
|
+
- `pi-web-access@0.48.0`
|
|
41
41
|
|
|
42
42
|
Pi loads their extensions and skills through `node_modules/` paths inside one package root. The upstream companions are pinned and bundled, not forked or renamed.
|
|
43
43
|
|
|
44
|
-
The locally customized CC package follows upstream `pi-cc-extensions@1.0.
|
|
44
|
+
The locally customized CC package follows upstream `pi-cc-extensions@1.0.20`; SoL-Pi follows its complete main baseline `e1a586af` with Pi 1.x/codemode compatibility updates through `21956803`. Local behavior not already covered upstream is retained. SoL-Pi's `update_plan` now follows upstream's model-only contract: invoke it directly, not inside codemode scripts. Action Fusion and ccstyle write rich diffs coexist without disabling either feature. All four SoL-Pi features remain opt-in; its new non-persistent-session evidence archives remain on disk for consumers and require host or caller cleanup.
|
|
45
45
|
|
|
46
|
-
Antigravity `0.
|
|
46
|
+
Antigravity `0.14.0` enriches search citations by visiting source sites by default (`ANTIGRAVITY_NO_SOURCE_ENRICH=1` disables enrichment). `ANTIGRAVITY_DEFER_TOOLS=1` registers `google_search`, `read_url_content`, and `generate_image` as deferred tools; the default stays direct. A refreshed catalog does not restore a model the current catalog omitted, and an image save rejects a symlink destination. A private or credentialed fetch URL is rejected before a request, and `ANTIGRAVITY_NO_FETCH_TOOL=1` skips `read_url_content`. The User-Agent is `antigravity/cli/1.5.5`. It refreshes a curated model catalog and upgrades the existing model cache; previously listed model IDs may disappear. Ask `2.15.0` lets other extensions in the same process answer or cancel TUI questionnaires through its event channel, without sender authentication. Its notes shortcut defaults to `n` and can be a single non-Latin character; reserved navigation keys stay on `n`. Web Access `0.45.0` keeps direct tool exposure and `toolActivation: auto` by default. Linkup, DeepSeek search and fetch, provider gateways, `toolActivation: "none"`, deferred exposure, GCE ADC, field extraction, 9router, and plain HTTP gateway URLs require explicit configuration. Web Access `0.48.0` adds SpecStream, Autom, and cloro as explicit-only search providers. A search timeout is a network failure, so a route that falls back on network continues. DuckDuckGo searches in one process start at least 10 seconds apart, at most 10 in any 10 minutes, and a slot more than 20 seconds away fails at once. Web Access `0.47.0` adds Sofya and Outcrawl as explicit-only search providers. `lockProxy: true` rejects a tool-call proxy that differs from the configured proxy, including a direct connection. A GitHub repository README is returned up to 100K characters, and a clone with no `githubClone.clonePath` goes under the OS temp directory.
|
|
47
47
|
|
|
48
48
|
Ponytail `5.3.2` updates the Pi skill guidance, including how to turn it off. Its Pi extension entry is unchanged; the new Claude Code band/board hooks are not registered by this aggregate.
|
|
49
49
|
|
|
50
|
-
Impeccable `4.
|
|
50
|
+
Impeccable `4.9.2` is vendored as `@herbertgao/pi-impeccable` and loaded with `/skill:impeccable`. Its native engine downloads to `~/.impeccable` on first use after SHA-256 verification; set `IMPECCABLE_BIN` for offline or preinstalled setups. The launcher pins engine 0.1.25 and skips a sibling engine binary that reports a different version. A GitHub HTTP 5xx during that download says the outage is on GitHub's side. `/impeccable foundations` walks a product-foundations checklist. A critique's design-review rubric is `reference/critique-rubric.md`, and a new surface reads `reference/new-work-world.md` or `reference/new-work-comp.md` when that part applies. Go leaves a staged removal in the page so Undo and Discard can restore it. The package does not install automatic post-edit hooks, and upstream `pin`/`unpin` do not discover npm-loaded skills.
|
|
51
51
|
|
|
52
52
|
### Agency Agents
|
|
53
53
|
|
|
@@ -63,7 +63,7 @@ Impeccable `4.8.2` is vendored as `@herbertgao/pi-impeccable` and loaded with `/
|
|
|
63
63
|
|
|
64
64
|
`clef` asks Cloudflare Clef-flash an on-demand yes/no, choice, or score and prints the questions and answers in the transcript, plus a one-line notice. It is not a permission gate. `pi-typesafe@0.14.0` provides `/typesafe` and `typesafe_evaluate` for explicit structured decisions; `/typesafe enable` or `PI_TYPESAFE_ENABLED=1` is still required for agent tool calls. The default backend remains `https://api.typesafe.ai`. `PI_TYPESAFE_BACKEND` and `PI_TYPESAFE_MODEL` select the session backend and model, and `/typesafe login` stores a key for the named backend. Only HTTP 401 refuses that key, and only for 15 minutes; a 403 refuses one request and leaves the key usable. Nace.AI (`https://console.nace.ai`, `NACE_API_KEY`, default model `drex-v2.0`) is a judgment backend. Daily request, token, and USD caps are opt-in. OpenRouter, Command Code, Liquid, SubQ, Nace.AI, and a named endpoint stay explicit and use that backend's own key. The promoted SDK is `@typesafe-ai/sdk@0.7.0`. Under Bun, the judge transport reads each response body once and replays it, so the SDK can still read the result after Bun marks the original body used.
|
|
65
65
|
|
|
66
|
-
`@herbertgao/sol-pi` adds opt-in Action Fusion, ObservationPack, Evidence-Preserving Reducer, and Online Context Compact; see its [configuration guide](../sol-pi/docs/configuration.md). `pi-lens@4.
|
|
66
|
+
`@herbertgao/sol-pi` adds opt-in Action Fusion, ObservationPack, Evidence-Preserving Reducer, and Online Context Compact; see its [configuration guide](../sol-pi/docs/configuration.md). `pi-lens@4.5.0` publishes a public LSP config schema, reads user-level custom rule directories (project before user before built-in), normalizes argv-style server entries, downgrades `throw-new-error` to a warning, and counts Docker, JSON, and Jedi servers in idle eviction; language routing and the retained multi-root diagnostic facts are unchanged. `.mts` and `.cts` use the TypeScript rules. Groovy files still classify as Groovy, and the vendored Groovy grammar lists classes and methods. `--no-read-expansion` turns off read widening without disabling the read-before-edit guard. It promotes `@ast-grep/cli` to `0.51.1` and `@ast-grep/napi` to `^0.51.0`. A blank `PI_LENS_*` number falls back to the default, and an explicit `0` is a value. An edit that raises a named function past the high-complexity threshold and past the default branch names that function on one line; a function the edit improved, or that is still no worse than the default branch, is not named. `ast_grep_replace` no longer requests strict JSON-schema sampling; `lens_diagnostic_mark` still does. A language server for a project outside the session folder starts only when Pi would trust that project. Four MCP tools advertise only `path`. A session rooted at `/` keeps `lsp.disabledServers`. Concatenated SQL passed to `.execute()` is an advisory full-analysis finding; a parameterized `execute(sql, values)` call stays quiet. Keeping injected findings in later requests is opt-in. A workspace edit through a dangling symlink is refused, and a symlink that resolves outside the workspace is refused; the fallback Biome config no longer names a nursery rule. An identity `filter(x => x).map(...)` stays a warning, and a non-identity `filter(fn).map(...)` is no longer flagged. An async array callback with a block body is not flagged for a missing return. A sync block callback that does not return still is. A reduce that copies its accumulator with `Object.assign` is a warning. A directory whose name starts with `..` stays inside its project. `.groovy`, `.gvy`, `.gy`, `.gsh`, `Jenkinsfile`, `build.gradle`, and `settings.gradle` classify as Groovy; `build.gradle.kts` does not. `minimatch` is `^11.0.4` and `vscode-jsonrpc` is `^10.0.0`. `pi-web-access@0.48.0` provides configurable web search and fetch tools; its `toolActivation` defaults to `auto`, choosing eager or dynamic tool activation per model. `toolActivation: "none"` stays opt-in and still requires deferred exposure. Field extraction, 9router, empty or off-topic search fallback, and plain HTTP gateway URLs stay off unless configured. An unknown tool-call provider name fails instead of selecting a provider automatically, and DuckDuckGo searches stay spaced apart after a bot check. It adds structured search/fetch data for codemode and an optional, manually started `pi-web-access-mcp` stdio CLI; installing the aggregate does not start that server. Degoog, Keenable, Ceramic, Linkup, DeepSeek fetch, Cloudflare search, SearchApi, Outcrawl, Sofya, cloro, Autom, SpecStream, and Tabstack are explicit-only, excluded from automatic and `all` selection. DuckDuckGo searches in one process start at least 10 seconds apart and at most 10 in any 10 minutes. `lockProxy: true` rejects a tool-call proxy other than the configured one. A GitHub repository README is returned up to 100K characters, and a clone with no `githubClone.clonePath` goes under the OS temp directory. Optional `fetchContent.curl` and Exa/Tabstack fetch routing stay off unless configured. Provider gateway base URLs are opt-in and are not configured by the aggregate. OpenAI search now defaults to `gpt-6-luna`, results and clone cleanup are scoped per extension instance, and the promoted `@modelcontextprotocol/sdk@^1.32.1` moves the bundle off GHSA-6qxp-vccf-f47h. Perplexity search now uses the Search API's ranked pages and snippets rather than a Sonar-generated answer; requests requiring prose still use Sonar. `pi-antigravity@0.14.0` reads Pi 0.86+ transcript system messages, so Antigravity requests carry Pi's system prompt and tools; it also registers `google_search`, `read_url_content`, and `generate_image` tools that use the signed-in Antigravity account. Those tools stay direct unless `ANTIGRAVITY_DEFER_TOOLS=1`. `ANTIGRAVITY_NO_FETCH_TOOL=1` skips `read_url_content`. A private or credentialed fetch URL is rejected before a request. The User-Agent is `antigravity/cli/1.5.5`. A model removed by catalog refresh is not filled back in from the bootstrap list. Image saves reject symlink destinations. The aggregate keeps host `typebox` and `undici@^8.11.2`. `pi-provider-qoder@0.6.12` registers the `qoder` and `qoder-cn` model providers. A tool-call argument stream that is cut off before a usable call is reported as a retryable server error. Startup logs one line when the npm registry has a newer release; `PI_PROVIDER_QODER_SKIP_UPDATE_CHECK=1` skips that lookup. A queued model-busy response reports its wait instead of being ignored; a ready busy response stays retryable. A queued wait that does not fit in a safe millisecond count uses `retryAfterSeconds` instead. Agent chat prefers the account's remote-agent node and, on daily chat limit code 110, tries the next node. The chosen node is cached for one hour. Sign in with `/login qoder` (browser or a personal access token from [qoder.com/account/integrations](https://qoder.com/account/integrations)) or `/login qoder-cn` (token from [qoder.com.cn/account/integrations](https://qoder.com.cn/account/integrations)). `QODER_PERSONAL_ACCESS_TOKEN` and `QODERCN_PERSONAL_ACCESS_TOKEN` log those providers in at startup. `/qoder-usage footer on` replaces the status-bar footer for that session, so leave it off while the pi-cc footer is in use. `pi-commandcode-provider@0.8.4` registers `commandcode` beside `qoder`, `qoder-cn`, and `antigravity`. Inference uses the Provider API only. `/login` lists those subscription providers and runs only the one you select. `@tifan/pi-preferred-thinking` is no longer bundled. Per-model thinking levels come from Pi. Deprecated `@tifan/pi-titlebar-spinner` is no longer bundled; Rename remains the single owner of Herdr tab naming. `@tifan/pi-handoff` imports `@tifan/pi-rename/naming` when it generates a session name, so Rename stays installed and its `/rename` command stays registered.
|
|
67
67
|
|
|
68
68
|
`pi-stash` is no longer bundled: `/btw` already preserves the main editor draft while handling side questions outside the main conversation. Prior `@herbertgao/pi-stash` releases remain available but are no longer maintained here.
|
|
69
69
|
|
|
@@ -81,9 +81,9 @@ Pi stacks widgets by key. While tasks are visible, three other above-editor widg
|
|
|
81
81
|
|
|
82
82
|
### Command Code
|
|
83
83
|
|
|
84
|
-
`pi-commandcode-provider@0.8.
|
|
84
|
+
`pi-commandcode-provider@0.8.4` adds the `commandcode` model provider. It does not register its own `/login` command. Pi's `/login` lists it with the other subscription providers (`antigravity`, `qoder`, and `qoder-cn`). Choose **Use a subscription**, then **Command Code**. Press Enter for browser login, type `key` to paste an API key, or paste the key directly. `COMMAND_CODE_API_KEY` signs the provider in at startup. Existing keys in `~/.commandcode/auth.json` are also read. Credentials Pi stores for this provider live under the `commandcode` entry in the host auth file. The reader does not take `qoder` or `antigravity` credentials.
|
|
85
85
|
|
|
86
|
-
`/commandcode-quota` shows account usage. `/commandcode-refresh` reloads the model catalog, and `/commandcode-status` shows redacted discovery diagnostics: URL userinfo, query strings, and fragments are removed before the shared credential redactor runs. `/commandcode-endpoint` stores a per-model Provider API route, and `/commandcode-diagnostics` prints a content-free report. Inference stays on the Provider API. A `403 upgrade_required` response stops with that requirement and does not retry the retired `/alpha/generate` transport. `COMMANDCODE_TASTE_LEARNING` is no longer read. During a DeepSeek V4 peak window, context-tier rates are doubled together with the base rates, and the host receives its own mutable copy. `/commandcode-refresh` resets the transport probe. On first start without a cache, model discovery waits for `https://api.commandcode.ai/provider/v1/models` and still loads if that request fails. The static capability snapshot
|
|
86
|
+
`/commandcode-quota` shows account usage. `/commandcode-refresh` reloads the model catalog, and `/commandcode-status` shows redacted discovery diagnostics: URL userinfo, query strings, and fragments are removed before the shared credential redactor runs. `/commandcode-endpoint` stores a per-model Provider API route, and `/commandcode-diagnostics` prints a content-free report. Inference stays on the Provider API. A `403 upgrade_required` response stops with that requirement and does not retry the retired `/alpha/generate` transport. `COMMANDCODE_TASTE_LEARNING` is no longer read. During a DeepSeek V4 peak window, context-tier rates are doubled together with the base rates, and the host receives its own mutable copy. `/commandcode-refresh` resets the transport probe. On first start without a cache, model discovery waits for `https://api.commandcode.ai/provider/v1/models` and still loads if that request fails. The static capability snapshot is `command-code@1.89.1`. Reviewed per-million display prices stay `claude-fable-5-2` at $8.00 input / $40.00 output / $0.20 cache read / $10.00 cache write, `google/gemini-4-carbon` at $2.00 / $10.00 / $0.10 with no cache-write charge, and `meta/muse-ember` at $0.10 / $0.50 / $0.004 with no cache-write charge. Those three models, plus `thinkingmachines/inkling-2-small:free` at zero while that free tier lasts, accept image input and a selectable reasoning effort. Inkling 2 Small's output limit is 131,072 tokens. Refresh checks the stored key with `whoami` before returning it. A 401 fails that refresh with `401 invalid_token` and does not hand the key back. A network error or HTTP 5xx fails the refresh without that message. Responses requests for `zai-org/GLM-5.3` tag untyped system, developer, and user items as `type: "message"` and drop a reasoning block that is only `effort: "none"`. `mistral/mistral-large-4` drops that same inert block and leaves item types unchanged. Every other model keeps the host body. A reasoning effort other than `none` is left in place. The retired `stealth/crouton-alpha` and `reflection/beam:free` prices and capability flags are gone, so a listing without a price is unknown. TypeSafe's Command Code judge backend stays opt-in and uses that backend's own key. This aggregate does not also bundle `pi-login-manager` or `@iaziz786/pi-cmd-login`.
|
|
87
87
|
|
|
88
88
|
### Footer
|
|
89
89
|
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -84,7 +84,7 @@ THE SOFTWARE.
|
|
|
84
84
|
|
|
85
85
|
## `pi-antigravity`
|
|
86
86
|
|
|
87
|
-
The aggregate bundles the MIT-licensed [`pi-antigravity`](https://github.com/Rahularya01/pi-antigravity) package version 0.
|
|
87
|
+
The aggregate bundles the MIT-licensed [`pi-antigravity`](https://github.com/Rahularya01/pi-antigravity) package version 0.14.0 under its original attribution:
|
|
88
88
|
|
|
89
89
|
MIT License
|
|
90
90
|
|
|
@@ -187,7 +187,7 @@ THE SOFTWARE.
|
|
|
187
187
|
|
|
188
188
|
## `pi-commandcode-provider`
|
|
189
189
|
|
|
190
|
-
The aggregate bundles [`pi-commandcode-provider`](https://github.com/patlux/pi-commandcode-provider) version 0.8.
|
|
190
|
+
The aggregate bundles [`pi-commandcode-provider`](https://github.com/patlux/pi-commandcode-provider) version 0.8.4 under its original MIT license. The imported npm package corresponds to upstream tag `v0.8.4` at commit [`3b60d881ae9c9f30846410fe9161e490cd34acc7`](https://github.com/patlux/pi-commandcode-provider/commit/3b60d881ae9c9f30846410fe9161e490cd34acc7). npm publishes no gitHead; the published tarball matches that tag.
|
|
191
191
|
|
|
192
192
|
MIT License
|
|
193
193
|
|
|
@@ -217,4 +217,4 @@ The aggregate bundles [`pi-provider-qoder`](https://github.com/simonsmh/pi-provi
|
|
|
217
217
|
|
|
218
218
|
## `@herbertgao/pi-impeccable`
|
|
219
219
|
|
|
220
|
-
The aggregate bundles [`@herbertgao/pi-impeccable`](https://github.com/HerbertGao/pi-extensions/tree/master/packages/pi-impeccable), vendored from [`pbakaus/impeccable`](https://github.com/pbakaus/impeccable) release `4.
|
|
220
|
+
The aggregate bundles [`@herbertgao/pi-impeccable`](https://github.com/HerbertGao/pi-extensions/tree/master/packages/pi-impeccable), vendored from [`pbakaus/impeccable`](https://github.com/pbakaus/impeccable) release `4.9.2` at commit `bba37e8ff05a099ae8f72db929453b31c82bef20`, under the Apache License 2.0. `scripts/live-browser.js` includes one local fix that keeps a staged removal in the live DOM. The bundled child package includes the complete upstream `LICENSE` and `NOTICE.md`, including its third-party attributions.
|
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @herbertgao/pi-cc-extensions
|
|
2
2
|
|
|
3
|
+
## 1.0.20-local.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#383](https://github.com/HerbertGao/pi-extensions/pull/383) [`34e9a94`](https://github.com/HerbertGao/pi-extensions/commit/34e9a9445806afbd5be85034fe32ceea1919f9eb) Thanks [@HerbertGao](https://github.com/HerbertGao)! - A compact round sealed by an outer tool no longer absorbs the next message while earlier tools are still running. The summary row stays put when it is already in front of that outer tool.
|
|
8
|
+
|
|
9
|
+
- [#380](https://github.com/HerbertGao/pi-extensions/pull/380) [`148a621`](https://github.com/HerbertGao/pi-extensions/commit/148a621b39675e5c7aaec52e4a171a6a91ed49b2) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Replay upstream pi-cc-extensions 1.0.19. Round summaries end with the completion time and count a write together with a later edit of the same file. An older summary that only stored a write count still renders, including its duration. Expanded cards leave a blank row between tool blocks, including after a multi-row image. After /new or /reload resets the editor, the old editor is not written back. Turning the prefix off and back on in one open panel still keeps the last choice. Regular mode still does not enable terminal mouse reporting.
|
|
10
|
+
|
|
11
|
+
- [#383](https://github.com/HerbertGao/pi-extensions/pull/383) [`34e9a94`](https://github.com/HerbertGao/pi-extensions/commit/34e9a9445806afbd5be85034fe32ceea1919f9eb) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Replay upstream pi-cc-extensions 1.0.20. Round summaries show the date with the completion time, and a round seals when an outer tool appears so later work starts a new summary. Expanded cards reuse unchanged rows, and a background row that already fits keeps its styling. An older summary that only stored a write count still renders. Regular mode still does not enable terminal mouse reporting.
|
|
12
|
+
|
|
13
|
+
## 1.0.18-local.1
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [#377](https://github.com/HerbertGao/pi-extensions/pull/377) [`b02be94`](https://github.com/HerbertGao/pi-extensions/commit/b02be9410f637abc110fd2ee02def0f9d75fd419) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Replay upstream pi-cc-extensions 1.0.18. Expanded cards drop the blank row between Input and Output. Inline images in an expanded group line up with the output text, and in fullscreen they keep the card background. Regular mode still does not enable terminal mouse reporting.
|
|
18
|
+
|
|
3
19
|
## 1.0.17-local.1
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
|
@@ -92,8 +92,7 @@ Renderer snapshots for `on` / `compact` modes: [default](./docs/tool-render-exam
|
|
|
92
92
|
"footerCurrencyRate": null, // display units per 1 cost unit; null changes the symbol only
|
|
93
93
|
"footerNerdIcons": true, // Nerd Font glyphs for git/cache/tokens; false = plain text
|
|
94
94
|
"footerGitStatsMode": "working", // working (default): uncommitted; branch: cumulative net changes
|
|
95
|
-
"footerContextLimit": "window", // context chip limit: window (default)
|
|
96
|
-
// Pi compacts only after crossing that point, so the text can briefly exceed 100% (e.g. 104%/184k); the bar clamps at 100%
|
|
95
|
+
"footerContextLimit": "window", // context chip limit: window (default) | compaction point | both (point + window); may briefly exceed 100%
|
|
97
96
|
"footerHiddenKeys": [], // hidden chip keys
|
|
98
97
|
"footerLine1Keys": ["model", "context", "cache", "rate", "cost", "tokens", "pi-usage"], // chip order per line; builtins and plugins share one layout
|
|
99
98
|
"footerLine2Keys": ["cwd", "git"], // cwd: directory and session; git: branch and changes. Either can move to any line
|
|
@@ -119,7 +118,7 @@ pi -e . # one run, does not edit settings.json
|
|
|
119
118
|
|
|
120
119
|
## Compatibility
|
|
121
120
|
|
|
122
|
-
- Node.js `>=22.19.0`; the monorepo typechecks against Pi `1.5.0`, and published Pi peer versions stay `*`. 1.0.17 passes injected keybinding hints, `messageTypes`, and the waiting-for-input state through to Pi 1.5.x hosts that provide them.
|
|
121
|
+
- Node.js `>=22.19.0`; the monorepo typechecks against Pi `1.5.0`, and published Pi peer versions stay `*`. 1.0.20 shows the date with a round summary's completion time, seals that summary when an outer tool appears, and reuses unchanged expanded-card rows. 1.0.19 appends the completion time to a round summary and counts a write together with a later edit of the same file. After `/new` or `/reload` resets the editor, the old editor is not written back. 1.0.18 drops the blank rail between Input and Output on an expanded card. Inline images in an expanded group line up with the output text, and in fullscreen they keep the card background. 1.0.17 still passes injected keybinding hints, `messageTypes`, and the waiting-for-input state through to Pi 1.5.x hosts that provide them.
|
|
123
122
|
|
|
124
123
|
## Recommended companions
|
|
125
124
|
|
|
@@ -131,7 +130,7 @@ pi -e . # one run, does not edit settings.json
|
|
|
131
130
|
|
|
132
131
|
## Credits
|
|
133
132
|
|
|
134
|
-
- Based on [`minuque/pi-cc-extensions`](https://github.com/minuque/pi-cc-extensions) 1.0.
|
|
133
|
+
- Based on [`minuque/pi-cc-extensions`](https://github.com/minuque/pi-cc-extensions) 1.0.20 (MIT), upstream baseline [`1c3a426`](https://github.com/minuque/pi-cc-extensions/commit/1c3a42614709c1b14a836b669359771c71939200), with this repository's configuration migration and compatibility patches retained.
|
|
135
134
|
- Rich diffs are adapted from [`MasuRii/pi-tool-display`](https://github.com/MasuRii/pi-tool-display) (MIT). See [`extensions/renderer/tool/diff/ATTRIBUTION.md`](./extensions/renderer/tool/diff/ATTRIBUTION.md).
|
|
136
135
|
|
|
137
136
|
## License
|
|
@@ -92,8 +92,7 @@ pi install git:github.com/HerbertGao/pi-extensions
|
|
|
92
92
|
"footerCurrencyRate": null, // 1 单位费用换成多少显示币种;null 只换符号、不乘倍率
|
|
93
93
|
"footerNerdIcons": true, // git/缓存/token 用 Nerd Font 图标;false 为纯文本
|
|
94
94
|
"footerGitStatsMode": "working", // working(默认):未提交改动;branch:分支累计净改动
|
|
95
|
-
"footerContextLimit": "window", // 上下文芯片分母:window
|
|
96
|
-
// Pi 越过压缩点后才压缩,所以文字可能短暂超过 100%(如 104%/184k);条形图封顶 100%
|
|
95
|
+
"footerContextLimit": "window", // 上下文芯片分母:window(默认)|compaction 自动压缩点|both 压缩点+窗口;越过压缩点才压缩,可短暂超过 100%
|
|
97
96
|
"footerHiddenKeys": [], // 隐藏的芯片 key
|
|
98
97
|
"footerLine1Keys": ["model", "context", "cache", "rate", "cost", "tokens", "pi-usage"], // 每行芯片顺序;内置项与插件同一套排布
|
|
99
98
|
"footerLine2Keys": ["cwd", "git"], // cwd:目录和会话名;git:分支和改动。可换到任意行
|
|
@@ -119,7 +118,7 @@ pi -e . # 只跑一次,不改 settings.json
|
|
|
119
118
|
|
|
120
119
|
## 兼容性
|
|
121
120
|
|
|
122
|
-
- Node.js `>=22.19.0`;monorepo 的类型检查使用 Pi `1.5.0`,发布包的 Pi peer 版本保持 `*`。1.0.17
|
|
121
|
+
- Node.js `>=22.19.0`;monorepo 的类型检查使用 Pi `1.5.0`,发布包的 Pi peer 版本保持 `*`。1.0.20 的回合摘要完成时刻带上日期,外层工具一出现就封口,展开卡底色在内容没变时复用上一帧。1.0.19 在回合摘要末尾追加完成时刻,并把同一文件的 write 与后续 edit 计为一次。`/new` 或 `/reload` 重置输入框后不再写回旧编辑器。1.0.18 去掉展开卡里 Input 与 Output 之间的空 rail 行。分组展开卡里的内联图片与 Output 正文对齐,全屏时图片行保留卡片底色。1.0.17 仍会把注入式按键提示、`messageTypes` 和等待输入状态交给支持它们的 Pi 1.5.x。
|
|
123
122
|
|
|
124
123
|
## 推荐搭配
|
|
125
124
|
|
|
@@ -131,7 +130,7 @@ pi -e . # 只跑一次,不改 settings.json
|
|
|
131
130
|
|
|
132
131
|
## 致谢
|
|
133
132
|
|
|
134
|
-
- 基于 [`minuque/pi-cc-extensions`](https://github.com/minuque/pi-cc-extensions) 1.0.
|
|
133
|
+
- 基于 [`minuque/pi-cc-extensions`](https://github.com/minuque/pi-cc-extensions) 1.0.20(MIT),上游基线 [`1c3a426`](https://github.com/minuque/pi-cc-extensions/commit/1c3a42614709c1b14a836b669359771c71939200);保留本仓库的配置迁移与兼容性补丁。
|
|
135
134
|
- Rich diff 改编自 [`MasuRii/pi-tool-display`](https://github.com/MasuRii/pi-tool-display)(MIT);详见 [`extensions/renderer/tool/diff/ATTRIBUTION.md`](./extensions/renderer/tool/diff/ATTRIBUTION.md)。
|
|
136
135
|
|
|
137
136
|
## 许可证
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Agent 回合摘要:统计一次 agent 运行的工具使用并格式化成摘要文本。
|
|
3
3
|
*
|
|
4
|
-
* 分类:bash / read / edit /
|
|
5
|
-
* 计数:bash/powershell 按调用次数;read/edit
|
|
6
|
-
*
|
|
4
|
+
* 分类:bash / read / edit / other(精确工具名;MCP 风格名归 other)。write 并入 edit。
|
|
5
|
+
* 计数:bash/powershell 按调用次数;read/edit(含 write)按非空 path/file_path 去重;other 按调用次数。
|
|
6
|
+
* 失败单独累计;另记回合耗时与结束时刻。
|
|
7
7
|
*
|
|
8
8
|
* 呈现:`summarySegments` 分段(文字 + 语义色),渲染层自己拼行并上色。
|
|
9
9
|
* 不要经 Markdown 渲染:pi 的 Markdown 组件会剥掉输入里的终端序列,数字会失去语义色。
|
|
@@ -12,25 +12,25 @@
|
|
|
12
12
|
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
13
13
|
|
|
14
14
|
/** 工具分类。 */
|
|
15
|
-
export type AgentToolCategory = "bash" | "read" | "edit" | "
|
|
15
|
+
export type AgentToolCategory = "bash" | "read" | "edit" | "other";
|
|
16
16
|
|
|
17
17
|
/** 一次 agent 回合的统计快照。 */
|
|
18
18
|
export type AgentSummaryData = {
|
|
19
19
|
commands: number;
|
|
20
20
|
reads: number;
|
|
21
21
|
edits: number;
|
|
22
|
-
writes: number;
|
|
23
22
|
others: number;
|
|
24
23
|
failed: number;
|
|
25
24
|
durationMs: number;
|
|
25
|
+
/** 回合结束时刻(epoch ms)。存进 entry,会话恢复时才能显示原来的时刻而不是“现在几点”。 */
|
|
26
|
+
endedAt: number;
|
|
26
27
|
};
|
|
27
28
|
|
|
28
29
|
export function classifyTool(toolName: string): AgentToolCategory {
|
|
29
30
|
const base = toolName.split(".").pop() ?? toolName;
|
|
30
31
|
if (base === "bash" || base === "powershell") return "bash";
|
|
31
32
|
if (base === "read") return "read";
|
|
32
|
-
if (base === "edit") return "edit";
|
|
33
|
-
if (base === "write") return "write";
|
|
33
|
+
if (base === "edit" || base === "write") return "edit";
|
|
34
34
|
return "other";
|
|
35
35
|
}
|
|
36
36
|
|
|
@@ -49,7 +49,6 @@ export class AgentRunSummary {
|
|
|
49
49
|
commandCount = 0;
|
|
50
50
|
readFiles = new Set<string>();
|
|
51
51
|
editFiles = new Set<string>();
|
|
52
|
-
writeFiles = new Set<string>();
|
|
53
52
|
otherCount = 0;
|
|
54
53
|
failedCount = 0;
|
|
55
54
|
|
|
@@ -73,9 +72,6 @@ export class AgentRunSummary {
|
|
|
73
72
|
case "edit":
|
|
74
73
|
if (path) this.editFiles.add(path);
|
|
75
74
|
break;
|
|
76
|
-
case "write":
|
|
77
|
-
if (path) this.writeFiles.add(path);
|
|
78
|
-
break;
|
|
79
75
|
default:
|
|
80
76
|
this.otherCount++;
|
|
81
77
|
}
|
|
@@ -91,23 +87,34 @@ export class AgentRunSummary {
|
|
|
91
87
|
commands: this.commandCount,
|
|
92
88
|
reads: this.readFiles.size,
|
|
93
89
|
edits: this.editFiles.size,
|
|
94
|
-
writes: this.writeFiles.size,
|
|
95
90
|
others: this.otherCount,
|
|
96
91
|
failed: this.failedCount,
|
|
97
92
|
durationMs: now - this.startedAt,
|
|
93
|
+
endedAt: now,
|
|
98
94
|
};
|
|
99
95
|
}
|
|
100
96
|
}
|
|
101
97
|
|
|
102
98
|
const plural = (count: number) => (count === 1 ? "" : "s");
|
|
103
99
|
|
|
104
|
-
/**
|
|
100
|
+
/**
|
|
101
|
+
* 新快照把 write 记在 edits 里。1.0.18 及更早的 entry 另有 writes:
|
|
102
|
+
* 那是独立计数,文件集合已经丢了,只能把两个数相加。只写文件的旧回合
|
|
103
|
+
* edits 为 0,不加上去的话摘要段为空,整行连耗时一起消失。
|
|
104
|
+
*/
|
|
105
|
+
function editCount(data: AgentSummaryData): number {
|
|
106
|
+
const legacyWrites = (data as { writes?: unknown }).writes;
|
|
107
|
+
const writes = typeof legacyWrites === "number" && legacyWrites > 0 ? legacyWrites : 0;
|
|
108
|
+
return (data.edits || 0) + writes;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/** 输出顺序:bash → read → edit → other → failed。 */
|
|
105
112
|
function summaryParts(data: AgentSummaryData): string[] {
|
|
106
113
|
const parts: string[] = [];
|
|
114
|
+
const edits = editCount(data);
|
|
107
115
|
if (data.commands) parts.push(`ran ${data.commands} command${plural(data.commands)}`);
|
|
108
116
|
if (data.reads) parts.push(`read ${data.reads} file${plural(data.reads)}`);
|
|
109
|
-
if (
|
|
110
|
-
if (data.writes) parts.push(`wrote ${data.writes} file${plural(data.writes)}`);
|
|
117
|
+
if (edits) parts.push(`edited ${edits} file${plural(edits)}`);
|
|
111
118
|
if (data.others) parts.push(`${data.others} other tool${plural(data.others)}`);
|
|
112
119
|
if (data.failed) parts.push(`${data.failed} failed`);
|
|
113
120
|
return parts;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Agent 回合摘要展示:agent_end 时把本回合工具统计写入会话条目,
|
|
3
|
-
* 由 entry renderer 渲染成一行引用行 `│ Ran 1 command,
|
|
3
|
+
* 由 entry renderer 渲染成一行引用行 `│ Ran 1 command, edited 1 file · 15s · done 11/15 6:51 PM`。
|
|
4
4
|
*
|
|
5
|
-
* 统计复用 ./core.ts(bash|powershell/read/edit
|
|
5
|
+
* 统计复用 ./core.ts(bash|powershell/read/edit(含 write)/other)。
|
|
6
6
|
* appendEntry 不进 LLM 上下文,只显示在聊天区。
|
|
7
7
|
*
|
|
8
8
|
* 不走 Markdown:pi 的 Markdown 组件会剥掉输入里的终端序列,
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
import { wrapTextWithAnsi } from "@earendil-works/pi-tui";
|
|
13
13
|
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
14
|
-
import { formatDuration } from "../../utils/format.ts";
|
|
14
|
+
import { formatDuration, formatTimestamp } from "../../utils/format.ts";
|
|
15
15
|
import { bindAgentSummary, summarySegments, type SummarySegment } from "./core.ts";
|
|
16
16
|
import type { AgentSummaryData } from "./core.ts";
|
|
17
17
|
|
|
@@ -47,12 +47,18 @@ class AgentSummaryLine {
|
|
|
47
47
|
private readonly border: string;
|
|
48
48
|
private readonly theme: SummaryTheme;
|
|
49
49
|
|
|
50
|
-
constructor(
|
|
50
|
+
constructor(
|
|
51
|
+
segments: readonly SummarySegment[],
|
|
52
|
+
duration: string,
|
|
53
|
+
doneAt: string,
|
|
54
|
+
theme: SummaryTheme,
|
|
55
|
+
) {
|
|
51
56
|
this.theme = theme;
|
|
52
57
|
this.border = theme.fg("mdQuoteBorder", "│");
|
|
53
58
|
const quoteStyle = (text: string) => theme.italic(theme.fg("mdQuote", text));
|
|
54
59
|
const counts = segments.map((segment) => paintNumber(segment, theme)).join(", ");
|
|
55
|
-
const
|
|
60
|
+
const tail = [duration, doneAt].filter(Boolean).join(" · ");
|
|
61
|
+
const text = tail ? `${counts} · ${tail}` : counts;
|
|
56
62
|
const prefix = stylePrefix(quoteStyle);
|
|
57
63
|
this.body = quoteStyle(prefix ? text.replace(/\x1b\[0m/g, `\x1b[0m${prefix}`) : text);
|
|
58
64
|
}
|
|
@@ -67,10 +73,18 @@ class AgentSummaryLine {
|
|
|
67
73
|
|
|
68
74
|
export default function (pi: ExtensionAPI): void {
|
|
69
75
|
pi.registerEntryRenderer(AGENT_SUMMARY_ENTRY_TYPE, (entry, _options, theme) => {
|
|
70
|
-
const
|
|
76
|
+
const data = entry.data as Partial<AgentSummaryData>;
|
|
77
|
+
const segments = summarySegments(data as AgentSummaryData);
|
|
71
78
|
if (segments.length === 0) return undefined;
|
|
72
|
-
const duration = formatDuration(
|
|
73
|
-
|
|
79
|
+
const duration = formatDuration(data.durationMs ?? 0);
|
|
80
|
+
// 旧版本写的 entry 没有 endedAt:留空,这一行只显示耗时。
|
|
81
|
+
const endedAt = typeof data.endedAt === "number" ? formatTimestamp(data.endedAt) : "";
|
|
82
|
+
return new AgentSummaryLine(
|
|
83
|
+
segments,
|
|
84
|
+
duration,
|
|
85
|
+
endedAt ? `done ${endedAt}` : "",
|
|
86
|
+
theme as unknown as SummaryTheme,
|
|
87
|
+
);
|
|
74
88
|
});
|
|
75
89
|
|
|
76
90
|
bindAgentSummary(pi, (data) => {
|
|
@@ -42,21 +42,6 @@ function normalizePreviewText(text: string): string {
|
|
|
42
42
|
.replace(/[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]/g, "");
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
export type DialogBounds = { left: number; top: number; width: number };
|
|
46
|
-
|
|
47
|
-
/** 1-based terminal hitbox of the [esc] close button on the dialog title row (row 2 of the box). */
|
|
48
|
-
export function escCloseHitbox(bounds: DialogBounds): {
|
|
49
|
-
row: number;
|
|
50
|
-
startCol: number;
|
|
51
|
-
endCol: number;
|
|
52
|
-
} {
|
|
53
|
-
return {
|
|
54
|
-
row: bounds.top + 2,
|
|
55
|
-
startCol: bounds.left + bounds.width - 5,
|
|
56
|
-
endCol: bounds.left + bounds.width - 1,
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
|
|
60
45
|
const COPY_LABEL = "[copy]";
|
|
61
46
|
const ESC_LABEL = "[esc]";
|
|
62
47
|
|
|
@@ -67,20 +52,6 @@ export function setPreviewCopyImpl(impl: ((text: string) => Promise<void>) | nul
|
|
|
67
52
|
copyTextImpl = impl ?? ((text) => copyToClipboard(text));
|
|
68
53
|
}
|
|
69
54
|
|
|
70
|
-
/** 1-based terminal hitbox of the [copy] button, one space left of [esc] on the same title row. */
|
|
71
|
-
export function copyButtonHitbox(bounds: DialogBounds): {
|
|
72
|
-
row: number;
|
|
73
|
-
startCol: number;
|
|
74
|
-
endCol: number;
|
|
75
|
-
} {
|
|
76
|
-
const esc = escCloseHitbox(bounds);
|
|
77
|
-
return {
|
|
78
|
-
row: esc.row,
|
|
79
|
-
startCol: esc.startCol - visibleWidth(COPY_LABEL) - 1,
|
|
80
|
-
endCol: esc.startCol - 2,
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
|
|
84
55
|
let activeContextOverlays = 0;
|
|
85
56
|
|
|
86
57
|
/** fullscreen 输入包装用于把鼠标事件继续传给当前 context 主弹框或文本预览 overlay。 */
|
|
@@ -83,7 +83,7 @@ function noteLandedRelease(ctx: ExtensionContext): void {
|
|
|
83
83
|
* 那种结构里无法只拆内层,直接还回占据前的工厂;外层扩展会在下次终端输入时
|
|
84
84
|
* 自己重新包装,前缀不会因此复活。
|
|
85
85
|
*
|
|
86
|
-
*
|
|
86
|
+
* 例外:插槽已被 pi 重置时(/new、/reload 走 resetExtensionUI,它把插槽置成 undefined),
|
|
87
87
|
* 我们已经不在槽里,再写一次会把 pi 刚重置的结果又覆盖掉;此时只清状态。
|
|
88
88
|
* 用户主动改设置时传 force:pi 1.5 会把对话框开着时的替换排队到关闭后落地,
|
|
89
89
|
* 期间 getEditorComponent() 仍是旧工厂,无法据此判断要不要还回去。
|
|
@@ -94,7 +94,10 @@ function releasePromptEditor(ctx: ExtensionContext, force = false): void {
|
|
|
94
94
|
noteLandedRelease(ctx);
|
|
95
95
|
if (!active) return;
|
|
96
96
|
const previous = previousEditorFactory;
|
|
97
|
-
|
|
97
|
+
const current = ctx.ui.getEditorComponent?.();
|
|
98
|
+
// /new and /reload reset the slot to undefined without setEditorComponent.
|
|
99
|
+
// Writing the old factory back would undo that reset.
|
|
100
|
+
if (!force && (current === undefined || current === previous)) {
|
|
98
101
|
active = false;
|
|
99
102
|
previousEditorFactory = undefined;
|
|
100
103
|
releasePending = false;
|