@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
@@ -3,13 +3,13 @@ const require = __namzuCreateRequire(import.meta.url);
3
3
  import {
4
4
  createCliPluginRuntime,
5
5
  openManagedWorktrees
6
- } from "./chunk-BBOGGNTL.js";
6
+ } from "./chunk-Z4TNPAB4.js";
7
7
  import {
8
8
  readPluginFileSources
9
- } from "./chunk-TFXV3553.js";
9
+ } from "./chunk-V73ZJCIQ.js";
10
10
  import {
11
11
  createSessionSkillCatalog
12
- } from "./chunk-H6UQL66Z.js";
12
+ } from "./chunk-LJQAGSYZ.js";
13
13
  import {
14
14
  KEY_MISMATCH_MESSAGE,
15
15
  MAX_SCRIPT_BYTES,
@@ -33,35 +33,41 @@ import {
33
33
  viewFromJournal,
34
34
  workflowJournalKey,
35
35
  writeEditableCopy
36
- } from "./chunk-5LSXNZBY.js";
36
+ } from "./chunk-NA6FHE5K.js";
37
37
  import {
38
38
  runGeneratorCycle
39
- } from "./chunk-526VZQN4.js";
39
+ } from "./chunk-NDGMUBFS.js";
40
40
  import {
41
41
  createSessionLearningFeed,
42
42
  openLearningTarget,
43
43
  readProjectGuidance,
44
44
  withSessionLearningFeed
45
- } from "./chunk-ZGXGRKTT.js";
45
+ } from "./chunk-4E6HWHOX.js";
46
46
  import {
47
47
  connectMcpServers,
48
48
  startMcpServers
49
- } from "./chunk-3WYIYJID.js";
49
+ } from "./chunk-YOBDE45E.js";
50
50
  import {
51
51
  openInBrowser
52
- } from "./chunk-NMYUBZZU.js";
52
+ } from "./chunk-LYMSGP53.js";
53
53
  import {
54
54
  createBrowserControl
55
55
  } from "./chunk-WHODOMXA.js";
56
+ import {
57
+ LogFolder,
58
+ ModelTable,
59
+ READ_CHUNK_BYTES,
60
+ conversationTotals
61
+ } from "./chunk-UE2MJ5YP.js";
56
62
  import {
57
63
  accountProductName
58
64
  } from "./chunk-YOWYTBJS.js";
59
65
  import {
60
66
  migrateAccountKeys
61
- } from "./chunk-GXFCNVRN.js";
67
+ } from "./chunk-6PIZ3336.js";
62
68
  import {
63
69
  openCliAccounts
64
- } from "./chunk-G6FYM5SR.js";
70
+ } from "./chunk-PGYSDVT7.js";
65
71
  import {
66
72
  CredentialRefreshRejectedError,
67
73
  CredentialWithdrawnError as CredentialWithdrawnError2,
@@ -69,17 +75,17 @@ import {
69
75
  ensureFreshStoredCodexCredential,
70
76
  readSubscriptionCredential,
71
77
  sameOAuthCredential
72
- } from "./chunk-XNQMO4UQ.js";
78
+ } from "./chunk-A4RKSHUI.js";
73
79
  import {
74
80
  conversationLogPath,
75
81
  ensureSessionStarted,
76
82
  openConversationLog,
77
83
  readConversationFacts,
78
84
  recordAccountBound
79
- } from "./chunk-AV7SMPXT.js";
85
+ } from "./chunk-MYQ2MZKF.js";
80
86
  import {
81
87
  readIdentity
82
- } from "./chunk-M5NXCEVY.js";
88
+ } from "./chunk-XTYVS4SM.js";
83
89
  import {
84
90
  INSTRUCTIONS_FILENAME,
85
91
  MAX_CHARS_PER_FILE,
@@ -90,12 +96,12 @@ import {
90
96
  } from "./chunk-JQIBPPOL.js";
91
97
  import {
92
98
  isDefaultAccountId
93
- } from "./chunk-YXX7ARE5.js";
99
+ } from "./chunk-KP4H7FJ7.js";
94
100
  import {
95
101
  createLazyCodeAnalysis,
96
102
  promptCacheTtl,
97
103
  setPromptCacheTtl
98
- } from "./chunk-JIWW55EF.js";
104
+ } from "./chunk-LYTMEPN4.js";
99
105
  import {
100
106
  DEFAULT_MAX_HOOK_REFUSALS,
101
107
  SAVE_SKILL_TOOL_NAME,
@@ -105,7 +111,7 @@ import {
105
111
  turnConfigFields,
106
112
  withSandboxShell,
107
113
  workingDirectoryProblem
108
- } from "./chunk-K7MLADWM.js";
114
+ } from "./chunk-OH5T7ODG.js";
109
115
  import {
110
116
  CHECK_HINT
111
117
  } from "./chunk-BBTPD3DU.js";
