@dylanpiercey/work 0.0.118 → 0.0.119

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 (246) hide show
  1. package/dist/{_CeVZfkIY.js → _BIhoUpsW.js} +76 -93
  2. package/dist/{_EzN3zMKL.js → _BOIUqihs.js} +35 -18
  3. package/dist/index.mjs +794 -977
  4. package/dist/public/assets/{_HSgzwAmZ.js → _1bmjwuWH.js} +1 -1
  5. package/dist/public/assets/_1bmjwuWH.js.br +0 -0
  6. package/dist/public/assets/{_J22ldpof.js → _5YlmpA6X.js} +1 -1
  7. package/dist/public/assets/_5YlmpA6X.js.br +0 -0
  8. package/dist/public/assets/{_DoWF8ByT2.js → _AqmX0pBH2.js} +1 -1
  9. package/dist/public/assets/_AqmX0pBH2.js.br +0 -0
  10. package/dist/public/assets/{_BmJ9IUv4.js → _B2LXCPdE.js} +1 -1
  11. package/dist/public/assets/_B2LXCPdE.js.br +0 -0
  12. package/dist/public/assets/{_DglnXAKo.js → _B2g0gJmZ.js} +1 -1
  13. package/dist/public/assets/_B2g0gJmZ.js.br +0 -0
  14. package/dist/public/assets/_B62GzYdT.js +1536 -0
  15. package/dist/public/assets/_B62GzYdT.js.br +0 -0
  16. package/dist/public/assets/{_j9TQP7q5.js → _B7w9Jp5h.js} +1 -1
  17. package/dist/public/assets/_B7w9Jp5h.js.br +0 -0
  18. package/dist/public/assets/{_CE6eJWkd.js → _BD68UZIf.js} +1 -1
  19. package/dist/public/assets/_BD68UZIf.js.br +0 -0
  20. package/dist/public/assets/{_JVw8w_7p2.js → _BD9TBsnM2.js} +1 -1
  21. package/dist/public/assets/_BD9TBsnM2.js.br +0 -0
  22. package/dist/public/assets/{_CdAkLhxG.js → _BE3wNPJo.js} +1 -1
  23. package/dist/public/assets/_BE3wNPJo.js.br +0 -0
  24. package/dist/public/assets/{_DkxpDwXy.js → _BNQgBkwF.js} +1 -1
  25. package/dist/public/assets/_BNQgBkwF.js.br +0 -0
  26. package/dist/public/assets/{_C4B_GVHB.js → _BRiOyxeF.js} +1 -1
  27. package/dist/public/assets/_BRiOyxeF.js.br +0 -0
  28. package/dist/public/assets/{_6hN6Ymx42.js → _BSsp7Z4i2.js} +1 -1
  29. package/dist/public/assets/_BSsp7Z4i2.js.br +0 -0
  30. package/dist/public/assets/{_J98Rxkdb2.js → _BYYDEuFR2.js} +1 -1
  31. package/dist/public/assets/_BYYDEuFR2.js.br +0 -0
  32. package/dist/public/assets/{_x_T0NsDl.js → _BgnvPND_.js} +1 -1
  33. package/dist/public/assets/_BgnvPND_.js.br +0 -0
  34. package/dist/public/assets/{_akTAmktB.js → _Bhwci4Zy.js} +1 -1
  35. package/dist/public/assets/_Bhwci4Zy.js.br +0 -0
  36. package/dist/public/assets/{_BjeXgSse.js → _BijwdXvp.js} +1 -1
  37. package/dist/public/assets/_BijwdXvp.js.br +0 -0
  38. package/dist/public/assets/{_C7wuWtJ1.js → _BkTJUq-u.js} +1 -1
  39. package/dist/public/assets/{_BJjI-m6s2.js → _BlVrxgss2.js} +1 -1
  40. package/dist/public/assets/_BlVrxgss2.js.br +0 -0
  41. package/dist/public/assets/{_CsM5ftwz2.js → _Bp1b0XWB2.js} +1 -1
  42. package/dist/public/assets/_Bp1b0XWB2.js.br +0 -0
  43. package/dist/public/assets/{_BbB3wFGa.js → _Bq2fn_8D.js} +1 -1
  44. package/dist/public/assets/_Bq2fn_8D.js.br +0 -0
  45. package/dist/public/assets/{_Cf4M5kpG.js → _BsOtzbIC.js} +1 -1
  46. package/dist/public/assets/_BsOtzbIC.js.br +0 -0
  47. package/dist/public/assets/{_CpuBCvd6.js → _Bsk9ewWF.js} +1 -1
  48. package/dist/public/assets/_Bsk9ewWF.js.br +0 -0
  49. package/dist/public/assets/{_Ar4UEz40.js → _Btt4k5w3.js} +1 -1
  50. package/dist/public/assets/_Btt4k5w3.js.br +0 -0
  51. package/dist/public/assets/{_DIBThzVN.js → _C8DWM9rr.js} +1 -1
  52. package/dist/public/assets/_C8DWM9rr.js.br +0 -0
  53. package/dist/public/assets/{_CK9tV5oJ.js → _CEWjw4lq.js} +1 -1
  54. package/dist/public/assets/_CEWjw4lq.js.br +0 -0
  55. package/dist/public/assets/{_CHWTX_c6.js → _CGOYaUuV.js} +1 -1
  56. package/dist/public/assets/_CGOYaUuV.js.br +0 -0
  57. package/dist/public/assets/{_Bk7GDGa82.js → _CIFN7c1t2.js} +1 -1
  58. package/dist/public/assets/_CIFN7c1t2.js.br +0 -0
  59. package/dist/public/assets/{_DJEzPcA82.js → _CJT7ujcv2.js} +1 -1
  60. package/dist/public/assets/_CJT7ujcv2.js.br +0 -0
  61. package/dist/public/assets/{_BtxdHY0V2.js → _CUjnrp_u2.js} +1 -1
  62. package/dist/public/assets/_CUjnrp_u2.js.br +0 -0
  63. package/dist/public/assets/{_6nWMLOH4.js → _CWNv7bdi.js} +1 -1
  64. package/dist/public/assets/_CWNv7bdi.js.br +0 -0
  65. package/dist/public/assets/{_DAGSDF8g2.js → _CXQ_K2Vh2.js} +1 -1
  66. package/dist/public/assets/_CXQ_K2Vh2.js.br +0 -0
  67. package/dist/public/assets/{_CUgERK7S.js → _CZejW_fq.js} +1 -1
  68. package/dist/public/assets/_CZejW_fq.js.br +0 -0
  69. package/dist/public/assets/{_CtcH3ZyQ2.js → _CZzZOY4P2.js} +1 -1
  70. package/dist/public/assets/_CZzZOY4P2.js.br +0 -0
  71. package/dist/public/assets/{_CoGdSkvu.js → _CegJB2vl.js} +1 -1
  72. package/dist/public/assets/_CegJB2vl.js.br +0 -0
  73. package/dist/public/assets/{_BjVuWYXf.js → _CkuVE2zK.js} +1 -1
  74. package/dist/public/assets/_CkuVE2zK.js.br +0 -0
  75. package/dist/public/assets/{_Bu7Rb2KV.js → _CnKbN1QV.js} +1 -1
  76. package/dist/public/assets/_CnKbN1QV.js.br +0 -0
  77. package/dist/public/assets/{_DLBE7zID.js → _CoStmjbL.js} +1 -1
  78. package/dist/public/assets/_CoStmjbL.js.br +0 -0
  79. package/dist/public/assets/{_CZ0_xhSs2.js → _Cp-yobQE2.js} +1 -1
  80. package/dist/public/assets/{_BXK6LHvo2.js → _CpRKjPVO2.js} +1 -1
  81. package/dist/public/assets/_CpRKjPVO2.js.br +0 -0
  82. package/dist/public/assets/{_B6RbG5-A.js → _CqDb111T.js} +1 -1
  83. package/dist/public/assets/_CqDb111T.js.br +0 -0
  84. package/dist/public/assets/{_D5qcTAVE2.js → _Ctuh4IDL2.js} +1 -1
  85. package/dist/public/assets/_Ctuh4IDL2.js.br +0 -0
  86. package/dist/public/assets/{_CV5RGu5i.js → _Cv9Hgy8P.js} +1 -1
  87. package/dist/public/assets/_Cv9Hgy8P.js.br +0 -0
  88. package/dist/public/assets/{_5MxjuuKr.js → _CvnxxlPb.js} +1 -1
  89. package/dist/public/assets/_CvnxxlPb.js.br +0 -0
  90. package/dist/public/assets/{_B0HJN5ud2.js → _Cym2lUeD2.js} +1 -1
  91. package/dist/public/assets/_Cym2lUeD2.js.br +0 -0
  92. package/dist/public/assets/{_Dh3HoKhq.js → _CzI2QhH4.js} +1 -1
  93. package/dist/public/assets/_CzI2QhH4.js.br +0 -0
  94. package/dist/public/assets/{_gHuYn_71.js → _D8raMSvy.js} +1 -1
  95. package/dist/public/assets/_D8raMSvy.js.br +0 -0
  96. package/dist/public/assets/{_xVSWwNNy.js → _DBJ43cPF.js} +1 -1
  97. package/dist/public/assets/_DBJ43cPF.js.br +0 -0
  98. package/dist/public/assets/{_BO_BKeKC.js → _DKciAPQl.js} +1 -1
  99. package/dist/public/assets/_DKciAPQl.js.br +0 -0
  100. package/dist/public/assets/{_B-wISkbs.js → _DMHXo8uX.js} +1 -1
  101. package/dist/public/assets/_DMHXo8uX.js.br +0 -0
  102. package/dist/public/assets/{_BicOIlC8.js → _DO4n-NwM.js} +1 -1
  103. package/dist/public/assets/_DO4n-NwM.js.br +0 -0
  104. package/dist/public/assets/{_BJz-Y1HI.js → _DS628Dnv.js} +1 -1
  105. package/dist/public/assets/_DS628Dnv.js.br +0 -0
  106. package/dist/public/assets/{_Cpm5RoWi.js → _DYngS949.js} +1 -1
  107. package/dist/public/assets/_DYngS949.js.br +0 -0
  108. package/dist/public/assets/{_C4tiWhG4.js → _Dhu480me.js} +1 -1
  109. package/dist/public/assets/_Dhu480me.js.br +0 -0
  110. package/dist/public/assets/{_TbUx96Br.js → _DlZyjzE_.js} +1 -1
  111. package/dist/public/assets/_DlZyjzE_.js.br +0 -0
  112. package/dist/public/assets/{_B7n-BASn2.js → _Dni1s_3Q2.js} +1 -1
  113. package/dist/public/assets/{_BHhGmIxX2.js → _DtLQVzKB2.js} +1 -1
  114. package/dist/public/assets/_DtLQVzKB2.js.br +0 -0
  115. package/dist/public/assets/{_B7cCygGe.js → _Du5pjG7G.js} +1 -1
  116. package/dist/public/assets/_Du5pjG7G.js.br +0 -0
  117. package/dist/public/assets/{_BVhnP3T6.js → _Dzy9r1lm.js} +1 -1
  118. package/dist/public/assets/_Dzy9r1lm.js.br +0 -0
  119. package/dist/public/assets/{_CYemOBLN.js → _ER-_pvil.js} +1 -1
  120. package/dist/public/assets/_ER-_pvil.js.br +0 -0
  121. package/dist/public/assets/{_A2tLqg9y2.js → _LUNsNRnJ2.js} +1 -1
  122. package/dist/public/assets/_LUNsNRnJ2.js.br +0 -0
  123. package/dist/public/assets/{_BBPUNQgX.js → _MofKWwY9.js} +1 -1
  124. package/dist/public/assets/_MofKWwY9.js.br +0 -0
  125. package/dist/public/assets/{_CyDfS08K.js → _N0vzdKCD.js} +1 -1
  126. package/dist/public/assets/_N0vzdKCD.js.br +0 -0
  127. package/dist/public/assets/{_dFDJ9A9g2.js → _O8R4l7yw2.js} +1 -1
  128. package/dist/public/assets/_O8R4l7yw2.js.br +0 -0
  129. package/dist/public/assets/{_tshHvoEk.js → _Rf_7ZEPL.js} +1 -1
  130. package/dist/public/assets/_Rf_7ZEPL.js.br +0 -0
  131. package/dist/public/assets/_RhYe7Uqa.js +86 -0
  132. package/dist/public/assets/_RhYe7Uqa.js.br +0 -0
  133. package/dist/public/assets/{_C_mUeGVh2.js → _T2999saD2.js} +1 -1
  134. package/dist/public/assets/_T2999saD2.js.br +0 -0
  135. package/dist/public/assets/{_JoWlQVpX.js → _XgOGaUKD.js} +1 -1
  136. package/dist/public/assets/_XgOGaUKD.js.br +0 -0
  137. package/dist/public/assets/{_BzIW49zC.js → _c1YZLlfE.js} +1 -1
  138. package/dist/public/assets/_c1YZLlfE.js.br +0 -0
  139. package/dist/public/assets/{_BYPDDEEO2.js → _duTaTgEk2.js} +1 -1
  140. package/dist/public/assets/_duTaTgEk2.js.br +0 -0
  141. package/dist/public/assets/{_CYUpTPHg2.js → _iDn41XPe2.js} +1 -1
  142. package/dist/public/assets/_iDn41XPe2.js.br +0 -0
  143. package/dist/public/assets/{_Cb-dgrCB.js → _l9vJoVeP.js} +1 -1
  144. package/dist/public/assets/_l9vJoVeP.js.br +0 -0
  145. package/dist/public/assets/{_C1oox0_T.js → _qj_i_cqe.js} +1 -1
  146. package/dist/public/assets/_qj_i_cqe.js.br +0 -0
  147. package/dist/public/assets/{_DP-5FfqK2.js → _szXVEFuj2.js} +1 -1
  148. package/dist/public/assets/_szXVEFuj2.js.br +0 -0
  149. package/dist/public/assets/{_BLeHC7zC2.js → _yTOoKAfM2.js} +1 -1
  150. package/dist/public/assets/_yTOoKAfM2.js.br +0 -0
  151. package/dist/public/assets/{_CQRIuNJi.js → _zPAwS_-H.js} +1 -1
  152. package/dist/public/assets/_zPAwS_-H.js.br +0 -0
  153. package/dist/public/assets/app-page-BXbewHHv.css +1 -0
  154. package/dist/public/assets/app-page-BXbewHHv.css.br +0 -0
  155. package/dist/public/assets/diff-view-BJ1RAVYB.css +1 -0
  156. package/dist/public/assets/diff-view-BJ1RAVYB.css.br +0 -0
  157. package/dist/public/assets/new-DUXTU7jB.js +1 -0
  158. package/dist/public/assets/settings-DUXTU7jB.js +1 -0
  159. package/dist/public/assets/w-DUXTU7jB.js +1 -0
  160. package/dist/public/assets/w._-DUXTU7jB.js +1 -0
  161. package/dist/public/assets/w._-bwrmfhu0.js +1 -0
  162. package/package.json +1 -1
  163. package/dist/public/assets/_5MxjuuKr.js.br +0 -0
  164. package/dist/public/assets/_6hN6Ymx42.js.br +0 -0
  165. package/dist/public/assets/_6nWMLOH4.js.br +0 -0
  166. package/dist/public/assets/_A2tLqg9y2.js.br +0 -0
  167. package/dist/public/assets/_Ar4UEz40.js.br +0 -0
  168. package/dist/public/assets/_B-wISkbs.js.br +0 -0
  169. package/dist/public/assets/_B0HJN5ud2.js.br +0 -0
  170. package/dist/public/assets/_B6RbG5-A.js.br +0 -0
  171. package/dist/public/assets/_B7cCygGe.js.br +0 -0
  172. package/dist/public/assets/_BBPUNQgX.js.br +0 -0
  173. package/dist/public/assets/_BHhGmIxX2.js.br +0 -0
  174. package/dist/public/assets/_BJjI-m6s2.js.br +0 -0
  175. package/dist/public/assets/_BJz-Y1HI.js.br +0 -0
  176. package/dist/public/assets/_BLeHC7zC2.js.br +0 -0
  177. package/dist/public/assets/_BO_BKeKC.js.br +0 -0
  178. package/dist/public/assets/_BVhnP3T6.js.br +0 -0
  179. package/dist/public/assets/_BXK6LHvo2.js.br +0 -0
  180. package/dist/public/assets/_BYPDDEEO2.js.br +0 -0
  181. package/dist/public/assets/_BbB3wFGa.js.br +0 -0
  182. package/dist/public/assets/_BicOIlC8.js.br +0 -0
  183. package/dist/public/assets/_BjVuWYXf.js.br +0 -0
  184. package/dist/public/assets/_BjeXgSse.js.br +0 -0
  185. package/dist/public/assets/_Bk7GDGa82.js.br +0 -0
  186. package/dist/public/assets/_BmJ9IUv4.js.br +0 -0
  187. package/dist/public/assets/_BtxdHY0V2.js.br +0 -0
  188. package/dist/public/assets/_Bu7Rb2KV.js.br +0 -0
  189. package/dist/public/assets/_BzIW49zC.js.br +0 -0
  190. package/dist/public/assets/_C1oox0_T.js.br +0 -0
  191. package/dist/public/assets/_C45kLCWD.js +0 -1536
  192. package/dist/public/assets/_C45kLCWD.js.br +0 -0
  193. package/dist/public/assets/_C4B_GVHB.js.br +0 -0
  194. package/dist/public/assets/_C4tiWhG4.js.br +0 -0
  195. package/dist/public/assets/_CE6eJWkd.js.br +0 -0
  196. package/dist/public/assets/_CHWTX_c6.js.br +0 -0
  197. package/dist/public/assets/_CK9tV5oJ.js.br +0 -0
  198. package/dist/public/assets/_CQRIuNJi.js.br +0 -0
  199. package/dist/public/assets/_CUgERK7S.js.br +0 -0
  200. package/dist/public/assets/_CV5RGu5i.js.br +0 -0
  201. package/dist/public/assets/_CVtWHYIm.js +0 -86
  202. package/dist/public/assets/_CVtWHYIm.js.br +0 -0
  203. package/dist/public/assets/_CYUpTPHg2.js.br +0 -0
  204. package/dist/public/assets/_CYemOBLN.js.br +0 -0
  205. package/dist/public/assets/_C_mUeGVh2.js.br +0 -0
  206. package/dist/public/assets/_Cb-dgrCB.js.br +0 -0
  207. package/dist/public/assets/_CdAkLhxG.js.br +0 -0
  208. package/dist/public/assets/_Cf4M5kpG.js.br +0 -0
  209. package/dist/public/assets/_CoGdSkvu.js.br +0 -0
  210. package/dist/public/assets/_Cpm5RoWi.js.br +0 -0
  211. package/dist/public/assets/_CpuBCvd6.js.br +0 -0
  212. package/dist/public/assets/_CsM5ftwz2.js.br +0 -0
  213. package/dist/public/assets/_CtcH3ZyQ2.js.br +0 -0
  214. package/dist/public/assets/_CyDfS08K.js.br +0 -0
  215. package/dist/public/assets/_D5qcTAVE2.js.br +0 -0
  216. package/dist/public/assets/_DAGSDF8g2.js.br +0 -0
  217. package/dist/public/assets/_DIBThzVN.js.br +0 -0
  218. package/dist/public/assets/_DJEzPcA82.js.br +0 -0
  219. package/dist/public/assets/_DLBE7zID.js.br +0 -0
  220. package/dist/public/assets/_DP-5FfqK2.js.br +0 -0
  221. package/dist/public/assets/_DglnXAKo.js.br +0 -0
  222. package/dist/public/assets/_Dh3HoKhq.js.br +0 -0
  223. package/dist/public/assets/_DkxpDwXy.js.br +0 -0
  224. package/dist/public/assets/_DoWF8ByT2.js.br +0 -0
  225. package/dist/public/assets/_HSgzwAmZ.js.br +0 -0
  226. package/dist/public/assets/_J22ldpof.js.br +0 -0
  227. package/dist/public/assets/_J98Rxkdb2.js.br +0 -0
  228. package/dist/public/assets/_JVw8w_7p2.js.br +0 -0
  229. package/dist/public/assets/_JoWlQVpX.js.br +0 -0
  230. package/dist/public/assets/_TbUx96Br.js.br +0 -0
  231. package/dist/public/assets/_akTAmktB.js.br +0 -0
  232. package/dist/public/assets/_dFDJ9A9g2.js.br +0 -0
  233. package/dist/public/assets/_gHuYn_71.js.br +0 -0
  234. package/dist/public/assets/_j9TQP7q5.js.br +0 -0
  235. package/dist/public/assets/_tshHvoEk.js.br +0 -0
  236. package/dist/public/assets/_xVSWwNNy.js.br +0 -0
  237. package/dist/public/assets/_x_T0NsDl.js.br +0 -0
  238. package/dist/public/assets/app-page-LDZ2KXKs.css +0 -1
  239. package/dist/public/assets/app-page-LDZ2KXKs.css.br +0 -0
  240. package/dist/public/assets/diff-view-0Uofj0Dv.css +0 -1
  241. package/dist/public/assets/diff-view-0Uofj0Dv.css.br +0 -0
  242. package/dist/public/assets/new-CwlftYMt.js +0 -1
  243. package/dist/public/assets/settings-CwlftYMt.js +0 -1
  244. package/dist/public/assets/w-CwlftYMt.js +0 -1
  245. package/dist/public/assets/w._-BGFF38Oe.js +0 -1
  246. package/dist/public/assets/w._-CwlftYMt.js +0 -1
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 setSetting, A as setScrapedPhase, B as saveSubscription, C as agentBadge, D as agentMeta, E as agentLabel, F as manifest, G as agentChoices, H as subscribe, I as normalizeAccent, J as enabledAgents, K as allPrefs, L as setInstance, M as ACCENT_RE, N as getInstance, O as clearAgentPhase, P as iconSvg, Q as setPref, R as deleteSubscription, S as blankRow, T as agentFromCommand, U as subscriberCount, V as publish, W as subscriberJoins, X as preferredAgent, Y as getSetting, Z as setDisabledAgents, _ as tmuxName, _t as run, a as ensureTmuxServer, at as which, b as readHookPayload, c as killWorkspaceSessions, ct as agentById, d as newSessionArgs, dt as db, et as discoverAgents, ft as get, g as sessionStates, gt as git, h as sendToSession, ht as gh, i as disposeSessions, it as setupPath, j as setSessionViewers, k as setAgentPhase, l as listSessions, lt as toolById, m as renameSession, mt as TMUX_SOCKET, n as clearTmuxStarted, nt as ghKnownHosts, o as getSession, ot as DEFAULT_GITHUB_HOST, p as panePids, pt as workspacePath, q as disabledAgents, r as createSession, rt as miseVersions, s as killSession, st as TOOLS, t as cleanEnv, tt as doctor, u as markTmuxStarted, ut as all, v as tmuxWasStarted, vt as tmux, w as agentFamily, x as reportsWorking, y as AGENTS, yt as config, z as pushPublicKey } from "./_DE2RUdbF.js";
3
- import { $ as _content, A as repoLabel, At as attrTag, B as phase, C as sideNavOpen, Ct as _serialize_if, D as icon_xmark_default, Dt as _to_text, E as toast_default, Et as _template, H as $global, I as iconBtnRow, J as _attr_or, K as _attr_input_value, L as iconBtnXs, M as setPrimaryHost, Mt as withPageAssets, N as btnLg, Nt as writeScope, O as icon_base_default, Ot as _trailers, P as btnSm, Q as _attrs_partial, R as inputLg, S as setWorkspaceTab, St as _serialize_guard, T as workspaceTab, Tt as _subscribe, U as _attr, V as tone, W as _attr_class, X as _attr_style, Y as _attr_select_value, Z as _attrs, _t as _scope_id, at as _escape, bt as _script, c as icon_arrow_up_default, ct as _for_of, d as iconBtn$2, dt as _html, et as _content_resume, f as row, ft as _id, gt as _resume_branch, ht as _resume, i as icon_sidebar_default, it as _el_resume, j as repoWebUrl$1, jt as forOf, k as parseRepoUrl, kt as _var, l as icon_back_default, lt as _hoist, mt as _peek_scope_id, n as findIconBtn, o as rankRepos, ot as _existing_scope, p as sectionCount$1, pt as _if, q as _attr_option_value, r as findInput, rt as _el_read_error, s as icon_search_default, st as _flush_head, t as icon_arrow_down_default, tt as _dynamic_tag, u as icon_refresh_default, ut as _hoist_read_error, v as ignoredSsoOrgs, vt as _scope_reason, w as theme, wt as _set_serialize_reason, x as setTheme, xt as _sep, yt as _scope_with_id, z as metaTrunc } from "./_EzN3zMKL.js";
3
+ import { $ as _attrs_partial, A as parseRepoUrl, At as _var, B as metaTrunc, C as setWorkspaceTab, Ct as _serialize_guard, D as toast_default, Dt as _template, E as workspaceTab, Et as _subscribe, F as btnSm, G as _attr_class, H as tone, J as _attr_option_value, L as iconBtnRow, M as repoWebUrl$1, Mt as forOf, N as setPrimaryHost, Nt as withPageAssets, O as icon_xmark_default, Ot as _to_text, P as btnLg, Pt as writeScope, Q as _attrs, R as iconBtnXs, S as setTheme, St as _sep, T as theme, Tt as _set_serialize_reason, U as $global, V as phase, W as _attr, X as _attr_select_value, Y as _attr_or, Z as _attr_style, _t as _resume_branch, at as _el_resume, bt as _scope_with_id, c as icon_arrow_up_default, ct as _flush_head, d as icon_refresh_default, dt as _hoist_read_error, et as _content, f as iconBtn$2, ft as _html, gt as _resume, ht as _peek_scope_id, i as icon_sidebar_default, it as _el_read_error, j as repoLabel, jt as attrTag, k as icon_base_default, kt as _trailers, l as icon_chevron_right_default, lt as _for_of, m as sectionCount$1, mt as _if, n as findIconBtn, nt as _dynamic_tag, o as rankRepos, ot as _escape, p as row, pt as _id, q as _attr_input_value, r as findInput, s as icon_search_default, st as _existing_scope, t as icon_arrow_down_default, tt as _content_resume, u as icon_back_default, ut as _hoist, vt as _scope_id, w as sideNavOpen, wt as _serialize_if, xt as _script, y as ignoredSsoOrgs, yt as _scope_reason, z as inputLg } from "./_BOIUqihs.js";
4
4
  import fs from "node:fs";
5
5
  import { createServer } from "node:http";
6
6
  import path from "node:path";
@@ -1619,7 +1619,7 @@ function swr(ttlMs, load, seed) {
1619
1619
  }
1620
1620
  //#endregion
1621
1621
  //#region src/server/github.ts
1622
- var TTL_MS$3 = 9e5;
1622
+ var TTL_MS$4 = 9e5;
1623
1623
  /** github.com keeps the historical file name; Enterprise hosts get their own. */
1624
1624
  var cachePath = (host) => path.join(config.dataDir, host === DEFAULT_HOST ? "repos.json" : `repos.${host}.json`);
1625
1625
  /**
@@ -1644,7 +1644,7 @@ async function repoCatalog(refresh = false) {
1644
1644
  ...sso.length ? { sso } : {}
1645
1645
  };
1646
1646
  }
1647
- var catalog = swr(TTL_MS$3, fetchCatalog, readDiskCache);
1647
+ var catalog = swr(TTL_MS$4, fetchCatalog, readDiskCache);
1648
1648
  function readDiskCache(host) {
1649
1649
  try {
1650
1650
  const cached = JSON.parse(fs.readFileSync(cachePath(host), "utf8"));
@@ -3119,7 +3119,7 @@ function head1(context) {
3119
3119
  }
3120
3120
  //#endregion
3121
3121
  //#region src/server/usage/index.ts
3122
- var TTL_MS$2 = 6e4;
3122
+ var TTL_MS$3 = 6e4;
3123
3123
  /** Plan/quota usage across every agent account this machine is signed into.
3124
3124
  *
3125
3125
  * Each provider is one blocking HTTPS round trip against the same endpoint its
@@ -3138,7 +3138,7 @@ function staleSeconds(source) {
3138
3138
  const match = /^stale-cache\s+(\d+)s/.exec(source);
3139
3139
  return match ? Number(match[1]) : void 0;
3140
3140
  }
3141
- var cached$2 = swr(TTL_MS$2, (_key, _refresh) => collect());
3141
+ var cached$2 = swr(TTL_MS$3, (_key, _refresh) => collect());
3142
3142
  function shape(rows) {
3143
3143
  return { agents: rows.map((row) => ({
3144
3144
  agent: row.agent,
@@ -3202,7 +3202,7 @@ async function graphql(query, host = DEFAULT_HOST) {
3202
3202
  }
3203
3203
  //#endregion
3204
3204
  //#region src/server/prs.ts
3205
- var TTL_MS$1 = 12e4;
3205
+ var TTL_MS$2 = 12e4;
3206
3206
  /** PRs whose head is the workspace branch or one of its `-topic` lanes.
3207
3207
  * `exclude` lists other workspaces' branches — slugs are user-chosen, so
3208
3208
  * another workspace's branch can extend this prefix and its PRs must not
@@ -3219,7 +3219,7 @@ var branchKey = (fullName, branch) => `${fullName}#${branch}`;
3219
3219
  * a recency window over all of a repo's PRs, fetched roughly twice what it
3220
3220
  * kept here and still aged a quiet workspace out on a busy repo.
3221
3221
  * Key: `fullName#branch`. */
