@namzu/cli 53.2.1 → 53.3.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 (418) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/dist/bin.js +1 -1
  3. package/dist/chunks/{acp-RVXP6JYI.js → acp-TDBFWPHB.js} +59 -57
  4. package/dist/chunks/acp-TDBFWPHB.js.map +6 -0
  5. package/dist/chunks/{activity-command-URELNCMX.js → activity-command-OS75DEKF.js} +12 -12
  6. package/dist/chunks/{add-S5EFCMBB.js → add-LNQAOHZS.js} +19 -19
  7. package/dist/chunks/{agent-FHKVVYCJ.js → agent-MM4SMTQS.js} +43 -41
  8. package/dist/chunks/agent-session-RPSTX6GN.js +79 -0
  9. package/dist/chunks/{apply-at-exit-LR5XT7FM.js → apply-at-exit-EY73HTUZ.js} +11 -12
  10. package/dist/chunks/apply-at-exit-EY73HTUZ.js.map +6 -0
  11. package/dist/chunks/{archive-A37GUHNR.js → archive-I7X74XA6.js} +10 -10
  12. package/dist/chunks/{bin-main-WTM64ZLB.js → bin-main-M66LUUMP.js} +9 -9
  13. package/dist/chunks/{binding-JIILVHUU.js → binding-L45TTMZJ.js} +3 -3
  14. package/dist/chunks/{browser-UYISYE63.js → browser-DNPDAQFD.js} +6 -6
  15. package/dist/chunks/{chat-AJVT3PZ4.js → chat-RPQFKIAD.js} +15 -15
  16. package/dist/chunks/{chunk-XTS4BWEA.js → chunk-27BVRMUJ.js} +2 -2
  17. package/dist/chunks/{chunk-CVUHHALT.js → chunk-2LOYDAU5.js} +6 -6
  18. package/dist/chunks/{chunk-N7Y7J6RY.js → chunk-2XOJQKYX.js} +16 -16
  19. package/dist/chunks/{chunk-2IMSB7XK.js → chunk-3EH3USMD.js} +2 -2
  20. package/dist/chunks/{chunk-ZGXGRKTT.js → chunk-4E6HWHOX.js} +4 -4
  21. package/dist/chunks/{chunk-NYSXRWIC.js → chunk-4ITXTSNQ.js} +2 -2
  22. package/dist/chunks/{chunk-4DER34EW.js → chunk-5CGQ2AOP.js} +2 -2
  23. package/dist/chunks/{chunk-LFJYO4YC.js → chunk-5KHKXEP5.js} +2 -2
  24. package/dist/chunks/{chunk-LL6ZXDH3.js → chunk-5LWBZYOK.js} +3 -3
  25. package/dist/chunks/{chunk-IFCUIKLP.js → chunk-62LRLDHY.js} +10 -10
  26. package/dist/chunks/{chunk-2FZ5I36Y.js → chunk-6IUD3NVQ.js} +345 -25
  27. package/dist/chunks/chunk-6IUD3NVQ.js.map +6 -0
  28. package/dist/chunks/{chunk-6E4XSINO.js → chunk-6NFHP44E.js} +2 -2
  29. package/dist/chunks/{chunk-GXFCNVRN.js → chunk-6PIZ3336.js} +5 -5
  30. package/dist/chunks/{chunk-MOMUAPLM.js → chunk-7DTV64LX.js} +9 -9
  31. package/dist/chunks/{chunk-3HLKXSR4.js → chunk-7KIVKXQB.js} +5 -5
  32. package/dist/chunks/{chunk-XNQMO4UQ.js → chunk-A4RKSHUI.js} +4 -4
  33. package/dist/chunks/{chunk-IFNX2DCK.js → chunk-ARPABLFS.js} +3 -3
  34. package/dist/chunks/{chunk-OARZW3MB.js → chunk-B5O2UDMT.js} +3 -3
  35. package/dist/chunks/{chunk-5HZGL2CJ.js → chunk-BGYZ3SVB.js} +2 -2
  36. package/dist/chunks/{chunk-FVSMLXXD.js → chunk-BRSUV2MI.js} +5 -5
  37. package/dist/chunks/{chunk-BY57QRDB.js → chunk-BULDCXFX.js} +357 -143
  38. package/dist/chunks/chunk-BULDCXFX.js.map +6 -0
  39. package/dist/chunks/{chunk-UTT4MLLS.js → chunk-BWUBI6VE.js} +2 -2
  40. package/dist/chunks/{chunk-XH3JG354.js → chunk-BZMMDJFZ.js} +3 -3
  41. package/dist/chunks/{chunk-DTI6LBPL.js → chunk-CS7Q2ZUU.js} +2 -2
  42. package/dist/chunks/{chunk-2JDHGE5X.js → chunk-D32E7XO6.js} +2 -2
  43. package/dist/chunks/{chunk-I2WWQWOI.js → chunk-DCV3FVXI.js} +2 -2
  44. package/dist/chunks/{chunk-YZAM5OII.js → chunk-DLHPY4VQ.js} +4 -4
  45. package/dist/chunks/{chunk-ZJ56MAER.js → chunk-E3L237Z7.js} +2 -2
  46. package/dist/chunks/{chunk-XO6WQQ67.js → chunk-ENJM7PYT.js} +3 -3
  47. package/dist/chunks/{chunk-EVGU3BR6.js → chunk-F7M6MIAS.js} +9 -5
  48. package/dist/chunks/chunk-F7M6MIAS.js.map +6 -0
  49. package/dist/chunks/{chunk-BT76TYMR.js → chunk-FLRYCMRH.js} +2 -2
  50. package/dist/chunks/{chunk-AR7JOE6W.js → chunk-FY3ZMDWN.js} +6 -6
  51. package/dist/chunks/{chunk-RYVWRI2O.js → chunk-G7PWYTB4.js} +2 -2
  52. package/dist/chunks/{chunk-EIK35VTY.js → chunk-GIKCLC27.js} +4 -4
  53. package/dist/chunks/{chunk-YWJ4WKSM.js → chunk-HLLAVDYT.js} +38 -38
  54. package/dist/chunks/{chunk-NTN4HVCG.js → chunk-HM5UJONE.js} +14 -14
  55. package/dist/chunks/{chunk-2UKMUTVB.js → chunk-HVFIYEP6.js} +6 -6
  56. package/dist/chunks/{chunk-FUPKNX52.js → chunk-IWZXZZMU.js} +3 -3
  57. package/dist/chunks/{chunk-QOGLGPLA.js → chunk-JG462CCT.js} +2 -2
  58. package/dist/chunks/{chunk-EP6JEZ6Y.js → chunk-K3AE66MM.js} +4 -4
  59. package/dist/chunks/{chunk-WWFYM2UR.js → chunk-KOGSKOU7.js} +2 -2
  60. package/dist/chunks/{chunk-YXX7ARE5.js → chunk-KP4H7FJ7.js} +2 -2
  61. package/dist/chunks/{chunk-4Q7Y6SKU.js → chunk-LAMQGSGH.js} +5 -5
  62. package/dist/chunks/{chunk-2CNFTOKO.js → chunk-LDMHANNT.js} +4 -4
  63. package/dist/chunks/chunk-LDMHANNT.js.map +6 -0
  64. package/dist/chunks/{chunk-KC2CIMAX.js → chunk-LITTVCZQ.js} +18 -11
  65. package/dist/chunks/chunk-LITTVCZQ.js.map +6 -0
  66. package/dist/chunks/{chunk-H6UQL66Z.js → chunk-LJQAGSYZ.js} +3 -3
  67. package/dist/chunks/{chunk-JLGLQMAN.js → chunk-LQ5L75T6.js} +4 -4
  68. package/dist/chunks/{chunk-NMYUBZZU.js → chunk-LYMSGP53.js} +2 -2
  69. package/dist/chunks/{chunk-JIWW55EF.js → chunk-LYTMEPN4.js} +12 -3
  70. package/dist/chunks/chunk-LYTMEPN4.js.map +6 -0
  71. package/dist/chunks/{chunk-ODQ6JG66.js → chunk-MDAEHXSL.js} +3 -3
  72. package/dist/chunks/{chunk-J6YNCFQG.js → chunk-MM4BFFRT.js} +3 -3
  73. package/dist/chunks/{chunk-UNSMBZM3.js → chunk-MRSWBORX.js} +40 -21
  74. package/dist/chunks/chunk-MRSWBORX.js.map +6 -0
  75. package/dist/chunks/{chunk-Y6WCUDCQ.js → chunk-MYHK6KOU.js} +3 -3
  76. package/dist/chunks/{chunk-AV7SMPXT.js → chunk-MYQ2MZKF.js} +6 -6
  77. package/dist/chunks/{chunk-5LSXNZBY.js → chunk-NA6FHE5K.js} +2 -2
  78. package/dist/chunks/{chunk-526VZQN4.js → chunk-NDGMUBFS.js} +3 -3
  79. package/dist/chunks/{chunk-G44HNSPD.js → chunk-NEYRPPT5.js} +2 -2
  80. package/dist/chunks/{chunk-DADJ4GQ2.js → chunk-NJ4PLSBZ.js} +2 -2
  81. package/dist/chunks/{chunk-RZILFYMH.js → chunk-NRHUKGZ3.js} +3 -3
  82. package/dist/chunks/{chunk-H4SIPZ3Q.js → chunk-O6NHCC4Q.js} +4 -4
  83. package/dist/chunks/{chunk-K7MLADWM.js → chunk-OH5T7ODG.js} +4 -4
  84. package/dist/chunks/{chunk-UZNITHS6.js → chunk-OLSRO4FC.js} +2 -2
  85. package/dist/chunks/{chunk-XBQFS7OK.js → chunk-OMFV2AEQ.js} +2 -2
  86. package/dist/chunks/{chunk-ZAJRK64O.js → chunk-P33ZADN3.js} +2 -2
  87. package/dist/chunks/{chunk-GELAA6HR.js → chunk-P6DJ6AS5.js} +2 -2
  88. package/dist/chunks/{chunk-G6FYM5SR.js → chunk-PGYSDVT7.js} +5 -5
  89. package/dist/chunks/{chunk-IFUOFLH7.js → chunk-PJPPWJIB.js} +5 -5
  90. package/dist/chunks/{chunk-Q3HGNRKL.js → chunk-QWCFMVAZ.js} +3 -3
  91. package/dist/chunks/{chunk-XHLQEV4L.js → chunk-QYKPC5HO.js} +9 -9
  92. package/dist/chunks/{chunk-AZIXXTEN.js → chunk-RBUVQQLL.js} +4 -4
  93. package/dist/chunks/{chunk-WM6TW355.js → chunk-RMRGVJOA.js} +274 -71
  94. package/dist/chunks/chunk-RMRGVJOA.js.map +6 -0
  95. package/dist/chunks/{chunk-PIV6IFK2.js → chunk-RO7HHDLW.js} +4 -4
  96. package/dist/chunks/{chunk-YZPZQJTG.js → chunk-SC2FLZAI.js} +2 -2
  97. package/dist/chunks/{chunk-ZIEVVDOR.js → chunk-T6BRCKD3.js} +9 -9
  98. package/dist/chunks/{chunk-PZCNHP7O.js → chunk-TCAS4XVK.js} +2 -2
  99. package/dist/chunks/{chunk-VXRC5XNZ.js → chunk-U77IVKFU.js} +5 -5
  100. package/dist/chunks/{chunk-QIBMSMZA.js → chunk-UAD3AUKO.js} +2 -2
  101. package/dist/chunks/{cost-2D4AKLSB.js → chunk-UE2MJ5YP.js} +22 -103
  102. package/dist/chunks/chunk-UE2MJ5YP.js.map +6 -0
  103. package/dist/chunks/{chunk-AUNCOQGN.js → chunk-UQFW622M.js} +2 -2
  104. package/dist/chunks/{chunk-KNIPTSFW.js → chunk-UYC7YSMD.js} +3 -3
  105. package/dist/chunks/{chunk-GXOQRU72.js → chunk-V2OLXCTE.js} +7 -7
  106. package/dist/chunks/{chunk-TFXV3553.js → chunk-V73ZJCIQ.js} +3 -3
  107. package/dist/chunks/{chunk-M56YCKGZ.js → chunk-V7U4OXBC.js} +4 -4
  108. package/dist/chunks/{chunk-XNBNN3OW.js → chunk-VUNKDZ34.js} +3 -3
  109. package/dist/chunks/{chunk-EMLOKSP6.js → chunk-WUCZIFEU.js} +12 -12
  110. package/dist/chunks/{chunk-L4XN5ILM.js → chunk-WVQRVEZ7.js} +2 -2
  111. package/dist/chunks/{chunk-KGGI2PH4.js → chunk-WVZG6GRE.js} +3 -3
  112. package/dist/chunks/{chunk-LEFLHBYY.js → chunk-XQHHFTFX.js} +195 -144
  113. package/dist/chunks/chunk-XQHHFTFX.js.map +6 -0
  114. package/dist/chunks/{chunk-M5NXCEVY.js → chunk-XTYVS4SM.js} +3 -3
  115. package/dist/chunks/{chunk-UHFJTEZV.js → chunk-XZXE7L4B.js} +3 -3
  116. package/dist/chunks/{chunk-WL3HPARH.js → chunk-YDE7ZNUH.js} +2 -2
  117. package/dist/chunks/{chunk-YVLXLUGP.js → chunk-YJ25LOMP.js} +897 -693
  118. package/dist/chunks/chunk-YJ25LOMP.js.map +6 -0
  119. package/dist/chunks/{chunk-3WYIYJID.js → chunk-YOBDE45E.js} +4 -4
  120. package/dist/chunks/{chunk-SVEAODES.js → chunk-YZIUYGJT.js} +4 -4
  121. package/dist/chunks/{chunk-BBOGGNTL.js → chunk-Z4TNPAB4.js} +7 -7
  122. package/dist/chunks/{chunk-K6GW3ZS7.js → chunk-ZKCOQZ3U.js} +7 -1
  123. package/dist/chunks/chunk-ZKCOQZ3U.js.map +6 -0
  124. package/dist/chunks/{chunk-IRCIEEOM.js → chunk-ZNGRNTOY.js} +2 -2
  125. package/dist/chunks/{cli-runtime-ULOMVN5Y.js → cli-runtime-IJWC2OTK.js} +12 -12
  126. package/dist/chunks/{commands-MENGP42Y.js → commands-S7OW6RX6.js} +5 -5
  127. package/dist/chunks/cost-VA6HZQE6.js +118 -0
  128. package/dist/chunks/cost-VA6HZQE6.js.map +6 -0
  129. package/dist/chunks/{crash-report-NNFSJ43Y.js → crash-report-F663DOML.js} +6 -6
  130. package/dist/chunks/{dist-QXUTKQ55.js → dist-IOJ4RD22.js} +2 -2
  131. package/dist/chunks/{dist-PNWD3XCT.js → dist-KXNNNQJP.js} +10 -2
  132. package/dist/chunks/{dist-AXIGKZIL.js → dist-OZTQJUXV.js} +352 -46
  133. package/dist/chunks/dist-OZTQJUXV.js.map +6 -0
  134. package/dist/chunks/{dist-EQE2TVFV.js → dist-S7E46RVO.js} +2 -2
  135. package/dist/chunks/{dist-INIQ54DO.js → dist-VNVQM6JU.js} +2 -2
  136. package/dist/chunks/{dist-7JVVF6E3.js → dist-XY5CE56Y.js} +2 -2
  137. package/dist/chunks/{dist-GWSFISZW.js → dist-ZHVTRMOZ.js} +2 -2
  138. package/dist/chunks/{dist-6BYDAAGG.js → dist-ZXZ4LH3H.js} +2 -2
  139. package/dist/chunks/{doctor-GIFSKHDE.js → doctor-GH3XGHIB.js} +39 -39
  140. package/dist/chunks/{drain-WNGSFYGG.js → drain-YZXZQAUT.js} +9 -9
  141. package/dist/chunks/{entry-3ZDHM5YQ.js → entry-LGDDSUPB.js} +6 -6
  142. package/dist/chunks/{eval-4IIX7NIV.js → eval-EYN5BPLR.js} +7 -7
  143. package/dist/chunks/{exec-NNLZUIZJ.js → exec-BMAOOSOF.js} +41 -41
  144. package/dist/chunks/{home-S3SNMFFG.js → home-5OAGR5X5.js} +3 -3
  145. package/dist/chunks/{hooks-3T5XVQSK.js → hooks-WV6P6LIP.js} +16 -16
  146. package/dist/chunks/{hooks-report-3GDKOXB3.js → hooks-report-JUCEQJ73.js} +15 -15
  147. package/dist/chunks/{host-BTE2HSHJ.js → host-EISOQGKE.js} +10 -10
  148. package/dist/chunks/{host-queries-MWZKZJOA.js → host-queries-HJHMGU5N.js} +15 -15
  149. package/dist/chunks/{learn-DA2U4OPO.js → learn-27BG44YG.js} +11 -11
  150. package/dist/chunks/{learn-builtin-R5A4MYGZ.js → learn-builtin-K5HQZDEA.js} +14 -14
  151. package/dist/chunks/{lifecycle-P3BZYTFI.js → lifecycle-L3BEM34W.js} +28 -28
  152. package/dist/chunks/{list-SIJK3GE5.js → list-AB4VHNL2.js} +12 -12
  153. package/dist/chunks/{live-KY5OOYNO.js → live-UWUEDSPR.js} +37 -37
  154. package/dist/chunks/{load-SI2C6QKJ.js → load-NFDONLZ2.js} +7 -7
  155. package/dist/chunks/{login-WOAZ5OLO.js → login-GON2CRE6.js} +12 -12
  156. package/dist/chunks/{logs-ZXSLLFAK.js → logs-C7WBBIJR.js} +4 -4
  157. package/dist/chunks/{mcp-TRDRYPNW.js → mcp-EBV34ZOW.js} +20 -20
  158. package/dist/chunks/{message-command-LR5MNLOD.js → message-command-Q7U54E4U.js} +49 -47
  159. package/dist/chunks/message-command-Q7U54E4U.js.map +6 -0
  160. package/dist/chunks/{open-KTUOVJCU.js → open-DLDZOPHP.js} +8 -8
  161. package/dist/chunks/{operator-tools-HN6MNPZW.js → operator-tools-HT2GSJ56.js} +13 -13
  162. package/dist/chunks/{output-schema-4LL23SA5.js → output-schema-UODVJVW4.js} +3 -3
  163. package/dist/chunks/{pal-C7A3S6MR.js → pal-PN4RXHBT.js} +15 -15
  164. package/dist/chunks/{peers-HINKWP3P.js → peers-HYMQ3RDX.js} +9 -9
  165. package/dist/chunks/{peers-IYCZ3OWB.js → peers-MVQTZ4ND.js} +6 -6
  166. package/dist/chunks/{plugin-YBGRF5FP.js → plugin-Y4XV5CKG.js} +15 -15
  167. package/dist/chunks/{providers-AI27XYWT.js → providers-K23QPBYN.js} +10 -10
  168. package/dist/chunks/{pty-7OTKGV53.js → pty-UIYKKO63.js} +3 -3
  169. package/dist/chunks/resume-ON75M2JL.js +23 -0
  170. package/dist/chunks/{resume-command-PG63DMVD.js → resume-command-O6FGFDSE.js} +4 -4
  171. package/dist/chunks/{running-CNUUXGYY.js → running-DAUDQDDJ.js} +6 -5
  172. package/dist/chunks/{schedule-37J3S7UQ.js → schedule-U7UZBKHQ.js} +8 -8
  173. package/dist/chunks/{send-7JV6J5T5.js → send-3R5RDV2H.js} +15 -15
  174. package/dist/chunks/{send-person-J5BSYFXQ.js → send-person-6NMIN4OT.js} +13 -13
  175. package/dist/chunks/{service-NSMWSI2E.js → service-2PDUZZPQ.js} +28 -28
  176. package/dist/chunks/{skills-AXZ5ETFS.js → skills-4UXJESZB.js} +13 -13
  177. package/dist/chunks/{start-check-V2U4533P.js → start-check-L62L5YIZ.js} +2 -2
  178. package/dist/chunks/{startup-failure-4HKS72EM.js → startup-failure-VS2U4JIC.js} +2 -2
  179. package/dist/chunks/{state-NVCB2RFV.js → state-DMLD6RWU.js} +2 -2
  180. package/dist/chunks/{store-2BFQ2UUT.js → store-3WIIBVKJ.js} +4 -4
  181. package/dist/chunks/{store-XBERR7IC.js → store-DIVYPBNS.js} +3 -3
  182. package/dist/chunks/{store-IACUKT6H.js → store-TYFJML3O.js} +10 -10
  183. package/dist/chunks/{store-FUNVZ2G4.js → store-ZLCDFCYI.js} +6 -6
  184. package/dist/chunks/{tui-UOTMH2CQ.js → tui-MMFCXIWN.js} +90 -85
  185. package/dist/chunks/tui-MMFCXIWN.js.map +6 -0
  186. package/dist/chunks/{upgrade-FBBMIEF6.js → upgrade-F6JAFFIV.js} +11 -12
  187. package/dist/chunks/upgrade-F6JAFFIV.js.map +6 -0
  188. package/dist/chunks/{watch-KKCKSEUU.js → watch-TU7OG2DS.js} +82 -81
  189. package/dist/chunks/watch-TU7OG2DS.js.map +6 -0
  190. package/dist/chunks/{workspaces-WDQH4NP3.js → workspaces-ZHM5N3OY.js} +16 -16
  191. package/dist/chunks/{worktree-SRCZK4CS.js → worktree-2MMIAPGE.js} +19 -19
  192. package/dist/context/doctrine.d.ts.map +1 -1
  193. package/dist/context/identity.d.ts.map +1 -1
  194. package/dist/doctor/checks/updates.d.ts.map +1 -1
  195. package/dist/index.js +39 -39
  196. package/dist/integrations/analysis/provider.d.ts.map +1 -1
  197. package/dist/integrations/auto-update/apply.d.ts +7 -0
  198. package/dist/integrations/auto-update/apply.d.ts.map +1 -1
  199. package/dist/integrations/auto-update/replaced-install.d.ts +2 -0
  200. package/dist/integrations/auto-update/replaced-install.d.ts.map +1 -1
  201. package/dist/integrations/auto-update/running.d.ts +16 -5
  202. package/dist/integrations/auto-update/running.d.ts.map +1 -1
  203. package/dist/integrations/auto-update/start.d.ts.map +1 -1
  204. package/dist/integrations/auto-update/status.d.ts +8 -0
  205. package/dist/integrations/auto-update/status.d.ts.map +1 -1
  206. package/dist/integrations/auto-update/swap.d.ts +77 -0
  207. package/dist/integrations/auto-update/swap.d.ts.map +1 -0
  208. package/dist/integrations/auto-update/updater.d.ts +4 -0
  209. package/dist/integrations/auto-update/updater.d.ts.map +1 -1
  210. package/dist/integrations/small-model/side-model.d.ts.map +1 -1
  211. package/dist/integrations/spend/fold.d.ts +2 -0
  212. package/dist/integrations/spend/fold.d.ts.map +1 -1
  213. package/dist/integrations/spend/session-cost.d.ts +46 -0
  214. package/dist/integrations/spend/session-cost.d.ts.map +1 -0
  215. package/dist/integrations/subagents/runtime.d.ts.map +1 -1
  216. package/dist/integrations/workflows/doctrine.d.ts.map +1 -1
  217. package/dist/integrations/workflows/offering.d.ts +6 -2
  218. package/dist/integrations/workflows/offering.d.ts.map +1 -1
  219. package/dist/termination.d.ts +1 -1
  220. package/dist/termination.d.ts.map +1 -1
  221. package/dist/tui/AgentExplorer.d.ts +29 -34
  222. package/dist/tui/AgentExplorer.d.ts.map +1 -1
  223. package/dist/tui/App.d.ts.map +1 -1
  224. package/dist/tui/BackgroundAgentRows.d.ts.map +1 -1
  225. package/dist/tui/ComposerFrame.d.ts +6 -1
  226. package/dist/tui/ComposerFrame.d.ts.map +1 -1
  227. package/dist/tui/StatusBar.d.ts +13 -19
  228. package/dist/tui/StatusBar.d.ts.map +1 -1
  229. package/dist/tui/Transcript.d.ts +9 -3
  230. package/dist/tui/Transcript.d.ts.map +1 -1
  231. package/dist/tui/UpdateNoticeRow.d.ts +36 -0
  232. package/dist/tui/UpdateNoticeRow.d.ts.map +1 -0
  233. package/dist/tui/agent-transcript-rows.d.ts +8 -4
  234. package/dist/tui/agent-transcript-rows.d.ts.map +1 -1
  235. package/dist/tui/agent.d.ts.map +1 -1
  236. package/dist/tui/fullscreen/layout.d.ts +3 -1
  237. package/dist/tui/fullscreen/layout.d.ts.map +1 -1
  238. package/dist/tui/index.d.ts.map +1 -1
  239. package/dist/tui/paint/live-paint.d.ts +19 -1
  240. package/dist/tui/paint/live-paint.d.ts.map +1 -1
  241. package/dist/tui/reply-mark.d.ts +12 -0
  242. package/dist/tui/reply-mark.d.ts.map +1 -0
  243. package/dist/tui/restored-rows.d.ts.map +1 -1
  244. package/dist/tui/transcript-scroll.d.ts +4 -0
  245. package/dist/tui/transcript-scroll.d.ts.map +1 -1
  246. package/package.json +5 -5
  247. package/dist/chunks/acp-RVXP6JYI.js.map +0 -6
  248. package/dist/chunks/agent-session-NJ6H25QY.js +0 -77
  249. package/dist/chunks/apply-at-exit-LR5XT7FM.js.map +0 -6
  250. package/dist/chunks/chunk-2CNFTOKO.js.map +0 -6
  251. package/dist/chunks/chunk-2FZ5I36Y.js.map +0 -6
  252. package/dist/chunks/chunk-BY57QRDB.js.map +0 -6
  253. package/dist/chunks/chunk-EVGU3BR6.js.map +0 -6
  254. package/dist/chunks/chunk-JIWW55EF.js.map +0 -6
  255. package/dist/chunks/chunk-K6GW3ZS7.js.map +0 -6
  256. package/dist/chunks/chunk-KC2CIMAX.js.map +0 -6
  257. package/dist/chunks/chunk-LEFLHBYY.js.map +0 -6
  258. package/dist/chunks/chunk-QVVJ5GAJ.js +0 -107
  259. package/dist/chunks/chunk-QVVJ5GAJ.js.map +0 -6
  260. package/dist/chunks/chunk-UNSMBZM3.js.map +0 -6
  261. package/dist/chunks/chunk-WM6TW355.js.map +0 -6
  262. package/dist/chunks/chunk-YVLXLUGP.js.map +0 -6
  263. package/dist/chunks/cost-2D4AKLSB.js.map +0 -6
  264. package/dist/chunks/dist-AXIGKZIL.js.map +0 -6
  265. package/dist/chunks/message-command-LR5MNLOD.js.map +0 -6
  266. package/dist/chunks/resume-2P6LYLYX.js +0 -23
  267. package/dist/chunks/tui-UOTMH2CQ.js.map +0 -6
  268. package/dist/chunks/upgrade-FBBMIEF6.js.map +0 -6
  269. package/dist/chunks/watch-KKCKSEUU.js.map +0 -6
  270. /package/dist/chunks/{activity-command-URELNCMX.js.map → activity-command-OS75DEKF.js.map} +0 -0
  271. /package/dist/chunks/{add-S5EFCMBB.js.map → add-LNQAOHZS.js.map} +0 -0
  272. /package/dist/chunks/{agent-FHKVVYCJ.js.map → agent-MM4SMTQS.js.map} +0 -0
  273. /package/dist/chunks/{agent-session-NJ6H25QY.js.map → agent-session-RPSTX6GN.js.map} +0 -0
  274. /package/dist/chunks/{archive-A37GUHNR.js.map → archive-I7X74XA6.js.map} +0 -0
  275. /package/dist/chunks/{bin-main-WTM64ZLB.js.map → bin-main-M66LUUMP.js.map} +0 -0
  276. /package/dist/chunks/{binding-JIILVHUU.js.map → binding-L45TTMZJ.js.map} +0 -0
  277. /package/dist/chunks/{browser-UYISYE63.js.map → browser-DNPDAQFD.js.map} +0 -0
  278. /package/dist/chunks/{chat-AJVT3PZ4.js.map → chat-RPQFKIAD.js.map} +0 -0
  279. /package/dist/chunks/{chunk-XTS4BWEA.js.map → chunk-27BVRMUJ.js.map} +0 -0
  280. /package/dist/chunks/{chunk-CVUHHALT.js.map → chunk-2LOYDAU5.js.map} +0 -0
  281. /package/dist/chunks/{chunk-N7Y7J6RY.js.map → chunk-2XOJQKYX.js.map} +0 -0
  282. /package/dist/chunks/{chunk-2IMSB7XK.js.map → chunk-3EH3USMD.js.map} +0 -0
  283. /package/dist/chunks/{chunk-ZGXGRKTT.js.map → chunk-4E6HWHOX.js.map} +0 -0
  284. /package/dist/chunks/{chunk-NYSXRWIC.js.map → chunk-4ITXTSNQ.js.map} +0 -0
  285. /package/dist/chunks/{chunk-4DER34EW.js.map → chunk-5CGQ2AOP.js.map} +0 -0
  286. /package/dist/chunks/{chunk-LFJYO4YC.js.map → chunk-5KHKXEP5.js.map} +0 -0
  287. /package/dist/chunks/{chunk-LL6ZXDH3.js.map → chunk-5LWBZYOK.js.map} +0 -0
  288. /package/dist/chunks/{chunk-IFCUIKLP.js.map → chunk-62LRLDHY.js.map} +0 -0
  289. /package/dist/chunks/{chunk-6E4XSINO.js.map → chunk-6NFHP44E.js.map} +0 -0
  290. /package/dist/chunks/{chunk-GXFCNVRN.js.map → chunk-6PIZ3336.js.map} +0 -0
  291. /package/dist/chunks/{chunk-MOMUAPLM.js.map → chunk-7DTV64LX.js.map} +0 -0
  292. /package/dist/chunks/{chunk-3HLKXSR4.js.map → chunk-7KIVKXQB.js.map} +0 -0
  293. /package/dist/chunks/{chunk-XNQMO4UQ.js.map → chunk-A4RKSHUI.js.map} +0 -0
  294. /package/dist/chunks/{chunk-IFNX2DCK.js.map → chunk-ARPABLFS.js.map} +0 -0
  295. /package/dist/chunks/{chunk-OARZW3MB.js.map → chunk-B5O2UDMT.js.map} +0 -0
  296. /package/dist/chunks/{chunk-5HZGL2CJ.js.map → chunk-BGYZ3SVB.js.map} +0 -0
  297. /package/dist/chunks/{chunk-FVSMLXXD.js.map → chunk-BRSUV2MI.js.map} +0 -0
  298. /package/dist/chunks/{chunk-UTT4MLLS.js.map → chunk-BWUBI6VE.js.map} +0 -0
  299. /package/dist/chunks/{chunk-XH3JG354.js.map → chunk-BZMMDJFZ.js.map} +0 -0
  300. /package/dist/chunks/{chunk-DTI6LBPL.js.map → chunk-CS7Q2ZUU.js.map} +0 -0
  301. /package/dist/chunks/{chunk-2JDHGE5X.js.map → chunk-D32E7XO6.js.map} +0 -0
  302. /package/dist/chunks/{chunk-I2WWQWOI.js.map → chunk-DCV3FVXI.js.map} +0 -0
  303. /package/dist/chunks/{chunk-YZAM5OII.js.map → chunk-DLHPY4VQ.js.map} +0 -0
  304. /package/dist/chunks/{chunk-ZJ56MAER.js.map → chunk-E3L237Z7.js.map} +0 -0
  305. /package/dist/chunks/{chunk-XO6WQQ67.js.map → chunk-ENJM7PYT.js.map} +0 -0
  306. /package/dist/chunks/{chunk-BT76TYMR.js.map → chunk-FLRYCMRH.js.map} +0 -0
  307. /package/dist/chunks/{chunk-AR7JOE6W.js.map → chunk-FY3ZMDWN.js.map} +0 -0
  308. /package/dist/chunks/{chunk-RYVWRI2O.js.map → chunk-G7PWYTB4.js.map} +0 -0
  309. /package/dist/chunks/{chunk-EIK35VTY.js.map → chunk-GIKCLC27.js.map} +0 -0
  310. /package/dist/chunks/{chunk-YWJ4WKSM.js.map → chunk-HLLAVDYT.js.map} +0 -0
  311. /package/dist/chunks/{chunk-NTN4HVCG.js.map → chunk-HM5UJONE.js.map} +0 -0
  312. /package/dist/chunks/{chunk-2UKMUTVB.js.map → chunk-HVFIYEP6.js.map} +0 -0
  313. /package/dist/chunks/{chunk-FUPKNX52.js.map → chunk-IWZXZZMU.js.map} +0 -0
  314. /package/dist/chunks/{chunk-QOGLGPLA.js.map → chunk-JG462CCT.js.map} +0 -0
  315. /package/dist/chunks/{chunk-EP6JEZ6Y.js.map → chunk-K3AE66MM.js.map} +0 -0
  316. /package/dist/chunks/{chunk-WWFYM2UR.js.map → chunk-KOGSKOU7.js.map} +0 -0
  317. /package/dist/chunks/{chunk-YXX7ARE5.js.map → chunk-KP4H7FJ7.js.map} +0 -0
  318. /package/dist/chunks/{chunk-4Q7Y6SKU.js.map → chunk-LAMQGSGH.js.map} +0 -0
  319. /package/dist/chunks/{chunk-H6UQL66Z.js.map → chunk-LJQAGSYZ.js.map} +0 -0
  320. /package/dist/chunks/{chunk-JLGLQMAN.js.map → chunk-LQ5L75T6.js.map} +0 -0
  321. /package/dist/chunks/{chunk-NMYUBZZU.js.map → chunk-LYMSGP53.js.map} +0 -0
  322. /package/dist/chunks/{chunk-ODQ6JG66.js.map → chunk-MDAEHXSL.js.map} +0 -0
  323. /package/dist/chunks/{chunk-J6YNCFQG.js.map → chunk-MM4BFFRT.js.map} +0 -0
  324. /package/dist/chunks/{chunk-Y6WCUDCQ.js.map → chunk-MYHK6KOU.js.map} +0 -0
  325. /package/dist/chunks/{chunk-AV7SMPXT.js.map → chunk-MYQ2MZKF.js.map} +0 -0
  326. /package/dist/chunks/{chunk-5LSXNZBY.js.map → chunk-NA6FHE5K.js.map} +0 -0
  327. /package/dist/chunks/{chunk-526VZQN4.js.map → chunk-NDGMUBFS.js.map} +0 -0
  328. /package/dist/chunks/{chunk-G44HNSPD.js.map → chunk-NEYRPPT5.js.map} +0 -0
  329. /package/dist/chunks/{chunk-DADJ4GQ2.js.map → chunk-NJ4PLSBZ.js.map} +0 -0
  330. /package/dist/chunks/{chunk-RZILFYMH.js.map → chunk-NRHUKGZ3.js.map} +0 -0
  331. /package/dist/chunks/{chunk-H4SIPZ3Q.js.map → chunk-O6NHCC4Q.js.map} +0 -0
  332. /package/dist/chunks/{chunk-K7MLADWM.js.map → chunk-OH5T7ODG.js.map} +0 -0
  333. /package/dist/chunks/{chunk-UZNITHS6.js.map → chunk-OLSRO4FC.js.map} +0 -0
  334. /package/dist/chunks/{chunk-XBQFS7OK.js.map → chunk-OMFV2AEQ.js.map} +0 -0
  335. /package/dist/chunks/{chunk-ZAJRK64O.js.map → chunk-P33ZADN3.js.map} +0 -0
  336. /package/dist/chunks/{chunk-GELAA6HR.js.map → chunk-P6DJ6AS5.js.map} +0 -0
  337. /package/dist/chunks/{chunk-G6FYM5SR.js.map → chunk-PGYSDVT7.js.map} +0 -0
  338. /package/dist/chunks/{chunk-IFUOFLH7.js.map → chunk-PJPPWJIB.js.map} +0 -0
  339. /package/dist/chunks/{chunk-Q3HGNRKL.js.map → chunk-QWCFMVAZ.js.map} +0 -0
  340. /package/dist/chunks/{chunk-XHLQEV4L.js.map → chunk-QYKPC5HO.js.map} +0 -0
  341. /package/dist/chunks/{chunk-AZIXXTEN.js.map → chunk-RBUVQQLL.js.map} +0 -0
  342. /package/dist/chunks/{chunk-PIV6IFK2.js.map → chunk-RO7HHDLW.js.map} +0 -0
  343. /package/dist/chunks/{chunk-YZPZQJTG.js.map → chunk-SC2FLZAI.js.map} +0 -0
  344. /package/dist/chunks/{chunk-ZIEVVDOR.js.map → chunk-T6BRCKD3.js.map} +0 -0
  345. /package/dist/chunks/{chunk-PZCNHP7O.js.map → chunk-TCAS4XVK.js.map} +0 -0
  346. /package/dist/chunks/{chunk-VXRC5XNZ.js.map → chunk-U77IVKFU.js.map} +0 -0
  347. /package/dist/chunks/{chunk-QIBMSMZA.js.map → chunk-UAD3AUKO.js.map} +0 -0
  348. /package/dist/chunks/{chunk-AUNCOQGN.js.map → chunk-UQFW622M.js.map} +0 -0
  349. /package/dist/chunks/{chunk-KNIPTSFW.js.map → chunk-UYC7YSMD.js.map} +0 -0
  350. /package/dist/chunks/{chunk-GXOQRU72.js.map → chunk-V2OLXCTE.js.map} +0 -0
  351. /package/dist/chunks/{chunk-TFXV3553.js.map → chunk-V73ZJCIQ.js.map} +0 -0
  352. /package/dist/chunks/{chunk-M56YCKGZ.js.map → chunk-V7U4OXBC.js.map} +0 -0
  353. /package/dist/chunks/{chunk-XNBNN3OW.js.map → chunk-VUNKDZ34.js.map} +0 -0
  354. /package/dist/chunks/{chunk-EMLOKSP6.js.map → chunk-WUCZIFEU.js.map} +0 -0
  355. /package/dist/chunks/{chunk-L4XN5ILM.js.map → chunk-WVQRVEZ7.js.map} +0 -0
  356. /package/dist/chunks/{chunk-KGGI2PH4.js.map → chunk-WVZG6GRE.js.map} +0 -0
  357. /package/dist/chunks/{chunk-M5NXCEVY.js.map → chunk-XTYVS4SM.js.map} +0 -0
  358. /package/dist/chunks/{chunk-UHFJTEZV.js.map → chunk-XZXE7L4B.js.map} +0 -0
  359. /package/dist/chunks/{chunk-WL3HPARH.js.map → chunk-YDE7ZNUH.js.map} +0 -0
  360. /package/dist/chunks/{chunk-3WYIYJID.js.map → chunk-YOBDE45E.js.map} +0 -0
  361. /package/dist/chunks/{chunk-SVEAODES.js.map → chunk-YZIUYGJT.js.map} +0 -0
  362. /package/dist/chunks/{chunk-BBOGGNTL.js.map → chunk-Z4TNPAB4.js.map} +0 -0
  363. /package/dist/chunks/{chunk-IRCIEEOM.js.map → chunk-ZNGRNTOY.js.map} +0 -0
  364. /package/dist/chunks/{cli-runtime-ULOMVN5Y.js.map → cli-runtime-IJWC2OTK.js.map} +0 -0
  365. /package/dist/chunks/{commands-MENGP42Y.js.map → commands-S7OW6RX6.js.map} +0 -0
  366. /package/dist/chunks/{crash-report-NNFSJ43Y.js.map → crash-report-F663DOML.js.map} +0 -0
  367. /package/dist/chunks/{dist-QXUTKQ55.js.map → dist-IOJ4RD22.js.map} +0 -0
  368. /package/dist/chunks/{dist-PNWD3XCT.js.map → dist-KXNNNQJP.js.map} +0 -0
  369. /package/dist/chunks/{dist-EQE2TVFV.js.map → dist-S7E46RVO.js.map} +0 -0
  370. /package/dist/chunks/{dist-INIQ54DO.js.map → dist-VNVQM6JU.js.map} +0 -0
  371. /package/dist/chunks/{dist-7JVVF6E3.js.map → dist-XY5CE56Y.js.map} +0 -0
  372. /package/dist/chunks/{dist-GWSFISZW.js.map → dist-ZHVTRMOZ.js.map} +0 -0
  373. /package/dist/chunks/{dist-6BYDAAGG.js.map → dist-ZXZ4LH3H.js.map} +0 -0
  374. /package/dist/chunks/{doctor-GIFSKHDE.js.map → doctor-GH3XGHIB.js.map} +0 -0
  375. /package/dist/chunks/{drain-WNGSFYGG.js.map → drain-YZXZQAUT.js.map} +0 -0
  376. /package/dist/chunks/{entry-3ZDHM5YQ.js.map → entry-LGDDSUPB.js.map} +0 -0
  377. /package/dist/chunks/{eval-4IIX7NIV.js.map → eval-EYN5BPLR.js.map} +0 -0
  378. /package/dist/chunks/{exec-NNLZUIZJ.js.map → exec-BMAOOSOF.js.map} +0 -0
  379. /package/dist/chunks/{home-S3SNMFFG.js.map → home-5OAGR5X5.js.map} +0 -0
  380. /package/dist/chunks/{hooks-3T5XVQSK.js.map → hooks-WV6P6LIP.js.map} +0 -0
  381. /package/dist/chunks/{hooks-report-3GDKOXB3.js.map → hooks-report-JUCEQJ73.js.map} +0 -0
  382. /package/dist/chunks/{host-BTE2HSHJ.js.map → host-EISOQGKE.js.map} +0 -0
  383. /package/dist/chunks/{host-queries-MWZKZJOA.js.map → host-queries-HJHMGU5N.js.map} +0 -0
  384. /package/dist/chunks/{learn-DA2U4OPO.js.map → learn-27BG44YG.js.map} +0 -0
  385. /package/dist/chunks/{learn-builtin-R5A4MYGZ.js.map → learn-builtin-K5HQZDEA.js.map} +0 -0
  386. /package/dist/chunks/{lifecycle-P3BZYTFI.js.map → lifecycle-L3BEM34W.js.map} +0 -0
  387. /package/dist/chunks/{list-SIJK3GE5.js.map → list-AB4VHNL2.js.map} +0 -0
  388. /package/dist/chunks/{live-KY5OOYNO.js.map → live-UWUEDSPR.js.map} +0 -0
  389. /package/dist/chunks/{load-SI2C6QKJ.js.map → load-NFDONLZ2.js.map} +0 -0
  390. /package/dist/chunks/{login-WOAZ5OLO.js.map → login-GON2CRE6.js.map} +0 -0
  391. /package/dist/chunks/{logs-ZXSLLFAK.js.map → logs-C7WBBIJR.js.map} +0 -0
  392. /package/dist/chunks/{mcp-TRDRYPNW.js.map → mcp-EBV34ZOW.js.map} +0 -0
  393. /package/dist/chunks/{open-KTUOVJCU.js.map → open-DLDZOPHP.js.map} +0 -0
  394. /package/dist/chunks/{operator-tools-HN6MNPZW.js.map → operator-tools-HT2GSJ56.js.map} +0 -0
  395. /package/dist/chunks/{output-schema-4LL23SA5.js.map → output-schema-UODVJVW4.js.map} +0 -0
  396. /package/dist/chunks/{pal-C7A3S6MR.js.map → pal-PN4RXHBT.js.map} +0 -0
  397. /package/dist/chunks/{peers-HINKWP3P.js.map → peers-HYMQ3RDX.js.map} +0 -0
  398. /package/dist/chunks/{peers-IYCZ3OWB.js.map → peers-MVQTZ4ND.js.map} +0 -0
  399. /package/dist/chunks/{plugin-YBGRF5FP.js.map → plugin-Y4XV5CKG.js.map} +0 -0
  400. /package/dist/chunks/{providers-AI27XYWT.js.map → providers-K23QPBYN.js.map} +0 -0
  401. /package/dist/chunks/{pty-7OTKGV53.js.map → pty-UIYKKO63.js.map} +0 -0
  402. /package/dist/chunks/{resume-2P6LYLYX.js.map → resume-ON75M2JL.js.map} +0 -0
  403. /package/dist/chunks/{resume-command-PG63DMVD.js.map → resume-command-O6FGFDSE.js.map} +0 -0
  404. /package/dist/chunks/{running-CNUUXGYY.js.map → running-DAUDQDDJ.js.map} +0 -0
  405. /package/dist/chunks/{schedule-37J3S7UQ.js.map → schedule-U7UZBKHQ.js.map} +0 -0
  406. /package/dist/chunks/{send-7JV6J5T5.js.map → send-3R5RDV2H.js.map} +0 -0
  407. /package/dist/chunks/{send-person-J5BSYFXQ.js.map → send-person-6NMIN4OT.js.map} +0 -0
  408. /package/dist/chunks/{service-NSMWSI2E.js.map → service-2PDUZZPQ.js.map} +0 -0
  409. /package/dist/chunks/{skills-AXZ5ETFS.js.map → skills-4UXJESZB.js.map} +0 -0
  410. /package/dist/chunks/{start-check-V2U4533P.js.map → start-check-L62L5YIZ.js.map} +0 -0
  411. /package/dist/chunks/{startup-failure-4HKS72EM.js.map → startup-failure-VS2U4JIC.js.map} +0 -0
  412. /package/dist/chunks/{state-NVCB2RFV.js.map → state-DMLD6RWU.js.map} +0 -0
  413. /package/dist/chunks/{store-2BFQ2UUT.js.map → store-3WIIBVKJ.js.map} +0 -0
  414. /package/dist/chunks/{store-FUNVZ2G4.js.map → store-DIVYPBNS.js.map} +0 -0
  415. /package/dist/chunks/{store-IACUKT6H.js.map → store-TYFJML3O.js.map} +0 -0
  416. /package/dist/chunks/{store-XBERR7IC.js.map → store-ZLCDFCYI.js.map} +0 -0
  417. /package/dist/chunks/{workspaces-WDQH4NP3.js.map → workspaces-ZHM5N3OY.js.map} +0 -0
  418. /package/dist/chunks/{worktree-SRCZK4CS.js.map → worktree-2MMIAPGE.js.map} +0 -0
