@namzu/cli 53.1.0 → 53.2.0

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 (396) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/bin.js +1 -1
  3. package/dist/chunks/{acp-UVCLNIXU.js → acp-3FNB6MSI.js} +73 -60
  4. package/dist/chunks/acp-3FNB6MSI.js.map +6 -0
  5. package/dist/chunks/{activity-command-2QIWTUUB.js → activity-command-IBOJOCRF.js} +12 -12
  6. package/dist/chunks/{add-2YDEALUT.js → add-LYBL3IC7.js} +20 -20
  7. package/dist/chunks/{agent-IKQ67NMW.js → agent-LTLWJW3P.js} +42 -41
  8. package/dist/chunks/agent-session-BD2AHK5S.js +77 -0
  9. package/dist/chunks/{apply-at-exit-F4G7PCZL.js → apply-at-exit-7BF3KBU2.js} +8 -8
  10. package/dist/chunks/{archive-FOTYHQPL.js → archive-FCPUCOYT.js} +10 -10
  11. package/dist/chunks/{bin-main-DWOCG2WK.js → bin-main-AVPCWJHJ.js} +9 -9
  12. package/dist/chunks/{binding-2GEVBR5H.js → binding-OZCOSUYV.js} +3 -3
  13. package/dist/chunks/{browser-WYPSIPEZ.js → browser-LR25NVO7.js} +6 -6
  14. package/dist/chunks/{chat-LWVIDEXR.js → chat-PP7XU7US.js} +15 -15
  15. package/dist/chunks/{chunk-5F4SSZKS.js → chunk-2KNLSJFS.js} +2 -2
  16. package/dist/chunks/{chunk-FWTWILCD.js → chunk-2O6LZGGG.js} +2 -2
  17. package/dist/chunks/{chunk-6APCO6YC.js → chunk-32LCSSAN.js} +14 -14
  18. package/dist/chunks/{chunk-33WFG4C3.js → chunk-3Q42HHZM.js} +2 -2
  19. package/dist/chunks/{chunk-DTORDCJR.js → chunk-3WTIGIDA.js} +4 -4
  20. package/dist/chunks/{chunk-IOWYDR6H.js → chunk-4JBQTRTF.js} +59 -21
  21. package/dist/chunks/{chunk-IOWYDR6H.js.map → chunk-4JBQTRTF.js.map} +1 -1
  22. package/dist/chunks/{chunk-E7GZ5OXM.js → chunk-4KMFIIWV.js} +4 -4
  23. package/dist/chunks/{chunk-DHWD5YYD.js → chunk-4NVFHP23.js} +3 -3
  24. package/dist/chunks/{chunk-QPAWT3EG.js → chunk-4Q4J3KDG.js} +4 -4
  25. package/dist/chunks/{chunk-YVJVXTUS.js → chunk-4VB264C5.js} +10 -10
  26. package/dist/chunks/{chunk-6CXEEZLK.js → chunk-4VXS3UYL.js} +2 -2
  27. package/dist/chunks/{chunk-6NUQEVHG.js → chunk-5FEAC3G5.js} +9 -9
  28. package/dist/chunks/{chunk-QTPZCVPP.js → chunk-5HCZHDPA.js} +2 -2
  29. package/dist/chunks/{chunk-QBCGPM4E.js → chunk-5OAKUXE3.js} +2 -2
  30. package/dist/chunks/{chunk-3EEKLQXD.js → chunk-5YNAPIUZ.js} +3 -3
  31. package/dist/chunks/{chunk-VV2EHZOG.js → chunk-6SHOR62K.js} +3 -3
  32. package/dist/chunks/{chunk-PXA27JGJ.js → chunk-72IJ3FQU.js} +2 -2
  33. package/dist/chunks/{chunk-XTVF376M.js → chunk-AO4A56EG.js} +6 -6
  34. package/dist/chunks/{chunk-XODDL7OV.js → chunk-BFCUL4BW.js} +3 -3
  35. package/dist/chunks/{chunk-T3NIOUQJ.js → chunk-CKWDYYBE.js} +3 -3
  36. package/dist/chunks/{chunk-XLDFNUCV.js → chunk-CSBKGTBA.js} +4 -4
  37. package/dist/chunks/{chunk-NW6VBCCU.js → chunk-D3JJE6VZ.js} +3 -3
  38. package/dist/chunks/{chunk-ORCR5VST.js → chunk-DEEK2FOC.js} +2 -2
  39. package/dist/chunks/{chunk-DCMZYSON.js → chunk-DEH4YIDN.js} +4 -4
  40. package/dist/chunks/{chunk-CMHOQ62S.js → chunk-DSMBM5LQ.js} +2 -2
  41. package/dist/chunks/chunk-DZBCLR75.js +526 -0
  42. package/dist/chunks/chunk-DZBCLR75.js.map +6 -0
  43. package/dist/chunks/{chunk-GZNTRTD5.js → chunk-EC2F3CWT.js} +3 -3
  44. package/dist/chunks/{chunk-4ASCYXSH.js → chunk-EMXH2RJN.js} +3 -3
  45. package/dist/chunks/{chunk-XKIV3H62.js → chunk-EQGE25MQ.js} +6 -6
  46. package/dist/chunks/{chunk-5JQIGBBR.js → chunk-F2TXNDKC.js} +3 -3
  47. package/dist/chunks/{chunk-H7UZKOVC.js → chunk-FAWY4LRG.js} +4 -132
  48. package/dist/chunks/chunk-FAWY4LRG.js.map +6 -0
  49. package/dist/chunks/{chunk-TMOEYXPR.js → chunk-FK6WJQ5T.js} +5 -5
  50. package/dist/chunks/{chunk-MDY2IMVQ.js → chunk-FRADQASS.js} +2 -2
  51. package/dist/chunks/{chunk-RPXTYB22.js → chunk-FS7CUHOG.js} +2 -2
  52. package/dist/chunks/{chunk-G7LMPHZE.js → chunk-GFZFGTDZ.js} +2 -2
  53. package/dist/chunks/{chunk-QE5PQM5T.js → chunk-GXCOSOVM.js} +3 -3
  54. package/dist/chunks/{chunk-NIRQFXO6.js → chunk-HJJNIG33.js} +2 -2
  55. package/dist/chunks/{chunk-4EBZUUE4.js → chunk-HUDP4HTK.js} +3 -3
  56. package/dist/chunks/{chunk-QIDU76IF.js → chunk-IBPN346S.js} +2 -2
  57. package/dist/chunks/{chunk-3HJXXP6L.js → chunk-IERT7D34.js} +3 -3
  58. package/dist/chunks/{chunk-LC7SV2KM.js → chunk-IPAGLYU3.js} +2 -2
  59. package/dist/chunks/{chunk-MTY4XYDO.js → chunk-ISHCON5Z.js} +2 -2
  60. package/dist/chunks/{chunk-HFZLLEJS.js → chunk-J6I6MCWR.js} +2 -2
  61. package/dist/chunks/{chunk-FBRYV5YN.js → chunk-JFLX34FA.js} +3 -3
  62. package/dist/chunks/{chunk-C74LVDRC.js → chunk-JTEWIH66.js} +46 -4
  63. package/dist/chunks/chunk-JTEWIH66.js.map +6 -0
  64. package/dist/chunks/{chunk-RXUWYGFX.js → chunk-JXJIKAAE.js} +4 -4
  65. package/dist/chunks/{chunk-BLGPF6UL.js → chunk-K3QEZ7D7.js} +3 -3
  66. package/dist/chunks/{chunk-6RTDZGPO.js → chunk-KFWQSTT3.js} +2 -2
  67. package/dist/chunks/{chunk-LQJLTW2D.js → chunk-KHQAU33M.js} +2 -2
  68. package/dist/chunks/{chunk-RFGMOXA6.js → chunk-KNBFV3DC.js} +5 -5
  69. package/dist/chunks/{chunk-LRFRTQW7.js → chunk-L2Q7APTU.js} +2 -2
  70. package/dist/chunks/{chunk-S5R2E5TZ.js → chunk-LHZ632YK.js} +5 -5
  71. package/dist/chunks/{chunk-RVXJ5MYA.js → chunk-LQZIENWB.js} +7 -7
  72. package/dist/chunks/{chunk-2QMXCXZ2.js → chunk-LWYW2DAK.js} +5 -5
  73. package/dist/chunks/{chunk-3T5AX2PC.js → chunk-MKAQAKHE.js} +2 -2
  74. package/dist/chunks/{chunk-NJWQUZF2.js → chunk-MXJAJXE7.js} +2 -2
  75. package/dist/chunks/{chunk-PXJ2KPOI.js → chunk-MXR77LCX.js} +2 -2
  76. package/dist/chunks/{chunk-YLCMBXE3.js → chunk-NSGEVYJC.js} +3 -3
  77. package/dist/chunks/{chunk-NRGGICBE.js → chunk-O4GHSR2X.js} +2 -2
  78. package/dist/chunks/chunk-P3LYPSD6.js +137 -0
  79. package/dist/chunks/chunk-P3LYPSD6.js.map +6 -0
  80. package/dist/chunks/{chunk-LOUV4VZ6.js → chunk-PNEFIK4E.js} +4 -4
  81. package/dist/chunks/{chunk-UYAI6F3R.js → chunk-PTPVAPCA.js} +3 -3
  82. package/dist/chunks/{chunk-GD7VSTWZ.js → chunk-QXKCTJWO.js} +2 -2
  83. package/dist/chunks/{chunk-YNY6XL5T.js → chunk-SK3JQNO5.js} +2 -2
  84. package/dist/chunks/{chunk-UWYDZYCZ.js → chunk-SU5VBBRS.js} +10 -10
  85. package/dist/chunks/{chunk-AZHBCP6G.js → chunk-SWH4CAIH.js} +51 -42
  86. package/dist/chunks/chunk-SWH4CAIH.js.map +6 -0
  87. package/dist/chunks/{chunk-2Q2TPLYP.js → chunk-T2CHZ6V7.js} +3 -3
  88. package/dist/chunks/{chunk-VG6RBHI4.js → chunk-TE4MIRMA.js} +5 -5
  89. package/dist/chunks/{chunk-D5RO75LO.js → chunk-THOVK7I5.js} +6 -6
  90. package/dist/chunks/{chunk-EYAWI7KU.js → chunk-TIMEEDY6.js} +34 -32
  91. package/dist/chunks/chunk-TIMEEDY6.js.map +6 -0
  92. package/dist/chunks/{chunk-KXUKJLA2.js → chunk-TLTD26JG.js} +2 -2
  93. package/dist/chunks/{chunk-2CYBRCPH.js → chunk-TUEZKY7I.js} +4 -4
  94. package/dist/chunks/{chunk-ZYSTDBP7.js → chunk-U3IK5VKD.js} +5 -5
  95. package/dist/chunks/{chunk-6JKNPDZD.js → chunk-UUQY5P7K.js} +10 -10
  96. package/dist/chunks/{chunk-IW3XMMEN.js → chunk-VBRCNXMM.js} +4 -4
  97. package/dist/chunks/{chunk-WY6KOPIY.js → chunk-VI66HXJT.js} +9 -9
  98. package/dist/chunks/{chunk-XFVVJAI3.js → chunk-VQ5KK7YF.js} +79 -7
  99. package/dist/chunks/chunk-VQ5KK7YF.js.map +6 -0
  100. package/dist/chunks/{chunk-6KIXUAOC.js → chunk-VQCP7LOK.js} +3 -3
  101. package/dist/chunks/{chunk-MZURZ6P4.js → chunk-VTS2SVX6.js} +2 -2
  102. package/dist/chunks/{chunk-G4R65ULE.js → chunk-W5TE6NIA.js} +2 -2
  103. package/dist/chunks/{chunk-ABOV5CRT.js → chunk-WDY7OHLQ.js} +542 -197
  104. package/dist/chunks/chunk-WDY7OHLQ.js.map +6 -0
  105. package/dist/chunks/{chunk-UNZNPAW7.js → chunk-WV45Z5QQ.js} +2 -2
  106. package/dist/chunks/{chunk-P6OOW3RL.js → chunk-X44EPHHA.js} +2 -2
  107. package/dist/chunks/{chunk-NFKSV6UI.js → chunk-XFCFWWFK.js} +2 -2
  108. package/dist/chunks/{chunk-UNO2ZRXA.js → chunk-XGS5WUCQ.js} +12 -12
  109. package/dist/chunks/{chunk-MNMKHEMI.js → chunk-Y4MKRX73.js} +2 -2
  110. package/dist/chunks/{chunk-53UWPLAF.js → chunk-YCJOAIDG.js} +29 -7
  111. package/dist/chunks/{chunk-53UWPLAF.js.map → chunk-YCJOAIDG.js.map} +1 -1
  112. package/dist/chunks/{chunk-QP435RW7.js → chunk-YDGUEMBB.js} +4 -4
  113. package/dist/chunks/{chunk-7T6TX47O.js → chunk-YIZXVNUY.js} +3 -3
  114. package/dist/chunks/{chunk-URIGGSIK.js → chunk-YNBAVIQA.js} +2 -2
  115. package/dist/chunks/{chunk-EADNTGVW.js → chunk-YPLYAESJ.js} +3 -3
  116. package/dist/chunks/{chunk-7PDUMQ4M.js → chunk-ZH5MQMMF.js} +21 -21
  117. package/dist/chunks/{chunk-D7JY7KNY.js → chunk-ZI5FFFBJ.js} +3 -3
  118. package/dist/chunks/{chunk-L2AKMCV3.js → chunk-ZIRQSGOG.js} +4 -4
  119. package/dist/chunks/{chunk-5S7U5MFW.js → chunk-ZVLTZDC4.js} +3 -3
  120. package/dist/chunks/{chunk-F3GGSHY2.js → chunk-ZZK2BVEH.js} +285 -137
  121. package/dist/chunks/chunk-ZZK2BVEH.js.map +6 -0
  122. package/dist/chunks/{cli-runtime-33Z22SZM.js → cli-runtime-V2FI7PIQ.js} +13 -13
  123. package/dist/chunks/{commands-DLREWCNK.js → commands-R2LZBXLK.js} +5 -5
  124. package/dist/chunks/{cost-MJOM52FI.js → cost-PQWWLMOO.js} +3 -3
  125. package/dist/chunks/{crash-report-62LMID3V.js → crash-report-MY27ZDU6.js} +6 -6
  126. package/dist/chunks/{dist-TCKNCSZO.js → dist-3HCAPKP5.js} +2 -2
  127. package/dist/chunks/{dist-HA6ABMIV.js → dist-4RNVO224.js} +2 -2
  128. package/dist/chunks/{dist-XFBNYCQ7.js → dist-7A7PB34A.js} +2 -2
  129. package/dist/chunks/{dist-MTYIYUQU.js → dist-MSFQTEPK.js} +2 -2
  130. package/dist/chunks/{dist-NUPNUHXB.js → dist-MT3MTMRF.js} +4 -2
  131. package/dist/chunks/{dist-U7A47UOF.js → dist-PH7MWV7K.js} +2 -2
  132. package/dist/chunks/{dist-HWU5U4SQ.js → dist-TIMUM4OR.js} +2 -2
  133. package/dist/chunks/{dist-IL4H4QGY.js → dist-Y4Q4SXRE.js} +2 -2
  134. package/dist/chunks/{doctor-V5C6R5EN.js → doctor-JRVQJERE.js} +40 -39
  135. package/dist/chunks/{drain-CS7XQ5B7.js → drain-YOE55I26.js} +12 -12
  136. package/dist/chunks/{entry-HXLBVNDK.js → entry-QAXRBCG3.js} +6 -6
  137. package/dist/chunks/{eval-NRBZ4IWO.js → eval-UPNYQIHO.js} +8 -8
  138. package/dist/chunks/{exec-GCNNTGHM.js → exec-LLOKYQZY.js} +53 -53
  139. package/dist/chunks/{home-GP3Y7F5H.js → home-7TSSDRFT.js} +3 -3
  140. package/dist/chunks/hooks-JNM3P24H.js +210 -0
  141. package/dist/chunks/hooks-JNM3P24H.js.map +6 -0
  142. package/dist/chunks/hooks-report-GGRTQH23.js +39 -0
  143. package/dist/chunks/{host-C5GIO57R.js → host-M2CYP3TP.js} +12 -12
  144. package/dist/chunks/{host-queries-F5Y3L7E4.js → host-queries-L7P5FQ36.js} +15 -15
  145. package/dist/chunks/{learn-5FEP65D6.js → learn-CBIMGXXS.js} +11 -11
  146. package/dist/chunks/{learn-builtin-HV3ASHAJ.js → learn-builtin-UHGQ6CNQ.js} +14 -14
  147. package/dist/chunks/{lifecycle-TMZEWFWF.js → lifecycle-NJGOR77O.js} +30 -30
  148. package/dist/chunks/{list-MD6ZN2PW.js → list-QZUWOS4I.js} +13 -13
  149. package/dist/chunks/{live-OVTHCQB3.js → live-LHKUQFEO.js} +38 -37
  150. package/dist/chunks/{load-ADBRLXAL.js → load-LF7GZYTP.js} +10 -8
  151. package/dist/chunks/{login-RV3AHE4C.js → login-F4NOOGD5.js} +12 -12
  152. package/dist/chunks/{logs-6SBW5BWD.js → logs-6CJCV6YU.js} +4 -4
  153. package/dist/chunks/{mcp-3QDMZ7PD.js → mcp-C7FQLLXL.js} +23 -23
  154. package/dist/chunks/{message-command-TW57Q7AB.js → message-command-BJPPVBGT.js} +48 -47
  155. package/dist/chunks/message-command-BJPPVBGT.js.map +6 -0
  156. package/dist/chunks/{open-K4R6E6QJ.js → open-GLWFBW4C.js} +8 -8
  157. package/dist/chunks/{operator-tools-YX4575HD.js → operator-tools-KQV2T5UU.js} +13 -13
  158. package/dist/chunks/{output-schema-QBKJSX77.js → output-schema-XXKTMSU6.js} +3 -3
  159. package/dist/chunks/{pal-KLH2IC3W.js → pal-4OZ7KPSC.js} +15 -15
  160. package/dist/chunks/{peers-5BMGZLHY.js → peers-4DMT2KZ2.js} +9 -9
  161. package/dist/chunks/{peers-6F4JS4VL.js → peers-SMOALKZW.js} +6 -6
  162. package/dist/chunks/{plugin-T6ULGX5N.js → plugin-IDW4AYIK.js} +20 -20
  163. package/dist/chunks/{providers-YJVPCIRI.js → providers-7HLI5PWI.js} +10 -10
  164. package/dist/chunks/{pty-UMMMCRJW.js → pty-SQBYCAX4.js} +3 -3
  165. package/dist/chunks/resume-2HBHZF54.js +23 -0
  166. package/dist/chunks/{resume-command-H4IJJDLH.js → resume-command-VCMPAWTN.js} +4 -4
  167. package/dist/chunks/{running-UTOYIBXM.js → running-DR4MSZ7B.js} +5 -5
  168. package/dist/chunks/{schedule-KWX4SXS5.js → schedule-W3QPDJRS.js} +8 -8
  169. package/dist/chunks/{send-UEL2L3VA.js → send-QDBFAZ5P.js} +15 -15
  170. package/dist/chunks/{send-person-X3SWXKWV.js → send-person-O5OJ7KHD.js} +13 -13
  171. package/dist/chunks/{service-4VS6XQ7O.js → service-5Z47V5KC.js} +30 -30
  172. package/dist/chunks/{skills-LK7WSDDG.js → skills-XYT6UUTP.js} +19 -19
  173. package/dist/chunks/{start-check-HTPENJ36.js → start-check-OKCRZ67I.js} +2 -2
  174. package/dist/chunks/{startup-failure-LKAHWAYZ.js → startup-failure-N3RO73Z4.js} +2 -2
  175. package/dist/chunks/{state-UQPKWIYT.js → state-7CLHPA4P.js} +2 -2
  176. package/dist/chunks/{store-BY6HMUUN.js → store-CNEKBGKD.js} +6 -6
  177. package/dist/chunks/{store-74PEEN6L.js → store-GA3I7BMG.js} +4 -4
  178. package/dist/chunks/{store-UHIHEGKS.js → store-YFAH5XGW.js} +3 -3
  179. package/dist/chunks/{store-MILGWYSA.js → store-ZDFRYDWS.js} +12 -10
  180. package/dist/chunks/store-ZDFRYDWS.js.map +6 -0
  181. package/dist/chunks/{tui-FOVSBYCD.js → tui-T6VPVMEV.js} +88 -87
  182. package/dist/chunks/tui-T6VPVMEV.js.map +6 -0
  183. package/dist/chunks/{upgrade-V5ST42EQ.js → upgrade-SW474CXN.js} +9 -9
  184. package/dist/chunks/{watch-Q7MSKZIA.js → watch-OIYLZVDF.js} +118 -90
  185. package/dist/chunks/watch-OIYLZVDF.js.map +6 -0
  186. package/dist/chunks/{workspaces-2AL72WFH.js → workspaces-YQW2E6PE.js} +19 -19
  187. package/dist/chunks/{worktree-QPKIZBSK.js → worktree-ZMMQI2Z5.js} +20 -20
  188. package/dist/cli.d.ts.map +1 -1
  189. package/dist/commands/desktop-host.d.ts +7 -0
  190. package/dist/commands/desktop-host.d.ts.map +1 -1
  191. package/dist/commands/hooks.d.ts +13 -0
  192. package/dist/commands/hooks.d.ts.map +1 -0
  193. package/dist/commands/manifest.d.ts +1 -0
  194. package/dist/commands/manifest.d.ts.map +1 -1
  195. package/dist/config/hooks-report.d.ts +162 -0
  196. package/dist/config/hooks-report.d.ts.map +1 -0
  197. package/dist/config/load.d.ts +30 -2
  198. package/dist/config/load.d.ts.map +1 -1
  199. package/dist/index.js +43 -42
  200. package/dist/integrations/plugins/hook-entries.d.ts +34 -0
  201. package/dist/integrations/plugins/hook-entries.d.ts.map +1 -1
  202. package/dist/integrations/sessions/conversation-facts.d.ts +12 -0
  203. package/dist/integrations/sessions/conversation-facts.d.ts.map +1 -1
  204. package/dist/integrations/sessions/store.d.ts +11 -1
  205. package/dist/integrations/sessions/store.d.ts.map +1 -1
  206. package/dist/integrations/sessions/watch-view.d.ts +2 -0
  207. package/dist/integrations/sessions/watch-view.d.ts.map +1 -1
  208. package/dist/integrations/subagents/replay.d.ts +6 -0
  209. package/dist/integrations/subagents/replay.d.ts.map +1 -1
  210. package/dist/skills/restore-skill-hooks.d.ts +16 -0
  211. package/dist/skills/restore-skill-hooks.d.ts.map +1 -0
  212. package/dist/skills/skill-hooks.d.ts +21 -0
  213. package/dist/skills/skill-hooks.d.ts.map +1 -1
  214. package/dist/tui/App.d.ts.map +1 -1
  215. package/dist/tui/ReadSearchGroup.d.ts.map +1 -1
  216. package/dist/tui/Transcript.d.ts.map +1 -1
  217. package/dist/tui/agent-transcript-rows.d.ts +3 -1
  218. package/dist/tui/agent-transcript-rows.d.ts.map +1 -1
  219. package/dist/tui/agent.d.ts.map +1 -1
  220. package/dist/tui/fullscreen/layout.d.ts +9 -1
  221. package/dist/tui/fullscreen/layout.d.ts.map +1 -1
  222. package/dist/tui/fullscreen/markdown-rows.d.ts +18 -18
  223. package/dist/tui/fullscreen/markdown-rows.d.ts.map +1 -1
  224. package/dist/tui/fullscreen/reply-rows.d.ts +83 -0
  225. package/dist/tui/fullscreen/reply-rows.d.ts.map +1 -0
  226. package/dist/tui/hint-fit.d.ts +36 -0
  227. package/dist/tui/hint-fit.d.ts.map +1 -0
  228. package/dist/tui/restored-rows.d.ts +6 -0
  229. package/dist/tui/restored-rows.d.ts.map +1 -1
  230. package/dist/tui/transcript-scroll.d.ts +1 -1
  231. package/dist/tui/transcript-scroll.d.ts.map +1 -1
  232. package/package.json +7 -7
  233. package/dist/chunks/acp-UVCLNIXU.js.map +0 -6
  234. package/dist/chunks/agent-session-H3OE6ZJT.js +0 -76
  235. package/dist/chunks/chunk-ABOV5CRT.js.map +0 -6
  236. package/dist/chunks/chunk-AZHBCP6G.js.map +0 -6
  237. package/dist/chunks/chunk-C74LVDRC.js.map +0 -6
  238. package/dist/chunks/chunk-EYAWI7KU.js.map +0 -6
  239. package/dist/chunks/chunk-F3GGSHY2.js.map +0 -6
  240. package/dist/chunks/chunk-H7UZKOVC.js.map +0 -6
  241. package/dist/chunks/chunk-XFVVJAI3.js.map +0 -6
  242. package/dist/chunks/message-command-TW57Q7AB.js.map +0 -6
  243. package/dist/chunks/resume-RKZ52FZP.js +0 -23
  244. package/dist/chunks/tui-FOVSBYCD.js.map +0 -6
  245. package/dist/chunks/watch-Q7MSKZIA.js.map +0 -6
  246. /package/dist/chunks/{activity-command-2QIWTUUB.js.map → activity-command-IBOJOCRF.js.map} +0 -0
  247. /package/dist/chunks/{add-2YDEALUT.js.map → add-LYBL3IC7.js.map} +0 -0
  248. /package/dist/chunks/{agent-IKQ67NMW.js.map → agent-LTLWJW3P.js.map} +0 -0
  249. /package/dist/chunks/{agent-session-H3OE6ZJT.js.map → agent-session-BD2AHK5S.js.map} +0 -0
  250. /package/dist/chunks/{apply-at-exit-F4G7PCZL.js.map → apply-at-exit-7BF3KBU2.js.map} +0 -0
  251. /package/dist/chunks/{archive-FOTYHQPL.js.map → archive-FCPUCOYT.js.map} +0 -0
  252. /package/dist/chunks/{bin-main-DWOCG2WK.js.map → bin-main-AVPCWJHJ.js.map} +0 -0
  253. /package/dist/chunks/{binding-2GEVBR5H.js.map → binding-OZCOSUYV.js.map} +0 -0
  254. /package/dist/chunks/{browser-WYPSIPEZ.js.map → browser-LR25NVO7.js.map} +0 -0
  255. /package/dist/chunks/{chat-LWVIDEXR.js.map → chat-PP7XU7US.js.map} +0 -0
  256. /package/dist/chunks/{chunk-5F4SSZKS.js.map → chunk-2KNLSJFS.js.map} +0 -0
  257. /package/dist/chunks/{chunk-FWTWILCD.js.map → chunk-2O6LZGGG.js.map} +0 -0
  258. /package/dist/chunks/{chunk-6APCO6YC.js.map → chunk-32LCSSAN.js.map} +0 -0
  259. /package/dist/chunks/{chunk-33WFG4C3.js.map → chunk-3Q42HHZM.js.map} +0 -0
  260. /package/dist/chunks/{chunk-DTORDCJR.js.map → chunk-3WTIGIDA.js.map} +0 -0
  261. /package/dist/chunks/{chunk-E7GZ5OXM.js.map → chunk-4KMFIIWV.js.map} +0 -0
  262. /package/dist/chunks/{chunk-DHWD5YYD.js.map → chunk-4NVFHP23.js.map} +0 -0
  263. /package/dist/chunks/{chunk-QPAWT3EG.js.map → chunk-4Q4J3KDG.js.map} +0 -0
  264. /package/dist/chunks/{chunk-YVJVXTUS.js.map → chunk-4VB264C5.js.map} +0 -0
  265. /package/dist/chunks/{chunk-6CXEEZLK.js.map → chunk-4VXS3UYL.js.map} +0 -0
  266. /package/dist/chunks/{chunk-6NUQEVHG.js.map → chunk-5FEAC3G5.js.map} +0 -0
  267. /package/dist/chunks/{chunk-QTPZCVPP.js.map → chunk-5HCZHDPA.js.map} +0 -0
  268. /package/dist/chunks/{chunk-QBCGPM4E.js.map → chunk-5OAKUXE3.js.map} +0 -0
  269. /package/dist/chunks/{chunk-3EEKLQXD.js.map → chunk-5YNAPIUZ.js.map} +0 -0
  270. /package/dist/chunks/{chunk-VV2EHZOG.js.map → chunk-6SHOR62K.js.map} +0 -0
  271. /package/dist/chunks/{chunk-PXA27JGJ.js.map → chunk-72IJ3FQU.js.map} +0 -0
  272. /package/dist/chunks/{chunk-XTVF376M.js.map → chunk-AO4A56EG.js.map} +0 -0
  273. /package/dist/chunks/{chunk-XODDL7OV.js.map → chunk-BFCUL4BW.js.map} +0 -0
  274. /package/dist/chunks/{chunk-T3NIOUQJ.js.map → chunk-CKWDYYBE.js.map} +0 -0
  275. /package/dist/chunks/{chunk-XLDFNUCV.js.map → chunk-CSBKGTBA.js.map} +0 -0
  276. /package/dist/chunks/{chunk-NW6VBCCU.js.map → chunk-D3JJE6VZ.js.map} +0 -0
  277. /package/dist/chunks/{chunk-ORCR5VST.js.map → chunk-DEEK2FOC.js.map} +0 -0
  278. /package/dist/chunks/{chunk-DCMZYSON.js.map → chunk-DEH4YIDN.js.map} +0 -0
  279. /package/dist/chunks/{chunk-CMHOQ62S.js.map → chunk-DSMBM5LQ.js.map} +0 -0
  280. /package/dist/chunks/{chunk-GZNTRTD5.js.map → chunk-EC2F3CWT.js.map} +0 -0
  281. /package/dist/chunks/{chunk-4ASCYXSH.js.map → chunk-EMXH2RJN.js.map} +0 -0
  282. /package/dist/chunks/{chunk-XKIV3H62.js.map → chunk-EQGE25MQ.js.map} +0 -0
  283. /package/dist/chunks/{chunk-5JQIGBBR.js.map → chunk-F2TXNDKC.js.map} +0 -0
  284. /package/dist/chunks/{chunk-TMOEYXPR.js.map → chunk-FK6WJQ5T.js.map} +0 -0
  285. /package/dist/chunks/{chunk-MDY2IMVQ.js.map → chunk-FRADQASS.js.map} +0 -0
  286. /package/dist/chunks/{chunk-RPXTYB22.js.map → chunk-FS7CUHOG.js.map} +0 -0
  287. /package/dist/chunks/{chunk-G7LMPHZE.js.map → chunk-GFZFGTDZ.js.map} +0 -0
  288. /package/dist/chunks/{chunk-QE5PQM5T.js.map → chunk-GXCOSOVM.js.map} +0 -0
  289. /package/dist/chunks/{chunk-NIRQFXO6.js.map → chunk-HJJNIG33.js.map} +0 -0
  290. /package/dist/chunks/{chunk-4EBZUUE4.js.map → chunk-HUDP4HTK.js.map} +0 -0
  291. /package/dist/chunks/{chunk-QIDU76IF.js.map → chunk-IBPN346S.js.map} +0 -0
  292. /package/dist/chunks/{chunk-3HJXXP6L.js.map → chunk-IERT7D34.js.map} +0 -0
  293. /package/dist/chunks/{chunk-LC7SV2KM.js.map → chunk-IPAGLYU3.js.map} +0 -0
  294. /package/dist/chunks/{chunk-MTY4XYDO.js.map → chunk-ISHCON5Z.js.map} +0 -0
  295. /package/dist/chunks/{chunk-HFZLLEJS.js.map → chunk-J6I6MCWR.js.map} +0 -0
  296. /package/dist/chunks/{chunk-FBRYV5YN.js.map → chunk-JFLX34FA.js.map} +0 -0
  297. /package/dist/chunks/{chunk-RXUWYGFX.js.map → chunk-JXJIKAAE.js.map} +0 -0
  298. /package/dist/chunks/{chunk-BLGPF6UL.js.map → chunk-K3QEZ7D7.js.map} +0 -0
  299. /package/dist/chunks/{chunk-6RTDZGPO.js.map → chunk-KFWQSTT3.js.map} +0 -0
  300. /package/dist/chunks/{chunk-LQJLTW2D.js.map → chunk-KHQAU33M.js.map} +0 -0
  301. /package/dist/chunks/{chunk-RFGMOXA6.js.map → chunk-KNBFV3DC.js.map} +0 -0
  302. /package/dist/chunks/{chunk-LRFRTQW7.js.map → chunk-L2Q7APTU.js.map} +0 -0
  303. /package/dist/chunks/{chunk-S5R2E5TZ.js.map → chunk-LHZ632YK.js.map} +0 -0
  304. /package/dist/chunks/{chunk-RVXJ5MYA.js.map → chunk-LQZIENWB.js.map} +0 -0
  305. /package/dist/chunks/{chunk-2QMXCXZ2.js.map → chunk-LWYW2DAK.js.map} +0 -0
  306. /package/dist/chunks/{chunk-3T5AX2PC.js.map → chunk-MKAQAKHE.js.map} +0 -0
  307. /package/dist/chunks/{chunk-NJWQUZF2.js.map → chunk-MXJAJXE7.js.map} +0 -0
  308. /package/dist/chunks/{chunk-PXJ2KPOI.js.map → chunk-MXR77LCX.js.map} +0 -0
  309. /package/dist/chunks/{chunk-YLCMBXE3.js.map → chunk-NSGEVYJC.js.map} +0 -0
  310. /package/dist/chunks/{chunk-NRGGICBE.js.map → chunk-O4GHSR2X.js.map} +0 -0
  311. /package/dist/chunks/{chunk-LOUV4VZ6.js.map → chunk-PNEFIK4E.js.map} +0 -0
  312. /package/dist/chunks/{chunk-UYAI6F3R.js.map → chunk-PTPVAPCA.js.map} +0 -0
  313. /package/dist/chunks/{chunk-GD7VSTWZ.js.map → chunk-QXKCTJWO.js.map} +0 -0
  314. /package/dist/chunks/{chunk-YNY6XL5T.js.map → chunk-SK3JQNO5.js.map} +0 -0
  315. /package/dist/chunks/{chunk-UWYDZYCZ.js.map → chunk-SU5VBBRS.js.map} +0 -0
  316. /package/dist/chunks/{chunk-2Q2TPLYP.js.map → chunk-T2CHZ6V7.js.map} +0 -0
  317. /package/dist/chunks/{chunk-VG6RBHI4.js.map → chunk-TE4MIRMA.js.map} +0 -0
  318. /package/dist/chunks/{chunk-D5RO75LO.js.map → chunk-THOVK7I5.js.map} +0 -0
  319. /package/dist/chunks/{chunk-KXUKJLA2.js.map → chunk-TLTD26JG.js.map} +0 -0
  320. /package/dist/chunks/{chunk-2CYBRCPH.js.map → chunk-TUEZKY7I.js.map} +0 -0
  321. /package/dist/chunks/{chunk-ZYSTDBP7.js.map → chunk-U3IK5VKD.js.map} +0 -0
  322. /package/dist/chunks/{chunk-6JKNPDZD.js.map → chunk-UUQY5P7K.js.map} +0 -0
  323. /package/dist/chunks/{chunk-IW3XMMEN.js.map → chunk-VBRCNXMM.js.map} +0 -0
  324. /package/dist/chunks/{chunk-WY6KOPIY.js.map → chunk-VI66HXJT.js.map} +0 -0
  325. /package/dist/chunks/{chunk-6KIXUAOC.js.map → chunk-VQCP7LOK.js.map} +0 -0
  326. /package/dist/chunks/{chunk-MZURZ6P4.js.map → chunk-VTS2SVX6.js.map} +0 -0
  327. /package/dist/chunks/{chunk-G4R65ULE.js.map → chunk-W5TE6NIA.js.map} +0 -0
  328. /package/dist/chunks/{chunk-UNZNPAW7.js.map → chunk-WV45Z5QQ.js.map} +0 -0
  329. /package/dist/chunks/{chunk-P6OOW3RL.js.map → chunk-X44EPHHA.js.map} +0 -0
  330. /package/dist/chunks/{chunk-NFKSV6UI.js.map → chunk-XFCFWWFK.js.map} +0 -0
  331. /package/dist/chunks/{chunk-UNO2ZRXA.js.map → chunk-XGS5WUCQ.js.map} +0 -0
  332. /package/dist/chunks/{chunk-MNMKHEMI.js.map → chunk-Y4MKRX73.js.map} +0 -0
  333. /package/dist/chunks/{chunk-QP435RW7.js.map → chunk-YDGUEMBB.js.map} +0 -0
  334. /package/dist/chunks/{chunk-7T6TX47O.js.map → chunk-YIZXVNUY.js.map} +0 -0
  335. /package/dist/chunks/{chunk-URIGGSIK.js.map → chunk-YNBAVIQA.js.map} +0 -0
  336. /package/dist/chunks/{chunk-EADNTGVW.js.map → chunk-YPLYAESJ.js.map} +0 -0
  337. /package/dist/chunks/{chunk-7PDUMQ4M.js.map → chunk-ZH5MQMMF.js.map} +0 -0
  338. /package/dist/chunks/{chunk-D7JY7KNY.js.map → chunk-ZI5FFFBJ.js.map} +0 -0
  339. /package/dist/chunks/{chunk-L2AKMCV3.js.map → chunk-ZIRQSGOG.js.map} +0 -0
  340. /package/dist/chunks/{chunk-5S7U5MFW.js.map → chunk-ZVLTZDC4.js.map} +0 -0
  341. /package/dist/chunks/{cli-runtime-33Z22SZM.js.map → cli-runtime-V2FI7PIQ.js.map} +0 -0
  342. /package/dist/chunks/{commands-DLREWCNK.js.map → commands-R2LZBXLK.js.map} +0 -0
  343. /package/dist/chunks/{cost-MJOM52FI.js.map → cost-PQWWLMOO.js.map} +0 -0
  344. /package/dist/chunks/{crash-report-62LMID3V.js.map → crash-report-MY27ZDU6.js.map} +0 -0
  345. /package/dist/chunks/{dist-TCKNCSZO.js.map → dist-3HCAPKP5.js.map} +0 -0
  346. /package/dist/chunks/{dist-HA6ABMIV.js.map → dist-4RNVO224.js.map} +0 -0
  347. /package/dist/chunks/{dist-XFBNYCQ7.js.map → dist-7A7PB34A.js.map} +0 -0
  348. /package/dist/chunks/{dist-MTYIYUQU.js.map → dist-MSFQTEPK.js.map} +0 -0
  349. /package/dist/chunks/{dist-NUPNUHXB.js.map → dist-MT3MTMRF.js.map} +0 -0
  350. /package/dist/chunks/{dist-U7A47UOF.js.map → dist-PH7MWV7K.js.map} +0 -0
  351. /package/dist/chunks/{dist-HWU5U4SQ.js.map → dist-TIMUM4OR.js.map} +0 -0
  352. /package/dist/chunks/{dist-IL4H4QGY.js.map → dist-Y4Q4SXRE.js.map} +0 -0
  353. /package/dist/chunks/{doctor-V5C6R5EN.js.map → doctor-JRVQJERE.js.map} +0 -0
  354. /package/dist/chunks/{drain-CS7XQ5B7.js.map → drain-YOE55I26.js.map} +0 -0
  355. /package/dist/chunks/{entry-HXLBVNDK.js.map → entry-QAXRBCG3.js.map} +0 -0
  356. /package/dist/chunks/{eval-NRBZ4IWO.js.map → eval-UPNYQIHO.js.map} +0 -0
  357. /package/dist/chunks/{exec-GCNNTGHM.js.map → exec-LLOKYQZY.js.map} +0 -0
  358. /package/dist/chunks/{home-GP3Y7F5H.js.map → home-7TSSDRFT.js.map} +0 -0
  359. /package/dist/chunks/{host-C5GIO57R.js.map → hooks-report-GGRTQH23.js.map} +0 -0
  360. /package/dist/chunks/{lifecycle-TMZEWFWF.js.map → host-M2CYP3TP.js.map} +0 -0
  361. /package/dist/chunks/{host-queries-F5Y3L7E4.js.map → host-queries-L7P5FQ36.js.map} +0 -0
  362. /package/dist/chunks/{learn-5FEP65D6.js.map → learn-CBIMGXXS.js.map} +0 -0
  363. /package/dist/chunks/{learn-builtin-HV3ASHAJ.js.map → learn-builtin-UHGQ6CNQ.js.map} +0 -0
  364. /package/dist/chunks/{live-OVTHCQB3.js.map → lifecycle-NJGOR77O.js.map} +0 -0
  365. /package/dist/chunks/{list-MD6ZN2PW.js.map → list-QZUWOS4I.js.map} +0 -0
  366. /package/dist/chunks/{load-ADBRLXAL.js.map → live-LHKUQFEO.js.map} +0 -0
  367. /package/dist/chunks/{login-RV3AHE4C.js.map → load-LF7GZYTP.js.map} +0 -0
  368. /package/dist/chunks/{open-K4R6E6QJ.js.map → login-F4NOOGD5.js.map} +0 -0
  369. /package/dist/chunks/{logs-6SBW5BWD.js.map → logs-6CJCV6YU.js.map} +0 -0
  370. /package/dist/chunks/{mcp-3QDMZ7PD.js.map → mcp-C7FQLLXL.js.map} +0 -0
  371. /package/dist/chunks/{output-schema-QBKJSX77.js.map → open-GLWFBW4C.js.map} +0 -0
  372. /package/dist/chunks/{operator-tools-YX4575HD.js.map → operator-tools-KQV2T5UU.js.map} +0 -0
  373. /package/dist/chunks/{peers-6F4JS4VL.js.map → output-schema-XXKTMSU6.js.map} +0 -0
  374. /package/dist/chunks/{pal-KLH2IC3W.js.map → pal-4OZ7KPSC.js.map} +0 -0
  375. /package/dist/chunks/{peers-5BMGZLHY.js.map → peers-4DMT2KZ2.js.map} +0 -0
  376. /package/dist/chunks/{providers-YJVPCIRI.js.map → peers-SMOALKZW.js.map} +0 -0
  377. /package/dist/chunks/{plugin-T6ULGX5N.js.map → plugin-IDW4AYIK.js.map} +0 -0
  378. /package/dist/chunks/{pty-UMMMCRJW.js.map → providers-7HLI5PWI.js.map} +0 -0
  379. /package/dist/chunks/{resume-RKZ52FZP.js.map → pty-SQBYCAX4.js.map} +0 -0
  380. /package/dist/chunks/{resume-command-H4IJJDLH.js.map → resume-2HBHZF54.js.map} +0 -0
  381. /package/dist/chunks/{running-UTOYIBXM.js.map → resume-command-VCMPAWTN.js.map} +0 -0
  382. /package/dist/chunks/{send-UEL2L3VA.js.map → running-DR4MSZ7B.js.map} +0 -0
  383. /package/dist/chunks/{schedule-KWX4SXS5.js.map → schedule-W3QPDJRS.js.map} +0 -0
  384. /package/dist/chunks/{send-person-X3SWXKWV.js.map → send-QDBFAZ5P.js.map} +0 -0
  385. /package/dist/chunks/{start-check-HTPENJ36.js.map → send-person-O5OJ7KHD.js.map} +0 -0
  386. /package/dist/chunks/{service-4VS6XQ7O.js.map → service-5Z47V5KC.js.map} +0 -0
  387. /package/dist/chunks/{skills-LK7WSDDG.js.map → skills-XYT6UUTP.js.map} +0 -0
  388. /package/dist/chunks/{store-74PEEN6L.js.map → start-check-OKCRZ67I.js.map} +0 -0
  389. /package/dist/chunks/{startup-failure-LKAHWAYZ.js.map → startup-failure-N3RO73Z4.js.map} +0 -0
  390. /package/dist/chunks/{state-UQPKWIYT.js.map → state-7CLHPA4P.js.map} +0 -0
  391. /package/dist/chunks/{store-BY6HMUUN.js.map → store-CNEKBGKD.js.map} +0 -0
  392. /package/dist/chunks/{store-MILGWYSA.js.map → store-GA3I7BMG.js.map} +0 -0
  393. /package/dist/chunks/{store-UHIHEGKS.js.map → store-YFAH5XGW.js.map} +0 -0
  394. /package/dist/chunks/{upgrade-V5ST42EQ.js.map → upgrade-SW474CXN.js.map} +0 -0
  395. /package/dist/chunks/{workspaces-2AL72WFH.js.map → workspaces-YQW2E6PE.js.map} +0 -0
  396. /package/dist/chunks/{worktree-QPKIZBSK.js.map → worktree-ZMMQI2Z5.js.map} +0 -0
