@namzu/cli 44.1.1 → 44.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (451) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/dist/bin.js +1 -1
  3. package/dist/chunks/acp-OUBJWH5B.js +7754 -0
  4. package/dist/chunks/acp-OUBJWH5B.js.map +6 -0
  5. package/dist/chunks/{activity-command-Y5ZLCQ63.js → activity-command-R7MUSZIY.js} +16 -15
  6. package/dist/chunks/activity-command-R7MUSZIY.js.map +6 -0
  7. package/dist/chunks/{add-F7M57FGR.js → add-PSEIDDRW.js} +21 -18
  8. package/dist/chunks/add-PSEIDDRW.js.map +6 -0
  9. package/dist/chunks/{agent-AFX2UZU5.js → agent-YPEXUYPH.js} +35 -30
  10. package/dist/chunks/agent-session-EZB2OYG3.js +65 -0
  11. package/dist/chunks/{archive-6NM6DYAT.js → archive-ET4PXE34.js} +11 -10
  12. package/dist/chunks/archive-ET4PXE34.js.map +6 -0
  13. package/dist/chunks/{bin-main-I6CHRYYQ.js → bin-main-PMB57AZJ.js} +9 -9
  14. package/dist/chunks/binding-K6RIQ5AP.js +17 -0
  15. package/dist/chunks/{browser-OPMOTWTV.js → browser-SKTIAVBF.js} +6 -6
  16. package/dist/chunks/{chat-KGVPXQS6.js → chat-AVIVXXMD.js} +20 -19
  17. package/dist/chunks/chat-AVIVXXMD.js.map +6 -0
  18. package/dist/chunks/chunk-26C37THH.js +867 -0
  19. package/dist/chunks/chunk-26C37THH.js.map +6 -0
  20. package/dist/chunks/{chunk-CTN4O42X.js → chunk-2EHPXO4E.js} +3 -3
  21. package/dist/chunks/{chunk-LS75R55C.js → chunk-2NI5NS5S.js} +3 -3
  22. package/dist/chunks/{chunk-RV5QY3IY.js → chunk-2U5M5IYH.js} +6 -6
  23. package/dist/chunks/{chunk-PWOG3OMH.js → chunk-2X6JZAKH.js} +9 -9
  24. package/dist/chunks/{chunk-W5QFVC74.js → chunk-2Y26DLOF.js} +27 -10
  25. package/dist/chunks/{chunk-W5QFVC74.js.map → chunk-2Y26DLOF.js.map} +1 -1
  26. package/dist/chunks/{chunk-BR6EWAKQ.js → chunk-3QGJXD7U.js} +5 -5
  27. package/dist/chunks/{chunk-XFNCCDJK.js → chunk-435DYOG4.js} +2 -2
  28. package/dist/chunks/{chunk-Y44FAVKA.js → chunk-4OXIJ2EF.js} +3 -3
  29. package/dist/chunks/{chunk-RSRJQB6Q.js → chunk-6EJFXJDO.js} +204 -68
  30. package/dist/chunks/chunk-6EJFXJDO.js.map +6 -0
  31. package/dist/chunks/{chunk-UC3ZACVN.js → chunk-6FWFSPUL.js} +2 -2
  32. package/dist/chunks/chunk-6HTC5TQ3.js +89 -0
  33. package/dist/chunks/chunk-6HTC5TQ3.js.map +6 -0
  34. package/dist/chunks/chunk-6IDFHPY3.js +413 -0
  35. package/dist/chunks/chunk-6IDFHPY3.js.map +6 -0
  36. package/dist/chunks/chunk-7FPKSX4M.js +61 -0
  37. package/dist/chunks/chunk-7FPKSX4M.js.map +6 -0
  38. package/dist/chunks/{chunk-EFEZWLZC.js → chunk-7QQOUCGI.js} +12 -10
  39. package/dist/chunks/chunk-7QQOUCGI.js.map +6 -0
  40. package/dist/chunks/{chunk-KHM2XON5.js → chunk-7TEXDZVO.js} +17 -3
  41. package/dist/chunks/chunk-7TEXDZVO.js.map +6 -0
  42. package/dist/chunks/{chunk-WPNT6IGU.js → chunk-A5GTZ7R2.js} +2 -2
  43. package/dist/chunks/{chunk-BIGRB2H4.js → chunk-ACSG5R5P.js} +3 -3
  44. package/dist/chunks/{chunk-QV43JSBP.js → chunk-AI6PBE5G.js} +2 -2
  45. package/dist/chunks/{chunk-HXZ2JXCO.js → chunk-AX5ESG6K.js} +2 -2
  46. package/dist/chunks/{chunk-DESOZLEL.js → chunk-B3XIVOLM.js} +2 -2
  47. package/dist/chunks/{chunk-ZXKN4TWP.js → chunk-BGKQCLLH.js} +242 -447
  48. package/dist/chunks/chunk-BGKQCLLH.js.map +6 -0
  49. package/dist/chunks/chunk-BT7ZELXJ.js +63 -0
  50. package/dist/chunks/chunk-BT7ZELXJ.js.map +6 -0
  51. package/dist/chunks/{chunk-ZUN2WRCB.js → chunk-DECJPLLA.js} +13 -13
  52. package/dist/chunks/{chunk-GSYPRZZU.js → chunk-DFCJYRT5.js} +2 -2
  53. package/dist/chunks/{chunk-QNTR7X7D.js → chunk-DQLSLXDF.js} +5 -5
  54. package/dist/chunks/chunk-EXFSMYH4.js +83 -0
  55. package/dist/chunks/chunk-EXFSMYH4.js.map +6 -0
  56. package/dist/chunks/{chunk-6Z2ZJ4BA.js → chunk-FHQTXWDA.js} +4 -4
  57. package/dist/chunks/chunk-G73G2WGR.js +242 -0
  58. package/dist/chunks/chunk-G73G2WGR.js.map +6 -0
  59. package/dist/chunks/{chunk-BLM6IQS4.js → chunk-GANFMGV7.js} +5 -5
  60. package/dist/chunks/{chunk-REDD2WY7.js → chunk-GBS6ATYF.js} +2 -2
  61. package/dist/chunks/{chunk-ORVWGSLG.js → chunk-GCCFTP47.js} +4 -4
  62. package/dist/chunks/{chunk-FKIO77IY.js → chunk-GNEDN6MU.js} +12 -12
  63. package/dist/chunks/{chunk-NS7EU37U.js → chunk-HB5ZN5KQ.js} +2 -2
  64. package/dist/chunks/{chunk-EFQ6FUFZ.js → chunk-HELINLSD.js} +2 -2
  65. package/dist/chunks/{chunk-AY7B43MK.js → chunk-HKCIZR5P.js} +13 -13
  66. package/dist/chunks/chunk-HRJPVPSU.js +164 -0
  67. package/dist/chunks/chunk-HRJPVPSU.js.map +6 -0
  68. package/dist/chunks/{chunk-NPZY5OJ5.js → chunk-HTBMDD6Y.js} +8 -8
  69. package/dist/chunks/{chunk-LN26A356.js → chunk-I5E4MT3C.js} +4 -4
  70. package/dist/chunks/{chunk-KK2L4FD2.js → chunk-IJZ7SLBV.js} +3 -3
  71. package/dist/chunks/{chunk-YAEHAYI4.js → chunk-ITA57VY5.js} +7 -5
  72. package/dist/chunks/chunk-ITA57VY5.js.map +6 -0
  73. package/dist/chunks/{chunk-W4E2N7TY.js → chunk-IZVN6K6U.js} +4 -4
  74. package/dist/chunks/{chunk-7U36A4WQ.js → chunk-JL64XHSL.js} +55 -5
  75. package/dist/chunks/chunk-JL64XHSL.js.map +6 -0
  76. package/dist/chunks/chunk-KLKAK2O5.js +5817 -0
  77. package/dist/chunks/chunk-KLKAK2O5.js.map +6 -0
  78. package/dist/chunks/{chunk-465CVUN4.js → chunk-L2NNJ4XL.js} +3 -3
  79. package/dist/chunks/{chunk-JCUPTKQY.js → chunk-LF76CVOZ.js} +4 -4
  80. package/dist/chunks/{chunk-ZATO2QOS.js → chunk-LFPTXRMM.js} +2 -2
  81. package/dist/chunks/chunk-LG27EJU6.js +189 -0
  82. package/dist/chunks/chunk-LG27EJU6.js.map +6 -0
  83. package/dist/chunks/{chunk-UHPRMPWX.js → chunk-LKJBDF7W.js} +15 -3
  84. package/dist/chunks/chunk-LKJBDF7W.js.map +6 -0
  85. package/dist/chunks/chunk-LKODRKMZ.js +575 -0
  86. package/dist/chunks/chunk-LKODRKMZ.js.map +6 -0
  87. package/dist/chunks/{chunk-WLUGKIYQ.js → chunk-LQRP2VRQ.js} +4 -4
  88. package/dist/chunks/{chunk-UGAT33T5.js → chunk-LYGD5P7O.js} +3 -3
  89. package/dist/chunks/{chunk-CRWNJ62V.js → chunk-M2OZ4SVS.js} +3 -3
  90. package/dist/chunks/{chunk-I32JTWDW.js → chunk-MGZSEPDY.js} +2 -2
  91. package/dist/chunks/{chunk-HYFX32Y3.js → chunk-MJBGVVI5.js} +3 -3
  92. package/dist/chunks/{chunk-YPRKTJ5P.js → chunk-MYL75RA4.js} +2 -2
  93. package/dist/chunks/chunk-PIVHVYCN.js +3925 -0
  94. package/dist/chunks/chunk-PIVHVYCN.js.map +6 -0
  95. package/dist/chunks/{chunk-AE4LOPZF.js → chunk-PMX2WTZL.js} +2 -2
  96. package/dist/chunks/{chunk-FPLDTTM2.js → chunk-QWSZ5P4C.js} +6 -6
  97. package/dist/chunks/{chunk-T5POXPXY.js → chunk-RSIWTHYS.js} +3 -3
  98. package/dist/chunks/{chunk-UP3SWACV.js → chunk-S4QOQGAT.js} +2 -2
  99. package/dist/chunks/chunk-S7WRWA25.js +33 -0
  100. package/dist/chunks/chunk-S7WRWA25.js.map +6 -0
  101. package/dist/chunks/{chunk-ZRBGY4SL.js → chunk-SGRO4RJP.js} +2 -2
  102. package/dist/chunks/{chunk-WKUTR7YW.js → chunk-SJFPZPOJ.js} +80 -17
  103. package/dist/chunks/chunk-SJFPZPOJ.js.map +6 -0
  104. package/dist/chunks/{chunk-JAYPFJGZ.js → chunk-TZZOQ62Z.js} +2 -2
  105. package/dist/chunks/chunk-U4SST7AD.js +219 -0
  106. package/dist/chunks/chunk-U4SST7AD.js.map +6 -0
  107. package/dist/chunks/{chunk-CMAZ3DYB.js → chunk-UGDZ7MLG.js} +4 -4
  108. package/dist/chunks/chunk-VDKDXDOH.js +290 -0
  109. package/dist/chunks/chunk-VDKDXDOH.js.map +6 -0
  110. package/dist/chunks/{chunk-2NFPIARP.js → chunk-VFVWHYHT.js} +4 -4
  111. package/dist/chunks/{chunk-5UB2LLPG.js → chunk-VZ4PKWLF.js} +2 -2
  112. package/dist/chunks/{chunk-WLAI3VCE.js → chunk-WKFHQQOU.js} +2 -2
  113. package/dist/chunks/{chunk-JSFF2HGX.js → chunk-WKPRYH24.js} +3 -3
  114. package/dist/chunks/{chunk-VR4MTSMH.js → chunk-WQFHJ4TO.js} +3 -3
  115. package/dist/chunks/{chunk-RFMODICJ.js → chunk-WYJ3CNXX.js} +80 -38
  116. package/dist/chunks/chunk-WYJ3CNXX.js.map +6 -0
  117. package/dist/chunks/{chunk-ZNYKZ3MI.js → chunk-XPLHAOGE.js} +2 -2
  118. package/dist/chunks/{chunk-2NGXQQPP.js → chunk-XX2SP5AM.js} +3 -3
  119. package/dist/chunks/{chunk-T2PF65KB.js → chunk-YDSWGJWF.js} +2 -2
  120. package/dist/chunks/{chunk-LUSUJZR2.js → chunk-YJ6NWB2B.js} +2 -2
  121. package/dist/chunks/{chunk-O4MFP726.js → chunk-YTE3QIH3.js} +998 -393
  122. package/dist/chunks/chunk-YTE3QIH3.js.map +6 -0
  123. package/dist/chunks/{chunk-JH3SDABI.js → chunk-YUYNIAJX.js} +6 -6
  124. package/dist/chunks/{chunk-TX2PUHTP.js → chunk-YXIG4OT2.js} +2 -2
  125. package/dist/chunks/{cli-runtime-HTTDQPEZ.js → cli-runtime-F4MEMBDL.js} +11 -10
  126. package/dist/chunks/cli-runtime-F4MEMBDL.js.map +6 -0
  127. package/dist/chunks/{commands-ZD2L5QMI.js → commands-ZCNZVYTG.js} +5 -5
  128. package/dist/chunks/{crash-report-2IRIZSBD.js → crash-report-K53VF4H5.js} +6 -6
  129. package/dist/chunks/{dist-GSYFGRQT.js → dist-6IPPA55L.js} +2 -2
  130. package/dist/chunks/{dist-45IFTDJW.js → dist-H53G25BE.js} +2 -2
  131. package/dist/chunks/{dist-RQJEJN3Z.js → dist-L5LBM77I.js} +2 -2
  132. package/dist/chunks/{dist-OJTB6QLR.js → dist-RIH2Q2ER.js} +2 -2
  133. package/dist/chunks/{dist-OCZJJFHF.js → dist-RTIKLSUV.js} +2 -2
  134. package/dist/chunks/{dist-TWYNAZDN.js → dist-T6KE7URX.js} +2 -2
  135. package/dist/chunks/{dist-FNGLTQIG.js → dist-VSJGDIXP.js} +32 -2
  136. package/dist/chunks/{dist-NL7WG7PX.js → dist-XNGK3C4G.js} +2 -2
  137. package/dist/chunks/{doctor-NKPCWPB4.js → doctor-DOCGTBME.js} +17 -15
  138. package/dist/chunks/{drain-YTSVAQP5.js → drain-LT3J2MEA.js} +13 -13
  139. package/dist/chunks/entry-UHKDLPDS.js +232 -0
  140. package/dist/chunks/entry-UHKDLPDS.js.map +6 -0
  141. package/dist/chunks/{eval-ILFXDQUQ.js → eval-DH26W2QK.js} +2 -2
  142. package/dist/chunks/{exec-3JDAB34N.js → exec-QGAHWUUQ.js} +57 -47
  143. package/dist/chunks/exec-QGAHWUUQ.js.map +6 -0
  144. package/dist/chunks/{github-FH7PPWVW.js → github-JTMZJAZL.js} +4 -4
  145. package/dist/chunks/{home-5OIZIDIT.js → home-GGVNSCCU.js} +3 -3
  146. package/dist/chunks/host-6CUYPX4T.js +23 -0
  147. package/dist/chunks/{host-queries-SO2NOQRR.js → host-queries-4EW7M54U.js} +16 -15
  148. package/dist/chunks/host-queries-4EW7M54U.js.map +6 -0
  149. package/dist/chunks/{learn-RHNMJ4BD.js → learn-PAO3IOYA.js} +13 -13
  150. package/dist/chunks/{learn-builtin-UQ3MWGK6.js → learn-builtin-DXZUXOGG.js} +19 -19
  151. package/dist/chunks/{lifecycle-RTDYXKBW.js → lifecycle-KDN4D7DP.js} +30 -26
  152. package/dist/chunks/{list-G6OA34RL.js → list-KSP6S57Z.js} +15 -14
  153. package/dist/chunks/list-KSP6S57Z.js.map +6 -0
  154. package/dist/chunks/{live-44HBQCQY.js → live-XWJ2JOFO.js} +15 -13
  155. package/dist/chunks/{login-J4PWR4FM.js → login-3Q2HKQUW.js} +10 -8
  156. package/dist/chunks/{logs-22QAEH2Q.js → logs-UYB55HOX.js} +4 -4
  157. package/dist/chunks/{mcp-EXFVIHPJ.js → mcp-JWSI4KA6.js} +25 -22
  158. package/dist/chunks/mcp-JWSI4KA6.js.map +6 -0
  159. package/dist/chunks/{message-command-B4L2W4YZ.js → message-command-YP6TGD3K.js} +47 -42
  160. package/dist/chunks/message-command-YP6TGD3K.js.map +6 -0
  161. package/dist/chunks/open-QUDHJK5H.js +19 -0
  162. package/dist/chunks/{operator-tools-TEP4UTI6.js → operator-tools-43NL7HKO.js} +15 -14
  163. package/dist/chunks/operator-tools-43NL7HKO.js.map +6 -0
  164. package/dist/chunks/{output-schema-FZXJ7V33.js → output-schema-TLW5FA37.js} +3 -3
  165. package/dist/chunks/{pal-BUDEBIBJ.js → pal-EZE2KLYZ.js} +16 -14
  166. package/dist/chunks/pal-EZE2KLYZ.js.map +6 -0
  167. package/dist/chunks/palette-WDPS7W6Q.js +15 -0
  168. package/dist/chunks/peers-OBENILN2.js +18 -0
  169. package/dist/chunks/prefix-MLAG4KTK.js +14 -0
  170. package/dist/chunks/{providers-EQ32NZAT.js → providers-PJIHLTXP.js} +22 -18
  171. package/dist/chunks/pty-HDEXCPR6.js +29 -0
  172. package/dist/chunks/{resident-FSUGNG56.js → resident-2GHB3BKR.js} +32 -30
  173. package/dist/chunks/resident-2GHB3BKR.js.map +6 -0
  174. package/dist/chunks/resume-FHPY2RU3.js +24 -0
  175. package/dist/chunks/resume-FHPY2RU3.js.map +6 -0
  176. package/dist/chunks/{resume-command-DHPXCZVL.js → resume-command-VB6VA64L.js} +4 -4
  177. package/dist/chunks/resume-command-VB6VA64L.js.map +6 -0
  178. package/dist/chunks/{schedule-OJMZEWJG.js → schedule-42N4JOQJ.js} +8 -8
  179. package/dist/chunks/{service-EP2QHCK7.js → service-6WGZKKI4.js} +33 -29
  180. package/dist/chunks/service-6WGZKKI4.js.map +6 -0
  181. package/dist/chunks/{session-step-44XBOUDV.js → session-step-SBWIM4MZ.js} +15 -15
  182. package/dist/chunks/session-step-SBWIM4MZ.js.map +6 -0
  183. package/dist/chunks/{skills-YHAQXVP2.js → skills-V3VDOL3D.js} +11 -11
  184. package/dist/chunks/spaces-6II4JYTZ.js +231 -0
  185. package/dist/chunks/spaces-6II4JYTZ.js.map +6 -0
  186. package/dist/chunks/{start-check-KVZFDBD3.js → start-check-MRSPS5JT.js} +2 -2
  187. package/dist/chunks/start-check-MRSPS5JT.js.map +6 -0
  188. package/dist/chunks/{state-NXFKMBOX.js → state-HX3XRNPC.js} +2 -2
  189. package/dist/chunks/store-7P462EUD.js +17 -0
  190. package/dist/chunks/store-7P462EUD.js.map +6 -0
  191. package/dist/chunks/{store-KFJWAELA.js → store-FUQE7EWU.js} +13 -10
  192. package/dist/chunks/store-FUQE7EWU.js.map +6 -0
  193. package/dist/chunks/{store-QNY242NN.js → store-IX6KNJA4.js} +6 -6
  194. package/dist/chunks/store-IX6KNJA4.js.map +6 -0
  195. package/dist/chunks/{store-JLTSSGKL.js → store-MQXI7G2H.js} +4 -4
  196. package/dist/chunks/store-MQXI7G2H.js.map +6 -0
  197. package/dist/chunks/{tui-L5GKR237.js → tui-PH5B6UCO.js} +1822 -816
  198. package/dist/chunks/tui-PH5B6UCO.js.map +6 -0
  199. package/dist/chunks/{upgrade-PROVWX55.js → upgrade-HDW5MWLE.js} +6 -6
  200. package/dist/chunks/{worktree-ELHDXX4X.js → worktree-MLFYZF56.js} +13 -12
  201. package/dist/chunks/worktree-MLFYZF56.js.map +6 -0
  202. package/dist/cli.d.ts.map +1 -1
  203. package/dist/commands/exec-json.d.ts.map +1 -1
  204. package/dist/commands/manifest.d.ts +1 -0
  205. package/dist/commands/manifest.d.ts.map +1 -1
  206. package/dist/commands/spaces.d.ts +42 -0
  207. package/dist/commands/spaces.d.ts.map +1 -0
  208. package/dist/config/load.d.ts.map +1 -1
  209. package/dist/config/schema.d.ts +7 -0
  210. package/dist/config/schema.d.ts.map +1 -1
  211. package/dist/doctor/checks/index.d.ts +2 -1
  212. package/dist/doctor/checks/index.d.ts.map +1 -1
  213. package/dist/doctor/checks/terminal.d.ts +12 -0
  214. package/dist/doctor/checks/terminal.d.ts.map +1 -0
  215. package/dist/index.js +22 -19
  216. package/dist/integrations/accounts/activity.d.ts +39 -0
  217. package/dist/integrations/accounts/activity.d.ts.map +1 -0
  218. package/dist/integrations/accounts/binding.d.ts +30 -0
  219. package/dist/integrations/accounts/binding.d.ts.map +1 -0
  220. package/dist/integrations/accounts/codex-login.d.ts +33 -0
  221. package/dist/integrations/accounts/codex-login.d.ts.map +1 -0
  222. package/dist/integrations/accounts/host-facts.d.ts +22 -0
  223. package/dist/integrations/accounts/host-facts.d.ts.map +1 -0
  224. package/dist/integrations/accounts/open.d.ts +23 -0
  225. package/dist/integrations/accounts/open.d.ts.map +1 -0
  226. package/dist/integrations/accounts/rows.d.ts +45 -0
  227. package/dist/integrations/accounts/rows.d.ts.map +1 -0
  228. package/dist/integrations/peers/runtime.d.ts +12 -0
  229. package/dist/integrations/peers/runtime.d.ts.map +1 -1
  230. package/dist/integrations/providers/codex-account.d.ts +30 -0
  231. package/dist/integrations/providers/codex-account.d.ts.map +1 -0
  232. package/dist/integrations/providers/codex-oauth.d.ts +12 -0
  233. package/dist/integrations/providers/codex-oauth.d.ts.map +1 -1
  234. package/dist/integrations/providers/preferences.d.ts +8 -0
  235. package/dist/integrations/providers/preferences.d.ts.map +1 -1
  236. package/dist/integrations/resident/runner-worker.js +24 -23
  237. package/dist/integrations/resident/runner-worker.js.map +1 -1
  238. package/dist/integrations/sessions/store.d.ts +13 -1
  239. package/dist/integrations/sessions/store.d.ts.map +1 -1
  240. package/dist/spaces/git.d.ts +27 -0
  241. package/dist/spaces/git.d.ts.map +1 -0
  242. package/dist/spaces/goto.d.ts +31 -0
  243. package/dist/spaces/goto.d.ts.map +1 -0
  244. package/dist/spaces/host.d.ts +380 -0
  245. package/dist/spaces/host.d.ts.map +1 -0
  246. package/dist/spaces/input.d.ts +87 -0
  247. package/dist/spaces/input.d.ts.map +1 -0
  248. package/dist/spaces/keymap.d.ts +30 -0
  249. package/dist/spaces/keymap.d.ts.map +1 -0
  250. package/dist/spaces/layout.d.ts +34 -0
  251. package/dist/spaces/layout.d.ts.map +1 -0
  252. package/dist/spaces/overlay.d.ts +105 -0
  253. package/dist/spaces/overlay.d.ts.map +1 -0
  254. package/dist/spaces/palette.d.ts +35 -0
  255. package/dist/spaces/palette.d.ts.map +1 -0
  256. package/dist/spaces/peers.d.ts +19 -0
  257. package/dist/spaces/peers.d.ts.map +1 -0
  258. package/dist/spaces/prefix.d.ts +19 -0
  259. package/dist/spaces/prefix.d.ts.map +1 -0
  260. package/dist/spaces/roster.d.ts +111 -0
  261. package/dist/spaces/roster.d.ts.map +1 -0
  262. package/dist/spaces/session.d.ts +83 -0
  263. package/dist/spaces/session.d.ts.map +1 -0
  264. package/dist/spaces/sidebar.d.ts +99 -0
  265. package/dist/spaces/sidebar.d.ts.map +1 -0
  266. package/dist/spaces/signal.d.ts +28 -0
  267. package/dist/spaces/signal.d.ts.map +1 -0
  268. package/dist/spaces/status.d.ts +20 -0
  269. package/dist/spaces/status.d.ts.map +1 -0
  270. package/dist/spaces/store.d.ts +69 -0
  271. package/dist/spaces/store.d.ts.map +1 -0
  272. package/dist/spaces/tabbar.d.ts +36 -0
  273. package/dist/spaces/tabbar.d.ts.map +1 -0
  274. package/dist/spaces/tiling.d.ts +90 -0
  275. package/dist/spaces/tiling.d.ts.map +1 -0
  276. package/dist/terminal/host/cell.d.ts +35 -0
  277. package/dist/terminal/host/cell.d.ts.map +1 -0
  278. package/dist/terminal/host/frame.d.ts +64 -0
  279. package/dist/terminal/host/frame.d.ts.map +1 -0
  280. package/dist/terminal/host/index.d.ts +5 -0
  281. package/dist/terminal/host/index.d.ts.map +1 -0
  282. package/dist/terminal/host/writer.d.ts +21 -0
  283. package/dist/terminal/host/writer.d.ts.map +1 -0
  284. package/dist/terminal/host/xterm-source.d.ts +18 -0
  285. package/dist/terminal/host/xterm-source.d.ts.map +1 -0
  286. package/dist/terminal/pty.d.ts.map +1 -1
  287. package/dist/terminal/screen.d.ts +12 -0
  288. package/dist/terminal/screen.d.ts.map +1 -1
  289. package/dist/tui/App.d.ts +106 -1
  290. package/dist/tui/App.d.ts.map +1 -1
  291. package/dist/tui/Composer.d.ts +7 -1
  292. package/dist/tui/Composer.d.ts.map +1 -1
  293. package/dist/tui/ResumePicker.d.ts.map +1 -1
  294. package/dist/tui/TextPrompt.d.ts +5 -1
  295. package/dist/tui/TextPrompt.d.ts.map +1 -1
  296. package/dist/tui/account-flow.d.ts +126 -0
  297. package/dist/tui/account-flow.d.ts.map +1 -0
  298. package/dist/tui/agent.d.ts +17 -1
  299. package/dist/tui/agent.d.ts.map +1 -1
  300. package/dist/tui/compaction-rows.d.ts.map +1 -1
  301. package/dist/tui/context-usage.d.ts +14 -0
  302. package/dist/tui/context-usage.d.ts.map +1 -1
  303. package/dist/tui/index.d.ts.map +1 -1
  304. package/dist/tui/launch-settings.d.ts +5 -2
  305. package/dist/tui/launch-settings.d.ts.map +1 -1
  306. package/dist/tui/plain-interruption.d.ts +3 -1
  307. package/dist/tui/plain-interruption.d.ts.map +1 -1
  308. package/dist/tui/resume-picker-state.d.ts +7 -0
  309. package/dist/tui/resume-picker-state.d.ts.map +1 -1
  310. package/dist/tui/slashCommands.d.ts +11 -0
  311. package/dist/tui/slashCommands.d.ts.map +1 -1
  312. package/dist/tui/tidy-tool-output.d.ts +3 -1
  313. package/dist/tui/tidy-tool-output.d.ts.map +1 -1
  314. package/dist/tui/tool-end-rows.d.ts +2 -0
  315. package/dist/tui/tool-end-rows.d.ts.map +1 -1
  316. package/dist/tui/zoom/entry.d.ts +34 -0
  317. package/dist/tui/zoom/entry.d.ts.map +1 -0
  318. package/dist/tui/zoom/gesture.d.ts +51 -0
  319. package/dist/tui/zoom/gesture.d.ts.map +1 -0
  320. package/dist/tui/zoom/leave.d.ts +11 -0
  321. package/dist/tui/zoom/leave.d.ts.map +1 -0
  322. package/dist/tui/zoom/local.d.ts +55 -0
  323. package/dist/tui/zoom/local.d.ts.map +1 -0
  324. package/dist/tui/zoom/proxy.d.ts +40 -0
  325. package/dist/tui/zoom/proxy.d.ts.map +1 -0
  326. package/package.json +9 -8
  327. package/dist/chunks/acp-P3S54TTC.js +0 -13601
  328. package/dist/chunks/acp-P3S54TTC.js.map +0 -6
  329. package/dist/chunks/activity-command-Y5ZLCQ63.js.map +0 -6
  330. package/dist/chunks/add-F7M57FGR.js.map +0 -6
  331. package/dist/chunks/agent-session-CFWQHSYT.js +0 -60
  332. package/dist/chunks/archive-6NM6DYAT.js.map +0 -6
  333. package/dist/chunks/chat-KGVPXQS6.js.map +0 -6
  334. package/dist/chunks/chunk-43PPWWYD.js +0 -1415
  335. package/dist/chunks/chunk-43PPWWYD.js.map +0 -6
  336. package/dist/chunks/chunk-7U36A4WQ.js.map +0 -6
  337. package/dist/chunks/chunk-EFEZWLZC.js.map +0 -6
  338. package/dist/chunks/chunk-KHM2XON5.js.map +0 -6
  339. package/dist/chunks/chunk-O4MFP726.js.map +0 -6
  340. package/dist/chunks/chunk-RFMODICJ.js.map +0 -6
  341. package/dist/chunks/chunk-RSRJQB6Q.js.map +0 -6
  342. package/dist/chunks/chunk-UHPRMPWX.js.map +0 -6
  343. package/dist/chunks/chunk-WKUTR7YW.js.map +0 -6
  344. package/dist/chunks/chunk-YAEHAYI4.js.map +0 -6
  345. package/dist/chunks/chunk-ZXKN4TWP.js.map +0 -6
  346. package/dist/chunks/cli-runtime-HTTDQPEZ.js.map +0 -6
  347. package/dist/chunks/exec-3JDAB34N.js.map +0 -6
  348. package/dist/chunks/host-queries-SO2NOQRR.js.map +0 -6
  349. package/dist/chunks/list-G6OA34RL.js.map +0 -6
  350. package/dist/chunks/mcp-EXFVIHPJ.js.map +0 -6
  351. package/dist/chunks/message-command-B4L2W4YZ.js.map +0 -6
  352. package/dist/chunks/operator-tools-TEP4UTI6.js.map +0 -6
  353. package/dist/chunks/pal-BUDEBIBJ.js.map +0 -6
  354. package/dist/chunks/resident-FSUGNG56.js.map +0 -6
  355. package/dist/chunks/resume-VXHGE5GC.js +0 -23
  356. package/dist/chunks/service-EP2QHCK7.js.map +0 -6
  357. package/dist/chunks/tui-L5GKR237.js.map +0 -6
  358. package/dist/chunks/worktree-ELHDXX4X.js.map +0 -6
  359. /package/dist/chunks/{agent-AFX2UZU5.js.map → agent-YPEXUYPH.js.map} +0 -0
  360. /package/dist/chunks/{agent-session-CFWQHSYT.js.map → agent-session-EZB2OYG3.js.map} +0 -0
  361. /package/dist/chunks/{bin-main-I6CHRYYQ.js.map → bin-main-PMB57AZJ.js.map} +0 -0
  362. /package/dist/chunks/{commands-ZD2L5QMI.js.map → binding-K6RIQ5AP.js.map} +0 -0
  363. /package/dist/chunks/{browser-OPMOTWTV.js.map → browser-SKTIAVBF.js.map} +0 -0
  364. /package/dist/chunks/{chunk-CTN4O42X.js.map → chunk-2EHPXO4E.js.map} +0 -0
  365. /package/dist/chunks/{chunk-LS75R55C.js.map → chunk-2NI5NS5S.js.map} +0 -0
  366. /package/dist/chunks/{chunk-RV5QY3IY.js.map → chunk-2U5M5IYH.js.map} +0 -0
  367. /package/dist/chunks/{chunk-PWOG3OMH.js.map → chunk-2X6JZAKH.js.map} +0 -0
  368. /package/dist/chunks/{chunk-BR6EWAKQ.js.map → chunk-3QGJXD7U.js.map} +0 -0
  369. /package/dist/chunks/{chunk-XFNCCDJK.js.map → chunk-435DYOG4.js.map} +0 -0
  370. /package/dist/chunks/{chunk-Y44FAVKA.js.map → chunk-4OXIJ2EF.js.map} +0 -0
  371. /package/dist/chunks/{chunk-UC3ZACVN.js.map → chunk-6FWFSPUL.js.map} +0 -0
  372. /package/dist/chunks/{chunk-WPNT6IGU.js.map → chunk-A5GTZ7R2.js.map} +0 -0
  373. /package/dist/chunks/{chunk-BIGRB2H4.js.map → chunk-ACSG5R5P.js.map} +0 -0
  374. /package/dist/chunks/{chunk-QV43JSBP.js.map → chunk-AI6PBE5G.js.map} +0 -0
  375. /package/dist/chunks/{chunk-HXZ2JXCO.js.map → chunk-AX5ESG6K.js.map} +0 -0
  376. /package/dist/chunks/{chunk-DESOZLEL.js.map → chunk-B3XIVOLM.js.map} +0 -0
  377. /package/dist/chunks/{chunk-ZUN2WRCB.js.map → chunk-DECJPLLA.js.map} +0 -0
  378. /package/dist/chunks/{chunk-GSYPRZZU.js.map → chunk-DFCJYRT5.js.map} +0 -0
  379. /package/dist/chunks/{chunk-QNTR7X7D.js.map → chunk-DQLSLXDF.js.map} +0 -0
  380. /package/dist/chunks/{chunk-6Z2ZJ4BA.js.map → chunk-FHQTXWDA.js.map} +0 -0
  381. /package/dist/chunks/{chunk-BLM6IQS4.js.map → chunk-GANFMGV7.js.map} +0 -0
  382. /package/dist/chunks/{chunk-REDD2WY7.js.map → chunk-GBS6ATYF.js.map} +0 -0
  383. /package/dist/chunks/{chunk-ORVWGSLG.js.map → chunk-GCCFTP47.js.map} +0 -0
  384. /package/dist/chunks/{chunk-FKIO77IY.js.map → chunk-GNEDN6MU.js.map} +0 -0
  385. /package/dist/chunks/{chunk-NS7EU37U.js.map → chunk-HB5ZN5KQ.js.map} +0 -0
  386. /package/dist/chunks/{chunk-EFQ6FUFZ.js.map → chunk-HELINLSD.js.map} +0 -0
  387. /package/dist/chunks/{chunk-AY7B43MK.js.map → chunk-HKCIZR5P.js.map} +0 -0
  388. /package/dist/chunks/{chunk-NPZY5OJ5.js.map → chunk-HTBMDD6Y.js.map} +0 -0
  389. /package/dist/chunks/{chunk-LN26A356.js.map → chunk-I5E4MT3C.js.map} +0 -0
  390. /package/dist/chunks/{chunk-KK2L4FD2.js.map → chunk-IJZ7SLBV.js.map} +0 -0
  391. /package/dist/chunks/{chunk-W4E2N7TY.js.map → chunk-IZVN6K6U.js.map} +0 -0
  392. /package/dist/chunks/{chunk-465CVUN4.js.map → chunk-L2NNJ4XL.js.map} +0 -0
  393. /package/dist/chunks/{chunk-JCUPTKQY.js.map → chunk-LF76CVOZ.js.map} +0 -0
  394. /package/dist/chunks/{chunk-ZATO2QOS.js.map → chunk-LFPTXRMM.js.map} +0 -0
  395. /package/dist/chunks/{chunk-WLUGKIYQ.js.map → chunk-LQRP2VRQ.js.map} +0 -0
  396. /package/dist/chunks/{chunk-UGAT33T5.js.map → chunk-LYGD5P7O.js.map} +0 -0
  397. /package/dist/chunks/{chunk-CRWNJ62V.js.map → chunk-M2OZ4SVS.js.map} +0 -0
  398. /package/dist/chunks/{chunk-I32JTWDW.js.map → chunk-MGZSEPDY.js.map} +0 -0
  399. /package/dist/chunks/{chunk-HYFX32Y3.js.map → chunk-MJBGVVI5.js.map} +0 -0
  400. /package/dist/chunks/{chunk-YPRKTJ5P.js.map → chunk-MYL75RA4.js.map} +0 -0
  401. /package/dist/chunks/{chunk-AE4LOPZF.js.map → chunk-PMX2WTZL.js.map} +0 -0
  402. /package/dist/chunks/{chunk-FPLDTTM2.js.map → chunk-QWSZ5P4C.js.map} +0 -0
  403. /package/dist/chunks/{chunk-T5POXPXY.js.map → chunk-RSIWTHYS.js.map} +0 -0
  404. /package/dist/chunks/{chunk-UP3SWACV.js.map → chunk-S4QOQGAT.js.map} +0 -0
  405. /package/dist/chunks/{chunk-ZRBGY4SL.js.map → chunk-SGRO4RJP.js.map} +0 -0
  406. /package/dist/chunks/{chunk-JAYPFJGZ.js.map → chunk-TZZOQ62Z.js.map} +0 -0
  407. /package/dist/chunks/{chunk-CMAZ3DYB.js.map → chunk-UGDZ7MLG.js.map} +0 -0
  408. /package/dist/chunks/{chunk-2NFPIARP.js.map → chunk-VFVWHYHT.js.map} +0 -0
  409. /package/dist/chunks/{chunk-5UB2LLPG.js.map → chunk-VZ4PKWLF.js.map} +0 -0
  410. /package/dist/chunks/{chunk-WLAI3VCE.js.map → chunk-WKFHQQOU.js.map} +0 -0
  411. /package/dist/chunks/{chunk-JSFF2HGX.js.map → chunk-WKPRYH24.js.map} +0 -0
  412. /package/dist/chunks/{chunk-VR4MTSMH.js.map → chunk-WQFHJ4TO.js.map} +0 -0
  413. /package/dist/chunks/{chunk-ZNYKZ3MI.js.map → chunk-XPLHAOGE.js.map} +0 -0
  414. /package/dist/chunks/{chunk-2NGXQQPP.js.map → chunk-XX2SP5AM.js.map} +0 -0
  415. /package/dist/chunks/{chunk-T2PF65KB.js.map → chunk-YDSWGJWF.js.map} +0 -0
  416. /package/dist/chunks/{chunk-LUSUJZR2.js.map → chunk-YJ6NWB2B.js.map} +0 -0
  417. /package/dist/chunks/{chunk-JH3SDABI.js.map → chunk-YUYNIAJX.js.map} +0 -0
  418. /package/dist/chunks/{chunk-TX2PUHTP.js.map → chunk-YXIG4OT2.js.map} +0 -0
  419. /package/dist/chunks/{crash-report-2IRIZSBD.js.map → commands-ZCNZVYTG.js.map} +0 -0
  420. /package/dist/chunks/{dist-FNGLTQIG.js.map → crash-report-K53VF4H5.js.map} +0 -0
  421. /package/dist/chunks/{dist-GSYFGRQT.js.map → dist-6IPPA55L.js.map} +0 -0
  422. /package/dist/chunks/{dist-45IFTDJW.js.map → dist-H53G25BE.js.map} +0 -0
  423. /package/dist/chunks/{dist-RQJEJN3Z.js.map → dist-L5LBM77I.js.map} +0 -0
  424. /package/dist/chunks/{dist-OJTB6QLR.js.map → dist-RIH2Q2ER.js.map} +0 -0
  425. /package/dist/chunks/{dist-OCZJJFHF.js.map → dist-RTIKLSUV.js.map} +0 -0
  426. /package/dist/chunks/{dist-TWYNAZDN.js.map → dist-T6KE7URX.js.map} +0 -0
  427. /package/dist/chunks/{doctor-NKPCWPB4.js.map → dist-VSJGDIXP.js.map} +0 -0
  428. /package/dist/chunks/{dist-NL7WG7PX.js.map → dist-XNGK3C4G.js.map} +0 -0
  429. /package/dist/chunks/{home-5OIZIDIT.js.map → doctor-DOCGTBME.js.map} +0 -0
  430. /package/dist/chunks/{drain-YTSVAQP5.js.map → drain-LT3J2MEA.js.map} +0 -0
  431. /package/dist/chunks/{eval-ILFXDQUQ.js.map → eval-DH26W2QK.js.map} +0 -0
  432. /package/dist/chunks/{github-FH7PPWVW.js.map → github-JTMZJAZL.js.map} +0 -0
  433. /package/dist/chunks/{lifecycle-RTDYXKBW.js.map → home-GGVNSCCU.js.map} +0 -0
  434. /package/dist/chunks/{live-44HBQCQY.js.map → host-6CUYPX4T.js.map} +0 -0
  435. /package/dist/chunks/{learn-RHNMJ4BD.js.map → learn-PAO3IOYA.js.map} +0 -0
  436. /package/dist/chunks/{learn-builtin-UQ3MWGK6.js.map → learn-builtin-DXZUXOGG.js.map} +0 -0
  437. /package/dist/chunks/{login-J4PWR4FM.js.map → lifecycle-KDN4D7DP.js.map} +0 -0
  438. /package/dist/chunks/{output-schema-FZXJ7V33.js.map → live-XWJ2JOFO.js.map} +0 -0
  439. /package/dist/chunks/{providers-EQ32NZAT.js.map → login-3Q2HKQUW.js.map} +0 -0
  440. /package/dist/chunks/{logs-22QAEH2Q.js.map → logs-UYB55HOX.js.map} +0 -0
  441. /package/dist/chunks/{resume-VXHGE5GC.js.map → open-QUDHJK5H.js.map} +0 -0
  442. /package/dist/chunks/{resume-command-DHPXCZVL.js.map → output-schema-TLW5FA37.js.map} +0 -0
  443. /package/dist/chunks/{session-step-44XBOUDV.js.map → palette-WDPS7W6Q.js.map} +0 -0
  444. /package/dist/chunks/{start-check-KVZFDBD3.js.map → peers-OBENILN2.js.map} +0 -0
  445. /package/dist/chunks/{store-JLTSSGKL.js.map → prefix-MLAG4KTK.js.map} +0 -0
  446. /package/dist/chunks/{store-KFJWAELA.js.map → providers-PJIHLTXP.js.map} +0 -0
  447. /package/dist/chunks/{store-QNY242NN.js.map → pty-HDEXCPR6.js.map} +0 -0
  448. /package/dist/chunks/{schedule-OJMZEWJG.js.map → schedule-42N4JOQJ.js.map} +0 -0
  449. /package/dist/chunks/{skills-YHAQXVP2.js.map → skills-V3VDOL3D.js.map} +0 -0
  450. /package/dist/chunks/{state-NXFKMBOX.js.map → state-HX3XRNPC.js.map} +0 -0
  451. /package/dist/chunks/{upgrade-PROVWX55.js.map → upgrade-HDW5MWLE.js.map} +0 -0