@@ -2,10 +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-KNIPTSFW.js";
5
+ } from "./chunk-UYC7YSMD.js";
6
6
  import {
7
7
  selectDesktopBackend
8
- } from "./chunk-ZJ56MAER.js";
8
+ } from "./chunk-E3L237Z7.js";
9
9
  import {
10
10
  NAMZU_COMPACT_WORDMARK,
11
11
  NAMZU_WORDMARK,
@@ -17,33 +17,33 @@ import {
17
17
  confirmationView,
18
18
  describeChanges,
19
19
  permissionsChanged
20
- } from "./chunk-UTT4MLLS.js";
20
+ } from "./chunk-BWUBI6VE.js";
21
21
  import {
22
22
  visibleScheduleMessage
23
23
  } from "./chunk-NADQQMMG.js";
24
24
  import {
25
25
  hooksOf
26
- } from "./chunk-I2WWQWOI.js";
26
+ } from "./chunk-DCV3FVXI.js";
27
27
  import {
28
28
  applyProviderFlags
29
- } from "./chunk-KGGI2PH4.js";
29
+ } from "./chunk-WVZG6GRE.js";
30
30
  import {
31
31
  BYPASS_CONSENT_BODY,
32
32
  BYPASS_CONSENT_TITLE,
33
33
  acknowledgeBypass,
34
34
  hasAcknowledgedBypass
35
- } from "./chunk-6E4XSINO.js";
35
+ } from "./chunk-6NFHP44E.js";
36
36
  import {
37
37
  applyFallbackFlag
38
38
  } from "./chunk-RL2CTUF2.js";