@@ -2,7 +2,10 @@ import { createRequire as __namzuCreateRequire } from 'node:module';
2
2
  const require = __namzuCreateRequire(import.meta.url);
3
3
  import {
4
4
  openWorktreeHookRuntime
5
- } from "./chunk-UYAI6F3R.js";
5
+ } from "./chunk-PTPVAPCA.js";
6
+ import {
7
+ selectDesktopBackend
8
+ } from "./chunk-IBPN346S.js";
6
9
  import {
7
10
  NAMZU_COMPACT_WORDMARK,
8
11
  NAMZU_WORDMARK,
@@ -14,27 +17,33 @@ import {
14
17
  confirmationView,
15
18
  describeChanges,
16
19
  permissionsChanged
17
- } from "./chunk-LRFRTQW7.js";
20
+ } from "./chunk-L2Q7APTU.js";
18
21
  import {
19
22
  visibleScheduleMessage
20
23
  } from "./chunk-NADQQMMG.js";
21
- import {
22
- selectDesktopBackend
23
- } from "./chunk-QIDU76IF.js";
24
24
  import {
25
25
  hooksOf
26
- } from "./chunk-QBCGPM4E.js";
26
+ } from "./chunk-5OAKUXE3.js";
27
27
  import {
28
28
  applyProviderFlags
29
- } from "./chunk-4ASCYXSH.js";
29
+ } from "./chunk-EMXH2RJN.js";
30
+ import {
31
+ BYPASS_CONSENT_BODY,
32
+ BYPASS_CONSENT_TITLE,
33
+ acknowledgeBypass,
34
+ hasAcknowledgedBypass
35
+ } from "./chunk-72IJ3FQU.js";
36
+ import {
37
+ applyFallbackFlag
38
+ } from "./chunk-RL2CTUF2.js";
30
39
  import {
31
40
  settleAnsweredPark
32
- } from "./chunk-YVJVXTUS.js";
41
+ } from "./chunk-4VB264C5.js";
33
42
  import {
34
43
  DELIVERY_READ_LIMIT,
35
44
  readSourceDeliveryPage,
36
45
  takeSuppressedCount
37
- } from "./chunk-6APCO6YC.js";
46
+ } from "./chunk-32LCSSAN.js";
38
47
  import {
39
48
  DEFAULT_MAX_ITERATIONS,
40
49
  DEFAULT_TIMEOUT_MS,
@@ -45,7 +54,7 @@ import {
45
54
  editedJob,
46
55
  previewLines,
47
56
  runsPerDay
48
- } from "./chunk-VG6RBHI4.js";
57
+ } from "./chunk-TE4MIRMA.js";
49
58
  import {
50
59
  callsCount
51
60
  } from "./chunk-OG2MLME3.js";