@@ -114,36 +120,36 @@ import {
114
120
  logIgnoreOutcome,
115
121
  probeCapabilities,
116
122
  writeLocalAllows
117
- } from "./chunk-EIK35VTY.js";
123
+ } from "./chunk-GIKCLC27.js";
118
124
  import {
119
125
  conversationInUseSentence,
120
126
  minutesUntilFree
121
- } from "./chunk-UHFJTEZV.js";
127
+ } from "./chunk-XZXE7L4B.js";
122
128
  import {
123
129
  debugRequested
124
130
  } from "./chunk-GNBMKISG.js";
125
131
  import {
126
132
  isPermissionMode,
127
133
  permissionModeLabel
128
- } from "./chunk-L4XN5ILM.js";
129
- import {
130
- diffColors,
131
- theme
132
- } from "./chunk-WD2F6EO3.js";
134
+ } from "./chunk-WVQRVEZ7.js";
133
135
  import {
134
136
  discoverAgentDefinitions
135
- } from "./chunk-IFUOFLH7.js";
137
+ } from "./chunk-PJPPWJIB.js";
136
138
  import {
137
139
  createAgentHooksHost
138
- } from "./chunk-YZAM5OII.js";
140
+ } from "./chunk-DLHPY4VQ.js";
139
141
  import {
140
142
  readSkillHooks,
141
143
  withoutConversationEvents,
142
144
  withoutSessionStart
143
- } from "./chunk-XH3JG354.js";
145
+ } from "./chunk-BZMMDJFZ.js";
146
+ import {
147
+ diffColors,
148
+ theme
149
+ } from "./chunk-WD2F6EO3.js";
144
150
  import {
145
151
  parseSkillMarkdown
146
- } from "./chunk-XNBNN3OW.js";
152
+ } from "./chunk-VUNKDZ34.js";
147
153
  import {
148
154
  chainCapabilityDisagreements,
149
155
  chainPositionName,
@@ -155,7 +161,7 @@ import {
155
161
  readPreferences,
156
162
  resolveChainCapabilities,
157
163
  unresolvedMembers
158
- } from "./chunk-EMLOKSP6.js";
164
+ } from "./chunk-WUCZIFEU.js";
159
165
  import {
160
166
  canSelectModel,
161
167
  createGeminiAccessTokenResolver,
@@ -163,7 +169,7 @@ import {
163
169
  findDetected,
164
170
  hasApiCredential,
165
171
  requiresCredentialForModel
166
- } from "./chunk-M56YCKGZ.js";
172
+ } from "./chunk-V7U4OXBC.js";
167
173
  import {
168
174
  activeZenCatalogue,
169
175
  isOfferableModel
@@ -178,16 +184,16 @@ import {
178
184
  takeConfigWarnings,
179
185
  unmatchedPassthroughTools,
180
186
  workflowTokenCeiling
181
- } from "./chunk-SVEAODES.js";
187
+ } from "./chunk-YZIUYGJT.js";
182
188
  import {
183
189
  resolveGeneratorSettings
184
190
  } from "./chunk-LCGXWCVU.js";
185
191
  import {
186
192
  compilePermissions
187
- } from "./chunk-Y6WCUDCQ.js";
193
+ } from "./chunk-MYHK6KOU.js";
188
194
  import {
189
195
  cliLogger
190
- } from "./chunk-QOGLGPLA.js";
196
+ } from "./chunk-JG462CCT.js";
191
197
  import {
192
198
  readModelLaunchEnvironment
193
199
  } from "./chunk-LVVD32KJ.js";