@@ -2,17 +2,10 @@ import { createRequire as __namzuCreateRequire } from 'node:module';
2
2
  const require = __namzuCreateRequire(import.meta.url);
3
3
  import {
4
4
  openManagedWorktrees
5
- } from "./chunk-LN26A356.js";
5
+ } from "./chunk-I5E4MT3C.js";
6
6
  import {
7
7
  createSessionSkillCatalog
8
- } from "./chunk-465CVUN4.js";
9
- import {
10
- connectMcpServers,
11
- startMcpServers
12
- } from "./chunk-2NFPIARP.js";
13
- import {
14
- openInBrowser
15
- } from "./chunk-GSYPRZZU.js";
8
+ } from "./chunk-L2NNJ4XL.js";
16
9
  import {
17
10
  SAVE_SKILL_TOOL_NAME,
18
11
  attachAgentView,
@@ -30,45 +23,55 @@ import {
30
23
  viewFromJournal,
31
24
  withSandboxShell,
32
25
  workingDirectoryProblem
33
- } from "./chunk-6Z2ZJ4BA.js";
34
- import {
35
- ensureLocalConfigIgnored,
36
- logIgnoreOutcome,
37
- writeLocalAllows
38
- } from "./chunk-ORVWGSLG.js";
26
+ } from "./chunk-FHQTXWDA.js";
39
27
  import {
40
28
  runGeneratorCycle
41
- } from "./chunk-JSFF2HGX.js";
29
+ } from "./chunk-WKPRYH24.js";
42
30
  import {
43
31
  createSessionLearningFeed,
44
32
  openLearningTarget,
45
33
  readProjectGuidance,
46
34
  withSessionLearningFeed
47
- } from "./chunk-BR6EWAKQ.js";
35
+ } from "./chunk-3QGJXD7U.js";
36
+ import {
37
+ connectMcpServers,
38
+ startMcpServers
39
+ } from "./chunk-VFVWHYHT.js";
40
+ import {
41
+ openInBrowser
42
+ } from "./chunk-DFCJYRT5.js";
43
+ import {
44
+ ensureLocalConfigIgnored,
45
+ logIgnoreOutcome,
46
+ writeLocalAllows
47
+ } from "./chunk-GCCFTP47.js";
48
48
  import {
49
49
  createBrowserControl
50
50
  } from "./chunk-WHODOMXA.js";
