@namzu/cli 45.1.0 → 45.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 (264) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +1 -1
  3. package/dist/bin.js +1 -1
  4. package/dist/chunks/{acp-CGGPX6FV.js → acp-TYPW7WFK.js} +14 -12
  5. package/dist/chunks/acp-TYPW7WFK.js.map +6 -0
  6. package/dist/chunks/{add-7F26IYNU.js → add-QEKJGVR4.js} +7 -6
  7. package/dist/chunks/add-QEKJGVR4.js.map +6 -0
  8. package/dist/chunks/{agent-42PYZGA5.js → agent-JWTNZ4PK.js} +10 -8
  9. package/dist/chunks/{agent-session-SYLDVKFJ.js → agent-session-OGPKSSKG.js} +11 -9
  10. package/dist/chunks/{bin-main-NID46PS7.js → bin-main-UI3NYIJE.js} +4 -4
  11. package/dist/chunks/{chat-WBJPS4K6.js → chat-F3WXVEDM.js} +2 -2
  12. package/dist/chunks/chunk-2IPDTDB3.js +80 -0
  13. package/dist/chunks/chunk-2IPDTDB3.js.map +6 -0
  14. package/dist/chunks/{chunk-U4ZP2JN2.js → chunk-4E33SWZU.js} +2 -2
  15. package/dist/chunks/{chunk-GXP5BKCZ.js → chunk-4WHMQBUC.js} +115 -92
  16. package/dist/chunks/{chunk-GXP5BKCZ.js.map → chunk-4WHMQBUC.js.map} +1 -1
  17. package/dist/chunks/{chunk-G742EI3J.js → chunk-4YBTLYYH.js} +82 -53
  18. package/dist/chunks/chunk-4YBTLYYH.js.map +6 -0
  19. package/dist/chunks/{chunk-NCW3WBBI.js → chunk-6NDJLXKW.js} +2 -2
  20. package/dist/chunks/chunk-6ULKBT6P.js +83 -0
  21. package/dist/chunks/chunk-6ULKBT6P.js.map +6 -0
  22. package/dist/chunks/{chunk-F2QERXWD.js → chunk-6WPKPHE2.js} +3 -3
  23. package/dist/chunks/{chunk-RBH2FDM5.js → chunk-6XL5ZMAL.js} +2 -2
  24. package/dist/chunks/{chunk-OYX743QK.js → chunk-7XAUAIGO.js} +586 -440
  25. package/dist/chunks/chunk-7XAUAIGO.js.map +6 -0
  26. package/dist/chunks/{chunk-LQN7NG2F.js → chunk-A72NRUYG.js} +6 -6
  27. package/dist/chunks/{chunk-IFXYNA2K.js → chunk-ADG5OPNS.js} +2 -2
  28. package/dist/chunks/{chunk-OM3EDVLG.js → chunk-CAOGKKB5.js} +2 -2
  29. package/dist/chunks/{chunk-L2WEBN6A.js → chunk-DH4X2E6M.js} +2 -2
  30. package/dist/chunks/{chunk-L2WEBN6A.js.map → chunk-DH4X2E6M.js.map} +1 -1
  31. package/dist/chunks/{chunk-AR2GPJUO.js → chunk-E3OXUQQB.js} +1 -66
  32. package/dist/chunks/chunk-E3OXUQQB.js.map +6 -0
  33. package/dist/chunks/{chunk-XSAEGHPS.js → chunk-EPIIR5CJ.js} +3 -3
  34. package/dist/chunks/{chunk-OXM3GHWE.js → chunk-EVZAGFTY.js} +6 -6
  35. package/dist/chunks/{chunk-OXM3GHWE.js.map → chunk-EVZAGFTY.js.map} +1 -1
  36. package/dist/chunks/{chunk-Q3AB63M5.js → chunk-GSAYGBOR.js} +23 -11
  37. package/dist/chunks/{chunk-Q3AB63M5.js.map → chunk-GSAYGBOR.js.map} +2 -2
  38. package/dist/chunks/{chunk-6LMIJ2YT.js → chunk-H2JLRNYH.js} +2 -2
  39. package/dist/chunks/{chunk-2YKQMUTC.js → chunk-HB4LEJMU.js} +12 -335
  40. package/dist/chunks/chunk-HB4LEJMU.js.map +6 -0
  41. package/dist/chunks/{chunk-P2Y3IUE6.js → chunk-L3XUPXPP.js} +3 -3
  42. package/dist/chunks/{chunk-5VBA5XSC.js → chunk-LOKFLXQL.js} +2 -2
  43. package/dist/chunks/{chunk-FU776PDS.js → chunk-Q6RZ64FS.js} +2 -2
  44. package/dist/chunks/chunk-QLDUL46Z.js +338 -0
  45. package/dist/chunks/chunk-QLDUL46Z.js.map +6 -0
  46. package/dist/chunks/{chunk-S7WRWA25.js → chunk-RI2KAZJO.js} +2 -2
  47. package/dist/chunks/{chunk-S7WRWA25.js.map → chunk-RI2KAZJO.js.map} +1 -1
  48. package/dist/chunks/{chunk-SSE5CXYL.js → chunk-RISNSR62.js} +2 -2
  49. package/dist/chunks/{chunk-SSE5CXYL.js.map → chunk-RISNSR62.js.map} +1 -1
  50. package/dist/chunks/{chunk-BDHXJ7BM.js → chunk-TCRGKEEX.js} +3 -1
  51. package/dist/chunks/chunk-TCRGKEEX.js.map +6 -0
  52. package/dist/chunks/{chunk-W7XKWKEZ.js → chunk-U5BN3L3Y.js} +2 -2
  53. package/dist/chunks/{chunk-2UATEMPS.js → chunk-UQJPNUDU.js} +2 -2
  54. package/dist/chunks/chunk-V45XJDX3.js +176 -0
  55. package/dist/chunks/chunk-V45XJDX3.js.map +6 -0
  56. package/dist/chunks/{chunk-OMRGJSUJ.js → chunk-VZC7FE4F.js} +84 -93
  57. package/dist/chunks/chunk-VZC7FE4F.js.map +6 -0
  58. package/dist/chunks/{chunk-O7H4QZ7I.js → chunk-W6E3PSFH.js} +2 -2
  59. package/dist/chunks/{chunk-K3UL7Z4X.js → chunk-X4TNXFUB.js} +22 -9
  60. package/dist/chunks/chunk-X4TNXFUB.js.map +6 -0
  61. package/dist/chunks/{chunk-PCWQ3ET3.js → chunk-XHR3UCKT.js} +2 -2
  62. package/dist/chunks/{chunk-F4B77QJQ.js → chunk-XOIXLN2Y.js} +3 -3
  63. package/dist/chunks/{cli-runtime-OBTTHZZI.js → cli-runtime-QOMHGRZL.js} +5 -4
  64. package/dist/chunks/cli-runtime-QOMHGRZL.js.map +6 -0
  65. package/dist/chunks/{crash-report-3IE2RFYG.js → crash-report-KHJZ3AKU.js} +3 -3
  66. package/dist/chunks/{doctor-QGFOTR5H.js → doctor-LCRG5FBA.js} +6 -6
  67. package/dist/chunks/{drain-5WSM4MTM.js → drain-47IMDCI5.js} +2 -2
  68. package/dist/chunks/{entry-HLIJKK65.js → entry-P6YPWRQW.js} +26 -20
  69. package/dist/chunks/{entry-HLIJKK65.js.map → entry-P6YPWRQW.js.map} +1 -1
  70. package/dist/chunks/{exec-7YEZ64T4.js → exec-ELIM7XVY.js} +13 -10
  71. package/dist/chunks/exec-ELIM7XVY.js.map +6 -0
  72. package/dist/chunks/{host-663JLCCW.js → host-QE4D3UXC.js} +10 -8
  73. package/dist/chunks/{host-queries-7CSOWEPE.js → host-queries-5H765XNX.js} +2 -2
  74. package/dist/chunks/{learn-NNBHDBLF.js → learn-Y5IBBZDY.js} +2 -2
  75. package/dist/chunks/{learn-builtin-YEDJT6ZP.js → learn-builtin-ND3T6U5L.js} +3 -3
  76. package/dist/chunks/{lifecycle-NDR7R22S.js → lifecycle-FJS7LD7B.js} +9 -8
  77. package/dist/chunks/{list-GIP6KAYZ.js → list-6HQMG7TU.js} +5 -4
  78. package/dist/chunks/list-6HQMG7TU.js.map +6 -0
  79. package/dist/chunks/{live-FJISKPXJ.js → live-CSA2LX3R.js} +5 -5
  80. package/dist/chunks/{mcp-EBVO25Q2.js → mcp-5RQSD6QV.js} +4 -3
  81. package/dist/chunks/mcp-5RQSD6QV.js.map +6 -0
  82. package/dist/chunks/{message-command-YIHQF33L.js → message-command-V3CL4DNT.js} +13 -11
  83. package/dist/chunks/message-command-V3CL4DNT.js.map +6 -0
  84. package/dist/chunks/{mouse-WFSJSLQD.js → mouse-EJQML44I.js} +2 -2
  85. package/dist/chunks/{pal-IOPI5RKZ.js → pal-WXN4O3DD.js} +3 -3
  86. package/dist/chunks/{palette-WDPS7W6Q.js → palette-CL5OOYGK.js} +10 -4
  87. package/dist/chunks/{peers-MZD3KTZK.js → peers-JQOUU3CX.js} +2 -2
  88. package/dist/chunks/{prefix-MLAG4KTK.js → prefix-3ZNPUSUK.js} +2 -2
  89. package/dist/chunks/{resident-DDGJ2IWB.js → resident-NGQORA2W.js} +6 -5
  90. package/dist/chunks/resident-NGQORA2W.js.map +6 -0
  91. package/dist/chunks/{schedule-GSNY74KJ.js → schedule-4L4DTRC5.js} +5 -5
  92. package/dist/chunks/{service-MH57P24N.js → service-EV6VQYJD.js} +8 -7
  93. package/dist/chunks/service-EV6VQYJD.js.map +6 -0
  94. package/dist/chunks/{session-step-D4AT5RZR.js → session-step-ZCZNC52S.js} +3 -3
  95. package/dist/chunks/{start-check-2EP7HZTU.js → start-check-W72K6M5Q.js} +2 -2
  96. package/dist/chunks/{store-IRKBQZNF.js → store-IVVYIPV2.js} +10 -6
  97. package/dist/chunks/{tui-5HAU6RLS.js → tui-CCAGK7BG.js} +380 -119
  98. package/dist/chunks/tui-CCAGK7BG.js.map +6 -0
  99. package/dist/chunks/{upgrade-ARBZZZRK.js → upgrade-LN6TFWDW.js} +3 -3
  100. package/dist/chunks/{spaces-JVPRV4YM.js → workspaces-5ZKKOX4X.js} +68 -42
  101. package/dist/chunks/workspaces-5ZKKOX4X.js.map +6 -0
  102. package/dist/cli.d.ts.map +1 -1
  103. package/dist/commands/manifest.d.ts +1 -1
  104. package/dist/commands/manifest.d.ts.map +1 -1
  105. package/dist/commands/workspaces.d.ts +49 -0
  106. package/dist/commands/workspaces.d.ts.map +1 -0
  107. package/dist/config/load.d.ts.map +1 -1
  108. package/dist/config/schema.d.ts +8 -3
  109. package/dist/config/schema.d.ts.map +1 -1
  110. package/dist/doctor/checks/terminal.d.ts +1 -1
  111. package/dist/doctor/checks/terminal.d.ts.map +1 -1
  112. package/dist/index.js +9 -8
  113. package/dist/integrations/accounts/host-facts.d.ts +1 -1
  114. package/dist/integrations/peers/runtime.d.ts +1 -1
  115. package/dist/integrations/peers/runtime.d.ts.map +1 -1
  116. package/dist/integrations/resident/runner-worker.js +2 -2
  117. package/dist/rounds/types.d.ts +6 -0
  118. package/dist/rounds/types.d.ts.map +1 -1
  119. package/dist/tui/App.d.ts +19 -7
  120. package/dist/tui/App.d.ts.map +1 -1
  121. package/dist/tui/Composer.d.ts +10 -4
  122. package/dist/tui/Composer.d.ts.map +1 -1
  123. package/dist/tui/agent.d.ts +8 -0
  124. package/dist/tui/agent.d.ts.map +1 -1
  125. package/dist/tui/index.d.ts.map +1 -1
  126. package/dist/tui/live-model-step.d.ts +16 -0
  127. package/dist/tui/live-model-step.d.ts.map +1 -0
  128. package/dist/tui/model-refusal.d.ts +2 -0
  129. package/dist/tui/model-refusal.d.ts.map +1 -1
  130. package/dist/tui/slashCommands.d.ts +22 -0
  131. package/dist/tui/slashCommands.d.ts.map +1 -1
  132. package/dist/tui/zoom/entry.d.ts +6 -6
  133. package/dist/tui/zoom/entry.d.ts.map +1 -1
  134. package/dist/tui/zoom/gesture.d.ts +2 -2
  135. package/dist/tui/zoom/gesture.d.ts.map +1 -1
  136. package/dist/tui/zoom/leave.d.ts +2 -2
  137. package/dist/tui/zoom/leave.d.ts.map +1 -1
  138. package/dist/tui/zoom/local.d.ts +3 -3
  139. package/dist/tui/zoom/local.d.ts.map +1 -1
  140. package/dist/{spaces → workspaces}/git.d.ts +1 -1
  141. package/dist/workspaces/git.d.ts.map +1 -0
  142. package/dist/{spaces → workspaces}/goto.d.ts +7 -7
  143. package/dist/workspaces/goto.d.ts.map +1 -0
  144. package/dist/{spaces → workspaces}/host.d.ts +61 -52
  145. package/dist/workspaces/host.d.ts.map +1 -0
  146. package/dist/{spaces → workspaces}/input.d.ts +1 -1
  147. package/dist/workspaces/input.d.ts.map +1 -0
  148. package/dist/{spaces → workspaces}/keymap.d.ts +2 -2
  149. package/dist/workspaces/keymap.d.ts.map +1 -0
  150. package/dist/{spaces → workspaces}/layout.d.ts +6 -4
  151. package/dist/workspaces/layout.d.ts.map +1 -0
  152. package/dist/{spaces → workspaces}/mouse.d.ts +2 -2
  153. package/dist/workspaces/mouse.d.ts.map +1 -0
  154. package/dist/{spaces → workspaces}/overlay.d.ts +0 -1
  155. package/dist/workspaces/overlay.d.ts.map +1 -0
  156. package/dist/workspaces/palette.d.ts +75 -0
  157. package/dist/workspaces/palette.d.ts.map +1 -0
  158. package/dist/workspaces/peers.d.ts.map +1 -0
  159. package/dist/{spaces → workspaces}/prefix.d.ts +1 -1
  160. package/dist/workspaces/prefix.d.ts.map +1 -0
  161. package/dist/{spaces → workspaces}/roster.d.ts +22 -22
  162. package/dist/workspaces/roster.d.ts.map +1 -0
  163. package/dist/workspaces/selection.d.ts.map +1 -0
  164. package/dist/{spaces → workspaces}/session.d.ts +1 -1
  165. package/dist/workspaces/session.d.ts.map +1 -0
  166. package/dist/{spaces → workspaces}/sidebar.d.ts +17 -17
  167. package/dist/workspaces/sidebar.d.ts.map +1 -0
  168. package/dist/{spaces → workspaces}/signal.d.ts +5 -3
  169. package/dist/workspaces/signal.d.ts.map +1 -0
  170. package/dist/{spaces → workspaces}/status.d.ts +2 -2
  171. package/dist/workspaces/status.d.ts.map +1 -0
  172. package/dist/{spaces → workspaces}/store.d.ts +25 -14
  173. package/dist/workspaces/store.d.ts.map +1 -0
  174. package/dist/workspaces/tabbar.d.ts +54 -0
  175. package/dist/workspaces/tabbar.d.ts.map +1 -0
  176. package/dist/{spaces → workspaces}/tiling.d.ts +7 -4
  177. package/dist/workspaces/tiling.d.ts.map +1 -0
  178. package/package.json +4 -4
  179. package/dist/chunks/acp-CGGPX6FV.js.map +0 -6
  180. package/dist/chunks/add-7F26IYNU.js.map +0 -6
  181. package/dist/chunks/chunk-2YKQMUTC.js.map +0 -6
  182. package/dist/chunks/chunk-AR2GPJUO.js.map +0 -6
  183. package/dist/chunks/chunk-BDHXJ7BM.js.map +0 -6
  184. package/dist/chunks/chunk-EXFSMYH4.js +0 -83
  185. package/dist/chunks/chunk-EXFSMYH4.js.map +0 -6
  186. package/dist/chunks/chunk-G742EI3J.js.map +0 -6
  187. package/dist/chunks/chunk-K3UL7Z4X.js.map +0 -6
  188. package/dist/chunks/chunk-OMRGJSUJ.js.map +0 -6
  189. package/dist/chunks/chunk-OYX743QK.js.map +0 -6
  190. package/dist/chunks/cli-runtime-OBTTHZZI.js.map +0 -6
  191. package/dist/chunks/exec-7YEZ64T4.js.map +0 -6
  192. package/dist/chunks/list-GIP6KAYZ.js.map +0 -6
  193. package/dist/chunks/mcp-EBVO25Q2.js.map +0 -6
  194. package/dist/chunks/message-command-YIHQF33L.js.map +0 -6
  195. package/dist/chunks/resident-DDGJ2IWB.js.map +0 -6
  196. package/dist/chunks/service-MH57P24N.js.map +0 -6
  197. package/dist/chunks/spaces-JVPRV4YM.js.map +0 -6
  198. package/dist/chunks/tui-5HAU6RLS.js.map +0 -6
  199. package/dist/commands/spaces.d.ts +0 -46
  200. package/dist/commands/spaces.d.ts.map +0 -1
  201. package/dist/spaces/git.d.ts.map +0 -1
  202. package/dist/spaces/goto.d.ts.map +0 -1
  203. package/dist/spaces/host.d.ts.map +0 -1
  204. package/dist/spaces/input.d.ts.map +0 -1
  205. package/dist/spaces/keymap.d.ts.map +0 -1
  206. package/dist/spaces/layout.d.ts.map +0 -1
  207. package/dist/spaces/mouse.d.ts.map +0 -1
  208. package/dist/spaces/overlay.d.ts.map +0 -1
  209. package/dist/spaces/palette.d.ts +0 -35
  210. package/dist/spaces/palette.d.ts.map +0 -1
  211. package/dist/spaces/peers.d.ts.map +0 -1
  212. package/dist/spaces/prefix.d.ts.map +0 -1
  213. package/dist/spaces/roster.d.ts.map +0 -1
  214. package/dist/spaces/selection.d.ts.map +0 -1
  215. package/dist/spaces/session.d.ts.map +0 -1
  216. package/dist/spaces/sidebar.d.ts.map +0 -1
  217. package/dist/spaces/signal.d.ts.map +0 -1
  218. package/dist/spaces/status.d.ts.map +0 -1
  219. package/dist/spaces/store.d.ts.map +0 -1
  220. package/dist/spaces/tabbar.d.ts +0 -36
  221. package/dist/spaces/tabbar.d.ts.map +0 -1
  222. package/dist/spaces/tiling.d.ts.map +0 -1
  223. /package/dist/chunks/{agent-42PYZGA5.js.map → agent-JWTNZ4PK.js.map} +0 -0
  224. /package/dist/chunks/{agent-session-SYLDVKFJ.js.map → agent-session-OGPKSSKG.js.map} +0 -0
  225. /package/dist/chunks/{bin-main-NID46PS7.js.map → bin-main-UI3NYIJE.js.map} +0 -0
  226. /package/dist/chunks/{chat-WBJPS4K6.js.map → chat-F3WXVEDM.js.map} +0 -0
  227. /package/dist/chunks/{chunk-U4ZP2JN2.js.map → chunk-4E33SWZU.js.map} +0 -0
  228. /package/dist/chunks/{chunk-NCW3WBBI.js.map → chunk-6NDJLXKW.js.map} +0 -0
  229. /package/dist/chunks/{chunk-F2QERXWD.js.map → chunk-6WPKPHE2.js.map} +0 -0
  230. /package/dist/chunks/{chunk-RBH2FDM5.js.map → chunk-6XL5ZMAL.js.map} +0 -0
  231. /package/dist/chunks/{chunk-LQN7NG2F.js.map → chunk-A72NRUYG.js.map} +0 -0
  232. /package/dist/chunks/{chunk-IFXYNA2K.js.map → chunk-ADG5OPNS.js.map} +0 -0
  233. /package/dist/chunks/{chunk-OM3EDVLG.js.map → chunk-CAOGKKB5.js.map} +0 -0
  234. /package/dist/chunks/{chunk-XSAEGHPS.js.map → chunk-EPIIR5CJ.js.map} +0 -0
  235. /package/dist/chunks/{chunk-6LMIJ2YT.js.map → chunk-H2JLRNYH.js.map} +0 -0
  236. /package/dist/chunks/{chunk-P2Y3IUE6.js.map → chunk-L3XUPXPP.js.map} +0 -0
  237. /package/dist/chunks/{chunk-5VBA5XSC.js.map → chunk-LOKFLXQL.js.map} +0 -0
  238. /package/dist/chunks/{chunk-FU776PDS.js.map → chunk-Q6RZ64FS.js.map} +0 -0
  239. /package/dist/chunks/{chunk-W7XKWKEZ.js.map → chunk-U5BN3L3Y.js.map} +0 -0
  240. /package/dist/chunks/{chunk-2UATEMPS.js.map → chunk-UQJPNUDU.js.map} +0 -0
  241. /package/dist/chunks/{chunk-O7H4QZ7I.js.map → chunk-W6E3PSFH.js.map} +0 -0
  242. /package/dist/chunks/{chunk-PCWQ3ET3.js.map → chunk-XHR3UCKT.js.map} +0 -0
  243. /package/dist/chunks/{chunk-F4B77QJQ.js.map → chunk-XOIXLN2Y.js.map} +0 -0
  244. /package/dist/chunks/{crash-report-3IE2RFYG.js.map → crash-report-KHJZ3AKU.js.map} +0 -0
  245. /package/dist/chunks/{doctor-QGFOTR5H.js.map → doctor-LCRG5FBA.js.map} +0 -0
  246. /package/dist/chunks/{drain-5WSM4MTM.js.map → drain-47IMDCI5.js.map} +0 -0
  247. /package/dist/chunks/{host-663JLCCW.js.map → host-QE4D3UXC.js.map} +0 -0
  248. /package/dist/chunks/{host-queries-7CSOWEPE.js.map → host-queries-5H765XNX.js.map} +0 -0
  249. /package/dist/chunks/{learn-NNBHDBLF.js.map → learn-Y5IBBZDY.js.map} +0 -0
  250. /package/dist/chunks/{learn-builtin-YEDJT6ZP.js.map → learn-builtin-ND3T6U5L.js.map} +0 -0
  251. /package/dist/chunks/{lifecycle-NDR7R22S.js.map → lifecycle-FJS7LD7B.js.map} +0 -0
  252. /package/dist/chunks/{live-FJISKPXJ.js.map → live-CSA2LX3R.js.map} +0 -0
  253. /package/dist/chunks/{mouse-WFSJSLQD.js.map → mouse-EJQML44I.js.map} +0 -0
  254. /package/dist/chunks/{pal-IOPI5RKZ.js.map → pal-WXN4O3DD.js.map} +0 -0
  255. /package/dist/chunks/{palette-WDPS7W6Q.js.map → palette-CL5OOYGK.js.map} +0 -0
  256. /package/dist/chunks/{peers-MZD3KTZK.js.map → peers-JQOUU3CX.js.map} +0 -0
  257. /package/dist/chunks/{prefix-MLAG4KTK.js.map → prefix-3ZNPUSUK.js.map} +0 -0
  258. /package/dist/chunks/{schedule-GSNY74KJ.js.map → schedule-4L4DTRC5.js.map} +0 -0
  259. /package/dist/chunks/{session-step-D4AT5RZR.js.map → session-step-ZCZNC52S.js.map} +0 -0
  260. /package/dist/chunks/{start-check-2EP7HZTU.js.map → start-check-W72K6M5Q.js.map} +0 -0
  261. /package/dist/chunks/{store-IRKBQZNF.js.map → store-IVVYIPV2.js.map} +0 -0
  262. /package/dist/chunks/{upgrade-ARBZZZRK.js.map → upgrade-LN6TFWDW.js.map} +0 -0
  263. /package/dist/{spaces → workspaces}/peers.d.ts +0 -0
  264. /package/dist/{spaces → workspaces}/selection.d.ts +0 -0
