@dylanpiercey/work 0.0.58 → 0.0.60

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 (238) hide show
  1. package/bin/work.mjs +10 -28
  2. package/dist/{_DvTZBSt5.js → _ChewfKaJ.js} +56 -56
  3. package/dist/{_Cb3KjoHw.js → _ClVMyLE5.js} +26 -3
  4. package/dist/index.mjs +323 -294
  5. package/dist/public/assets/{_CkGun6pW2.js → _42x5s11H2.js} +1 -1
  6. package/dist/public/assets/_42x5s11H2.js.br +0 -0
  7. package/dist/public/assets/{_DW30hPqj.js → _B1Muv8-Y.js} +44 -44
  8. package/dist/public/assets/_B1Muv8-Y.js.br +0 -0
  9. package/dist/public/assets/{_BX-7KyDA.js → _B2tNWK-Q.js} +1 -1
  10. package/dist/public/assets/_B2tNWK-Q.js.br +0 -0
  11. package/dist/public/assets/{_Cs_cvN1j2.js → _B3-VeQSO2.js} +1 -1
  12. package/dist/public/assets/_B3-VeQSO2.js.br +0 -0
  13. package/dist/public/assets/{_BbqCJvNQ2.js → _B7RPF2Ld2.js} +1 -1
  14. package/dist/public/assets/_B7RPF2Ld2.js.br +0 -0
  15. package/dist/public/assets/{_TYzcqd7s.js → _BJP0SbUA.js} +1 -1
  16. package/dist/public/assets/_BJP0SbUA.js.br +0 -0
  17. package/dist/public/assets/{_DbAtKX6v.js → _BLYyRpTe.js} +1 -1
  18. package/dist/public/assets/_BLYyRpTe.js.br +0 -0
  19. package/dist/public/assets/{_BWZ5PUEV.js → _BPIre04w.js} +1 -1
  20. package/dist/public/assets/_BPIre04w.js.br +4 -0
  21. package/dist/public/assets/{_DTQJWxJ3.js → _BQAtssSI.js} +1 -1
  22. package/dist/public/assets/_BQAtssSI.js.br +0 -0
  23. package/dist/public/assets/{__dsfQUPl.js → _BRMDNCsM.js} +1 -1
  24. package/dist/public/assets/_BRMDNCsM.js.br +0 -0
  25. package/dist/public/assets/{_Dcepauhq2.js → _BS-YaebF2.js} +1 -1
  26. package/dist/public/assets/_BS-YaebF2.js.br +0 -0
  27. package/dist/public/assets/{_BXMs216Y2.js → _BSGoXuh02.js} +1 -1
  28. package/dist/public/assets/_BSGoXuh02.js.br +0 -0
  29. package/dist/public/assets/{_DGChusXS.js → _BSzW3g1d.js} +1 -1
  30. package/dist/public/assets/_BSzW3g1d.js.br +0 -0
  31. package/dist/public/assets/{_CABt3f9f2.js → _BYrXO5Dy2.js} +1 -1
  32. package/dist/public/assets/_BYrXO5Dy2.js.br +0 -0
  33. package/dist/public/assets/{_DSCzozlR2.js → _BZWHHLk02.js} +1 -1
  34. package/dist/public/assets/_BZWHHLk02.js.br +0 -0
  35. package/dist/public/assets/{_DYoRFUu32.js → _BbMqXFsD2.js} +1 -1
  36. package/dist/public/assets/_BbMqXFsD2.js.br +0 -0
  37. package/dist/public/assets/{_C7rg8vAk2.js → _BcYb7jmc2.js} +1 -1
  38. package/dist/public/assets/_BcYb7jmc2.js.br +0 -0
  39. package/dist/public/assets/{_2eGBqq7u.js → _BdcrknAf.js} +1 -1
  40. package/dist/public/assets/_BdcrknAf.js.br +0 -0
  41. package/dist/public/assets/{_DHQA_xFp2.js → _Blr2G5VU2.js} +1 -1
  42. package/dist/public/assets/_Blr2G5VU2.js.br +0 -0
  43. package/dist/public/assets/{_B1vDwe3h.js → _Blwm7iuJ.js} +1 -1
  44. package/dist/public/assets/_Blwm7iuJ.js.br +0 -0
  45. package/dist/public/assets/{_CTObmQlY.js → _BnXEI9qo.js} +1 -1
  46. package/dist/public/assets/_BnXEI9qo.js.br +0 -0
  47. package/dist/public/assets/{_CnQ1qTVp.js → _BpaY9jer.js} +1 -1
  48. package/dist/public/assets/_BpaY9jer.js.br +0 -0
  49. package/dist/public/assets/{_4nL2uQpg.js → _BzO7NAJi.js} +1 -1
  50. package/dist/public/assets/_BzO7NAJi.js.br +0 -0
  51. package/dist/public/assets/{_Donn4ZV3.js → _BzvuTyae.js} +1 -1
  52. package/dist/public/assets/_BzvuTyae.js.br +0 -0
  53. package/dist/public/assets/{_D_Ht0sHB.js → _C0Z-HVyc.js} +1 -1
  54. package/dist/public/assets/_C0Z-HVyc.js.br +0 -0
  55. package/dist/public/assets/{_CV_Ae5Rk.js → _C1ArFVEP.js} +1 -1
  56. package/dist/public/assets/_C1ArFVEP.js.br +0 -0
  57. package/dist/public/assets/{_BEiHICL92.js → _C2cS7p242.js} +1 -1
  58. package/dist/public/assets/_C2cS7p242.js.br +0 -0
  59. package/dist/public/assets/{_xriTRTEq2.js → _C3hrwY6C2.js} +1 -1
  60. package/dist/public/assets/_C3hrwY6C2.js.br +0 -0
  61. package/dist/public/assets/{_D67E_AcU2.js → _C4a9EXfX2.js} +1 -1
  62. package/dist/public/assets/_C4a9EXfX2.js.br +0 -0
  63. package/dist/public/assets/{_De-u8h72.js → _C5AseieR.js} +1 -1
  64. package/dist/public/assets/_C5AseieR.js.br +0 -0
  65. package/dist/public/assets/{_uKbtpQux.js → _CChX5EZ7.js} +1 -1
  66. package/dist/public/assets/_CChX5EZ7.js.br +0 -0
  67. package/dist/public/assets/{_D5QR-lwA2.js → _CLiDNUtB2.js} +1 -1
  68. package/dist/public/assets/_CLiDNUtB2.js.br +0 -0
  69. package/dist/public/assets/{_Gc8cRUIR.js → _CNew2Kbs.js} +1 -1
  70. package/dist/public/assets/_CNew2Kbs.js.br +0 -0
  71. package/dist/public/assets/{_FcsxOYFa.js → _CSallSJG.js} +1 -1
  72. package/dist/public/assets/_CSallSJG.js.br +0 -0
  73. package/dist/public/assets/{_CUrj0V6l2.js → _CSsiYrRQ2.js} +1 -1
  74. package/dist/public/assets/_CSsiYrRQ2.js.br +0 -0
  75. package/dist/public/assets/{_GT3_DJs7.js → _CV6cTcz8.js} +1 -1
  76. package/dist/public/assets/_CV6cTcz8.js.br +0 -0
  77. package/dist/public/assets/{_C16-D_Ch2.js → _CWei98x02.js} +1 -1
  78. package/dist/public/assets/_CWei98x02.js.br +0 -0
  79. package/dist/public/assets/{_CoSL1kZW2.js → _CZgG2kDY2.js} +1 -1
  80. package/dist/public/assets/_CZgG2kDY2.js.br +0 -0
  81. package/dist/public/assets/{_DdkVC_L3.js → _CaekXjJU.js} +1 -1
  82. package/dist/public/assets/_CaekXjJU.js.br +0 -0
  83. package/dist/public/assets/{_Bb3yoWYL.js → _CcHz4ajH.js} +1 -1
  84. package/dist/public/assets/_CcHz4ajH.js.br +0 -0
  85. package/dist/public/assets/{_h97mmeY5.js → _CgqUZdZA.js} +1 -1
  86. package/dist/public/assets/_CgqUZdZA.js.br +0 -0
  87. package/dist/public/assets/{_C5UB-NsT.js → _Ch-Ac6NX.js} +1 -1
  88. package/dist/public/assets/{_BsqNUn4o.js → _Chzm4pk_.js} +1 -1
  89. package/dist/public/assets/_Chzm4pk_.js.br +0 -0
  90. package/dist/public/assets/{_BUbGUBWq.js → _CjAQ1KCh.js} +1 -1
  91. package/dist/public/assets/_CjAQ1KCh.js.br +0 -0
  92. package/dist/public/assets/{_BPUzMj1d2.js → _CqxlXMkX2.js} +1 -1
  93. package/dist/public/assets/{_BsIllTK-.js → _CsJ1M8hH.js} +1 -1
  94. package/dist/public/assets/_CsJ1M8hH.js.br +0 -0
  95. package/dist/public/assets/{_BX_wL0YE.js → _CstLsPiV.js} +1 -1
  96. package/dist/public/assets/_CstLsPiV.js.br +0 -0
  97. package/dist/public/assets/{_CxKhvkgU.js → _CtEn0wfF.js} +1 -1
  98. package/dist/public/assets/_CtEn0wfF.js.br +0 -0
  99. package/dist/public/assets/{_Dylxmxf9.js → _CtTl8f7P.js} +1 -1
  100. package/dist/public/assets/_CtTl8f7P.js.br +0 -0
  101. package/dist/public/assets/{_CogE7pQW.js → _CtcDduFc.js} +1 -1
  102. package/dist/public/assets/_CtcDduFc.js.br +0 -0
  103. package/dist/public/assets/{_rz4NzBjK.js → _CyZOsK7a.js} +1 -1
  104. package/dist/public/assets/_CyZOsK7a.js.br +0 -0
  105. package/dist/public/assets/{_DyraSGWg.js → _DBV_h12q.js} +1 -1
  106. package/dist/public/assets/_DBV_h12q.js.br +0 -0
  107. package/dist/public/assets/{_Cw2Yp_cn2.js → _DICJiWRS2.js} +1 -1
  108. package/dist/public/assets/_DICJiWRS2.js.br +0 -0
  109. package/dist/public/assets/{_BDLl6zCb.js → _DLcRnroj.js} +1 -1
  110. package/dist/public/assets/_DLcRnroj.js.br +0 -0
  111. package/dist/public/assets/{_DuBgsDGT.js → _DPHZ6DKx.js} +1 -1
  112. package/dist/public/assets/_DPHZ6DKx.js.br +0 -0
  113. package/dist/public/assets/{_aTBAqWUi2.js → _DYaK87nx2.js} +1 -1
  114. package/dist/public/assets/_DYaK87nx2.js.br +0 -0
  115. package/dist/public/assets/{_FrhVGlkX2.js → _DecAo0iu2.js} +1 -1
  116. package/dist/public/assets/_DecAo0iu2.js.br +0 -0
  117. package/dist/public/assets/{_Bcfy36362.js → _DhH0F8Zn2.js} +1 -1
  118. package/dist/public/assets/{_BROdi7Gp.js → _DhNL-76d.js} +1 -1
  119. package/dist/public/assets/_DhNL-76d.js.br +0 -0
  120. package/dist/public/assets/{_BWEYGWEd.js → _DimnOG4y.js} +1 -1
  121. package/dist/public/assets/_DimnOG4y.js.br +0 -0
  122. package/dist/public/assets/{_BcxfZRD_.js → _DkfT40OE.js} +1 -1
  123. package/dist/public/assets/_DkfT40OE.js.br +0 -0
  124. package/dist/public/assets/{_vooPnW75.js → _DnaeKZ2S.js} +1 -1
  125. package/dist/public/assets/_DnaeKZ2S.js.br +0 -0
  126. package/dist/public/assets/{_DgowXRep.js → _DrlSH3bL.js} +1 -1
  127. package/dist/public/assets/_DrlSH3bL.js.br +0 -0
  128. package/dist/public/assets/{_BJsj50u-.js → _Dwxu4g1O.js} +1 -1
  129. package/dist/public/assets/_Dwxu4g1O.js.br +0 -0
  130. package/dist/public/assets/{_WO60AwgK2.js → _IRZfmIpy2.js} +1 -1
  131. package/dist/public/assets/_IRZfmIpy2.js.br +0 -0
  132. package/dist/public/assets/{_DEBVsO__.js → _Kp0f82GC.js} +1 -1
  133. package/dist/public/assets/_Kp0f82GC.js.br +0 -0
  134. package/dist/public/assets/{_D3ekmaa_.js → _P2ZXyuJW.js} +1 -1
  135. package/dist/public/assets/_P2ZXyuJW.js.br +0 -0
  136. package/dist/public/assets/{_Vhemgosw2.js → _UbPz401r2.js} +1 -1
  137. package/dist/public/assets/_UbPz401r2.js.br +0 -0
  138. package/dist/public/assets/{_ok38vxPs.js → _Uip1nPxb.js} +1 -1
  139. package/dist/public/assets/_Uip1nPxb.js.br +0 -0
  140. package/dist/public/assets/{_CR2XV8hm.js → _VNMl-psc.js} +1 -1
  141. package/dist/public/assets/_VNMl-psc.js.br +0 -0
  142. package/dist/public/assets/{_2enE2mXk.js → _cJ8Aa7n2.js} +1 -1
  143. package/dist/public/assets/_cJ8Aa7n2.js.br +0 -0
  144. package/dist/public/assets/{_rYS8Jg7q.js → _iebfhv5g.js} +1 -1
  145. package/dist/public/assets/_iebfhv5g.js.br +0 -0
  146. package/dist/public/assets/{_eHliiA8e.js → _lXuBRT2E.js} +1 -1
  147. package/dist/public/assets/_lXuBRT2E.js.br +0 -0
  148. package/dist/public/assets/{_CwmnUEmm.js → _lYKYmM3J.js} +1 -1
  149. package/dist/public/assets/_lYKYmM3J.js.br +0 -0
  150. package/dist/public/assets/{_sMuZrVfM.js → _oPgm8NHr.js} +1 -1
  151. package/dist/public/assets/_oPgm8NHr.js.br +0 -0
  152. package/dist/public/assets/diff-view-ftFkEP29.css +1 -0
  153. package/dist/public/assets/diff-view-ftFkEP29.css.br +0 -0
  154. package/dist/public/assets/{index-CMhO9RSz.js → index-BlSd7rYn.js} +20 -20
  155. package/dist/public/assets/index-BlSd7rYn.js.br +0 -0
  156. package/dist/public/assets/index-D1yXf_HO.css +1 -0
  157. package/dist/public/assets/index-D1yXf_HO.css.br +0 -0
  158. package/install.sh +1 -3
  159. package/lib/setup/install.d.mts +1 -0
  160. package/lib/setup/install.mjs +6 -0
  161. package/package.json +1 -1
  162. package/dist/public/assets/_2eGBqq7u.js.br +0 -0
  163. package/dist/public/assets/_2enE2mXk.js.br +0 -0
  164. package/dist/public/assets/_4nL2uQpg.js.br +0 -0
  165. package/dist/public/assets/_B1vDwe3h.js.br +0 -0
  166. package/dist/public/assets/_BDLl6zCb.js.br +0 -0
  167. package/dist/public/assets/_BEiHICL92.js.br +0 -0
  168. package/dist/public/assets/_BJsj50u-.js.br +0 -0
  169. package/dist/public/assets/_BROdi7Gp.js.br +0 -0
  170. package/dist/public/assets/_BUbGUBWq.js.br +0 -0
  171. package/dist/public/assets/_BWEYGWEd.js.br +0 -0
  172. package/dist/public/assets/_BWZ5PUEV.js.br +0 -0
  173. package/dist/public/assets/_BX-7KyDA.js.br +0 -0
  174. package/dist/public/assets/_BXMs216Y2.js.br +0 -0
  175. package/dist/public/assets/_BX_wL0YE.js.br +0 -0
  176. package/dist/public/assets/_Bb3yoWYL.js.br +0 -0
  177. package/dist/public/assets/_BbqCJvNQ2.js.br +0 -0
  178. package/dist/public/assets/_BcxfZRD_.js.br +0 -0
  179. package/dist/public/assets/_BsIllTK-.js.br +0 -0
  180. package/dist/public/assets/_BsqNUn4o.js.br +0 -0
  181. package/dist/public/assets/_C16-D_Ch2.js.br +0 -0
  182. package/dist/public/assets/_C7rg8vAk2.js.br +0 -0
  183. package/dist/public/assets/_CABt3f9f2.js.br +0 -0
  184. package/dist/public/assets/_CR2XV8hm.js.br +0 -0
  185. package/dist/public/assets/_CTObmQlY.js.br +0 -0
  186. package/dist/public/assets/_CUrj0V6l2.js.br +0 -0
  187. package/dist/public/assets/_CV_Ae5Rk.js.br +0 -0
  188. package/dist/public/assets/_CkGun6pW2.js.br +0 -0
  189. package/dist/public/assets/_CnQ1qTVp.js.br +0 -0
  190. package/dist/public/assets/_CoSL1kZW2.js.br +0 -0
  191. package/dist/public/assets/_CogE7pQW.js.br +0 -0
  192. package/dist/public/assets/_Cs_cvN1j2.js.br +0 -0
  193. package/dist/public/assets/_Cw2Yp_cn2.js.br +0 -0
  194. package/dist/public/assets/_CwmnUEmm.js.br +0 -0
  195. package/dist/public/assets/_CxKhvkgU.js.br +0 -0
  196. package/dist/public/assets/_D3ekmaa_.js.br +0 -0
  197. package/dist/public/assets/_D5QR-lwA2.js.br +0 -0
  198. package/dist/public/assets/_D67E_AcU2.js.br +0 -0
  199. package/dist/public/assets/_DEBVsO__.js.br +0 -0
  200. package/dist/public/assets/_DGChusXS.js.br +0 -0
  201. package/dist/public/assets/_DHQA_xFp2.js.br +0 -0
  202. package/dist/public/assets/_DSCzozlR2.js.br +0 -0
  203. package/dist/public/assets/_DTQJWxJ3.js.br +0 -0
  204. package/dist/public/assets/_DW30hPqj.js.br +0 -0
  205. package/dist/public/assets/_DYoRFUu32.js.br +0 -0
  206. package/dist/public/assets/_D_Ht0sHB.js.br +0 -0
  207. package/dist/public/assets/_DbAtKX6v.js.br +0 -0
  208. package/dist/public/assets/_Dcepauhq2.js.br +0 -0
  209. package/dist/public/assets/_DdkVC_L3.js.br +0 -0
  210. package/dist/public/assets/_De-u8h72.js.br +0 -0
  211. package/dist/public/assets/_DgowXRep.js.br +0 -0
  212. package/dist/public/assets/_Donn4ZV3.js.br +0 -0
  213. package/dist/public/assets/_DuBgsDGT.js.br +0 -0
  214. package/dist/public/assets/_Dylxmxf9.js.br +0 -0
  215. package/dist/public/assets/_DyraSGWg.js.br +0 -0
  216. package/dist/public/assets/_FcsxOYFa.js.br +0 -0
  217. package/dist/public/assets/_FrhVGlkX2.js.br +0 -0
  218. package/dist/public/assets/_GT3_DJs7.js.br +0 -0
  219. package/dist/public/assets/_Gc8cRUIR.js.br +0 -0
  220. package/dist/public/assets/_TYzcqd7s.js.br +0 -0
  221. package/dist/public/assets/_Vhemgosw2.js.br +0 -0
  222. package/dist/public/assets/_WO60AwgK2.js.br +0 -0
  223. package/dist/public/assets/__dsfQUPl.js.br +0 -0
  224. package/dist/public/assets/_aTBAqWUi2.js.br +0 -0
  225. package/dist/public/assets/_eHliiA8e.js.br +0 -0
  226. package/dist/public/assets/_h97mmeY5.js.br +0 -0
  227. package/dist/public/assets/_ok38vxPs.js.br +0 -0
  228. package/dist/public/assets/_rYS8Jg7q.js.br +0 -0
  229. package/dist/public/assets/_rz4NzBjK.js.br +0 -0
  230. package/dist/public/assets/_sMuZrVfM.js.br +0 -3
  231. package/dist/public/assets/_uKbtpQux.js.br +0 -0
  232. package/dist/public/assets/_vooPnW75.js.br +0 -0
  233. package/dist/public/assets/_xriTRTEq2.js.br +0 -0
  234. package/dist/public/assets/diff-view-C1EWWWXL.css +0 -1
  235. package/dist/public/assets/diff-view-C1EWWWXL.css.br +0 -0
  236. package/dist/public/assets/index-CMhO9RSz.js.br +0 -0
  237. package/dist/public/assets/index-I2jhJMJc.css +0 -1
  238. package/dist/public/assets/index-I2jhJMJc.css.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 "./_BejZlkF2.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 "./_Cb3KjoHw.js";