@@ -54,55 +63,27 @@ import {
54
63
  gateRefusal,
55
64
  scriptShellUnavailableReason,
56
65
  verifyScheduledScript
57
- } from "./chunk-GZNTRTD5.js";
66
+ } from "./chunk-EC2F3CWT.js";
58
67
  import {
59
68
  allowsCommands,
60
69
  compileJobPolicy,
61
70
  compileScriptCheckPolicy,
62
71
  isPresetName
63
- } from "./chunk-XLDFNUCV.js";
72
+ } from "./chunk-CSBKGTBA.js";
64
73
  import {
65
74
  parkedRunWords,
66
75
  resumeCommand
67
- } from "./chunk-NIRQFXO6.js";
76
+ } from "./chunk-HJJNIG33.js";
68
77
  import {
69
78
  appendHistory,
70
79
  nextFireOf,
71
80
  readHistory,
72
81
  readState
73
- } from "./chunk-GD7VSTWZ.js";
82
+ } from "./chunk-QXKCTJWO.js";
74
83
  import {
75
84
  callEndpoint,
76
85
  readEndpoint
77
86
  } from "./chunk-6YG7D7U4.js";
78
- import {
79
- BYPASS_CONSENT_BODY,
80
- BYPASS_CONSENT_TITLE,
81
- acknowledgeBypass,
82
- hasAcknowledgedBypass
83
- } from "./chunk-PXA27JGJ.js";
84
- import {
85
- applyFallbackFlag
86
- } from "./chunk-RL2CTUF2.js";
87
- import {
88
- CLIPBOARD_KILL_SWITCH,
89
- ClickCounter,
90
- bypassKey,
91
- colsOnLine,
92
- createClipboardCopier,
93
- describeCopy,
94
- hostSlot,
95
- lineAt,
96
- orderRange,
97
- snapRange,
98
- wordAt
99
- } from "./chunk-MTY4XYDO.js";
100
- import {
101
- buildPeerTools,
102
- openLivePeers,
103
- peerMailLabel,
104
- peerMailMessage
105
- } from "./chunk-EADNTGVW.js";
106
87
  import {
107
88
  AUTO_CHOICE_ID,
108
89
  PR_NONE,
@@ -116,28 +97,47 @@ import {
116
97
  sectionHeading,
117
98
  withAutoChoice,
118
99
  writeConversationExport
119
- } from "./chunk-NW6VBCCU.js";
100
+ } from "./chunk-D3JJE6VZ.js";
120
101
  import {
121
102
  tuiPalDefinition,
122
103
  tuiPalEnvironment,
123
104
  tuiPalOwner,
124
105
  tuiPalPreferences
125
- } from "./chunk-S5R2E5TZ.js";
126
- import {
127
- isModelOnlyContext,
128
- runtimeContextRowLabel
129
- } from "./chunk-6ITTTCLD.js";
106
+ } from "./chunk-LHZ632YK.js";
130
107
  import {
131
108
  NOTHING_TOLD,
132
109
  claimMismatchLine,
133
110
  goalEndingLine,
134
111
  handedBackLines,
135
112
  outcomeNotice
136
- } from "./chunk-LC7SV2KM.js";
113
+ } from "./chunk-IPAGLYU3.js";
114
+ import {
115
+ isModelOnlyContext,
116
+ runtimeContextRowLabel
117
+ } from "./chunk-6ITTTCLD.js";
118
+ import {
119
+ CLIPBOARD_KILL_SWITCH,
120
+ ClickCounter,
121
+ bypassKey,
122
+ colsOnLine,
123
+ createClipboardCopier,
124
+ describeCopy,
125
+ hostSlot,
126
+ lineAt,
127
+ orderRange,
128
+ snapRange,
129
+ wordAt
130
+ } from "./chunk-ISHCON5Z.js";
131
+ import {
132
+ buildPeerTools,
133
+ openLivePeers,
134
+ peerMailLabel,
135
+ peerMailMessage
136
+ } from "./chunk-YPLYAESJ.js";
137
137
  import {
138
138
  claimPalConversation,
139
139
  listPalConversations
140
- } from "./chunk-QPAWT3EG.js";
140
+ } from "./chunk-4Q4J3KDG.js";
141
141
  import {
142
142
  CLICK_EXPAND_HINT,
143
143
  CLICK_FOLD_HINT,
@@ -246,19 +246,11 @@ import {
246
246
  webLiveStatus,
247
247
  webSettledLine,
248
248
  withDebugDetail
249
- } from "./chunk-F3GGSHY2.js";
249
+ } from "./chunk-ZZK2BVEH.js";
250
250
  import {
251
251
  openManagedWorktrees,
252
252
  worktreeOpenHint
253
- } from "./chunk-RVXJ5MYA.js";
254
- import {
255
- MCP_OUTPUT_CHARS,
256
- boundedMcpText,
257
- validatePromptArguments
258
- } from "./chunk-L2AKMCV3.js";
259
- import {
260
- openInBrowser
261
- } from "./chunk-G7LMPHZE.js";
253
+ } from "./chunk-LQZIENWB.js";
262
254
  import {
263
255
  completionNotice,
264
256
  countAgents,
@@ -271,7 +263,15 @@ import {
271
263
  resumeReviewLines,
272
264
  runTokens,
273
265
  settledElapsed
274
- } from "./chunk-MNMKHEMI.js";
266
+ } from "./chunk-Y4MKRX73.js";
267
+ import {
268
+ MCP_OUTPUT_CHARS,
269
+ boundedMcpText,
270
+ validatePromptArguments
271
+ } from "./chunk-ZIRQSGOG.js";
272
+ import {
273
+ openInBrowser
274
+ } from "./chunk-GFZFGTDZ.js";
275
275
  import {
276
276
  describeBrowserStatus
277
277
  } from "./chunk-WHODOMXA.js";