@@ -11,7 +11,7 @@ import {
11
11
  confirmationView,
12
12
  describeChanges,
13
13
  permissionsChanged
14
- } from "./chunk-5VBA5XSC.js";
14
+ } from "./chunk-LOKFLXQL.js";
15
15
  import {
16
16
  visibleScheduleMessage
17
17
  } from "./chunk-NADQQMMG.js";
@@ -19,7 +19,6 @@ import {
19
19
  TURN_LIMIT_FIELDS,
20
20
  ThemeEpochContext,
21
21
  argumentHintFor,
22
- backgroundFromColorFgBg,
23
22
  baseBranchReviewPrompt,
24
23
  commandPickerDescription,
25
24
  commitReviewPrompt,
@@ -38,7 +37,6 @@ import {
38
37
  parseSlash,
39
38
  pressedKeyLabel,
40
39
  primaryKeyLabel,
41
- queryTerminalBackground,
42
40
  reducedMotion,
43
41
  renderContext,
44
42
  renderOutcome,
@@ -52,12 +50,13 @@ import {
52
50
  setThemePreview,
53
51
  setThemeSetting,
54
52
  shownTheme,
53
+ slashTiming,
55
54
  toolServerRow,
56
55
  turnLimitCommands,
57
56
  useReducedMotion,
58
57
  useThemeEpoch,
59
58
  useThemeSubscription
60
- } from "./chunk-OMRGJSUJ.js";
59
+ } from "./chunk-VZC7FE4F.js";
61
60
  import {
62
61
  handleTerminationSignals
63
62
  } from "./chunk-NFATUZMX.js";
@@ -96,12 +95,12 @@ import {
96
95
  } from "./chunk-XH5YF2YX.js";
97
96
  import {
98
97
  settleAnsweredPark
99
- } from "./chunk-2UATEMPS.js";
98
+ } from "./chunk-UQJPNUDU.js";
100
99
  import {
101
100
  DELIVERY_READ_LIMIT,
102
101
  readSourceDeliveryPage,
103
102
  takeSuppressedCount
104
- } from "./chunk-LQN7NG2F.js";
103
+ } from "./chunk-A72NRUYG.js";
105
104
  import {
106
105
  callsCount
107
106
  } from "./chunk-E5VLANCO.js";
