@dylanpiercey/work 0.0.54 → 0.0.56

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 (236) hide show
  1. package/dist/{_DR15xnsO.js → _DIz1o5GR.js} +78 -90
  2. package/dist/{_B4j4T87Y.js → _NR7OKpDq.js} +67 -31
  3. package/dist/index.mjs +1193 -985
  4. package/dist/public/assets/{_D0ZL1lfg.js → _-lSLGa1X.js} +1 -1
  5. package/dist/public/assets/_-lSLGa1X.js.br +0 -0
  6. package/dist/public/assets/{_CqcR6jL3.js → _0sKce3DV.js} +1 -1
  7. package/dist/public/assets/_0sKce3DV.js.br +0 -0
  8. package/dist/public/assets/_7b2d3rgi.js +1531 -0
  9. package/dist/public/assets/_7b2d3rgi.js.br +0 -0
  10. package/dist/public/assets/{_BQsqC8hk2.js → _AbzQXEHp2.js} +1 -1
  11. package/dist/public/assets/_AbzQXEHp2.js.br +0 -0
  12. package/dist/public/assets/{_Di8Ne6Hf.js → _B0Gim1bv.js} +1 -1
  13. package/dist/public/assets/_B0Gim1bv.js.br +0 -0
  14. package/dist/public/assets/{_Ct31p7v-.js → _B17TTTZR.js} +1 -1
  15. package/dist/public/assets/_B17TTTZR.js.br +0 -0
  16. package/dist/public/assets/{_BXF4B0C02.js → _B8d3tGnJ2.js} +1 -1
  17. package/dist/public/assets/_B8d3tGnJ2.js.br +0 -0
  18. package/dist/public/assets/{_BHEpUtr6.js → _BBKegQCI.js} +1 -1
  19. package/dist/public/assets/_BBKegQCI.js.br +0 -0
  20. package/dist/public/assets/{_xgbGvU0_.js → _BNl09okr.js} +1 -1
  21. package/dist/public/assets/_BNl09okr.js.br +0 -0
  22. package/dist/public/assets/{_NiC1R4Zi.js → _BO5qyyi2.js} +1 -1
  23. package/dist/public/assets/_BO5qyyi2.js.br +0 -0
  24. package/dist/public/assets/{_BAlET148.js → _BOGVYYJ7.js} +1 -1
  25. package/dist/public/assets/_BOGVYYJ7.js.br +0 -0
  26. package/dist/public/assets/{_CRdFP8h02.js → _BaIIgHFy2.js} +1 -1
  27. package/dist/public/assets/_BaIIgHFy2.js.br +0 -0
  28. package/dist/public/assets/{_CfEBnXzN2.js → _BaXDiy612.js} +1 -1
  29. package/dist/public/assets/_BaXDiy612.js.br +0 -0
  30. package/dist/public/assets/{_B4FjU53F.js → _BcEDvwN5.js} +1 -1
  31. package/dist/public/assets/_BcEDvwN5.js.br +0 -0
  32. package/dist/public/assets/{_BUZmjFg3.js → _BiGLT1t7.js} +1 -1
  33. package/dist/public/assets/_BiGLT1t7.js.br +0 -0
  34. package/dist/public/assets/{_DqHB-IE62.js → _Biu-1XkM2.js} +1 -1
  35. package/dist/public/assets/_Biu-1XkM2.js.br +0 -0
  36. package/dist/public/assets/{_80INQku92.js → _BlFvBX6J2.js} +1 -1
  37. package/dist/public/assets/_BlFvBX6J2.js.br +0 -0
  38. package/dist/public/assets/{_m3T7ukQb.js → _C2Gfwg0M.js} +1 -1
  39. package/dist/public/assets/_C2Gfwg0M.js.br +0 -0
  40. package/dist/public/assets/{_DO4-VZBL.js → _C7Jrixyu.js} +1 -1
  41. package/dist/public/assets/_C7Jrixyu.js.br +0 -0
  42. package/dist/public/assets/{_CDjaEo10.js → _C9XDAb0z.js} +1 -1
  43. package/dist/public/assets/_C9XDAb0z.js.br +0 -0
  44. package/dist/public/assets/{_JunsJNNT.js → _CE-iT2kz.js} +1 -1
  45. package/dist/public/assets/{_3iN6whOI.js → _CF6jXhzt.js} +1 -1
  46. package/dist/public/assets/_CF6jXhzt.js.br +0 -0
  47. package/dist/public/assets/{_C3KlaubL.js → _CJhLmJWq.js} +1 -1
  48. package/dist/public/assets/_CJhLmJWq.js.br +0 -0
  49. package/dist/public/assets/{_jwK_hfjX.js → _CKY9r5tW.js} +1 -1
  50. package/dist/public/assets/_CKY9r5tW.js.br +0 -0
  51. package/dist/public/assets/{_pGFAO9Go.js → _CN5zho60.js} +1 -1
  52. package/dist/public/assets/_CN5zho60.js.br +0 -0
  53. package/dist/public/assets/{_D-VvLd-E.js → _CQryXtHV.js} +1 -1
  54. package/dist/public/assets/_CQryXtHV.js.br +0 -0
  55. package/dist/public/assets/{_ByDxqOzU.js → _CTZc-Lfc.js} +1 -1
  56. package/dist/public/assets/_CTZc-Lfc.js.br +0 -0
  57. package/dist/public/assets/{_A2jsCTtm.js → _CXjvK8or.js} +1 -1
  58. package/dist/public/assets/_CXjvK8or.js.br +0 -0
  59. package/dist/public/assets/{_HLo9hRiL.js → _CZWTVsYT.js} +1 -1
  60. package/dist/public/assets/_CZWTVsYT.js.br +0 -0
  61. package/dist/public/assets/{_D22P9fs6.js → _CZqQrh0N.js} +1 -1
  62. package/dist/public/assets/_CZqQrh0N.js.br +0 -0
  63. package/dist/public/assets/{_BQdiaGWX.js → _CaIg6xVS.js} +1 -1
  64. package/dist/public/assets/_CaIg6xVS.js.br +0 -0
  65. package/dist/public/assets/{_CHLpoD3f.js → _Ce5_uM-0.js} +1 -1
  66. package/dist/public/assets/_Ce5_uM-0.js.br +0 -0
  67. package/dist/public/assets/{_CyA-LmOZ.js → _CgEyfAXY.js} +1 -1
  68. package/dist/public/assets/_CgEyfAXY.js.br +0 -0
  69. package/dist/public/assets/{_ClYsbNrN.js → _CmgnZObA.js} +1 -1
  70. package/dist/public/assets/_CmgnZObA.js.br +0 -0
  71. package/dist/public/assets/{_Cp4nSHKn.js → _Cu2JPWTZ.js} +1 -1
  72. package/dist/public/assets/_Cu2JPWTZ.js.br +0 -0
  73. package/dist/public/assets/{_kJnweNq_2.js → _CubUwl0d2.js} +1 -1
  74. package/dist/public/assets/_CubUwl0d2.js.br +0 -0
  75. package/dist/public/assets/{_Dj_1nc7E.js → _CwKBm8kp.js} +1 -1
  76. package/dist/public/assets/_CwKBm8kp.js.br +0 -0
  77. package/dist/public/assets/{_DhxBiaex2.js → _Cxs8hu_52.js} +1 -1
  78. package/dist/public/assets/_Cxs8hu_52.js.br +0 -0
  79. package/dist/public/assets/{_C9jMFK4-.js → _D0yMt5Tt.js} +1 -1
  80. package/dist/public/assets/_D0yMt5Tt.js.br +0 -0
  81. package/dist/public/assets/{_C8QiF9rQ2.js → _D3W0XyUU2.js} +1 -1
  82. package/dist/public/assets/_D3W0XyUU2.js.br +0 -0
  83. package/dist/public/assets/{_COZxTai62.js → _D7qGgJvf2.js} +1 -1
  84. package/dist/public/assets/_D7qGgJvf2.js.br +0 -0
  85. package/dist/public/assets/{_b94SvbqO.js → _D8kyhtPi.js} +1 -1
  86. package/dist/public/assets/_D8kyhtPi.js.br +0 -0
  87. package/dist/public/assets/{_CQADEuH72.js → _DF8KYJxU2.js} +1 -1
  88. package/dist/public/assets/_DF8KYJxU2.js.br +0 -0
  89. package/dist/public/assets/{_Dm6TcMqi.js → _DQ1mq82l.js} +1 -1
  90. package/dist/public/assets/_DQ1mq82l.js.br +0 -0
  91. package/dist/public/assets/{_Da-rGF4b.js → _DTCgKMCu.js} +1 -1
  92. package/dist/public/assets/_DTCgKMCu.js.br +0 -0
  93. package/dist/public/assets/{_Cm3lFAdK.js → _DUYb6nZs.js} +1 -1
  94. package/dist/public/assets/_DUYb6nZs.js.br +0 -0
  95. package/dist/public/assets/{_7jeC7CYl.js → _DW7rXYKI.js} +1 -1
  96. package/dist/public/assets/_DW7rXYKI.js.br +0 -0
  97. package/dist/public/assets/{_DTu90wH32.js → _DY71Ifmc2.js} +1 -1
  98. package/dist/public/assets/_DY71Ifmc2.js.br +0 -0
  99. package/dist/public/assets/{_CKk0ZDCe2.js → _DY9msspQ2.js} +1 -1
  100. package/dist/public/assets/_DY9msspQ2.js.br +0 -0
  101. package/dist/public/assets/{_Ck3v32PD2.js → _D_8_vYUR2.js} +1 -1
  102. package/dist/public/assets/_D_8_vYUR2.js.br +0 -0
  103. package/dist/public/assets/{_CrE6MkHi.js → _DdZ4PATN.js} +1 -1
  104. package/dist/public/assets/_DdZ4PATN.js.br +0 -0
  105. package/dist/public/assets/{_6ljHM438.js → _Dful9JXZ.js} +1 -1
  106. package/dist/public/assets/_Dful9JXZ.js.br +0 -0
  107. package/dist/public/assets/{_CxtuK-4o.js → _DgUBZtR3.js} +1 -1
  108. package/dist/public/assets/_DgUBZtR3.js.br +0 -0
  109. package/dist/public/assets/{_Dzq_2DGW.js → _DgZSpof0.js} +1 -1
  110. package/dist/public/assets/_DgZSpof0.js.br +0 -0
  111. package/dist/public/assets/{_BoZqES4q2.js → _Dj6Mbuuc2.js} +1 -1
  112. package/dist/public/assets/_Dj6Mbuuc2.js.br +0 -0
  113. package/dist/public/assets/{_Cy0DKZKN2.js → _Dqxtkq0w2.js} +1 -1
  114. package/dist/public/assets/_Dqxtkq0w2.js.br +0 -0
  115. package/dist/public/assets/{_C2GlkLwv2.js → _Dshlpqjt2.js} +1 -1
  116. package/dist/public/assets/_Dshlpqjt2.js.br +0 -0
  117. package/dist/public/assets/{_CvhEn6fJ.js → _DtBpXNIh.js} +1 -1
  118. package/dist/public/assets/_DtBpXNIh.js.br +0 -0
  119. package/dist/public/assets/{_5J2qupPz.js → _Dwf8rf44.js} +1 -1
  120. package/dist/public/assets/_Dwf8rf44.js.br +0 -0
  121. package/dist/public/assets/{_DkB32b3m.js → _JvWZam0k.js} +1 -1
  122. package/dist/public/assets/_JvWZam0k.js.br +0 -0
  123. package/dist/public/assets/{_DgNVeyzF2.js → _SpxsOOpo2.js} +1 -1
  124. package/dist/public/assets/_SpxsOOpo2.js.br +0 -0
  125. package/dist/public/assets/{_CcTjaIzI.js → _SyQQGpVD.js} +1 -1
  126. package/dist/public/assets/_SyQQGpVD.js.br +0 -0
  127. package/dist/public/assets/{_d5f4QTNy.js → _TfOHMltj.js} +1 -1
  128. package/dist/public/assets/_TfOHMltj.js.br +0 -0
  129. package/dist/public/assets/{_bvtTZwpQ2.js → _WttPWnIr2.js} +1 -1
  130. package/dist/public/assets/{_BZLAeUzn2.js → _chCpX0h02.js} +1 -1
  131. package/dist/public/assets/_chCpX0h02.js.br +0 -0
  132. package/dist/public/assets/{_BAxaVCgt.js → _fHPGL1Uw.js} +1 -1
  133. package/dist/public/assets/_fHPGL1Uw.js.br +0 -0
  134. package/dist/public/assets/{_beMrsQN4.js → _fQHFmOad.js} +1 -1
  135. package/dist/public/assets/_fQHFmOad.js.br +0 -0
  136. package/dist/public/assets/{_C3VLh26m2.js → _fYprPTRa2.js} +1 -1
  137. package/dist/public/assets/_fYprPTRa2.js.br +0 -0
  138. package/dist/public/assets/{_Dyazf_9g2.js → _iu_009nj2.js} +1 -1
  139. package/dist/public/assets/{_D-8pDqL72.js → _k1dlhrqh2.js} +1 -1
  140. package/dist/public/assets/_k1dlhrqh2.js.br +0 -0
  141. package/dist/public/assets/{_DsppIoFS.js → _kBcVAsq0.js} +1 -1
  142. package/dist/public/assets/_kBcVAsq0.js.br +0 -0
  143. package/dist/public/assets/{_Bhh5Ko4a.js → _mUaACIff.js} +1 -1
  144. package/dist/public/assets/_mUaACIff.js.br +0 -0
  145. package/dist/public/assets/{_0V8k51kI.js → _mZNHePjN.js} +1 -1
  146. package/dist/public/assets/_mZNHePjN.js.br +0 -0
  147. package/dist/public/assets/{_I86QjKeM2.js → _qzqTdGii2.js} +1 -1
  148. package/dist/public/assets/_qzqTdGii2.js.br +0 -0
  149. package/dist/public/assets/{_WdT3NjzX.js → _uQRM3h6j.js} +1 -1
  150. package/dist/public/assets/_uQRM3h6j.js.br +0 -0
  151. package/dist/public/assets/diff-view-DO46OB-W.css +1 -0
  152. package/dist/public/assets/diff-view-DO46OB-W.css.br +0 -0
  153. package/dist/public/assets/index-CbawCDfW.js +85 -0
  154. package/dist/public/assets/index-CbawCDfW.js.br +0 -0
  155. package/dist/public/assets/index-DlWmrprG.css +1 -0
  156. package/dist/public/assets/index-DlWmrprG.css.br +0 -0
  157. package/package.json +1 -1
  158. package/dist/public/assets/_0V8k51kI.js.br +0 -0
  159. package/dist/public/assets/_3iN6whOI.js.br +0 -0
  160. package/dist/public/assets/_5J2qupPz.js.br +0 -0
  161. package/dist/public/assets/_6ljHM438.js.br +0 -0
  162. package/dist/public/assets/_7jeC7CYl.js.br +0 -0
  163. package/dist/public/assets/_80INQku92.js.br +0 -0
  164. package/dist/public/assets/_A2jsCTtm.js.br +0 -0
  165. package/dist/public/assets/_B4FjU53F.js.br +0 -0
  166. package/dist/public/assets/_BAlET148.js.br +0 -0
  167. package/dist/public/assets/_BAxaVCgt.js.br +0 -0
  168. package/dist/public/assets/_BHEpUtr6.js.br +0 -0
  169. package/dist/public/assets/_BQdiaGWX.js.br +0 -0
  170. package/dist/public/assets/_BQsqC8hk2.js.br +0 -0
  171. package/dist/public/assets/_BUZmjFg3.js.br +0 -0
  172. package/dist/public/assets/_BXF4B0C02.js.br +0 -0
  173. package/dist/public/assets/_BZLAeUzn2.js.br +0 -0
  174. package/dist/public/assets/_Bhh5Ko4a.js.br +0 -0
  175. package/dist/public/assets/_BoZqES4q2.js.br +0 -0
  176. package/dist/public/assets/_ByDxqOzU.js.br +0 -0
  177. package/dist/public/assets/_C2GlkLwv2.js.br +0 -0
  178. package/dist/public/assets/_C3KlaubL.js.br +0 -0
  179. package/dist/public/assets/_C3VLh26m2.js.br +0 -0
  180. package/dist/public/assets/_C8QiF9rQ2.js.br +0 -0
  181. package/dist/public/assets/_C9jMFK4-.js.br +0 -0
  182. package/dist/public/assets/_CDjaEo10.js.br +0 -0
  183. package/dist/public/assets/_CHLpoD3f.js.br +0 -0
  184. package/dist/public/assets/_CKk0ZDCe2.js.br +0 -0
  185. package/dist/public/assets/_COZxTai62.js.br +0 -0
  186. package/dist/public/assets/_CQADEuH72.js.br +0 -0
  187. package/dist/public/assets/_CRdFP8h02.js.br +0 -0
  188. package/dist/public/assets/_CcTjaIzI.js.br +0 -0
  189. package/dist/public/assets/_CfEBnXzN2.js.br +0 -0
  190. package/dist/public/assets/_Ck3v32PD2.js.br +0 -0
  191. package/dist/public/assets/_ClYsbNrN.js.br +0 -0
  192. package/dist/public/assets/_Cm3lFAdK.js.br +0 -0
  193. package/dist/public/assets/_Cp4nSHKn.js.br +0 -0
  194. package/dist/public/assets/_CqcR6jL3.js.br +0 -0
  195. package/dist/public/assets/_CrE6MkHi.js.br +0 -0
  196. package/dist/public/assets/_CsWJaBHs.js +0 -1531
  197. package/dist/public/assets/_CsWJaBHs.js.br +0 -0
  198. package/dist/public/assets/_Ct31p7v-.js.br +0 -0
  199. package/dist/public/assets/_CvhEn6fJ.js.br +0 -0
  200. package/dist/public/assets/_CxtuK-4o.js.br +0 -0
  201. package/dist/public/assets/_Cy0DKZKN2.js.br +0 -0
  202. package/dist/public/assets/_CyA-LmOZ.js.br +0 -0
  203. package/dist/public/assets/_D-8pDqL72.js.br +0 -0
  204. package/dist/public/assets/_D-VvLd-E.js.br +0 -0
  205. package/dist/public/assets/_D0ZL1lfg.js.br +0 -0
  206. package/dist/public/assets/_D22P9fs6.js.br +0 -0
  207. package/dist/public/assets/_DO4-VZBL.js.br +0 -0
  208. package/dist/public/assets/_DTu90wH32.js.br +0 -0
  209. package/dist/public/assets/_Da-rGF4b.js.br +0 -0
  210. package/dist/public/assets/_DgNVeyzF2.js.br +0 -0
  211. package/dist/public/assets/_DhxBiaex2.js.br +0 -0
  212. package/dist/public/assets/_Di8Ne6Hf.js.br +0 -0
  213. package/dist/public/assets/_Dj_1nc7E.js.br +0 -0
  214. package/dist/public/assets/_DkB32b3m.js.br +0 -0
  215. package/dist/public/assets/_Dm6TcMqi.js.br +0 -0
  216. package/dist/public/assets/_DqHB-IE62.js.br +0 -0
  217. package/dist/public/assets/_DsppIoFS.js.br +0 -0
  218. package/dist/public/assets/_Dzq_2DGW.js.br +0 -0
  219. package/dist/public/assets/_HLo9hRiL.js.br +0 -0
  220. package/dist/public/assets/_I86QjKeM2.js.br +0 -0
  221. package/dist/public/assets/_NiC1R4Zi.js.br +0 -0
  222. package/dist/public/assets/_WdT3NjzX.js.br +0 -0
  223. package/dist/public/assets/_b94SvbqO.js.br +0 -0
  224. package/dist/public/assets/_beMrsQN4.js.br +0 -0
  225. package/dist/public/assets/_d5f4QTNy.js.br +0 -0
  226. package/dist/public/assets/_jwK_hfjX.js.br +0 -0
  227. package/dist/public/assets/_kJnweNq_2.js.br +0 -0
  228. package/dist/public/assets/_m3T7ukQb.js.br +0 -0
  229. package/dist/public/assets/_pGFAO9Go.js.br +0 -0
  230. package/dist/public/assets/_xgbGvU0_.js.br +0 -0
  231. package/dist/public/assets/diff-view-BycwYQvt.css +0 -1
  232. package/dist/public/assets/diff-view-BycwYQvt.css.br +0 -0
  233. package/dist/public/assets/index-CEw5rn6U.css +0 -1
  234. package/dist/public/assets/index-CEw5rn6U.css.br +0 -0
  235. package/dist/public/assets/index-DW2ZKvBG.js +0 -85
  236. package/dist/public/assets/index-DW2ZKvBG.js.br +0 -0
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM, r as __exportAll, t as __commonJSMin } from "./_BMI-E3GI.js";
2
2
  import { $ as get, A as subscribe, B as setPref, C as setScrapedPhase, D as pushPublicKey, E as deleteSubscription, F as disabledAgents, G as setupPath, H as doctor, I as enabledAgents, J as TOOLS, K as which, L as getSetting, M as subscriberJoins, N as agentChoices, O as saveSubscription, P as allPrefs, Q as db, R as preferredAgent, S as setAgentPhase, T as summaryFromHookPayload, U as ghKnownHosts, V as setSetting, W as miseVersions, X as toolById, Y as agentById, Z as all, _ as tmuxName, a as ensureTmuxServer, at as tmux, b as clearAgentPhase, c as killWorkspaceSessions, d as newSessionArgs, et as workspacePath, g as sessionStates, h as sendToSession, i as disposeSessions, it as run, j as subscriberCount, k as publish, l as listSessions, m as renameSession, n as clearTmuxStarted, nt as gh, o as getSession, ot as config, p as panePids, q as DEFAULT_GITHUB_HOST, r as createSession, rt as git, s as killSession, t as cleanEnv, tt as TMUX_SOCKET, u as markTmuxStarted, v as tmuxWasStarted, w as setSessionViewers, x as reasonFromHookPayload, y as reportsWorking, z as setDisabledAgents } from "./_DFLVEzHW.js";
3
- import { $ as _set_serialize_reason, A as _dynamic_tag, B as _html, C as _attr_select_value, D as _await, E as _attrs_partial, F as _existing_scope, G as _resume_branch, H as _if, I as _flush_head, J as _scope_with_id, K as _scope_id, L as _for_of, M as _el_read_error, N as _el_resume, O as _content, P as _escape, Q as _serialize_if, R as _hoist, S as _attr_option_value, T as _attrs, U as _peek_scope_id, V as _id, W as _resume, X as _sep, Y as _script, Z as _serialize_guard, _ as $global, at as _trailers, c as sideNavOpen, ct as attrTag, d as rankRepos, et as _show_end, f as icon_refresh_default, g as phase, h as btnSm, i as icon_sidebar_default, it as _to_text, k as _content_resume, l as workspaceTab, lt as withPageAssets, m as toast_default, n as findIconBtn, nt as _subscribe, ot as _try, p as icon_base_default, q as _scope_reason, r as findInput, rt as _template, s as setWorkspaceTab, st as _var, tt as _show_start, ut as writeScope, v as _attr, w as _attr_style, x as _attr_input_value, y as _attr_class, z as _hoist_read_error } from "./_B4j4T87Y.js";
3
+ import { $ as _id, A as _attr_class, B as _content, C as iconBtnXs, D as tone, E as phase, F as _attr_select_value, G as _el_resume, H as _dynamic_tag, I as _attr_style, J as _flush_head, K as _escape, L as _attrs, M as _attr_input_value, N as _attr_option_value, O as $global, P as _attr_or, Q as _html, R as _attrs_partial, S as iconBtnRow, St as writeScope, T as metaTrunc, V as _content_resume, W as _el_read_error, X as _hoist, Y as _for_of, Z as _hoist_read_error, _ as sectionCount$1, _t as _trailers, at as _scope_reason, b as btnSm, bt as attrTag, c as sideNavOpen, ct as _sep, d as rankRepos, dt as _set_serialize_reason, et as _if, f as icon_back_default, ft as _show_end, g as row, gt as _to_text, h as iconBtn$2, ht as _template, i as icon_sidebar_default, it as _scope_id, k as _attr, l as workspaceTab, lt as _serialize_guard, m as icon_base_default, mt as _subscribe, n as findIconBtn, nt as _resume, ot as _scope_with_id, p as icon_refresh_default, pt as _show_start, q as _existing_scope, r as findInput, rt as _resume_branch, s as setWorkspaceTab, st as _script, tt as _peek_scope_id, ut as _serialize_if, v as toast_default, vt as _try, w as inputLg, xt as withPageAssets, y as btnLg, yt as _var, z as _await } from "./_NR7OKpDq.js";
4
4
  import fs from "node:fs";
5
5
  import { createServer } from "node:http";
6
6
  import path from "node:path";
@@ -3085,11 +3085,56 @@ function agentFromCommand(command) {
3085
3085
  }
3086
3086
  //#endregion
3087
3087
  //#region src/tags/settings-page.css.ts