51
51
  import {
52
52
  conversationInUseSentence,
53
53
  minutesUntilFree
54
- } from "./chunk-KHM2XON5.js";
54
+ } from "./chunk-7TEXDZVO.js";
55
+ import {
56
+ discoverSkills,
57
+ loadSkillBody
58
+ } from "./chunk-2EHPXO4E.js";
59
+ import {
60
+ openCliAccounts
61
+ } from "./chunk-VDKDXDOH.js";
55
62
  import {
56
63
  CredentialRefreshRejectedError,
57
- CredentialWithdrawnError,
64
+ CredentialWithdrawnError as CredentialWithdrawnError2,
58
65
  ensureFreshAnthropicToken,
59
66
  ensureFreshStoredCodexCredential,
60
67
  readSubscriptionCredential,
61
68
  sameOAuthCredential
62
- } from "./chunk-ZXKN4TWP.js";
63
- import {
64
- discoverSkills,
65
- loadSkillBody
66
- } from "./chunk-CTN4O42X.js";
69
+ } from "./chunk-BGKQCLLH.js";
67
70
  import {
68
71
  createLazyCodeAnalysis,
69
72
  promptCacheTtl,
70
73
  setPromptCacheTtl
71
- } from "./chunk-AE4LOPZF.js";
74
+ } from "./chunk-PMX2WTZL.js";
72
75
  import {
73
76
  LOCAL_CONFIG_FILE,
74
77
  configuredPassthroughTools,
@@ -77,7 +80,7 @@ import {
77
80
  sessionWorkflowSizeAdvice,
78
81
  unmatchedPassthroughTools,
79
82
  workflowTokenCeiling
80
- } from "./chunk-UHPRMPWX.js";
83
+ } from "./chunk-LKJBDF7W.js";
81
84
  import {
82
85
  require_dist
83
86
  } from "./chunk-KONYGNG6.js";