@@ -118,13 +117,13 @@ import {
118
117
  runsPerDay,
119
118
  scriptShellUnavailableReason,
120
119
  verifyScheduledScript
121
- } from "./chunk-PCWQ3ET3.js";
120
+ } from "./chunk-XHR3UCKT.js";
122
121
  import {
123
122
  allowsCommands,
124
123
  compileJobPolicy,
125
124
  compileScriptCheckPolicy,
126
125
  isPresetName
127
- } from "./chunk-U4ZP2JN2.js";
126
+ } from "./chunk-4E33SWZU.js";
128
127
  import "./chunk-XN7C5GWO.js";
129
128
  import {
130
129
  formatResumeShellCommand,
@@ -141,17 +140,22 @@ import {
141
140
  callEndpoint,
142
141
  readEndpoint
143
142
  } from "./chunk-6YG7D7U4.js";
143
+ import {
144
+ backgroundFromColorFgBg,
145
+ queryTerminalBackground
146
+ } from "./chunk-6ULKBT6P.js";
144
147
  import {
145
148
  CLIPBOARD_KILL_SWITCH,
146
149
  bypassKey,
147
150
  createClipboardCopier,
148
151
  describeCopy,
152
+ hostSlot,
149
153
  hostedByHost,
150
- spacesSignal
151
- } from "./chunk-Q3AB63M5.js";
154
+ workspacesSignal
155
+ } from "./chunk-GSAYGBOR.js";
152
156
  import {
153
157
  writeLaunchMouseReset
154
- } from "./chunk-L2WEBN6A.js";
158
+ } from "./chunk-DH4X2E6M.js";
155
159
  import {
156
160
  buildPeerTools,
157
161
  openLivePeers,
@@ -171,20 +175,20 @@ import {
171
175
  sectionHeading,
172
176
  withAutoChoice,
173
177
  writeConversationExport
174
- } from "./chunk-IFXYNA2K.js";
178
+ } from "./chunk-ADG5OPNS.js";
175
179
  import {
176
180
  tuiPalDefinition,
177
181
  tuiPalEnvironment,
178
182
  tuiPalOwner,
179
183
  tuiPalPreferences
180
- } from "./chunk-FU776PDS.js";
184
+ } from "./chunk-Q6RZ64FS.js";
181
185
  import {
182
186
  isModelOnlyContext,
183
187
  runtimeContextLabel
184
188
  } from "./chunk-FJONRQQU.js";
185
189
  import "./chunk-GXQ4G3KA.js";
186
190
  import "./chunk-ZWA2JRJV.js";
187
- import "./chunk-F2QERXWD.js";
191
+ import "./chunk-6WPKPHE2.js";
188
192
  import "./chunk-XK26JNIF.js";