3088
- var content$2 = "_bW _T _U";
3089
- var agentGrid = "_b0 _bI";
3090
- var defaultTag = "_b6 _bP";
3091
- var toolGrid = "_cc _bI";
3092
- var iconBtn$3 = "_bU _D";
3088
+ var content$2 = "_bZ _bd _be";
3089
+ var agentGrid = "_b3 _bo";
3090
+ var toolGrid = "_cb _bo";
3091
+ //#endregion
3092
+ //#region src/tags/page-head.marko
3093
+ var page_head_default = _template("o", (input) => {
3094
+ const $scope0_reason = _scope_reason(), $sg__input_onBack__OR__input_meta__OR__input_actions = _serialize_guard($scope0_reason, 1), $sg__input_meta = _serialize_guard($scope0_reason, 5), $sg__input_actions = _serialize_guard($scope0_reason, 6), $si__input_meta = _serialize_if($scope0_reason, 5), $si__input_actions = _serialize_if($scope0_reason, 6);
3095
+ const $scope0_id = _scope_id();
3096
+ _html(`<header${_attr_class("_bf")}>`);
3097
+ _if(() => {
3098
+ if (input.onBack) {
3099
+ const $scope1_id = _scope_id();
3100
+ _html(`<button${_attr_class([iconBtnRow, "_ck"])}${_attr_or("title", input.backTitle, " title=\"Back — Esc\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
3101
+ icon_back_default({ size: 16 });
3102
+ _html(`</button>${_el_resume($scope1_id, "a")}`);
3103
+ _script($scope1_id, "o0");
3104
+ writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
3105
+ return 0;
3106
+ }
3107
+ }, $scope0_id, "b", _serialize_guard($scope0_reason, 0), _serialize_guard($scope0_reason, 2), $sg__input_onBack__OR__input_meta__OR__input_actions, 0, 1);
3108
+ _html(`<div${_attr_class("_bh")}><h1${_attr("id", input.titleId)}${_attr_class("_bg")}>${_escape(input.title)}${_el_resume($scope0_id, "e", _serialize_guard($scope0_reason, 4))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 3))}`);
3109
+ _if(() => {
3110
+ if (input.meta) {
3111
+ const $scope2_id = _scope_id();
3112
+ _html(`<p${_attr_class("_bi")}>`);
3113
+ _dynamic_tag($scope2_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
3114
+ _html("</p>");
3115
+ $si__input_meta && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
3116
+ return 0;
3117
+ }
3118
+ }, $scope0_id, "f", $sg__input_meta, $sg__input_meta, $sg__input_onBack__OR__input_meta__OR__input_actions, 0, 1);
3119
+ _html("</div>");
3120
+ _if(() => {
3121
+ if (input.actions) {
3122
+ const $scope3_id = _scope_id();
3123
+ _html(`<div${_attr_class("_bj")}>`);
3124
+ _dynamic_tag($scope3_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
3125
+ _html("</div>");
3126
+ $si__input_actions && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
3127
+ return 0;
3128
+ }
3129
+ }, $scope0_id, "g", $sg__input_actions, $sg__input_actions, $sg__input_onBack__OR__input_meta__OR__input_actions, 0, 1);
3130
+ _html("</header>");
3131
+ writeScope($scope0_id, {
3132
+ j: input.onBack,
3133
+ k: _serialize_if($scope0_reason, 2) && input.backTitle,
3134
+ n: $si__input_meta && input.meta,
3135
+ o: $si__input_actions && input.actions
3136
+ });
3137
+ });
3093
3138
  //#endregion
3094
3139
  //#region src/tags/icons/icon-agent.marko
3095
3140
  var PATHS = {
@@ -3099,7 +3144,7 @@ var PATHS = {
3099
3144
  copilot: "M19.245 5.364c1.322 1.36 1.877 3.216 2.11 5.817.622 0 1.2.135 1.592.654l.73.964c.21.278.323.61.323.955v2.62c0 .339-.173.669-.453.868C20.239 19.602 16.157 21.5 12 21.5c-4.6 0-9.205-2.583-11.547-4.258-.28-.2-.452-.53-.453-.868v-2.62c0-.345.113-.679.321-.956l.73-.963c.392-.517.974-.654 1.593-.654l.029-.297c.25-2.446.81-4.213 2.082-5.52 2.461-2.54 5.71-2.851 7.146-2.864h.198c1.436.013 4.685.323 7.146 2.864zm-7.244 4.328c-.284 0-.613.016-.962.05-.123.447-.305.85-.57 1.108-1.05 1.023-2.316 1.18-2.994 1.18-.638 0-1.306-.13-1.851-.464-.516.165-1.012.403-1.044.996a65.882 65.882 0 00-.063 2.884l-.002.48c-.002.563-.005 1.126-.013 1.69.002.326.204.63.51.765 2.482 1.102 4.83 1.657 6.99 1.657 2.156 0 4.504-.555 6.985-1.657a.854.854 0 00.51-.766c.03-1.682.006-3.372-.076-5.053-.031-.596-.528-.83-1.046-.996-.546.333-1.212.464-1.85.464-.677 0-1.942-.157-2.993-1.18-.266-.258-.447-.661-.57-1.108-.32-.032-.64-.049-.96-.05zm-2.525 4.013c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zm5 0c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zM7.635 5.087c-1.05.102-1.935.438-2.385.906-.975 1.037-.765 3.668-.21 4.224.405.394 1.17.657 1.995.657h.09c.649-.013 1.785-.176 2.73-1.11.435-.41.705-1.433.675-2.47-.03-.834-.27-1.52-.63-1.813-.39-.336-1.275-.482-2.265-.394zm6.465.394c-.36.292-.6.98-.63 1.813-.03 1.037.24 2.06.675 2.47.968.957 2.136 1.104 2.776 1.11h.044c.825 0 1.59-.263 1.995-.657.555-.556.765-3.187-.21-4.224-.45-.468-1.335-.804-2.385-.906-.99-.088-1.875.058-2.265.394zM12 7.615c-.24 0-.525.015-.84.044.03.16.045.336.06.526l-.001.159a2.94 2.94 0 01-.014.25c.225-.022.425-.027.612-.028h.366c.187 0 .387.006.612.028-.015-.146-.015-.277-.015-.409.015-.19.03-.365.06-.526a9.29 9.29 0 00-.84-.044z",
3100
3145
  cursor: "M22.106 5.68L12.5.135a.998.998 0 00-.998 0L1.893 5.68a.84.84 0 00-.419.726v11.186c0 .3.16.577.42.727l9.607 5.547a.999.999 0 00.998 0l9.608-5.547a.84.84 0 00.42-.727V6.407a.84.84 0 00-.42-.726zm-.603 1.176L12.228 22.92c-.063.108-.228.064-.228-.061V12.34a.59.59 0 00-.295-.51l-9.11-5.26c-.107-.062-.063-.228.062-.228h18.55c.264 0 .428.286.296.514z"
3101
3146
  };
3102
- var icon_agent_default = _template("z", (input) => {
3147
+ var icon_agent_default = _template("A", (input) => {
3103
3148
  const $scope0_reason = _scope_reason(), $sg__input_agent = _serialize_guard($scope0_reason, 2), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0), $si__input_size__OR__input_class = _serialize_if($scope0_reason, 0), $si__input_size__OR__input_agent__OR__input_class = _serialize_if($scope0_reason, 1), $si__input_agent = _serialize_if($scope0_reason, 2);
3104
3149
  const $scope0_id = _scope_id();
3105
3150
  const $badge__closures = /* @__PURE__ */ new Set();
@@ -3109,7 +3154,7 @@ var icon_agent_default = _template("z", (input) => {
3109
3154
  _if(() => {
3110
3155
  if (d) {
3111
3156
  const $scope1_id = _scope_id();
3112
- _html(`<svg${_attr_class(["_d", input.class])}${_attr("width", size)}${_attr("height", size)} viewBox="0 0 24 24" fill=currentColor fill-rule=evenodd aria-hidden=true><path${_attr("d", d)}></path>${_el_resume($scope1_id, "b", $sg__input_agent)}`);
3157
+ _html(`<svg${_attr_class(["_e", input.class])}${_attr("width", size)}${_attr("height", size)} viewBox="0 0 24 24" fill=currentColor fill-rule=evenodd aria-hidden=true><path${_attr("d", d)}></path>${_el_resume($scope1_id, "b", $sg__input_agent)}`);
3113
3158
  _if(() => {
3114
3159
  if (badge) {
3115
3160
  const $scope3_id = _scope_id();
@@ -3149,6 +3194,7 @@ var icon_agent_default = _template("z", (input) => {
3149
3194
  n: $badge__closures
3150
3195
  });
3151
3196
  });
3197
+ var usageNote = "_cG _M";
3152
3198
  //#endregion
3153
3199
  //#region src/tags/usage-meters.marko
3154
3200
  function duration(ms) {
@@ -3158,21 +3204,25 @@ function duration(ms) {
3158
3204
  if (h < 48) return `${h}h`;
3159
3205
  return `${Math.round(h / 24)}d`;
3160
3206
  }
3207
+ function pctText(pct) {
3208
+ const rounded = Math.round(pct);
3209
+ return rounded !== pct && (rounded === 100 || rounded === 0) ? `${pct.toFixed(1)}%` : `${rounded}%`;
3210
+ }
3161
3211
  function resetLabel(iso, stale) {
3162
3212
  if (!iso) return null;
3163
3213
  const ms = new Date(iso).getTime() - Date.now();
3164
3214
  if (ms <= 0) return stale ? null : "now";
3165
3215
  return duration(ms);
3166
3216
  }
3167
- var usage_meters_default = _template("x", (input) => {
3217
+ var usage_meters_default = _template("y", (input) => {
3168
3218
  const $scope0_reason = _scope_reason(), $sg__input_agent__OR__input_hideName = _serialize_guard($scope0_reason, 0), $sg__input_agent = _serialize_guard($scope0_reason, 1), $si__input_agent = _serialize_if($scope0_reason, 1), $sg__input_hideName = _serialize_guard($scope0_reason, 2), $si__input_agent__OR__input_hideName = _serialize_if($scope0_reason, 0);
3169
3219
  const $scope0_id = _scope_id();
3170
3220
  const agent = input.agent;
3171
- _html(`<div${_attr_class(["_dc", { ["_dd"]: input.hideName }])}><div${_attr_class("_de")}>`);
3221
+ _html(`<div${_attr_class(["_cA", { ["_cB"]: input.hideName }])}><div${_attr_class("_cC")}>`);
3172
3222
  _if(() => {
3173
3223
  if (!input.hideName) {
3174
3224
  const $scope1_id = _scope_id();
3175
- _html(`<strong${_attr_class("_dx")}>${_escape(agent.agent)}${_el_resume($scope1_id, "b", $sg__input_agent)}</strong>`);
3225
+ _html(`<strong${_attr_class("_cV")}>${_escape(agent.agent)}${_el_resume($scope1_id, "b", $sg__input_agent)}</strong>`);
3176
3226
  $si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
3177
3227
  return 0;
3178
3228
  }
@@ -3180,7 +3230,7 @@ var usage_meters_default = _template("x", (input) => {
3180
3230
  _if(() => {
3181
3231
  if (agent.plan) {
3182
3232
  const $scope2_id = _scope_id();
3183
- _html(`<span${_attr_class("_df")}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope2_id, "b", $sg__input_agent)}</span>`);
3233
+ _html(`<span${_attr_class("_cD")}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope2_id, "b", $sg__input_agent)}</span>`);
3184
3234
  $si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
3185
3235
  return 0;
3186
3236
  }
@@ -3188,25 +3238,25 @@ var usage_meters_default = _template("x", (input) => {
3188
3238
  _if(() => {
3189
3239
  if (agent.stale_seconds != null) {
3190
3240
  const $scope3_id = _scope_id();
3191
- _html(`<span${_attr_class("_dg")}${_attr("title", `${agent.note || "couldn't reach this provider"} — these are the last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>⚠ ${_sep($sg__input_agent)}${_escape(duration(agent.stale_seconds * 1e3))}${_el_resume($scope3_id, "b", $sg__input_agent)} old</span>${_el_resume($scope3_id, "a", $sg__input_agent)}`);
3241
+ _html(`<span${_attr_class("_cE")}${_attr("title", `${agent.note || "couldn't reach this provider"} — these are the last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>⚠ ${_sep($sg__input_agent)}${_escape(duration(agent.stale_seconds * 1e3))}${_el_resume($scope3_id, "b", $sg__input_agent)} old</span>${_el_resume($scope3_id, "a", $sg__input_agent)}`);
3192
3242
  $si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
3193
3243
  return 0;
3194
3244
  }
3195
3245
  }, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
3196
- _html(`</div><div${_attr_class(["_dh", { ["_dy"]: agent.stale_seconds != null }])}>`);
3246
+ _html(`</div><div${_attr_class(["_cF", { ["_cW"]: agent.stale_seconds != null }])}>`);
3197
3247
  _for_of(agent.windows || [], (win) => {
3198
3248
  const $scope4_id = _scope_id();
3199
- const pct = Math.round(win.used_percent);
3249
+ const pct = pctText(win.used_percent);
3200
3250
  const label = resetLabel(win.resets_at, agent.stale_seconds != null);
3201
- const fillClass = win.used_percent >= 90 ? "_dq" : win.used_percent >= 70 ? "_dp" : win.used_percent >= 40 ? "_do" : "_dn";
3202
- const pctClass = win.used_percent >= 90 ? "_dv" : win.used_percent >= 70 ? "_du" : win.used_percent >= 40 ? "_dt" : "_ds";
3203
- _html(`<div${_attr_class("_dj")}${_attr("title", `${win.window}: ${pct}% used${win.resets_at ? ` — resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_dk")}>${_escape(win.window)}${_el_resume($scope4_id, "c", $sg__input_agent)}</span><span${_attr_class("_dl")}><span${_attr_class(["_dm", fillClass])}${_attr_style(`width:${Math.min(100, Math.max(2, win.used_percent))}%`)}></span>${_el_resume($scope4_id, "e", $sg__input_agent)}</span><span${_attr_class(["_dr", pctClass])}>${_escape(pct)}${_el_resume($scope4_id, "g", $sg__input_agent)}%</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_dw")}>${label ? `↻ ${_escape(`${_to_text(label)}`)}` : ""}${_el_resume($scope4_id, "i", $sg__input_agent)}</span></div>${_el_resume($scope4_id, "a", $sg__input_agent)}`);
3251
+ const fillClass = win.used_percent >= 90 ? "_cO" : win.used_percent >= 70 ? "_cN" : win.used_percent >= 40 ? "_cM" : "_cL";
3252
+ const pctClass = win.used_percent >= 90 ? "_cT" : win.used_percent >= 70 ? "_cS" : win.used_percent >= 40 ? "_cR" : "_cQ";
3253
+ _html(`<div${_attr_class("_cH")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? ` — resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_cI")}>${_escape(win.window)}${_el_resume($scope4_id, "c", $sg__input_agent)}</span><span${_attr_class("_cJ")}><span${_attr_class(["_cK", fillClass])}${_attr_style(`width:${Math.min(100, Math.max(2, win.used_percent))}%`)}></span>${_el_resume($scope4_id, "e", $sg__input_agent)}</span><span${_attr_class(["_cP", pctClass])}>${_escape(pct)}${_el_resume($scope4_id, "g", $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_cU")}>${label ? `↻ ${_escape(`${_to_text(label)}`)}` : ""}${_el_resume($scope4_id, "i", $sg__input_agent)}</span></div>${_el_resume($scope4_id, "a", $sg__input_agent)}`);
3204
3254
  $si__input_agent && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
3205
3255
  }, "window", $scope0_id, "g", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
3206
3256
  _if(() => {
3207
3257
  if (agent.note) {
3208
3258
  const $scope5_id = _scope_id();
3209
- _html(`<p${_attr_class("_di")}>${_escape(agent.note)}${_el_resume($scope5_id, "b", $sg__input_agent)}</p>`);
3259
+ _html(`<p${_attr_class(usageNote)}>${_escape(agent.note)}${_el_resume($scope5_id, "b", $sg__input_agent)}</p>`);
3210
3260
  $si__input_agent && writeScope($scope5_id, { _: _scope_with_id($scope0_id) });
3211
3261
  return 0;
3212
3262
  }
@@ -3242,7 +3292,7 @@ var modal_view_default = _template("l", (input) => {
3242
3292
  const { label, class: inputClass, open: _open, openChange: _openChange, dismissable: _dismissable, content, footer, closedby: _closedby, onCancel: _onCancel, onClose: _onClose, "aria-label": inputAriaLabel, "aria-labelledby": inputLabelledBy, ...htmlInput } = input;
3243
3293
  const dismissable = input.dismissable !== false;
3244
3294
  let open = input.open;
3245
- _html(`<dialog${_attr_class(["_e7", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
3295
+ _html(`<dialog${_attr_class(["_eT", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
3246
3296
  ...htmlInput,
3247
3297
  open: null
3248
3298
  }, {
@@ -3252,22 +3302,22 @@ var modal_view_default = _template("l", (input) => {
3252
3302
  closedby: 1,
3253
3303
  "on-cancel": 1,
3254
3304
  "on-close": 1
3255
- }, "a", $scope0_id, "dialog")}><div${_attr_class("_e8")}>`);
3305
+ }, "a", $scope0_id, "dialog")}><div${_attr_class("_eU")}>`);
3256
3306
  _dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
3257
3307
  _html("</div>");
3258
3308
  _if(() => {
3259
3309
  if (footer) {
3260
3310
  const $scope1_id = _scope_id();
3261
- _html(`<form method=dialog${_attr_class("_e9")}>`);
3311
+ _html(`<form method=dialog${_attr_class("_eV")}>`);
3262
3312
  _dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
3263
3313
  _html("</form>");
3264
3314
  $si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
3265
3315
  return 0;
3266
3316
  } else if (input.openChange) {
3267
3317
  const $scope2_id = _scope_id();
3268
- _html(`<form method=dialog${_attr_class("_e9")}>`);
3318
+ _html(`<form method=dialog${_attr_class("_eV")}>`);
3269
3319
  dialog_close_default({
3270
- class: ["_h", "_i"],
3320
+ class: ["_i", "_j"],
3271
3321
  content: _content("l0", () => {
3272
3322
  _scope_reason();
3273
3323
  _scope_id();
@@ -3300,7 +3350,7 @@ var modal_view_default = _template("l", (input) => {
3300
3350
  });
3301
3351
  //#endregion
3302
3352
  //#region src/tags/prompt-dialog.marko
3303
- var prompt_dialog_default = _template("o", (input) => {
3353
+ var prompt_dialog_default = _template("p", (input) => {
3304
3354
  const $scope0_reason = _scope_reason(), $sg__input_label = _serialize_guard($scope0_reason, 1), $sg__input_openChange = _serialize_guard($scope0_reason, 3), $si__input_submitLabel = _serialize_if($scope0_reason, 4), $si__input_label = _serialize_if($scope0_reason, 1), $si__input_placeholder = _serialize_if($scope0_reason, 5);
3305
3355
  const $scope0_id = _scope_id();
3306
3356
  const $modalview_content__subscribers = /* @__PURE__ */ new Set();
@@ -3312,7 +3362,7 @@ var prompt_dialog_default = _template("o", (input) => {
3312
3362
  const submit = _resume(() => {
3313
3363
  const v = value.trim();
3314
3364
  if (v) input.onSubmit(v);
3315
- }, "o1", $scope0_id);
3365
+ }, "p1", $scope0_id);
3316
3366
  const titleId = _id();
3317
3367
  _set_serialize_reason({
3318
3368
  0: _serialize_guard($scope0_reason, 2),
@@ -3324,33 +3374,33 @@ var prompt_dialog_default = _template("o", (input) => {
3324
3374
  const $childScope = _peek_scope_id();
3325
3375
  modal_view_default({
3326
3376
  label: input.label,
3327
- class: "_cE",
3377
+ class: "_cy",
3328
3378
  open: input.open,
3329
3379
  openChange: input.openChange,
3330
3380
  "aria-labelledby": titleId,
3331
- footer: attrTag({ content: _content_resume("o5", () => {
3381
+ footer: attrTag({ content: _content_resume("p5", () => {
3332
3382
  _scope_reason();
3333
3383
  const $scope1_id = _scope_id();
3334
- _html(`<button type=button${_attr_class(["_h", "_i"])}${_attr("disabled", !value.trim())}>${_escape(input.submitLabel || "OK")}${_el_resume($scope1_id, "b", _serialize_guard($scope0_reason, 4))}</button>${_el_resume($scope1_id, "a")}<div${_attr_class("_r")}></div>`);
3384
+ _html(`<button type=button${_attr_class(["_i", "_j"])}${_attr("disabled", !value.trim())}>${_escape(input.submitLabel || "OK")}${_el_resume($scope1_id, "b", _serialize_guard($scope0_reason, 4))}</button>${_el_resume($scope1_id, "a")}<div${_attr_class("_s")}></div>`);
3335
3385
  dialog_close_default({
3336
- class: "_h",
3337
- content: _content("o2", () => {
3386
+ class: "_i",
3387
+ content: _content("p2", () => {
3338
3388
  _scope_reason();
3339
3389
  _scope_id();
3340
3390
  _html("Cancel");
3341
3391
  })
3342
3392
  });
3343
- _script($scope1_id, "o3");
3393
+ _script($scope1_id, "p3");
3344
3394
  _subscribe($value__closures, _subscribe($si__input_submitLabel && $input_submitLabel__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })));
3345
3395
  _resume_branch($scope1_id);
3346
3396
  }, $scope0_id) }),
3347
- content: _content("o6", () => {
3397
+ content: _content("p6", () => {
3348
3398
  _scope_reason();
3349
3399
  const $scope2_id = _scope_id();
3350
- _html(`<h2${_attr_class("_cF")}${_attr("id", titleId)}>${_escape(input.label)}${_el_resume($scope2_id, "b", $sg__input_label)}</h2><input${_attr_input_value($scope2_id, "c", value, _resume((_new_value) => {
3400
+ _html(`<h2${_attr_class("_cz")}${_attr("id", titleId)}>${_escape(input.label)}${_el_resume($scope2_id, "b", $sg__input_label)}</h2><input${_attr_input_value($scope2_id, "c", value, _resume((_new_value) => {
3351
3401
  value = _new_value;
3352
- }, "o0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
3353
- _script($scope2_id, "o4");
3402
+ }, "p0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
3403
+ _script($scope2_id, "p4");
3354
3404
  _subscribe($value__closures, _subscribe($si__input_placeholder && $input_placeholder__closures, _subscribe($si__input_label && $input_label__closures, _subscribe($modalview_content__subscribers, writeScope($scope2_id, {
3355
3405
  _: _scope_with_id($scope0_id),
3356
3406
  Cr: 1
@@ -3358,7 +3408,7 @@ var prompt_dialog_default = _template("o", (input) => {
3358
3408
  _resume_branch($scope2_id);
3359
3409
  })
3360
3410
  });
3361
- _script($scope0_id, "o7");
3411
+ _script($scope0_id, "p7");
3362
3412
  writeScope($scope0_id, {
3363
3413
  e: input.onSubmit,
3364
3414
  h: input.openChange,
@@ -3387,9 +3437,12 @@ function familyOf(usageAgent, families) {
3387
3437
  }
3388
3438
  var lastSetup = null;
3389
3439
  var lastUsage = null;
3390
- var settings_page_default = _template("q", (input) => {
3391
- const $scope0_reason = _scope_reason(), $sg__input_agents = _serialize_guard($scope0_reason, 1), $si__input_preferred = _serialize_if($scope0_reason, 0);
3440
+ var settings_page_default = _template("r", (input) => {
3441
+ const $scope0_reason = _scope_reason(), $sg__input_onExit = _serialize_guard($scope0_reason, 1), $sg__input_agents = _serialize_guard($scope0_reason, 2), $si__input_preferred = _serialize_if($scope0_reason, 0);
3392
3442
  const $scope0_id = _scope_id();
3443
+ const $setup_missing__closures = /* @__PURE__ */ new Set();
3444
+ const $setup2__closures = /* @__PURE__ */ new Set();
3445
+ const $refreshing__closures = /* @__PURE__ */ new Set();
3393
3446
  const $error__closures = /* @__PURE__ */ new Set();
3394
3447
  const $active__closures = /* @__PURE__ */ new Set();
3395
3448
  const $input_preferred__closures = /* @__PURE__ */ new Set();
@@ -3417,21 +3470,21 @@ var settings_page_default = _template("q", (input) => {
3417
3470
  setup = s;
3418
3471
  lastSetup = s;
3419
3472
  input.setupChange?.(s);
3420
- }, "q1", $scope0_id);
3473
+ }, "r1", $scope0_id);
3421
3474
  const syncAgents = _resume(async () => {
3422
3475
  try {
3423
3476
  const snap = await api$6("/api/settings");
3424
3477
  input.agentsChange?.(snap.agents);
3425
3478
  if (snap.preferredAgent !== input.preferred) input.preferredChange?.(snap.preferredAgent);
3426
3479
  } catch {}
3427
- }, "q2", $scope0_id);
3480
+ }, "r2", $scope0_id);
3428
3481
  const loadSetup = _resume(async (refresh) => {
3429
3482
  try {
3430
3483
  applySetup(await api$6(`/api/setup${refresh ? "?refresh" : ""}`));
3431
3484
  } catch (err) {
3432
3485
  error = String(err.message || err);
3433
3486
  }
3434
- }, "q3", $scope0_id);
3487
+ }, "r3", $scope0_id);
3435
3488
  const loadUsage = _resume(async (refresh) => {
3436
3489
  try {
3437
3490
  usage = await api$6(`/api/usage${refresh ? "?refresh" : ""}`);
@@ -3439,23 +3492,23 @@ var settings_page_default = _template("q", (input) => {
3439
3492
  usage = { error: String(err.message || err) };
3440
3493
  }
3441
3494
  lastUsage = usage;
3442
- }, "q4", $scope0_id);
3495
+ }, "r4", $scope0_id);
3443
3496
  const refresh = _resume(async () => {
3444
3497
  refreshing = true;
3445
3498
  await loadSetup(true);
3446
3499
  refreshing = false;
3447
- }, "q5", $scope0_id);
3500
+ }, "r5", $scope0_id);
3448
3501
  const refreshUsage = _resume(async () => {
3449
3502
  usageRefreshing = true;
3450
3503
  await loadUsage(true);
3451
3504
  usageRefreshing = false;
3452
- }, "q6", $scope0_id);
3505
+ }, "r6", $scope0_id);
3453
3506
  const setActive = _resume((id, line) => {
3454
3507
  const next = new Map(active);
3455
3508
  if (line === null) next.delete(id);
3456
3509
  else next.set(id, line);
3457
3510
  active = next;
3458
- }, "q7", $scope0_id);
3511
+ }, "r7", $scope0_id);
3459
3512
  const run = _resume(async (id, action, version) => {
3460
3513
  if (active.has(id)) return;
3461
3514
  error = null;
@@ -3486,7 +3539,7 @@ var settings_page_default = _template("q", (input) => {
3486
3539
  watcher.stop();
3487
3540
  setActive(id, null);
3488
3541
  }
3489
- }, "q8", $scope0_id);
3542
+ }, "r8", $scope0_id);
3490
3543
  const changeHost = _resume(async (host, remove) => {
3491
3544
  hostBusy = true;
3492
3545
  error = null;
@@ -3505,10 +3558,10 @@ var settings_page_default = _template("q", (input) => {
3505
3558
  } finally {
3506
3559
  hostBusy = false;
3507
3560
  }
3508
- }, "q9", $scope0_id);
3561
+ }, "r9", $scope0_id);
3509
3562
  const runEach = _resume(async (ids, action) => {
3510
3563
  for (const id of ids) await run(id, action);
3511
- }, "q10", $scope0_id);
3564
+ }, "r10", $scope0_id);
3512
3565
  const setPreferred = _resume(async (agent) => {
3513
3566
  input.preferredChange?.(agent);
3514
3567
  try {
@@ -3520,7 +3573,7 @@ var settings_page_default = _template("q", (input) => {
3520
3573
  } catch (err) {
3521
3574
  error = String(err.message || err);
3522
3575
  }
3523
- }, "q11", $scope0_id);
3576
+ }, "r11", $scope0_id);
3524
3577
  const setEnabled = _resume(async (id, on) => {
3525
3578
  if (!setup) return;
3526
3579
  const off = new Set(setup.agents.flatMap((f) => f.instances.filter((i) => !i.enabled).map((i) => i.id)));
@@ -3547,7 +3600,7 @@ var settings_page_default = _template("q", (input) => {
3547
3600
  } catch (err) {
3548
3601
  error = String(err.message || err);
3549
3602
  }
3550
- }, "q12", $scope0_id);
3603
+ }, "r12", $scope0_id);
3551
3604
  const search = _resume((q) => {
3552
3605
  query = q;
3553
3606
  clearTimeout(searchTimer.id);
@@ -3567,136 +3620,167 @@ var settings_page_default = _template("q", (input) => {
3567
3620
  if (query === q) searching = false;
3568
3621
  }
3569
3622
  }, 250);
3570
- }, "q13", $scope0_id);
3571
- const outdated = _resume((t) => !!(t.installed && t.latest && t.latest !== t.version), "q14");
3623
+ }, "r13", $scope0_id);
3624
+ const outdated = _resume((t) => !!(t.installed && t.latest && t.latest !== t.version), "r14");
3572
3625
  const tools = setup?.tools || [];
3573
3626
  const missingInstallable = tools.filter((t) => t.recommended && !t.installed && t.installable);
3574
3627
  const missingCount = tools.filter((t) => t.recommended && !t.installed).length;
3575
3628
  const outdatedIds = tools.filter(outdated).map((t) => t.id);
3576
3629
  const families = setup?.agents || [];
3577
3630
  const instanceIds = new Set(families.flatMap((f) => f.instances.map((i) => i.id)));
3578
- const accountsFor = _resume((id) => (usage?.agents || []).filter((u) => u.agent === id), "q15", $scope0_id);
3579
- const strayAccountsFor = _resume((f) => (usage?.agents || []).filter((u) => !instanceIds.has(u.agent) && familyOf(u.agent, families) === f.id), "q16", $scope0_id);
3631
+ const accountsFor = _resume((id) => (usage?.agents || []).filter((u) => u.agent === id), "r15", $scope0_id);
3632
+ const strayAccountsFor = _resume((f) => (usage?.agents || []).filter((u) => !instanceIds.has(u.agent) && familyOf(u.agent, families) === f.id), "r16", $scope0_id);
3580
3633
  const otherUsage = (usage?.agents || []).filter((u) => familyOf(u.agent, families) === null);
3581
3634
  const titleId = _id();
3582
- _html(`<div${_attr_class("_R")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_S")}><div${_attr_class(content$2)}><header${_attr_class("_V")}><div${_attr_class("_X")}><h1${_attr("id", titleId)}${_attr_class("_W")}>Settings</h1><p${_attr_class("_Y")}>`);
3583
- _if(() => {
3584
- if (!setup) {
3585
- const $scope39_id = _scope_id();
3586
- _html("Checking this machine…");
3587
- writeScope($scope39_id, {});
3588
- return 0;
3589
- } else if (setup.ready) {
3590
- const $scope40_id = _scope_id();
3591
- _html(`<span${_attr_class("_bY")}>Ready</span> — tools, GitHub, and an agent are all in place.`);
3592
- writeScope($scope40_id, {});
3593
- return 1;
3594
- } else {
3635
+ _html(`<div${_attr_class("_bb")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bc")}><div${_attr_class(content$2)}>`);
3636
+ _set_serialize_reason({
3637
+ 0: $sg__input_onExit,
3638
+ 1: $sg__input_onExit,
3639
+ 2: $sg__input_onExit
3640
+ });
3641
+ const $childScope2 = _peek_scope_id();
3642
+ page_head_default({
3643
+ title: "Settings",
3644
+ titleId,
3645
+ onBack: input.onExit && _resume(() => input.onExit?.(), "r17", $scope0_id),
3646
+ meta: attrTag({ content: _content_resume("r22", () => {
3647
+ _scope_reason();
3595
3648
  const $scope4_id = _scope_id();
3596
- _html(`<span${_attr_class("_bZ")}>Not ready</span> — missing <!>${_escape(setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "))}${_el_resume($scope4_id, "b")}.`);
3597
- writeScope($scope4_id, {});
3598
- return 2;
3599
- }
3600
- }, $scope0_id, "g", 1, 1, 1, "</p>");
3601
- _html(`</div><div${_attr_class("_Z")}><button${_attr_class(iconBtn$3)} title="Re-check this machine" aria-label="Re-check this machine"${_attr("disabled", refreshing)}>`);
3602
- _set_serialize_reason(1);
3603
- const $childScope = _peek_scope_id();
3604
- icon_refresh_default({
3605
- size: 14,
3606
- class: refreshing && "_x"
3649
+ _if(() => {
3650
+ if (!setup) {
3651
+ const $scope41_id = _scope_id();
3652
+ _html("Checking this machine…");
3653
+ writeScope($scope41_id, {});
3654
+ return 0;
3655
+ } else if (setup.ready) {
3656
+ const $scope42_id = _scope_id();
3657
+ _html(`<span${_attr_class("_b1")}>Ready</span> — tools, GitHub, and an agent are all in place.`);
3658
+ writeScope($scope42_id, {});
3659
+ return 1;
3660
+ } else {
3661
+ const $scope5_id = _scope_id();
3662
+ _html(`<span${_attr_class("_b2")}>Not ready</span> — missing <!>${_escape(setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "))}${_el_resume($scope5_id, "b")}.`);
3663
+ _subscribe($setup_missing__closures, writeScope($scope5_id, {}));
3664
+ return 2;
3665
+ }
3666
+ }, $scope4_id, "a");
3667
+ _subscribe($setup2__closures, writeScope($scope4_id, { _: _scope_with_id($scope0_id) }));
3668
+ _resume_branch($scope4_id);
3669
+ }, $scope0_id) }),
3670
+ actions: attrTag({ content: _content_resume("r23", () => {
3671
+ _scope_reason();
3672
+ const $scope9_id = _scope_id();
3673
+ _html(`<button${_attr_class(iconBtnRow)} title="Re-check this machine" aria-label="Re-check this machine"${_attr("disabled", refreshing)}>`);
3674
+ _set_serialize_reason(1);
3675
+ const $childScope = _peek_scope_id();
3676
+ icon_refresh_default({
3677
+ size: 14,
3678
+ class: refreshing && "_y"
3679
+ });
3680
+ _html(`</button>${_el_resume($scope9_id, "a")}`);
3681
+ _script($scope9_id, "r21");
3682
+ _subscribe($refreshing__closures, writeScope($scope9_id, {
3683
+ _: _scope_with_id($scope0_id),
3684
+ b: _existing_scope($childScope)
3685
+ }));
3686
+ _resume_branch($scope9_id);
3687
+ }, $scope0_id) })
3607
3688
  });
3608
- _html(`</button>${_el_resume($scope0_id, "i")}</div></header>`);
3609
3689
  _if(() => {
3610
3690
  if (error) {
3611
- const $scope6_id = _scope_id();
3691
+ const $scope7_id = _scope_id();
3612
3692
  toast_default({
3613
3693
  placement: "inline",
3614
3694
  onDismiss: _resume(function() {
3615
3695
  error = null;
3616
- }, "q17", $scope6_id),
3617
- content: _content_resume("q20", () => {
3696
+ }, "r18", $scope7_id),
3697
+ content: _content_resume("r24", () => {
3618
3698
  _scope_reason();
3619
- const $scope7_id = _scope_id();
3620
- _html(`${_escape(error)}${_el_resume($scope7_id, "a")}`);
3621
- _subscribe($error__closures, writeScope($scope7_id, { _: _scope_with_id($scope6_id) }));
3622
- _resume_branch($scope7_id);
3623
- }, $scope6_id)
3699
+ const $scope8_id = _scope_id();
3700
+ _html(`${_escape(error)}${_el_resume($scope8_id, "a")}`);
3701
+ _subscribe($error__closures, writeScope($scope8_id, { _: _scope_with_id($scope7_id) }));
3702
+ _resume_branch($scope8_id);
3703
+ }, $scope7_id)
3624
3704
  });
3625
- writeScope($scope6_id, {});
3705
+ writeScope($scope7_id, {});
3626
3706
  return 0;
3627
3707
  }
3628
- }, $scope0_id, "k", 1, 1, 1, 0, 1);
3629
- _html(`<section${_attr_class("_bF")} aria-labelledby=settings-agents><div${_attr_class("_bG")}><h2 id=settings-agents${_attr_class("_bV")}>Agents</h2><div${_attr_class("_r")}></div><label${_attr_class("_b2")}><span${_attr_class("_b3")}>Default</span><span${_attr_class("_f")}>`);
3630
- _attr_select_value($scope0_id, "s", input.preferred, _resume(function(v) {
3708
+ }, $scope0_id, "e", 1, 1, 1, 0, 1);
3709
+ _html(`<section${_attr_class("_bl")} aria-labelledby=settings-agents><div${_attr_class("_bm")}><h2 id=settings-agents${_attr_class("_bA")}>Agents</h2><div${_attr_class("_s")}></div><label${_attr_class("_b5")}><span${_attr_class("_M")}>Default</span><span${_attr_class("_g")}>`);
3710
+ _attr_select_value($scope0_id, "m", input.preferred, _resume(function(v) {
3631
3711
  setPreferred(v);
3632
- }, "q0", $scope0_id), () => {
3633
- _html(`<select${_attr_class(["_g", "_b4"])} aria-label="Default agent — starts when a workspace has no session yet" title="Starts when a workspace has no session yet">`);
3712
+ }, "r0", $scope0_id), () => {
3713
+ _html(`<select${_attr_class(["_h", "_b6"])} aria-label="Default agent — starts when a workspace has no session yet" title="Starts when a workspace has no session yet">`);
3634
3714
  _for_of(input.agents.filter((a) => a !== "shell"), (id) => {
3635
- const $scope41_id = _scope_id();
3636
- _html(`<option${_attr_option_value(id)}>${_escape(agentLabel(id))}${_el_resume($scope41_id, "b", $sg__input_agents)}</option>${_el_resume($scope41_id, "a", $sg__input_agents)}`);
3637
- _serialize_if($scope0_reason, 1) && writeScope($scope41_id, {});
3638
- }, (a) => a, $scope0_id, "s", $sg__input_agents, 1, 1, "</select>", 1);
3715
+ const $scope43_id = _scope_id();
3716
+ _html(`<option${_attr_option_value(id)}>${_escape(agentLabel(id))}${_el_resume($scope43_id, "b", $sg__input_agents)}</option>${_el_resume($scope43_id, "a", $sg__input_agents)}`);
3717
+ _serialize_if($scope0_reason, 2) && writeScope($scope43_id, {});
3718
+ }, (a) => a, $scope0_id, "m", $sg__input_agents, 1, 1, "</select>", 1);
3639
3719
  });
3640
- _html(`</span></label><button${_attr_class(iconBtn$3)} title="Refresh usage" aria-label="Refresh usage"${_attr("disabled", usageRefreshing)}>`);
3720
+ _html(`</span></label><button${_attr_class(iconBtn$2)} title="Refresh usage" aria-label="Refresh usage"${_attr("disabled", usageRefreshing)}>`);
3641
3721
  _set_serialize_reason(1);
3642
- const $childScope2 = _peek_scope_id();
3722
+ const $childScope3 = _peek_scope_id();
3643
3723
  icon_refresh_default({
3644
3724
  size: 14,
3645
- class: usageRefreshing && "_x"
3725
+ class: usageRefreshing && "_y"
3646
3726
  });
3647
- _html(`</button>${_el_resume($scope0_id, "t")}</div><ul${_attr_class(agentGrid)}>`);
3727
+ _html(`</button>${_el_resume($scope0_id, "n")}</div><ul${_attr_class(agentGrid)}>`);
3648
3728
  _for_of(families, (a) => {
3649
3729
  const $scope1_id = _scope_id();
3650
3730
  const lone = a.instances.length === 1 && a.instances[0].id === a.id ? a.instances[0] : null;
3651
3731
  const rows = lone ? [] : a.instances;
3652
3732
  const loneAccounts = lone && lone.enabled ? accountsFor(lone.id) : [];
3653
3733
  const extraAccounts = strayAccountsFor(a);
3654
- _html(`<li${_attr_class(["_bK", "_b1"])}><div${_attr_class("_b5")}>`);
3734
+ _html(`<li${_attr_class(["_bq", "_b4"])}><div${_attr_class("_b7")}>`);
3655
3735
  _set_serialize_reason(12);
3656
- const $childScope3 = _peek_scope_id();
3736
+ const $childScope4 = _peek_scope_id();
3657
3737
  icon_agent_default({
3658
3738
  agent: a.id,
3659
3739
  size: 18
3660
3740
  });
3661
- _html(`<div${_attr_class("_bL")}><span${_attr_class("_bN")}><span${_attr_class("_bM")}>${_escape(a.label)}${_el_resume($scope1_id, "g")}</span>`);
3741
+ _html(`<div${_attr_class("_br")}><span${_attr_class("_bt")}><span${_attr_class("_bs")}>${_escape(a.label)}${_el_resume($scope1_id, "g")}</span>`);
3662
3742
  _if(() => {
3663
3743
  if (lone && input.preferred === lone.id) {
3664
- const $scope42_id = _scope_id();
3665
- _html(`<span${_attr_class(defaultTag)}>default</span>`);
3666
- writeScope($scope42_id, {});
3744
+ const $scope44_id = _scope_id();
3745
+ _html(`<span${_attr_class(["_C", tone.accent])}>default</span>`);
3746
+ writeScope($scope44_id, {});
3667
3747
  return 0;
3668
3748
  }
3669
3749
  }, $scope1_id, "h", 1, 1, 1, 0, 1);
3670
3750
  _html("</span>");
3671
3751
  _if(() => {
3672
3752
  if (active.has(a.id)) {
3673
- const $scope8_id = _scope_id();
3674
- _html(`<span${_attr_class("_bX")}><span${_attr_class("_y")}></span><!>${_escape(active.get(a.id) || "Starting…")}${_el_resume($scope8_id, "c")}</span>`);
3675
- _subscribe($active__closures, writeScope($scope8_id, {}));
3753
+ const $scope10_id = _scope_id();
3754
+ _html(`<span${_attr_class("_b0")}><span${_attr_class("_z")}></span><!>${_escape(active.get(a.id) || "Starting…")}${_el_resume($scope10_id, "c")}</span>`);
3755
+ _subscribe($active__closures, writeScope($scope10_id, {}));
3676
3756
  return 0;
3677
3757
  } else if (!a.installed) {
3678
- const $scope43_id = _scope_id();
3679
- _html(`<span${_attr_class("_bO")}>Not installed</span>`);
3680
- writeScope($scope43_id, {});
3758
+ const $scope45_id = _scope_id();
3759
+ _html(`<span${_attr_class("_bu")}>Not installed</span>`);
3760
+ writeScope($scope45_id, {});
3681
3761
  return 1;
3682
3762
  }
3683
3763
  }, $scope1_id, "i", 1, 1, 1, 0, 1);
3684
3764
  _html("</div>");
3685
3765
  _if(() => {
3686
3766
  if (!a.installed && !active.has(a.id)) {
3687
- const $scope32_id = _scope_id();
3688
- _html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope32_id, "a")}`);
3689
- _script($scope32_id, "q21");
3690
- writeScope($scope32_id, {});
3767
+ const $scope34_id = _scope_id();
3768
+ _html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope34_id, "a")}`);
3769
+ _script($scope34_id, "r25");
3770
+ writeScope($scope34_id, {});
3691
3771
  return 0;
3692
3772
  }
3693
3773
  }, $scope1_id, "j", 1, 1, 1, 0, 1);
3694
3774
  _if(() => {
3695
3775
  if (lone) {
3696
- const $scope36_id = _scope_id();
3697
- _html(`<button${_attr_class(["_b8", { ["_b7"]: lone.enabled }])} role=switch aria-checked=${lone.enabled ? "true" : "false"} title=${lone.enabled ? "\"Shown in session pickers — click to hide\"" : "\"Hidden from session pickers — click to show\""}>${lone.enabled ? "on" : "off"}${_el_resume($scope36_id, "b")}</button>${_el_resume($scope36_id, "a")}`);
3698
- _script($scope36_id, "q22");
3699
- writeScope($scope36_id, {});
3776
+ const $scope38_id = _scope_id();
3777
+ _html(`<button${_attr_class([
3778
+ "_C",
3779
+ "_E",
3780
+ { [tone.ok]: lone.enabled }
3781
+ ])} role=switch aria-checked=${lone.enabled ? "true" : "false"} title=${lone.enabled ? "\"Shown in session pickers — click to hide\"" : "\"Hidden from session pickers — click to show\""}>${lone.enabled ? "on" : "off"}${_el_resume($scope38_id, "b")}</button>${_el_resume($scope38_id, "a")}`);
3782
+ _script($scope38_id, "r26");
3783
+ writeScope($scope38_id, {});
3700
3784
  return 0;
3701
3785
  }
3702
3786
  }, $scope1_id, "k", 1, 1, 1, 0, 1);
@@ -3704,65 +3788,69 @@ var settings_page_default = _template("q", (input) => {
3704
3788
  _if(() => {
3705
3789
  if (rows.length || loneAccounts.length || extraAccounts.length) {
3706
3790
  const $scope2_id = _scope_id();
3707
- _html(`<ul${_attr_class("_cb")}>`);
3791
+ _html(`<ul${_attr_class("_ca")}>`);
3708
3792
  _for_of(rows, (inst) => {
3709
3793
  const $scope3_id = _scope_id();
3710
3794
  const accounts = inst.enabled ? accountsFor(inst.id) : [];
3711
- _html(`<li${_attr_class("_b9")}><div${_attr_class("_b_")}>`);
3795
+ _html(`<li${_attr_class("_b8")}><div${_attr_class("_b9")}>`);
3712
3796
  _set_serialize_reason(12);
3713
- const $childScope4 = _peek_scope_id();
3797
+ const $childScope5 = _peek_scope_id();
3714
3798
  icon_agent_default({
3715
3799
  agent: inst.id,
3716
3800
  size: 15
3717
3801
  });
3718
- _html(`<span${_attr_class(["_ca", "_q"])}>${_escape(inst.command)}${_el_resume($scope3_id, "e")}</span>`);
3802
+ _html(`<span${_attr_class(["_b_", "_r"])}>${_escape(inst.command)}${_el_resume($scope3_id, "e")}</span>`);
3719
3803
  _if(() => {
3720
3804
  if (input.preferred === inst.id) {
3721
- const $scope44_id = _scope_id();
3722
- _html(`<span${_attr_class(defaultTag)}>default</span>`);
3723
- writeScope($scope44_id, {});
3805
+ const $scope46_id = _scope_id();
3806
+ _html(`<span${_attr_class(["_C", tone.accent])}>default</span>`);
3807
+ writeScope($scope46_id, {});
3724
3808
  return 0;
3725
3809
  }
3726
3810
  }, $scope3_id, "f", 1, 1, 1, 0, 1);
3727
- _html(`<span${_attr_class("_r")}></span><button${_attr_class(["_b8", { ["_b7"]: inst.enabled }])} role=switch aria-checked=${inst.enabled ? "true" : "false"} title=${inst.enabled ? "\"Shown in session pickers — click to hide\"" : "\"Hidden from session pickers — click to show\""}>${inst.enabled ? "on" : "off"}${_el_resume($scope3_id, "i")}</button>${_el_resume($scope3_id, "h")}</div>`);
3811
+ _html(`<span${_attr_class("_s")}></span><button${_attr_class([
3812
+ "_C",
3813
+ "_E",
3814
+ { [tone.ok]: inst.enabled }
3815
+ ])} role=switch aria-checked=${inst.enabled ? "true" : "false"} title=${inst.enabled ? "\"Shown in session pickers — click to hide\"" : "\"Hidden from session pickers — click to show\""}>${inst.enabled ? "on" : "off"}${_el_resume($scope3_id, "i")}</button>${_el_resume($scope3_id, "h")}</div>`);
3728
3816
  _for_of(accounts, (u) => {
3729
- const $scope45_id = _scope_id();
3817
+ const $scope47_id = _scope_id();
3730
3818
  _set_serialize_reason(6);
3731
- const $childScope5 = _peek_scope_id();
3819
+ const $childScope6 = _peek_scope_id();
3732
3820
  usage_meters_default({
3733
3821
  agent: u,
3734
3822
  hideName: true
3735
3823
  });
3736
- writeScope($scope45_id, { a: _existing_scope($childScope5) });
3824
+ writeScope($scope47_id, { a: _existing_scope($childScope6) });
3737
3825
  }, (u) => `${u.agent}-${u.account || ""}`, $scope3_id, "j", 1, 1, 1, 0, 1);
3738
3826
  _html("</li>");
3739
- _script($scope3_id, "q23");
3827
+ _script($scope3_id, "r27");
3740
3828
  _subscribe($accountsFor2__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope3_id, {
3741
3829
  m: inst?.enabled,
3742
3830
  n: inst?.id,
3743
- c: _existing_scope($childScope4)
3831
+ c: _existing_scope($childScope5)
3744
3832
  })));
3745
3833
  }, "id", $scope2_id, "b", 1, 1, 1, 0, 1);
3746
3834
  _for_of(loneAccounts, (u) => {
3747
- const $scope46_id = _scope_id();
3835
+ const $scope48_id = _scope_id();
3748
3836
  _html("<li>");
3749
3837
  _set_serialize_reason(6);
3750
- const $childScope6 = _peek_scope_id();
3838
+ const $childScope7 = _peek_scope_id();
3751
3839
  usage_meters_default({
3752
3840
  agent: u,
3753
3841
  hideName: true
3754
3842
  });
3755
3843
  _html("</li>");
3756
- writeScope($scope46_id, { a: _existing_scope($childScope6) });
3844
+ writeScope($scope48_id, { a: _existing_scope($childScope7) });
3757
3845
  }, (u) => `${u.agent}-${u.account || ""}`, $scope2_id, "c", 1, 1, 1, 0, 1);
3758
3846
  _for_of(extraAccounts, (u) => {
3759
- const $scope47_id = _scope_id();
3847
+ const $scope49_id = _scope_id();
3760
3848
  _html("<li>");
3761
3849
  _set_serialize_reason(6);
3762
- const $childScope7 = _peek_scope_id();
3850
+ const $childScope8 = _peek_scope_id();
3763
3851
  usage_meters_default({ agent: u });
3764
3852
  _html("</li>");
3765
- writeScope($scope47_id, { a: _existing_scope($childScope7) });
3853
+ writeScope($scope49_id, { a: _existing_scope($childScope8) });
3766
3854
  }, (u) => `${u.agent}-${u.account || ""}`, $scope2_id, "d", 1, 1, 1, 0, 1);
3767
3855
  _html("</ul>");
3768
3856
  writeScope($scope2_id, {});
@@ -3781,101 +3869,101 @@ var settings_page_default = _template("q", (input) => {
3781
3869
  a4: rows?.length,
3782
3870
  a5: loneAccounts,
3783
3871
  a7: extraAccounts,
3784
- c: _existing_scope($childScope3)
3872
+ c: _existing_scope($childScope4)
3785
3873
  });
3786
- }, "id", $scope0_id, "w", 1, 1, 1, 0, 1);
3874
+ }, "id", $scope0_id, "q", 1, 1, 1, 0, 1);
3787
3875
  _for_of(otherUsage, (u) => {
3788
- const $scope48_id = _scope_id();
3789
- _html(`<li${_attr_class(["_bK", "_b1"])}>`);
3876
+ const $scope50_id = _scope_id();
3877
+ _html(`<li${_attr_class(["_bq", "_b4"])}>`);
3790
3878
  _set_serialize_reason(6);
3791
- const $childScope8 = _peek_scope_id();
3879
+ const $childScope9 = _peek_scope_id();
3792
3880
  usage_meters_default({ agent: u });
3793
3881
  _html("</li>");
3794
- writeScope($scope48_id, { b: _existing_scope($childScope8) });
3795
- }, (u) => `${u.agent}-${u.account || ""}`, $scope0_id, "x", 1, 1, 1, 0, 1);
3882
+ writeScope($scope50_id, { b: _existing_scope($childScope9) });
3883
+ }, (u) => `${u.agent}-${u.account || ""}`, $scope0_id, "r", 1, 1, 1, 0, 1);
3796
3884
  _html("</ul>");
3797
3885
  _if(() => {
3798
3886
  if (!usage && families.length) {
3799
- const $scope49_id = _scope_id();
3800
- _html(`<p${_attr_class("_bT")}><span${_attr_class("_y")}></span> Loading usage…</p>`);
3801
- writeScope($scope49_id, {});
3887
+ const $scope51_id = _scope_id();
3888
+ _html(`<p${_attr_class("_bw")}><span${_attr_class("_z")}></span> Loading usage…</p>`);
3889
+ writeScope($scope51_id, {});
3802
3890
  return 0;
3803
3891
  } else if (usage?.error) {
3804
- const $scope5_id = _scope_id();
3805
- _html(`<p${_attr_class("_bT")}>${_escape(usage.error)}${_el_resume($scope5_id, "b")}</p>`);
3806
- writeScope($scope5_id, {});
3892
+ const $scope6_id = _scope_id();
3893
+ _html(`<p${_attr_class("_bw")}>${_escape(usage.error)}${_el_resume($scope6_id, "b")}</p>`);
3894
+ writeScope($scope6_id, {});
3807
3895
  return 1;
3808
3896
  }
3809
- }, $scope0_id, "y", 1, 1, 1, 0, 1);
3810
- _html(`</section><section${_attr_class("_bF")} aria-labelledby=settings-github><div${_attr_class("_bG")}><h2 id=settings-github${_attr_class("_bV")}>GitHub</h2></div><ul${_attr_class("_bI")}>`);
3897
+ }, $scope0_id, "s", 1, 1, 1, 0, 1);
3898
+ _html(`</section><section${_attr_class("_bl")} aria-labelledby=settings-github><div${_attr_class("_bm")}><h2 id=settings-github${_attr_class("_bA")}>GitHub</h2></div><ul${_attr_class("_bo")}>`);
3811
3899
  _for_of(setup?.github || [], (h) => {
3812
- const $scope9_id = _scope_id();
3900
+ const $scope11_id = _scope_id();
3813
3901
  const $for_content3__h_host__closures = /* @__PURE__ */ new Set();
3814
- _html(`<li${_attr_class("_bK")}><div${_attr_class("_bL")}><span${_attr_class("_bN")}><span${_attr_class(["_bM", "_q"])}>${_escape(h.host)}${_el_resume($scope9_id, "e")}</span>`);
3902
+ _html(`<li${_attr_class("_bq")}><div${_attr_class("_br")}><span${_attr_class("_bt")}><span${_attr_class(["_bs", "_r"])}>${_escape(h.host)}${_el_resume($scope11_id, "e")}</span>`);
3815
3903
  _if(() => {
3816
3904
  if (h.isEnterprise) {
3817
- const $scope52_id = _scope_id();
3818
- _html(`<span${_attr_class("_bP")}>Enterprise</span>`);
3819
- writeScope($scope52_id, {});
3905
+ const $scope54_id = _scope_id();
3906
+ _html(`<span${_attr_class("_C")}>Enterprise</span>`);
3907
+ writeScope($scope54_id, {});
3820
3908
  return 0;
3821
3909
  }
3822
- }, $scope9_id, "f", 1, 1, 1, 0, 1);
3910
+ }, $scope11_id, "f", 1, 1, 1, 0, 1);
3823
3911
  _html("</span>");
3824
3912
  _if(() => {
3825
3913
  if (active.has(h.host) && authCodes.has(h.host)) {
3826
- const $scope20_id = _scope_id();
3827
- _html(`<span${_attr_class("_bX")}><span${_attr_class("_y")}></span> Enter code <strong${_attr_class("_cn")}>${_escape(authCodes.get(h.host))}${_el_resume($scope20_id, "d")}</strong> at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_co")}>${_escape(h.host)}${_el_resume($scope20_id, "f")}/login/device</a>${_el_resume($scope20_id, "e")}</span>`);
3828
- _subscribe($authCodes__closures, writeScope($scope20_id, {}));
3914
+ const $scope22_id = _scope_id();
3915
+ _html(`<span${_attr_class("_b0")}><span${_attr_class("_z")}></span> Enter code <strong${_attr_class("_ci")}>${_escape(authCodes.get(h.host))}${_el_resume($scope22_id, "d")}</strong> at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_cj")}>${_escape(h.host)}${_el_resume($scope22_id, "f")}/login/device</a>${_el_resume($scope22_id, "e")}</span>`);
3916
+ _subscribe($authCodes__closures, writeScope($scope22_id, {}));
3829
3917
  return 0;
3830
3918
  } else if (active.has(h.host)) {
3831
- const $scope10_id = _scope_id();
3832
- _html(`<span${_attr_class("_bX")}><span${_attr_class("_y")}></span><!>${_escape(active.get(h.host) || "Starting…")}${_el_resume($scope10_id, "c")}</span>`);
3833
- _subscribe($active__closures, writeScope($scope10_id, { Ccj: 1 }));
3919
+ const $scope12_id = _scope_id();
3920
+ _html(`<span${_attr_class("_b0")}><span${_attr_class("_z")}></span><!>${_escape(active.get(h.host) || "Starting…")}${_el_resume($scope12_id, "c")}</span>`);
3921
+ _subscribe($active__closures, writeScope($scope12_id, { Ccg: 1 }));
3834
3922
  return 1;
3835
3923
  } else if (h.authed) {
3836
- const $scope50_id = _scope_id();
3837
- _html(`<span${_attr_class("_bO")}>Signed in<!>${h.user ? ` as ${_escape(`${_to_text(h.user)}`)}` : ""}${_el_resume($scope50_id, "b")}</span>`);
3838
- writeScope($scope50_id, {});
3924
+ const $scope52_id = _scope_id();
3925
+ _html(`<span${_attr_class("_bu")}>Signed in<!>${h.user ? ` as ${_escape(`${_to_text(h.user)}`)}` : ""}${_el_resume($scope52_id, "b")}</span>`);
3926
+ writeScope($scope52_id, {});
3839
3927
  return 2;
3840
3928
  } else {
3841
- const $scope51_id = _scope_id();
3842
- _html(`<span${_attr_class("_bO")}>${_escape(h.error || "Not signed in")}${_el_resume($scope51_id, "b")}</span>`);
3843
- writeScope($scope51_id, {});
3929
+ const $scope53_id = _scope_id();
3930
+ _html(`<span${_attr_class("_bu")}>${_escape(h.error || "Not signed in")}${_el_resume($scope53_id, "b")}</span>`);
3931
+ writeScope($scope53_id, {});
3844
3932
  return 3;
3845
3933
  }
3846
- }, $scope9_id, "g", 1, 1, 1, 0, 1);
3934
+ }, $scope11_id, "g", 1, 1, 1, 0, 1);
3847
3935
  _html("</div>");
3848
3936
  _if(() => {
3849
3937
  if (!active.has(h.host)) {
3850
- const $scope21_id = _scope_id();
3938
+ const $scope23_id = _scope_id();
3851
3939
  _if(() => {
3852
3940
  if (!h.authed) {
3853
- const $scope33_id = _scope_id();
3854
- _html(`<button${_attr_class(btnSm)}>Sign in</button>${_el_resume($scope33_id, "a")}`);
3855
- _script($scope33_id, "q24");
3856
- writeScope($scope33_id, {});
3941
+ const $scope35_id = _scope_id();
3942
+ _html(`<button${_attr_class(btnSm)}>Sign in</button>${_el_resume($scope35_id, "a")}`);
3943
+ _script($scope35_id, "r28");
3944
+ writeScope($scope35_id, {});
3857
3945
  return 0;
3858
3946
  }
3859
- }, $scope21_id, "a", 1, 1, 1, 0, 1);
3947
+ }, $scope23_id, "a", 1, 1, 1, 0, 1);
3860
3948
  _if(() => {
3861
3949
  if (h.isEnterprise) {
3862
- const $scope22_id = _scope_id();
3950
+ const $scope24_id = _scope_id();
3863
3951
  _html(`<button${_attr_class([
3864
- "_bQ",
3865
- "_bS",
3866
- { ["_bR"]: confirmingRemove === h.host }
3867
- ])}${confirmingRemove === h.host ? _attr("title", `Forget ${h.host}? (gh stays signed in)`) : _attr("title", `Forget ${h.host}`)}>${confirmingRemove === h.host ? "Forget?" : "×"}${_el_resume($scope22_id, "b")}</button>${_el_resume($scope22_id, "a")}`);
3868
- _script($scope22_id, "q25");
3869
- _subscribe($for_content3__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope22_id, {})));
3952
+ "_bv",
3953
+ "_T",
3954
+ { ["_k"]: confirmingRemove === h.host }
3955
+ ])}${confirmingRemove === h.host ? _attr("title", `Forget ${h.host}? (gh stays signed in)`) : _attr("title", `Forget ${h.host}`)}>${confirmingRemove === h.host ? "Forget?" : "×"}${_el_resume($scope24_id, "b")}</button>${_el_resume($scope24_id, "a")}`);
3956
+ _script($scope24_id, "r29");
3957
+ _subscribe($for_content3__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope24_id, {})));
3870
3958
  return 0;
3871
3959
  }
3872
- }, $scope21_id, "b", 1, 1, 1, 0, 1);
3873
- writeScope($scope21_id, {});
3960
+ }, $scope23_id, "b", 1, 1, 1, 0, 1);
3961
+ writeScope($scope23_id, {});
3874
3962
  return 0;
3875
3963
  }
3876
- }, $scope9_id, "h");
3964
+ }, $scope11_id, "h");
3877
3965
  _html("</li>");
3878
- writeScope($scope9_id, {
3966
+ writeScope($scope11_id, {
3879
3967
  k: h?.host,
3880
3968
  m: h?.isEnterprise,
3881
3969
  n: h?.authed,
@@ -3883,166 +3971,161 @@ var settings_page_default = _template("q", (input) => {
3883
3971
  q: h?.error,
3884
3972
  r: $for_content3__h_host__closures
3885
3973
  });
3886
- }, "host", $scope0_id, "a2", 1, 1, 1, "</ul>", 1);
3974
+ }, "host", $scope0_id, "w", 1, 1, 1, "</ul>", 1);
3887
3975
  _if(() => {
3888
3976
  if (setup && !setup.github.length) {
3889
- const $scope53_id = _scope_id();
3890
- _html(`<p${_attr_class("_bT")}>Install the GitHub CLI below to sign in.</p>`);
3891
- writeScope($scope53_id, {});
3977
+ const $scope55_id = _scope_id();
3978
+ _html(`<p${_attr_class("_bw")}>Install the GitHub CLI below to sign in.</p>`);
3979
+ writeScope($scope55_id, {});
3892
3980
  return 0;
3893
3981
  }
3894
- }, $scope0_id, "a3", 1, 1, 1, 0, 1);
3982
+ }, $scope0_id, "x", 1, 1, 1, 0, 1);
3895
3983
  _if(() => {
3896
3984
  if (setup) {
3897
- const $scope30_id = _scope_id();
3898
- _html(`<form${_attr_class("_cm")}><input${_attr_input_value($scope30_id, "b", hostInput)}${_attr_class("_ck")} type=text placeholder="Add a GitHub Enterprise host, e.g. github.example.com" aria-label="GitHub Enterprise host" autocomplete=off spellcheck=false>${_el_resume($scope30_id, "b")}<button${_attr_class(btnSm)} type=submit${_attr("disabled", !hostInput.trim() || hostBusy)}>${hostBusy ? "Adding…" : "Add host"}${_el_resume($scope30_id, "d")}</button>${_el_resume($scope30_id, "c")}</form>${_el_resume($scope30_id, "a")}`);
3899
- _script($scope30_id, "q26");
3900
- writeScope($scope30_id, {});
3985
+ const $scope32_id = _scope_id();
3986
+ _html(`<form${_attr_class("_ch")}><input${_attr_input_value($scope32_id, "b", hostInput)}${_attr_class(inputLg)} type=text placeholder="Add a GitHub Enterprise host, e.g. github.example.com" aria-label="GitHub Enterprise host" autocomplete=off spellcheck=false>${_el_resume($scope32_id, "b")}<button${_attr_class(btnSm)} type=submit${_attr("disabled", !hostInput.trim() || hostBusy)}>${hostBusy ? "Adding…" : "Add host"}${_el_resume($scope32_id, "d")}</button>${_el_resume($scope32_id, "c")}</form>${_el_resume($scope32_id, "a")}`);
3987
+ _script($scope32_id, "r30");
3988
+ writeScope($scope32_id, {});
3901
3989
  return 0;
3902
3990
  }
3903
- }, $scope0_id, "a4", 1, 1, 1, 0, 1);
3904
- _html(`</section><section${_attr_class("_bF")} aria-labelledby=settings-machine><div${_attr_class("_bG")}><h2 id=settings-machine${_attr_class("_bV")}>Machine</h2>`);
3991
+ }, $scope0_id, "y", 1, 1, 1, 0, 1);
3992
+ _html(`</section><section${_attr_class("_bl")} aria-labelledby=settings-machine><div${_attr_class("_bm")}><h2 id=settings-machine${_attr_class("_bA")}>Machine</h2>`);
3905
3993
  _if(() => {
3906
3994
  if (missingCount) {
3907
- const $scope37_id = _scope_id();
3908
- _html(`<span${_attr_class("_bH")}>${_escape(missingCount)}${_el_resume($scope37_id, "b")} missing</span>`);
3909
- writeScope($scope37_id, {});
3995
+ const $scope39_id = _scope_id();
3996
+ _html(`<span${_attr_class(sectionCount$1)}>${_escape(missingCount)}${_el_resume($scope39_id, "b")} missing</span>`);
3997
+ writeScope($scope39_id, {});
3910
3998
  return 0;
3911
3999
  }
3912
- }, $scope0_id, "a8", 1, 1, 1, 0, 1);
4000
+ }, $scope0_id, "a2", 1, 1, 1, 0, 1);
3913
4001
  _if(() => {
3914
4002
  if (outdatedIds.length) {
3915
- const $scope38_id = _scope_id();
3916
- _html(`<span${_attr_class("_bH")}>${_escape(outdatedIds.length)}${_el_resume($scope38_id, "b")} outdated</span>`);
3917
- writeScope($scope38_id, {});
4003
+ const $scope40_id = _scope_id();
4004
+ _html(`<span${_attr_class(sectionCount$1)}>${_escape(outdatedIds.length)}${_el_resume($scope40_id, "b")} outdated</span>`);
4005
+ writeScope($scope40_id, {});
3918
4006
  return 0;
3919
4007
  }
3920
- }, $scope0_id, "a9", 1, 1, 1, 0, 1);
3921
- _html(`<div${_attr_class("_r")}></div>`);
4008
+ }, $scope0_id, "a3", 1, 1, 1, 0, 1);
4009
+ _html(`<div${_attr_class("_s")}></div>`);
3922
4010
  _if(() => {
3923
4011
  if (outdatedIds.length > 1) {
3924
- const $scope11_id = _scope_id();
3925
- _html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Update all</button>${_el_resume($scope11_id, "a")}`);
3926
- _script($scope11_id, "q27");
3927
- writeScope($scope11_id, {});
4012
+ const $scope13_id = _scope_id();
4013
+ _html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Update all</button>${_el_resume($scope13_id, "a")}`);
4014
+ _script($scope13_id, "r31");
4015
+ writeScope($scope13_id, {});
3928
4016
  return 0;
3929
4017
  }
3930
- }, $scope0_id, "ab", 1, 1, 1, 0, 1);
4018
+ }, $scope0_id, "a5", 1, 1, 1, 0, 1);
3931
4019
  _if(() => {
3932
4020
  if (missingInstallable.length > 1) {
3933
- const $scope12_id = _scope_id();
3934
- _html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Install missing</button>${_el_resume($scope12_id, "a")}`);
3935
- _script($scope12_id, "q28");
3936
- writeScope($scope12_id, {});
4021
+ const $scope14_id = _scope_id();
4022
+ _html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Install missing</button>${_el_resume($scope14_id, "a")}`);
4023
+ _script($scope14_id, "r32");
4024
+ writeScope($scope14_id, {});
3937
4025
  return 0;
3938
4026
  }
3939
- }, $scope0_id, "ac", 1, 1, 1, 0, 1);
4027
+ }, $scope0_id, "a6", 1, 1, 1, 0, 1);
3940
4028
  _html("</div>");
3941
4029
  _if(() => {
3942
4030
  if (setup && !setup.mise.installed) {
3943
- const $scope13_id = _scope_id();
3944
- _html(`<p${_attr_class("_bT")}>mise isn't installed — it provides every tool below. <button${_attr_class(btnSm)}${_attr("disabled", active.has("mise"))}>${active.has("mise") ? "Installing…" : "Install mise"}${_el_resume($scope13_id, "c")}</button>${_el_resume($scope13_id, "b")}</p>`);
3945
- _script($scope13_id, "q29");
3946
- writeScope($scope13_id, {});
4031
+ const $scope15_id = _scope_id();
4032
+ _html(`<p${_attr_class("_bw")}>mise isn't installed — it provides every tool below. <button${_attr_class(btnSm)}${_attr("disabled", active.has("mise"))}>${active.has("mise") ? "Installing…" : "Install mise"}${_el_resume($scope15_id, "c")}</button>${_el_resume($scope15_id, "b")}</p>`);
4033
+ _script($scope15_id, "r33");
4034
+ writeScope($scope15_id, {});
3947
4035
  return 0;
3948
4036
  }
3949
- }, $scope0_id, "ad", 1, 1, 1, 0, 1);
4037
+ }, $scope0_id, "a7", 1, 1, 1, 0, 1);
3950
4038
  _html(`<ul${_attr_class(toolGrid)}>`);
3951
4039
  _for_of(tools, (t) => {
3952
- const $scope14_id = _scope_id();
4040
+ const $scope16_id = _scope_id();
3953
4041
  const $for_content4__t_label__closures = /* @__PURE__ */ new Set();
3954
4042
  const $for_content4__t_version__closures = /* @__PURE__ */ new Set();
3955
4043
  const $for_content4__t_path__closures = /* @__PURE__ */ new Set();
3956
4044
  const $for_content4__t_latest__closures = /* @__PURE__ */ new Set();
3957
4045
  const $for_content4__t_id__closures = /* @__PURE__ */ new Set();
3958
- _html(`<li${_attr_class([
3959
- "_bK",
3960
- "_cd",
3961
- { ["_ce"]: !t.installed }
3962
- ])}><span${_attr_class(["_cf", "_q"])}>${_escape(t.label)}${_el_resume($scope14_id, "c")}</span>`);
4046
+ _html(`<li${_attr_class([row, { ["_cc"]: !t.installed }])}><span${_attr_class(["_cd", "_r"])}>${_escape(t.label)}${_el_resume($scope16_id, "c")}</span>`);
3963
4047
  _if(() => {
3964
4048
  if (active.has(t.id)) {
3965
- const $scope15_id = _scope_id();
3966
- _html(`<span${_attr_class("_bX")}><span${_attr_class("_y")}></span><!>${_escape(active.get(t.id) || "Starting…")}${_el_resume($scope15_id, "c")}</span>`);
3967
- _subscribe($active__closures, writeScope($scope15_id, { Ccj: 2 }));
4049
+ const $scope17_id = _scope_id();
4050
+ _html(`<span${_attr_class("_b0")}><span${_attr_class("_z")}></span><!>${_escape(active.get(t.id) || "Starting…")}${_el_resume($scope17_id, "c")}</span>`);
4051
+ _subscribe($active__closures, writeScope($scope17_id, { Ccg: 2 }));
3968
4052
  return 0;
3969
4053
  } else if (t.installed) {
3970
- const $scope26_id = _scope_id();
4054
+ const $scope28_id = _scope_id();
3971
4055
  _if(() => {
3972
4056
  if (t.version) {
3973
- const $scope27_id = _scope_id();
3974
- _html(`<button${_attr_class(["_ch", "_q"])}${_attr("title", `${t.path || t.label} — pin a version`)}>v<!>${_escape(t.version)}${_el_resume($scope27_id, "b")}</button>${_el_resume($scope27_id, "a")}`);
3975
- _script($scope27_id, "q30");
3976
- _subscribe($for_content4__t_path__closures, _subscribe($for_content4__t_version__closures, _subscribe($for_content4__t_label__closures, writeScope($scope27_id, { Cu: 1 }))));
4057
+ const $scope29_id = _scope_id();
4058
+ _html(`<button${_attr_class(["_ce", "_r"])}${_attr("title", `${t.path || t.label} — pin a version`)}>v<!>${_escape(t.version)}${_el_resume($scope29_id, "b")}</button>${_el_resume($scope29_id, "a")}`);
4059
+ _script($scope29_id, "r34");
4060
+ _subscribe($for_content4__t_path__closures, _subscribe($for_content4__t_version__closures, _subscribe($for_content4__t_label__closures, writeScope($scope29_id, { Cu: 1 }))));
3977
4061
  return 0;
3978
4062
  } else {
3979
- const $scope54_id = _scope_id();
3980
- _html(`<span${_attr_class(["_cg", "_q"])}${_attr("title", t.path)}>${_escape(t.path)}${_el_resume($scope54_id, "b")}</span>${_el_resume($scope54_id, "a")}`);
3981
- _subscribe($for_content4__t_path__closures, writeScope($scope54_id, { Cx: 1 }));
4063
+ const $scope56_id = _scope_id();
4064
+ _html(`<span${_attr_class([metaTrunc, "_r"])}${_attr("title", t.path)}>${_escape(t.path)}${_el_resume($scope56_id, "b")}</span>${_el_resume($scope56_id, "a")}`);
4065
+ _subscribe($for_content4__t_path__closures, writeScope($scope56_id, { Cx: 1 }));
3982
4066
  return 1;
3983
4067
  }
3984
- }, $scope26_id, "a", 1, 1, 1, 0, 1);
4068
+ }, $scope28_id, "a", 1, 1, 1, 0, 1);
3985
4069
  _if(() => {
3986
4070
  if (outdated(t)) {
3987
- const $scope34_id = _scope_id();
3988
- _html(`<button${_attr_class([btnSm, "_ci"])}${_attr("title", `Update to v${t.latest}`)}>↑ <!>${_escape(t.latest)}${_el_resume($scope34_id, "b")}</button>${_el_resume($scope34_id, "a")}`);
3989
- _script($scope34_id, "q31");
3990
- _subscribe($for_content4__t_latest__closures, writeScope($scope34_id, {}));
4071
+ const $scope36_id = _scope_id();
4072
+ _html(`<button${_attr_class([btnSm, "_cf"])}${_attr("title", `Update to v${t.latest}`)}>↑ <!>${_escape(t.latest)}${_el_resume($scope36_id, "b")}</button>${_el_resume($scope36_id, "a")}`);
4073
+ _script($scope36_id, "r35");
4074
+ _subscribe($for_content4__t_latest__closures, writeScope($scope36_id, {}));
3991
4075
  return 0;
3992
4076
  }
3993
- }, $scope26_id, "b", 1, 1, 1, 0, 1);
3994
- writeScope($scope26_id, {});
4077
+ }, $scope28_id, "b", 1, 1, 1, 0, 1);
4078
+ writeScope($scope28_id, {});
3995
4079
  return 1;
3996
4080
  } else if (t.installable) {
3997
- const $scope55_id = _scope_id();
3998
- _html(`<span${_attr_class("_cg")}>not installed</span>`);
3999
- writeScope($scope55_id, {});
4081
+ const $scope57_id = _scope_id();
4082
+ _html(`<span${_attr_class(metaTrunc)}>not installed</span>`);
4083
+ writeScope($scope57_id, {});
4000
4084
  return 2;
4001
4085
  } else {
4002
- const $scope56_id = _scope_id();
4003
- _html(`<span${_attr_class("_cg")} title="Add it with your package manager">system package</span>`);
4004
- writeScope($scope56_id, {});
4086
+ const $scope58_id = _scope_id();
4087
+ _html(`<span${_attr_class(metaTrunc)} title="Add it with your package manager">system package</span>`);
4088
+ writeScope($scope58_id, {});
4005
4089
  return 3;
4006
4090
  }
4007
- }, $scope14_id, "d");
4008
- _html(`<span${_attr_class("_r")}></span>`);
4091
+ }, $scope16_id, "d");
4092
+ _html(`<span${_attr_class("_s")}></span>`);
4009
4093
  _if(() => {
4010
4094
  if (!active.has(t.id)) {
4011
- const $scope23_id = _scope_id();
4095
+ const $scope25_id = _scope_id();
4012
4096
  _if(() => {
4013
4097
  if (t.required) {
4014
- const $scope57_id = _scope_id();
4015
- _html(`<span${_attr_class("_bP")}>required</span>`);
4016
- writeScope($scope57_id, {});
4098
+ const $scope59_id = _scope_id();
4099
+ _html(`<span${_attr_class("_C")}>required</span>`);
4100
+ writeScope($scope59_id, {});
4017
4101
  return 0;
4018
4102
  }
4019
- }, $scope23_id, "a", 1, 1, 1, 0, 1);
4103
+ }, $scope25_id, "a", 1, 1, 1, 0, 1);
4020
4104
  _if(() => {
4021
4105
  if (!t.installed && t.installable) {
4022
- const $scope35_id = _scope_id();
4023
- _html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope35_id, "a")}`);
4024
- _script($scope35_id, "q32");
4025
- writeScope($scope35_id, {});
4106
+ const $scope37_id = _scope_id();
4107
+ _html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope37_id, "a")}`);
4108
+ _script($scope37_id, "r36");
4109
+ writeScope($scope37_id, {});
4026
4110
  return 0;
4027
4111
  } else if (t.installed && t.version && !t.required) {
4028
- const $scope24_id = _scope_id();
4112
+ const $scope26_id = _scope_id();
4029
4113
  _html(`<button${_attr_class([
4030
- "_bQ",
4031
- "_bS",
4032
- "_cj",
4033
- { ["_bR"]: confirmingRemove === t.id }
4034
- ])}${confirmingRemove === t.id ? _attr("title", `Really remove ${t.label}?`) : _attr("title", `Remove ${t.label}`)}>${confirmingRemove === t.id ? "Remove?" : "×"}${_el_resume($scope24_id, "b")}</button>${_el_resume($scope24_id, "a")}`);
4035
- _script($scope24_id, "q33");
4036
- _subscribe($for_content4__t_id__closures, _subscribe($for_content4__t_label__closures, _subscribe($confirmingRemove__closures, writeScope($scope24_id, { Ccm: 1 }))));
4114
+ iconBtnXs,
4115
+ "_T",
4116
+ { ["_k"]: confirmingRemove === t.id }
4117
+ ])}${confirmingRemove === t.id ? _attr("title", `Really remove ${t.label}?`) : _attr("title", `Remove ${t.label}`)}>${confirmingRemove === t.id ? "Remove?" : "×"}${_el_resume($scope26_id, "b")}</button>${_el_resume($scope26_id, "a")}`);
4118
+ _script($scope26_id, "r37");
4119
+ _subscribe($for_content4__t_id__closures, _subscribe($for_content4__t_label__closures, _subscribe($confirmingRemove__closures, writeScope($scope26_id, { Ccj: 1 }))));
4037
4120
  return 1;
4038
4121
  }
4039
- }, $scope23_id, "b", 1, 1, 1, 0, 1);
4040
- writeScope($scope23_id, {});
4122
+ }, $scope25_id, "b", 1, 1, 1, 0, 1);
4123
+ writeScope($scope25_id, {});
4041
4124
  return 0;
4042
4125
  }
4043
- }, $scope14_id, "f");
4044
- _html(`</li>${_el_resume($scope14_id, "a")}`);
4045
- writeScope($scope14_id, {
4126
+ }, $scope16_id, "f");
4127
+ _html(`</li>${_el_resume($scope16_id, "a")}`);
4128
+ writeScope($scope16_id, {
4046
4129
  h: t,
4047
4130
  i: t?.installed,
4048
4131
  j: t?.label,
@@ -4058,82 +4141,82 @@ var settings_page_default = _template("q", (input) => {
4058
4141
  y: $for_content4__t_latest__closures,
4059
4142
  v: $for_content4__t_id__closures
4060
4143
  });
4061
- }, "id", $scope0_id, "ae", 1, 1, 1, "</ul>", 1);
4144
+ }, "id", $scope0_id, "a8", 1, 1, 1, "</ul>", 1);
4062
4145
  _if(() => {
4063
4146
  if (setup && setup.mise.installed) {
4064
- const $scope16_id = _scope_id();
4065
- _html(`<div><input${_attr_input_value($scope16_id, "a", query)}${_attr_class("_ck")} type=text placeholder="Add a tool from the mise registry…" aria-label="Search the mise registry" autocomplete=off>${_el_resume($scope16_id, "a")}`);
4147
+ const $scope18_id = _scope_id();
4148
+ _html(`<div><input${_attr_input_value($scope18_id, "a", query)}${_attr_class(inputLg)} type=text placeholder="Add a tool from the mise registry…" aria-label="Search the mise registry" autocomplete=off>${_el_resume($scope18_id, "a")}`);
4066
4149
  _if(() => {
4067
4150
  if (hits && hits.length) {
4068
- const $scope17_id = _scope_id();
4069
- _html(`<ul${_attr_class([toolGrid, "_cl"])}>`);
4151
+ const $scope19_id = _scope_id();
4152
+ _html(`<ul${_attr_class([toolGrid, "_cg"])}>`);
4070
4153
  _for_of(hits, (h) => {
4071
- const $scope18_id = _scope_id();
4072
- _html(`<li${_attr_class(["_bK", "_cd"])}><div${_attr_class("_bL")}><span${_attr_class(["_cf", "_q"])}>${_escape(h.name)}${_el_resume($scope18_id, "d")}</span>`);
4154
+ const $scope20_id = _scope_id();
4155
+ _html(`<li${_attr_class(row)}><div${_attr_class("_br")}><span${_attr_class(["_cd", "_r"])}>${_escape(h.name)}${_el_resume($scope20_id, "d")}</span>`);
4073
4156
  _if(() => {
4074
4157
  if (active.has(h.name)) {
4075
- const $scope19_id = _scope_id();
4076
- _html(`<span${_attr_class("_bX")}><span${_attr_class("_y")}></span><!>${_escape(active.get(h.name) || "Starting…")}${_el_resume($scope19_id, "c")}</span>`);
4077
- _subscribe($active__closures, writeScope($scope19_id, { Ccj: 4 }));
4158
+ const $scope21_id = _scope_id();
4159
+ _html(`<span${_attr_class("_b0")}><span${_attr_class("_z")}></span><!>${_escape(active.get(h.name) || "Starting…")}${_el_resume($scope21_id, "c")}</span>`);
4160
+ _subscribe($active__closures, writeScope($scope21_id, { Ccg: 4 }));
4078
4161
  return 0;
4079
4162
  } else if (h.description) {
4080
- const $scope58_id = _scope_id();
4081
- _html(`<span${_attr_class("_bO")}${_attr("title", h.description)}>${_escape(h.description)}${_el_resume($scope58_id, "b")}</span>${_el_resume($scope58_id, "a")}`);
4082
- writeScope($scope58_id, {});
4163
+ const $scope60_id = _scope_id();
4164
+ _html(`<span${_attr_class("_bu")}${_attr("title", h.description)}>${_escape(h.description)}${_el_resume($scope60_id, "b")}</span>${_el_resume($scope60_id, "a")}`);
4165
+ writeScope($scope60_id, {});
4083
4166
  return 1;
4084
4167
  }
4085
- }, $scope18_id, "e", 1, 1, 1, 0, 1);
4168
+ }, $scope20_id, "e", 1, 1, 1, 0, 1);
4086
4169
  _html("</div>");
4087
4170
  _if(() => {
4088
4171
  if (!active.has(h.name)) {
4089
- const $scope28_id = _scope_id();
4172
+ const $scope30_id = _scope_id();
4090
4173
  _if(() => {
4091
4174
  if (h.installed) {
4092
- const $scope59_id = _scope_id();
4093
- _html(`<span${_attr_class("_bP")}>installed</span>`);
4094
- writeScope($scope59_id, {});
4175
+ const $scope61_id = _scope_id();
4176
+ _html(`<span${_attr_class("_C")}>installed</span>`);
4177
+ writeScope($scope61_id, {});
4095
4178
  return 0;
4096
4179
  } else {
4097
- const $scope29_id = _scope_id();
4098
- _html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope29_id, "a")}<button${_attr_class(btnSm)} title="Install a specific version">@…</button>${_el_resume($scope29_id, "b")}`);
4099
- _script($scope29_id, "q34");
4100
- writeScope($scope29_id, {});
4180
+ const $scope31_id = _scope_id();
4181
+ _html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope31_id, "a")}<button${_attr_class(btnSm)} title="Install a specific version">@…</button>${_el_resume($scope31_id, "b")}`);
4182
+ _script($scope31_id, "r38");
4183
+ writeScope($scope31_id, {});
4101
4184
  return 1;
4102
4185
  }
4103
- }, $scope28_id, "a");
4104
- writeScope($scope28_id, {});
4186
+ }, $scope30_id, "a");
4187
+ writeScope($scope30_id, {});
4105
4188
  return 0;
4106
4189
  }
4107
- }, $scope18_id, "f");
4190
+ }, $scope20_id, "f");
4108
4191
  _html("</li>");
4109
- _subscribe($active__closures, writeScope($scope18_id, {
4192
+ _subscribe($active__closures, writeScope($scope20_id, {
4110
4193
  i: h?.name,
4111
4194
  k: h?.description,
4112
4195
  m: h?.installed,
4113
- Ccj: 3
4196
+ Ccg: 3
4114
4197
  }));
4115
- }, "name", $scope17_id, "a", 1, 1, 1, "</ul>", 1);
4116
- _subscribe($hits__closures, writeScope($scope17_id, {}));
4198
+ }, "name", $scope19_id, "a", 1, 1, 1, "</ul>", 1);
4199
+ _subscribe($hits__closures, writeScope($scope19_id, {}));
4117
4200
  return 0;
4118
4201
  } else if (hits && !searching) {
4119
- const $scope31_id = _scope_id();
4120
- _html(`<p${_attr_class("_bT")}>No tools match “<!>${_escape(query)}${_el_resume($scope31_id, "b")}”.</p>`);
4121
- _subscribe($query__closures, writeScope($scope31_id, {}));
4202
+ const $scope33_id = _scope_id();
4203
+ _html(`<p${_attr_class("_bw")}>No tools match “<!>${_escape(query)}${_el_resume($scope33_id, "b")}”.</p>`);
4204
+ _subscribe($query__closures, writeScope($scope33_id, {}));
4122
4205
  return 1;
4123
4206
  }
4124
- }, $scope16_id, "b", 1, 1, 1, 0, 1);
4207
+ }, $scope18_id, "b", 1, 1, 1, 0, 1);
4125
4208
  _html("</div>");
4126
- _script($scope16_id, "q35");
4127
- writeScope($scope16_id, {});
4209
+ _script($scope18_id, "r39");
4210
+ writeScope($scope18_id, {});
4128
4211
  return 0;
4129
4212
  }
4130
- }, $scope0_id, "af", 1, 1, 1, 0, 1);
4213
+ }, $scope0_id, "a9", 1, 1, 1, 0, 1);
4131
4214
  _html("</section></div></div></div>");
4132
4215
  _if(() => {
4133
4216
  if (versionPick) {
4134
- const $scope25_id = _scope_id();
4217
+ const $scope27_id = _scope_id();
4135
4218
  _set_serialize_reason(14);
4136
- const $childScope9 = _peek_scope_id();
4219
+ const $childScope10 = _peek_scope_id();
4137
4220
  prompt_dialog_default({
4138
4221
  label: `Pin ${versionPick.label}: latest, lts, a prefix (22), or exact (22.11.0)`,
4139
4222
  placeholder: "latest",
@@ -4142,87 +4225,98 @@ var settings_page_default = _template("q", (input) => {
4142
4225
  open: versionPick != null,
4143
4226
  openChange: _resume(function(o) {
4144
4227
  if (!o) versionPick = null;
4145
- }, "q18", $scope25_id),
4228
+ }, "r19", $scope27_id),
4146
4229
  onSubmit: _resume(function(v) {
4147
4230
  const pick = versionPick;
4148
4231
  versionPick = null;
4149
4232
  run(pick.id, "install", v);
4150
- }, "q19", $scope25_id)
4233
+ }, "r20", $scope27_id)
4151
4234
  });
4152
- writeScope($scope25_id, { a: _existing_scope($childScope9) });
4235
+ writeScope($scope27_id, { a: _existing_scope($childScope10) });
4153
4236
  return 0;
4154
4237
  }
4155
- }, $scope0_id, "ag", 1, 1, 1, 0, 1);
4156
- _script($scope0_id, "q36");
4157
- _script($scope0_id, "q37");
4238
+ }, $scope0_id, "aa", 1, 1, 1, 0, 1);
4239
+ _script($scope0_id, "r40");
4240
+ _script($scope0_id, "r41");
4158
4241
  writeScope($scope0_id, {
4159
- ak: input.setupChange,
4160
- al: input.agentsChange,
4161
- am: input.preferred,
4162
- an: input.preferredChange,
4163
- aq: setup,
4164
- ar: setup?.agents,
4165
- at: setup?.missing,
4166
- av: usage,
4167
- aw: usage?.agents,
4168
- ax: usage?.error,
4169
- ay: error,
4170
- b1: active,
4171
- b2: active?.size,
4172
- b3: authCodes,
4173
- b4: confirmingRemove,
4174
- b5: versionPick,
4175
- b6: versionPick?.label,
4176
- b7: versionPick?.current,
4177
- b8: hostInput,
4178
- b9: hostBusy,
4179
- ba: query,
4180
- bb: hits,
4181
- bc: searching,
4182
- be: searchTimer.id,
4183
- bg: applySetup,
4184
- bi: syncAgents,
4185
- bj: loadSetup,
4186
- bk: loadUsage,
4187
- bm: refresh,
4188
- bn: refreshUsage,
4189
- bo: setActive,
4190
- bq: run,
4191
- br: changeHost,
4192
- bs: runEach,
4193
- bt: setPreferred,
4194
- bv: setEnabled,
4195
- bw: search,
4196
- bx: outdated,
4197
- c0: missingInstallable,
4198
- c2: missingCount,
4199
- c3: outdatedIds,
4200
- c4: outdatedIds?.length,
4201
- c5: families,
4202
- c7: families.length,
4203
- c9: instanceIds,
4204
- cb: accountsFor,
4205
- cc: strayAccountsFor,
4206
- j: _existing_scope($childScope),
4207
- ci: $error__closures,
4208
- u: _existing_scope($childScope2),
4209
- cj: $active__closures,
4210
- cf: $si__input_preferred && $input_preferred__closures,
4211
- cz: $accountsFor2__closures,
4212
- cl: $authCodes__closures,
4213
- cm: $confirmingRemove__closures,
4214
- ct: $hits__closures,
4215
- cs: $query__closures
4242
+ ae: input.setupChange,
4243
+ af: input.agentsChange,
4244
+ ag: input.preferred,
4245
+ ah: input.preferredChange,
4246
+ aj: input.onExit,
4247
+ al: setup,
4248
+ am: setup?.agents,
4249
+ ao: setup?.missing,
4250
+ aq: usage,
4251
+ ar: usage?.agents,
4252
+ as: usage?.error,
4253
+ at: error,
4254
+ au: refreshing,
4255
+ aw: active,
4256
+ ax: active?.size,
4257
+ ay: authCodes,
4258
+ az: confirmingRemove,
4259
+ b0: versionPick,
4260
+ b1: versionPick?.label,
4261
+ b2: versionPick?.current,
4262
+ b3: hostInput,
4263
+ b4: hostBusy,
4264
+ b5: query,
4265
+ b6: hits,
4266
+ b7: searching,
4267
+ b9: searchTimer.id,
4268
+ bb: applySetup,
4269
+ bd: syncAgents,
4270
+ be: loadSetup,
4271
+ bf: loadUsage,
4272
+ bh: refresh,
4273
+ bi: refreshUsage,
4274
+ bj: setActive,
4275
+ bl: run,
4276
+ bm: changeHost,
4277
+ bn: runEach,
4278
+ bo: setPreferred,
4279
+ bq: setEnabled,
4280
+ br: search,
4281
+ bs: outdated,
4282
+ bv: missingInstallable,
4283
+ bx: missingCount,
4284
+ by: outdatedIds,
4285
+ bz: outdatedIds?.length,
4286
+ c0: families,
4287
+ c2: families.length,
4288
+ c4: instanceIds,
4289
+ c6: accountsFor,
4290
+ c7: strayAccountsFor,
4291
+ cc: $setup_missing__closures,
4292
+ cb: $setup2__closures,
4293
+ cf: $refreshing__closures,
4294
+ d: _serialize_if($scope0_reason, 1) && _existing_scope($childScope2),
4295
+ ce: $error__closures,
4296
+ o: _existing_scope($childScope3),
4297
+ cg: $active__closures,
4298
+ ca: $si__input_preferred && $input_preferred__closures,
4299
+ cw: $accountsFor2__closures,
4300
+ ci: $authCodes__closures,
4301
+ cj: $confirmingRemove__closures,
4302
+ cq: $hits__closures,
4303
+ cp: $query__closures
4216
4304
  });
4217
4305
  _resume_branch($scope0_id);
4218
4306
  });
4219
4307
  //#endregion
4220
4308
  //#region src/tags/new-workspace.css.ts
4221
- var content$1 = "_0 _T";
4222
- var iconBtn$2 = "_3 _D";
4309
+ var content$1 = "_bB _bd";
4310
+ var section$1 = "_bF _bl";
4311
+ var curBase = "_bJ _N _M";
4312
+ var archived = "_bN _bl";
4313
+ var archivedHint = "_bO _M";
4314
+ var archivedCard = "_bP _bq";
4315
+ var resultBranch = "_cr _Q _d";
4316
+ var branchInput = "_cw _P _O";
4223
4317
  //#endregion
4224
4318
  //#region src/tags/icons/icon-plus.marko
4225
- var icon_plus_default = _template("M", (input) => {
4319
+ var icon_plus_default = _template("N", (input) => {
4226
4320
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
4227
4321
  const $scope0_id = _scope_id();
4228
4322
  _set_serialize_reason({
@@ -4240,7 +4334,7 @@ var icon_plus_default = _template("M", (input) => {
4240
4334
  //#endregion
4241
4335
  //#region src/tags/repo-picker.marko
4242
4336
  var api$5;
4243
- var repo_picker_default = _template("p", (input) => {
4337
+ var repo_picker_default = _template("q", (input) => {
4244
4338
  const $scope0_reason = _scope_reason();
4245
4339
  const $scope0_id = _scope_id();
4246
4340
  const $branchFilter__closures = /* @__PURE__ */ new Set();
@@ -4260,7 +4354,7 @@ var repo_picker_default = _template("p", (input) => {
4260
4354
  input.onError?.(String(err.message || err));
4261
4355
  }
4262
4356
  if (refresh);
4263
- }, "p3", $scope0_id);
4357
+ }, "q3", $scope0_id);
4264
4358
  const results = catalog && filter ? rankRepos(filter, catalog.repos, (name) => input.exclude.has(name)) : [];
4265
4359
  let branchesFor = null;
4266
4360
  let branches = null;
@@ -4269,7 +4363,7 @@ var repo_picker_default = _template("p", (input) => {
4269
4363
  filter = "";
4270
4364
  branchesFor = null;
4271
4365
  input.onPick(fullName, baseBranch);
4272
- }, "p4", $scope0_id);
4366
+ }, "q4", $scope0_id);
4273
4367
  const toggleBranches = _resume(async (fullName) => {
4274
4368
  if (branchesFor === fullName) {
4275
4369
  branchesFor = null;
@@ -4285,15 +4379,15 @@ var repo_picker_default = _template("p", (input) => {
4285
4379
  branchesFor = null;
4286
4380
  input.onError?.(String(err.message || err));
4287
4381
  }
4288
- }, "p5", $scope0_id);
4289
- _html(`<div${_attr_class("_cp")}><input${_attr_input_value($scope0_id, "b", filter, _resume(function(v) {
4382
+ }, "q5", $scope0_id);
4383
+ _html(`<div${_attr_class("_cl")}><input${_attr_input_value($scope0_id, "b", filter, _resume(function(v) {
4290
4384
  filter = v;
4291
4385
  highlight = 0;
4292
- }, "p0", $scope0_id))}${_attr_class("_cB")} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input.disabled)}>${_el_resume($scope0_id, "b")}`);
4386
+ }, "q0", $scope0_id))}${_attr_class(inputLg)} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input.disabled)}>${_el_resume($scope0_id, "b")}`);
4293
4387
  _if(() => {
4294
4388
  if (filter && !catalog) {
4295
4389
  const $scope8_id = _scope_id();
4296
- _html(`<p${_attr_class("_cA")}>Loading repos…</p>`);
4390
+ _html(`<p${_attr_class("_bw")}>Loading repos…</p>`);
4297
4391
  writeScope($scope8_id, {});
4298
4392
  return 0;
4299
4393
  }
@@ -4301,23 +4395,23 @@ var repo_picker_default = _template("p", (input) => {
4301
4395
  _if(() => {
4302
4396
  if (results.length) {
4303
4397
  const $scope2_id = _scope_id();
4304
- _html(`<ul${_attr_class("_cq")}>`);
4398
+ _html(`<ul${_attr_class("_cm")}>`);
4305
4399
  _for_of(results, (repo, i) => {
4306
4400
  const $scope3_id = _scope_id();
4307
- _html(`<li><div${_attr_class(["_cs", { ["_cr"]: i === highlight }])}><button${_attr_class("_ct")}>`);
4401
+ _html(`<li><div${_attr_class(["_co", { ["_cn"]: i === highlight }])}><button${_attr_class("_cp")}>`);
4308
4402
  icon_plus_default({
4309
4403
  size: 12,
4310
- class: "_cy"
4404
+ class: "_cu"
4311
4405
  });
4312
- _html(`<span${_attr_class("_cz")}>${_escape(repo.nameWithOwner)}${_el_resume($scope3_id, "e")}</span></button>${_el_resume($scope3_id, "b")}<button${_attr_class(["_cv", { ["_cu"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>⎇</button>${_el_resume($scope3_id, "f")}</div>${_el_resume($scope3_id, "a")}`);
4406
+ _html(`<span${_attr_class("_cv")}>${_escape(repo.nameWithOwner)}${_el_resume($scope3_id, "e")}</span></button>${_el_resume($scope3_id, "b")}<button${_attr_class([resultBranch, { ["_cq"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>⎇</button>${_el_resume($scope3_id, "f")}</div>${_el_resume($scope3_id, "a")}`);
4313
4407
  _if(() => {
4314
4408
  if (branchesFor === repo.nameWithOwner) {
4315
4409
  const $scope4_id = _scope_id();
4316
- _html(`<div${_attr_class("_cw")}>`);
4410
+ _html(`<div${_attr_class("_cs")}>`);
4317
4411
  _if(() => {
4318
4412
  if (!branches) {
4319
4413
  const $scope9_id = _scope_id();
4320
- _html(`<p${_attr_class("_cA")}><span${_attr_class("_y")}></span> Loading branches…</p>`);
4414
+ _html(`<p${_attr_class("_bw")}><span${_attr_class("_z")}></span> Loading branches…</p>`);
4321
4415
  writeScope($scope9_id, {});
4322
4416
  return 0;
4323
4417
  } else {
@@ -4327,24 +4421,24 @@ var repo_picker_default = _template("p", (input) => {
4327
4421
  const $scope6_id = _scope_id();
4328
4422
  _html(`<input${_attr_input_value($scope6_id, "a", branchFilter, _resume((_new_branchFilter) => {
4329
4423
  branchFilter = _new_branchFilter;
4330
- }, "p1", $scope6_id))}${_attr_class("_cC")} placeholder="Filter branches…" aria-label="Filter branches" autofocus>${_el_resume($scope6_id, "a")}`);
4331
- _script($scope6_id, "p6");
4424
+ }, "q1", $scope6_id))}${_attr_class(branchInput)} placeholder="Filter branches…" aria-label="Filter branches" autofocus>${_el_resume($scope6_id, "a")}`);
4425
+ _script($scope6_id, "q6");
4332
4426
  _subscribe($branchFilter__closures, writeScope($scope6_id, { Ca9: 1 }));
4333
4427
  return 0;
4334
4428
  }
4335
4429
  }, $scope5_id, "a", 1, 1, 1, 0, 1);
4336
4430
  const shown = (branchFilter ? branches.filter((b) => b.toLowerCase().includes(branchFilter.toLowerCase())) : branches).slice(0, 12);
4337
- _html(`<ul${_attr_class("_cx")}>`);
4431
+ _html(`<ul${_attr_class("_ct")}>`);
4338
4432
  _for_of(shown, (branch) => {
4339
4433
  const $scope7_id = _scope_id();
4340
- _html(`<li><button${_attr_class(["_ct", "_cD"])}><span${_attr_class(["_cz", "_q"])}>${_escape(branch)}${_el_resume($scope7_id, "c")}</span></button>${_el_resume($scope7_id, "a")}</li>`);
4341
- _script($scope7_id, "p7");
4434
+ _html(`<li><button${_attr_class(["_cp", "_cx"])}><span${_attr_class(["_cv", "_r"])}>${_escape(branch)}${_el_resume($scope7_id, "c")}</span></button>${_el_resume($scope7_id, "a")}</li>`);
4435
+ _script($scope7_id, "q7");
4342
4436
  writeScope($scope7_id, { e: branch });
4343
4437
  }, (b) => b, $scope5_id, "c", 1, 1, 1, 0, 1);
4344
4438
  _if(() => {
4345
4439
  if (!shown.length) {
4346
4440
  const $scope10_id = _scope_id();
4347
- _html(`<li><p${_attr_class("_cA")}>No branches match.</p></li>`);
4441
+ _html(`<li><p${_attr_class("_bw")}>No branches match.</p></li>`);
4348
4442
  writeScope($scope10_id, {});
4349
4443
  return 0;
4350
4444
  }
@@ -4359,7 +4453,7 @@ var repo_picker_default = _template("p", (input) => {
4359
4453
  }
4360
4454
  }, $scope3_id, "g", 1, 1, 1, 0, 1);
4361
4455
  _html("</li>");
4362
- _script($scope3_id, "p8");
4456
+ _script($scope3_id, "q8");
4363
4457
  _subscribe($branchesFor__closures, _subscribe($highlight__closures, writeScope($scope3_id, {
4364
4458
  j: repo?.nameWithOwner,
4365
4459
  l: i
@@ -4369,15 +4463,15 @@ var repo_picker_default = _template("p", (input) => {
4369
4463
  return 0;
4370
4464
  } else if (filter && catalog) {
4371
4465
  const $scope1_id = _scope_id();
4372
- _html(`<p${_attr_class("_cA")}>No repos match "<!>${_escape(filter)}${_el_resume($scope1_id, "b")}".</p>`);
4466
+ _html(`<p${_attr_class("_bw")}>No repos match "<!>${_escape(filter)}${_el_resume($scope1_id, "b")}".</p>`);
4373
4467
  writeScope($scope1_id, {});
4374
4468
  return 1;
4375
4469
  }
4376
4470
  }, $scope0_id, "d", 1, 1, 1, 0, 1);
4377
4471
  _html("</div>");
4378
- const $return = _resume(() => loadCatalog(true), "p2", $scope0_id);
4379
- _script($scope0_id, "p9");
4380
- _script($scope0_id, "p10");
4472
+ const $return = _resume(() => loadCatalog(true), "q2", $scope0_id);
4473
+ _script($scope0_id, "q9");
4474
+ _script($scope0_id, "q10");
4381
4475
  writeScope($scope0_id, {
4382
4476
  g: _serialize_if($scope0_reason, 1) && input.refreshing,
4383
4477
  h: _serialize_if($scope0_reason, 0) && input.refreshingChange,
@@ -4409,7 +4503,7 @@ var repo_picker_default = _template("p", (input) => {
4409
4503
  var api$4;
4410
4504
  var watchProgress;
4411
4505
  var new_workspace_default = _template("m", (input) => {
4412
- const $scope0_reason = _scope_reason(), $sg__input_workspaces = _serialize_guard($scope0_reason, 0), $si__input_workspaces = _serialize_if($scope0_reason, 0);
4506
+ const $scope0_reason = _scope_reason(), $sg__input_onExit = _serialize_guard($scope0_reason, 1), $sg__input_workspaces = _serialize_guard($scope0_reason, 0), $si__input_workspaces = _serialize_if($scope0_reason, 0);
4413
4507
  const $scope0_id = _scope_id();
4414
4508
  const $error__closures = /* @__PURE__ */ new Set();
4415
4509
  const $steps_length__closures = /* @__PURE__ */ new Set();
@@ -4483,172 +4577,198 @@ var new_workspace_default = _template("m", (input) => {
4483
4577
  }
4484
4578
  }, "m4", $scope0_id);
4485
4579
  const titleId = _id();
4486
- _html(`<div${_attr_class("_R")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_S")}><div${_attr_class(content$1)}><header${_attr_class("_V")}><div${_attr_class("_X")}><h1${_attr("id", titleId)}${_attr_class("_W")}>New workspace</h1><p${_attr_class("_Y")}>Name the space and pick repos — or restore an archived one below.</p></div></header>`);
4580
+ _html(`<div${_attr_class("_bb")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bc")}><div${_attr_class(content$1)}>`);
4581
+ _set_serialize_reason({
4582
+ 0: $sg__input_onExit,
4583
+ 1: $sg__input_onExit,
4584
+ 2: $sg__input_onExit
4585
+ });
4586
+ const $childScope = _peek_scope_id();
4587
+ page_head_default({
4588
+ title: "New workspace",
4589
+ titleId,
4590
+ onBack: input.onExit && _resume(() => input.onExit?.(), "m5", $scope0_id),
4591
+ meta: attrTag({ content: _content_resume("m10", () => {
4592
+ _scope_reason();
4593
+ _scope_id();
4594
+ _html("Name the space and pick repos — or restore an archived one below.");
4595
+ }, $scope0_id) })
4596
+ });
4487
4597
  _if(() => {
4488
4598
  if (error) {
4489
- const $scope4_id = _scope_id();
4599
+ const $scope5_id = _scope_id();
4490
4600
  toast_default({
4491
4601
  placement: "inline",
4492
4602
  onDismiss: _resume(function() {
4493
4603
  error = null;
4494
- }, "m5", $scope4_id),
4495
- content: _content_resume("m9", () => {
4604
+ }, "m6", $scope5_id),
4605
+ content: _content_resume("m11", () => {
4496
4606
  _scope_reason();
4497
- const $scope5_id = _scope_id();
4498
- _html(`${_escape(error)}${_el_resume($scope5_id, "a")}`);
4499
- _subscribe($error__closures, writeScope($scope5_id, { _: _scope_with_id($scope4_id) }));
4500
- _resume_branch($scope5_id);
4501
- }, $scope4_id)
4607
+ const $scope6_id = _scope_id();
4608
+ _html(`${_escape(error)}${_el_resume($scope6_id, "a")}`);
4609
+ _subscribe($error__closures, writeScope($scope6_id, { _: _scope_with_id($scope5_id) }));
4610
+ _resume_branch($scope6_id);
4611
+ }, $scope5_id)
4502
4612
  });
4503
- writeScope($scope4_id, {});
4613
+ writeScope($scope5_id, {});
4504
4614
  return 0;
4505
4615
  }
4506
- }, $scope0_id, "h", 1, 1, 1, 0, 1);
4507
- _html(`<label${_attr_class("_4")}><span${_attr_class("_bo")}>Name</span><input${_attr_input_value($scope0_id, "k", name, _resume((_new_name) => {
4616
+ }, $scope0_id, "e", 1, 1, 1, 0, 1);
4617
+ _html(`<label${_attr_class("_bE")}><span${_attr_class("_bA")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
4508
4618
  name = _new_name;
4509
- }, "m0", $scope0_id))}${_attr_class("_bp")} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "k")}</label><section${_attr_class("_5")}><div${_attr_class("_6")}><h2${_attr_class("_bq")}>Repos</h2><button${_attr_class(iconBtn$2)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
4619
+ }, "m0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class(section$1)}><div${_attr_class("_bG")}><h2${_attr_class("_bA")}>Repos</h2><button${_attr_class(iconBtnRow)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
4510
4620
  _set_serialize_reason(1);
4511
- const $childScope = _peek_scope_id();
4621
+ const $childScope2 = _peek_scope_id();
4512
4622
  icon_refresh_default({
4513
4623
  size: 14,
4514
- class: catalogRefreshing && "_x"
4624
+ class: catalogRefreshing && "_y"
4515
4625
  });
4516
- _html(`</button>${_el_resume($scope0_id, "o")}</div><ul${_attr_class("_7")}>`);
4626
+ _html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("_bH")}>`);
4517
4627
  _for_of(selected, (repo) => {
4518
- const $scope1_id = _scope_id();
4519
- _html(`<li${_attr_class("_8")}><span${_attr_class("_9")}>${_escape(repo.fullName)}${_el_resume($scope1_id, "c")}</span>`);
4628
+ const $scope2_id = _scope_id();
4629
+ _html(`<li${_attr_class(row)}><span${_attr_class("_bI")}>${_escape(repo.fullName)}${_el_resume($scope2_id, "c")}</span>`);
4520
4630
  _if(() => {
4521
4631
  if (repo.baseBranch) {
4522
- const $scope8_id = _scope_id();
4523
- _html(`<span${_attr_class(["__", "_q"])} title="Base branch">⎇ <!>${_escape(repo.baseBranch)}${_el_resume($scope8_id, "b")}</span>`);
4524
- writeScope($scope8_id, {});
4632
+ const $scope10_id = _scope_id();
4633
+ _html(`<span${_attr_class([curBase, "_r"])} title="Base branch">⎇ <!>${_escape(repo.baseBranch)}${_el_resume($scope10_id, "b")}</span>`);
4634
+ writeScope($scope10_id, {});
4525
4635
  return 0;
4526
4636
  }
4527
- }, $scope1_id, "d", 1, 1, 1, 0, 1);
4528
- _html(`<button${_attr_class("_ba")}${_attr("title", `Remove ${repo.fullName}`)}${_attr("disabled", busy)}>×</button>${_el_resume($scope1_id, "e")}</li>`);
4529
- _script($scope1_id, "m10");
4530
- writeScope($scope1_id, {
4637
+ }, $scope2_id, "d", 1, 1, 1, 0, 1);
4638
+ _html(`<button${_attr_class([iconBtnXs, "_T"])}${_attr("title", `Remove ${repo.fullName}`)}${_attr("disabled", busy)}>×</button>${_el_resume($scope2_id, "e")}</li>`);
4639
+ _script($scope2_id, "m12");
4640
+ writeScope($scope2_id, {
4531
4641
  h: repo?.fullName,
4532
4642
  i: repo?.baseBranch
4533
4643
  });
4534
- }, "fullName", $scope0_id, "r", 1, 1, 1, 0, 1);
4644
+ }, "fullName", $scope0_id, "o", 1, 1, 1, 0, 1);
4535
4645
  _if(() => {
4536
4646
  if (!selected.length) {
4537
- const $scope9_id = _scope_id();
4538
- _html(`<li${_attr_class("_bb")}>No repos yet — search below to add one (or create empty).</li>`);
4539
- writeScope($scope9_id, {});
4647
+ const $scope11_id = _scope_id();
4648
+ _html(`<li${_attr_class("_bw")}>No repos yet — search below to add one (or create empty).</li>`);
4649
+ writeScope($scope11_id, {});
4540
4650
  return 0;
4541
4651
  }
4542
- }, $scope0_id, "s", 1, 1, 1, 0, 1);
4652
+ }, $scope0_id, "p", 1, 1, 1, 0, 1);
4543
4653
  _html("</ul>");
4544
- const $childScope2 = _peek_scope_id();
4654
+ const $childScope3 = _peek_scope_id();
4545
4655
  let refreshCatalog = repo_picker_default({
4546
4656
  exclude: new Set(selected.map((r) => r.fullName)),
4547
4657
  disabled: busy,
4548
4658
  onPick: _resume(function(fullName, baseBranch) {
4549
4659
  addRepo(fullName, baseBranch);
4550
- }, "m6", $scope0_id),
4660
+ }, "m7", $scope0_id),
4551
4661
  onError: _resume(function(message) {
4552
4662
  error = message;
4553
- }, "m7", $scope0_id),
4663
+ }, "m8", $scope0_id),
4554
4664
  refreshingChange: _resume(function(v) {
4555
4665
  catalogRefreshing = v;
4556
- }, "m8", $scope0_id)
4666
+ }, "m9", $scope0_id)
4557
4667
  });
4558
- _var($scope0_id, "u", $childScope2, "m11");
4668
+ _var($scope0_id, "r", $childScope3, "m13");
4559
4669
  _html("</section>");
4560
4670
  _if(() => {
4561
4671
  if (busy && steps$1.length) {
4562
- const $scope6_id = _scope_id();
4563
- _html(`<ul${_attr_class("_bc")}>`);
4672
+ const $scope7_id = _scope_id();
4673
+ _html(`<ul${_attr_class("_bK")}>`);
4564
4674
  _for_of(steps$1, (step$1, i) => {
4565
- const $scope7_id = _scope_id();
4566
- _html(`<li${_attr_class(["_br", { ["_bd"]: i === steps$1.length - 1 }])}>`);
4675
+ const $scope8_id = _scope_id();
4676
+ _html(`<li${_attr_class(["_bQ", { ["_bL"]: i === steps$1.length - 1 }])}>`);
4567
4677
  _if(() => {
4568
4678
  if (i === steps$1.length - 1) {
4569
- const $scope10_id = _scope_id();
4570
- _html(`<span${_attr_class("_y")}></span>`);
4571
- writeScope($scope10_id, {});
4679
+ const $scope12_id = _scope_id();
4680
+ _html(`<span${_attr_class("_z")}></span>`);
4681
+ writeScope($scope12_id, {});
4572
4682
  return 0;
4573
4683
  } else {
4574
- const $scope11_id = _scope_id();
4575
- _html(`<span${_attr_class("_be")}>✓</span>`);
4576
- writeScope($scope11_id, {});
4684
+ const $scope13_id = _scope_id();
4685
+ _html(`<span${_attr_class("_bM")}>✓</span>`);
4686
+ writeScope($scope13_id, {});
4577
4687
  return 1;
4578
4688
  }
4579
- }, $scope7_id, "b", 1, 1, 1, 0, 1);
4580
- _html(`<!>${_escape(step$1)}${_el_resume($scope7_id, "c")}</li>${_el_resume($scope7_id, "a")}`);
4581
- _subscribe($steps_length__closures, writeScope($scope7_id, {}));
4582
- }, 0, $scope6_id, "a", 1, 1, 1, "</ul>", 1);
4583
- writeScope($scope6_id, {});
4689
+ }, $scope8_id, "b", 1, 1, 1, 0, 1);
4690
+ _html(`<!>${_escape(step$1)}${_el_resume($scope8_id, "c")}</li>${_el_resume($scope8_id, "a")}`);
4691
+ _subscribe($steps_length__closures, writeScope($scope8_id, {}));
4692
+ }, 0, $scope7_id, "a", 1, 1, 1, "</ul>", 1);
4693
+ writeScope($scope7_id, {});
4584
4694
  return 0;
4585
4695
  }
4586
- }, $scope0_id, "v", 1, 1, 1, 0, 1);
4587
- _html(`<div${_attr_class("_1")}><button type=button${_attr_class(["_h", "_bs"])}${_attr("disabled", busy || !!restoring)}>Cancel</button>${_el_resume($scope0_id, "x")}<button type=button${_attr_class([
4588
- "_h",
4589
- "_i",
4590
- "_2",
4591
- "_bs"
4592
- ])}${_attr("disabled", busy || !!restoring || !name.trim())}>${busy ? "Creating…" : "Create workspace"}${_el_resume($scope0_id, "z")}</button>${_el_resume($scope0_id, "y")}</div>`);
4696
+ }, $scope0_id, "s", 1, 1, 1, 0, 1);
4697
+ _html(`<div${_attr_class("_bC")}>`);
4698
+ _if(() => {
4699
+ if (input.onExit) {
4700
+ const $scope1_id = _scope_id();
4701
+ _html(`<button type=button${_attr_class(btnLg)}${_attr("disabled", busy || !!restoring)}>Cancel</button>${_el_resume($scope1_id, "a")}`);
4702
+ _script($scope1_id, "m14");
4703
+ writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
4704
+ return 0;
4705
+ }
4706
+ }, $scope0_id, "u", 1, $sg__input_onExit, 1, 0, 1);
4707
+ _html(`<button type=button${_attr_class([
4708
+ btnLg,
4709
+ "_j",
4710
+ "_bD"
4711
+ ])}${_attr("disabled", busy || !!restoring || !name.trim())}>${busy ? "Creating…" : "Create workspace"}${_el_resume($scope0_id, "w")}</button>${_el_resume($scope0_id, "v")}</div>`);
4593
4712
  _if(() => {
4594
4713
  if (archived$1.length) {
4595
- const $scope2_id = _scope_id();
4596
- _html(`<section${_attr_class("_bf")}><div${_attr_class("_6")}><h2${_attr_class("_bq")}>Archived</h2><span${_attr_class("_bg")}>${_escape(archived$1.length)}${_el_resume($scope2_id, "e", $sg__input_workspaces)}</span></div><p${_attr_class("_bh")}>Restore a parked space instead of creating a new one.</p><ul${_attr_class("_bi")}>`);
4714
+ const $scope3_id = _scope_id();
4715
+ _html(`<section${_attr_class(archived)}><div${_attr_class("_bG")}><h2${_attr_class("_bA")}>Archived</h2><span${_attr_class(sectionCount$1)}>${_escape(archived$1.length)}${_el_resume($scope3_id, "e", $sg__input_workspaces)}</span></div><p${_attr_class(archivedHint)}>Restore a parked space instead of creating a new one.</p><ul${_attr_class("_bo")}>`);
4597
4716
  _for_of(archived$1, (ws) => {
4598
- const $scope3_id = _scope_id();
4599
- _html(`<li${_attr_class("_bj")}><div${_attr_class("_bk")}><span${_attr_class("_bl")}>${_escape(ws.name)}${_el_resume($scope3_id, "d", $sg__input_workspaces)}</span><span${_attr_class(["_bm", "_q"])}${_attr("title", ws.display_path || ws.path)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope3_id, "f", $sg__input_workspaces)}</span>${_el_resume($scope3_id, "e", $sg__input_workspaces)}</div><button type=button${_attr_class(["_h", "_bn"])}${_attr("disabled", busy || !!restoring)}>`);
4717
+ const $scope4_id = _scope_id();
4718
+ _html(`<li${_attr_class(archivedCard)}><div${_attr_class("_br")}><span${_attr_class("_bs")}>${_escape(ws.name)}${_el_resume($scope4_id, "d", $sg__input_workspaces)}</span><span${_attr_class([metaTrunc, "_r"])}${_attr("title", ws.display_path || ws.path)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope4_id, "f", $sg__input_workspaces)}</span>${_el_resume($scope4_id, "e", $sg__input_workspaces)}</div><button type=button${_attr_class(btnLg)}${_attr("disabled", busy || !!restoring)}>`);
4600
4719
  _if(() => {
4601
4720
  if (restoring === ws.id) {
4602
- const $scope12_id = _scope_id();
4603
- _html(`<span${_attr_class("_y")}></span> Restoring…`);
4604
- writeScope($scope12_id, {});
4721
+ const $scope14_id = _scope_id();
4722
+ _html(`<span${_attr_class("_z")}></span> Restoring…`);
4723
+ writeScope($scope14_id, {});
4605
4724
  return 0;
4606
4725
  } else {
4607
- const $scope13_id = _scope_id();
4726
+ const $scope15_id = _scope_id();
4608
4727
  _html("Restore");
4609
- writeScope($scope13_id, {});
4728
+ writeScope($scope15_id, {});
4610
4729
  return 1;
4611
4730
  }
4612
- }, $scope3_id, "g", 1, 1, 1, "</button>");
4731
+ }, $scope4_id, "g", 1, 1, 1, "</button>");
4613
4732
  _html("</li>");
4614
- _script($scope3_id, "m12");
4615
- _subscribe($restoring__closures, _subscribe($busy__closures, writeScope($scope3_id, {
4733
+ _script($scope4_id, "m15");
4734
+ _subscribe($restoring__closures, _subscribe($busy__closures, writeScope($scope4_id, {
4616
4735
  i: ws,
4617
4736
  n: ws?.id,
4618
- _: _scope_with_id($scope2_id)
4737
+ _: _scope_with_id($scope3_id)
4619
4738
  })));
4620
- }, "id", $scope2_id, "g", $sg__input_workspaces, $sg__input_workspaces, $sg__input_workspaces, "</ul>", 1);
4739
+ }, "id", $scope3_id, "g", $sg__input_workspaces, $sg__input_workspaces, $sg__input_workspaces, "</ul>", 1);
4621
4740
  _html("</section>");
4622
- writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
4741
+ writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
4623
4742
  return 0;
4624
4743
  }
4625
- }, $scope0_id, "a0", $sg__input_workspaces, $sg__input_workspaces, 1, 0, 1);
4744
+ }, $scope0_id, "x", $sg__input_workspaces, $sg__input_workspaces, 1, 0, 1);
4626
4745
  _html("</div></div></div>");
4627
- _script($scope0_id, "m13");
4746
+ _script($scope0_id, "m16");
4628
4747
  writeScope($scope0_id, {
4629
- a4: input.onRestore,
4630
- a5: input.onCreate,
4631
- a6: input.onExit,
4632
- a7: name,
4633
- a9: selected,
4634
- ab: busy,
4635
- ac: restoring,
4636
- ag: error,
4637
- ah: steps$1,
4638
- aj: steps$1?.length,
4639
- al: $si__input_workspaces && archived$1,
4640
- am: $si__input_workspaces && archived$1?.length,
4641
- an: addRepo,
4642
- ao: removeRepo,
4643
- ap: restore,
4644
- aq: create,
4645
- as: refreshCatalog,
4646
- av: $error__closures,
4647
- p: _existing_scope($childScope),
4648
- t: _existing_scope($childScope2),
4649
- ax: $steps_length__closures,
4650
- at: $busy__closures,
4651
- au: $restoring__closures
4748
+ a1: input.onRestore,
4749
+ a2: input.onCreate,
4750
+ a3: input.onExit,
4751
+ a4: name,
4752
+ a6: selected,
4753
+ a8: busy,
4754
+ a9: restoring,
4755
+ ac: error,
4756
+ ad: steps$1,
4757
+ af: steps$1?.length,
4758
+ ah: $si__input_workspaces && archived$1,
4759
+ ai: $si__input_workspaces && archived$1?.length,
4760
+ aj: addRepo,
4761
+ ak: removeRepo,
4762
+ al: restore,
4763
+ am: create,
4764
+ ao: refreshCatalog,
4765
+ d: _serialize_if($scope0_reason, 1) && _existing_scope($childScope),
4766
+ ar: $error__closures,
4767
+ m: _existing_scope($childScope2),
4768
+ q: _existing_scope($childScope3),
4769
+ at: $steps_length__closures,
4770
+ ap: $busy__closures,
4771
+ aq: $restoring__closures
4652
4772
  });
4653
4773
  _resume_branch($scope0_id);
4654
4774
  });
@@ -4735,9 +4855,9 @@ function activeAgent(session) {
4735
4855
  const command = session.state?.command?.trim();
4736
4856
  return command && agentFromCommand(command) || session.agent;
4737
4857
  }
4738
- var iconBtn$1 = "_cV _D";
4739
- var navToggle = "_c0 _D";
4740
- _template("C", (input) => {
4858
+ var iconBtn$1 = "_c9 _d";
4859
+ var navToggle = "_dd _d";
4860
+ _template("D", (input) => {
4741
4861
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
4742
4862
  const $scope0_id = _scope_id();
4743
4863
  _set_serialize_reason({
@@ -4754,7 +4874,7 @@ _template("C", (input) => {
4754
4874
  });
4755
4875
  //#endregion
4756
4876
  //#region src/tags/icons/icon-settings.marko
4757
- var icon_settings_default = _template("P", (input) => {
4877
+ var icon_settings_default = _template("Q", (input) => {
4758
4878
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
4759
4879
  const $scope0_id = _scope_id();
4760
4880
  _set_serialize_reason({
@@ -4769,10 +4889,25 @@ var icon_settings_default = _template("P", (input) => {
4769
4889
  });
4770
4890
  _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
4771
4891
  });
4772
- var railBtn = "_fP _D";
4892
+ //#endregion
4893
+ //#region src/client/arm.ts
4894
+ /** Two-step destructive controls: first click arms (label/colour flips),
4895
+ * second within the window fires; the arm falls back on its own. One
4896
+ * timeout for every kill/close/remove/dismiss so they all feel the same. */
4897
+ var ARM_MS = 3500;
4898
+ /** Schedule the disarm; returns the timer for cancelling on fire. */
4899
+ function disarmLater(fn) {
4900
+ return setTimeout(fn, ARM_MS);
4901
+ }
4902
+ var railBtn = "_fD _d";
4903
+ var rowIcon = "_fM _Q _d";
4904
+ var close = "_fN _Q _d _T";
4905
+ //#endregion
4906
+ //#region src/styles/session-pop.css.ts
4907
+ var sessionPop = "_eW _U";
4773
4908
  //#endregion
4774
4909
  //#region src/tags/icons/icon-diff.marko
4775
- var icon_diff_default = _template("F", (input) => {
4910
+ var icon_diff_default = _template("G", (input) => {
4776
4911
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
4777
4912
  const $scope0_id = _scope_id();
4778
4913
  _set_serialize_reason({
@@ -4789,7 +4924,7 @@ var icon_diff_default = _template("F", (input) => {
4789
4924
  });
4790
4925
  //#endregion
4791
4926
  //#region src/tags/icons/icon-manage.marko
4792
- var icon_manage_default = _template("L", (input) => {
4927
+ var icon_manage_default = _template("M", (input) => {
4793
4928
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
4794
4929
  const $scope0_id = _scope_id();
4795
4930
  _set_serialize_reason({
@@ -4806,7 +4941,7 @@ var icon_manage_default = _template("L", (input) => {
4806
4941
  });
4807
4942
  //#endregion
4808
4943
  //#region src/tags/icons/icon-edit.marko
4809
- var icon_edit_default = _template("H", (input) => {
4944
+ var icon_edit_default = _template("I", (input) => {
4810
4945
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
4811
4946
  const $scope0_id = _scope_id();
4812
4947
  _set_serialize_reason({
@@ -4821,16 +4956,16 @@ var icon_edit_default = _template("H", (input) => {
4821
4956
  });
4822
4957
  _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
4823
4958
  });
4824
- var prChip = "_ge _l _gd";
4825
- var portChip = "_gf _l _gd";
4959
+ var prChip = "_f4 _m _f3";
4960
+ var portChip = "_f5 _m _f3";
4826
4961
  var prState = {
4827
- open: "_gk",
4828
- merged: "_gl",
4829
- closed: "_gm"
4962
+ open: "_f9",
4963
+ merged: "_f_",
4964
+ closed: "_ga"
4830
4965
  };
4831
4966
  //#endregion
4832
4967
  //#region src/tags/icons/icon-xmark.marko
4833
- var icon_xmark_default = _template("U", (input) => {
4968
+ var icon_xmark_default = _template("V", (input) => {
4834
4969
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
4835
4970
  const $scope0_id = _scope_id();
4836
4971
  _set_serialize_reason({
@@ -4856,7 +4991,7 @@ var prTitle = (repo, pr) => {
4856
4991
  return parts.join(" · ");
4857
4992
  };
4858
4993
  var isOpen = (pr) => !pr.state || pr.state === "OPEN";
4859
- var side_nav_chips_default = _template("r", (input) => {
4994
+ var side_nav_chips_default = _template("s", (input) => {
4860
4995
  const $scope0_reason = _scope_reason(), $sg__input_status_repos = _serialize_guard($scope0_reason, 1), $si__input_status_repos = _serialize_if($scope0_reason, 1), $sg__input_status_ports = _serialize_guard($scope0_reason, 2), $sg__input_status_repos__OR__input_status_ports = _serialize_guard($scope0_reason, 0), $si__input_status_repos__OR__input_status_ports = _serialize_if($scope0_reason, 0);
4861
4996
  const $scope0_id = _scope_id();
4862
4997
  const $armedPid__closures = /* @__PURE__ */ new Set();
@@ -4865,10 +5000,10 @@ var side_nav_chips_default = _template("r", (input) => {
4865
5000
  const armPid = _resume((pid) => {
4866
5001
  clearTimeout(armBox.timer);
4867
5002
  armedPid = pid;
4868
- armBox.timer = setTimeout(() => {
5003
+ armBox.timer = disarmLater(() => {
4869
5004
  armedPid = null;
4870
- }, 3500);
4871
- }, "r0", $scope0_id);
5005
+ });
5006
+ }, "s0", $scope0_id);
4872
5007
  const dismissPr = _resume((fullName, number) => {
4873
5008
  fetch(`/api/workspaces/${input.workspaceId}/prs`, {
4874
5009
  method: "POST",
@@ -4878,7 +5013,7 @@ var side_nav_chips_default = _template("r", (input) => {
4878
5013
  number
4879
5014
  })
4880
5015
  }).catch(() => {});
4881
- }, "r1", $scope0_id);
5016
+ }, "s1", $scope0_id);
4882
5017
  const repos = input.status?.repos || [];
4883
5018
  const ports = input.status?.ports || [];
4884
5019
  _if(() => {
@@ -4889,42 +5024,42 @@ var side_nav_chips_default = _template("r", (input) => {
4889
5024
  if (repos.length < 2) return "";
4890
5025
  const name = repo.full_name.split("/")[1];
4891
5026
  return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/")[1] === name) ? repo.full_name : name;
4892
- }, "r2", $scope1_id);
4893
- _html(`<div${_attr_class("_gc")}>`);
5027
+ }, "s2", $scope1_id);
5028
+ _html(`<div${_attr_class("_f2")}>`);
4894
5029
  _for_of(repos, (repo) => {
4895
5030
  const $scope2_id = _scope_id();
4896
5031
  _for_of(repo.prs || [], (pr) => {
4897
5032
  const $scope3_id = _scope_id();
4898
5033
  const open = isOpen(pr);
4899
5034
  _html(`<span${_attr_class([
4900
- "_l",
5035
+ "_m",
4901
5036
  prChip,
4902
5037
  {
4903
- ["_n"]: open && !pr.isDraft,
4904
- ["_o"]: open && pr.isDraft,
5038
+ ["_o"]: open && !pr.isDraft,
5039
+ ["_p"]: open && pr.isDraft,
4905
5040
  [prState.merged]: pr.state === "MERGED",
4906
5041
  [prState.closed]: pr.state === "CLOSED"
4907
5042
  }
4908
- ])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["_gg", { ["_go"]: !open }])}${_attr("href", pr.url)} target=_blank rel=noopener>${_escape(repoLabel(repo))}${_el_resume($scope3_id, "c", $sg__input_status_repos)}#${_sep($sg__input_status_repos)}${_escape(pr.number)}${_el_resume($scope3_id, "d", $sg__input_status_repos)}</a>${_el_resume($scope3_id, "b", $sg__input_status_repos)}`);
5043
+ ])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["_f6", { ["_gc"]: !open }])}${_attr("href", pr.url)} target=_blank rel=noopener>${_escape(repoLabel(repo))}${_el_resume($scope3_id, "c", $sg__input_status_repos)}#${_sep($sg__input_status_repos)}${_escape(pr.number)}${_el_resume($scope3_id, "d", $sg__input_status_repos)}</a>${_el_resume($scope3_id, "b", $sg__input_status_repos)}`);
4909
5044
  _if(() => {
4910
5045
  if (open) {
4911
5046
  const $scope4_id = _scope_id();
4912
- _html(`<button type=button${_attr_class(["_gg", "_gh"])}${_attr("title", `Review #${pr.number} diff`)}>`);
5047
+ _html(`<button type=button${_attr_class(["_f6", "_f7"])}${_attr("title", `Review #${pr.number} diff`)}>`);
4913
5048
  icon_diff_default({ size: 12 });
4914
5049
  _html(`</button>${_el_resume($scope4_id, "a")}`);
4915
- _script($scope4_id, "r3");
5050
+ _script($scope4_id, "s3");
4916
5051
  writeScope($scope4_id, { _: _scope_with_id($scope3_id) });
4917
5052
  return 0;
4918
5053
  } else {
4919
5054
  const $scope6_id = _scope_id();
4920
5055
  _html(`<button type=button${_attr_class([
4921
- "_gg",
4922
- "_gh",
4923
- "_gi"
5056
+ "_f6",
5057
+ "_f7",
5058
+ "_f8"
4924
5059
  ])}${_attr("title", `Clear #${pr.number} from this list`)}>`);
4925
5060
  icon_xmark_default({ size: 12 });
4926
5061
  _html(`</button>${_el_resume($scope6_id, "a")}`);
4927
- _script($scope6_id, "r4");
5062
+ _script($scope6_id, "s4");
4928
5063
  writeScope($scope6_id, { _: _scope_with_id($scope3_id) });
4929
5064
  return 1;
4930
5065
  }
@@ -4944,15 +5079,15 @@ var side_nav_chips_default = _template("r", (input) => {
4944
5079
  }, "full_name", $scope1_id, "b", $sg__input_status_repos, $sg__input_status_repos, $sg__input_status_repos__OR__input_status_ports);
4945
5080
  _for_of(ports, (p) => {
4946
5081
  const $scope5_id = _scope_id();
4947
- _html(`<span${_attr_class(["_l", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["_gg", "_gn"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${p.port}`)}>:${_sep($sg__input_status_ports)}${_escape(p.port)}${_el_resume($scope5_id, "c", $sg__input_status_ports)}</button>${_el_resume($scope5_id, "b")}<button type=button${_attr_class([
4948
- "_gg",
4949
- "_gh",
4950
- "_gi",
4951
- { ["_gj"]: armedPid === p.pid }
5082
+ _html(`<span${_attr_class(["_m", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["_f6", "_gb"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${p.port}`)}>:${_sep($sg__input_status_ports)}${_escape(p.port)}${_el_resume($scope5_id, "c", $sg__input_status_ports)}</button>${_el_resume($scope5_id, "b")}<button type=button${_attr_class([
5083
+ "_f6",
5084
+ "_f7",
5085
+ "_f8",
5086
+ { ["_k"]: armedPid === p.pid }
4952
5087
  ])}${armedPid === p.pid ? _attr("title", `Really kill ${p.cmd}?`) : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
4953
5088
  icon_xmark_default({ size: 12 });
4954
5089
  _html(`</button>${_el_resume($scope5_id, "d")}</span>${_el_resume($scope5_id, "a", $sg__input_status_ports)}`);
4955
- _script($scope5_id, "r5");
5090
+ _script($scope5_id, "s5");
4956
5091
  _subscribe($armedPid__closures, writeScope($scope5_id, {
4957
5092
  h: p?.cmd,
4958
5093
  i: p?.port,
@@ -4985,8 +5120,8 @@ var side_nav_chips_default = _template("r", (input) => {
4985
5120
  });
4986
5121
  //#endregion
4987
5122
  //#region src/tags/side-nav-item.marko
4988
- var side_nav_item_default = _template("s", (input) => {
4989
- const $scope0_reason = _scope_reason(), $sg__input_workspaceId__OR__input_status = _serialize_guard($scope0_reason, 1), $sg__input_sessions = _serialize_guard($scope0_reason, 18), $sg__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page = _serialize_guard($scope0_reason, 10), $si__input_current = _serialize_if($scope0_reason, 16), $sg__input_page = _serialize_guard($scope0_reason, 20), $si__input_agents = _serialize_if($scope0_reason, 22), $sg__input_onNewSession = _serialize_guard($scope0_reason, 21), $sg__input_onNewSession__OR__input_onReview = _serialize_guard($scope0_reason, 2), $sg__input_onReview = _serialize_guard($scope0_reason, 23), $si__input_sessions = _serialize_if($scope0_reason, 18), $si__input_workspaces__OR__input_workspaceId = _serialize_if($scope0_reason, 0), $si__input_workspaceId__OR__input_status = _serialize_if($scope0_reason, 1), $si__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page = _serialize_if($scope0_reason, 10), $sg__input_rail = _serialize_guard($scope0_reason, 15), $si__input_rail = _serialize_if($scope0_reason, 15), $sg__input_workspaces__OR__input_workspaceId = _serialize_guard($scope0_reason, 0), $si__input_workspaceId = _serialize_if($scope0_reason, 14), $si__input_workspaces__OR__input_workspaceId__OR__input_rail = _serialize_if($scope0_reason, 3), $si__input_workspaces__OR__input_workspaceId__OR__input_rail__OR__input_current__OR__input_page = _serialize_if($scope0_reason, 11), $si__input_index = _serialize_if($scope0_reason, 17), $si__input_onNewSession = _serialize_if($scope0_reason, 21), $si__input_onReview = _serialize_if($scope0_reason, 23), $si__input_managing = _serialize_if($scope0_reason, 24), $si__input_currentTab = _serialize_if($scope0_reason, 25), $si__input_railPop = _serialize_if($scope0_reason, 19), $si__input_page = _serialize_if($scope0_reason, 20), $si__input_onReviewPr = _serialize_if($scope0_reason, 26);
5123
+ var side_nav_item_default = _template("t", (input) => {
5124
+ const $scope0_reason = _scope_reason(), $sg__input_workspaceId__OR__input_status = _serialize_guard($scope0_reason, 1), $sg__input_sessions = _serialize_guard($scope0_reason, 18), $si__input_sessions = _serialize_if($scope0_reason, 18), $si__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page = _serialize_if($scope0_reason, 10), $sg__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page = _serialize_guard($scope0_reason, 10), $si__input_current = _serialize_if($scope0_reason, 16), $sg__input_page = _serialize_guard($scope0_reason, 20), $si__input_agents = _serialize_if($scope0_reason, 22), $sg__input_onNewSession = _serialize_guard($scope0_reason, 21), $sg__input_onNewSession__OR__input_onReview = _serialize_guard($scope0_reason, 2), $sg__input_onReview = _serialize_guard($scope0_reason, 23), $si__input_workspaces__OR__input_workspaceId = _serialize_if($scope0_reason, 0), $sg__input_rail = _serialize_guard($scope0_reason, 15), $si__input_rail = _serialize_if($scope0_reason, 15), $sg__input_workspaces__OR__input_workspaceId = _serialize_guard($scope0_reason, 0), $si__input_workspaceId = _serialize_if($scope0_reason, 14), $si__input_workspaces__OR__input_workspaceId__OR__input_rail = _serialize_if($scope0_reason, 3), $si__input_workspaces__OR__input_workspaceId__OR__input_rail__OR__input_current__OR__input_page = _serialize_if($scope0_reason, 11), $si__input_index = _serialize_if($scope0_reason, 17), $si__input_onNewSession = _serialize_if($scope0_reason, 21), $si__input_onReview = _serialize_if($scope0_reason, 23), $si__input_managing = _serialize_if($scope0_reason, 24), $si__input_currentTab = _serialize_if($scope0_reason, 25), $si__input_railPop = _serialize_if($scope0_reason, 19), $si__input_page = _serialize_if($scope0_reason, 20), $si__input_onReviewPr = _serialize_if($scope0_reason, 26);
4990
5125
  const $scope0_id = _scope_id();
4991
5126
  const $input_current__closures = /* @__PURE__ */ new Set();
4992
5127
  const $input_index__closures = /* @__PURE__ */ new Set();
@@ -5009,10 +5144,10 @@ var side_nav_item_default = _template("s", (input) => {
5009
5144
  const arm = _resume((id) => {
5010
5145
  clearTimeout(armBox.timer);
5011
5146
  armedKill = id;
5012
- armBox.timer = setTimeout(() => {
5147
+ armBox.timer = disarmLater(() => {
5013
5148
  armedKill = null;
5014
- }, 3500);
5015
- }, "s1", $scope0_id);
5149
+ });
5150
+ }, "t1", $scope0_id);
5016
5151
  let renamingId = null;
5017
5152
  let renameValue = "";
5018
5153
  const commitRename = _resume((s) => {
@@ -5020,7 +5155,7 @@ var side_nav_item_default = _template("s", (input) => {
5020
5155
  const title = renameValue.trim();
5021
5156
  renamingId = null;
5022
5157
  if (title) input.onRenameSession?.(s, title);
5023
- }, "s2", $scope0_id);
5158
+ }, "t2", $scope0_id);
5024
5159
  const ws$1 = input.workspaces.find((w) => w.id === input.workspaceId);
5025
5160
  _if(() => {
5026
5161
  if (ws$1) {
@@ -5030,27 +5165,28 @@ var side_nav_item_default = _template("s", (input) => {
5030
5165
  _if(() => {
5031
5166
  if (input.rail) {
5032
5167
  const $scope2_id = _scope_id();
5033
- _html(`<button${_attr_class([railBtn, { ["_fM"]: input.current }])}${_attr("title", ws$1.name)}>${_escape((input.index ?? 0) + 1)}${_el_resume($scope2_id, "b", _serialize_guard($scope0_reason, 17))}<span${_attr_class([
5034
- "_s",
5168
+ _html(`<button${_attr_class([railBtn, { ["_fB"]: input.current }])}${_attr("title", ws$1.name)}>${_escape((input.index ?? 0) + 1)}${_el_resume($scope2_id, "b", _serialize_guard($scope0_reason, 17))}<span${_attr_class([
5169
+ "_t",
5035
5170
  phase[dot],
5036
- "_fQ"
5171
+ "_fE"
5037
5172
  ])}></span>${_el_resume($scope2_id, "c", $sg__input_workspaceId__OR__input_status)}</button>${_el_resume($scope2_id, "a")}`);
5038
- _script($scope2_id, "s3");
5173
+ _script($scope2_id, "t3");
5039
5174
  _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_name__closures, _subscribe($si__input_index && $input_index__closures, _subscribe($si__input_current && $input_current__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) }))));
5040
5175
  return 0;
5041
5176
  } else {
5042
5177
  const $scope3_id = _scope_id();
5043
5178
  const sessions$1 = input.sessions || [];
5044
5179
  const phaseLabel = dot === "working" ? "Working" : dot === "waiting" ? "Needs you" : dot === "idle" ? "Idle" : "Off";
5045
- _html(`<section${_attr_class(["_fS", {
5046
- ["_fM"]: input.current,
5047
- ["_fT"]: input.railPop,
5048
- ["_fR"]: input.page
5049
- }])}><div${_attr_class("_fU")}><button${_attr_class("_fV")}><span${_attr_class([
5050
- "_s",
5180
+ _html(`<section${_attr_class(["_fG", {
5181
+ ["_fB"]: input.current,
5182
+ ["_V"]: input.current,
5183
+ ["_fH"]: input.railPop,
5184
+ ["_fF"]: input.page
5185
+ }])}><div${_attr_class("_fI")}><button${_attr_class("_fJ")}><span${_attr_class([
5186
+ "_t",
5051
5187
  phase[dot],
5052
- "_f5"
5053
- ])}></span>${_el_resume($scope3_id, "d", $sg__input_workspaceId__OR__input_status)}`);
5188
+ "_fU"
5189
+ ])}${_attr("title", phaseLabel)}></span>${_el_resume($scope3_id, "d", $sg__input_workspaceId__OR__input_status)}`);
5054
5190
  _if(() => {
5055
5191
  if (sessions$1.length === 1) {
5056
5192
  const $scope12_id = _scope_id();
@@ -5062,7 +5198,7 @@ var side_nav_item_default = _template("s", (input) => {
5062
5198
  icon_agent_default({
5063
5199
  agent: activeAgent(sessions$1[0]),
5064
5200
  size: 12,
5065
- class: "_f0"
5201
+ class: "_fO"
5066
5202
  });
5067
5203
  $si__input_sessions && writeScope($scope12_id, {
5068
5204
  _: _scope_with_id($scope3_id),
@@ -5072,20 +5208,30 @@ var side_nav_item_default = _template("s", (input) => {
5072
5208
  }
5073
5209
  }, $scope3_id, "e", $sg__input_sessions, $sg__input_sessions, $sg__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page);
5074
5210
  const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length === 1 ? sessions$1[0].title || "" : `${sessions$1.length} sessions`;
5075
- _html(`<span${_attr_class("_f1")}><span${_attr_class("_f2")}>${_escape(ws$1.name)}${_el_resume($scope3_id, "h", $sg__input_workspaces__OR__input_workspaceId)}</span>`);
5211
+ _html(`<span${_attr_class("_fP")}><span${_attr_class("_fQ")}>${_escape(ws$1.name)}${_el_resume($scope3_id, "h", $sg__input_workspaces__OR__input_workspaceId)}</span>`);
5076
5212
  _if(() => {
5077
5213
  if (input.page && metaText) {
5078
- const $scope13_id = _scope_id();
5079
- _html(`<span${_attr_class("_f3")}>${_escape(metaText)}${_el_resume($scope13_id, "b", _serialize_guard($scope0_reason, 5))}</span>`);
5080
- $si__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page && writeScope($scope13_id, { _: _serialize_if($scope0_reason, 5) && _scope_with_id($scope3_id) });
5214
+ const $scope14_id = _scope_id();
5215
+ _html(`<span${_attr_class("_fS")}>${_escape(metaText)}${_el_resume($scope14_id, "b", _serialize_guard($scope0_reason, 5))}</span>`);
5216
+ $si__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page && writeScope($scope14_id, { _: _serialize_if($scope0_reason, 5) && _scope_with_id($scope3_id) });
5081
5217
  return 0;
5218
+ } else if (sessions$1.length === 1 && sessions$1[0].title) {
5219
+ const $scope13_id = _scope_id();
5220
+ _html(`<span${_attr_class("_fR")}>${_escape(sessions$1[0].title)}${_el_resume($scope13_id, "b", $sg__input_sessions)}</span>`);
5221
+ $si__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page && writeScope($scope13_id, { _: $si__input_sessions && _scope_with_id($scope3_id) });
5222
+ return 1;
5082
5223
  }
5083
5224
  }, $scope3_id, "i", $sg__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page, $sg__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page, $sg__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page, 0, 1);
5084
5225
  _html("</span>");
5085
5226
  _if(() => {
5086
5227
  if (input.page) {
5087
5228
  const $scope4_id = _scope_id();
5088
- _html(`<span${_attr_class("_f4")}>${input.current ? "Open" : ""}${_el_resume($scope4_id, "b", _serialize_guard($scope0_reason, 16))}</span>`);
5229
+ _html(`<span${_attr_class([
5230
+ "_C",
5231
+ "_L",
5232
+ "_E",
5233
+ "_fT"
5234
+ ])}>${input.current ? "Open" : ""}${_el_resume($scope4_id, "b", _serialize_guard($scope0_reason, 16))}</span>`);
5089
5235
  $si__input_workspaces__OR__input_workspaceId__OR__input_rail__OR__input_current__OR__input_page && _subscribe($si__input_current && $input_current__closures, writeScope($scope4_id, {
5090
5236
  _: _scope_with_id($scope3_id),
5091
5237
  Cab: $si__input_current && 2
@@ -5097,21 +5243,21 @@ var side_nav_item_default = _template("s", (input) => {
5097
5243
  _if(() => {
5098
5244
  if (!input.page) {
5099
5245
  const $scope5_id = _scope_id();
5100
- _html(`<div${_attr_class("_fW")}>`);
5246
+ _html(`<div${_attr_class("_fK")}>`);
5101
5247
  _if(() => {
5102
5248
  if (input.onNewSession) {
5103
5249
  const $scope6_id = _scope_id();
5104
5250
  const newPopId = _id();
5105
5251
  let pickerReady = false;
5106
- _html(`<button${_attr_class("_fY")} title="New session"${_attr("popovertarget", newPopId)}>`);
5252
+ _html(`<button${_attr_class(rowIcon)} title="New session"${_attr("popovertarget", newPopId)}>`);
5107
5253
  icon_agent_default({
5108
5254
  agent: "shell",
5109
5255
  size: 12
5110
5256
  });
5111
- _html(`</button>${_el_resume($scope6_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class("_fK")}>`);
5257
+ _html(`</button>${_el_resume($scope6_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class(sessionPop)}>`);
5112
5258
  _for_of([], (agent) => {
5113
5259
  const $scope7_id = _scope_id();
5114
- _html(`<button${_attr_class("_fL")}>`);
5260
+ _html(`<button${_attr_class("_eX")}>`);
5115
5261
  _set_serialize_reason(12);
5116
5262
  const $childScope2 = _peek_scope_id();
5117
5263
  icon_agent_default({
@@ -5119,13 +5265,13 @@ var side_nav_item_default = _template("s", (input) => {
5119
5265
  size: 14
5120
5266
  });
5121
5267
  _html(`<!>${_escape(agent)}${_el_resume($scope7_id, "c")}</button>${_el_resume($scope7_id, "a")}`);
5122
- _script($scope7_id, "s4");
5268
+ _script($scope7_id, "t4");
5123
5269
  writeScope($scope7_id, {
5124
5270
  e: agent,
5125
5271
  b: _existing_scope($childScope2)
5126
5272
  });
5127
5273
  }, (a) => a, $scope6_id, "c", 1, 1, 1, "</div>", 1);
5128
- _script($scope6_id, "s5");
5274
+ _script($scope6_id, "t5");
5129
5275
  _subscribe($si__input_agents && $input_agents__closures, writeScope($scope6_id, {
5130
5276
  e: $si__input_agents && pickerReady,
5131
5277
  _: _scope_with_id($scope5_id)
@@ -5136,33 +5282,33 @@ var side_nav_item_default = _template("s", (input) => {
5136
5282
  _if(() => {
5137
5283
  if (input.onReview) {
5138
5284
  const $scope8_id = _scope_id();
5139
- _html(`<button${_attr_class("_fY")} title="Review changes">`);
5285
+ _html(`<button${_attr_class(rowIcon)} title="Review changes">`);
5140
5286
  icon_diff_default({ size: 12 });
5141
5287
  _html(`</button>${_el_resume($scope8_id, "a")}`);
5142
- _script($scope8_id, "s6");
5288
+ _script($scope8_id, "t6");
5143
5289
  writeScope($scope8_id, { _: _scope_with_id($scope5_id) });
5144
5290
  return 0;
5145
5291
  }
5146
5292
  }, $scope5_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
5147
- _html(`<button${_attr_class(["_fY", { ["_fN"]: input.managing }])} title="Manage workspace" aria-pressed=${input.managing ? "true" : "false"}>`);
5293
+ _html(`<button${_attr_class([rowIcon, { ["_fC"]: input.managing }])} title="Manage workspace" aria-pressed=${input.managing ? "true" : "false"}>`);
5148
5294
  icon_manage_default({ size: 12 });
5149
5295
  _html(`</button>${_el_resume($scope5_id, "d")}</div>`);
5150
- _script($scope5_id, "s7");
5296
+ _script($scope5_id, "t7");
5151
5297
  _subscribe($si__input_managing && $input_managing__closures, _subscribe($si__input_onReview && $input_onReview__closures, _subscribe($si__input_onNewSession && $input_onNewSession__closures, writeScope($scope5_id, { _: _scope_with_id($scope3_id) }))));
5152
5298
  return 0;
5153
5299
  }
5154
5300
  }, $scope3_id, "k", $sg__input_page, $sg__input_page, $sg__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page, 0, 1);
5155
- _html(`</div><div${_attr_class("_f_")}>`);
5301
+ _html(`</div><div${_attr_class("_fZ")}>`);
5156
5302
  _for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
5157
5303
  const $scope9_id = _scope_id();
5158
- _html(`<div${_attr_class(["_fX", { ["_fM"]: s.id === input.currentTab }])}>`);
5304
+ _html(`<div${_attr_class(["_fL", { ["_fB"]: s.id === input.currentTab }])}>`);
5159
5305
  _if(() => {
5160
5306
  if (renamingId === s.id) {
5161
5307
  const $scope11_id = _scope_id();
5162
5308
  _html(`<span${_attr_class([
5163
- "_s",
5309
+ "_t",
5164
5310
  phase[sessionPhase(s.state)],
5165
- "_f8"
5311
+ "_fX"
5166
5312
  ])}></span>${_el_resume($scope11_id, "a", $sg__input_sessions)}`);
5167
5313
  _set_serialize_reason({
5168
5314
  1: $sg__input_sessions,
@@ -5172,17 +5318,17 @@ var side_nav_item_default = _template("s", (input) => {
5172
5318
  icon_agent_default({
5173
5319
  agent: activeAgent(s),
5174
5320
  size: 13,
5175
- class: "_gb"
5321
+ class: "_f1"
5176
5322
  });
5177
5323
  _html(`<input${_attr_input_value($scope11_id, "c", renameValue, _resume((_new_renameValue) => {
5178
5324
  renameValue = _new_renameValue;
5179
- }, "s0", $scope11_id))}${_attr_class("_f9")} aria-label="Session name">${_el_resume($scope11_id, "c")}`);
5180
- _script($scope11_id, "s8");
5325
+ }, "t0", $scope11_id))}${_attr_class(["_O", "_fY"])} aria-label="Session name">${_el_resume($scope11_id, "c")}`);
5326
+ _script($scope11_id, "t8");
5181
5327
  _subscribe($renameValue__closures, writeScope($scope11_id, { b: $si__input_sessions && _existing_scope($childScope3) }));
5182
5328
  return 0;
5183
5329
  } else {
5184
5330
  const $scope10_id = _scope_id();
5185
- _html(`<button${_attr_class("_ga")}><span${_attr_class(["_s", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope10_id, "b", $sg__input_sessions)}`);
5331
+ _html(`<button${_attr_class("_f0")}><span${_attr_class(["_t", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope10_id, "b", $sg__input_sessions)}`);
5186
5332
  _set_serialize_reason({
5187
5333
  1: $sg__input_sessions,
5188
5334
  2: $sg__input_sessions
@@ -5191,12 +5337,12 @@ var side_nav_item_default = _template("s", (input) => {
5191
5337
  icon_agent_default({
5192
5338
  agent: activeAgent(s),
5193
5339
  size: 13,
5194
- class: "_gb"
5340
+ class: "_f1"
5195
5341
  });
5196
- _html(`<span${_attr_class("_f6")}>${_escape(s.title || activeAgent(s))}${_el_resume($scope10_id, "e", $sg__input_sessions)}</span></button>${_el_resume($scope10_id, "a")}<div${_attr_class("_f7")}><button${_attr_class("_fY")} title="Rename session">`);
5342
+ _html(`<span${_attr_class("_fV")}>${_escape(s.title || activeAgent(s))}${_el_resume($scope10_id, "e", $sg__input_sessions)}</span></button>${_el_resume($scope10_id, "a")}<div${_attr_class("_fW")}><button${_attr_class(rowIcon)} title="Rename session">`);
5197
5343
  icon_edit_default({ size: 12 });
5198
- _html(`</button>${_el_resume($scope10_id, "g")}<button${_attr_class(["_fZ", { ["_fO"]: armedKill === s.id }])} title=${armedKill === s.id ? "\"Really kill this session?\"" : "\"Kill session\""}>×</button>${_el_resume($scope10_id, "i")}</div>`);
5199
- _script($scope10_id, "s9");
5344
+ _html(`</button>${_el_resume($scope10_id, "g")}<button${_attr_class([close, { ["_k"]: armedKill === s.id }])} title=${armedKill === s.id ? "\"Really kill this session?\"" : "\"Kill session\""}>×</button>${_el_resume($scope10_id, "i")}</div>`);
5345
+ _script($scope10_id, "t9");
5200
5346
  _subscribe($armedKill__closures, writeScope($scope10_id, { c: $si__input_sessions && _existing_scope($childScope4) }));
5201
5347
  return 1;
5202
5348
  }
@@ -5222,11 +5368,11 @@ var side_nav_item_default = _template("s", (input) => {
5222
5368
  onReviewPr: input.onReviewPr
5223
5369
  });
5224
5370
  _html(`</div></section>${_el_resume($scope3_id, "a")}`);
5225
- _script($scope3_id, "s10");
5371
+ _script($scope3_id, "t10");
5226
5372
  _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_name__closures, _subscribe($si__input_onReviewPr && $input_onReviewPr__closures, _subscribe($si__input_page && $input_page__closures, _subscribe($si__input_railPop && $input_railPop__closures, _subscribe($si__input_sessions && $input_sessions__closures, _subscribe($si__input_current && $input_current__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope3_id, {
5227
- p: $si__input_workspaceId__OR__input_status && sessions$1.length,
5373
+ p: $si__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page && sessions$1.length,
5228
5374
  q: $si__input_sessions && sessions$1[0],
5229
- r: $si__input_workspaceId__OR__input_status && sessions$1[0]?.title,
5375
+ r: $si__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page && sessions$1[0]?.title,
5230
5376
  s: $si__input_sessions && phaseLabel,
5231
5377
  u: $si__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page && metaText,
5232
5378
  _: _scope_with_id($scope1_id),
@@ -5294,7 +5440,7 @@ var side_nav_item_default = _template("s", (input) => {
5294
5440
  });
5295
5441
  //#endregion
5296
5442
  //#region src/tags/icons/icon-folder-plus.marko
5297
- var icon_folder_plus_default = _template("I", (input) => {
5443
+ var icon_folder_plus_default = _template("J", (input) => {
5298
5444
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
5299
5445
  const $scope0_id = _scope_id();
5300
5446
  _set_serialize_reason({
@@ -5311,7 +5457,7 @@ var icon_folder_plus_default = _template("I", (input) => {
5311
5457
  });
5312
5458
  //#endregion
5313
5459
  //#region src/tags/icons/icon-sidebar-collapse.marko
5314
- var icon_sidebar_collapse_default = _template("Q", (input) => {
5460
+ var icon_sidebar_collapse_default = _template("R", (input) => {
5315
5461
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
5316
5462
  const $scope0_id = _scope_id();
5317
5463
  _set_serialize_reason({
@@ -5328,14 +5474,13 @@ var icon_sidebar_collapse_default = _template("Q", (input) => {
5328
5474
  });
5329
5475
  //#endregion
5330
5476
  //#region src/tags/side-nav.marko
5331
- var side_nav_default = _template("t", (input) => {
5477
+ var side_nav_default = _template("u", (input) => {
5332
5478
  const $scope0_reason = _scope_reason(), $sg__input_setupReady = _serialize_guard($scope0_reason, 9), $sg__input_workspace__OR__input_allWorkspaces = _serialize_guard($scope0_reason, 0), $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus = _serialize_guard($scope0_reason, 1), $sg__input_agents = _serialize_guard($scope0_reason, 11), $sg__input_workspace = _serialize_guard($scope0_reason, 2), $si__input_workspace = _serialize_if($scope0_reason, 2), $si__input_workspace__OR__input_allWorkspaces = _serialize_if($scope0_reason, 0), $si__input_allStatus = _serialize_if($scope0_reason, 8), $si__input_setupReady = _serialize_if($scope0_reason, 9), $si__input_onSelectWorkspace = _serialize_if($scope0_reason, 10), $si__input_agents = _serialize_if($scope0_reason, 11), $si__input_onNewSession = _serialize_if($scope0_reason, 12), $si__input_onReviewOpened = _serialize_if($scope0_reason, 13), $si__input_sessions = _serialize_if($scope0_reason, 14), $si__input_onRenameSession = _serialize_if($scope0_reason, 15), $si__input_onCloseSession = _serialize_if($scope0_reason, 16);
5333
5479
  const $scope0_id = _scope_id();
5334
5480
  const $notifyOn__closures = /* @__PURE__ */ new Set();
5335
5481
  const $ws_id__closures = /* @__PURE__ */ new Set();
5336
5482
  const $workspaces__closures = /* @__PURE__ */ new Set();
5337
5483
  const $allStatus__closures = /* @__PURE__ */ new Set();
5338
- const $wsSelected__closures = /* @__PURE__ */ new Set();
5339
5484
  const $input_onSelectWorkspace__closures = /* @__PURE__ */ new Set();
5340
5485
  const $input_agents__closures = /* @__PURE__ */ new Set();
5341
5486
  const $input_onNewSession__closures = /* @__PURE__ */ new Set();
@@ -5353,7 +5498,7 @@ var side_nav_default = _template("t", (input) => {
5353
5498
  let canPush = false;
5354
5499
  const leaveNav = _resume(() => {
5355
5500
  if (view === "nav") view = "term";
5356
- }, "t0", $scope0_id);
5501
+ }, "u0", $scope0_id);
5357
5502
  const toggleNotify = _resume(async () => {
5358
5503
  try {
5359
5504
  if (notifyOn) {
@@ -5367,51 +5512,51 @@ var side_nav_default = _template("t", (input) => {
5367
5512
  notifyOn = false;
5368
5513
  input.onError?.(`Notifications failed: ${String(err.message || err)}`);
5369
5514
  }
5370
- }, "t1", $scope0_id);
5515
+ }, "u1", $scope0_id);
5371
5516
  const itemIds = input.allWorkspaces?.length ? input.allWorkspaces.filter((w) => w.status === "active").map((w) => w.id) : [ws.id];
5372
5517
  const workspaces = input.allWorkspaces || [ws];
5373
5518
  const allStatus = input.allStatus || {};
5374
5519
  allStatus[ws.id];
5375
5520
  const isPage = view === "nav";
5376
- const wsSelected = view !== "settings" && view !== "new";
5521
+ const wsSelected = true;
5377
5522
  const otherIds = itemIds.filter((id) => id !== ws.id);
5378
5523
  const listIds = isPage ? [ws.id, ...otherIds] : itemIds;
5379
- _html(`<aside${_attr_class(["_cZ", {
5380
- ["_cX"]: !navOpen,
5381
- ["_cY"]: isPage
5524
+ _html(`<aside${_attr_class(["_dc", {
5525
+ ["_da"]: !navOpen,
5526
+ ["_db"]: isPage
5382
5527
  }])}${_attr("hidden", view === "diff")}>`);
5383
5528
  _if(() => {
5384
5529
  if (isPage) {
5385
5530
  const $scope1_id = _scope_id();
5386
- _html(`<header${_attr_class("_c2")}><h1${_attr_class("_c3")}>Workspaces</h1><div${_attr_class("_c4")}>`);
5531
+ _html(`<header${_attr_class("_df")}><h1${_attr_class("_dg")}>Workspaces</h1><div${_attr_class("_dh")}>`);
5387
5532
  _if(() => {}, $scope1_id, "d", 1, 1, 1, 0, 1);
5388
5533
  _html(`<button${_attr_class([
5389
5534
  iconBtn$1,
5390
- "_c5",
5391
- { ["_cU"]: view === "settings" }
5535
+ "_di",
5536
+ { ["_c8"]: view === "settings" }
5392
5537
  ])} title=Settings aria-pressed=${view === "settings" ? "true" : "false"}>`);
5393
5538
  icon_settings_default({ size: 16 });
5394
5539
  _if(() => {
5395
5540
  if (input.setupReady === false) {
5396
5541
  const $scope10_id = _scope_id();
5397
- _html(`<span${_attr_class(["_s", "_cW"])} title="Machine setup incomplete"></span>`);
5542
+ _html(`<span${_attr_class(["_t", "_c_"])} title="Machine setup incomplete"></span>`);
5398
5543
  $si__input_setupReady && writeScope($scope10_id, {});
5399
5544
  return 0;
5400
5545
  }
5401
5546
  }, $scope1_id, "g", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
5402
5547
  _html(`</button>${_el_resume($scope1_id, "e")}</div></header>`);
5403
- _script($scope1_id, "t18");
5548
+ _script($scope1_id, "u18");
5404
5549
  writeScope($scope1_id, {});
5405
5550
  return 0;
5406
5551
  }
5407
5552
  }, $scope0_id, "b", 1, 1, 1, 0, 1);
5408
- _html(`<div${_attr_class("_c8")}>`);
5553
+ _html(`<div${_attr_class("_dl")}>`);
5409
5554
  _for_of(listIds, (wsId) => {
5410
5555
  const $scope2_id = _scope_id();
5411
5556
  _if(() => {
5412
5557
  if (isPage && wsId === ws.id) {
5413
5558
  const $scope11_id = _scope_id();
5414
- _html(`<h2${_attr_class("_c6")}>Current</h2>`);
5559
+ _html(`<h2${_attr_class(["_bA", "_dj"])}>Current</h2>`);
5415
5560
  writeScope($scope11_id, {});
5416
5561
  return 0;
5417
5562
  }
@@ -5419,7 +5564,7 @@ var side_nav_default = _template("t", (input) => {
5419
5564
  _if(() => {
5420
5565
  if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
5421
5566
  const $scope12_id = _scope_id();
5422
- _html(`<h2${_attr_class("_c6")}>Other spaces</h2>`);
5567
+ _html(`<h2${_attr_class(["_bA", "_dj"])}>Other spaces</h2>`);
5423
5568
  writeScope($scope12_id, {});
5424
5569
  return 0;
5425
5570
  }
@@ -5455,7 +5600,7 @@ var side_nav_default = _template("t", (input) => {
5455
5600
  workspaceId: wsId,
5456
5601
  workspaces,
5457
5602
  status: allStatus,
5458
- current: wsSelected && wsId === ws.id,
5603
+ current: wsId === ws.id,
5459
5604
  managing: view === "manage" && wsId === ws.id,
5460
5605
  page: isPage,
5461
5606
  onSelect: _resume(function() {
@@ -5463,15 +5608,15 @@ var side_nav_default = _template("t", (input) => {
5463
5608
  leaveNav();
5464
5609
  input.onSelectWorkspace?.(wsId);
5465
5610
  } else if (view === "nav" || view === "manage" || view === "settings" || view === "new") view = "term";
5466
- }, "t2", $scope2_id),
5611
+ }, "u2", $scope2_id),
5467
5612
  onManage: _resume(function() {
5468
5613
  input.onManage?.(wsId);
5469
- }, "t3", $scope2_id),
5614
+ }, "u3", $scope2_id),
5470
5615
  agents: input.agents,
5471
5616
  onNewSession: _resume(function(agent) {
5472
5617
  leaveNav();
5473
5618
  input.onNewSession(wsId, agent);
5474
- }, "t4", $scope2_id),
5619
+ }, "u4", $scope2_id),
5475
5620
  onReview: _resume(function() {
5476
5621
  if (wsId === ws.id) {
5477
5622
  if (view === "diff") view = "term";
@@ -5480,7 +5625,7 @@ var side_nav_default = _template("t", (input) => {
5480
5625
  requestDiff(wsId);
5481
5626
  input.onSelectWorkspace?.(wsId);
5482
5627
  }
5483
- }, "t5", $scope2_id),
5628
+ }, "u5", $scope2_id),
5484
5629
  onReviewPr: _resume(function(worktree, number) {
5485
5630
  const pr = `${worktree}/${number}`;
5486
5631
  if (wsId === ws.id) input.onReviewOpened?.(pr);
@@ -5488,7 +5633,7 @@ var side_nav_default = _template("t", (input) => {
5488
5633
  requestDiff(wsId, pr);
5489
5634
  input.onSelectWorkspace?.(wsId);
5490
5635
  }
5491
- }, "t6", $scope2_id),
5636
+ }, "u6", $scope2_id),
5492
5637
  sessions: wsId === ws.id && input.sessions ? input.sessions : allStatus[wsId]?.sessions || [],
5493
5638
  currentTab: wsId === ws.id && view === "term" ? tab : null,
5494
5639
  onOpenTab: _resume(function(sessionId) {
@@ -5496,7 +5641,7 @@ var side_nav_default = _template("t", (input) => {
5496
5641
  tab = sessionId;
5497
5642
  view = "term";
5498
5643
  } else input.onOpenSession?.(wsId, sessionId);
5499
- }, "t7", $scope2_id),
5644
+ }, "u7", $scope2_id),
5500
5645
  onRenameSession: input.onRenameSession,
5501
5646
  onCloseSession: input.onCloseSession
5502
5647
  });
@@ -5510,14 +5655,14 @@ var side_nav_default = _template("t", (input) => {
5510
5655
  const $scope3_id = _scope_id();
5511
5656
  let railHover = null;
5512
5657
  const railHoverBox = { timer: 0 };
5513
- const railKeep = _resume(() => clearTimeout(railHoverBox.timer), "t8", $scope3_id);
5658
+ const railKeep = _resume(() => clearTimeout(railHoverBox.timer), "u8", $scope3_id);
5514
5659
  const railHide = _resume(() => {
5515
5660
  clearTimeout(railHoverBox.timer);
5516
5661
  railHoverBox.timer = setTimeout(() => {
5517
5662
  railHover = null;
5518
5663
  }, 150);
5519
- }, "t9", $scope3_id);
5520
- _html(`<div${_attr_class("_c9")}>`);
5664
+ }, "u9", $scope3_id);
5665
+ _html(`<div${_attr_class("_dm")}>`);
5521
5666
  _for_of(itemIds, (wsId, i) => {
5522
5667
  const $scope4_id = _scope_id();
5523
5668
  _html("<span>");
@@ -5532,11 +5677,11 @@ var side_nav_default = _template("t", (input) => {
5532
5677
  8: $sg__input_workspace__OR__input_allWorkspaces,
5533
5678
  9: $sg__input_workspace__OR__input_allWorkspaces,
5534
5679
  10: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
5535
- 11: 1,
5680
+ 11: $sg__input_workspace__OR__input_allWorkspaces,
5536
5681
  12: $sg__input_workspace__OR__input_allWorkspaces,
5537
- 13: 1,
5682
+ 13: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
5538
5683
  14: $sg__input_workspace__OR__input_allWorkspaces,
5539
- 16: 1,
5684
+ 16: $sg__input_workspace__OR__input_allWorkspaces,
5540
5685
  17: $sg__input_workspace__OR__input_allWorkspaces
5541
5686
  });
5542
5687
  const $childScope2 = _peek_scope_id();
@@ -5546,25 +5691,25 @@ var side_nav_default = _template("t", (input) => {
5546
5691
  workspaceId: wsId,
5547
5692
  workspaces,
5548
5693
  status: allStatus,
5549
- current: wsSelected && wsId === ws.id,
5694
+ current: wsId === ws.id,
5550
5695
  onSelect: _resume(function() {
5551
5696
  if (wsId !== ws.id) input.onSelectWorkspace?.(wsId);
5552
5697
  else if (view === "manage" || view === "settings" || view === "new") view = "term";
5553
- }, "t10", $scope4_id)
5698
+ }, "u10", $scope4_id)
5554
5699
  });
5555
5700
  _html(`</span>${_el_resume($scope4_id, "a")}`);
5556
- _script($scope4_id, "t19");
5557
- _subscribe($wsSelected__closures, _subscribe($si__input_allStatus && $allStatus__closures, _subscribe($si__input_workspace__OR__input_allWorkspaces && $workspaces__closures, _subscribe($si__input_workspace && $ws_id__closures, writeScope($scope4_id, {
5701
+ _script($scope4_id, "u19");
5702
+ _subscribe($si__input_allStatus && $allStatus__closures, _subscribe($si__input_workspace__OR__input_allWorkspaces && $workspaces__closures, _subscribe($si__input_workspace && $ws_id__closures, writeScope($scope4_id, {
5558
5703
  d: wsId,
5559
5704
  _: _scope_with_id($scope3_id),
5560
- b: _existing_scope($childScope2)
5561
- })))));
5705
+ b: _serialize_if($scope0_reason, 1) && _existing_scope($childScope2)
5706
+ }))));
5562
5707
  }, (id) => id, $scope3_id, "a", $sg__input_workspace__OR__input_allWorkspaces, $sg__input_workspace__OR__input_allWorkspaces, $sg__input_workspace__OR__input_allWorkspaces, "</div>", 1);
5563
5708
  _if(() => {
5564
5709
  if (railHover) {
5565
5710
  const $scope5_id = _scope_id();
5566
5711
  const hoverId = railHover.id;
5567
- _html(`<div${_attr_class("_db")}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
5712
+ _html(`<div${_attr_class(["_U", "_dp"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
5568
5713
  _set_serialize_reason({
5569
5714
  0: 1,
5570
5715
  1: 1,
@@ -5595,23 +5740,23 @@ var side_nav_default = _template("t", (input) => {
5595
5740
  workspaceId: hoverId,
5596
5741
  workspaces,
5597
5742
  status: allStatus,
5598
- current: wsSelected && hoverId === ws.id,
5743
+ current: hoverId === ws.id,
5599
5744
  managing: view === "manage" && hoverId === ws.id,
5600
5745
  railPop: true,
5601
5746
  onSelect: _resume(function() {
5602
5747
  railHover = null;
5603
5748
  if (hoverId !== ws.id) input.onSelectWorkspace?.(hoverId);
5604
5749
  else if (view === "manage" || view === "settings" || view === "new") view = "term";
5605
- }, "t11", $scope5_id),
5750
+ }, "u11", $scope5_id),
5606
5751
  onManage: _resume(function() {
5607
5752
  railHover = null;
5608
5753
  input.onManage?.(hoverId);
5609
- }, "t12", $scope5_id),
5754
+ }, "u12", $scope5_id),
5610
5755
  agents: input.agents,
5611
5756
  onNewSession: _resume(function(agent) {
5612
5757
  railHover = null;
5613
5758
  input.onNewSession(hoverId, agent);
5614
- }, "t13", $scope5_id),
5759
+ }, "u13", $scope5_id),
5615
5760
  onReview: _resume(function() {
5616
5761
  railHover = null;
5617
5762
  if (hoverId === ws.id) {
@@ -5621,7 +5766,7 @@ var side_nav_default = _template("t", (input) => {
5621
5766
  requestDiff(hoverId);
5622
5767
  input.onSelectWorkspace?.(hoverId);
5623
5768
  }
5624
- }, "t14", $scope5_id),
5769
+ }, "u14", $scope5_id),
5625
5770
  onReviewPr: _resume(function(worktree, number) {
5626
5771
  railHover = null;
5627
5772
  const pr = `${worktree}/${number}`;
@@ -5630,7 +5775,7 @@ var side_nav_default = _template("t", (input) => {
5630
5775
  requestDiff(hoverId, pr);
5631
5776
  input.onSelectWorkspace?.(hoverId);
5632
5777
  }
5633
- }, "t15", $scope5_id),
5778
+ }, "u15", $scope5_id),
5634
5779
  sessions: hoverId === ws.id && input.sessions ? input.sessions : allStatus[hoverId]?.sessions || [],
5635
5780
  currentTab: hoverId === ws.id && view === "term" ? tab : null,
5636
5781
  onOpenTab: _resume(function(sessionId) {
@@ -5639,20 +5784,19 @@ var side_nav_default = _template("t", (input) => {
5639
5784
  tab = sessionId;
5640
5785
  view = "term";
5641
5786
  } else input.onOpenSession?.(hoverId, sessionId);
5642
- }, "t16", $scope5_id),
5787
+ }, "u16", $scope5_id),
5643
5788
  onRenameSession: input.onRenameSession,
5644
5789
  onCloseSession: input.onCloseSession
5645
5790
  });
5646
5791
  _html(`</div>${_el_resume($scope5_id, "a")}`);
5647
- _script($scope5_id, "t20");
5648
- _subscribe($wsSelected__closures, _subscribe($si__input_allStatus && $allStatus__closures, _subscribe($si__input_workspace__OR__input_allWorkspaces && $workspaces__closures, _subscribe($view__closures, _subscribe($tab__closures, _subscribe($si__input_workspace && $ws_id__closures, _subscribe($si__input_onCloseSession && $input_onCloseSession__closures, _subscribe($si__input_onRenameSession && $input_onRenameSession__closures, _subscribe($si__input_sessions && $input_sessions__closures, _subscribe($si__input_onReviewOpened && $input_onReviewOpened__closures, _subscribe($si__input_onNewSession && $input_onNewSession__closures, _subscribe($si__input_agents && $input_agents__closures, _subscribe($si__input_onSelectWorkspace && $input_onSelectWorkspace__closures, writeScope($scope5_id, {
5792
+ _script($scope5_id, "u20");
5793
+ _subscribe($si__input_allStatus && $allStatus__closures, _subscribe($si__input_workspace__OR__input_allWorkspaces && $workspaces__closures, _subscribe($view__closures, _subscribe($tab__closures, _subscribe($si__input_workspace && $ws_id__closures, _subscribe($si__input_onCloseSession && $input_onCloseSession__closures, _subscribe($si__input_onRenameSession && $input_onRenameSession__closures, _subscribe($si__input_sessions && $input_sessions__closures, _subscribe($si__input_onReviewOpened && $input_onReviewOpened__closures, _subscribe($si__input_onNewSession && $input_onNewSession__closures, _subscribe($si__input_agents && $input_agents__closures, _subscribe($si__input_onSelectWorkspace && $input_onSelectWorkspace__closures, writeScope($scope5_id, {
5649
5794
  c: hoverId,
5650
5795
  b: _existing_scope($childScope3),
5651
5796
  Cb2: $si__input_workspace && 1,
5652
5797
  Cba: $si__input_workspace__OR__input_allWorkspaces && 1,
5653
- Cbb: $si__input_allStatus && 1,
5654
- Cbd: 1
5655
- }))))))))))))));
5798
+ Cbb: $si__input_allStatus && 1
5799
+ })))))))))))));
5656
5800
  return 0;
5657
5801
  }
5658
5802
  }, $scope3_id, "b", 1, 1, 1, 0, 1);
@@ -5667,14 +5811,19 @@ var side_nav_default = _template("t", (input) => {
5667
5811
  return 0;
5668
5812
  }
5669
5813
  }, $scope0_id, "d");
5670
- _html(`<div${_attr_class("_c_")}>`);
5814
+ _html(`<div${_attr_class("_dn")}>`);
5671
5815
  _if(() => {
5672
5816
  if (isPage) {
5673
5817
  const $scope6_id = _scope_id();
5674
- _html(`<button${_attr_class(["_c7", { ["_cU"]: view === "new" }])} title="New workspace" aria-pressed=${view === "new" ? "true" : "false"}>`);
5818
+ _html(`<button${_attr_class([
5819
+ "_i",
5820
+ "_j",
5821
+ btnLg,
5822
+ "_dk"
5823
+ ])} title="New workspace" aria-pressed=${view === "new" ? "true" : "false"}>`);
5675
5824
  icon_folder_plus_default({ size: 16 });
5676
5825
  _html(` New workspace</button>${_el_resume($scope6_id, "a")}`);
5677
- _script($scope6_id, "t21");
5826
+ _script($scope6_id, "u21");
5678
5827
  writeScope($scope6_id, {});
5679
5828
  return 0;
5680
5829
  } else {
@@ -5693,29 +5842,29 @@ var side_nav_default = _template("t", (input) => {
5693
5842
  return 1;
5694
5843
  }
5695
5844
  }, $scope7_id, "a", 1, 1, 1, "</button>", 1);
5696
- _html(`<div${_attr_class(["_r", "_da"])}></div>`);
5845
+ _html(`<div${_attr_class(["_s", "_do"])}></div>`);
5697
5846
  _if(() => {}, $scope7_id, "c", 1, 1, 1, 0, 1);
5698
- _html(`<button${_attr_class([iconBtn$1, { ["_cU"]: view === "settings" }])} title=Settings aria-pressed=${view === "settings" ? "true" : "false"}>`);
5847
+ _html(`<button${_attr_class([iconBtn$1, { ["_c8"]: view === "settings" }])} title=Settings aria-pressed=${view === "settings" ? "true" : "false"}>`);
5699
5848
  icon_settings_default({ size: 15 });
5700
5849
  _if(() => {
5701
5850
  if (input.setupReady === false) {
5702
5851
  const $scope15_id = _scope_id();
5703
- _html(`<span${_attr_class(["_s", "_cW"])} title="Machine setup incomplete"></span>`);
5852
+ _html(`<span${_attr_class(["_t", "_c_"])} title="Machine setup incomplete"></span>`);
5704
5853
  $si__input_setupReady && writeScope($scope15_id, {});
5705
5854
  return 0;
5706
5855
  }
5707
5856
  }, $scope7_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
5708
- _html(`</button>${_el_resume($scope7_id, "d")}<button${_attr_class([iconBtn$1, { ["_cU"]: view === "new" }])} title="New workspace" aria-pressed=${view === "new" ? "true" : "false"}>`);
5857
+ _html(`</button>${_el_resume($scope7_id, "d")}<button${_attr_class([iconBtn$1, { ["_c8"]: view === "new" }])} title="New workspace" aria-pressed=${view === "new" ? "true" : "false"}>`);
5709
5858
  icon_folder_plus_default({ size: 16 });
5710
5859
  _html(`</button>${_el_resume($scope7_id, "g")}`);
5711
- _script($scope7_id, "t23");
5860
+ _script($scope7_id, "u23");
5712
5861
  writeScope($scope7_id, {});
5713
5862
  return 1;
5714
5863
  }
5715
5864
  }, $scope0_id, "e", 1, 1, 1, "</div>");
5716
5865
  _html(`</aside>${_el_resume($scope0_id, "a")}`);
5717
- _script($scope0_id, "t24");
5718
- _script($scope0_id, "t25");
5866
+ _script($scope0_id, "u24");
5867
+ _script($scope0_id, "u25");
5719
5868
  writeScope($scope0_id, {
5720
5869
  i: _serialize_if($scope0_reason, 4) && input.tab,
5721
5870
  j: _serialize_if($scope0_reason, 3) && input.tabChange,
@@ -5758,7 +5907,6 @@ var side_nav_default = _template("t", (input) => {
5758
5907
  b2: $si__input_workspace && $ws_id__closures,
5759
5908
  ba: $si__input_workspace__OR__input_allWorkspaces && $workspaces__closures,
5760
5909
  bb: $si__input_allStatus && $allStatus__closures,
5761
- bd: $wsSelected__closures,
5762
5910
  av: $si__input_onSelectWorkspace && $input_onSelectWorkspace__closures,
5763
5911
  aw: $si__input_agents && $input_agents__closures,
5764
5912
  ax: $si__input_onNewSession && $input_onNewSession__closures,
@@ -5780,16 +5928,23 @@ function repoWebUrl(fullName) {
5780
5928
  if (parts.length >= 3 && parts[0].includes(".")) return `https://${parts[0]}/${parts.slice(1).join("/")}`;
5781
5929
  return `https://github.com/${fullName}`;
5782
5930
  }
5783
- var iconBtn = "_bU _D";
5784
- var content = "_cG _T";
5785
- var pageMeta = "_cH _Y";
5931
+ var iconBtn = "_R _d";
5932
+ var sectionCount = "_bn _C _D";
5933
+ var content = "_cX _bd";
5934
+ var pageMeta = "_cY _bi";
5935
+ var pathMeta = "_c1 _r";
5936
+ var dangerHint = "_c7 _M";
5786
5937
  //#endregion
5787
5938
  //#region src/tags/manage-workspace.marko
5788
5939
  var api$2;
5789
5940
  var lastData = /* @__PURE__ */ new Map();
5790
5941
  var manage_workspace_default = _template("k", (input) => {
5791
- const $scope0_reason = _scope_reason();
5942
+ const $scope0_reason = _scope_reason(), $sg__input_onExit = _serialize_guard($scope0_reason, 1);
5792
5943
  const $scope0_id = _scope_id();
5944
+ const $ws_display_path__closures = /* @__PURE__ */ new Set();
5945
+ const $ws_path__closures = /* @__PURE__ */ new Set();
5946
+ const $ws_name__closures = /* @__PURE__ */ new Set();
5947
+ const $ws_status__closures = /* @__PURE__ */ new Set();
5793
5948
  const $error__closures = /* @__PURE__ */ new Set();
5794
5949
  const $confirmingRemove__closures = /* @__PURE__ */ new Set();
5795
5950
  let catalogRefreshing = false;
@@ -5876,16 +6031,36 @@ var manage_workspace_default = _template("k", (input) => {
5876
6031
  setTimeout(() => loadProcs(void 0), 500);
5877
6032
  }, "k5", $scope0_id);
5878
6033
  const titleId = _id();
5879
- _html(`<div${_attr_class("_R")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_S")}><div${_attr_class(content)}><header${_attr_class("_V")}><div${_attr_class("_X")}><h1${_attr("id", titleId)}${_attr_class("_W")}>Manage</h1><p${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_cI")}>${_escape(ws.name)}${_el_resume($scope0_id, "i")}</span>`);
5880
- _if(() => {
5881
- if (ws.status !== "active") {
5882
- const $scope10_id = _scope_id();
5883
- _html(`<span${_attr_class(["_cL", "_cM"])}>Archived</span>`);
5884
- writeScope($scope10_id, {});
5885
- return 0;
5886
- }
5887
- }, $scope0_id, "j", 1, 1, 1, 0, 1);
5888
- _html(`<span${_attr_class("_cJ")} aria-hidden=true>·</span><span${_attr_class(["_cK", "_q"])}>${_escape(ws.display_path || ws.path)}${_el_resume($scope0_id, "m")}</span></p>${_el_resume($scope0_id, "g")}</div></header>`);
6034
+ _html(`<div${_attr_class("_bb")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bc")}><div${_attr_class(content)}>`);
6035
+ _set_serialize_reason({
6036
+ 0: $sg__input_onExit,
6037
+ 1: $sg__input_onExit,
6038
+ 2: $sg__input_onExit
6039
+ });
6040
+ const $childScope = _peek_scope_id();
6041
+ page_head_default({
6042
+ title: "Manage",
6043
+ titleId,
6044
+ onBack: _resume(function() {
6045
+ input.onExit?.();
6046
+ }, "k6", $scope0_id),
6047
+ meta: attrTag({ content: _content_resume("k11", () => {
6048
+ _scope_reason();
6049
+ const $scope8_id = _scope_id();
6050
+ _html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_cZ")}>${_escape(ws.name)}${_el_resume($scope8_id, "c")}</span>`);
6051
+ _if(() => {
6052
+ if (ws.status !== "active") {
6053
+ const $scope11_id = _scope_id();
6054
+ _html(`<span${_attr_class(["_C", "_E"])}>Archived</span>`);
6055
+ writeScope($scope11_id, {});
6056
+ return 0;
6057
+ }
6058
+ }, $scope8_id, "d", 1, 1, 1, 0, 1);
6059
+ _html(`<span${_attr_class("_c0")} aria-hidden=true>·</span><span${_attr_class(pathMeta)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope8_id, "g")}</span></span>${_el_resume($scope8_id, "a")}`);
6060
+ _subscribe($ws_status__closures, _subscribe($ws_name__closures, _subscribe($ws_path__closures, _subscribe($ws_display_path__closures, writeScope($scope8_id, { _: _scope_with_id($scope0_id) })))));
6061
+ _resume_branch($scope8_id);
6062
+ }, $scope0_id) })
6063
+ });
5889
6064
  _if(() => {
5890
6065
  if (error) {
5891
6066
  const $scope2_id = _scope_id();
@@ -5893,8 +6068,8 @@ var manage_workspace_default = _template("k", (input) => {
5893
6068
  placement: "inline",
5894
6069
  onDismiss: _resume(function() {
5895
6070
  error = null;
5896
- }, "k6", $scope2_id),
5897
- content: _content_resume("k10", () => {
6071
+ }, "k7", $scope2_id),
6072
+ content: _content_resume("k12", () => {
5898
6073
  _scope_reason();
5899
6074
  const $scope3_id = _scope_id();
5900
6075
  _html(`${_escape(error)}${_el_resume($scope3_id, "a")}`);
@@ -5905,49 +6080,49 @@ var manage_workspace_default = _template("k", (input) => {
5905
6080
  writeScope($scope2_id, {});
5906
6081
  return 0;
5907
6082
  }
5908
- }, $scope0_id, "n", 1, 1, 1, 0, 1);
6083
+ }, $scope0_id, "e", 1, 1, 1, 0, 1);
5909
6084
  _if(() => {
5910
6085
  if (pendingAction && actionStep) {
5911
6086
  const $scope7_id = _scope_id();
5912
- _html(`<p${_attr_class("_bE")}><span${_attr_class("_y")}></span><!>${_escape(actionStep)}${_el_resume($scope7_id, "c")}</p>`);
6087
+ _html(`<p${_attr_class("_bk")}><span${_attr_class("_z")}></span><!>${_escape(actionStep)}${_el_resume($scope7_id, "c")}</p>`);
5913
6088
  writeScope($scope7_id, {});
5914
6089
  return 0;
5915
6090
  }
5916
- }, $scope0_id, "o", 1, 1, 1, 0, 1);
5917
- _html(`<section${_attr_class("_bF")}><div${_attr_class("_bG")}><h2${_attr_class("_bV")}>Repos</h2><span${_attr_class("_bH")}>${_escape(ws.repos.length)}${_el_resume($scope0_id, "t")}</span><div${_attr_class("_r")}></div><button${_attr_class(iconBtn)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
6091
+ }, $scope0_id, "f", 1, 1, 1, 0, 1);
6092
+ _html(`<section${_attr_class("_bl")}><div${_attr_class("_bm")}><h2${_attr_class("_bA")}>Repos</h2><span${_attr_class(sectionCount)}>${_escape(ws.repos.length)}${_el_resume($scope0_id, "k")}</span><div${_attr_class("_s")}></div><button${_attr_class(iconBtn)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
5918
6093
  _set_serialize_reason(1);
5919
- const $childScope = _peek_scope_id();
6094
+ const $childScope2 = _peek_scope_id();
5920
6095
  icon_refresh_default({
5921
6096
  size: 14,
5922
- class: catalogRefreshing && "_x"
6097
+ class: catalogRefreshing && "_y"
5923
6098
  });
5924
- _html(`</button>${_el_resume($scope0_id, "v")}</div><ul${_attr_class("_bI")}>`);
6099
+ _html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("_bo")}>`);
5925
6100
  _for_of(ws.repos, (row) => {
5926
6101
  const $scope1_id = _scope_id();
5927
- _html(`<li${_attr_class("_bK")}><div${_attr_class("_bL")}><span${_attr_class(["_bM", "_q"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_bN")}><a${_attr_class(["_bO", "_cO"])}${_attr("href", repoWebUrl(row.full_name))} target=_blank rel=noopener${_attr("title", `Open ${row.full_name} on GitHub`)}>${_escape(row.full_name)}${_el_resume($scope1_id, "g")}</a>${_el_resume($scope1_id, "f")}`);
6102
+ _html(`<li${_attr_class("_bq")}><div${_attr_class("_br")}><span${_attr_class(["_bs", "_r"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_bt")}><a${_attr_class(["_bu", "_c3"])}${_attr("href", repoWebUrl(row.full_name))} target=_blank rel=noopener${_attr("title", `Open ${row.full_name} on GitHub`)}>${_escape(row.full_name)}${_el_resume($scope1_id, "g")}</a>${_el_resume($scope1_id, "f")}`);
5928
6103
  _if(() => {
5929
6104
  if (row.base_branch !== row.default_branch) {
5930
- const $scope11_id = _scope_id();
5931
- _html(`<span${_attr_class(["_bP", "_q"])} title="Base branch">⎇ <!>${_escape(row.base_branch)}${_el_resume($scope11_id, "b")}</span>`);
5932
- writeScope($scope11_id, {});
6105
+ const $scope12_id = _scope_id();
6106
+ _html(`<span${_attr_class(["_C", "_r"])} title="Base branch">⎇ <!>${_escape(row.base_branch)}${_el_resume($scope12_id, "b")}</span>`);
6107
+ writeScope($scope12_id, {});
5933
6108
  return 0;
5934
6109
  }
5935
6110
  }, $scope1_id, "h", 1, 1, 1, 0, 1);
5936
6111
  _html("</span></div>");
5937
6112
  _if(() => {
5938
6113
  if (busy.has(row.full_name)) {
5939
- const $scope12_id = _scope_id();
5940
- _html(`<span${_attr_class("_y")}></span>`);
5941
- writeScope($scope12_id, {});
6114
+ const $scope13_id = _scope_id();
6115
+ _html(`<span${_attr_class("_z")}></span>`);
6116
+ writeScope($scope13_id, {});
5942
6117
  return 0;
5943
6118
  } else {
5944
6119
  const $scope6_id = _scope_id();
5945
6120
  _html(`<button${_attr_class([
5946
- "_bQ",
5947
- "_bS",
5948
- { ["_bR"]: confirmingRemove === row.full_name }
6121
+ "_bv",
6122
+ "_T",
6123
+ { ["_k"]: confirmingRemove === row.full_name }
5949
6124
  ])}${confirmingRemove === row.full_name ? _attr("title", `Really remove ${row.worktree}/? Uncommitted changes are lost.`) : _attr("title", `Remove ${row.worktree}/`)}>${confirmingRemove === row.full_name ? "Remove?" : "×"}${_el_resume($scope6_id, "b")}</button>${_el_resume($scope6_id, "a")}`);
5950
- _script($scope6_id, "k11");
6125
+ _script($scope6_id, "k13");
5951
6126
  _subscribe($confirmingRemove__closures, writeScope($scope6_id, {}));
5952
6127
  return 1;
5953
6128
  }
@@ -5959,130 +6134,139 @@ var manage_workspace_default = _template("k", (input) => {
5959
6134
  m: row?.full_name,
5960
6135
  o: row?.base_branch
5961
6136
  });
5962
- }, "full_name", $scope0_id, "y", 1, 1, 1, 0, 1);
6137
+ }, "full_name", $scope0_id, "p", 1, 1, 1, 0, 1);
5963
6138
  _for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
5964
- const $scope13_id = _scope_id();
5965
- _html(`<li${_attr_class(["_bK", "_bJ"])}><span${_attr_class("_y")}></span><div${_attr_class("_bL")}><span${_attr_class("_bO")}>Adding <!>${_escape(name)}${_el_resume($scope13_id, "e")}…</span></div></li>`);
5966
- writeScope($scope13_id, {});
5967
- }, (n) => n, $scope0_id, "z", 1, 1, 1, 0, 1);
6139
+ const $scope14_id = _scope_id();
6140
+ _html(`<li${_attr_class(["_bq", "_bp"])}><span${_attr_class("_z")}></span><div${_attr_class("_br")}><span${_attr_class("_bu")}>Adding <!>${_escape(name)}${_el_resume($scope14_id, "e")}…</span></div></li>`);
6141
+ writeScope($scope14_id, {});
6142
+ }, (n) => n, $scope0_id, "q", 1, 1, 1, 0, 1);
5968
6143
  _html("</ul>");
5969
6144
  _if(() => {
5970
6145
  if (!ws.repos.length && !busy.size) {
5971
- const $scope14_id = _scope_id();
5972
- _html(`<p${_attr_class("_bT")}>No repos yet — search below to add one.</p>`);
5973
- writeScope($scope14_id, {});
6146
+ const $scope15_id = _scope_id();
6147
+ _html(`<p${_attr_class("_bw")}>No repos yet — search below to add one.</p>`);
6148
+ writeScope($scope15_id, {});
5974
6149
  return 0;
5975
6150
  }
5976
- }, $scope0_id, "a0", 1, 1, 1, 0, 1);
5977
- _html(`<div${_attr_class("_cN")}>`);
5978
- const $childScope2 = _peek_scope_id();
6151
+ }, $scope0_id, "r", 1, 1, 1, 0, 1);
6152
+ _html(`<div${_attr_class("_c2")}>`);
6153
+ const $childScope3 = _peek_scope_id();
5979
6154
  let refreshCatalog = repo_picker_default({
5980
6155
  exclude: inWorkspace,
5981
6156
  onPick: _resume(function(name, baseBranch) {
5982
6157
  addRepo(name, baseBranch);
5983
- }, "k7", $scope0_id),
6158
+ }, "k8", $scope0_id),
5984
6159
  onError: _resume(function(message) {
5985
6160
  error = message;
5986
- }, "k8", $scope0_id),
6161
+ }, "k9", $scope0_id),
5987
6162
  refreshingChange: _resume(function(busy) {
5988
6163
  catalogRefreshing = busy;
5989
- }, "k9", $scope0_id)
6164
+ }, "k10", $scope0_id)
5990
6165
  });
5991
- _var($scope0_id, "a3", $childScope2, "k12");
6166
+ _var($scope0_id, "u", $childScope3, "k14");
5992
6167
  const running = procs || [];
5993
6168
  _html("</div></section>");
5994
6169
  _if(() => {
5995
6170
  if (running.length) {
5996
- const $scope8_id = _scope_id();
5997
- _html(`<section${_attr_class("_bF")}><div${_attr_class("_bG")}><h2${_attr_class("_bV")}>Running</h2><span${_attr_class("_bH")}>${_escape(running.length)}${_el_resume($scope8_id, "e")}</span></div><ul${_attr_class("_bI")}>`);
6171
+ const $scope9_id = _scope_id();
6172
+ _html(`<section${_attr_class("_bl")}><div${_attr_class("_bm")}><h2${_attr_class("_bA")}>Running</h2><span${_attr_class(sectionCount)}>${_escape(running.length)}${_el_resume($scope9_id, "e")}</span></div><ul${_attr_class("_bo")}>`);
5998
6173
  _for_of(running, (p) => {
5999
- const $scope9_id = _scope_id();
6000
- _html(`<li${_attr_class("_bK")}><div${_attr_class("_bL")}${_attr("title", p.args)}><span${_attr_class(["_bM", "_q"])}>${_escape(p.cmd)}${_el_resume($scope9_id, "d")}</span>`);
6174
+ const $scope10_id = _scope_id();
6175
+ _html(`<li${_attr_class("_bq")}><div${_attr_class("_br")}${_attr("title", p.args)}><span${_attr_class(["_bs", "_r"])}>${_escape(p.cmd)}${_el_resume($scope10_id, "d")}</span>`);
6001
6176
  _if(() => {
6002
6177
  if (p.ports.length) {
6003
- const $scope15_id = _scope_id();
6004
- _html(`<span${_attr_class("_bN")}>`);
6178
+ const $scope16_id = _scope_id();
6179
+ _html(`<span${_attr_class("_bt")}>`);
6005
6180
  _for_of(p.ports, (port) => {
6006
- const $scope16_id = _scope_id();
6007
- _html(`<button${_attr_class(["_l", "_cP"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope16_id, "b")}</button>${_el_resume($scope16_id, "a")}`);
6008
- _script($scope16_id, "k13");
6009
- writeScope($scope16_id, { d: port });
6010
- }, (x) => String(x), $scope15_id, "a", 1, 1, 1, "</span>", 1);
6011
- writeScope($scope15_id, {});
6181
+ const $scope17_id = _scope_id();
6182
+ _html(`<button${_attr_class(["_m", "_c4"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope17_id, "b")}</button>${_el_resume($scope17_id, "a")}`);
6183
+ _script($scope17_id, "k15");
6184
+ writeScope($scope17_id, { d: port });
6185
+ }, (x) => String(x), $scope16_id, "a", 1, 1, 1, "</span>", 1);
6186
+ writeScope($scope16_id, {});
6012
6187
  return 0;
6013
6188
  }
6014
- }, $scope9_id, "e", 1, 1, 1, 0, 1);
6015
- _html(`</div>${_el_resume($scope9_id, "b")}<button${_attr_class(["_bQ", "_bS"])} type=button${_attr("title", `Kill ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>×</button>${_el_resume($scope9_id, "f")}</li>`);
6016
- _script($scope9_id, "k14");
6017
- writeScope($scope9_id, {
6189
+ }, $scope10_id, "e", 1, 1, 1, 0, 1);
6190
+ _html(`</div>${_el_resume($scope10_id, "b")}<button${_attr_class(["_bv", "_T"])} type=button${_attr("title", `Kill ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>×</button>${_el_resume($scope10_id, "f")}</li>`);
6191
+ _script($scope10_id, "k16");
6192
+ writeScope($scope10_id, {
6018
6193
  k: p?.ports,
6019
6194
  m: p?.pid
6020
6195
  });
6021
- }, "pid", $scope8_id, "f", 1, 1, 1, "</ul>", 1);
6196
+ }, "pid", $scope9_id, "f", 1, 1, 1, "</ul>", 1);
6022
6197
  _html("</section>");
6023
- writeScope($scope8_id, {});
6198
+ writeScope($scope9_id, {});
6024
6199
  return 0;
6025
6200
  }
6026
- }, $scope0_id, "a4", 1, 1, 1, 0, 1);
6027
- _html(`<section${_attr_class(["_bF", "_cQ"])}><div${_attr_class("_bG")}><h2${_attr_class("_bV")}>Workspace</h2></div><div${_attr_class("_cR")}>`);
6201
+ }, $scope0_id, "v", 1, 1, 1, 0, 1);
6202
+ _html(`<section${_attr_class(["_bl", "_c5"])}><div${_attr_class("_bm")}><h2${_attr_class("_bA")}>Workspace</h2></div><div${_attr_class("_c6")}>`);
6028
6203
  _if(() => {
6029
6204
  if (ws.status === "active") {
6030
6205
  const $scope4_id = _scope_id();
6031
- _html(`<button type=button${_attr_class(["_h", "_cS"])}${_attr("disabled", !!pendingAction)}>${pendingAction === "archive" ? "Archiving…" : "Archive"}${_el_resume($scope4_id, "b")}</button>${_el_resume($scope4_id, "a")}`);
6032
- _script($scope4_id, "k15");
6206
+ _html(`<button type=button${_attr_class(btnLg)}${_attr("disabled", !!pendingAction)}>${pendingAction === "archive" ? "Archiving…" : "Archive"}${_el_resume($scope4_id, "b")}</button>${_el_resume($scope4_id, "a")}`);
6207
+ _script($scope4_id, "k17");
6033
6208
  writeScope($scope4_id, {});
6034
6209
  return 0;
6035
6210
  } else {
6036
6211
  const $scope5_id = _scope_id();
6037
- _html(`<button type=button${_attr_class(["_h", "_cS"])}${_attr("disabled", !!pendingAction)}>Restore</button>${_el_resume($scope5_id, "a")}`);
6038
- _script($scope5_id, "k16");
6212
+ _html(`<button type=button${_attr_class(btnLg)}${_attr("disabled", !!pendingAction)}>Restore</button>${_el_resume($scope5_id, "a")}`);
6213
+ _script($scope5_id, "k18");
6039
6214
  writeScope($scope5_id, {});
6040
6215
  return 1;
6041
6216
  }
6042
- }, $scope0_id, "a9", 1, 1, 1, 0, 1);
6217
+ }, $scope0_id, "a0", 1, 1, 1, 0, 1);
6043
6218
  _html(`<button type=button${_attr_class([
6044
- "_h",
6045
- "_k",
6046
- "_cS",
6047
- { ["_j"]: confirmingDelete }
6048
- ])}${_attr("disabled", !!pendingAction)}>${pendingAction === "delete" ? "Deleting…" : "Delete"}${_el_resume($scope0_id, "ab")}</button>${_el_resume($scope0_id, "aa")}</div><p${_attr_class("_cT")}>Archive hides the space from the list. Delete removes it and its worktrees.</p></section></div></div></div>`);
6049
- _script($scope0_id, "k17");
6050
- _script($scope0_id, "k18");
6219
+ btnLg,
6220
+ "_l",
6221
+ { ["_k"]: confirmingDelete }
6222
+ ])}${_attr("disabled", !!pendingAction)}>${pendingAction === "delete" ? "Deleting…" : "Delete"}${_el_resume($scope0_id, "a2")}</button>${_el_resume($scope0_id, "a1")}</div><p${_attr_class(dangerHint)}>Archive hides the space from the list. Delete removes it and its worktrees.</p></section></div></div></div>`);
6223
+ _script($scope0_id, "k19");
6224
+ _script($scope0_id, "k20");
6051
6225
  writeScope($scope0_id, {
6052
- af: _serialize_if($scope0_reason, 0) && input.workspace,
6053
- ah: input.workspaceChange,
6054
- aj: input.onDeleted,
6055
- am: busy,
6056
- an: busy?.size,
6057
- ao: error,
6058
- ap: pendingAction,
6059
- aq: confirmingDelete,
6060
- as: confirmingRemove,
6061
- at: actionStep,
6062
- av: workspace,
6063
- ax: workspace?.id,
6064
- b3: workspace?.repos?.length,
6065
- b4: loadProcs,
6066
- b5: inWorkspace,
6067
- b6: setBusy,
6068
- b7: addRepo,
6069
- b8: removeRepo,
6070
- b9: runAction,
6071
- ba: killProc,
6072
- bc: refreshCatalog,
6073
- bd: running,
6074
- be: running.length,
6075
- aw: input.workspaceChange || void 0,
6076
- bm: $error__closures,
6077
- w: _existing_scope($childScope),
6078
- bo: $confirmingRemove__closures,
6079
- a2: _existing_scope($childScope2)
6226
+ a6: _serialize_if($scope0_reason, 0) && input.workspace,
6227
+ a8: input.workspaceChange,
6228
+ aa: input.onDeleted,
6229
+ ab: input.onExit,
6230
+ ae: busy,
6231
+ af: busy?.size,
6232
+ ag: error,
6233
+ ah: pendingAction,
6234
+ ai: confirmingDelete,
6235
+ ak: confirmingRemove,
6236
+ al: actionStep,
6237
+ an: workspace,
6238
+ ap: workspace?.id,
6239
+ ar: workspace?.display_path,
6240
+ as: workspace?.path,
6241
+ at: workspace?.name,
6242
+ au: workspace?.status,
6243
+ av: workspace?.repos?.length,
6244
+ aw: loadProcs,
6245
+ ax: inWorkspace,
6246
+ ay: setBusy,
6247
+ az: addRepo,
6248
+ b0: removeRepo,
6249
+ b1: runAction,
6250
+ b2: killProc,
6251
+ b4: refreshCatalog,
6252
+ b5: running,
6253
+ b6: running.length,
6254
+ ao: input.workspaceChange || void 0,
6255
+ bi: $ws_display_path__closures,
6256
+ bj: $ws_path__closures,
6257
+ bk: $ws_name__closures,
6258
+ bl: $ws_status__closures,
6259
+ d: _serialize_if($scope0_reason, 1) && _existing_scope($childScope),
6260
+ be: $error__closures,
6261
+ n: _existing_scope($childScope2),
6262
+ bg: $confirmingRemove__closures,
6263
+ t: _existing_scope($childScope3)
6080
6264
  });
6081
6265
  _resume_branch($scope0_id);
6082
6266
  });
6083
6267
  //#endregion
6084
6268
  //#region src/tags/term-find.marko
6085
- var term_find_default = _template("u", (input) => {
6269
+ var term_find_default = _template("v", (input) => {
6086
6270
  const $scope0_reason = _scope_reason();
6087
6271
  const $scope0_id = _scope_id();
6088
6272
  let open = input.open;
@@ -6099,35 +6283,35 @@ var term_find_default = _template("u", (input) => {
6099
6283
  if (!live.open) return;
6100
6284
  const search = input.onSearch;
6101
6285
  if (search) search(live.query, dir);
6102
- }, "u1", $scope0_id);
6286
+ }, "v1", $scope0_id);
6103
6287
  const close = _resume(() => {
6104
6288
  open = false;
6105
6289
  live.open = false;
6106
6290
  const clear = input.onClear;
6107
6291
  if (clear) clear();
6108
- }, "u2", $scope0_id);
6292
+ }, "v2", $scope0_id);
6109
6293
  const focusInput = _resume(() => {
6110
6294
  const el = ((findEl) => findEl())(_el_read_error);
6111
6295
  if (!el) return;
6112
6296
  el.focus();
6113
6297
  if (document.activeElement !== el) setTimeout(() => el.focus(), 0);
6114
- }, "u3", $scope0_id);
6298
+ }, "v3", $scope0_id);
6115
6299
  const hasQuery = !!query.trim();
6116
6300
  const canStep = hasQuery && open;
6117
6301
  const keybar = input.placement === "keybar";
6118
6302
  _html(`<div${_attr_class([
6119
- "_fp",
6120
- keybar ? "_fr" : "_fq",
6121
- !open && "_ft"
6122
- ])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_fk", keybar ? "_fs" : "_fm"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
6303
+ "_e7",
6304
+ keybar ? "_e9" : "_e8",
6305
+ !open && "_fa"
6306
+ ])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_e2", keybar ? "_e_" : "_e4"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
6123
6307
  if (!open) return;
6124
6308
  query = v;
6125
6309
  live.query = v;
6126
6310
  run(0);
6127
- }, "u0", $scope0_id))}${_attr_class([findInput, keybar && "_fu"])} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in terminal" aria-label="Find in terminal">${_el_resume($scope0_id, "c")}<button type=button${_attr_class([findIconBtn, keybar && "_fv"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↑</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_fv"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↓</button>${_el_resume($scope0_id, "e")}<button type=button${_attr_class([findIconBtn, keybar && "_fv"])} title="Close find" tabindex=${open ? "0" : "-1"}>×</button>${_el_resume($scope0_id, "f")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
6128
- _script($scope0_id, "u4");
6129
- _script($scope0_id, "u5");
6130
- _script($scope0_id, "u6");
6311
+ }, "v0", $scope0_id))}${_attr_class([findInput, keybar && "_fb"])} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in terminal" aria-label="Find in terminal">${_el_resume($scope0_id, "c")}<button type=button${_attr_class([findIconBtn, keybar && "_fc"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↑</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_fc"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↓</button>${_el_resume($scope0_id, "e")}<button type=button${_attr_class([findIconBtn, keybar && "_fc"])} title="Close find" tabindex=${open ? "0" : "-1"}>×</button>${_el_resume($scope0_id, "f")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
6312
+ _script($scope0_id, "v4");
6313
+ _script($scope0_id, "v5");
6314
+ _script($scope0_id, "v6");
6131
6315
  writeScope($scope0_id, {
6132
6316
  i: _serialize_if($scope0_reason, 1) && input.open,
6133
6317
  j: _serialize_if($scope0_reason, 0) && input.openChange,
@@ -6150,7 +6334,7 @@ var term_find_default = _template("u", (input) => {
6150
6334
  });
6151
6335
  _resume_branch($scope0_id);
6152
6336
  });
6153
- _template("T", (input) => {
6337
+ _template("U", (input) => {
6154
6338
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
6155
6339
  const $scope0_id = _scope_id();
6156
6340
  _set_serialize_reason({
@@ -6165,7 +6349,7 @@ _template("T", (input) => {
6165
6349
  });
6166
6350
  _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
6167
6351
  });
6168
- _template("G", (input) => {
6352
+ _template("H", (input) => {
6169
6353
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
6170
6354
  const $scope0_id = _scope_id();
6171
6355
  _set_serialize_reason({
@@ -6180,7 +6364,7 @@ _template("G", (input) => {
6180
6364
  });
6181
6365
  _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
6182
6366
  });
6183
- _template("K", (input) => {
6367
+ _template("L", (input) => {
6184
6368
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
6185
6369
  const $scope0_id = _scope_id();
6186
6370
  _set_serialize_reason({
@@ -6195,7 +6379,7 @@ _template("K", (input) => {
6195
6379
  });
6196
6380
  _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
6197
6381
  });
6198
- _template("E", (input) => {
6382
+ _template("F", (input) => {
6199
6383
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
6200
6384
  const $scope0_id = _scope_id();
6201
6385
  _set_serialize_reason({
@@ -6214,28 +6398,28 @@ _template("E", (input) => {
6214
6398
  //#region src/tags/term.marko
6215
6399
  var REPEAT_DELAY = 400;
6216
6400
  var REPEAT_EVERY = 55;
6217
- var term_default = _template("v", (input) => {
6401
+ var term_default = _template("w", (input) => {
6218
6402
  const $scope0_reason = _scope_reason();
6219
6403
  _serialize_guard($scope0_reason, 4);
6220
6404
  _serialize_guard($scope0_reason, 0);
6221
- _serialize_guard($scope0_reason, 8);
6222
6405
  _serialize_guard($scope0_reason, 9);
6223
- const $si__input_sessions = _serialize_if($scope0_reason, 8);
6224
- _serialize_guard($scope0_reason, 2);
6225
6406
  _serialize_guard($scope0_reason, 10);
6226
- const $si__input_onRenameSession = _serialize_if($scope0_reason, 9);
6407
+ const $si__input_sessions = _serialize_if($scope0_reason, 9);
6408
+ _serialize_guard($scope0_reason, 1);
6409
+ _serialize_guard($scope0_reason, 6);
6410
+ const $si__input_onRenameSession = _serialize_if($scope0_reason, 10);
6227
6411
  _serialize_guard($scope0_reason, 11);
6228
6412
  const $si__input_agents = _serialize_if($scope0_reason, 11), $si__input_mode = _serialize_if($scope0_reason, 4), $si__input_agent__OR__input_sessionState = _serialize_if($scope0_reason, 0);
6229
6413
  _serialize_guard($scope0_reason, 3);
6230
- _serialize_guard($scope0_reason, 6);
6414
+ _serialize_guard($scope0_reason, 8);
6231
6415
  _serialize_guard($scope0_reason, 12);
6232
- const $si__input_sessionState = _serialize_if($scope0_reason, 5), $si__input_onCloseSession = _serialize_if($scope0_reason, 10), $si__input_sessionId = _serialize_if($scope0_reason, 7), $si__input_workspaceName = _serialize_if($scope0_reason, 12);
6416
+ const $si__input_sessionState = _serialize_if($scope0_reason, 5), $si__input_onCloseSession = _serialize_if($scope0_reason, 6), $si__input_sessionId = _serialize_if($scope0_reason, 7), $si__input_workspaceName = _serialize_if($scope0_reason, 12);
6233
6417
  const $scope0_id = _scope_id();
6234
- _hoist($scope0_id, "v20");
6418
+ _hoist($scope0_id, "w20");
6235
6419
  const $findOpen__closures = /* @__PURE__ */ new Set();
6236
6420
  const $findTick__closures = /* @__PURE__ */ new Set();
6237
- const $input_onRenameSession__closures = /* @__PURE__ */ new Set();
6238
6421
  const $input_onCloseSession__closures = /* @__PURE__ */ new Set();
6422
+ const $input_onRenameSession__closures = /* @__PURE__ */ new Set();
6239
6423
  const $input_sessionId__closures = /* @__PURE__ */ new Set();
6240
6424
  const $input_sessions__closures = /* @__PURE__ */ new Set();
6241
6425
  const $input_sessionState__closures = /* @__PURE__ */ new Set();
@@ -6244,6 +6428,7 @@ var term_default = _template("v", (input) => {
6244
6428
  const $thisAgent__closures = /* @__PURE__ */ new Set();
6245
6429
  const $input_workspaceName__closures = /* @__PURE__ */ new Set();
6246
6430
  let dead = false;
6431
+ let deadReason = "exited";
6247
6432
  let kb = false;
6248
6433
  let touch = false;
6249
6434
  let uploading = false;
@@ -6252,7 +6437,7 @@ var term_default = _template("v", (input) => {
6252
6437
  let findOpen = false;
6253
6438
  const $openChange = _resume((_new_findOpen) => {
6254
6439
  findOpen = _new_findOpen;
6255
- }, "v1", $scope0_id);
6440
+ }, "w1", $scope0_id);
6256
6441
  let findTick = 0;
6257
6442
  const ioBox = { current: null };
6258
6443
  const searchBox = {
@@ -6260,7 +6445,7 @@ var term_default = _template("v", (input) => {
6260
6445
  query: "",
6261
6446
  refreshTimer: 0
6262
6447
  };
6263
- const findFocusRef = { focus: _resume(function() {}, "v2") };
6448
+ const findFocusRef = { focus: _resume(function() {}, "w2") };
6264
6449
  const scheduleFindRefresh = _resume(() => {
6265
6450
  if (!searchBox.query.trim() || !searchBox.overlay) return;
6266
6451
  if (searchBox.refreshTimer) clearTimeout(searchBox.refreshTimer);
@@ -6268,7 +6453,7 @@ var term_default = _template("v", (input) => {
6268
6453
  searchBox.refreshTimer = 0;
6269
6454
  searchBox.overlay?.refresh();
6270
6455
  }, 32);
6271
- }, "v3", $scope0_id);
6456
+ }, "w3", $scope0_id);
6272
6457
  const runFind = _resume((query, dir) => {
6273
6458
  const overlay = searchBox.overlay;
6274
6459
  if (!overlay) return;
@@ -6282,7 +6467,7 @@ var term_default = _template("v", (input) => {
6282
6467
  return;
6283
6468
  }
6284
6469
  overlay.search(query, dir);
6285
- }, "v4", $scope0_id);
6470
+ }, "w4", $scope0_id);
6286
6471
  const clearFind = _resume(() => {
6287
6472
  if (searchBox.refreshTimer) {
6288
6473
  clearTimeout(searchBox.refreshTimer);
@@ -6290,7 +6475,7 @@ var term_default = _template("v", (input) => {
6290
6475
  }
6291
6476
  searchBox.query = "";
6292
6477
  searchBox.overlay?.clear();
6293
- }, "v5", $scope0_id);
6478
+ }, "w5", $scope0_id);
6294
6479
  const openFind = _resume(() => {
6295
6480
  if (kb) {
6296
6481
  kb = false;
@@ -6300,7 +6485,7 @@ var term_default = _template("v", (input) => {
6300
6485
  findOpen = true;
6301
6486
  findTick++;
6302
6487
  findFocusRef.focus();
6303
- }, "v6", $scope0_id);
6488
+ }, "w6", $scope0_id);
6304
6489
  const toggleFind = _resume(() => {
6305
6490
  if (findOpen) {
6306
6491
  findOpen = false;
@@ -6309,7 +6494,7 @@ var term_default = _template("v", (input) => {
6309
6494
  return;
6310
6495
  }
6311
6496
  openFind();
6312
- }, "v7", $scope0_id);
6497
+ }, "w7", $scope0_id);
6313
6498
  const onTermPage = input.mode == null || input.mode === "term";
6314
6499
  const canKeys = onTermPage || input.mode === "diff";
6315
6500
  const findLit = onTermPage ? findOpen : input.mode === "diff" && !!input.reviewFindOpen;
@@ -6320,7 +6505,7 @@ var term_default = _template("v", (input) => {
6320
6505
  return;
6321
6506
  }
6322
6507
  if (input.mode === "diff") input.onToggleReviewFind?.();
6323
- }, "v8", $scope0_id);
6508
+ }, "w8", $scope0_id);
6324
6509
  const thisAgent = activeAgent({
6325
6510
  agent: input.agent || "shell",
6326
6511
  state: input.sessionState
@@ -6332,7 +6517,7 @@ var term_default = _template("v", (input) => {
6332
6517
  copyFlashBox.timer = setTimeout(() => {
6333
6518
  copiedFlash = false;
6334
6519
  }, 1200);
6335
- }, "v9", $scope0_id);
6520
+ }, "w9", $scope0_id);
6336
6521
  const holdBox = { current: null };
6337
6522
  const startHold = _resume((seq) => {
6338
6523
  ((stopHold) => stopHold())(_hoist_read_error);
@@ -6342,7 +6527,7 @@ var term_default = _template("v", (input) => {
6342
6527
  state.repeat = setInterval(() => ioBox.current?.send(seq), REPEAT_EVERY);
6343
6528
  }, REPEAT_DELAY);
6344
6529
  holdBox.current = state;
6345
- }, "v10", $scope0_id);
6530
+ }, "w10", $scope0_id);
6346
6531
  const stopHold = _resume(() => {
6347
6532
  const hold = holdBox.current;
6348
6533
  if (hold) {
@@ -6350,7 +6535,7 @@ var term_default = _template("v", (input) => {
6350
6535
  clearInterval(hold.repeat);
6351
6536
  holdBox.current = null;
6352
6537
  }
6353
- }, "v11", $scope0_id);
6538
+ }, "w11", $scope0_id);
6354
6539
  const uploadAsset = _resume(async (file) => {
6355
6540
  if (!file) return;
6356
6541
  uploading = true;
@@ -6363,7 +6548,7 @@ var term_default = _template("v", (input) => {
6363
6548
  } finally {
6364
6549
  uploading = false;
6365
6550
  }
6366
- }, "v12", $scope0_id);
6551
+ }, "w12", $scope0_id);
6367
6552
  const handlePasted = _resume(async (clipboardData) => {
6368
6553
  const files = [...clipboardData?.files || []];
6369
6554
  for (const file of files) await uploadAsset(file);
@@ -6372,7 +6557,7 @@ var term_default = _template("v", (input) => {
6372
6557
  if (text) ioBox.current?.send(text);
6373
6558
  }
6374
6559
  trapOpen = false;
6375
- }, "v13", $scope0_id);
6560
+ }, "w13", $scope0_id);
6376
6561
  const pasteClipboard = _resume(async () => {
6377
6562
  if (!navigator.clipboard?.read) {
6378
6563
  trapOpen = true;
@@ -6392,11 +6577,11 @@ var term_default = _template("v", (input) => {
6392
6577
  } catch {
6393
6578
  trapOpen = true;
6394
6579
  }
6395
- }, "v14", $scope0_id);
6396
- _html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_dA")}><div${_attr_class("_dB")}></div>${_el_resume($scope0_id, "b")}`);
6580
+ }, "w14", $scope0_id);
6581
+ _html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_dq")}><div${_attr_class("_dr")}></div>${_el_resume($scope0_id, "b")}`);
6397
6582
  _if(() => {
6398
6583
  if (findOpen) {
6399
- const $scope11_id = _scope_id();
6584
+ const $scope12_id = _scope_id();
6400
6585
  _set_serialize_reason(2);
6401
6586
  const $childScope = _peek_scope_id();
6402
6587
  term_find_default({
@@ -6407,48 +6592,48 @@ var term_default = _template("v", (input) => {
6407
6592
  focusRef: findFocusRef,
6408
6593
  onSearch: _resume(function(q, dir) {
6409
6594
  runFind(q, dir);
6410
- }, "v15", $scope11_id),
6595
+ }, "w15", $scope12_id),
6411
6596
  onClear: _resume(function() {
6412
6597
  clearFind();
6413
6598
  ioBox.current?.setFindMode(false);
6414
- }, "v16", $scope11_id)
6599
+ }, "w16", $scope12_id)
6415
6600
  });
6416
- writeScope($scope11_id, { a: _existing_scope($childScope) });
6601
+ writeScope($scope12_id, { a: _existing_scope($childScope) });
6417
6602
  return 0;
6418
6603
  }
6419
6604
  }, $scope0_id, "c", 1, 1, 1, 0, 1);
6420
6605
  _if(() => {
6421
6606
  if (uploading) {
6422
- const $scope18_id = _scope_id();
6423
- _html(`<div${_attr_class("_dF")}>uploading…</div>`);
6424
- writeScope($scope18_id, {});
6607
+ const $scope19_id = _scope_id();
6608
+ _html(`<div${_attr_class("_dx")}>uploading…</div>`);
6609
+ writeScope($scope19_id, {});
6425
6610
  return 0;
6426
6611
  }
6427
6612
  }, $scope0_id, "d", 1, 1, 1, 0, 1);
6428
6613
  _if(() => {
6429
6614
  if (copiedFlash) {
6430
- const $scope19_id = _scope_id();
6431
- _html(`<div${_attr_class("_dE")}>Copied</div>`);
6432
- writeScope($scope19_id, {});
6615
+ const $scope20_id = _scope_id();
6616
+ _html(`<div${_attr_class("_dw")}>Copied</div>`);
6617
+ writeScope($scope20_id, {});
6433
6618
  return 0;
6434
6619
  }
6435
6620
  }, $scope0_id, "e", 1, 1, 1, 0, 1);
6436
6621
  _if(() => {}, $scope0_id, "f", 1, 1, 1, 0, 1);
6437
6622
  _if(() => {
6438
6623
  if (trapOpen) {
6439
- const $scope10_id = _scope_id();
6440
- _html(`<div${_attr_class("_dG")}><div${_attr_class("_dH")}><p${_attr_class("_ea")}>Long-press below and choose Paste</p><input placeholder="Paste here…">${_el_resume($scope10_id, "d")}<button${_attr_class("_h")}>Cancel</button>${_el_resume($scope10_id, "e")}</div>${_el_resume($scope10_id, "b")}</div>${_el_resume($scope10_id, "a")}`);
6441
- _script($scope10_id, "v23");
6442
- _script($scope10_id, "v24");
6443
- writeScope($scope10_id, {});
6624
+ const $scope11_id = _scope_id();
6625
+ _html(`<div${_attr_class("_dy")}><div${_attr_class("_dz")}><p${_attr_class("_d2")}>Long-press below and choose Paste</p><input placeholder="Paste here…">${_el_resume($scope11_id, "d")}<button${_attr_class("_i")}>Cancel</button>${_el_resume($scope11_id, "e")}</div>${_el_resume($scope11_id, "b")}</div>${_el_resume($scope11_id, "a")}`);
6626
+ _script($scope11_id, "w24");
6627
+ _script($scope11_id, "w25");
6628
+ writeScope($scope11_id, {});
6444
6629
  return 0;
6445
6630
  }
6446
6631
  }, $scope0_id, "g", 1, 1, 1, 0, 1);
6447
6632
  _html(`</div>${_el_resume($scope0_id, "a")}`);
6448
6633
  _if(() => {}, $scope0_id, "h", 1, 1, 1, 0, 1);
6449
- _script($scope0_id, "v39");
6450
- _script($scope0_id, "v40");
6451
- _script($scope0_id, "v41");
6634
+ _script($scope0_id, "w40");
6635
+ _script($scope0_id, "w41");
6636
+ _script($scope0_id, "w42");
6452
6637
  writeScope($scope0_id, {
6453
6638
  k: input.mode,
6454
6639
  l: input.reviewFindOpen,
@@ -6456,60 +6641,61 @@ var term_default = _template("v", (input) => {
6456
6641
  n: $si__input_sessionState && input.agent,
6457
6642
  o: input.sessionState,
6458
6643
  q: input.workspaceId,
6459
- r: input.onOpenNav,
6460
- s: input.onManage,
6461
- t: input.onExitReview,
6462
- u: input.onToggleDiff,
6463
- v: input.onNewSession,
6464
- w: input.onOpenTab,
6465
- x: input.sessionId,
6466
- y: input.sessions,
6467
- z: input.onRenameSession,
6468
- a0: input.onCloseSession,
6644
+ r: input.onCloseSession,
6645
+ s: input.sessionId,
6646
+ t: input.onOpenNav,
6647
+ u: input.onManage,
6648
+ v: input.onExitReview,
6649
+ w: input.onToggleDiff,
6650
+ x: input.onNewSession,
6651
+ y: input.onOpenTab,
6652
+ z: input.sessions,
6653
+ a0: input.onRenameSession,
6469
6654
  a1: input.agents,
6470
6655
  a2: input.workspaceName,
6471
6656
  a3: input.active,
6472
6657
  a4: dead,
6473
- a5: kb,
6474
- a6: touch,
6475
- a9: trapOpen,
6476
- aa: findOpen,
6477
- ac: $openChange,
6478
- ad: findTick,
6479
- af: ioBox.current,
6480
- ai: searchBox.query,
6481
- aj: searchBox.overlay,
6482
- ak: searchBox.refreshTimer,
6483
- am: findFocusRef,
6484
- ao: scheduleFindRefresh,
6485
- ap: runFind,
6486
- aq: clearFind,
6487
- ar: openFind,
6488
- at: toggleFind,
6489
- au: onTermPage,
6490
- ax: canKeys,
6491
- az: findLit,
6492
- b0: toggleSharedFind,
6493
- b1: thisAgent,
6494
- b3: copyFlashBox.timer,
6495
- b4: flashCopied,
6496
- b6: holdBox.current,
6497
- b8: startHold,
6498
- b9: stopHold,
6499
- ba: uploadAsset,
6500
- bd: handlePasted,
6501
- be: pasteClipboard,
6502
- br: $findOpen__closures,
6503
- bt: $findTick__closures,
6504
- bl: $si__input_onRenameSession && $input_onRenameSession__closures,
6505
- bm: $si__input_onCloseSession && $input_onCloseSession__closures,
6506
- bj: $si__input_sessionId && $input_sessionId__closures,
6507
- bk: $si__input_sessions && $input_sessions__closures,
6508
- bh: $si__input_sessionState && $input_sessionState__closures,
6509
- bn: $si__input_agents && $input_agents__closures,
6510
- by: $si__input_mode && $onTermPage__closures,
6511
- c1: $si__input_agent__OR__input_sessionState && $thisAgent__closures,
6512
- bo: $si__input_workspaceName && $input_workspaceName__closures
6658
+ a5: deadReason,
6659
+ a6: kb,
6660
+ a7: touch,
6661
+ aa: trapOpen,
6662
+ ab: findOpen,
6663
+ ad: $openChange,
6664
+ ae: findTick,
6665
+ ag: ioBox.current,
6666
+ aj: searchBox.query,
6667
+ ak: searchBox.overlay,
6668
+ al: searchBox.refreshTimer,
6669
+ an: findFocusRef,
6670
+ ap: scheduleFindRefresh,
6671
+ aq: runFind,
6672
+ ar: clearFind,
6673
+ as: openFind,
6674
+ au: toggleFind,
6675
+ av: onTermPage,
6676
+ ay: canKeys,
6677
+ b0: findLit,
6678
+ b1: toggleSharedFind,
6679
+ b2: thisAgent,
6680
+ b4: copyFlashBox.timer,
6681
+ b5: flashCopied,
6682
+ b7: holdBox.current,
6683
+ b9: startHold,
6684
+ ba: stopHold,
6685
+ bb: uploadAsset,
6686
+ be: handlePasted,
6687
+ bf: pasteClipboard,
6688
+ bt: $findOpen__closures,
6689
+ bv: $findTick__closures,
6690
+ bj: $si__input_onCloseSession && $input_onCloseSession__closures,
6691
+ bn: $si__input_onRenameSession && $input_onRenameSession__closures,
6692
+ bk: $si__input_sessionId && $input_sessionId__closures,
6693
+ bm: $si__input_sessions && $input_sessions__closures,
6694
+ bi: $si__input_sessionState && $input_sessionState__closures,
6695
+ bo: $si__input_agents && $input_agents__closures,
6696
+ c0: $si__input_mode && $onTermPage__closures,
6697
+ c3: $si__input_agent__OR__input_sessionState && $thisAgent__closures,
6698
+ bp: $si__input_workspaceName && $input_workspaceName__closures
6513
6699
  });
6514
6700
  _resume_branch($scope0_id);
6515
6701
  });
@@ -6517,7 +6703,7 @@ var term_default = _template("v", (input) => {
6517
6703
  //#region src/tags/work-view.marko
6518
6704
  var api$1;
6519
6705
  var isTransientApiError$1;
6520
- var work_view_default = _template("y", (input) => {
6706
+ var work_view_default = _template("z", (input) => {
6521
6707
  const $scope0_reason = _scope_reason(), $sg__input_agents = _serialize_guard($scope0_reason, 10), $sg__input_allWorkspaces = _serialize_guard($scope0_reason, 9), $sg__input_workspace = _serialize_guard($scope0_reason, 4), $si__input_workspace = _serialize_if($scope0_reason, 4), $si__input_active = _serialize_if($scope0_reason, 6), $si__input_agents = _serialize_if($scope0_reason, 10), $si__input_preferred = _serialize_if($scope0_reason, 7);
6522
6708
  const $scope0_id = _scope_id();
6523
6709
  const $error__closures = /* @__PURE__ */ new Set();
@@ -6542,15 +6728,15 @@ var work_view_default = _template("y", (input) => {
6542
6728
  let DiffView = null;
6543
6729
  const loadDiffView = _resume(() => {
6544
6730
  if (DiffView) return;
6545
- import("./_DR15xnsO.js").then((m) => {
6731
+ import("./_DIz1o5GR.js").then((m) => {
6546
6732
  DiffView = m.default;
6547
6733
  });
6548
- }, "y4", $scope0_id);
6734
+ }, "z4", $scope0_id);
6549
6735
  let manageMounted = false;
6550
6736
  let settingsMounted = false;
6551
6737
  let reviewFindOpen = false;
6552
6738
  let reviewFindTick = 0;
6553
- const reviewFindFocus = { focus: _resume(function() {}, "y0") };
6739
+ const reviewFindFocus = { focus: _resume(function() {}, "z0") };
6554
6740
  let focusPr = "";
6555
6741
  let focusNonce = 0;
6556
6742
  let error = null;
@@ -6562,30 +6748,30 @@ var work_view_default = _template("y", (input) => {
6562
6748
  loadDiffView();
6563
6749
  diffMounted = true;
6564
6750
  view = "diff";
6565
- }, "y5", $scope0_id);
6751
+ }, "z5", $scope0_id);
6566
6752
  const openManage = _resume(() => {
6567
6753
  manageMounted = true;
6568
6754
  view = "manage";
6569
- }, "y6", $scope0_id);
6755
+ }, "z6", $scope0_id);
6570
6756
  const openSettings = _resume(() => {
6571
6757
  settingsMounted = true;
6572
6758
  view = "settings";
6573
- }, "y7", $scope0_id);
6759
+ }, "z7", $scope0_id);
6574
6760
  const toggleSettings = _resume(() => {
6575
6761
  if (view === "settings") view = "term";
6576
6762
  else openSettings();
6577
- }, "y8", $scope0_id);
6763
+ }, "z8", $scope0_id);
6578
6764
  const toggleNav = _resume(() => {
6579
6765
  view = view === "nav" ? "term" : "nav";
6580
- }, "y9", $scope0_id);
6766
+ }, "z9", $scope0_id);
6581
6767
  const toggleManage = _resume(() => {
6582
6768
  if (view === "manage") view = "term";
6583
6769
  else openManage();
6584
- }, "y10", $scope0_id);
6770
+ }, "z10", $scope0_id);
6585
6771
  const toggleDiff = _resume(() => {
6586
6772
  if (view === "diff") view = "term";
6587
6773
  else openDiff();
6588
- }, "y11", $scope0_id);
6774
+ }, "z11", $scope0_id);
6589
6775
  const shownSessions = sessions ?? input.allStatus?.[ws.id]?.sessions ?? null;
6590
6776
  const curTab = (() => {
6591
6777
  if (tab && shownSessions?.some((s) => s.id === tab)) return tab;
@@ -6602,10 +6788,10 @@ var work_view_default = _template("y", (input) => {
6602
6788
  reviewFindOpen = true;
6603
6789
  reviewFindTick++;
6604
6790
  reviewFindFocus.focus();
6605
- }, "y12", $scope0_id);
6791
+ }, "z12", $scope0_id);
6606
6792
  const exitCreate = _resume(() => {
6607
6793
  if (view === "new") view = "term";
6608
- }, "y13", $scope0_id);
6794
+ }, "z13", $scope0_id);
6609
6795
  const createSession = _resume(async (agent, select) => {
6610
6796
  spawning = true;
6611
6797
  try {
@@ -6626,7 +6812,7 @@ var work_view_default = _template("y", (input) => {
6626
6812
  } finally {
6627
6813
  spawning = false;
6628
6814
  }
6629
- }, "y14", $scope0_id);
6815
+ }, "z14", $scope0_id);
6630
6816
  const loadMem = {
6631
6817
  wanted: false,
6632
6818
  run: void 0
@@ -6652,11 +6838,11 @@ var work_view_default = _template("y", (input) => {
6652
6838
  if (isTransientApiError$1(err)) return;
6653
6839
  error = String(err.message || err);
6654
6840
  }
6655
- }, "y15", $scope0_id);
6841
+ }, "z15", $scope0_id);
6656
6842
  const loadSessions = _resume((autoCreate) => {
6657
6843
  if (autoCreate) loadMem.wanted = true;
6658
6844
  return (loadMem.run ??= coalesce(loadBody))();
6659
- }, "y16", $scope0_id);
6845
+ }, "z16", $scope0_id);
6660
6846
  const closeSession = _resume(async (id) => {
6661
6847
  try {
6662
6848
  sessions = (sessions || []).filter((s) => s.id !== id);
@@ -6666,7 +6852,7 @@ var work_view_default = _template("y", (input) => {
6666
6852
  error = `Kill session failed: ${String(err.message || err)}`;
6667
6853
  loadSessions(false);
6668
6854
  }
6669
- }, "y17", $scope0_id);
6855
+ }, "z17", $scope0_id);
6670
6856
  const renameSession = _resume(async (id, title) => {
6671
6857
  title = title.trim();
6672
6858
  if (!title) return;
@@ -6679,7 +6865,7 @@ var work_view_default = _template("y", (input) => {
6679
6865
  headers: { "content-type": "application/json" },
6680
6866
  body: JSON.stringify({ title })
6681
6867
  });
6682
- }, "y18", $scope0_id);
6868
+ }, "z18", $scope0_id);
6683
6869
  const newSession = _resume(async (wsId, agent) => {
6684
6870
  if (wsId === ws.id) {
6685
6871
  const session = await createSession(agent, true);
@@ -6697,8 +6883,22 @@ var work_view_default = _template("y", (input) => {
6697
6883
  } catch (err) {
6698
6884
  error = String(err.message || err);
6699
6885
  }
6700
- }, "y19", $scope0_id);
6701
- _html(`<div${_attr_class(["_bu", { ["_bt"]: view === "nav" }])}><div${_attr_class("_bv")}>`);
6886
+ }, "z19", $scope0_id);
6887
+ const onKey = _resume((e) => {
6888
+ const target = e.target;
6889
+ const typing = !!target && !target.closest(".xterm") && (target.tagName === "INPUT" || target.tagName === "TEXTAREA" || target.tagName === "SELECT" || target.isContentEditable);
6890
+ if (e.key === "Escape" && view !== "term" && !document.querySelector("dialog[open]") && !(view === "diff" && reviewFindOpen) && !(typing && target.tagName !== "SELECT" && target.value)) {
6891
+ e.preventDefault();
6892
+ if (view === "new") exitCreate();
6893
+ else view = "term";
6894
+ return;
6895
+ }
6896
+ if ((e.metaKey || e.ctrlKey) && e.shiftKey && e.key.toLowerCase() === "d") {
6897
+ e.preventDefault();
6898
+ toggleDiff();
6899
+ }
6900
+ }, "z20", $scope0_id);
6901
+ _html(`<div${_attr_class(["_bS", { ["_bR"]: view === "nav" }])}><div${_attr_class("_bT")}>`);
6702
6902
  _set_serialize_reason({
6703
6903
  0: _serialize_guard($scope0_reason, 0),
6704
6904
  1: _serialize_guard($scope0_reason, 1),
@@ -6724,62 +6924,62 @@ var work_view_default = _template("y", (input) => {
6724
6924
  tab: curTab,
6725
6925
  tabChange: _resume(function(id) {
6726
6926
  tab = id;
6727
- }, "y20", $scope0_id),
6927
+ }, "z21", $scope0_id),
6728
6928
  view,
6729
6929
  viewChange: _resume((_new_view) => {
6730
6930
  view = _new_view;
6731
- }, "y21", $scope0_id),
6931
+ }, "z22", $scope0_id),
6732
6932
  allWorkspaces: input.allWorkspaces,
6733
6933
  allStatus: input.allStatus,
6734
6934
  agents: input.agents,
6735
6935
  onError: _resume(function(message) {
6736
6936
  error = message;
6737
- }, "y22", $scope0_id),
6937
+ }, "z23", $scope0_id),
6738
6938
  onSelectWorkspace: _resume(function(id) {
6739
6939
  exitCreate();
6740
6940
  input.onSelectWorkspace?.(id);
6741
- }, "y23", $scope0_id),
6941
+ }, "z24", $scope0_id),
6742
6942
  onOpenSession: _resume(function(wsId, sessionId) {
6743
6943
  exitCreate();
6744
6944
  input.onOpenSession?.(wsId, sessionId);
6745
- }, "y24", $scope0_id),
6945
+ }, "z25", $scope0_id),
6746
6946
  onManage: _resume(function(id) {
6747
6947
  exitCreate();
6748
6948
  if (!id || id === ws.id) toggleManage();
6749
6949
  else input.onManage?.(id);
6750
- }, "y25", $scope0_id),
6950
+ }, "z26", $scope0_id),
6751
6951
  onNew: _resume(function() {
6752
6952
  if (view === "new") exitCreate();
6753
6953
  else input.onNew?.();
6754
- }, "y26", $scope0_id),
6954
+ }, "z27", $scope0_id),
6755
6955
  onSettings: _resume(function() {
6756
6956
  exitCreate();
6757
6957
  toggleSettings();
6758
- }, "y27", $scope0_id),
6958
+ }, "z28", $scope0_id),
6759
6959
  onNewSession: _resume(function(wsId, agent) {
6760
6960
  exitCreate();
6761
6961
  newSession(wsId, agent);
6762
- }, "y28", $scope0_id),
6962
+ }, "z29", $scope0_id),
6763
6963
  onCloseSession: _resume(function(id) {
6764
6964
  closeSession(id);
6765
- }, "y29", $scope0_id),
6965
+ }, "z30", $scope0_id),
6766
6966
  onRenameSession: _resume(function(s, title) {
6767
6967
  renameSession(s.id, title);
6768
- }, "y30", $scope0_id),
6968
+ }, "z31", $scope0_id),
6769
6969
  onReviewOpened: _resume(function(pr) {
6770
6970
  exitCreate();
6771
6971
  openDiff(pr);
6772
- }, "y31", $scope0_id)
6972
+ }, "z32", $scope0_id)
6773
6973
  });
6774
- _html(`</div><div${_attr_class("_bw")}>`);
6974
+ _html(`</div><div${_attr_class("_bU")}>`);
6775
6975
  _if(() => {
6776
6976
  if (error) {
6777
6977
  const $scope8_id = _scope_id();
6778
6978
  toast_default({
6779
6979
  onDismiss: _resume(function() {
6780
6980
  error = null;
6781
- }, "y32", $scope8_id),
6782
- content: _content_resume("y50", () => {
6981
+ }, "z33", $scope8_id),
6982
+ content: _content_resume("z53", () => {
6783
6983
  _scope_reason();
6784
6984
  const $scope9_id = _scope_id();
6785
6985
  _html(`${_escape(error)}${_el_resume($scope9_id, "a")}`);
@@ -6807,16 +7007,16 @@ var work_view_default = _template("y", (input) => {
6807
7007
  findOpen: reviewFindOpen,
6808
7008
  findOpenChange: _resume((_new_reviewFindOpen) => {
6809
7009
  reviewFindOpen = _new_reviewFindOpen;
6810
- }, "y1", $scope1_id),
7010
+ }, "z1", $scope1_id),
6811
7011
  findTick: reviewFindTick,
6812
7012
  findFocusRef: reviewFindFocus,
6813
7013
  onSent: _resume(function(sessionId) {
6814
7014
  tab = sessionId;
6815
7015
  view = "term";
6816
- }, "y2", $scope1_id),
7016
+ }, "z2", $scope1_id),
6817
7017
  onExit: _resume(function() {
6818
7018
  view = "term";
6819
- }, "y3", $scope1_id)
7019
+ }, "z3", $scope1_id)
6820
7020
  });
6821
7021
  _show_end($scope1_id, "d", $show);
6822
7022
  writeScope($scope1_id, {});
@@ -6828,16 +7028,19 @@ var work_view_default = _template("y", (input) => {
6828
7028
  const $scope2_id = _scope_id();
6829
7029
  const $show2 = view === "manage";
6830
7030
  _show_start($show2, 1);
6831
- _set_serialize_reason(_serialize_guard($scope0_reason, 11));
7031
+ _set_serialize_reason({ 0: _serialize_guard($scope0_reason, 11) });
6832
7032
  const $childScope2 = _peek_scope_id();
6833
7033
  manage_workspace_default({
6834
7034
  workspace: ws,
6835
7035
  workspaceChange: _resume(function(next) {
6836
7036
  input.onWorkspaceChange?.(next);
6837
- }, "y33", $scope2_id),
7037
+ }, "z34", $scope2_id),
7038
+ onExit: _resume(function() {
7039
+ view = "term";
7040
+ }, "z35", $scope2_id),
6838
7041
  onDeleted: _resume(function() {
6839
7042
  input.onWorkspaceDeleted?.(ws.id);
6840
- }, "y34", $scope2_id)
7043
+ }, "z36", $scope2_id)
6841
7044
  });
6842
7045
  _show_end($scope2_id, "d", $show2);
6843
7046
  writeScope($scope2_id, { b: _serialize_if($scope0_reason, 2) && _existing_scope($childScope2) });
@@ -6851,22 +7054,25 @@ var work_view_default = _template("y", (input) => {
6851
7054
  _show_start($show3, 1);
6852
7055
  _set_serialize_reason({
6853
7056
  0: _serialize_guard($scope0_reason, 7),
6854
- 1: $sg__input_agents
7057
+ 2: $sg__input_agents
6855
7058
  });
6856
7059
  const $childScope3 = _peek_scope_id();
6857
7060
  settings_page_default({
6858
7061
  preferred: input.preferred,
6859
7062
  agents: input.agents,
7063
+ onExit: _resume(function() {
7064
+ view = "term";
7065
+ }, "z37", $scope3_id),
6860
7066
  setup: input.setup,
6861
7067
  setupChange: _resume(function(s) {
6862
7068
  input.onSetupChange?.(s);
6863
- }, "y35", $scope3_id),
7069
+ }, "z38", $scope3_id),
6864
7070
  preferredChange: _resume(function(agent) {
6865
7071
  input.onPreferredChange?.(agent);
6866
- }, "y36", $scope3_id),
7072
+ }, "z39", $scope3_id),
6867
7073
  agentsChange: _resume(function(agents) {
6868
7074
  input.onAgentsChange?.(agents);
6869
- }, "y37", $scope3_id)
7075
+ }, "z40", $scope3_id)
6870
7076
  });
6871
7077
  _show_end($scope3_id, "d", $show3);
6872
7078
  writeScope($scope3_id, { b: _serialize_if($scope0_reason, 3) && _existing_scope($childScope3) });
@@ -6874,13 +7080,13 @@ var work_view_default = _template("y", (input) => {
6874
7080
  }
6875
7081
  }, $scope0_id, "h");
6876
7082
  _if(() => {}, $scope0_id, "i");
6877
- _html(`<div${_attr_class(["_by", { ["_bx"]: view !== "term" }])}>`);
7083
+ _html(`<div${_attr_class(["_bW", { ["_bV"]: view !== "term" }])}>`);
6878
7084
  _if(() => {
6879
7085
  if (shownSessions) {
6880
7086
  const $scope5_id = _scope_id();
6881
7087
  _for_of(shownSessions, (s) => {
6882
7088
  const $scope6_id = _scope_id();
6883
- _html(`<div${_attr_class(["_bz", { ["_bA"]: s.id === curTab }])}>`);
7089
+ _html(`<div${_attr_class(["_bX", { ["_bY"]: s.id === curTab }])}>`);
6884
7090
  _set_serialize_reason({
6885
7091
  0: 1,
6886
7092
  1: 1,
@@ -6908,35 +7114,35 @@ var work_view_default = _template("y", (input) => {
6908
7114
  onNewSession: _resume(function(agent) {
6909
7115
  view = "term";
6910
7116
  newSession(ws.id, agent);
6911
- }, "y41", $scope6_id),
7117
+ }, "z44", $scope6_id),
6912
7118
  onOpenTab: _resume(function(id) {
6913
7119
  tab = id;
6914
7120
  view = "term";
6915
- }, "y42", $scope6_id),
7121
+ }, "z45", $scope6_id),
6916
7122
  onCloseSession: _resume(function(id) {
6917
7123
  closeSession(id);
6918
- }, "y43", $scope6_id),
7124
+ }, "z46", $scope6_id),
6919
7125
  onRenameSession: _resume(function(id, title) {
6920
7126
  renameSession(id, title);
6921
- }, "y44", $scope6_id),
7127
+ }, "z47", $scope6_id),
6922
7128
  active: input.active && view === "term" && s.id === curTab,
6923
7129
  mode: view,
6924
7130
  onToggleDiff: _resume(function() {
6925
7131
  toggleDiff();
6926
- }, "y45", $scope6_id),
7132
+ }, "z48", $scope6_id),
6927
7133
  onExitReview: _resume(function() {
6928
7134
  view = "term";
6929
- }, "y46", $scope6_id),
7135
+ }, "z49", $scope6_id),
6930
7136
  onOpenNav: _resume(function() {
6931
7137
  toggleNav();
6932
- }, "y47", $scope6_id),
7138
+ }, "z50", $scope6_id),
6933
7139
  onManage: _resume(function() {
6934
7140
  toggleManage();
6935
- }, "y48", $scope6_id),
7141
+ }, "z51", $scope6_id),
6936
7142
  reviewFindOpen,
6937
7143
  onToggleReviewFind: _resume(function() {
6938
7144
  toggleReviewFind();
6939
- }, "y49", $scope6_id)
7145
+ }, "z52", $scope6_id)
6940
7146
  });