@@ -211,23 +217,23 @@ import {
211
217
  import {
212
218
  isAnthropicOAuthToken,
213
219
  readCodexCredentialFile
214
- } from "./chunk-DADJ4GQ2.js";
220
+ } from "./chunk-NJ4PLSBZ.js";
215
221
  import {
216
222
  composeEnvironmentPrompt,
217
223
  detectWsl,
218
224
  environmentFactLines,
219
225
  permissionSentence,
220
226
  readEnvironmentFacts
221
- } from "./chunk-LFJYO4YC.js";
227
+ } from "./chunk-5KHKXEP5.js";
222
228
  import {
223
229
  ensurePrivateStateDirectory
224
- } from "./chunk-QIBMSMZA.js";
230
+ } from "./chunk-UAD3AUKO.js";
225
231
  import {
226
232
  isTrusted
227
- } from "./chunk-BT76TYMR.js";
233
+ } from "./chunk-FLRYCMRH.js";
228
234
  import {
229
235
  namzuHomePath
230
- } from "./chunk-RYVWRI2O.js";
236
+ } from "./chunk-G7PWYTB4.js";
231
237
  import {
232
238
  AgentManager,
233
239
  AgentRegistry,
@@ -310,6 +316,7 @@ import {
310
316
  buildSessionGoalTools,
311
317
  builtinCommandArguments,
312
318
  capMonitorNotifications,
319
+ chatStreamForSideRequest,
313
320
  classifyEvidenceSource,
314
321
  collectChatCompletion,
315
322
  commandArgumentOf,
@@ -417,7 +424,7 @@ import {
417
424
  withProviderFallback,
418
425
  worktreeHookHost,
419
426
  wrapUntrusted
420
- } from "./chunk-BY57QRDB.js";
427
+ } from "./chunk-BULDCXFX.js";
421
428
  import {
422
429
  __name,
423
430
  __toESM
@@ -3578,6 +3585,7 @@ var AGENT_LAUNCH_TOOL = "Agent";
3578
3585
  var bash = BashTool.name;
3579
3586
  var agent = AGENT_LAUNCH_TOOL;
3580
3587
  var NAMZU_IDENTITY = [
3588
+ "Reply in the language of the person's latest message, and give amounts in money when money is asked, not in tokens.",
3581
3589
  "You are Namzu, the assistant in the Namzu CLI. Namzu is an AI kernel exposed through a TypeScript SDK; this terminal application is one interface to it.",
3582
3590
  "You are built on the @namzu/sdk and act through its tools; use `" + bash + "` for what the dedicated file tools do not cover.",
3583
3591
  "Your name is namzu. When asked who or what you are, identify yourself as namzu.",
@@ -3586,11 +3594,11 @@ var NAMZU_IDENTITY = [
3586
3594
  "the model, as the assistant product that model ships under, or as any other agent.",
3587
3595
  "",
3588
3596
  "Ground action claims in successful tool results from this conversation, and keep completed earlier work apart from actions performed in the current turn, because the user acts on what you report:",
3589
- "- Describe an action as done only after its tool call has returned, and take file paths, command output, links and findings from tool results only. Announce an action in the same response as the tool call that performs it.",
3597
+ "- Describe an action as done only after its tool call has returned, and take file paths, command output, links and findings from tool results only.",
3590
3598
  `- Independent tool calls may share one response, but \`${bash}\` calls run one at a time, in order, because they may change the same workspace. Say two \`${bash}\` calls ran in parallel only when one command itself produced timestamped proof of overlap.`,
3591
- "- If a capability or tool is unavailable, explain the limitation and continue independent work that remains possible. Use an available alternative only when it actually supports the task, and report what could not be done in place of a fabricated result or a bypassed refusal.",
3599
+ "- If a capability or tool is unavailable, explain the limitation and continue independent work that remains possible. Use an alternative only when it supports the task, and report what could not be done in place of a fabricated result or a bypassed refusal.",
3592
3600
  `- When you delegate with the \`${agent}\` tool, report what the sub-agent returned in its tool result, and verify with a tool before claiming paths for files it says it wrote.`,
3593
- `- A reply from a tool that delegates to another agent (a connector that runs another agent, an A2A \`tasks/send\`, a remote peer) is that agent's claim, not a verified fact, because another model can hallucinate. If it says it ran a command, wrote a file, or "here is the output", treat that as narrative and confirm it yourself with a deterministic tool (a real shell through \`${bash}\`, a file read) before reporting it as done. Distinguish such conversational agent calls from deterministic tools, and present another agent's prose as that agent's, not as your own verified result.`
3601
+ `- A reply from a tool that delegates to another agent (a connector that runs another agent, an A2A \`tasks/send\`, a remote peer) is that agent's claim, not a verified fact, because another model can hallucinate. If it says it ran a command or wrote a file, confirm it yourself with a deterministic tool (\`${bash}\`, a file read) before reporting it as done, and present its prose as that agent's.`
3594
3602
  ].join("\n");
3595
3603
  var FOREGROUND_BASH_DESCRIPTION = "Executes one shell command in the foreground and returns stdout/stderr. Calls run one at a time, in order, because shell commands may change the same workspace; independent calls may still share one response.";
3596
3604
 
@@ -4975,29 +4983,23 @@ __name(buildConversationReadTool, "buildConversationReadTool");
4975
4983
 
4976
4984
  // src/integrations/workflows/doctrine.ts
4977
4985
  var WORKFLOW_DOCTRINE = [
4978
- "The `workflow` tool starts many agents on one decision, and its description lists the opt-ins that allow a call. Without one, use `Agent` for a single subagent or a small fan-out of a few agents, even when the task would clearly benefit from parallelism.",
4979
- "When hypermode is on (a note from Namzu confirms it), that is a standing opt-in for every substantive task, and you work alone only on conversational or trivial turns.",
4980
- "Use `workflow` for work with several phases or many agents: write the script once, call `workflow`, and the runtime schedules the agents and groups them by phase. A workflow runs in the background and the operator approves the script before it starts. After you start one, tell the operator in one sentence that it is running; its result reaches you in a single message when it ends, and you then report the outcome.",
4981
- "When the operator asks how a workflow is going, read its state with one `agent_task_list` call (set `run_id`) or the running-work note, not the launch message, which is only a receipt. Report its phase, how many agents are running, queued and done, and say it is still running until its message has arrived."
4986
+ "The `workflow` tool starts many agents on one decision, and its description lists the opt-ins that allow a call. Without one, use `Agent` for one subagent or a small fan-out. When hypermode is on (a note from Namzu confirms it), that is a standing opt-in for every substantive task, and you work alone only on a conversational or trivial turn.",
4987
+ "A workflow runs in the background once the operator approves its script; say in one sentence that it is running. When the operator asks how a workflow is going, read its state with one `agent_task_list` call (set `run_id`) or the running-work note, not the launch message, which is only a receipt, and say it is still running until its message has arrived."
4982
4988
  ].join("\n");
4983
4989
 
4984
4990
  // src/context/doctrine.ts
4985
4991
  var NO_ONE_TO_ASK = [
4986
4992
  [
4987
- "Reserve blocking questions for cases where proceeding under any assumption would be unsafe or would make the work useless if wrong.",
4988
- "Where proceeding under any assumption would be unsafe or would make the work useless if wrong, leave that step undone and name it in your summary."
4989
- ],
4990
- [
4991
- "Ask for clarification only when the intended change is genuinely unspecified.",
4992
- "When the intended change is genuinely unspecified, take the most conservative reading and state it."
4993
+ "Ask only when you cannot name the most likely reading of the request, or when proceeding under any assumption would be unsafe or would make the work useless if wrong. Ask once, with your best guess, because ending the turn stops all work.",
4994
+ "Where you cannot name the most likely reading, or where proceeding under any assumption would be unsafe or would make the work useless if wrong, take the most conservative reading or leave that step undone, and name it in your summary."
4993
4995
  ],
4994
4996
  [
4995
4997
  "stop and ask rather than stashing, committing or discarding somebody else's work.",
4996
4998
  "leave them alone: do not stash, commit or discard somebody else's work."
4997
4999
  ],
4998
5000
  [
4999
- "make the routine judgment calls yourself and check in only when different readings would produce materially different work.",
5000
- "make the routine judgment calls yourself, and where different readings would produce materially different work, take the most conservative one and state it."
5001
+ "If the user repeats or reaffirms a request after you raised a concern, that is their decision: say so and do the full request.",
5002
+ "If the task repeats a request after a concern was raised, that is the decision: say so and do the full request."
5001
5003
  ],
5002
5004
  ["without asking: not", "unless the task says so: not"],
5003
5005
  [
@@ -5018,8 +5020,7 @@ function withoutAsking(doctrine) {
5018
5020
  __name(withoutAsking, "withoutAsking");
5019
5021
  var INFORMED_HEADING = "### Keeping the user informed";
5020
5022
  var CHILD_REPORT_SECTION = `### Your final report
5021
- - Your parent reads your final report and not your tool calls, so put everything it needs there: what changed, what was verified, what is left, and every assumption you made.
5022
- - Keep the report complete and free of filler, because your parent relays it onward.`;
5023
+ - Your parent reads your final report and not your tool calls, so put everything it needs there: the answer or what changed, what was verified, what is left, and every assumption you made. Write it in the language of the task you were given, complete and without filler, because your parent relays it onward.`;
5023
5024
  function withChildReport(doctrine) {
5024
5025
  const at = doctrine.indexOf(INFORMED_HEADING);
5025
5026
  if (at === -1) throw new Error(`The working rules no longer contain: ${INFORMED_HEADING}`);
@@ -8023,7 +8024,7 @@ ${deps.configured ?? ""}`;
8023
8024
  const estimatedPromptTokens = estimateTokens(request.instruction) + estimateTokens(request.body);
8024
8025
  const send = /* @__PURE__ */ __name(async () => {
8025
8026
  const response = await collectChatCompletion(
8026
- provider.chatStream({
8027
+ chatStreamForSideRequest(provider, {
8027
8028
  model: chosen.model,
8028
8029
  messages: [createSystemMessage(request.instruction), createUserMessage(request.body)],
8029
8030
  maxTokens: request.maxTokens,
@@ -8070,6 +8071,186 @@ ${deps.configured ?? ""}`;
8070
8071
  }
8071
8072
  __name(createSideModel, "createSideModel");
8072
8073
 
8074
+ // src/integrations/spend/session-cost.ts
8075
+ import { createReadStream as createReadStream2 } from "node:fs";
8076
+ import { StringDecoder } from "node:string_decoder";
8077
+ var SESSION_COST_TOOL = "session_cost";
8078
+ var costInfo = /* @__PURE__ */ __name((totalCost, unpricedTokens) => ({
8079
+ totalCost,
8080
+ cacheDiscount: 0,
8081
+ unpricedTokens
8082
+ }), "costInfo");
8083
+ var cumulativeCost = /* @__PURE__ */ __name((c) => costInfo(c.cost, c.unpriced), "cumulativeCost");
8084
+ var PROVIDER_WORD = '"providerId"';
8085
+ var MAX_LINE_CHARS3 = 4 * 1024 * 1024;
8086
+ function providerOfLine(line) {
8087
+ if (!line.includes(PROVIDER_WORD)) return void 0;
8088
+ try {
8089
+ const record = JSON.parse(line);
8090
+ const source = record.content?.source;
8091
+ if (record.type === "message" && record.content?.role === "assistant" && source?.type === "model" && typeof source.providerId === "string" && /^[A-Za-z0-9._-]{1,64}$/.test(source.providerId)) {
8092
+ return source.providerId;
8093
+ }
8094
+ } catch {
8095
+ }
8096
+ return void 0;
8097
+ }
8098
+ __name(providerOfLine, "providerOfLine");
8099
+ async function* fileLogBytes(path) {
8100
+ try {
8101
+ for await (const chunk of createReadStream2(path, { highWaterMark: READ_CHUNK_BYTES })) {
8102
+ yield chunk;
8103
+ }
8104
+ } catch (cause) {
8105
+ if (cause.code !== "ENOENT") throw cause;
8106
+ }
8107
+ }
8108
+ __name(fileLogBytes, "fileLogBytes");
8109
+ async function readSessionCost(bytes) {
8110
+ const models = new ModelTable();
8111
+ const folder = new LogFolder(models, 0);
8112
+ let size = 0;
8113
+ const providers = /* @__PURE__ */ new Set();
8114
+ const decoder = new StringDecoder("utf8");
8115
+ let partial = "";
8116
+ let skipping = false;
8117
+ const take = /* @__PURE__ */ __name((line) => {
8118
+ const provider = providerOfLine(line);
8119
+ if (provider !== void 0) providers.add(provider);
8120
+ }, "take");
8121
+ for await (const piece of bytes) {
8122
+ const chunk = Buffer.from(piece.buffer, piece.byteOffset, piece.byteLength);
8123
+ size += chunk.length;
8124
+ folder.feed(chunk);
8125
+ const lines = (partial + decoder.write(chunk)).split("\n");
8126
+ partial = lines.pop();
8127
+ for (const line of lines) {
8128
+ if (skipping) skipping = false;
8129
+ else take(line);
8130
+ }
8131
+ if (partial.length > MAX_LINE_CHARS3) {
8132
+ partial = "";
8133
+ skipping = true;
8134
+ }
8135
+ }
8136
+ partial += decoder.end();
8137
+ if (!skipping) take(partial);
8138
+ const result = folder.finish();
8139
+ const session = {
8140
+ slug: "",
8141
+ size,
8142
+ mtimeMs: 0,
8143
+ from: result.from,
8144
+ rows: result.settled,
8145
+ open: result.open
8146
+ };
8147
+ const totals = conversationTotals(session);
8148
+ const last = folder.lastSettled;
8149
+ return {
8150
+ tokens: totals.tokens,
8151
+ cachedTokens: totals.cacheReadTokens,
8152
+ outputTokens: totals.outputTokens,
8153
+ cost: costInfo(totals.estimatedCostUsd, totals.unpricedTokens),
8154
+ ...last ? {
8155
+ lastTurn: {
8156
+ cost: cumulativeCost(last),
8157
+ tokens: last.total,
8158
+ outputTokens: last.completion
8159
+ }
8160
+ } : {},
8161
+ providers: [...providers].sort(),
8162
+ hasCalls: totals.tokens > 0 || result.settled.length + result.open.length > 0
8163
+ };
8164
+ }
8165
+ __name(readSessionCost, "readSessionCost");
8166
+ var fmt = /* @__PURE__ */ __name((n) => n.toLocaleString("en-US"), "fmt");
8167
+ function describeMoney(cost) {
8168
+ if (cost.unpricedTokens === 0) return `$${cost.totalCost.toFixed(4)}`;
8169
+ if (cost.totalCost === 0) return `unknown (${fmt(cost.unpricedTokens)} tokens at no known rate)`;
8170
+ return `at least $${cost.totalCost.toFixed(4)} (${fmt(cost.unpricedTokens)} tokens at no known rate)`;
8171
+ }
8172
+ __name(describeMoney, "describeMoney");
8173
+ function sourceOf(reading) {
8174
+ if (reading.cost.totalCost <= 0) return void 0;
8175
+ const providers = reading.providers;
8176
+ if (providers.length === 0) return void 0;
8177
+ if (providers.length === 1 && providers[0] === "openrouter") {
8178
+ return "Source: the charge OpenRouter reported for each call.";
8179
+ }
8180
+ if (providers.includes("openrouter")) {
8181
+ return "Source: the charge OpenRouter reported for its calls, and list prices for the others.";
8182
+ }
8183
+ return "Source: an estimate from list prices (the provider reports no charge).";
8184
+ }
8185
+ __name(sourceOf, "sourceOf");
8186
+ function renderSessionCost(reading) {
8187
+ if (!reading.hasCalls) {
8188
+ return "No cost is recorded for this conversation yet (no model call has finished). That is not the same as free; the provider\u2019s dashboard has the account total.";
8189
+ }
8190
+ const lines = [];
8191
+ const { cost } = reading;
8192
+ if (cost.unpricedTokens > 0 && cost.totalCost === 0) {
8193
+ lines.push(
8194
+ `This conversation so far: price not known. ${describeMoney(cost)}. Do not report this as free or as 0; say the price for this model is not known and give the token counts instead.`
8195
+ );
8196
+ } else {
8197
+ lines.push(`This conversation so far: ${describeMoney(cost)}.`);
8198
+ if (cost.unpricedTokens > 0) {
8199
+ lines.push(
8200
+ `${fmt(cost.unpricedTokens)} tokens have no known rate, so the real cost is higher than this.`
8201
+ );
8202
+ }
8203
+ }
8204
+ const source = sourceOf(reading);
8205
+ if (source) lines.push(source);
8206
+ if (reading.lastTurn) {
8207
+ const { cost: last } = reading.lastTurn;
8208
+ lines.push(
8209
+ last.unpricedTokens > 0 && last.totalCost === 0 ? `Last completed turn: price not known (${fmt(last.unpricedTokens)} tokens at no known rate).` : `Last completed turn: ${describeMoney(last)}.`
8210
+ );
8211
+ }
8212
+ lines.push(
8213
+ `Tokens: ${fmt(reading.tokens)} in total, of which ${fmt(reading.cachedTokens)} read from the cache and ${fmt(reading.outputTokens)} generated.`
8214
+ );
8215
+ lines.push(
8216
+ "Calls still to come in this turn, including the reply that quotes these figures, are not counted yet: give the figure as the cost so far, not as the final total."
8217
+ );
8218
+ lines.push(
8219
+ "Not included: side requests such as the conversation title, and the work of sub-agents (their own conversations). The provider\u2019s dashboard has the account total."
8220
+ );
8221
+ return lines.join("\n");
8222
+ }
8223
+ __name(renderSessionCost, "renderSessionCost");
8224
+ function buildSessionCostTool(resolveLog) {
8225
+ return defineTool({
8226
+ name: SESSION_COST_TOOL,
8227
+ description: "Answers questions about what this conversation has cost: money spent so far and in the last completed turn, with where the figure comes from, plus token totals. Use it for any question about cost, price, spend or usage of this conversation. Takes no arguments.",
8228
+ inputSchema: mcpJsonSchemaToZod({
8229
+ type: "object",
8230
+ properties: {},
8231
+ additionalProperties: false
8232
+ }),
8233
+ category: "custom",
8234
+ permissions: [],
8235
+ readOnly: true,
8236
+ destructive: false,
8237
+ concurrencySafe: true,
8238
+ async execute(_input, context) {
8239
+ try {
8240
+ const reading = await readSessionCost(resolveLog(context));
8241
+ return { success: true, output: renderSessionCost(reading) };
8242
+ } catch {
8243
+ return {
8244
+ success: false,
8245
+ output: "",
8246
+ error: "The cost of this conversation could not be read just now."
8247
+ };
8248
+ }
8249
+ }
8250
+ });
8251
+ }
8252
+ __name(buildSessionCostTool, "buildSessionCostTool");
8253
+
8073
8254
  // src/integrations/state/retention.ts
8074
8255
  var CLI_CHECKPOINT_RETENTION = 10;
8075
8256
 
@@ -10455,12 +10636,9 @@ __name(fileAgentTools, "fileAgentTools");
10455
10636
  var SUBAGENT_PROMPT = [
10456
10637
  "You are a focused sub-agent dispatched by namzu, an AI kernel, to complete one self-contained task and report back to the session that started you.",
10457
10638
  "You cannot see the parent conversation \u2014 work only from the prompt you were given.",
10458
- "Use your tools to actually do the work, and finish the whole task. Then end with a report to your parent: what you did, the results and key findings it needs, and every assumption you made. Give the essentials and leave out filler, because your parent relays the report onward.",
10639
+ "Use your tools to do the work, then end with a report to your parent: what you did, the results and key findings it needs, and every assumption you made.",
10459
10640
  "",
10460
- "Report only results you produced through tool calls, because your parent acts on them:",
10461
- "- Create a file with the `write` tool and change an existing one with `edit`. Report the real path, and say a file exists only after a tool has written it.",
10462
- "- If you need to research and have no web tool available, say so plainly and answer from your own knowledge with that caveat; take sources, data and URLs from tool results only.",
10463
- "- Take command output and results from tool results only. If you cannot complete the task, say what blocked you.",
10641
+ "Report only results you produced through tool calls, because your parent acts on them: say a file exists only after `write` or `edit` has written it, take sources, data, URLs and command output from tool results only (with no web tool, say so and mark anything from memory as such), and if you cannot complete the task, say what blocked you.",
10464
10642
  "",
10465
10643
  // The same working rules the parent sessions under. A delegated task edits the
10466
10644
  // same repository, and a child that reads a file before editing it while
@@ -11051,14 +11229,17 @@ async function createSubagentRuntime(input) {
11051
11229
  signal,
11052
11230
  request: /* @__PURE__ */ __name(async () => {
11053
11231
  const response = await collectChatCompletion(
11054
- provider.chatStream({
11232
+ chatStreamForSideRequest(provider, {
11055
11233
  model,
11056
11234
  messages: [createSystemMessage(instruction), createUserMessage(body2)],
11057
11235
  maxTokens: 60,
11058
11236
  signal
11059
11237
  })
11060
11238
  );
11061
- return { value: response.message.content ?? "", usage: response.usage };
11239
+ return {
11240
+ value: response.finishReason === "length" ? "" : response.message.content ?? "",
11241
+ usage: response.usage
11242
+ };
11062
11243
  }, "request")
11063
11244
  });
11064
11245
  return text2 === void 0 ? void 0 : { text: text2 };
@@ -12597,7 +12778,7 @@ async function runBlockingAgentTask(input) {
12597
12778
  completion.catch(() => {
12598
12779
  });
12599
12780
  input.completionInbox.expect(handle.taskId);
12600
- return { kind: "yielded", handle };
12781
+ return { kind: "yielded", handle: gateway.getTask(handle.taskId) ?? handle };
12601
12782
  }
12602
12783
  const inbound = input.waitForInbound?.(wakeController.signal).then(() => ({ kind: "inbound" }));
12603
12784
  const outcome = await Promise.race(
@@ -12734,7 +12915,9 @@ function buildDefinition(id, description, systemPrompt, opts, tools = opts.build
12734
12915
  return opts.agentHooks.attachRun(carried, sessionId);
12735
12916
  } : void 0;
12736
12917
  const agent2 = new NamzuCliAgent(metadata, void 0, runScope);
12737
- const base = inheritedPrompt !== void 0 || systemPrompt === SUBAGENT_PROMPT ? systemPrompt : `${systemPrompt}
12918
+ const base = inheritedPrompt !== void 0 || systemPrompt === SUBAGENT_PROMPT || // A read-only type already carries the working rules once; the general
12919
+ // blurb would add them a second time and say to change files.
12920
+ [...READ_ONLY_PROMPTS.values()].includes(systemPrompt) ? systemPrompt : `${systemPrompt}
12738
12921
 
12739
12922
  ${SUBAGENT_PROMPT}`;
12740
12923
  return {
@@ -12869,7 +13052,7 @@ import { join as join13 } from "node:path";
12869
13052
 
12870
13053
  // src/integrations/workflows/offering.ts
12871
13054
  var WORKFLOW_TOOL_NAME = "workflow";
12872
- var WORKFLOW_BACKGROUND_NOTE = "Running in the background (\u2193 to manage)";
13055
+ var WORKFLOW_BACKGROUND_NOTE = "Running in the background \xB7 follow it with \u2193 or /tasks";
12873
13056
  var WORKFLOW_TOOL_DESCRIPTION = [
12874
13057
  `Run a workflow: a short JavaScript program you write once that starts many subagents, in order and in parallel, and returns one value. It runs in the background: this call returns once the first agent is requested, and one message arrives when the run ends. A script that fails before it requests any agent is an error of this call, and one that finishes without any returns its result here. Call it only after an explicit opt-in: the operator's message included the keyword "hypermode" or "workflow" (a note confirms it), hypermode is on for the session (a note confirms it), the operator asked for a workflow or multi-agent orchestration in their own words, or they named a saved workflow to run. For any other task, even one that would clearly benefit from parallelism, do not call it; for a single subagent or a small fan-out, use the Agent tool.`,
12875
13058
  "",
@@ -18338,7 +18521,7 @@ var WORDS = {
18338
18521
  search: { live: "searching for", done: "searched for", one: "pattern", many: "patterns" },
18339
18522
  read: { live: "reading", done: "read", one: "file", many: "files" },
18340
18523
  list: { live: "listing", done: "listed", one: "directory", many: "directories" },
18341
- run: { live: "running", done: "ran", one: "command", many: "commands" },
18524
+ run: { live: "running", done: "ran", one: "shell command", many: "shell commands" },
18342
18525
  mcp: { live: "calling", done: "called" }
18343
18526
  };
18344
18527
  var VCS_WORDS = {
@@ -19433,11 +19616,11 @@ __name(clipRequestContext, "clipRequestContext");
19433
19616
  async function createAgentSession(prefs, detectedProviders, options = {}) {
19434
19617
  const modelEnvironment = readModelLaunchEnvironment();
19435
19618
  if (options.palEnvironment) {
19436
- const { createPalAgentSession } = await import("./agent-session-NJ6H25QY.js");
19619
+ const { createPalAgentSession } = await import("./agent-session-RPSTX6GN.js");
19437
19620
  return createPalAgentSession(prefs, detectedProviders, options);
19438
19621
  }
19439
19622
  let detected = detectedProviders;
19440
- const { palAtWorkspace } = await import("./store-FUNVZ2G4.js");
19623
+ const { palAtWorkspace } = await import("./store-ZLCDFCYI.js");
19441
19624
  if (palAtWorkspace(options.cwd ?? process.cwd()))
19442
19625
  throw new Error("This Pal requires its owned virtual computer. Open it with namzu pal chat.");
19443
19626
  const commandArguments = builtinCommandArguments();
@@ -20193,6 +20376,26 @@ async function createAgentSession(prefs, detectedProviders, options = {}) {
20193
20376
  )
20194
20377
  );
20195
20378
  }
20379
+ if (options.conversationSessions || options.ephemeral) {
20380
+ const sessions = options.conversationSessions;
20381
+ const owned = /* @__PURE__ */ __name((turnId) => {
20382
+ const owner = delegationScopes.get(turnId);
20383
+ if (!owner || sessions && (owner.projectId !== sessions.projectId || owner.tenantId !== sessions.tenantId))
20384
+ throw new Error("The requesting turn does not own this conversation.");
20385
+ return owner;
20386
+ }, "owned");
20387
+ toolsets.push(
20388
+ toolset("session-cost", [
20389
+ buildSessionCostTool((context) => {
20390
+ const owner = owned(context.turnId);
20391
+ if (sessions) return fileLogBytes(conversationLogPath(sessions, owner.sessionId));
20392
+ const log = ephemeralLogs.get(ephemeralScopeKey(owner));
20393
+ if (!log) throw new Error("No transient log exists for this conversation.");
20394
+ return log.medium.stream(0);
20395
+ })
20396
+ ])
20397
+ );
20398
+ }
20196
20399
  const evidenceRecallSteps = /* @__PURE__ */ new Map();
20197
20400
  const evidenceRecallFor = /* @__PURE__ */ __name((sessionId) => {
20198
20401
  const sessions = options.conversationSessions;
@@ -20743,7 +20946,7 @@ async function createAgentSession(prefs, detectedProviders, options = {}) {
20743
20946
  );
20744
20947
  toolsets.push(options.toolLoading === "eager" ? monitorToolset : deferred(monitorToolset));
20745
20948
  }
20746
- const operatorPals = await import("./operator-tools-HN6MNPZW.js");
20949
+ const operatorPals = await import("./operator-tools-HT2GSJ56.js");
20747
20950
  toolsets.push(
20748
20951
  readyWhen(
20749
20952
  toolset(
@@ -24368,4 +24571,4 @@ export {
24368
24571
  RESULT_SUMMARY_WHOLE_MAX,
24369
24572
  resultSummaryLine
24370
24573
  };
24371
- //# sourceMappingURL=chunk-WM6TW355.js.map
24574
+ //# sourceMappingURL=chunk-RMRGVJOA.js.map