@herbertgao/pi-extensions 2026.10.10 → 2026.10.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/README.md +13 -11
- package/THIRD_PARTY_NOTICES.md +3 -3
- 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 +3 -0
- package/node_modules/@herbertgao/pi-cc-extensions/README.md +3 -0
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/config/config.ts +1 -1
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/config/panel.ts +3 -3
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/compact-mode.ts +126 -42
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/mouse/interaction.ts +24 -6
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/mouse/scroll.ts +69 -16
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/mouse/sticky-prompt.ts +1 -1
- 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 +8 -2
- package/node_modules/@herbertgao/sol-pi/agents-install.md +2 -2
- package/node_modules/@herbertgao/sol-pi/docs/compatibility.md +28 -4
- package/node_modules/@herbertgao/sol-pi/docs/configuration.md +17 -4
- package/node_modules/@herbertgao/sol-pi/package.json +1 -1
- package/node_modules/@herbertgao/sol-pi/src/sol-pi/extensions/action-fusion/index.ts +35 -25
- package/node_modules/@herbertgao/sol-pi/src/sol-pi/extensions/action-fusion/then-run.ts +95 -26
- package/node_modules/@herbertgao/sol-pi/src/sol-pi/extensions/evidence-preserving-reducer/candidate.ts +39 -2
- package/node_modules/@herbertgao/sol-pi/src/sol-pi/extensions/evidence-preserving-reducer/index.ts +24 -0
- package/node_modules/@herbertgao/sol-pi/src/sol-pi/extensions/observation-pack/index.ts +12 -7
- package/node_modules/@herbertgao/sol-pi/src/sol-pi/extensions/online-context-compact/extension.ts +138 -130
- package/node_modules/@herbertgao/sol-pi/src/sol-pi/extensions/online-context-compact/projection.ts +88 -14
- package/node_modules/@herbertgao/sol-pi/src/sol-pi/extensions/online-context-compact/tools.ts +9 -0
- package/node_modules/@herbertgao/sol-pi/src/sol-pi/index.ts +14 -5
- package/node_modules/@herbertgao/sol-pi/src/sol-pi/shell-options.ts +22 -0
- package/node_modules/@herbertgao/sol-pi/src/sol-pi/tui.ts +11 -0
- package/node_modules/@juicesharp/rpiv-ask-user-question/answer-channel.ts +109 -0
- package/node_modules/@juicesharp/rpiv-ask-user-question/ask-user-question.ts +117 -71
- package/node_modules/@juicesharp/rpiv-ask-user-question/docs/hosts.md +2 -0
- package/node_modules/@juicesharp/rpiv-ask-user-question/docs/keyboard.md +3 -1
- package/node_modules/@juicesharp/rpiv-ask-user-question/docs/startup-performance.md +83 -0
- package/node_modules/@juicesharp/rpiv-ask-user-question/docs/tool-schema.md +74 -5
- package/node_modules/@juicesharp/rpiv-ask-user-question/events.ts +84 -0
- package/node_modules/@juicesharp/rpiv-ask-user-question/index.ts +10 -4
- package/node_modules/@juicesharp/rpiv-ask-user-question/package.json +4 -2
- package/node_modules/@juicesharp/rpiv-ask-user-question/presentation.ts +1 -1
- package/node_modules/@juicesharp/rpiv-ask-user-question/reconcile.ts +1 -1
- package/node_modules/@juicesharp/rpiv-ask-user-question/rpc-fallback.ts +5 -4
- package/node_modules/@juicesharp/rpiv-ask-user-question/state/build-questionnaire.ts +19 -19
- package/node_modules/@juicesharp/rpiv-ask-user-question/state/i18n-bridge.ts +1 -1
- package/node_modules/@juicesharp/rpiv-ask-user-question/state/key-router.ts +7 -4
- package/node_modules/@juicesharp/rpiv-ask-user-question/state/questionnaire-session.ts +10 -10
- package/node_modules/@juicesharp/rpiv-ask-user-question/state/row-intent.ts +2 -2
- package/node_modules/@juicesharp/rpiv-ask-user-question/state/selectors/contract.ts +6 -6
- package/node_modules/@juicesharp/rpiv-ask-user-question/state/selectors/derivations.ts +2 -2
- package/node_modules/@juicesharp/rpiv-ask-user-question/state/selectors/focus.ts +1 -1
- package/node_modules/@juicesharp/rpiv-ask-user-question/state/selectors/projections.ts +9 -9
- package/node_modules/@juicesharp/rpiv-ask-user-question/state/state-reducer.ts +5 -5
- package/node_modules/@juicesharp/rpiv-ask-user-question/state/state.ts +2 -2
- package/node_modules/@juicesharp/rpiv-ask-user-question/tool/external-answer.ts +125 -0
- package/node_modules/@juicesharp/rpiv-ask-user-question/tool/format-answer.ts +1 -1
- package/node_modules/@juicesharp/rpiv-ask-user-question/tool/normalize-params.ts +1 -1
- package/node_modules/@juicesharp/rpiv-ask-user-question/tool/response-envelope.ts +2 -2
- package/node_modules/@juicesharp/rpiv-ask-user-question/tool/types.ts +1 -1
- package/node_modules/@juicesharp/rpiv-ask-user-question/tool/validate-questionnaire.ts +1 -1
- package/node_modules/@juicesharp/rpiv-ask-user-question/view/component-binding.ts +4 -4
- package/node_modules/@juicesharp/rpiv-ask-user-question/view/components/multi-select-view.ts +4 -4
- package/node_modules/@juicesharp/rpiv-ask-user-question/view/components/option-list-view.ts +2 -2
- package/node_modules/@juicesharp/rpiv-ask-user-question/view/components/preview/markdown-content-cache.ts +3 -3
- package/node_modules/@juicesharp/rpiv-ask-user-question/view/components/preview/preview-block-renderer.ts +5 -5
- package/node_modules/@juicesharp/rpiv-ask-user-question/view/components/preview/preview-layout-decider.ts +3 -3
- package/node_modules/@juicesharp/rpiv-ask-user-question/view/components/preview/preview-pane.ts +10 -10
- package/node_modules/@juicesharp/rpiv-ask-user-question/view/components/submit-picker.ts +2 -2
- package/node_modules/@juicesharp/rpiv-ask-user-question/view/components/tab-bar.ts +1 -1
- package/node_modules/@juicesharp/rpiv-ask-user-question/view/components/wrapping-select.ts +1 -1
- package/node_modules/@juicesharp/rpiv-ask-user-question/view/dialog-builder.ts +9 -9
- package/node_modules/@juicesharp/rpiv-ask-user-question/view/dialog-copy.ts +1 -1
- package/node_modules/@juicesharp/rpiv-ask-user-question/view/props-adapter.ts +8 -8
- package/node_modules/@juicesharp/rpiv-ask-user-question/view/tab-components.ts +4 -4
- package/node_modules/@juicesharp/rpiv-ask-user-question/view/tab-content-strategy.ts +10 -10
- package/node_modules/@narumitw/pi-btw/README.md +14 -5
- package/node_modules/@narumitw/pi-btw/dist/index.ts +1067 -557
- 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 -309
- package/node_modules/@narumitw/pi-btw/src/keybindings.ts +101 -23
- 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/@narumitw/pi-caffeinate/dist/index.ts +1 -0
- package/node_modules/@narumitw/pi-caffeinate/dist/index.ts.map +2 -2
- package/node_modules/@narumitw/pi-caffeinate/package.json +3 -3
- package/node_modules/@narumitw/pi-caffeinate/src/inhibitor-process.ts +1 -0
- package/node_modules/pi-antigravity/README.md +6 -2
- package/node_modules/pi-antigravity/package.json +2 -2
- package/node_modules/pi-antigravity/src/client/client.ts +44 -52
- package/node_modules/pi-antigravity/src/index.ts +13 -0
- package/node_modules/pi-antigravity/src/models/discovery.ts +25 -2
- package/node_modules/pi-antigravity/src/models/grouping.ts +107 -68
- package/node_modules/pi-antigravity/src/models/models.ts +10 -0
- package/node_modules/pi-antigravity/src/search/search.ts +581 -43
- package/node_modules/pi-antigravity/src/stream/stream.ts +53 -13
- package/node_modules/pi-antigravity/src/types/types.ts +13 -0
- package/node_modules/pi-antigravity/src/usage/usage.ts +11 -3
- 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 +323 -154
- package/node_modules/pi-provider-qoder/package.json +1 -1
- package/node_modules/pi-web-access/CHANGELOG.md +60 -0
- package/node_modules/pi-web-access/README.md +96 -10
- 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/credential-source.ts +54 -4
- package/node_modules/pi-web-access/curator-page.ts +5 -1
- package/node_modules/pi-web-access/curator-server.ts +2 -0
- package/node_modules/pi-web-access/deepseek.ts +377 -0
- package/node_modules/pi-web-access/dist/index.js +1463 -748
- package/node_modules/pi-web-access/dist/mcp-cli.js +1393 -717
- package/node_modules/pi-web-access/extract.ts +58 -6
- package/node_modules/pi-web-access/gemini-adc.ts +48 -1
- package/node_modules/pi-web-access/gemini-search.ts +33 -6
- package/node_modules/pi-web-access/index.ts +36 -4
- 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/page-query.ts +12 -6
- 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/query-rewrite.ts +16 -13
- 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/summary-review.ts +16 -6
- package/node_modules/pi-web-access/utils.ts +27 -1
- package/node_modules/pi-web-access/valyu.ts +4 -3
- package/node_modules/pi-web-access/web-tool-core.ts +7 -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 +15 -15
- 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
|
@@ -4,13 +4,14 @@ import {
|
|
|
4
4
|
type Focusable,
|
|
5
5
|
HStack,
|
|
6
6
|
isFocusable,
|
|
7
|
+
isKeyRelease,
|
|
7
8
|
ScrollView,
|
|
8
9
|
type TuiMouseEvent,
|
|
9
10
|
type TuiMouseEventResult,
|
|
10
11
|
truncateToWidth,
|
|
11
12
|
visibleWidth,
|
|
12
13
|
} from "@earendil-works/pi-tui";
|
|
13
|
-
import { BtwPasteGuard } from "./keybindings.js";
|
|
14
|
+
import { BtwPasteGuard, type BtwShortcuts } from "./keybindings.js";
|
|
14
15
|
import {
|
|
15
16
|
type BtwLayout,
|
|
16
17
|
DEFAULT_BTW_SIDE_PANE_RATIO,
|
|
@@ -27,6 +28,7 @@ type BtwActivePane = "side" | "main";
|
|
|
27
28
|
export interface BtwFullscreenLayoutComponent extends Component {
|
|
28
29
|
getFullscreenLayout(): Component;
|
|
29
30
|
getPrimaryScrollView?(): ScrollView;
|
|
31
|
+
setWorkspaceFocus?(pane: "side" | "main", shortcutLabel: string | undefined): void;
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
export class BtwMainThreadInput implements Component, Focusable {
|
|
@@ -69,11 +71,12 @@ export class BtwMainThreadInput implements Component, Focusable {
|
|
|
69
71
|
|
|
70
72
|
refreshTarget(): void {
|
|
71
73
|
if (this.disposed) return;
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
+
const resolved = this.resolveTarget();
|
|
75
|
+
const next = hasInput(resolved) ? resolved : undefined;
|
|
76
|
+
if (next === this.target) return;
|
|
74
77
|
if (this._focused && this.target && isFocusable(this.target)) this.target.focused = false;
|
|
75
78
|
this.target = next;
|
|
76
|
-
if (this._focused && isFocusable(next)) next.focused = true;
|
|
79
|
+
if (this._focused && next && isFocusable(next)) next.focused = true;
|
|
77
80
|
}
|
|
78
81
|
|
|
79
82
|
invalidate(): void {}
|
|
@@ -81,9 +84,11 @@ export class BtwMainThreadInput implements Component, Focusable {
|
|
|
81
84
|
dispose(): void {
|
|
82
85
|
if (this.disposed) return;
|
|
83
86
|
this.disposed = true;
|
|
84
|
-
|
|
87
|
+
const target = this.target;
|
|
88
|
+
const wasFocused = this._focused;
|
|
85
89
|
this.target = undefined;
|
|
86
90
|
this._focused = false;
|
|
91
|
+
if (wasFocused && target && isFocusable(target)) target.focused = false;
|
|
87
92
|
}
|
|
88
93
|
}
|
|
89
94
|
|
|
@@ -92,8 +97,10 @@ export interface BtwSplitPaneOptions {
|
|
|
92
97
|
sideLayout: Component;
|
|
93
98
|
mainThread: Component;
|
|
94
99
|
mainLayout?: Component;
|
|
100
|
+
mainScrollView?: ScrollView;
|
|
95
101
|
mainInput: Component;
|
|
96
102
|
sideScrollView?: ScrollView;
|
|
103
|
+
shortcuts?: BtwShortcuts;
|
|
97
104
|
layout: Exclude<BtwLayout, "fullscreen">;
|
|
98
105
|
theme: Theme;
|
|
99
106
|
terminalColumns(): number;
|
|
@@ -124,20 +131,27 @@ export class BtwSplitPane implements BtwFullscreenLayoutComponent {
|
|
|
124
131
|
constructor(private readonly options: BtwSplitPaneOptions) {
|
|
125
132
|
this.sidePaneRatio = clampSidePaneRatio(options.sidePaneRatio ?? DEFAULT_BTW_SIDE_PANE_RATIO);
|
|
126
133
|
this.persistedSidePaneRatio = this.sidePaneRatio;
|
|
127
|
-
this.mainPane = new MainThreadPane(
|
|
134
|
+
this.mainPane = new MainThreadPane(
|
|
135
|
+
options.mainThread,
|
|
136
|
+
options.mainLayout,
|
|
137
|
+
options.mainScrollView,
|
|
138
|
+
options.theme,
|
|
139
|
+
options.terminalRows,
|
|
140
|
+
);
|
|
141
|
+
const side = options.sideScrollView ? options.sideLayout : new ScrollView(options.sideLayout, { primary: true });
|
|
128
142
|
this.viewportRouter = new PaneViewportRouter(
|
|
129
|
-
options.sideScrollView ??
|
|
143
|
+
options.sideScrollView ?? (side as ScrollView),
|
|
130
144
|
this.mainPane.getPrimaryScrollView(),
|
|
131
145
|
options.setViewportTarget,
|
|
132
146
|
);
|
|
133
147
|
this.viewportRouter.activate("side");
|
|
148
|
+
this.updateFocusLabel();
|
|
134
149
|
const separator: Component = {
|
|
135
150
|
render: (width) =>
|
|
136
151
|
Array.from({ length: Math.max(1, options.terminalRows()) }, () => truncateToWidth(this.renderDivider(), width)),
|
|
137
152
|
handleMouse: (event) => this.handleDividerMouse(event),
|
|
138
153
|
invalidate() {},
|
|
139
154
|
};
|
|
140
|
-
const side = options.sideLayout;
|
|
141
155
|
const main = this.mainPane.getLayout();
|
|
142
156
|
this.layoutRoot =
|
|
143
157
|
options.layout === "left-pane"
|
|
@@ -173,7 +187,14 @@ export class BtwSplitPane implements BtwFullscreenLayoutComponent {
|
|
|
173
187
|
this.forwardPastedInput(data);
|
|
174
188
|
return true;
|
|
175
189
|
}
|
|
176
|
-
if (width < MIN_BTW_SPLIT_COLUMNS) return false;
|
|
190
|
+
if (width < MIN_BTW_SPLIT_COLUMNS || isKeyRelease(data)) return false;
|
|
191
|
+
if (this.options.shortcuts?.matches(data, "switchPane")) {
|
|
192
|
+
this.focusGeneration += 1;
|
|
193
|
+
this.cancelDividerDrag();
|
|
194
|
+
this.activatePane(this.activePane === "side" ? "main" : "side");
|
|
195
|
+
return true;
|
|
196
|
+
}
|
|
197
|
+
this.updateFocusLabel();
|
|
177
198
|
const pane = paneForMouseClick(data, width, this.options.layout, this.sidePaneRatio);
|
|
178
199
|
if (pane) this.queuePaneFocus(pane);
|
|
179
200
|
return false;
|
|
@@ -215,7 +236,29 @@ export class BtwSplitPane implements BtwFullscreenLayoutComponent {
|
|
|
215
236
|
this.focusGeneration += 1;
|
|
216
237
|
this.dividerDragStartRatio = undefined;
|
|
217
238
|
this.failedRatioSaveGenerationDuringDrag = undefined;
|
|
218
|
-
|
|
239
|
+
let error: unknown;
|
|
240
|
+
for (const cleanup of [
|
|
241
|
+
() => this.viewportRouter.dispose(),
|
|
242
|
+
() => this.mainPane.dispose(),
|
|
243
|
+
() => this.setFocusLabel(undefined),
|
|
244
|
+
]) {
|
|
245
|
+
try {
|
|
246
|
+
cleanup();
|
|
247
|
+
} catch (failure) {
|
|
248
|
+
error ??= failure;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
if (error !== undefined) throw error;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
private updateFocusLabel(): void {
|
|
255
|
+
const shortcuts = this.options.shortcuts;
|
|
256
|
+
this.setFocusLabel(shortcuts?.keys.switchPane.length ? shortcuts.label("switchPane") : undefined);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
private setFocusLabel(shortcutLabel: string | undefined): void {
|
|
260
|
+
const component = this.options.sideComponent as BtwFullscreenLayoutComponent;
|
|
261
|
+
component.setWorkspaceFocus?.(this.activePane, shortcutLabel);
|
|
219
262
|
}
|
|
220
263
|
|
|
221
264
|
private renderDivider(): string {
|
|
@@ -290,7 +333,7 @@ export class BtwSplitPane implements BtwFullscreenLayoutComponent {
|
|
|
290
333
|
void Promise.resolve()
|
|
291
334
|
.then(() => persist(ratio))
|
|
292
335
|
.then(() => {
|
|
293
|
-
if (saveGeneration <= this.confirmedRatioSaveGeneration) return;
|
|
336
|
+
if (this.disposed || saveGeneration <= this.confirmedRatioSaveGeneration) return;
|
|
294
337
|
this.confirmedRatioSaveGeneration = saveGeneration;
|
|
295
338
|
this.persistedSidePaneRatio = ratio;
|
|
296
339
|
})
|
|
@@ -341,6 +384,7 @@ export class BtwSplitPane implements BtwFullscreenLayoutComponent {
|
|
|
341
384
|
private activatePane(pane: BtwActivePane): void {
|
|
342
385
|
if (this.disposed) return;
|
|
343
386
|
this.activePane = pane;
|
|
387
|
+
this.updateFocusLabel();
|
|
344
388
|
this.viewportRouter.activate(pane);
|
|
345
389
|
this.options.setFocus(pane === "side" ? this.options.sideComponent : this.options.mainInput);
|
|
346
390
|
this.options.requestRender();
|
|
@@ -404,6 +448,7 @@ class ResponsivePaneRow extends HStack {
|
|
|
404
448
|
}
|
|
405
449
|
|
|
406
450
|
class MainThreadPane {
|
|
451
|
+
private readonly borrowedScroll: boolean;
|
|
407
452
|
private readonly body: Component;
|
|
408
453
|
private readonly layout: Component;
|
|
409
454
|
private readonly scroll: ScrollView | undefined;
|
|
@@ -411,16 +456,19 @@ class MainThreadPane {
|
|
|
411
456
|
constructor(
|
|
412
457
|
mainThread: Component,
|
|
413
458
|
mainLayout: Component | undefined,
|
|
459
|
+
mainScrollView: ScrollView | undefined,
|
|
414
460
|
theme: Theme,
|
|
415
461
|
private readonly terminalRows: () => number,
|
|
416
462
|
) {
|
|
463
|
+
this.borrowedScroll = mainLayout !== undefined;
|
|
417
464
|
this.body = {
|
|
418
465
|
render: (width) => mainThread.render(Math.max(1, width)).map((line) => truncateToWidth(line, Math.max(1, width))),
|
|
419
466
|
invalidate() {},
|
|
420
467
|
};
|
|
421
468
|
if (mainLayout) {
|
|
422
469
|
this.layout = mainLayout;
|
|
423
|
-
|
|
470
|
+
if (!mainScrollView) throw new Error("The native main pane has no compatible viewport.");
|
|
471
|
+
this.scroll = mainScrollView;
|
|
424
472
|
return;
|
|
425
473
|
}
|
|
426
474
|
this.scroll = new ScrollView(this.body, {
|
|
@@ -436,6 +484,12 @@ class MainThreadPane {
|
|
|
436
484
|
return this.layout;
|
|
437
485
|
}
|
|
438
486
|
|
|
487
|
+
dispose(): void {
|
|
488
|
+
if (this.borrowedScroll) return;
|
|
489
|
+
this.scroll?.setScrollbarActive(false);
|
|
490
|
+
this.scroll?.setScrollbar("hidden");
|
|
491
|
+
}
|
|
492
|
+
|
|
439
493
|
getPrimaryScrollView(): ScrollView | undefined {
|
|
440
494
|
return this.scroll;
|
|
441
495
|
}
|
|
@@ -459,22 +513,46 @@ class PaneViewportRouter {
|
|
|
459
513
|
private readonly setViewportTarget: (scrollView: ScrollView | undefined) => void,
|
|
460
514
|
) {
|
|
461
515
|
for (const scrollView of [side, main]) {
|
|
462
|
-
if (scrollView)
|
|
516
|
+
if (!scrollView) continue;
|
|
517
|
+
const primary = Object.getOwnPropertyDescriptor(scrollView, "primary");
|
|
518
|
+
if (!primary?.writable || typeof primary.value !== "boolean") {
|
|
519
|
+
throw new Error("Pi BTW cannot route this viewport; update Pi.");
|
|
520
|
+
}
|
|
521
|
+
this.originalPrimary.set(scrollView, scrollView.primary);
|
|
463
522
|
}
|
|
464
523
|
}
|
|
465
524
|
|
|
466
525
|
activate(pane: BtwActivePane): void {
|
|
467
526
|
if (this.disposed) return;
|
|
468
527
|
const target = pane === "side" ? this.side : this.main;
|
|
469
|
-
|
|
470
|
-
|
|
528
|
+
const previous = new Map([...this.originalPrimary.keys()].map((scrollView) => [scrollView, scrollView.primary]));
|
|
529
|
+
try {
|
|
530
|
+
for (const scrollView of this.originalPrimary.keys()) setScrollViewPrimary(scrollView, scrollView === target);
|
|
531
|
+
this.setViewportTarget(target);
|
|
532
|
+
} catch (error) {
|
|
533
|
+
for (const [scrollView, primary] of previous) setScrollViewPrimary(scrollView, primary);
|
|
534
|
+
throw error;
|
|
535
|
+
}
|
|
471
536
|
}
|
|
472
537
|
|
|
473
538
|
dispose(): void {
|
|
474
539
|
if (this.disposed) return;
|
|
475
540
|
this.disposed = true;
|
|
476
|
-
|
|
477
|
-
this.
|
|
541
|
+
let error: unknown;
|
|
542
|
+
for (const [scrollView, primary] of this.originalPrimary) {
|
|
543
|
+
try {
|
|
544
|
+
setScrollViewPrimary(scrollView, primary);
|
|
545
|
+
} catch (failure) {
|
|
546
|
+
error ??= failure;
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
this.originalPrimary.clear();
|
|
550
|
+
try {
|
|
551
|
+
this.setViewportTarget(undefined);
|
|
552
|
+
} catch (failure) {
|
|
553
|
+
error ??= failure;
|
|
554
|
+
}
|
|
555
|
+
if (error !== undefined) throw error;
|
|
478
556
|
}
|
|
479
557
|
}
|
|
480
558
|
|
|
@@ -482,25 +560,7 @@ class PaneViewportRouter {
|
|
|
482
560
|
// active-pane viewport router. Preserve and restore this runtime field so Pi's
|
|
483
561
|
// native search, prompt navigation, and scrolling keep their standard behavior.
|
|
484
562
|
function setScrollViewPrimary(scrollView: ScrollView, primary: boolean): void {
|
|
485
|
-
Reflect.set(scrollView, "primary", primary);
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
function findPrimaryScrollView(root: Component): ScrollView | undefined {
|
|
489
|
-
const visited = new Set<Component>();
|
|
490
|
-
let fallback: ScrollView | undefined;
|
|
491
|
-
let primary: ScrollView | undefined;
|
|
492
|
-
const visit = (component: Component) => {
|
|
493
|
-
if (visited.has(component)) return;
|
|
494
|
-
visited.add(component);
|
|
495
|
-
if (component instanceof ScrollView) {
|
|
496
|
-
fallback ??= component;
|
|
497
|
-
if (component.primary) primary = component;
|
|
498
|
-
}
|
|
499
|
-
if (!("children" in component) || !Array.isArray(component.children)) return;
|
|
500
|
-
for (const child of component.children) visit(child);
|
|
501
|
-
};
|
|
502
|
-
visit(root);
|
|
503
|
-
return primary ?? fallback;
|
|
563
|
+
if (!Reflect.set(scrollView, "primary", primary)) throw new Error("Pi BTW could not restore viewport ownership.");
|
|
504
564
|
}
|
|
505
565
|
|
|
506
566
|
function paneForMouseClick(
|
|
@@ -138,6 +138,7 @@ import process from "node:process";
|
|
|
138
138
|
function startInhibitorProcess(command, onError, onUnexpectedExit) {
|
|
139
139
|
const child = spawn(command.command, command.args, {
|
|
140
140
|
detached: false,
|
|
141
|
+
windowsHide: true,
|
|
141
142
|
stdio: [command.releaseOnStdinClose ? "pipe" : "ignore", "pipe", "pipe"]
|
|
142
143
|
});
|
|
143
144
|
child.once("error", onError);
|