3
+ import { $ as _hoist, A as tone, B as _attrs, C as btnSm, Ct as attrTag, D as inputLg, E as iconBtnXs, F as _attr_input_value, G as _dynamic_tag, H as _await, I as _attr_option_value, J as _el_resume, L as _attr_or, M as _attr, N as _attr_class, O as metaTrunc, Q as _for_of, R as _attr_select_value, S as btnLg, St as _var, T as iconBtnRow, Tt as writeScope, U as _content, V as _attrs_partial, W as _content_resume, X as _existing_scope, Y as _escape, Z as _flush_head, _ as sectionCount$1, _t as _subscribe, at as _resume, b as repoWebUrl$1, bt as _trailers, c as sideNavOpen, ct as _scope_reason, d as rankRepos, dt as _sep, et as _hoist_read_error, f as icon_back_default, ft as _serialize_guard, g as row, gt as _show_start, h as iconBtn$2, ht as _show_end, i as icon_sidebar_default, it as _peek_scope_id, j as $global, k as phase, l as workspaceTab, lt as _scope_with_id, m as icon_base_default, mt as _set_serialize_reason, n as findIconBtn, nt as _id, ot as _resume_branch, p as icon_refresh_default, pt as _serialize_if, q as _el_read_error, r as findInput, rt as _if, s as setWorkspaceTab, st as _scope_id, tt as _html, ut as _script, v as toast_default, vt as _template, wt as withPageAssets, x as setPrimaryHost, xt as _try, y as repoLabel, yt as _to_text, z as _attr_style } from "./_ClVMyLE5.js";
4
4
  import fs from "node:fs";
5
5
  import { createServer } from "node:http";
6
6
  import path from "node:path";
@@ -1410,12 +1410,12 @@ function splitRepo(fullName) {
1410
1410
  function joinRepo(host, name) {
1411
1411
  return host === DEFAULT_HOST ? name : `${host}/${name}`;
1412
1412
  }
1413
- function repoWebUrl$1(fullName) {
1413
+ function repoWebUrl(fullName) {
1414
1414
  const { host, name } = splitRepo(fullName);
1415
1415
  return `https://${host}/${name}`;
1416
1416
  }
1417
1417
  function cloneUrl(fullName) {
1418
- return `${repoWebUrl$1(fullName)}.git`;
1418
+ return `${repoWebUrl(fullName)}.git`;
1419
1419
  }
1420
1420
  /** Enterprise hosts the user added in Settings (persisted). */
1421
1421
  function addedHosts() {
@@ -2795,6 +2795,19 @@ async function authGithub(host, { interactive = false, ...opts } = {}) {
2795
2795
  }
2796
2796
  });
2797
2797
  }
2798
+ /** Sign out of a GitHub host (drops gh's token; the host stays listed). */
2799
+ async function logoutGithub(host, opts = {}) {
2800
+ if (!which("gh")) throw new Error("gh is not installed");
2801
+ return runStreaming("gh", [
2802
+ "auth",
2803
+ "logout",
2804
+ "--hostname",
2805
+ host
2806
+ ], {
2807
+ ...opts,
2808
+ env: { GH_PROMPT_DISABLED: "1" }
2809
+ });
2810
+ }
2798
2811
  //#endregion
2799
2812
  //#region src/server/setup.ts
2800
2813
  /** Server side of machine setup: the shared lib/setup probe + installers,
@@ -2916,7 +2929,7 @@ function withLock(key, fn) {
2916
2929
  */
