@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.
Files changed (301) hide show
  1. package/README.md +13 -11
  2. package/THIRD_PARTY_NOTICES.md +3 -3
  3. package/node_modules/@herbertgao/pi-agency/README.md +5 -3
  4. package/node_modules/@herbertgao/pi-agency/package.json +1 -1
  5. package/node_modules/@herbertgao/pi-agency/src/index.ts +51 -7
  6. package/node_modules/@herbertgao/pi-cc-extensions/README.en.md +3 -0
  7. package/node_modules/@herbertgao/pi-cc-extensions/README.md +3 -0
  8. package/node_modules/@herbertgao/pi-cc-extensions/extensions/config/config.ts +1 -1
  9. package/node_modules/@herbertgao/pi-cc-extensions/extensions/config/panel.ts +3 -3
  10. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/compact-mode.ts +126 -42
  11. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/mouse/interaction.ts +24 -6
  12. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/mouse/scroll.ts +69 -16
  13. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/mouse/sticky-prompt.ts +1 -1
  14. package/node_modules/@herbertgao/pi-cc-extensions/package.json +4 -4
  15. package/node_modules/@herbertgao/pi-subagents/CHANGELOG.md +6 -0
  16. package/node_modules/@herbertgao/pi-subagents/package.json +1 -1
  17. package/node_modules/@herbertgao/pi-subagents/src/agent-color.ts +11 -2
  18. package/node_modules/@herbertgao/pi-subagents/src/index.ts +10 -5
  19. package/node_modules/@herbertgao/pi-subagents/src/ui/agent-widget.ts +3 -2
  20. package/node_modules/@herbertgao/pi-subagents/src/ui/conversation-viewer.ts +1 -1
  21. package/node_modules/@herbertgao/pi-subagents/src/ui/fleet-list.ts +1 -0
  22. package/node_modules/@herbertgao/sol-pi/README.md +8 -2
  23. package/node_modules/@herbertgao/sol-pi/agents-install.md +2 -2
  24. package/node_modules/@herbertgao/sol-pi/docs/compatibility.md +28 -4
  25. package/node_modules/@herbertgao/sol-pi/docs/configuration.md +17 -4
  26. package/node_modules/@herbertgao/sol-pi/package.json +1 -1
  27. package/node_modules/@herbertgao/sol-pi/src/sol-pi/extensions/action-fusion/index.ts +35 -25
  28. package/node_modules/@herbertgao/sol-pi/src/sol-pi/extensions/action-fusion/then-run.ts +95 -26
  29. package/node_modules/@herbertgao/sol-pi/src/sol-pi/extensions/evidence-preserving-reducer/candidate.ts +39 -2
  30. package/node_modules/@herbertgao/sol-pi/src/sol-pi/extensions/evidence-preserving-reducer/index.ts +24 -0
  31. package/node_modules/@herbertgao/sol-pi/src/sol-pi/extensions/observation-pack/index.ts +12 -7
  32. package/node_modules/@herbertgao/sol-pi/src/sol-pi/extensions/online-context-compact/extension.ts +138 -130
  33. package/node_modules/@herbertgao/sol-pi/src/sol-pi/extensions/online-context-compact/projection.ts +88 -14
  34. package/node_modules/@herbertgao/sol-pi/src/sol-pi/extensions/online-context-compact/tools.ts +9 -0
  35. package/node_modules/@herbertgao/sol-pi/src/sol-pi/index.ts +14 -5
  36. package/node_modules/@herbertgao/sol-pi/src/sol-pi/shell-options.ts +22 -0
  37. package/node_modules/@herbertgao/sol-pi/src/sol-pi/tui.ts +11 -0
  38. package/node_modules/@juicesharp/rpiv-ask-user-question/answer-channel.ts +109 -0
  39. package/node_modules/@juicesharp/rpiv-ask-user-question/ask-user-question.ts +117 -71
  40. package/node_modules/@juicesharp/rpiv-ask-user-question/docs/hosts.md +2 -0
  41. package/node_modules/@juicesharp/rpiv-ask-user-question/docs/keyboard.md +3 -1
  42. package/node_modules/@juicesharp/rpiv-ask-user-question/docs/startup-performance.md +83 -0
  43. package/node_modules/@juicesharp/rpiv-ask-user-question/docs/tool-schema.md +74 -5
  44. package/node_modules/@juicesharp/rpiv-ask-user-question/events.ts +84 -0
  45. package/node_modules/@juicesharp/rpiv-ask-user-question/index.ts +10 -4
  46. package/node_modules/@juicesharp/rpiv-ask-user-question/package.json +4 -2
  47. package/node_modules/@juicesharp/rpiv-ask-user-question/presentation.ts +1 -1
  48. package/node_modules/@juicesharp/rpiv-ask-user-question/reconcile.ts +1 -1
  49. package/node_modules/@juicesharp/rpiv-ask-user-question/rpc-fallback.ts +5 -4
  50. package/node_modules/@juicesharp/rpiv-ask-user-question/state/build-questionnaire.ts +19 -19
  51. package/node_modules/@juicesharp/rpiv-ask-user-question/state/i18n-bridge.ts +1 -1
  52. package/node_modules/@juicesharp/rpiv-ask-user-question/state/key-router.ts +7 -4
  53. package/node_modules/@juicesharp/rpiv-ask-user-question/state/questionnaire-session.ts +10 -10
  54. package/node_modules/@juicesharp/rpiv-ask-user-question/state/row-intent.ts +2 -2
  55. package/node_modules/@juicesharp/rpiv-ask-user-question/state/selectors/contract.ts +6 -6
  56. package/node_modules/@juicesharp/rpiv-ask-user-question/state/selectors/derivations.ts +2 -2
  57. package/node_modules/@juicesharp/rpiv-ask-user-question/state/selectors/focus.ts +1 -1
  58. package/node_modules/@juicesharp/rpiv-ask-user-question/state/selectors/projections.ts +9 -9
  59. package/node_modules/@juicesharp/rpiv-ask-user-question/state/state-reducer.ts +5 -5
  60. package/node_modules/@juicesharp/rpiv-ask-user-question/state/state.ts +2 -2
  61. package/node_modules/@juicesharp/rpiv-ask-user-question/tool/external-answer.ts +125 -0
  62. package/node_modules/@juicesharp/rpiv-ask-user-question/tool/format-answer.ts +1 -1
  63. package/node_modules/@juicesharp/rpiv-ask-user-question/tool/normalize-params.ts +1 -1
  64. package/node_modules/@juicesharp/rpiv-ask-user-question/tool/response-envelope.ts +2 -2
  65. package/node_modules/@juicesharp/rpiv-ask-user-question/tool/types.ts +1 -1
  66. package/node_modules/@juicesharp/rpiv-ask-user-question/tool/validate-questionnaire.ts +1 -1
  67. package/node_modules/@juicesharp/rpiv-ask-user-question/view/component-binding.ts +4 -4
  68. package/node_modules/@juicesharp/rpiv-ask-user-question/view/components/multi-select-view.ts +4 -4
  69. package/node_modules/@juicesharp/rpiv-ask-user-question/view/components/option-list-view.ts +2 -2
  70. package/node_modules/@juicesharp/rpiv-ask-user-question/view/components/preview/markdown-content-cache.ts +3 -3
  71. package/node_modules/@juicesharp/rpiv-ask-user-question/view/components/preview/preview-block-renderer.ts +5 -5
  72. package/node_modules/@juicesharp/rpiv-ask-user-question/view/components/preview/preview-layout-decider.ts +3 -3
  73. package/node_modules/@juicesharp/rpiv-ask-user-question/view/components/preview/preview-pane.ts +10 -10
  74. package/node_modules/@juicesharp/rpiv-ask-user-question/view/components/submit-picker.ts +2 -2
  75. package/node_modules/@juicesharp/rpiv-ask-user-question/view/components/tab-bar.ts +1 -1
  76. package/node_modules/@juicesharp/rpiv-ask-user-question/view/components/wrapping-select.ts +1 -1
  77. package/node_modules/@juicesharp/rpiv-ask-user-question/view/dialog-builder.ts +9 -9
  78. package/node_modules/@juicesharp/rpiv-ask-user-question/view/dialog-copy.ts +1 -1
  79. package/node_modules/@juicesharp/rpiv-ask-user-question/view/props-adapter.ts +8 -8
  80. package/node_modules/@juicesharp/rpiv-ask-user-question/view/tab-components.ts +4 -4
  81. package/node_modules/@juicesharp/rpiv-ask-user-question/view/tab-content-strategy.ts +10 -10
  82. package/node_modules/@narumitw/pi-btw/README.md +14 -5
  83. package/node_modules/@narumitw/pi-btw/dist/index.ts +1067 -557
  84. package/node_modules/@narumitw/pi-btw/dist/index.ts.map +4 -4
  85. package/node_modules/@narumitw/pi-btw/docs/core-alignment.md +277 -0
  86. package/node_modules/@narumitw/pi-btw/docs/native-appearance.md +857 -0
  87. package/node_modules/@narumitw/pi-btw/docs/workflows.md +34 -13
  88. package/node_modules/@narumitw/pi-btw/package.json +4 -4
  89. package/node_modules/@narumitw/pi-btw/src/btw.ts +152 -108
  90. package/node_modules/@narumitw/pi-btw/src/conversation-chrome.ts +93 -0
  91. package/node_modules/@narumitw/pi-btw/src/fullscreen-renderer.ts +329 -0
  92. package/node_modules/@narumitw/pi-btw/src/fullscreen-ui.ts +109 -309
  93. package/node_modules/@narumitw/pi-btw/src/keybindings.ts +101 -23
  94. package/node_modules/@narumitw/pi-btw/src/menu.ts +42 -27
  95. package/node_modules/@narumitw/pi-btw/src/session-lifetime.ts +66 -0
  96. package/node_modules/@narumitw/pi-btw/src/transcript-pager.ts +366 -164
  97. package/node_modules/@narumitw/pi-btw/src/workspace-layout.ts +96 -36
  98. package/node_modules/@narumitw/pi-caffeinate/dist/index.ts +1 -0
  99. package/node_modules/@narumitw/pi-caffeinate/dist/index.ts.map +2 -2
  100. package/node_modules/@narumitw/pi-caffeinate/package.json +3 -3
  101. package/node_modules/@narumitw/pi-caffeinate/src/inhibitor-process.ts +1 -0
  102. package/node_modules/pi-antigravity/README.md +6 -2
  103. package/node_modules/pi-antigravity/package.json +2 -2
  104. package/node_modules/pi-antigravity/src/client/client.ts +44 -52
  105. package/node_modules/pi-antigravity/src/index.ts +13 -0
  106. package/node_modules/pi-antigravity/src/models/discovery.ts +25 -2
  107. package/node_modules/pi-antigravity/src/models/grouping.ts +107 -68
  108. package/node_modules/pi-antigravity/src/models/models.ts +10 -0
  109. package/node_modules/pi-antigravity/src/search/search.ts +581 -43
  110. package/node_modules/pi-antigravity/src/stream/stream.ts +53 -13
  111. package/node_modules/pi-antigravity/src/types/types.ts +13 -0
  112. package/node_modules/pi-antigravity/src/usage/usage.ts +11 -3
  113. package/node_modules/pi-lens/CHANGELOG.md +281 -0
  114. package/node_modules/pi-lens/README.md +13 -1
  115. package/node_modules/pi-lens/dist/{chunk-SS36ZX4J.js → chunk-24AKHFGP.js} +6 -6
  116. package/node_modules/pi-lens/dist/{chunk-JSQFTSC6.js → chunk-2FN63LPV.js} +11 -11
  117. package/node_modules/pi-lens/dist/{chunk-5UCAH366.js → chunk-2KXTHF3M.js} +20 -20
  118. package/node_modules/pi-lens/dist/{chunk-EU63SDCG.js → chunk-3DA2JDOL.js} +367 -281
  119. package/node_modules/pi-lens/dist/{chunk-RWWYJ623.js → chunk-3KAZU3VR.js} +1 -1
  120. package/node_modules/pi-lens/dist/chunk-3PTHXJXR.js +28 -0
  121. package/node_modules/pi-lens/dist/chunk-3QED2P4V.js +31 -0
  122. package/node_modules/pi-lens/dist/{chunk-N2H3ZPZY.js → chunk-3RKP3FMS.js} +1 -0
  123. package/node_modules/pi-lens/dist/{chunk-XVF2VVXP.js → chunk-5HSRT26B.js} +2 -2
  124. package/node_modules/pi-lens/dist/{chunk-MXGY6KPT.js → chunk-5IUSNGOC.js} +15 -15
  125. package/node_modules/pi-lens/dist/{chunk-EJIUXPBX.js → chunk-5OFV52AM.js} +1 -1
  126. package/node_modules/pi-lens/dist/{chunk-AW7R2GWG.js → chunk-5VSF4UUQ.js} +12 -7
  127. package/node_modules/pi-lens/dist/{chunk-6STA6Z7I.js → chunk-5WRPDP2A.js} +18 -18
  128. package/node_modules/pi-lens/dist/{chunk-YIUAVF7E.js → chunk-6DLWKFEX.js} +35 -34
  129. package/node_modules/pi-lens/dist/{chunk-WOA4LN2R.js → chunk-7D6L4MTX.js} +2 -2
  130. package/node_modules/pi-lens/dist/{chunk-GAEGEPOC.js → chunk-7HXE67BN.js} +2 -2
  131. package/node_modules/pi-lens/dist/chunk-AGSS7277.js +84 -0
  132. package/node_modules/pi-lens/dist/{chunk-R3PCY3YS.js → chunk-AMERCH6V.js} +13 -13
  133. package/node_modules/pi-lens/dist/{chunk-WU567RSC.js → chunk-ATKJFDQN.js} +14 -10
  134. package/node_modules/pi-lens/dist/{chunk-VSSBEUFT.js → chunk-AWSCPCN2.js} +16 -16
  135. package/node_modules/pi-lens/dist/{chunk-VCHXCQFG.js → chunk-BWD5EPKO.js} +3 -3
  136. package/node_modules/pi-lens/dist/{chunk-H6MF6EVN.js → chunk-CT4MN5IU.js} +1200 -230
  137. package/node_modules/pi-lens/dist/{chunk-FCSOVF55.js → chunk-CUHSHSB6.js} +6 -6
  138. package/node_modules/pi-lens/dist/{chunk-CHOW74WE.js → chunk-CYRKQRPM.js} +7 -10
  139. package/node_modules/pi-lens/dist/{chunk-Q7DUK4LX.js → chunk-DEL2U6CM.js} +5 -5
  140. package/node_modules/pi-lens/dist/{chunk-6C7JWPCP.js → chunk-DGUKIYSI.js} +26 -23
  141. package/node_modules/pi-lens/dist/{chunk-PHDMFAKM.js → chunk-DUO2TU77.js} +2 -2
  142. package/node_modules/pi-lens/dist/{chunk-MRXKYPCS.js → chunk-EBC36LNN.js} +2 -2
  143. package/node_modules/pi-lens/dist/{chunk-CSHFH5IN.js → chunk-ED36RF6Y.js} +1 -1
  144. package/node_modules/pi-lens/dist/{chunk-76MWC2K6.js → chunk-EUXZEFTV.js} +90 -97
  145. package/node_modules/pi-lens/dist/{chunk-QOZXJ4NA.js → chunk-FM4RDMKT.js} +11 -8
  146. package/node_modules/pi-lens/dist/{chunk-ACXEQZOU.js → chunk-GAQ7OQG6.js} +31 -28
  147. package/node_modules/pi-lens/dist/{chunk-XAGLWMJ4.js → chunk-GL5LUMZE.js} +23 -23
  148. package/node_modules/pi-lens/dist/{chunk-BKE7E7TC.js → chunk-GMX5OS7B.js} +9 -9
  149. package/node_modules/pi-lens/dist/{chunk-ZHFZWTZV.js → chunk-GSLNCYGG.js} +11 -11
  150. package/node_modules/pi-lens/dist/{chunk-3W7IEVVL.js → chunk-GSM5UU7A.js} +26 -34
  151. package/node_modules/pi-lens/dist/{chunk-724UL2TJ.js → chunk-GXFV6MYU.js} +3 -3
  152. package/node_modules/pi-lens/dist/chunk-HAD7QRQI.js +30 -0
  153. package/node_modules/pi-lens/dist/{chunk-QOBUHWHX.js → chunk-HRNHZA3N.js} +6 -6
  154. package/node_modules/pi-lens/dist/{chunk-VWCXW2E7.js → chunk-HWCCCQNX.js} +1 -1
  155. package/node_modules/pi-lens/dist/{chunk-7DYBLXYA.js → chunk-HYGZEMX6.js} +3 -3
  156. package/node_modules/pi-lens/dist/chunk-IJYGIDF4.js +186 -0
  157. package/node_modules/pi-lens/dist/{chunk-4W4VLAPJ.js → chunk-IQWN5JCP.js} +11 -11
  158. package/node_modules/pi-lens/dist/{chunk-SQ4TVJBR.js → chunk-IUE7SSKV.js} +7 -7
  159. package/node_modules/pi-lens/dist/{chunk-IBGIOBEE.js → chunk-IWDLU6K3.js} +68 -5
  160. package/node_modules/pi-lens/dist/{chunk-XCJN5IJU.js → chunk-IYNJ6YPZ.js} +4 -4
  161. package/node_modules/pi-lens/dist/{chunk-JAU72XNY.js → chunk-J64T55EI.js} +3 -3
  162. package/node_modules/pi-lens/dist/{chunk-2BBLFX75.js → chunk-J6MPGQTS.js} +5 -5
  163. package/node_modules/pi-lens/dist/chunk-JORED7EX.js +44 -0
  164. package/node_modules/pi-lens/dist/{chunk-6SDEP3AJ.js → chunk-JUKMK5Y4.js} +8 -8
  165. package/node_modules/pi-lens/dist/{chunk-FMSO6RDZ.js → chunk-JW3YWBVB.js} +15 -15
  166. package/node_modules/pi-lens/dist/{chunk-L3BLXZG7.js → chunk-KAPJINKN.js} +30 -69
  167. package/node_modules/pi-lens/dist/{chunk-2B73ZPOK.js → chunk-KN35K52N.js} +3 -3
  168. package/node_modules/pi-lens/dist/{chunk-C34ZXZ7O.js → chunk-KUA4OJ5Y.js} +24 -11
  169. package/node_modules/pi-lens/dist/chunk-KYUB6QDC.js +72 -0
  170. package/node_modules/pi-lens/dist/{chunk-67WMNWEE.js → chunk-LLJNQKQW.js} +12 -10
  171. package/node_modules/pi-lens/dist/chunk-LZSEQW6A.js +57 -0
  172. package/node_modules/pi-lens/dist/{chunk-ZANLILYD.js → chunk-M2IFVFWU.js} +2 -2
  173. package/node_modules/pi-lens/dist/chunk-M2UD3LPU.js +88 -0
  174. package/node_modules/pi-lens/dist/{chunk-XIJZVPD5.js → chunk-MBKQHGA7.js} +15 -15
  175. package/node_modules/pi-lens/dist/{chunk-P7266HLM.js → chunk-MPNJLASA.js} +2 -2
  176. package/node_modules/pi-lens/dist/{chunk-6GFRNVYR.js → chunk-MZGQNL3Y.js} +10 -10
  177. package/node_modules/pi-lens/dist/{chunk-ZWFS3OEF.js → chunk-N5FLEO7W.js} +33 -32
  178. package/node_modules/pi-lens/dist/{chunk-3JNKMP3B.js → chunk-O4NWQT6I.js} +4 -4
  179. package/node_modules/pi-lens/dist/{chunk-T6CPIZNT.js → chunk-OHKJ7PQF.js} +33 -32
  180. package/node_modules/pi-lens/dist/{chunk-VRZP76YM.js → chunk-P63GXC37.js} +4 -1
  181. package/node_modules/pi-lens/dist/{chunk-XTMJ7XDT.js → chunk-POMLXPMY.js} +1 -1
  182. package/node_modules/pi-lens/dist/{chunk-QQNQ7SJW.js → chunk-QBFBRV2B.js} +10 -4
  183. package/node_modules/pi-lens/dist/{chunk-CMMHNUZ2.js → chunk-R3T7CLQ2.js} +60 -38
  184. package/node_modules/pi-lens/dist/{chunk-23WOO7TX.js → chunk-R7YOCSNV.js} +10 -10
  185. package/node_modules/pi-lens/dist/{chunk-2CD5RS6M.js → chunk-RKBXZN3A.js} +23 -2
  186. package/node_modules/pi-lens/dist/{chunk-OCAGUNBC.js → chunk-RKKOYPRA.js} +12 -12
  187. package/node_modules/pi-lens/dist/{chunk-52FUZI6K.js → chunk-RMLC67LF.js} +1 -1
  188. package/node_modules/pi-lens/dist/{chunk-XMSXXAHW.js → chunk-ROYSX2S5.js} +2 -2
  189. package/node_modules/pi-lens/dist/{chunk-M6HSLBWY.js → chunk-RVK72CZX.js} +6507 -7514
  190. package/node_modules/pi-lens/dist/{chunk-FLKWCIZH.js → chunk-S2HEXIWI.js} +5 -5
  191. package/node_modules/pi-lens/dist/{chunk-UZ3TUTRV.js → chunk-S67KYG37.js} +1 -1
  192. package/node_modules/pi-lens/dist/{chunk-VCO24T4L.js → chunk-SD4I7ZO4.js} +14 -14
  193. package/node_modules/pi-lens/dist/{chunk-Z527N6YQ.js → chunk-SKAMFC7A.js} +12 -12
  194. package/node_modules/pi-lens/dist/{chunk-MQLUAEOC.js → chunk-SRYEJNES.js} +2 -2
  195. package/node_modules/pi-lens/dist/{chunk-BRGDSBJE.js → chunk-SYE6T2EB.js} +12 -12
  196. package/node_modules/pi-lens/dist/{chunk-GXW6K4YJ.js → chunk-T57LYLZT.js} +1 -1
  197. package/node_modules/pi-lens/dist/{chunk-ZXYDQ3TZ.js → chunk-T7FEBKXN.js} +48 -15
  198. package/node_modules/pi-lens/dist/{chunk-3EFKIGZN.js → chunk-TIQ2PKDW.js} +3 -3
  199. package/node_modules/pi-lens/dist/{chunk-QILIYSJF.js → chunk-TLX72JTG.js} +1 -1
  200. package/node_modules/pi-lens/dist/{chunk-TYM6OUIT.js → chunk-TOY6QKOH.js} +12 -12
  201. package/node_modules/pi-lens/dist/{chunk-IZSHAIJ7.js → chunk-TRETHTQO.js} +12 -12
  202. package/node_modules/pi-lens/dist/{chunk-3VPVG5SU.js → chunk-U44DJXQP.js} +10 -6
  203. package/node_modules/pi-lens/dist/{chunk-PNQDPDRC.js → chunk-UA7ZXYDR.js} +1 -1
  204. package/node_modules/pi-lens/dist/{chunk-OXXKQCSV.js → chunk-UBOQLVT2.js} +4 -4
  205. package/node_modules/pi-lens/dist/{chunk-QGQ5CCCG.js → chunk-UMS2MFPZ.js} +2 -2
  206. package/node_modules/pi-lens/dist/{chunk-QHJ6DQ2R.js → chunk-US7ECLD7.js} +55 -13
  207. package/node_modules/pi-lens/dist/{chunk-AB3YYG6N.js → chunk-UZ2XCLYS.js} +8 -8
  208. package/node_modules/pi-lens/dist/chunk-V35JG4JB.js +2667 -0
  209. package/node_modules/pi-lens/dist/{chunk-N3X6Q4YT.js → chunk-VOOAPROD.js} +3 -3
  210. package/node_modules/pi-lens/dist/{chunk-SAEFPSB6.js → chunk-W66O5E25.js} +21 -11
  211. package/node_modules/pi-lens/dist/{chunk-KBG47GHP.js → chunk-WMYE35PX.js} +15 -11
  212. package/node_modules/pi-lens/dist/{chunk-5NGR67U5.js → chunk-XBJVAEEO.js} +32 -5
  213. package/node_modules/pi-lens/dist/{chunk-YYOIQFRS.js → chunk-XHJBS436.js} +122 -44
  214. package/node_modules/pi-lens/dist/{chunk-GBPP5P7X.js → chunk-XTBDCR27.js} +4 -4
  215. package/node_modules/pi-lens/dist/{chunk-4UNXBNE2.js → chunk-XTFDJI3T.js} +11 -11
  216. package/node_modules/pi-lens/dist/{chunk-UXGETRP4.js → chunk-XYURS6EN.js} +13 -12
  217. package/node_modules/pi-lens/dist/{chunk-RPLINGVB.js → chunk-Y6GZHWSJ.js} +6 -6
  218. package/node_modules/pi-lens/dist/{chunk-2VUQMUMT.js → chunk-YCWYO6TQ.js} +41 -38
  219. package/node_modules/pi-lens/dist/{chunk-77M37OKR.js → chunk-YH5MVY2U.js} +7 -7
  220. package/node_modules/pi-lens/dist/{chunk-AOHZU2BM.js → chunk-YNE3RP52.js} +1 -1
  221. package/node_modules/pi-lens/dist/{chunk-YSZNHOBY.js → chunk-ZHH37KZL.js} +12 -12
  222. package/node_modules/pi-lens/dist/{chunk-ZGDGW2V3.js → chunk-ZIVJBOO3.js} +2 -2
  223. package/node_modules/pi-lens/dist/{chunk-RXCOMYPY.js → chunk-ZVUL7QYY.js} +29 -28
  224. package/node_modules/pi-lens/dist/index.js +11052 -5852
  225. package/node_modules/pi-lens/dist/mcp/analyze-cli.js +10 -9
  226. package/node_modules/pi-lens/dist/mcp/cli.js +41 -38
  227. package/node_modules/pi-lens/dist/mcp/server.js +1120 -474
  228. package/node_modules/pi-lens/dist/mcp/worker.js +61 -58
  229. package/node_modules/pi-lens/dist/probes/installer.js +19 -19
  230. package/node_modules/pi-lens/dist/workers/project-snapshot-persist-worker.js +28 -9
  231. package/node_modules/pi-lens/dist/workers/review-graph-persist-worker.js +1 -1
  232. package/node_modules/pi-lens/docs/configuration.md +11 -0
  233. package/node_modules/pi-lens/docs/engineering-principles.md +32 -0
  234. package/node_modules/pi-lens/docs/lsp-capability-matrix.md +1 -1
  235. package/node_modules/pi-lens/docs/lsp-idle-eviction.md +15 -26
  236. package/node_modules/pi-lens/docs/pi-lens-fixer.md +117 -13
  237. package/node_modules/pi-lens/docs/pi-lens-merge-policy.md +97 -7
  238. package/node_modules/pi-lens/docs/pi-lens-monitor.md +8 -2
  239. package/node_modules/pi-lens/docs/pi-lens-retro.md +4 -1
  240. package/node_modules/pi-lens/docs/pi-lens-reviewer.md +112 -4
  241. package/node_modules/pi-lens/docs/pi-lens-subagent.md +22 -14
  242. package/node_modules/pi-lens/docs/release-qa-baseline.md +3 -1
  243. package/node_modules/pi-lens/docs/servercapabilities.md +9 -19
  244. package/node_modules/pi-lens/package.json +7 -5
  245. package/node_modules/pi-lens/scripts/download-grammars.js +40 -7
  246. package/node_modules/pi-lens/scripts/lib/latency-log-phases.mjs +95 -0
  247. package/node_modules/pi-lens/scripts/rpc-load-check.mjs +570 -81
  248. package/node_modules/pi-provider-qoder/dist/index.js +323 -154
  249. package/node_modules/pi-provider-qoder/package.json +1 -1
  250. package/node_modules/pi-web-access/CHANGELOG.md +60 -0
  251. package/node_modules/pi-web-access/README.md +96 -10
  252. package/node_modules/pi-web-access/anysearch.ts +4 -3
  253. package/node_modules/pi-web-access/bocha.ts +4 -3
  254. package/node_modules/pi-web-access/brightdata-unlocker.ts +3 -2
  255. package/node_modules/pi-web-access/brightdata.ts +4 -3
  256. package/node_modules/pi-web-access/ceramic.ts +3 -2
  257. package/node_modules/pi-web-access/credential-source.ts +54 -4
  258. package/node_modules/pi-web-access/curator-page.ts +5 -1
  259. package/node_modules/pi-web-access/curator-server.ts +2 -0
  260. package/node_modules/pi-web-access/deepseek.ts +377 -0
  261. package/node_modules/pi-web-access/dist/index.js +1463 -748
  262. package/node_modules/pi-web-access/dist/mcp-cli.js +1393 -717
  263. package/node_modules/pi-web-access/extract.ts +58 -6
  264. package/node_modules/pi-web-access/gemini-adc.ts +48 -1
  265. package/node_modules/pi-web-access/gemini-search.ts +33 -6
  266. package/node_modules/pi-web-access/index.ts +36 -4
  267. package/node_modules/pi-web-access/jina-search.ts +6 -4
  268. package/node_modules/pi-web-access/kagi.ts +5 -4
  269. package/node_modules/pi-web-access/keenable.ts +3 -2
  270. package/node_modules/pi-web-access/linkup.ts +170 -0
  271. package/node_modules/pi-web-access/mistral-search.ts +4 -3
  272. package/node_modules/pi-web-access/ollama.ts +5 -4
  273. package/node_modules/pi-web-access/package.json +1 -1
  274. package/node_modules/pi-web-access/page-query.ts +12 -6
  275. package/node_modules/pi-web-access/parallel.ts +7 -7
  276. package/node_modules/pi-web-access/perplexity.ts +5 -3
  277. package/node_modules/pi-web-access/querit.ts +4 -3
  278. package/node_modules/pi-web-access/query-rewrite.ts +16 -13
  279. package/node_modules/pi-web-access/search1api.ts +4 -3
  280. package/node_modules/pi-web-access/searchinfinity.ts +4 -3
  281. package/node_modules/pi-web-access/serpapi.ts +7 -5
  282. package/node_modules/pi-web-access/serpbase.ts +5 -4
  283. package/node_modules/pi-web-access/serpdive.ts +4 -3
  284. package/node_modules/pi-web-access/serper.ts +6 -4
  285. package/node_modules/pi-web-access/serply.ts +3 -2
  286. package/node_modules/pi-web-access/summary-review.ts +16 -6
  287. package/node_modules/pi-web-access/utils.ts +27 -1
  288. package/node_modules/pi-web-access/valyu.ts +4 -3
  289. package/node_modules/pi-web-access/web-tool-core.ts +7 -0
  290. package/node_modules/pi-web-access/xai-search.ts +49 -7
  291. package/node_modules/pi-web-access/xcrawl.ts +4 -3
  292. package/node_modules/pi-web-access/you.ts +3 -2
  293. package/package.json +15 -15
  294. package/node_modules/pi-lens/dist/chunk-3YN6V5TV.js +0 -85
  295. package/node_modules/pi-lens/dist/chunk-466Z26MG.js +0 -30
  296. package/node_modules/pi-lens/dist/chunk-EC47DWFA.js +0 -56
  297. package/node_modules/pi-lens/dist/chunk-KDERNTCQ.js +0 -28
  298. package/node_modules/pi-lens/dist/chunk-KSX3TXSZ.js +0 -69
  299. package/node_modules/pi-lens/dist/chunk-LOP6GRPH.js +0 -31
  300. package/node_modules/pi-lens/dist/chunk-UOPVJQ4N.js +0 -103
  301. /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 24 or newer and Pi 1.2.0 or newer.