@@ -286,15 +286,15 @@ import {
286
286
  import {
287
287
  beginSubscriptionLogin,
288
288
  parsePastedInput
289
- } from "./chunk-TMOEYXPR.js";
289
+ } from "./chunk-FK6WJQ5T.js";
290
290
  import {
291
291
  API_KEY_ACCOUNT_PROVIDERS,
292
292
  openCliAccounts,
293
293
  storedAccountSignedIn
294
- } from "./chunk-RFGMOXA6.js";
294
+ } from "./chunk-KNBFV3DC.js";
295
295
  import {
296
296
  beginCodexDeviceLogin
297
- } from "./chunk-2CYBRCPH.js";
297
+ } from "./chunk-TUEZKY7I.js";
298
298
  import {
299
299
  ConversationIndexRefreshError,
300
300
  activeConversationTurn,
@@ -324,15 +324,15 @@ import {
324
324
  typedTextOf,
325
325
  unansweredReviewPark,
326
326
  unarchiveConversation
327
- } from "./chunk-XFVVJAI3.js";
327
+ } from "./chunk-VQ5KK7YF.js";
328
328
  import {
329
329
  bindAccount,
330
330
  findAccountByName,
331
331
  isDefaultAccountId
332
- } from "./chunk-MZURZ6P4.js";
332
+ } from "./chunk-VTS2SVX6.js";
333
333
  import {
334
334
  startAutoUpdate
335
- } from "./chunk-LOUV4VZ6.js";
335
+ } from "./chunk-PNEFIK4E.js";
336
336
  import {
337
337
  readManifest
338
338
  } from "./chunk-AK2U3N2A.js";