@@ -97,44 +100,47 @@ import {
97
100
  canSelectModel,
98
101
  chainCapabilityDisagreements,
99
102
  chainPositionName,
100
- composeEnvironmentPrompt,
101
103
  createGeminiAccessTokenResolver,
102
104
  describeAcceptedMismatch,
103
105
  describeCapabilityRefusal,
104
- detectWsl,
105
106
  discoverProviders,
106
107
  ensureRegistered,
107
- environmentFactLines,
108
108
  findDetected,
109
109
  hasApiCredential,
110
- isAnthropicOAuthToken,
111
110
  isRegistered,
112
- permissionSentence,
113
111
  primaryProvider,
114
- readCodexCredentialFile,
115
- readEnvironmentFacts,
116
112
  readPreferences,
117
113
  requiresCredentialForModel,
118
114
  resolveChainCapabilities,
119
115
  unresolvedMembers
120
- } from "./chunk-43PPWWYD.js";
116
+ } from "./chunk-26C37THH.js";
121
117
  import {
122
118
  PROVIDER_REGISTRY,
123
119
  missingCredentialMessage,
124
120
  unsupportedProviderMessage
125
121
  } from "./chunk-6LLJQ3KY.js";
122
+ import {
123
+ composeEnvironmentPrompt,
124
+ detectWsl,
125
+ environmentFactLines,
126
+ isAnthropicOAuthToken,
127
+ permissionSentence,
128
+ readCodexCredentialFile,
129
+ readEnvironmentFacts
130
+ } from "./chunk-LKODRKMZ.js";
126
131
  import {
127
132
  isPermissionMode,
128
133
  permissionModeLabel
129
- } from "./chunk-5UB2LLPG.js";
134
+ } from "./chunk-VZ4PKWLF.js";
130
135
  import {
131
136
  conversationLogPath,
132
137
  ensureSessionStarted,
133
- openConversationLog
134
- } from "./chunk-7U36A4WQ.js";
138
+ openConversationLog,
139
+ recordAccountBound
140
+ } from "./chunk-JL64XHSL.js";
135
141
  import {
136
142
  readIdentity
137
- } from "./chunk-HYFX32Y3.js";
143
+ } from "./chunk-MJBGVVI5.js";
138
144
  import {
139
145
  INSTRUCTIONS_FILENAME,
140
146
  MAX_CHARS_PER_FILE,
@@ -143,18 +149,21 @@ import {
143
149
  isContainedBy,
144
150
  readInstructionAt
145
151
  } from "./chunk-JQIBPPOL.js";
152
+ import {
153
+ isDefaultAccountId
154
+ } from "./chunk-BT7ZELXJ.js";
146
155
  import {
147
156
  probeCapabilities
148
157
  } from "./chunk-OH6TB27S.js";
149
158
  import {
150
159
  compilePermissions
151
- } from "./chunk-CRWNJ62V.js";
160
+ } from "./chunk-M2OZ4SVS.js";
152
161
  import {
153
162
  PERMISSION_MODE_NAMES
154
163
  } from "./chunk-WMEZTDLT.js";