2917
2930
  async function runSetupAction(id, action, opts = {}) {
2918
2931
  const log = (line) => progress$1(line);
2919
- const lockKey = action === "auth" ? `auth:${id}` : "mise";
2932
+ const lockKey = action === "auth" || action === "logout" ? `auth:${id}` : "mise";
2920
2933
  await withProgressOp(`setup:${id}`, () => withLock(lockKey, async () => {
2921
2934
  if (action === "auth") {
2922
2935
  await authGithub(id, { log });
@@ -2924,6 +2937,11 @@ async function runSetupAction(id, action, opts = {}) {
2924
2937
  await ensureGitCredentials(id);
2925
2938
  return;
2926
2939
  }
2940
+ if (action === "logout") {
2941
+ await logoutGithub(id, { log });
2942
+ forgetToken(id);
2943
+ return;
2944
+ }
2927
2945
  if (id === "mise") {
2928
2946
  if (action !== "install") throw httpError(400, `${action} is not supported for mise`);
2929
2947
  await installMise({ log });
@@ -3106,7 +3124,7 @@ function agentFromCommand(command) {
3106
3124
  //#region src/tags/settings-page.css.ts
3107
3125
  var content$2 = "_bZ _bd _be";
3108
3126
  var agentGrid = "_b3 _bo";
3109
- var toolGrid = "_cb _bo";
3127
+ var toolGrid = "_cc _bo";
3110
3128
  //#endregion
3111
3129
  //#region src/tags/page-head.marko
3112
3130
  var page_head_default = _template("o", (input) => {
@@ -3116,7 +3134,7 @@ var page_head_default = _template("o", (input) => {
3116
3134
  _if(() => {
3117
3135
  if (input.onBack) {
3118
3136
  const $scope1_id = _scope_id();
3119
- _html(`<button${_attr_class([iconBtnRow, "_ck"])}${_attr_or("title", input.backTitle, " title=\"Back — Esc\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
3137
+ _html(`<button${_attr_class([iconBtnRow, "_cl"])}${_attr_or("title", input.backTitle, " title=\"Back — Esc\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
3120
3138
  icon_back_default({ size: 16 });
3121
3139
  _html(`</button>${_el_resume($scope1_id, "a")}`);
3122
3140
  _script($scope1_id, "o0");
@@ -3213,7 +3231,7 @@ var icon_agent_default = _template("A", (input) => {
3213
3231
  n: $badge__closures
3214
3232
  });
3215
3233
  });
3216
- var usageNote = "_eC _M";
3234
+ var usageNote = "_eD _M";
3217
3235
  //#endregion
3218
3236
  //#region src/tags/usage-meters.marko
3219
3237
  function duration(ms) {
@@ -3237,19 +3255,19 @@ var usage_meters_default = _template("y", (input) => {
3237
3255
  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);
3238
3256
  const $scope0_id = _scope_id();
3239
3257
  const agent = input.agent;
3240
- _html(`<div${_attr_class(["_ew", { ["_ex"]: input.hideName }])}><div${_attr_class("_ey")}>`);
3258
+ _html(`<div${_attr_class(["_ex", { ["_ey"]: input.hideName }])}><div${_attr_class("_ez")}>`);
3241
3259
  _if(() => {
3242
3260
  if (!input.hideName) {
3243
3261
  const $scope1_id = _scope_id();
3244
- _html(`<strong${_attr_class("_eR")}>${_escape(agent.agent)}${_el_resume($scope1_id, "b", $sg__input_agent)}</strong>`);
3262
+ _html(`<strong${_attr_class("_eS")}>${_escape(agent.agent)}${_el_resume($scope1_id, "b", $sg__input_agent)}</strong>`);
3245
3263
  $si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
3246
3264
  return 0;
3247
3265
  }
3248
3266
  }, $scope0_id, "c", $sg__input_agent__OR__input_hideName, $sg__input_hideName, $sg__input_agent__OR__input_hideName, 0, 1);
3249
3267
  _if(() => {
3250
- if (agent.plan) {
3268
+ if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
3251
3269
  const $scope2_id = _scope_id();
3252
- _html(`<span${_attr_class("_ez")}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope2_id, "b", $sg__input_agent)}</span>`);
3270
+ _html(`<span${_attr_class("_eA")}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope2_id, "b", $sg__input_agent)}</span>`);
3253
3271
  $si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
3254
3272
  return 0;
3255
3273
  }
@@ -3257,19 +3275,19 @@ var usage_meters_default = _template("y", (input) => {
3257
3275
  _if(() => {
3258
3276
  if (agent.stale_seconds != null) {
3259
3277
  const $scope3_id = _scope_id();
3260
- _html(`<span${_attr_class("_eA")}${_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)}`);
3278
+ _html(`<span${_attr_class("_eB")}${_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)}`);
3261
3279
  $si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
3262
3280
  return 0;
3263
3281
  }
3264
3282
  }, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
3265
- _html(`</div><div${_attr_class(["_eB", { ["_eS"]: agent.stale_seconds != null }])}>`);
3283
+ _html(`</div><div${_attr_class(["_eC", { ["_eT"]: agent.stale_seconds != null }])}>`);
3266
3284
  _for_of(agent.windows || [], (win) => {
3267
3285
  const $scope4_id = _scope_id();
3268
3286
  const pct = pctText(win.used_percent);
3269
3287
  const label = resetLabel(win.resets_at, agent.stale_seconds != null);
3270
- const fillClass = win.used_percent >= 90 ? "_eK" : win.used_percent >= 70 ? "_eJ" : win.used_percent >= 40 ? "_eI" : "_eH";
3271
- const pctClass = win.used_percent >= 90 ? "_eP" : win.used_percent >= 70 ? "_eO" : win.used_percent >= 40 ? "_eN" : "_eM";
3272
- _html(`<div${_attr_class("_eD")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? ` — resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_eE")}>${_escape(win.window)}${_el_resume($scope4_id, "c", $sg__input_agent)}</span><span${_attr_class("_eF")}><span${_attr_class(["_eG", 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(["_eL", pctClass])}>${_escape(pct)}${_el_resume($scope4_id, "g", $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_eQ")}>${label ? `↻ ${_escape(`${_to_text(label)}`)}` : ""}${_el_resume($scope4_id, "i", $sg__input_agent)}</span></div>${_el_resume($scope4_id, "a", $sg__input_agent)}`);
3288
+ const fillClass = win.used_percent >= 90 ? "_eL" : win.used_percent >= 70 ? "_eK" : win.used_percent >= 40 ? "_eJ" : "_eI";
3289
+ const pctClass = win.used_percent >= 90 ? "_eQ" : win.used_percent >= 70 ? "_eP" : win.used_percent >= 40 ? "_eO" : "_eN";
3290
+ _html(`<div${_attr_class("_eE")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? ` — resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_eF")}>${_escape(win.window)}${_el_resume($scope4_id, "c", $sg__input_agent)}</span><span${_attr_class("_eG")}><span${_attr_class(["_eH", 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(["_eM", pctClass])}>${_escape(pct)}${_el_resume($scope4_id, "g", $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_eR")}>${label ? `↻ ${_escape(`${_to_text(label)}`)}` : ""}${_el_resume($scope4_id, "i", $sg__input_agent)}</span></div>${_el_resume($scope4_id, "a", $sg__input_agent)}`);
3273
3291
  $si__input_agent && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
3274
3292
  }, "window", $scope0_id, "g", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
3275
3293
  _if(() => {
@@ -3311,7 +3329,7 @@ var modal_view_default = _template("l", (input) => {
3311
3329
  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;
3312
3330
  const dismissable = input.dismissable !== false;
3313
3331
  let open = input.open;
3314
- _html(`<dialog${_attr_class(["_fZ", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
3332
+ _html(`<dialog${_attr_class(["_f0", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
3315
3333
  ...htmlInput,
3316
3334
  open: null
3317
3335
  }, {
@@ -3321,20 +3339,20 @@ var modal_view_default = _template("l", (input) => {
3321
3339
  closedby: 1,
3322
3340
  "on-cancel": 1,
3323
3341
  "on-close": 1
3324
- }, "a", $scope0_id, "dialog")}><div${_attr_class("_f0")}>`);
3342
+ }, "a", $scope0_id, "dialog")}><div${_attr_class("_f1")}>`);
3325
3343
  _dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
3326
3344
  _html("</div>");
3327
3345
  _if(() => {
3328
3346
  if (footer) {
3329
3347
  const $scope1_id = _scope_id();
3330
- _html(`<form method=dialog${_attr_class("_f1")}>`);
3348
+ _html(`<form method=dialog${_attr_class("_f2")}>`);
3331
3349
  _dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
3332
3350
  _html("</form>");
3333
3351
  $si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
3334
3352
  return 0;
3335
3353
  } else if (input.openChange) {
3336
3354
  const $scope2_id = _scope_id();
3337
- _html(`<form method=dialog${_attr_class("_f1")}>`);
3355
+ _html(`<form method=dialog${_attr_class("_f2")}>`);
3338
3356
  dialog_close_default({
3339
3357
  class: ["_i", "_j"],
3340
3358
  content: _content("l0", () => {
@@ -3393,7 +3411,7 @@ var prompt_dialog_default = _template("p", (input) => {
3393
3411
  const $childScope = _peek_scope_id();
3394
3412
  modal_view_default({
3395
3413
  label: input.label,
3396
- class: "_eu",
3414
+ class: "_ev",
3397
3415
  open: input.open,
3398
3416
  openChange: input.openChange,
3399
3417
  "aria-labelledby": titleId,
@@ -3416,7 +3434,7 @@ var prompt_dialog_default = _template("p", (input) => {
3416
3434
  content: _content("p6", () => {
3417
3435
  _scope_reason();
3418
3436
  const $scope2_id = _scope_id();
3419
- _html(`<h2${_attr_class("_ev")}${_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) => {
3437
+ _html(`<h2${_attr_class("_ew")}${_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) => {
3420
3438
  value = _new_value;
3421
3439
  }, "p0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
3422
3440
  _script($scope2_id, "p4");
@@ -3488,6 +3506,7 @@ var settings_page_default = _template("r", (input) => {
3488
3506
  const applySetup = _resume((s) => {
3489
3507
  setup = s;
3490
3508
  lastSetup = s;
3509
+ setPrimaryHost(s.github);
3491
3510
  input.setupChange?.(s);
3492
3511
  }, "r1", $scope0_id);
3493
3512
  const syncAgents = _resume(async () => {
@@ -3667,14 +3686,14 @@ var settings_page_default = _template("r", (input) => {
3667
3686
  const $scope4_id = _scope_id();
3668
3687
  _if(() => {
3669
3688
  if (!setup) {
3670
- const $scope41_id = _scope_id();
3689
+ const $scope42_id = _scope_id();
3671
3690
  _html("Checking this machine…");
3672
- writeScope($scope41_id, {});
3691
+ writeScope($scope42_id, {});
3673
3692
  return 0;
3674
3693
  } else if (setup.ready) {
3675
- const $scope42_id = _scope_id();
3694
+ const $scope43_id = _scope_id();
3676
3695
  _html(`<span${_attr_class("_b1")}>Ready</span> — tools, GitHub, and an agent are all in place.`);
3677
- writeScope($scope42_id, {});
3696
+ writeScope($scope43_id, {});
3678
3697
  return 1;
3679
3698
  } else {
3680
3699
  const $scope5_id = _scope_id();
@@ -3731,9 +3750,9 @@ var settings_page_default = _template("r", (input) => {
3731
3750
  }, "r0", $scope0_id), () => {
3732
3751
  _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">`);
3733
3752
  _for_of(input.agents.filter((a) => a !== "shell"), (id) => {
3734
- const $scope43_id = _scope_id();
3735
- _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)}`);
3736
- _serialize_if($scope0_reason, 2) && writeScope($scope43_id, {});
3753
+ const $scope44_id = _scope_id();
3754
+ _html(`<option${_attr_option_value(id)}>${_escape(agentLabel(id))}${_el_resume($scope44_id, "b", $sg__input_agents)}</option>${_el_resume($scope44_id, "a", $sg__input_agents)}`);
3755
+ _serialize_if($scope0_reason, 2) && writeScope($scope44_id, {});
3737
3756
  }, (a) => a, $scope0_id, "m", $sg__input_agents, 1, 1, "</select>", 1);
3738
3757
  });
3739
3758
  _html(`</span></label><button${_attr_class(iconBtn$2)} title="Refresh usage" aria-label="Refresh usage"${_attr("disabled", usageRefreshing)}>`);
@@ -3749,8 +3768,8 @@ var settings_page_default = _template("r", (input) => {
3749
3768
  const lone = a.instances.length === 1 && a.instances[0].id === a.id ? a.instances[0] : null;
3750
3769
  const rows = lone ? [] : a.instances;
3751
3770
  const loneAccounts = lone && lone.enabled ? accountsFor(lone.id) : [];
3752
- const extraAccounts = strayAccountsFor(a);
3753
- _html(`<li${_attr_class(["_bq", "_b4"])}><div${_attr_class("_b7")}>`);
3771
+ const extraAccounts = a.installed ? strayAccountsFor(a) : [];
3772
+ _html(`<li${_attr_class(["_bq", "_b4"])}><div${_attr_class(["_b7", { ["_b_"]: lone && !lone.enabled }])}>`);
3754
3773
  _set_serialize_reason(12);
3755
3774
  const $childScope4 = _peek_scope_id();
3756
3775
  icon_agent_default({
@@ -3760,9 +3779,9 @@ var settings_page_default = _template("r", (input) => {
3760
3779
  _html(`<div${_attr_class("_br")}><span${_attr_class("_bt")}><span${_attr_class("_bs")}>${_escape(a.label)}${_el_resume($scope1_id, "g")}</span>`);
3761
3780
  _if(() => {
3762
3781
  if (lone && input.preferred === lone.id) {
3763
- const $scope44_id = _scope_id();
3782
+ const $scope45_id = _scope_id();
3764
3783
  _html(`<span${_attr_class(["_C", tone.accent])}>default</span>`);
3765
- writeScope($scope44_id, {});
3784
+ writeScope($scope45_id, {});
3766
3785
  return 0;
3767
3786
  }
3768
3787
  }, $scope1_id, "h", 1, 1, 1, 0, 1);
@@ -3774,56 +3793,56 @@ var settings_page_default = _template("r", (input) => {
3774
3793
  _subscribe($active__closures, writeScope($scope10_id, {}));
3775
3794
  return 0;
3776
3795
  } else if (!a.installed) {
3777
- const $scope45_id = _scope_id();
3796
+ const $scope46_id = _scope_id();
3778
3797
  _html(`<span${_attr_class("_bu")}>Not installed</span>`);
3779
- writeScope($scope45_id, {});
3798
+ writeScope($scope46_id, {});
3780
3799
  return 1;
3781
3800
  }
3782
3801
  }, $scope1_id, "i", 1, 1, 1, 0, 1);
3783
3802
  _html("</div>");
3784
3803
  _if(() => {
3785
3804
  if (!a.installed && !active.has(a.id)) {
3786
- const $scope34_id = _scope_id();
3787
- _html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope34_id, "a")}`);
3788
- _script($scope34_id, "r25");
3789
- writeScope($scope34_id, {});
3805
+ const $scope35_id = _scope_id();
3806
+ _html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope35_id, "a")}`);
3807
+ _script($scope35_id, "r25");
3808
+ writeScope($scope35_id, {});
3790
3809
  return 0;
3791
3810
  }
3792
3811
  }, $scope1_id, "j", 1, 1, 1, 0, 1);
3793
3812
  _if(() => {
3794
3813
  if (lone) {
3795
- const $scope38_id = _scope_id();
3814
+ const $scope39_id = _scope_id();
3796
3815
  _html(`<button${_attr_class([
3797
3816
  "_C",
3798
3817
  "_E",
3799
3818
  { [tone.ok]: lone.enabled }
3800
- ])} 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")}`);
3801
- _script($scope38_id, "r26");
3802
- writeScope($scope38_id, {});
3819
+ ])} 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($scope39_id, "b")}</button>${_el_resume($scope39_id, "a")}`);
3820
+ _script($scope39_id, "r26");
3821
+ writeScope($scope39_id, {});
3803
3822
  return 0;
3804
3823
  }
3805
3824
  }, $scope1_id, "k", 1, 1, 1, 0, 1);
3806
- _html("</div>");
3825
+ _html(`</div>${_el_resume($scope1_id, "b")}`);
3807
3826
  _if(() => {
3808
3827
  if (rows.length || loneAccounts.length || extraAccounts.length) {
3809
3828
  const $scope2_id = _scope_id();
3810
- _html(`<ul${_attr_class("_ca")}>`);
3829
+ _html(`<ul${_attr_class("_cb")}>`);
3811
3830
  _for_of(rows, (inst) => {
3812
3831
  const $scope3_id = _scope_id();
3813
3832
  const accounts = inst.enabled ? accountsFor(inst.id) : [];
3814
- _html(`<li${_attr_class("_b8")}><div${_attr_class("_b9")}>`);
3833
+ _html(`<li${_attr_class("_b8")}><div${_attr_class(["_b9", { ["_b_"]: !inst.enabled }])}>`);
3815
3834
  _set_serialize_reason(12);
3816
3835
  const $childScope5 = _peek_scope_id();
3817
3836
  icon_agent_default({
3818
3837
  agent: inst.id,
3819
3838
  size: 15
3820
3839
  });
3821
- _html(`<span${_attr_class(["_b_", "_r"])}>${_escape(inst.command)}${_el_resume($scope3_id, "e")}</span>`);
3840
+ _html(`<span${_attr_class(["_ca", "_r"])}>${_escape(inst.command)}${_el_resume($scope3_id, "e")}</span>`);
3822
3841
  _if(() => {
3823
3842
  if (input.preferred === inst.id) {
3824
- const $scope46_id = _scope_id();
3843
+ const $scope47_id = _scope_id();
3825
3844
  _html(`<span${_attr_class(["_C", tone.accent])}>default</span>`);
3826
- writeScope($scope46_id, {});
3845
+ writeScope($scope47_id, {});
3827
3846
  return 0;
3828
3847
  }
3829
3848
  }, $scope3_id, "f", 1, 1, 1, 0, 1);
@@ -3831,16 +3850,16 @@ var settings_page_default = _template("r", (input) => {
3831
3850
  "_C",
3832
3851
  "_E",
3833
3852
  { [tone.ok]: inst.enabled }
3834
- ])} 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>`);
3853
+ ])} 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>${_el_resume($scope3_id, "b")}`);
3835
3854
  _for_of(accounts, (u) => {
3836
- const $scope47_id = _scope_id();
3855
+ const $scope48_id = _scope_id();
3837
3856
  _set_serialize_reason(6);
3838
3857
  const $childScope6 = _peek_scope_id();
3839
3858
  usage_meters_default({
3840
3859
  agent: u,
3841
3860
  hideName: true
3842
3861
  });
3843
- writeScope($scope47_id, { a: _existing_scope($childScope6) });
3862
+ writeScope($scope48_id, { a: _existing_scope($childScope6) });
3844
3863
  }, (u) => `${u.agent}-${u.account || ""}`, $scope3_id, "j", 1, 1, 1, 0, 1);
3845
3864
  _html("</li>");
3846
3865
  _script($scope3_id, "r27");
@@ -3851,7 +3870,7 @@ var settings_page_default = _template("r", (input) => {
3851
3870
  })));
3852
3871
  }, "id", $scope2_id, "b", 1, 1, 1, 0, 1);
3853
3872
  _for_of(loneAccounts, (u) => {
3854
- const $scope48_id = _scope_id();
3873
+ const $scope49_id = _scope_id();
3855
3874
  _html("<li>");
3856
3875
  _set_serialize_reason(6);
3857
3876
  const $childScope7 = _peek_scope_id();
@@ -3860,16 +3879,16 @@ var settings_page_default = _template("r", (input) => {
3860
3879
  hideName: true
3861
3880
  });
3862
3881
  _html("</li>");
3863
- writeScope($scope48_id, { a: _existing_scope($childScope7) });
3882
+ writeScope($scope49_id, { a: _existing_scope($childScope7) });
3864
3883
  }, (u) => `${u.agent}-${u.account || ""}`, $scope2_id, "c", 1, 1, 1, 0, 1);
3865
3884
  _for_of(extraAccounts, (u) => {
3866
- const $scope49_id = _scope_id();
3885
+ const $scope50_id = _scope_id();
3867
3886
  _html("<li>");
3868
3887
  _set_serialize_reason(6);
3869
3888
  const $childScope8 = _peek_scope_id();
3870
3889
  usage_meters_default({ agent: u });
3871
3890
  _html("</li>");
3872
- writeScope($scope49_id, { a: _existing_scope($childScope8) });
3891
+ writeScope($scope50_id, { a: _existing_scope($childScope8) });
3873
3892
  }, (u) => `${u.agent}-${u.account || ""}`, $scope2_id, "d", 1, 1, 1, 0, 1);
3874
3893
  _html("</ul>");
3875
3894
  writeScope($scope2_id, {});
@@ -3880,7 +3899,7 @@ var settings_page_default = _template("r", (input) => {
3880
3899
  writeScope($scope1_id, {
3881
3900
  n: a,
3882
3901
  s: a?.id,
3883
- v: a?.installed,
3902
+ u: a?.installed,
3884
3903
  x: lone,
3885
3904
  a1: lone?.enabled,
3886
3905
  a2: lone?.id,
@@ -3892,20 +3911,20 @@ var settings_page_default = _template("r", (input) => {
3892
3911
  });
3893
3912
  }, "id", $scope0_id, "q", 1, 1, 1, 0, 1);
3894
3913
  _for_of(otherUsage, (u) => {
3895
- const $scope50_id = _scope_id();
3914
+ const $scope51_id = _scope_id();
3896
3915
  _html(`<li${_attr_class(["_bq", "_b4"])}>`);
3897
3916
  _set_serialize_reason(6);
3898
3917
  const $childScope9 = _peek_scope_id();
3899
3918
  usage_meters_default({ agent: u });
3900
3919
  _html("</li>");
3901
- writeScope($scope50_id, { b: _existing_scope($childScope9) });
3920
+ writeScope($scope51_id, { b: _existing_scope($childScope9) });
3902
3921
  }, (u) => `${u.agent}-${u.account || ""}`, $scope0_id, "r", 1, 1, 1, 0, 1);
3903
3922
  _html("</ul>");
3904
3923
  _if(() => {
3905
3924
  if (!usage && families.length) {
3906
- const $scope51_id = _scope_id();
3925
+ const $scope52_id = _scope_id();
3907
3926
  _html(`<p${_attr_class("_bw")}><span${_attr_class("_z")}></span> Loading usage…</p>`);
3908
- writeScope($scope51_id, {});
3927
+ writeScope($scope52_id, {});
3909
3928
  return 0;
3910
3929
  } else if (usage?.error) {
3911
3930
  const $scope6_id = _scope_id();
@@ -3921,9 +3940,9 @@ var settings_page_default = _template("r", (input) => {
3921
3940
  _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>`);
3922
3941
  _if(() => {
3923
3942
  if (h.isEnterprise) {
3924
- const $scope54_id = _scope_id();
3943
+ const $scope55_id = _scope_id();
3925
3944
  _html(`<span${_attr_class("_C")}>Enterprise</span>`);
3926
- writeScope($scope54_id, {});
3945
+ writeScope($scope55_id, {});
3927
3946
  return 0;
3928
3947
  }
3929
3948
  }, $scope11_id, "f", 1, 1, 1, 0, 1);
@@ -3931,7 +3950,7 @@ var settings_page_default = _template("r", (input) => {
3931
3950
  _if(() => {
3932
3951
  if (active.has(h.host) && authCodes.has(h.host)) {
3933
3952
  const $scope22_id = _scope_id();
3934
- _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>`);
3953
+ _html(`<span${_attr_class("_b0")}><span${_attr_class("_z")}></span> Enter code <strong${_attr_class("_cj")}>${_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("_ck")}>${_escape(h.host)}${_el_resume($scope22_id, "f")}/login/device</a>${_el_resume($scope22_id, "e")}</span>`);
3935
3954
  _subscribe($authCodes__closures, writeScope($scope22_id, {}));
3936
3955
  return 0;
3937
3956
  } else if (active.has(h.host)) {
@@ -3940,14 +3959,14 @@ var settings_page_default = _template("r", (input) => {
3940
3959
  _subscribe($active__closures, writeScope($scope12_id, { Ccg: 1 }));
3941
3960
  return 1;
3942
3961
  } else if (h.authed) {
3943
- const $scope52_id = _scope_id();
3944
- _html(`<span${_attr_class("_bu")}>Signed in<!>${h.user ? ` as ${_escape(`${_to_text(h.user)}`)}` : ""}${_el_resume($scope52_id, "b")}</span>`);
3945
- writeScope($scope52_id, {});
3946
- return 2;
3947
- } else {
3948
3962
  const $scope53_id = _scope_id();
3949
- _html(`<span${_attr_class("_bu")}>${_escape(h.error || "Not signed in")}${_el_resume($scope53_id, "b")}</span>`);
3963
+ _html(`<span${_attr_class("_bu")}>Signed in<!>${h.user ? ` as ${_escape(`${_to_text(h.user)}`)}` : ""}${_el_resume($scope53_id, "b")}</span>`);
3950
3964
  writeScope($scope53_id, {});
3965
+ return 2;
3966
+ } else {
3967
+ const $scope54_id = _scope_id();
3968
+ _html(`<span${_attr_class("_bu")}>${_escape(h.error || "Not signed in")}${_el_resume($scope54_id, "b")}</span>`);
3969
+ writeScope($scope54_id, {});
3951
3970
  return 3;
3952
3971
  }
3953
3972
  }, $scope11_id, "g", 1, 1, 1, 0, 1);
@@ -3957,23 +3976,35 @@ var settings_page_default = _template("r", (input) => {
3957
3976
  const $scope23_id = _scope_id();
3958
3977
  _if(() => {
3959
3978
  if (!h.authed) {
3960
- const $scope35_id = _scope_id();
3961
- _html(`<button${_attr_class(btnSm)}>Sign in</button>${_el_resume($scope35_id, "a")}`);
3962
- _script($scope35_id, "r28");
3963
- writeScope($scope35_id, {});
3979
+ const $scope36_id = _scope_id();
3980
+ _html(`<button${_attr_class(btnSm)}>Sign in</button>${_el_resume($scope36_id, "a")}`);
3981
+ _script($scope36_id, "r28");
3982
+ writeScope($scope36_id, {});
3964
3983
  return 0;
3984
+ } else {
3985
+ const $scope24_id = _scope_id();
3986
+ _html(`<button${_attr_class([btnSm, {
3987
+ ["_l"]: confirmingRemove === `out:${h.host}`,
3988
+ ["_k"]: confirmingRemove === `out:${h.host}`
3989
+ }])}${confirmingRemove === `out:${h.host}` ? _attr("title", `Really sign out of ${h.host}?`) : _attr("title", `Sign out of ${h.host}`)}>${confirmingRemove === `out:${h.host}` ? "Sign out?" : "Sign out"}${_el_resume($scope24_id, "b")}</button>${_el_resume($scope24_id, "a")}`);
3990
+ _script($scope24_id, "r29");
3991
+ _subscribe($for_content3__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope24_id, {})));
3992
+ return 1;
3965
3993
  }
3966
3994
  }, $scope23_id, "a", 1, 1, 1, 0, 1);
3967
3995
  _if(() => {
3968
3996
  if (h.isEnterprise) {
3969
- const $scope24_id = _scope_id();
3997
+ const $scope25_id = _scope_id();
3970
3998
  _html(`<button${_attr_class([
3971
3999
  "_bv",
3972
4000
  "_T",
3973
4001
  { ["_k"]: confirmingRemove === h.host }
3974
- ])}${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")}`);
3975
- _script($scope24_id, "r29");
3976
- _subscribe($for_content3__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope24_id, {})));
4002
+ ])}${confirmingRemove === h.host ? _attr("title", `Forget ${h.host}? (gh stays signed in)`) : _attr("title", `Forget ${h.host}`)}>${confirmingRemove === h.host ? "Forget?" : "×"}${_el_resume($scope25_id, "b")}</button>${_el_resume($scope25_id, "a")}`);
4003
+ _script($scope25_id, "r30");
4004
+ _subscribe($for_content3__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope25_id, {
4005
+ Ccj: 1,
4006
+ Cr: 1
4007
+ })));
3977
4008
  return 0;
3978
4009
  }
3979
4010
  }, $scope23_id, "b", 1, 1, 1, 0, 1);
@@ -3993,35 +4024,35 @@ var settings_page_default = _template("r", (input) => {
3993
4024
  }, "host", $scope0_id, "w", 1, 1, 1, "</ul>", 1);
3994
4025
  _if(() => {
3995
4026
  if (setup && !setup.github.length) {
3996
- const $scope55_id = _scope_id();
4027
+ const $scope56_id = _scope_id();
3997
4028
  _html(`<p${_attr_class("_bw")}>Install the GitHub CLI below to sign in.</p>`);
3998
- writeScope($scope55_id, {});
4029
+ writeScope($scope56_id, {});
3999
4030
  return 0;
4000
4031
  }
4001
4032
  }, $scope0_id, "x", 1, 1, 1, 0, 1);
4002
4033
  _if(() => {
4003
4034
  if (setup) {
4004
- const $scope32_id = _scope_id();
4005
- _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")}`);
4006
- _script($scope32_id, "r30");
4007
- writeScope($scope32_id, {});
4035
+ const $scope33_id = _scope_id();
4036
+ _html(`<form${_attr_class("_ci")}><input${_attr_input_value($scope33_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($scope33_id, "b")}<button${_attr_class(btnSm)} type=submit${_attr("disabled", !hostInput.trim() || hostBusy)}>${hostBusy ? "Adding…" : "Add host"}${_el_resume($scope33_id, "d")}</button>${_el_resume($scope33_id, "c")}</form>${_el_resume($scope33_id, "a")}`);
4037
+ _script($scope33_id, "r31");
4038
+ writeScope($scope33_id, {});
4008
4039
  return 0;
4009
4040
  }
4010
4041
  }, $scope0_id, "y", 1, 1, 1, 0, 1);
4011
4042
  _html(`</section><section${_attr_class("_bl")} aria-labelledby=settings-machine><div${_attr_class("_bm")}><h2 id=settings-machine${_attr_class("_bA")}>Machine</h2>`);
4012
4043
  _if(() => {
4013
4044
  if (missingCount) {
4014
- const $scope39_id = _scope_id();
4015
- _html(`<span${_attr_class(sectionCount$1)}>${_escape(missingCount)}${_el_resume($scope39_id, "b")} missing</span>`);
4016
- writeScope($scope39_id, {});
4045
+ const $scope40_id = _scope_id();
4046
+ _html(`<span${_attr_class(sectionCount$1)}>${_escape(missingCount)}${_el_resume($scope40_id, "b")} missing</span>`);
4047
+ writeScope($scope40_id, {});
4017
4048
  return 0;
4018
4049
  }
4019
4050
  }, $scope0_id, "a2", 1, 1, 1, 0, 1);
4020
4051
  _if(() => {
4021
4052
  if (outdatedIds.length) {
4022
- const $scope40_id = _scope_id();
4023
- _html(`<span${_attr_class(sectionCount$1)}>${_escape(outdatedIds.length)}${_el_resume($scope40_id, "b")} outdated</span>`);
4024
- writeScope($scope40_id, {});
4053
+ const $scope41_id = _scope_id();
4054
+ _html(`<span${_attr_class(sectionCount$1)}>${_escape(outdatedIds.length)}${_el_resume($scope41_id, "b")} outdated</span>`);
4055
+ writeScope($scope41_id, {});
4025
4056
  return 0;
4026
4057
  }
4027
4058
  }, $scope0_id, "a3", 1, 1, 1, 0, 1);
@@ -4030,7 +4061,7 @@ var settings_page_default = _template("r", (input) => {
4030
4061
  if (outdatedIds.length > 1) {
4031
4062
  const $scope13_id = _scope_id();
4032
4063
  _html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Update all</button>${_el_resume($scope13_id, "a")}`);
4033
- _script($scope13_id, "r31");
4064
+ _script($scope13_id, "r32");
4034
4065
  writeScope($scope13_id, {});
4035
4066
  return 0;
4036
4067
  }
@@ -4039,7 +4070,7 @@ var settings_page_default = _template("r", (input) => {
4039
4070
  if (missingInstallable.length > 1) {
4040
4071
  const $scope14_id = _scope_id();
4041
4072
  _html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Install missing</button>${_el_resume($scope14_id, "a")}`);
4042
- _script($scope14_id, "r32");
4073
+ _script($scope14_id, "r33");
4043
4074
  writeScope($scope14_id, {});
4044
4075
  return 0;
4045
4076
  }
@@ -4049,7 +4080,7 @@ var settings_page_default = _template("r", (input) => {
4049
4080
  if (setup && !setup.mise.installed) {
4050
4081
  const $scope15_id = _scope_id();
4051
4082
  _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>`);
4052
- _script($scope15_id, "r33");
4083
+ _script($scope15_id, "r34");
4053
4084
  writeScope($scope15_id, {});
4054
4085
  return 0;
4055
4086
  }
@@ -4062,7 +4093,7 @@ var settings_page_default = _template("r", (input) => {
4062
4093
  const $for_content4__t_path__closures = /* @__PURE__ */ new Set();
4063
4094
  const $for_content4__t_latest__closures = /* @__PURE__ */ new Set();
4064
4095
  const $for_content4__t_id__closures = /* @__PURE__ */ new Set();
4065
- _html(`<li${_attr_class([row, { ["_cc"]: !t.installed }])}><span${_attr_class(["_cd", "_r"])}>${_escape(t.label)}${_el_resume($scope16_id, "c")}</span>`);
4096
+ _html(`<li${_attr_class([row, { ["_cd"]: !t.installed }])}><span${_attr_class(["_ce", "_r"])}>${_escape(t.label)}${_el_resume($scope16_id, "c")}</span>`);
4066
4097
  _if(() => {
4067
4098
  if (active.has(t.id)) {
4068
4099
  const $scope17_id = _scope_id();
@@ -4070,76 +4101,76 @@ var settings_page_default = _template("r", (input) => {
4070
4101
  _subscribe($active__closures, writeScope($scope17_id, { Ccg: 2 }));
4071
4102
  return 0;
4072
4103
  } else if (t.installed) {
4073
- const $scope28_id = _scope_id();
4104
+ const $scope29_id = _scope_id();
4074
4105
  _if(() => {
4075
4106
  if (t.version) {
4076
- const $scope29_id = _scope_id();
4077
- _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")}`);
4078
- _script($scope29_id, "r34");
4079
- _subscribe($for_content4__t_path__closures, _subscribe($for_content4__t_version__closures, _subscribe($for_content4__t_label__closures, writeScope($scope29_id, { Cu: 1 }))));
4107
+ const $scope30_id = _scope_id();
4108
+ _html(`<button${_attr_class(["_cf", "_r"])}${_attr("title", `${t.path || t.label} — pin a version`)}>v<!>${_escape(t.version)}${_el_resume($scope30_id, "b")}</button>${_el_resume($scope30_id, "a")}`);
4109
+ _script($scope30_id, "r35");
4110
+ _subscribe($for_content4__t_path__closures, _subscribe($for_content4__t_version__closures, _subscribe($for_content4__t_label__closures, writeScope($scope30_id, { Cu: 1 }))));
4080
4111
  return 0;
4081
4112
  } else {
4082
- const $scope56_id = _scope_id();
4083
- _html(`<span${_attr_class([metaTrunc, "_r"])}${_attr("title", t.path)}>${_escape(t.path)}${_el_resume($scope56_id, "b")}</span>${_el_resume($scope56_id, "a")}`);
4084
- _subscribe($for_content4__t_path__closures, writeScope($scope56_id, { Cx: 1 }));
4113
+ const $scope57_id = _scope_id();
4114
+ _html(`<span${_attr_class([metaTrunc, "_r"])}${_attr("title", t.path)}>${_escape(t.path)}${_el_resume($scope57_id, "b")}</span>${_el_resume($scope57_id, "a")}`);
4115
+ _subscribe($for_content4__t_path__closures, writeScope($scope57_id, { Cx: 1 }));
4085
4116
  return 1;
4086
4117
  }
4087
- }, $scope28_id, "a", 1, 1, 1, 0, 1);
4118
+ }, $scope29_id, "a", 1, 1, 1, 0, 1);
4088
4119
  _if(() => {
4089
4120
  if (outdated(t)) {
4090
- const $scope36_id = _scope_id();
4091
- _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")}`);
4092
- _script($scope36_id, "r35");
4093
- _subscribe($for_content4__t_latest__closures, writeScope($scope36_id, {}));
4121
+ const $scope37_id = _scope_id();
4122
+ _html(`<button${_attr_class([btnSm, "_cg"])}${_attr("title", `Update to v${t.latest}`)}>↑ <!>${_escape(t.latest)}${_el_resume($scope37_id, "b")}</button>${_el_resume($scope37_id, "a")}`);
4123
+ _script($scope37_id, "r36");
4124
+ _subscribe($for_content4__t_latest__closures, writeScope($scope37_id, {}));
4094
4125
  return 0;
4095
4126
  }
4096
- }, $scope28_id, "b", 1, 1, 1, 0, 1);
4097
- writeScope($scope28_id, {});
4127
+ }, $scope29_id, "b", 1, 1, 1, 0, 1);
4128
+ writeScope($scope29_id, {});
4098
4129
  return 1;
4099
4130
  } else if (t.installable) {
4100
- const $scope57_id = _scope_id();
4131
+ const $scope58_id = _scope_id();
4101
4132
  _html(`<span${_attr_class(metaTrunc)}>not installed</span>`);
4102
- writeScope($scope57_id, {});
4133
+ writeScope($scope58_id, {});
4103
4134
  return 2;
4104
4135
  } else {
4105
- const $scope58_id = _scope_id();
4136
+ const $scope59_id = _scope_id();
4106
4137
  _html(`<span${_attr_class(metaTrunc)} title="Add it with your package manager">system package</span>`);
4107
- writeScope($scope58_id, {});
4138
+ writeScope($scope59_id, {});
4108
4139
  return 3;
4109
4140
  }
4110
4141
  }, $scope16_id, "d");
4111
4142
  _html(`<span${_attr_class("_s")}></span>`);
4112
4143
  _if(() => {
4113
4144
  if (!active.has(t.id)) {
4114
- const $scope25_id = _scope_id();
4145
+ const $scope26_id = _scope_id();
4115
4146
  _if(() => {
4116
4147
  if (t.required) {
4117
- const $scope59_id = _scope_id();
4148
+ const $scope60_id = _scope_id();
4118
4149
  _html(`<span${_attr_class("_C")}>required</span>`);
4119
- writeScope($scope59_id, {});
4150
+ writeScope($scope60_id, {});
4120
4151
  return 0;
4121
4152
  }
4122
- }, $scope25_id, "a", 1, 1, 1, 0, 1);
4153
+ }, $scope26_id, "a", 1, 1, 1, 0, 1);
4123
4154
  _if(() => {
4124
4155
  if (!t.installed && t.installable) {
4125
- const $scope37_id = _scope_id();
4126
- _html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope37_id, "a")}`);
4127
- _script($scope37_id, "r36");
4128
- writeScope($scope37_id, {});
4156
+ const $scope38_id = _scope_id();
4157
+ _html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope38_id, "a")}`);
4158
+ _script($scope38_id, "r37");
4159
+ writeScope($scope38_id, {});
4129
4160
  return 0;
4130
4161
  } else if (t.installed && t.version && !t.required) {
4131
- const $scope26_id = _scope_id();
4162
+ const $scope27_id = _scope_id();
4132
4163
  _html(`<button${_attr_class([
4133
4164
  iconBtnXs,
4134
4165
  "_T",
4135
4166
  { ["_k"]: confirmingRemove === t.id }
4136
- ])}${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")}`);
4137
- _script($scope26_id, "r37");
4138
- _subscribe($for_content4__t_id__closures, _subscribe($for_content4__t_label__closures, _subscribe($confirmingRemove__closures, writeScope($scope26_id, { Ccj: 1 }))));
4167
+ ])}${confirmingRemove === t.id ? _attr("title", `Really remove ${t.label}?`) : _attr("title", `Remove ${t.label}`)}>${confirmingRemove === t.id ? "Remove?" : "×"}${_el_resume($scope27_id, "b")}</button>${_el_resume($scope27_id, "a")}`);
4168
+ _script($scope27_id, "r38");
4169
+ _subscribe($for_content4__t_id__closures, _subscribe($for_content4__t_label__closures, _subscribe($confirmingRemove__closures, writeScope($scope27_id, { Ccj: 2 }))));
4139
4170
  return 1;
4140
4171
  }
4141
- }, $scope25_id, "b", 1, 1, 1, 0, 1);
4142
- writeScope($scope25_id, {});
4172
+ }, $scope26_id, "b", 1, 1, 1, 0, 1);
4173
+ writeScope($scope26_id, {});
4143
4174
  return 0;
4144
4175
  }
4145
4176
  }, $scope16_id, "f");
@@ -4168,10 +4199,10 @@ var settings_page_default = _template("r", (input) => {
4168
4199
  _if(() => {
4169
4200
  if (hits && hits.length) {
4170
4201
  const $scope19_id = _scope_id();
4171
- _html(`<ul${_attr_class([toolGrid, "_cg"])}>`);
4202
+ _html(`<ul${_attr_class([toolGrid, "_ch"])}>`);
4172
4203
  _for_of(hits, (h) => {
4173
4204
  const $scope20_id = _scope_id();
4174
- _html(`<li${_attr_class(row)}><div${_attr_class("_br")}><span${_attr_class(["_cd", "_r"])}>${_escape(h.name)}${_el_resume($scope20_id, "d")}</span>`);
4205
+ _html(`<li${_attr_class(row)}><div${_attr_class("_br")}><span${_attr_class(["_ce", "_r"])}>${_escape(h.name)}${_el_resume($scope20_id, "d")}</span>`);
4175
4206
  _if(() => {
4176
4207
  if (active.has(h.name)) {
4177
4208
  const $scope21_id = _scope_id();
@@ -4179,31 +4210,31 @@ var settings_page_default = _template("r", (input) => {
4179
4210
  _subscribe($active__closures, writeScope($scope21_id, { Ccg: 4 }));
4180
4211
  return 0;
4181
4212
  } else if (h.description) {
4182
- const $scope60_id = _scope_id();
4183
- _html(`<span${_attr_class("_bu")}${_attr("title", h.description)}>${_escape(h.description)}${_el_resume($scope60_id, "b")}</span>${_el_resume($scope60_id, "a")}`);
4184
- writeScope($scope60_id, {});
4213
+ const $scope61_id = _scope_id();
4214
+ _html(`<span${_attr_class("_bu")}${_attr("title", h.description)}>${_escape(h.description)}${_el_resume($scope61_id, "b")}</span>${_el_resume($scope61_id, "a")}`);
4215
+ writeScope($scope61_id, {});
4185
4216
  return 1;
4186
4217
  }
4187
4218
  }, $scope20_id, "e", 1, 1, 1, 0, 1);
4188
4219
  _html("</div>");
4189
4220
  _if(() => {
4190
4221
  if (!active.has(h.name)) {
4191
- const $scope30_id = _scope_id();
4222
+ const $scope31_id = _scope_id();
4192
4223
  _if(() => {
4193
4224
  if (h.installed) {
4194
- const $scope61_id = _scope_id();
4225
+ const $scope62_id = _scope_id();
4195
4226
  _html(`<span${_attr_class("_C")}>installed</span>`);
4196
- writeScope($scope61_id, {});
4227
+ writeScope($scope62_id, {});
4197
4228
  return 0;
4198
4229
  } else {
4199
- const $scope31_id = _scope_id();
4200
- _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")}`);
4201
- _script($scope31_id, "r38");
4202
- writeScope($scope31_id, {});
4230
+ const $scope32_id = _scope_id();
4231
+ _html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope32_id, "a")}<button${_attr_class(btnSm)} title="Install a specific version">@…</button>${_el_resume($scope32_id, "b")}`);
4232
+ _script($scope32_id, "r39");
4233
+ writeScope($scope32_id, {});
4203
4234
  return 1;
4204
4235
  }
4205
- }, $scope30_id, "a");
4206
- writeScope($scope30_id, {});
4236
+ }, $scope31_id, "a");
4237
+ writeScope($scope31_id, {});
4207
4238
  return 0;
4208
4239
  }
4209
4240
  }, $scope20_id, "f");
@@ -4218,14 +4249,14 @@ var settings_page_default = _template("r", (input) => {
4218
4249
  _subscribe($hits__closures, writeScope($scope19_id, {}));
4219
4250
  return 0;
4220
4251
  } else if (hits && !searching) {
4221
- const $scope33_id = _scope_id();
4222
- _html(`<p${_attr_class("_bw")}>No tools match “<!>${_escape(query)}${_el_resume($scope33_id, "b")}”.</p>`);
4223
- _subscribe($query__closures, writeScope($scope33_id, {}));
4252
+ const $scope34_id = _scope_id();
4253
+ _html(`<p${_attr_class("_bw")}>No tools match “<!>${_escape(query)}${_el_resume($scope34_id, "b")}”.</p>`);
4254
+ _subscribe($query__closures, writeScope($scope34_id, {}));
4224
4255
  return 1;
4225
4256
  }
4226
4257
  }, $scope18_id, "b", 1, 1, 1, 0, 1);
4227
4258
  _html("</div>");
4228
- _script($scope18_id, "r39");
4259
+ _script($scope18_id, "r40");
4229
4260
  writeScope($scope18_id, {});
4230
4261
  return 0;
4231
4262
  }
@@ -4233,7 +4264,7 @@ var settings_page_default = _template("r", (input) => {
4233
4264
  _html("</section></div></div></div>");
4234
4265
  _if(() => {
4235
4266
  if (versionPick) {
4236
- const $scope27_id = _scope_id();
4267
+ const $scope28_id = _scope_id();
4237
4268
  _set_serialize_reason(14);
4238
4269
  const $childScope10 = _peek_scope_id();
4239
4270
  prompt_dialog_default({
@@ -4244,19 +4275,19 @@ var settings_page_default = _template("r", (input) => {
4244
4275
  open: versionPick != null,
4245
4276
  openChange: _resume(function(o) {
4246
4277
  if (!o) versionPick = null;
4247
- }, "r19", $scope27_id),
4278
+ }, "r19", $scope28_id),
4248
4279
  onSubmit: _resume(function(v) {
4249
4280
  const pick = versionPick;
4250
4281
  versionPick = null;
4251
4282
  run(pick.id, "install", v);
4252
- }, "r20", $scope27_id)
4283
+ }, "r20", $scope28_id)
4253
4284
  });
4254
- writeScope($scope27_id, { a: _existing_scope($childScope10) });
4285
+ writeScope($scope28_id, { a: _existing_scope($childScope10) });
4255
4286
  return 0;
4256
4287
  }
4257
4288
  }, $scope0_id, "aa", 1, 1, 1, 0, 1);
4258
- _script($scope0_id, "r40");
4259
4289
  _script($scope0_id, "r41");
4290
+ _script($scope0_id, "r42");
4260
4291
  writeScope($scope0_id, {
4261
4292
  ae: input.setupChange,
4262
4293
  af: input.agentsChange,
@@ -4331,8 +4362,8 @@ var curBase = "_bJ _N _M";
4331
4362
  var archived = "_bN _bl";
4332
4363
  var archivedHint = "_bO _M";
4333
4364
  var archivedCard = "_bP _bq";
4334
- var resultBranch = "_cr _Q _d";
4335
- var branchInput = "_cw _P _O";
4365
+ var resultBranch = "_cD _Q _d";
4366
+ var branchInput = "_cI _P _O";
4336
4367
  //#endregion
4337
4368
  //#region src/tags/icons/icon-plus.marko
4338
4369
  var icon_plus_default = _template("N", (input) => {
@@ -4399,7 +4430,7 @@ var repo_picker_default = _template("q", (input) => {
4399
4430
  input.onError?.(String(err.message || err));
4400
4431
  }
4401
4432
  }, "q5", $scope0_id);
4402
- _html(`<div${_attr_class("_cl")}><input${_attr_input_value($scope0_id, "b", filter, _resume(function(v) {
4433
+ _html(`<div${_attr_class("_cx")}><input${_attr_input_value($scope0_id, "b", filter, _resume(function(v) {
4403
4434
  filter = v;
4404
4435
  highlight = 0;
4405
4436
  }, "q0", $scope0_id))}${_attr_class(inputLg)} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input.disabled)}>${_el_resume($scope0_id, "b")}`);
@@ -4414,19 +4445,19 @@ var repo_picker_default = _template("q", (input) => {
4414
4445
  _if(() => {
4415
4446
  if (results.length) {
4416
4447
  const $scope2_id = _scope_id();
4417
- _html(`<ul${_attr_class("_cm")}>`);
4448
+ _html(`<ul${_attr_class("_cy")}>`);
4418
4449
  _for_of(results, (repo, i) => {
4419
4450
  const $scope3_id = _scope_id();
4420
- _html(`<li><div${_attr_class(["_co", { ["_cn"]: i === highlight }])}><button${_attr_class("_cp")}>`);
4451
+ _html(`<li><div${_attr_class(["_cA", { ["_cz"]: i === highlight }])}><button${_attr_class("_cB")}>`);
4421
4452
  icon_plus_default({
4422
4453
  size: 12,
4423
- class: "_cu"
4454
+ class: "_cG"
4424
4455
  });
4425
- _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")}`);
4456
+ _html(`<span${_attr_class("_cH")}>${_escape(repoLabel(repo.nameWithOwner))}${_el_resume($scope3_id, "e")}</span></button>${_el_resume($scope3_id, "b")}<button${_attr_class([resultBranch, { ["_cC"]: 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")}`);
4426
4457
  _if(() => {
4427
4458
  if (branchesFor === repo.nameWithOwner) {
4428
4459
  const $scope4_id = _scope_id();
4429
- _html(`<div${_attr_class("_cs")}>`);
4460
+ _html(`<div${_attr_class("_cE")}>`);
4430
4461
  _if(() => {
4431
4462
  if (!branches) {
4432
4463
  const $scope9_id = _scope_id();
@@ -4447,10 +4478,10 @@ var repo_picker_default = _template("q", (input) => {
4447
4478
  }
4448
4479
  }, $scope5_id, "a", 1, 1, 1, 0, 1);
4449
4480
  const shown = (branchFilter ? branches.filter((b) => b.toLowerCase().includes(branchFilter.toLowerCase())) : branches).slice(0, 12);
4450
- _html(`<ul${_attr_class("_ct")}>`);
4481
+ _html(`<ul${_attr_class("_cF")}>`);
4451
4482
  _for_of(shown, (branch) => {
4452
4483
  const $scope7_id = _scope_id();
4453
- _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>`);
4484
+ _html(`<li><button${_attr_class(["_cB", "_cJ"])}><span${_attr_class(["_cH", "_r"])}>${_escape(branch)}${_el_resume($scope7_id, "c")}</span></button>${_el_resume($scope7_id, "a")}</li>`);
4454
4485
  _script($scope7_id, "q7");
4455
4486
  writeScope($scope7_id, { e: branch });
4456
4487
  }, (b) => b, $scope5_id, "c", 1, 1, 1, 0, 1);
@@ -4566,8 +4597,10 @@ var new_workspace_default = _template("m", (input) => {
4566
4597
  restoring = null;
4567
4598
  }
4568
4599
  }, "m3", $scope0_id);
4600
+ const createGen = { n: 0 };
4569
4601
  const create = _resume(async () => {
4570
4602
  if (restoring) return;
4603
+ const gen = ++createGen.n;
4571
4604
  busy = true;
4572
4605
  error = null;
4573
4606
  steps$1 = [];
@@ -4586,9 +4619,11 @@ var new_workspace_default = _template("m", (input) => {
4586
4619
  opId
4587
4620
  })
4588
4621
  });
4622
+ if (gen !== createGen.n) return;
4589
4623
  busy = false;
4590
4624
  input.onCreate?.(ws);
4591
4625
  } catch (err) {
4626
+ if (gen !== createGen.n) return;
4592
4627
  busy = false;
4593
4628
  error = String(err.message || err);
4594
4629
  } finally {
@@ -4645,7 +4680,7 @@ var new_workspace_default = _template("m", (input) => {
4645
4680
  _html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("_bH")}>`);
4646
4681
  _for_of(selected, (repo) => {
4647
4682
  const $scope2_id = _scope_id();
4648
- _html(`<li${_attr_class(row)}><span${_attr_class("_bI")}>${_escape(repo.fullName)}${_el_resume($scope2_id, "c")}</span>`);
4683
+ _html(`<li${_attr_class(row)}><span${_attr_class("_bI")}>${_escape(repoLabel(repo.fullName))}${_el_resume($scope2_id, "c")}</span>`);
4649
4684
  _if(() => {
4650
4685
  if (repo.baseBranch) {
4651
4686
  const $scope10_id = _scope_id();
@@ -4715,14 +4750,14 @@ var new_workspace_default = _template("m", (input) => {
4715
4750
  }, $scope0_id, "s", 1, 1, 1, 0, 1);
4716
4751
  _html(`<div${_attr_class("_bC")}>`);
4717
4752
  _if(() => {
4718
- if (input.onExit) {
4753
+ if (input.onExit || busy) {
4719
4754
  const $scope1_id = _scope_id();
4720
- _html(`<button type=button${_attr_class(btnLg)}${_attr("disabled", busy || !!restoring)}>Cancel</button>${_el_resume($scope1_id, "a")}`);
4755
+ _html(`<button type=button${_attr_class(btnLg)}${_attr("disabled", !!restoring)}>Cancel</button>${_el_resume($scope1_id, "a")}`);
4721
4756
  _script($scope1_id, "m14");
4722
- writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
4757
+ writeScope($scope1_id, {});
4723
4758
  return 0;
4724
4759
  }
4725
- }, $scope0_id, "u", 1, $sg__input_onExit, 1, 0, 1);
4760
+ }, $scope0_id, "u", 1, 1, 1, 0, 1);
4726
4761
  _html(`<button type=button${_attr_class([
4727
4762
  btnLg,
4728
4763
  "_j",
@@ -4770,24 +4805,25 @@ var new_workspace_default = _template("m", (input) => {
4770
4805
  a4: name,
4771
4806
  a6: selected,
4772
4807
  a8: busy,
4773
- a9: restoring,
4774
- ac: error,
4775
- ad: steps$1,
4808
+ aa: restoring,
4809
+ ad: error,
4810
+ ae: steps$1,
4776
4811
  af: steps$1?.length,
4777
4812
  ah: $si__input_workspaces && archived$1,
4778
4813
  ai: $si__input_workspaces && archived$1?.length,
4779
4814
  aj: addRepo,
4780
4815
  ak: removeRepo,
4781
4816
  al: restore,
4782
- am: create,
4783
- ao: refreshCatalog,
4817
+ an: createGen.n,
4818
+ ap: create,
4819
+ ar: refreshCatalog,
4784
4820
  d: _serialize_if($scope0_reason, 1) && _existing_scope($childScope),
4785
- ar: $error__closures,
4821
+ au: $error__closures,
4786
4822
  m: _existing_scope($childScope2),
4787
4823
  q: _existing_scope($childScope3),
4788
- at: $steps_length__closures,
4789
- ap: $busy__closures,
4790
- aq: $restoring__closures
4824
+ aw: $steps_length__closures,
4825
+ as: $busy__closures,
4826
+ at: $restoring__closures
4791
4827
  });
4792
4828
  _resume_branch($scope0_id);
4793
4829
  });
@@ -4874,8 +4910,8 @@ function activeAgent(session) {
4874
4910
  const command = session.state?.command?.trim();
4875
4911
  return command && agentFromCommand(command) || session.agent;
4876
4912
  }
4877
- var iconBtn$1 = "_cK _d";
4878
- var navToggle = "_cP _d";
4913
+ var iconBtn$1 = "_dn _d";
4914
+ var navToggle = "_ds _d";
4879
4915
  _template("D", (input) => {
4880
4916
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
4881
4917
  const $scope0_id = _scope_id();
@@ -4918,12 +4954,12 @@ var ARM_MS = 3500;
4918
4954
  function disarmLater(fn) {
4919
4955
  return setTimeout(fn, ARM_MS);
4920
4956
  }
4921
- var railBtn = "_fA _d";
4922
- var rowIcon = "_fJ _Q _d";
4923
- var close = "_fK _Q _d _T";
4957
+ var railBtn = "_fB _d";
4958
+ var rowIcon = "_fK _Q _d";
4959
+ var close = "_fL _Q _d _T";
4924
4960
  //#endregion
4925
4961
  //#region src/styles/session-pop.css.ts
4926
- var sessionPop = "_fw _U";
4962
+ var sessionPop = "_fx _U";
4927
4963
  //#endregion
4928
4964
  //#region src/tags/icons/icon-diff.marko
4929
4965
  var icon_diff_default = _template("G", (input) => {
@@ -4975,12 +5011,12 @@ var icon_edit_default = _template("I", (input) => {
4975
5011
  });
4976
5012
  _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
4977
5013
  });
4978
- var prChip = "_f4 _m _f3";
4979
- var portChip = "_f5 _m _f3";
5014
+ var prChip = "_f5 _m _f4";
5015
+ var portChip = "_f6 _m _f4";
4980
5016
  var prState = {
4981
- open: "_f9",
4982
- merged: "_f_",
4983
- closed: "_ga"
5017
+ open: "_f_",
5018
+ merged: "_ga",
5019
+ closed: "_gb"
4984
5020
  };
4985
5021
  //#endregion
4986
5022
  //#region src/tags/icons/icon-xmark.marko
@@ -5039,12 +5075,12 @@ var side_nav_chips_default = _template("s", (input) => {
5039
5075
  if (repos.some((r) => (r.prs || []).length) || ports.length) {
5040
5076
  const $scope1_id = _scope_id();
5041
5077
  const $if_content__repoLabel__closures = /* @__PURE__ */ new Set();
5042
- const repoLabel = _resume((repo) => {
5078
+ const repoLabel$1 = _resume((repo) => {
5043
5079
  if (repos.length < 2) return "";
5044
- const name = repo.full_name.split("/")[1];
5045
- return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/")[1] === name) ? repo.full_name : name;
5080
+ const name = repo.full_name.split("/").at(-1);
5081
+ return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel(repo.full_name) : name;
5046
5082
  }, "s2", $scope1_id);
5047
- _html(`<div${_attr_class("_f2")}>`);
5083
+ _html(`<div${_attr_class("_f3")}>`);
5048
5084
  _for_of(repos, (repo) => {
5049
5085
  const $scope2_id = _scope_id();
5050
5086
  _for_of(repo.prs || [], (pr) => {
@@ -5059,11 +5095,11 @@ var side_nav_chips_default = _template("s", (input) => {
5059
5095
  [prState.merged]: pr.state === "MERGED",
5060
5096
  [prState.closed]: pr.state === "CLOSED"
5061
5097
  }
5062
- ])}${_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)}`);
5098
+ ])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["_f7", { ["_gd"]: !open }])}${_attr("href", pr.url)} target=_blank rel=noopener>${_escape(repoLabel$1(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)}`);
5063
5099
  _if(() => {
5064
5100
  if (open) {
5065
5101
  const $scope4_id = _scope_id();
5066
- _html(`<button type=button${_attr_class(["_f6", "_f7"])}${_attr("title", `Review #${pr.number} diff`)}>`);
5102
+ _html(`<button type=button${_attr_class(["_f7", "_f8"])}${_attr("title", `Review #${pr.number} diff`)}>`);
5067
5103
  icon_diff_default({ size: 12 });
5068
5104
  _html(`</button>${_el_resume($scope4_id, "a")}`);
5069
5105
  _script($scope4_id, "s3");
@@ -5072,9 +5108,9 @@ var side_nav_chips_default = _template("s", (input) => {
5072
5108
  } else {
5073
5109
  const $scope6_id = _scope_id();
5074
5110
  _html(`<button type=button${_attr_class([
5075
- "_f6",
5076
5111
  "_f7",
5077
- "_f8"
5112
+ "_f8",
5113
+ "_f9"
5078
5114
  ])}${_attr("title", `Clear #${pr.number} from this list`)}>`);
5079
5115
  icon_xmark_default({ size: 12 });
5080
5116
  _html(`</button>${_el_resume($scope6_id, "a")}`);
@@ -5098,10 +5134,10 @@ var side_nav_chips_default = _template("s", (input) => {
5098
5134
  }, "full_name", $scope1_id, "b", $sg__input_status_repos, $sg__input_status_repos, $sg__input_status_repos__OR__input_status_ports);
5099
5135
  _for_of(ports, (p) => {
5100
5136
  const $scope5_id = _scope_id();
5101
- _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([
5102
- "_f6",
5137
+ _html(`<span${_attr_class(["_m", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["_f7", "_gc"])}${_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([
5103
5138
  "_f7",
5104
5139
  "_f8",
5140
+ "_f9",
5105
5141
  { ["_k"]: armedPid === p.pid }
5106
5142
  ])}${armedPid === p.pid ? _attr("title", `Really kill ${p.cmd}?`) : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
5107
5143
  icon_xmark_default({ size: 12 });
@@ -5116,7 +5152,7 @@ var side_nav_chips_default = _template("s", (input) => {
5116
5152
  }, "port", $scope1_id, "c", $sg__input_status_ports, $sg__input_status_ports, $sg__input_status_repos__OR__input_status_ports, 0, 1);
5117
5153
  _html("</div>");
5118
5154
  writeScope($scope1_id, {
5119
- d: $si__input_status_repos && repoLabel,
5155
+ d: $si__input_status_repos && repoLabel$1,
5120
5156
  _: _scope_with_id($scope0_id),
5121
5157
  e: $si__input_status_repos && $if_content__repoLabel__closures
5122
5158
  });
@@ -5184,10 +5220,10 @@ var side_nav_item_default = _template("t", (input) => {
5184
5220
  _if(() => {
5185
5221
  if (input.rail) {
5186
5222
  const $scope2_id = _scope_id();
5187
- _html(`<button${_attr_class([railBtn, { ["_fy"]: 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([
5223
+ _html(`<button${_attr_class([railBtn, { ["_fz"]: 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([
5188
5224
  "_t",
5189
5225
  phase[dot],
5190
- "_fB"
5226
+ "_fC"
5191
5227
  ])}></span>${_el_resume($scope2_id, "c", $sg__input_workspaceId__OR__input_status)}</button>${_el_resume($scope2_id, "a")}`);
5192
5228
  _script($scope2_id, "t3");
5193
5229
  _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) }))));
@@ -5196,15 +5232,15 @@ var side_nav_item_default = _template("t", (input) => {
5196
5232
  const $scope3_id = _scope_id();
5197
5233
  const sessions$1 = input.sessions || [];
5198
5234
  const phaseLabel = dot === "working" ? "Working" : dot === "waiting" ? "Needs you" : dot === "idle" ? "Idle" : "Off";
5199
- _html(`<section${_attr_class(["_fD", {
5200
- ["_fy"]: input.current,
5235
+ _html(`<section${_attr_class(["_fE", {
5236
+ ["_fz"]: input.current,
5201
5237
  ["_V"]: input.current,
5202
- ["_fE"]: input.railPop,
5203
- ["_fC"]: input.page
5204
- }])}><div${_attr_class("_fF")}><button${_attr_class("_fG")}><span${_attr_class([
5238
+ ["_fF"]: input.railPop,
5239
+ ["_fD"]: input.page
5240
+ }])}><div${_attr_class("_fG")}><button${_attr_class("_fH")}><span${_attr_class([
5205
5241
  "_t",
5206
5242
  phase[dot],
5207
- "_fR"
5243
+ "_fS"
5208
5244
  ])}${_attr("title", phaseLabel)}></span>${_el_resume($scope3_id, "d", $sg__input_workspaceId__OR__input_status)}`);
5209
5245
  _if(() => {
5210
5246
  if (sessions$1.length === 1) {
@@ -5217,7 +5253,7 @@ var side_nav_item_default = _template("t", (input) => {
5217
5253
  icon_agent_default({
5218
5254
  agent: activeAgent(sessions$1[0]),
5219
5255
  size: 12,
5220
- class: "_fL"
5256
+ class: "_fM"
5221
5257
  });
5222
5258
  $si__input_sessions && writeScope($scope12_id, {
5223
5259
  _: _scope_with_id($scope3_id),
@@ -5227,16 +5263,16 @@ var side_nav_item_default = _template("t", (input) => {
5227
5263
  }
5228
5264
  }, $scope3_id, "e", $sg__input_sessions, $sg__input_sessions, $sg__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page);
5229
5265
  const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length === 1 ? sessions$1[0].title || "" : `${sessions$1.length} sessions`;
5230
- _html(`<span${_attr_class("_fM")}><span${_attr_class("_fN")}>${_escape(ws$1.name)}${_el_resume($scope3_id, "h", $sg__input_workspaces__OR__input_workspaceId)}</span>`);
5266
+ _html(`<span${_attr_class("_fN")}><span${_attr_class("_fO")}>${_escape(ws$1.name)}${_el_resume($scope3_id, "h", $sg__input_workspaces__OR__input_workspaceId)}</span>`);
5231
5267
  _if(() => {
5232
5268
  if (input.page && metaText) {
5233
5269
  const $scope14_id = _scope_id();
5234
- _html(`<span${_attr_class("_fP")}>${_escape(metaText)}${_el_resume($scope14_id, "b", _serialize_guard($scope0_reason, 5))}</span>`);
5270
+ _html(`<span${_attr_class("_fQ")}>${_escape(metaText)}${_el_resume($scope14_id, "b", _serialize_guard($scope0_reason, 5))}</span>`);
5235
5271
  $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) });
5236
5272
  return 0;
5237
5273
  } else if (sessions$1.length === 1 && sessions$1[0].title) {
5238
5274
  const $scope13_id = _scope_id();
5239
- _html(`<span${_attr_class("_fO")}>${_escape(sessions$1[0].title)}${_el_resume($scope13_id, "b", $sg__input_sessions)}</span>`);
5275
+ _html(`<span${_attr_class("_fP")}>${_escape(sessions$1[0].title)}${_el_resume($scope13_id, "b", $sg__input_sessions)}</span>`);
5240
5276
  $si__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page && writeScope($scope13_id, { _: $si__input_sessions && _scope_with_id($scope3_id) });
5241
5277
  return 1;
5242
5278
  }
@@ -5249,7 +5285,7 @@ var side_nav_item_default = _template("t", (input) => {
5249
5285
  "_C",
5250
5286
  "_L",
5251
5287
  "_E",
5252
- "_fQ"
5288
+ "_fR"
5253
5289
  ])}>${input.current ? "Open" : ""}${_el_resume($scope4_id, "b", _serialize_guard($scope0_reason, 16))}</span>`);
5254
5290
  $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, {
5255
5291
  _: _scope_with_id($scope3_id),
@@ -5262,7 +5298,7 @@ var side_nav_item_default = _template("t", (input) => {
5262
5298
  _if(() => {
5263
5299
  if (!input.page) {
5264
5300
  const $scope5_id = _scope_id();
5265
- _html(`<div${_attr_class("_fH")}>`);
5301
+ _html(`<div${_attr_class("_fI")}>`);
5266
5302
  _if(() => {
5267
5303
  if (input.onNewSession) {
5268
5304
  const $scope6_id = _scope_id();
@@ -5276,7 +5312,7 @@ var side_nav_item_default = _template("t", (input) => {
5276
5312
  _html(`</button>${_el_resume($scope6_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class(sessionPop)}>`);
5277
5313
  _for_of([], (agent) => {
5278
5314
  const $scope7_id = _scope_id();
5279
- _html(`<button${_attr_class("_fx")}>`);
5315
+ _html(`<button${_attr_class("_fy")}>`);
5280
5316
  _set_serialize_reason(12);
5281
5317
  const $childScope2 = _peek_scope_id();
5282
5318
  icon_agent_default({
@@ -5309,7 +5345,7 @@ var side_nav_item_default = _template("t", (input) => {
5309
5345
  return 0;
5310
5346
  }
5311
5347
  }, $scope5_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
5312
- _html(`<button${_attr_class([rowIcon, { ["_fz"]: input.managing }])} title="Manage workspace" aria-pressed=${input.managing ? "true" : "false"}>`);
5348
+ _html(`<button${_attr_class([rowIcon, { ["_fA"]: input.managing }])} title="Manage workspace" aria-pressed=${input.managing ? "true" : "false"}>`);
5313
5349
  icon_manage_default({ size: 12 });
5314
5350
  _html(`</button>${_el_resume($scope5_id, "d")}</div>`);
5315
5351
  _script($scope5_id, "t7");
@@ -5317,17 +5353,17 @@ var side_nav_item_default = _template("t", (input) => {
5317
5353
  return 0;
5318
5354
  }
5319
5355
  }, $scope3_id, "k", $sg__input_page, $sg__input_page, $sg__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page, 0, 1);
5320
- _html(`</div><div${_attr_class("_fW")}>`);
5356
+ _html(`</div><div${_attr_class("_fX")}>`);
5321
5357
  _for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
5322
5358
  const $scope9_id = _scope_id();
5323
- _html(`<div${_attr_class(["_fI", { ["_fy"]: s.id === input.currentTab }])}>`);
5359
+ _html(`<div${_attr_class(["_fJ", { ["_fz"]: s.id === input.currentTab }])}>`);
5324
5360
  _if(() => {
5325
5361
  if (renamingId === s.id) {
5326
5362
  const $scope11_id = _scope_id();
5327
5363
  _html(`<span${_attr_class([
5328
5364
  "_t",
5329
5365
  phase[sessionPhase(s.state)],
5330
- "_fU"
5366
+ "_fV"
5331
5367
  ])}></span>${_el_resume($scope11_id, "a", $sg__input_sessions)}`);
5332
5368
  _set_serialize_reason({
5333
5369
  1: $sg__input_sessions,
@@ -5337,17 +5373,17 @@ var side_nav_item_default = _template("t", (input) => {
5337
5373
  icon_agent_default({
5338
5374
  agent: activeAgent(s),
5339
5375
  size: 13,
5340
- class: "_fY"
5376
+ class: "_fZ"
5341
5377
  });
5342
5378
  _html(`<input${_attr_input_value($scope11_id, "c", renameValue, _resume((_new_renameValue) => {
5343
5379
  renameValue = _new_renameValue;
5344
- }, "t0", $scope11_id))}${_attr_class(["_O", "_fV"])} aria-label="Session name">${_el_resume($scope11_id, "c")}`);
5380
+ }, "t0", $scope11_id))}${_attr_class(["_O", "_fW"])} aria-label="Session name">${_el_resume($scope11_id, "c")}`);
5345
5381
  _script($scope11_id, "t8");
5346
5382
  _subscribe($renameValue__closures, writeScope($scope11_id, { b: $si__input_sessions && _existing_scope($childScope3) }));
5347
5383
  return 0;
5348
5384
  } else {
5349
5385
  const $scope10_id = _scope_id();
5350
- _html(`<button${_attr_class("_fX")}><span${_attr_class(["_t", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope10_id, "b", $sg__input_sessions)}`);
5386
+ _html(`<button${_attr_class("_fY")}><span${_attr_class(["_t", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope10_id, "b", $sg__input_sessions)}`);
5351
5387
  _set_serialize_reason({
5352
5388
  1: $sg__input_sessions,
5353
5389
  2: $sg__input_sessions
@@ -5356,9 +5392,9 @@ var side_nav_item_default = _template("t", (input) => {
5356
5392
  icon_agent_default({
5357
5393
  agent: activeAgent(s),
5358
5394
  size: 13,
5359
- class: "_fY"
5395
+ class: "_fZ"
5360
5396
  });
5361
- _html(`<span${_attr_class("_fS")}>${_escape(s.title || activeAgent(s))}${_el_resume($scope10_id, "e", $sg__input_sessions)}</span></button>${_el_resume($scope10_id, "a")}<div${_attr_class("_fT")}><button${_attr_class(rowIcon)} title="Rename session">`);
5397
+ _html(`<span${_attr_class("_fT")}>${_escape(s.title || activeAgent(s))}${_el_resume($scope10_id, "e", $sg__input_sessions)}</span></button>${_el_resume($scope10_id, "a")}<div${_attr_class("_fU")}><button${_attr_class(rowIcon)} title="Rename session">`);
5362
5398
  icon_edit_default({ size: 12 });
5363
5399
  _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>`);
5364
5400
  _script($scope10_id, "t9");
@@ -5540,25 +5576,25 @@ var side_nav_default = _template("u", (input) => {
5540
5576
  const wsSelected = true;
5541
5577
  const otherIds = itemIds.filter((id) => id !== ws.id);
5542
5578
  const listIds = isPage ? [ws.id, ...otherIds] : itemIds;
5543
- _html(`<aside${_attr_class(["_cO", {
5544
- ["_cM"]: !navOpen,
5545
- ["_cN"]: isPage
5579
+ _html(`<aside${_attr_class(["_dr", {
5580
+ ["_dp"]: !navOpen,
5581
+ ["_dq"]: isPage
5546
5582
  }])}${_attr("hidden", view === "diff")}>`);
5547
5583
  _if(() => {
5548
5584
  if (isPage) {
5549
5585
  const $scope1_id = _scope_id();
5550
- _html(`<header${_attr_class("_cR")}><h1${_attr_class("_cS")}>Workspaces</h1><div${_attr_class("_cT")}>`);
5586
+ _html(`<header${_attr_class("_du")}><h1${_attr_class("_dv")}>Workspaces</h1><div${_attr_class("_dw")}>`);
5551
5587
  _if(() => {}, $scope1_id, "d", 1, 1, 1, 0, 1);
5552
5588
  _html(`<button${_attr_class([
5553
5589
  iconBtn$1,
5554
- "_cU",
5555
- { ["_cJ"]: view === "settings" }
5590
+ "_dx",
5591
+ { ["_dm"]: view === "settings" }
5556
5592
  ])} title=Settings aria-pressed=${view === "settings" ? "true" : "false"}>`);
5557
5593
  icon_settings_default({ size: 16 });
5558
5594
  _if(() => {
5559
5595
  if (input.setupReady === false) {
5560
5596
  const $scope10_id = _scope_id();
5561
- _html(`<span${_attr_class(["_t", "_cL"])} title="Machine setup incomplete"></span>`);
5597
+ _html(`<span${_attr_class(["_t", "_do"])} title="Machine setup incomplete"></span>`);
5562
5598
  $si__input_setupReady && writeScope($scope10_id, {});
5563
5599
  return 0;
5564
5600
  }
@@ -5569,13 +5605,13 @@ var side_nav_default = _template("u", (input) => {
5569
5605
  return 0;
5570
5606
  }
5571
5607
  }, $scope0_id, "b", 1, 1, 1, 0, 1);
5572
- _html(`<div${_attr_class("_cX")}>`);
5608
+ _html(`<div${_attr_class("_dA")}>`);
5573
5609
  _for_of(listIds, (wsId) => {
5574
5610
  const $scope2_id = _scope_id();
5575
5611
  _if(() => {
5576
5612
  if (isPage && wsId === ws.id) {
5577
5613
  const $scope11_id = _scope_id();
5578
- _html(`<h2${_attr_class(["_bA", "_cV"])}>Current</h2>`);
5614
+ _html(`<h2${_attr_class(["_bA", "_dy"])}>Current</h2>`);
5579
5615
  writeScope($scope11_id, {});
5580
5616
  return 0;
5581
5617
  }
@@ -5583,7 +5619,7 @@ var side_nav_default = _template("u", (input) => {
5583
5619
  _if(() => {
5584
5620
  if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
5585
5621
  const $scope12_id = _scope_id();
5586
- _html(`<h2${_attr_class(["_bA", "_cV"])}>Other spaces</h2>`);
5622
+ _html(`<h2${_attr_class(["_bA", "_dy"])}>Other spaces</h2>`);
5587
5623
  writeScope($scope12_id, {});
5588
5624
  return 0;
5589
5625
  }
@@ -5681,7 +5717,7 @@ var side_nav_default = _template("u", (input) => {
5681
5717
  railHover = null;
5682
5718
  }, 150);
5683
5719
  }, "u9", $scope3_id);
5684
- _html(`<div${_attr_class("_cY")}>`);
5720
+ _html(`<div${_attr_class("_dB")}>`);
5685
5721
  _for_of(itemIds, (wsId, i) => {
5686
5722
  const $scope4_id = _scope_id();
5687
5723
  _html("<span>");
@@ -5728,7 +5764,7 @@ var side_nav_default = _template("u", (input) => {
5728
5764
  if (railHover) {
5729
5765
  const $scope5_id = _scope_id();
5730
5766
  const hoverId = railHover.id;
5731
- _html(`<div${_attr_class(["_U", "_c1"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
5767
+ _html(`<div${_attr_class(["_U", "_dE"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
5732
5768
  _set_serialize_reason({
5733
5769
  0: 1,
5734
5770
  1: 1,
@@ -5830,7 +5866,7 @@ var side_nav_default = _template("u", (input) => {
5830
5866
  return 0;
5831
5867
  }
5832
5868
  }, $scope0_id, "d");
5833
- _html(`<div${_attr_class("_cZ")}>`);
5869
+ _html(`<div${_attr_class("_dC")}>`);
5834
5870
  _if(() => {
5835
5871
  if (isPage) {
5836
5872
  const $scope6_id = _scope_id();
@@ -5838,7 +5874,7 @@ var side_nav_default = _template("u", (input) => {
5838
5874
  "_i",
5839
5875
  "_j",
5840
5876
  btnLg,
5841
- "_cW"
5877
+ "_dz"
5842
5878
  ])} title="New workspace" aria-pressed=${view === "new" ? "true" : "false"}>`);
5843
5879
  icon_folder_plus_default({ size: 16 });
5844
5880
  _html(` New workspace</button>${_el_resume($scope6_id, "a")}`);
@@ -5861,19 +5897,19 @@ var side_nav_default = _template("u", (input) => {
5861
5897
  return 1;
5862
5898
  }
5863
5899
  }, $scope7_id, "a", 1, 1, 1, "</button>", 1);
5864
- _html(`<div${_attr_class(["_s", "_c0"])}></div>`);
5900
+ _html(`<div${_attr_class(["_s", "_dD"])}></div>`);
5865
5901
  _if(() => {}, $scope7_id, "c", 1, 1, 1, 0, 1);
5866
- _html(`<button${_attr_class([iconBtn$1, { ["_cJ"]: view === "settings" }])} title=Settings aria-pressed=${view === "settings" ? "true" : "false"}>`);
5902
+ _html(`<button${_attr_class([iconBtn$1, { ["_dm"]: view === "settings" }])} title=Settings aria-pressed=${view === "settings" ? "true" : "false"}>`);
5867
5903
  icon_settings_default({ size: 15 });
5868
5904
  _if(() => {
5869
5905
  if (input.setupReady === false) {
5870
5906
  const $scope15_id = _scope_id();
5871
- _html(`<span${_attr_class(["_t", "_cL"])} title="Machine setup incomplete"></span>`);
5907
+ _html(`<span${_attr_class(["_t", "_do"])} title="Machine setup incomplete"></span>`);
5872
5908
  $si__input_setupReady && writeScope($scope15_id, {});
5873
5909
  return 0;
5874
5910
  }
5875
5911
  }, $scope7_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
5876
- _html(`</button>${_el_resume($scope7_id, "d")}<button${_attr_class([iconBtn$1, { ["_cJ"]: view === "new" }])} title="New workspace" aria-pressed=${view === "new" ? "true" : "false"}>`);
5912
+ _html(`</button>${_el_resume($scope7_id, "d")}<button${_attr_class([iconBtn$1, { ["_dm"]: view === "new" }])} title="New workspace" aria-pressed=${view === "new" ? "true" : "false"}>`);
5877
5913
  icon_folder_plus_default({ size: 16 });
5878
5914
  _html(`</button>${_el_resume($scope7_id, "g")}`);
5879
5915
  _script($scope7_id, "u23");
@@ -5938,21 +5974,12 @@ var side_nav_default = _template("u", (input) => {
5938
5974
  });
5939
5975
  _resume_branch($scope0_id);
5940
5976
  });
5941
- //#endregion
5942
- //#region src/client/github.ts
5943
- /** A repo's full name is `[host/]owner/name`; the host segment is present
5944
- * only for GitHub Enterprise (server mirror: github-hosts.ts `splitRepo`). */
5945
- function repoWebUrl(fullName) {
5946
- const parts = fullName.split("/");
5947
- if (parts.length >= 3 && parts[0].includes(".")) return `https://${parts[0]}/${parts.slice(1).join("/")}`;
5948
- return `https://github.com/${fullName}`;
5949
- }
5950
5977
  var iconBtn = "_R _d";
5951
5978
  var sectionCount = "_bn _C _D";
5952
- var content = "_cy _bd";
5953
- var pageMeta = "_cz _bi";
5954
- var pathMeta = "_cC _r";
5955
- var dangerHint = "_cI _M";
5979
+ var content = "_cm _bd";
5980
+ var pageMeta = "_cn _bi";
5981
+ var pathMeta = "_cq _r";
5982
+ var dangerHint = "_cw _M";
5956
5983
  //#endregion
5957
5984
  //#region src/tags/manage-workspace.marko
5958
5985
  var api$2;
@@ -6066,7 +6093,7 @@ var manage_workspace_default = _template("k", (input) => {
6066
6093
  meta: attrTag({ content: _content_resume("k11", () => {
6067
6094
  _scope_reason();
6068
6095
  const $scope8_id = _scope_id();
6069
- _html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_cA")}>${_escape(ws.name)}${_el_resume($scope8_id, "c")}</span>`);
6096
+ _html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_co")}>${_escape(ws.name)}${_el_resume($scope8_id, "c")}</span>`);
6070
6097
  _if(() => {
6071
6098
  if (ws.status !== "active") {
6072
6099
  const $scope11_id = _scope_id();
@@ -6075,7 +6102,7 @@ var manage_workspace_default = _template("k", (input) => {
6075
6102
  return 0;
6076
6103
  }
6077
6104
  }, $scope8_id, "d", 1, 1, 1, 0, 1);
6078
- _html(`<span${_attr_class("_cB")} 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")}`);
6105
+ _html(`<span${_attr_class("_cp")} 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")}`);
6079
6106
  _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) })))));
6080
6107
  _resume_branch($scope8_id);
6081
6108
  }, $scope0_id) })
@@ -6118,7 +6145,7 @@ var manage_workspace_default = _template("k", (input) => {
6118
6145
  _html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("_bo")}>`);
6119
6146
  _for_of(ws.repos, (row) => {
6120
6147
  const $scope1_id = _scope_id();
6121
- _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", "_cE"])}${_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")}`);
6148
+ _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", "_cs"])}${_attr("href", repoWebUrl$1(row.full_name))} target=_blank rel=noopener${_attr("title", `Open ${row.full_name} on GitHub`)}>${_escape(repoLabel(row.full_name))}${_el_resume($scope1_id, "g")}</a>${_el_resume($scope1_id, "f")}`);
6122
6149
  _if(() => {
6123
6150
  if (row.base_branch !== row.default_branch) {
6124
6151
  const $scope12_id = _scope_id();
@@ -6168,7 +6195,7 @@ var manage_workspace_default = _template("k", (input) => {
6168
6195
  return 0;
6169
6196
  }
6170
6197
  }, $scope0_id, "r", 1, 1, 1, 0, 1);
6171
- _html(`<div${_attr_class("_cD")}>`);
6198
+ _html(`<div${_attr_class("_cr")}>`);
6172
6199
  const $childScope3 = _peek_scope_id();
6173
6200
  let refreshCatalog = repo_picker_default({
6174
6201
  exclude: inWorkspace,
@@ -6198,7 +6225,7 @@ var manage_workspace_default = _template("k", (input) => {
6198
6225
  _html(`<span${_attr_class("_bt")}>`);
6199
6226
  _for_of(p.ports, (port) => {
6200
6227
  const $scope17_id = _scope_id();
6201
- _html(`<button${_attr_class(["_m", "_cF"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope17_id, "b")}</button>${_el_resume($scope17_id, "a")}`);
6228
+ _html(`<button${_attr_class(["_m", "_ct"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope17_id, "b")}</button>${_el_resume($scope17_id, "a")}`);
6202
6229
  _script($scope17_id, "k15");
6203
6230
  writeScope($scope17_id, { d: port });
6204
6231
  }, (x) => String(x), $scope16_id, "a", 1, 1, 1, "</span>", 1);
@@ -6218,7 +6245,7 @@ var manage_workspace_default = _template("k", (input) => {
6218
6245
  return 0;
6219
6246
  }
6220
6247
  }, $scope0_id, "v", 1, 1, 1, 0, 1);
6221
- _html(`<section${_attr_class(["_bl", "_cG"])}><div${_attr_class("_bm")}><h2${_attr_class("_bA")}>Workspace</h2></div><div${_attr_class("_cH")}>`);
6248
+ _html(`<section${_attr_class(["_bl", "_cu"])}><div${_attr_class("_bm")}><h2${_attr_class("_bA")}>Workspace</h2></div><div${_attr_class("_cv")}>`);
6222
6249
  _if(() => {
6223
6250
  if (ws.status === "active") {
6224
6251
  const $scope4_id = _scope_id();
@@ -6319,15 +6346,15 @@ var term_find_default = _template("v", (input) => {
6319
6346
  const canStep = hasQuery && open;
6320
6347
  const keybar = input.placement === "keybar";
6321
6348
  _html(`<div${_attr_class([
6322
- "_e2",
6323
- keybar ? "_e4" : "_e3",
6324
- !open && "_e6"
6325
- ])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_eX", keybar ? "_e5" : "_eZ"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
6349
+ "_e7",
6350
+ keybar ? "_e9" : "_e8",
6351
+ !open && "_fa"
6352
+ ])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_e2", keybar ? "_e_" : "_e4"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
6326
6353
  if (!open) return;
6327
6354
  query = v;
6328
6355
  live.query = v;
6329
6356
  run(0);
6330
- }, "v0", $scope0_id))}${_attr_class([findInput, keybar && "_e7"])} 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 && "_e8"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↑</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_e8"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↓</button>${_el_resume($scope0_id, "e")}<button type=button${_attr_class([findIconBtn, keybar && "_e8"])} 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")}`);
6357
+ }, "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")}`);
6331
6358
  _script($scope0_id, "v4");
6332
6359
  _script($scope0_id, "v5");
6333
6360
  _script($scope0_id, "v6");
@@ -6597,7 +6624,7 @@ var term_default = _template("w", (input) => {
6597
6624
  trapOpen = true;
6598
6625
  }
6599
6626
  }, "w14", $scope0_id);
6600
- _html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_c2")}><div${_attr_class("_c3")}></div>${_el_resume($scope0_id, "b")}`);
6627
+ _html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_cK")}><div${_attr_class("_cL")}></div>${_el_resume($scope0_id, "b")}`);
6601
6628
  _if(() => {
6602
6629
  if (findOpen) {
6603
6630
  const $scope12_id = _scope_id();
@@ -6624,7 +6651,7 @@ var term_default = _template("w", (input) => {
6624
6651
  _if(() => {
6625
6652
  if (uploading) {
6626
6653
  const $scope19_id = _scope_id();
6627
- _html(`<div${_attr_class("_c9")}>uploading…</div>`);
6654
+ _html(`<div${_attr_class("_cR")}>uploading…</div>`);
6628
6655
  writeScope($scope19_id, {});
6629
6656
  return 0;
6630
6657
  }
@@ -6632,7 +6659,7 @@ var term_default = _template("w", (input) => {
6632
6659
  _if(() => {
6633
6660
  if (copiedFlash) {
6634
6661
  const $scope20_id = _scope_id();
6635
- _html(`<div${_attr_class("_c8")}>Copied</div>`);
6662
+ _html(`<div${_attr_class("_cQ")}>Copied</div>`);
6636
6663
  writeScope($scope20_id, {});
6637
6664
  return 0;
6638
6665
  }
@@ -6641,7 +6668,7 @@ var term_default = _template("w", (input) => {
6641
6668
  _if(() => {
6642
6669
  if (trapOpen) {
6643
6670
  const $scope11_id = _scope_id();
6644
- _html(`<div${_attr_class("_c_")}><div${_attr_class("_da")}><p${_attr_class("_dD")}>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")}`);
6671
+ _html(`<div${_attr_class("_cS")}><div${_attr_class("_cT")}><p${_attr_class("_dl")}>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")}`);
6645
6672
  _script($scope11_id, "w24");
6646
6673
  _script($scope11_id, "w25");
6647
6674
  writeScope($scope11_id, {});
@@ -6747,7 +6774,7 @@ var work_view_default = _template("z", (input) => {
6747
6774
  let DiffView = null;
6748
6775
  const loadDiffView = _resume(() => {
6749
6776
  if (DiffView) return;
6750
- import("./_DvTZBSt5.js").then((m) => {
6777
+ import("./_ChewfKaJ.js").then((m) => {
6751
6778
  DiffView = m.default;
6752
6779
  });
6753
6780
  }, "z4", $scope0_id);
@@ -7300,6 +7327,7 @@ var page_boot_default = _template("n", (input) => {
7300
7327
  let openIds = selectedId ? [selectedId] : [];
7301
7328
  let creating = false;
7302
7329
  let setup = boot.setup;
7330
+ setPrimaryHost(boot.setup?.github);
7303
7331
  let showSetup = !!boot.setup && !boot.setup.ready && boot.prefs["setup-later"] !== "1";
7304
7332
  let error = null;
7305
7333
  const applyWorkspaces = _resume((list) => {
@@ -7537,31 +7565,31 @@ var page_boot_default = _template("n", (input) => {
7537
7565
  _script($scope0_id, "n25");
7538
7566
  writeScope($scope0_id, {
7539
7567
  l: boot?.prefs,
7540
- p: workspaces,
7541
- q: status,
7542
- r: settings,
7543
- u: selectedId,
7544
- v: openIds,
7545
- y: creating,
7546
- z: setup,
7547
- a0: showSetup,
7548
- a2: error,
7549
- a3: applyWorkspaces,
7550
- a4: load,
7551
- a5: patchStatusSessions,
7552
- a7: statusMem.fresh,
7553
- a8: statusMem.run,
7554
- aa: loadStatus,
7555
- ab: openWorkspace,
7556
- aj: $error__closures,
7557
- ad: $workspaces__closures,
7558
- ae: $status__closures,
7559
- af: $settings__closures,
7560
- ag: $selectedId__closures,
7561
- ah: $creating__closures,
7562
- ai: $setup2__closures,
7563
- ak: $applyWorkspaces2__closures,
7564
- al: $openWorkspace2__closures
7568
+ q: workspaces,
7569
+ r: status,
7570
+ s: settings,
7571
+ v: selectedId,
7572
+ w: openIds,
7573
+ z: creating,
7574
+ a0: setup,
7575
+ a1: showSetup,
7576
+ a3: error,
7577
+ a4: applyWorkspaces,
7578
+ a5: load,
7579
+ a6: patchStatusSessions,
7580
+ a8: statusMem.fresh,
7581
+ a9: statusMem.run,
7582
+ ab: loadStatus,
7583
+ ac: openWorkspace,
7584
+ ak: $error__closures,
7585
+ ae: $workspaces__closures,
7586
+ af: $status__closures,
7587
+ ag: $settings__closures,
7588
+ ah: $selectedId__closures,
7589
+ ai: $creating__closures,
7590
+ aj: $setup2__closures,
7591
+ al: $applyWorkspaces2__closures,
7592
+ am: $openWorkspace2__closures
7565
7593
  });
7566
7594
  _resume_branch($scope0_id);
7567
7595
  });
@@ -8894,7 +8922,8 @@ var Body = /* @__PURE__ */ object({
8894
8922
  "install",
8895
8923
  "update",
8896
8924
  "remove",
8897
- "auth"
8925
+ "auth",
8926
+ "logout"
8898
8927
  ]),
8899
8928
  version: /* @__PURE__ */ optional(/* @__PURE__ */ string())
8900
8929
  });
@@ -15019,4 +15048,4 @@ server.listen(port, () => {
15019
15048
  //#endregion
15020
15049
  export {};
15021
15050
 
15022
- ;var __MARKO_MANIFEST__={"esfPH6H":{"block":[2,"stylesheet#/assets/index-I2jhJMJc.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/index-I2jhJMJc.css\"",">"],"defer":[2,"/assets/index-CMhO9RSz.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/index-CMhO9RSz.js\"","></script>"]}};
15051
+ ;var __MARKO_MANIFEST__={"esfPH6H":{"block":[2,"stylesheet#/assets/index-D1yXf_HO.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/index-D1yXf_HO.css\"",">"],"defer":[2,"/assets/index-BlSd7rYn.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/index-BlSd7rYn.js\"","></script>"]}};