@@ -370,7 +370,10 @@ import {
370
370
  turnLimitCommands,
371
371
  useThemeEpoch,
372
372
  useThemeSubscription
373
- } from "./chunk-7PDUMQ4M.js";
373
+ } from "./chunk-ZH5MQMMF.js";
374
+ import {
375
+ discoverUserCommands
376
+ } from "./chunk-4KMFIIWV.js";
374
377
  import {
375
378
  describeAllCredentialsLogout,
376
379
  describeApiKeyLogout,
@@ -380,8 +383,15 @@ import {
380
383
  describeProviderLogout
381
384
  } from "./chunk-MDK4RMBQ.js";
382
385
  import {
383
- discoverUserCommands
384
- } from "./chunk-E7GZ5OXM.js";
386
+ capChoiceLines,
387
+ choiceDisplayText,
388
+ choiceDisplayWidth,
389
+ eraseLastChoiceGrapheme,
390
+ truncateAtSeparator,
391
+ truncateChoiceText,
392
+ wrapBalancedText,
393
+ wrapChoiceText
394
+ } from "./chunk-CING2BNJ.js";
385
395
  import {
386
396
  ScheduleConflictError,
387
397
  confirmationHolds,
@@ -399,44 +409,26 @@ import {
399
409
  } from "./chunk-OEW7CJKK.js";
400
410
  import {
401
411
  resolveNpmInvocation
402
- } from "./chunk-UNZNPAW7.js";
412
+ } from "./chunk-WV45Z5QQ.js";
403
413
  import {
404
- capChoiceLines,
405
- choiceDisplayText,
406
- choiceDisplayWidth,
407
- eraseLastChoiceGrapheme,
408
- truncateAtSeparator,
409
- truncateChoiceText,
410
- wrapBalancedText,
411
- wrapChoiceText
412
- } from "./chunk-CING2BNJ.js";
414
+ deleteUserConfigValue,
415
+ setUserConfigValue
416
+ } from "./chunk-K3QEZ7D7.js";
417
+ import {
418
+ pinTrustedProjectPath,
419
+ resolveTrustedProjectContext
420
+ } from "./chunk-CHIEVVQ2.js";
413
421
  import {
414
422
  motionAllowed,
415
423
  reducedMotion,
416
424
  require_react,
417
425
  useReducedMotion
418
426
  } from "./chunk-5PO5ZH6M.js";
419
- import {
420
- pinTrustedProjectPath,
421
- resolveTrustedProjectContext
422
- } from "./chunk-CHIEVVQ2.js";
423
- import {
424
- deleteUserConfigValue,
425
- setUserConfigValue
426
- } from "./chunk-BLGPF6UL.js";
427
427
  import {
428
428
  describeCacheLifetime,
429
- discoverAgentDefinitions,
430
429
  promptCacheTtl,
431
430
  providerOffersCacheLifetime
432
- } from "./chunk-H7UZKOVC.js";
433
- import {
434
- readAgentHooks
435
- } from "./chunk-DCMZYSON.js";
436
- import {
437
- readSkillHooks,
438
- withoutSessionStart
439
- } from "./chunk-3HJXXP6L.js";
431
+ } from "./chunk-FAWY4LRG.js";
440
432
  import {
441
433
  SAVE_SKILL_TOOL_NAME,
442
434
  SKILL_CREATOR_SKILL,
@@ -449,14 +441,14 @@ import {
449
441
  newSkillPrompt,
450
442
  resolveTurnGuards,
451
443
  sandboxRunsShellUnasked
452
- } from "./chunk-3EEKLQXD.js";
444
+ } from "./chunk-5YNAPIUZ.js";
453
445
  import {
454
446
  describePlainInterruption,
455
447
  describeProviderWait,
456
448
  describeProviderWaitClock,
457
449
  isSelfMending,
458
450
  isSpentAllowance
459
- } from "./chunk-D7JY7KNY.js";
451
+ } from "./chunk-ZI5FFFBJ.js";
460
452
  import {
461
453
  debugRequested
462
454
  } from "./chunk-GNBMKISG.js";
@@ -468,14 +460,19 @@ import {
468
460
  handoffContinuationNote,
469
461
  refusalDetail,
470
462
  retryAfterMs
471
- } from "./chunk-FWTWILCD.js";
463
+ } from "./chunk-2O6LZGGG.js";
472
464
  import {
473
465
  autoAvailable,
474
466
  nextCycleMode,
475
467
  permissionModeDescription,
476
468
  permissionModeLabel,
477
469
  permissionModeName
478
- } from "./chunk-NJWQUZF2.js";
470
+ } from "./chunk-MXJAJXE7.js";
471
+ import {
472
+ expandTabs,
473
+ scriptText,
474
+ terminalDisplayText
475
+ } from "./chunk-I4GTRFPK.js";
479
476
  import {
480
477
  paint,
481
478
  rowTints,
@@ -483,10 +480,15 @@ import {
483
480
  tokenColor
484
481
  } from "./chunk-WD2F6EO3.js";
485
482
  import {
486
- expandTabs,
487
- scriptText,
488
- terminalDisplayText
489
- } from "./chunk-I4GTRFPK.js";
483
+ discoverAgentDefinitions
484
+ } from "./chunk-P3LYPSD6.js";
485
+ import {
486
+ readAgentHooks
487
+ } from "./chunk-DEH4YIDN.js";
488
+ import {
489
+ readSkillHooks,
490
+ withoutSessionStart
491
+ } from "./chunk-IERT7D34.js";
490
492
  import {
491
493
  NO_SKILLS_FOUND,
492
494
  composeSkillsPrompt,
@@ -494,11 +496,11 @@ import {
494
496
  loadSkillBody,
495
497
  renderSkillRoster,
496
498
  skillTierLabel
497
- } from "./chunk-FBRYV5YN.js";
499
+ } from "./chunk-JFLX34FA.js";
498
500
  import {
499
501
  primaryProvider,
500
502
  writePreferences
501
- } from "./chunk-UNO2ZRXA.js";
503
+ } from "./chunk-XGS5WUCQ.js";
502
504
  import {
503
505
  apiKeyLogoutWord,
504
506
  automaticChoice,
@@ -509,7 +511,7 @@ import {
509
511
  hasApiCredential,
510
512
  isApiKeyLogoutTarget,
511
513
  signedInSubscriptionProviders
512
- } from "./chunk-RXUWYGFX.js";
514
+ } from "./chunk-JXJIKAAE.js";
513
515
  import {
514
516
  COMPOSER_TRIGGER_DEFAULTS,
515
517
  COMPOSER_TRIGGER_IDS,
@@ -540,7 +542,7 @@ import {
540
542
  saveDecisionKey,
541
543
  shouldOfferDecisionSetup,
542
544
  writeConnection
543
- } from "./chunk-53UWPLAF.js";
545
+ } from "./chunk-YCJOAIDG.js";
544
546
  import {
545
547
  PROJECT_MCP_FILE,
546
548
  parseMcpServerFile
@@ -553,15 +555,15 @@ import {
553
555
  plural,
554
556
  productName
555
557
  } from "./chunk-6PWRKA5T.js";
556
- import {
557
- THEME_CHOICES
558
- } from "./chunk-S2JWPUUH.js";
559
558
  import {
560
559
  isFullWidth,
561
560
  isWide,
562
561
  stringWidth,
563
562
  stripAnsi
564
563
  } from "./chunk-U5UV2YRE.js";
564
+ import {
565
+ THEME_CHOICES
566
+ } from "./chunk-S2JWPUUH.js";
565
567
  import {
566
568
  ALL_PROVIDER_IDS,
567
569
  PROVIDER_REGISTRY,
@@ -572,11 +574,11 @@ import {
572
574
  import {
573
575
  isAnthropicOAuthToken,
574
576
  readCodexCredentialFile
575
- } from "./chunk-ORCR5VST.js";
577
+ } from "./chunk-DEEK2FOC.js";
576
578
  import {
577
579
  isTrusted,
578
580
  trustDir
579
- } from "./chunk-CMHOQ62S.js";
581
+ } from "./chunk-DSMBM5LQ.js";
580
582
  import {
581
583
  apiKeysPath,
582
584
  clearAllStoredApiKeys,
@@ -594,10 +596,10 @@ import {
594
596
  readStoredSubscriptionCredential,
595
597
  writeStoredApiKey,
596
598
  writeStoredGeminiApiKey
597
- } from "./chunk-NFKSV6UI.js";
599
+ } from "./chunk-XFCFWWFK.js";
598
600
  import {
599
601
  namzuHomePath
600
- } from "./chunk-5F4SSZKS.js";
602
+ } from "./chunk-2KNLSJFS.js";
601
603
  import {
602
604
  ACCEPT_EDITS_TOOLS,
603
605
  AccountRegistryError,
@@ -658,7 +660,7 @@ import {
658
660
  validateTimeZone,
659
661
  wakeBudgetFromEnv,
660
662
  wrapUntrusted
661
- } from "./chunk-C74LVDRC.js";
663
+ } from "./chunk-JTEWIH66.js";
662
664
  import {
663
665
  __commonJS,
664
666
  __export,
@@ -23424,10 +23426,10 @@ function doneClock(at) {
23424
23426
  return at.toLocaleTimeString(void 0, { hour: "numeric", minute: "2-digit" });
23425
23427
  }
23426
23428
  __name(doneClock, "doneClock");
23427
- function settleLine(elapsedMs, agents, doneAt) {
23429
+ function settleLine(elapsedMs, agents, doneAt, spentInAll) {
23428
23430
  const worked = /* @__PURE__ */ __name((ms) => `Worked for ${formatElapsed(Math.max(0, ms))}${doneAt ? ` \xB7 done ${doneClock(doneAt)}` : ""}`, "worked");
23429
23431
  if (agents.length <= 0) return elapsedMs >= SETTLE_LINE_MIN_MS ? worked(elapsedMs) : void 0;
23430
- const spent = agents.reduce(
23432
+ const spent = spentInAll ?? agents.reduce(
23431
23433
  (sum, agent) => agent.tokens === void 0 ? sum : (sum ?? 0) + agent.tokens,
23432
23434
  void 0
23433
23435
  );
@@ -26220,6 +26222,52 @@ __name(SpanView, "SpanView");
26220
26222
  // src/tui/Transcript.tsx
26221
26223
  var import_react40 = __toESM(require_react(), 1);
26222
26224
 
26225
+ // src/tui/hint-fit.ts
26226
+ var HINTS = [
26227
+ [EXPAND_HINT, "(ctrl+o)"],
26228
+ [CLICK_EXPAND_HINT, "(click)"],
26229
+ [CLICK_FOLD_HINT, void 0]
26230
+ ];
26231
+ var SIZE_NOTE = / \(~[\d,]+ KB\)$/u;
26232
+ function trailingHint(text) {
26233
+ const note = SIZE_NOTE.exec(text)?.[0] ?? "";
26234
+ const body = note.length > 0 ? text.slice(0, -note.length) : text;
26235
+ for (const [full, short] of HINTS) {
26236
+ if (body.endsWith(full)) return { hint: full, short, note, at: body.length - full.length };
26237
+ }
26238
+ return void 0;
26239
+ }
26240
+ __name(trailingHint, "trailingHint");
26241
+ function fitHint(text, width, wrap3) {
26242
+ const found = trailingHint(text);
26243
+ if (found === void 0) return text;
26244
+ const lead = text.slice(0, found.at);
26245
+ const sep2 = /( · | )$/u.exec(lead)?.[0];
26246
+ if (sep2 === void 0) return text;
26247
+ const before = lead.slice(0, -sep2.length);
26248
+ const unit = `${found.hint}${found.note}`;
26249
+ const rows = wrap3(before, width);
26250
+ const last = rows.at(-1) ?? "";
26251
+ if (choiceDisplayWidth(last) + choiceDisplayWidth(sep2) + choiceDisplayWidth(unit) <= width) {
26252
+ return text;
26253
+ }
26254
+ if (choiceDisplayWidth(unit) <= width) return `${before}
26255
+ ${unit}`;
26256
+ const short = found.short === void 0 ? void 0 : `${found.short}${found.note}`;
26257
+ if (short !== void 0 && choiceDisplayWidth(short) <= width) return `${before}
26258
+ ${short}`;
26259
+ return before;
26260
+ }
26261
+ __name(fitHint, "fitHint");
26262
+ function fitHintPlain(text, width) {
26263
+ return fitHint(text, width, wrapChoiceText);
26264
+ }
26265
+ __name(fitHintPlain, "fitHintPlain");
26266
+ function hintSuffix(before, tail2, width) {
26267
+ return fitHintPlain(`${before}${tail2}`, width).slice(before.length);
26268
+ }
26269
+ __name(hintSuffix, "hintSuffix");
26270
+
26223
26271
  // src/tui/user-text-view.ts
26224
26272
  var USER_TEXT_LIMIT = 1e4;
26225
26273
  var USER_TEXT_EDGE = 2500;
@@ -26655,10 +26703,11 @@ function ReadSearchGroup({ message }) {
26655
26703
  // biome-ignore lint/suspicious/noArrayIndexKey: segments are positional and hold no state.
26656
26704
  /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Text, { bold: segment.bold, children: segment.text }, i)
26657
26705
  )),
26658
- shownHint ? /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(Text, { color: theme.text.muted, children: [
26659
- " ",
26660
- shownHint
26661
- ] }) : null
26706
+ shownHint ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Text, { color: theme.text.muted, children: hintSuffix(
26707
+ segments.map((segment) => segment.text).join(""),
26708
+ ` ${shownHint}`,
26709
+ width
26710
+ ) }) : null
26662
26711
  ] }) })