6941
7147
  _html(`</div>${_el_resume($scope6_id, "a")}`);
6942
7148
  _subscribe($newSession2__closures, _subscribe($renameSession2__closures, _subscribe($closeSession2__closures, _subscribe($toggleReviewFind2__closures, _subscribe($curTab__closures, _subscribe($shownSessions__closures, _subscribe($si__input_workspace && $ws_name__closures, _subscribe($si__input_workspace && $ws_id__closures, _subscribe($reviewFindOpen__closures, _subscribe($view__closures, _subscribe($si__input_agents && $input_agents__closures, _subscribe($si__input_active && $input_active__closures, writeScope($scope6_id, {
@@ -6947,8 +7153,8 @@ var work_view_default = _template("y", (input) => {
6947
7153
  _if(() => {
6948
7154
  if (!shownSessions.length && view === "term") {
6949
7155
  const $scope7_id = _scope_id();
6950
- _html(`<div${_attr_class("_bC")}><p${_attr_class("_bD")}>No sessions in this workspace.</p><button${_attr_class(["_h", "_i"])}${_attr("disabled", spawning)}>${spawning ? "Starting…" : `Start ${_escape(`${input.preferred || "shell"}`)}`}${_el_resume($scope7_id, "d")}</button>${_el_resume($scope7_id, "c")}</div>`);
6951
- _script($scope7_id, "y51");
7156
+ _html(`<div${_attr_class("_bx")}><span>No sessions in this workspace.</span><button${_attr_class(["_i", "_j"])}${_attr("disabled", spawning)}>${spawning ? "Starting…" : `Start ${_escape(`${input.preferred || "shell"}`)}`}${_el_resume($scope7_id, "c")}</button>${_el_resume($scope7_id, "b")}</div>`);
7157
+ _script($scope7_id, "z54");
6952
7158
  _subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
6953
7159
  return 0;
6954
7160
  }
@@ -6957,19 +7163,19 @@ var work_view_default = _template("y", (input) => {
6957
7163
  return 0;
6958
7164
  } else {
6959
7165
  const $scope10_id = _scope_id();
6960
- _html(`<p${_attr_class("_bB")}>Loading sessions…</p>`);
7166
+ _html(`<p${_attr_class("_bx")}>Loading sessions…</p>`);
6961
7167
  writeScope($scope10_id, {});
6962
7168
  return 1;
6963
7169
  }
6964
7170
  }, $scope0_id, "j", 1, 1, 1, "</div>");
6965
7171
  _html(`</div></div>${_el_resume($scope0_id, "a")}`);
6966
- _script($scope0_id, "y52");
6967
- _script($scope0_id, "y53");
6968
- _script($scope0_id, "y54");
6969
- _script($scope0_id, "y55");
6970
- _script($scope0_id, "y56");
6971
- _script($scope0_id, "y57");
6972
- _script($scope0_id, "y58");
7172
+ _script($scope0_id, "z55");
7173
+ _script($scope0_id, "z56");
7174
+ _script($scope0_id, "z57");
7175
+ _script($scope0_id, "z58");
7176
+ _script($scope0_id, "z59");
7177
+ _script($scope0_id, "z60");
7178
+ _script($scope0_id, "z61");
6973
7179
  writeScope($scope0_id, {
6974
7180
  n: input.allStatus,
6975
7181
  o: input.active,
@@ -7020,30 +7226,31 @@ var work_view_default = _template("y", (input) => {
7020
7226
  be: createGate.open,
7021
7227
  bg: toggleReviewFind,
7022
7228
  bh: exitCreate,
7023
- bk: createSession,
7024
- bn: loadMem.wanted,
7025
- bp: loadMem.run,
7026
- bq: loadBody,
7027
- bs: loadSessions,
7028
- bv: closeSession,
7029
- bw: renameSession,
7030
- bx: newSession,
7229
+ bl: createSession,
7230
+ bo: loadMem.wanted,
7231
+ bq: loadMem.run,
7232
+ br: loadBody,
7233
+ bt: loadSessions,
7234
+ bw: closeSession,
7235
+ bx: renameSession,
7236
+ by: newSession,
7237
+ c0: onKey,
7031
7238
  c: _existing_scope($childScope),
7032
- ci: $error__closures,
7033
- bz: $si__input_active && $input_active__closures,
7034
- c4: $si__input_agents && $input_agents__closures,
7035
- cb: $view__closures,
7036
- cd: $reviewFindOpen__closures,
7037
- cl: $si__input_workspace && $ws_id__closures,
7038
- cn: $si__input_workspace && $ws_name__closures,
7039
- co: $shownSessions__closures,
7040
- cq: $curTab__closures,
7041
- cr: $toggleReviewFind2__closures,
7042
- ct: $closeSession2__closures,
7043
- cu: $renameSession2__closures,
7044
- cv: $newSession2__closures,
7045
- c0: $si__input_preferred && $input_preferred__closures,
7046
- cj: $spawning__closures
7239
+ cl: $error__closures,
7240
+ c2: $si__input_active && $input_active__closures,
7241
+ c7: $si__input_agents && $input_agents__closures,
7242
+ ce: $view__closures,
7243
+ cg: $reviewFindOpen__closures,
7244
+ co: $si__input_workspace && $ws_id__closures,
7245
+ cq: $si__input_workspace && $ws_name__closures,
7246
+ cr: $shownSessions__closures,
7247
+ ct: $curTab__closures,
7248
+ cu: $toggleReviewFind2__closures,
7249
+ cw: $closeSession2__closures,
7250
+ cx: $renameSession2__closures,
7251
+ cy: $newSession2__closures,
7252
+ c3: $si__input_preferred && $input_preferred__closures,
7253
+ cm: $spawning__closures
7047
7254
  });
7048
7255
  _resume_branch($scope0_id);
7049
7256
  });
@@ -7154,7 +7361,7 @@ var page_boot_default = _template("n", (input) => {
7154
7361
  if (!openIds.includes(id)) openIds = openIds.concat(id);
7155
7362
  prefs.setLastWorkspace(id);
7156
7363
  }, "n4", $scope0_id);
7157
- _html(`<div${_attr_class("_A")}>`);
7364
+ _html(`<div${_attr_class("_W")}>`);
7158
7365
  _if(() => {
7159
7366
  if (error) {
7160
7367
  const $scope5_id = _scope_id();
@@ -7162,7 +7369,7 @@ var page_boot_default = _template("n", (input) => {
7162
7369
  onDismiss: _resume(function() {
7163
7370
  error = null;
7164
7371
  }, "n5", $scope5_id),
7165
- content: _content_resume("n23", () => {
7372
+ content: _content_resume("n22", () => {
7166
7373
  _scope_reason();
7167
7374
  const $scope6_id = _scope_id();
7168
7375
  _html(`${_escape(error)}${_el_resume($scope6_id, "a")}`);
@@ -7177,8 +7384,8 @@ var page_boot_default = _template("n", (input) => {
7177
7384
  _if(() => {
7178
7385
  if (!selectedId && showSetup) {
7179
7386
  const $scope4_id = _scope_id();
7180
- _html(`<div${_attr_class("_B")}>`);
7181
- _set_serialize_reason(1);
7387
+ _html(`<div${_attr_class("_X")}>`);
7388
+ _set_serialize_reason(10);
7182
7389
  const $childScope = _peek_scope_id();
7183
7390
  settings_page_default({
7184
7391
  preferred: settings ? settings.preferredAgent : "shell",
@@ -7203,27 +7410,26 @@ var page_boot_default = _template("n", (input) => {
7203
7410
  };
7204
7411
  }, "n8", $scope4_id)
7205
7412
  });
7206
- _html(`<div${_attr_class("_C")}><button type=button${_attr_class("_h")}>Later — go to workspaces</button>${_el_resume($scope4_id, "d")}</div></div>`);
7207
- _script($scope4_id, "n24");
7413
+ _html(`<div${_attr_class("_Y")}><button type=button${_attr_class("_i")}>Later — go to workspaces</button>${_el_resume($scope4_id, "d")}</div></div>`);
7414
+ _script($scope4_id, "n23");
7208
7415
  writeScope($scope4_id, { b: _existing_scope($childScope) });
7209
7416
  return 0;
7210
7417
  } else if (!selectedId) {
7211
7418
  const $scope1_id = _scope_id();
7212
- _set_serialize_reason(1);
7419
+ _set_serialize_reason(2);
7213
7420
  const $childScope2 = _peek_scope_id();
7214
7421
  new_workspace_default({
7215
7422
  workspaces,
7216
- onExit: _resume(function() {}, "n9"),
7217
7423
  onCreate: _resume(function(ws) {
7218
7424
  if (!workspaces.some((w) => w.id === ws.id)) workspaces = [ws, ...workspaces];
7219
7425
  creating = false;
7220
7426
  openWorkspace(ws.id);
7221
- }, "n10", $scope1_id),
7427
+ }, "n9", $scope1_id),
7222
7428
  onRestore: _resume(function(next) {
7223
7429
  applyWorkspaces(workspaces.map((w) => w.id === next.id ? next : w));
7224
7430
  creating = false;
7225
7431
  openWorkspace(next.id);
7226
- }, "n11", $scope1_id)
7432
+ }, "n10", $scope1_id)
7227
7433
  });
7228
7434
  writeScope($scope1_id, { a: _existing_scope($childScope2) });
7229
7435
  return 1;
@@ -7250,51 +7456,51 @@ var page_boot_default = _template("n", (input) => {
7250
7456
  setup,
7251
7457
  onSetupChange: _resume(function(s) {
7252
7458
  setup = s;
7253
- }, "n12", $scope3_id),
7459
+ }, "n11", $scope3_id),
7254
7460
  onPreferredChange: _resume(function(agent) {
7255
7461
  if (!settings) return;
7256
7462
  settings = {
7257
7463
  ...settings,
7258
7464
  preferredAgent: agent
7259
7465
  };
7260
- }, "n13", $scope3_id),
7466
+ }, "n12", $scope3_id),
7261
7467
  onAgentsChange: _resume(function(agents) {
7262
7468
  if (!settings) return;
7263
7469
  settings = {
7264
7470
  ...settings,
7265
7471
  agents
7266
7472
  };
7267
- }, "n14", $scope3_id),
7473
+ }, "n13", $scope3_id),
7268
7474
  onSelectWorkspace: _resume(function(wsId) {
7269
7475
  openWorkspace(wsId);
7270
- }, "n15", $scope3_id),
7476
+ }, "n14", $scope3_id),
7271
7477
  onOpenSession: _resume(function(wsId, sessionId) {
7272
7478
  requestTab(wsId, sessionId);
7273
7479
  prefs.setWorkspaceTab(wsId, sessionId);
7274
7480
  openWorkspace(wsId);
7275
- }, "n16", $scope3_id),
7481
+ }, "n15", $scope3_id),
7276
7482
  onManage: _resume(function(wsId) {
7277
7483
  const id = wsId || ws.id;
7278
7484
  requestManage(id);
7279
7485
  openWorkspace(id);
7280
- }, "n17", $scope3_id),
7486
+ }, "n16", $scope3_id),
7281
7487
  onWorkspaceChange: _resume(function(next) {
7282
7488
  applyWorkspaces(workspaces.map((w) => w.id === next.id ? next : w));
7283
- }, "n18", $scope3_id),
7489
+ }, "n17", $scope3_id),
7284
7490
  onWorkspaceDeleted: _resume(function(id) {
7285
7491
  applyWorkspaces(workspaces.filter((w) => w.id !== id));
7286
- }, "n19", $scope3_id),
7492
+ }, "n18", $scope3_id),
7287
7493
  onNew: _resume(function() {
7288
7494
  creating = true;
7289
- }, "n20", $scope3_id),
7495
+ }, "n19", $scope3_id),
7290
7496
  onExitCreate: _resume(function() {
7291
7497
  creating = false;
7292
- }, "n21", $scope3_id),
7498
+ }, "n20", $scope3_id),
7293
7499
  onCreated: _resume(function(ws) {
7294
7500
  if (!workspaces.some((w) => w.id === ws.id)) workspaces = [ws, ...workspaces];
7295
7501
  creating = false;
7296
7502
  openWorkspace(ws.id);
7297
- }, "n22", $scope3_id)
7503
+ }, "n21", $scope3_id)
7298
7504
  });
7299
7505
  _show_end($scope3_id, "d", $show);
7300
7506
  _subscribe($openWorkspace2__closures, _subscribe($applyWorkspaces2__closures, _subscribe($setup2__closures, _subscribe($creating__closures, _subscribe($selectedId__closures, _subscribe($settings__closures, _subscribe($status__closures, _subscribe($workspaces__closures, writeScope($scope3_id, { b: _existing_scope($childScope3) })))))))));
@@ -7308,8 +7514,8 @@ var page_boot_default = _template("n", (input) => {
7308
7514
  });
7309
7515
  }, (id) => id, $scope0_id, "d");
7310
7516
  _html(`</div>${_el_resume($scope0_id, "a")}`);
7517
+ _script($scope0_id, "n24");
7311
7518
  _script($scope0_id, "n25");
7312
- _script($scope0_id, "n26");
7313
7519
  writeScope($scope0_id, {
7314
7520
  l: boot?.prefs,
7315
7521
  p: workspaces,
@@ -7368,7 +7574,7 @@ var _page_default = _template("b", (input) => {
7368
7574
  placeholder: attrTag({ content: _content_resume("b0", () => {
7369
7575
  _scope_reason();
7370
7576
  _scope_id();
7371
- _html(`<div${_attr_class("_b")}><span${_attr_class("_y")}></span>Loading workspaces…</div>`);
7577
+ _html(`<div${_attr_class("_b")}><span${_attr_class("_z")}></span>Loading workspaces…</div>`);
7372
7578
  }, $scope0_id) }),
7373
7579
  catch: attrTag({ content: _content_resume("b1", (err) => {
7374
7580
  const $scope3_reason = _scope_reason();
@@ -14567,12 +14773,14 @@ async function handleTermConnection(ws, req) {
14567
14773
  lastSend = Date.now();
14568
14774
  }
14569
14775
  };
14776
+ let exited = false;
14570
14777
  proc.onData((data) => {
14571
14778
  pending.push(data);
14572
14779
  if (flushTimer) return;
14573
14780
  flushTimer = setTimeout(flush, Date.now() - lastSend >= FLUSH_MS ? 1 : FLUSH_MS);
14574
14781
  });
14575
14782
  proc.onExit(() => {
14783
+ exited = true;
14576
14784
  tmux([
14577
14785
  "has-session",
14578
14786
  "-t",
@@ -14609,7 +14817,7 @@ async function handleTermConnection(ws, req) {
14609
14817
  ws.on("message", (data, isBinary) => {
14610
14818
  if (isBinary) {
14611
14819
  if (lastForced.get(session.id) !== `${dims[0]}x${dims[1]}`) forceWindowSize();
14612
- proc.write(data.toString());
14820
+ if (!exited) proc.write(data.toString());
14613
14821
  } else {
14614
14822
  const text = data.toString();
14615
14823
  const resize = parseResize(text);
@@ -14792,4 +15000,4 @@ server.listen(port, () => {
14792
15000
  //#endregion
14793
15001
  export {};
14794
15002
 
14795
- ;var __MARKO_MANIFEST__={"esfPH6H":{"block":[2,"stylesheet#/assets/index-CEw5rn6U.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/index-CEw5rn6U.css\"",">"],"defer":[2,"/assets/index-DW2ZKvBG.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/index-DW2ZKvBG.js\"","></script>"]}};
15003
+ ;var __MARKO_MANIFEST__={"esfPH6H":{"block":[2,"stylesheet#/assets/index-DlWmrprG.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/index-DlWmrprG.css\"",">"],"defer":[2,"/assets/index-CbawCDfW.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/index-CbawCDfW.js\"","></script>"]}};