189
193
  import {
190
194
  claimPalConversation,
@@ -270,7 +274,7 @@ import {
270
274
  webLiveStatus,
271
275
  webSettledLine,
272
276
  withDebugDetail
273
- } from "./chunk-K3UL7Z4X.js";
277
+ } from "./chunk-X4TNXFUB.js";
274
278
  import {
275
279
  openManagedWorktrees,
276
280
  worktreeOpenHint
@@ -293,16 +297,13 @@ import {
293
297
  isWorkflowRunAgent,
294
298
  learnSkillPrompt,
295
299
  newSkillPrompt,
296
- paint,
297
300
  resolveTurnGuards,
298
301
  resumeCallText,
299
302
  resumeReviewLines,
300
303
  runTokens,
301
304
  sandboxRunsShellUnasked,
302
- settledElapsed,
303
- theme,
304
- tokenColor
305
- } from "./chunk-AR2GPJUO.js";
305
+ settledElapsed
306
+ } from "./chunk-E3OXUQQB.js";
306
307
  import "./chunk-HYPNAC4H.js";
307
308
  import "./chunk-POKKY7MR.js";
308
309
  import {
@@ -319,8 +320,8 @@ import {
319
320
  describeProviderWaitClock,
320
321
  isSelfMending,
321
322
  isSpentAllowance
322
- } from "./chunk-RBH2FDM5.js";
323
- import "./chunk-NCW3WBBI.js";
323
+ } from "./chunk-6XL5ZMAL.js";
324
+ import "./chunk-6NDJLXKW.js";
324
325
  import {
325
326
  describeBrowserStatus
326
327
  } from "./chunk-WHODOMXA.js";
@@ -332,6 +333,11 @@ import {
332
333
  describeState,
333
334
  endpointHost
334
335
  } from "./chunk-YOWYTBJS.js";
336
+ import {
337
+ paint,
338
+ theme,
339
+ tokenColor
340
+ } from "./chunk-2IPDTDB3.js";
335
341
  import {
336
342
  NO_SKILLS_FOUND,
337
343
  composeSkillsPrompt,
@@ -359,14 +365,14 @@ import {
359
365
  } from "./chunk-5W7CSQXQ.js";
360
366
  import {
361
367
  startAutoUpdate
362
- } from "./chunk-OM3EDVLG.js";
368
+ } from "./chunk-CAOGKKB5.js";
363
369
  import {
364
370
  readManifest
365
371
  } from "./chunk-AK2U3N2A.js";