11
+ Requires Node.js 22.19.0 or newer and Pi 1.2.0 or newer.
12
12
 
13
13
  ## Native MCP
14
14
 
@@ -20,12 +20,12 @@ When migrating from `pi-mcp-adapter`, remove any standalone adapter install as w
20
20
 
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
- - `pi-antigravity@0.10.0`
24
- - `pi-provider-qoder@0.6.1`
23
+ - `pi-antigravity@0.11.0`
24
+ - `pi-provider-qoder@0.6.2`
25
25
  - `@dietrichgebert/ponytail@5.3.2`
26
- - `@juicesharp/rpiv-ask-user-question@2.13.8`
27
- - `@narumitw/pi-btw@0.61.1`
28
- - `@narumitw/pi-caffeinate@0.49.11`
26
+ - `@juicesharp/rpiv-ask-user-question@2.13.9`
27
+ - `@narumitw/pi-btw@0.62.0`
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`
31
31
  - `@tifan/pi-handoff@2.2.2`
@@ -36,12 +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.3`
40
- - `pi-web-access@0.41.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 and SoL-Pi packages now follow complete upstream baselines `pi-cc-extensions@1.0.7` and SoL-Pi main `e1a586af`, with local behavior replayed on top. 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.
44
+ The locally customized CC package follows upstream `pi-cc-extensions@1.0.8`; 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
+
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.
45
47
 
46
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.
47
49
 
@@ -53,11 +55,11 @@ Ponytail `5.3.2` updates the Pi skill guidance, including how to turn it off. It
53
55
 
54
56
  `@herbertgao/pi-bark` sends localized Bark pushes when a user-facing Pi run fully settles or `@juicesharp/rpiv-ask-user-question` needs an answer. Notifications include emoji-labeled machine/path metadata and support the bundled official Pi badge through Bark's `icon` parameter. Configure it in `$PI_CODING_AGENT_DIR/bark.json` (normally `~/.pi/agent/bark.json`); see the [package README](../pi-bark/README.md). Without a valid endpoint it stays inactive.
55
57
 
56
- `@narumitw/pi-caffeinate@0.49.11` uses the host platform's sleep inhibitor during each Pi agent run. On macOS, `/caffeinate sleep` keeps the system awake while allowing the display to sleep; `/caffeinate display` also keeps the display awake. It releases the inhibitor when the run or session ends. Its D-Bus dependency remains on the normal socket transport under Node; Bun on Linux/macOS can use FFI and an in-process reader thread for Unix file-descriptor transport, falling back when unavailable. No daemon or build step is added.
58
+ `@narumitw/pi-caffeinate@0.49.12` uses the host platform's sleep inhibitor during each Pi agent run. On macOS, `/caffeinate sleep` keeps the system awake while allowing the display to sleep; `/caffeinate display` also keeps the display awake. It releases the inhibitor when the run or session ends. Its D-Bus dependency remains on the normal socket transport under Node; Bun on Linux/macOS can use FFI and an in-process reader thread for Unix file-descriptor transport, falling back when unavailable. No daemon or build step is added.
57
59
 
58
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).
59
61
 
60
- `@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.3` 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. `pi-web-access@0.40.0` provides configurable web search and fetch tools; its `toolActivation` defaults to `auto`, choosing eager or dynamic tool activation per model. 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, and the new Ceramic provider are explicit-only, excluded from automatic and `all` selection. 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.10.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.5.1` 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.
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.
61
63
 
