@herbertgao/pi-extensions 2026.10.11 → 2026.10.13
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/README.md +8 -8
- package/THIRD_PARTY_NOTICES.md +1 -1
- package/node_modules/@herbertgao/pi-agency/README.md +5 -3
- package/node_modules/@herbertgao/pi-agency/package.json +1 -1
- package/node_modules/@herbertgao/pi-agency/src/index.ts +51 -7
- package/node_modules/@herbertgao/pi-cc-extensions/README.en.md +6 -8
- package/node_modules/@herbertgao/pi-cc-extensions/README.md +6 -8
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/config/panel.ts +11 -2
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/shell/footer.ts +28 -6
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/shell/prompt-editor.ts +33 -12
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/compact-mode.ts +16 -3
- package/node_modules/@herbertgao/pi-cc-extensions/package.json +4 -4
- package/node_modules/@herbertgao/pi-subagents/CHANGELOG.md +6 -0
- package/node_modules/@herbertgao/pi-subagents/package.json +1 -1
- package/node_modules/@herbertgao/pi-subagents/src/agent-color.ts +11 -2
- package/node_modules/@herbertgao/pi-subagents/src/index.ts +10 -5
- package/node_modules/@herbertgao/pi-subagents/src/ui/agent-widget.ts +3 -2
- package/node_modules/@herbertgao/pi-subagents/src/ui/conversation-viewer.ts +1 -1
- package/node_modules/@herbertgao/pi-subagents/src/ui/fleet-list.ts +1 -0
- package/node_modules/@herbertgao/sol-pi/README.md +1 -1
- package/node_modules/@herbertgao/sol-pi/agents-install.md +2 -2
- package/node_modules/@narumitw/pi-btw/README.md +14 -5
- package/node_modules/@narumitw/pi-btw/dist/index.ts +1067 -560
- package/node_modules/@narumitw/pi-btw/dist/index.ts.map +4 -4
- package/node_modules/@narumitw/pi-btw/docs/core-alignment.md +277 -0
- package/node_modules/@narumitw/pi-btw/docs/native-appearance.md +857 -0
- package/node_modules/@narumitw/pi-btw/docs/workflows.md +34 -13
- package/node_modules/@narumitw/pi-btw/package.json +4 -4
- package/node_modules/@narumitw/pi-btw/src/btw.ts +152 -108
- package/node_modules/@narumitw/pi-btw/src/conversation-chrome.ts +93 -0
- package/node_modules/@narumitw/pi-btw/src/fullscreen-renderer.ts +329 -0
- package/node_modules/@narumitw/pi-btw/src/fullscreen-ui.ts +109 -315
- package/node_modules/@narumitw/pi-btw/src/keybindings.ts +100 -22
- package/node_modules/@narumitw/pi-btw/src/menu.ts +42 -27
- package/node_modules/@narumitw/pi-btw/src/session-lifetime.ts +66 -0
- package/node_modules/@narumitw/pi-btw/src/transcript-pager.ts +366 -164
- package/node_modules/@narumitw/pi-btw/src/workspace-layout.ts +96 -36
- package/node_modules/pi-lens/CHANGELOG.md +281 -0
- package/node_modules/pi-lens/README.md +13 -1
- package/node_modules/pi-lens/dist/{chunk-SS36ZX4J.js → chunk-24AKHFGP.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-JSQFTSC6.js → chunk-2FN63LPV.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-5UCAH366.js → chunk-2KXTHF3M.js} +20 -20
- package/node_modules/pi-lens/dist/{chunk-EU63SDCG.js → chunk-3DA2JDOL.js} +367 -281
- package/node_modules/pi-lens/dist/{chunk-RWWYJ623.js → chunk-3KAZU3VR.js} +1 -1
- package/node_modules/pi-lens/dist/chunk-3PTHXJXR.js +28 -0
- package/node_modules/pi-lens/dist/chunk-3QED2P4V.js +31 -0
- package/node_modules/pi-lens/dist/{chunk-N2H3ZPZY.js → chunk-3RKP3FMS.js} +1 -0
- package/node_modules/pi-lens/dist/{chunk-XVF2VVXP.js → chunk-5HSRT26B.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-MXGY6KPT.js → chunk-5IUSNGOC.js} +15 -15
- package/node_modules/pi-lens/dist/{chunk-EJIUXPBX.js → chunk-5OFV52AM.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-AW7R2GWG.js → chunk-5VSF4UUQ.js} +12 -7
- package/node_modules/pi-lens/dist/{chunk-6STA6Z7I.js → chunk-5WRPDP2A.js} +18 -18
- package/node_modules/pi-lens/dist/{chunk-YIUAVF7E.js → chunk-6DLWKFEX.js} +35 -34
- package/node_modules/pi-lens/dist/{chunk-WOA4LN2R.js → chunk-7D6L4MTX.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-GAEGEPOC.js → chunk-7HXE67BN.js} +2 -2
- package/node_modules/pi-lens/dist/chunk-AGSS7277.js +84 -0
- package/node_modules/pi-lens/dist/{chunk-R3PCY3YS.js → chunk-AMERCH6V.js} +13 -13
- package/node_modules/pi-lens/dist/{chunk-WU567RSC.js → chunk-ATKJFDQN.js} +14 -10
- package/node_modules/pi-lens/dist/{chunk-VSSBEUFT.js → chunk-AWSCPCN2.js} +16 -16
- package/node_modules/pi-lens/dist/{chunk-VCHXCQFG.js → chunk-BWD5EPKO.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-H6MF6EVN.js → chunk-CT4MN5IU.js} +1200 -230
- package/node_modules/pi-lens/dist/{chunk-FCSOVF55.js → chunk-CUHSHSB6.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-CHOW74WE.js → chunk-CYRKQRPM.js} +7 -10
- package/node_modules/pi-lens/dist/{chunk-Q7DUK4LX.js → chunk-DEL2U6CM.js} +5 -5
- package/node_modules/pi-lens/dist/{chunk-6C7JWPCP.js → chunk-DGUKIYSI.js} +26 -23
- package/node_modules/pi-lens/dist/{chunk-PHDMFAKM.js → chunk-DUO2TU77.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-MRXKYPCS.js → chunk-EBC36LNN.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-CSHFH5IN.js → chunk-ED36RF6Y.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-76MWC2K6.js → chunk-EUXZEFTV.js} +90 -97
- package/node_modules/pi-lens/dist/{chunk-QOZXJ4NA.js → chunk-FM4RDMKT.js} +11 -8
- package/node_modules/pi-lens/dist/{chunk-ACXEQZOU.js → chunk-GAQ7OQG6.js} +31 -28
- package/node_modules/pi-lens/dist/{chunk-XAGLWMJ4.js → chunk-GL5LUMZE.js} +23 -23
- package/node_modules/pi-lens/dist/{chunk-BKE7E7TC.js → chunk-GMX5OS7B.js} +9 -9
- package/node_modules/pi-lens/dist/{chunk-ZHFZWTZV.js → chunk-GSLNCYGG.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-3W7IEVVL.js → chunk-GSM5UU7A.js} +26 -34
- package/node_modules/pi-lens/dist/{chunk-724UL2TJ.js → chunk-GXFV6MYU.js} +3 -3
- package/node_modules/pi-lens/dist/chunk-HAD7QRQI.js +30 -0
- package/node_modules/pi-lens/dist/{chunk-QOBUHWHX.js → chunk-HRNHZA3N.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-VWCXW2E7.js → chunk-HWCCCQNX.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-7DYBLXYA.js → chunk-HYGZEMX6.js} +3 -3
- package/node_modules/pi-lens/dist/chunk-IJYGIDF4.js +186 -0
- package/node_modules/pi-lens/dist/{chunk-4W4VLAPJ.js → chunk-IQWN5JCP.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-SQ4TVJBR.js → chunk-IUE7SSKV.js} +7 -7
- package/node_modules/pi-lens/dist/{chunk-IBGIOBEE.js → chunk-IWDLU6K3.js} +68 -5
- package/node_modules/pi-lens/dist/{chunk-XCJN5IJU.js → chunk-IYNJ6YPZ.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-JAU72XNY.js → chunk-J64T55EI.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-2BBLFX75.js → chunk-J6MPGQTS.js} +5 -5
- package/node_modules/pi-lens/dist/chunk-JORED7EX.js +44 -0
- package/node_modules/pi-lens/dist/{chunk-6SDEP3AJ.js → chunk-JUKMK5Y4.js} +8 -8
- package/node_modules/pi-lens/dist/{chunk-FMSO6RDZ.js → chunk-JW3YWBVB.js} +15 -15
- package/node_modules/pi-lens/dist/{chunk-L3BLXZG7.js → chunk-KAPJINKN.js} +30 -69
- package/node_modules/pi-lens/dist/{chunk-2B73ZPOK.js → chunk-KN35K52N.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-C34ZXZ7O.js → chunk-KUA4OJ5Y.js} +24 -11
- package/node_modules/pi-lens/dist/chunk-KYUB6QDC.js +72 -0
- package/node_modules/pi-lens/dist/{chunk-67WMNWEE.js → chunk-LLJNQKQW.js} +12 -10
- package/node_modules/pi-lens/dist/chunk-LZSEQW6A.js +57 -0
- package/node_modules/pi-lens/dist/{chunk-ZANLILYD.js → chunk-M2IFVFWU.js} +2 -2
- package/node_modules/pi-lens/dist/chunk-M2UD3LPU.js +88 -0
- package/node_modules/pi-lens/dist/{chunk-XIJZVPD5.js → chunk-MBKQHGA7.js} +15 -15
- package/node_modules/pi-lens/dist/{chunk-P7266HLM.js → chunk-MPNJLASA.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-6GFRNVYR.js → chunk-MZGQNL3Y.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-ZWFS3OEF.js → chunk-N5FLEO7W.js} +33 -32
- package/node_modules/pi-lens/dist/{chunk-3JNKMP3B.js → chunk-O4NWQT6I.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-T6CPIZNT.js → chunk-OHKJ7PQF.js} +33 -32
- package/node_modules/pi-lens/dist/{chunk-VRZP76YM.js → chunk-P63GXC37.js} +4 -1
- package/node_modules/pi-lens/dist/{chunk-XTMJ7XDT.js → chunk-POMLXPMY.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-QQNQ7SJW.js → chunk-QBFBRV2B.js} +10 -4
- package/node_modules/pi-lens/dist/{chunk-CMMHNUZ2.js → chunk-R3T7CLQ2.js} +60 -38
- package/node_modules/pi-lens/dist/{chunk-23WOO7TX.js → chunk-R7YOCSNV.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-2CD5RS6M.js → chunk-RKBXZN3A.js} +23 -2
- package/node_modules/pi-lens/dist/{chunk-OCAGUNBC.js → chunk-RKKOYPRA.js} +12 -12
- package/node_modules/pi-lens/dist/{chunk-52FUZI6K.js → chunk-RMLC67LF.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-XMSXXAHW.js → chunk-ROYSX2S5.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-M6HSLBWY.js → chunk-RVK72CZX.js} +6507 -7514
- package/node_modules/pi-lens/dist/{chunk-FLKWCIZH.js → chunk-S2HEXIWI.js} +5 -5
- package/node_modules/pi-lens/dist/{chunk-UZ3TUTRV.js → chunk-S67KYG37.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-VCO24T4L.js → chunk-SD4I7ZO4.js} +14 -14
- package/node_modules/pi-lens/dist/{chunk-Z527N6YQ.js → chunk-SKAMFC7A.js} +12 -12
- package/node_modules/pi-lens/dist/{chunk-MQLUAEOC.js → chunk-SRYEJNES.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-BRGDSBJE.js → chunk-SYE6T2EB.js} +12 -12
- package/node_modules/pi-lens/dist/{chunk-GXW6K4YJ.js → chunk-T57LYLZT.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-ZXYDQ3TZ.js → chunk-T7FEBKXN.js} +48 -15
- package/node_modules/pi-lens/dist/{chunk-3EFKIGZN.js → chunk-TIQ2PKDW.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-QILIYSJF.js → chunk-TLX72JTG.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-TYM6OUIT.js → chunk-TOY6QKOH.js} +12 -12
- package/node_modules/pi-lens/dist/{chunk-IZSHAIJ7.js → chunk-TRETHTQO.js} +12 -12
- package/node_modules/pi-lens/dist/{chunk-3VPVG5SU.js → chunk-U44DJXQP.js} +10 -6
- package/node_modules/pi-lens/dist/{chunk-PNQDPDRC.js → chunk-UA7ZXYDR.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-OXXKQCSV.js → chunk-UBOQLVT2.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-QGQ5CCCG.js → chunk-UMS2MFPZ.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-QHJ6DQ2R.js → chunk-US7ECLD7.js} +55 -13
- package/node_modules/pi-lens/dist/{chunk-AB3YYG6N.js → chunk-UZ2XCLYS.js} +8 -8
- package/node_modules/pi-lens/dist/chunk-V35JG4JB.js +2667 -0
- package/node_modules/pi-lens/dist/{chunk-N3X6Q4YT.js → chunk-VOOAPROD.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-SAEFPSB6.js → chunk-W66O5E25.js} +21 -11
- package/node_modules/pi-lens/dist/{chunk-KBG47GHP.js → chunk-WMYE35PX.js} +15 -11
- package/node_modules/pi-lens/dist/{chunk-5NGR67U5.js → chunk-XBJVAEEO.js} +32 -5
- package/node_modules/pi-lens/dist/{chunk-YYOIQFRS.js → chunk-XHJBS436.js} +122 -44
- package/node_modules/pi-lens/dist/{chunk-GBPP5P7X.js → chunk-XTBDCR27.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-4UNXBNE2.js → chunk-XTFDJI3T.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-UXGETRP4.js → chunk-XYURS6EN.js} +13 -12
- package/node_modules/pi-lens/dist/{chunk-RPLINGVB.js → chunk-Y6GZHWSJ.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-2VUQMUMT.js → chunk-YCWYO6TQ.js} +41 -38
- package/node_modules/pi-lens/dist/{chunk-77M37OKR.js → chunk-YH5MVY2U.js} +7 -7
- package/node_modules/pi-lens/dist/{chunk-AOHZU2BM.js → chunk-YNE3RP52.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-YSZNHOBY.js → chunk-ZHH37KZL.js} +12 -12
- package/node_modules/pi-lens/dist/{chunk-ZGDGW2V3.js → chunk-ZIVJBOO3.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-RXCOMYPY.js → chunk-ZVUL7QYY.js} +29 -28
- package/node_modules/pi-lens/dist/index.js +11052 -5852
- package/node_modules/pi-lens/dist/mcp/analyze-cli.js +10 -9
- package/node_modules/pi-lens/dist/mcp/cli.js +41 -38
- package/node_modules/pi-lens/dist/mcp/server.js +1120 -474
- package/node_modules/pi-lens/dist/mcp/worker.js +61 -58
- package/node_modules/pi-lens/dist/probes/installer.js +19 -19
- package/node_modules/pi-lens/dist/workers/project-snapshot-persist-worker.js +28 -9
- package/node_modules/pi-lens/dist/workers/review-graph-persist-worker.js +1 -1
- package/node_modules/pi-lens/docs/configuration.md +11 -0
- package/node_modules/pi-lens/docs/engineering-principles.md +32 -0
- package/node_modules/pi-lens/docs/lsp-capability-matrix.md +1 -1
- package/node_modules/pi-lens/docs/lsp-idle-eviction.md +15 -26
- package/node_modules/pi-lens/docs/pi-lens-fixer.md +117 -13
- package/node_modules/pi-lens/docs/pi-lens-merge-policy.md +97 -7
- package/node_modules/pi-lens/docs/pi-lens-monitor.md +8 -2
- package/node_modules/pi-lens/docs/pi-lens-retro.md +4 -1
- package/node_modules/pi-lens/docs/pi-lens-reviewer.md +112 -4
- package/node_modules/pi-lens/docs/pi-lens-subagent.md +22 -14
- package/node_modules/pi-lens/docs/release-qa-baseline.md +3 -1
- package/node_modules/pi-lens/docs/servercapabilities.md +9 -19
- package/node_modules/pi-lens/package.json +7 -5
- package/node_modules/pi-lens/scripts/download-grammars.js +40 -7
- package/node_modules/pi-lens/scripts/lib/latency-log-phases.mjs +95 -0
- package/node_modules/pi-lens/scripts/rpc-load-check.mjs +570 -81
- package/node_modules/pi-provider-qoder/dist/index.js +545 -221
- package/node_modules/pi-provider-qoder/package.json +1 -1
- package/node_modules/pi-web-access/CHANGELOG.md +39 -0
- package/node_modules/pi-web-access/README.md +83 -12
- package/node_modules/pi-web-access/anysearch.ts +4 -3
- package/node_modules/pi-web-access/bocha.ts +4 -3
- package/node_modules/pi-web-access/brightdata-unlocker.ts +3 -2
- package/node_modules/pi-web-access/brightdata.ts +4 -3
- package/node_modules/pi-web-access/ceramic.ts +3 -2
- package/node_modules/pi-web-access/curator-page.ts +3 -1
- package/node_modules/pi-web-access/curator-server.ts +1 -0
- package/node_modules/pi-web-access/deepseek.ts +179 -6
- package/node_modules/pi-web-access/dist/index.js +1118 -688
- package/node_modules/pi-web-access/dist/mcp-cli.js +1081 -667
- package/node_modules/pi-web-access/extract.ts +58 -6
- package/node_modules/pi-web-access/gemini-search.ts +29 -6
- package/node_modules/pi-web-access/index.ts +20 -3
- package/node_modules/pi-web-access/jina-search.ts +6 -4
- package/node_modules/pi-web-access/kagi.ts +5 -4
- package/node_modules/pi-web-access/keenable.ts +3 -2
- package/node_modules/pi-web-access/linkup.ts +170 -0
- package/node_modules/pi-web-access/mistral-search.ts +4 -3
- package/node_modules/pi-web-access/ollama.ts +5 -4
- package/node_modules/pi-web-access/package.json +1 -1
- package/node_modules/pi-web-access/parallel.ts +7 -7
- package/node_modules/pi-web-access/perplexity.ts +5 -3
- package/node_modules/pi-web-access/querit.ts +4 -3
- package/node_modules/pi-web-access/search1api.ts +4 -3
- package/node_modules/pi-web-access/searchinfinity.ts +4 -3
- package/node_modules/pi-web-access/serpapi.ts +7 -5
- package/node_modules/pi-web-access/serpbase.ts +5 -4
- package/node_modules/pi-web-access/serpdive.ts +4 -3
- package/node_modules/pi-web-access/serper.ts +6 -4
- package/node_modules/pi-web-access/serply.ts +3 -2
- package/node_modules/pi-web-access/utils.ts +24 -1
- package/node_modules/pi-web-access/valyu.ts +4 -3
- package/node_modules/pi-web-access/web-tool-core.ts +5 -0
- package/node_modules/pi-web-access/xai-search.ts +49 -7
- package/node_modules/pi-web-access/xcrawl.ts +4 -3
- package/node_modules/pi-web-access/you.ts +3 -2
- package/package.json +10 -10
- package/node_modules/pi-lens/dist/chunk-3YN6V5TV.js +0 -85
- package/node_modules/pi-lens/dist/chunk-466Z26MG.js +0 -30
- package/node_modules/pi-lens/dist/chunk-EC47DWFA.js +0 -56
- package/node_modules/pi-lens/dist/chunk-KDERNTCQ.js +0 -28
- package/node_modules/pi-lens/dist/chunk-KSX3TXSZ.js +0 -69
- package/node_modules/pi-lens/dist/chunk-LOP6GRPH.js +0 -31
- package/node_modules/pi-lens/dist/chunk-UOPVJQ4N.js +0 -103
- /package/node_modules/pi-lens/dist/{chunk-FC4RP4I2.js → chunk-6HWVI6MI.js} +0 -0
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Aggregate installer for HerbertGao-maintained Pi extensions and pinned upstream
|
|
|
8
8
|
pi install npm:@herbertgao/pi-extensions
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
Requires Node.js
|
|
11
|
+
Requires Node.js 22.19.0 or newer and Pi 1.2.0 or newer.
|
|
12
12
|
|
|
13
13
|
## Native MCP
|
|
14
14
|
|
|
@@ -21,10 +21,10 @@ When migrating from `pi-mcp-adapter`, remove any standalone adapter install as w
|
|
|
21
21
|
The package bundles 5 active `@herbertgao/*` child packages—`pi-agency`, `pi-bark`, `pi-cc-extensions`, `pi-subagents`, and `sol-pi`—plus the following upstream packages under their original names:
|
|
22
22
|
|
|
23
23
|
- `pi-antigravity@0.11.0`
|
|
24
|
-
- `pi-provider-qoder@0.6.
|
|
24
|
+
- `pi-provider-qoder@0.6.2`
|
|
25
25
|
- `@dietrichgebert/ponytail@5.3.2`
|
|
26
26
|
- `@juicesharp/rpiv-ask-user-question@2.13.9`
|
|
27
|
-
- `@narumitw/pi-btw@0.
|
|
27
|
+
- `@narumitw/pi-btw@0.62.0`
|
|
28
28
|
- `@narumitw/pi-caffeinate@0.49.12`
|
|
29
29
|
- `@pi-plugins/fast-mode@0.1.14`
|
|
30
30
|
- `@tifan/pi-copy-response@0.2.7`
|
|
@@ -36,14 +36,14 @@ The package bundles 5 active `@herbertgao/*` child packages—`pi-agency`, `pi-b
|
|
|
36
36
|
- `@tifan/pi-rename@0.6.0`
|
|
37
37
|
- `pi-typesafe@0.10.0`
|
|
38
38
|
- `pi-next-cue@1.0.7`
|
|
39
|
-
- `pi-lens@4.4.
|
|
40
|
-
- `pi-web-access@0.
|
|
39
|
+
- `pi-lens@4.4.4`
|
|
40
|
+
- `pi-web-access@0.44.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.9`; 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.11.0` enriches search citations by visiting source sites by default (`ANTIGRAVITY_NO_SOURCE_ENRICH=1` disables enrichment). It refreshes a curated model catalog and upgrades the existing model cache; previously listed model IDs may disappear. Ask `2.13.9` lets other extensions in the same process answer or cancel TUI questionnaires through its event channel, without sender authentication. Web Access `0.
|
|
46
|
+
Antigravity `0.11.0` enriches search citations by visiting source sites by default (`ANTIGRAVITY_NO_SOURCE_ENRICH=1` disables enrichment). It refreshes a curated model catalog and upgrades the existing model cache; previously listed model IDs may disappear. Ask `2.13.9` lets other extensions in the same process answer or cancel TUI questionnaires through its event channel, without sender authentication. Web Access `0.44.0` keeps direct tool exposure and `toolActivation: auto` by default. Linkup, DeepSeek search and fetch, provider gateways, `toolActivation: "none"`, deferred exposure, and GCE ADC support require explicit configuration.
|
|
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
|
|
|
@@ -59,7 +59,7 @@ Ponytail `5.3.2` updates the Pi skill guidance, including how to turn it off. It
|
|
|
59
59
|
|
|
60
60
|
`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.9.1` provides `/typesafe` and `typesafe_evaluate` for explicit structured decisions; `/typesafe enable` or `PI_TYPESAFE_ENABLED=1` is still required for agent tool calls. The Pi extension continues to use the TypeSafe API, not Liquid. The package's programmatic client additionally supports Liquid with its own API key and free or paid models; existing usage accounting now merges writes under a short-lived file lock (up to 200ms synchronous wait under contention).
|
|
61
61
|
|
|
62
|
-
`@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.4.
|
|
62
|
+
`@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.4.4` 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. It promotes `@ast-grep/cli` to `0.50.0`. `pi-web-access@0.44.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. 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, and DeepSeek fetch are explicit-only, excluded from automatic and `all` selection. 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.11.0` reads Pi 0.86+ transcript system messages, so Antigravity requests carry Pi's system prompt and tools; it also registers `google_search` and `generate_image` tools that use the signed-in Antigravity account. `pi-provider-qoder@0.6.2` registers the `qoder` and `qoder-cn` model providers. 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. Preferred Thinking 1.0.2 preserves an explicit subagent `--thinking` choice. Deprecated `@tifan/pi-titlebar-spinner` is no longer bundled; Rename remains the single owner of Herdr tab naming.
|
|
63
63
|
|
|
64
64
|
`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.
|
|
65
65
|
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -163,4 +163,4 @@ THE SOFTWARE.
|
|
|
163
163
|
|
|
164
164
|
## `pi-provider-qoder`
|
|
165
165
|
|
|
166
|
-
The aggregate bundles [`pi-provider-qoder`](https://github.com/simonsmh/pi-provider-qoder) version 0.6.
|
|
166
|
+
The aggregate bundles [`pi-provider-qoder`](https://github.com/simonsmh/pi-provider-qoder) version 0.6.5 under its original package name. npm metadata and the repository README declare the MIT license. The published tarball does not include a LICENSE file. The published package corresponds to git commit [`fa5067d1bf0c4accc2fc88ad672e23390a2d6f16`](https://github.com/simonsmh/pi-provider-qoder/commit/fa5067d1bf0c4accc2fc88ad672e23390a2d6f16).
|
|
@@ -11,7 +11,7 @@ The catalog location is fixed at `~/.agency-agents`. `agency_dispatch` also need
|
|
|
11
11
|
|
|
12
12
|
## Tools
|
|
13
13
|
|
|
14
|
-
`agency_search({ queries, limit?, per_division? })` returns cards (`path`, `name`, `description`, `score`) for each query. It ranks every `<division>/**/*.md` file with `name` and `description` frontmatter by BM25 over name, path, and description. It returns at most `limit` cards per query (default 6) and `per_division` cards per top-level division (default 2). The repository's `integrations`, `strategy`, `examples`, and `scripts` directories are skipped.
|
|
14
|
+
`agency_search({ queries, limit?, per_division? })` returns cards (`path`, `name`, `description`, `score`) for each query. The text form prints each card's absolute path; `catalog` plus `path` compose the same path for programmatic callers. It ranks every `<division>/**/*.md` file with `name` and `description` frontmatter by BM25 over name, path, and description. It returns at most `limit` cards per query (default 6) and `per_division` cards per top-level division (default 2). The repository's `integrations`, `strategy`, `examples`, and `scripts` directories are skipped.
|
|
15
15
|
|
|
16
16
|
`agency_dispatch({ runs, shared?, shared_file?, subagent_type?, isolated?, model?, thinking?, max_turns?, record_dir? })` runs every `runs[i].prompt` as a foreground `Agent` call, all in parallel, and returns when they finish. Foreground calls do not queue completion notifications for the parent session.
|
|
17
17
|
|
|
@@ -19,8 +19,10 @@ The catalog location is fixed at `~/.agency-agents`. `agency_dispatch` also need
|
|
|
19
19
|
- `{{shared}}` is replaced by `shared` or the text of `shared_file`.
|
|
20
20
|
- Each placeholder must appear exactly once when its value is given and must not appear otherwise. Substitution happens in one pass, so `$&` and placeholder-like text in inserted content stay literal.
|
|
21
21
|
- Defaults are `subagent_type: "general-purpose"` and `isolated: true`, which gives subagents built-in tools only.
|
|
22
|
-
- Each result includes `promptSha256` for the prompt actually sent, plus the run's status, agent id, resolved model, and output.
|
|
23
|
-
- `
|
|
22
|
+
- Each result includes `promptSha256` for the prompt actually sent, plus the run's status, agent id, resolved model, duration, tool uses, tokens, and output. The text form repeats those statistics on the heading of a completed run.
|
|
23
|
+
- All runs come back inside one tool result, so their `Agent` calls stay nested and get no separate transcript rows. Seat, review, and any other lane that needs its own row, its own model, or its own turn cap belongs in one `Agent` call per lane, not here.
|
|
24
|
+
- `max_turns` is omitted unless you pass it, so a run decides when it is done; set it only to bound a runaway.
|
|
25
|
+
- `record_dir` must be absolute and used by one dispatch at a time. It receives `<id>.prompt.txt` and `<id>.return.txt` with mode `0600`. The call fails before any dispatch if one of those files already exists.
|
|
24
26
|
|
|
25
27
|
Both tools return `structuredContent`, so codemode scripts receive objects instead of text.
|
|
26
28
|
|
|
@@ -167,7 +167,26 @@ export function fillPrompt(
|
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
const sha256 = (text: string) => createHash("sha256").update(text).digest("hex")
|
|
170
|
+
|
|
171
|
+
/** Same wording pi-subagents prints, so one run reads the same on every surface. */
|
|
172
|
+
function statsLine(run: {
|
|
173
|
+
durationMs: number | null
|
|
174
|
+
toolUses: number | null
|
|
175
|
+
tokens: string | null
|
|
176
|
+
}): string {
|
|
177
|
+
const parts = [
|
|
178
|
+
run.durationMs === null
|
|
179
|
+
? undefined
|
|
180
|
+
: `${(run.durationMs / 1000).toFixed(1)}s`,
|
|
181
|
+
run.toolUses === null
|
|
182
|
+
? undefined
|
|
183
|
+
: `${run.toolUses} tool use${run.toolUses === 1 ? "" : "s"}`,
|
|
184
|
+
run.tokens,
|
|
185
|
+
].filter(Boolean)
|
|
186
|
+
return parts.length ? ` (${parts.join(", ")})` : ""
|
|
187
|
+
}
|
|
170
188
|
const NullableString = Type.Union([Type.String(), Type.Null()])
|
|
189
|
+
const NullableNumber = Type.Union([Type.Number(), Type.Null()])
|
|
171
190
|
|
|
172
191
|
/** Some models fill every optional parameter with "" or 0; every such value here means omitted. */
|
|
173
192
|
export function dropPlaceholders(args: unknown): any {
|
|
@@ -186,7 +205,7 @@ export function agencyTools(root = CATALOG_ROOT) {
|
|
|
186
205
|
name: "agency_search",
|
|
187
206
|
label: "Agency Search",
|
|
188
207
|
description:
|
|
189
|
-
"Search the local Agency Agents catalog (~/.agency-agents) without listing or reading it into context. Each query (one per review axis or touchpoint) returns up to `limit` cards (catalog path, name, description) ranked by BM25 over name, path and description, with at most `per_division` cards per top-level division. Pick personas from the cards
|
|
208
|
+
"Search the local Agency Agents catalog (~/.agency-agents) without listing or reading it into context. Each query (one per review axis or touchpoint) returns up to `limit` cards (catalog path, name, description) ranked by BM25 over name, path and description, with at most `per_division` cards per top-level division. Pick personas from the cards and let the seat read the file.",
|
|
190
209
|
promptSnippet: "Shortlist Agency Agents personas by query",
|
|
191
210
|
prepareArguments: dropPlaceholders,
|
|
192
211
|
parameters: Type.Object({
|
|
@@ -225,6 +244,7 @@ export function agencyTools(root = CATALOG_ROOT) {
|
|
|
225
244
|
),
|
|
226
245
|
}),
|
|
227
246
|
async execute(_toolCallId, params) {
|
|
247
|
+
const base = realRoot(root)
|
|
228
248
|
const cards = loadCatalog(root)
|
|
229
249
|
const results = params.queries.map((query) => ({
|
|
230
250
|
query,
|
|
@@ -236,7 +256,8 @@ export function agencyTools(root = CATALOG_ROOT) {
|
|
|
236
256
|
`## ${result.query}\n` +
|
|
237
257
|
(result.cards
|
|
238
258
|
.map(
|
|
239
|
-
(card) =>
|
|
259
|
+
(card) =>
|
|
260
|
+
`- ${join(base, card.path)} — ${card.name}: ${card.description}`,
|
|
240
261
|
)
|
|
241
262
|
.join("\n") || "(no match)"),
|
|
242
263
|
)
|
|
@@ -258,12 +279,12 @@ export function agencyTools(root = CATALOG_ROOT) {
|
|
|
258
279
|
name: "agency_dispatch",
|
|
259
280
|
label: "Agency Dispatch",
|
|
260
281
|
description:
|
|
261
|
-
"Run subagents in parallel through pi-subagents' Agent tool and return all results together. Runs are foreground, so no completion notifications follow. Each run's prompt is sent as written after `{{persona}}` is replaced by the persona file's body (frontmatter removed) and `{{shared}}` by `shared` or the text of `shared_file`, so persona text never passes through your context. Personas outside the catalog or containing <persona> delimiters are rejected.
|
|
282
|
+
"Run subagents in parallel through pi-subagents' Agent tool and return all results together. Runs are foreground, so no completion notifications follow. Each run's prompt is sent as written after `{{persona}}` is replaced by the persona file's body (frontmatter removed) and `{{shared}}` by `shared` or the text of `shared_file`, so persona text never passes through your context. Personas outside the catalog or containing <persona> delimiters are rejected. Every run shares one tool result, so its Agent calls stay nested and get no separate transcript rows: seat, review, and any other lane that needs its own row, model, or turn cap belongs in one Agent call per lane, not here. Each result carries status, the SHA-256 of the prompt actually sent, duration, tool uses, tokens, and output; `record_dir` also saves <id>.prompt.txt and <id>.return.txt and never overwrites. `max_turns` is omitted unless you set it, so a run decides when it is done. Defaults: subagent_type general-purpose, isolated true (built-in tools only).",
|
|
262
283
|
promptSnippet:
|
|
263
284
|
"Dispatch catalog personas to parallel subagents without reading them",
|
|
264
285
|
prepareArguments: dropPlaceholders,
|
|
265
286
|
promptGuidelines: [
|
|
266
|
-
"For Agency Agents personas, use agency_search
|
|
287
|
+
"For Agency Agents personas, use agency_search to pick the seat, then one Agent call per seat carrying that persona's path; reach for agency_dispatch only for bulk work that does not need a run per row.",
|
|
267
288
|
],
|
|
268
289
|
parameters: Type.Object({
|
|
269
290
|
runs: Type.Array(
|
|
@@ -300,7 +321,13 @@ export function agencyTools(root = CATALOG_ROOT) {
|
|
|
300
321
|
isolated: Type.Optional(Type.Boolean()),
|
|
301
322
|
model: Type.Optional(Type.String()),
|
|
302
323
|
thinking: Type.Optional(Type.String()),
|
|
303
|
-
max_turns: Type.Optional(
|
|
324
|
+
max_turns: Type.Optional(
|
|
325
|
+
Type.Integer({
|
|
326
|
+
minimum: 1,
|
|
327
|
+
description:
|
|
328
|
+
"Turn cap. Omit it unless host policy requires one, so the run decides when it is done.",
|
|
329
|
+
}),
|
|
330
|
+
),
|
|
304
331
|
record_dir: Type.Optional(
|
|
305
332
|
Type.String({
|
|
306
333
|
description:
|
|
@@ -317,6 +344,9 @@ export function agencyTools(root = CATALOG_ROOT) {
|
|
|
317
344
|
status: Type.String(),
|
|
318
345
|
agentId: NullableString,
|
|
319
346
|
model: NullableString,
|
|
347
|
+
durationMs: NullableNumber,
|
|
348
|
+
toolUses: NullableNumber,
|
|
349
|
+
tokens: NullableString,
|
|
320
350
|
output: Type.String(),
|
|
321
351
|
}),
|
|
322
352
|
),
|
|
@@ -398,12 +428,17 @@ export function agencyTools(root = CATALOG_ROOT) {
|
|
|
398
428
|
status?: string
|
|
399
429
|
agentId?: string
|
|
400
430
|
modelName?: string
|
|
431
|
+
durationMs?: number
|
|
432
|
+
toolUses?: number
|
|
433
|
+
tokens?: string
|
|
401
434
|
}
|
|
402
|
-
// pi-subagents prefixes foreground output with "Agent completed in
|
|
435
|
+
// pi-subagents prefixes foreground output with "Agent completed in 5.4s (2 tool uses).\n\n".
|
|
403
436
|
const header = /^(?:[\s\S]*?\n)?Agent completed in [^\n]*\n\n/.exec(
|
|
404
437
|
text,
|
|
405
438
|
)
|
|
406
439
|
const output = header ? text.slice(header[0].length) : text
|
|
440
|
+
// Reuse the producer's own wording so one run reads the same everywhere.
|
|
441
|
+
|
|
407
442
|
record(`${run.id}.return.txt`, output)
|
|
408
443
|
return {
|
|
409
444
|
id: run.id,
|
|
@@ -414,13 +449,22 @@ export function agencyTools(root = CATALOG_ROOT) {
|
|
|
414
449
|
: (details.status ?? (header ? "completed" : "unknown")),
|
|
415
450
|
agentId: details.agentId ?? null,
|
|
416
451
|
model: details.modelName ?? null,
|
|
452
|
+
// A hand-off to the background reports zeroes where a run measured.
|
|
453
|
+
durationMs:
|
|
454
|
+
details.status === "background"
|
|
455
|
+
? null
|
|
456
|
+
: (details.durationMs ?? null),
|
|
457
|
+
toolUses:
|
|
458
|
+
details.status === "background" ? null : (details.toolUses ?? null),
|
|
459
|
+
tokens:
|
|
460
|
+
details.status === "background" ? null : details.tokens || null,
|
|
417
461
|
output,
|
|
418
462
|
}
|
|
419
463
|
})
|
|
420
464
|
const text = results
|
|
421
465
|
.map(
|
|
422
466
|
(run) =>
|
|
423
|
-
`## ${run.id}${run.persona ? ` ${run.persona}` : ""}: ${run.status}\nsha256 ${run.promptSha256}\n\n${run.output}`,
|
|
467
|
+
`## ${run.id}${run.persona ? ` ${run.persona}` : ""}: ${run.status}${statsLine(run)}\nsha256 ${run.promptSha256}\n\n${run.output}`,
|
|
424
468
|
)
|
|
425
469
|
.join("\n\n")
|
|
426
470
|
return {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# pi-cc-extensions
|
|
6
6
|
|
|
7
|
-
> Claude Code-style TUI output with some personal touches and handy utilities.
|
|
7
|
+
> Claude Code-style TUI output with some personal touches and handy utilities (no extra built-in tools).
|
|
8
8
|
|
|
9
9
|
## Preview
|
|
10
10
|
|
|
@@ -34,7 +34,7 @@ Run `/reload` after installation.
|
|
|
34
34
|
| Context inspection | Usage breakdown and previews for the system prompt, memory, skills, tools definition, and messages | `/context` |
|
|
35
35
|
| Session/Subagent references | Search and inject effective context from previous Sessions or existing SubAgents | `@` |
|
|
36
36
|
| Status bar | Shows model, context, cache, cost, and git; also works with `@narumitw/pi-usage` for live quota. Git/cache Nerd Font icons can be turned off | `/ccstyle` |
|
|
37
|
-
| Theme | Bundled CC Dark and CC Light themes | `/
|
|
37
|
+
| Theme | Bundled CC Dark and CC Light themes | `/settings` → Theme |
|
|
38
38
|
|
|
39
39
|
Renderer snapshots for `on` / `compact` modes: [default](./docs/tool-render-examples-default.md) · [compact](./docs/tool-render-examples-compact.md)
|
|
40
40
|
|
|
@@ -55,7 +55,7 @@ Renderer snapshots for `on` / `compact` modes: [default](./docs/tool-render-exam
|
|
|
55
55
|
"enableAgentSummary": true, // per-turn tool summary
|
|
56
56
|
"enableWorkingMessage": true, // Working... bottom token/elapsed
|
|
57
57
|
"enableAliases": true, // /clear, /exit aliases
|
|
58
|
-
"enableMarkdownEnhance": true,
|
|
58
|
+
"enableMarkdownEnhance": true, // markdown pass: Mermaid dialects and circled-number conversion; false hands it to other extensions
|
|
59
59
|
"enableEditorPrefix": true, // editor ❯ prefix
|
|
60
60
|
|
|
61
61
|
// ui
|
|
@@ -97,12 +97,10 @@ Renderer snapshots for `on` / `compact` modes: [default](./docs/tool-render-exam
|
|
|
97
97
|
```
|
|
98
98
|
|
|
99
99
|
> [!TIP]
|
|
100
|
-
> **Fullscreen**:
|
|
101
|
-
>
|
|
102
|
-
> Both `scrollButtonMode` values show the same `Back to bottom` / `N new message(s)` text: `dock` draws it in a dedicated row, `native` in Pi’s floating overlay.
|
|
100
|
+
> **Fullscreen**: expanded diffs always show every line. When expanded Input/Output exceeds the line cap, the footer shows `… +N more lines`; click for the full preview, click again to collapse.
|
|
103
101
|
|
|
104
102
|
> [!NOTE]
|
|
105
|
-
> **Mermaid rendering**: set `markdown.mermaid` to `final` via `~/.pi/agent/settings.json` or
|
|
103
|
+
> **Mermaid rendering**: set `markdown.mermaid` to `final` via `~/.pi/agent/settings.json` or `/settings`. Default `streaming` redraws every frame; `final` renders once.
|
|
106
104
|
|
|
107
105
|
## Local development
|
|
108
106
|
|
|
@@ -128,7 +126,7 @@ pi -e . # one run, does not edit settings.json
|
|
|
128
126
|
|
|
129
127
|
## Credits
|
|
130
128
|
|
|
131
|
-
- Based on [`minuque/pi-cc-extensions`](https://github.com/minuque/pi-cc-extensions) 1.0.
|
|
129
|
+
- Based on [`minuque/pi-cc-extensions`](https://github.com/minuque/pi-cc-extensions) 1.0.9 (MIT), upstream baseline [`6519fad`](https://github.com/minuque/pi-cc-extensions/commit/6519fadd5e0bc84109f3359f2afe8f67337bdaad), with this repository's configuration migration and compatibility patches retained.
|
|
132
130
|
- 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).
|
|
133
131
|
|
|
134
132
|
## License
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# pi-cc-extensions
|
|
6
6
|
|
|
7
|
-
> 类 Claude Code TUI
|
|
7
|
+
> 类 Claude Code TUI 输出风格,并融入了一些个人喜好,和一些实用小功能(无额外内置工具)。
|
|
8
8
|
|
|
9
9
|
## 界面预览
|
|
10
10
|
|
|
@@ -34,7 +34,7 @@ pi install git:github.com/HerbertGao/pi-extensions
|
|
|
34
34
|
| 上下文检查 | 查看上下文占用,并预览 System prompt、Memory、Skills、Tools definition 和消息内容 | `/context` |
|
|
35
35
|
| Session/Subagent 引用 | 搜索并注入历史 Session 或现有 SubAgent 的有效上下文 | `@` |
|
|
36
36
|
| 状态栏 | 显示:模型、上下文、缓存、费用、git并适配 @narumitw/pi-usage 实时显示额度;git/缓存图标可关 Nerd Font | `/ccstyle` |
|
|
37
|
-
| 主题 | 随包提供内置 CC Dark、CC Light 主题 | `/
|
|
37
|
+
| 主题 | 随包提供内置 CC Dark、CC Light 主题 | `/settings` → Theme |
|
|
38
38
|
|
|
39
39
|
`on` / `compact` 两种模式的渲染样例:[默认模式](./docs/tool-render-examples-default.md) · [紧凑模式](./docs/tool-render-examples-compact.md)
|
|
40
40
|
|
|
@@ -55,7 +55,7 @@ pi install git:github.com/HerbertGao/pi-extensions
|
|
|
55
55
|
"enableAgentSummary": true, // 每回合工具摘要
|
|
56
56
|
"enableWorkingMessage": true, // Working... 底部 token/耗时
|
|
57
57
|
"enableAliases": true, // /clear、/exit 别名
|
|
58
|
-
"enableMarkdownEnhance": true,
|
|
58
|
+
"enableMarkdownEnhance": true, // markdown 转换:Mermaid 方言渲染、圈数字转半角括号;false 让位给其他扩展
|
|
59
59
|
"enableEditorPrefix": true, // 输入框 ❯ 前缀
|
|
60
60
|
|
|
61
61
|
// ui
|
|
@@ -96,12 +96,10 @@ pi install git:github.com/HerbertGao/pi-extensions
|
|
|
96
96
|
```
|
|
97
97
|
|
|
98
98
|
> [!TIP]
|
|
99
|
-
>
|
|
100
|
-
>
|
|
101
|
-
> `scrollButtonMode` 两种模式文案相同(`Back to bottom` / `N new message(s)`):`dock` 画在独占行,`native` 画在 Pi 原生浮层。
|
|
99
|
+
> **全屏模式**:展开态 diff 全量显示。Input/Output 超行时末行给 `… +N more lines`,单击看全量,再击收起。
|
|
102
100
|
|
|
103
101
|
> [!NOTE]
|
|
104
|
-
> **Mermaid
|
|
102
|
+
> **Mermaid 渲染**:`markdown.mermaid` 建议设为 `final`(`~/.pi/agent/settings.json` 或 `/settings`)。默认 `streaming` 逐帧重绘,`final` 只渲染最终版。
|
|
105
103
|
|
|
106
104
|
## 本地开发
|
|
107
105
|
|
|
@@ -127,7 +125,7 @@ pi -e . # 只跑一次,不改 settings.json
|
|
|
127
125
|
|
|
128
126
|
## 致谢
|
|
129
127
|
|
|
130
|
-
- 基于 [`minuque/pi-cc-extensions`](https://github.com/minuque/pi-cc-extensions) 1.0.
|
|
128
|
+
- 基于 [`minuque/pi-cc-extensions`](https://github.com/minuque/pi-cc-extensions) 1.0.9(MIT),上游基线 [`6519fad`](https://github.com/minuque/pi-cc-extensions/commit/6519fadd5e0bc84109f3359f2afe8f67337bdaad);保留本仓库的配置迁移与兼容性补丁。
|
|
131
129
|
- 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)。
|
|
132
130
|
|
|
133
131
|
## 许可证
|
|
@@ -432,6 +432,11 @@ export async function showCcstylePanel(
|
|
|
432
432
|
return;
|
|
433
433
|
}
|
|
434
434
|
|
|
435
|
+
// 编辑器插槽只能在面板关闭后替换:面板自己就挂在 editorContainer 上,面板开着时调
|
|
436
|
+
// setEditorComponent 会把面板踢出渲染树、done() 再也走不到,`ctx.ui.custom()` 永不落定,
|
|
437
|
+
// 整个输入管线随之卡死。
|
|
438
|
+
let editorPrefixChanged = false;
|
|
439
|
+
|
|
435
440
|
await ctx.ui.custom((tui: any, theme: any, _keybindings: any, done: () => void) => {
|
|
436
441
|
const modeSetting = {
|
|
437
442
|
id: "mode",
|
|
@@ -881,8 +886,7 @@ export async function showCcstylePanel(
|
|
|
881
886
|
editorPrefixSetting.description = enabled
|
|
882
887
|
? "Show ❯ before the input line; color follows thinking level / bash mode."
|
|
883
888
|
: "Plain input line, no ❯ glyph.";
|
|
884
|
-
|
|
885
|
-
else clearPromptEditor(ctx);
|
|
889
|
+
editorPrefixChanged = true;
|
|
886
890
|
ctx.ui.notify(`Updated ${id}: ${value}`, "info");
|
|
887
891
|
return;
|
|
888
892
|
}
|
|
@@ -1210,6 +1214,11 @@ export async function showCcstylePanel(
|
|
|
1210
1214
|
},
|
|
1211
1215
|
};
|
|
1212
1216
|
});
|
|
1217
|
+
// 面板已经卸下,插槽此时替换才不会踢掉对话框。
|
|
1218
|
+
if (editorPrefixChanged) {
|
|
1219
|
+
if (config.enableEditorPrefix) applyPromptEditor(ctx);
|
|
1220
|
+
else clearPromptEditor(ctx);
|
|
1221
|
+
}
|
|
1213
1222
|
// 面板卸下后主 transcript 重新挂载;再刷一次,吃掉打开期间扫树失败的切换。
|
|
1214
1223
|
hooks.refreshCurrentTranscript(ctx, toolGrouping);
|
|
1215
1224
|
}
|
|
@@ -385,12 +385,24 @@ const createCustomFooterFactory =
|
|
|
385
385
|
return 0;
|
|
386
386
|
};
|
|
387
387
|
|
|
388
|
-
|
|
388
|
+
// 三个会话统计每帧重算会全量遍历 session,长会话把 pi 钉在 100% CPU(issue #80)。
|
|
389
|
+
// leaf/model/thinking 任一变化立即重算;不变时 1s TTL,流式期间每秒刷新一次。
|
|
390
|
+
const SESSION_STATS_TTL_MS = 1_000;
|
|
391
|
+
let statsMemoKey = "";
|
|
392
|
+
let statsMemoAt = 0;
|
|
393
|
+
let statsMemo:
|
|
394
|
+
| { contextUsage: ReturnType<typeof ctx.getContextUsage>; cost: number; cachePct: number }
|
|
395
|
+
| undefined;
|
|
396
|
+
const sessionStats = () => {
|
|
389
397
|
const model = ctx.model;
|
|
390
|
-
const
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
398
|
+
const key = `${ctx.sessionManager.getLeafId() ?? ""}|${model?.provider}/${model?.id}|${ctx.thinkingLevel ?? ""}`;
|
|
399
|
+
if (
|
|
400
|
+
statsMemo &&
|
|
401
|
+
key === statsMemoKey &&
|
|
402
|
+
performance.now() - statsMemoAt < SESSION_STATS_TTL_MS
|
|
403
|
+
) {
|
|
404
|
+
return statsMemo;
|
|
405
|
+
}
|
|
394
406
|
let cost = 0;
|
|
395
407
|
for (const entry of ctx.sessionManager.getEntries()) {
|
|
396
408
|
if (entry.type === "message") {
|
|
@@ -404,6 +416,17 @@ const createCustomFooterFactory =
|
|
|
404
416
|
cost += entry.usage.cost?.total || 0;
|
|
405
417
|
}
|
|
406
418
|
}
|
|
419
|
+
statsMemo = { contextUsage: ctx.getContextUsage(), cost, cachePct: getCachePct() };
|
|
420
|
+
statsMemoKey = key;
|
|
421
|
+
statsMemoAt = performance.now();
|
|
422
|
+
return statsMemo;
|
|
423
|
+
};
|
|
424
|
+
|
|
425
|
+
const render = (width: number): string[] => {
|
|
426
|
+
const model = ctx.model;
|
|
427
|
+
const { contextUsage, cost, cachePct } = sessionStats();
|
|
428
|
+
const contextWindow = contextUsage?.contextWindow ?? model?.contextWindow ?? 0;
|
|
429
|
+
const percent = contextUsage?.percent;
|
|
407
430
|
|
|
408
431
|
// cwd 默认只显示最底层路径(根目录时回退完整路径)
|
|
409
432
|
const cwdLabel = ctx.cwd.split(/[\\/]/).filter(Boolean).pop() || ctx.cwd;
|
|
@@ -430,7 +453,6 @@ const createCustomFooterFactory =
|
|
|
430
453
|
const dimPlugin = (text: string) => colorUsageChip(theme, text);
|
|
431
454
|
|
|
432
455
|
const pctLabel = percent === null || percent === undefined ? "?" : `${Math.floor(percent)}%`;
|
|
433
|
-
const cachePct = getCachePct();
|
|
434
456
|
const glyphs = footerGlyphs(config.footerNerdIcons);
|
|
435
457
|
const cacheLabel =
|
|
436
458
|
cachePct > 0 ? `${glyphs.cache ? `${glyphs.cache} ` : ""}${Math.floor(cachePct)}%` : "";
|
|
@@ -59,27 +59,48 @@ const promptEditorFactory: EditorFactory = (tui, theme, keybindings) =>
|
|
|
59
59
|
let active = false;
|
|
60
60
|
let previousEditorFactory: EditorFactory | undefined;
|
|
61
61
|
|
|
62
|
-
/**
|
|
62
|
+
/**
|
|
63
|
+
* 撤销本扩展占据的插槽;从未占用就不碰插槽。
|
|
64
|
+
*
|
|
65
|
+
* 插槽可能已经被其他扩展包在外层(pi-inline-skills 会把当前工厂再包一层),
|
|
66
|
+
* 那种结构里无法只拆内层,直接还回占据前的工厂;外层扩展会在下次终端输入时
|
|
67
|
+
* 自己重新包装,前缀不会因此复活。
|
|
68
|
+
*
|
|
69
|
+
* 例外:插槽被 pi 重置回占据前的工厂时(/new、/reload 走 resetExtensionUI),
|
|
70
|
+
* 我们已经不在槽里,再写一次会把 pi 刚重置的结果又覆盖掉;此时只清状态。
|
|
71
|
+
*/
|
|
63
72
|
function releasePromptEditor(ctx: ExtensionContext): void {
|
|
64
73
|
if (!active) return;
|
|
65
|
-
|
|
74
|
+
const previous = previousEditorFactory;
|
|
66
75
|
active = false;
|
|
67
76
|
previousEditorFactory = undefined;
|
|
77
|
+
if (ctx.ui.getEditorComponent?.() === previous) return;
|
|
78
|
+
ctx.ui.setEditorComponent(previous);
|
|
68
79
|
}
|
|
69
80
|
|
|
70
|
-
/**
|
|
81
|
+
/**
|
|
82
|
+
* 应用输入框前缀;enableEditorPrefix=false 时只撤自己装的那层。
|
|
83
|
+
*
|
|
84
|
+
* 只在没有扩展对话框开着时调用:pi 的 setEditorComponent 会清空 editorContainer 并
|
|
85
|
+
* 抢走焦点,把正在设置面板里的对话框踢出渲染树,对话框的 done() 再也走不到,
|
|
86
|
+
* `ctx.ui.custom()` 的 Promise 永不落定,后续输入全部卡死。设置面板自己不做替换,
|
|
87
|
+
* 等 `ctx.ui.custom()` 返回后再调本函数。
|
|
88
|
+
*
|
|
89
|
+
* 插槽已经装着本扩展的编辑器时直接返回:重复安装只会重建实例,丢掉撤销栈、
|
|
90
|
+
* 历史等编辑器状态,还会打断其他扩展包在外层的编辑器。
|
|
91
|
+
*/
|
|
71
92
|
export function applyPromptEditor(ctx: ExtensionContext): void {
|
|
72
93
|
if (!ctx?.hasUI || typeof ctx.ui?.setEditorComponent !== "function") return;
|
|
94
|
+
if (!config.enableEditorPrefix) {
|
|
95
|
+
releasePromptEditor(ctx);
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
const current = ctx.ui.getEditorComponent?.();
|
|
99
|
+
if (current === promptEditorFactory) return;
|
|
73
100
|
try {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
if (!active) {
|
|
79
|
-
// pi 的插槽是硬替换、没有栈,先记住是谁占着,撤销时还回去。
|
|
80
|
-
previousEditorFactory = ctx.ui.getEditorComponent?.();
|
|
81
|
-
active = true;
|
|
82
|
-
}
|
|
101
|
+
// pi 的插槽是硬替换、没有栈,先记住是谁占着,撤销时还回去。
|
|
102
|
+
previousEditorFactory = current;
|
|
103
|
+
active = true;
|
|
83
104
|
ctx.ui.setEditorComponent(promptEditorFactory);
|
|
84
105
|
} catch (err) {
|
|
85
106
|
ctx.ui.notify(
|
|
@@ -1057,6 +1057,14 @@ function compactStopStatusLine(status: string, pad = 0): any {
|
|
|
1057
1057
|
/** 展开入口的动作词:我们的 `click to show more`、pi 的 `<key> to expand`(键名可能取不到)。 */
|
|
1058
1058
|
const EXPAND_ACTION = String.raw`(?:click to show more|(?:[\w/+]+\s+)?to (?:show more|expand))`;
|
|
1059
1059
|
|
|
1060
|
+
/**
|
|
1061
|
+
* 展开入口只挂在行尾:正则只看行尾这一段,单行代价与行长无关。
|
|
1062
|
+
* 图片负载(kitty 图形数据的 Base64)一行可达数百 KB,整行过正则会拖住渲染帧。
|
|
1063
|
+
*/
|
|
1064
|
+
const SLOT_HINT_WINDOW = 200;
|
|
1065
|
+
/** 窗口里出现这些词才可能有展开入口,其余行(负载、代码)直接放过正则。 */
|
|
1066
|
+
const SLOT_HINT_MARKERS = ["to expand", "to show more"];
|
|
1067
|
+
|
|
1060
1068
|
const SLOT_HINT_PATTERNS: RegExp[] = [
|
|
1061
1069
|
// 卡在括号里:`(9 more lines, click to show more)` / `(195 earlier lines, ctrl+o to expand)`,
|
|
1062
1070
|
// 只去掉动作词,收尾括号与计数保留。
|
|
@@ -1066,13 +1074,18 @@ const SLOT_HINT_PATTERNS: RegExp[] = [
|
|
|
1066
1074
|
new RegExp(String.raw`\s*(?:[•·]\s*)?${EXPAND_ACTION}\s*$`),
|
|
1067
1075
|
];
|
|
1068
1076
|
|
|
1069
|
-
|
|
1070
|
-
|
|
1077
|
+
/** 导出供单测:窗口边界与键名长度是性能与裁剪行为的关键,需要逐条钉住。 */
|
|
1078
|
+
export function stripSlotHint(line: string): string {
|
|
1079
|
+
// 切点可能落在转义序列中间,残片只当作窗口头部文本;两个模式都锚在行尾,不受影响。
|
|
1080
|
+
const head = line.slice(0, Math.max(0, line.length - SLOT_HINT_WINDOW));
|
|
1081
|
+
const tail = line.slice(head.length);
|
|
1082
|
+
const plain = stripTerminalSequencesPreservingLayout(tail);
|
|
1083
|
+
if (!SLOT_HINT_MARKERS.some((marker) => plain.includes(marker))) return line;
|
|
1071
1084
|
for (const re of SLOT_HINT_PATTERNS) {
|
|
1072
1085
|
const match = re.exec(plain);
|
|
1073
1086
|
if (!match) continue;
|
|
1074
1087
|
// 删除区间而非截断后拼纯文本:收尾括号留在原样式里(dim),不会掉回默认前景色。
|
|
1075
|
-
return removeStyledRange(
|
|
1088
|
+
return head + removeStyledRange(tail, match.index, match.index + match[0].length);
|
|
1076
1089
|
}
|
|
1077
1090
|
return line;
|
|
1078
1091
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@herbertgao/pi-cc-extensions",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9-local.2",
|
|
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",
|
|
@@ -71,10 +71,10 @@
|
|
|
71
71
|
},
|
|
72
72
|
"x-upstream": {
|
|
73
73
|
"package": "pi-cc-extensions",
|
|
74
|
-
"version": "1.0.
|
|
75
|
-
"reviewedVersion": "1.0.
|
|
74
|
+
"version": "1.0.9",
|
|
75
|
+
"reviewedVersion": "1.0.9",
|
|
76
76
|
"repository": "https://github.com/minuque/pi-cc-extensions",
|
|
77
|
-
"commit": "
|
|
77
|
+
"commit": "6519fadd5e0bc84109f3359f2afe8f67337bdaad",
|
|
78
78
|
"trackVersion": true
|
|
79
79
|
}
|
|
80
80
|
}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.22.0-local.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#306](https://github.com/HerbertGao/pi-extensions/pull/306) [`935acc3`](https://github.com/HerbertGao/pi-extensions/commit/935acc38af54c76b6924bb48a0b09d2c59e4997f) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Label a run with its own `name` in the agent widget, the expanded agent block, the fleet list, the conversation header, and the Agent tool row, keeping its type's badge color. `agency_dispatch` now reports per-run duration, tool uses, and tokens in both its text and its structured result, and reports none of them for a run handed off to the background.
|
|
8
|
+
|
|
3
9
|
## 0.22.0-local.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -192,8 +192,17 @@ export function renderAgentName(
|
|
|
192
192
|
type: string | undefined,
|
|
193
193
|
theme: AgentNameTheme,
|
|
194
194
|
style: AgentNameStyle = {},
|
|
195
|
+
/** A run's own name, which outranks its type's label while keeping the type's color. */
|
|
196
|
+
label?: string,
|
|
195
197
|
): string {
|
|
196
|
-
if (!type)
|
|
198
|
+
if (!type) {
|
|
199
|
+
return renderAgentNameLabel(label ?? "Agent", undefined, theme, style)
|
|
200
|
+
}
|
|
197
201
|
const config = getConfig(type)
|
|
198
|
-
return renderAgentNameLabel(
|
|
202
|
+
return renderAgentNameLabel(
|
|
203
|
+
label ?? config.displayName,
|
|
204
|
+
config.color,
|
|
205
|
+
theme,
|
|
206
|
+
style,
|
|
207
|
+
)
|
|
199
208
|
}
|
|
@@ -2280,11 +2280,16 @@ Terse command-style prompts produce shallow, generic work.
|
|
|
2280
2280
|
)
|
|
2281
2281
|
: ""
|
|
2282
2282
|
const desc = args.description ?? ""
|
|
2283
|
-
const name = renderAgentName(
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2283
|
+
const name = renderAgentName(
|
|
2284
|
+
args.subagent_type,
|
|
2285
|
+
theme,
|
|
2286
|
+
{
|
|
2287
|
+
fallbackColor: "toolTitle",
|
|
2288
|
+
restoreBackground: rowBackground,
|
|
2289
|
+
bold: true,
|
|
2290
|
+
},
|
|
2291
|
+
args.name,
|
|
2292
|
+
)
|
|
2288
2293
|
return new Text(
|
|
2289
2294
|
rowBackground +
|
|
2290
2295
|
"▸ " +
|