366
372
  import {
367
373
  resolveNpmInvocation
368
- } from "./chunk-O7H4QZ7I.js";
369
- import "./chunk-F4B77QJQ.js";
374
+ } from "./chunk-W6E3PSFH.js";
375
+ import "./chunk-XOIXLN2Y.js";
370
376
  import {
371
377
  ScheduleConflictError,
372
378
  confirmationHolds,
@@ -404,7 +410,6 @@ import {
404
410
  ConfigLoadError,
405
411
  LARGE_WORKFLOW_WARNING,
406
412
  LARGE_WORKFLOW_WARNING_SHORT,
407
- THEME_CHOICES,
408
413
  approveShownMcpServers,
409
414
  browserCallOrigin,
410
415
  browserSiteRuleFor,
@@ -416,7 +421,7 @@ import {
416
421
  pendingServersMessage,
417
422
  readPermissionLayers,
418
423
  resolveComposerTriggers
419
- } from "./chunk-2YKQMUTC.js";
424
+ } from "./chunk-HB4LEJMU.js";
420
425
  import "./chunk-KONYGNG6.js";
421
426
  import "./chunk-LCGXWCVU.js";
422
427
  import {
@@ -427,6 +432,9 @@ import {
427
432
  plural,
428
433
  productName
429
434
  } from "./chunk-GMUWAUKQ.js";
435
+ import {
436
+ THEME_CHOICES
437
+ } from "./chunk-QLDUL46Z.js";
430
438
  import {
431
439
  primaryProvider,
432
440
  writePreferences
@@ -447,7 +455,7 @@ import {
447
455
  providerEntriesOfVendor,
448
456
  unsupportedProviderMessage
449
457
  } from "./chunk-G6YSAHKC.js";
450
- import "./chunk-S7WRWA25.js";
458
+ import "./chunk-RI2KAZJO.js";
451
459
  import {
452
460
  isAnthropicOAuthToken,
453
461
  readCodexCredentialFile
@@ -473,7 +481,7 @@ import {
473
481
  handoffContinuationNote,
474
482
  refusalDetail,
475
483
  retryAfterMs
476
- } from "./chunk-BDHXJ7BM.js";
484
+ } from "./chunk-TCRGKEEX.js";
477
485
  import {
478
486
  expandTabs,
479
487
  terminalDisplayText
@@ -43339,7 +43347,7 @@ var LeftGesture = class {
43339
43347
  var import_jsx_runtime15 = __toESM(require_jsx_runtime(), 1);
43340
43348
  var ESC_CLEAR_KEY = "escape-again-to-clear";
43341
43349
  var STASH_KEY = "draft-stash";
43342
- var SPACES_HINT_KEY = "spaces-arm";
43350
+ var WORKSPACES_HINT_KEY = "workspaces-arm";
43343
43351
  var STASH_NOTICE_MS = 3e3;
43344
43352
  var STASH_RESTORED_NOTICE_MS = 5e3;
43345
43353
  var ESC_CLEAR_WINDOW_MS = 800;
@@ -43581,7 +43589,7 @@ function Composer({
43581
43589
  onDraftPresenceChange,
43582
43590
  onOpenAgentPanel,
43583
43591
  onOpenAgents,
43584
- onOpenSpaces,
43592
+ onOpenWorkspaces,
43585
43593
  onScrollTranscript,
43586
43594
  onRecallQueued,
43587
43595
  queuedEdit,
@@ -44375,7 +44383,7 @@ function Composer({
44375
44383
  setCursorState(next);
44376
44384
  return;
44377
44385
  }
44378
- if (key.leftArrow && onOpenSpaces) {
44386
+ if (key.leftArrow && onOpenWorkspaces) {
44379
44387
  const verdict = leftGestureRef.current.press({
44380
44388
  empty: valueRef.current.length === 0,
44381
44389
  attachments: attachmentsRef.current.length > 0,
@@ -44384,14 +44392,14 @@ function Composer({
44384
44392
  meta: key.meta
44385
44393
  });
44386
44394
  if (verdict === "fire") {
44387
- onFooterNoticeRemove?.(SPACES_HINT_KEY);
44388
- onOpenSpaces();
44395
+ onFooterNoticeRemove?.(WORKSPACES_HINT_KEY);
44396
+ onOpenWorkspaces();
44389
44397
  return;
44390
44398
  }
44391
44399
  if (verdict === "arm") {
44392
44400
  onFooterNotice?.({
44393
- key: SPACES_HINT_KEY,
44394
- text: "Press \u2190 again to open spaces",
44401
+ key: WORKSPACES_HINT_KEY,
44402
+ text: "Press \u2190 again to open workspaces",
44395
44403
  priority: "immediate",
44396
44404
  timeoutMs: ARM_MS
44397
44405
  });
@@ -56368,7 +56376,7 @@ function AppBody({
56368
56376
  externalEditor = defaultExternalEditor,
56369
56377
  terminationExit,
56370
56378
  repaint,
56371
- onOpenSpaces,
56379
+ onOpenWorkspaces,
56372
56380
  onConfirmExit,
56373
56381
  beforeExit,
56374
56382
  examplePrompts = false,
@@ -56812,7 +56820,14 @@ ${blocks.join("\n\n")}`;
56812
56820
  selectionRef: selectedChoiceRef,
56813
56821
  setSelection: setSelectedChoice
56814
56822
  } = useSelectionIndex(0);
56823
+ const chooseModelRef = (0, import_react60.useRef)(() => {
56824
+ });
56825
+ const slashWhileReplyRef = (0, import_react60.useRef)(false);
56826
+ const resumeOpeningRef = (0, import_react60.useRef)(false);
56827
+ const queuedBehindCommandRef = (0, import_react60.useRef)(null);
56828
+ const retireAtTurnEndRef = (0, import_react60.useRef)(null);
56815
56829
  const setChoicePicker = (0, import_react60.useCallback)((next) => {
56830
+ if (next !== null && slashWhileReplyRef.current) retireAtTurnEndRef.current = next;
56816
56831
  choicePickerRef.current = next;
56817
56832
  choiceQueryRef.current = "";
56818
56833
  setChoiceQuery("");
@@ -57137,6 +57152,9 @@ ${blocks.join("\n\n")}`;
57137
57152
  const runProbeRef = (0, import_react60.useRef)(null);
57138
57153
  (0, import_react60.useEffect)(() => cancelPendingLogin, [cancelPendingLogin]);
57139
57154
  const previousSessionRef = (0, import_react60.useRef)(null);
57155
+ const deferredModelRef = (0, import_react60.useRef)(null);
57156
+ const refusalFallbackActiveRef = (0, import_react60.useRef)(false);
57157
+ const liveModelPickRef = (0, import_react60.useRef)(null);
57140
57158
  const [, setReasoningVersion] = (0, import_react60.useState)(0);
57141
57159
  const browserProfileRef = (0, import_react60.useRef)(void 0);
57142
57160
  const browserControlRef = (0, import_react60.useRef)(void 0);
@@ -58270,18 +58288,15 @@ ${blocks.join("\n\n")}`;
58270
58288
  );
58271
58289
  return;
58272
58290
  }
58273
- if (state !== "idle" || abortRef.current !== null || hasUnsettledTurn() || roundQueueRef.current.items().length > 0 && selectedSession !== session || permissionResolveRef.current !== null || compactingRef.current) {
58291
+ const replyRunning = state !== "idle" || abortRef.current !== null || hasUnsettledTurn();
58292
+ if (effort === void 0) {
58293
+ setReasoningEffort(void 0);
58274
58294
  pushMessage(
58275
58295
  "system",
58276
- "Reasoning effort was not changed: wait for the current reply and queued messages to finish."
58296
+ replyRunning ? "Reasoning effort set to the provider default. It applies from your next message." : "Reasoning: provider default."
58277
58297
  );
58278
58298
  return;
58279
58299
  }
58280
- if (effort === void 0) {
58281
- setReasoningEffort(void 0);
58282
- pushMessage("system", "Reasoning: provider default.");
58283
- return;
58284
- }
58285
58300
  if (!session.reasoningEffortLevels?.includes(effort)) {
58286
58301
  pushMessage(
58287
58302
  "system",
@@ -58290,7 +58305,10 @@ ${blocks.join("\n\n")}`;
58290
58305
  return;
58291
58306
  }
58292
58307
  setReasoningEffort(effort);
58293
- pushMessage("system", `Reasoning: ${effort} (this conversation).`);
58308
+ pushMessage(
58309
+ "system",
58310
+ replyRunning ? `Reasoning effort set to ${effort}. It applies from your next message.` : `Reasoning: ${effort} (this conversation).`
58311
+ );
58294
58312
  },
58295
58313
  [hasUnsettledTurn, pushMessage, session, setReasoningEffort, state]
58296
58314
  );
@@ -58307,13 +58325,6 @@ ${blocks.join("\n\n")}`;
58307
58325
  pushMessage("system", "Hypermode was not changed: the selected model is no longer active.");
58308
58326
  return;
58309
58327
  }
58310
- if (state !== "idle" || abortRef.current !== null || hasUnsettledTurn() || roundQueueRef.current.items().length > 0 && selectedSession !== session || permissionResolveRef.current !== null || compactingRef.current) {
58311
- pushMessage(
58312
- "system",
58313
- "Hypermode was not changed: wait for the current reply and queued messages to finish."
58314
- );
58315
- return;
58316
- }
58317
58328
  if (!enabled && !hypermodeRef.current) {
58318
58329
  pushMessage("system", "Hypermode is off.");
58319
58330
  return;
@@ -58323,9 +58334,12 @@ ${blocks.join("\n\n")}`;
58323
58334
  if (newlyEnabled) setHypermodeActivation((activation) => activation + 1);
58324
58335
  const effort = reasoningEffortRef.current;
58325
58336
  const hasLevels = (session.reasoningEffortLevels?.length ?? 0) > 0;
58337
+ const replyRunning = state !== "idle" || abortRef.current !== null || hasUnsettledTurn();
58338
+ const said = enabled ? hypermodeOnMessage(effort, hasLevels) : hypermodeOffMessage(effort, hasLevels);
58326
58339
  pushMessage(
58327
58340
  "system",
58328
- enabled ? hypermodeOnMessage(effort, hasLevels) : hypermodeOffMessage(effort, hasLevels)
58341
+ // The reply being written has already been told; the next message is told.
58342
+ replyRunning ? `${said} It applies from your next message.` : said
58329
58343
  );
58330
58344
  },
58331
58345
  [hasUnsettledTurn, pushMessage, session, setHypermode, state]
@@ -58874,6 +58888,10 @@ ${blocks.join("\n\n")}`;
58874
58888
  return;
58875
58889
  }
58876
58890
  setChoicePicker(null);
58891
+ if (picker.kind === "model-live") {
58892
+ chooseModelRef.current(`${picker.provider}/${value}`);
58893
+ return;
58894
+ }
58877
58895
  if (picker.kind === "resume-goal") {
58878
58896
  if (value === "resume" && scopeRef.current?.sessionId === picker.sessionId)
58879
58897
  commandPickerSubmitRef.current("/goal resume");
@@ -60311,7 +60329,7 @@ ${blocks.join("\n\n")}`;
60311
60329
  const timer = setInterval(() => setAutoResumeTick((n) => n + 1), 1e3);
60312
60330
  return () => clearInterval(timer);
60313
60331
  }, [autoResumeAt]);
60314
- const doResume = (0, import_react60.useCallback)(
60332
+ const openResumePicker = (0, import_react60.useCallback)(
60315
60333
  async (query, pr) => {
60316
60334
  const sessions = sessionsRef.current ?? await ensureSessions().then(() => sessionsRef.current);
60317
60335
  if (!sessions) {
@@ -60354,6 +60372,18 @@ ${blocks.join("\n\n")}`;
60354
60372
  },
60355
60373
  [ensureSessions, pushMessage, resumeActiveTurn]
60356
60374
  );
60375
+ const doResume = (0, import_react60.useCallback)(
60376
+ async (query, pr) => {
60377
+ resumeOpeningRef.current = true;
60378
+ try {
60379
+ await openResumePicker(query, pr);
60380
+ } finally {
60381
+ resumeOpeningRef.current = false;
60382
+ setQueueSettleVersion((version) => version + 1);
60383
+ }
60384
+ },
60385
+ [openResumePicker]
60386
+ );
60357
60387
  const doctorRunningRef = (0, import_react60.useRef)(false);
60358
60388
  const runDoctorInSession = (0, import_react60.useCallback)(async () => {
60359
60389
  if (doctorRunningRef.current) {
@@ -60363,7 +60393,7 @@ ${blocks.join("\n\n")}`;
60363
60393
  doctorRunningRef.current = true;
60364
60394
  const progressId = pushMessage("system", "Checking\u2026");
60365
60395
  try {
60366
- const { runLiveDoctor } = await import("./live-FJISKPXJ.js");
60396
+ const { runLiveDoctor } = await import("./live-CSA2LX3R.js");
60367
60397
  const { describePlainDoctor } = await import("./plain-report-IOYN4O6N.js");
60368
60398
  const report = await runLiveDoctor({
60369
60399
  ...ctxRef.current.telemetry ? { telemetry: ctxRef.current.telemetry } : {}
@@ -60734,6 +60764,8 @@ ${blocks.join("\n\n")}`;
60734
60764
  const startFreshConversation = (0, import_react60.useCallback)(
60735
60765
  async (clearScreen2) => {
60736
60766
  if (conversationMutationRef.current) return;
60767
+ const keepQueued = queuedBehindCommandRef.current;
60768
+ queuedBehindCommandRef.current = null;
60737
60769
  if (palDefinitionRef.current && (abortRef.current || hasUnsettledTurn() || roundQueueRef.current.items().length > 0)) {
60738
60770
  pushMessage(
60739
60771
  "system",
@@ -60758,9 +60790,13 @@ ${blocks.join("\n\n")}`;
60758
60790
  );
60759
60791
  } else targetSessionId = await startConversation(sessions);
60760
60792
  }
60761
- const discardedQueued = roundQueueRef.current.items().length;
60793
+ const discardedQueued = Math.max(
60794
+ 0,
60795
+ roundQueueRef.current.items().length - (keepQueued?.length ?? 0)
60796
+ );
60762
60797
  const interrupted = interruptTurn();
60763
60798
  discardQueued();
60799
+ if (keepQueued?.length) roundQueueRef.current.replace(keepQueued);
60764
60800
  goalActivation.clear();
60765
60801
  wakeGoalDriver();
60766
60802
  cancelPendingModelSwitch();
@@ -62129,8 +62165,9 @@ ${plain(err)}`
62129
62165
  st.refusalRowShown = true;
62130
62166
  const detail = refusalDetail(event);
62131
62167
  if (event.outcome === "fallback" && event.fallbackModel) {
62168
+ refusalFallbackActiveRef.current = true;
62132
62169
  st.pendingFallback = {
62133
- row: describeModelRefusal(event),
62170
+ row: describeModelRefusal({ ...event, auto: autoActiveRef.current }),
62134
62171
  detail,
62135
62172
  model: event.fallbackModel
62136
62173
  };
@@ -62738,6 +62775,12 @@ ${jobLines.map(([, line]) => `- ${line}`).join("\n")}`] : []
62738
62775
  // turn only; the session's own setting is untouched.
62739
62776
  ...(pinnedEffort ?? turnReasoningEffort) !== void 0 ? { effort: pinnedEffort ?? turnReasoningEffort } : {},
62740
62777
  ...turnHypermode ? { hypermode: true } : {},
62778
+ // A model picked with /model while this turn runs: read before every
62779
+ // request, so the next request of the loop uses it.
62780
+ liveModel: /* @__PURE__ */ __name(() => {
62781
+ const pick = liveModelPickRef.current;
62782
+ return pick && pick.session === previousSessionRef.current ? pick.model : void 0;
62783
+ }, "liveModel"),
62741
62784
  ...ctxRef.current.refusalFallback ? { refusalFallback: ctxRef.current.refusalFallback } : {},
62742
62785
  ...turnTriggers.includes("workflow") ? { workflow: true } : {},
62743
62786
  // Read at every iteration, so an after-turn trigger a steer
@@ -62848,7 +62891,25 @@ ${jobLines.map(([, line]) => `- ${line}`).join("\n")}`] : []
62848
62891
  if (event.kind === "done" && st.answeredFallbackModel && currentProvider) {
62849
62892
  const model = st.answeredFallbackModel;
62850
62893
  st.answeredFallbackModel = void 0;
62851
- await requestModelSwitch({ model, provider: currentProvider });
62894
+ const held = deferredModelRef.current;
62895
+ const pin = !autoActiveRef.current && !(held && held.beforeRefusal !== true);
62896
+ if (pin) {
62897
+ if (held?.quiet === true && held.model) {
62898
+ deferredModelRef.current = null;
62899
+ liveModelPickRef.current = null;
62900
+ pushMessage(
62901
+ "system",
62902
+ `${held.model} declined this message, so ${model} stays selected.`
62903
+ );
62904
+ }
62905
+ const switched = await requestModelSwitch({ model, provider: currentProvider });
62906
+ if (switched.kind === "rejected") {
62907
+ pushMessage(
62908
+ "system",
62909
+ `${model} answered this message but could not be kept as the selected model.`
62910
+ );
62911
+ }
62912
+ }
62852
62913
  }
62853
62914
  } else if (event.kind === "delta") st.text += event.text;
62854
62915
  else if (event.kind === "done" && event.text !== void 0) st.text = event.text;
@@ -62868,6 +62929,7 @@ ${jobLines.map(([, line]) => `- ${line}`).join("\n")}`] : []
62868
62929
  pushSystem("error", explainFailure(err, "That reply failed."));
62869
62930
  }
62870
62931
  } finally {
62932
+ refusalFallbackActiveRef.current = false;
62871
62933
  readSearchGroup.close();
62872
62934
  if (st.completed && stillHere())
62873
62935
  markOrphanNoticesDelivered([...wakeSnapshot.workflows.keys()]);
@@ -63014,6 +63076,76 @@ ${jobLines.map(([, line]) => `- ${line}`).join("\n")}`] : []
63014
63076
  wakeGoalDriver
63015
63077
  ]
63016
63078
  );
63079
+ const deferModelSelection = (0, import_react60.useCallback)(
63080
+ async (query, wantsAuto) => {
63081
+ if (!session || !currentProvider) return;
63082
+ if (wantsAuto) {
63083
+ deferredModelRef.current = { query, quiet: false };
63084
+ pushMessage("system", "Switching to Auto when this reply finishes.");
63085
+ return;
63086
+ }
63087
+ let resolved;
63088
+ try {
63089
+ resolved = await resolveModelSelectionIntent(query, {
63090
+ currentProvider,
63091
+ detected,
63092
+ describeModels: describeProviderModels,
63093
+ signal: appLifetime.signal
63094
+ });
63095
+ } catch (error) {
63096
+ if (appLifetime.signal.aborted) return;
63097
+ pushMessage(
63098
+ "system",
63099
+ `${explainFailure(error, "Could not look up that model.")} The current model is unchanged.`
63100
+ );
63101
+ return;
63102
+ }
63103
+ if (appLifetime.signal.aborted) return;
63104
+ if (resolved.kind === "rejected") {
63105
+ pushMessage(
63106
+ "system",
63107
+ resolved.reason + (resolved.choices?.length ? ` Choices: ${resolved.choices.map((choice2) => `${choice2.provider}/${choice2.model}`).join(", ")}.` : "")
63108
+ );
63109
+ return;
63110
+ }
63111
+ const { selection } = resolved;
63112
+ const target = `${selection.id}/${selection.model}`;
63113
+ if (selection.id === currentProvider && !autoActiveRef.current) {
63114
+ if (refusalFallbackActiveRef.current) {
63115
+ deferredModelRef.current = {
63116
+ query: target,
63117
+ quiet: false,
63118
+ model: selection.model,
63119
+ beforeRefusal: false
63120
+ };
63121
+ pushMessage(
63122
+ "system",
63123
+ `Switching to ${selection.id} \xB7 ${selection.model} when this reply finishes.`
63124
+ );
63125
+ return;
63126
+ }
63127
+ liveModelPickRef.current = { session, model: selection.model };
63128
+ deferredModelRef.current = {
63129
+ query: target,
63130
+ quiet: true,
63131
+ model: selection.model,
63132
+ beforeRefusal: true
63133
+ };
63134
+ pushMessage(
63135
+ "system",
63136
+ `Using ${selection.model} from the next request. The one being answered now keeps its model.`
63137
+ );
63138
+ return;
63139
+ }
63140
+ liveModelPickRef.current = null;
63141
+ deferredModelRef.current = { query: target, quiet: false };
63142
+ pushMessage(
63143
+ "system",
63144
+ `Switching to ${selection.id} \xB7 ${selection.model} when this reply finishes.`
63145
+ );
63146
+ },
63147
+ [appLifetime.signal, currentProvider, detected, pushMessage, session]
63148
+ );
63017
63149
  const selectModelIntent = (0, import_react60.useCallback)(
63018
63150
  async (query, options = {}) => {
63019
63151
  const wantsAuto = isAutoQuery(query);
@@ -63031,11 +63163,12 @@ ${jobLines.map(([, line]) => `- ${line}`).join("\n")}`] : []
63031
63163
  return;
63032
63164
  }
63033
63165
  }
63034
- if (!session || !currentProvider || state !== "idle" || phase !== "ready" && !options.fromPicker || abortRef.current || hasUnsettledTurn() || pendingModelSwitchRef.current || roundQueueRef.current.items().length > 0 || permissionResolveRef.current || compactingRef.current || conversationMutationRef.current || exportingRef.current || goalDriveInFlightRef.current) {
63035
- pushMessage(
63036
- "system",
63037
- "Model selection is unavailable until the active work and queue reach a stable boundary."
63038
- );
63166
+ if (!session || !currentProvider || phase !== "ready" && !options.fromPicker) {
63167
+ pushMessage("system", "Choose a model with /model once a provider is connected.");
63168
+ return;
63169
+ }
63170
+ if (!options.atBoundary && (state !== "idle" || abortRef.current || hasUnsettledTurn() || pendingModelSwitchRef.current || roundQueueRef.current.items().length > 0 || permissionResolveRef.current || compactingRef.current || conversationMutationRef.current || exportingRef.current || goalDriveInFlightRef.current)) {
63171
+ await deferModelSelection(query, wantsAuto);
63039
63172
  return;
63040
63173
  }
63041
63174
  const wasAuto = autoActiveRef.current;
@@ -63072,7 +63205,7 @@ ${jobLines.map(([, line]) => `- ${line}`).join("\n")}`] : []
63072
63205
  beforePublish
63073
63206
  });
63074
63207
  if (pendingModelSwitchRef.current === pending && !pending.signal.aborted && previousSessionRef.current !== session) {
63075
- pushMessage("system", AUTO_ON_NOTICE);
63208
+ if (!options.quiet) pushMessage("system", AUTO_ON_NOTICE);
63076
63209
  }
63077
63210
  return;
63078
63211
  }
@@ -63107,12 +63240,14 @@ ${jobLines.map(([, line]) => `- ${line}`).join("\n")}`] : []
63107
63240
  }
63108
63241
  );
63109
63242
  if (pendingModelSwitchRef.current === pending && !pending.signal.aborted && previousSessionRef.current !== session) {
63110
- pushMessage(
63111
- "system",
63112
- `Switched to ${resolved.selection.id} \xB7 ${resolved.selection.model} for this conversation.${wasAuto ? AUTO_TURNED_OFF_SUFFIX : ""}`
63113
- );
63243
+ if (!options.quiet)
63244
+ pushMessage(
63245
+ "system",
63246
+ `Switched to ${resolved.selection.id} \xB7 ${resolved.selection.model} for this conversation.${wasAuto ? AUTO_TURNED_OFF_SUFFIX : ""}`
63247
+ );
63114
63248
  }
63115
63249
  } catch (error) {
63250
+ if (liveModelPickRef.current?.session === session) liveModelPickRef.current = null;
63116
63251
  if (owns())
63117
63252
  pushMessage(
63118
63253
  "system",
@@ -63127,6 +63262,7 @@ ${jobLines.map(([, line]) => `- ${line}`).join("\n")}`] : []
63127
63262
  }
63128
63263
  },
63129
63264
  [
63265
+ deferModelSelection,
63130
63266
  session,
63131
63267
  currentProvider,
63132
63268
  state,
@@ -63139,6 +63275,60 @@ ${jobLines.map(([, line]) => `- ${line}`).join("\n")}`] : []
63139
63275
  wakeGoalDriver
63140
63276
  ]
63141
63277
  );
63278
+ chooseModelRef.current = (query) => {
63279
+ void selectModelIntent(query);
63280
+ };
63281
+ const openLiveModelPicker = (0, import_react60.useCallback)(async () => {
63282
+ const entry = detected.find((item) => item.entry.id === currentProvider);
63283
+ if (!session?.hasProvider || !currentProvider || !entry) {
63284
+ pushMessage("system", "Choose a model with /model once a provider is connected.");
63285
+ return;
63286
+ }
63287
+ const listing = await describeProviderModels(currentProvider, entry, appLifetime.signal).catch(
63288
+ () => void 0
63289
+ );
63290
+ if (appLifetime.signal.aborted) return;
63291
+ const models = listing?.kind === "ok" ? listing.models.filter((model) => canSelectModel(entry.entry, entry.apiKey, model.id)) : [];
63292
+ if (models.length === 0) {
63293
+ pushMessage(
63294
+ "system",
63295
+ `The model list for ${entry.entry.label} could not be read. Type /model <name> to choose one.`
63296
+ );
63297
+ return;
63298
+ }
63299
+ const current = session.modelSummary;
63300
+ const picker = {
63301
+ kind: "model-live",
63302
+ title: `Select a model for ${entry.entry.label}`,
63303
+ notice: "Used from the next request; the one being answered now keeps its model. For another provider, type /model provider/model.",
63304
+ provider: currentProvider,
63305
+ values: models.map((model) => model.id),
63306
+ options: models.map((model) => ({
63307
+ label: model.name,
63308
+ description: model.name === model.id ? "" : model.id,
63309
+ current: model.id === current || model.name === current,
63310
+ searchText: `${model.id} ${model.name}`
63311
+ }))
63312
+ };
63313
+ setSelectedChoice(
63314
+ Math.max(
63315
+ 0,
63316
+ picker.options.findIndex((option) => option.current)
63317
+ )
63318
+ );
63319
+ const busy = abortRef.current !== null || hasUnsettledTurn();
63320
+ setChoicePicker(picker);
63321
+ if (busy) retireAtTurnEndRef.current = picker;
63322
+ }, [
63323
+ appLifetime.signal,
63324
+ currentProvider,
63325
+ detected,
63326
+ hasUnsettledTurn,
63327
+ pushMessage,
63328
+ session,
63329
+ setChoicePicker,
63330
+ setSelectedChoice
63331
+ ]);
63142
63332
  const accountActionsRef = (0, import_react60.useRef)(null);
63143
63333
  const openAccounts = (0, import_react60.useCallback)(
63144
63334
  () => openCliAccounts({
@@ -63729,7 +63919,7 @@ ${jobLines.map(([, line]) => `- ${line}`).join("\n")}`] : []
63729
63919
  return;
63730
63920
  }
63731
63921
  const viewedId = viewingAgentRef.current;
63732
- if (viewedId !== null && meta.source !== "model-loop" && meta.source !== "launch-message") {
63922
+ if (viewedId !== null && meta.source !== "model-loop" && meta.source !== "launch-message" && meta.source !== "queued-command") {
63733
63923
  const restore = /* @__PURE__ */ __name((notice) => {
63734
63924
  setViewNotice(notice);
63735
63925
  composerDraftTokenRef.current += 1;
@@ -63788,7 +63978,8 @@ ${jobLines.map(([, line]) => `- ${line}`).join("\n")}`] : []
63788
63978
  selfMendingPauseRowRef.current.forget();
63789
63979
  const fromLoop = meta.source === "operator-loop" || meta.source === "model-loop";
63790
63980
  keybindingDraftRef.current = meta.source === "keybinding" ? meta.draft ?? null : null;
63791
- if (!fromLoop && meta.source !== "keybinding") setHistory((prev) => [...prev, value]);
63981
+ if (!fromLoop && meta.source !== "keybinding" && meta.source !== "queued-command")
63982
+ setHistory((prev) => [...prev, value]);
63792
63983
  const operatorText = meta.source !== "model-loop" && meta.source !== "launch-message";
63793
63984
  const selectionIntent = operatorText && !attachments?.length ? parseModelSelectionIntent(value) : void 0;
63794
63985
  if (selectionIntent) {
@@ -63871,6 +64062,24 @@ ${jobLines.map(([, line]) => `- ${line}`).join("\n")}`] : []
63871
64062
  );
63872
64063
  return;
63873
64064
  }
64065
+ if (operatorText && meta.source !== "queued-command" && slashTiming(dispatch, userCommands, hostCommands) === "queue" && (state !== "idle" || abortRef.current !== null || hasUnsettledTurn() || permissionResolveRef.current !== null || compactingRef.current || Boolean(pendingModelSwitchRef.current) || // Messages held by a pause are not ahead of it in any useful sense:
64066
+ // the pause only lifts through a command (`/resume`, `/clear`), so
64067
+ // waiting behind them would wait for itself.
64068
+ roundQueueRef.current.items().length > 0 && roundQueueRef.current.pause() === null)) {
64069
+ enqueueQueued({
64070
+ kind: "human",
64071
+ text: dispatch.trim(),
64072
+ command: true,
64073
+ ...meta.source === "composer" ? { recallable: true } : {}
64074
+ });
64075
+ return;
64076
+ }
64077
+ if (operatorText && (state !== "idle" || abortRef.current !== null || hasUnsettledTurn()) && slashTiming(dispatch, userCommands, hostCommands) === "now") {
64078
+ slashWhileReplyRef.current = true;
64079
+ queueMicrotask(() => {
64080
+ slashWhileReplyRef.current = false;
64081
+ });
64082
+ }
63874
64083
  const slash = operatorText ? runSlash(dispatch, slashCtx, hostCommands) : null;
63875
64084
  if (slash) {
63876
64085
  const commandName = /^\/([\w-]+)/u.exec(dispatch.trim())?.[1];
@@ -64285,10 +64494,7 @@ ${peersList.map((peer) => `${peer.self ? "This terminal" : peer.title} [${peer.r
64285
64494
  return;
64286
64495
  case "repick":
64287
64496
  if (state !== "idle" || pendingModelSwitchRef.current || abortRef.current !== null || hasUnsettledTurn() || roundQueueRef.current.items().length > 0 && roundQueueRef.current.pause() === null || permissionResolveRef.current !== null || compactingRef.current || conversationMutationRef.current !== null || exportingRef.current) {
64288
- pushMessage(
64289
- "system",
64290
- "Model choices are unavailable while a reply, a question, queued messages or a summary are in progress. Try again when they finish."
64291
- );
64497
+ void openLiveModelPicker();
64292
64498
  return;
64293
64499
  }
64294
64500
  setPickerNotice(null);
@@ -64341,10 +64547,6 @@ ${answer}`
64341
64547
  pushMessage("system", "Choose a model before changing permissions.");
64342
64548
  return;
64343
64549
  }
64344
- if (state !== "idle" || abortRef.current !== null || hasUnsettledTurn() || roundQueueRef.current.items().length > 0 || permissionResolveRef.current !== null || compactingRef.current) {
64345
- pushMessage("system", "Finish or stop the current work before changing permissions.");
64346
- return;
64347
- }
64348
64550
  const picker = permissionPicker(
64349
64551
  permissionModeRef.current,
64350
64552
  false,
@@ -64373,13 +64575,6 @@ ${answer}`
64373
64575
  );
64374
64576
  return;
64375
64577
  }
64376
- if (state !== "idle" || abortRef.current !== null || hasUnsettledTurn() || roundQueueRef.current.items().length > 0 || permissionResolveRef.current !== null || compactingRef.current) {
64377
- pushMessage(
64378
- "system",
64379
- "Reasoning-effort choices are unavailable while a reply, a question, a summary or queued messages are in progress. Try again when they finish."
64380
- );
64381
- return;
64382
- }
64383
64578
  const values = [void 0, ...levels];
64384
64579
  const current = reasoningEffortRef.current;
64385
64580
  setSelectedChoice(
@@ -65256,6 +65451,7 @@ ${plugins.map((plugin) => {
65256
65451
  materializeConversation,
65257
65452
  nextId,
65258
65453
  openAgentCockpit,
65454
+ openLiveModelPicker,
65259
65455
  abandonActiveTurn,
65260
65456
  pushMessage,
65261
65457
  rawOutput,
@@ -65274,7 +65470,8 @@ ${plugins.map((plugin) => {
65274
65470
  stableExportSource,
65275
65471
  startFreshConversation,
65276
65472
  state,
65277
- terminal.rows
65473
+ terminal.rows,
65474
+ userCommands
65278
65475
  ]
65279
65476
  );
65280
65477
  const idleStateRef = (0, import_react60.useRef)({
@@ -65543,7 +65740,7 @@ ${plugins.map((plugin) => {
65543
65740
  turnRunning: Boolean(abortRef.current),
65544
65741
  unsettledTurn: hasUnsettledTurn(),
65545
65742
  pendingModelSwitch: Boolean(pendingModelSwitchRef.current),
65546
- conversationMutation: Boolean(conversationMutationRef.current),
65743
+ conversationMutation: Boolean(conversationMutationRef.current) || resumeOpeningRef.current,
65547
65744
  exporting: Boolean(exportingRef.current),
65548
65745
  compacting: Boolean(compactingRef.current),
65549
65746
  textPrompt: Boolean(textPromptRef.current),
@@ -65650,10 +65847,66 @@ ${plugins.map((plugin) => {
65650
65847
  copyPicker,
65651
65848
  wakeGoalDriver
65652
65849
  ]);
65850
+ (0, import_react60.useEffect)(() => {
65851
+ const panel = retireAtTurnEndRef.current;
65852
+ if (panel === null) return;
65853
+ if (choicePickerRef.current !== panel) {
65854
+ retireAtTurnEndRef.current = null;
65855
+ return;
65856
+ }
65857
+ if (state !== "idle" || abortRef.current !== null || hasUnsettledTurn()) return;
65858
+ retireAtTurnEndRef.current = null;
65859
+ setSelectedChoice(0);
65860
+ setChoicePicker(null);
65861
+ }, [
65862
+ state,
65863
+ choicePicker,
65864
+ queueSettleVersion,
65865
+ hasUnsettledTurn,
65866
+ setChoicePicker,
65867
+ setSelectedChoice
65868
+ ]);
65869
+ (0, import_react60.useEffect)(() => {
65870
+ const deferred = deferredModelRef.current;
65871
+ if (!deferred) return;
65872
+ const facts = { ...roundGateFacts(), queueLength: 0, queuePaused: false };
65873
+ if (admissionBlocked("peer", facts) !== null) return;
65874
+ deferredModelRef.current = null;
65875
+ void selectModelIntent(deferred.query, {
65876
+ atBoundary: true,
65877
+ quiet: deferred.quiet
65878
+ });
65879
+ }, [
65880
+ state,
65881
+ phase,
65882
+ queued,
65883
+ queueSettleVersion,
65884
+ modelSwitchVersion,
65885
+ textPrompt,
65886
+ choicePicker,
65887
+ copyPicker,
65888
+ hasUnsettledTurn,
65889
+ selectModelIntent
65890
+ ]);
65653
65891
  (0, import_react60.useEffect)(() => {
65654
65892
  if (admissionBlocked("queue", roundGateFacts()) !== null) return;
65655
65893
  const next = dequeueQueued();
65656
- if (next !== void 0) void runTurn(next);
65894
+ if (next === void 0) return;
65895
+ if (next.kind === "human" && next.command) {
65896
+ const behind = roundQueueRef.current.items();
65897
+ roundQueueRef.current.replace([]);
65898
+ queuedBehindCommandRef.current = behind;
65899
+ try {
65900
+ handleSubmit(next.text, void 0, "submit", {
65901
+ source: "queued-command"
65902
+ });
65903
+ } finally {
65904
+ roundQueueRef.current.replace([...roundQueueRef.current.items(), ...behind]);
65905
+ queuedBehindCommandRef.current = null;
65906
+ }
65907
+ return;
65908
+ }
65909
+ void runTurn(next);
65657
65910
  }, [
65658
65911
  state,
65659
65912
  phase,
@@ -65665,6 +65918,7 @@ ${plugins.map((plugin) => {
65665
65918
  choicePicker,
65666
65919
  copyPicker,
65667
65920
  dequeueQueued,
65921
+ handleSubmit,
65668
65922
  hasUnsettledTurn,
65669
65923
  runTurn
65670
65924
  ]);
@@ -65674,6 +65928,7 @@ ${plugins.map((plugin) => {
65674
65928
  peersStartingRef.current = true;
65675
65929
  let disposed = false;
65676
65930
  let opened = null;
65931
+ const workspaceHostSlot = hostSlot(process.env);
65677
65932
  const hostFacts = /* @__PURE__ */ __name(() => {
65678
65933
  let activity;
65679
65934
  try {
@@ -65707,10 +65962,10 @@ ${plugins.map((plugin) => {
65707
65962
  wakePeers((version) => version + 1);
65708
65963
  }, "available"),
65709
65964
  report: /* @__PURE__ */ __name((text) => pushMessage("system", text), "report"),
65710
- ...process.env.NAMZU_SPACE_SLOT ? { hostSlot: process.env.NAMZU_SPACE_SLOT } : {},
65711
- // Only a session inside a spaces host writes the new record fields, so a plain
65965
+ ...workspaceHostSlot ? { hostSlot: workspaceHostSlot } : {},
65966
+ // Only a session inside a workspaces host writes the new record fields, so a plain
65712
65967
  // session stays readable by builds that predate them.
65713
- ...process.env.NAMZU_SPACE_SLOT ? {
65968
+ ...workspaceHostSlot ? {
65714
65969
  conversation: /* @__PURE__ */ __name(() => conversationMaterializedRef.current ? scopeRef.current?.sessionId : void 0, "conversation"),
65715
65970
  account: /* @__PURE__ */ __name(() => hostFacts().account, "account"),
65716
65971
  limited: /* @__PURE__ */ __name(() => hostFacts().limited, "limited"),
@@ -67171,7 +67426,7 @@ ${plugins.map((plugin) => {
67171
67426
  onDraftPresenceChange: setComposerHasDraft,
67172
67427
  onOpenAgentPanel: focusAgentRail,
67173
67428
  onOpenAgents: () => void openAgentCockpit(),
67174
- onOpenSpaces: onOpenSpaces ? () => void onOpenSpaces().then((opened) => {
67429
+ onOpenWorkspaces: onOpenWorkspaces ? () => void onOpenWorkspaces().then((opened) => {
67175
67430
  if (!opened) void openAgentCockpit();
67176
67431
  }) : void 0,
67177
67432
  onScrollTranscript: () => setScrollOpen(true),
@@ -67233,8 +67488,8 @@ ${plugins.map((plugin) => {
67233
67488
  monitorCount: showComposerSurface && !childSurfaceOpen ? runningMonitorCount : 0,
67234
67489
  pr: prStatus,
67235
67490
  hyperlinks,
67236
- agentCount: footerKeysLive && !onOpenSpaces ? runningAgentCount : 0,
67237
- workflowCount: footerKeysLive && !onOpenSpaces ? runningWorkflowCount : 0,
67491
+ agentCount: footerKeysLive && !onOpenWorkspaces ? runningAgentCount : 0,
67492
+ workflowCount: footerKeysLive && !onOpenWorkspaces ? runningWorkflowCount : 0,
67238
67493
  canManage: footerKeysLive && railFocus === null && (runningShellCount > 0 || railHasRows),
67239
67494
  shellsSelected: railFocus === SHELLS_FOCUS,
67240
67495
  ...tasks.length > 0 && showComposerSurface && !childSurfaceOpen ? { tasksOpen: checklistOpen } : {},
@@ -67415,9 +67670,15 @@ function withAccountLabel(model, provider, account) {
67415
67670
  }
67416
67671
  __name(withAccountLabel, "withAccountLabel");
67417
67672
  function choicePickerSearchable(picker) {
67418
- return ["command", "skill", "plugin", "review-branch", "review-commit", "account"].includes(
67419
- picker.kind
67420
- );
67673
+ return [
67674
+ "command",
67675
+ "skill",
67676
+ "plugin",
67677
+ "review-branch",
67678
+ "review-commit",
67679
+ "account",
67680
+ "model-live"
67681
+ ].includes(picker.kind);
67421
67682
  }
67422
67683
  __name(choicePickerSearchable, "choicePickerSearchable");
67423
67684
  function loadedPluginPicker(owner) {
@@ -67955,7 +68216,7 @@ function fileTipHistory(home) {
67955
68216
  __name(fileTipHistory, "fileTipHistory");
67956
68217
 
67957
68218
  // src/tui/zoom/leave.ts
67958
- async function leaveSpacesBounded(options) {
68219
+ async function leaveWorkspacesBounded(options) {
67959
68220
  let wanted = true;
67960
68221
  let timer;
67961
68222
  const hand = /* @__PURE__ */ __name(async () => {
@@ -67975,7 +68236,7 @@ async function leaveSpacesBounded(options) {
67975
68236
  clearTimeout(timer);
67976
68237
  }
67977
68238
  }
67978
- __name(leaveSpacesBounded, "leaveSpacesBounded");
68239
+ __name(leaveWorkspacesBounded, "leaveWorkspacesBounded");
67979
68240
 
67980
68241
  // src/tui/zoom/proxy.ts
67981
68242
  import { EventEmitter as EventEmitter3 } from "node:events";
@@ -68119,7 +68380,7 @@ function createTerminalProxy(realOut, realIn) {
68119
68380
  __name(createTerminalProxy, "createTerminalProxy");
68120
68381
 
68121
68382
  // src/tui/index.tsx
68122
- var LEAVE_SPACES_MS = 2e3;
68383
+ var LEAVE_WORKSPACES_MS = 2e3;
68123
68384
  async function launchTui(ctx, options = {}) {
68124
68385
  const invocation = {
68125
68386
  cwd: resolve8(ctx.cwd),
@@ -68152,51 +68413,51 @@ async function launchTui(ctx, options = {}) {
68152
68413
  const proxy = !hosted && consoleInput === void 0 && process.platform !== "win32" && process.stdout.isTTY === true && inputStream.isTTY === true ? createTerminalProxy(process.stdout, inputStream) : null;
68153
68414
  const terminationExit = { current: null };
68154
68415
  const repaint = { current: null };
68155
- const spaces = {
68416
+ const workspaces = {
68156
68417
  current: null
68157
68418
  };
68158
- const spacesEntry = /* @__PURE__ */ __name(() => {
68159
- spaces.current ??= import("./entry-HLIJKK65.js").then(
68160
- (m) => m.createSpacesEntry({
68419
+ const workspacesEntry = /* @__PURE__ */ __name(() => {
68420
+ workspaces.current ??= import("./entry-P6YPWRQW.js").then(
68421
+ (m) => m.createWorkspacesEntry({
68161
68422
  proxy,
68162
68423
  realOut: process.stdout,
68163
68424
  env: process.env,
68164
68425
  cwd: process.cwd(),
68165
68426
  entry: process.argv[1],
68166
- prefixSetting: ctx.tui?.spacesPrefix,
68427
+ prefixSetting: ctx.tui?.workspacesPrefix ?? ctx.tui?.spacesPrefix,
68167
68428
  ...ctx.tui?.mouse !== void 0 ? { mouseSetting: ctx.tui.mouse } : {},
68168
68429
  ...ctx.tui?.copyOnSelect !== void 0 ? { copyOnSelect: ctx.tui.copyOnSelect } : {},
68169
68430
  requestExit: /* @__PURE__ */ __name(() => terminationExit.current ? terminationExit.current() : instance.unmount(), "requestExit"),
68170
68431
  repaint: /* @__PURE__ */ __name(() => repaint.current?.(), "repaint")
68171
68432
  })
68172
68433
  );
68173
- return spaces.current;
68174
- }, "spacesEntry");
68175
- const onOpenSpaces = hosted ? () => {
68176
- process.stdout.write(spacesSignal("zoom-out"));
68434
+ return workspaces.current;
68435
+ }, "workspacesEntry");
68436
+ const onOpenWorkspaces = hosted ? () => {
68437
+ process.stdout.write(workspacesSignal("zoom-out"));
68177
68438
  return Promise.resolve(true);
68178
68439
  } : proxy !== null ? async () => {
68179
68440
  try {
68180
- return await (await spacesEntry()).open();
68441
+ return await (await workspacesEntry()).open();
68181
68442
  } catch {
68182
68443
  return false;
68183
68444
  }
68184
68445
  } : void 0;
68185
68446
  const onConfirmExit = !hosted && proxy !== null ? async () => {
68186
68447
  try {
68187
- return spaces.current === null ? true : await (await spaces.current).confirmExit();
68448
+ return workspaces.current === null ? true : await (await workspaces.current).confirmExit();
68188
68449
  } catch {
68189
68450
  return true;
68190
68451
  }
68191
68452
  } : void 0;
68192
68453
  const beforeExit = !hosted && proxy !== null ? async () => {
68193
- if (spaces.current === null) return;
68194
- await leaveSpacesBounded({
68195
- release: /* @__PURE__ */ __name((stillWanted) => spaces.current.then(
68454
+ if (workspaces.current === null) return;
68455
+ await leaveWorkspacesBounded({
68456
+ release: /* @__PURE__ */ __name((stillWanted) => workspaces.current.then(
68196
68457
  (entry) => entry.release(stillWanted)
68197
68458
  ), "release"),
68198
68459
  flush: /* @__PURE__ */ __name(() => instance.waitUntilRenderFlush(), "flush"),
68199
- limitMs: LEAVE_SPACES_MS
68460
+ limitMs: LEAVE_WORKSPACES_MS
68200
68461
  });
68201
68462
  } : void 0;
68202
68463
  let terminatedBy = null;
@@ -68208,7 +68469,7 @@ async function launchTui(ctx, options = {}) {
68208
68469
  }, "onExitSummary"),
68209
68470
  terminationExit,
68210
68471
  repaint,
68211
- ...onOpenSpaces ? { onOpenSpaces } : {},
68472
+ ...onOpenWorkspaces ? { onOpenWorkspaces } : {},
68212
68473
  ...onConfirmExit ? { onConfirmExit } : {},
68213
68474
  ...beforeExit ? { beforeExit } : {},
68214
68475
  examplePrompts: true,
@@ -68237,12 +68498,12 @@ async function launchTui(ctx, options = {}) {
68237
68498
  if (terminationExit.current) terminationExit.current();
68238
68499
  else instance.unmount();
68239
68500
  await instance.waitUntilExit();
68240
- if (spaces.current !== null) await (await spaces.current).shutdown();
68501
+ if (workspaces.current !== null) await (await workspaces.current).shutdown();
68241
68502
  });
68242
68503
  try {
68243
68504
  await instance.waitUntilExit();
68244
68505
  } finally {
68245
- if (spaces.current !== null) await (await spaces.current).shutdown();
68506
+ if (workspaces.current !== null) await (await workspaces.current).shutdown();
68246
68507
  termination.dispose();
68247
68508
  stopSizeWatch?.();
68248
68509
  stopFocusReporting();
@@ -68346,4 +68607,4 @@ react/cjs/react-jsx-runtime.development.js:
68346
68607
  * LICENSE file in the root directory of this source tree.
68347
68608
  *)
68348
68609
  */
68349
- //# sourceMappingURL=tui-5HAU6RLS.js.map
68610
+ //# sourceMappingURL=tui-CCAGK7BG.js.map