62
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.
63
65
 
@@ -36,7 +36,7 @@ THE SOFTWARE.
36
36
 
37
37
  ## `@narumitw/pi-caffeinate`
38
38
 
39
- The aggregate bundles [`@narumitw/pi-caffeinate`](https://github.com/narumiruna/pi-extensions/tree/main/packages/pi-caffeinate) version 0.49.11 under its original MIT license:
39
+ The aggregate bundles [`@narumitw/pi-caffeinate`](https://github.com/narumiruna/pi-extensions/tree/main/packages/pi-caffeinate) version 0.49.12 under its original MIT license:
40
40
 
41
41
  MIT License
42
42
 
@@ -86,7 +86,7 @@ THE SOFTWARE.
86
86
 
87
87
  ## `pi-antigravity`
88
88
 
89
- The aggregate bundles the MIT-licensed [`pi-antigravity`](https://github.com/Rahularya01/pi-antigravity) package version 0.10.0 under its original attribution:
89
+ The aggregate bundles the MIT-licensed [`pi-antigravity`](https://github.com/Rahularya01/pi-antigravity) package version 0.11.0 under its original attribution:
90
90
 
91
91
  MIT License
92
92
 
@@ -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.1 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 [`340036ccdb14646820b48dec412c53f1cf639afe`](https://github.com/simonsmh/pi-provider-qoder/commit/340036ccdb14646820b48dec412c53f1cf639afe).
166
+ The aggregate bundles [`pi-provider-qoder`](https://github.com/simonsmh/pi-provider-qoder) version 0.6.2 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 [`9764217c0c2c8db9f442b87e045153a11a6dfb1c`](https://github.com/simonsmh/pi-provider-qoder/commit/9764217c0c2c8db9f442b87e045153a11a6dfb1c).
@@ -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
- - `record_dir` must be absolute. 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.
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
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@herbertgao/pi-agency",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Search the Agency Agents catalog and dispatch its personas to Pi subagents without loading them into context.",
5
5
  "keywords": [
6
6
  "agency-agents",
@@ -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; read a persona file only if its card is not enough.",
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) => `- ${card.path} — ${card.name}: ${card.description}`,
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. Results include the SHA-256 of each sent prompt; `record_dir` also saves <id>.prompt.txt and <id>.return.txt and never overwrites. Defaults: subagent_type general-purpose, isolated true (built-in tools only).",
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 and agency_dispatch instead of listing the catalog or reading persona files into context.",
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(Type.Integer({ minimum: 1 })),
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 …\n\n".
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 {
@@ -98,6 +98,8 @@ Renderer snapshots for `on` / `compact` modes: [default](./docs/tool-render-exam
98
98
 
99
99
  > [!TIP]
100
100
  > **Fullscreen**: click `click to show more` to expand tool cards, thinking, Skill, and compact summaries. An expanded diff always shows every line; when expanded Input/Output exceeds the line cap, the footer `… +N more lines · click to show more` opens a full preview. Click to collapse.
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.
101
103
 
102
104
  > [!NOTE]
103
105
  > **Mermaid rendering**: set `markdown.mermaid` to `final` via `~/.pi/agent/settings.json` or the Mermaid diagrams option in `/settings`. Default `streaming` redraws per frame; `final` renders once at completion.
@@ -126,6 +128,7 @@ pi -e . # one run, does not edit settings.json
126
128
 
127
129
  ## Credits
128
130
 
131
+ - Based on [`minuque/pi-cc-extensions`](https://github.com/minuque/pi-cc-extensions) 1.0.8 (MIT), upstream baseline [`2cb2c1e`](https://github.com/minuque/pi-cc-extensions/commit/2cb2c1ec7240f183ff68cbab0ea6ae3239529f23), with this repository's configuration migration and compatibility patches retained.
129
132
  - 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).
130
133
 
131
134
  ## License
@@ -97,6 +97,8 @@ pi install git:github.com/HerbertGao/pi-extensions
97
97
 
98
98
  > [!TIP]
99
99
  > **全屏模式**:单击 `click to show more` 展开工具卡、思考、Skill 和 compact 摘要;工具卡展开态 diff 全量显示,Input/Output 超行时末行 `… +N more lines · click to show more` 打开全量预览,单击收起。
100
+ >
101
+ > `scrollButtonMode` 两种模式文案相同(`Back to bottom` / `N new message(s)`):`dock` 画在独占行,`native` 画在 Pi 原生浮层。
100
102
 
101
103
  > [!NOTE]
102
104
  > **Mermaid 渲染**:建议把 `markdown.mermaid` 设为 `final`(`~/.pi/agent/settings.json` 或 `/settings` 面板的 Mermaid diagrams 选项)。默认 `streaming` 逐帧重绘,`final` 渲染最终版更稳定。
@@ -125,6 +127,7 @@ pi -e . # 只跑一次,不改 settings.json
125
127
 
126
128
  ## 致谢
127
129
 
130
+ - 基于 [`minuque/pi-cc-extensions`](https://github.com/minuque/pi-cc-extensions) 1.0.8(MIT),上游基线 [`2cb2c1e`](https://github.com/minuque/pi-cc-extensions/commit/2cb2c1ec7240f183ff68cbab0ea6ae3239529f23);保留本仓库的配置迁移与兼容性补丁。
128
131
  - 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)。
129
132
 
130
133
  ## 许可证
@@ -66,7 +66,7 @@ export type Config = {
66
66
  showStartupHeader: boolean;
67
67
  /** fullscreen:userMessage 正文首行滚出视口上沿后钉住,直到下一条指令接手。 */
68
68
  stickyUserMessage: boolean;
69
- /** fullscreen 回到底部按钮:扩展 dock 行,或 Pi 原生浮层。 */
69
+ /** fullscreen 回到底部按钮:扩展 dock 行,或 Pi 原生浮层;两者文案相同。 */
70
70
  scrollButtonMode: ScrollButtonMode;
71
71
  enableSessionReference: boolean;
72
72
  enableSubagentAutocomplete: boolean;
@@ -605,11 +605,11 @@ export async function showCcstylePanel(
605
605
  };
606
606
  const scrollButtonSetting = {
607
607
  id: "scrollButtonMode",
608
- label: "Scroll to bottom",
608
+ label: "Scroll button mode",
609
609
  description:
610
610
  config.scrollButtonMode === "dock"
611
611
  ? "Fullscreen: show the extension's dedicated Back to bottom row."
612
- : "Fullscreen: use Pi's native floating Jump to latest overlay.",
612
+ : "Fullscreen: show the same Back to bottom text in Pi's native floating overlay.",
613
613
  currentValue: config.scrollButtonMode,
614
614
  values: [...SCROLL_BUTTON_MODES],
615
615
  };
@@ -1021,7 +1021,7 @@ export async function showCcstylePanel(
1021
1021
  scrollButtonSetting.description =
1022
1022
  config.scrollButtonMode === "dock"
1023
1023
  ? "Fullscreen: show the extension's dedicated Back to bottom row."
1024
- : "Fullscreen: use Pi's native floating Jump to latest overlay.";
1024
+ : "Fullscreen: show the same Back to bottom text in Pi's native floating overlay.";
1025
1025
  break;
1026
1026
  }
1027
1027
  case "showStartupHeader": {