39
39
  import {
40
40
  settleAnsweredPark
41
- } from "./chunk-GXOQRU72.js";
41
+ } from "./chunk-V2OLXCTE.js";
42
42
  import {
43
43
  DELIVERY_READ_LIMIT,
44
44
  readSourceDeliveryPage,
45
45
  takeSuppressedCount
46
- } from "./chunk-NTN4HVCG.js";
46
+ } from "./chunk-HM5UJONE.js";
47
47
  import {
48
48
  DEFAULT_MAX_ITERATIONS,
49
49
  DEFAULT_TIMEOUT_MS,
@@ -54,7 +54,7 @@ import {
54
54
  editedJob,
55
55
  previewLines,
56
56
  runsPerDay
57
- } from "./chunk-VXRC5XNZ.js";
57
+ } from "./chunk-U77IVKFU.js";
58
58
  import {
59
59
  callsCount
60
60
  } from "./chunk-OG2MLME3.js";
@@ -63,23 +63,23 @@ import {
63
63
  gateRefusal,
64
64
  scriptShellUnavailableReason,
65
65
  verifyScheduledScript
66
- } from "./chunk-RZILFYMH.js";
66
+ } from "./chunk-NRHUKGZ3.js";
67
67
  import {
68
68
  allowsCommands,
69
69
  compileJobPolicy,
70
70
  compileScriptCheckPolicy,
71
71
  isPresetName
72
- } from "./chunk-H4SIPZ3Q.js";
72
+ } from "./chunk-O6NHCC4Q.js";
73
73
  import {
74
74
  parkedRunWords,
75
75
  resumeCommand
76
- } from "./chunk-ZAJRK64O.js";
76
+ } from "./chunk-P33ZADN3.js";
77
77
  import {
78
78
  appendHistory,
79
79
  nextFireOf,
80
80
  readHistory,
81
81
  readState
82
- } from "./chunk-2IMSB7XK.js";
82
+ } from "./chunk-3EH3USMD.js";
83
83
  import {
84
84
  callEndpoint,
85
85
  readEndpoint
@@ -97,20 +97,20 @@ import {
97
97
  sectionHeading,
98
98
  withAutoChoice,
99
99
  writeConversationExport
100
- } from "./chunk-OARZW3MB.js";
100
+ } from "./chunk-B5O2UDMT.js";
101
101
  import {
102
102
  tuiPalDefinition,
103
103
  tuiPalEnvironment,
104
104
  tuiPalOwner,
105
105
  tuiPalPreferences
106
- } from "./chunk-3HLKXSR4.js";
106
+ } from "./chunk-7KIVKXQB.js";
107
107
  import {
108
108
  NOTHING_TOLD,
109
109
  claimMismatchLine,
110
110
  goalEndingLine,
111
111
  handedBackLines,
112
112
  outcomeNotice
113
- } from "./chunk-4DER34EW.js";
113
+ } from "./chunk-5CGQ2AOP.js";
114
114
  import {
115
115
  isModelOnlyContext,
116
116
  runtimeContextRowLabel
@@ -127,17 +127,17 @@ import {
127
127
  orderRange,
128
128
  snapRange,
129
129
  wordAt
130
- } from "./chunk-WL3HPARH.js";
130
+ } from "./chunk-YDE7ZNUH.js";
131
131
  import {
132
132
  buildPeerTools,
133
133
  openLivePeers,
134
134
  peerMailLabel,
135
135
  peerMailMessage
136
- } from "./chunk-IFNX2DCK.js";
136
+ } from "./chunk-ARPABLFS.js";
137
137
  import {
138
138
  claimPalConversation,
139
139
  listPalConversations
140
- } from "./chunk-AZIXXTEN.js";
140
+ } from "./chunk-RBUVQQLL.js";
141
141
  import {
142
142
  CLICK_EXPAND_HINT,
143
143
  CLICK_FOLD_HINT,
@@ -246,11 +246,11 @@ import {
246
246
  webLiveStatus,
247
247
  webSettledLine,
248
248
  withDebugDetail
249
- } from "./chunk-WM6TW355.js";
249
+ } from "./chunk-RMRGVJOA.js";
250
250
  import {
251
251
  openManagedWorktrees,
252
252
  worktreeOpenHint
253
- } from "./chunk-BBOGGNTL.js";
253
+ } from "./chunk-Z4TNPAB4.js";
254
254
  import {
255
255
  completionNotice,
256
256
  countAgents,
@@ -263,15 +263,15 @@ import {
263
263
  resumeReviewLines,
264
264
  runTokens,
265
265
  settledElapsed
266
- } from "./chunk-5LSXNZBY.js";
266
+ } from "./chunk-NA6FHE5K.js";
267
267
  import {
268
268
  MCP_OUTPUT_CHARS,
269
269
  boundedMcpText,
270
270
  validatePromptArguments
271
- } from "./chunk-3WYIYJID.js";
271
+ } from "./chunk-YOBDE45E.js";
272
272
  import {
273
273
  openInBrowser
274
- } from "./chunk-NMYUBZZU.js";
274
+ } from "./chunk-LYMSGP53.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-GXFCNVRN.js";
289
+ } from "./chunk-6PIZ3336.js";
290
290
  import {
291
291
  API_KEY_ACCOUNT_PROVIDERS,
292
292
  openCliAccounts,
293
293
  storedAccountSignedIn
294
- } from "./chunk-G6FYM5SR.js";
294
+ } from "./chunk-PGYSDVT7.js";
295
295
  import {
296
296
  beginCodexDeviceLogin
297
- } from "./chunk-XNQMO4UQ.js";
297
+ } from "./chunk-A4RKSHUI.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-AV7SMPXT.js";
327
+ } from "./chunk-MYQ2MZKF.js";
328
328
  import {
329
329
  bindAccount,
330
330
  findAccountByName,
331
331
  isDefaultAccountId
332
- } from "./chunk-YXX7ARE5.js";
332
+ } from "./chunk-KP4H7FJ7.js";
333
333
  import {
334
334
  startAutoUpdate
335
- } from "./chunk-KC2CIMAX.js";
335
+ } from "./chunk-LITTVCZQ.js";
336
336
  import {
337
337
  readManifest
338
338
  } from "./chunk-AK2U3N2A.js";
@@ -370,10 +370,10 @@ import {
370
370
  turnLimitCommands,
371
371
  useThemeEpoch,
372
372
  useThemeSubscription
373
- } from "./chunk-N7Y7J6RY.js";
373
+ } from "./chunk-2XOJQKYX.js";
374
374
  import {
375
375
  discoverUserCommands
376
- } from "./chunk-JLGLQMAN.js";
376
+ } from "./chunk-LQ5L75T6.js";
377
377
  import {
378
378
  describeAllCredentialsLogout,
379
379
  describeApiKeyLogout,
@@ -409,11 +409,11 @@ import {
409
409
  } from "./chunk-OEW7CJKK.js";
410
410
  import {
411
411
  resolveNpmInvocation
412
- } from "./chunk-LEFLHBYY.js";
412
+ } from "./chunk-XQHHFTFX.js";
413
413
  import {
414
414
  deleteUserConfigValue,
415
415
  setUserConfigValue
416
- } from "./chunk-ODQ6JG66.js";
416
+ } from "./chunk-MDAEHXSL.js";
417
417
  import {
418
418
  pinTrustedProjectPath,
419
419
  resolveTrustedProjectContext
@@ -428,7 +428,7 @@ import {
428
428
  describeCacheLifetime,
429
429
  promptCacheTtl,
430
430
  providerOffersCacheLifetime
431
- } from "./chunk-JIWW55EF.js";
431
+ } from "./chunk-LYTMEPN4.js";
432
432
  import {
433
433
  SAVE_SKILL_TOOL_NAME,
434
434
  SKILL_CREATOR_SKILL,
@@ -441,14 +441,14 @@ import {
441
441
  newSkillPrompt,
442
442
  resolveTurnGuards,
443
443
  sandboxRunsShellUnasked
444
- } from "./chunk-K7MLADWM.js";
444
+ } from "./chunk-OH5T7ODG.js";
445
445
  import {
446
446
  describePlainInterruption,
447
447
  describeProviderWait,
448
448
  describeProviderWaitClock,
449
449
  isSelfMending,
450
450
  isSpentAllowance
451
- } from "./chunk-UHFJTEZV.js";
451
+ } from "./chunk-XZXE7L4B.js";
452
452
  import {
453
453
  debugRequested
454
454
  } from "./chunk-GNBMKISG.js";
@@ -460,35 +460,35 @@ import {
460
460
  handoffContinuationNote,
461
461
  refusalDetail,
462
462
  retryAfterMs
463
- } from "./chunk-PZCNHP7O.js";
463
+ } from "./chunk-TCAS4XVK.js";
464
464
  import {
465
465
  autoAvailable,
466
466
  nextCycleMode,
467
467
  permissionModeDescription,
468
468
  permissionModeLabel,
469
469
  permissionModeName
470
- } from "./chunk-L4XN5ILM.js";
470
+ } from "./chunk-WVQRVEZ7.js";
471
471
  import {
472
472
  expandTabs,
473
473
  scriptText,
474
474
  terminalDisplayText
475
475
  } from "./chunk-I4GTRFPK.js";