155
164
  import {
156
165
  cliLogger
157
- } from "./chunk-DESOZLEL.js";
166
+ } from "./chunk-B3XIVOLM.js";
158
167
  import {
159
168
  readModelLaunchEnvironment
160
169
  } from "./chunk-3NJPNX6V.js";
@@ -167,13 +176,13 @@ import {
167
176
  } from "./chunk-IE5XIE4W.js";
168
177
  import {
169
178
  ensurePrivateStateDirectory
170
- } from "./chunk-EFQ6FUFZ.js";
179
+ } from "./chunk-HELINLSD.js";
171
180
  import {
172
181
  restrictToOwner
173
- } from "./chunk-JAYPFJGZ.js";
182
+ } from "./chunk-TZZOQ62Z.js";
174
183
  import {
175
184
  namzuHomePath
176
- } from "./chunk-NS7EU37U.js";
185
+ } from "./chunk-HB5ZN5KQ.js";
177
186
  import {
178
187
  AgentManager,
179
188
  AgentRegistry,
@@ -187,6 +196,7 @@ import {
187
196
  COMPUTER_USE_TOOL_NAME,
188
197
  CacheClock,
189
198
  CompletionInbox,
199
+ CredentialWithdrawnError,
190
200
  DefaultCapacityValidator,
191
201
  DiskMemoryStore,
192
202
  DiskSessionCheckpointStore,
@@ -349,7 +359,7 @@ import {
349
359
  windowsShellNotice,
350
360
  withProviderFallback,
351
361
  wrapUntrusted
352
- } from "./chunk-O4MFP726.js";
362
+ } from "./chunk-YTE3QIH3.js";
353
363
  import {
354
364
  __name,
355
365
  __toESM
@@ -495,12 +505,12 @@ function createCurrentCredentialReader() {
495
505
  signal?.throwIfAborted();
496
506
  const origin = oauth.origin ?? "keychain";
497
507
  const credential = readSubscriptionCredential(origin, oauth.sourcePath);
498
- if (!credential) throw new CredentialWithdrawnError();
508
+ if (!credential) throw new CredentialWithdrawnError2();
499
509
  const metadata = { ...oauth, ...credential, origin };
500
510
  const token = origin === "keychain" ? credential.accessToken : await ensureFreshAnthropicToken(credential.accessToken, metadata, signal);
501
511
  signal?.throwIfAborted();
502
512
  if (token === credential.accessToken && credential.expiresAt !== void 0 && credential.expiresAt <= Date.now()) {
503
- throw new CredentialWithdrawnError(
513
+ throw new CredentialWithdrawnError2(
504
514
  "The Claude credential is still expired after renewal. Retry when its owner has refreshed it, or sign in with /login."
505
515
  );
506
516
  }
@@ -920,10 +930,10 @@ __name(estimateHistoryTokens, "estimateHistoryTokens");
920
930
  function compactResultLine(input) {
921
931
  const parts = [COMPACT_RESULT_TEXT];
922
932
  if (input.shed > 0) parts.push(`${input.shed} message${input.shed === 1 ? "" : "s"} summarized`);
923
- if (input.tokensBefore > input.tokensAfter) {
924
- parts.push(
925
- `context about ${approximate(input.tokensBefore)} to ${approximate(input.tokensAfter)} tokens`
926
- );
933
+ const before = approximate(input.tokensBefore);
934
+ const after = approximate(input.tokensAfter);
935
+ if (input.tokensBefore > input.tokensAfter && before !== after) {
936
+ parts.push(`context about ${before} to ${after} tokens`);
927
937
  }
928
938
  return parts.join(" \xB7 ");
929
939
  }
@@ -931,7 +941,9 @@ __name(compactResultLine, "compactResultLine");
931
941
  var NOTHING_TO_COMPACT_TEXT = "Nothing to compact yet. The conversation is still short enough.";
932
942
  var COMPACT_NOT_SAVED_TEXT = "This conversation could not be saved, so the summary lasts only until you quit.";
933
943
  function approximate(tokens) {
934
- return tokens >= 1e3 ? `${Math.round(tokens / 1e3)}k` : String(tokens);
944
+ if (tokens >= 1e4) return `${Math.round(tokens / 1e3)}k`;
945
+ if (tokens >= 1e3) return `${Math.round(tokens / 100) / 10}k`;
946
+ return String(tokens);
935
947
  }
936
948
  __name(approximate, "approximate");
937
949
  function compactionHistoryLines(event) {
@@ -1699,7 +1711,9 @@ function unknownToolNotice(result) {
1699
1711
  }
1700
1712
  __name(unknownToolNotice, "unknownToolNotice");
1701
1713
  var INVALID_PARAMETERS = "Invalid tool parameters";
1702
- function declinedLine(note) {
1714
+ var STOPPED_BY_YOU_LINE = "You stopped this, so it did not run.";
1715
+ function declinedLine(note, stopped = false) {
1716
+ if (stopped) return STOPPED_BY_YOU_LINE;
1703
1717
  const said = note?.replace(/\s+/g, " ").trim();
1704
1718
  return said ? `You declined this, so it did not run. You said: \u201C${said}\u201D` : "You declined this, so it did not run.";
1705
1719
  }
@@ -14575,13 +14589,14 @@ function clipRequestContext(prompt, limit, kind) {
14575
14589
  return prompt.slice(0, end).trimEnd() + notice2;
14576
14590
  }
14577
14591
  __name(clipRequestContext, "clipRequestContext");
14578
- async function createAgentSession(prefs, detected, options = {}) {
14592
+ async function createAgentSession(prefs, detectedProviders, options = {}) {
14579
14593
  const modelEnvironment = readModelLaunchEnvironment();
14580
14594
  if (options.palEnvironment) {
14581
- const { createPalAgentSession } = await import("./agent-session-CFWQHSYT.js");
14582
- return createPalAgentSession(prefs, detected, options);
14595
+ const { createPalAgentSession } = await import("./agent-session-EZB2OYG3.js");
14596
+ return createPalAgentSession(prefs, detectedProviders, options);
14583
14597
  }
14584
- const { palAtWorkspace } = await import("./store-QNY242NN.js");
14598
+ let detected = detectedProviders;
14599
+ const { palAtWorkspace } = await import("./store-IX6KNJA4.js");
14585
14600
  if (palAtWorkspace(options.cwd ?? process.cwd()))
14586
14601
  throw new Error("This Pal requires its owned virtual computer. Open it with namzu pal chat.");
14587
14602
  const commandArguments = builtinCommandArguments();
@@ -14679,6 +14694,46 @@ async function createAgentSession(prefs, detected, options = {}) {
14679
14694
  if (!entry) {
14680
14695
  return emptySession(`Unknown provider "${primary.id}" \u2014 pick another.`, "invocation");
14681
14696
  }
14697
+ let boundAccount;
14698
+ let accountsHandle;
14699
+ if (primary.account !== void 0 && !isDefaultAccountId(primary.account)) {
14700
+ accountsHandle = options.accounts ?? openCliAccounts();
14701
+ const found = accountsHandle.registry.get(primary.account);
14702
+ if (!found || found.provider !== primary.id) {
14703
+ return emptySession(
14704
+ "That account is no longer set up. Choose another with /auth.",
14705
+ "invocation"
14706
+ );
14707
+ }
14708
+ let resolved;
14709
+ try {
14710
+ resolved = await accountsHandle.registry.resolve(found.id, AbortSignal.timeout(3e4));
14711
+ } catch (err) {
14712
+ return emptySession(
14713
+ err instanceof CredentialWithdrawnError ? `${found.label} needs to be signed in again. Choose it in /auth to add it once more, or pick another account.` : explainFailure(err, `Namzu could not use the account ${found.label}.`),
14714
+ "environment",
14715
+ describeError2(err)
14716
+ );
14717
+ }
14718
+ boundAccount = found;
14719
+ detected = [
14720
+ ...detected.filter((item) => item.entry.id !== primary.id),
14721
+ {
14722
+ entry,
14723
+ source: { kind: "session" },
14724
+ apiKey: resolved.accessToken,
14725
+ ...resolved.baseUrl !== void 0 ? { baseUrl: resolved.baseUrl } : {},
14726
+ ...primary.id === "codex" && resolved.accountId !== void 0 ? {
14727
+ codex: {
14728
+ accountId: resolved.accountId,
14729
+ ...resolved.expiresAt !== void 0 ? { expiresAt: resolved.expiresAt } : {},
14730
+ origin: "stored"
14731
+ }
14732
+ } : {},
14733
+ alternatives: []
14734
+ }
14735
+ ];
14736
+ }
14682
14737
  const det = findDetected(detected, primary.id);
14683
14738
  if (requiresCredentialForModel(entry, primary.model ?? entry.defaultModel) && !hasApiCredential(entry, det?.apiKey)) {
14684
14739
  return emptySession(
@@ -14731,7 +14786,7 @@ async function createAgentSession(prefs, detected, options = {}) {
14731
14786
  const subscriptionRefresh = primary.id === "anthropic" && (det?.oauth?.origin === "stored" || det?.oauth?.origin === "claude-file");
14732
14787
  const borrowedAnthropic = primary.id === "anthropic" && det?.oauth?.origin === "keychain";
14733
14788
  const borrowedCodexPath = primary.id === "codex" && det?.source.kind === "codex-file" ? det.source.path : void 0;
14734
- const storedCodex = primary.id === "codex" && det?.codex?.origin === "stored";
14789
+ const storedCodex = primary.id === "codex" && det?.codex?.origin === "stored" && boundAccount === void 0;
14735
14790
  const credentialOrigin = det?.oauth?.origin ?? "keychain";
14736
14791
  const credentialPath = det?.oauth?.sourcePath;
14737
14792
  let currentToken = det?.apiKey;
@@ -14741,7 +14796,7 @@ async function createAgentSession(prefs, detected, options = {}) {
14741
14796
  const performRefresh = /* @__PURE__ */ __name(async (signal) => {
14742
14797
  signal?.throwIfAborted();
14743
14798
  const cred = readSubscriptionCredential(credentialOrigin, credentialPath);
14744
- if (!cred) throw new CredentialWithdrawnError();
14799
+ if (!cred) throw new CredentialWithdrawnError2();
14745
14800
  if (rejectedRefresh && sameOAuthCredential(rejectedRefresh.credential, cred)) {
14746
14801
  throw rejectedRefresh.error;
14747
14802
  }
@@ -14763,7 +14818,7 @@ async function createAgentSession(prefs, detected, options = {}) {
14763
14818
  if (error instanceof CredentialRefreshRejectedError) {
14764
14819
  signal?.throwIfAborted();
14765
14820
  const current = readSubscriptionCredential(credentialOrigin, credentialPath);
14766
- if (!current) throw new CredentialWithdrawnError();
14821
+ if (!current) throw new CredentialWithdrawnError2();
14767
14822
  if (sameOAuthCredential(current, cred)) {
14768
14823
  rejectedRefresh = { credential: cred, error };
14769
14824
  }
@@ -14793,12 +14848,12 @@ async function createAgentSession(prefs, detected, options = {}) {
14793
14848
  if (!borrowedCodexPath) return;
14794
14849
  const credential = readCodexCredentialFile(borrowedCodexPath);
14795
14850
  if (!credential) {
14796
- throw new CredentialWithdrawnError(
14851
+ throw new CredentialWithdrawnError2(
14797
14852
  "The Codex sign-in Namzu borrowed is no longer available. Run `codex login` or choose another provider."
14798
14853
  );
14799
14854
  }
14800
14855
  if (credential.expiresAt !== void 0 && credential.expiresAt - Date.now() <= 6e4) {
14801
- throw new CredentialWithdrawnError(
14856
+ throw new CredentialWithdrawnError2(
14802
14857
  "The Codex sign-in on this computer has expired. Run `codex login` to refresh it, then retry in Namzu."
14803
14858
  );
14804
14859
  }
@@ -14828,12 +14883,12 @@ async function createAgentSession(prefs, detected, options = {}) {
14828
14883
  if (!borrowedAnthropic) return;
14829
14884
  const credential = readSubscriptionCredential(credentialOrigin, credentialPath);
14830
14885
  if (!credential) {
14831
- throw new CredentialWithdrawnError(
14886
+ throw new CredentialWithdrawnError2(
14832
14887
  "The Claude sign-in Namzu borrowed is no longer available. Run `claude login` or choose another provider."
14833
14888
  );
14834
14889
  }
14835
14890
  if (credential.expiresAt !== void 0 && credential.expiresAt - Date.now() <= 6e4) {
14836
- throw new CredentialWithdrawnError(
14891
+ throw new CredentialWithdrawnError2(
14837
14892
  "The Claude sign-in on this computer has expired. Run `claude login` to refresh it, then retry in Namzu."
14838
14893
  );
14839
14894
  }
@@ -14869,14 +14924,53 @@ async function createAgentSession(prefs, detected, options = {}) {
14869
14924
  currentToken = credential.accessToken;
14870
14925
  currentCodexAccount = credential.accountId;
14871
14926
  }, "refreshStoredCodex");
14927
+ const accountCodexHome = boundAccount?.source.kind === "codex-home" ? boundAccount : void 0;
14928
+ const refreshAccountCodex = /* @__PURE__ */ __name(async (signal) => {
14929
+ if (!accountCodexHome || !accountsHandle) return;
14930
+ let credential;
14931
+ try {
14932
+ credential = await accountsHandle.registry.resolve(
14933
+ accountCodexHome.id,
14934
+ signal ?? AbortSignal.timeout(3e4)
14935
+ );
14936
+ } catch (error) {
14937
+ if (error instanceof CredentialWithdrawnError) {
14938
+ throw new CredentialWithdrawnError2(
14939
+ `${accountCodexHome.label} needs to be signed in again. Choose another account with /auth.`
14940
+ );
14941
+ }
14942
+ throw error;
14943
+ }
14944
+ if (credential.accessToken === currentToken && credential.accountId === currentCodexAccount) {
14945
+ return;
14946
+ }
14947
+ if (credential.accountId === void 0) return;
14948
+ provider = constructProvider(
14949
+ "codex",
14950
+ {
14951
+ ...det,
14952
+ apiKey: credential.accessToken,
14953
+ codex: {
14954
+ accountId: credential.accountId,
14955
+ ...credential.expiresAt !== void 0 ? { expiresAt: credential.expiresAt } : {},
14956
+ origin: "stored"
14957
+ }
14958
+ },
14959
+ model,
14960
+ { sessionId: scope2.sessionId }
14961
+ );
14962
+ currentToken = credential.accessToken;
14963
+ currentCodexAccount = credential.accountId;
14964
+ }, "refreshAccountCodex");
14872
14965
  const prepareProviderCredential = /* @__PURE__ */ __name((signal) => {
14873
- if (!subscriptionRefresh && !borrowedAnthropic && !borrowedCodexPath && !storedCodex) {
14966
+ if (!subscriptionRefresh && !borrowedAnthropic && !borrowedCodexPath && !storedCodex && !accountCodexHome) {
14874
14967
  signal?.throwIfAborted();
14875
14968
  return Promise.resolve();
14876
14969
  }
14877
14970
  signal?.throwIfAborted();
14878
14971
  const queued = credentialTail.then(async () => {
14879
- if (subscriptionRefresh) await performRefresh(signal);
14972
+ if (accountCodexHome) await refreshAccountCodex(signal);
14973
+ else if (subscriptionRefresh) await performRefresh(signal);
14880
14974
  else if (borrowedAnthropic) rereadBorrowedAnthropic(signal);
14881
14975
  else if (storedCodex) await refreshStoredCodex(signal);
14882
14976
  else rereadBorrowedCodex(signal);
@@ -15758,7 +15852,7 @@ async function createAgentSession(prefs, detected, options = {}) {
15758
15852
  );
15759
15853
  toolsets.push(options.toolLoading === "eager" ? monitorToolset : deferred(monitorToolset));
15760
15854
  }
15761
- const operatorPals = await import("./operator-tools-TEP4UTI6.js");
15855
+ const operatorPals = await import("./operator-tools-43NL7HKO.js");
15762
15856
  toolsets.push(
15763
15857
  readyWhen(
15764
15858
  toolset(
@@ -16362,8 +16456,21 @@ async function createAgentSession(prefs, detected, options = {}) {
16362
16456
  if (failure) yield { kind: "error", message: failure.message };
16363
16457
  })();
16364
16458
  }, "resumePausedStream");
16459
+ const recordedAccountFor = /* @__PURE__ */ new Map();
16460
+ const accountBadge = (() => {
16461
+ if (boundAccount) {
16462
+ return { id: boundAccount.id, label: boundAccount.label, provider: boundAccount.provider };
16463
+ }
16464
+ try {
16465
+ const handle = options.accounts ?? openCliAccounts();
16466
+ return handle.registry.list(primary.id).some((item) => item.label !== "default") ? { id: `${primary.id}:default`, label: "default", provider: primary.id } : void 0;
16467
+ } catch {
16468
+ return void 0;
16469
+ }
16470
+ })();
16365
16471
  const agentSession = {
16366
16472
  hasProvider: true,
16473
+ ...accountBadge ? { account: accountBadge } : {},
16367
16474
  autoMode: {
16368
16475
  available: sessionClassifier !== void 0,
16369
16476
  ...autoModeReason !== void 0 ? { reason: autoModeReason } : {},
@@ -17226,6 +17333,35 @@ async function createAgentSession(prefs, detected, options = {}) {
17226
17333
  }
17227
17334
  );
17228
17335
  }
17336
+ if (boundAccount && accountsHandle) {
17337
+ accountsHandle.activity.markUsed(boundAccount.id, Date.now());
17338
+ if (!options.ephemeral && options.conversationSessions && options.accountReason !== void 0 && recordedAccountFor.get(turnScope.sessionId) !== boundAccount.id) {
17339
+ try {
17340
+ await recordAccountBound(options.conversationSessions, turnScope.sessionId, {
17341
+ accountId: boundAccount.id,
17342
+ provider: boundAccount.provider,
17343
+ reason: options.accountReason
17344
+ });
17345
+ recordedAccountFor.set(turnScope.sessionId, boundAccount.id);
17346
+ } catch (error) {
17347
+ cliLogger().warn("account binding was not recorded", exceptionAttributes(error));
17348
+ }
17349
+ }
17350
+ } else if (!boundAccount && !options.ephemeral && options.conversationSessions && options.accountReason !== void 0) {
17351
+ const usual = `${primary.id}:default`;
17352
+ if (recordedAccountFor.get(turnScope.sessionId) !== usual) {
17353
+ try {
17354
+ await recordAccountBound(options.conversationSessions, turnScope.sessionId, {
17355
+ accountId: usual,
17356
+ provider: primary.id,
17357
+ reason: options.accountReason
17358
+ });
17359
+ recordedAccountFor.set(turnScope.sessionId, usual);
17360
+ } catch (error) {
17361
+ cliLogger().warn("account binding was not recorded", exceptionAttributes(error));
17362
+ }
17363
+ }
17364
+ }
17229
17365
  try {
17230
17366
  for await (const event of runTurn({
17231
17367
  provider: textOnlyModels.informing(turnProvider),
@@ -17677,7 +17813,7 @@ async function describeProviderModels(id, det, signal) {
17677
17813
  kind: "failed",
17678
17814
  reason: err instanceof Error ? err.message : String(err),
17679
17815
  cause: modelListingCause(err),
17680
- ...err instanceof CredentialWithdrawnError ? { failure: "credential-unavailable" } : isCredentialRejection(err) ? { failure: "authentication" } : {}
17816
+ ...err instanceof CredentialWithdrawnError2 ? { failure: "credential-unavailable" } : isCredentialRejection(err) ? { failure: "authentication" } : {}
17681
17817
  };
17682
17818
  }
17683
17819
  }
@@ -18846,4 +18982,4 @@ export {
18846
18982
  RESULT_SUMMARY_WHOLE_MAX,
18847
18983
  resultSummaryLine
18848
18984
  };
18849
- //# sourceMappingURL=chunk-RSRJQB6Q.js.map
18985
+ //# sourceMappingURL=chunk-6EJFXJDO.js.map