3222
- var branchPrs = swr(TTL_MS$1, async (key, refresh) => {
3222
+ var branchPrs = swr(TTL_MS$2, async (key, refresh) => {
3223
3223
  const sep = key.indexOf("#");
3224
3224
  const fullName = key.slice(0, sep);
3225
3225
  const { host, name } = splitRepo(fullName);
@@ -3449,20 +3449,20 @@ var exists = (file) => fsp.stat(file).then(() => true, () => false);
3449
3449
  var isDir = (file) => fsp.stat(file).then((s) => s.isDirectory(), () => false);
3450
3450
  //#endregion
3451
3451
  //#region src/server/status.ts
3452
- var TTL_MS = 2e3;
3452
+ var TTL_MS$1 = 2e3;
3453
3453
  var snapshot$2 = null;
3454
- var inflight = null;
3454
+ var inflight$1 = null;
3455
3455
  var snapshotGen = 0;
3456
3456
  /** Drop the cached snapshot AND detach any in-flight compute — callers
3457
3457
  * after an invalidation get a computation that starts from fresh state. */
3458
3458
  function invalidateSnapshot() {
3459
3459
  snapshot$2 = null;
3460
3460
  snapshotGen++;
3461
- inflight = null;
3461
+ inflight$1 = null;
3462
3462
  }
3463
3463
  function statusForAll() {
3464
- if (snapshot$2 && Date.now() - snapshot$2.at < TTL_MS) return Promise.resolve(snapshot$2.value);
3465
- if (!inflight) {
3464
+ if (snapshot$2 && Date.now() - snapshot$2.at < TTL_MS$1) return Promise.resolve(snapshot$2.value);
3465
+ if (!inflight$1) {
3466
3466
  const gen = snapshotGen;
3467
3467
  const run = computeStatus().then((value) => {
3468
3468
  if (gen === snapshotGen) snapshot$2 = {
@@ -3471,11 +3471,11 @@ function statusForAll() {
3471
3471
  };
3472
3472
  return value;
3473
3473
  }).finally(() => {
3474
- if (inflight === run) inflight = null;
3474
+ if (inflight$1 === run) inflight$1 = null;
3475
3475
  });
3476
- inflight = run;
3476
+ inflight$1 = run;
3477
3477
  }
3478
- return inflight;
3478
+ return inflight$1;
3479
3479
  }
3480
3480
  /** Push-based freshness: while any events-bus client is connected,
3481
3481
  * recompute the (shared, deduped) snapshot on a slow tick and publish it
@@ -3844,18 +3844,48 @@ function duration(ms) {
3844
3844
  }
3845
3845
  //#endregion
3846
3846
  //#region src/client/usage.ts
3847
+ /** One client-side copy of /api/usage, shared by Settings and the session
3848
+ * switcher. The server already caches per minute and revalidates in the
3849
+ * background; this only stops two surfaces on one page from asking twice
3850
+ * within that minute. A forced refresh bypasses both. */
3851
+ var TTL_MS = 6e4;
3847
3852
  var cached$1 = null;
3848
- function lastUsage$1() {
3853
+ var inflight = null;
3854
+ var subscribers = /* @__PURE__ */ new Set();
3855
+ function setCached(value) {
3856
+ cached$1 = {
3857
+ at: Date.now(),
3858
+ value
3859
+ };
3860
+ for (const listener of subscribers) listener(value);
3861
+ }
3862
+ function lastUsage() {
3849
3863
  return cached$1?.value ?? null;
3850
3864
  }
3851
3865
  /** Prime the store with the server's cached snapshot (SSR and resume), so
3852
3866
  * the first render has numbers. Stamped as fresh: the server already
3853
3867
  * revalidates its own copy in the background. */
3854
3868
  function seedUsage(value) {
3855
- if (value && !cached$1) cached$1 = {
3856
- at: Date.now(),
3857
- value
3858
- };
3869
+ if (value && !cached$1) setCached(value);
3870
+ }
3871
+ function getUsage(refresh = false) {
3872
+ if (!refresh) {
3873
+ if (cached$1 && Date.now() - cached$1.at < TTL_MS) return Promise.resolve(cached$1.value);
3874
+ if (inflight) return inflight;
3875
+ }
3876
+ inflight = api$7(`/api/usage${refresh ? "?refresh" : ""}`).then((value) => {
3877
+ setCached(value);
3878
+ return value;
3879
+ }).catch((err) => {
3880
+ const error = String(err.message || err);
3881
+ return {
3882
+ ...cached$1?.value,
3883
+ error
3884
+ };
3885
+ }).finally(() => {
3886
+ inflight = null;
3887
+ });
3888
+ return inflight;
3859
3889
  }
3860
3890
  /** The plan row an agent instance draws on: its own account (`claude2`)
3861
3891
  * when the provider reports per account, else the family's (`codex`). */
@@ -3986,28 +4016,28 @@ function applyInstance(inst) {
3986
4016
  }
3987
4017
  //#endregion
3988
4018
  //#region src/tags/settings-page.css.ts
3989
- var content$2 = "_cb _bE _bF";
3990
- var agentGrid = "_cf _bq";
3991
- var toolGrid = "_cp _bq";
3992
- var themeSeg = "_cE _5";
3993
- var swatches = "_cM _5";
4019
+ var content$2 = "_cc _bF _bG";
4020
+ var agentGrid = "_ci _br";
4021
+ var toolGrid = "_cs _br";
4022
+ var themeSeg = "_cH _6";
4023
+ var swatches = "_cP _6";
3994
4024
  //#endregion
3995
4025
  //#region src/tags/page-head.marko
3996
4026
  var page_head_default = _template("r", (input) => {
3997
4027
  const $scope0_reason = _scope_reason(), $sg__input_backHref__OR__input_onBack__OR__input_meta__OR__input_actions = _serialize_guard($scope0_reason, 3), $sg__input_meta = _serialize_guard($scope0_reason, 6), $sg__input_actions = _serialize_guard($scope0_reason, 7), $si__input_backHref__OR__input_onBack = _serialize_if($scope0_reason, 1), $si__input_meta = _serialize_if($scope0_reason, 6), $si__input_actions = _serialize_if($scope0_reason, 7);
3998
4028
  const $scope0_id = _scope_id();
3999
- _html(`<header${_attr_class("_bG")}>`);
4029
+ _html(`<header${_attr_class("_bH")}>`);
4000
4030
  _if(() => {
4001
4031
  if (input.backHref) {
4002
4032
  const $scope1_id = _scope_id();
4003
- _html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_cT"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
4033
+ _html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_c2"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
4004
4034
  icon_back_default({ size: 16 });
4005
4035
  _html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
4006
4036
  _serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
4007
4037
  return 0;
4008
4038
  } else if (input.onBack) {
4009
4039
  const $scope2_id = _scope_id();
4010
- _html(`<button${_attr_class([iconBtnRow, "_cT"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
4040
+ _html(`<button${_attr_class([iconBtnRow, "_c2"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
4011
4041
  icon_back_default({ size: 16 });
4012
4042
  _html(`</button>${_el_resume($scope2_id, "a")}`);
4013
4043
  _script($scope2_id, "r0");
@@ -4015,11 +4045,11 @@ var page_head_default = _template("r", (input) => {
4015
4045
  return 1;
4016
4046
  }
4017
4047
  }, $scope0_id, "b", _serialize_guard($scope0_reason, 2), _serialize_guard($scope0_reason, 1), $sg__input_backHref__OR__input_onBack__OR__input_meta__OR__input_actions, 0, 1);
4018
- _html(`<div${_attr_class("_bI")}><h1${_attr("id", input.titleId)}${_attr_class("_bH")}>${_escape(input.title)}${_el_resume($scope0_id, "e", _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
4048
+ _html(`<div${_attr_class("_bJ")}><h1${_attr("id", input.titleId)}${_attr_class("_bI")}>${_escape(input.title)}${_el_resume($scope0_id, "e", _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
4019
4049
  _if(() => {
4020
4050
  if (input.meta) {
4021
4051
  const $scope3_id = _scope_id();
4022
- _html(`<p${_attr_class("_bJ")}>`);
4052
+ _html(`<p${_attr_class("_bK")}>`);
4023
4053
  _dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
4024
4054
  _html("</p>");
4025
4055
  $si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
@@ -4030,7 +4060,7 @@ var page_head_default = _template("r", (input) => {
4030
4060
  _if(() => {
4031
4061
  if (input.actions) {
4032
4062
  const $scope4_id = _scope_id();
4033
- _html(`<div${_attr_class("_bK")}>`);
4063
+ _html(`<div${_attr_class("_bL")}>`);
4034
4064
  _dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
4035
4065
  _html("</div>");
4036
4066
  $si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
@@ -4098,7 +4128,7 @@ var icon_agent_default = _template("G", (input) => {
4098
4128
  n: $badge__closures
4099
4129
  });
4100
4130
  });
4101
- var usageNote = "_di _R";
4131
+ var usageNote = "_dM _R";
4102
4132
  //#endregion
4103
4133
  //#region src/tags/icons/icon-warning.marko
4104
4134
  var icon_warning_default = _template("jb", (input) => {
@@ -4128,11 +4158,11 @@ var usage_meters_default = _template("D", (input) => {
4128
4158
  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);
4129
4159
  const $scope0_id = _scope_id();
4130
4160
  const agent = input.agent;
4131
- _html(`<div${_attr_class(["_dc", { ["_dd"]: input.hideName }])}><div${_attr_class("_de")}>`);
4161
+ _html(`<div${_attr_class(["_dG", { ["_dH"]: input.hideName }])}><div${_attr_class("_dI")}>`);
4132
4162
  _if(() => {
4133
4163
  if (!input.hideName) {
4134
4164
  const $scope1_id = _scope_id();
4135
- _html(`<strong${_attr_class("_dx")}>${_escape(agent.agent)}${_el_resume($scope1_id, "b", $sg__input_agent)}</strong>`);
4165
+ _html(`<strong${_attr_class("_d1")}>${_escape(agent.agent)}${_el_resume($scope1_id, "b", $sg__input_agent)}</strong>`);
4136
4166
  $si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
4137
4167
  return 0;
4138
4168
  }
@@ -4140,7 +4170,7 @@ var usage_meters_default = _template("D", (input) => {
4140
4170
  _if(() => {
4141
4171
  if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
4142
4172
  const $scope2_id = _scope_id();
4143
- _html(`<span${_attr_class("_df")}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope2_id, "b", $sg__input_agent)}</span>`);
4173
+ _html(`<span${_attr_class("_dJ")}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope2_id, "b", $sg__input_agent)}</span>`);
4144
4174
  $si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
4145
4175
  return 0;
4146
4176
  }
@@ -4148,21 +4178,21 @@ var usage_meters_default = _template("D", (input) => {
4148
4178
  _if(() => {
4149
4179
  if (agent.stale_seconds != null) {
4150
4180
  const $scope3_id = _scope_id();
4151
- _html(`<span${_attr_class("_dg")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
4181
+ _html(`<span${_attr_class("_dK")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
4152
4182
  icon_warning_default({ size: 12 });
4153
4183
  _html(` ${_sep($sg__input_agent)}${_escape(duration(agent.stale_seconds * 1e3))}${_el_resume($scope3_id, "c", $sg__input_agent)} old</span>${_el_resume($scope3_id, "a", $sg__input_agent)}`);
4154
4184
  $si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
4155
4185
  return 0;
4156
4186
  }
4157
4187
  }, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
4158
- _html(`</div><div${_attr_class(["_dh", { ["_dy"]: agent.stale_seconds != null }])}>`);
4188
+ _html(`</div><div${_attr_class(["_dL", { ["_d2"]: agent.stale_seconds != null }])}>`);
4159
4189
  _for_of(agent.windows || [], (win) => {
4160
4190
  const $scope4_id = _scope_id();
4161
4191
  const pct = pctText(win.used_percent);
4162
4192
  const label = resetLabel(win.resets_at, agent.stale_seconds != null);
4163
- const fillClass = win.used_percent >= 90 ? "_dq" : win.used_percent >= 70 ? "_dp" : win.used_percent >= 40 ? "_do" : "_dn";
4164
- const pctClass = win.used_percent >= 90 ? "_dv" : win.used_percent >= 70 ? "_du" : win.used_percent >= 40 ? "_dt" : "_ds";
4165
- _html(`<div${_attr_class("_dj")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_dk")}>${_escape(win.window)}${_el_resume($scope4_id, "c", $sg__input_agent)}</span><span${_attr_class("_dl")}><span${_attr_class(["_dm", fillClass])}${_attr_style(`width:${Math.min(100, Math.max(2, win.used_percent))}%`)}></span>${_el_resume($scope4_id, "e", $sg__input_agent)}</span><span${_attr_class(["_dr", pctClass])}>${_escape(pct)}${_el_resume($scope4_id, "g", $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_dw")}>`);
4193
+ const fillClass = win.used_percent >= 90 ? "_dU" : win.used_percent >= 70 ? "_dT" : win.used_percent >= 40 ? "_dS" : "_dR";
4194
+ const pctClass = win.used_percent >= 90 ? "_dZ" : win.used_percent >= 70 ? "_dY" : win.used_percent >= 40 ? "_dX" : "_dW";
4195
+ _html(`<div${_attr_class("_dN")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_dO")}>${_escape(win.window)}${_el_resume($scope4_id, "c", $sg__input_agent)}</span><span${_attr_class("_dP")}><span${_attr_class(["_dQ", 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(["_dV", pctClass])}>${_escape(pct)}${_el_resume($scope4_id, "g", $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_d0")}>`);
4166
4196
  _if(() => {
4167
4197
  if (label) {
4168
4198
  const $scope6_id = _scope_id();
@@ -4194,6 +4224,7 @@ var usage_meters_default = _template("D", (input) => {
4194
4224
  q: $si__input_agent && agent?.note
4195
4225
  });
4196
4226
  });
4227
+ var orgSkip = "_d8 _1 _j";
4197
4228
  //#endregion
4198
4229
  //#region src/tags/sso-auth.marko
4199
4230
  var api$6;
@@ -4241,14 +4272,14 @@ var sso_auth_default = _template("z", (input) => {
4241
4272
  localCode = null;
4242
4273
  }
4243
4274
  }, "z0", $scope0_id);
4244
- _html(`<div${_attr_class("_dz")}>`);
4275
+ _html(`<div${_attr_class("_d5")}>`);
4245
4276
  _if(() => {
4246
4277
  if (input.items.length) {
4247
4278
  const $scope1_id = _scope_id();
4248
- _html(`<p${_attr_class("_dK")}>GitHub CLI needs org SSO for ${_sep($sg__input_items)}${_escape(input.items.map((s) => s.org).join(", "))}${_el_resume($scope1_id, "b", $sg__input_items)}.</p><ul${_attr_class("_dA")}>`);
4279
+ _html(`<p${_attr_class("_ef")}>GitHub CLI needs org SSO for ${_sep($sg__input_items)}${_escape(input.items.map((s) => s.org).join(", "))}${_el_resume($scope1_id, "b", $sg__input_items)}.</p><ul${_attr_class("_d6")}>`);
4249
4280
  _for_of(input.items, (s) => {
4250
4281
  const $scope2_id = _scope_id();
4251
- _html(`<li${_attr_class("_dB")}>${_escape(s.org)}${_el_resume($scope2_id, "b", $sg__input_items)}<button type=button${_attr_class("_dC")}${_attr("title", `Skip ${s.org}`)}${_attr("aria-label", `Skip ${s.org}`)}${_attr("disabled", busy)}>`);
4282
+ _html(`<li${_attr_class("_d7")}>${_escape(s.org)}${_el_resume($scope2_id, "b", $sg__input_items)}<button type=button${_attr_class(orgSkip)}${_attr("title", `Skip ${s.org}`)}${_attr("aria-label", `Skip ${s.org}`)}${_attr("disabled", busy)}>`);
4252
4283
  icon_xmark_default({ size: 11 });
4253
4284
  _html(`</button>${_el_resume($scope2_id, "c")}</li>`);
4254
4285
  _script($scope2_id, "z1");
@@ -4257,17 +4288,17 @@ var sso_auth_default = _template("z", (input) => {
4257
4288
  _: _scope_with_id($scope1_id)
4258
4289
  }));
4259
4290
  }, "org", $scope1_id, "c", $sg__input_items, $sg__input_items, $sg__input_items, "</ul>", 1);
4260
- _html(`<div${_attr_class("_dD")}>`);
4291
+ _html(`<div${_attr_class("_d9")}>`);
4261
4292
  _if(() => {
4262
4293
  if (busy && authCode$2) {
4263
4294
  const $scope5_id = _scope_id();
4264
- _html(`<span${_attr_class("_dE")}><span${_attr_class("_E")}></span> Enter code <strong${_attr_class("_dF")}>${_escape(authCode$2)}${_el_resume($scope5_id, "d")}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_dG")}>${_escape(host)}${_el_resume($scope5_id, "f", _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope5_id, "e")}</span>`);
4295
+ _html(`<span${_attr_class("_d_")}><span${_attr_class("_E")}></span> Enter code <strong${_attr_class("_ea")}>${_escape(authCode$2)}${_el_resume($scope5_id, "d")}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_eb")}>${_escape(host)}${_el_resume($scope5_id, "f", _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope5_id, "e")}</span>`);
4265
4296
  _script($scope5_id, "z2");
4266
4297
  _subscribe($authCode__closures, _subscribe($si__input_items_0_host && $host__closures, writeScope($scope5_id, {})));
4267
4298
  return 0;
4268
4299
  } else if (busy) {
4269
4300
  const $scope8_id = _scope_id();
4270
- _html(`<span${_attr_class("_dE")}><span${_attr_class("_E")}></span>Starting GitHub re-authorization…</span>`);
4301
+ _html(`<span${_attr_class("_d_")}><span${_attr_class("_E")}></span>Starting GitHub re-authorization…</span>`);
4271
4302
  writeScope($scope8_id, {});
4272
4303
  return 1;
4273
4304
  } else {
@@ -4281,7 +4312,7 @@ var sso_auth_default = _template("z", (input) => {
4281
4312
  _if(() => {
4282
4313
  if (localError) {
4283
4314
  const $scope6_id = _scope_id();
4284
- _html(`<p${_attr_class("_dK")}>${_escape(localError)}${_el_resume($scope6_id, "b")}</p>`);
4315
+ _html(`<p${_attr_class("_ef")}>${_escape(localError)}${_el_resume($scope6_id, "b")}</p>`);
4285
4316
  _subscribe($localError__closures, writeScope($scope6_id, {}));
4286
4317
  return 0;
4287
4318
  }
@@ -4293,10 +4324,10 @@ var sso_auth_default = _template("z", (input) => {
4293
4324
  _if(() => {
4294
4325
  if (skipped$1.length) {
4295
4326
  const $scope3_id = _scope_id();
4296
- _html(`<p${_attr_class("_dH")}>Skipped SSO for `);
4327
+ _html(`<p${_attr_class("_ec")}>Skipped SSO for `);
4297
4328
  _for_of(skipped$1, (s) => {
4298
4329
  const $scope4_id = _scope_id();
4299
- _html(`<span${_attr_class("_dI")}>${_escape(s.org)}${_el_resume($scope4_id, "b", $sg__input_skipped)}<button type=button${_attr_class("_dJ")}${_attr("title", `Show ${s.org} again`)}>(undo)</button>${_el_resume($scope4_id, "c")}</span>`);
4330
+ _html(`<span${_attr_class("_ed")}>${_escape(s.org)}${_el_resume($scope4_id, "b", $sg__input_skipped)}<button type=button${_attr_class("_ee")}${_attr("title", `Show ${s.org} again`)}>(undo)</button>${_el_resume($scope4_id, "c")}</span>`);
4300
4331
  _script($scope4_id, "z4");
4301
4332
  writeScope($scope4_id, {
4302
4333
  f: s?.org,
@@ -4371,7 +4402,7 @@ var modal_view_default = _template("p", (input) => {
4371
4402
  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;
4372
4403
  const dismissable = input.dismissable !== false;
4373
4404
  let open = input.open;
4374
- _html(`<dialog${_attr_class(["_fw", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
4405
+ _html(`<dialog${_attr_class(["_fu", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
4375
4406
  ...htmlInput,
4376
4407
  open: null
4377
4408
  }, {
@@ -4381,20 +4412,20 @@ var modal_view_default = _template("p", (input) => {
4381
4412
  closedby: 1,
4382
4413
  "on-cancel": 1,
4383
4414
  "on-close": 1
4384
- }, "a", $scope0_id, "dialog")}><div${_attr_class("_fx")}>`);
4415
+ }, "a", $scope0_id, "dialog")}><div${_attr_class("_fv")}>`);
4385
4416
  _dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
4386
4417
  _html("</div>");
4387
4418
  _if(() => {
4388
4419
  if (footer) {
4389
4420
  const $scope1_id = _scope_id();
4390
- _html(`<form method=dialog${_attr_class("_fy")}>`);
4421
+ _html(`<form method=dialog${_attr_class("_fw")}>`);
4391
4422
  _dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
4392
4423
  _html("</form>");
4393
4424
  $si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
4394
4425
  return 0;
4395
4426
  } else if (input.openChange) {
4396
4427
  const $scope2_id = _scope_id();
4397
- _html(`<form method=dialog${_attr_class("_fy")}>`);
4428
+ _html(`<form method=dialog${_attr_class("_fw")}>`);
4398
4429
  dialog_close_default({
4399
4430
  class: ["_o", "_p"],
4400
4431
  content: _content("p0", () => {
@@ -4453,7 +4484,7 @@ var prompt_dialog_default = _template("s", (input) => {
4453
4484
  const $childScope = _peek_scope_id();
4454
4485
  modal_view_default({
4455
4486
  label: input.label,
4456
- class: "_da",
4487
+ class: "_d3",
4457
4488
  open: input.open,
4458
4489
  openChange: input.openChange,
4459
4490
  "aria-labelledby": titleId,
@@ -4476,7 +4507,7 @@ var prompt_dialog_default = _template("s", (input) => {
4476
4507
  content: _content("s6", () => {
4477
4508
  _scope_reason();
4478
4509
  const $scope2_id = _scope_id();
4479
- _html(`<h2${_attr_class("_db")}${_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) => {
4510
+ _html(`<h2${_attr_class("_d4")}${_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) => {
4480
4511
  value = _new_value;
4481
4512
  }, "s0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
4482
4513
  _script($scope2_id, "s4");
@@ -4515,22 +4546,11 @@ function familyOf(usageAgent, families) {
4515
4546
  return families.find((f) => new RegExp(`^${f.id}\\d*$`).test(usageAgent))?.id ?? null;
4516
4547
  }
4517
4548
  var lastSetup = null;
4518
- var lastUsage = null;
4519
4549
  var lastSkills = null;
4520
- function skillInstalls(n) {
4521
- if (n >= 1e6) return `${(n / 1e6).toFixed(1)}M`;
4522
- if (n >= 1e3) return `${Math.round(n / 1e3)}k`;
4523
- return String(n);
4524
- }
4525
- function looksLikeSource(q) {
4526
- const s = q.trim();
4527
- return s.includes("/") && !/\s/.test(s);
4528
- }
4529
4550
  var settings_page_default = _template("v", (input) => {
4530
4551
  const $scope0_reason = _scope_reason(), $sg__input_backHref__OR__input_onExit = _serialize_guard($scope0_reason, 1), $sg__input_agents = _serialize_guard($scope0_reason, 5), $sg__input_instance_accent = _serialize_guard($scope0_reason, 6), $si__input_instance__OR__input_instanceChange = _serialize_if($scope0_reason, 0), $si__input_preferred = _serialize_if($scope0_reason, 3), $si__input_setupChange = _serialize_if($scope0_reason, 2);
4531
4552
  const $scope0_id = _scope_id();
4532
4553
  const $setup_missing__closures = /* @__PURE__ */ new Set();
4533
- const $setup2__closures = /* @__PURE__ */ new Set();
4534
4554
  const $refreshing__closures = /* @__PURE__ */ new Set();
4535
4555
  const $error__closures = /* @__PURE__ */ new Set();
4536
4556
  const $self_latest__closures = /* @__PURE__ */ new Set();
@@ -4543,12 +4563,20 @@ var settings_page_default = _template("v", (input) => {
4543
4563
  const $refresh2__closures = /* @__PURE__ */ new Set();
4544
4564
  const $run2__closures = /* @__PURE__ */ new Set();
4545
4565
  const $self_install__closures = /* @__PURE__ */ new Set();
4566
+ const $selfUpdating__closures = /* @__PURE__ */ new Set();
4546
4567
  const $hits__closures = /* @__PURE__ */ new Set();
4547
4568
  const $query__closures = /* @__PURE__ */ new Set();
4569
+ const $searching__closures = /* @__PURE__ */ new Set();
4570
+ const $search2__closures = /* @__PURE__ */ new Set();
4548
4571
  const $confirmingSkill__closures = /* @__PURE__ */ new Set();
4572
+ const $skills__closures = /* @__PURE__ */ new Set();
4573
+ const $skills_available__closures = /* @__PURE__ */ new Set();
4549
4574
  const $skillQuery__closures = /* @__PURE__ */ new Set();
4575
+ const $skillHits__closures = /* @__PURE__ */ new Set();
4576
+ const $skillSearching__closures = /* @__PURE__ */ new Set();
4577
+ const $searchSkills2__closures = /* @__PURE__ */ new Set();
4550
4578
  let setup = input.setup || lastSetup;
4551
- let usage = lastUsage;
4579
+ let usage = lastUsage();
4552
4580
  let error = null;
4553
4581
  let refreshing = false;
4554
4582
  let usageRefreshing = false;
@@ -4571,6 +4599,8 @@ var settings_page_default = _template("v", (input) => {
4571
4599
  let skillSearching = false;
4572
4600
  let confirmingSkill = null;
4573
4601
  const skillTimer = { id: 0 };
4602
+ let machineOpen = false;
4603
+ let skillsOpen = false;
4574
4604
  const setThemeMode = _resume((mode) => {
4575
4605
  themeMode = mode;
4576
4606
  setTheme(mode);
@@ -4580,6 +4610,7 @@ var settings_page_default = _template("v", (input) => {
4580
4610
  const applySetup = _resume((s) => {
4581
4611
  setup = s;
4582
4612
  lastSetup = s;
4613
+ if (!s.ready) machineOpen = true;
4583
4614
  setPrimaryHost(s.github);
4584
4615
  input.setupChange?.(s);
4585
4616
  }, "v8", $scope0_id);
@@ -4628,14 +4659,9 @@ var settings_page_default = _template("v", (input) => {
4628
4659
  };
4629
4660
  setTimeout(tick, 4e3);
4630
4661
  }, "v12", $scope0_id);
4631
- const loadUsage = _resume(async (refresh) => {
4632
- try {
4633
- usage = await api$5(`/api/usage${refresh ? "?refresh" : ""}`);
4634
- } catch (err) {
4635
- usage = { error: String(err.message || err) };
4636
- }
4637
- lastUsage = usage;
4638
- }, "v13", $scope0_id);
4662
+ const loadUsage = _resume((refresh) => getUsage(refresh).then((u) => {
4663
+ usage = u;
4664
+ }), "v13", $scope0_id);
4639
4665
  const refresh = _resume(async () => {
4640
4666
  refreshing = true;
4641
4667
  await Promise.all([loadSetup(true), loadSelf(true)]);
@@ -4858,43 +4884,29 @@ var settings_page_default = _template("v", (input) => {
4858
4884
  const githubId = _id();
4859
4885
  const machineId = _id();
4860
4886
  const skillsId = _id();
4861
- _html(`<div${_attr_class("_bC")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bD")}><div${_attr_class(content$2)}>`);
4887
+ _html(`<div${_attr_class("_bD")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bE")}><div${_attr_class(content$2)}>`);
4862
4888
  _set_serialize_reason({
4863
4889
  0: _serialize_guard($scope0_reason, 4),
4864
4890
  1: $sg__input_backHref__OR__input_onExit,
4865
4891
  2: $sg__input_backHref__OR__input_onExit,
4866
- 3: $sg__input_backHref__OR__input_onExit
4892
+ 3: 1,
4893
+ 6: 1
4867
4894
  });
4895
+ let $meta;
4896
+ if (setup && !setup.ready) $meta = attrTag({ content: _content_resume("v37", () => {
4897
+ _scope_reason();
4898
+ const $scope5_id = _scope_id();
4899
+ _html(`<span${_attr_class("_ce")}>Not ready</span>. Missing <!>${_escape(setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "))}${_el_resume($scope5_id, "b")}.`);
4900
+ _subscribe($setup_missing__closures, writeScope($scope5_id, { _: _scope_with_id($scope0_id) }));
4901
+ _resume_branch($scope5_id);
4902
+ }, $scope0_id) });
4868
4903
  const $childScope2 = _peek_scope_id();
4869
4904
  page_head_default({
4870
4905
  title: "Settings",
4871
4906
  titleId,
4872
4907
  backHref: input.backHref,
4873
4908
  onBack: input.onExit && _resume(() => input.onExit?.(), "v29", $scope0_id),
4874
- meta: attrTag({ content: _content_resume("v37", () => {
4875
- _scope_reason();
4876
- const $scope5_id = _scope_id();
4877
- _if(() => {
4878
- if (!setup) {
4879
- const $scope66_id = _scope_id();
4880
- _html("Checking this machine…");
4881
- writeScope($scope66_id, {});
4882
- return 0;
4883
- } else if (setup.ready) {
4884
- const $scope67_id = _scope_id();
4885
- _html(`<span${_attr_class("_cd")}>Ready</span>. Tools, GitHub, and an agent are all in place.`);
4886
- writeScope($scope67_id, {});
4887
- return 1;
4888
- } else {
4889
- const $scope6_id = _scope_id();
4890
- _html(`<span${_attr_class("_ce")}>Not ready</span>. Missing <!>${_escape(setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "))}${_el_resume($scope6_id, "b")}.`);
4891
- _subscribe($setup_missing__closures, writeScope($scope6_id, {}));
4892
- return 2;
4893
- }
4894
- }, $scope5_id, "a");
4895
- _subscribe($setup2__closures, writeScope($scope5_id, { _: _scope_with_id($scope0_id) }));
4896
- _resume_branch($scope5_id);
4897
- }, $scope0_id) }),
4909
+ meta: $meta,
4898
4910
  actions: attrTag({ content: _content_resume("v38", () => {
4899
4911
  _scope_reason();
4900
4912
  const $scope10_id = _scope_id();
@@ -4936,40 +4948,40 @@ var settings_page_default = _template("v", (input) => {
4936
4948
  }, $scope0_id, "e", 1, 1, 1, 0, 1);
4937
4949
  _if(() => {
4938
4950
  if (selfUpdatePending || selfUpdating) {
4939
- const $scope45_id = _scope_id();
4940
- _html(`<div${_attr_class("_cI")} role=status><div${_attr_class("_cJ")}>`);
4951
+ const $scope46_id = _scope_id();
4952
+ _html(`<div${_attr_class("_cL")} role=status><div${_attr_class("_cM")}>`);
4941
4953
  _if(() => {
4942
4954
  if (selfUpdating) {
4943
4955
  const $scope68_id = _scope_id();
4944
- _html(`<span${_attr_class("_cK")}><span${_attr_class("_E")}></span> Updating work…</span><span${_attr_class("_cL")}>The app restarts and reloads when it is done.</span>`);
4956
+ _html(`<span${_attr_class("_cN")}><span${_attr_class("_E")}></span> Updating work…</span><span${_attr_class("_cO")}>The app restarts and reloads when it is done.</span>`);
4945
4957
  writeScope($scope68_id, {});
4946
4958
  return 0;
4947
4959
  } else {
4948
- const $scope46_id = _scope_id();
4949
- _html(`<span${_attr_class("_cK")}>Update available</span><span${_attr_class("_cL")}>v<!>${_escape(self.version)}${_el_resume($scope46_id, "c")} → v<!>${_escape(self.latest)}${_el_resume($scope46_id, "d")}</span>`);
4950
- _subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($scope46_id, {})));
4960
+ const $scope47_id = _scope_id();
4961
+ _html(`<span${_attr_class("_cN")}>Update available</span><span${_attr_class("_cO")}>v<!>${_escape(self.version)}${_el_resume($scope47_id, "c")} → v<!>${_escape(self.latest)}${_el_resume($scope47_id, "d")}</span>`);
4962
+ _subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($scope47_id, {})));
4951
4963
  return 1;
4952
4964
  }
4953
- }, $scope45_id, "b", 1, 1, 1, "</div>");
4965
+ }, $scope46_id, "b", 1, 1, 1, "</div>");
4954
4966
  _if(() => {
4955
4967
  if (!selfUpdating) {
4956
- const $scope47_id = _scope_id();
4957
- _html(`<button${_attr_class(["_o", "_p"])}${_attr("title", `Update work to v${self.latest} and restart`)}>Update and restart</button>${_el_resume($scope47_id, "a")}`);
4958
- _script($scope47_id, "v40");
4959
- _subscribe($self_latest__closures, writeScope($scope47_id, { Cf2: 1 }));
4968
+ const $scope48_id = _scope_id();
4969
+ _html(`<button${_attr_class(["_o", "_p"])}${_attr("title", `Update work to v${self.latest} and restart`)}>Update and restart</button>${_el_resume($scope48_id, "a")}`);
4970
+ _script($scope48_id, "v40");
4971
+ _subscribe($self_latest__closures, writeScope($scope48_id, { Cf4: 1 }));
4960
4972
  return 0;
4961
4973
  }
4962
- }, $scope45_id, "c", 1, 1, 1, 0, 1);
4974
+ }, $scope46_id, "c", 1, 1, 1, 0, 1);
4963
4975
  _html("</div>");
4964
- writeScope($scope45_id, {});
4976
+ writeScope($scope46_id, {});
4965
4977
  return 0;
4966
4978
  }
4967
4979
  }, $scope0_id, "f", 1, 1, 1, 0, 1);
4968
- _html(`<section${_attr_class("_bn")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bo")}><h2${_attr("id", agentsId)}${_attr_class("_bB")}>Agents</h2><div${_attr_class("_x")}></div><label${_attr_class("_ch")}><span${_attr_class("_R")}>Default</span><span${_attr_class("_m")}>`);
4980
+ _html(`<section${_attr_class("_bo")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bp")}><h2${_attr("id", agentsId)}${_attr_class("_bC")}>Agents</h2><div${_attr_class("_x")}></div><label${_attr_class("_ck")}><span${_attr_class("_R")}>Default</span><span${_attr_class("_m")}>`);
4969
4981
  _attr_select_value($scope0_id, "n", input.preferred, _resume(function(v) {
4970
4982
  setPreferred(v);
4971
4983
  }, "v2", $scope0_id), () => {
4972
- _html(`<select${_attr_class(["_n", "_ci"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
4984
+ _html(`<select${_attr_class(["_n", "_cl"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
4973
4985
  _for_of(input.agents.filter((a) => a !== "shell"), (id) => {
4974
4986
  const $scope69_id = _scope_id();
4975
4987
  _html(`<option${_attr_option_value(id)}>${_escape(agentLabel(id))}${_el_resume($scope69_id, "b", $sg__input_agents)}</option>${_el_resume($scope69_id, "a", $sg__input_agents)}`);
@@ -4990,14 +5002,14 @@ var settings_page_default = _template("v", (input) => {
4990
5002
  const rows = lone ? [] : a.instances;
4991
5003
  const loneAccounts = lone && lone.enabled ? accountsFor(lone.id) : [];
4992
5004
  const extraAccounts = a.installed ? strayAccountsFor(a) : [];
4993
- _html(`<li${_attr_class(["_bs", "_cg"])}><div${_attr_class(["_cj", { ["_cm"]: lone && !lone.enabled }])}>`);
5005
+ _html(`<li${_attr_class(["_bt", "_cj"])}><div${_attr_class(["_cm", { ["_cp"]: lone && !lone.enabled }])}>`);
4994
5006
  _set_serialize_reason(12);
4995
5007
  const $childScope4 = _peek_scope_id();
4996
5008
  icon_agent_default({
4997
5009
  agent: a.id,
4998
5010
  size: 18
4999
5011
  });
5000
- _html(`<div${_attr_class("_bt")}><span${_attr_class("_bv")}><span${_attr_class("_bu")}>${_escape(a.label)}${_el_resume($scope1_id, "g")}</span>`);
5012
+ _html(`<div${_attr_class("_bu")}><span${_attr_class("_bw")}><span${_attr_class("_bv")}>${_escape(a.label)}${_el_resume($scope1_id, "g")}</span>`);
5001
5013
  _if(() => {
5002
5014
  if (lone && input.preferred === lone.id) {
5003
5015
  const $scope70_id = _scope_id();
@@ -5010,12 +5022,12 @@ var settings_page_default = _template("v", (input) => {
5010
5022
  _if(() => {
5011
5023
  if (active.has(a.id)) {
5012
5024
  const $scope11_id = _scope_id();
5013
- _html(`<span${_attr_class("_cc")}><span${_attr_class("_E")}></span><!>${_escape(active.get(a.id) || "Starting…")}${_el_resume($scope11_id, "c")}</span>`);
5025
+ _html(`<span${_attr_class("_cd")}><span${_attr_class("_E")}></span><!>${_escape(active.get(a.id) || "Starting…")}${_el_resume($scope11_id, "c")}</span>`);
5014
5026
  _subscribe($active__closures, writeScope($scope11_id, {}));
5015
5027
  return 0;
5016
5028
  } else if (!a.installed) {
5017
5029
  const $scope71_id = _scope_id();
5018
- _html(`<span${_attr_class("_bw")}>Not installed</span>`);
5030
+ _html(`<span${_attr_class("_bx")}>Not installed</span>`);
5019
5031
  writeScope($scope71_id, {});
5020
5032
  return 1;
5021
5033
  }
@@ -5023,23 +5035,23 @@ var settings_page_default = _template("v", (input) => {
5023
5035
  _html("</div>");
5024
5036
  _if(() => {
5025
5037
  if (!a.installed && !active.has(a.id)) {
5026
- const $scope56_id = _scope_id();
5027
- _html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope56_id, "a")}`);
5028
- _script($scope56_id, "v41");
5029
- writeScope($scope56_id, {});
5038
+ const $scope58_id = _scope_id();
5039
+ _html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope58_id, "a")}`);
5040
+ _script($scope58_id, "v41");
5041
+ writeScope($scope58_id, {});
5030
5042
  return 0;
5031
5043
  }
5032
5044
  }, $scope1_id, "j", 1, 1, 1, 0, 1);
5033
5045
  _if(() => {
5034
5046
  if (lone) {
5035
- const $scope63_id = _scope_id();
5047
+ const $scope65_id = _scope_id();
5036
5048
  _html(`<button${_attr_class([
5037
5049
  "_H",
5038
5050
  "_J",
5039
5051
  { [tone.ok]: lone.enabled }
5040
- ])} role=switch aria-checked=${lone.enabled ? "true" : "false"} title=${lone.enabled ? "\"Shown in session pickers. Hide it\"" : "\"Hidden from session pickers. Show it\""}>${lone.enabled ? "on" : "off"}${_el_resume($scope63_id, "b")}</button>${_el_resume($scope63_id, "a")}`);
5041
- _script($scope63_id, "v42");
5042
- writeScope($scope63_id, {});
5052
+ ])} role=switch aria-checked=${lone.enabled ? "true" : "false"} title=${lone.enabled ? "\"Shown in session pickers. Hide it\"" : "\"Hidden from session pickers. Show it\""}>${lone.enabled ? "on" : "off"}${_el_resume($scope65_id, "b")}</button>${_el_resume($scope65_id, "a")}`);
5053
+ _script($scope65_id, "v42");
5054
+ writeScope($scope65_id, {});
5043
5055
  return 0;
5044
5056
  }
5045
5057
  }, $scope1_id, "k", 1, 1, 1, 0, 1);
@@ -5047,18 +5059,18 @@ var settings_page_default = _template("v", (input) => {
5047
5059
  _if(() => {
5048
5060
  if (rows.length || loneAccounts.length || extraAccounts.length) {
5049
5061
  const $scope2_id = _scope_id();
5050
- _html(`<ul${_attr_class("_co")}>`);
5062
+ _html(`<ul${_attr_class("_cr")}>`);
5051
5063
  _for_of(rows, (inst) => {
5052
5064
  const $scope3_id = _scope_id();
5053
5065
  const accounts = inst.enabled ? accountsFor(inst.id) : [];
5054
- _html(`<li${_attr_class("_ck")}><div${_attr_class(["_cl", { ["_cm"]: !inst.enabled }])}>`);
5066
+ _html(`<li${_attr_class("_cn")}><div${_attr_class(["_co", { ["_cp"]: !inst.enabled }])}>`);
5055
5067
  _set_serialize_reason(12);
5056
5068
  const $childScope5 = _peek_scope_id();
5057
5069
  icon_agent_default({
5058
5070
  agent: inst.id,
5059
5071
  size: 15
5060
5072
  });
5061
- _html(`<span${_attr_class(["_cn", "_w"])}>${_escape(inst.command)}${_el_resume($scope3_id, "e")}</span>`);
5073
+ _html(`<span${_attr_class(["_cq", "_w"])}>${_escape(inst.command)}${_el_resume($scope3_id, "e")}</span>`);
5062
5074
  _if(() => {
5063
5075
  if (input.preferred === inst.id) {
5064
5076
  const $scope72_id = _scope_id();
@@ -5133,7 +5145,7 @@ var settings_page_default = _template("v", (input) => {
5133
5145
  }, "id", $scope0_id, "r", 1, 1, 1, 0, 1);
5134
5146
  _for_of(otherUsage, (u) => {
5135
5147
  const $scope76_id = _scope_id();
5136
- _html(`<li${_attr_class(["_bs", "_cg"])}>`);
5148
+ _html(`<li${_attr_class(["_bt", "_cj"])}>`);
5137
5149
  _set_serialize_reason(6);
5138
5150
  const $childScope9 = _peek_scope_id();
5139
5151
  usage_meters_default({ agent: u });
@@ -5144,17 +5156,17 @@ var settings_page_default = _template("v", (input) => {
5144
5156
  _if(() => {
5145
5157
  if (!usage && families.length) {
5146
5158
  const $scope77_id = _scope_id();
5147
- _html(`<p${_attr_class("_by")}><span${_attr_class("_E")}></span> Loading usage…</p>`);
5159
+ _html(`<p${_attr_class("_bz")}><span${_attr_class("_E")}></span> Loading usage…</p>`);
5148
5160
  writeScope($scope77_id, {});
5149
5161
  return 0;
5150
5162
  } else if (usage?.error) {
5151
5163
  const $scope7_id = _scope_id();
5152
- _html(`<p${_attr_class("_by")}>${_escape(usage.error)}${_el_resume($scope7_id, "b")}</p>`);
5164
+ _html(`<p${_attr_class("_bz")}>${_escape(usage.error)}${_el_resume($scope7_id, "b")}</p>`);
5153
5165
  writeScope($scope7_id, {});
5154
5166
  return 1;
5155
5167
  }
5156
5168
  }, $scope0_id, "t", 1, 1, 1, 0, 1);
5157
- _html(`</section><section${_attr_class("_bn")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_bo")}><h2${_attr("id", githubId)}${_attr_class("_bB")}>GitHub</h2></div><ul${_attr_class("_bq")}>`);
5169
+ _html(`</section><section${_attr_class("_bo")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_bp")}><h2${_attr("id", githubId)}${_attr_class("_bC")}>GitHub</h2></div><ul${_attr_class("_br")}>`);
5158
5170
  _for_of(setup?.github || [], (h) => {
5159
5171
  const $scope12_id = _scope_id();
5160
5172
  const $for_content4__h_host__closures = /* @__PURE__ */ new Set();
@@ -5168,7 +5180,7 @@ var settings_page_default = _template("v", (input) => {
5168
5180
  const skippedSso = (() => {
5169
5181
  return (h.sso || []).filter((s) => ignoredSso.has(s.org));
5170
5182
  })();
5171
- _html(`<li${_attr_class(["_bs", "_cy"])}><div${_attr_class("_cz")}><div${_attr_class("_bt")}><span${_attr_class("_bv")}><span${_attr_class(["_bu", "_w"])}>${_escape(h.host)}${_el_resume($scope12_id, "f")}</span>`);
5183
+ _html(`<li${_attr_class(["_bt", "_cB"])}><div${_attr_class("_cC")}><div${_attr_class("_bu")}><span${_attr_class("_bw")}><span${_attr_class(["_bv", "_w"])}>${_escape(h.host)}${_el_resume($scope12_id, "f")}</span>`);
5172
5184
  _if(() => {
5173
5185
  if (h.isEnterprise) {
5174
5186
  const $scope80_id = _scope_id();
@@ -5180,23 +5192,23 @@ var settings_page_default = _template("v", (input) => {
5180
5192
  _html("</span>");
5181
5193
  _if(() => {
5182
5194
  if (active.has(h.host) && authCodes.has(h.host)) {
5183
- const $scope32_id = _scope_id();
5184
- _html(`<span${_attr_class("_cc")}><span${_attr_class("_E")}></span> Enter code <strong${_attr_class("_cw")}>${_escape(authCodes.get(h.host))}${_el_resume($scope32_id, "d")}</strong> at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_cx")}>${_escape(h.host)}${_el_resume($scope32_id, "f")}/login/device</a>${_el_resume($scope32_id, "e")}</span>`);
5185
- _subscribe($authCodes__closures, writeScope($scope32_id, { Ces: 1 }));
5195
+ const $scope33_id = _scope_id();
5196
+ _html(`<span${_attr_class("_cd")}><span${_attr_class("_E")}></span> Enter code <strong${_attr_class("_cz")}>${_escape(authCodes.get(h.host))}${_el_resume($scope33_id, "d")}</strong> at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_cA")}>${_escape(h.host)}${_el_resume($scope33_id, "f")}/login/device</a>${_el_resume($scope33_id, "e")}</span>`);
5197
+ _subscribe($authCodes__closures, writeScope($scope33_id, { Cet: 1 }));
5186
5198
  return 0;
5187
5199
  } else if (active.has(h.host)) {
5188
5200
  const $scope13_id = _scope_id();
5189
- _html(`<span${_attr_class("_cc")}><span${_attr_class("_E")}></span><!>${_escape(active.get(h.host) || "Starting…")}${_el_resume($scope13_id, "c")}</span>`);
5190
- _subscribe($active__closures, writeScope($scope13_id, { Ceq: 1 }));
5201
+ _html(`<span${_attr_class("_cd")}><span${_attr_class("_E")}></span><!>${_escape(active.get(h.host) || "Starting…")}${_el_resume($scope13_id, "c")}</span>`);
5202
+ _subscribe($active__closures, writeScope($scope13_id, { Cer: 1 }));
5191
5203
  return 1;
5192
5204
  } else if (h.authed) {
5193
5205
  const $scope78_id = _scope_id();
5194
- _html(`<span${_attr_class("_bw")}>Signed in<!>${h.user ? ` as ${_escape(`${_to_text(h.user)}`)}` : ""}${_el_resume($scope78_id, "b")}</span>`);
5206
+ _html(`<span${_attr_class("_bx")}>Signed in<!>${h.user ? ` as ${_escape(`${_to_text(h.user)}`)}` : ""}${_el_resume($scope78_id, "b")}</span>`);
5195
5207
  writeScope($scope78_id, {});
5196
5208
  return 2;
5197
5209
  } else {
5198
5210
  const $scope79_id = _scope_id();
5199
- _html(`<span${_attr_class("_bw")}>${_escape(h.error || "Not signed in")}${_el_resume($scope79_id, "b")}</span>`);
5211
+ _html(`<span${_attr_class("_bx")}>${_escape(h.error || "Not signed in")}${_el_resume($scope79_id, "b")}</span>`);
5200
5212
  writeScope($scope79_id, {});
5201
5213
  return 3;
5202
5214
  }
@@ -5204,32 +5216,32 @@ var settings_page_default = _template("v", (input) => {
5204
5216
  _html("</div>");
5205
5217
  _if(() => {
5206
5218
  if (!active.has(h.host)) {
5207
- const $scope33_id = _scope_id();
5219
+ const $scope34_id = _scope_id();
5208
5220
  _if(() => {
5209
5221
  if (!h.authed) {
5210
- const $scope57_id = _scope_id();
5211
- _html(`<button${_attr_class(btnSm)}>Sign in</button>${_el_resume($scope57_id, "a")}`);
5212
- _script($scope57_id, "v44");
5213
- writeScope($scope57_id, {});
5222
+ const $scope59_id = _scope_id();
5223
+ _html(`<button${_attr_class(btnSm)}>Sign in</button>${_el_resume($scope59_id, "a")}`);
5224
+ _script($scope59_id, "v44");
5225
+ writeScope($scope59_id, {});
5214
5226
  return 0;
5215
5227
  } else {
5216
- const $scope34_id = _scope_id();
5228
+ const $scope35_id = _scope_id();
5217
5229
  _html(`<button${_attr_class([btnSm, {
5218
5230
  ["_r"]: confirmingRemove === `out:${h.host}`,
5219
5231
  ["_q"]: confirmingRemove === `out:${h.host}`
5220
- }])}${confirmingRemove === `out:${h.host}` ? _attr("title", `Sign out of ${h.host}?`) : _attr("title", `Sign out of ${h.host}`)}>${confirmingRemove === `out:${h.host}` ? "Sign out?" : "Sign out"}${_el_resume($scope34_id, "b")}</button>${_el_resume($scope34_id, "a")}`);
5221
- _script($scope34_id, "v45");
5222
- _subscribe($for_content4__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope34_id, {})));
5232
+ }])}${confirmingRemove === `out:${h.host}` ? _attr("title", `Sign out of ${h.host}?`) : _attr("title", `Sign out of ${h.host}`)}>${confirmingRemove === `out:${h.host}` ? "Sign out?" : "Sign out"}${_el_resume($scope35_id, "b")}</button>${_el_resume($scope35_id, "a")}`);
5233
+ _script($scope35_id, "v45");
5234
+ _subscribe($for_content4__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope35_id, {})));
5223
5235
  return 1;
5224
5236
  }
5225
- }, $scope33_id, "a", 1, 1, 1, 0, 1);
5237
+ }, $scope34_id, "a", 1, 1, 1, 0, 1);
5226
5238
  _if(() => {
5227
5239
  if (h.isEnterprise) {
5228
- const $scope35_id = _scope_id();
5240
+ const $scope36_id = _scope_id();
5229
5241
  _html(`<button${_attr_class([
5230
- "_bx",
5231
- "_1",
5242
+ "_by",
5232
5243
  "_2",
5244
+ "_3",
5233
5245
  { ["_q"]: confirmingRemove === h.host }
5234
5246
  ])}${confirmingRemove === h.host ? _attr("title", `Forget ${h.host}? (gh stays signed in)`) : _attr("title", `Forget ${h.host}`)}>`);
5235
5247
  _if(() => {
@@ -5244,16 +5256,16 @@ var settings_page_default = _template("v", (input) => {
5244
5256
  writeScope($scope82_id, {});
5245
5257
  return 1;
5246
5258
  }
5247
- }, $scope35_id, "a", 1, 1, 1, "</button>");
5248
- _script($scope35_id, "v46");
5249
- _subscribe($for_content4__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope35_id, {
5250
- Cet: 1,
5259
+ }, $scope36_id, "a", 1, 1, 1, "</button>");
5260
+ _script($scope36_id, "v46");
5261
+ _subscribe($for_content4__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope36_id, {
5262
+ Ceu: 1,
5251
5263
  Ca2: 1
5252
5264
  })));
5253
5265
  return 0;
5254
5266
  }
5255
- }, $scope33_id, "b", 1, 1, 1, 0, 1);
5256
- writeScope($scope33_id, {});
5267
+ }, $scope34_id, "b", 1, 1, 1, 0, 1);
5268
+ writeScope($scope34_id, {});
5257
5269
  return 0;
5258
5270
  }
5259
5271
  }, $scope12_id, "i");
@@ -5280,7 +5292,7 @@ var settings_page_default = _template("v", (input) => {
5280
5292
  });
5281
5293
  _subscribe($run2__closures, _subscribe($si__input_setupChange && $refresh2__closures, _subscribe($authCodes__closures, _subscribe($active__closures, writeScope($scope14_id, {
5282
5294
  a: _existing_scope($childScope10),
5283
- Ceq: 2
5295
+ Cer: 2
5284
5296
  })))));
5285
5297
  return 0;
5286
5298
  }
@@ -5303,564 +5315,359 @@ var settings_page_default = _template("v", (input) => {
5303
5315
  _if(() => {
5304
5316
  if (setup && !setup.github.length) {
5305
5317
  const $scope83_id = _scope_id();
5306
- _html(`<p${_attr_class("_by")}>Install the GitHub CLI below to sign in.</p>`);
5318
+ _html(`<p${_attr_class("_bz")}>Install the GitHub CLI below to sign in.</p>`);
5307
5319
  writeScope($scope83_id, {});
5308
5320
  return 0;
5309
5321
  }
5310
5322
  }, $scope0_id, "y", 1, 1, 1, 0, 1);
5311
5323
  _if(() => {
5312
5324
  if (setup) {
5313
- const $scope43_id = _scope_id();
5314
- _html(`<form${_attr_class("_cv")}><label${_attr_class("_V")}>`);
5325
+ const $scope44_id = _scope_id();
5326
+ _html(`<form${_attr_class("_cy")}><label${_attr_class("_V")}>`);
5315
5327
  icon_plus_default({
5316
5328
  size: 14,
5317
5329
  class: "_W"
5318
5330
  });
5319
- _html(`<input${_attr_input_value($scope43_id, "d", hostInput, _resume((_new_hostInput) => {
5331
+ _html(`<input${_attr_input_value($scope44_id, "d", hostInput, _resume((_new_hostInput) => {
5320
5332
  hostInput = _new_hostInput;
5321
- }, "v3", $scope43_id))}${_attr_class([inputLg, "_X"])} type=text placeholder="Add a GitHub Enterprise host, e.g. github.example.com" aria-label="GitHub Enterprise host" autocomplete=off spellcheck=false>${_el_resume($scope43_id, "d")}</label><button${_attr_class(btnSm)} type=submit${_attr("disabled", !hostInput.trim() || hostBusy)}>${hostBusy ? "Adding…" : "Add host"}${_el_resume($scope43_id, "f")}</button>${_el_resume($scope43_id, "e")}</form>${_el_resume($scope43_id, "a")}`);
5322
- _script($scope43_id, "v47");
5323
- writeScope($scope43_id, {});
5333
+ }, "v3", $scope44_id))}${_attr_class([inputLg, "_X"])} type=text placeholder="Add a GitHub Enterprise host, e.g. github.example.com" aria-label="GitHub Enterprise host" autocomplete=off spellcheck=false>${_el_resume($scope44_id, "d")}</label><button${_attr_class(btnSm)} type=submit${_attr("disabled", !hostInput.trim() || hostBusy)}>${hostBusy ? "Adding…" : "Add host"}${_el_resume($scope44_id, "f")}</button>${_el_resume($scope44_id, "e")}</form>${_el_resume($scope44_id, "a")}`);
5334
+ _script($scope44_id, "v47");
5335
+ writeScope($scope44_id, {});
5324
5336
  return 0;
5325
5337
  }
5326
5338
  }, $scope0_id, "z", 1, 1, 1, 0, 1);
5327
- _html(`</section><section${_attr_class("_bn")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_bo")}><h2${_attr("id", machineId)}${_attr_class("_bB")}>Machine</h2>`);
5339
+ _html(`</section><section${_attr_class("_bo")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_bp")}><h2${_attr("id", machineId)}${_attr_class("_bC")}><button${_attr_class("_cf")} aria-expanded=${machineOpen ? "true" : "false"}>`);
5340
+ _set_serialize_reason(1);
5341
+ const $childScope11 = _peek_scope_id();
5342
+ icon_chevron_right_default({
5343
+ size: 11,
5344
+ class: ["_cg", { ["_ch"]: machineOpen }]
5345
+ });
5346
+ _html(` Machine</button>${_el_resume($scope0_id, "a3")}</h2>`);
5328
5347
  _if(() => {
5329
5348
  if (missingCount) {
5330
- const $scope64_id = _scope_id();
5331
- _html(`<span${_attr_class(sectionCount$1)}>${_escape(missingCount)}${_el_resume($scope64_id, "b")} missing</span>`);
5332
- writeScope($scope64_id, {});
5349
+ const $scope66_id = _scope_id();
5350
+ _html(`<span${_attr_class(sectionCount$1)}>${_escape(missingCount)}${_el_resume($scope66_id, "b")} missing</span>`);
5351
+ writeScope($scope66_id, {});
5333
5352
  return 0;
5334
5353
  }
5335
- }, $scope0_id, "a3", 1, 1, 1, 0, 1);
5354
+ }, $scope0_id, "a5", 1, 1, 1, 0, 1);
5336
5355
  _if(() => {
5337
5356
  if (outdatedIds.length) {
5338
- const $scope65_id = _scope_id();
5339
- _html(`<span${_attr_class(sectionCount$1)}>${_escape(outdatedIds.length)}${_el_resume($scope65_id, "b")} outdated</span>`);
5340
- writeScope($scope65_id, {});
5357
+ const $scope67_id = _scope_id();
5358
+ _html(`<span${_attr_class(sectionCount$1)}>${_escape(outdatedIds.length)}${_el_resume($scope67_id, "b")} outdated</span>`);
5359
+ writeScope($scope67_id, {});
5341
5360
  return 0;
5342
5361
  }
5343
- }, $scope0_id, "a4", 1, 1, 1, 0, 1);
5362
+ }, $scope0_id, "a6", 1, 1, 1, 0, 1);
5344
5363
  _html(`<div${_attr_class("_x")}></div>`);
5345
5364
  _if(() => {
5346
- if (outdatedIds.length > 1) {
5365
+ if (machineOpen && outdatedIds.length > 1) {
5347
5366
  const $scope15_id = _scope_id();
5348
5367
  _html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Update all</button>${_el_resume($scope15_id, "a")}`);
5349
5368
  _script($scope15_id, "v48");
5350
5369
  writeScope($scope15_id, {});
5351
5370
  return 0;
5352
5371
  }
5353
- }, $scope0_id, "a6", 1, 1, 1, 0, 1);
5372
+ }, $scope0_id, "a8", 1, 1, 1, 0, 1);
5354
5373
  _if(() => {
5355
- if (missingInstallable.length > 1) {
5374
+ if (machineOpen && missingInstallable.length > 1) {
5356
5375
  const $scope16_id = _scope_id();
5357
5376
  _html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Install missing</button>${_el_resume($scope16_id, "a")}`);
5358
5377
  _script($scope16_id, "v49");
5359
5378
  writeScope($scope16_id, {});
5360
5379
  return 0;
5361
5380
  }
5362
- }, $scope0_id, "a7", 1, 1, 1, 0, 1);
5381
+ }, $scope0_id, "a9", 1, 1, 1, 0, 1);
5363
5382
  _html("</div>");
5364
5383
  _if(() => {
5365
- if (setup && !setup.mise.installed) {
5366
- const $scope17_id = _scope_id();
5367
- _html(`<p${_attr_class("_by")}>mise is not installed. It provides every tool below. <button${_attr_class(btnSm)}${_attr("disabled", active.has("mise"))}>${active.has("mise") ? "Installing…" : "Install mise"}${_el_resume($scope17_id, "c")}</button>${_el_resume($scope17_id, "b")}</p>`);
5368
- _script($scope17_id, "v50");
5369
- writeScope($scope17_id, {});
5370
- return 0;
5371
- }
5372
- }, $scope0_id, "a8", 1, 1, 1, 0, 1);
5373
- _html(`<ul${_attr_class(toolGrid)}>`);
5374
- _if(() => {
5375
- if (self) {
5376
- const $scope48_id = _scope_id();
5377
- _html(`<li${_attr_class(row)}><span${_attr_class(["_cr", "_w"])}>work</span>`);
5384
+ if (machineOpen) {
5385
+ const $scope6_id = _scope_id();
5378
5386
  _if(() => {
5379
- if (selfUpdating) {
5380
- const $scope84_id = _scope_id();
5381
- _html(`<span${_attr_class("_cc")}><span${_attr_class("_E")}></span>Updating the app restarts and reloads when it is done…</span>`);
5382
- writeScope($scope84_id, {});
5387
+ if (setup && !setup.mise.installed) {
5388
+ const $scope17_id = _scope_id();
5389
+ _html(`<p${_attr_class("_bz")}>mise is not installed. It provides every tool below. <button${_attr_class(btnSm)}${_attr("disabled", active.has("mise"))}>${active.has("mise") ? "Installing…" : "Install mise"}${_el_resume($scope17_id, "c")}</button>${_el_resume($scope17_id, "b")}</p>`);
5390
+ _script($scope17_id, "v50");
5391
+ _subscribe($active__closures, writeScope($scope17_id, { Cer: 3 }));
5383
5392
  return 0;
5384
- } else {
5393
+ }
5394
+ }, $scope6_id, "a", 1, 1, 1, 0, 1);
5395
+ _html(`<ul${_attr_class(toolGrid)}>`);
5396
+ _if(() => {
5397
+ if (self) {
5385
5398
  const $scope49_id = _scope_id();
5386
- _html(`<span${_attr_class(["_w", metaTrunc])} title="Running version">v<!>${_escape(self.version)}${_el_resume($scope49_id, "b")}</span>`);
5399
+ _html(`<li${_attr_class(row)}><span${_attr_class(["_cu", "_w"])}>work</span>`);
5387
5400
  _if(() => {
5388
- if (self.install === "source") {
5389
- const $scope85_id = _scope_id();
5390
- _html(`<span${_attr_class(metaTrunc)} title="Started from a checkout, not the published package">source checkout update with git</span>`);
5391
- writeScope($scope85_id, {});
5401
+ if (selfUpdating) {
5402
+ const $scope84_id = _scope_id();
5403
+ _html(`<span${_attr_class("_cd")}><span${_attr_class("_E")}></span>Updating the app restarts and reloads when it is done…</span>`);
5404
+ writeScope($scope84_id, {});
5392
5405
  return 0;
5393
- } else if (self.latest && self.latest !== self.version) {
5406
+ } else {
5394
5407
  const $scope50_id = _scope_id();
5395
- _html(`<button${_attr_class([btnSm, "_ct"])}${_attr("title", `Update work to v${self.latest} and restart`)}>`);
5396
- icon_arrow_up_default({ size: 12 });
5397
- _html(` <!>${_escape(self.latest)}${_el_resume($scope50_id, "c")}</button>${_el_resume($scope50_id, "a")}`);
5398
- _script($scope50_id, "v51");
5399
- _subscribe($self_latest__closures, writeScope($scope50_id, { Cf2: 3 }));
5408
+ _html(`<span${_attr_class(["_w", metaTrunc])} title="Running version">v<!>${_escape(self.version)}${_el_resume($scope50_id, "b")}</span>`);
5409
+ _if(() => {
5410
+ if (self.install === "source") {
5411
+ const $scope85_id = _scope_id();
5412
+ _html(`<span${_attr_class(metaTrunc)} title="Started from a checkout, not the published package">source checkout — update with git</span>`);
5413
+ writeScope($scope85_id, {});
5414
+ return 0;
5415
+ } else if (self.latest && self.latest !== self.version) {
5416
+ const $scope51_id = _scope_id();
5417
+ _html(`<button${_attr_class([btnSm, "_cw"])}${_attr("title", `Update work to v${self.latest} and restart`)}>`);
5418
+ icon_arrow_up_default({ size: 12 });
5419
+ _html(` <!>${_escape(self.latest)}${_el_resume($scope51_id, "c")}</button>${_el_resume($scope51_id, "a")}`);
5420
+ _script($scope51_id, "v51");
5421
+ _subscribe($self_latest__closures, writeScope($scope51_id, { Cf4: 3 }));
5422
+ return 1;
5423
+ } else if (self.latest) {
5424
+ const $scope86_id = _scope_id();
5425
+ _html(`<span${_attr_class(metaTrunc)}>up to date</span>`);
5426
+ writeScope($scope86_id, {});
5427
+ return 2;
5428
+ }
5429
+ }, $scope50_id, "c", 1, 1, 1, 0, 1);
5430
+ _subscribe($self_version__closures, _subscribe($self_latest__closures, _subscribe($self_install__closures, writeScope($scope50_id, {
5431
+ Cf4: 2,
5432
+ Cf5: 1
5433
+ }))));
5400
5434
  return 1;
5401
- } else if (self.latest) {
5402
- const $scope86_id = _scope_id();
5403
- _html(`<span${_attr_class(metaTrunc)}>up to date</span>`);
5404
- writeScope($scope86_id, {});
5405
- return 2;
5406
5435
  }
5407
- }, $scope49_id, "c", 1, 1, 1, 0, 1);
5408
- _subscribe($self_version__closures, _subscribe($self_latest__closures, _subscribe($self_install__closures, writeScope($scope49_id, {
5409
- Cf2: 2,
5410
- Cf3: 1
5411
- }))));
5412
- return 1;
5413
- }
5414
- }, $scope48_id, "c");
5415
- _html(`<span${_attr_class("_x")}></span>`);
5416
- _if(() => {
5417
- if (!selfUpdating) {
5418
- const $scope87_id = _scope_id();
5419
- _html(`<span${_attr_class("_H")}>app</span>`);
5420
- writeScope($scope87_id, {});
5436
+ }, $scope49_id, "c");
5437
+ _html(`<span${_attr_class("_x")}></span>`);
5438
+ _if(() => {
5439
+ if (!selfUpdating) {
5440
+ const $scope87_id = _scope_id();
5441
+ _html(`<span${_attr_class("_H")}>app</span>`);
5442
+ writeScope($scope87_id, {});
5443
+ return 0;
5444
+ }
5445
+ }, $scope49_id, "e", 1, 1, 1, 0, 1);
5446
+ _html("</li>");
5447
+ _subscribe($selfUpdating__closures, writeScope($scope49_id, {}));
5421
5448
  return 0;
5422
5449
  }
5423
- }, $scope48_id, "e", 1, 1, 1, 0, 1);
5424
- _html("</li>");
5425
- writeScope($scope48_id, {});
5426
- return 0;
5427
- }
5428
- }, $scope0_id, "aa", 1, 1, 1, 0, 1);
5429
- _for_of(tools, (t) => {
5430
- const $scope18_id = _scope_id();
5431
- const $for_content5__t_label__closures = /* @__PURE__ */ new Set();
5432
- const $for_content5__t_version__closures = /* @__PURE__ */ new Set();
5433
- const $for_content5__t_path__closures = /* @__PURE__ */ new Set();
5434
- const $for_content5__t_latest__closures = /* @__PURE__ */ new Set();
5435
- const $for_content5__t_id__closures = /* @__PURE__ */ new Set();
5436
- _html(`<li${_attr_class([row, { ["_cq"]: !t.installed }])}><span${_attr_class(["_cr", "_w"])}>${_escape(t.label)}${_el_resume($scope18_id, "c")}</span>`);
5437
- _if(() => {
5438
- if (active.has(t.id)) {
5439
- const $scope19_id = _scope_id();
5440
- _html(`<span${_attr_class("_cc")}><span${_attr_class("_E")}></span><!>${_escape(active.get(t.id) || "Starting…")}${_el_resume($scope19_id, "c")}</span>`);
5441
- _subscribe($active__closures, writeScope($scope19_id, { Ceq: 3 }));
5442
- return 0;
5443
- } else if (t.installed) {
5444
- const $scope39_id = _scope_id();
5445
- _if(() => {
5446
- if (t.version) {
5447
- const $scope40_id = _scope_id();
5448
- _html(`<button${_attr_class(["_cs", "_w"])}${_attr("title", `${t.path || t.label}. Pin a version`)}>v<!>${_escape(t.version)}${_el_resume($scope40_id, "b")}</button>${_el_resume($scope40_id, "a")}`);
5449
- _script($scope40_id, "v52");
5450
- _subscribe($for_content5__t_path__closures, _subscribe($for_content5__t_version__closures, _subscribe($for_content5__t_label__closures, writeScope($scope40_id, { Cu: 1 }))));
5451
- return 0;
5452
- } else {
5453
- const $scope88_id = _scope_id();
5454
- _html(`<span${_attr_class([metaTrunc, "_w"])}${_attr("title", t.path)}>${_escape(t.path)}${_el_resume($scope88_id, "b")}</span>${_el_resume($scope88_id, "a")}`);
5455
- _subscribe($for_content5__t_path__closures, writeScope($scope88_id, { Cx: 1 }));
5456
- return 1;
5457
- }
5458
- }, $scope39_id, "a", 1, 1, 1, 0, 1);
5459
- _if(() => {
5460
- if (outdated(t)) {
5461
- const $scope58_id = _scope_id();
5462
- _html(`<button${_attr_class([btnSm, "_ct"])}${_attr("title", `Update to v${t.latest}`)}>`);
5463
- icon_arrow_up_default({ size: 12 });
5464
- _html(` <!>${_escape(t.latest)}${_el_resume($scope58_id, "c")}</button>${_el_resume($scope58_id, "a")}`);
5465
- _script($scope58_id, "v53");
5466
- _subscribe($for_content5__t_latest__closures, writeScope($scope58_id, {}));
5467
- return 0;
5468
- }
5469
- }, $scope39_id, "b", 1, 1, 1, 0, 1);
5470
- writeScope($scope39_id, {});
5471
- return 1;
5472
- } else if (t.installable) {
5473
- const $scope89_id = _scope_id();
5474
- _html(`<span${_attr_class(metaTrunc)}>not installed</span>`);
5475
- writeScope($scope89_id, {});
5476
- return 2;
5477
- } else {
5478
- const $scope90_id = _scope_id();
5479
- _html(`<span${_attr_class(metaTrunc)} title="Installed with the system package manager">system package</span>`);
5480
- writeScope($scope90_id, {});
5481
- return 3;
5482
- }
5483
- }, $scope18_id, "d");
5484
- _html(`<span${_attr_class("_x")}></span>`);
5485
- _if(() => {
5486
- if (!active.has(t.id)) {
5487
- const $scope36_id = _scope_id();
5450
+ }, $scope6_id, "c", 1, 1, 1, 0, 1);
5451
+ _for_of(tools, (t) => {
5452
+ const $scope18_id = _scope_id();
5453
+ const $for_content5__t_label__closures = /* @__PURE__ */ new Set();
5454
+ const $for_content5__t_version__closures = /* @__PURE__ */ new Set();
5455
+ const $for_content5__t_path__closures = /* @__PURE__ */ new Set();
5456
+ const $for_content5__t_latest__closures = /* @__PURE__ */ new Set();
5457
+ const $for_content5__t_id__closures = /* @__PURE__ */ new Set();
5458
+ _html(`<li${_attr_class([row, { ["_ct"]: !t.installed }])}><span${_attr_class(["_cu", "_w"])}>${_escape(t.label)}${_el_resume($scope18_id, "c")}</span>`);
5488
5459
  _if(() => {
5489
- if (t.required) {
5490
- const $scope91_id = _scope_id();
5491
- _html(`<span${_attr_class("_H")}>required</span>`);
5492
- writeScope($scope91_id, {});
5460
+ if (active.has(t.id)) {
5461
+ const $scope19_id = _scope_id();
5462
+ _html(`<span${_attr_class("_cd")}><span${_attr_class("_E")}></span><!>${_escape(active.get(t.id) || "Starting…")}${_el_resume($scope19_id, "c")}</span>`);
5463
+ _subscribe($active__closures, writeScope($scope19_id, { Cer: 5 }));
5493
5464
  return 0;
5494
- }
5495
- }, $scope36_id, "a", 1, 1, 1, 0, 1);
5496
- _if(() => {
5497
- if (!t.installed && t.installable) {
5498
- const $scope59_id = _scope_id();
5499
- _html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope59_id, "a")}`);
5500
- _script($scope59_id, "v54");
5501
- writeScope($scope59_id, {});
5502
- return 0;
5503
- } else if (t.installed && t.version && !t.required) {
5504
- const $scope37_id = _scope_id();
5505
- _html(`<button${_attr_class([
5506
- iconBtnXs,
5507
- "_1",
5508
- "_2",
5509
- { ["_q"]: confirmingRemove === t.id }
5510
- ])}${confirmingRemove === t.id ? _attr("title", `Remove ${t.label}?`) : _attr("title", `Remove ${t.label}`)}>`);
5465
+ } else if (t.installed) {
5466
+ const $scope40_id = _scope_id();
5511
5467
  _if(() => {
5512
- if (confirmingRemove === t.id) {
5513
- const $scope92_id = _scope_id();
5514
- _html("Remove?");
5515
- writeScope($scope92_id, {});
5468
+ if (t.version) {
5469
+ const $scope41_id = _scope_id();
5470
+ _html(`<button${_attr_class(["_cv", "_w"])}${_attr("title", `${t.path || t.label}. Pin a version`)}>v<!>${_escape(t.version)}${_el_resume($scope41_id, "b")}</button>${_el_resume($scope41_id, "a")}`);
5471
+ _script($scope41_id, "v52");
5472
+ _subscribe($for_content5__t_path__closures, _subscribe($for_content5__t_version__closures, _subscribe($for_content5__t_label__closures, writeScope($scope41_id, { Cu: 1 }))));
5516
5473
  return 0;
5517
5474
  } else {
5518
- const $scope93_id = _scope_id();
5519
- icon_xmark_default({ size: 13 });
5520
- writeScope($scope93_id, {});
5475
+ const $scope88_id = _scope_id();
5476
+ _html(`<span${_attr_class([metaTrunc, "_w"])}${_attr("title", t.path)}>${_escape(t.path)}${_el_resume($scope88_id, "b")}</span>${_el_resume($scope88_id, "a")}`);
5477
+ _subscribe($for_content5__t_path__closures, writeScope($scope88_id, { Cx: 1 }));
5521
5478
  return 1;
5522
5479
  }
5523
- }, $scope37_id, "a", 1, 1, 1, "</button>");
5524
- _script($scope37_id, "v55");
5525
- _subscribe($for_content5__t_id__closures, _subscribe($for_content5__t_label__closures, _subscribe($confirmingRemove__closures, writeScope($scope37_id, { Cet: 2 }))));
5480
+ }, $scope40_id, "a", 1, 1, 1, 0, 1);
5481
+ _if(() => {
5482
+ if (outdated(t)) {
5483
+ const $scope60_id = _scope_id();
5484
+ _html(`<button${_attr_class([btnSm, "_cw"])}${_attr("title", `Update to v${t.latest}`)}>`);
5485
+ icon_arrow_up_default({ size: 12 });
5486
+ _html(` <!>${_escape(t.latest)}${_el_resume($scope60_id, "c")}</button>${_el_resume($scope60_id, "a")}`);
5487
+ _script($scope60_id, "v53");
5488
+ _subscribe($for_content5__t_latest__closures, writeScope($scope60_id, {}));
5489
+ return 0;
5490
+ }
5491
+ }, $scope40_id, "b", 1, 1, 1, 0, 1);
5492
+ writeScope($scope40_id, {});
5526
5493
  return 1;
5494
+ } else if (t.installable) {
5495
+ const $scope89_id = _scope_id();
5496
+ _html(`<span${_attr_class(metaTrunc)}>not installed</span>`);
5497
+ writeScope($scope89_id, {});
5498
+ return 2;
5499
+ } else {
5500
+ const $scope90_id = _scope_id();
5501
+ _html(`<span${_attr_class(metaTrunc)} title="Installed with the system package manager">system package</span>`);
5502
+ writeScope($scope90_id, {});
5503
+ return 3;
5527
5504
  }
5528
- }, $scope36_id, "b", 1, 1, 1, 0, 1);
5529
- writeScope($scope36_id, {});
5530
- return 0;
5531
- }
5532
- }, $scope18_id, "f");
5533
- _html(`</li>${_el_resume($scope18_id, "a")}`);
5534
- writeScope($scope18_id, {
5535
- h: t,
5536
- i: t?.installed,
5537
- j: t?.label,
5538
- k: t?.id,
5539
- m: t?.version,
5540
- n: t?.path,
5541
- o: t?.latest,
5542
- p: t?.installable,
5543
- r: t?.required,
5544
- u: $for_content5__t_label__closures,
5545
- w: $for_content5__t_version__closures,
5546
- x: $for_content5__t_path__closures,
5547
- y: $for_content5__t_latest__closures,
5548
- v: $for_content5__t_id__closures
5549
- });
5550
- }, "id", $scope0_id, "ab", 1, 1, 1, 0, 1);
5551
- _html("</ul>");
5552
- _if(() => {
5553
- if (setup && setup.mise.installed) {
5554
- const $scope20_id = _scope_id();
5555
- _html(`<div><label${_attr_class("_V")}>`);
5556
- icon_search_default({
5557
- size: 14,
5558
- class: "_W"
5559
- });
5560
- _html(`<input${_attr_input_value($scope20_id, "c", query, search)}${_attr_class([inputLg, "_X"])} type=text placeholder="Add a tool from the mise registry…" aria-label="Search the mise registry" autocomplete=off>${_el_resume($scope20_id, "c")}</label>`);
5561
- _if(() => {
5562
- if (hits && hits.length) {
5563
- const $scope21_id = _scope_id();
5564
- _html(`<ul${_attr_class([toolGrid, "_cu"])}>`);
5565
- _for_of(hits, (h) => {
5566
- const $scope22_id = _scope_id();
5567
- _html(`<li${_attr_class(row)}><div${_attr_class("_bt")}><span${_attr_class(["_cr", "_w"])}>${_escape(h.name)}${_el_resume($scope22_id, "d")}</span>`);
5505
+ }, $scope18_id, "d");
5506
+ _html(`<span${_attr_class("_x")}></span>`);
5507
+ _if(() => {
5508
+ if (!active.has(t.id)) {
5509
+ const $scope37_id = _scope_id();
5568
5510
  _if(() => {
5569
- if (active.has(h.name)) {
5570
- const $scope23_id = _scope_id();
5571
- _html(`<span${_attr_class("_cc")}><span${_attr_class("_E")}></span><!>${_escape(active.get(h.name) || "Starting…")}${_el_resume($scope23_id, "c")}</span>`);
5572
- _subscribe($active__closures, writeScope($scope23_id, { Ceq: 5 }));
5511
+ if (t.required) {
5512
+ const $scope91_id = _scope_id();
5513
+ _html(`<span${_attr_class("_H")}>required</span>`);
5514
+ writeScope($scope91_id, {});
5573
5515
  return 0;
5574
- } else if (h.description) {
5575
- const $scope94_id = _scope_id();
5576
- _html(`<span${_attr_class("_bw")}${_attr("title", h.description)}>${_escape(h.description)}${_el_resume($scope94_id, "b")}</span>${_el_resume($scope94_id, "a")}`);
5577
- writeScope($scope94_id, {});
5578
- return 1;
5579
5516
  }
5580
- }, $scope22_id, "e", 1, 1, 1, 0, 1);
5581
- _html("</div>");
5517
+ }, $scope37_id, "a", 1, 1, 1, 0, 1);
5582
5518
  _if(() => {
5583
- if (!active.has(h.name)) {
5584
- const $scope41_id = _scope_id();
5519
+ if (!t.installed && t.installable) {
5520
+ const $scope61_id = _scope_id();
5521
+ _html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope61_id, "a")}`);
5522
+ _script($scope61_id, "v54");
5523
+ writeScope($scope61_id, {});
5524
+ return 0;
5525
+ } else if (t.installed && t.version && !t.required) {
5526
+ const $scope38_id = _scope_id();
5527
+ _html(`<button${_attr_class([
5528
+ iconBtnXs,
5529
+ "_2",
5530
+ "_3",
5531
+ { ["_q"]: confirmingRemove === t.id }
5532
+ ])}${confirmingRemove === t.id ? _attr("title", `Remove ${t.label}?`) : _attr("title", `Remove ${t.label}`)}>`);
5585
5533
  _if(() => {
5586
- if (h.installed) {
5587
- const $scope95_id = _scope_id();
5588
- _html(`<span${_attr_class("_H")}>installed</span>`);
5589
- writeScope($scope95_id, {});
5534
+ if (confirmingRemove === t.id) {
5535
+ const $scope92_id = _scope_id();
5536
+ _html("Remove?");
5537
+ writeScope($scope92_id, {});
5590
5538
  return 0;
5591
5539
  } else {
5592
- const $scope42_id = _scope_id();
5593
- _html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope42_id, "a")}<button${_attr_class(btnSm)} title="Install a specific version">@…</button>${_el_resume($scope42_id, "b")}`);
5594
- _script($scope42_id, "v56");
5595
- writeScope($scope42_id, {});
5540
+ const $scope93_id = _scope_id();
5541
+ icon_xmark_default({ size: 13 });
5542
+ writeScope($scope93_id, {});
5596
5543
  return 1;
5597
5544
  }
5598
- }, $scope41_id, "a");
5599
- writeScope($scope41_id, {});
5600
- return 0;
5545
+ }, $scope38_id, "a", 1, 1, 1, "</button>");
5546
+ _script($scope38_id, "v55");
5547
+ _subscribe($for_content5__t_id__closures, _subscribe($for_content5__t_label__closures, _subscribe($confirmingRemove__closures, writeScope($scope38_id, { Ceu: 2 }))));
5548
+ return 1;
5601
5549
  }
5602
- }, $scope22_id, "f");
5603
- _html("</li>");
5604
- _subscribe($active__closures, writeScope($scope22_id, {
5605
- i: h?.name,
5606
- k: h?.description,
5607
- m: h?.installed,
5608
- Ceq: 4
5609
- }));
5610
- }, "name", $scope21_id, "a", 1, 1, 1, "</ul>", 1);
5611
- _subscribe($hits__closures, writeScope($scope21_id, {}));
5612
- return 0;
5613
- } else if (hits && !searching) {
5614
- const $scope44_id = _scope_id();
5615
- _html(`<p${_attr_class("_by")}>No tools match "<!>${_escape(query)}${_el_resume($scope44_id, "b")}".</p>`);
5616
- _subscribe($query__closures, writeScope($scope44_id, {}));
5617
- return 1;
5618
- }
5619
- }, $scope20_id, "d", 1, 1, 1, 0, 1);
5620
- _html("</div>");
5621
- _script($scope20_id, "v57");
5622
- writeScope($scope20_id, {});
5623
- return 0;
5624
- }
5625
- }, $scope0_id, "ac", 1, 1, 1, 0, 1);
5626
- _html(`</section><section${_attr_class("_bn")}${_attr("aria-labelledby", skillsId)}><div${_attr_class("_bo")}><h2${_attr("id", skillsId)}${_attr_class("_bB")}>Skills</h2>`);
5627
- _if(() => {
5628
- if (skills?.global.length) {
5629
- const $scope52_id = _scope_id();
5630
- _html(`<span${_attr_class(sectionCount$1)}>${_escape(skills.global.length)}${_el_resume($scope52_id, "b")}</span>`);
5631
- writeScope($scope52_id, {});
5632
- return 0;
5633
- }
5634
- }, $scope0_id, "ag", 1, 1, 1, 0, 1);
5635
- _html("</div>");
5636
- _if(() => {
5637
- if (skills && !skills.agents.length) {
5638
- const $scope96_id = _scope_id();
5639
- _html(`<p${_attr_class("_by")}>No agent CLIs are installed, so a skill would have nowhere to go.</p>`);
5640
- writeScope($scope96_id, {});
5641
- return 0;
5642
- } else if (skills && !skills.available) {
5643
- const $scope24_id = _scope_id();
5644
- _html(`<p${_attr_class("_by")}>The skills CLI is not installed, so these can be listed but not changed. <button${_attr_class(btnSm)}${_attr("disabled", active.has("skills"))}>${active.has("skills") ? "Installing…" : "Install it"}${_el_resume($scope24_id, "c")}</button>${_el_resume($scope24_id, "b")}</p>`);
5645
- _script($scope24_id, "v58");
5646
- writeScope($scope24_id, {});
5647
- return 1;
5648
- }
5649
- }, $scope0_id, "ah", 1, 1, 1, 0, 1);
5650
- _html(`<ul${_attr_class("_bq")}>`);
5651
- _for_of(skills?.global || [], (s) => {
5652
- const $scope25_id = _scope_id();
5653
- _html(`<li${_attr_class("_bs")}><div${_attr_class("_bt")}><span${_attr_class(["_bu", "_w"])}>${_escape(s.name)}${_el_resume($scope25_id, "d")}</span>`);
5654
- _if(() => {
5655
- if (active.has(s.id)) {
5656
- const $scope26_id = _scope_id();
5657
- _html(`<span${_attr_class("_cc")}><span${_attr_class("_E")}></span><!>${_escape(active.get(s.id) || "Starting…")}${_el_resume($scope26_id, "c")}</span>`);
5658
- _subscribe($active__closures, writeScope($scope26_id, { Ceq: 6 }));
5659
- return 0;
5660
- } else if (s.description) {
5661
- const $scope97_id = _scope_id();
5662
- _html(`<span${_attr_class("_bw")}${_attr("title", s.description)}>${_escape(s.description)}${_el_resume($scope97_id, "b")}</span>${_el_resume($scope97_id, "a")}`);
5663
- writeScope($scope97_id, {});
5664
- return 1;
5665
- }
5666
- }, $scope25_id, "e", 1, 1, 1, 0, 1);
5667
- _if(() => {
5668
- if (s.sourceUrl) {
5669
- const $scope98_id = _scope_id();
5670
- _html(`<a${_attr_class(["_bw", "_cS"])}${_attr("href", s.sourceUrl)} target=_blank rel=noopener${_attr("title", `Open ${s.source} on GitHub`)}>${_escape(s.source)}${_el_resume($scope98_id, "b")}</a>${_el_resume($scope98_id, "a")}`);
5671
- writeScope($scope98_id, {});
5672
- return 0;
5673
- } else if (s.source) {
5674
- const $scope99_id = _scope_id();
5675
- _html(`<span${_attr_class("_bw")}>${_escape(s.source)}${_el_resume($scope99_id, "b")}</span>`);
5676
- writeScope($scope99_id, {});
5677
- return 1;
5678
- } else {
5679
- const $scope101_id = _scope_id();
5680
- _html(`<span${_attr_class(["_bw", "_v"])} title="Not installed from a source, so it cannot be updated">local only</span>`);
5681
- writeScope($scope101_id, {});
5682
- return 2;
5683
- }
5684
- }, $scope25_id, "f", 1, 1, 1, 0, 1);
5685
- _html("</div>");
5686
- _if(() => {
5687
- if (skills && s.agents.length < skills.agents.length) {
5688
- const $scope100_id = _scope_id();
5689
- _html(`<span${_attr_class("_bv")}><span${_attr_class("_H")}${_attr("title", `Only installed for ${s.agents.map(agentLabel).join(", ")}`)}>${_escape(s.agents.map(agentLabel).join(", "))}${_el_resume($scope100_id, "c")} only</span>${_el_resume($scope100_id, "b")}</span>`);
5690
- writeScope($scope100_id, {});
5691
- return 0;
5692
- }
5693
- }, $scope25_id, "g", 1, 1, 1, 0, 1);
5694
- _if(() => {
5695
- if (!active.has(s.id) && skills?.available) {
5696
- const $scope55_id = _scope_id();
5697
- _if(() => {
5698
- if (s.source) {
5699
- const $scope60_id = _scope_id();
5700
- _html(`<button${_attr_class(btnSm)}>Update</button>${_el_resume($scope60_id, "a")}`);
5701
- _script($scope60_id, "v59");
5702
- writeScope($scope60_id, {});
5703
- return 0;
5704
- }
5705
- }, $scope55_id, "a", 1, 1, 1, 0, 1);
5706
- _html(`<button${_attr_class([
5707
- iconBtnXs,
5708
- "_1",
5709
- "_2",
5710
- { ["_q"]: confirmingSkill === s.id }
5711
- ])}${confirmingSkill === s.id ? _attr("title", `Remove ${s.name}?`) : _attr("title", `Remove ${s.name}`)}>`);
5712
- _if(() => {
5713
- if (confirmingSkill === s.id) {
5714
- const $scope102_id = _scope_id();
5715
- _html("Remove?");
5716
- writeScope($scope102_id, {});
5550
+ }, $scope37_id, "b", 1, 1, 1, 0, 1);
5551
+ writeScope($scope37_id, {});
5717
5552
  return 0;
5718
- } else {
5719
- const $scope103_id = _scope_id();
5720
- icon_xmark_default({ size: 13 });
5721
- writeScope($scope103_id, {});
5722
- return 1;
5723
5553
  }
5724
- }, $scope55_id, "b", 1, 1, 1, "</button>");
5725
- _script($scope55_id, "v60");
5726
- _subscribe($confirmingSkill__closures, writeScope($scope55_id, {}));
5727
- return 0;
5728
- }
5729
- }, $scope25_id, "h");
5730
- _html("</li>");
5731
- writeScope($scope25_id, {
5732
- k: s?.name,
5733
- l: s?.id,
5734
- n: s?.description,
5735
- p: s?.sourceUrl,
5736
- q: s?.source,
5737
- s: s?.agents
5738
- });
5739
- }, "id", $scope0_id, "ai", 1, 1, 1, "</ul>", 1);
5740
- _if(() => {
5741
- if (skills && !skills.global.length) {
5742
- const $scope104_id = _scope_id();
5743
- _html(`<p${_attr_class("_by")}>No skills installed. Search below, or paste an owner/repo.</p>`);
5744
- writeScope($scope104_id, {});
5745
- return 0;
5746
- }
5747
- }, $scope0_id, "aj", 1, 1, 1, 0, 1);
5748
- _if(() => {
5749
- if (skills?.available && skills.agents.length) {
5750
- const $scope27_id = _scope_id();
5751
- _html(`<div><label${_attr_class("_V")}>`);
5752
- icon_search_default({
5753
- size: 14,
5754
- class: "_W"
5755
- });
5756
- _html(`<input${_attr_input_value($scope27_id, "c", skillQuery, searchSkills)}${_attr_class([inputLg, "_X"])} type=text placeholder="Search skills, or paste owner/repo…" aria-label="Search for a skill" autocomplete=off spellcheck=false>${_el_resume($scope27_id, "c")}</label><ul${_attr_class([toolGrid, "_cu"])}${_attr("hidden", !skillQuery.trim())}>`);
5554
+ }, $scope18_id, "f");
5555
+ _html(`</li>${_el_resume($scope18_id, "a")}`);
5556
+ _subscribe($active__closures, writeScope($scope18_id, {
5557
+ h: t,
5558
+ i: t?.installed,
5559
+ j: t?.label,
5560
+ k: t?.id,
5561
+ m: t?.version,
5562
+ n: t?.path,
5563
+ o: t?.latest,
5564
+ p: t?.installable,
5565
+ r: t?.required,
5566
+ u: $for_content5__t_label__closures,
5567
+ w: $for_content5__t_version__closures,
5568
+ x: $for_content5__t_path__closures,
5569
+ y: $for_content5__t_latest__closures,
5570
+ v: $for_content5__t_id__closures,
5571
+ Cer: 4
5572
+ }));
5573
+ }, "id", $scope6_id, "d", 1, 1, 1, 0, 1);
5574
+ _html("</ul>");
5757
5575
  _if(() => {
5758
- if (looksLikeSource(skillQuery)) {
5759
- const $scope28_id = _scope_id();
5760
- _html(`<li${_attr_class(row)}><div${_attr_class("_bt")}><span${_attr_class(["_cr", "_w"])}>${_escape(skillQuery.trim())}${_el_resume($scope28_id, "d")}</span>`);
5576
+ if (setup && setup.mise.installed) {
5577
+ const $scope20_id = _scope_id();
5578
+ _html(`<div><label${_attr_class("_V")}>`);
5579
+ icon_search_default({
5580
+ size: 14,
5581
+ class: "_W"
5582
+ });
5583
+ _html(`<input${_attr_input_value($scope20_id, "c", query, search)}${_attr_class([inputLg, "_X"])} type=text placeholder="Add a tool from the mise registry…" aria-label="Search the mise registry" autocomplete=off>${_el_resume($scope20_id, "c")}</label>`);
5761
5584
  _if(() => {
5762
- if (active.has(skillQuery.trim())) {
5763
- const $scope29_id = _scope_id();
5764
- _html(`<span${_attr_class("_cc")}><span${_attr_class("_E")}></span><!>${_escape(active.get(skillQuery.trim()) || "Starting…")}${_el_resume($scope29_id, "c")}</span>`);
5765
- _subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($scope29_id, {
5766
- Ceq: 8,
5767
- Cfa: 1
5768
- })));
5585
+ if (hits && hits.length) {
5586
+ const $scope21_id = _scope_id();
5587
+ _html(`<ul${_attr_class([toolGrid, "_cx"])}>`);
5588
+ _for_of(hits, (h) => {
5589
+ const $scope22_id = _scope_id();
5590
+ _html(`<li${_attr_class(row)}><div${_attr_class("_bu")}><span${_attr_class(["_cu", "_w"])}>${_escape(h.name)}${_el_resume($scope22_id, "d")}</span>`);
5591
+ _if(() => {
5592
+ if (active.has(h.name)) {
5593
+ const $scope23_id = _scope_id();
5594
+ _html(`<span${_attr_class("_cd")}><span${_attr_class("_E")}></span><!>${_escape(active.get(h.name) || "Starting…")}${_el_resume($scope23_id, "c")}</span>`);
5595
+ _subscribe($active__closures, writeScope($scope23_id, { Cer: 7 }));
5596
+ return 0;
5597
+ } else if (h.description) {
5598
+ const $scope94_id = _scope_id();
5599
+ _html(`<span${_attr_class("_bx")}${_attr("title", h.description)}>${_escape(h.description)}${_el_resume($scope94_id, "b")}</span>${_el_resume($scope94_id, "a")}`);
5600
+ writeScope($scope94_id, {});
5601
+ return 1;
5602
+ }
5603
+ }, $scope22_id, "e", 1, 1, 1, 0, 1);
5604
+ _html("</div>");
5605
+ _if(() => {
5606
+ if (!active.has(h.name)) {
5607
+ const $scope42_id = _scope_id();
5608
+ _if(() => {
5609
+ if (h.installed) {
5610
+ const $scope95_id = _scope_id();
5611
+ _html(`<span${_attr_class("_H")}>installed</span>`);
5612
+ writeScope($scope95_id, {});
5613
+ return 0;
5614
+ } else {
5615
+ const $scope43_id = _scope_id();
5616
+ _html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope43_id, "a")}<button${_attr_class(btnSm)} title="Install a specific version">@…</button>${_el_resume($scope43_id, "b")}`);
5617
+ _script($scope43_id, "v56");
5618
+ writeScope($scope43_id, {});
5619
+ return 1;
5620
+ }
5621
+ }, $scope42_id, "a");
5622
+ writeScope($scope42_id, {});
5623
+ return 0;
5624
+ }
5625
+ }, $scope22_id, "f");
5626
+ _html("</li>");
5627
+ _subscribe($active__closures, writeScope($scope22_id, {
5628
+ i: h?.name,
5629
+ k: h?.description,
5630
+ m: h?.installed,
5631
+ Cer: 6
5632
+ }));
5633
+ }, "name", $scope21_id, "a", 1, 1, 1, "</ul>", 1);
5634
+ _subscribe($hits__closures, writeScope($scope21_id, { Cf1: 1 }));
5769
5635
  return 0;
5770
- } else {
5771
- const $scope105_id = _scope_id();
5772
- _html(`<span${_attr_class("_bw")}>Add straight from this source</span>`);
5773
- writeScope($scope105_id, {});
5636
+ } else if (hits && !searching) {
5637
+ const $scope45_id = _scope_id();
5638
+ _html(`<p${_attr_class("_bz")}>No tools match "<!>${_escape(query)}${_el_resume($scope45_id, "b")}".</p>`);
5639
+ _subscribe($query__closures, writeScope($scope45_id, { Cf0: 1 }));
5774
5640
  return 1;
5775
5641
  }
5776
- }, $scope28_id, "e", 1, 1, 1, 0, 1);
5642
+ }, $scope20_id, "d", 1, 1, 1, 0, 1);
5777
5643
  _html("</div>");
5778
- _if(() => {
5779
- if (!active.has(skillQuery.trim())) {
5780
- const $scope53_id = _scope_id();
5781
- _html(`<button${_attr_class(btnSm)}>Add</button>${_el_resume($scope53_id, "a")}`);
5782
- _script($scope53_id, "v61");
5783
- writeScope($scope53_id, {});
5784
- return 0;
5785
- }
5786
- }, $scope28_id, "f", 1, 1, 1, 0, 1);
5787
- _html("</li>");
5788
- _subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($scope28_id, { Ceq: 7 })));
5644
+ _script($scope20_id, "v57");
5645
+ _subscribe($search2__closures, _subscribe($searching__closures, _subscribe($hits__closures, _subscribe($query__closures, writeScope($scope20_id, {})))));
5789
5646
  return 0;
5790
5647
  }
5791
- }, $scope27_id, "e", 1, 1, 1, 0, 1);
5792
- _for_of(skillHits || [], (h) => {
5793
- const $scope30_id = _scope_id();
5794
- const $for_content8__h_installs__closures = /* @__PURE__ */ new Set();
5795
- _html(`<li${_attr_class(row)}><div${_attr_class("_bt")}><span${_attr_class(["_cr", "_w"])}>${_escape(h.name)}${_el_resume($scope30_id, "d")}</span>`);
5796
- _if(() => {
5797
- if (active.has(h.skillId)) {
5798
- const $scope31_id = _scope_id();
5799
- _html(`<span${_attr_class("_cc")}><span${_attr_class("_E")}></span><!>${_escape(active.get(h.skillId) || "Starting…")}${_el_resume($scope31_id, "c")}</span>`);
5800
- _subscribe($active__closures, writeScope($scope31_id, { Ceq: 10 }));
5801
- return 0;
5802
- } else {
5803
- const $scope106_id = _scope_id();
5804
- _html(`<span${_attr_class("_bw")}${_attr("title", h.source)}>${_escape(h.source)}${_el_resume($scope106_id, "b")}</span>${_el_resume($scope106_id, "a")}`);
5805
- writeScope($scope106_id, {});
5806
- return 1;
5807
- }
5808
- }, $scope30_id, "e", 1, 1, 1, 0, 1);
5809
- _html("</div>");
5810
- _if(() => {
5811
- if (!active.has(h.skillId)) {
5812
- const $scope61_id = _scope_id();
5813
- _if(() => {
5814
- if (h.installs) {
5815
- const $scope107_id = _scope_id();
5816
- _html(`<span${_attr_class(["_H", "_I"])}${_attr("title", `${h.installs} installs`)}>${_escape(skillInstalls(h.installs))}${_el_resume($scope107_id, "b")}</span>${_el_resume($scope107_id, "a")}`);
5817
- _subscribe($for_content8__h_installs__closures, writeScope($scope107_id, {}));
5818
- return 0;
5819
- }
5820
- }, $scope61_id, "a", 1, 1, 1, 0, 1);
5821
- _if(() => {
5822
- if (h.installed) {
5823
- const $scope108_id = _scope_id();
5824
- _html(`<span${_attr_class("_H")}>installed</span>`);
5825
- writeScope($scope108_id, {});
5826
- return 0;
5827
- } else {
5828
- const $scope62_id = _scope_id();
5829
- _html(`<button${_attr_class(btnSm)}>Add</button>${_el_resume($scope62_id, "a")}`);
5830
- _script($scope62_id, "v62");
5831
- writeScope($scope62_id, {});
5832
- return 1;
5833
- }
5834
- }, $scope61_id, "b", 1, 1, 1, 0, 1);
5835
- writeScope($scope61_id, {});
5836
- return 0;
5837
- }
5838
- }, $scope30_id, "f");
5839
- _html("</li>");
5840
- _subscribe($active__closures, writeScope($scope30_id, {
5841
- j: h?.skillId,
5842
- l: h?.source,
5843
- m: h?.installs,
5844
- n: h?.installed,
5845
- q: $for_content8__h_installs__closures,
5846
- Ceq: 9
5847
- }));
5848
- }, "skillId", $scope27_id, "f", 1, 1, 1, 0, 1);
5849
- _html(`</ul>${_el_resume($scope27_id, "d")}`);
5850
- _if(() => {
5851
- if (skillHits && !skillHits.length && !skillSearching && !looksLikeSource(skillQuery)) {
5852
- const $scope54_id = _scope_id();
5853
- _html(`<p${_attr_class("_by")}>No skills match "<!>${_escape(skillQuery)}${_el_resume($scope54_id, "b")}".</p>`);
5854
- _subscribe($skillQuery__closures, writeScope($scope54_id, { Cfa: 2 }));
5855
- return 0;
5856
- }
5857
- }, $scope27_id, "g", 1, 1, 1, 0, 1);
5858
- _html("</div>");
5859
- _script($scope27_id, "v63");
5860
- writeScope($scope27_id, {});
5648
+ }, $scope6_id, "e", 1, 1, 1, 0, 1);
5649
+ writeScope($scope6_id, {});
5861
5650
  return 0;
5862
5651
  }
5863
- }, $scope0_id, "ak", 1, 1, 1, 0, 1);
5652
+ }, $scope0_id, "aa");
5653
+ _html(`</section><section${_attr_class("_bo")}${_attr("aria-labelledby", skillsId)}><div${_attr_class("_bp")}><h2${_attr("id", skillsId)}${_attr_class("_bC")}><button${_attr_class("_cf")} aria-expanded=false>`);
5654
+ _set_serialize_reason(1);
5655
+ const $childScope12 = _peek_scope_id();
5656
+ icon_chevron_right_default({
5657
+ size: 11,
5658
+ class: ["_cg", { ["_ch"]: skillsOpen }]
5659
+ });
5660
+ _html(` Skills</button>${_el_resume($scope0_id, "ae")}</h2>`);
5661
+ _if(() => {
5662
+ if (skills?.global.length) {
5663
+ const $scope53_id = _scope_id();
5664
+ _html(`<span${_attr_class(sectionCount$1)}>${_escape(skills.global.length)}${_el_resume($scope53_id, "b")}</span>`);
5665
+ writeScope($scope53_id, {});
5666
+ return 0;
5667
+ }
5668
+ }, $scope0_id, "ag", 1, 1, 1, 0, 1);
5669
+ _html("</div>");
5670
+ _if(() => {}, $scope0_id, "ah");
5864
5671
  const themeOpts = [
5865
5672
  {
5866
5673
  id: "system",
@@ -5875,56 +5682,56 @@ var settings_page_default = _template("v", (input) => {
5875
5682
  label: "Dark"
5876
5683
  }
5877
5684
  ];
5878
- _html(`</section><section${_attr_class("_bn")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_bo")}><h2${_attr("id", appearanceId)}${_attr_class("_bB")}>Appearance</h2></div><div${_attr_class(["_bs", "_cA"])}><label${_attr_class("_cB")}><span${_attr_class("_cC")}>Name</span><input${_attr_input_value($scope0_id, "ar", input.instance.name, _resume(function(v) {
5685
+ _html(`</section><section${_attr_class("_bo")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_bp")}><h2${_attr("id", appearanceId)}${_attr_class("_bC")}>Appearance</h2></div><div${_attr_class(["_bt", "_cD"])}><label${_attr_class("_cE")}><span${_attr_class("_cF")}>Name</span><input${_attr_input_value($scope0_id, "ao", input.instance.name, _resume(function(v) {
5879
5686
  setInstance({ name: v });
5880
- }, "v4", $scope0_id))}${_attr_class(["_T", "_cD"])} type=text placeholder="Tab title" maxlength=32 autocomplete=off spellcheck=false>${_el_resume($scope0_id, "ar")}</label><div${_attr_class("_cB")}><span${_attr_class("_cC")}>Theme</span><span${_attr_class("_cF")}><span${_attr_class(themeSeg)} role=radiogroup aria-label="Color theme">`);
5687
+ }, "v4", $scope0_id))}${_attr_class(["_T", "_cG"])} type=text placeholder="Tab title" maxlength=32 autocomplete=off spellcheck=false>${_el_resume($scope0_id, "ao")}</label><div${_attr_class("_cE")}><span${_attr_class("_cF")}>Theme</span><span${_attr_class("_cI")}><span${_attr_class(themeSeg)} role=radiogroup aria-label="Color theme">`);
5881
5688
  _for_of(themeOpts, (opt) => {
5882
- const $scope51_id = _scope_id();
5883
- _html(`<button type=button${_attr_class(["_7", { ["_6"]: themeMode === opt.id }])} role=radio aria-checked=${themeMode === opt.id ? "true" : "false"}>${_escape(opt.label)}</button>${_el_resume($scope51_id, "a")}`);
5884
- _script($scope51_id, "v64");
5885
- writeScope($scope51_id, {
5689
+ const $scope52_id = _scope_id();
5690
+ _html(`<button type=button${_attr_class(["_8", { ["_7"]: themeMode === opt.id }])} role=radio aria-checked=${themeMode === opt.id ? "true" : "false"}>${_escape(opt.label)}</button>${_el_resume($scope52_id, "a")}`);
5691
+ _script($scope52_id, "v65");
5692
+ writeScope($scope52_id, {
5886
5693
  e: opt?.id,
5887
5694
  _: _scope_with_id($scope0_id)
5888
5695
  });
5889
- }, "id", $scope0_id, "av", 1, 0, 1, 0, 1);
5890
- _html(`</span><span${_attr_class(["_m", "_cG"])}>`);
5891
- _attr_select_value($scope0_id, "ax", themeMode, _resume(function(v) {
5696
+ }, "id", $scope0_id, "as", 1, 0, 1, 0, 1);
5697
+ _html(`</span><span${_attr_class(["_m", "_cJ"])}>`);
5698
+ _attr_select_value($scope0_id, "au", themeMode, _resume(function(v) {
5892
5699
  setThemeMode(v);
5893
5700
  }, "v5", $scope0_id), () => {
5894
- _html(`<select${_attr_class(["_n", "_cH"])} aria-label="Color theme">`);
5701
+ _html(`<select${_attr_class(["_n", "_cK"])} aria-label="Color theme">`);
5895
5702
  forOf(themeOpts, (opt) => {
5896
5703
  _scope_id();
5897
5704
  _html(`<option${_attr_option_value(opt.id)}>${_escape(opt.label)}</option>`);
5898
5705
  });
5899
5706
  _html("</select>");
5900
5707
  });
5901
- _html(`${_el_resume($scope0_id, "ax")}</span></span></div><div${_attr_class("_cB")}><span${_attr_class("_cC")}>Accent</span><span${_attr_class(swatches)} role=radiogroup aria-label="Accent colour"><button type=button${_attr_class([
5902
- "_cN",
5903
- "_cP",
5904
- { ["_cO"]: !input.instance.accent }
5905
- ])} role=radio aria-checked=${!input.instance.accent ? "true" : "false"} title="Default (blue)" aria-label="Default (blue)"></button>${_el_resume($scope0_id, "b1")}`);
5708
+ _html(`${_el_resume($scope0_id, "au")}</span></span></div><div${_attr_class("_cE")}><span${_attr_class("_cF")}>Accent</span><span${_attr_class(swatches)} role=radiogroup aria-label="Accent colour"><button type=button${_attr_class([
5709
+ "_cQ",
5710
+ "_cS",
5711
+ { ["_cR"]: !input.instance.accent }
5712
+ ])} role=radio aria-checked=${!input.instance.accent ? "true" : "false"} title="Default (blue)" aria-label="Default (blue)"></button>${_el_resume($scope0_id, "ay")}`);
5906
5713
  _for_of(ACCENT_PRESETS, (p) => {
5907
5714
  const $scope4_id = _scope_id();
5908
- _html(`<button type=button${_attr_class(["_cN", { ["_cO"]: input.instance.accent === p.value }])}${_attr_style(`--swatch:${p.value}`)} role=radio aria-checked=${input.instance.accent === p.value ? "true" : "false"}${_attr("title", p.name)}${_attr("aria-label", p.name)}></button>${_el_resume($scope4_id, "a")}`);
5909
- _script($scope4_id, "v65");
5715
+ _html(`<button type=button${_attr_class(["_cQ", { ["_cR"]: input.instance.accent === p.value }])}${_attr_style(`--swatch:${p.value}`)} role=radio aria-checked=${input.instance.accent === p.value ? "true" : "false"}${_attr("title", p.name)}${_attr("aria-label", p.name)}></button>${_el_resume($scope4_id, "a")}`);
5716
+ _script($scope4_id, "v66");
5910
5717
  writeScope($scope4_id, {
5911
5718
  d: p?.value,
5912
5719
  _: _scope_with_id($scope0_id)
5913
5720
  });
5914
- }, "value", $scope0_id, "b2", $sg__input_instance_accent, 0, 1, 0, 1);
5721
+ }, "value", $scope0_id, "az", $sg__input_instance_accent, 0, 1, 0, 1);
5915
5722
  const customOn = !!input.instance.accent && !ACCENT_PRESETS.some((p) => p.value === input.instance.accent);
5916
5723
  _html(`<label${_attr_class([
5917
- "_cN",
5918
5724
  "_cQ",
5919
- { ["_cO"]: customOn }
5920
- ])}${customOn ? _attr_style(`--swatch:${input.instance.accent}`) : ""} title="Custom colour"><input${_attr_input_value($scope0_id, "b4", input.instance.accent || "#3556d8", _resume(function(v) {
5725
+ "_cT",
5726
+ { ["_cR"]: customOn }
5727
+ ])}${customOn ? _attr_style(`--swatch:${input.instance.accent}`) : ""} title="Custom colour"><input${_attr_input_value($scope0_id, "b1", input.instance.accent || "#3556d8", _resume(function(v) {
5921
5728
  setInstance({ accent: v });
5922
- }, "v6", $scope0_id))}${_attr_class("_cR")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "b4")}<span aria-hidden=true>+</span></label>${_el_resume($scope0_id, "b3", $sg__input_instance_accent)}</span></div></div></section></div></div></div>`);
5729
+ }, "v6", $scope0_id))}${_attr_class("_cU")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "b1")}<span aria-hidden=true>+</span></label>${_el_resume($scope0_id, "b0", $sg__input_instance_accent)}</span></div></div></section></div></div></div>`);
5923
5730
  _if(() => {
5924
5731
  if (versionPick) {
5925
- const $scope38_id = _scope_id();
5732
+ const $scope39_id = _scope_id();
5926
5733
  _set_serialize_reason(14);
5927
- const $childScope11 = _peek_scope_id();
5734
+ const $childScope13 = _peek_scope_id();
5928
5735
  prompt_dialog_default({
5929
5736
  label: `Pin ${versionPick.label}: latest, lts, a prefix (22), or exact (22.11.0)`,
5930
5737
  placeholder: "latest",
@@ -5933,126 +5740,141 @@ var settings_page_default = _template("v", (input) => {
5933
5740
  open: versionPick != null,
5934
5741
  openChange: _resume(function(o) {
5935
5742
  if (!o) versionPick = null;
5936
- }, "v34", $scope38_id),
5743
+ }, "v34", $scope39_id),
5937
5744
  onSubmit: _resume(function(v) {
5938
5745
  const pick = versionPick;
5939
5746
  versionPick = null;
5940
5747
  run(pick.id, "install", v);
5941
- }, "v35", $scope38_id)
5748
+ }, "v35", $scope39_id)
5942
5749
  });
5943
- writeScope($scope38_id, { a: _existing_scope($childScope11) });
5750
+ writeScope($scope39_id, { a: _existing_scope($childScope13) });
5944
5751
  return 0;
5945
5752
  }
5946
- }, $scope0_id, "b5", 1, 1, 1, 0, 1);
5947
- _script($scope0_id, "v66");
5753
+ }, $scope0_id, "b2", 1, 1, 1, 0, 1);
5948
5754
  _script($scope0_id, "v67");
5755
+ _script($scope0_id, "v68");
5949
5756
  writeScope($scope0_id, {
5950
- b9: input.setupChange,
5951
- ba: input.agentsChange,
5952
- bb: input.preferred,
5953
- bc: input.preferredChange,
5954
- be: input.instance,
5955
- bf: input.instanceChange,
5956
- bh: input.onExit,
5957
- bj: $si__input_instance__OR__input_instanceChange && input.instance?.name,
5958
- bk: $si__input_instance__OR__input_instanceChange && input.instance?.accent,
5959
- bl: setup,
5960
- bm: setup?.agents,
5961
- bo: setup?.missing,
5962
- bq: usage,
5963
- br: usage?.agents,
5964
- bs: usage?.error,
5965
- bt: error,
5966
- bu: refreshing,
5967
- bw: active,
5968
- bx: active?.size,
5969
- by: authCodes,
5970
- bz: confirmingRemove,
5971
- c0: versionPick,
5972
- c1: versionPick?.label,
5973
- c2: versionPick?.current,
5974
- c3: hostInput,
5975
- c4: hostBusy,
5976
- c5: query,
5977
- c6: hits,
5978
- c7: self,
5979
- c8: self?.install,
5980
- c9: self?.latest,
5981
- ca: self?.version,
5982
- cb: selfUpdating,
5983
- ce: searching,
5984
- cg: searchTimer.id,
5985
- ci: skills,
5986
- ck: skills?.global?.length,
5987
- cn: skills?.available,
5988
- co: skillQuery,
5989
- cp: skillHits,
5990
- cq: skillSearching,
5991
- cr: confirmingSkill,
5992
- ct: skillTimer.id,
5993
- cv: setThemeMode,
5994
- cz: applySetup,
5995
- d1: syncAgents,
5996
- d2: loadSetup,
5997
- d3: loadSelf,
5998
- d5: updateSelf,
5999
- d6: loadUsage,
6000
- d8: refresh,
6001
- d9: refreshUsage,
6002
- da: setActive,
6003
- dc: run,
6004
- dd: applySkills,
6005
- df: loadSkills,
6006
- dg: runSkill,
6007
- dh: searchSkills,
6008
- di: changeHost,
6009
- dj: runEach,
6010
- dk: setPreferred,
6011
- dn: saveTimer.id,
6012
- dp: setInstance,
6013
- ds: setEnabled,
6014
- dt: search,
6015
- du: outdated,
6016
- dx: missingInstallable,
5757
+ b6: input.setupChange,
5758
+ b7: input.agentsChange,
5759
+ b8: input.preferred,
5760
+ b9: input.preferredChange,
5761
+ bb: input.instance,
5762
+ bc: input.instanceChange,
5763
+ be: input.onExit,
5764
+ bg: $si__input_instance__OR__input_instanceChange && input.instance?.name,
5765
+ bh: $si__input_instance__OR__input_instanceChange && input.instance?.accent,
5766
+ bi: setup,
5767
+ bj: setup?.agents,
5768
+ bl: setup?.missing,
5769
+ bn: usage,
5770
+ bo: usage?.agents,
5771
+ bp: usage?.error,
5772
+ bq: error,
5773
+ br: refreshing,
5774
+ bt: active,
5775
+ bu: active?.size,
5776
+ bv: authCodes,
5777
+ bw: confirmingRemove,
5778
+ bx: versionPick,
5779
+ by: versionPick?.label,
5780
+ bz: versionPick?.current,
5781
+ c0: hostInput,
5782
+ c1: hostBusy,
5783
+ c2: query,
5784
+ c3: hits,
5785
+ c4: self,
5786
+ c5: self?.install,
5787
+ c6: self?.latest,
5788
+ c7: self?.version,
5789
+ c8: selfUpdating,
5790
+ cb: searching,
5791
+ cd: searchTimer.id,
5792
+ cf: skills,
5793
+ cg: skills?.global,
5794
+ ch: skills?.global?.length,
5795
+ cj: skills?.agents?.length,
5796
+ ck: skills?.available,
5797
+ cl: skillQuery,
5798
+ cm: skillHits,
5799
+ cn: skillSearching,
5800
+ co: confirmingSkill,
5801
+ cq: skillTimer.id,
5802
+ cs: machineOpen,
5803
+ ct: skillsOpen,
5804
+ cu: setThemeMode,
5805
+ cy: applySetup,
5806
+ d0: syncAgents,
5807
+ d1: loadSetup,
5808
+ d2: loadSelf,
5809
+ d4: updateSelf,
5810
+ d5: loadUsage,
5811
+ d7: refresh,
5812
+ d8: refreshUsage,
5813
+ d9: setActive,
5814
+ db: run,
5815
+ dc: applySkills,
5816
+ de: loadSkills,
5817
+ df: runSkill,
5818
+ dg: searchSkills,
5819
+ dh: changeHost,
5820
+ di: runEach,
5821
+ dj: setPreferred,
5822
+ dm: saveTimer.id,
5823
+ do: setInstance,
5824
+ dr: setEnabled,
5825
+ ds: search,
5826
+ dt: outdated,
5827
+ du: tools,
5828
+ dw: missingInstallable,
5829
+ dx: missingInstallable?.length,
6017
5830
  dz: missingCount,
6018
5831
  e0: outdatedIds,
6019
5832
  e1: outdatedIds?.length,
6020
- e2: families,
6021
- e4: families.length,
6022
- e6: instanceIds,
6023
- e8: accountsFor,
6024
- e9: strayAccountsFor,
6025
- em: $setup_missing__closures,
6026
- el: $setup2__closures,
6027
- ep: $refreshing__closures,
6028
- d: _serialize_if($scope0_reason, 1) && _existing_scope($childScope2),
6029
- eo: $error__closures,
6030
- f2: $self_latest__closures,
6031
- f3: $self_version__closures,
5833
+ e3: families,
5834
+ e5: families.length,
5835
+ e7: instanceIds,
5836
+ e9: accountsFor,
5837
+ ea: strayAccountsFor,
5838
+ en: $setup_missing__closures,
5839
+ eq: $refreshing__closures,
5840
+ d: _existing_scope($childScope2),
5841
+ ep: $error__closures,
5842
+ f4: $self_latest__closures,
5843
+ f5: $self_version__closures,
6032
5844
  p: _existing_scope($childScope3),
6033
- eq: $active__closures,
6034
- ej: $si__input_preferred && $input_preferred__closures,
6035
- fl: $accountsFor2__closures,
6036
- es: $authCodes__closures,
6037
- et: $confirmingRemove__closures,
6038
- fe: $si__input_setupChange && $refresh2__closures,
6039
- ff: $run2__closures,
6040
- f1: $self_install__closures,
6041
- f0: $hits__closures,
6042
- ez: $query__closures,
6043
- fd: $confirmingSkill__closures,
6044
- fa: $skillQuery__closures
5845
+ er: $active__closures,
5846
+ ek: $si__input_preferred && $input_preferred__closures,
5847
+ fq: $accountsFor2__closures,
5848
+ et: $authCodes__closures,
5849
+ eu: $confirmingRemove__closures,
5850
+ fi: $si__input_setupChange && $refresh2__closures,
5851
+ fj: $run2__closures,
5852
+ a4: _existing_scope($childScope11),
5853
+ f3: $self_install__closures,
5854
+ f6: $selfUpdating__closures,
5855
+ f1: $hits__closures,
5856
+ f0: $query__closures,
5857
+ f8: $searching__closures,
5858
+ fl: $search2__closures,
5859
+ af: _existing_scope($childScope12),
5860
+ fh: $confirmingSkill__closures,
5861
+ f9: $skills__closures,
5862
+ fd: $skills_available__closures,
5863
+ fe: $skillQuery__closures,
5864
+ ff: $skillHits__closures,
5865
+ fg: $skillSearching__closures,
5866
+ fk: $searchSkills2__closures
6045
5867
  });
6046
5868
  _resume_branch($scope0_id);
6047
5869
  });
6048
5870
  //#endregion
6049
5871
  //#region src/tags/new-workspace.css.ts
6050
- var content$1 = "_bL _bE";
6051
- var section$1 = "_bP _bn";
6052
- var curBase = "_bU _S _R";
6053
- var archived = "_bZ _bn";
6054
- var archivedHint = "_b0 _R";
6055
- var archivedCard = "_b1 _bs";
5872
+ var content$1 = "_bM _bF";
5873
+ var section$1 = "_bQ _bo";
5874
+ var curBase = "_bV _S _R";
5875
+ var archived = "_b0 _bo";
5876
+ var archivedHint = "_b1 _R";
5877
+ var archivedCard = "_b2 _bt";
6056
5878
  //#endregion
6057
5879
  //#region src/tags/icons/icon-check.marko
6058
5880
  var icon_check_default = _template("P", (input) => {
@@ -6087,7 +5909,7 @@ var icon_branch_default = _template("O", (input) => {
6087
5909
  });
6088
5910
  _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
6089
5911
  });
6090
- var resultBranch = "_c1 _Y _j";
5912
+ var resultBranch = "_c_ _Y _j";
6091
5913
  //#endregion
6092
5914
  //#region src/tags/branch-pick.marko
6093
5915
  var branch_pick_default = _template("d", (input) => {
@@ -6100,11 +5922,11 @@ var branch_pick_default = _template("d", (input) => {
6100
5922
  let branchFilter = "";
6101
5923
  let reloadTick = 0;
6102
5924
  let refreshing = false;
6103
- _html(`<div${_attr_class("_c3")}>`);
5925
+ _html(`<div${_attr_class("_db")}>`);
6104
5926
  _if(() => {
6105
5927
  {
6106
5928
  const $scope4_id = _scope_id();
6107
- _html(`<p${_attr_class("_by")}><span${_attr_class("_E")}></span> Loading branches…</p>`);
5929
+ _html(`<p${_attr_class("_bz")}><span${_attr_class("_E")}></span> Loading branches…</p>`);
6108
5930
  writeScope($scope4_id, {});
6109
5931
  return 0;
6110
5932
  }
@@ -6182,11 +6004,11 @@ var repo_picker_default = _template("t", (input) => {
6182
6004
  const ignored = new Set(prefs$1?.ignoredSsoOrgs?.() ?? []);
6183
6005
  return (catalog?.sso || []).filter((s) => !ignored.has(s.org));
6184
6006
  })();
6185
- _html(`<div${_attr_class("_cU")}>`);
6007
+ _html(`<div${_attr_class("_c3")}>`);
6186
6008
  _if(() => {
6187
6009
  if (ssoPending.length) {
6188
6010
  const $scope7_id = _scope_id();
6189
- _html(`<div${_attr_class("_cV")}>`);
6011
+ _html(`<div${_attr_class("_c4")}>`);
6190
6012
  _set_serialize_reason(154);
6191
6013
  const $childScope = _peek_scope_id();
6192
6014
  sso_auth_default({
@@ -6216,16 +6038,16 @@ var repo_picker_default = _template("t", (input) => {
6216
6038
  _if(() => {
6217
6039
  if (pasted) {
6218
6040
  const $scope1_id = _scope_id();
6219
- _html(`<ul${_attr_class("_cW")}><li><div${_attr_class(["_cY", "_cX"])}><button${_attr_class("_cZ")}${pasteWillFork ? _attr("title", `Fork ${pasted} to your account and add the fork`) : _attr("title", `Add ${pasted} as-is (pushes go to that repo)`)}>`);
6041
+ _html(`<ul${_attr_class("_c5")}><li><div${_attr_class(["_c7", "_c6"])}><button${_attr_class("_c8")}${pasteWillFork ? _attr("title", `Fork ${pasted} to your account and add the fork`) : _attr("title", `Add ${pasted} as-is (pushes go to that repo)`)}>`);
6220
6042
  icon_plus_default({
6221
6043
  size: 12,
6222
- class: "_c5"
6044
+ class: "_dd"
6223
6045
  });
6224
- _html(`<span${_attr_class("_c6")}>${_escape(repoLabel(pasted))}${_el_resume($scope1_id, "f")}</span></button>${_el_resume($scope1_id, "c")}`);
6046
+ _html(`<span${_attr_class("_de")}>${_escape(repoLabel(pasted))}${_el_resume($scope1_id, "f")}</span></button>${_el_resume($scope1_id, "c")}`);
6225
6047
  _if(() => {
6226
6048
  if (pastedForkable) {
6227
6049
  const $scope8_id = _scope_id();
6228
- _html(`<button${_attr_class(["_c2", { ["_c0"]: pasteWillFork }])}${pasteWillFork ? " title=\"Will fork to your account; click to clone as-is instead\"" : _attr("title", `Fork ${pasted} to your account and clone the fork`)} aria-pressed=${pasteWillFork ? "true" : "false"}>`);
6050
+ _html(`<button${_attr_class(["_da", { ["_c9"]: pasteWillFork }])}${pasteWillFork ? " title=\"Will fork to your account; click to clone as-is instead\"" : _attr("title", `Fork ${pasted} to your account and clone the fork`)} aria-pressed=${pasteWillFork ? "true" : "false"}>`);
6229
6051
  _if(() => {
6230
6052
  if (pasteWillFork) {
6231
6053
  const $scope10_id = _scope_id();
@@ -6245,7 +6067,7 @@ var repo_picker_default = _template("t", (input) => {
6245
6067
  return 0;
6246
6068
  }
6247
6069
  }, $scope1_id, "g", 1, 1, 1, 0, 1);
6248
- _html(`<button${_attr_class([resultBranch, { ["_c0"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>`);
6070
+ _html(`<button${_attr_class([resultBranch, { ["_c9"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>`);
6249
6071
  icon_branch_default({ size: 12 });
6250
6072
  _html(`</button>${_el_resume($scope1_id, "h")}</div>`);
6251
6073
  _if(() => {
@@ -6272,7 +6094,7 @@ var repo_picker_default = _template("t", (input) => {
6272
6094
  return 0;
6273
6095
  } else if (filter && !catalog) {
6274
6096
  const $scope9_id = _scope_id();
6275
- _html(`<p${_attr_class("_by")}>Loading repos…</p>`);
6097
+ _html(`<p${_attr_class("_bz")}>Loading repos…</p>`);
6276
6098
  writeScope($scope9_id, {});
6277
6099
  return 1;
6278
6100
  }
@@ -6280,15 +6102,15 @@ var repo_picker_default = _template("t", (input) => {
6280
6102
  _if(() => {
6281
6103
  if (results.length) {
6282
6104
  const $scope3_id = _scope_id();
6283
- _html(`<ul${_attr_class("_cW")}>`);
6105
+ _html(`<ul${_attr_class("_c5")}>`);
6284
6106
  _for_of(results, (repo, i) => {
6285
6107
  const $scope4_id = _scope_id();
6286
- _html(`<li><div${_attr_class(["_cY", { ["_cX"]: i === highlight }])}><button${_attr_class("_cZ")}>`);
6108
+ _html(`<li><div${_attr_class(["_c7", { ["_c6"]: i === highlight }])}><button${_attr_class("_c8")}>`);
6287
6109
  icon_plus_default({
6288
6110
  size: 12,
6289
- class: "_c5"
6111
+ class: "_dd"
6290
6112
  });
6291
- _html(`<span${_attr_class("_c6")}>${_escape(repoLabel(repo.nameWithOwner))}${_el_resume($scope4_id, "e")}</span></button>${_el_resume($scope4_id, "b")}<button${_attr_class([resultBranch, { ["_c0"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>`);
6113
+ _html(`<span${_attr_class("_de")}>${_escape(repoLabel(repo.nameWithOwner))}${_el_resume($scope4_id, "e")}</span></button>${_el_resume($scope4_id, "b")}<button${_attr_class([resultBranch, { ["_c9"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>`);
6292
6114
  icon_branch_default({ size: 12 });
6293
6115
  _html(`</button>${_el_resume($scope4_id, "f")}</div>${_el_resume($scope4_id, "a")}`);
6294
6116
  _if(() => {
@@ -6323,7 +6145,7 @@ var repo_picker_default = _template("t", (input) => {
6323
6145
  return 0;
6324
6146
  } else if (filter && catalog && !pasted) {
6325
6147
  const $scope6_id = _scope_id();
6326
- _html(`<p${_attr_class("_by")}>No repos match "<!>${_escape(filter)}${_el_resume($scope6_id, "b")}". Paste a clone URL to add any repo.</p>`);
6148
+ _html(`<p${_attr_class("_bz")}>No repos match "<!>${_escape(filter)}${_el_resume($scope6_id, "b")}". Paste a clone URL to add any repo.</p>`);
6327
6149
  writeScope($scope6_id, {});
6328
6150
  return 1;
6329
6151
  }
@@ -6464,7 +6286,7 @@ var new_workspace_default = _template("q", (input) => {
6464
6286
  }
6465
6287
  }, "q6", $scope0_id);
6466
6288
  const titleId = _id();
6467
- _html(`<div${_attr_class("_bC")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bD")}><div${_attr_class(content$1)}>`);
6289
+ _html(`<div${_attr_class("_bD")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bE")}><div${_attr_class(content$1)}>`);
6468
6290
  _set_serialize_reason({
6469
6291
  0: _serialize_guard($scope0_reason, 2),
6470
6292
  1: $sg__input_backHref__OR__input_onExit,
@@ -6503,23 +6325,23 @@ var new_workspace_default = _template("q", (input) => {
6503
6325
  return 0;
6504
6326
  }
6505
6327
  }, $scope0_id, "e", 1, 1, 1, 0, 1);
6506
- _html(`<label${_attr_class("_bO")}><span${_attr_class("_bB")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
6328
+ _html(`<label${_attr_class("_bP")}><span${_attr_class("_bC")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
6507
6329
  name = _new_name;
6508
- }, "q0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class(section$1)}><div${_attr_class("_bQ")}><h2${_attr_class("_bB")}>Repos</h2><button${_attr_class(iconBtnRow)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
6330
+ }, "q0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class(section$1)}><div${_attr_class("_bR")}><h2${_attr_class("_bC")}>Repos</h2><button${_attr_class(iconBtnRow)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
6509
6331
  _set_serialize_reason(1);
6510
6332
  const $childScope2 = _peek_scope_id();
6511
6333
  icon_refresh_default({
6512
6334
  size: 14,
6513
6335
  class: catalogRefreshing && "_D"
6514
6336
  });
6515
- _html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("_bR")}>`);
6337
+ _html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("_bS")}>`);
6516
6338
  _for_of(selected, (repo) => {
6517
6339
  const $scope2_id = _scope_id();
6518
- _html(`<li><div${_attr_class(row)}><span${_attr_class("_bS")}>${_escape(repoLabel(repo.fullName))}${_el_resume($scope2_id, "c")}</span>`);
6340
+ _html(`<li><div${_attr_class(row)}><span${_attr_class("_bT")}>${_escape(repoLabel(repo.fullName))}${_el_resume($scope2_id, "c")}</span>`);
6519
6341
  _if(() => {
6520
6342
  if (repo.fork !== void 0) {
6521
6343
  const $scope3_id = _scope_id();
6522
- _html(`<button${_attr_class(["_bV", { ["_bT"]: repo.fork }])}${repo.fork ? _attr("title", `${repo.fullName} will be forked to your account; click to clone as-is instead`) : _attr("title", `Fork ${repo.fullName} to your account and clone the fork`)} aria-pressed=${repo.fork ? "true" : "false"}${_attr("disabled", busy)}>`);
6344
+ _html(`<button${_attr_class(["_bW", { ["_bU"]: repo.fork }])}${repo.fork ? _attr("title", `${repo.fullName} will be forked to your account; click to clone as-is instead`) : _attr("title", `Fork ${repo.fullName} to your account and clone the fork`)} aria-pressed=${repo.fork ? "true" : "false"}${_attr("disabled", busy)}>`);
6523
6345
  _if(() => {
6524
6346
  if (repo.fork) {
6525
6347
  const $scope12_id = _scope_id();
@@ -6542,10 +6364,10 @@ var new_workspace_default = _template("q", (input) => {
6542
6364
  _html(`<button${_attr_class([
6543
6365
  curBase,
6544
6366
  "_w",
6545
- { ["_bT"]: branchesFor === repo.fullName }
6367
+ { ["_bU"]: branchesFor === repo.fullName }
6546
6368
  ])}${_attr("title", `Change base branch for ${repo.fullName}`)}${_attr("aria-label", `Change base branch for ${repo.fullName}`)}${_attr("disabled", busy)}>`);
6547
6369
  icon_branch_default({ size: 12 });
6548
- _html(`<!>${repo.baseBranch ? ` ${_escape(`${_to_text(repo.baseBranch)}`)}` : ""}${_el_resume($scope2_id, "g")}</button>${_el_resume($scope2_id, "e")}<button${_attr_class([iconBtnXs, "_1"])}${_attr("title", `Remove ${repo.fullName}`)}${_attr("disabled", busy)}>`);
6370
+ _html(`<!>${repo.baseBranch ? ` ${_escape(`${_to_text(repo.baseBranch)}`)}` : ""}${_el_resume($scope2_id, "g")}</button>${_el_resume($scope2_id, "e")}<button${_attr_class([iconBtnXs, "_2"])}${_attr("title", `Remove ${repo.fullName}`)}${_attr("disabled", busy)}>`);
6549
6371
  icon_xmark_default({ size: 12 });
6550
6372
  _html(`</button>${_el_resume($scope2_id, "h")}</div>`);
6551
6373
  _if(() => {
@@ -6578,7 +6400,7 @@ var new_workspace_default = _template("q", (input) => {
6578
6400
  _if(() => {
6579
6401
  if (!selected.length) {
6580
6402
  const $scope14_id = _scope_id();
6581
- _html(`<li${_attr_class("_by")}>No repos yet. Search below to add one, or create it empty.</li>`);
6403
+ _html(`<li${_attr_class("_bz")}>No repos yet. Search below to add one, or create it empty.</li>`);
6582
6404
  writeScope($scope14_id, {});
6583
6405
  return 0;
6584
6406
  }
@@ -6603,10 +6425,10 @@ var new_workspace_default = _template("q", (input) => {
6603
6425
  _if(() => {
6604
6426
  if (busy && steps$1.length) {
6605
6427
  const $scope9_id = _scope_id();
6606
- _html(`<ul${_attr_class("_bW")}>`);
6428
+ _html(`<ul${_attr_class("_bX")}>`);
6607
6429
  _for_of(steps$1, (step$1, i) => {
6608
6430
  const $scope10_id = _scope_id();
6609
- _html(`<li${_attr_class(["_b2", { ["_bX"]: i === steps$1.length - 1 }])}>`);
6431
+ _html(`<li${_attr_class(["_b3", { ["_bY"]: i === steps$1.length - 1 }])}>`);
6610
6432
  _if(() => {
6611
6433
  if (i === steps$1.length - 1) {
6612
6434
  const $scope15_id = _scope_id();
@@ -6615,7 +6437,7 @@ var new_workspace_default = _template("q", (input) => {
6615
6437
  return 0;
6616
6438
  } else {
6617
6439
  const $scope16_id = _scope_id();
6618
- _html(`<span${_attr_class("_bY")}>`);
6440
+ _html(`<span${_attr_class("_bZ")}>`);
6619
6441
  icon_check_default({ size: 14 });
6620
6442
  _html("</span>");
6621
6443
  writeScope($scope16_id, {});
@@ -6629,7 +6451,7 @@ var new_workspace_default = _template("q", (input) => {
6629
6451
  return 0;
6630
6452
  }
6631
6453
  }, $scope0_id, "s", 1, 1, 1, 0, 1);
6632
- _html(`<div${_attr_class("_bM")}>`);
6454
+ _html(`<div${_attr_class("_bN")}>`);
6633
6455
  _if(() => {
6634
6456
  if (input.onExit || busy) {
6635
6457
  const $scope1_id = _scope_id();
@@ -6642,15 +6464,15 @@ var new_workspace_default = _template("q", (input) => {
6642
6464
  _html(`<button type=button${_attr_class([
6643
6465
  btnLg,
6644
6466
  "_p",
6645
- "_bN"
6467
+ "_bO"
6646
6468
  ])}${_attr("disabled", busy || !!restoring || !name.trim())}>${busy ? "Creating…" : "Create workspace"}${_el_resume($scope0_id, "w")}</button>${_el_resume($scope0_id, "v")}</div>`);
6647
6469
  _if(() => {
6648
6470
  if (archived$1.length) {
6649
6471
  const $scope4_id = _scope_id();
6650
- _html(`<section${_attr_class(archived)}><div${_attr_class("_bQ")}><h2${_attr_class("_bB")}>Archived</h2><span${_attr_class(sectionCount$1)}>${_escape(archived$1.length)}${_el_resume($scope4_id, "e", $sg__input_workspaces)}</span></div><p${_attr_class(archivedHint)}>Restore an archived workspace instead of creating a new one.</p><ul${_attr_class("_bq")}>`);
6472
+ _html(`<section${_attr_class(archived)}><div${_attr_class("_bR")}><h2${_attr_class("_bC")}>Archived</h2><span${_attr_class(sectionCount$1)}>${_escape(archived$1.length)}${_el_resume($scope4_id, "e", $sg__input_workspaces)}</span></div><p${_attr_class(archivedHint)}>Restore an archived workspace instead of creating a new one.</p><ul${_attr_class("_br")}>`);
6651
6473
  _for_of(archived$1, (ws) => {
6652
6474
  const $scope5_id = _scope_id();
6653
- _html(`<li${_attr_class(archivedCard)}><div${_attr_class("_bt")}><span${_attr_class("_bu")}>${_escape(ws.name)}${_el_resume($scope5_id, "d", $sg__input_workspaces)}</span><span${_attr_class([metaTrunc, "_w"])}${_attr("title", ws.display_path || ws.path)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope5_id, "f", $sg__input_workspaces)}</span>${_el_resume($scope5_id, "e", $sg__input_workspaces)}</div><button type=button${_attr_class(btnLg)}${_attr("disabled", busy || !!restoring)}>`);
6475
+ _html(`<li${_attr_class(archivedCard)}><div${_attr_class("_bu")}><span${_attr_class("_bv")}>${_escape(ws.name)}${_el_resume($scope5_id, "d", $sg__input_workspaces)}</span><span${_attr_class([metaTrunc, "_w"])}${_attr("title", ws.display_path || ws.path)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope5_id, "f", $sg__input_workspaces)}</span>${_el_resume($scope5_id, "e", $sg__input_workspaces)}</div><button type=button${_attr_class(btnLg)}${_attr("disabled", busy || !!restoring)}>`);
6654
6476
  _if(() => {
6655
6477
  if (restoring === ws.id) {
6656
6478
  const $scope17_id = _scope_id();
@@ -6756,8 +6578,8 @@ function vapidKey(base64) {
6756
6578
  const raw = atob(padded.replace(/-/g, "+").replace(/_/g, "/"));
6757
6579
  return Uint8Array.from(raw, (c) => c.charCodeAt(0));
6758
6580
  }
6759
- var iconBtn$1 = "_ep _j";
6760
- var navToggle = "_eu _j";
6581
+ var iconBtn$1 = "_dk _j";
6582
+ var navToggle = "_dp _j";
6761
6583
  _template("N", (input) => {
6762
6584
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
6763
6585
  const $scope0_id = _scope_id();
@@ -6800,12 +6622,12 @@ var ARM_MS = 3500;
6800
6622
  function disarmLater(fn) {
6801
6623
  return setTimeout(fn, ARM_MS);
6802
6624
  }
6803
- var railBtn = "_gp _j";
6804
- var rowIcon = "_gy _Y _j";
6805
- var close = "_gz _Y _j _1";
6625
+ var railBtn = "_fB _j";
6626
+ var rowIcon = "_fK _Y _j";
6627
+ var close = "_fL _1 _j _2";
6806
6628
  //#endregion
6807
6629
  //#region src/styles/session-pop.css.ts
6808
- var sessionPop = "_f4 _3";
6630
+ var sessionPop = "_fx _4";
6809
6631
  //#endregion
6810
6632
  //#region src/client/status.ts
6811
6633
  /** Workspace activity dot from its polled status counts. */
@@ -6872,22 +6694,22 @@ var usage_pcts_default = _template("E", (input) => {
6872
6694
  if (windows.length) {
6873
6695
  const $scope1_id = _scope_id();
6874
6696
  _html(`<span${_attr_class([
6875
- "_fm",
6697
+ "_f1",
6876
6698
  input.class,
6877
- { ["_fn"]: agent.stale_seconds != null }
6699
+ { ["_f2"]: agent.stale_seconds != null }
6878
6700
  ])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
6879
6701
  _for_of(windows, (win$1, i) => {
6880
6702
  const $scope2_id = _scope_id();
6881
- _html(`<span${_attr_class("_fo")}>`);
6703
+ _html(`<span${_attr_class("_f3")}>`);
6882
6704
  _if(() => {
6883
6705
  if (i) {
6884
6706
  const $scope3_id = _scope_id();
6885
- _html(`<span${_attr_class("_fr")} aria-hidden=true>·</span>`);
6707
+ _html(`<span${_attr_class("_f6")} aria-hidden=true>·</span>`);
6886
6708
  $si__input_agent && writeScope($scope3_id, {});
6887
6709
  return 0;
6888
6710
  }
6889
6711
  }, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
6890
- _html(`<span${_attr_class("_fp")}>${_escape(win$1.window)}${_el_resume($scope2_id, "d", $sg__input_agent)}</span><span${_attr_class(["_fq", win$1.used_percent >= 90 ? "_dv" : win$1.used_percent >= 70 ? "_du" : win$1.used_percent >= 40 ? "_dt" : "_ds"])}>${_escape(pctText(win$1.used_percent))}${_el_resume($scope2_id, "f", $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
6712
+ _html(`<span${_attr_class("_f4")}>${_escape(win$1.window)}${_el_resume($scope2_id, "d", $sg__input_agent)}</span><span${_attr_class(["_f5", win$1.used_percent >= 90 ? "_dZ" : win$1.used_percent >= 70 ? "_dY" : win$1.used_percent >= 40 ? "_dX" : "_dW"])}>${_escape(pctText(win$1.used_percent))}${_el_resume($scope2_id, "f", $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
6891
6713
  $si__input_agent && writeScope($scope2_id, {});
6892
6714
  }, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
6893
6715
  $si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
@@ -6918,12 +6740,12 @@ var icon_edit_default = _template("X", (input) => {
6918
6740
  });
6919
6741
  _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
6920
6742
  });
6921
- var prChip = "_hr _s _hq";
6922
- var portChip = "_hs _s _hq";
6743
+ var prChip = "_hy _s _hx";
6744
+ var portChip = "_hz _s _hx";
6923
6745
  var prState = {
6924
- open: "_hw",
6925
- merged: "_hx",
6926
- closed: "_hy"
6746
+ open: "_hD",
6747
+ merged: "_hE",
6748
+ closed: "_hF"
6927
6749
  };
6928
6750
  //#endregion
6929
6751
  //#region src/tags/side-nav-chips.marko
@@ -6995,7 +6817,7 @@ var side_nav_chips_default = _template("w", (input) => {
6995
6817
  const name = repo.full_name.split("/").at(-1);
6996
6818
  return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel(repo.full_name) : name;
6997
6819
  }, "w4", $scope1_id);
6998
- _html(`<div${_attr_class("_hp")}>`);
6820
+ _html(`<div${_attr_class("_hw")}>`);
6999
6821
  _for_of(repos, (repo) => {
7000
6822
  const $scope2_id = _scope_id();
7001
6823
  const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
@@ -7011,11 +6833,11 @@ var side_nav_chips_default = _template("w", (input) => {
7011
6833
  [prState.merged]: pr.state === "MERGED",
7012
6834
  [prState.closed]: pr.state === "CLOSED"
7013
6835
  }
7014
- ])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["_ht", { ["_hA"]: !open }])}${_attr("href", pr.url)} target=_blank rel=noopener>${_escape(repoLabel$1(repo))}${_el_resume($scope3_id, "c")}#<!>${_escape(pr.number)}${_el_resume($scope3_id, "d")}</a>${_el_resume($scope3_id, "b")}`);
6836
+ ])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["_hA", { ["_hH"]: !open }])}${_attr("href", pr.url)} target=_blank rel=noopener>${_escape(repoLabel$1(repo))}${_el_resume($scope3_id, "c")}#<!>${_escape(pr.number)}${_el_resume($scope3_id, "d")}</a>${_el_resume($scope3_id, "b")}`);
7015
6837
  _if(() => {
7016
6838
  if (open) {
7017
6839
  const $scope4_id = _scope_id();
7018
- _html(`<a${_attr_class(["_ht", "_hu"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr.number}`)}`)}${_attr("title", `Review #${pr.number} changes`)}>`);
6840
+ _html(`<a${_attr_class(["_hA", "_hB"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr.number}`)}`)}${_attr("title", `Review #${pr.number} changes`)}>`);
7019
6841
  icon_diff_default({ size: 12 });
7020
6842
  _html(`</a>${_el_resume($scope4_id, "a")}`);
7021
6843
  _subscribe($for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, {})));
@@ -7023,9 +6845,9 @@ var side_nav_chips_default = _template("w", (input) => {
7023
6845
  } else {
7024
6846
  const $scope6_id = _scope_id();
7025
6847
  _html(`<button type=button${_attr_class([
7026
- "_ht",
7027
- "_hu",
7028
- "_hv"
6848
+ "_hA",
6849
+ "_hB",
6850
+ "_hC"
7029
6851
  ])}${_attr("title", `Dismiss #${pr.number}`)}>`);
7030
6852
  icon_xmark_default({ size: 12 });
7031
6853
  _html(`</button>${_el_resume($scope6_id, "a")}`);
@@ -7046,10 +6868,10 @@ var side_nav_chips_default = _template("w", (input) => {
7046
6868
  }, "full_name", $scope1_id, "b");
7047
6869
  _for_of(ports, (p) => {
7048
6870
  const $scope5_id = _scope_id();
7049
- _html(`<span${_attr_class(["_s", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["_ht", "_hz"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${p.port}`)}>:<!>${_escape(p.port)}${_el_resume($scope5_id, "c")}</button>${_el_resume($scope5_id, "b")}<button type=button${_attr_class([
7050
- "_ht",
7051
- "_hu",
7052
- "_hv",
6871
+ _html(`<span${_attr_class(["_s", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["_hA", "_hG"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${p.port}`)}>:<!>${_escape(p.port)}${_el_resume($scope5_id, "c")}</button>${_el_resume($scope5_id, "b")}<button type=button${_attr_class([
6872
+ "_hA",
6873
+ "_hB",
6874
+ "_hC",
7053
6875
  { ["_q"]: armedPid === p.pid }
7054
6876
  ])}${armedPid === p.pid ? " title=Kill?" : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
7055
6877
  icon_xmark_default({ size: 12 });
@@ -7092,7 +6914,7 @@ var side_nav_chips_default = _template("w", (input) => {
7092
6914
  //#endregion
7093
6915
  //#region src/tags/side-nav-item.marko
7094
6916
  var side_nav_item_default = _template("x", (input) => {
7095
- const $scope0_reason = _scope_reason(), $si__input_workspaces__OR__input_workspaceId = _serialize_if($scope0_reason, 0), $sg__input_workspaceId__OR__input_status = _serialize_guard($scope0_reason, 1), $sg__input_sessions = _serialize_guard($scope0_reason, 24), $si__input_sessions = _serialize_if($scope0_reason, 24), $si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status = _serialize_if($scope0_reason, 10), $sg__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status = _serialize_guard($scope0_reason, 10), $si__input_current = _serialize_if($scope0_reason, 21), $sg__input_page = _serialize_guard($scope0_reason, 22), $sg__input_workspaces__OR__input_workspaceId = _serialize_guard($scope0_reason, 0), $si__input_agents = _serialize_if($scope0_reason, 30), $sg__input_onNewSession = _serialize_guard($scope0_reason, 29), $sg__input_onNewSession__OR__input_onReview = _serialize_guard($scope0_reason, 2), $sg__input_onReview = _serialize_guard($scope0_reason, 31), $sg__input_rail = _serialize_guard($scope0_reason, 23), $si__input_rail = _serialize_if($scope0_reason, 23), $si__input_workspaceId = _serialize_if($scope0_reason, 26), $si__input_current__OR__input_page__OR__input_rail__OR__input_workspaces__OR__input_workspaceId = _serialize_if($scope0_reason, 13), $si__input_page__OR__input_rail__OR__input_workspaces__OR__input_workspaceId = _serialize_if($scope0_reason, 9), $si__input_current__OR__input_page__OR__input_rail__OR__input_sessions__OR__input_currentTab = _serialize_if($scope0_reason, 12), $si__input_rail__OR__input_workspaces__OR__input_workspaceId = _serialize_if($scope0_reason, 4), $si__input_index = _serialize_if($scope0_reason, 27), $si__input_onNewSession = _serialize_if($scope0_reason, 29), $si__input_onReview = _serialize_if($scope0_reason, 31), $si__input_managing = _serialize_if($scope0_reason, 32), $si__input_currentTab = _serialize_if($scope0_reason, 25), $si__input_page = _serialize_if($scope0_reason, 22), $si__input_railPop = _serialize_if($scope0_reason, 28);
6917
+ const $scope0_reason = _scope_reason(), $si__input_workspaces__OR__input_workspaceId = _serialize_if($scope0_reason, 0), $sg__input_workspaceId__OR__input_status = _serialize_guard($scope0_reason, 1), $sg__input_sessions = _serialize_guard($scope0_reason, 24), $sg__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status = _serialize_guard($scope0_reason, 10), $si__input_current = _serialize_if($scope0_reason, 21), $sg__input_page = _serialize_guard($scope0_reason, 22), $sg__input_workspaces__OR__input_workspaceId = _serialize_guard($scope0_reason, 0), $si__input_agents = _serialize_if($scope0_reason, 30), $sg__input_onNewSession = _serialize_guard($scope0_reason, 29), $sg__input_onNewSession__OR__input_onReview = _serialize_guard($scope0_reason, 2), $sg__input_onReview = _serialize_guard($scope0_reason, 31), $si__input_sessions = _serialize_if($scope0_reason, 24), $si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status = _serialize_if($scope0_reason, 10), $sg__input_rail = _serialize_guard($scope0_reason, 23), $si__input_rail = _serialize_if($scope0_reason, 23), $si__input_workspaceId = _serialize_if($scope0_reason, 26), $si__input_current__OR__input_page__OR__input_rail__OR__input_workspaces__OR__input_workspaceId = _serialize_if($scope0_reason, 13), $si__input_page__OR__input_rail__OR__input_workspaces__OR__input_workspaceId = _serialize_if($scope0_reason, 9), $si__input_current__OR__input_page__OR__input_rail__OR__input_sessions__OR__input_currentTab = _serialize_if($scope0_reason, 12), $si__input_rail__OR__input_workspaces__OR__input_workspaceId = _serialize_if($scope0_reason, 4), $si__input_index = _serialize_if($scope0_reason, 27), $si__input_onNewSession = _serialize_if($scope0_reason, 29), $si__input_onReview = _serialize_if($scope0_reason, 31), $si__input_managing = _serialize_if($scope0_reason, 32), $si__input_currentTab = _serialize_if($scope0_reason, 25), $si__input_page = _serialize_if($scope0_reason, 22), $si__input_railPop = _serialize_if($scope0_reason, 28);
7096
6918
  const $scope0_id = _scope_id();
7097
6919
  const $input_current__closures = /* @__PURE__ */ new Set();
7098
6920
  const $input_index__closures = /* @__PURE__ */ new Set();
@@ -7128,7 +6950,7 @@ var side_nav_item_default = _template("x", (input) => {
7128
6950
  renamingId = null;
7129
6951
  input.onRenameSession?.(s, renameValue.trim());
7130
6952
  }, "x2", $scope0_id);
7131
- let usage = lastUsage$1();
6953
+ let usage = lastUsage();
7132
6954
  const openSess = (() => {
7133
6955
  if (!input.current || input.page || input.rail) return null;
7134
6956
  const list = input.sessions || [];
@@ -7145,10 +6967,10 @@ var side_nav_item_default = _template("x", (input) => {
7145
6967
  _if(() => {
7146
6968
  if (input.rail) {
7147
6969
  const $scope2_id = _scope_id();
7148
- _html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_gn"]: input.current }])}${_attr("title", ws$1.name)}>${_escape((input.index ?? 0) + 1)}${_el_resume($scope2_id, "b", _serialize_guard($scope0_reason, 27))}<span${_attr_class([
6970
+ _html(`<a${_attr("href", `/w/${ws$1.id}`)}${_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, 27))}<span${_attr_class([
7149
6971
  "_y",
7150
6972
  phase[dot],
7151
- "_gq"
6973
+ "_fC"
7152
6974
  ])}></span>${_el_resume($scope2_id, "c", $sg__input_workspaceId__OR__input_status)}</a>${_el_resume($scope2_id, "a", _serialize_guard($scope0_reason, 3))}`);
7153
6975
  _serialize_if($scope0_reason, 18) && _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_name__closures, _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_id__closures, _subscribe($si__input_index && $input_index__closures, _subscribe($si__input_current && $input_current__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })))));
7154
6976
  return 0;
@@ -7156,15 +6978,15 @@ var side_nav_item_default = _template("x", (input) => {
7156
6978
  const $scope3_id = _scope_id();
7157
6979
  const sessions$1 = input.sessions || [];
7158
6980
  const phaseLabel = dot === "working" ? "Working" : dot === "waiting" ? "Needs input" : dot === "idle" ? "Idle" : "Not running";
7159
- _html(`<section${_attr_class(["_gs", {
7160
- ["_gn"]: input.current,
7161
- ["_4"]: input.current,
7162
- ["_gt"]: input.railPop,
7163
- ["_gr"]: input.page
7164
- }])}><div${_attr_class("_gu")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class("_gv")}><span${_attr_class([
6981
+ _html(`<section${_attr_class(["_fE", {
6982
+ ["_fz"]: input.current,
6983
+ ["_5"]: input.current,
6984
+ ["_fF"]: input.railPop,
6985
+ ["_fD"]: input.page
6986
+ }])}><div${_attr_class("_fG")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class("_fH")}><span${_attr_class([
7165
6987
  "_y",
7166
6988
  phase[dot],
7167
- "_gI"
6989
+ "_fT"
7168
6990
  ])}${_attr("title", phaseLabel)}></span>${_el_resume($scope3_id, "d", $sg__input_workspaceId__OR__input_status)}`);
7169
6991
  _if(() => {
7170
6992
  if (sessions$1.length === 1) {
@@ -7177,7 +6999,7 @@ var side_nav_item_default = _template("x", (input) => {
7177
6999
  icon_agent_default({
7178
7000
  agent: activeAgent(sessions$1[0]),
7179
7001
  size: 12,
7180
- class: "_gA"
7002
+ class: "_fM"
7181
7003
  });
7182
7004
  $si__input_sessions && writeScope($scope14_id, {
7183
7005
  _: _scope_with_id($scope3_id),
@@ -7186,19 +7008,14 @@ var side_nav_item_default = _template("x", (input) => {
7186
7008
  return 0;
7187
7009
  }
7188
7010
  }, $scope3_id, "e", $sg__input_sessions, $sg__input_sessions);
7189
- const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length === 1 ? sessions$1[0].title || "" : `${sessions$1.length} sessions`;
7190
- _html(`<span${_attr_class("_gB")}><span${_attr_class("_gC")}>${_escape(ws$1.name)}${_el_resume($scope3_id, "h", $sg__input_workspaces__OR__input_workspaceId)}</span>`);
7011
+ const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length > 1 ? `${sessions$1.length} sessions` : "";
7012
+ _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>`);
7191
7013
  _if(() => {
7192
7014
  if (input.page && metaText) {
7193
- const $scope16_id = _scope_id();
7194
- _html(`<span${_attr_class("_gG")}>${_escape(metaText)}${_el_resume($scope16_id, "b", _serialize_guard($scope0_reason, 7))}</span>`);
7195
- $si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && writeScope($scope16_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope3_id) });
7196
- return 0;
7197
- } else if (sessions$1.length === 1 && sessions$1[0].title) {
7198
7015
  const $scope15_id = _scope_id();
7199
- _html(`<span${_attr_class("_gD")}>${_escape(sessions$1[0].title)}${_el_resume($scope15_id, "b", $sg__input_sessions)}</span>`);
7200
- $si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && writeScope($scope15_id, { _: $si__input_sessions && _scope_with_id($scope3_id) });
7201
- return 1;
7016
+ _html(`<span${_attr_class("_fR")}>${_escape(metaText)}${_el_resume($scope15_id, "b", _serialize_guard($scope0_reason, 7))}</span>`);
7017
+ $si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && writeScope($scope15_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope3_id) });
7018
+ return 0;
7202
7019
  }
7203
7020
  }, $scope3_id, "i", $sg__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status, $sg__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status, 1, 0, 1);
7204
7021
  _html("</span>");
@@ -7209,7 +7026,7 @@ var side_nav_item_default = _template("x", (input) => {
7209
7026
  "_H",
7210
7027
  "_Q",
7211
7028
  "_J",
7212
- "_gH"
7029
+ "_fS"
7213
7030
  ])}>${input.current ? "Open" : ""}${_el_resume($scope4_id, "b", _serialize_guard($scope0_reason, 21))}</span>`);
7214
7031
  $si__input_current__OR__input_page__OR__input_rail__OR__input_workspaces__OR__input_workspaceId && _subscribe($si__input_current && $input_current__closures, writeScope($scope4_id, {
7215
7032
  _: _scope_with_id($scope3_id),
@@ -7222,7 +7039,7 @@ var side_nav_item_default = _template("x", (input) => {
7222
7039
  _if(() => {
7223
7040
  if (!input.page) {
7224
7041
  const $scope5_id = _scope_id();
7225
- _html(`<div${_attr_class("_gw")}>`);
7042
+ _html(`<div${_attr_class("_fI")}>`);
7226
7043
  _if(() => {
7227
7044
  if (input.onNewSession) {
7228
7045
  const $scope6_id = _scope_id();
@@ -7236,7 +7053,7 @@ var side_nav_item_default = _template("x", (input) => {
7236
7053
  _html(`</button>${_el_resume($scope6_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class(sessionPop)}>`);
7237
7054
  _for_of([], (agent) => {
7238
7055
  const $scope7_id = _scope_id();
7239
- _html(`<button${_attr_class("_f5")}>`);
7056
+ _html(`<button${_attr_class("_fy")}>`);
7240
7057
  _set_serialize_reason(12);
7241
7058
  const $childScope2 = _peek_scope_id();
7242
7059
  icon_agent_default({
@@ -7271,7 +7088,7 @@ var side_nav_item_default = _template("x", (input) => {
7271
7088
  return 0;
7272
7089
  }
7273
7090
  }, $scope5_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
7274
- _html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_go"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
7091
+ _html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_fA"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
7275
7092
  icon_manage_default({ size: 12 });
7276
7093
  _html(`</a>${_el_resume($scope5_id, "d", _serialize_guard($scope0_reason, 8))}</div>`);
7277
7094
  _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_id__closures, _subscribe($si__input_managing && $input_managing__closures, _subscribe($si__input_onReview && $input_onReview__closures, _subscribe($si__input_onNewSession && $input_onNewSession__closures, writeScope($scope5_id, {
@@ -7281,7 +7098,7 @@ var side_nav_item_default = _template("x", (input) => {
7281
7098
  return 0;
7282
7099
  }
7283
7100
  }, $scope3_id, "k", $sg__input_page, $sg__input_page, 1, 0, 1);
7284
- _html(`</div><div${_attr_class("_gN")}>`);
7101
+ _html(`</div><div${_attr_class("_fY")}>`);
7285
7102
  _if(() => {
7286
7103
  if (sessions$1.length === 1 && openPlan) {
7287
7104
  const $scope11_id = _scope_id();
@@ -7289,7 +7106,7 @@ var side_nav_item_default = _template("x", (input) => {
7289
7106
  const $childScope3 = _peek_scope_id();
7290
7107
  usage_pcts_default({
7291
7108
  agent: openPlan,
7292
- class: "_gE"
7109
+ class: "_fP"
7293
7110
  });
7294
7111
  _subscribe($openPlan__closures, writeScope($scope11_id, {
7295
7112
  a: _existing_scope($childScope3),
@@ -7300,14 +7117,14 @@ var side_nav_item_default = _template("x", (input) => {
7300
7117
  }, $scope3_id, "m");
7301
7118
  _for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
7302
7119
  const $scope8_id = _scope_id();
7303
- _html(`<div${_attr_class(["_gx", { ["_gn"]: s.id === input.currentTab }])}>`);
7120
+ _html(`<div${_attr_class(["_fJ", { ["_fz"]: s.id === input.currentTab }])}>`);
7304
7121
  _if(() => {
7305
7122
  if (renamingId === s.id) {
7306
7123
  const $scope10_id = _scope_id();
7307
7124
  _html(`<span${_attr_class([
7308
7125
  "_y",
7309
7126
  phase[sessionPhase(s.state)],
7310
- "_gL"
7127
+ "_fW"
7311
7128
  ])}></span>${_el_resume($scope10_id, "a", $sg__input_sessions)}`);
7312
7129
  _set_serialize_reason({
7313
7130
  1: $sg__input_sessions,
@@ -7317,17 +7134,17 @@ var side_nav_item_default = _template("x", (input) => {
7317
7134
  icon_agent_default({
7318
7135
  agent: activeAgent(s),
7319
7136
  size: 13,
7320
- class: "_gP"
7137
+ class: "_f0"
7321
7138
  });
7322
7139
  _html(`<input${_attr_input_value($scope10_id, "c", renameValue, _resume((_new_renameValue) => {
7323
7140
  renameValue = _new_renameValue;
7324
- }, "x0", $scope10_id))}${_attr_class(["_T", "_gM"])} aria-label="Session name">${_el_resume($scope10_id, "c")}`);
7141
+ }, "x0", $scope10_id))}${_attr_class(["_T", "_fX"])} aria-label="Session name">${_el_resume($scope10_id, "c")}`);
7325
7142
  _script($scope10_id, "x5");
7326
7143
  _subscribe($renameValue__closures, writeScope($scope10_id, { b: $si__input_sessions && _existing_scope($childScope4) }));
7327
7144
  return 0;
7328
7145
  } else {
7329
7146
  const $scope9_id = _scope_id();
7330
- _html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("_gO")}><span${_attr_class(["_y", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope9_id, "b", $sg__input_sessions)}`);
7147
+ _html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("_fZ")}><span${_attr_class(["_y", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope9_id, "b", $sg__input_sessions)}`);
7331
7148
  _set_serialize_reason({
7332
7149
  1: $sg__input_sessions,
7333
7150
  2: $sg__input_sessions
@@ -7336,9 +7153,9 @@ var side_nav_item_default = _template("x", (input) => {
7336
7153
  icon_agent_default({
7337
7154
  agent: activeAgent(s),
7338
7155
  size: 13,
7339
- class: "_gP"
7156
+ class: "_f0"
7340
7157
  });
7341
- _html(`<span${_attr_class("_gJ")}>${_escape(s.title || activeAgent(s))}${_el_resume($scope9_id, "e", $sg__input_sessions)}</span></a>${_el_resume($scope9_id, "a", _serialize_guard($scope0_reason, 6))}<div${_attr_class("_gK")}><button${_attr_class(rowIcon)} title="Rename session">`);
7158
+ _html(`<span${_attr_class("_fU")}>${_escape(s.title || activeAgent(s))}${_el_resume($scope9_id, "e", $sg__input_sessions)}</span></a>${_el_resume($scope9_id, "a", _serialize_guard($scope0_reason, 6))}<div${_attr_class("_fV")}><button${_attr_class(rowIcon)} title="Rename session">`);
7342
7159
  icon_edit_default({ size: 12 });
7343
7160
  _html(`</button>${_el_resume($scope9_id, "g")}<button${_attr_class([close, { ["_q"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
7344
7161
  icon_xmark_default({ size: 12 });
@@ -7350,7 +7167,7 @@ var side_nav_item_default = _template("x", (input) => {
7350
7167
  const $childScope6 = _peek_scope_id();
7351
7168
  usage_pcts_default({
7352
7169
  agent: openPlan,
7353
- class: "_gF"
7170
+ class: "_fQ"
7354
7171
  });
7355
7172
  _subscribe($openPlan__closures, writeScope($scope12_id, {
7356
7173
  a: _existing_scope($childScope6),
@@ -7388,9 +7205,8 @@ var side_nav_item_default = _template("x", (input) => {
7388
7205
  _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_name__closures, _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_id__closures, _subscribe($openPlan__closures, _subscribe($si__input_railPop && $input_railPop__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, _subscribe($si__input_sessions && $input_sessions__closures, _subscribe($si__input_page && $input_page__closures, _subscribe($si__input_current && $input_current__closures, writeScope($scope3_id, {
7389
7206
  r: sessions$1.length,
7390
7207
  t: $si__input_sessions && sessions$1[0],
7391
- u: $si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && sessions$1[0]?.title,
7392
- v: $si__input_sessions && phaseLabel,
7393
- x: $si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && metaText,
7208
+ u: $si__input_sessions && phaseLabel,
7209
+ w: $si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && metaText,
7394
7210
  _: _scope_with_id($scope1_id),
7395
7211
  o: _serialize_if($scope0_reason, 1) && _existing_scope($childScope7),
7396
7212
  Cac: $si__input_current && 1,
@@ -7409,6 +7225,7 @@ var side_nav_item_default = _template("x", (input) => {
7409
7225
  }
7410
7226
  }, $scope0_id, "a", _serialize_guard($scope0_reason, 11), $sg__input_workspaces__OR__input_workspaceId, $sg__input_workspaces__OR__input_workspaceId);
7411
7227
  _script($scope0_id, "x8");
7228
+ _script($scope0_id, "x9");
7412
7229
  writeScope($scope0_id, {
7413
7230
  d: input.onRenameSession,
7414
7231
  e: _serialize_if($scope0_reason, 19) && input.current,
@@ -7545,34 +7362,34 @@ var side_nav_default = _template("y", (input) => {
7545
7362
  const iconSrc = `/api/instance/icon${input.instanceAccent ? `?v=${input.instanceAccent.slice(1)}` : ""}`;
7546
7363
  const otherIds = itemIds.filter((id) => id !== ws.id);
7547
7364
  const listIds = isPage ? [ws.id, ...otherIds] : itemIds;
7548
- _html(`<aside${_attr_class(["_et", {
7549
- ["_er"]: !navOpen,
7550
- ["_es"]: isPage
7365
+ _html(`<aside${_attr_class(["_do", {
7366
+ ["_dm"]: !navOpen,
7367
+ ["_dn"]: isPage
7551
7368
  }])}${_attr("hidden", view === "diff")}>`);
7552
7369
  _if(() => {
7553
7370
  if (isPage) {
7554
7371
  const $scope1_id = _scope_id();
7555
- _html(`<header${_attr_class("_ew")}><div${_attr_class("_eF")}>`);
7372
+ _html(`<header${_attr_class("_dr")}><div${_attr_class("_dA")}>`);
7556
7373
  _if(() => {
7557
7374
  if (input.instanceName) {
7558
7375
  const $scope2_id = _scope_id();
7559
- _html(`<div${_attr_class("_eC")} title="This work server (Settings → Appearance)"><img${_attr_class("_eD")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_eE")}>${_escape(input.instanceName)}${_el_resume($scope2_id, "d", $sg__input_instanceName)}</span></div>`);
7376
+ _html(`<div${_attr_class("_dx")} title="This work server (Settings → Appearance)"><img${_attr_class("_dy")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_dz")}>${_escape(input.instanceName)}${_el_resume($scope2_id, "d", $sg__input_instanceName)}</span></div>`);
7560
7377
  _subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
7561
7378
  return 0;
7562
7379
  }
7563
7380
  }, $scope1_id, "c", $sg__input_instanceName, $sg__input_instanceName, 1, 0, 1);
7564
- _html(`<h1${_attr_class("_ex")}>Workspaces</h1></div><div${_attr_class("_ey")}>`);
7381
+ _html(`<h1${_attr_class("_ds")}>Workspaces</h1></div><div${_attr_class("_dt")}>`);
7565
7382
  _if(() => {}, $scope1_id, "f", 1, 1, 1, 0, 1);
7566
7383
  _html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
7567
7384
  iconBtn$1,
7568
- "_ez",
7569
- { ["_eo"]: view === "settings" }
7385
+ "_du",
7386
+ { ["_dj"]: view === "settings" }
7570
7387
  ])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
7571
7388
  icon_settings_default({ size: 16 });
7572
7389
  _if(() => {
7573
7390
  if (input.setupReady === false) {
7574
7391
  const $scope12_id = _scope_id();
7575
- _html(`<span${_attr_class(["_y", "_eq"])} title="Machine setup incomplete"></span>`);
7392
+ _html(`<span${_attr_class(["_y", "_dl"])} title="Machine setup incomplete"></span>`);
7576
7393
  $si__input_setupReady && writeScope($scope12_id, {});
7577
7394
  return 0;
7578
7395
  }
@@ -7585,18 +7402,18 @@ var side_nav_default = _template("y", (input) => {
7585
7402
  _if(() => {
7586
7403
  if (!isPage && input.instanceName) {
7587
7404
  const $scope3_id = _scope_id();
7588
- _html(`<div${_attr_class("_eC")} title="This work server (Settings → Appearance)"><img${_attr_class("_eD")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope3_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_eE")}>${_escape(input.instanceName)}${_el_resume($scope3_id, "d", $sg__input_instanceName)}</span></div>`);
7405
+ _html(`<div${_attr_class("_dx")} title="This work server (Settings → Appearance)"><img${_attr_class("_dy")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope3_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_dz")}>${_escape(input.instanceName)}${_el_resume($scope3_id, "d", $sg__input_instanceName)}</span></div>`);
7589
7406
  writeScope($scope3_id, {});
7590
7407
  return 0;
7591
7408
  }
7592
7409
  }, $scope0_id, "c", 1, 1, 1, 0, 1);
7593
- _html(`<div${_attr_class("_eG")}>`);
7410
+ _html(`<div${_attr_class("_dB")}>`);
7594
7411
  _for_of(listIds, (wsId) => {
7595
7412
  const $scope4_id = _scope_id();
7596
7413
  _if(() => {
7597
7414
  if (isPage && wsId === ws.id) {
7598
7415
  const $scope13_id = _scope_id();
7599
- _html(`<h2${_attr_class(["_bB", "_eA"])}>Current</h2>`);
7416
+ _html(`<h2${_attr_class(["_bC", "_dv"])}>Current</h2>`);
7600
7417
  writeScope($scope13_id, {});
7601
7418
  return 0;
7602
7419
  }
@@ -7604,7 +7421,7 @@ var side_nav_default = _template("y", (input) => {
7604
7421
  _if(() => {
7605
7422
  if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
7606
7423
  const $scope14_id = _scope_id();
7607
- _html(`<h2${_attr_class(["_bB", "_eA"])}>Other workspaces</h2>`);
7424
+ _html(`<h2${_attr_class(["_bC", "_dv"])}>Other workspaces</h2>`);
7608
7425
  writeScope($scope14_id, {});
7609
7426
  return 0;
7610
7427
  }
@@ -7688,7 +7505,7 @@ var side_nav_default = _template("y", (input) => {
7688
7505
  railHover = null;
7689
7506
  }, 150);
7690
7507
  }, "y6", $scope5_id);
7691
- _html(`<div${_attr_class("_eH")}>`);
7508
+ _html(`<div${_attr_class("_dC")}>`);
7692
7509
  _for_of(itemIds, (wsId, i) => {
7693
7510
  const $scope6_id = _scope_id();
7694
7511
  _html("<span>");
@@ -7742,7 +7559,7 @@ var side_nav_default = _template("y", (input) => {
7742
7559
  if (railHover) {
7743
7560
  const $scope7_id = _scope_id();
7744
7561
  const hoverId = railHover.id;
7745
- _html(`<div${_attr_class(["_3", "_eK"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
7562
+ _html(`<div${_attr_class(["_4", "_dF"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
7746
7563
  _set_serialize_reason({
7747
7564
  0: 1,
7748
7565
  1: 1,
@@ -7827,7 +7644,7 @@ var side_nav_default = _template("y", (input) => {
7827
7644
  return 0;
7828
7645
  }
7829
7646
  }, $scope0_id, "e");
7830
- _html(`<div${_attr_class("_eI")}>`);
7647
+ _html(`<div${_attr_class("_dD")}>`);
7831
7648
  _if(() => {
7832
7649
  if (isPage) {
7833
7650
  const $scope9_id = _scope_id();
@@ -7835,7 +7652,7 @@ var side_nav_default = _template("y", (input) => {
7835
7652
  "_o",
7836
7653
  "_p",
7837
7654
  btnLg,
7838
- "_eB"
7655
+ "_dw"
7839
7656
  ])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
7840
7657
  icon_folder_plus_default({ size: 16 });
7841
7658
  _html(` New workspace</a>${_el_resume($scope9_id, "a")}`);
@@ -7857,19 +7674,19 @@ var side_nav_default = _template("y", (input) => {
7857
7674
  return 1;
7858
7675
  }
7859
7676
  }, $scope8_id, "a", 1, 1, 1, "</button>", 1);
7860
- _html(`<div${_attr_class(["_x", "_eJ"])}></div>`);
7677
+ _html(`<div${_attr_class(["_x", "_dE"])}></div>`);
7861
7678
  _if(() => {}, $scope8_id, "c", 1, 1, 1, 0, 1);
7862
- _html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["_eo"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
7679
+ _html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["_dj"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
7863
7680
  icon_settings_default({ size: 15 });
7864
7681
  _if(() => {
7865
7682
  if (input.setupReady === false) {
7866
7683
  const $scope17_id = _scope_id();
7867
- _html(`<span${_attr_class(["_y", "_eq"])} title="Machine setup incomplete"></span>`);
7684
+ _html(`<span${_attr_class(["_y", "_dl"])} title="Machine setup incomplete"></span>`);
7868
7685
  $si__input_setupReady && writeScope($scope17_id, {});
7869
7686
  return 0;
7870
7687
  }
7871
7688
  }, $scope8_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
7872
- _html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn$1, { ["_eo"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
7689
+ _html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn$1, { ["_dj"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
7873
7690
  icon_folder_plus_default({ size: 16 });
7874
7691
  _html(`</a>${_el_resume($scope8_id, "g")}`);
7875
7692
  _script($scope8_id, "y15");
@@ -7935,11 +7752,11 @@ var side_nav_default = _template("y", (input) => {
7935
7752
  _resume_branch($scope0_id);
7936
7753
  });
7937
7754
  var iconBtn = "_Z _j";
7938
- var sectionCount = "_bp _H _I";
7939
- var content = "_eL _bE";
7940
- var pageMeta = "_eM _bJ";
7941
- var pathMeta = "_eP _w";
7942
- var dangerHint = "_eV _R";
7755
+ var sectionCount = "_bq _H _I";
7756
+ var content = "_eg _bF";
7757
+ var pageMeta = "_eh _bK";
7758
+ var pathMeta = "_ek _w";
7759
+ var dangerHint = "_ep _R";
7943
7760
  //#endregion
7944
7761
  //#region src/tags/manage-workspace.marko
7945
7762
  var api$2;
@@ -8070,7 +7887,7 @@ var manage_workspace_default = _template("o", (input) => {
8070
7887
  setTimeout(() => loadProcs(void 0), 500);
8071
7888
  }, "o7", $scope0_id);
8072
7889
  const titleId = _id();
8073
- _html(`<div${_attr_class("_bC")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bD")}><div${_attr_class(content)}>`);
7890
+ _html(`<div${_attr_class("_bD")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bE")}><div${_attr_class(content)}>`);
8074
7891
  _set_serialize_reason(30);
8075
7892
  const $childScope = _peek_scope_id();
8076
7893
  page_head_default({
@@ -8083,7 +7900,7 @@ var manage_workspace_default = _template("o", (input) => {
8083
7900
  meta: attrTag({ content: _content_resume("o13", () => {
8084
7901
  _scope_reason();
8085
7902
  const $scope13_id = _scope_id();
8086
- _html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_eN")}>${_escape(ws.name)}${_el_resume($scope13_id, "c")}</span>`);
7903
+ _html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_ei")}>${_escape(ws.name)}${_el_resume($scope13_id, "c")}</span>`);
8087
7904
  _if(() => {
8088
7905
  if (ws.status !== "active") {
8089
7906
  const $scope17_id = _scope_id();
@@ -8092,7 +7909,7 @@ var manage_workspace_default = _template("o", (input) => {
8092
7909
  return 0;
8093
7910
  }
8094
7911
  }, $scope13_id, "d", 1, 1, 1, 0, 1);
8095
- _html(`<span${_attr_class("_eO")} aria-hidden=true>·</span><span${_attr_class(pathMeta)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope13_id, "g")}</span></span>${_el_resume($scope13_id, "a")}`);
7912
+ _html(`<span${_attr_class("_ej")} aria-hidden=true>·</span><span${_attr_class(pathMeta)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope13_id, "g")}</span></span>${_el_resume($scope13_id, "a")}`);
8096
7913
  _subscribe($ws_status__closures, _subscribe($ws_name__closures, _subscribe($ws_path__closures, _subscribe($ws_display_path__closures, writeScope($scope13_id, { _: _scope_with_id($scope0_id) })))));
8097
7914
  _resume_branch($scope13_id);
8098
7915
  }, $scope0_id) })
@@ -8120,22 +7937,42 @@ var manage_workspace_default = _template("o", (input) => {
8120
7937
  _if(() => {
8121
7938
  if (pendingAction && actionStep) {
8122
7939
  const $scope11_id = _scope_id();
8123
- _html(`<p${_attr_class("_bm")}><span${_attr_class("_E")}></span><!>${_escape(actionStep)}${_el_resume($scope11_id, "c")}</p>`);
7940
+ _html(`<p${_attr_class("_bn")}><span${_attr_class("_E")}></span><!>${_escape(actionStep)}${_el_resume($scope11_id, "c")}</p>`);
8124
7941
  writeScope($scope11_id, {});
8125
7942
  return 0;
8126
7943
  }
8127
7944
  }, $scope0_id, "f", 1, 1, 1, 0, 1);
8128
- _html(`<section${_attr_class("_bn")}><div${_attr_class("_bo")}><h2${_attr_class("_bB")}>Repos</h2><span${_attr_class(sectionCount)}>${_escape(ws.repos.length)}${_el_resume($scope0_id, "k")}</span><div${_attr_class("_x")}></div><button${_attr_class(iconBtn)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
7945
+ _html(`<section${_attr_class("_bo")}><div${_attr_class("_bp")}><h2${_attr_class("_bC")}>Workspace</h2></div><div${_attr_class("_eo")}>`);
7946
+ _if(() => {
7947
+ if (ws.status === "active") {
7948
+ const $scope8_id = _scope_id();
7949
+ _html(`<button type=button${_attr_class(btnLg)}${_attr("disabled", !!pendingAction)}>${pendingAction === "archive" ? "Archiving…" : "Archive"}${_el_resume($scope8_id, "b")}</button>${_el_resume($scope8_id, "a")}`);
7950
+ _script($scope8_id, "o15");
7951
+ writeScope($scope8_id, {});
7952
+ return 0;
7953
+ } else {
7954
+ const $scope9_id = _scope_id();
7955
+ _html(`<button type=button${_attr_class(btnLg)}${_attr("disabled", !!pendingAction)}>Restore</button>${_el_resume($scope9_id, "a")}`);
7956
+ _script($scope9_id, "o16");
7957
+ writeScope($scope9_id, {});
7958
+ return 1;
7959
+ }
7960
+ }, $scope0_id, "k", 1, 1, 1, 0, 1);
7961
+ _html(`<button type=button${_attr_class([
7962
+ btnLg,
7963
+ "_r",
7964
+ { ["_q"]: confirmingDelete }
7965
+ ])}${_attr("disabled", !!pendingAction)}>${pendingAction === "delete" ? "Deleting…" : "Delete"}${_el_resume($scope0_id, "m")}</button>${_el_resume($scope0_id, "l")}</div><p${_attr_class(dangerHint)}>Archive hides the workspace from the list. Delete removes it and its worktrees.</p></section><section${_attr_class("_bo")}><div${_attr_class("_bp")}><h2${_attr_class("_bC")}>Repos</h2><span${_attr_class(sectionCount)}>${_escape(ws.repos.length)}${_el_resume($scope0_id, "s")}</span><div${_attr_class("_x")}></div><button${_attr_class(iconBtn)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
8129
7966
  _set_serialize_reason(1);
8130
7967
  const $childScope2 = _peek_scope_id();
8131
7968
  icon_refresh_default({
8132
7969
  size: 14,
8133
7970
  class: catalogRefreshing && "_D"
8134
7971
  });
8135
- _html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("_bq")}>`);
7972
+ _html(`</button>${_el_resume($scope0_id, "u")}</div><ul${_attr_class("_br")}>`);
8136
7973
  _for_of(ws.repos, (row) => {
8137
7974
  const $scope1_id = _scope_id();
8138
- _html(`<li${_attr_class("_bs")}><div${_attr_class("_bt")}><span${_attr_class(["_bu", "_w"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_bv")}><a${_attr_class(["_bw", "_eR"])}${_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")}`);
7975
+ _html(`<li${_attr_class("_bt")}><div${_attr_class("_bu")}><span${_attr_class(["_bv", "_w"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_bw")}><a${_attr_class(["_bx", "_em"])}${_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")}`);
8139
7976
  _if(() => {
8140
7977
  if (row.base_branch !== row.default_branch) {
8141
7978
  const $scope18_id = _scope_id();
@@ -8156,9 +7993,9 @@ var manage_workspace_default = _template("o", (input) => {
8156
7993
  } else {
8157
7994
  const $scope10_id = _scope_id();
8158
7995
  _html(`<button${_attr_class([
8159
- "_bx",
8160
- "_1",
7996
+ "_by",
8161
7997
  "_2",
7998
+ "_3",
8162
7999
  { ["_q"]: confirmingRemove === row.full_name }
8163
8000
  ])}${confirmingRemove === row.full_name ? _attr("title", `Remove ${row.worktree}/? Uncommitted changes are lost.`) : _attr("title", `Remove ${row.worktree}/`)}>`);
8164
8001
  _if(() => {
@@ -8174,7 +8011,7 @@ var manage_workspace_default = _template("o", (input) => {
8174
8011
  return 1;
8175
8012
  }
8176
8013
  }, $scope10_id, "a", 1, 1, 1, "</button>");
8177
- _script($scope10_id, "o15");
8014
+ _script($scope10_id, "o17");
8178
8015
  _subscribe($confirmingRemove__closures, writeScope($scope10_id, {}));
8179
8016
  return 1;
8180
8017
  }
@@ -8186,22 +8023,22 @@ var manage_workspace_default = _template("o", (input) => {
8186
8023
  m: row?.full_name,
8187
8024
  o: row?.base_branch
8188
8025
  });
8189
- }, "full_name", $scope0_id, "p", 1, 1, 1, 0, 1);
8026
+ }, "full_name", $scope0_id, "x", 1, 1, 1, 0, 1);
8190
8027
  _for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
8191
8028
  const $scope22_id = _scope_id();
8192
- _html(`<li${_attr_class(["_bs", "_br"])}><span${_attr_class("_E")}></span><div${_attr_class("_bt")}><span${_attr_class("_bw")}>Adding <!>${_escape(name)}${_el_resume($scope22_id, "e")}…</span></div></li>`);
8029
+ _html(`<li${_attr_class(["_bt", "_bs"])}><span${_attr_class("_E")}></span><div${_attr_class("_bu")}><span${_attr_class("_bx")}>Adding <!>${_escape(name)}${_el_resume($scope22_id, "e")}…</span></div></li>`);
8193
8030
  writeScope($scope22_id, {});
8194
- }, (n) => n, $scope0_id, "q", 1, 1, 1, 0, 1);
8031
+ }, (n) => n, $scope0_id, "y", 1, 1, 1, 0, 1);
8195
8032
  _html("</ul>");
8196
8033
  _if(() => {
8197
8034
  if (!ws.repos.length && !busy.size) {
8198
8035
  const $scope23_id = _scope_id();
8199
- _html(`<p${_attr_class("_by")}>No repos yet. Search below to add one.</p>`);
8036
+ _html(`<p${_attr_class("_bz")}>No repos yet. Search below to add one.</p>`);
8200
8037
  writeScope($scope23_id, {});
8201
8038
  return 0;
8202
8039
  }
8203
- }, $scope0_id, "r", 1, 1, 1, 0, 1);
8204
- _html(`<div${_attr_class("_eQ")}>`);
8040
+ }, $scope0_id, "z", 1, 1, 1, 0, 1);
8041
+ _html(`<div${_attr_class("_el")}>`);
8205
8042
  const $childScope3 = _peek_scope_id();
8206
8043
  let refreshCatalog = repo_picker_default({
8207
8044
  exclude: inWorkspace,
@@ -8215,14 +8052,14 @@ var manage_workspace_default = _template("o", (input) => {
8215
8052
  catalogRefreshing = busy;
8216
8053
  }, "o12", $scope0_id)
8217
8054
  });
8218
- _var($scope0_id, "u", $childScope3, "o16");
8055
+ _var($scope0_id, "a2", $childScope3, "o18");
8219
8056
  const wsSkills = skills?.workspace || [];
8220
8057
  const repoSkills = (skills?.repo || []).filter((s) => !wsSkills.some((w) => w.id === s.id));
8221
8058
  _html("</div></section>");
8222
8059
  _if(() => {
8223
8060
  if (wsSkills.length || repoSkills.length) {
8224
8061
  const $scope2_id = _scope_id();
8225
- _html(`<section${_attr_class("_bn")}><div${_attr_class("_bo")}><h2${_attr_class("_bB")}>Skills</h2>`);
8062
+ _html(`<section${_attr_class("_bo")}><div${_attr_class("_bp")}><h2${_attr_class("_bC")}>Skills</h2>`);
8226
8063
  _if(() => {
8227
8064
  if (wsSkills.length) {
8228
8065
  const $scope24_id = _scope_id();
@@ -8231,10 +8068,10 @@ var manage_workspace_default = _template("o", (input) => {
8231
8068
  return 0;
8232
8069
  }
8233
8070
  }, $scope2_id, "d", 1, 1, 1, 0, 1);
8234
- _html(`</div><ul${_attr_class("_bq")}>`);
8071
+ _html(`</div><ul${_attr_class("_br")}>`);
8235
8072
  _for_of(wsSkills, (s) => {
8236
8073
  const $scope3_id = _scope_id();
8237
- _html(`<li${_attr_class("_bs")}><div${_attr_class("_bt")}><span${_attr_class(["_bu", "_w"])}>${_escape(s.name)}${_el_resume($scope3_id, "d")}</span><span${_attr_class("_bv")}>`);
8074
+ _html(`<li${_attr_class("_bt")}><div${_attr_class("_bu")}><span${_attr_class(["_bv", "_w"])}>${_escape(s.name)}${_el_resume($scope3_id, "d")}</span><span${_attr_class("_bw")}>`);
8238
8075
  _if(() => {
8239
8076
  if (s.broken) {
8240
8077
  const $scope25_id = _scope_id();
@@ -8272,7 +8109,7 @@ var manage_workspace_default = _template("o", (input) => {
8272
8109
  _if(() => {
8273
8110
  if (s.description) {
8274
8111
  const $scope28_id = _scope_id();
8275
- _html(`<span${_attr_class("_bw")}${_attr("title", s.description)}>${_escape(s.description)}${_el_resume($scope28_id, "b")}</span>${_el_resume($scope28_id, "a")}`);
8112
+ _html(`<span${_attr_class("_bx")}${_attr("title", s.description)}>${_escape(s.description)}${_el_resume($scope28_id, "b")}</span>${_el_resume($scope28_id, "a")}`);
8276
8113
  writeScope($scope28_id, {});
8277
8114
  return 0;
8278
8115
  }
@@ -8280,7 +8117,7 @@ var manage_workspace_default = _template("o", (input) => {
8280
8117
  _if(() => {
8281
8118
  if (s.sourceUrl) {
8282
8119
  const $scope29_id = _scope_id();
8283
- _html(`<a${_attr_class(["_bw", "_eR"])}${_attr("href", s.sourceUrl)} target=_blank rel=noopener${_attr("title", `Open ${s.source} on GitHub`)}>${_escape(s.source)}${_el_resume($scope29_id, "b")}</a>${_el_resume($scope29_id, "a")}`);
8120
+ _html(`<a${_attr_class(["_bx", "_em"])}${_attr("href", s.sourceUrl)} target=_blank rel=noopener${_attr("title", `Open ${s.source} on GitHub`)}>${_escape(s.source)}${_el_resume($scope29_id, "b")}</a>${_el_resume($scope29_id, "a")}`);
8284
8121
  writeScope($scope29_id, {});
8285
8122
  return 0;
8286
8123
  }
@@ -8295,9 +8132,9 @@ var manage_workspace_default = _template("o", (input) => {
8295
8132
  } else {
8296
8133
  const $scope12_id = _scope_id();
8297
8134
  _html(`<button${_attr_class([
8298
- "_bx",
8299
- "_1",
8135
+ "_by",
8300
8136
  "_2",
8137
+ "_3",
8301
8138
  { ["_q"]: confirmingSkill === s.id }
8302
8139
  ])}${confirmingSkill === s.id ? _attr("title", `Remove ${s.name} from this workspace?`) : s.linked ? _attr("title", `Stop using ${s.name} here`) : _attr("title", `Remove ${s.name}`)}>`);
8303
8140
  _if(() => {
@@ -8313,7 +8150,7 @@ var manage_workspace_default = _template("o", (input) => {
8313
8150
  return 1;
8314
8151
  }
8315
8152
  }, $scope12_id, "a", 1, 1, 1, "</button>");
8316
- _script($scope12_id, "o17");
8153
+ _script($scope12_id, "o19");
8317
8154
  _subscribe($confirmingSkill__closures, writeScope($scope12_id, {}));
8318
8155
  return 1;
8319
8156
  }
@@ -8333,10 +8170,10 @@ var manage_workspace_default = _template("o", (input) => {
8333
8170
  _if(() => {
8334
8171
  if (repoSkills.length) {
8335
8172
  const $scope4_id = _scope_id();
8336
- _html(`<ul${_attr_class("_bq")}>`);
8173
+ _html(`<ul${_attr_class("_br")}>`);
8337
8174
  _for_of(repoSkills, (s) => {
8338
8175
  const $scope5_id = _scope_id();
8339
- _html(`<li${_attr_class("_bs")}><div${_attr_class("_bt")}><span${_attr_class(["_bu", "_w"])}>${_escape(s.name)}${_el_resume($scope5_id, "d")}</span><span${_attr_class("_bv")}><span${_attr_class(["_bw", "_w"])}>${_escape(s.worktree)}${_el_resume($scope5_id, "g")}/</span>`);
8176
+ _html(`<li${_attr_class("_bt")}><div${_attr_class("_bu")}><span${_attr_class(["_bv", "_w"])}>${_escape(s.name)}${_el_resume($scope5_id, "d")}</span><span${_attr_class("_bw")}><span${_attr_class(["_bx", "_w"])}>${_escape(s.worktree)}${_el_resume($scope5_id, "g")}/</span>`);
8340
8177
  _if(() => {
8341
8178
  if (s.shadows) {
8342
8179
  const $scope34_id = _scope_id();
@@ -8349,7 +8186,7 @@ var manage_workspace_default = _template("o", (input) => {
8349
8186
  _if(() => {
8350
8187
  if (s.description) {
8351
8188
  const $scope35_id = _scope_id();
8352
- _html(`<span${_attr_class("_bw")}${_attr("title", s.description)}>${_escape(s.description)}${_el_resume($scope35_id, "b")}</span>${_el_resume($scope35_id, "a")}`);
8189
+ _html(`<span${_attr_class("_bx")}${_attr("title", s.description)}>${_escape(s.description)}${_el_resume($scope35_id, "b")}</span>${_el_resume($scope35_id, "a")}`);
8353
8190
  writeScope($scope35_id, {});
8354
8191
  return 0;
8355
8192
  }
@@ -8364,7 +8201,7 @@ var manage_workspace_default = _template("o", (input) => {
8364
8201
  } else if (!s.shadows) {
8365
8202
  const $scope14_id = _scope_id();
8366
8203
  _html(`<button${_attr_class(btnSm)}${_attr("title", `Link ${s.name} into this workspace`)}>Use here</button>${_el_resume($scope14_id, "a")}`);
8367
- _script($scope14_id, "o18");
8204
+ _script($scope14_id, "o20");
8368
8205
  writeScope($scope14_id, {});
8369
8206
  return 1;
8370
8207
  }
@@ -8387,33 +8224,33 @@ var manage_workspace_default = _template("o", (input) => {
8387
8224
  writeScope($scope2_id, {});
8388
8225
  return 0;
8389
8226
  }
8390
- }, $scope0_id, "v", 1, 1, 1, 0, 1);
8227
+ }, $scope0_id, "a3", 1, 1, 1, 0, 1);
8391
8228
  const running = procs || [];
8392
8229
  _if(() => {
8393
8230
  if (running.length) {
8394
8231
  const $scope15_id = _scope_id();
8395
- _html(`<section${_attr_class("_bn")}><div${_attr_class("_bo")}><h2${_attr_class("_bB")}>Running</h2><span${_attr_class(sectionCount)}>${_escape(running.length)}${_el_resume($scope15_id, "e")}</span></div><ul${_attr_class("_bq")}>`);
8232
+ _html(`<section${_attr_class("_bo")}><div${_attr_class("_bp")}><h2${_attr_class("_bC")}>Running</h2><span${_attr_class(sectionCount)}>${_escape(running.length)}${_el_resume($scope15_id, "e")}</span></div><ul${_attr_class("_br")}>`);
8396
8233
  _for_of(running, (p) => {
8397
8234
  const $scope16_id = _scope_id();
8398
- _html(`<li${_attr_class("_bs")}><div${_attr_class("_bt")}${_attr("title", p.args)}><span${_attr_class(["_bu", "_w"])}>${_escape(p.cmd)}${_el_resume($scope16_id, "d")}</span>`);
8235
+ _html(`<li${_attr_class("_bt")}><div${_attr_class("_bu")}${_attr("title", p.args)}><span${_attr_class(["_bv", "_w"])}>${_escape(p.cmd)}${_el_resume($scope16_id, "d")}</span>`);
8399
8236
  _if(() => {
8400
8237
  if (p.ports.length) {
8401
8238
  const $scope37_id = _scope_id();
8402
- _html(`<span${_attr_class("_bv")}>`);
8239
+ _html(`<span${_attr_class("_bw")}>`);
8403
8240
  _for_of(p.ports, (port) => {
8404
8241
  const $scope38_id = _scope_id();
8405
- _html(`<button${_attr_class(["_s", "_eS"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope38_id, "b")}</button>${_el_resume($scope38_id, "a")}`);
8406
- _script($scope38_id, "o19");
8242
+ _html(`<button${_attr_class(["_s", "_en"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope38_id, "b")}</button>${_el_resume($scope38_id, "a")}`);
8243
+ _script($scope38_id, "o21");
8407
8244
  writeScope($scope38_id, { d: port });
8408
8245
  }, (x) => String(x), $scope37_id, "a", 1, 1, 1, "</span>", 1);
8409
8246
  writeScope($scope37_id, {});
8410
8247
  return 0;
8411
8248
  }
8412
8249
  }, $scope16_id, "e", 1, 1, 1, 0, 1);
8413
- _html(`</div>${_el_resume($scope16_id, "b")}<button${_attr_class(["_bx", "_1"])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
8250
+ _html(`</div>${_el_resume($scope16_id, "b")}<button${_attr_class(["_by", "_2"])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
8414
8251
  icon_xmark_default({ size: 14 });
8415
8252
  _html(`</button>${_el_resume($scope16_id, "f")}</li>`);
8416
- _script($scope16_id, "o20");
8253
+ _script($scope16_id, "o22");
8417
8254
  writeScope($scope16_id, {
8418
8255
  l: p?.ports,
8419
8256
  n: p?.pid
@@ -8423,28 +8260,8 @@ var manage_workspace_default = _template("o", (input) => {
8423
8260
  writeScope($scope15_id, {});
8424
8261
  return 0;
8425
8262
  }
8426
- }, $scope0_id, "w", 1, 1, 1, 0, 1);
8427
- _html(`<section${_attr_class(["_bn", "_eT"])}><div${_attr_class("_bo")}><h2${_attr_class("_bB")}>Workspace</h2></div><div${_attr_class("_eU")}>`);
8428
- _if(() => {
8429
- if (ws.status === "active") {
8430
- const $scope8_id = _scope_id();
8431
- _html(`<button type=button${_attr_class(btnLg)}${_attr("disabled", !!pendingAction)}>${pendingAction === "archive" ? "Archiving…" : "Archive"}${_el_resume($scope8_id, "b")}</button>${_el_resume($scope8_id, "a")}`);
8432
- _script($scope8_id, "o21");
8433
- writeScope($scope8_id, {});
8434
- return 0;
8435
- } else {
8436
- const $scope9_id = _scope_id();
8437
- _html(`<button type=button${_attr_class(btnLg)}${_attr("disabled", !!pendingAction)}>Restore</button>${_el_resume($scope9_id, "a")}`);
8438
- _script($scope9_id, "o22");
8439
- writeScope($scope9_id, {});
8440
- return 1;
8441
- }
8442
- }, $scope0_id, "a1", 1, 1, 1, 0, 1);
8443
- _html(`<button type=button${_attr_class([
8444
- btnLg,
8445
- "_r",
8446
- { ["_q"]: confirmingDelete }
8447
- ])}${_attr("disabled", !!pendingAction)}>${pendingAction === "delete" ? "Deleting…" : "Delete"}${_el_resume($scope0_id, "a3")}</button>${_el_resume($scope0_id, "a2")}</div><p${_attr_class(dangerHint)}>Archive hides the workspace from the list. Delete removes it and its worktrees.</p></section></div></div></div>`);
8263
+ }, $scope0_id, "a4", 1, 1, 1, 0, 1);
8264
+ _html("</div></div></div>");
8448
8265
  _script($scope0_id, "o23");
8449
8266
  _script($scope0_id, "o24");
8450
8267
  writeScope($scope0_id, {
@@ -8491,9 +8308,9 @@ var manage_workspace_default = _template("o", (input) => {
8491
8308
  by: $ws_status__closures,
8492
8309
  d: _existing_scope($childScope),
8493
8310
  bp: $error__closures,
8494
- n: _existing_scope($childScope2),
8311
+ v: _existing_scope($childScope2),
8495
8312
  br: $confirmingRemove__closures,
8496
- t: _existing_scope($childScope3),
8313
+ a1: _existing_scope($childScope3),
8497
8314
  c0: $wsSkills_length__closures,
8498
8315
  bu: $confirmingSkill__closures,
8499
8316
  bo: $busy__closures,
@@ -8538,19 +8355,19 @@ var term_find_default = _template("A", (input) => {
8538
8355
  const canStep = hasQuery && open;
8539
8356
  const keybar = input.placement === "keybar";
8540
8357
  _html(`<div${_attr_class([
8541
- "_fX",
8542
- keybar ? "_fZ" : "_fY",
8543
- !open && "_f1"
8544
- ])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_fS", keybar ? "_f0" : "_fU"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
8358
+ "_gg",
8359
+ keybar ? "_gi" : "_gh",
8360
+ !open && "_gk"
8361
+ ])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_gb", keybar ? "_gj" : "_gd"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
8545
8362
  if (!open) return;
8546
8363
  query = v;
8547
8364
  live.query = v;
8548
8365
  run(0);
8549
- }, "A0", $scope0_id))}${_attr_class([findInput, keybar && "_f2"])} 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 && "_f3"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
8366
+ }, "A0", $scope0_id))}${_attr_class([findInput, keybar && "_gl"])} 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 && "_gm"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
8550
8367
  icon_arrow_up_default({ size: 14 });
8551
- _html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_f3"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
8368
+ _html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_gm"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
8552
8369
  icon_arrow_down_default({ size: 14 });
8553
- _html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "_f3"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
8370
+ _html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "_gm"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
8554
8371
  icon_xmark_default({ size: 14 });
8555
8372
  _html(`</button>${_el_resume($scope0_id, "h")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
8556
8373
  _script($scope0_id, "A4");
@@ -8884,7 +8701,7 @@ var term_default = _template("B", (input) => {
8884
8701
  trapOpen = true;
8885
8702
  }
8886
8703
  }, "B14", $scope0_id);
8887
- _html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_dL")}><div${_attr_class("_dM")}></div>${_el_resume($scope0_id, "b")}`);
8704
+ _html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_eq")}><div${_attr_class("_er")}></div>${_el_resume($scope0_id, "b")}`);
8888
8705
  _if(() => {
8889
8706
  if (findOpen) {
8890
8707
  const $scope12_id = _scope_id();
@@ -8911,7 +8728,7 @@ var term_default = _template("B", (input) => {
8911
8728
  _if(() => {
8912
8729
  if (uploading) {
8913
8730
  const $scope19_id = _scope_id();
8914
- _html(`<div${_attr_class("_dS")}>uploading…</div>`);
8731
+ _html(`<div${_attr_class("_ex")}>uploading…</div>`);
8915
8732
  writeScope($scope19_id, {});
8916
8733
  return 0;
8917
8734
  }
@@ -8919,7 +8736,7 @@ var term_default = _template("B", (input) => {
8919
8736
  _if(() => {
8920
8737
  if (copiedFlash) {
8921
8738
  const $scope20_id = _scope_id();
8922
- _html(`<div${_attr_class("_dR")}>Copied</div>`);
8739
+ _html(`<div${_attr_class("_ew")}>Copied</div>`);
8923
8740
  writeScope($scope20_id, {});
8924
8741
  return 0;
8925
8742
  }
@@ -8928,7 +8745,7 @@ var term_default = _template("B", (input) => {
8928
8745
  _if(() => {
8929
8746
  if (trapOpen) {
8930
8747
  const $scope11_id = _scope_id();
8931
- _html(`<div${_attr_class("_dT")}><div${_attr_class("_dU")}><p${_attr_class("_en")}>Long-press the field below and choose Paste</p><input placeholder="Paste here…">${_el_resume($scope11_id, "d")}<button${_attr_class("_o")}>Cancel</button>${_el_resume($scope11_id, "e")}</div>${_el_resume($scope11_id, "b")}</div>${_el_resume($scope11_id, "a")}`);
8748
+ _html(`<div${_attr_class("_ey")}><div${_attr_class("_ez")}><p${_attr_class("_e3")}>Long-press the field below and choose Paste</p><input placeholder="Paste here…">${_el_resume($scope11_id, "d")}<button${_attr_class("_o")}>Cancel</button>${_el_resume($scope11_id, "e")}</div>${_el_resume($scope11_id, "b")}</div>${_el_resume($scope11_id, "a")}`);
8932
8749
  _script($scope11_id, "B25");
8933
8750
  _script($scope11_id, "B26");
8934
8751
  writeScope($scope11_id, {});
@@ -9032,7 +8849,7 @@ var work_view_default = _template("F", (input) => {
9032
8849
  let DiffView = null;
9033
8850
  const loadDiffView = _resume(() => {
9034
8851
  if (DiffView) return;
9035
- import("./_CeVZfkIY.js").then((m) => {
8852
+ import("./_BIhoUpsW.js").then((m) => {
9036
8853
  DiffView = m.default;
9037
8854
  });
9038
8855
  }, "F6", $scope0_id);
@@ -9220,10 +9037,10 @@ var work_view_default = _template("F", (input) => {
9220
9037
  toggleDiff();
9221
9038
  }
9222
9039
  }, "F21", $scope0_id);
9223
- _html(`<div${_attr_class(["_b5", {
9224
- ["_b3"]: view === "nav",
9225
- ["_b4"]: !input.active
9226
- }])}><div${_attr_class("_b6")}>`);
9040
+ _html(`<div${_attr_class(["_b6", {
9041
+ ["_b4"]: view === "nav",
9042
+ ["_b5"]: !input.active
9043
+ }])}><div${_attr_class("_b7")}>`);
9227
9044
  _set_serialize_reason({
9228
9045
  0: _serialize_guard($scope0_reason, 0),
9229
9046
  1: 1,
@@ -9292,7 +9109,7 @@ var work_view_default = _template("F", (input) => {
9292
9109
  });
9293
9110
  }, "F30", $scope0_id)
9294
9111
  });
9295
- _html(`</div><div${_attr_class("_b7")}>`);
9112
+ _html(`</div><div${_attr_class("_b8")}>`);
9296
9113
  _if(() => {
9297
9114
  if (error) {
9298
9115
  const $scope8_id = _scope_id();
@@ -9315,7 +9132,7 @@ var work_view_default = _template("F", (input) => {
9315
9132
  _if(() => {
9316
9133
  if (diffMounted && DiffView) {
9317
9134
  const $scope1_id = _scope_id();
9318
- _html(`<div${_attr_class("_b8")}${_attr_or("data-live", view === "diff", "")}${_attr("inert", view !== "diff")}>`);
9135
+ _html(`<div${_attr_class("_b9")}${_attr_or("data-live", view === "diff", "")}${_attr("inert", view !== "diff")}>`);
9319
9136
  _dynamic_tag($scope1_id, "b", DiffView, {
9320
9137
  workspaceId: ws.id,
9321
9138
  workspaceBranch: ws.branch,
@@ -9355,7 +9172,7 @@ var work_view_default = _template("F", (input) => {
9355
9172
  _if(() => {
9356
9173
  if (manageMounted) {
9357
9174
  const $scope2_id = _scope_id();
9358
- _html(`<div${_attr_class("_b8")}${_attr_or("data-live", view === "manage", "")}${_attr("inert", view !== "manage")}>`);
9175
+ _html(`<div${_attr_class("_b9")}${_attr_or("data-live", view === "manage", "")}${_attr("inert", view !== "manage")}>`);
9359
9176
  _set_serialize_reason(_serialize_guard($scope0_reason, 16));
9360
9177
  const $childScope2 = _peek_scope_id();
9361
9178
  manage_workspace_default({
@@ -9378,7 +9195,7 @@ var work_view_default = _template("F", (input) => {
9378
9195
  _if(() => {
9379
9196
  if (settingsMounted) {
9380
9197
  const $scope3_id = _scope_id();
9381
- _html(`<div${_attr_class("_b8")}${_attr_or("data-live", view === "settings", "")}${_attr("inert", view !== "settings")}>`);
9198
+ _html(`<div${_attr_class("_b9")}${_attr_or("data-live", view === "settings", "")}${_attr("inert", view !== "settings")}>`);
9382
9199
  _set_serialize_reason({
9383
9200
  0: _serialize_guard($scope0_reason, 1),
9384
9201
  1: $sg__input_workspace,
@@ -9419,7 +9236,7 @@ var work_view_default = _template("F", (input) => {
9419
9236
  _if(() => {
9420
9237
  if (newMounted) {
9421
9238
  const $scope4_id = _scope_id();
9422
- _html(`<div${_attr_class("_b8")}${_attr_or("data-live", view === "new", "")}${_attr("inert", view !== "new")}>`);
9239
+ _html(`<div${_attr_class("_b9")}${_attr_or("data-live", view === "new", "")}${_attr("inert", view !== "new")}>`);
9423
9240
  _set_serialize_reason({
9424
9241
  0: 1,
9425
9242
  1: $sg__input_allWorkspaces,
@@ -9446,13 +9263,13 @@ var work_view_default = _template("F", (input) => {
9446
9263
  return 0;
9447
9264
  }
9448
9265
  }, $scope0_id, "i", 1, 1, 1, 0, 1);
9449
- _html(`<div${_attr_class(["_b_", { ["_b9"]: view !== "term" }])}>`);
9266
+ _html(`<div${_attr_class(["_ca", { ["_b_"]: view !== "term" }])}>`);
9450
9267
  _if(() => {
9451
9268
  if (shownSessions) {
9452
9269
  const $scope5_id = _scope_id();
9453
9270
  _for_of(input.active ? shownSessions : shownSessions.filter((x) => x.id === curTab), (s) => {
9454
9271
  const $scope6_id = _scope_id();
9455
- _html(`<div${_attr_class("_ca")}${_attr_or("data-live", s.id === curTab, "")}${_attr("inert", s.id !== curTab)}>`);
9272
+ _html(`<div${_attr_class("_cb")}${_attr_or("data-live", s.id === curTab, "")}${_attr("inert", s.id !== curTab)}>`);
9456
9273
  _set_serialize_reason({
9457
9274
  0: 1,
9458
9275
  1: 1,
@@ -9512,7 +9329,7 @@ var work_view_default = _template("F", (input) => {
9512
9329
  _if(() => {
9513
9330
  if (!shownSessions.length && view === "term") {
9514
9331
  const $scope7_id = _scope_id();
9515
- _html(`<div${_attr_class("_bz")}><span>No sessions in this workspace.</span><button${_attr_class(["_o", "_p"])}${_attr("disabled", spawning)}>${spawning ? "Starting…" : `Start ${_escape(`${input.preferred || "shell"}`)}`}${_el_resume($scope7_id, "c")}</button>${_el_resume($scope7_id, "b")}</div>`);
9332
+ _html(`<div${_attr_class("_bA")}><span>No sessions in this workspace.</span><button${_attr_class(["_o", "_p"])}${_attr("disabled", spawning)}>${spawning ? "Starting…" : `Start ${_escape(`${input.preferred || "shell"}`)}`}${_el_resume($scope7_id, "c")}</button>${_el_resume($scope7_id, "b")}</div>`);
9516
9333
  _script($scope7_id, "F50");
9517
9334
  _subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
9518
9335
  return 0;
@@ -9522,7 +9339,7 @@ var work_view_default = _template("F", (input) => {
9522
9339
  return 0;
9523
9340
  } else {
9524
9341
  const $scope10_id = _scope_id();
9525
- _html(`<p${_attr_class("_bz")}>Loading sessions…</p>`);
9342
+ _html(`<p${_attr_class("_bA")}>Loading sessions…</p>`);
9526
9343
  writeScope($scope10_id, {});
9527
9344
  return 1;
9528
9345
  }
@@ -18023,4 +17840,4 @@ server.listen(port, () => {
18023
17840
  //#endregion
18024
17841
  export {};
18025
17842
 
18026
- ;var __MARKO_MANIFEST__={"ZLT8joi":{"block":[2,"stylesheet#/assets/app-page-LDZ2KXKs.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-LDZ2KXKs.css\"",">"],"defer":[2,"/assets/new-CwlftYMt.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-CwlftYMt.js\"","></script>",2,"modulepreload#/assets/_CVtWHYIm.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CVtWHYIm.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/app-page-LDZ2KXKs.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-LDZ2KXKs.css\"",">"],"defer":[2,"/assets/settings-CwlftYMt.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-CwlftYMt.js\"","></script>",2,"modulepreload#/assets/_CVtWHYIm.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CVtWHYIm.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/app-page-LDZ2KXKs.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-LDZ2KXKs.css\"",">"],"defer":[2,"/assets/w-CwlftYMt.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-CwlftYMt.js\"","></script>",2,"modulepreload#/assets/_CVtWHYIm.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CVtWHYIm.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/app-page-LDZ2KXKs.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-LDZ2KXKs.css\"",">"],"defer":[2,"/assets/w._-CwlftYMt.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-CwlftYMt.js\"","></script>",2,"modulepreload#/assets/_CVtWHYIm.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CVtWHYIm.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/app-page-LDZ2KXKs.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-LDZ2KXKs.css\"",">"],"defer":[2,"/assets/w._-BGFF38Oe.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-BGFF38Oe.js\"","></script>",2,"modulepreload#/assets/_CVtWHYIm.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CVtWHYIm.js\"",">"]}};
17843
+ ;var __MARKO_MANIFEST__={"ZLT8joi":{"block":[2,"stylesheet#/assets/app-page-BXbewHHv.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BXbewHHv.css\"",">"],"defer":[2,"/assets/new-DUXTU7jB.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-DUXTU7jB.js\"","></script>",2,"modulepreload#/assets/_RhYe7Uqa.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_RhYe7Uqa.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/app-page-BXbewHHv.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BXbewHHv.css\"",">"],"defer":[2,"/assets/w-DUXTU7jB.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-DUXTU7jB.js\"","></script>",2,"modulepreload#/assets/_RhYe7Uqa.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_RhYe7Uqa.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/app-page-BXbewHHv.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BXbewHHv.css\"",">"],"defer":[2,"/assets/settings-DUXTU7jB.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-DUXTU7jB.js\"","></script>",2,"modulepreload#/assets/_RhYe7Uqa.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_RhYe7Uqa.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/app-page-BXbewHHv.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BXbewHHv.css\"",">"],"defer":[2,"/assets/w._-DUXTU7jB.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-DUXTU7jB.js\"","></script>",2,"modulepreload#/assets/_RhYe7Uqa.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_RhYe7Uqa.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/app-page-BXbewHHv.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BXbewHHv.css\"",">"],"defer":[2,"/assets/w._-bwrmfhu0.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-bwrmfhu0.js\"","></script>",2,"modulepreload#/assets/_RhYe7Uqa.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_RhYe7Uqa.js\"",">"]}};