476
- import {
477
- paint,
478
- rowTints,
479
- theme,
480
- tokenColor
481
- } from "./chunk-WD2F6EO3.js";
482
476
  import {
483
477
  discoverAgentDefinitions
484
- } from "./chunk-IFUOFLH7.js";
478
+ } from "./chunk-PJPPWJIB.js";
485
479
  import {
486
480
  readAgentHooks
487
- } from "./chunk-YZAM5OII.js";
481
+ } from "./chunk-DLHPY4VQ.js";
488
482
  import {
489
483
  readSkillHooks,
490
484
  withoutSessionStart
491
- } from "./chunk-XH3JG354.js";
485
+ } from "./chunk-BZMMDJFZ.js";
486
+ import {
487
+ paint,
488
+ rowTints,
489
+ theme,
490
+ tokenColor
491
+ } from "./chunk-WD2F6EO3.js";
492
492
  import {
493
493
  NO_SKILLS_FOUND,
494
494
  composeSkillsPrompt,
@@ -496,11 +496,11 @@ import {
496
496
  loadSkillBody,
497
497
  renderSkillRoster,
498
498
  skillTierLabel
499
- } from "./chunk-XNBNN3OW.js";
499
+ } from "./chunk-VUNKDZ34.js";
500
500
  import {
501
501
  primaryProvider,
502
502
  writePreferences
503
- } from "./chunk-EMLOKSP6.js";
503
+ } from "./chunk-WUCZIFEU.js";
504
504
  import {
505
505
  apiKeyLogoutWord,
506
506
  automaticChoice,
@@ -511,7 +511,7 @@ import {
511
511
  hasApiCredential,
512
512
  isApiKeyLogoutTarget,
513
513
  signedInSubscriptionProviders
514
- } from "./chunk-M56YCKGZ.js";
514
+ } from "./chunk-V7U4OXBC.js";
515
515
  import {
516
516
  COMPOSER_TRIGGER_DEFAULTS,
517
517
  COMPOSER_TRIGGER_IDS,
@@ -542,7 +542,7 @@ import {
542
542
  saveDecisionKey,
543
543
  shouldOfferDecisionSetup,
544
544
  writeConnection
545
- } from "./chunk-SVEAODES.js";
545
+ } from "./chunk-YZIUYGJT.js";
546
546
  import {
547
547
  PROJECT_MCP_FILE,
548
548
  parseMcpServerFile
@@ -574,11 +574,11 @@ import {
574
574
  import {
575
575
  isAnthropicOAuthToken,
576
576
  readCodexCredentialFile
577
- } from "./chunk-DADJ4GQ2.js";
577
+ } from "./chunk-NJ4PLSBZ.js";
578
578
  import {
579
579
  isTrusted,
580
580
  trustDir
581
- } from "./chunk-BT76TYMR.js";
581
+ } from "./chunk-FLRYCMRH.js";
582
582
  import {
583
583
  apiKeysPath,
584
584
  clearAllStoredApiKeys,
@@ -596,10 +596,10 @@ import {
596
596
  readStoredSubscriptionCredential,
597
597
  writeStoredApiKey,
598
598
  writeStoredGeminiApiKey
599
- } from "./chunk-UZNITHS6.js";
599
+ } from "./chunk-OLSRO4FC.js";
600
600
  import {
601
601
  namzuHomePath
602
- } from "./chunk-RYVWRI2O.js";
602
+ } from "./chunk-G7PWYTB4.js";
603
603
  import {
604
604
  ACCEPT_EDITS_TOOLS,
605
605
  AccountRegistryError,
@@ -660,7 +660,7 @@ import {
660
660
  validateTimeZone,
661
661
  wakeBudgetFromEnv,
662
662
  wrapUntrusted
663
- } from "./chunk-BY57QRDB.js";
663
+ } from "./chunk-BULDCXFX.js";
664
664
  import {
665
665
  __commonJS,
666
666
  __export,
@@ -20206,6 +20206,24 @@ function startOnFreshLine(columns) {
20206
20206
  return `${ESC4}[7m%${ESC4}[27m${" ".repeat(width - 1)}\r${ESC4}[K`;
20207
20207
  }
20208
20208
  __name(startOnFreshLine, "startOnFreshLine");
20209
+ function startOnCleanScreen(rows) {
20210
+ return `${"\n".repeat(Math.max(1, rows))}${ESC4}[H${ESC4}[J`;
20211
+ }
20212
+ __name(startOnCleanScreen, "startOnCleanScreen");
20213
+ var RULE_ROW = /^\s*─{8,}\s*$/;
20214
+ function inputBoxStart(rows) {
20215
+ const rules = [];
20216
+ for (let i = rows.length - 1; i >= 0 && rules.length < 2; i--)
20217
+ if (RULE_ROW.test(plainText(rows[i]))) rules.push(i);
20218
+ const [lower, upper] = rules;
20219
+ if (lower === void 0 || upper === void 0) return null;
20220
+ return rows.length - 1 - lower <= 3 ? upper : null;
20221
+ }
20222
+ __name(inputBoxStart, "inputBoxStart");
20223
+ function eraseFrom(rowsBelow) {
20224
+ return `${rowsBelow > 0 ? `${ESC4}[${rowsBelow}A` : ""}\r${ESC4}[J`;
20225
+ }
20226
+ __name(eraseFrom, "eraseFrom");
20209
20227
  var plainText = /* @__PURE__ */ __name((row2) => row2.replace(
20210
20228
  new RegExp(`${ESC4}\\[[0-9;?]*[A-Za-z]|${ESC4}\\][^\\u0007${ESC4}]*(?:\\u0007|${ESC4}\\\\)`, "g"),
20211
20229
  ""
@@ -20521,9 +20539,16 @@ function createLivePaint(target, options = {}) {
20521
20539
  return {
20522
20540
  stream: stream2,
20523
20541
  flush,
20524
- dispose() {
20542
+ dispose(options2) {
20525
20543
  if (disposed) return;
20526
20544
  leave();
20545
+ if (options2?.eraseBox === true && !bypass()) {
20546
+ const start2 = inputBoxStart(shown);
20547
+ if (start2 !== null) {
20548
+ out(eraseFrom(shown.length - start2));
20549
+ shown = shown.slice(0, start2);
20550
+ }
20551
+ }
20527
20552
  disposed = true;
20528
20553
  target.off(RESIZE, onTargetResize);
20529
20554
  hooks?.off("exit", onExit);
@@ -21629,18 +21654,23 @@ __name(callDetailLines, "callDetailLines");
21629
21654
 
21630
21655
  // src/tui/agent-transcript-rows.ts
21631
21656
  var AGENT_MANAGE_HINT = "\u2193 to manage";
21632
- var WORKFLOW_MANAGE_HINT = "\u2193 to manage";
21633
21657
  function launchLabel(agent) {
21634
21658
  return oneLine2(agent.description) || oneLine2(agent.agentId);
21635
21659
  }
21636
21660
  __name(launchLabel, "launchLabel");
21661
+ function launchFollowNote(unordered) {
21662
+ const first = unordered[0];
21663
+ if (!first) return void 0;
21664
+ const labelled = unordered.some((agent) => agent.workflow !== DEFAULT_AGENT_WORKFLOW);
21665
+ return labelled || unordered.every((agent) => agent.background === true) ? WORKFLOW_BACKGROUND_NOTE : void 0;
21666
+ }
21667
+ __name(launchFollowNote, "launchFollowNote");
21637
21668
  function launchReceipt(unordered) {
21638
21669
  const members = [...unordered].sort((left, right2) => left.startedAt - right2.startedAt);
21639
21670
  const first = members[0];
21640
21671
  if (first && first.workflow !== DEFAULT_AGENT_WORKFLOW) {
21641
21672
  return {
21642
- content: `Workflow ${oneLine2(first.workflow)}
21643
- \u23BF Running in background \xB7 ${WORKFLOW_MANAGE_HINT}`
21673
+ content: `Workflow ${oneLine2(first.workflow)}`
21644
21674
  };
21645
21675
  }
21646
21676
  const labels = first ? [
@@ -21651,15 +21681,14 @@ function launchReceipt(unordered) {
21651
21681
  const ended = /* @__PURE__ */ __name((agent) => agent.status === "completed" || agent.status === "failed" || agent.status === "cancelled", "ended");
21652
21682
  const allEnded = members.every(ended);
21653
21683
  if (members.length === 1 && first) {
21654
- const hint = first.background === true ? ` (${AGENT_MANAGE_HINT})` : "";
21655
21684
  return {
21656
- content: `Launched ${launchLabel(first)}${where}${hint}`
21685
+ content: `Launched ${launchLabel(first)}${where}`
21657
21686
  };
21658
21687
  }
21659
21688
  const tree = members.map(
21660
21689
  (agent, index) => `${index === members.length - 1 ? "\u2514" : "\u251C"} ${launchLabel(agent)}`
21661
21690
  );
21662
- const headline = members.every((agent) => agent.background === true) ? `${members.length} background agents launched${where} (${AGENT_MANAGE_HINT})` : allEnded ? `${endedWords(members)}${where}` : `Launched ${members.length} agents${where}`;
21691
+ const headline = members.every((agent) => agent.background === true) ? `${members.length} background agents launched${where}` : allEnded ? `${endedWords(members)}${where}` : `Launched ${members.length} agents${where}`;
21663
21692
  return { content: [headline, ...tree].join("\n") };
21664
21693
  }
21665
21694
  __name(launchReceipt, "launchReceipt");
@@ -25468,6 +25497,30 @@ function attachmentRows(text, attachments, floor, directory) {
25468
25497
  }
25469
25498
  __name(attachmentRows, "attachmentRows");
25470
25499
 
25500
+ // src/tui/reply-mark.ts
25501
+ function isReplyText(message) {
25502
+ return message.role === "assistant" && message.glyph === void 0 && (message.content !== "" || (message.printed?.length ?? 0) > 0);
25503
+ }
25504
+ __name(isReplyText, "isReplyText");
25505
+ function opensTurn(message) {
25506
+ return message.role === "user" || message.role === "system" && message.glyph === "\u273B";
25507
+ }
25508
+ __name(opensTurn, "opensTurn");
25509
+ function laterReplyBlocks(messages) {
25510
+ let marked = false;
25511
+ return messages.map((message) => {
25512
+ if (opensTurn(message)) {
25513
+ marked = false;
25514
+ return false;
25515
+ }
25516
+ if (!isReplyText(message)) return false;
25517
+ const later = marked;
25518
+ marked = true;
25519
+ return later;
25520
+ });
25521
+ }
25522
+ __name(laterReplyBlocks, "laterReplyBlocks");
25523
+
25471
25524
  // src/tui/stream-flow.ts
25472
25525
  var PACE_MS = 80;
25473
25526
  function paceDecision(now, lastFlushAt, timerArmed) {
@@ -25901,9 +25954,9 @@ __name(voidReply, "voidReply");
25901
25954
  var import_jsx_runtime10 = __toESM(require_jsx_runtime(), 1);
25902
25955
  var COLLAPSE_LINES = 6;
25903
25956
  var PREVIEW_LINE_CHARS = 240;
25904
- function printedRows(message, prev, raw) {
25957
+ function printedRows(message, prev, raw, later) {
25905
25958
  if (raw || !message.printed?.length || !isPlainReply(message))
25906
- return [{ kind: "message", message, prev }];
25959
+ return [{ kind: "message", message, prev, later }];
25907
25960
  const pieces2 = printedPieces(message.printed);
25908
25961
  const rest = tailPiece({ ...message, pending: false });
25909
25962
  return [...pieces2, ...rest ? [rest] : []].map((piece, i) => ({
@@ -25911,7 +25964,8 @@ function printedRows(message, prev, raw) {
25911
25964
  key: `${message.id}#${i}`,
25912
25965
  message,
25913
25966
  piece,
25914
- prev
25967
+ prev,
25968
+ later
25915
25969
  }));
25916
25970
  }
25917
25971
  __name(printedRows, "printedRows");
@@ -25940,7 +25994,8 @@ function Transcript({
25940
25994
  hyperlinks = false,
25941
25995
  showLive = true,
25942
25996
  header,
25943
- staticIndent = 0
25997
+ staticIndent = 0,
25998
+ staticIndentRight = staticIndent
25944
25999
  }) {
25945
26000
  (0, import_react39.useSyncExternalStore)(subscribeGrammars, grammarVersion);
25946
26001
  const known = (0, import_react39.useRef)({ key: resetKey, n: 0 });
@@ -25949,13 +26004,14 @@ function Transcript({
25949
26004
  known.current.n = Math.min(known.current.n, asked);
25950
26005
  const inScrollback = raw ? asked : firstHeld(messages, known.current.n, asked);
25951
26006
  if (!raw) known.current.n = inScrollback;
25952
- const rows = [
25953
- ...header ? [{ kind: "header" }] : [],
25954
- ...messages.slice(0, inScrollback).flatMap((message, i) => printedRows(message, messages[i - 1], raw))
25955
- ];
25956
26007
  const live = messages.slice(inScrollback);
25957
26008
  const at = Math.min(Math.max((pendingAt ?? messages.length) - inScrollback, 0), live.length);
25958
26009
  const drawn = pending ? [...live.slice(0, at), pending, ...live.slice(at)] : live;
26010
+ const later = laterReplyBlocks([...messages.slice(0, inScrollback), ...drawn]);
26011
+ const rows = [
26012
+ ...header ? [{ kind: "header" }] : [],
26013
+ ...messages.slice(0, inScrollback).flatMap((message, i) => printedRows(message, messages[i - 1], raw, later[i] ?? false))
26014
+ ];
25959
26015
  const flowing = !raw && drawn[0]?.printed?.length && isPlainReply(drawn[0]) ? drawn[0] : void 0;
25960
26016
  if (flowing) {
25961
26017
  const before = inScrollback > 0 ? messages[inScrollback - 1] : void 0;
@@ -25966,28 +26022,38 @@ function Transcript({
25966
26022
  key: `${flowing.id}#${i}`,
25967
26023
  message: flowing,
25968
26024
  piece,
25969
- prev: before
26025
+ prev: before,
26026
+ later: later[inScrollback] ?? false
25970
26027
  }))
25971
26028
  );
25972
26029
  }
25973
26030
  const { columns } = use_window_size_default();
25974
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ContentWidth.Provider, { value: Math.max(10, columns - 2 * staticIndent - 2), children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(Box_default, { flexDirection: "column", children: [
26031
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ContentWidth.Provider, { value: Math.max(10, columns - staticIndent - staticIndentRight - 2), children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(Box_default, { flexDirection: "column", children: [
25975
26032
  /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Static, { items: rows, children: (row2) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
25976
26033
  Box_default,
25977
26034
  {
25978
26035
  flexDirection: "column",
25979
26036
  width: columns,
25980
26037
  paddingLeft: staticIndent,
25981
- paddingRight: staticIndent,
26038
+ paddingRight: staticIndentRight,
25982
26039
  children: row2.kind === "header" ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Box_default, { children: header }) : row2.kind === "piece" ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
25983
26040
  ReplyPieceRow,
25984
26041
  {
25985
26042
  message: row2.message,
25986
26043
  prev: row2.prev,
25987
26044
  piece: row2.piece,
25988
- hyperlinks
26045
+ hyperlinks,
26046
+ later: row2.later
25989
26047
  }
25990
- ) : raw ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(RawMessageRow, { message: row2.message, prev: row2.prev }) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(MessageRow, { message: row2.message, prev: row2.prev, hyperlinks })
26048
+ ) : raw ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(RawMessageRow, { message: row2.message, prev: row2.prev }) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
26049
+ MessageRow,
26050
+ {
26051
+ message: row2.message,
26052
+ prev: row2.prev,
26053
+ hyperlinks,
26054
+ later: row2.later
26055
+ }
26056
+ )
25991
26057
  },
25992
26058
  row2.kind === "header" ? "header" : row2.kind === "piece" ? row2.key : row2.message.id
25993
26059
  ) }, resetKey),
@@ -26001,12 +26067,22 @@ function Transcript({
26001
26067
  message,
26002
26068
  prev: i > 0 ? drawn[i - 1] : messages[inScrollback - 1],
26003
26069
  piece,
26004
- hyperlinks
26070
+ hyperlinks,
26071
+ later: later[inScrollback + i] ?? false
26005
26072
  },
26006
26073
  message.id
26007
26074
  );
26008
26075
  }
26009
- return raw ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(RawMessageRow, { message, prev }, message.id) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(LiveRow, { message, prev, hyperlinks }, message.id);
26076
+ return raw ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(RawMessageRow, { message, prev }, message.id) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
26077
+ LiveRow,
26078
+ {
26079
+ message,
26080
+ prev,
26081
+ hyperlinks,
26082
+ later: later[inScrollback + i] ?? false
26083
+ },
26084
+ message.id
26085
+ );
26010
26086
  }) : null
26011
26087
  ] }) });
26012
26088
  }
@@ -26016,12 +26092,13 @@ function ReplyPieceRow({
26016
26092
  message,
26017
26093
  prev,
26018
26094
  piece,
26019
- hyperlinks
26095
+ hyperlinks,
26096
+ later = false
26020
26097
  }) {
26021
26098
  useThemeEpoch();
26022
26099
  const glyph = glyphForRole(message.role);
26023
26100
  return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Box_default, { flexDirection: "column", marginTop: piece.first && prev ? 1 : 0, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(Box_default, { flexDirection: "row", children: [
26024
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Box_default, { width: 2, flexShrink: 0, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Text, { color: glyphColorForRole(message.role), bold: true, children: piece.first ? glyph : " " }) }),
26101
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Box_default, { width: 2, flexShrink: 0, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Text, { color: glyphColorForRole(message.role), children: piece.first && !later ? glyph : " " }) }),
26025
26102
  /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Box_default, { flexGrow: 1, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
26026
26103
  Markdown,
26027
26104
  {
@@ -26076,7 +26153,8 @@ function MessageRow({
26076
26153
  message,
26077
26154
  prev,
26078
26155
  hyperlinks,
26079
- screen = false
26156
+ screen = false,
26157
+ later = false
26080
26158
  }) {
26081
26159
  useThemeEpoch();
26082
26160
  if (message.kind === "recap") return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(RecapRow, { message, prev });
@@ -26090,7 +26168,8 @@ function MessageRow({
26090
26168
  const content = message.role === "assistant" ? message.content : terminalDisplayText(shellHeader);
26091
26169
  const width = useContentWidth();
26092
26170
  const userCut = message.role === "user" ? cutUserText(content) : content;
26093
- const glyph = message.glyph ?? glyphForRole(message.role);
26171
+ const replyMark = message.role === "assistant" && message.glyph === void 0;
26172
+ const glyph = replyMark && later ? " " : message.glyph ?? glyphForRole(message.role);
26094
26173
  const textColor = paint(message.contentColor) ?? contentColorForRole(message.role);
26095
26174
  const tint = message.role === "user" && glyph === "\u203A" ? rowTints()?.user : void 0;
26096
26175
  const tinted = tint === void 0 ? {} : { backgroundColor: tint };
@@ -26117,7 +26196,7 @@ function MessageRow({
26117
26196
  return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(Box_default, { flexDirection: "column", marginTop: gap, children: [
26118
26197
  screen && message.thinking ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ThinkingBlock, { text: message.thinking }) : null,
26119
26198
  /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(Box_default, { flexDirection: "row", paddingLeft: glyph === "\u23BF" ? RESULT_GUTTER_INDENT : 0, children: [
26120
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Box_default, { width: glyph === "\u23BF" ? RESULT_GUTTER_WIDTH : 2, flexShrink: 0, ...tinted, children: tint === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Text, { color: glyphColor, bold: true, children: glyph }) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Text, { color: glyphColor, dimColor: true, children: glyph }) }),
26199
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Box_default, { width: glyph === "\u23BF" ? RESULT_GUTTER_WIDTH : 2, flexShrink: 0, ...tinted, children: tint === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Text, { color: glyphColor, bold: !replyMark, children: glyph }) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Text, { color: glyphColor, dimColor: true, children: glyph }) }),
26121
26200
  /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Box_default, { flexGrow: 1, children: message.role === "assistant" && content.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
26122
26201
  Markdown,
26123
26202
  {
@@ -26402,7 +26481,7 @@ function glyphForRole(role) {
26402
26481
  case "user":
26403
26482
  return "\u203A";
26404
26483
  case "assistant":
26405
- return "\u2234";
26484
+ return "\u25CF";
26406
26485
  case "system":
26407
26486
  return "\xB7";
26408
26487
  case "tool":
@@ -26415,7 +26494,7 @@ function glyphColorForRole(role) {
26415
26494
  case "user":
26416
26495
  return theme.accent.user;
26417
26496
  case "assistant":
26418
- return theme.accent.assistant;
26497
+ return theme.text.primary;
26419
26498
  case "system":
26420
26499
  return theme.text.muted;
26421
26500
  case "tool":
@@ -28365,10 +28444,9 @@ var graphemes = new Intl.Segmenter(void 0, { granularity: "grapheme" });
28365
28444
  function AgentNarrationBand({ lines: lines3 }) {
28366
28445
  if (lines3.length === 0) return null;
28367
28446
  return (
28368
- // paddingLeft 3 lands the text where the rail's `main` label starts —
28369
- // past its pointer and bullet cells, the rail being drawn one cell out
28370
- // into the app's own margin — so the two columns line up.
28371
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Box_default, { flexDirection: "column", paddingLeft: 3, paddingRight: 4, children: lines3.map((line) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Text, { color: theme.text.muted, wrap: "truncate-end", children: terminalDisplayText(oneLine5(line.text)) }) }, line.id)) })
28447
+ // paddingLeft 2 lands the text where the rail's `main` label starts,
28448
+ // past its bullet cell, so the two columns line up.
28449
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Box_default, { flexDirection: "column", paddingLeft: 2, paddingRight: 4, children: lines3.map((line) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Text, { color: theme.text.muted, wrap: "truncate-end", children: terminalDisplayText(oneLine5(line.text)) }) }, line.id)) })
28372
28450
  );
28373
28451
  }
28374
28452
  __name(AgentNarrationBand, "AgentNarrationBand");
@@ -28551,56 +28629,102 @@ function railPhaseTexts(titles) {
28551
28629
  return [`${first}, ${second}${more(shown.length - 2)}`, `${first}${more(shown.length - 1)}`];
28552
28630
  }
28553
28631
  __name(railPhaseTexts, "railPhaseTexts");
28554
- function workflowRowVariants(workflow, now) {
28555
- const count2 = `${workflow.done}/${workflow.total}`;
28556
- const elapsed2 = formatElapsed(Math.max(0, (workflow.endedAt ?? now) - workflow.startedAt));
28557
- const tokens = wroteRailText(workflow.outputTokens);
28558
- const warning = workflow.large ? LARGE_WORKFLOW_WARNING : void 0;
28559
- const join12 = /* @__PURE__ */ __name((parts) => parts.filter((part) => part !== void 0).join(" \xB7 "), "join");
28632
+ function railWorkflowElapsed(ms) {
28633
+ const total = Math.max(0, Math.floor(ms / 1e3));
28634
+ const two = /* @__PURE__ */ __name((value) => String(value).padStart(2, "0"), "two");
28635
+ if (total < 60) return `${total}s`;
28636
+ if (total < 3600) return `${Math.floor(total / 60)}m${two(total % 60)}s`;
28637
+ if (total < 86400) return `${Math.floor(total / 3600)}h${two(Math.floor(total / 60) % 60)}m`;
28638
+ return `${Math.floor(total / 86400)}d${two(Math.floor(total / 3600) % 24)}h`;
28639
+ }
28640
+ __name(railWorkflowElapsed, "railWorkflowElapsed");
28641
+ var WORKFLOW_TIERS = (() => {
28642
+ const all = ["count", "elapsed", "tokens", "warning"];
28560
28643
  const [wide, ...narrower] = WORKFLOW_BAR_WIDTHS;
28561
28644
  const few = WORKFLOW_BAR_WIDTHS[WORKFLOW_BAR_WIDTHS.length - 1];
28562
- const variants = [
28563
- ...railPhaseTexts(workflow.runningPhases).map((phases) => ({
28564
- barWidth: wide,
28565
- text: join12([count2, elapsed2, tokens, warning, phases])
28566
- })),
28567
- { barWidth: wide, text: join12([count2, elapsed2, tokens, warning]) },
28568
- ...narrower.map((barWidth) => ({
28569
- barWidth,
28570
- text: join12([count2, elapsed2, tokens, warning])
28571
- })),
28572
- { barWidth: few, text: join12([count2, elapsed2, warning]) },
28573
- { barWidth: few, text: join12([count2, elapsed2]) },
28574
- { barWidth: 0, text: join12([count2, elapsed2]) },
28575
- { barWidth: 0, text: count2 }
28645
+ return [
28646
+ { barWidth: wide, fields: all, phases: 0 },
28647
+ { barWidth: wide, fields: all, phases: 1 },
28648
+ { barWidth: wide, fields: all },
28649
+ ...narrower.map((barWidth) => ({ barWidth, fields: all })),
28650
+ { barWidth: few, fields: ["count", "elapsed", "warning"] },
28651
+ { barWidth: few, fields: ["count", "elapsed"] },
28652
+ { barWidth: 0, fields: ["count", "elapsed"] },
28653
+ { barWidth: 0, fields: ["count"] }
28576
28654
  ];
28577
- return variants.filter(
28578
- (variant, index) => variants.findIndex(
28579
- (other) => other.barWidth === variant.barWidth && other.text === variant.text
28580
- ) === index
28581
- );
28655
+ })();
28656
+ function workflowFacts(workflow, now) {
28657
+ const tokens = wroteRailText(workflow.outputTokens)?.replace(/(\d\.\d)0M/, "$1M");
28658
+ return {
28659
+ fields: {
28660
+ // The counter is the agents that finished over every agent; a failure turns
28661
+ // the row's dot red and is counted in the detail, not beside the counter.
28662
+ count: `${workflow.done}/${workflow.total}`,
28663
+ elapsed: railWorkflowElapsed(Math.max(0, (workflow.endedAt ?? now) - workflow.startedAt)),
28664
+ ...tokens !== void 0 ? { tokens } : {},
28665
+ ...workflow.large ? { warning: LARGE_WORKFLOW_WARNING } : {}
28666
+ },
28667
+ phases: railPhaseTexts(workflow.runningPhases)
28668
+ };
28669
+ }
28670
+ __name(workflowFacts, "workflowFacts");
28671
+ function tierTexts(facts, tier) {
28672
+ const widths = /* @__PURE__ */ new Map();
28673
+ for (const field of tier.fields)
28674
+ widths.set(field, Math.max(0, ...facts.map((row2) => stringWidth(row2.fields[field] ?? ""))));
28675
+ return facts.map((row2) => {
28676
+ let out = "";
28677
+ for (const field of tier.fields) {
28678
+ const width = widths.get(field) ?? 0;
28679
+ if (width === 0) continue;
28680
+ const cell = row2.fields[field] ?? "";
28681
+ const pad = " ".repeat(Math.max(0, width - stringWidth(cell)));
28682
+ out += out === "" ? `${cell}${pad}` : `${cell === "" ? " " : " \xB7 "}${cell}${pad}`;
28683
+ }
28684
+ out = out.trimEnd();
28685
+ const phases = tier.phases === void 0 ? void 0 : row2.phases[tier.phases];
28686
+ return phases !== void 0 ? `${out} \xB7 ${phases}` : out;
28687
+ });
28688
+ }
28689
+ __name(tierTexts, "tierTexts");
28690
+ function sharedVariants(facts) {
28691
+ const seen = /* @__PURE__ */ new Set();
28692
+ const tiers = [];
28693
+ for (const tier of WORKFLOW_TIERS) {
28694
+ const texts = tierTexts(facts, tier);
28695
+ const key = `${tier.barWidth}\0${texts.join("\0")}`;
28696
+ if (seen.has(key)) continue;
28697
+ seen.add(key);
28698
+ tiers.push(texts.map((text) => ({ barWidth: tier.barWidth, text })));
28699
+ }
28700
+ return tiers;
28582
28701
  }
28583
- __name(workflowRowVariants, "workflowRowVariants");
28584
- var RAIL_PREFIX_CELLS = 4;
28702
+ __name(sharedVariants, "sharedVariants");
28703
+ var RAIL_PREFIX_CELLS = 2;
28585
28704
  var WORKFLOW_ROW_GAP = 2;
28586
- function layoutWorkflowRow(workflow, now, columns, nameWidth) {
28587
- const variants = workflowRowVariants(workflow, now);
28705
+ function layoutWorkflowRows(workflows, now, columns, nameWidth) {
28706
+ if (workflows.length === 0) return [];
28707
+ const tiers = sharedVariants(workflows.map((workflow) => workflowFacts(workflow, now)));
28588
28708
  const room = Math.max(1, columns - RAIL_PREFIX_CELLS - 2);
28589
- const widthOf3 = /* @__PURE__ */ __name((variant) => WORKFLOW_ROW_GAP + variant.barWidth + (variant.text ? 2 + stringWidth(variant.text) : 0), "widthOf");
28590
- const barred = variants.filter((variant) => variant.barWidth > 0);
28591
- const whole = barred.find((variant) => room - widthOf3(variant) >= nameWidth);
28592
- if (whole) return { variant: whole, nameWidth };
28709
+ const widthOf3 = /* @__PURE__ */ __name((tier) => {
28710
+ const text = Math.max(0, ...tier.map((variant) => stringWidth(variant.text)));
28711
+ return WORKFLOW_ROW_GAP + (tier[0]?.barWidth ?? 0) + (text > 0 ? 2 + text : 0);
28712
+ }, "widthOf");
28713
+ const barOf = /* @__PURE__ */ __name((tier) => tier[0]?.barWidth ?? 0, "barOf");
28714
+ const pick = /* @__PURE__ */ __name((tier, width) => tier.map((variant) => ({ variant, nameWidth: width })), "pick");
28715
+ const barred = tiers.filter((tier) => barOf(tier) > 0);
28716
+ const whole = barred.find((tier) => room - widthOf3(tier) >= nameWidth);
28717
+ if (whole) return pick(whole, nameWidth);
28593
28718
  const wanted = Math.min(8, nameWidth);
28594
- const cutAt = /* @__PURE__ */ __name((variant) => Math.min(nameWidth, room - widthOf3(variant)), "cutAt");
28719
+ const cutAt = /* @__PURE__ */ __name((tier) => Math.min(nameWidth, room - widthOf3(tier)), "cutAt");
28595
28720
  const shortest = barred[barred.length - 1];
28596
- if (shortest && cutAt(shortest) >= wanted)
28597
- return { variant: shortest, nameWidth: cutAt(shortest) };
28598
- const bare = variants.find((variant) => variant.barWidth === 0 && cutAt(variant) >= wanted);
28599
- if (bare) return { variant: bare, nameWidth: cutAt(bare) };
28600
- const last = variants[variants.length - 1];
28601
- return { variant: last, nameWidth: Math.max(1, cutAt(last)) };
28602
- }
28603
- __name(layoutWorkflowRow, "layoutWorkflowRow");
28721
+ if (shortest && cutAt(shortest) >= wanted) return pick(shortest, cutAt(shortest));
28722
+ const bare = tiers.find((tier) => barOf(tier) === 0 && cutAt(tier) >= wanted);
28723
+ if (bare) return pick(bare, cutAt(bare));
28724
+ const last = tiers[tiers.length - 1];
28725
+ return pick(last, Math.max(1, cutAt(last)));
28726
+ }
28727
+ __name(layoutWorkflowRows, "layoutWorkflowRows");
28604
28728
  function railDescription(agent) {
28605
28729
  return agent.description || agent.agentId;
28606
28730
  }
@@ -28619,7 +28743,6 @@ function railStatusBlock(agent, now, narrow) {
28619
28743
  return label ? `${label} \xB7 ${status}` : status;
28620
28744
  }
28621
28745
  __name(railStatusBlock, "railStatusBlock");
28622
- var RAIL_POINTER_CELLS = 2;
28623
28746
  function AgentTaskPanel({
28624
28747
  agents,
28625
28748
  workflows = [],
@@ -28659,24 +28782,24 @@ function AgentTaskPanel({
28659
28782
  return stringWidth(railStatusBlock(agent, now, narrow)) + (queued ? 3 + stringWidth(queued) : 0);
28660
28783
  })
28661
28784
  );
28785
+ const workflowLayouts = compact2 ? [] : layoutWorkflowRows(workflows, now, terminalColumns, nameWidth);
28662
28786
  const mainRight = compact2 ? [
28663
28787
  ...agents.length > 0 || workflows.length === 0 ? [`${agents.length} agent${agents.length === 1 ? "" : "s"}`] : [],
28664
28788
  ...workflows.length > 0 ? [`${workflows.length} workflow${workflows.length === 1 ? "" : "s"}`] : []
28665
28789
  ].join(" \xB7 ") : above > 0 ? `\u2191 ${above} more` : "";
28666
28790
  return (
28667
- // marginLeft/Right -1 reach into the app's one cell of side padding, so the
28668
- // pointer slot is the row's first cell and the bullet lands under the mode
28669
- // line's first glyph; paddingRight 2 keeps rows off the right edge.
28670
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Box_default, { flexDirection: "column", marginTop: 1, marginLeft: -1, marginRight: -1, paddingRight: 2, children: [
28791
+ // marginRight -1 reaches into the app's cell of right margin; the rows start
28792
+ // in the first column, under the mode line's first glyph, and paddingRight 2
28793
+ // keeps them off the right edge.
28794
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Box_default, { flexDirection: "column", marginTop: 1, marginRight: -1, paddingRight: 2, children: [
28671
28795
  hasMain ? /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Box_default, { children: [
28672
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Box_default, { width: RAIL_POINTER_CELLS, flexShrink: 0, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Text, { bold: true, color: theme.text.primary, children: focused && selectedIndex === 0 ? "\u276F" : " " }) }),
28673
28796
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Box_default, { width: 2, flexShrink: 0, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
28674
28797
  Text,
28675
28798
  {
28676
- bold: mainViewed,
28799
+ bold: mainViewed || focused && selectedIndex === 0,
28677
28800
  color: theme.text.primary,
28678
28801
  dimColor: !mainViewed && !(focused && selectedIndex === 0),
28679
- children: mainViewed ? "\u25CF" : "\u25EF"
28802
+ children: focused && selectedIndex === 0 ? "\u276F" : mainViewed ? "\u25CF" : "\u25EF"
28680
28803
  }
28681
28804
  ) }),
28682
28805
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Box_default, { flexGrow: 1, flexShrink: 1, minWidth: 0, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
@@ -28698,14 +28821,13 @@ function AgentTaskPanel({
28698
28821
  const status = railStatusBlock(agent, now, narrow);
28699
28822
  const bright = viewed || selected;
28700
28823
  return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Box_default, { children: [
28701
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Box_default, { width: RAIL_POINTER_CELLS, flexShrink: 0, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Text, { bold: true, color: theme.text.primary, children: selected ? "\u276F" : " " }) }),
28702
28824
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Box_default, { width: 2, flexShrink: 0, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
28703
28825
  Text,
28704
28826
  {
28705
- bold: viewed,
28827
+ bold: viewed || selected,
28706
28828
  color: railBulletColor(agent.status) ?? theme.text.primary,
28707
28829
  dimColor: !bright && railBulletColor(agent.status) === void 0,
28708
- children: viewed ? "\u25CF" : "\u25EF"
28830
+ children: selected ? "\u276F" : viewed ? "\u25CF" : "\u25EF"
28709
28831
  }
28710
28832
  ) }),
28711
28833
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Box_default, { width: nameWidth, flexShrink: 0, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
@@ -28737,7 +28859,7 @@ function AgentTaskPanel({
28737
28859
  ] }) })
28738
28860
  ] }, agent.viewId);
28739
28861
  }),
28740
- !compact2 && below > 0 ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Box_default, { paddingLeft: 2, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Text, { color: theme.text.muted, children: [
28862
+ !compact2 && below > 0 ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Text, { color: theme.text.muted, children: [
28741
28863
  "\u2193 ",
28742
28864
  below,
28743
28865
  " more"
@@ -28745,21 +28867,16 @@ function AgentTaskPanel({
28745
28867
  !compact2 && below === 0 && agents.length > AGENT_RAIL_WINDOW ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Text, { children: " " }) : null,
28746
28868
  compact2 ? null : workflows.map((workflow, offset) => {
28747
28869
  const selected = focused && selectedIndex === agents.length + lead + offset;
28748
- const { variant, nameWidth: workflowNameWidth } = layoutWorkflowRow(
28749
- workflow,
28750
- now,
28751
- terminalColumns,
28752
- nameWidth
28753
- );
28870
+ const { variant, nameWidth: workflowNameWidth } = workflowLayouts[offset];
28754
28871
  const [filled, empty] = railProgressBar(workflow.done, workflow.total, variant.barWidth);
28755
28872
  return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Box_default, { children: [
28756
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Box_default, { width: RAIL_POINTER_CELLS, flexShrink: 0, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Text, { bold: true, color: theme.text.primary, children: selected ? "\u276F" : " " }) }),
28757
28873
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Box_default, { width: 2, flexShrink: 0, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
28758
28874
  Text,
28759
28875
  {
28876
+ bold: selected,
28760
28877
  color: railWorkflowBulletColor(workflow) ?? theme.text.primary,
28761
28878
  dimColor: !selected && railWorkflowBulletColor(workflow) === void 0,
28762
- children: "\u25EF"
28879
+ children: selected ? "\u276F" : "\u25EF"
28763
28880
  }
28764
28881
  ) }),
28765
28882
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Box_default, { width: workflowNameWidth, flexShrink: 0, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
@@ -29139,7 +29256,7 @@ function WorkflowDetail({
29139
29256
  Math.min(PHASE_DETAIL_LINE_BUDGET, pageSize2 - phaseWindow.items.length - 1)
29140
29257
  ) : [];
29141
29258
  if (!sideBySide) {
29142
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Box_default, { flexDirection: "column", marginTop: 1, marginLeft: -1, marginRight: -1, width: columns, children: [
29259
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Box_default, { flexDirection: "column", marginTop: 1, marginRight: -1, width: columns, children: [
29143
29260
  header,
29144
29261
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Box_default, { paddingX: 1, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Text, { color: theme.text.primary, bold: true, wrap: "truncate-end", children: level === 1 || !phase ? "Phases" : titleWithFailed(`${agentsTitle}${failedTail}`) }) }),
29145
29262
  /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Box_default, { flexDirection: "column", height: pageSize2, flexShrink: 0, paddingX: 1, children: [
@@ -29211,7 +29328,7 @@ function WorkflowDetail({
29211
29328
  const leftTitle = " Phases ";
29212
29329
  const rightTitle = ` ${truncateChoiceText(`${agentsTitle}${failedTail}`, Math.max(1, rightInner - 4))} `;
29213
29330
  const rows = Array.from({ length: pageSize2 }, (_, row2) => row2);
29214
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Box_default, { flexDirection: "column", marginTop: 1, marginLeft: -1, marginRight: -1, width: columns, children: [
29331
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Box_default, { flexDirection: "column", marginTop: 1, marginRight: -1, width: columns, children: [
29215
29332
  header,
29216
29333
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Box_default, { paddingX: 1, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Text, { wrap: "truncate-end", children: [
29217
29334
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Text, { color: border, children: "\u256D" }),
@@ -29868,11 +29985,14 @@ function BackgroundAgentRows(props) {
29868
29985
  })
29869
29986
  ] }, index)
29870
29987
  )),
29871
- waitLine !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Box_default, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(Text, { color: theme.text.muted, children: [
29872
- glyph,
29873
- " ",
29874
- waitLine
29875
- ] }) }) : null
29988
+ waitLine !== void 0 ? (
29989
+ // The same slot as the line that closes a reply: one blank row above, the
29990
+ // mark alone in a two-cell column, the words from the third cell on.
29991
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(Box_default, { marginTop: 1, children: [
29992
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Box_default, { width: 2, flexShrink: 0, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Text, { color: theme.text.muted, bold: true, children: glyph }) }),
29993
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Box_default, { flexGrow: 1, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Text, { color: theme.text.muted, children: waitLine }) })
29994
+ ] })
29995
+ ) : null
29876
29996
  ] });
29877
29997
  }
29878
29998
  __name(BackgroundAgentRows, "BackgroundAgentRows");
@@ -33757,6 +33877,7 @@ function ComposerFrame({
33757
33877
  columns,
33758
33878
  activation = 0,
33759
33879
  animate = true,
33880
+ above,
33760
33881
  children
33761
33882
  }) {
33762
33883
  const terminal = use_window_size_default();
@@ -33786,6 +33907,7 @@ function ComposerFrame({
33786
33907
  }, [hidden, igniting, motion, time]);
33787
33908
  const glowTime = igniting && motion && !hidden && time < HYPERMODE_GLOW_MS ? time : void 0;
33788
33909
  return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Box_default, { flexDirection: "column", width: frameColumns, marginTop: hidden ? 0 : 1, children: [
33910
+ hidden ? null : above,
33789
33911
  /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Box_default, { display: hidden ? "none" : "flex", height: 1, flexShrink: 0, children: [
33790
33912
  glowTime !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(GlowRule, { columns: ruleColumns, time: glowTime }) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Rule, {}),
33791
33913
  showMode ? /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Box_default, { flexShrink: 0, children: [
@@ -37619,11 +37741,14 @@ function prColor(review) {
37619
37741
  }
37620
37742
  }
37621
37743
  __name(prColor, "prColor");
37622
- function backgroundPill(shells, monitors) {
37623
- const total = shells + monitors;
37624
- return total > 0 ? `${total} bg` : null;
37744
+ function shellPill(count2) {
37745
+ return count2 > 0 ? `${count2} ${count2 === 1 ? "shell" : "shells"}` : null;
37625
37746
  }
37626
- __name(backgroundPill, "backgroundPill");
37747
+ __name(shellPill, "shellPill");
37748
+ function monitorPill(count2) {
37749
+ return count2 > 0 ? `${count2} ${count2 === 1 ? "monitor" : "monitors"}` : null;
37750
+ }
37751
+ __name(monitorPill, "monitorPill");
37627
37752
  function StatusBar({
37628
37753
  provider,
37629
37754
  model,
@@ -37649,8 +37774,7 @@ function StatusBar({
37649
37774
  shellsSelected = false,
37650
37775
  tasksOpen,
37651
37776
  railHint: railHint2,
37652
- notice,
37653
- ambient
37777
+ notice
37654
37778
  }) {
37655
37779
  const terminal = use_window_size_default();
37656
37780
  const activeMode = permissionMode !== void 0 && permissionMode !== "prompt" ? modeGlyph(permissionMode) : null;
@@ -37658,26 +37782,25 @@ function StatusBar({
37658
37782
  const hasPr = pr !== void 0 && pr.kind !== "none";
37659
37783
  const nothingElse = !activeMode && shellCount + monitorCount === 0 && !hasPr && agentCount === 0 && workflowCount === 0 && !canManage && !shellsSelected;
37660
37784
  const layout = fitStatusLine({
37661
- // App gives the footer one cell of horizontal padding on each side. Ink's
37662
- // stdout width is the whole terminal, so reserve those cells here rather
37663
- // than letting its final two characters be clipped after fitting succeeds.
37664
- // ...and the line itself starts a cell in (see the return below), so the
37665
- // rail's bullet sits under its first glyph.
37666
- columns: Math.max(0, terminal.columns - 3),
37785
+ // The line starts in the first column and App keeps one cell empty at the
37786
+ // right edge. Ink's stdout width is the whole terminal, so reserve that cell
37787
+ // here rather than letting its final character be clipped after fitting
37788
+ // succeeds.
37789
+ columns: Math.max(0, terminal.columns - 1),
37667
37790
  model,
37668
37791
  provider,
37669
37792
  effort: effort ?? null,
37670
37793
  fast,
37671
37794
  hint,
37672
37795
  notice: notice?.text ?? null,
37673
- ambient: ambient?.text ?? null,
37674
37796
  goal,
37675
37797
  modeLabel: activeMode ? `${activeMode.icon} ${activeMode.label} on` : composerMounted && !dialogOpen && restingHint && !working && nothingElse ? sandboxShell ? QUIET_SANDBOX_HINT : QUIET_MODE_HINT : "",
37676
37798
  // The cycle key is dropped as soon as a background task is on
37677
37799
  // the row: the pill is what the row is about then.
37678
37800
  cycleSuffix: activeMode && canCycleMode && composerMounted && !dialogOpen && shellCount + monitorCount === 0 ? CYCLE_SUFFIX : null,
37679
37801
  interrupt: working && !hint && !dialogOpen ? INTERRUPT_HINT : null,
37680
- shells: backgroundPill(shellCount, monitorCount),
37802
+ shells: shellPill(shellCount),
37803
+ monitors: monitorPill(monitorCount),
37681
37804
  agents: runningText(agentCount, workflowCount),
37682
37805
  tasks: tasksOpen === void 0 ? null : tasksOpen ? HIDE_TASKS_HINT : SHOW_TASKS_HINT,
37683
37806
  manage: shellsSelected && shellCount + monitorCount > 0 ? VIEW_TASKS_HINT : canManage ? MANAGE_HINT : null,
@@ -37709,6 +37832,11 @@ function StatusBar({
37709
37832
  /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Text, { color: theme.accent.shells, inverse: shellsSelected, children: layout.shells }, "shells")
37710
37833
  );
37711
37834
  }
37835
+ if (layout.monitors) {
37836
+ parts.push(
37837
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Text, { color: theme.accent.shells, inverse: shellsSelected, children: layout.monitors }, "monitors")
37838
+ );
37839
+ }
37712
37840
  if (layout.effort) {
37713
37841
  parts.push(
37714
37842
  /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Text, { color: theme.text.secondary, children: layout.effort }, "effort")
@@ -37740,9 +37868,9 @@ function StatusBar({
37740
37868
  );
37741
37869
  }
37742
37870
  if (railHint2) {
37743
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Box_default, { paddingLeft: 1, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Text, { color: theme.text.muted, wrap: "truncate-end", children: railHint2 }) });
37871
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Text, { color: theme.text.muted, wrap: "truncate-end", children: railHint2 }) });
37744
37872
  }
37745
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Box_default, { paddingLeft: 1, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(Text, { wrap: "truncate-end", children: [
37873
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(Text, { wrap: "truncate-end", children: [
37746
37874
  parts.flatMap(
37747
37875
  (part, index) => index === 0 ? [part] : [/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Text, { children: sep2 }, `sep-${part.key}`), part]
37748
37876
  ),
@@ -37750,8 +37878,8 @@ function StatusBar({
37750
37878
  layout.right.kind === "text" ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
37751
37879
  Text,
37752
37880
  {
37753
- color: layout.right.source === "goal" ? theme.accent.system : layout.right.source === "notice" ? toneColor(notice?.tone) : layout.right.source === "ambient" ? toneColor(ambient?.tone) : hintDim ? theme.text.muted : colorForState(state),
37754
- children: layout.right.source === "ambient" ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(StrongText, { text: layout.right.text, strong: ambient?.strong }) : layout.right.text
37881
+ color: layout.right.source === "goal" ? theme.accent.system : layout.right.source === "notice" ? toneColor(notice?.tone) : hintDim ? theme.text.muted : colorForState(state),
37882
+ children: layout.right.text
37755
37883
  }
37756
37884
  ) : layout.right.model ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Text, { color: theme.text.primary, bold: true, children: layout.right.model }) : null
37757
37885
  ] }) });
@@ -37770,19 +37898,6 @@ function toneColor(tone) {
37770
37898
  return tone === "error" ? theme.status.error : tone === "warn" ? theme.status.warn : tone === "ok" ? theme.status.ok : theme.text.muted;
37771
37899
  }
37772
37900
  __name(toneColor, "toneColor");
37773
- function StrongText({
37774
- text,
37775
- strong
37776
- }) {
37777
- const at = strong ? text.indexOf(strong) : -1;
37778
- if (!strong || at < 0) return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_jsx_runtime29.Fragment, { children: text });
37779
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_jsx_runtime29.Fragment, { children: [
37780
- text.slice(0, at),
37781
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Text, { bold: true, children: strong }),
37782
- text.slice(at + strong.length)
37783
- ] });
37784
- }
37785
- __name(StrongText, "StrongText");
37786
37901
  function colorForState(state) {
37787
37902
  switch (state) {
37788
37903
  case "idle":
@@ -37797,8 +37912,8 @@ function colorForState(state) {
37797
37912
  __name(colorForState, "colorForState");
37798
37913
  function fitStatusLine(input) {
37799
37914
  const columns = Math.max(0, input.columns);
37800
- const source = input.hint ? "hint" : input.notice ? "notice" : input.goal ? "goal" : input.ambient ? "ambient" : null;
37801
- let rightText = input.hint || input.notice || input.goal || input.ambient || null;
37915
+ const source = input.hint ? "hint" : input.notice ? "notice" : input.goal ? "goal" : null;
37916
+ let rightText = input.hint || input.notice || input.goal || null;
37802
37917
  if (rightText !== null) rightText = fitHintText(rightText, columns);
37803
37918
  let modelLabel = input.model ?? input.provider;
37804
37919
  const right2 = /* @__PURE__ */ __name(() => rightText !== null ? rightText : modelLabel ?? "", "right");
@@ -37808,6 +37923,7 @@ function fitStatusLine(input) {
37808
37923
  let cycleSuffix = input.cycleSuffix ?? null;
37809
37924
  let interrupt = input.interrupt ?? null;
37810
37925
  let shells = input.shells ?? null;
37926
+ let monitors = input.monitors ?? null;
37811
37927
  let agents = input.agents ?? null;
37812
37928
  let manage = input.manage ?? null;
37813
37929
  let tasks = input.tasks ?? null;
@@ -37818,6 +37934,7 @@ function fitStatusLine(input) {
37818
37934
  mode ? `${mode}${cycleSuffix ?? ""}` : null,
37819
37935
  pr ? `${pr.prefix ? `${pr.prefix} ` : ""}${pr.label}` : null,
37820
37936
  shells,
37937
+ monitors,
37821
37938
  effort,
37822
37939
  fast,
37823
37940
  interrupt,
@@ -37840,7 +37957,10 @@ function fitStatusLine(input) {
37840
37957
  if (over()) manage = null;
37841
37958
  if (over()) fast = null;
37842
37959
  if (over()) effort = null;
37843
- if (over()) shells = null;
37960
+ if (over()) {
37961
+ shells = null;
37962
+ monitors = null;
37963
+ }
37844
37964
  if (over()) pr = null;
37845
37965
  if (over() && (mode === QUIET_MODE_HINT || mode === QUIET_SANDBOX_HINT)) mode = null;
37846
37966
  if (over() && mode) {
@@ -37860,6 +37980,7 @@ function fitStatusLine(input) {
37860
37980
  cycleSuffix: mode ? cycleSuffix : null,
37861
37981
  interrupt,
37862
37982
  shells,
37983
+ monitors,
37863
37984
  pr,
37864
37985
  effort,
37865
37986
  fast,
@@ -38232,8 +38353,9 @@ function transcriptScrollRows(messages, pending, pendingAt, columns) {
38232
38353
  const ordered = pending ? [...messages.slice(0, at), pending, ...messages.slice(at)] : messages;
38233
38354
  const width = scrollTextWidth(columns);
38234
38355
  const rows = [];
38356
+ const later = laterReplyBlocks(ordered);
38235
38357
  ordered.forEach((message, index) => {
38236
- const block = messageScrollRows(message, index > 0, width);
38358
+ const block = messageScrollRows(message, index > 0, width, { later: later[index] ?? false });
38237
38359
  if (rows.length > 0 && block.gap) rows.push(block.gap);
38238
38360
  rows.push(...block.rows);
38239
38361
  });
@@ -38265,7 +38387,8 @@ function saying(meta, hint) {
38265
38387
  __name(saying, "saying");
38266
38388
  function messageScrollRows(asked, hasPrev, width, options = {}) {
38267
38389
  const message = withLiveHint(asked);
38268
- const glyph = message.glyph ?? glyphForRole(message.role);
38390
+ const replyMark = message.role === "assistant" && message.glyph === void 0;
38391
+ const glyph = replyMark && options.later === true ? " " : message.glyph ?? glyphForRole(message.role);
38269
38392
  const glyphColor = paint(message.glyphColor) ?? (glyph === "\u23BF" ? theme.text.muted : glyphColorForRole(message.role));
38270
38393
  const color = paint(message.contentColor) ?? contentColorForRole(message.role);
38271
38394
  const joined = scrollBodyText(message, options.hint, width);
@@ -38296,6 +38419,7 @@ function messageScrollRows(asked, hasPrev, width, options = {}) {
38296
38419
  glyphColor,
38297
38420
  text,
38298
38421
  color,
38422
+ ...replyMark && i === 0 ? { plainMark: true } : {},
38299
38423
  ...tint !== void 0 ? { tint } : {}
38300
38424
  });
38301
38425
  });
@@ -38453,7 +38577,7 @@ function TranscriptScrollView({
38453
38577
  const hint = followHint(columns, news);
38454
38578
  return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(Box_default, { flexDirection: "column", children: [
38455
38579
  shown.map((row2, i) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(Box_default, { flexDirection: "row", children: [
38456
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Box_default, { width: 2, flexShrink: 0, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Text, { color: row2.glyphColor, bold: true, children: row2.glyph }) }),
38580
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Box_default, { width: 2, flexShrink: 0, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Text, { color: row2.glyphColor, bold: row2.plainMark !== true, children: row2.glyph }) }),
38457
38581
  /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Text, { color: row2.color, wrap: "truncate-end", children: row2.text.length > 0 ? row2.text : " " })
38458
38582
  ] }, `${view.top + i}`)),
38459
38583
  /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Box_default, { justifyContent: "center", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Text, { color: view.unseen ? theme.text.secondary : theme.text.muted, wrap: "truncate-end", children: hint ?? " " }) })
@@ -39824,7 +39948,7 @@ async function fastModeBlocker(providerId, model, now = Date.now(), otherHost =
39824
39948
  return `Fast mode is offered on the vendor's own endpoint only, and requests here go to ${otherHost}.`;
39825
39949
  }
39826
39950
  if (!model) return "Fast mode needs a model; pick one with /model.";
39827
- const { resolveFastModeVerdict } = await import("./dist-QXUTKQ55.js");
39951
+ const { resolveFastModeVerdict } = await import("./dist-IOJ4RD22.js");
39828
39952
  const verdict = resolveFastModeVerdict(model, now);
39829
39953
  return verdict.ok ? void 0 : verdict.reason;
39830
39954
  }
@@ -40678,7 +40802,7 @@ function clickableRows(message, hasPrev, width, open) {
40678
40802
  };
40679
40803
  }
40680
40804
  __name(clickableRows, "clickableRows");
40681
- function fullscreenMessageRows(asked, hasPrev, width, mode = PLAIN, streams) {
40805
+ function fullscreenMessageRows(asked, hasPrev, width, mode = PLAIN, streams, later = false) {
40682
40806
  const message = withLiveHint(asked);
40683
40807
  if (mode.click) {
40684
40808
  const clickable = clickableRows(message, hasPrev, width, mode.open);
@@ -40687,7 +40811,9 @@ function fullscreenMessageRows(asked, hasPrev, width, mode = PLAIN, streams) {
40687
40811
  const hung = hangsResult(message);
40688
40812
  const fit2 = hung ? Math.max(4, width - RESULT_HANG) : width;
40689
40813
  const markdown = rendersMarkdown(message);
40690
- const plain2 = messageScrollRows(markdown ? { ...message, content: "x" } : message, hasPrev, fit2);
40814
+ const plain2 = messageScrollRows(markdown ? { ...message, content: "x" } : message, hasPrev, fit2, {
40815
+ later
40816
+ });
40691
40817
  const gap = plain2.gap ? plainRow(plain2.gap) : null;
40692
40818
  const first = plain2.rows[0];
40693
40819
  const body = markdown ? 1 : wrapChoiceText(scrollBodyText(message, void 0, fit2), fit2).length;
@@ -40696,6 +40822,7 @@ function fullscreenMessageRows(asked, hasPrev, width, mode = PLAIN, streams) {
40696
40822
  const wrap3 = /* @__PURE__ */ __name((row2, i) => ({
40697
40823
  glyph: i === 0 ? first.glyph : " ",
40698
40824
  glyphColor: first.glyphColor,
40825
+ ...first.plainMark ? { plainMark: true } : {},
40699
40826
  text: row2.text,
40700
40827
  color: first.color,
40701
40828
  spans: row2.spans,
@@ -40741,8 +40868,10 @@ function layoutTranscript(messages, pending, pendingAt, columns, cache3, view =
40741
40868
  const theme2 = `${shownTheme()}:${grammarVersion()}`;
40742
40869
  const rows = [];
40743
40870
  const blocks = [];
40871
+ const laterBlocks = laterReplyBlocks(ordered);
40744
40872
  ordered.forEach((message, i) => {
40745
40873
  const hasPrev = i > 0;
40874
+ const later = laterBlocks[i] ?? false;
40746
40875
  if (unseen && message.id === unseen.before && hasPrev) {
40747
40876
  rows.push({
40748
40877
  glyph: " ",
@@ -40757,14 +40886,15 @@ function layoutTranscript(messages, pending, pendingAt, columns, cache3, view =
40757
40886
  }
40758
40887
  const mode = { click: view.click, open: view.click && view.open.has(message.id) };
40759
40888
  let hit = cache3.kept.get(message);
40760
- if (!hit || hit.width !== width || hit.hasPrev !== hasPrev || hit.theme !== theme2 || hit.click !== mode.click || hit.open !== mode.open) {
40889
+ if (!hit || hit.width !== width || hit.hasPrev !== hasPrev || hit.later !== later || hit.theme !== theme2 || hit.click !== mode.click || hit.open !== mode.open) {
40761
40890
  hit = {
40762
40891
  width,
40763
40892
  hasPrev,
40893
+ later,
40764
40894
  theme: theme2,
40765
40895
  click: mode.click,
40766
40896
  open: mode.open,
40767
- block: fullscreenMessageRows(message, hasPrev, width, mode, cache3.streams)
40897
+ block: fullscreenMessageRows(message, hasPrev, width, mode, cache3.streams, later)
40768
40898
  };
40769
40899
  cache3.kept.set(message, hit);
40770
40900
  cache3.laid += 1;
@@ -41032,7 +41162,7 @@ var REAL_CLOCK = {
41032
41162
  }, "after")
41033
41163
  };
41034
41164
  var GUTTER2 = 2;
41035
- var SCREEN_PADDING = 1;
41165
+ var SCREEN_PADDING = 0;
41036
41166
  var DOUBLE_CLICK_MS = 400;
41037
41167
  var NOTE_OK_MS = 2e3;
41038
41168
  var NOTE_FAIL_MS = 4e3;
@@ -41555,7 +41685,7 @@ function FullscreenTranscript({
41555
41685
  width: 2,
41556
41686
  flexShrink: 0,
41557
41687
  ...row2.tint !== void 0 ? { backgroundColor: row2.tint } : {},
41558
- children: row2.tint !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Text, { color: row2.glyphColor, dimColor: true, children: row2.glyph }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Text, { color: row2.glyphColor, bold: true, children: row2.glyph })
41688
+ children: row2.tint !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Text, { color: row2.glyphColor, dimColor: true, children: row2.glyph }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Text, { color: row2.glyphColor, bold: row2.plainMark !== true, children: row2.glyph })
41559
41689
  }
41560
41690
  ),
41561
41691
  row2.spans === void 0 && marks.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
@@ -45481,6 +45611,52 @@ var IdleNotifier = class {
45481
45611
  }
45482
45612
  };
45483
45613
 
45614
+ // src/tui/UpdateNoticeRow.tsx
45615
+ var import_jsx_runtime36 = __toESM(require_jsx_runtime(), 1);
45616
+ function noticeHoldsFooter(notice, boxOwnsKeys) {
45617
+ if (!notice) return false;
45618
+ const immediate = notice.priority === "immediate";
45619
+ const shown = immediate || !boxOwnsKeys;
45620
+ return shown && (immediate || notice.tone === "error");
45621
+ }
45622
+ __name(noticeHoldsFooter, "noticeHoldsFooter");
45623
+ var UPDATE_NOTICE_SHARE = 0.6;
45624
+ function fitUpdateNotice(text, columns) {
45625
+ const width = Math.max(0, Math.floor(columns));
45626
+ const cap2 = Math.floor(width * UPDATE_NOTICE_SHARE);
45627
+ const chars = [...text];
45628
+ const shown = chars.length <= cap2 ? text : cap2 > 1 ? `${chars.slice(0, cap2 - 1).join("")}\u2026` : "";
45629
+ return { text: shown, indent: Math.max(0, width - [...shown].length) };
45630
+ }
45631
+ __name(fitUpdateNotice, "fitUpdateNotice");
45632
+ function StrongText({
45633
+ text,
45634
+ strong
45635
+ }) {
45636
+ const at = strong ? text.indexOf(strong) : -1;
45637
+ if (!strong || at < 0) return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_jsx_runtime36.Fragment, { children: text });
45638
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_jsx_runtime36.Fragment, { children: [
45639
+ text.slice(0, at),
45640
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Text, { bold: true, children: strong }),
45641
+ text.slice(at + strong.length)
45642
+ ] });
45643
+ }
45644
+ __name(StrongText, "StrongText");
45645
+ function UpdateNoticeRow({
45646
+ notice,
45647
+ columns,
45648
+ critical = false
45649
+ }) {
45650
+ if (!notice || critical) return null;
45651
+ const fit2 = fitUpdateNotice(notice.text, columns);
45652
+ if (fit2.text.length === 0) return null;
45653
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Box_default, { height: 1, flexShrink: 0, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(Text, { color: toneColor(notice.tone), wrap: "truncate-end", children: [
45654
+ " ".repeat(fit2.indent),
45655
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(StrongText, { text: fit2.text, strong: notice.strong })
45656
+ ] }) });
45657
+ }
45658
+ __name(UpdateNoticeRow, "UpdateNoticeRow");
45659
+
45484
45660
  // src/tui/agent-view-commands.ts
45485
45661
  function agentViewCommandClass(name) {
45486
45662
  switch (name) {
@@ -46458,7 +46634,11 @@ __name(holdsForBatch, "holdsForBatch");
46458
46634
  function settledBatchRows(members, enabled2 = true) {
46459
46635
  const blocked = blockedAgents(members, enabled2);
46460
46636
  const rows = [];
46461
- if (blocked.length !== members.length) rows.push(agentLaunchRow(members));
46637
+ if (blocked.length !== members.length) {
46638
+ rows.push(agentLaunchRow(members));
46639
+ const follow = launchFollowNote(members);
46640
+ if (follow) rows.push({ role: "tool", content: follow, glyph: "\u23BF" });
46641
+ }
46462
46642
  if (blocked.length > 0) {
46463
46643
  const block = waitedOnBlock(blocked);
46464
46644
  rows.push({
@@ -46661,7 +46841,7 @@ function carryStyleAcrossLines(text) {
46661
46841
  __name(carryStyleAcrossLines, "carryStyleAcrossLines");
46662
46842
 
46663
46843
  // src/tui/status-line/StatusLineRows.tsx
46664
- var import_jsx_runtime36 = (
46844
+ var import_jsx_runtime37 = (
46665
46845
  // biome-ignore lint/suspicious/noArrayIndexKey: lines have no identity; the text is replaced whole
46666
46846
  __toESM(require_jsx_runtime(), 1)
46667
46847
  );
@@ -46669,7 +46849,7 @@ function StatusLineRows({
46669
46849
  text,
46670
46850
  padding = 0
46671
46851
  }) {
46672
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Box_default, { flexDirection: "column", paddingLeft: 1 + padding, paddingRight: padding, children: carryStyleAcrossLines(text).map((line, index) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Text, { dimColor: true, wrap: "truncate", children: line }, index)) });
46852
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Box_default, { flexDirection: "column", paddingLeft: 1 + padding, paddingRight: padding, children: carryStyleAcrossLines(text).map((line, index) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Text, { dimColor: true, wrap: "truncate", children: line }, index)) });
46673
46853
  }
46674
46854
  __name(StatusLineRows, "StatusLineRows");
46675
46855
 
@@ -47617,7 +47797,7 @@ async function reviewMergeBase(cwd2, branch) {
47617
47797
  __name(reviewMergeBase, "reviewMergeBase");
47618
47798
 
47619
47799
  // src/tui/App.tsx
47620
- var import_jsx_runtime37 = __toESM(require_jsx_runtime(), 1);
47800
+ var import_jsx_runtime38 = __toESM(require_jsx_runtime(), 1);
47621
47801
  var AUTO_MODE_NOTICE_KEY = "auto-mode";
47622
47802
  var SESSION_CLOSE_ON_EXIT_MS = 5e3;
47623
47803
  var FREE_TEXT_ANSWER = "__free_text__";
@@ -47780,7 +47960,7 @@ var defaultExternalEditor = /* @__PURE__ */ __name(({ seed, cwd: cwd2, signal, p
47780
47960
  }), "defaultExternalEditor");
47781
47961
  function App2(props) {
47782
47962
  const epoch = useThemeSubscription();
47783
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(ThemeEpochContext.Provider, { value: epoch, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(AppBody, { ...props }) });
47963
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ThemeEpochContext.Provider, { value: epoch, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(AppBody, { ...props }) });
47784
47964
  }
47785
47965
  __name(App2, "App");
47786
47966
  function AppBody({
@@ -51779,7 +51959,7 @@ ${blocks.join("\n\n")}`;
51779
51959
  const callBlockFurniture = callBlockExtraRows(backgroundGroups);
51780
51960
  const flowContext = {
51781
51961
  freeze: flowFreeze,
51782
- width: Math.max(10, terminal.columns - 4),
51962
+ width: Math.max(10, terminal.columns - SCREEN_MARGIN - 2),
51783
51963
  rows: flowRows(
51784
51964
  terminal.rows,
51785
51965
  taskFurniture + toolFurniture + pendingInputFurniture + callBlockFurniture
@@ -52185,10 +52365,10 @@ ${blocks.join("\n\n")}`;
52185
52365
  const progressId = pushMessage("system", "Reading spend\u2026");
52186
52366
  try {
52187
52367
  const [{ buildCostReport }, { renderSpend }, { systemClock }, { resolveNamzuHome: resolveNamzuHome2 }] = await Promise.all([
52188
- import("./cost-2D4AKLSB.js"),
52368
+ import("./cost-VA6HZQE6.js"),
52189
52369
  import("./render-QFCCPEEL.js"),
52190
52370
  import("./day-CU5J7UAK.js"),
52191
- import("./home-S3SNMFFG.js")
52371
+ import("./home-5OAGR5X5.js")
52192
52372
  ]);
52193
52373
  const report = await buildCostReport(days, {
52194
52374
  home: resolveNamzuHome2(),
@@ -52214,7 +52394,7 @@ ${blocks.join("\n\n")}`;
52214
52394
  doctorRunningRef.current = true;
52215
52395
  const progressId = pushMessage("system", "Checking\u2026");
52216
52396
  try {
52217
- const { runLiveDoctor } = await import("./live-KY5OOYNO.js");
52397
+ const { runLiveDoctor } = await import("./live-UWUEDSPR.js");
52218
52398
  const { describePlainDoctor } = await import("./plain-report-XVPBQDLE.js");
52219
52399
  const report = await runLiveDoctor({
52220
52400
  ...ctxRef.current.telemetry ? { telemetry: ctxRef.current.telemetry } : {}
@@ -58841,7 +59021,7 @@ ${plugins.map((plugin) => {
58841
59021
  const max = maxBackgroundJobTailOffset(
58842
59022
  output,
58843
59023
  terminal.rows,
58844
- Math.max(1, terminal.columns - 2)
59024
+ Math.max(1, terminal.columns - SCREEN_MARGIN)
58845
59025
  );
58846
59026
  const page = backgroundJobOutputPageSize(terminal.rows);
58847
59027
  const offset = Math.min(shellView.tailOffset, max);
@@ -59169,7 +59349,11 @@ ${plugins.map((plugin) => {
59169
59349
  }
59170
59350
  if (key.pageUp || key.pageDown || key.home || key.end) {
59171
59351
  const rows = agentViewPageRows(terminal.rows, viewRailRowsRef.current);
59172
- const max = maxAgentViewTailOffset(selected, rows, Math.max(1, terminal.columns - 2));
59352
+ const max = maxAgentViewTailOffset(
59353
+ selected,
59354
+ rows,
59355
+ Math.max(1, terminal.columns - SCREEN_MARGIN)
59356
+ );
59173
59357
  const offset = Math.min(agentView.tailOffset, max);
59174
59358
  const next = key.home ? max : key.end ? 0 : key.pageUp ? Math.min(max, offset + rows) : Math.max(0, offset - rows);
59175
59359
  setAgentSurface({ ...agentView, tailOffset: next });
@@ -59250,7 +59434,7 @@ ${plugins.map((plugin) => {
59250
59434
  if (key.home || key.end || key.pageUp || key.pageDown) {
59251
59435
  const pageSize2 = choicePickerWindowSize({
59252
59436
  rows: terminal.rows,
59253
- columns: Math.max(1, (terminal.columns ?? 80) - 2),
59437
+ columns: Math.max(1, (terminal.columns ?? 80) - SCREEN_MARGIN),
59254
59438
  searchable,
59255
59439
  notice: Boolean(picker.notice),
59256
59440
  selectedDescription: options.some(
@@ -59483,12 +59667,13 @@ ${plugins.map((plugin) => {
59483
59667
  ) : null;
59484
59668
  const effortSlider = choicePicker?.kind === "reasoning-effort" ? effortSliderLayout(
59485
59669
  choicePicker.options.map((option) => option.label),
59486
- Math.max(1, (terminal.columns ?? 80) - 2)
59670
+ Math.max(1, (terminal.columns ?? 80) - SCREEN_MARGIN)
59487
59671
  ) : void 0;
59488
59672
  const boxOwnsKeys = permission !== null || scheduleReviewPrompt !== null || saveSkillPrompt !== null || planPrompt !== null || questionDialog !== null || agentSurface !== null || jobSurface !== null || textPrompt !== null || choicePicker !== null || copyPicker !== null || phase === "trust" || phase === "resume" || phase === "unarchive" || phase === "edit" || phase === "picker";
59489
59673
  const dialogShowing = permission !== null || scheduleReviewPrompt !== null || saveSkillPrompt !== null || planPrompt !== null || questionDialog !== null || textPrompt !== null || choicePicker !== null || copyPicker !== null || phase === "resume" || phase === "unarchive" || phase === "edit" || phase === "picker";
59490
59674
  const currentNotice = notices.current;
59491
59675
  const noticeIsImmediate = currentNotice?.priority === "immediate";
59676
+ const noticeIsCritical = noticeHoldsFooter(currentNotice, boxOwnsKeys);
59492
59677
  const statusHint = exitHint ? `Press ${exitHint} again to exit` : noticeIsImmediate ? void 0 : conversationMutation === "fork" ? "forking conversation \u2014 input is paused" : conversationMutation === "edit" ? "branching before prompt \u2014 input is paused" : conversationMutation === "archive" ? "archiving conversation \u2014 input is paused" : conversationMutation === "new" ? "starting a fresh conversation \u2014 input is paused" : compacting ? "compacting conversation \u2014 input is paused" : boxOwnsKeys ? void 0 : handoffPark && phase === "ready" && state === "idle" && !composerHasDraft ? handoffPark.spentAllowance ? CONTINUE_WITH_ANOTHER_ACCOUNT : handoffPark.autoResume ? `trying again in ${formatSpan(Math.max(0, handoffPark.autoResume.at - Date.now()))} \xB7 enter try now \xB7 esc stop` : "enter continue \xB7 esc stop" : goalStatus && phase === "ready" && state === "idle" ? void 0 : hintForPhase(phase, state, composerHasDraft);
59493
59678
  const permissionSource = reviewSource(permission, scopeRef.current?.sessionId);
59494
59679
  const permissionOwner = permissionSource ? subagents.find((agent) => agent.sessionId === permissionSource) : void 0;
@@ -59538,497 +59723,514 @@ ${plugins.map((plugin) => {
59538
59723
  return (
59539
59724
  // One row short of the terminal, always: see ViewportBound.tsx for the
59540
59725
  // renderer path a taller frame takes and the scrollback row it costs.
59541
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
59726
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
59542
59727
  ViewportBound,
59543
59728
  {
59544
59729
  rows: terminal.rows,
59545
59730
  display: externalEditorRequest || fullscreenBlank ? "none" : "flex",
59546
59731
  fill: fullscreenOn,
59547
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(Box_default, { flexDirection: "column", paddingX: 1, flexGrow: fullscreenOn ? 1 : 0, children: [
59548
- fullscreen ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
59549
- FullscreenTranscript,
59550
- {
59551
- messages: finalized,
59552
- pending: messages.find((m) => m.pending) ?? null,
59553
- pendingAt,
59554
- columns: Math.max(4, terminal.columns - 2),
59555
- maxRows: Math.max(3, terminal.rows - 1),
59556
- hidden: lifecycleOwnsViewport,
59557
- keysActive: phase === "ready" && permission === null && scheduleReviewPrompt === null && choicePicker === null && copyPicker === null && textPrompt === null && questionDialog === null && externalEditorRequest === null && !lifecycleOwnsViewport,
59558
- homeEndActive: !composerHasDraft,
59559
- subscribeWheel: fullscreen.subscribeWheel,
59560
- ...fullscreen.subscribePointer ? { subscribePointer: fullscreen.subscribePointer, copy: copyFullscreenSelection } : {},
59561
- copyOnSelect: fullscreen.copyOnSelect !== false,
59562
- ...fullscreen.wheelRows !== void 0 ? { wheelRows: fullscreen.wheelRows } : {},
59563
- ...fullscreen.wheelAccel !== void 0 ? { wheelAccel: fullscreen.wheelAccel } : {},
59564
- onSearchChange: setFullscreenSearching,
59565
- control: fullscreenControl,
59566
- header: transcriptOwned ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
59567
- BrandHeader,
59732
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
59733
+ Box_default,
59734
+ {
59735
+ flexDirection: "column",
59736
+ paddingLeft: 0,
59737
+ paddingRight: SCREEN_MARGIN,
59738
+ flexGrow: fullscreenOn ? 1 : 0,
59739
+ children: [
59740
+ fullscreen ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
59741
+ FullscreenTranscript,
59568
59742
  {
59569
- version: ctx.version,
59570
- permissionMode: displayedPermissionMode,
59571
- cwd: ctx.cwd
59743
+ messages: finalized,
59744
+ pending: messages.find((m) => m.pending) ?? null,
59745
+ pendingAt,
59746
+ columns: Math.max(4, terminal.columns - SCREEN_MARGIN),
59747
+ maxRows: Math.max(3, terminal.rows - 1),
59748
+ hidden: lifecycleOwnsViewport,
59749
+ keysActive: phase === "ready" && permission === null && scheduleReviewPrompt === null && choicePicker === null && copyPicker === null && textPrompt === null && questionDialog === null && externalEditorRequest === null && !lifecycleOwnsViewport,
59750
+ homeEndActive: !composerHasDraft,
59751
+ subscribeWheel: fullscreen.subscribeWheel,
59752
+ ...fullscreen.subscribePointer ? { subscribePointer: fullscreen.subscribePointer, copy: copyFullscreenSelection } : {},
59753
+ copyOnSelect: fullscreen.copyOnSelect !== false,
59754
+ ...fullscreen.wheelRows !== void 0 ? { wheelRows: fullscreen.wheelRows } : {},
59755
+ ...fullscreen.wheelAccel !== void 0 ? { wheelAccel: fullscreen.wheelAccel } : {},
59756
+ onSearchChange: setFullscreenSearching,
59757
+ control: fullscreenControl,
59758
+ header: transcriptOwned ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
59759
+ BrandHeader,
59760
+ {
59761
+ version: ctx.version,
59762
+ permissionMode: displayedPermissionMode,
59763
+ cwd: ctx.cwd
59764
+ }
59765
+ ) : void 0
59572
59766
  }
59573
- ) : void 0
59574
- }
59575
- ) : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(TranscriptFrame, { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
59576
- Transcript,
59577
- {
59578
- messages: finalized,
59579
- pending: messages.find((m) => m.pending) ?? null,
59580
- pendingAt,
59581
- state,
59582
- settled: transcriptOwned ? renderedSettled : 0,
59583
- resetKey,
59584
- raw: rawOutput,
59585
- hyperlinks,
59586
- showLive: !lifecycleOwnsViewport,
59587
- staticIndent: 1,
59588
- header: transcriptOwned ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
59589
- BrandHeader,
59767
+ ) : /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TranscriptFrame, { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
59768
+ Transcript,
59590
59769
  {
59591
- version: ctx.version,
59592
- permissionMode: displayedPermissionMode,
59593
- cwd: ctx.cwd
59770
+ messages: finalized,
59771
+ pending: messages.find((m) => m.pending) ?? null,
59772
+ pendingAt,
59773
+ state,
59774
+ settled: transcriptOwned ? renderedSettled : 0,
59775
+ resetKey,
59776
+ raw: rawOutput,
59777
+ hyperlinks,
59778
+ showLive: !lifecycleOwnsViewport,
59779
+ staticIndent: 0,
59780
+ staticIndentRight: SCREEN_MARGIN,
59781
+ header: transcriptOwned ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
59782
+ BrandHeader,
59783
+ {
59784
+ version: ctx.version,
59785
+ permissionMode: displayedPermissionMode,
59786
+ cwd: ctx.cwd
59787
+ }
59788
+ ) : void 0
59594
59789
  }
59595
- ) : void 0
59596
- }
59597
- ) }),
59598
- providerSetup ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
59599
- ProviderSetup,
59600
- {
59601
- cwd: ctx.cwd,
59602
- onClose: () => setProviderSetup(false),
59603
- onConnect: () => {
59604
- setProviderSetup(false);
59605
- setPickerInitialView("providers");
59606
- setPickerDetected(null);
59607
- setPickerSelectionKind("provider-and-model");
59608
- setPhase("picker");
59609
- void discoverProviders({ skipProbes: true }).then(setPickerDetected).catch(
59610
- (error) => setPickerNotice(explainFailure(error, "Could not look for providers."))
59611
- );
59612
- }
59613
- }
59614
- ) : phase === "trust" ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(TrustPrompt, { cwd: ctx.cwd, grants: trustGrants }) : phase === "unhealthy" ? (
59615
- // The sentence above already says what to do when it is a complete
59616
- // one; saying "resolve the error above" under it is the same advice
59617
- // twice.
59618
- startupExplained ? null : /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(Box_default, { flexDirection: "column", marginTop: 1, children: [
59619
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Text, { color: theme.status.error, bold: true, children: "Startup stopped" }),
59620
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Text, { color: theme.text.secondary, children: "Resolve the error above, then restart Namzu." })
59621
- ] })
59622
- ) : phase === "resume" || phase === "unarchive" ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
59623
- ResumePicker,
59624
- {
59625
- conversations: resumeList,
59626
- selected: selectedResume,
59627
- mode: phase === "unarchive" ? "restore" : "resume",
59628
- query: resumeQuery,
59629
- scope: resumeScope,
59630
- renaming: resumeRenaming,
59631
- ...resumeNotice !== void 0 ? { notice: resumeNotice } : {}
59632
- }
59633
- ) : phase === "edit" ? rewind ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
59634
- RewindPicker,
59635
- {
59636
- rows: rewind.rows,
59637
- state: rewind.state,
59638
- options: optionsFor(rewind.state, {
59639
- rows: rewind.rows,
59640
- canSummarize: Boolean(session?.compactRange)
59641
- }),
59642
- checkpointing: Boolean(session?.checkpoints),
59643
- now: rewind.openedAt,
59644
- working: rewind.state.busy?.startsWith("summarize") ? "Summarizing\u2026" : "Restoring\u2026"
59645
- }
59646
- ) : null : phase === "picker" ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
59647
- Picker,
59648
- {
59649
- detected: pickerDetected ?? detected,
59650
- currentProvider,
59651
- selectionKind: pickerSelectionKind,
59652
- currentModel: session?.modelSummary ?? null,
59653
- ...ctx.routing && session?.hasProvider && !palDefinitionRef.current ? { auto: { active: autoActive }, onAuto: handlePickerAuto } : {},
59654
- initialView: pickerInitialView,
59655
- onSubmit: handlePickerSubmit,
59656
- onCancel: handlePickerCancel,
59657
- onSetup: () => setProviderSetup(true),
59658
- onCredential: handleTypedCredential,
59659
- onLogin: startLoginFromPicker,
59660
- onLoginComplete: finishLoginFromPicker,
59661
- keyEntryFor,
59662
- notice: pickerNotice,
59663
- cancelExits: !session?.hasProvider
59664
- }
59665
- ) : /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
59666
- pendingInputVisible ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
59667
- PendingInputPanel,
59668
- {
59669
- pendingSteers: pendingInputItems,
59670
- queued: queuedInputItems,
59671
- columns: Math.max(2, (terminal.columns ?? 80) - 2),
59672
- rows: terminal.rows,
59673
- working: abortRef.current !== null,
59674
- selectedQueued: queueSelection,
59675
- held: queuePause
59676
- }
59677
- ) : null,
59678
- agentSurface === null && !transcriptScreen && !scrollOpen && jobSurface === null && scheduleReviewPrompt === null ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
59679
- LiveActivity,
59680
- {
59681
- compact: compactWork,
59682
- ...compacting || summarising ? { activityLabel: COMPACTING_LABEL } : workingStepLabel ? { activityLabel: workingStepLabel } : {},
59683
- activeTools: visibleActiveTools,
59684
- working: state === "thinking" || state === "tool",
59685
- compacting,
59686
- animate: stdout.isTTY === true && permission === null && textPrompt === null && saveSkillPrompt === null && planPrompt === null && questionDialog === null && scheduleReviewPrompt === null,
59687
- thinking,
59688
- ...spinnerTip ? { tip: spinnerTip } : {},
59689
- ...nextPlanned && !planInRegion ? { nextTask: nextTaskLine(nextPlanned) } : {},
59690
- ...planInRegion ? { plan: liveTasks, planOpen: checklistOpen } : {},
59691
- ...permission !== null ? { waitingFor: "approval" } : {},
59692
- waitNotice: providerWaitNotice,
59693
- tokens: turnTokens,
59694
- waitingForYou: choicePicker !== null || permission !== null || textPrompt !== null || saveSkillPrompt !== null || planPrompt !== null || questionDialog !== null || scheduleReviewPrompt !== null
59695
- }
59696
- ) : null,
59697
- agentSurface === null && !transcriptScreen && !scrollOpen && jobSurface === null && permission === null && scheduleReviewPrompt === null ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
59698
- BackgroundAgentRows,
59699
- {
59700
- groups: backgroundGroups,
59701
- waitLine: backgroundWaitText,
59702
- glyph: CLOSING_GLYPH
59703
- }
59704
- ) : null,
59705
- agentSurface === null && !transcriptScreen && !scrollOpen && jobSurface === null && permission === null && scheduleReviewPrompt === null ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(TaskList, { tasks: planInRegion ? [] : liveTasks, expanded: checklistOpen }) : null,
59706
- permission && !transcriptScreen ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
59707
- PermissionOverlay,
59708
- {
59709
- toolCalls: permission.toolCalls,
59710
- review: permission.review,
59711
- summary: permission.summary,
59712
- detailsOpen: permissionDetailsOpen,
59713
- reviewOffset: permissionReviewOffset,
59714
- choice: permissionChoice,
59715
- ...permissionCount ? { count: permissionCount } : {},
59716
- ...permissionSourceLabel ? { from: permissionSourceLabel } : {},
59717
- ...permissionReason !== null ? { reason: permissionReason } : {},
59718
- endsTurn: endsTurnOnNo(permission),
59719
- columns: terminal.columns,
59720
- rows: terminal.rows,
59721
- batchOnly: permission.batchOnly === true,
59722
- mode: permissionMode,
59723
- ...session?.allowForSession && session.commandArguments ? {
59724
- commandArguments: session.commandArguments,
59725
- rememberWhere: displayPath(ctx.cwd, 28)
59726
- } : {},
59727
- siteNotes: permission.siteNotes,
59728
- withheld: permission.withheld,
59729
- ...permission.screenConsent === true ? {
59730
- screenConsent: {
59731
- provider: session?.providerSummary ?? null
59790
+ ) }),
59791
+ providerSetup ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
59792
+ ProviderSetup,
59793
+ {
59794
+ cwd: ctx.cwd,
59795
+ onClose: () => setProviderSetup(false),
59796
+ onConnect: () => {
59797
+ setProviderSetup(false);
59798
+ setPickerInitialView("providers");
59799
+ setPickerDetected(null);
59800
+ setPickerSelectionKind("provider-and-model");
59801
+ setPhase("picker");
59802
+ void discoverProviders({ skipProbes: true }).then(setPickerDetected).catch(
59803
+ (error) => setPickerNotice(explainFailure(error, "Could not look for providers."))
59804
+ );
59732
59805
  }
59733
- } : {}
59734
- }
59735
- ) : null,
59736
- saveSkillPrompt && permission === null && scheduleReviewPrompt === null && !transcriptScreen ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
59737
- SaveSkillOverlay,
59738
- {
59739
- request: saveSkillPrompt.request,
59740
- cwd: ctx.cwd,
59741
- columns: Math.max(1, (terminal.columns ?? 80) - 2),
59742
- rows: terminal.rows,
59743
- onAnswer: saveSkillPrompt.resolve
59744
- },
59745
- saveSkillPrompt.request.markdown
59746
- ) : null,
59747
- planPrompt && permission === null && scheduleReviewPrompt === null && !transcriptScreen ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
59748
- PlanApprovalOverlay,
59749
- {
59750
- request: planPrompt.request,
59751
- columns: Math.max(1, (terminal.columns ?? 80) - 2),
59752
- rows: terminal.rows,
59753
- onAnswer: planPrompt.resolve,
59754
- onInterrupt: interruptTurn
59755
- },
59756
- planPrompt.request.plan
59757
- ) : null,
59758
- questionDialog && permission === null && scheduleReviewPrompt === null && !transcriptScreen ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
59759
- QuestionDialog,
59760
- {
59761
- question: questionDialog.question,
59762
- columns: Math.max(1, (terminal.columns ?? 80) - 2),
59763
- onAnswer: finishQuestionDialog
59764
- },
59765
- questionDialog.token
59766
- ) : null,
59767
- scheduleReviewPrompt && permission === null && !transcriptScreen ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
59768
- ScheduleReviewOverlay,
59769
- {
59770
- request: scheduleReviewPrompt.request,
59771
- columns: Math.max(1, (terminal.columns ?? 80) - 2),
59772
- rows: Math.max(1, (terminal.rows ?? 24) - 2),
59773
- onAnswer: scheduleReviewPrompt.resolve
59774
- },
59775
- scheduleReviewPrompt.token
59776
- ) : null,
59777
- textPrompt ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
59778
- TextPrompt,
59779
- {
59780
- columns: Math.max(1, (terminal.columns ?? 80) - 2),
59781
- title: textPrompt.title,
59782
- placeholder: textPrompt.placeholder,
59783
- initialValue: textPrompt.initialValue,
59784
- emptyNotice: textPrompt.emptyNotice,
59785
- mask: textPrompt.mask === true,
59786
- allowEmpty: textPrompt.allowEmpty === true,
59787
- hidden: permission !== null || scheduleReviewPrompt !== null || childSurfaceOpen,
59788
- onSubmit: submitTextPrompt,
59789
- onCancel: cancelTextPrompt
59790
- },
59791
- textPrompt.token
59792
- ) : permission === null && scheduleReviewPrompt === null && !childSurfaceOpen && choicePicker?.kind === "reasoning-effort" && effortSlider ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
59793
- EffortSlider,
59794
- {
59795
- title: choicePicker.title,
59796
- notice: choicePicker.notice,
59797
- options: choicePicker.options,
59798
- selected: selectedChoice,
59799
- layout: effortSlider,
59800
- columns: Math.max(1, (terminal.columns ?? 80) - 2)
59801
- }
59802
- ) : permission === null && scheduleReviewPrompt === null && !childSurfaceOpen && choicePicker ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
59803
- ChoicePicker,
59804
- {
59805
- busy: "busy" in choicePicker && choicePicker.busy === true,
59806
- columns: Math.max(1, (terminal.columns ?? 80) - 2),
59807
- title: choicePicker.title,
59808
- notice: choicePicker.notice,
59809
- ...choicePicker.kind === "workflow-runs" ? {
59810
- subtitle: choicePicker.subtitle,
59811
- hints: workflowRunsHints(workflowPickerCanStop, workflowPickerCanResume)
59812
- } : {},
59813
- ...choicePicker.kind === "account" ? { hints: ACCOUNT_PICKER_HINTS } : {},
59814
- options: filterChoiceOptions(choicePicker.options, choiceQuery),
59815
- query: choicePickerSearchable(choicePicker) ? choiceQuery : void 0,
59816
- selected: selectedChoice,
59817
- windowSize: choicePicker.kind === "command" || choicePicker.kind === "theme" ? choicePicker.windowSize : void 0,
59818
- ...choicePicker.kind === "theme" && terminal.rows >= 26 ? {
59819
- extra: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(ThemeSample, { width: Math.max(10, (terminal.columns ?? 80) - 6) })
59820
- } : {}
59821
- }
59822
- ) : permission === null && scheduleReviewPrompt === null && !childSurfaceOpen && copyPicker ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
59823
- CopyPicker,
59824
- {
59825
- targets: copyPicker.targets,
59826
- selected: selectedCopy,
59827
- ...copyPicker.mode ? { mode: copyPicker.mode } : {}
59828
- }
59829
- ) : null,
59830
- scrollOpen && permission === null && scheduleReviewPrompt === null ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
59831
- TranscriptScrollView,
59832
- {
59833
- messages: finalized,
59834
- pending: messages.find((m) => m.pending) ?? null,
59835
- pendingAt,
59836
- height: Math.max(3, terminal.rows - SCROLL_VIEW_RESERVED_ROWS),
59837
- columns: Math.max(4, terminal.columns - 2),
59838
- onClose: () => setScrollOpen(false)
59839
- }
59840
- ) : null,
59841
- viewingAgent && agentSurface?.kind === "transcript" && permission === null && choicePicker === null ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
59842
- AgentView,
59843
- {
59844
- agent: viewingAgent,
59845
- tailOffset: agentSurface.tailOffset,
59846
- pageRows: viewPageRows,
59847
- terminalColumns: Math.max(1, terminal.columns - 2),
59848
- notice: viewNotice
59849
- }
59850
- ) : null,
59851
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
59852
- ComposerFrame,
59853
- {
59854
- columns: Math.max(2, (terminal.columns ?? 80) - 2),
59855
- working: state === "thinking" || state === "tool" || visibleActiveTools.length > 0,
59856
- ...hypermode ? { mode: HYPERMODE } : {},
59857
- activation: hypermodeActivation,
59858
- animate: externalEditorRequest === null,
59859
- focus: phase === "ready" && state !== "awaiting-permission" && !compacting && externalEditorRequest === null && conversationMutation === null && textPrompt === null && choicePicker === null && copyPicker === null && saveSkillPrompt === null && planPrompt === null && questionDialog === null && scheduleReviewPrompt === null && !scrollOpen && !childSurfaceOpen,
59860
- hidden: permission !== null || saveSkillPrompt !== null || planPrompt !== null || questionDialog !== null || scheduleReviewPrompt !== null || textPrompt !== null || choicePicker !== null || copyPicker !== null || childSurfaceOpen,
59861
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
59862
- Composer,
59806
+ }
59807
+ ) : phase === "trust" ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TrustPrompt, { cwd: ctx.cwd, grants: trustGrants }) : phase === "unhealthy" ? (
59808
+ // The sentence above already says what to do when it is a complete
59809
+ // one; saying "resolve the error above" under it is the same advice
59810
+ // twice.
59811
+ startupExplained ? null : /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(Box_default, { flexDirection: "column", marginTop: 1, children: [
59812
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Text, { color: theme.status.error, bold: true, children: "Startup stopped" }),
59813
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Text, { color: theme.text.secondary, children: "Resolve the error above, then restart Namzu." })
59814
+ ] })
59815
+ ) : phase === "resume" || phase === "unarchive" ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
59816
+ ResumePicker,
59817
+ {
59818
+ conversations: resumeList,
59819
+ selected: selectedResume,
59820
+ mode: phase === "unarchive" ? "restore" : "resume",
59821
+ query: resumeQuery,
59822
+ scope: resumeScope,
59823
+ renaming: resumeRenaming,
59824
+ ...resumeNotice !== void 0 ? { notice: resumeNotice } : {}
59825
+ }
59826
+ ) : phase === "edit" ? rewind ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
59827
+ RewindPicker,
59828
+ {
59829
+ rows: rewind.rows,
59830
+ state: rewind.state,
59831
+ options: optionsFor(rewind.state, {
59832
+ rows: rewind.rows,
59833
+ canSummarize: Boolean(session?.compactRange)
59834
+ }),
59835
+ checkpointing: Boolean(session?.checkpoints),
59836
+ now: rewind.openedAt,
59837
+ working: rewind.state.busy?.startsWith("summarize") ? "Summarizing\u2026" : "Restoring\u2026"
59838
+ }
59839
+ ) : null : phase === "picker" ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
59840
+ Picker,
59841
+ {
59842
+ detected: pickerDetected ?? detected,
59843
+ currentProvider,
59844
+ selectionKind: pickerSelectionKind,
59845
+ currentModel: session?.modelSummary ?? null,
59846
+ ...ctx.routing && session?.hasProvider && !palDefinitionRef.current ? { auto: { active: autoActive }, onAuto: handlePickerAuto } : {},
59847
+ initialView: pickerInitialView,
59848
+ onSubmit: handlePickerSubmit,
59849
+ onCancel: handlePickerCancel,
59850
+ onSetup: () => setProviderSetup(true),
59851
+ onCredential: handleTypedCredential,
59852
+ onLogin: startLoginFromPicker,
59853
+ onLoginComplete: finishLoginFromPicker,
59854
+ keyEntryFor,
59855
+ notice: pickerNotice,
59856
+ cancelExits: !session?.hasProvider
59857
+ }
59858
+ ) : /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
59859
+ pendingInputVisible ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
59860
+ PendingInputPanel,
59861
+ {
59862
+ pendingSteers: pendingInputItems,
59863
+ queued: queuedInputItems,
59864
+ columns: Math.max(2, (terminal.columns ?? 80) - SCREEN_MARGIN),
59865
+ rows: terminal.rows,
59866
+ working: abortRef.current !== null,
59867
+ selectedQueued: queueSelection,
59868
+ held: queuePause
59869
+ }
59870
+ ) : null,
59871
+ agentSurface === null && !transcriptScreen && !scrollOpen && jobSurface === null && scheduleReviewPrompt === null ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
59872
+ LiveActivity,
59873
+ {
59874
+ compact: compactWork,
59875
+ ...compacting || summarising ? { activityLabel: COMPACTING_LABEL } : workingStepLabel ? { activityLabel: workingStepLabel } : {},
59876
+ activeTools: visibleActiveTools,
59877
+ working: state === "thinking" || state === "tool",
59878
+ compacting,
59879
+ animate: stdout.isTTY === true && permission === null && textPrompt === null && saveSkillPrompt === null && planPrompt === null && questionDialog === null && scheduleReviewPrompt === null,
59880
+ thinking,
59881
+ ...spinnerTip ? { tip: spinnerTip } : {},
59882
+ ...nextPlanned && !planInRegion ? { nextTask: nextTaskLine(nextPlanned) } : {},
59883
+ ...planInRegion ? { plan: liveTasks, planOpen: checklistOpen } : {},
59884
+ ...permission !== null ? { waitingFor: "approval" } : {},
59885
+ waitNotice: providerWaitNotice,
59886
+ tokens: turnTokens,
59887
+ waitingForYou: choicePicker !== null || permission !== null || textPrompt !== null || saveSkillPrompt !== null || planPrompt !== null || questionDialog !== null || scheduleReviewPrompt !== null
59888
+ }
59889
+ ) : null,
59890
+ agentSurface === null && !transcriptScreen && !scrollOpen && jobSurface === null && permission === null && scheduleReviewPrompt === null ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
59891
+ BackgroundAgentRows,
59892
+ {
59893
+ groups: backgroundGroups,
59894
+ waitLine: backgroundWaitText,
59895
+ glyph: CLOSING_GLYPH
59896
+ }
59897
+ ) : null,
59898
+ agentSurface === null && !transcriptScreen && !scrollOpen && jobSurface === null && permission === null && scheduleReviewPrompt === null ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TaskList, { tasks: planInRegion ? [] : liveTasks, expanded: checklistOpen }) : null,
59899
+ permission && !transcriptScreen ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
59900
+ PermissionOverlay,
59901
+ {
59902
+ toolCalls: permission.toolCalls,
59903
+ review: permission.review,
59904
+ summary: permission.summary,
59905
+ detailsOpen: permissionDetailsOpen,
59906
+ reviewOffset: permissionReviewOffset,
59907
+ choice: permissionChoice,
59908
+ ...permissionCount ? { count: permissionCount } : {},
59909
+ ...permissionSourceLabel ? { from: permissionSourceLabel } : {},
59910
+ ...permissionReason !== null ? { reason: permissionReason } : {},
59911
+ endsTurn: endsTurnOnNo(permission),
59912
+ columns: terminal.columns,
59913
+ rows: terminal.rows,
59914
+ batchOnly: permission.batchOnly === true,
59915
+ mode: permissionMode,
59916
+ ...session?.allowForSession && session.commandArguments ? {
59917
+ commandArguments: session.commandArguments,
59918
+ rememberWhere: displayPath(ctx.cwd, 28)
59919
+ } : {},
59920
+ siteNotes: permission.siteNotes,
59921
+ withheld: permission.withheld,
59922
+ ...permission.screenConsent === true ? {
59923
+ screenConsent: {
59924
+ provider: session?.providerSummary ?? null
59925
+ }
59926
+ } : {}
59927
+ }
59928
+ ) : null,
59929
+ saveSkillPrompt && permission === null && scheduleReviewPrompt === null && !transcriptScreen ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
59930
+ SaveSkillOverlay,
59931
+ {
59932
+ request: saveSkillPrompt.request,
59933
+ cwd: ctx.cwd,
59934
+ columns: Math.max(1, (terminal.columns ?? 80) - SCREEN_MARGIN),
59935
+ rows: terminal.rows,
59936
+ onAnswer: saveSkillPrompt.resolve
59937
+ },
59938
+ saveSkillPrompt.request.markdown
59939
+ ) : null,
59940
+ planPrompt && permission === null && scheduleReviewPrompt === null && !transcriptScreen ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
59941
+ PlanApprovalOverlay,
59863
59942
  {
59864
- attachmentFloor,
59865
- ...viewingAgent ? {
59866
- placeholder: `Message @${[...viewingAgent.agentId].slice(0, 20).join("")}\u2026`
59867
- } : examplePrompts && history.length === 0 && !messages.some((message) => message.role === "user") ? {
59868
- placeholder: examplePlaceholder(exampleFile, exampleSeedRef.current)
59943
+ request: planPrompt.request,
59944
+ columns: Math.max(1, (terminal.columns ?? 80) - SCREEN_MARGIN),
59945
+ rows: terminal.rows,
59946
+ onAnswer: planPrompt.resolve,
59947
+ onInterrupt: interruptTurn
59948
+ },
59949
+ planPrompt.request.plan
59950
+ ) : null,
59951
+ questionDialog && permission === null && scheduleReviewPrompt === null && !transcriptScreen ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
59952
+ QuestionDialog,
59953
+ {
59954
+ question: questionDialog.question,
59955
+ columns: Math.max(1, (terminal.columns ?? 80) - SCREEN_MARGIN),
59956
+ onAnswer: finishQuestionDialog
59957
+ },
59958
+ questionDialog.token
59959
+ ) : null,
59960
+ scheduleReviewPrompt && permission === null && !transcriptScreen ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
59961
+ ScheduleReviewOverlay,
59962
+ {
59963
+ request: scheduleReviewPrompt.request,
59964
+ columns: Math.max(1, (terminal.columns ?? 80) - SCREEN_MARGIN),
59965
+ rows: Math.max(1, (terminal.rows ?? 24) - 2),
59966
+ onAnswer: scheduleReviewPrompt.resolve
59967
+ },
59968
+ scheduleReviewPrompt.token
59969
+ ) : null,
59970
+ textPrompt ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
59971
+ TextPrompt,
59972
+ {
59973
+ columns: Math.max(1, (terminal.columns ?? 80) - SCREEN_MARGIN),
59974
+ title: textPrompt.title,
59975
+ placeholder: textPrompt.placeholder,
59976
+ initialValue: textPrompt.initialValue,
59977
+ emptyNotice: textPrompt.emptyNotice,
59978
+ mask: textPrompt.mask === true,
59979
+ allowEmpty: textPrompt.allowEmpty === true,
59980
+ hidden: permission !== null || scheduleReviewPrompt !== null || childSurfaceOpen,
59981
+ onSubmit: submitTextPrompt,
59982
+ onCancel: cancelTextPrompt
59983
+ },
59984
+ textPrompt.token
59985
+ ) : permission === null && scheduleReviewPrompt === null && !childSurfaceOpen && choicePicker?.kind === "reasoning-effort" && effortSlider ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
59986
+ EffortSlider,
59987
+ {
59988
+ title: choicePicker.title,
59989
+ notice: choicePicker.notice,
59990
+ options: choicePicker.options,
59991
+ selected: selectedChoice,
59992
+ layout: effortSlider,
59993
+ columns: Math.max(1, (terminal.columns ?? 80) - SCREEN_MARGIN)
59994
+ }
59995
+ ) : permission === null && scheduleReviewPrompt === null && !childSurfaceOpen && choicePicker ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
59996
+ ChoicePicker,
59997
+ {
59998
+ busy: "busy" in choicePicker && choicePicker.busy === true,
59999
+ columns: Math.max(1, (terminal.columns ?? 80) - SCREEN_MARGIN),
60000
+ title: choicePicker.title,
60001
+ notice: choicePicker.notice,
60002
+ ...choicePicker.kind === "workflow-runs" ? {
60003
+ subtitle: choicePicker.subtitle,
60004
+ hints: workflowRunsHints(workflowPickerCanStop, workflowPickerCanResume)
59869
60005
  } : {},
59870
- mayReadImage: imageReadPolicy,
59871
- reasoningEffortLevels: session?.reasoningEffortLevels,
59872
- onCycleMode: cyclePermissionMode,
59873
- disabled: transcriptScreen || fullscreenSearching || scrollOpen || jobSurface !== null || phase !== "ready" || state === "awaiting-permission" || compacting || conversationMutation !== null || externalEditorRequest !== null || railFocus !== null || childSurfaceOpen,
60006
+ ...choicePicker.kind === "account" ? { hints: ACCOUNT_PICKER_HINTS } : {},
60007
+ options: filterChoiceOptions(choicePicker.options, choiceQuery),
60008
+ query: choicePickerSearchable(choicePicker) ? choiceQuery : void 0,
60009
+ selected: selectedChoice,
60010
+ windowSize: choicePicker.kind === "command" || choicePicker.kind === "theme" ? choicePicker.windowSize : void 0,
60011
+ ...choicePicker.kind === "theme" && terminal.rows >= 26 ? {
60012
+ extra: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ThemeSample, { width: Math.max(10, (terminal.columns ?? 80) - 6) })
60013
+ } : {}
60014
+ }
60015
+ ) : permission === null && scheduleReviewPrompt === null && !childSurfaceOpen && copyPicker ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
60016
+ CopyPicker,
60017
+ {
60018
+ targets: copyPicker.targets,
60019
+ selected: selectedCopy,
60020
+ ...copyPicker.mode ? { mode: copyPicker.mode } : {}
60021
+ }
60022
+ ) : null,
60023
+ scrollOpen && permission === null && scheduleReviewPrompt === null ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
60024
+ TranscriptScrollView,
60025
+ {
60026
+ messages: finalized,
60027
+ pending: messages.find((m) => m.pending) ?? null,
60028
+ pendingAt,
60029
+ height: Math.max(3, terminal.rows - SCROLL_VIEW_RESERVED_ROWS),
60030
+ columns: Math.max(4, terminal.columns - SCREEN_MARGIN),
60031
+ onClose: () => setScrollOpen(false)
60032
+ }
60033
+ ) : null,
60034
+ viewingAgent && agentSurface?.kind === "transcript" && permission === null && choicePicker === null ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
60035
+ AgentView,
60036
+ {
60037
+ agent: viewingAgent,
60038
+ tailOffset: agentSurface.tailOffset,
60039
+ pageRows: viewPageRows,
60040
+ terminalColumns: Math.max(1, terminal.columns - SCREEN_MARGIN),
60041
+ notice: viewNotice
60042
+ }
60043
+ ) : null,
60044
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
60045
+ ComposerFrame,
60046
+ {
60047
+ above: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
60048
+ UpdateNoticeRow,
60049
+ {
60050
+ notice: updateNotice,
60051
+ columns: Math.max(2, (terminal.columns ?? 80) - SCREEN_MARGIN),
60052
+ critical: noticeIsCritical
60053
+ }
60054
+ ),
60055
+ columns: Math.max(2, (terminal.columns ?? 80) - SCREEN_MARGIN),
60056
+ working: state === "thinking" || state === "tool" || visibleActiveTools.length > 0,
60057
+ ...hypermode ? { mode: HYPERMODE } : {},
60058
+ activation: hypermodeActivation,
60059
+ animate: externalEditorRequest === null,
60060
+ focus: phase === "ready" && state !== "awaiting-permission" && !compacting && externalEditorRequest === null && conversationMutation === null && textPrompt === null && choicePicker === null && copyPicker === null && saveSkillPrompt === null && planPrompt === null && questionDialog === null && scheduleReviewPrompt === null && !scrollOpen && !childSurfaceOpen,
59874
60061
  hidden: permission !== null || saveSkillPrompt !== null || planPrompt !== null || questionDialog !== null || scheduleReviewPrompt !== null || textPrompt !== null || choicePicker !== null || copyPicker !== null || childSurfaceOpen,
59875
- escapeInterrupts: !compacting && (state === "thinking" || state === "tool" || pendingModelSwitchRef.current !== null) || handoffPark !== null && state === "idle",
59876
- onSubmit: handleSubmit,
59877
- onNotice: (text) => pushMessage("system", text),
59878
- onFooterNotice: notices.add,
59879
- onFooterNoticeRemove: notices.remove,
59880
- onClearedDraft: (text) => setHistory((prev) => [...prev, text]),
59881
- onStepReasoningEffort: stepReasoningEffort,
59882
- onExternalEdit: requestExternalEditor,
59883
- onToggleThinking: toggleThinking,
59884
- onEditPrevious: openPromptEditor,
59885
- draftToRestore: composerDraft,
59886
- onDraftRestored: (token) => setComposerDraft((draft) => draft?.token === token ? null : draft),
59887
- onDraftPresenceChange: setComposerHasDraft,
59888
- onOpenAgentPanel: focusAgentRail,
59889
- onOpenAgents: () => void openAgentCockpit(),
59890
- onOpenWorkspaces: onOpenWorkspaces ? () => void onOpenWorkspaces().then((opened) => {
59891
- if (!opened) void openAgentCockpit();
59892
- }) : void 0,
59893
- onScrollTranscript: () => fullscreenControl.current ? fullscreenControl.current.scroll("page-up") : setScrollOpen(true),
59894
- onRecallQueued: recallQueuedPrompt,
59895
- queuedHintCount,
59896
- queuedEdit: {
59897
- available: queued.some(isRecallableHumanPrompt),
59898
- selected: queueSelection !== null,
59899
- onMove: moveQueueSelection,
59900
- onLoad: loadSelectedQueued,
59901
- onLeave: /* @__PURE__ */ __name(() => setQueueSelection(null), "onLeave")
59902
- },
59903
- onSendNow: sendPendingNow,
59904
- onBackgroundCommand: backgroundRunningCommand,
59905
- onStopAllAgents: requestStopAllAgents,
59906
- railFocused: railFocus !== null,
59907
- userCommands,
59908
- builtins: hostCommands.map((command) => ({
59909
- ...command,
59910
- description: command.unavailable?.(slashCtx) ?? command.description
59911
- })),
59912
- mentionCandidates,
59913
- mentionExtras: mentionSources.extras,
59914
- history,
59915
- ...composerTriggers ? { triggers: composerTriggers } : {},
59916
- turnActive: !compacting && (state === "thinking" || state === "tool")
60062
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
60063
+ Composer,
60064
+ {
60065
+ attachmentFloor,
60066
+ ...viewingAgent ? {
60067
+ placeholder: `Message @${[...viewingAgent.agentId].slice(0, 20).join("")}\u2026`
60068
+ } : examplePrompts && history.length === 0 && !messages.some((message) => message.role === "user") ? {
60069
+ placeholder: examplePlaceholder(exampleFile, exampleSeedRef.current)
60070
+ } : {},
60071
+ mayReadImage: imageReadPolicy,
60072
+ reasoningEffortLevels: session?.reasoningEffortLevels,
60073
+ onCycleMode: cyclePermissionMode,
60074
+ disabled: transcriptScreen || fullscreenSearching || scrollOpen || jobSurface !== null || phase !== "ready" || state === "awaiting-permission" || compacting || conversationMutation !== null || externalEditorRequest !== null || railFocus !== null || childSurfaceOpen,
60075
+ hidden: permission !== null || saveSkillPrompt !== null || planPrompt !== null || questionDialog !== null || scheduleReviewPrompt !== null || textPrompt !== null || choicePicker !== null || copyPicker !== null || childSurfaceOpen,
60076
+ escapeInterrupts: !compacting && (state === "thinking" || state === "tool" || pendingModelSwitchRef.current !== null) || handoffPark !== null && state === "idle",
60077
+ onSubmit: handleSubmit,
60078
+ onNotice: (text) => pushMessage("system", text),
60079
+ onFooterNotice: notices.add,
60080
+ onFooterNoticeRemove: notices.remove,
60081
+ onClearedDraft: (text) => setHistory((prev) => [...prev, text]),
60082
+ onStepReasoningEffort: stepReasoningEffort,
60083
+ onExternalEdit: requestExternalEditor,
60084
+ onToggleThinking: toggleThinking,
60085
+ onEditPrevious: openPromptEditor,
60086
+ draftToRestore: composerDraft,
60087
+ onDraftRestored: (token) => setComposerDraft((draft) => draft?.token === token ? null : draft),
60088
+ onDraftPresenceChange: setComposerHasDraft,
60089
+ onOpenAgentPanel: focusAgentRail,
60090
+ onOpenAgents: () => void openAgentCockpit(),
60091
+ onOpenWorkspaces: onOpenWorkspaces ? () => void onOpenWorkspaces().then((opened) => {
60092
+ if (!opened) void openAgentCockpit();
60093
+ }) : void 0,
60094
+ onScrollTranscript: () => fullscreenControl.current ? fullscreenControl.current.scroll("page-up") : setScrollOpen(true),
60095
+ onRecallQueued: recallQueuedPrompt,
60096
+ queuedHintCount,
60097
+ queuedEdit: {
60098
+ available: queued.some(isRecallableHumanPrompt),
60099
+ selected: queueSelection !== null,
60100
+ onMove: moveQueueSelection,
60101
+ onLoad: loadSelectedQueued,
60102
+ onLeave: /* @__PURE__ */ __name(() => setQueueSelection(null), "onLeave")
60103
+ },
60104
+ onSendNow: sendPendingNow,
60105
+ onBackgroundCommand: backgroundRunningCommand,
60106
+ onStopAllAgents: requestStopAllAgents,
60107
+ railFocused: railFocus !== null,
60108
+ userCommands,
60109
+ builtins: hostCommands.map((command) => ({
60110
+ ...command,
60111
+ description: command.unavailable?.(slashCtx) ?? command.description
60112
+ })),
60113
+ mentionCandidates,
60114
+ mentionExtras: mentionSources.extras,
60115
+ history,
60116
+ ...composerTriggers ? { triggers: composerTriggers } : {},
60117
+ turnActive: !compacting && (state === "thinking" || state === "tool")
60118
+ }
60119
+ )
59917
60120
  }
59918
60121
  )
59919
- }
59920
- )
59921
- ] }),
59922
- phase === "trust" || transcriptScreen || !showComposerSurface || statusLineText === void 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(StatusLineRows, { text: statusLineText, padding: ctx.statusLine?.padding ?? 0 }),
59923
- phase === "trust" || transcriptScreen || agentSurface?.kind === "cockpit" || dialogShowing && !exitHint && !noticeIsImmediate ? null : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
59924
- StatusBar,
59925
- {
59926
- provider: session?.providerSummary ?? null,
59927
- model: withAccountLabel(
59928
- autoActive && ctx.routing && !palDefinitionRef.current ? autoModelLabel(session?.autoRoute) : session?.modelSummary ?? null,
59929
- session?.providerSummary ?? null,
59930
- session?.account?.label
60122
+ ] }),
60123
+ phase === "trust" || transcriptScreen || !showComposerSurface || statusLineText === void 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(StatusLineRows, { text: statusLineText, padding: ctx.statusLine?.padding ?? 0 }),
60124
+ phase === "trust" || transcriptScreen || agentSurface?.kind === "cockpit" || dialogShowing && !exitHint && !noticeIsImmediate ? null : /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
60125
+ StatusBar,
60126
+ {
60127
+ provider: session?.providerSummary ?? null,
60128
+ model: withAccountLabel(
60129
+ autoActive && ctx.routing && !palDefinitionRef.current ? autoModelLabel(session?.autoRoute) : session?.modelSummary ?? null,
60130
+ session?.providerSummary ?? null,
60131
+ session?.account?.label
60132
+ ),
60133
+ effort: reasoningEffort,
60134
+ fast: fastMode,
60135
+ goal: statusGoal,
60136
+ state,
60137
+ hint: statusHint,
60138
+ hintDim: exitHint !== null,
60139
+ notice: currentNotice && (noticeIsImmediate || !boxOwnsKeys) ? {
60140
+ text: currentNotice.text,
60141
+ ...currentNotice.tone ? { tone: currentNotice.tone } : {}
60142
+ } : null,
60143
+ dialogOpen: boxOwnsKeys,
60144
+ permissionMode: displayedPermissionMode,
60145
+ canCycleMode: true,
60146
+ sandboxShell,
60147
+ composerMounted: showComposerSurface,
60148
+ restingHint: ctx.statusLine === void 0,
60149
+ shellCount: showComposerSurface && !childSurfaceOpen ? runningShellCount : 0,
60150
+ monitorCount: showComposerSurface && !childSurfaceOpen ? runningMonitorCount : 0,
60151
+ pr: prStatus,
60152
+ hyperlinks,
60153
+ agentCount: footerKeysLive && !onOpenWorkspaces ? runningAgentCount : 0,
60154
+ workflowCount: footerKeysLive && !onOpenWorkspaces ? runningWorkflowCount : 0,
60155
+ canManage: footerKeysLive && railFocus === null && (runningShellCount > 0 || railHasRows),
60156
+ shellsSelected: railFocus === SHELLS_FOCUS,
60157
+ ...tasks.length > 0 && showComposerSurface && !childSurfaceOpen ? { tasksOpen: checklistOpen } : {},
60158
+ ...railHintText !== void 0 ? { railHint: railHintText } : {}
60159
+ }
59931
60160
  ),
59932
- effort: reasoningEffort,
59933
- fast: fastMode,
59934
- goal: statusGoal,
59935
- state,
59936
- hint: statusHint,
59937
- hintDim: exitHint !== null,
59938
- notice: currentNotice && (noticeIsImmediate || !boxOwnsKeys) ? {
59939
- text: currentNotice.text,
59940
- ...currentNotice.tone ? { tone: currentNotice.tone } : {}
59941
- } : null,
59942
- ambient: updateNotice,
59943
- dialogOpen: boxOwnsKeys,
59944
- permissionMode: displayedPermissionMode,
59945
- canCycleMode: true,
59946
- sandboxShell,
59947
- composerMounted: showComposerSurface,
59948
- restingHint: ctx.statusLine === void 0,
59949
- shellCount: showComposerSurface && !childSurfaceOpen ? runningShellCount : 0,
59950
- monitorCount: showComposerSurface && !childSurfaceOpen ? runningMonitorCount : 0,
59951
- pr: prStatus,
59952
- hyperlinks,
59953
- agentCount: footerKeysLive && !onOpenWorkspaces ? runningAgentCount : 0,
59954
- workflowCount: footerKeysLive && !onOpenWorkspaces ? runningWorkflowCount : 0,
59955
- canManage: footerKeysLive && railFocus === null && (runningShellCount > 0 || railHasRows),
59956
- shellsSelected: railFocus === SHELLS_FOCUS,
59957
- ...tasks.length > 0 && showComposerSurface && !childSurfaceOpen ? { tasksOpen: checklistOpen } : {},
59958
- ...railHintText !== void 0 ? { railHint: railHintText } : {}
59959
- }
59960
- ),
59961
- showComposerSurface && permission === null && agentSurface === null && !transcriptScreen && !scrollOpen && jobSurface === null && scheduleReviewPrompt === null ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(AgentNarrationBand, { lines: narration }) : null,
59962
- showComposerSurface && (agentSurface === null || viewingAgent !== void 0) && !transcriptScreen && !scrollOpen && jobSurface === null && scheduleReviewPrompt === null && (liveSubagents.length > 0 || liveWorkflows.length > 0 || viewingAgent !== void 0) ? (
59963
- // The active agents remain in memory while the schedule review
59964
- // owns the available rows; the panel returns after the decision.
59965
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
59966
- AgentTaskPanel,
59967
- {
59968
- agents: liveSubagents,
59969
- workflows: liveWorkflows,
59970
- terminalRows: terminal.rows,
59971
- terminalColumns: terminal.columns,
59972
- compact: permission !== null,
59973
- viewingId: viewingAgent?.viewId ?? null,
59974
- ...railFocus !== null && railFocus !== SHELLS_FOCUS ? {
59975
- selectedIndex: railFocus === "main" ? 0 : railFocus.startsWith("workflow:") ? liveSubagents.length + (railShowsMain(liveSubagents.length, viewingAgent?.viewId) ? 1 : 0) + Math.max(
59976
- 0,
59977
- liveWorkflows.findIndex((flow) => flow.focusId === railFocus)
59978
- ) : liveSubagents.findIndex((agent) => agent.viewId === railFocus) + (railShowsMain(liveSubagents.length, viewingAgent?.viewId) ? 1 : 0)
59979
- } : {}
59980
- }
59981
- )
59982
- ) : showComposerSurface && permission === null && scheduleReviewPrompt === null && agentSurface?.kind === "cockpit" ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
59983
- AgentCockpit,
59984
- {
59985
- agents: subagents,
59986
- runs: workflowRuns,
59987
- selectedPhaseId: agentSurface.selectedPhaseId,
59988
- selectedId: agentSurface.selectedId,
59989
- focus: agentSurface.focus,
59990
- terminalRows: terminal.rows,
59991
- terminalColumns: terminal.columns
59992
- }
59993
- ) : showComposerSurface && permission === null && scheduleReviewPrompt === null && agentSurface?.kind === "transcript" && selectedSubagent && viewingAgent === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
59994
- AgentTranscript,
59995
- {
59996
- agent: selectedSubagent,
59997
- tailOffset: agentSurface.tailOffset,
59998
- terminalRows: terminal.rows,
59999
- terminalColumns: terminal.columns,
60000
- escapeTo: agentSurface.fromRail ? "back" : "agents"
60001
- }
60002
- ) : null,
60003
- transcriptScreen ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
60004
- TranscriptScreen,
60005
- {
60006
- messages: finalized,
60007
- pending: messages.find((m) => m.pending) ?? null,
60008
- pendingAt,
60009
- rows: terminal.rows,
60010
- columns: terminal.columns,
60011
- hyperlinks,
60012
- dialogWaiting: permission !== null || saveSkillPrompt !== null || planPrompt !== null || questionDialog !== null || scheduleReviewPrompt !== null,
60013
- onClose: () => setTranscriptScreen(false)
60014
- }
60015
- ) : null,
60016
- jobSurface && permission === null && scheduleReviewPrompt === null ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
60017
- BackgroundJobsPanel,
60018
- {
60019
- entries: backgroundRows(backgroundJobs, subagents),
60020
- selectedKey: jobSurface.selectedKey,
60021
- detailKey: jobSurface.detailKey,
60022
- tailOffset: jobSurface.tailOffset,
60023
- readJob: (id) => session?.readJob?.(id),
60024
- rows: terminal.rows,
60025
- columns: Math.max(1, terminal.columns - 2),
60026
- now: jobClock,
60027
- busyJobId: jobSurface.busyJobId,
60028
- notice: jobSurface.notice
60029
- }
60030
- ) : null
60031
- ] })
60161
+ showComposerSurface && permission === null && agentSurface === null && !transcriptScreen && !scrollOpen && jobSurface === null && scheduleReviewPrompt === null ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(AgentNarrationBand, { lines: narration }) : null,
60162
+ showComposerSurface && (agentSurface === null || viewingAgent !== void 0) && !transcriptScreen && !scrollOpen && jobSurface === null && scheduleReviewPrompt === null && (liveSubagents.length > 0 || liveWorkflows.length > 0 || viewingAgent !== void 0) ? (
60163
+ // The active agents remain in memory while the schedule review
60164
+ // owns the available rows; the panel returns after the decision.
60165
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
60166
+ AgentTaskPanel,
60167
+ {
60168
+ agents: liveSubagents,
60169
+ workflows: liveWorkflows,
60170
+ terminalRows: terminal.rows,
60171
+ terminalColumns: terminal.columns,
60172
+ compact: permission !== null,
60173
+ viewingId: viewingAgent?.viewId ?? null,
60174
+ ...railFocus !== null && railFocus !== SHELLS_FOCUS ? {
60175
+ selectedIndex: railFocus === "main" ? 0 : railFocus.startsWith("workflow:") ? liveSubagents.length + (railShowsMain(liveSubagents.length, viewingAgent?.viewId) ? 1 : 0) + Math.max(
60176
+ 0,
60177
+ liveWorkflows.findIndex((flow) => flow.focusId === railFocus)
60178
+ ) : liveSubagents.findIndex((agent) => agent.viewId === railFocus) + (railShowsMain(liveSubagents.length, viewingAgent?.viewId) ? 1 : 0)
60179
+ } : {}
60180
+ }
60181
+ )
60182
+ ) : showComposerSurface && permission === null && scheduleReviewPrompt === null && agentSurface?.kind === "cockpit" ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
60183
+ AgentCockpit,
60184
+ {
60185
+ agents: subagents,
60186
+ runs: workflowRuns,
60187
+ selectedPhaseId: agentSurface.selectedPhaseId,
60188
+ selectedId: agentSurface.selectedId,
60189
+ focus: agentSurface.focus,
60190
+ terminalRows: terminal.rows,
60191
+ terminalColumns: terminal.columns
60192
+ }
60193
+ ) : showComposerSurface && permission === null && scheduleReviewPrompt === null && agentSurface?.kind === "transcript" && selectedSubagent && viewingAgent === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
60194
+ AgentTranscript,
60195
+ {
60196
+ agent: selectedSubagent,
60197
+ tailOffset: agentSurface.tailOffset,
60198
+ terminalRows: terminal.rows,
60199
+ terminalColumns: terminal.columns,
60200
+ escapeTo: agentSurface.fromRail ? "back" : "agents"
60201
+ }
60202
+ ) : null,
60203
+ transcriptScreen ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
60204
+ TranscriptScreen,
60205
+ {
60206
+ messages: finalized,
60207
+ pending: messages.find((m) => m.pending) ?? null,
60208
+ pendingAt,
60209
+ rows: terminal.rows,
60210
+ columns: terminal.columns,
60211
+ hyperlinks,
60212
+ dialogWaiting: permission !== null || saveSkillPrompt !== null || planPrompt !== null || questionDialog !== null || scheduleReviewPrompt !== null,
60213
+ onClose: () => setTranscriptScreen(false)
60214
+ }
60215
+ ) : null,
60216
+ jobSurface && permission === null && scheduleReviewPrompt === null ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
60217
+ BackgroundJobsPanel,
60218
+ {
60219
+ entries: backgroundRows(backgroundJobs, subagents),
60220
+ selectedKey: jobSurface.selectedKey,
60221
+ detailKey: jobSurface.detailKey,
60222
+ tailOffset: jobSurface.tailOffset,
60223
+ readJob: (id) => session?.readJob?.(id),
60224
+ rows: terminal.rows,
60225
+ columns: Math.max(1, terminal.columns - SCREEN_MARGIN),
60226
+ now: jobClock,
60227
+ busyJobId: jobSurface.busyJobId,
60228
+ notice: jobSurface.notice
60229
+ }
60230
+ ) : null
60231
+ ]
60232
+ }
60233
+ )
60032
60234
  }
60033
60235
  )
60034
60236
  );
@@ -60049,8 +60251,9 @@ function describeJobExit(job) {
60049
60251
  return `background job ${job.jobId} (${job.command}) ${outcome}`;
60050
60252
  }
60051
60253
  __name(describeJobExit, "describeJobExit");
60254
+ var SCREEN_MARGIN = 1;
60052
60255
  function TranscriptFrame({ children }) {
60053
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Box_default, { flexDirection: "column", children });
60256
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Box_default, { flexDirection: "column", children });
60054
60257
  }
60055
60258
  __name(TranscriptFrame, "TranscriptFrame");
60056
60259
  function hintForPhase(phase, state, hasDraft = false) {
@@ -60457,6 +60660,7 @@ export {
60457
60660
  stripFenceIndent,
60458
60661
  glyphForRole,
60459
60662
  startOnFreshLine,
60663
+ startOnCleanScreen,
60460
60664
  createLivePaint,
60461
60665
  terminalFocus,
60462
60666
  trailFromRecords,
@@ -60509,4 +60713,4 @@ react/cjs/react-jsx-runtime.production.js:
60509
60713
  * LICENSE file in the root directory of this source tree.
60510
60714
  *)
60511
60715
  */
60512
- //# sourceMappingURL=chunk-YVLXLUGP.js.map
60716
+ //# sourceMappingURL=chunk-YJ25LOMP.js.map