26663
26712
  ] }),
26664
26713
  under.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Box_default, { flexDirection: "column", paddingLeft: RESULT_GUTTER_INDENT, children: under.map(({ text: line, wrap: wrap3 }, i) => (
@@ -27600,6 +27649,7 @@ function MessageRow({
27600
27649
  const web = message.activity === "web";
27601
27650
  const continuesWeb = web && prev?.activity === "web";
27602
27651
  const gap = !prev || message.glyph === "\u23BF" || continuesWeb ? 0 : 1;
27652
+ const rowWidth2 = glyph === "\u23BF" ? width - RESULT_GUTTER_INDENT - (RESULT_GUTTER_WIDTH - 2) : width;
27603
27653
  if (message.group && message.shell === void 0) {
27604
27654
  return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(Box_default, { flexDirection: "column", marginTop: gap, children: [
27605
27655
  screen && message.thinking ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(ThinkingBlock, { text: message.thinking }) : null,
@@ -27640,12 +27690,17 @@ function MessageRow({
27640
27690
  ...message.diff?.summary ?? [{ text: content }],
27641
27691
  ...message.meta ? [
27642
27692
  {
27643
- text: `${metaSeparator(message.meta)}${terminalDisplayText(message.meta)}`,
27693
+ // A hint that would be cut across two rows moves whole.
27694
+ text: hintSuffix(
27695
+ (message.diff?.summary ?? [{ text: content }]).map((span) => span.text).join(""),
27696
+ `${metaSeparator(message.meta)}${terminalDisplayText(message.meta)}`,
27697
+ rowWidth2
27698
+ ),
27644
27699
  muted: true
27645
27700
  }
27646
27701
  ] : []
27647
27702
  ],
27648
- width: glyph === "\u23BF" ? width - RESULT_GUTTER_INDENT - (RESULT_GUTTER_WIDTH - 2) : width,
27703
+ width: rowWidth2,
27649
27704
  color: textColor
27650
27705
  }
27651
27706
  ) })
@@ -27743,7 +27798,10 @@ function ShellBlock({
27743
27798
  // biome-ignore lint/suspicious/noArrayIndexKey: these rows have no local state; expansion replaces their text in place.
27744
27799
  /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(Box_default, { flexDirection: "row", children: [
27745
27800
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Box_default, { width: RESULT_GUTTER_WIDTH, flexShrink: 0, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Text, { color: theme.text.muted, children: i === 0 ? "\u23BF" : " " }) }),
27746
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Box_default, { flexGrow: 1, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Text, { color: shellToneColor(row2.tone), wrap: "wrap", children: row2.text.length > 0 ? terminalDisplayText(row2.text) : " " }) })
27801
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Box_default, { flexGrow: 1, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Text, { color: shellToneColor(row2.tone), wrap: "wrap", children: row2.text.length > 0 ? fitHintPlain(
27802
+ terminalDisplayText(row2.text),
27803
+ Math.max(10, width - SHELL_RESULT_INDENT)
27804
+ ) : " " }) })
27747
27805
  ] }, `s-${i}`)
27748
27806
  )) });
27749
27807
  }
@@ -27758,8 +27816,11 @@ function DetailBlock({
27758
27816
  detailRef,
27759
27817
  diff: diff2
27760
27818
  }) {
27819
+ const width = useContentWidth();
27761
27820
  if (diff2) return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(DiffBlock, { info: diff2, expanded, canExpand: detailRef !== void 0 });
27762
- const shown = splitDetail(lines3.map(terminalDisplayText), expanded, detailRef);
27821
+ const shown = splitDetail(lines3.map(terminalDisplayText), expanded, detailRef).map(
27822
+ (line) => fitHintPlain(line, Math.max(10, width - SHELL_RESULT_INDENT))
27823
+ );
27763
27824
  return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Box_default, { flexDirection: "column", paddingLeft: SHELL_RESULT_INDENT, children: shown.map((line, i) => (
27764
27825
  // biome-ignore lint/suspicious/noArrayIndexKey: these rows have no local state; expansion replaces their text in place.
27765
27826
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Box_default, { flexDirection: "row", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Box_default, { flexGrow: 1, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Text, { color: detailLineColor(line), wrap: "wrap", children: line.length > 0 ? line : " " }) }) }, `d-${i}`)
@@ -38134,8 +38195,12 @@ function withLiveHint(message) {
38134
38195
  return { ...message, meta: EXPAND_HINT };
38135
38196
  }
38136
38197
  __name(withLiveHint, "withLiveHint");
38137
- function scrollBodyText(message, hint) {
38138
- return message.statusRows ? message.statusRows.map(([label, value]) => `${label} ${value}`).join("\n") : `${message.content.length > 0 ? message.content : message.pending ? "\u2026" : ""}${message.meta ? ` \xB7 ${saying(terminalDisplayText(message.meta), hint)}` : ""}`;
38198
+ function scrollBodyText(message, hint, width) {
38199
+ if (message.statusRows) {
38200
+ return message.statusRows.map(([label, value]) => `${label} ${value}`).join("\n");
38201
+ }
38202
+ const text = `${message.content.length > 0 ? message.content : message.pending ? "\u2026" : ""}${message.meta ? ` \xB7 ${saying(terminalDisplayText(message.meta), hint)}` : ""}`;
38203
+ return width === void 0 ? text : fitHintPlain(text, width);
38139
38204
  }
38140
38205
  __name(scrollBodyText, "scrollBodyText");
38141
38206
  function saying(meta, hint) {
@@ -38148,7 +38213,7 @@ function messageScrollRows(asked, hasPrev, width, options = {}) {
38148
38213
  const glyph = message.glyph ?? glyphForRole(message.role);
38149
38214
  const glyphColor = paint(message.glyphColor) ?? (glyph === "\u23BF" ? theme.text.muted : glyphColorForRole(message.role));
38150
38215
  const color = paint(message.contentColor) ?? contentColorForRole(message.role);
38151
- const joined = scrollBodyText(message, options.hint);
38216
+ const joined = scrollBodyText(message, options.hint, width);
38152
38217
  const body = wrapChoiceText(joined, width);
38153
38218
  const attachmentRows2 = message.statusRows ? [] : (message.attachments ?? []).map(
38154
38219
  (row2) => truncateChoiceText(terminalDisplayText(attachmentLine(row2)), width + GUTTER)
@@ -38158,7 +38223,10 @@ function messageScrollRows(asked, hasPrev, width, options = {}) {
38158
38223
  const detail = message.statusRows ? [] : [
38159
38224
  ...attachmentRows2.map((text) => ({ text, hint: false })),
38160
38225
  ...wordedLines.flatMap(
38161
- (line, i) => wrapChoiceText(line.length > 0 ? line : " ", width + GUTTER).map((text) => ({
38226
+ (line, i) => wrapChoiceText(
38227
+ fitHintPlain(line.length > 0 ? line : " ", width + GUTTER),
38228
+ width + GUTTER
38229
+ ).map((text) => ({
38162
38230
  text,
38163
38231
  hint: line !== plainLines[i]
38164
38232
  }))
@@ -39701,7 +39769,7 @@ async function fastModeBlocker(providerId, model, now = Date.now(), otherHost =
39701
39769
  return `Fast mode is offered on the vendor's own endpoint only, and requests here go to ${otherHost}.`;
39702
39770
  }
39703
39771
  if (!model) return "Fast mode needs a model; pick one with /model.";
39704
- const { resolveFastModeVerdict } = await import("./dist-MTYIYUQU.js");
39772
+ const { resolveFastModeVerdict } = await import("./dist-MSFQTEPK.js");
39705
39773
  const verdict = resolveFastModeVerdict(model, now);
39706
39774
  return verdict.ok ? void 0 : verdict.reason;
39707
39775
  }
@@ -40175,7 +40243,7 @@ function blockRows(block, width, color, italic, spent) {
40175
40243
  );
40176
40244
  case "code": {
40177
40245
  const indent = codeIndent(block, width);
40178
- const pad = indent > 0 ? [{ text: " ".repeat(indent) }] : [];
40246
+ const pad = codePad(indent);
40179
40247
  const lines3 = block.lines.length > 0 ? block.lines : [""];
40180
40248
  grammarState(block.lang);
40181
40249
  const coloured = colourLines(block.lang, lines3, { above: "", block: 0, spent });
@@ -40190,8 +40258,27 @@ function blockRows(block, width, color, italic, spent) {
40190
40258
  }
40191
40259
  }
40192
40260
  __name(blockRows, "blockRows");
40261
+ function codePad(indent) {
40262
+ return indent > 0 ? [{ text: " ".repeat(indent) }] : [];
40263
+ }
40264
+ __name(codePad, "codePad");
40265
+ function codeLineRows(line, runs, room, indent, pad) {
40266
+ const pieces2 = wrapCodeLine(line, room);
40267
+ const joins = wrapJoiners(line, pieces2);
40268
+ const cut3 = runs ? runsForPieces(line, runs, pieces2) : void 0;
40269
+ return pieces2.map((piece, i) => {
40270
+ const body = cut3?.[i];
40271
+ const spans = body ? body.length === 0 ? [{ text: " ", color: theme.text.primary }] : body.map((run4) => ({
40272
+ text: run4.text,
40273
+ color: run4.kind ? theme.code[run4.kind] : theme.text.primary
40274
+ })) : [{ text: piece.length > 0 ? piece : " ", color: theme.status.ok }];
40275
+ return row([...pad, ...spans], i === 0 ? null : joins[i] ?? null, indent);
40276
+ });
40277
+ }
40278
+ __name(codeLineRows, "codeLineRows");
40193
40279
  var keptLines = /* @__PURE__ */ new Map();
40194
40280
  var keptLineChars = 0;
40281
+ var KEPT_LINE_CHARS = 1e6;
40195
40282
  function keptLineRows(line, runs, room, indent, pad) {
40196
40283
  const sig = runs ? runs.map((run4) => `${run4.kind ?? ""}:${run4.text.length}`).join(",") : "-";
40197
40284
  const key = `${shownTheme()}|${room}|${indent}|${sig}|${line}`;
@@ -40201,56 +40288,24 @@ function keptLineRows(line, runs, room, indent, pad) {
40201
40288
  keptLines.set(key, hit);
40202
40289
  return hit;
40203
40290
  }
40204
- const pieces2 = wrapCodeLine(line, room);
40205
- const joins = wrapJoiners(line, pieces2);
40206
- const cut3 = runs ? runsForPieces(line, runs, pieces2) : void 0;
40207
- const made = pieces2.map((piece, i) => {
40208
- const body = cut3?.[i];
40209
- const spans = body ? body.length === 0 ? [{ text: " ", color: theme.text.primary }] : body.map((run4) => ({
40210
- text: run4.text,
40211
- color: run4.kind ? theme.code[run4.kind] : theme.text.primary
40212
- })) : [{ text: piece.length > 0 ? piece : " ", color: theme.status.ok }];
40213
- return row([...pad, ...spans], i === 0 ? null : joins[i] ?? null, indent);
40214
- });
40291
+ const made = codeLineRows(line, runs, room, indent, pad);
40215
40292
  keptLines.set(key, made);
40216
40293
  keptLineChars += key.length;
40217
40294
  for (const old of keptLines.keys()) {
40218
- if (keptLineChars <= KEPT_BLOCK_CHARS || keptLines.size <= 1) break;
40295
+ if (keptLineChars <= KEPT_LINE_CHARS || keptLines.size <= 1) break;
40219
40296
  keptLines.delete(old);
40220
40297
  keptLineChars -= old.length;
40221
40298
  }
40222
40299
  return made;
40223
40300
  }
40224
40301
  __name(keptLineRows, "keptLineRows");
40225
- var KEPT_BLOCK_CHARS = 4e6;
40226
- var keptBlocks = /* @__PURE__ */ new Map();
40227
- var keptChars = 0;
40228
- function keptBlockRows(block, width, color, italic, spent) {
40229
- const key = `${shownTheme()}:${grammarVersion()}|${width}|${color}|${italic}|${spent}|${JSON.stringify(block)}`;
40230
- const hit = keptBlocks.get(key);
40231
- if (hit) {
40232
- keptBlocks.delete(key);
40233
- keptBlocks.set(key, hit);
40234
- return hit;
40235
- }
40236
- const made = blockRows(block, width, color, italic, spent);
40237
- keptBlocks.set(key, made);
40238
- keptChars += key.length;
40239
- for (const old of keptBlocks.keys()) {
40240
- if (keptChars <= KEPT_BLOCK_CHARS || keptBlocks.size <= 1) break;
40241
- keptBlocks.delete(old);
40242
- keptChars -= old.length;
40243
- }
40244
- return made;
40245
- }
40246
- __name(keptBlockRows, "keptBlockRows");
40247
- function blocksRows(blocks, width, color, italic, spent = 0) {
40302
+ function blocksRows(blocks, width, color, italic, spent = 0, before) {
40248
40303
  const rows = [];
40249
40304
  let above = spent;
40250
40305
  blocks.forEach((block, i) => {
40251
- const prev = blocks[i - 1];
40252
- if (blockGap(block, prev?.type)) rows.push(row([]));
40253
- for (const made of keptBlockRows(block, width, color, italic, above)) rows.push(made);
40306
+ const prev = i === 0 ? before : blocks[i - 1]?.type;
40307
+ if (blockGap(block, prev)) rows.push(row([]));
40308
+ for (const made of blockRows(block, width, color, italic, above)) rows.push(made);
40254
40309
  above += codeChars(block);
40255
40310
  });
40256
40311
  return rows;
@@ -40261,6 +40316,246 @@ function markdownRows(text, width, color) {
40261
40316
  }
40262
40317
  __name(markdownRows, "markdownRows");
40263
40318
 
40319
+ // src/tui/fullscreen/reply-rows.ts
40320
+ function detach(text) {
40321
+ return text.length < 13 ? text : ` ${text}`.slice(1);
40322
+ }
40323
+ __name(detach, "detach");
40324
+ var ReplyRows = class {
40325
+ constructor(width, color, wrap3) {
40326
+ this.width = width;
40327
+ this.color = color;
40328
+ this.wrap = wrap3;
40329
+ }
40330
+ width;
40331
+ color;
40332
+ wrap;
40333
+ static {
40334
+ __name(this, "ReplyRows");
40335
+ }
40336
+ /** The text last handed in: the next one must begin with it. */
40337
+ seen = "";
40338
+ /** Where the text not yet laid out for good begins: always at the start of a block. */
40339
+ pos = 0;
40340
+ /** Rows of the blocks before `pos`, in the form the window holds them. */
40341
+ done = [];
40342
+ /** The type of the last block before `pos`, for the blank row between blocks. */
40343
+ prev;
40344
+ /** Characters of fenced code before `pos`. */
40345
+ spent = 0;
40346
+ code = null;
40347
+ ended = false;
40348
+ /** A reply with a control character in it is not laid out here. */
40349
+ broken = false;
40350
+ /** Rows of the last block, still open. */
40351
+ openRows = [];
40352
+ /** Whether this reply can be laid out here at all. */
40353
+ get usable() {
40354
+ return !this.broken;
40355
+ }
40356
+ /** Rows held for good, and rows of the open block: what is kept, for the tests that count it. */
40357
+ get kept() {
40358
+ return { settled: this.done.length, open: this.openRows.length };
40359
+ }
40360
+ /**
40361
+ * The rows of `content`: the text as far as it is decided while the reply is
40362
+ * pending, the whole of it once it is `complete`. `undefined` when this reply
40363
+ * has to be laid out from the whole text.
40364
+ */
40365
+ update(content, complete) {
40366
+ if (this.broken) return void 0;
40367
+ if (this.ended || !content.startsWith(this.seen)) this.reset();
40368
+ const fresh = content.slice(this.seen.length);
40369
+ if (fresh.length > 0 && terminalDisplayText(fresh) !== fresh) {
40370
+ this.broken = true;
40371
+ this.reset();
40372
+ return void 0;
40373
+ }
40374
+ this.seen = content;
40375
+ this.advance(content, complete);
40376
+ if (complete) this.ended = true;
40377
+ return this.openRows.length > 0 ? this.done.concat(this.openRows) : this.done.slice();
40378
+ }
40379
+ reset() {
40380
+ this.seen = "";
40381
+ this.pos = 0;
40382
+ this.done = [];
40383
+ this.prev = void 0;
40384
+ this.spent = 0;
40385
+ this.code = null;
40386
+ this.ended = false;
40387
+ this.openRows = [];
40388
+ }
40389
+ put(rows, into, base) {
40390
+ for (const made of rows) into.push(this.wrap(made, base + into.length));
40391
+ }
40392
+ /** Lay out the blocks of `text`, which end at a block boundary, for good. */
40393
+ settle(text) {
40394
+ const blocks = parseMarkdown(text);
40395
+ if (blocks.length === 0) return;
40396
+ this.put(blocksRows(blocks, this.width, this.color, false, this.spent, this.prev), this.done, 0);
40397
+ for (const block of blocks) this.spent += codeChars(block);
40398
+ this.prev = blocks[blocks.length - 1]?.type;
40399
+ }
40400
+ advance(content, complete) {
40401
+ this.openRows = [];
40402
+ for (; ; ) {
40403
+ if (this.code) {
40404
+ if (!this.readCode(content, complete)) return;
40405
+ continue;
40406
+ }
40407
+ const rest = content.slice(this.pos);
40408
+ const ranges = scanBlockRanges(rest);
40409
+ const last = ranges[ranges.length - 1];
40410
+ if (!last) return;
40411
+ if (last.start > 0) {
40412
+ this.settle(detach(rest.slice(0, last.start)));
40413
+ this.pos += last.start;
40414
+ }
40415
+ if (last.kind === "code") {
40416
+ const at = content.indexOf("\n", this.pos);
40417
+ const opener = at >= 0 ? openingFence(content.slice(this.pos, at)) : null;
40418
+ if (opener) {
40419
+ this.openCode(opener, at + 1);
40420
+ continue;
40421
+ }
40422
+ }
40423
+ const tail2 = content.slice(this.pos);
40424
+ const shown = complete ? tail2 : tailView(tail2, { join: "block", lead: null });
40425
+ const blocks = parseMarkdown(shown);
40426
+ this.put(
40427
+ blocksRows(blocks, this.width, this.color, false, this.spent, this.prev),
40428
+ this.openRows,
40429
+ this.done.length
40430
+ );
40431
+ return;
40432
+ }
40433
+ }
40434
+ openCode(opener, at) {
40435
+ grammarState(opener.lang);
40436
+ this.code = {
40437
+ opener,
40438
+ lang: opener.lang,
40439
+ stripped: opener.indent,
40440
+ indent: codeIndent({ indent: opener.indent }, this.width),
40441
+ spentBefore: this.spent,
40442
+ at,
40443
+ lines: 0,
40444
+ chars: 0,
40445
+ head: [],
40446
+ headChars: 0,
40447
+ headVersion: 0,
40448
+ coloured: 0,
40449
+ volatile: [],
40450
+ volatileFor: -1,
40451
+ fixed: []
40452
+ };
40453
+ }
40454
+ /**
40455
+ * Read the lines of the open block that have arrived. True when the block has
40456
+ * ended and the text after it is next; false when it is still open, with its
40457
+ * rows in `openRows`.
40458
+ */
40459
+ readCode(content, complete) {
40460
+ const code = this.code;
40461
+ const added = [];
40462
+ let closed = false;
40463
+ let next = code.at;
40464
+ for (; ; ) {
40465
+ const nl = content.indexOf("\n", next);
40466
+ if (nl < 0 && !complete) break;
40467
+ const line = nl < 0 ? content.slice(next) : content.slice(next, nl);
40468
+ if (closesFence(line, code.opener)) {
40469
+ closed = true;
40470
+ next = nl < 0 ? content.length : nl + 1;
40471
+ break;
40472
+ }
40473
+ const text = detach(stripFenceIndent(line, code.stripped));
40474
+ added.push({ n: code.lines, line: text });
40475
+ code.lines += 1;
40476
+ code.chars += text.length + 1;
40477
+ if (code.headChars + text.length + 1 <= MAX_BLOCK_CHARS) {
40478
+ code.head.push(text);
40479
+ code.headChars += text.length + 1;
40480
+ code.headVersion += 1;
40481
+ }
40482
+ if (nl < 0) {
40483
+ next = content.length;
40484
+ closed = true;
40485
+ break;
40486
+ }
40487
+ next = nl + 1;
40488
+ }
40489
+ code.at = next;
40490
+ this.colour(code, added);
40491
+ if (code.lines === 0 && !closed) return false;
40492
+ const rows = [];
40493
+ const base = this.done.length;
40494
+ if (code.lines === 0) {
40495
+ const empty = {
40496
+ type: "code",
40497
+ ...code.lang ? { lang: code.lang } : {},
40498
+ ...code.opener.indent > 0 ? { indent: code.opener.indent } : {},
40499
+ lines: []
40500
+ };
40501
+ this.put(
40502
+ blocksRows([empty], this.width, this.color, false, this.spent, this.prev),
40503
+ rows,
40504
+ base
40505
+ );
40506
+ } else {
40507
+ if (this.gapAbove(code)) this.put([row([])], rows, base);
40508
+ for (const made of code.volatile) rows.push(made);
40509
+ for (const made of code.fixed) rows.push(made);
40510
+ }
40511
+ if (!closed) {
40512
+ this.openRows = rows;
40513
+ return false;
40514
+ }
40515
+ for (const made of rows) this.done.push(made);
40516
+ this.spent += code.chars;
40517
+ this.prev = "code";
40518
+ this.pos = next;
40519
+ this.code = null;
40520
+ return true;
40521
+ }
40522
+ /**
40523
+ * Colour what the library may still change, and make the rows of what it may not.
40524
+ * `added` are the lines that arrived since the last read, in order.
40525
+ */
40526
+ colour(code, added) {
40527
+ const room = this.width - code.indent;
40528
+ const pad = codePad(code.indent);
40529
+ const first = this.done.length + (this.gapAbove(code) ? 1 : 0);
40530
+ const into = /* @__PURE__ */ __name((rows, rowsOf2) => {
40531
+ for (const made of rows) rowsOf2.push(this.wrap(made, first + rowsOf2.length));
40532
+ }, "into");
40533
+ if (code.volatileFor !== code.headVersion) {
40534
+ const coloured = colourLines(code.lang, code.head, {
40535
+ above: "",
40536
+ block: 0,
40537
+ spent: code.spentBefore
40538
+ })?.lines;
40539
+ code.coloured = coloured?.length ?? 0;
40540
+ const rows = [];
40541
+ for (let n = 0; n < code.coloured; n++)
40542
+ into(keptLineRows(code.head[n], coloured?.[n], room, code.indent, pad), rows);
40543
+ code.volatile = rows;
40544
+ code.volatileFor = code.headVersion;
40545
+ }
40546
+ for (const { n, line } of added) {
40547
+ if (n < code.coloured) continue;
40548
+ const rows = codeLineRows(line, void 0, room, code.indent, pad);
40549
+ for (const made of rows)
40550
+ code.fixed.push(this.wrap(made, first + code.volatile.length + code.fixed.length));
40551
+ }
40552
+ }
40553
+ /** Whether a blank row stands between the block before and this one. */
40554
+ gapAbove(code) {
40555
+ return blockGap({ type: "code", indent: code.opener.indent }, this.prev) === 1;
40556
+ }
40557
+ };
40558
+
40264
40559
  // src/tui/fullscreen/layout.ts
40265
40560
  function rendersMarkdown(message) {
40266
40561
  return message.role === "assistant" && message.content.length > 0 && message.statusRows === void 0 && // The rendered rows carry the content only; a reply with a meta suffix keeps
@@ -40311,7 +40606,7 @@ function clickableRows(message, hasPrev, width, open) {
40311
40606
  const shown = open ? openedMessage(message) : message;
40312
40607
  const hint = open ? void 0 : CLICK_EXPAND_HINT;
40313
40608
  const plain2 = open ? messageScrollRows(shown, hasPrev, fit2) : closed;
40314
- const text = scrollBodyText(shown, hint);
40609
+ const text = scrollBodyText(shown, hint, fit2);
40315
40610
  const body = wrapChoiceText(text, fit2).length;
40316
40611
  const joins = wrapJoiners(
40317
40612
  text,
@@ -40328,7 +40623,7 @@ function clickableRows(message, hasPrev, width, open) {
40328
40623
  };
40329
40624
  }
40330
40625
  __name(clickableRows, "clickableRows");
40331
- function fullscreenMessageRows(asked, hasPrev, width, mode = PLAIN) {
40626
+ function fullscreenMessageRows(asked, hasPrev, width, mode = PLAIN, streams) {
40332
40627
  const message = withLiveHint(asked);
40333
40628
  if (mode.click) {
40334
40629
  const clickable = clickableRows(message, hasPrev, width, mode.open);
@@ -40340,25 +40635,36 @@ function fullscreenMessageRows(asked, hasPrev, width, mode = PLAIN) {
40340
40635
  const plain2 = messageScrollRows(markdown ? { ...message, content: "x" } : message, hasPrev, fit2);
40341
40636
  const gap = plain2.gap ? plainRow(plain2.gap) : null;
40342
40637
  const first = plain2.rows[0];
40343
- const body = markdown ? 1 : wrapChoiceText(scrollBodyText(message), fit2).length;
40638
+ const body = markdown ? 1 : wrapChoiceText(scrollBodyText(message, void 0, fit2), fit2).length;
40344
40639
  if (markdown && first) {
40345
- const shown = message.pending ? tailView(message.content, { join: "block", lead: null }) : message.content;
40346
- const rows = markdownRows(shown, width, contentColorForRole(message.role)).map(
40347
- (row2, i) => ({
40348
- glyph: i === 0 ? first.glyph : " ",
40349
- glyphColor: first.glyphColor,
40350
- text: row2.text,
40351
- color: first.color,
40352
- spans: row2.spans,
40353
- joins: row2.joins,
40354
- lead: row2.lead
40355
- })
40356
- );
40640
+ const color = contentColorForRole(message.role);
40641
+ const wrap3 = /* @__PURE__ */ __name((row2, i) => ({
40642
+ glyph: i === 0 ? first.glyph : " ",
40643
+ glyphColor: first.glyphColor,
40644
+ text: row2.text,
40645
+ color: first.color,
40646
+ spans: row2.spans,
40647
+ joins: row2.joins,
40648
+ lead: row2.lead
40649
+ }), "wrap");
40650
+ const kept = streams && (message.pending || streams.has(message.id));
40651
+ const key = `${width}|${color}|${shownTheme()}:${grammarVersion()}|${first.glyph}|${first.glyphColor}|${first.color}`;
40652
+ let held2 = kept ? streams.get(message.id) : void 0;
40653
+ if (kept && (!held2 || held2.key !== key)) {
40654
+ held2 = { key, rows: new ReplyRows(width, color, wrap3) };
40655
+ streams.set(message.id, held2);
40656
+ }
40657
+ const streamed = held2?.rows.update(message.content, !message.pending);
40658
+ const rows = streamed ?? [];
40659
+ if (!streamed) {
40660
+ const shown = message.pending ? tailView(message.content, { join: "block", lead: null }) : message.content;
40661
+ markdownRows(shown, width, color).forEach((row2, i) => rows.push(wrap3(row2, i)));
40662
+ }
40357
40663
  for (const row2 of plain2.rows.slice(body)) rows.push(plainRow(row2));
40358
40664
  return { gap, rows };
40359
40665
  }
40360
40666
  const joins = wrapJoiners(
40361
- scrollBodyText(message),
40667
+ scrollBodyText(message, void 0, fit2),
40362
40668
  plain2.rows.slice(0, body).map((r) => r.text)
40363
40669
  );
40364
40670
  const own = plain2.rows.map((row2, i) => plainRow(row2, i < body ? joins[i] ?? null : null));
@@ -40369,7 +40675,7 @@ function fullscreenMessageRows(asked, hasPrev, width, mode = PLAIN) {
40369
40675
  }
40370
40676
  __name(fullscreenMessageRows, "fullscreenMessageRows");
40371
40677
  function createLayoutCache() {
40372
- return { kept: /* @__PURE__ */ new WeakMap(), laid: 0 };
40678
+ return { kept: /* @__PURE__ */ new WeakMap(), streams: /* @__PURE__ */ new Map(), laid: 0 };
40373
40679
  }
40374
40680
  __name(createLayoutCache, "createLayoutCache");
40375
40681
  var MARK_ID = "\0new-replies";
@@ -40403,7 +40709,7 @@ function layoutTranscript(messages, pending, pendingAt, columns, cache3, view =
40403
40709
  theme: theme2,
40404
40710
  click: mode.click,
40405
40711
  open: mode.open,
40406
- block: fullscreenMessageRows(message, hasPrev, width, mode)
40712
+ block: fullscreenMessageRows(message, hasPrev, width, mode, cache3.streams)
40407
40713
  };
40408
40714
  cache3.kept.set(message, hit);
40409
40715
  cache3.laid += 1;
@@ -40417,6 +40723,7 @@ function layoutTranscript(messages, pending, pendingAt, columns, cache3, view =
40417
40723
  tail: `${message.content.length}:${message.pending ? 1 : 0}`
40418
40724
  });
40419
40725
  });
40726
+ for (const id of cache3.streams.keys()) if (id !== pending?.id) cache3.streams.delete(id);
40420
40727
  return { rows, index: buildRowIndex(blocks) };
40421
40728
  }
40422
40729
  __name(layoutTranscript, "layoutTranscript");
@@ -45623,6 +45930,7 @@ function trailFromRecords(records, options) {
45623
45930
  const turns = /* @__PURE__ */ new Map();
45624
45931
  const turnOfMessage = /* @__PURE__ */ new Map();
45625
45932
  const recalled = /* @__PURE__ */ new Map();
45933
+ const spawnedIn = /* @__PURE__ */ new Map();
45626
45934
  const turn = /* @__PURE__ */ __name((id) => {
45627
45935
  let found = turns.get(id);
45628
45936
  if (!found) {
@@ -45671,6 +45979,19 @@ function trailFromRecords(records, options) {
45671
45979
  }
45672
45980
  }
45673
45981
  break;
45982
+ case "child_session_spawned":
45983
+ if (turnId && typeof record3.childSessionId === "string")
45984
+ spawnedIn.set(record3.childSessionId, turnId);
45985
+ break;
45986
+ case "child_session_ended": {
45987
+ const owner = typeof record3.childSessionId === "string" ? spawnedIn.get(record3.childSessionId) : void 0;
45988
+ const spent = record3.usage?.totalTokens;
45989
+ if (owner && typeof spent === "number" && Number.isFinite(spent)) {
45990
+ const t = turn(owner);
45991
+ t.agentTokens = (t.agentTokens ?? 0) + spent;
45992
+ }
45993
+ break;
45994
+ }
45674
45995
  case "tool_executing": {
45675
45996
  if (typeof record3.toolUseId !== "string" || record3.via) break;
45676
45997
  const key = callKey(turnId, record3.toolUseId);
@@ -45931,7 +46252,12 @@ function createRestoredTurnWriter(messages, nextId, options) {
45931
46252
  const stand = turn.agents.map(
45932
46253
  (failed) => ({ status: failed ? "failed" : "completed" })
45933
46254
  );
45934
- const line = stand.length > 0 || completed ? settleLine(Math.max(0, turn.endedAt - turn.startedAt), stand, new Date(turn.endedAt)) : void 0;
46255
+ const line = stand.length > 0 || completed ? settleLine(
46256
+ Math.max(0, turn.endedAt - turn.startedAt),
46257
+ stand,
46258
+ new Date(turn.endedAt),
46259
+ turn.agentTokens
46260
+ ) : void 0;
45935
46261
  if (line)
45936
46262
  rows.push({
45937
46263
  id: nextId(),
@@ -51804,10 +52130,10 @@ ${blocks.join("\n\n")}`;
51804
52130
  const progressId = pushMessage("system", "Reading spend\u2026");
51805
52131
  try {
51806
52132
  const [{ buildCostReport }, { renderSpend }, { systemClock }, { resolveNamzuHome: resolveNamzuHome2 }] = await Promise.all([
51807
- import("./cost-MJOM52FI.js"),
52133
+ import("./cost-PQWWLMOO.js"),
51808
52134
  import("./render-QFCCPEEL.js"),
51809
52135
  import("./day-CU5J7UAK.js"),
51810
- import("./home-GP3Y7F5H.js")
52136
+ import("./home-7TSSDRFT.js")
51811
52137
  ]);
51812
52138
  const report = await buildCostReport(days, {
51813
52139
  home: resolveNamzuHome2(),
@@ -51833,7 +52159,7 @@ ${blocks.join("\n\n")}`;
51833
52159
  doctorRunningRef.current = true;
51834
52160
  const progressId = pushMessage("system", "Checking\u2026");
51835
52161
  try {
51836
- const { runLiveDoctor } = await import("./live-OVTHCQB3.js");
52162
+ const { runLiveDoctor } = await import("./live-LHKUQFEO.js");
51837
52163
  const { describePlainDoctor } = await import("./plain-report-XVPBQDLE.js");
51838
52164
  const report = await runLiveDoctor({
51839
52165
  ...ctxRef.current.telemetry ? { telemetry: ctxRef.current.telemetry } : {}
@@ -52111,6 +52437,8 @@ ${blocks.join("\n\n")}`;
52111
52437
  resetSubagentActivity();
52112
52438
  session?.resetTaskStore?.();
52113
52439
  activeTurnTokenRef.current = null;
52440
+ await printLiveRowsBeforeClear();
52441
+ settleAllRef.current = false;
52114
52442
  resetTranscript();
52115
52443
  setMessages(restored);
52116
52444
  modelHistoryRef.current = msgs;
@@ -52173,6 +52501,7 @@ ${blocks.join("\n\n")}`;
52173
52501
  resetSubagentActivity,
52174
52502
  session,
52175
52503
  resetTranscript,
52504
+ printLiveRowsBeforeClear,
52176
52505
  wakeGoalDriver,
52177
52506
  pushSystem
52178
52507
  ]
@@ -53027,6 +53356,8 @@ ${blocks.join("\n\n")}`;
53027
53356
  lastAssistantMessage.current = null;
53028
53357
  const persistedOutput = latestAssistantOutput(forked.messages);
53029
53358
  lastCompletedOutputRef.current = persistedOutput ? { text: persistedOutput, provenance: "persisted" } : null;
53359
+ await printLiveRowsBeforeClear();
53360
+ settleAllRef.current = false;
53030
53361
  resetTranscript();
53031
53362
  outcomeToldRef.current = { id: void 0, telling: NOTHING_TOLD };
53032
53363
  setMessages(
@@ -53066,6 +53397,7 @@ ${blocks.join("\n\n")}`;
53066
53397
  hydrateSavedChildren,
53067
53398
  resetSubagentActivity,
53068
53399
  session,
53400
+ printLiveRowsBeforeClear,
53069
53401
  resetTranscript,
53070
53402
  setRewindView,
53071
53403
  wakeGoalDriver
@@ -53117,6 +53449,8 @@ ${blocks.join("\n\n")}`;
53117
53449
  }
53118
53450
  const at = editList.indexOf(target);
53119
53451
  const readable = option === "summarize" ? editList.slice(0, Math.max(0, at)).map((prompt) => prompt.displayText) : editList.slice(Math.max(0, at)).map((prompt) => prompt.displayText);
53452
+ await printLiveRowsBeforeClear();
53453
+ settleAllRef.current = false;
53120
53454
  resetTranscript();
53121
53455
  outcomeToldRef.current = { id: void 0, telling: NOTHING_TOLD };
53122
53456
  setMessages(
@@ -53146,7 +53480,15 @@ ${blocks.join("\n\n")}`;
53146
53480
  compactingRef.current = false;
53147
53481
  }
53148
53482
  },
53149
- [editList, nextId, pushMessage, resetTranscript, session, setRewindView]
53483
+ [
53484
+ editList,
53485
+ nextId,
53486
+ printLiveRowsBeforeClear,
53487
+ pushMessage,
53488
+ resetTranscript,
53489
+ session,
53490
+ setRewindView
53491
+ ]
53150
53492
  );
53151
53493
  const runRewindChoice = (0, import_react60.useCallback)(
53152
53494
  async (rowIndex, option, context) => {
@@ -56281,8 +56623,11 @@ ${peersList.map((peer) => `${peer.self ? "This terminal" : peer.title} [${peer.r
56281
56623
  return;
56282
56624
  }
56283
56625
  case "clear-screen":
56284
- setMessages([]);
56285
- resetTranscript();
56626
+ void printLiveRowsBeforeClear().then(() => {
56627
+ settleAllRef.current = false;
56628
+ setMessages([]);
56629
+ resetTranscript();
56630
+ });
56286
56631
  return;
56287
56632
  case "composer-draft":
56288
56633
  composerDraftTokenRef.current += 1;
@@ -60104,4 +60449,4 @@ react/cjs/react-jsx-runtime.production.js:
60104
60449
  * LICENSE file in the root directory of this source tree.
60105
60450
  *)
60106
60451
  */
60107
- //# sourceMappingURL=chunk-ABOV5CRT.js.map
60452
+ //# sourceMappingURL=chunk-WDY7OHLQ.js.map