@dylanpiercey/work 0.0.88 → 0.0.90

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 (247) hide show
  1. package/dist/{_Cz8F94WW.js → _BI3Xi4eO.js} +70 -70
  2. package/dist/{_CoU5siEE.js → _BoHSyzGw.js} +27 -15
  3. package/dist/index.mjs +1035 -611
  4. package/dist/public/assets/{_U8cSRlqn2.js → _3ynplbg02.js} +1 -1
  5. package/dist/public/assets/_3ynplbg02.js.br +0 -0
  6. package/dist/public/assets/{_Cshjy-tr.js → _4S5nbYez.js} +1 -1
  7. package/dist/public/assets/_4S5nbYez.js.br +0 -0
  8. package/dist/public/assets/{_x05B0wD3.js → _6JqdBfNo.js} +6 -6
  9. package/dist/public/assets/_6JqdBfNo.js.br +0 -0
  10. package/dist/public/assets/{_B07KnwWv.js → _B-X5aTOX.js} +1 -1
  11. package/dist/public/assets/{_Fiqv8D5E.js → _B2W6--GA.js} +1 -1
  12. package/dist/public/assets/_B2W6--GA.js.br +0 -0
  13. package/dist/public/assets/{_Dtt87bkn.js → _B5L88Fun.js} +1 -1
  14. package/dist/public/assets/_B5L88Fun.js.br +0 -0
  15. package/dist/public/assets/{_EoZ_xBXq2.js → _B5zr-Eqv2.js} +1 -1
  16. package/dist/public/assets/{_CPukMy5X.js → _B77CKFnL.js} +1 -1
  17. package/dist/public/assets/_B77CKFnL.js.br +0 -0
  18. package/dist/public/assets/{_DIOpQGuO.js → _B8cmFbkc.js} +1 -1
  19. package/dist/public/assets/_B8cmFbkc.js.br +0 -0
  20. package/dist/public/assets/{_Dq3Fnsny.js → _BDDJCM8z.js} +1 -1
  21. package/dist/public/assets/_BDDJCM8z.js.br +0 -0
  22. package/dist/public/assets/{_C3ByoAdu2.js → _BDpDNdO22.js} +1 -1
  23. package/dist/public/assets/_BDpDNdO22.js.br +0 -0
  24. package/dist/public/assets/{_Cwzls7ul.js → _BDurrHP5.js} +1 -1
  25. package/dist/public/assets/_BDurrHP5.js.br +0 -0
  26. package/dist/public/assets/{_BK1AsBrt.js → _BEk6xpoo.js} +1 -1
  27. package/dist/public/assets/_BEk6xpoo.js.br +0 -0
  28. package/dist/public/assets/{_EWc7i02-2.js → _BGveroZ62.js} +1 -1
  29. package/dist/public/assets/_BGveroZ62.js.br +0 -0
  30. package/dist/public/assets/{_DHmeJbF12.js → _BJRef8Og2.js} +1 -1
  31. package/dist/public/assets/_BJRef8Og2.js.br +0 -0
  32. package/dist/public/assets/{_DY1ZTiKf.js → _BL7dyWXL.js} +20 -20
  33. package/dist/public/assets/_BL7dyWXL.js.br +0 -0
  34. package/dist/public/assets/{_BJhC5Swa.js → _BNpauKOa.js} +1 -1
  35. package/dist/public/assets/_BNpauKOa.js.br +5 -0
  36. package/dist/public/assets/{_j4GDdAJs.js → _BRtEkH0S.js} +1 -1
  37. package/dist/public/assets/_BRtEkH0S.js.br +0 -0
  38. package/dist/public/assets/{_CZ4weotP.js → _BTWYV-Lp.js} +1 -1
  39. package/dist/public/assets/_BTWYV-Lp.js.br +0 -0
  40. package/dist/public/assets/{_D45Y3kzM2.js → _BYxENZ8N2.js} +1 -1
  41. package/dist/public/assets/_BYxENZ8N2.js.br +0 -0
  42. package/dist/public/assets/{_BwuFR15N.js → _Bat7nbwI.js} +1 -1
  43. package/dist/public/assets/_Bat7nbwI.js.br +0 -0
  44. package/dist/public/assets/{_Dz2BYxkE.js → _BcsnmmsA.js} +1 -1
  45. package/dist/public/assets/_BcsnmmsA.js.br +0 -0
  46. package/dist/public/assets/{_wu7LU_F-.js → _BgHgS7fo.js} +1 -1
  47. package/dist/public/assets/_BgHgS7fo.js.br +0 -0
  48. package/dist/public/assets/{_BNlnm23c.js → _BgTMYO5f.js} +1 -1
  49. package/dist/public/assets/_BgTMYO5f.js.br +0 -0
  50. package/dist/public/assets/{_Dye_WaXg2.js → _BkUG7KqS2.js} +1 -1
  51. package/dist/public/assets/_BkUG7KqS2.js.br +0 -0
  52. package/dist/public/assets/{_BWg4qN7U2.js → _BmE5vg1I2.js} +1 -1
  53. package/dist/public/assets/_BmE5vg1I2.js.br +0 -0
  54. package/dist/public/assets/{_ix4YrGtW2.js → _Bx6kQ7i82.js} +1 -1
  55. package/dist/public/assets/_Bx6kQ7i82.js.br +0 -0
  56. package/dist/public/assets/{_BcDcSdJH2.js → _C4At0P-72.js} +1 -1
  57. package/dist/public/assets/_C4At0P-72.js.br +0 -0
  58. package/dist/public/assets/{_DW5_6QEJ.js → _C6C6kASF.js} +1 -1
  59. package/dist/public/assets/_C6C6kASF.js.br +0 -0
  60. package/dist/public/assets/{_BR-j-QRg.js → _CAGMXD3z.js} +1 -1
  61. package/dist/public/assets/_CAGMXD3z.js.br +0 -0
  62. package/dist/public/assets/{_DESBqf832.js → _CDHF4ZQE2.js} +1 -1
  63. package/dist/public/assets/_CDHF4ZQE2.js.br +0 -0
  64. package/dist/public/assets/{_Cx97qUQa.js → _CMqX47N9.js} +1 -1
  65. package/dist/public/assets/_CMqX47N9.js.br +0 -0
  66. package/dist/public/assets/{_CWMWI6ue.js → _CTbAK0l2.js} +1 -1
  67. package/dist/public/assets/_CTbAK0l2.js.br +0 -0
  68. package/dist/public/assets/{_CpwxuUbM2.js → _CU55G8Yf2.js} +1 -1
  69. package/dist/public/assets/_CU55G8Yf2.js.br +0 -0
  70. package/dist/public/assets/{_CxUl3SEz2.js → _CW0r9JmM2.js} +1 -1
  71. package/dist/public/assets/_CW0r9JmM2.js.br +0 -0
  72. package/dist/public/assets/{_CmY7d5sh.js → _CZTLFFJd.js} +1 -1
  73. package/dist/public/assets/_CZTLFFJd.js.br +0 -0
  74. package/dist/public/assets/{_07qJecSc.js → _C_IYNn8f.js} +1 -1
  75. package/dist/public/assets/_C_IYNn8f.js.br +0 -0
  76. package/dist/public/assets/{_B8HQGdOD2.js → _C_qZ5uwd2.js} +1 -1
  77. package/dist/public/assets/_C_qZ5uwd2.js.br +0 -0
  78. package/dist/public/assets/{_CkjdmXvh.js → _CbSFdGhW.js} +1 -1
  79. package/dist/public/assets/_CbSFdGhW.js.br +0 -0
  80. package/dist/public/assets/{_CdOTbzEk2.js → _CwJ0At0b2.js} +1 -1
  81. package/dist/public/assets/_CwJ0At0b2.js.br +0 -0
  82. package/dist/public/assets/{_DOihbSbE.js → _Cy-7OIHA.js} +1 -1
  83. package/dist/public/assets/_Cy-7OIHA.js.br +0 -0
  84. package/dist/public/assets/{_Hqm5mf9S.js → _CyBvc9ho.js} +1 -1
  85. package/dist/public/assets/_CyBvc9ho.js.br +0 -0
  86. package/dist/public/assets/{_B1fvNVfH.js → _Cyv5hWnQ.js} +1 -1
  87. package/dist/public/assets/_Cyv5hWnQ.js.br +0 -0
  88. package/dist/public/assets/{_cCTeyYAY.js → _D1XnveBV.js} +1 -1
  89. package/dist/public/assets/_D1XnveBV.js.br +0 -0
  90. package/dist/public/assets/{_CyD33Xwe.js → _D8Iy1C9u.js} +1 -1
  91. package/dist/public/assets/_D8Iy1C9u.js.br +0 -0
  92. package/dist/public/assets/{_aWRBkGVy.js → _D9Wr0Ggc.js} +1 -1
  93. package/dist/public/assets/_D9Wr0Ggc.js.br +0 -0
  94. package/dist/public/assets/{_k2rzFYXw.js → _DAWoam_-.js} +1 -1
  95. package/dist/public/assets/_DAWoam_-.js.br +0 -0
  96. package/dist/public/assets/{_Bw9AEf9U2.js → _DGM3-GL02.js} +1 -1
  97. package/dist/public/assets/_DGM3-GL02.js.br +0 -0
  98. package/dist/public/assets/{_aJR0pEfl.js → _DJdiUu64.js} +1 -1
  99. package/dist/public/assets/_DJdiUu64.js.br +0 -0
  100. package/dist/public/assets/{_DCmGRWXl2.js → _DK35E5612.js} +1 -1
  101. package/dist/public/assets/_DK35E5612.js.br +0 -0
  102. package/dist/public/assets/{_CRi3sQaK2.js → _DPayMNVG2.js} +1 -1
  103. package/dist/public/assets/_DPayMNVG2.js.br +0 -0
  104. package/dist/public/assets/{_BwbHWVEx.js → _D_iLSXxo.js} +1 -1
  105. package/dist/public/assets/_D_iLSXxo.js.br +0 -0
  106. package/dist/public/assets/{_C3--a3ig.js → _DciRF9rE.js} +1 -1
  107. package/dist/public/assets/_DciRF9rE.js.br +0 -0
  108. package/dist/public/assets/{_BG6UrECj.js → _DfNptl8V.js} +1 -1
  109. package/dist/public/assets/_DfNptl8V.js.br +0 -0
  110. package/dist/public/assets/{_BcboNVrv2.js → _DijIqSaj2.js} +1 -1
  111. package/dist/public/assets/_DijIqSaj2.js.br +0 -0
  112. package/dist/public/assets/{_DrOqesVG.js → _DkpU65ju.js} +1 -1
  113. package/dist/public/assets/_DkpU65ju.js.br +0 -0
  114. package/dist/public/assets/{_B9D_0ZQr.js → _DoMUzoqQ.js} +1 -1
  115. package/dist/public/assets/_DoMUzoqQ.js.br +0 -0
  116. package/dist/public/assets/{_vfKZvCts.js → _Ds32TzIf.js} +1 -1
  117. package/dist/public/assets/_Ds32TzIf.js.br +0 -0
  118. package/dist/public/assets/{_BOo2ADNE2.js → _DwFOcLsI2.js} +1 -1
  119. package/dist/public/assets/_DwFOcLsI2.js.br +0 -0
  120. package/dist/public/assets/{_Cld64l7w.js → _DyODLJ7v.js} +1 -1
  121. package/dist/public/assets/_DyODLJ7v.js.br +0 -0
  122. package/dist/public/assets/{_CKZUxuhA.js → _DyzNnEOs.js} +1 -1
  123. package/dist/public/assets/_DyzNnEOs.js.br +0 -0
  124. package/dist/public/assets/{_DwK4Diby2.js → _EZAd6l9R2.js} +1 -1
  125. package/dist/public/assets/{_Df4EyoB-.js → _IL1tPh9k.js} +1 -1
  126. package/dist/public/assets/_IL1tPh9k.js.br +0 -0
  127. package/dist/public/assets/{_B04Rz6or.js → _PoE8SOKi.js} +1 -1
  128. package/dist/public/assets/_PoE8SOKi.js.br +0 -0
  129. package/dist/public/assets/{_Bed4-hRw2.js → _SzbJBQbg2.js} +1 -1
  130. package/dist/public/assets/_SzbJBQbg2.js.br +0 -0
  131. package/dist/public/assets/{_DO2j2wai.js → _WhpyuASW.js} +1 -1
  132. package/dist/public/assets/_WhpyuASW.js.br +0 -0
  133. package/dist/public/assets/{_C7T0iOcK.js → _aE4RRi8y.js} +1 -1
  134. package/dist/public/assets/_aE4RRi8y.js.br +0 -0
  135. package/dist/public/assets/{_GrrScuAr.js → _avsueLNZ.js} +1 -1
  136. package/dist/public/assets/_avsueLNZ.js.br +0 -0
  137. package/dist/public/assets/{_BqGM5Qj0.js → _h3cff2nW.js} +1 -1
  138. package/dist/public/assets/_h3cff2nW.js.br +0 -0
  139. package/dist/public/assets/{_BYwpUM-g.js → _kzWcm3nm.js} +1 -1
  140. package/dist/public/assets/_kzWcm3nm.js.br +0 -0
  141. package/dist/public/assets/{_CWGKayAn.js → _leSBrm_6.js} +1 -1
  142. package/dist/public/assets/_leSBrm_6.js.br +0 -0
  143. package/dist/public/assets/{_i31Rddpf2.js → _mIIXioBP2.js} +1 -1
  144. package/dist/public/assets/_mIIXioBP2.js.br +0 -0
  145. package/dist/public/assets/{_nNPOLNo7.js → _tYnN-yyR.js} +1 -1
  146. package/dist/public/assets/_tYnN-yyR.js.br +0 -0
  147. package/dist/public/assets/{_Bev6eZfU2.js → _u_QJIZlf2.js} +1 -1
  148. package/dist/public/assets/_u_QJIZlf2.js.br +0 -0
  149. package/dist/public/assets/{_DwGOtsEM.js → _vDRZXcov.js} +1 -1
  150. package/dist/public/assets/_vDRZXcov.js.br +0 -0
  151. package/dist/public/assets/{_BrwDJWFC.js → _vxAYCrUk.js} +1 -1
  152. package/dist/public/assets/_vxAYCrUk.js.br +0 -0
  153. package/dist/public/assets/app-page-CYLbQ8QR.css +1 -0
  154. package/dist/public/assets/app-page-CYLbQ8QR.css.br +0 -0
  155. package/dist/public/assets/diff-view-DM89dUsm.css +1 -0
  156. package/dist/public/assets/diff-view-DM89dUsm.css.br +0 -0
  157. package/dist/public/assets/new-C7B6EV0t.js +1 -0
  158. package/dist/public/assets/settings-C7B6EV0t.js +1 -0
  159. package/dist/public/assets/w-C7B6EV0t.js +1 -0
  160. package/dist/public/assets/w._-Bwtl9yyA.js +1 -0
  161. package/dist/public/assets/w._-C7B6EV0t.js +1 -0
  162. package/lib/setup/doctor.d.mts +3 -0
  163. package/lib/setup/install.d.mts +1 -0
  164. package/lib/setup/install.mjs +11 -0
  165. package/package.json +1 -1
  166. package/dist/public/assets/_07qJecSc.js.br +0 -0
  167. package/dist/public/assets/_B04Rz6or.js.br +0 -0
  168. package/dist/public/assets/_B1fvNVfH.js.br +0 -0
  169. package/dist/public/assets/_B8HQGdOD2.js.br +0 -0
  170. package/dist/public/assets/_B9D_0ZQr.js.br +0 -0
  171. package/dist/public/assets/_BG6UrECj.js.br +0 -0
  172. package/dist/public/assets/_BJhC5Swa.js.br +0 -0
  173. package/dist/public/assets/_BK1AsBrt.js.br +0 -0
  174. package/dist/public/assets/_BNlnm23c.js.br +0 -0
  175. package/dist/public/assets/_BOo2ADNE2.js.br +0 -0
  176. package/dist/public/assets/_BR-j-QRg.js.br +0 -0
  177. package/dist/public/assets/_BWg4qN7U2.js.br +0 -0
  178. package/dist/public/assets/_BYwpUM-g.js.br +0 -0
  179. package/dist/public/assets/_BcDcSdJH2.js.br +0 -0
  180. package/dist/public/assets/_BcboNVrv2.js.br +0 -0
  181. package/dist/public/assets/_Bed4-hRw2.js.br +0 -0
  182. package/dist/public/assets/_Bev6eZfU2.js.br +0 -0
  183. package/dist/public/assets/_BqGM5Qj0.js.br +0 -0
  184. package/dist/public/assets/_BrwDJWFC.js.br +0 -0
  185. package/dist/public/assets/_Bw9AEf9U2.js.br +0 -0
  186. package/dist/public/assets/_BwbHWVEx.js.br +0 -0
  187. package/dist/public/assets/_BwuFR15N.js.br +0 -0
  188. package/dist/public/assets/_C3--a3ig.js.br +0 -0
  189. package/dist/public/assets/_C3ByoAdu2.js.br +0 -0
  190. package/dist/public/assets/_C7T0iOcK.js.br +0 -0
  191. package/dist/public/assets/_CKZUxuhA.js.br +0 -0
  192. package/dist/public/assets/_CPukMy5X.js.br +0 -0
  193. package/dist/public/assets/_CRi3sQaK2.js.br +0 -0
  194. package/dist/public/assets/_CWGKayAn.js.br +0 -0
  195. package/dist/public/assets/_CWMWI6ue.js.br +0 -0
  196. package/dist/public/assets/_CZ4weotP.js.br +0 -0
  197. package/dist/public/assets/_CdOTbzEk2.js.br +0 -0
  198. package/dist/public/assets/_CkjdmXvh.js.br +0 -0
  199. package/dist/public/assets/_Cld64l7w.js.br +0 -0
  200. package/dist/public/assets/_CmY7d5sh.js.br +0 -0
  201. package/dist/public/assets/_CpwxuUbM2.js.br +0 -0
  202. package/dist/public/assets/_Cshjy-tr.js.br +0 -0
  203. package/dist/public/assets/_Cwzls7ul.js.br +0 -0
  204. package/dist/public/assets/_Cx97qUQa.js.br +0 -0
  205. package/dist/public/assets/_CxUl3SEz2.js.br +0 -0
  206. package/dist/public/assets/_CyD33Xwe.js.br +0 -0
  207. package/dist/public/assets/_D45Y3kzM2.js.br +0 -0
  208. package/dist/public/assets/_DCmGRWXl2.js.br +0 -0
  209. package/dist/public/assets/_DESBqf832.js.br +0 -0
  210. package/dist/public/assets/_DHmeJbF12.js.br +0 -0
  211. package/dist/public/assets/_DIOpQGuO.js.br +0 -0
  212. package/dist/public/assets/_DO2j2wai.js.br +0 -0
  213. package/dist/public/assets/_DOihbSbE.js.br +0 -0
  214. package/dist/public/assets/_DW5_6QEJ.js.br +0 -0
  215. package/dist/public/assets/_DY1ZTiKf.js.br +0 -0
  216. package/dist/public/assets/_Df4EyoB-.js.br +0 -0
  217. package/dist/public/assets/_Dq3Fnsny.js.br +0 -0
  218. package/dist/public/assets/_DrOqesVG.js.br +0 -0
  219. package/dist/public/assets/_Dtt87bkn.js.br +0 -0
  220. package/dist/public/assets/_DwGOtsEM.js.br +0 -0
  221. package/dist/public/assets/_Dye_WaXg2.js.br +0 -0
  222. package/dist/public/assets/_Dz2BYxkE.js.br +0 -0
  223. package/dist/public/assets/_EWc7i02-2.js.br +0 -0
  224. package/dist/public/assets/_Fiqv8D5E.js.br +0 -0
  225. package/dist/public/assets/_GrrScuAr.js.br +0 -0
  226. package/dist/public/assets/_Hqm5mf9S.js.br +0 -0
  227. package/dist/public/assets/_U8cSRlqn2.js.br +0 -0
  228. package/dist/public/assets/_aJR0pEfl.js.br +0 -0
  229. package/dist/public/assets/_aWRBkGVy.js.br +0 -0
  230. package/dist/public/assets/_cCTeyYAY.js.br +0 -0
  231. package/dist/public/assets/_i31Rddpf2.js.br +0 -0
  232. package/dist/public/assets/_ix4YrGtW2.js.br +0 -0
  233. package/dist/public/assets/_j4GDdAJs.js.br +0 -0
  234. package/dist/public/assets/_k2rzFYXw.js.br +0 -0
  235. package/dist/public/assets/_nNPOLNo7.js.br +0 -0
  236. package/dist/public/assets/_vfKZvCts.js.br +0 -0
  237. package/dist/public/assets/_wu7LU_F-.js.br +0 -0
  238. package/dist/public/assets/_x05B0wD3.js.br +0 -0
  239. package/dist/public/assets/app-page-DOL8nhko.css +0 -1
  240. package/dist/public/assets/app-page-DOL8nhko.css.br +0 -0
  241. package/dist/public/assets/diff-view-6DYaXCWP.css +0 -1
  242. package/dist/public/assets/diff-view-6DYaXCWP.css.br +0 -0
  243. package/dist/public/assets/new-hKsQDica.js +0 -1
  244. package/dist/public/assets/settings-hKsQDica.js +0 -1
  245. package/dist/public/assets/w-hKsQDica.js +0 -1
  246. package/dist/public/assets/w._-CyAQSfuD.js +0 -1
  247. package/dist/public/assets/w._-hKsQDica.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 tmux, a as ensureTmuxServer, at as DEFAULT_GITHUB_HOST, b as readHookPayload, c as killWorkspaceSessions, ct as toolById, d as newSessionArgs, dt as get, et as doctor, ft as workspacePath, g as sessionStates, gt as run, h as sendToSession, ht as git, i as disposeSessions, it as which, j as setSessionViewers, k as setAgentPhase, l as listSessions, lt as all, m as renameSession, mt as gh, n as clearTmuxStarted, nt as miseVersions, o as getSession, ot as TOOLS, p as panePids, pt as TMUX_SOCKET, q as disabledAgents, r as createSession, rt as setupPath, s as killSession, st as agentById, t as cleanEnv, tt as ghKnownHosts, u as markTmuxStarted, ut as db, v as tmuxWasStarted, vt as config, w as agentFamily, x as reportsWorking, y as AGENTS, z as pushPublicKey } from "./_BdPU13C_.js";
3
- import { $ as _dynamic_tag, A as btnLg, At as withPageAssets, B as _attr, C as toast_default, Ct as _subscribe, D as repoLabel, Dt as _try, E as parseRepoUrl, Et as _trailers, F as inputLg, G as _attr_or, I as metaTrunc, J as _attrs, K as _attr_select_value, L as phase, N as iconBtnRow, O as repoWebUrl$1, Ot as _var, P as iconBtnXs, Q as _content_resume, R as tone, S as workspaceTab, St as _set_serialize_reason, T as icon_base_default, Tt as _to_text, U as _attr_input_value, V as _attr_class, W as _attr_option_value, X as _await, Y as _attrs_partial, Z as _content, _t as _scope_with_id, a as rankRepos, at as _flush_head, b as sideNavOpen, bt as _serialize_guard, c as icon_refresh_default, ct as _hoist_read_error, d as sectionCount$1, dt as _if, ft as _peek_scope_id, gt as _scope_reason, ht as _scope_id, it as _existing_scope, j as btnSm, jt as writeScope, k as setPrimaryHost, kt as attrTag, l as iconBtn$2, lt as _html, mt as _resume_branch, n as findInput, nt as _el_resume, o as icon_search_default, ot as _for_of, pt as _resume, q as _attr_style, r as icon_sidebar_default, rt as _escape, s as icon_back_default, st as _hoist, t as findIconBtn, tt as _el_read_error, u as row, ut as _id, v as setTheme, vt as _script, w as icon_xmark_default, wt as _template, x as theme, xt as _serialize_if, y as setWorkspaceTab, yt as _sep, z as $global } from "./_CoU5siEE.js";
3
+ import { $ as _content_resume, A as setPrimaryHost, At as attrTag, B as $global, C as workspaceTab, Ct as _set_serialize_reason, D as parseRepoUrl, Dt as _trailers, E as icon_base_default, Et as _to_text, F as iconBtnXs, G as _attr_option_value, H as _attr_class, I as inputLg, J as _attr_style, K as _attr_or, L as metaTrunc, M as btnSm, Mt as writeScope, O as repoLabel, Ot as _try, P as iconBtnRow, Q as _content, R as phase, S as theme, St as _serialize_if, T as icon_xmark_default, Tt as _template, V as _attr, W as _attr_input_value, X as _attrs_partial, Y as _attrs, Z as _await, _t as _scope_reason, a as rankRepos, at as _existing_scope, b as setWorkspaceTab, bt as _sep, c as icon_refresh_default, ct as _hoist, d as sectionCount$1, dt as _id, et as _dynamic_tag, ft as _if, g as ignoredSsoOrgs, gt as _scope_id, ht as _resume_branch, it as _escape, j as btnLg, jt as withPageAssets, k as repoWebUrl$1, kt as _var, l as iconBtn$2, lt as _hoist_read_error, mt as _resume, n as findInput, nt as _el_read_error, o as icon_search_default, ot as _flush_head, pt as _peek_scope_id, q as _attr_select_value, r as icon_sidebar_default, rt as _el_resume, s as icon_back_default, st as _for_of, t as findIconBtn, u as row, ut as _html, vt as _scope_with_id, w as toast_default, wt as _subscribe, x as sideNavOpen, xt as _serialize_guard, y as setTheme, yt as _script, z as tone } from "./_BoHSyzGw.js";
4
4
  import fs from "node:fs";
5
5
  import { createServer } from "node:http";
6
6
  import path from "node:path";
@@ -1562,14 +1562,16 @@ var cachePath = (host) => path.join(config.dataDir, host === DEFAULT_HOST ? "rep
1562
1562
  */
1563
1563
  async function repoCatalog(refresh = false) {
1564
1564
  const hosts = configuredHosts();
1565
- const parts = await Promise.all(hosts.map((host) => catalog(host, refresh).catch(() => {
1565
+ const [parts, ssoParts] = await Promise.all([Promise.all(hosts.map((host) => catalog(host, refresh).catch(() => {
1566
1566
  if (host === DEFAULT_HOST && refresh) throw new Error(`gh repo listing failed`);
1567
1567
  return catalog.get(host) ?? null;
1568
- })));
1568
+ }))), Promise.all(hosts.map((host) => pendingSsoOrgs(host, refresh).catch(() => [])))]);
1569
1569
  const repos = parts.flatMap((c) => c?.repos ?? []);
1570
+ const sso = dedupeSso(ssoParts.flat());
1570
1571
  return {
1571
1572
  fetchedAt: Math.min(...parts.map((c) => c?.fetchedAt ?? Date.now())),
1572
- repos: repos.sort((a, b) => a.nameWithOwner.localeCompare(b.nameWithOwner))
1573
+ repos: repos.sort((a, b) => a.nameWithOwner.localeCompare(b.nameWithOwner)),
1574
+ ...sso.length ? { sso } : {}
1573
1575
  };
1574
1576
  }
1575
1577
  var catalog = swr(TTL_MS$3, fetchCatalog, readDiskCache);
@@ -1586,6 +1588,109 @@ function readDiskCache(host) {
1586
1588
  return;
1587
1589
  }
1588
1590
  }
1591
+ var LIST_FIELDS = "nameWithOwner,defaultBranchRef,isArchived,parent";
1592
+ var LIST_FIELDS_NO_PARENT = "nameWithOwner,defaultBranchRef,isArchived";
1593
+ /** Orgs that still need SAML SSO for this host's gh token. Memberships
1594
+ * list them even when unauthorized; probing `orgs/<login>` yields the
1595
+ * authorize URL via `X-GitHub-SSO`. URLs expire (~1h) — short TTL only. */
1596
+ var ssoCache = swr(6e4, (host) => probePendingSso(host));
1597
+ function pendingSsoOrgs(host, refresh = false) {
1598
+ return ssoCache(host, refresh);
1599
+ }
1600
+ async function probePendingSso(host) {
1601
+ const logins = (await gh([
1602
+ "api",
1603
+ "user/memberships/orgs",
1604
+ "--jq",
1605
+ ".[].organization.login"
1606
+ ], host).catch(() => "")).split("\n").filter(Boolean);
1607
+ return (await Promise.all(logins.map(async (org) => {
1608
+ const { out } = await ghCapture([
1609
+ "api",
1610
+ `orgs/${org}`,
1611
+ "--include"
1612
+ ], host);
1613
+ return parseSsoRequired(out, org, host);
1614
+ }))).filter((x) => !!x);
1615
+ }
1616
+ /** Run gh and keep stdout/stderr even when it exits non-zero — needed for
1617
+ * `gh api --include` SAML 403s that put `X-GitHub-SSO` on stdout. */
1618
+ async function ghCapture(args, host) {
1619
+ try {
1620
+ return {
1621
+ ok: true,
1622
+ out: await gh(args, host)
1623
+ };
1624
+ } catch (err) {
1625
+ const e = err;
1626
+ return {
1627
+ ok: false,
1628
+ out: [
1629
+ e.stdout,
1630
+ e.stderr,
1631
+ e.message
1632
+ ].filter(Boolean).join("\n")
1633
+ };
1634
+ }
1635
+ }
1636
+ /** Pull org + authorize URL from an `X-GitHub-SSO` header or error body. */
1637
+ function parseSsoRequired(text, fallbackOrg, host) {
1638
+ const header = /^x-github-sso:\s*required;\s*url=(\S+)/im.exec(text);
1639
+ const fromBody = /https:\/\/[^\s"'<>]+\/orgs\/[^/\s"'<>]+\/sso\?authorization_request=[^\s"'<>]+/i.exec(text)?.[0];
1640
+ const raw = header?.[1] || fromBody;
1641
+ if (!raw) return null;
1642
+ const authorizeUrl = raw.replace(/[.,);\]}>]+$/g, "");
1643
+ const org = /\/orgs\/([^/]+)\/sso/i.exec(authorizeUrl)?.[1] || fallbackOrg;
1644
+ if (!org) return null;
1645
+ return {
1646
+ org,
1647
+ host,
1648
+ authorizeUrl
1649
+ };
1650
+ }
1651
+ function dedupeSso(items) {
1652
+ const byOrg = /* @__PURE__ */ new Map();
1653
+ for (const item of items) byOrg.set(item.org, item);
1654
+ return [...byOrg.values()].sort((a, b) => a.org.localeCompare(b.org));
1655
+ }
1656
+ /** One owner's repos. Prefer including `parent`; when a fork's upstream is
1657
+ * behind org SAML that the OAuth token has not authorized, GraphQL fails
1658
+ * the *whole* list — retry without `parent` rather than treating the
1659
+ * owner as unlistable (which would fail an explicit catalog refresh). */
1660
+ async function listOwnerRepos(host, owner) {
1661
+ const args = (fields) => [
1662
+ "repo",
1663
+ "list",
1664
+ ...owner ? [owner] : [],
1665
+ "--limit",
1666
+ "500",
1667
+ "--json",
1668
+ fields
1669
+ ];
1670
+ try {
1671
+ const out = await gh(args(LIST_FIELDS), host);
1672
+ return {
1673
+ repos: JSON.parse(out),
1674
+ parents: true,
1675
+ partial: false
1676
+ };
1677
+ } catch (err) {
1678
+ const msg = err instanceof Error ? err.message : String(err);
1679
+ if (/SAML enforcement|protected by organization/i.test(msg)) try {
1680
+ const out = await gh(args(LIST_FIELDS_NO_PARENT), host);
1681
+ return {
1682
+ repos: JSON.parse(out),
1683
+ parents: false,
1684
+ partial: false
1685
+ };
1686
+ } catch {}
1687
+ return {
1688
+ repos: [],
1689
+ parents: true,
1690
+ partial: true
1691
+ };
1692
+ }
1693
+ }
1589
1694
  async function fetchCatalog(host) {
1590
1695
  let partial = false;
1591
1696
  const orgs = (await gh([
@@ -1597,25 +1702,18 @@ async function fetchCatalog(host) {
1597
1702
  partial = true;
1598
1703
  return "";
1599
1704
  })).split("\n").filter(Boolean);
1600
- const lists = await Promise.all([void 0, ...orgs].map((owner) => gh([
1601
- "repo",
1602
- "list",
1603
- ...owner ? [owner] : [],
1604
- "--limit",
1605
- "500",
1606
- "--json",
1607
- "nameWithOwner,defaultBranchRef,isArchived,parent"
1608
- ], host).catch(() => {
1609
- partial = true;
1610
- return "[]";
1611
- })));
1705
+ const lists = await Promise.all([void 0, ...orgs].map(async (owner) => {
1706
+ const listed = await listOwnerRepos(host, owner);
1707
+ if (listed.partial) partial = true;
1708
+ return listed;
1709
+ }));
1612
1710
  const byName = /* @__PURE__ */ new Map();
1613
- for (const out of lists) for (const r of JSON.parse(out)) byName.set(r.nameWithOwner, {
1711
+ for (const { repos: rows, parents } of lists) for (const r of rows) byName.set(r.nameWithOwner, {
1614
1712
  nameWithOwner: joinRepo(host, r.nameWithOwner),
1615
1713
  host,
1616
1714
  defaultBranch: r.defaultBranchRef?.name || "main",
1617
1715
  isArchived: !!r.isArchived,
1618
- parent: r.parent ? joinRepo(host, `${r.parent.owner.login}/${r.parent.name}`) : null
1716
+ parent: !parents ? void 0 : r.parent ? joinRepo(host, `${r.parent.owner.login}/${r.parent.name}`) : null
1619
1717
  });
1620
1718
  const repos = [...byName.values()].sort((a, b) => a.nameWithOwner.localeCompare(b.nameWithOwner));
1621
1719
  const catalog = {
@@ -2287,12 +2385,14 @@ async function revParse(cwd, ref) {
2287
2385
  * Fresh branch → cut from `origin/<base>` after fetch (ensureBare).
2288
2386
  * Existing `origin/<ws-branch>` (re-add, open PR, prior push) → restore
2289
2387
  * that branch then rebase onto `origin/<base>` so the checkout is not
2290
- * stuck on an old main tip. Leftover local branches with no worktree are
2291
- * deleted so `worktree add -b` can recreate them.
2388
+ * stuck on an old main tip. Empty upstream (GitHub "no commits yet") →
2389
+ * `worktree add --orphan` so the first real commit can be the root.
2390
+ * Leftover local branches with no worktree are deleted so
2391
+ * `worktree add -b` can recreate them.
2292
2392
  */
2293
2393
  async function addWorkspaceWorktree(bare, dest, branch, base) {
2294
2394
  const baseRef = `origin/${base}`;
2295
- if (!await revParse(bare, baseRef)) throw new Error(`missing ${baseRef} after fetch`);
2395
+ const baseOid = await revParse(bare, baseRef);
2296
2396
  await git(["worktree", "prune"], bare).catch(() => {});
2297
2397
  if (await revParse(bare, `refs/heads/${branch}`)) {
2298
2398
  if ((await git([
@@ -2306,9 +2406,21 @@ async function addWorkspaceWorktree(bare, dest, branch, base) {
2306
2406
  branch
2307
2407
  ], bare);
2308
2408
  }
2309
- const remoteWs = await revParse(bare, `refs/remotes/origin/${branch}`);
2310
2409
  const label = path.basename(dest);
2311
- if (remoteWs) {
2410
+ if (!baseOid) {
2411
+ if (await remoteHasHeads$1(bare)) throw new Error(`missing ${baseRef} after fetch`);
2412
+ progress$1(`Adding empty worktree ${label}/…`);
2413
+ await git([
2414
+ "worktree",
2415
+ "add",
2416
+ "--orphan",
2417
+ "-b",
2418
+ branch,
2419
+ dest
2420
+ ], bare);
2421
+ return;
2422
+ }
2423
+ if (await revParse(bare, `refs/remotes/origin/${branch}`)) {
2312
2424
  progress$1(`Restoring ${label}/ from origin/${branch}…`);
2313
2425
  await git([
2314
2426
  "worktree",
@@ -2322,7 +2434,7 @@ async function addWorkspaceWorktree(bare, dest, branch, base) {
2322
2434
  "merge-base",
2323
2435
  branch,
2324
2436
  baseRef
2325
- ], dest) !== await git(["rev-parse", baseRef], dest)) {
2437
+ ], dest) !== baseOid) {
2326
2438
  progress$1(`Rebasing ${label}/ onto ${base}…`);
2327
2439
  try {
2328
2440
  await git(["rebase", baseRef], dest);
@@ -2344,6 +2456,15 @@ async function addWorkspaceWorktree(bare, dest, branch, base) {
2344
2456
  ], bare);
2345
2457
  }
2346
2458
  }
2459
+ /** Any `refs/remotes/origin/<branch>` tip — not `origin/HEAD`, which can
2460
+ * exist as a symref even when the pointed-to branch has no commits yet. */
2461
+ async function remoteHasHeads$1(bare) {
2462
+ return (await git([
2463
+ "for-each-ref",
2464
+ "--format=%(refname)",
2465
+ "refs/remotes/origin/"
2466
+ ], bare).catch(() => "")).split("\n").some((ref) => ref.startsWith("refs/remotes/origin/") && ref !== "refs/remotes/origin/HEAD");
2467
+ }
2347
2468
  /** `ref` is this workspace branch or a `-topic` lane of it. Another
2348
2469
  * workspace's branch can extend this prefix, so callers must also
2349
2470
  * subtract `otherWorkspaceBranches`. */
@@ -2660,6 +2781,35 @@ async function authGithub(host, { interactive = false, ...opts } = {}) {
2660
2781
  }
2661
2782
  });
2662
2783
  }
2784
+ /** Re-authorize an existing gh login (device flow). Needed after an org
2785
+ * enables SAML: visiting the X-GitHub-SSO link only signs the browser into
2786
+ * the IdP, while `auth refresh` re-issues the OAuth token with org SSO. */
2787
+ async function refreshGithub(host, { interactive = false, ...opts } = {}) {
2788
+ if (!which("gh")) throw new Error("gh is not installed");
2789
+ const args = [
2790
+ "auth",
2791
+ "refresh",
2792
+ "--hostname",
2793
+ host
2794
+ ];
2795
+ const env = {
2796
+ ...opts.env,
2797
+ BROWSER: "true"
2798
+ };
2799
+ if (interactive) return runStreaming("gh", args, {
2800
+ ...opts,
2801
+ env,
2802
+ interactive: true
2803
+ });
2804
+ return runStreaming("gh", args, {
2805
+ ...opts,
2806
+ input: "\n",
2807
+ env: {
2808
+ ...env,
2809
+ GH_PROMPT_DISABLED: "1"
2810
+ }
2811
+ });
2812
+ }
2663
2813
  /** Sign out of a GitHub host (drops gh's token; the host stays listed). */
2664
2814
  async function logoutGithub(host, opts = {}) {
2665
2815
  if (!which("gh")) throw new Error("gh is not installed");
@@ -2735,8 +2885,20 @@ async function getSetup(refresh = false) {
2735
2885
  enabled: !off.has(i.id)
2736
2886
  }))
2737
2887
  }));
2888
+ const github = await Promise.all(d.github.map(async (h) => {
2889
+ if (!h.authed) return h;
2890
+ const sso = await pendingSsoOrgs(h.host, refresh).catch(() => []);
2891
+ return sso.length ? {
2892
+ ...h,
2893
+ sso
2894
+ } : {
2895
+ ...h,
2896
+ sso: void 0
2897
+ };
2898
+ }));
2738
2899
  return {
2739
2900
  ...d,
2901
+ github,
2740
2902
  tools,
2741
2903
  agents
2742
2904
  };
@@ -2794,7 +2956,7 @@ function withLock(key, fn) {
2794
2956
  */
2795
2957
  async function runSetupAction(id, action, opts = {}) {
2796
2958
  const log = (line) => progress$1(line);
2797
- const lockKey = action === "auth" || action === "logout" ? `auth:${id}` : "mise";
2959
+ const lockKey = action === "auth" || action === "auth-refresh" || action === "logout" ? `auth:${id}` : "mise";
2798
2960
  await withProgressOp(`setup:${id}`, () => withLock(lockKey, async () => {
2799
2961
  if (action === "auth") {
2800
2962
  await authGithub(id, { log });
@@ -2802,6 +2964,12 @@ async function runSetupAction(id, action, opts = {}) {
2802
2964
  await ensureGitCredentials(id);
2803
2965
  return;
2804
2966
  }
2967
+ if (action === "auth-refresh") {
2968
+ await refreshGithub(id, { log });
2969
+ forgetToken(id);
2970
+ await ensureGitCredentials(id);
2971
+ return;
2972
+ }
2805
2973
  if (action === "logout") {
2806
2974
  await logoutGithub(id, { log });
2807
2975
  forgetToken(id);
@@ -3494,26 +3662,26 @@ function applyInstance(inst) {
3494
3662
  }
3495
3663
  //#endregion
3496
3664
  //#region src/tags/settings-page.css.ts
3497
- var content$2 = "_ca _bB _bC";
3498
- var agentGrid = "_ce _bm";
3499
- var toolGrid = "_co _bm";
3665
+ var content$2 = "_ca _bk _bl";
3666
+ var agentGrid = "_ce _bv";
3667
+ var toolGrid = "_co _bv";
3500
3668
  //#endregion
3501
3669
  //#region src/tags/page-head.marko
3502
3670
  var page_head_default = _template("q", (input) => {
3503
3671
  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);
3504
3672
  const $scope0_id = _scope_id();
3505
- _html(`<header${_attr_class("_bD")}>`);
3673
+ _html(`<header${_attr_class("_bm")}>`);
3506
3674
  _if(() => {
3507
3675
  if (input.backHref) {
3508
3676
  const $scope1_id = _scope_id();
3509
- _html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_cP"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
3677
+ _html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_cR"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
3510
3678
  icon_back_default({ size: 16 });
3511
3679
  _html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
3512
3680
  _serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
3513
3681
  return 0;
3514
3682
  } else if (input.onBack) {
3515
3683
  const $scope2_id = _scope_id();
3516
- _html(`<button${_attr_class([iconBtnRow, "_cP"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
3684
+ _html(`<button${_attr_class([iconBtnRow, "_cR"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
3517
3685
  icon_back_default({ size: 16 });
3518
3686
  _html(`</button>${_el_resume($scope2_id, "a")}`);
3519
3687
  _script($scope2_id, "q0");
@@ -3521,11 +3689,11 @@ var page_head_default = _template("q", (input) => {
3521
3689
  return 1;
3522
3690
  }
3523
3691
  }, $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);
3524
- _html(`<div${_attr_class("_bF")}><h1${_attr("id", input.titleId)}${_attr_class("_bE")}>${_escape(input.title)}${_el_resume($scope0_id, "e", _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
3692
+ _html(`<div${_attr_class("_bo")}><h1${_attr("id", input.titleId)}${_attr_class("_bn")}>${_escape(input.title)}${_el_resume($scope0_id, "e", _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
3525
3693
  _if(() => {
3526
3694
  if (input.meta) {
3527
3695
  const $scope3_id = _scope_id();
3528
- _html(`<p${_attr_class("_bG")}>`);
3696
+ _html(`<p${_attr_class("_bp")}>`);
3529
3697
  _dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
3530
3698
  _html("</p>");
3531
3699
  $si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
@@ -3536,7 +3704,7 @@ var page_head_default = _template("q", (input) => {
3536
3704
  _if(() => {
3537
3705
  if (input.actions) {
3538
3706
  const $scope4_id = _scope_id();
3539
- _html(`<div${_attr_class("_bH")}>`);
3707
+ _html(`<div${_attr_class("_bq")}>`);
3540
3708
  _dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
3541
3709
  _html("</div>");
3542
3710
  $si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
@@ -3554,7 +3722,7 @@ var page_head_default = _template("q", (input) => {
3554
3722
  });
3555
3723
  //#endregion
3556
3724
  //#region src/tags/icons/icon-agent.marko
3557
- var icon_agent_default = _template("E", (input) => {
3725
+ var icon_agent_default = _template("F", (input) => {
3558
3726
  const $scope0_reason = _scope_reason(), $sg__input_agent = _serialize_guard($scope0_reason, 2), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0), $si__input_size__OR__input_class = _serialize_if($scope0_reason, 0), $si__input_size__OR__input_agent__OR__input_class = _serialize_if($scope0_reason, 1), $si__input_agent = _serialize_if($scope0_reason, 2);
3559
3727
  const $scope0_id = _scope_id();
3560
3728
  const $badge__closures = /* @__PURE__ */ new Set();
@@ -3604,7 +3772,7 @@ var icon_agent_default = _template("E", (input) => {
3604
3772
  n: $badge__closures
3605
3773
  });
3606
3774
  });
3607
- var usageNote = "_eR _S";
3775
+ var usageNote = "_e5 _S";
3608
3776
  //#endregion
3609
3777
  //#region src/tags/usage-meters.marko
3610
3778
  function duration(ms) {
@@ -3624,15 +3792,15 @@ function resetLabel(iso, stale) {
3624
3792
  if (ms <= 0) return stale ? null : "now";
3625
3793
  return duration(ms);
3626
3794
  }
3627
- var usage_meters_default = _template("B", (input) => {
3795
+ var usage_meters_default = _template("C", (input) => {
3628
3796
  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);
3629
3797
  const $scope0_id = _scope_id();
3630
3798
  const agent = input.agent;
3631
- _html(`<div${_attr_class(["_eL", { ["_eM"]: input.hideName }])}><div${_attr_class("_eN")}>`);
3799
+ _html(`<div${_attr_class(["_eZ", { ["_e0"]: input.hideName }])}><div${_attr_class("_e1")}>`);
3632
3800
  _if(() => {
3633
3801
  if (!input.hideName) {
3634
3802
  const $scope1_id = _scope_id();
3635
- _html(`<strong${_attr_class("_e6")}>${_escape(agent.agent)}${_el_resume($scope1_id, "b", $sg__input_agent)}</strong>`);
3803
+ _html(`<strong${_attr_class("_fj")}>${_escape(agent.agent)}${_el_resume($scope1_id, "b", $sg__input_agent)}</strong>`);
3636
3804
  $si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
3637
3805
  return 0;
3638
3806
  }
@@ -3640,7 +3808,7 @@ var usage_meters_default = _template("B", (input) => {
3640
3808
  _if(() => {
3641
3809
  if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
3642
3810
  const $scope2_id = _scope_id();
3643
- _html(`<span${_attr_class("_eO")}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope2_id, "b", $sg__input_agent)}</span>`);
3811
+ _html(`<span${_attr_class("_e2")}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope2_id, "b", $sg__input_agent)}</span>`);
3644
3812
  $si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
3645
3813
  return 0;
3646
3814
  }
@@ -3648,19 +3816,19 @@ var usage_meters_default = _template("B", (input) => {
3648
3816
  _if(() => {
3649
3817
  if (agent.stale_seconds != null) {
3650
3818
  const $scope3_id = _scope_id();
3651
- _html(`<span${_attr_class("_eP")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>⚠ ${_sep($sg__input_agent)}${_escape(duration(agent.stale_seconds * 1e3))}${_el_resume($scope3_id, "b", $sg__input_agent)} old</span>${_el_resume($scope3_id, "a", $sg__input_agent)}`);
3819
+ _html(`<span${_attr_class("_e3")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>⚠ ${_sep($sg__input_agent)}${_escape(duration(agent.stale_seconds * 1e3))}${_el_resume($scope3_id, "b", $sg__input_agent)} old</span>${_el_resume($scope3_id, "a", $sg__input_agent)}`);
3652
3820
  $si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
3653
3821
  return 0;
3654
3822
  }
3655
3823
  }, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
3656
- _html(`</div><div${_attr_class(["_eQ", { ["_e7"]: agent.stale_seconds != null }])}>`);
3824
+ _html(`</div><div${_attr_class(["_e4", { ["_fk"]: agent.stale_seconds != null }])}>`);
3657
3825
  _for_of(agent.windows || [], (win) => {
3658
3826
  const $scope4_id = _scope_id();
3659
3827
  const pct = pctText$1(win.used_percent);
3660
3828
  const label = resetLabel(win.resets_at, agent.stale_seconds != null);
3661
- const fillClass = win.used_percent >= 90 ? "_eZ" : win.used_percent >= 70 ? "_eY" : win.used_percent >= 40 ? "_eX" : "_eW";
3662
- const pctClass = win.used_percent >= 90 ? "_e4" : win.used_percent >= 70 ? "_e3" : win.used_percent >= 40 ? "_e2" : "_e1";
3663
- _html(`<div${_attr_class("_eS")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_eT")}>${_escape(win.window)}${_el_resume($scope4_id, "c", $sg__input_agent)}</span><span${_attr_class("_eU")}><span${_attr_class(["_eV", 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(["_e0", pctClass])}>${_escape(pct)}${_el_resume($scope4_id, "g", $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_e5")}>${label ? `↻ ${_escape(`${_to_text(label)}`)}` : ""}${_el_resume($scope4_id, "i", $sg__input_agent)}</span></div>${_el_resume($scope4_id, "a", $sg__input_agent)}`);
3829
+ const fillClass = win.used_percent >= 90 ? "_fc" : win.used_percent >= 70 ? "_fb" : win.used_percent >= 40 ? "_fa" : "_e_";
3830
+ const pctClass = win.used_percent >= 90 ? "_fh" : win.used_percent >= 70 ? "_fg" : win.used_percent >= 40 ? "_ff" : "_fe";
3831
+ _html(`<div${_attr_class("_e6")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_e7")}>${_escape(win.window)}${_el_resume($scope4_id, "c", $sg__input_agent)}</span><span${_attr_class("_e8")}><span${_attr_class(["_e9", 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(["_fd", pctClass])}>${_escape(pct)}${_el_resume($scope4_id, "g", $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_fi")}>${label ? `↻ ${_escape(`${_to_text(label)}`)}` : ""}${_el_resume($scope4_id, "i", $sg__input_agent)}</span></div>${_el_resume($scope4_id, "a", $sg__input_agent)}`);
3664
3832
  $si__input_agent && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
3665
3833
  }, "window", $scope0_id, "g", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
3666
3834
  _if(() => {
@@ -3680,8 +3848,136 @@ var usage_meters_default = _template("B", (input) => {
3680
3848
  });
3681
3849
  });
3682
3850
  //#endregion
3851
+ //#region src/tags/sso-auth.marko
3852
+ var api$7;
3853
+ var watchProgress$2;
3854
+ var sso_auth_default = _template("y", (input) => {
3855
+ const $scope0_reason = _scope_reason(), $sg__input_items = _serialize_guard($scope0_reason, 1), $sg__input_skipped = _serialize_guard($scope0_reason, 0), $si__input_skipped = _serialize_if($scope0_reason, 0);
3856
+ const $scope0_id = _scope_id();
3857
+ const skipped$1 = input.skipped || [];
3858
+ const host = input.items[0]?.host || "github.com";
3859
+ let localBusy = false;
3860
+ let localCode = null;
3861
+ let localError = null;
3862
+ const busy = input.busy || localBusy;
3863
+ const authCode$2 = input.authCode || localCode;
3864
+ const authorize = _resume(async () => {
3865
+ if (busy) return;
3866
+ localError = null;
3867
+ if (input.onAuthorize) {
3868
+ await input.onAuthorize();
3869
+ return;
3870
+ }
3871
+ localBusy = true;
3872
+ localCode = null;
3873
+ const watcher = watchProgress$2(`setup:${host}`, (line) => {
3874
+ const code = /one-time code:\s*([A-Z0-9]{4}-[A-Z0-9]{4})/i.exec(line)?.[1];
3875
+ if (code) localCode = code;
3876
+ });
3877
+ await watcher.ready;
3878
+ try {
3879
+ await api$7(`/api/setup/${encodeURIComponent(host)}`, {
3880
+ method: "POST",
3881
+ headers: { "content-type": "application/json" },
3882
+ body: JSON.stringify({ action: "auth-refresh" })
3883
+ });
3884
+ await input.onDone?.();
3885
+ } catch (err) {
3886
+ localError = String(err.message || err);
3887
+ } finally {
3888
+ watcher.stop();
3889
+ localBusy = false;
3890
+ localCode = null;
3891
+ }
3892
+ }, "y0", $scope0_id);
3893
+ _html(`<div${_attr_class("_eO")}><p${_attr_class("_eY")}>GitHub CLI needs org SSO for ${_sep($sg__input_items)}${_escape(input.items.map((s) => s.org).join(", "))}${_el_resume($scope0_id, "c", $sg__input_items)}.</p><ul${_attr_class("_eP")}>`);
3894
+ _for_of(input.items, (s) => {
3895
+ const $scope1_id = _scope_id();
3896
+ _html(`<li${_attr_class("_eQ")}>${_escape(s.org)}${_el_resume($scope1_id, "b", $sg__input_items)}<button type=button${_attr_class("_eR")}${_attr("title", `Skip ${s.org}`)}${_attr("aria-label", `Skip ${s.org}`)}${_attr("disabled", busy)}>`);
3897
+ icon_xmark_default({ size: 11 });
3898
+ _html(`</button>${_el_resume($scope1_id, "c")}</li>`);
3899
+ _script($scope1_id, "y1");
3900
+ writeScope($scope1_id, {
3901
+ g: s?.org,
3902
+ _: _scope_with_id($scope0_id)
3903
+ });
3904
+ }, "org", $scope0_id, "d", 1, $sg__input_items, $sg__input_items, "</ul>", 1);
3905
+ _html(`<div${_attr_class("_eS")}>`);
3906
+ _if(() => {
3907
+ if (busy && authCode$2) {
3908
+ const $scope4_id = _scope_id();
3909
+ _html(`<span${_attr_class("_eT")}><span${_attr_class("_F")}></span> Enter code <strong${_attr_class("_eU")}>${_escape(authCode$2)}${_el_resume($scope4_id, "d")}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_eV")}>${_escape(host)}${_el_resume($scope4_id, "f", _serialize_guard($scope0_reason, 2))}/login/device</a>${_el_resume($scope4_id, "e")}</span>`);
3910
+ _script($scope4_id, "y2");
3911
+ writeScope($scope4_id, {});
3912
+ return 0;
3913
+ } else if (busy) {
3914
+ const $scope7_id = _scope_id();
3915
+ _html(`<span${_attr_class("_eT")}><span${_attr_class("_F")}></span>Starting GitHub re-authorization…</span>`);
3916
+ writeScope($scope7_id, {});
3917
+ return 1;
3918
+ } else {
3919
+ const $scope6_id = _scope_id();
3920
+ _html(`<button type=button${_attr_class(btnSm)} title="Re-authorize GitHub CLI (same device flow as Sign in)">Authorize SSO</button>${_el_resume($scope6_id, "a")}`);
3921
+ _script($scope6_id, "y3");
3922
+ writeScope($scope6_id, {});
3923
+ return 2;
3924
+ }
3925
+ }, $scope0_id, "e", 1, 1, 1, "</div>", 1);
3926
+ _if(() => {
3927
+ if (localError) {
3928
+ const $scope5_id = _scope_id();
3929
+ _html(`<p${_attr_class("_eY")}>${_escape(localError)}${_el_resume($scope5_id, "b")}</p>`);
3930
+ writeScope($scope5_id, {});
3931
+ return 0;
3932
+ }
3933
+ }, $scope0_id, "f", 1, 1, 1, 0, 1);
3934
+ _if(() => {
3935
+ if (skipped$1.length) {
3936
+ const $scope2_id = _scope_id();
3937
+ _html(`<p${_attr_class("_eW")}>Skipped `);
3938
+ _for_of(skipped$1, (s, i) => {
3939
+ const $scope3_id = _scope_id();
3940
+ _if(() => {
3941
+ if (i > 0) {
3942
+ const $scope8_id = _scope_id();
3943
+ _html(", ");
3944
+ $si__input_skipped && writeScope($scope8_id, {});
3945
+ return 0;
3946
+ }
3947
+ }, $scope3_id, "a", $sg__input_skipped, $sg__input_skipped, $sg__input_skipped);
3948
+ _html(`${_sep($sg__input_skipped)}${_escape(s.org)}${_el_resume($scope3_id, "b", $sg__input_skipped)}<button type=button${_attr_class("_eX")}${_attr("title", `Show ${s.org} again`)}> undo</button>${_el_resume($scope3_id, "c")}`);
3949
+ _script($scope3_id, "y4");
3950
+ writeScope($scope3_id, {
3951
+ f: s?.org,
3952
+ _: _scope_with_id($scope2_id)
3953
+ });
3954
+ }, "org", $scope2_id, "b", $sg__input_skipped, $sg__input_skipped, $sg__input_skipped);
3955
+ _html("</p>");
3956
+ writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
3957
+ return 0;
3958
+ }
3959
+ }, $scope0_id, "g", $sg__input_skipped, $sg__input_skipped, 1, 0, 1);
3960
+ _html("</div>");
3961
+ writeScope($scope0_id, {
3962
+ n: input.busy,
3963
+ o: input.authCode,
3964
+ p: input.onAuthorize,
3965
+ q: input.onDone,
3966
+ r: input.onChange,
3967
+ s: $si__input_skipped && skipped$1,
3968
+ u: host,
3969
+ v: _serialize_if($scope0_reason, 3) && localBusy,
3970
+ x: _serialize_if($scope0_reason, 4) && localCode,
3971
+ z: localError,
3972
+ a0: busy,
3973
+ a2: authCode$2,
3974
+ a4: authorize
3975
+ });
3976
+ _resume_branch($scope0_id);
3977
+ });
3978
+ //#endregion
3683
3979
  //#region src/tags/icons/icon-plus.marko
3684
- var icon_plus_default = _template("R", (input) => {
3980
+ var icon_plus_default = _template("S", (input) => {
3685
3981
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
3686
3982
  const $scope0_id = _scope_id();
3687
3983
  _set_serialize_reason({
@@ -3719,7 +4015,7 @@ var modal_view_default = _template("o", (input) => {
3719
4015
  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;
3720
4016
  const dismissable = input.dismissable !== false;
3721
4017
  let open = input.open;
3722
- _html(`<dialog${_attr_class(["_g2", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
4018
+ _html(`<dialog${_attr_class(["_hu", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
3723
4019
  ...htmlInput,
3724
4020
  open: null
3725
4021
  }, {
@@ -3729,20 +4025,20 @@ var modal_view_default = _template("o", (input) => {
3729
4025
  closedby: 1,
3730
4026
  "on-cancel": 1,
3731
4027
  "on-close": 1
3732
- }, "a", $scope0_id, "dialog")}><div${_attr_class("_g3")}>`);
4028
+ }, "a", $scope0_id, "dialog")}><div${_attr_class("_hv")}>`);
3733
4029
  _dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
3734
4030
  _html("</div>");
3735
4031
  _if(() => {
3736
4032
  if (footer) {
3737
4033
  const $scope1_id = _scope_id();
3738
- _html(`<form method=dialog${_attr_class("_g4")}>`);
4034
+ _html(`<form method=dialog${_attr_class("_hw")}>`);
3739
4035
  _dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
3740
4036
  _html("</form>");
3741
4037
  $si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
3742
4038
  return 0;
3743
4039
  } else if (input.openChange) {
3744
4040
  const $scope2_id = _scope_id();
3745
- _html(`<form method=dialog${_attr_class("_g4")}>`);
4041
+ _html(`<form method=dialog${_attr_class("_hw")}>`);
3746
4042
  dialog_close_default({
3747
4043
  class: ["_o", "_p"],
3748
4044
  content: _content("o0", () => {
@@ -3801,7 +4097,7 @@ var prompt_dialog_default = _template("r", (input) => {
3801
4097
  const $childScope = _peek_scope_id();
3802
4098
  modal_view_default({
3803
4099
  label: input.label,
3804
- class: "_eJ",
4100
+ class: "_eM",
3805
4101
  open: input.open,
3806
4102
  openChange: input.openChange,
3807
4103
  "aria-labelledby": titleId,
@@ -3824,7 +4120,7 @@ var prompt_dialog_default = _template("r", (input) => {
3824
4120
  content: _content("r6", () => {
3825
4121
  _scope_reason();
3826
4122
  const $scope2_id = _scope_id();
3827
- _html(`<h2${_attr_class("_eK")}${_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) => {
4123
+ _html(`<h2${_attr_class("_eN")}${_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) => {
3828
4124
  value = _new_value;
3829
4125
  }, "r0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
3830
4126
  _script($scope2_id, "r4");
@@ -3865,7 +4161,7 @@ function familyOf(usageAgent, families) {
3865
4161
  var lastSetup = null;
3866
4162
  var lastUsage = null;
3867
4163
  var settings_page_default = _template("u", (input) => {
3868
- const $scope0_reason = _scope_reason(), $sg__input_backHref__OR__input_onExit = _serialize_guard($scope0_reason, 1), $sg__input_agents = _serialize_guard($scope0_reason, 4), $sg__input_instance_accent = _serialize_guard($scope0_reason, 5), $si__input_instance__OR__input_instanceChange = _serialize_if($scope0_reason, 0), $si__input_preferred = _serialize_if($scope0_reason, 2);
4164
+ 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);
3869
4165
  const $scope0_id = _scope_id();
3870
4166
  const $setup_missing__closures = /* @__PURE__ */ new Set();
3871
4167
  const $setup2__closures = /* @__PURE__ */ new Set();
@@ -3878,6 +4174,8 @@ var settings_page_default = _template("u", (input) => {
3878
4174
  const $accountsFor2__closures = /* @__PURE__ */ new Set();
3879
4175
  const $authCodes__closures = /* @__PURE__ */ new Set();
3880
4176
  const $confirmingRemove__closures = /* @__PURE__ */ new Set();
4177
+ const $refresh2__closures = /* @__PURE__ */ new Set();
4178
+ const $run2__closures = /* @__PURE__ */ new Set();
3881
4179
  const $self_install__closures = /* @__PURE__ */ new Set();
3882
4180
  const $hits__closures = /* @__PURE__ */ new Set();
3883
4181
  const $query__closures = /* @__PURE__ */ new Set();
@@ -4132,9 +4430,9 @@ var settings_page_default = _template("u", (input) => {
4132
4430
  const appearanceId = _id();
4133
4431
  const githubId = _id();
4134
4432
  const machineId = _id();
4135
- _html(`<div${_attr_class("_bz")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bA")}><div${_attr_class(content$2)}>`);
4433
+ _html(`<div${_attr_class("_bi")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bj")}><div${_attr_class(content$2)}>`);
4136
4434
  _set_serialize_reason({
4137
- 0: _serialize_guard($scope0_reason, 3),
4435
+ 0: _serialize_guard($scope0_reason, 4),
4138
4436
  1: $sg__input_backHref__OR__input_onExit,
4139
4437
  2: $sg__input_backHref__OR__input_onExit,
4140
4438
  3: $sg__input_backHref__OR__input_onExit
@@ -4145,19 +4443,19 @@ var settings_page_default = _template("u", (input) => {
4145
4443
  titleId,
4146
4444
  backHref: input.backHref,
4147
4445
  onBack: input.onExit && _resume(() => input.onExit?.(), "u24", $scope0_id),
4148
- meta: attrTag({ content: _content_resume("u29", () => {
4446
+ meta: attrTag({ content: _content_resume("u32", () => {
4149
4447
  _scope_reason();
4150
4448
  const $scope5_id = _scope_id();
4151
4449
  _if(() => {
4152
4450
  if (!setup) {
4153
- const $scope50_id = _scope_id();
4451
+ const $scope51_id = _scope_id();
4154
4452
  _html("Checking this machine…");
4155
- writeScope($scope50_id, {});
4453
+ writeScope($scope51_id, {});
4156
4454
  return 0;
4157
4455
  } else if (setup.ready) {
4158
- const $scope51_id = _scope_id();
4456
+ const $scope52_id = _scope_id();
4159
4457
  _html(`<span${_attr_class("_cc")}>Ready</span>. Tools, GitHub, and an agent are all in place.`);
4160
- writeScope($scope51_id, {});
4458
+ writeScope($scope52_id, {});
4161
4459
  return 1;
4162
4460
  } else {
4163
4461
  const $scope6_id = _scope_id();
@@ -4169,7 +4467,7 @@ var settings_page_default = _template("u", (input) => {
4169
4467
  _subscribe($setup2__closures, writeScope($scope5_id, { _: _scope_with_id($scope0_id) }));
4170
4468
  _resume_branch($scope5_id);
4171
4469
  }, $scope0_id) }),
4172
- actions: attrTag({ content: _content_resume("u30", () => {
4470
+ actions: attrTag({ content: _content_resume("u33", () => {
4173
4471
  _scope_reason();
4174
4472
  const $scope10_id = _scope_id();
4175
4473
  _html(`<button${_attr_class(iconBtnRow)} title="Re-check this machine" aria-label="Re-check this machine"${_attr("disabled", refreshing)}>`);
@@ -4180,7 +4478,7 @@ var settings_page_default = _template("u", (input) => {
4180
4478
  class: refreshing && "_E"
4181
4479
  });
4182
4480
  _html(`</button>${_el_resume($scope10_id, "a")}`);
4183
- _script($scope10_id, "u28");
4481
+ _script($scope10_id, "u31");
4184
4482
  _subscribe($refreshing__closures, writeScope($scope10_id, {
4185
4483
  _: _scope_with_id($scope0_id),
4186
4484
  b: _existing_scope($childScope)
@@ -4196,7 +4494,7 @@ var settings_page_default = _template("u", (input) => {
4196
4494
  onDismiss: _resume(function() {
4197
4495
  error = null;
4198
4496
  }, "u25", $scope8_id),
4199
- content: _content_resume("u31", () => {
4497
+ content: _content_resume("u34", () => {
4200
4498
  _scope_reason();
4201
4499
  const $scope9_id = _scope_id();
4202
4500
  _html(`${_escape(error)}${_el_resume($scope9_id, "a")}`);
@@ -4210,44 +4508,44 @@ var settings_page_default = _template("u", (input) => {
4210
4508
  }, $scope0_id, "e", 1, 1, 1, 0, 1);
4211
4509
  _if(() => {
4212
4510
  if (selfUpdatePending || selfUpdating) {
4213
- const $scope36_id = _scope_id();
4214
- _html(`<div${_attr_class("_cF")} role=status><div${_attr_class("_cG")}>`);
4511
+ const $scope37_id = _scope_id();
4512
+ _html(`<div${_attr_class("_cH")} role=status><div${_attr_class("_cI")}>`);
4215
4513
  _if(() => {
4216
4514
  if (selfUpdating) {
4217
- const $scope52_id = _scope_id();
4218
- _html(`<span${_attr_class("_cH")}><span${_attr_class("_F")}></span> Updating work…</span><span${_attr_class("_cI")}>The app restarts and reloads when it is done.</span>`);
4219
- writeScope($scope52_id, {});
4515
+ const $scope53_id = _scope_id();
4516
+ _html(`<span${_attr_class("_cJ")}><span${_attr_class("_F")}></span> Updating work…</span><span${_attr_class("_cK")}>The app restarts and reloads when it is done.</span>`);
4517
+ writeScope($scope53_id, {});
4220
4518
  return 0;
4221
4519
  } else {
4222
- const $scope37_id = _scope_id();
4223
- _html(`<span${_attr_class("_cH")}>Update available</span><span${_attr_class("_cI")}>v<!>${_escape(self.version)}${_el_resume($scope37_id, "c")} → v<!>${_escape(self.latest)}${_el_resume($scope37_id, "d")}</span>`);
4224
- _subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($scope37_id, {})));
4520
+ const $scope38_id = _scope_id();
4521
+ _html(`<span${_attr_class("_cJ")}>Update available</span><span${_attr_class("_cK")}>v<!>${_escape(self.version)}${_el_resume($scope38_id, "c")} → v<!>${_escape(self.latest)}${_el_resume($scope38_id, "d")}</span>`);
4522
+ _subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($scope38_id, {})));
4225
4523
  return 1;
4226
4524
  }
4227
- }, $scope36_id, "b", 1, 1, 1, "</div>");
4525
+ }, $scope37_id, "b", 1, 1, 1, "</div>");
4228
4526
  _if(() => {
4229
4527
  if (!selfUpdating) {
4230
- const $scope38_id = _scope_id();
4231
- _html(`<button${_attr_class(["_o", "_p"])}${_attr("title", `Update work to v${self.latest} and restart`)}>Update and restart</button>${_el_resume($scope38_id, "a")}`);
4232
- _script($scope38_id, "u32");
4233
- _subscribe($self_latest__closures, writeScope($scope38_id, { Ce9: 1 }));
4528
+ const $scope39_id = _scope_id();
4529
+ _html(`<button${_attr_class(["_o", "_p"])}${_attr("title", `Update work to v${self.latest} and restart`)}>Update and restart</button>${_el_resume($scope39_id, "a")}`);
4530
+ _script($scope39_id, "u35");
4531
+ _subscribe($self_latest__closures, writeScope($scope39_id, { Ce9: 1 }));
4234
4532
  return 0;
4235
4533
  }
4236
- }, $scope36_id, "c", 1, 1, 1, 0, 1);
4534
+ }, $scope37_id, "c", 1, 1, 1, 0, 1);
4237
4535
  _html("</div>");
4238
- writeScope($scope36_id, {});
4536
+ writeScope($scope37_id, {});
4239
4537
  return 0;
4240
4538
  }
4241
4539
  }, $scope0_id, "f", 1, 1, 1, 0, 1);
4242
- _html(`<section${_attr_class("_bj")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bk")}><h2${_attr("id", agentsId)}${_attr_class("_by")}>Agents</h2><div${_attr_class("_y")}></div><label${_attr_class("_cg")}><span${_attr_class("_S")}>Default</span><span${_attr_class("_m")}>`);
4540
+ _html(`<section${_attr_class("_bs")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bt")}><h2${_attr("id", agentsId)}${_attr_class("_bH")}>Agents</h2><div${_attr_class("_y")}></div><label${_attr_class("_cg")}><span${_attr_class("_S")}>Default</span><span${_attr_class("_m")}>`);
4243
4541
  _attr_select_value($scope0_id, "n", input.preferred, _resume(function(v) {
4244
4542
  setPreferred(v);
4245
4543
  }, "u1", $scope0_id), () => {
4246
4544
  _html(`<select${_attr_class(["_n", "_ch"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
4247
4545
  _for_of(input.agents.filter((a) => a !== "shell"), (id) => {
4248
- const $scope53_id = _scope_id();
4249
- _html(`<option${_attr_option_value(id)}>${_escape(agentLabel(id))}${_el_resume($scope53_id, "b", $sg__input_agents)}</option>${_el_resume($scope53_id, "a", $sg__input_agents)}`);
4250
- _serialize_if($scope0_reason, 4) && writeScope($scope53_id, {});
4546
+ const $scope54_id = _scope_id();
4547
+ _html(`<option${_attr_option_value(id)}>${_escape(agentLabel(id))}${_el_resume($scope54_id, "b", $sg__input_agents)}</option>${_el_resume($scope54_id, "a", $sg__input_agents)}`);
4548
+ _serialize_if($scope0_reason, 5) && writeScope($scope54_id, {});
4251
4549
  }, (a) => a, $scope0_id, "n", $sg__input_agents, 1, 1, "</select>", 1);
4252
4550
  });
4253
4551
  _html(`</span></label><button${_attr_class(iconBtn$2)} title="Refresh usage" aria-label="Refresh usage"${_attr("disabled", usageRefreshing)}>`);
@@ -4264,19 +4562,19 @@ var settings_page_default = _template("u", (input) => {
4264
4562
  const rows = lone ? [] : a.instances;
4265
4563
  const loneAccounts = lone && lone.enabled ? accountsFor(lone.id) : [];
4266
4564
  const extraAccounts = a.installed ? strayAccountsFor(a) : [];
4267
- _html(`<li${_attr_class(["_bo", "_cf"])}><div${_attr_class(["_ci", { ["_cl"]: lone && !lone.enabled }])}>`);
4565
+ _html(`<li${_attr_class(["_bx", "_cf"])}><div${_attr_class(["_ci", { ["_cl"]: lone && !lone.enabled }])}>`);
4268
4566
  _set_serialize_reason(12);
4269
4567
  const $childScope4 = _peek_scope_id();
4270
4568
  icon_agent_default({
4271
4569
  agent: a.id,
4272
4570
  size: 18
4273
4571
  });
4274
- _html(`<div${_attr_class("_bp")}><span${_attr_class("_br")}><span${_attr_class("_bq")}>${_escape(a.label)}${_el_resume($scope1_id, "g")}</span>`);
4572
+ _html(`<div${_attr_class("_by")}><span${_attr_class("_bA")}><span${_attr_class("_bz")}>${_escape(a.label)}${_el_resume($scope1_id, "g")}</span>`);
4275
4573
  _if(() => {
4276
4574
  if (lone && input.preferred === lone.id) {
4277
- const $scope54_id = _scope_id();
4575
+ const $scope55_id = _scope_id();
4278
4576
  _html(`<span${_attr_class(["_I", tone.accent])}>default</span>`);
4279
- writeScope($scope54_id, {});
4577
+ writeScope($scope55_id, {});
4280
4578
  return 0;
4281
4579
  }
4282
4580
  }, $scope1_id, "h", 1, 1, 1, 0, 1);
@@ -4288,32 +4586,32 @@ var settings_page_default = _template("u", (input) => {
4288
4586
  _subscribe($active__closures, writeScope($scope11_id, {}));
4289
4587
  return 0;
4290
4588
  } else if (!a.installed) {
4291
- const $scope55_id = _scope_id();
4292
- _html(`<span${_attr_class("_bs")}>Not installed</span>`);
4293
- writeScope($scope55_id, {});
4589
+ const $scope56_id = _scope_id();
4590
+ _html(`<span${_attr_class("_bB")}>Not installed</span>`);
4591
+ writeScope($scope56_id, {});
4294
4592
  return 1;
4295
4593
  }
4296
4594
  }, $scope1_id, "i", 1, 1, 1, 0, 1);
4297
4595
  _html("</div>");
4298
4596
  _if(() => {
4299
4597
  if (!a.installed && !active.has(a.id)) {
4300
- const $scope43_id = _scope_id();
4301
- _html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope43_id, "a")}`);
4302
- _script($scope43_id, "u33");
4303
- writeScope($scope43_id, {});
4598
+ const $scope44_id = _scope_id();
4599
+ _html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope44_id, "a")}`);
4600
+ _script($scope44_id, "u36");
4601
+ writeScope($scope44_id, {});
4304
4602
  return 0;
4305
4603
  }
4306
4604
  }, $scope1_id, "j", 1, 1, 1, 0, 1);
4307
4605
  _if(() => {
4308
4606
  if (lone) {
4309
- const $scope47_id = _scope_id();
4607
+ const $scope48_id = _scope_id();
4310
4608
  _html(`<button${_attr_class([
4311
4609
  "_I",
4312
4610
  "_K",
4313
4611
  { [tone.ok]: lone.enabled }
4314
- ])} 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($scope47_id, "b")}</button>${_el_resume($scope47_id, "a")}`);
4315
- _script($scope47_id, "u34");
4316
- writeScope($scope47_id, {});
4612
+ ])} 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($scope48_id, "b")}</button>${_el_resume($scope48_id, "a")}`);
4613
+ _script($scope48_id, "u37");
4614
+ writeScope($scope48_id, {});
4317
4615
  return 0;
4318
4616
  }
4319
4617
  }, $scope1_id, "k", 1, 1, 1, 0, 1);
@@ -4335,9 +4633,9 @@ var settings_page_default = _template("u", (input) => {
4335
4633
  _html(`<span${_attr_class(["_cm", "_x"])}>${_escape(inst.command)}${_el_resume($scope3_id, "e")}</span>`);
4336
4634
  _if(() => {
4337
4635
  if (input.preferred === inst.id) {
4338
- const $scope56_id = _scope_id();
4636
+ const $scope57_id = _scope_id();
4339
4637
  _html(`<span${_attr_class(["_I", tone.accent])}>default</span>`);
4340
- writeScope($scope56_id, {});
4638
+ writeScope($scope57_id, {});
4341
4639
  return 0;
4342
4640
  }
4343
4641
  }, $scope3_id, "f", 1, 1, 1, 0, 1);
@@ -4347,17 +4645,17 @@ var settings_page_default = _template("u", (input) => {
4347
4645
  { [tone.ok]: inst.enabled }
4348
4646
  ])} role=switch aria-checked=${inst.enabled ? "true" : "false"} title=${inst.enabled ? "\"Shown in session pickers. Hide it\"" : "\"Hidden from session pickers. Show it\""}>${inst.enabled ? "on" : "off"}${_el_resume($scope3_id, "i")}</button>${_el_resume($scope3_id, "h")}</div>${_el_resume($scope3_id, "b")}`);
4349
4647
  _for_of(accounts, (u) => {
4350
- const $scope57_id = _scope_id();
4648
+ const $scope58_id = _scope_id();
4351
4649
  _set_serialize_reason(6);
4352
4650
  const $childScope6 = _peek_scope_id();
4353
4651
  usage_meters_default({
4354
4652
  agent: u,
4355
4653
  hideName: true
4356
4654
  });
4357
- writeScope($scope57_id, { a: _existing_scope($childScope6) });
4655
+ writeScope($scope58_id, { a: _existing_scope($childScope6) });
4358
4656
  }, (u) => `${u.agent}-${u.account || ""}`, $scope3_id, "j", 1, 1, 1, 0, 1);
4359
4657
  _html("</li>");
4360
- _script($scope3_id, "u35");
4658
+ _script($scope3_id, "u38");
4361
4659
  _subscribe($accountsFor2__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope3_id, {
4362
4660
  m: inst?.enabled,
4363
4661
  n: inst?.id,
@@ -4365,7 +4663,7 @@ var settings_page_default = _template("u", (input) => {
4365
4663
  })));
4366
4664
  }, "id", $scope2_id, "b", 1, 1, 1, 0, 1);
4367
4665
  _for_of(loneAccounts, (u) => {
4368
- const $scope58_id = _scope_id();
4666
+ const $scope59_id = _scope_id();
4369
4667
  _html("<li>");
4370
4668
  _set_serialize_reason(6);
4371
4669
  const $childScope7 = _peek_scope_id();
@@ -4374,16 +4672,16 @@ var settings_page_default = _template("u", (input) => {
4374
4672
  hideName: true
4375
4673
  });
4376
4674
  _html("</li>");
4377
- writeScope($scope58_id, { a: _existing_scope($childScope7) });
4675
+ writeScope($scope59_id, { a: _existing_scope($childScope7) });
4378
4676
  }, (u) => `${u.agent}-${u.account || ""}`, $scope2_id, "c", 1, 1, 1, 0, 1);
4379
4677
  _for_of(extraAccounts, (u) => {
4380
- const $scope59_id = _scope_id();
4678
+ const $scope60_id = _scope_id();
4381
4679
  _html("<li>");
4382
4680
  _set_serialize_reason(6);
4383
4681
  const $childScope8 = _peek_scope_id();
4384
4682
  usage_meters_default({ agent: u });
4385
4683
  _html("</li>");
4386
- writeScope($scope59_id, { a: _existing_scope($childScope8) });
4684
+ writeScope($scope60_id, { a: _existing_scope($childScope8) });
4387
4685
  }, (u) => `${u.agent}-${u.account || ""}`, $scope2_id, "d", 1, 1, 1, 0, 1);
4388
4686
  _html("</ul>");
4389
4687
  writeScope($scope2_id, {});
@@ -4406,47 +4704,57 @@ var settings_page_default = _template("u", (input) => {
4406
4704
  });
4407
4705
  }, "id", $scope0_id, "r", 1, 1, 1, 0, 1);
4408
4706
  _for_of(otherUsage, (u) => {
4409
- const $scope60_id = _scope_id();
4410
- _html(`<li${_attr_class(["_bo", "_cf"])}>`);
4707
+ const $scope61_id = _scope_id();
4708
+ _html(`<li${_attr_class(["_bx", "_cf"])}>`);
4411
4709
  _set_serialize_reason(6);
4412
4710
  const $childScope9 = _peek_scope_id();
4413
4711
  usage_meters_default({ agent: u });
4414
4712
  _html("</li>");
4415
- writeScope($scope60_id, { b: _existing_scope($childScope9) });
4713
+ writeScope($scope61_id, { b: _existing_scope($childScope9) });
4416
4714
  }, (u) => `${u.agent}-${u.account || ""}`, $scope0_id, "s", 1, 1, 1, 0, 1);
4417
4715
  _html("</ul>");
4418
4716
  _if(() => {
4419
4717
  if (!usage && families.length) {
4420
- const $scope61_id = _scope_id();
4421
- _html(`<p${_attr_class("_bu")}><span${_attr_class("_F")}></span> Loading usage…</p>`);
4422
- writeScope($scope61_id, {});
4718
+ const $scope62_id = _scope_id();
4719
+ _html(`<p${_attr_class("_bD")}><span${_attr_class("_F")}></span> Loading usage…</p>`);
4720
+ writeScope($scope62_id, {});
4423
4721
  return 0;
4424
4722
  } else if (usage?.error) {
4425
4723
  const $scope7_id = _scope_id();
4426
- _html(`<p${_attr_class("_bu")}>${_escape(usage.error)}${_el_resume($scope7_id, "b")}</p>`);
4724
+ _html(`<p${_attr_class("_bD")}>${_escape(usage.error)}${_el_resume($scope7_id, "b")}</p>`);
4427
4725
  writeScope($scope7_id, {});
4428
4726
  return 1;
4429
4727
  }
4430
4728
  }, $scope0_id, "t", 1, 1, 1, 0, 1);
4431
- _html(`</section><section${_attr_class("_bj")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_bk")}><h2${_attr("id", githubId)}${_attr_class("_by")}>GitHub</h2></div><ul${_attr_class("_bm")}>`);
4729
+ _html(`</section><section${_attr_class("_bs")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_bt")}><h2${_attr("id", githubId)}${_attr_class("_bH")}>GitHub</h2></div><ul${_attr_class("_bv")}>`);
4432
4730
  _for_of(setup?.github || [], (h) => {
4433
4731
  const $scope12_id = _scope_id();
4434
4732
  const $for_content4__h_host__closures = /* @__PURE__ */ new Set();
4435
- _html(`<li${_attr_class("_bo")}><div${_attr_class("_bp")}><span${_attr_class("_br")}><span${_attr_class(["_bq", "_x"])}>${_escape(h.host)}${_el_resume($scope12_id, "e")}</span>`);
4733
+ let ssoIgnoreTick = 0;
4734
+ const ignoredSso = (() => {
4735
+ return new Set(ignoredSsoOrgs?.() ?? []);
4736
+ })();
4737
+ const hostSso = (() => {
4738
+ return (h.sso || []).filter((s) => !ignoredSso.has(s.org));
4739
+ })();
4740
+ const skippedSso = (() => {
4741
+ return (h.sso || []).filter((s) => ignoredSso.has(s.org));
4742
+ })();
4743
+ _html(`<li${_attr_class(["_bx", "_cx"])}><div${_attr_class("_cy")}><div${_attr_class("_by")}><span${_attr_class("_bA")}><span${_attr_class(["_bz", "_x"])}>${_escape(h.host)}${_el_resume($scope12_id, "f")}</span>`);
4436
4744
  _if(() => {
4437
4745
  if (h.isEnterprise) {
4438
- const $scope64_id = _scope_id();
4746
+ const $scope65_id = _scope_id();
4439
4747
  _html(`<span${_attr_class("_I")}>Enterprise</span>`);
4440
- writeScope($scope64_id, {});
4748
+ writeScope($scope65_id, {});
4441
4749
  return 0;
4442
4750
  }
4443
- }, $scope12_id, "f", 1, 1, 1, 0, 1);
4751
+ }, $scope12_id, "g", 1, 1, 1, 0, 1);
4444
4752
  _html("</span>");
4445
4753
  _if(() => {
4446
4754
  if (active.has(h.host) && authCodes.has(h.host)) {
4447
- const $scope23_id = _scope_id();
4448
- _html(`<span${_attr_class("_cb")}><span${_attr_class("_F")}></span> Enter code <strong${_attr_class("_cv")}>${_escape(authCodes.get(h.host))}${_el_resume($scope23_id, "d")}</strong> at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_cw")}>${_escape(h.host)}${_el_resume($scope23_id, "f")}/login/device</a>${_el_resume($scope23_id, "e")}</span>`);
4449
- _subscribe($authCodes__closures, writeScope($scope23_id, {}));
4755
+ const $scope24_id = _scope_id();
4756
+ _html(`<span${_attr_class("_cb")}><span${_attr_class("_F")}></span> Enter code <strong${_attr_class("_cv")}>${_escape(authCodes.get(h.host))}${_el_resume($scope24_id, "d")}</strong> at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_cw")}>${_escape(h.host)}${_el_resume($scope24_id, "f")}/login/device</a>${_el_resume($scope24_id, "e")}</span>`);
4757
+ _subscribe($authCodes__closures, writeScope($scope24_id, { Cdz: 1 }));
4450
4758
  return 0;
4451
4759
  } else if (active.has(h.host)) {
4452
4760
  const $scope13_id = _scope_id();
@@ -4454,281 +4762,314 @@ var settings_page_default = _template("u", (input) => {
4454
4762
  _subscribe($active__closures, writeScope($scope13_id, { Cdx: 1 }));
4455
4763
  return 1;
4456
4764
  } else if (h.authed) {
4457
- const $scope62_id = _scope_id();
4458
- _html(`<span${_attr_class("_bs")}>Signed in<!>${h.user ? ` as ${_escape(`${_to_text(h.user)}`)}` : ""}${_el_resume($scope62_id, "b")}</span>`);
4459
- writeScope($scope62_id, {});
4460
- return 2;
4461
- } else {
4462
4765
  const $scope63_id = _scope_id();
4463
- _html(`<span${_attr_class("_bs")}>${_escape(h.error || "Not signed in")}${_el_resume($scope63_id, "b")}</span>`);
4766
+ _html(`<span${_attr_class("_bB")}>Signed in<!>${h.user ? ` as ${_escape(`${_to_text(h.user)}`)}` : ""}${_el_resume($scope63_id, "b")}</span>`);
4464
4767
  writeScope($scope63_id, {});
4768
+ return 2;
4769
+ } else {
4770
+ const $scope64_id = _scope_id();
4771
+ _html(`<span${_attr_class("_bB")}>${_escape(h.error || "Not signed in")}${_el_resume($scope64_id, "b")}</span>`);
4772
+ writeScope($scope64_id, {});
4465
4773
  return 3;
4466
4774
  }
4467
- }, $scope12_id, "g", 1, 1, 1, 0, 1);
4775
+ }, $scope12_id, "h", 1, 1, 1, 0, 1);
4468
4776
  _html("</div>");
4469
4777
  _if(() => {
4470
4778
  if (!active.has(h.host)) {
4471
- const $scope24_id = _scope_id();
4779
+ const $scope25_id = _scope_id();
4472
4780
  _if(() => {
4473
4781
  if (!h.authed) {
4474
- const $scope44_id = _scope_id();
4475
- _html(`<button${_attr_class(btnSm)}>Sign in</button>${_el_resume($scope44_id, "a")}`);
4476
- _script($scope44_id, "u36");
4477
- writeScope($scope44_id, {});
4782
+ const $scope45_id = _scope_id();
4783
+ _html(`<button${_attr_class(btnSm)}>Sign in</button>${_el_resume($scope45_id, "a")}`);
4784
+ _script($scope45_id, "u39");
4785
+ writeScope($scope45_id, {});
4478
4786
  return 0;
4479
4787
  } else {
4480
- const $scope25_id = _scope_id();
4788
+ const $scope26_id = _scope_id();
4481
4789
  _html(`<button${_attr_class([btnSm, {
4482
4790
  ["_r"]: confirmingRemove === `out:${h.host}`,
4483
4791
  ["_q"]: confirmingRemove === `out:${h.host}`
4484
- }])}${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($scope25_id, "b")}</button>${_el_resume($scope25_id, "a")}`);
4485
- _script($scope25_id, "u37");
4486
- _subscribe($for_content4__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope25_id, {})));
4792
+ }])}${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($scope26_id, "b")}</button>${_el_resume($scope26_id, "a")}`);
4793
+ _script($scope26_id, "u40");
4794
+ _subscribe($for_content4__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope26_id, {})));
4487
4795
  return 1;
4488
4796
  }
4489
- }, $scope24_id, "a", 1, 1, 1, 0, 1);
4797
+ }, $scope25_id, "a", 1, 1, 1, 0, 1);
4490
4798
  _if(() => {
4491
4799
  if (h.isEnterprise) {
4492
- const $scope26_id = _scope_id();
4800
+ const $scope27_id = _scope_id();
4493
4801
  _html(`<button${_attr_class([
4494
- "_bt",
4802
+ "_bC",
4495
4803
  "_2",
4496
4804
  "_3",
4497
4805
  { ["_q"]: confirmingRemove === h.host }
4498
4806
  ])}${confirmingRemove === h.host ? _attr("title", `Forget ${h.host}? (gh stays signed in)`) : _attr("title", `Forget ${h.host}`)}>`);
4499
4807
  _if(() => {
4500
4808
  if (confirmingRemove === h.host) {
4501
- const $scope65_id = _scope_id();
4809
+ const $scope66_id = _scope_id();
4502
4810
  _html("Forget?");
4503
- writeScope($scope65_id, {});
4811
+ writeScope($scope66_id, {});
4504
4812
  return 0;
4505
4813
  } else {
4506
- const $scope66_id = _scope_id();
4814
+ const $scope67_id = _scope_id();
4507
4815
  icon_xmark_default({ size: 13 });
4508
- writeScope($scope66_id, {});
4816
+ writeScope($scope67_id, {});
4509
4817
  return 1;
4510
4818
  }
4511
- }, $scope26_id, "a", 1, 1, 1, "</button>");
4512
- _script($scope26_id, "u38");
4513
- _subscribe($for_content4__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope26_id, {
4819
+ }, $scope27_id, "a", 1, 1, 1, "</button>");
4820
+ _script($scope27_id, "u41");
4821
+ _subscribe($for_content4__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope27_id, {
4514
4822
  Ce0: 1,
4515
- Cr: 1
4823
+ Ca2: 1
4516
4824
  })));
4517
4825
  return 0;
4518
4826
  }
4519
- }, $scope24_id, "b", 1, 1, 1, 0, 1);
4520
- writeScope($scope24_id, {});
4827
+ }, $scope25_id, "b", 1, 1, 1, 0, 1);
4828
+ writeScope($scope25_id, {});
4829
+ return 0;
4830
+ }
4831
+ }, $scope12_id, "i");
4832
+ _html("</div>");
4833
+ _if(() => {
4834
+ if (hostSso.length || skippedSso.length) {
4835
+ const $scope14_id = _scope_id();
4836
+ _set_serialize_reason(1);
4837
+ const $childScope10 = _peek_scope_id();
4838
+ sso_auth_default({
4839
+ items: hostSso,
4840
+ skipped: skippedSso,
4841
+ busy: active.has(h.host),
4842
+ authCode: authCodes.get(h.host),
4843
+ onChange: _resume(function() {
4844
+ ssoIgnoreTick++;
4845
+ }, "u26", $scope14_id),
4846
+ onAuthorize: _resume(function() {
4847
+ run(h.host, "auth-refresh");
4848
+ }, "u27", $scope14_id),
4849
+ onDone: _resume(function() {
4850
+ refresh();
4851
+ }, "u28", $scope14_id)
4852
+ });
4853
+ _subscribe($run2__closures, _subscribe($si__input_setupChange && $refresh2__closures, _subscribe($authCodes__closures, _subscribe($active__closures, writeScope($scope14_id, {
4854
+ a: _existing_scope($childScope10),
4855
+ Cdx: 2
4856
+ })))));
4521
4857
  return 0;
4522
4858
  }
4523
- }, $scope12_id, "h");
4859
+ }, $scope12_id, "j", 1, 1, 1, 0, 1);
4524
4860
  _html("</li>");
4525
4861
  writeScope($scope12_id, {
4526
- k: h?.host,
4527
- m: h?.isEnterprise,
4528
- n: h?.authed,
4529
- p: h?.user,
4530
- q: h?.error,
4531
- r: $for_content4__h_host__closures
4862
+ m: h?.sso,
4863
+ n: h?.host,
4864
+ p: h?.isEnterprise,
4865
+ q: h?.authed,
4866
+ s: h?.user,
4867
+ t: h?.error,
4868
+ u: ssoIgnoreTick,
4869
+ v: ignoredSso,
4870
+ x: hostSso,
4871
+ z: skippedSso,
4872
+ a2: $for_content4__h_host__closures
4532
4873
  });
4533
4874
  }, "host", $scope0_id, "x", 1, 1, 1, "</ul>", 1);
4534
4875
  _if(() => {
4535
4876
  if (setup && !setup.github.length) {
4536
- const $scope67_id = _scope_id();
4537
- _html(`<p${_attr_class("_bu")}>Install the GitHub CLI below to sign in.</p>`);
4538
- writeScope($scope67_id, {});
4877
+ const $scope68_id = _scope_id();
4878
+ _html(`<p${_attr_class("_bD")}>Install the GitHub CLI below to sign in.</p>`);
4879
+ writeScope($scope68_id, {});
4539
4880
  return 0;
4540
4881
  }
4541
4882
  }, $scope0_id, "y", 1, 1, 1, 0, 1);
4542
4883
  _if(() => {
4543
4884
  if (setup) {
4544
- const $scope34_id = _scope_id();
4885
+ const $scope35_id = _scope_id();
4545
4886
  _html(`<form${_attr_class("_cu")}><label${_attr_class("_W")}>`);
4546
4887
  icon_plus_default({
4547
4888
  size: 14,
4548
4889
  class: "_X"
4549
4890
  });
4550
- _html(`<input${_attr_input_value($scope34_id, "d", hostInput, _resume((_new_hostInput) => {
4891
+ _html(`<input${_attr_input_value($scope35_id, "d", hostInput, _resume((_new_hostInput) => {
4551
4892
  hostInput = _new_hostInput;
4552
- }, "u2", $scope34_id))}${_attr_class([inputLg, "_Y"])} type=text placeholder="Add a GitHub Enterprise host, e.g. github.example.com" aria-label="GitHub Enterprise host" autocomplete=off spellcheck=false>${_el_resume($scope34_id, "d")}</label><button${_attr_class(btnSm)} type=submit${_attr("disabled", !hostInput.trim() || hostBusy)}>${hostBusy ? "Adding…" : "Add host"}${_el_resume($scope34_id, "f")}</button>${_el_resume($scope34_id, "e")}</form>${_el_resume($scope34_id, "a")}`);
4553
- _script($scope34_id, "u39");
4554
- writeScope($scope34_id, {});
4893
+ }, "u2", $scope35_id))}${_attr_class([inputLg, "_Y"])} type=text placeholder="Add a GitHub Enterprise host, e.g. github.example.com" aria-label="GitHub Enterprise host" autocomplete=off spellcheck=false>${_el_resume($scope35_id, "d")}</label><button${_attr_class(btnSm)} type=submit${_attr("disabled", !hostInput.trim() || hostBusy)}>${hostBusy ? "Adding…" : "Add host"}${_el_resume($scope35_id, "f")}</button>${_el_resume($scope35_id, "e")}</form>${_el_resume($scope35_id, "a")}`);
4894
+ _script($scope35_id, "u42");
4895
+ writeScope($scope35_id, {});
4555
4896
  return 0;
4556
4897
  }
4557
4898
  }, $scope0_id, "z", 1, 1, 1, 0, 1);
4558
- _html(`</section><section${_attr_class("_bj")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_bk")}><h2${_attr("id", machineId)}${_attr_class("_by")}>Machine</h2>`);
4899
+ _html(`</section><section${_attr_class("_bs")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_bt")}><h2${_attr("id", machineId)}${_attr_class("_bH")}>Machine</h2>`);
4559
4900
  _if(() => {
4560
4901
  if (missingCount) {
4561
- const $scope48_id = _scope_id();
4562
- _html(`<span${_attr_class(sectionCount$1)}>${_escape(missingCount)}${_el_resume($scope48_id, "b")} missing</span>`);
4563
- writeScope($scope48_id, {});
4902
+ const $scope49_id = _scope_id();
4903
+ _html(`<span${_attr_class(sectionCount$1)}>${_escape(missingCount)}${_el_resume($scope49_id, "b")} missing</span>`);
4904
+ writeScope($scope49_id, {});
4564
4905
  return 0;
4565
4906
  }
4566
4907
  }, $scope0_id, "a3", 1, 1, 1, 0, 1);
4567
4908
  _if(() => {
4568
4909
  if (outdatedIds.length) {
4569
- const $scope49_id = _scope_id();
4570
- _html(`<span${_attr_class(sectionCount$1)}>${_escape(outdatedIds.length)}${_el_resume($scope49_id, "b")} outdated</span>`);
4571
- writeScope($scope49_id, {});
4910
+ const $scope50_id = _scope_id();
4911
+ _html(`<span${_attr_class(sectionCount$1)}>${_escape(outdatedIds.length)}${_el_resume($scope50_id, "b")} outdated</span>`);
4912
+ writeScope($scope50_id, {});
4572
4913
  return 0;
4573
4914
  }
4574
4915
  }, $scope0_id, "a4", 1, 1, 1, 0, 1);
4575
4916
  _html(`<div${_attr_class("_y")}></div>`);
4576
4917
  _if(() => {
4577
4918
  if (outdatedIds.length > 1) {
4578
- const $scope14_id = _scope_id();
4579
- _html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Update all</button>${_el_resume($scope14_id, "a")}`);
4580
- _script($scope14_id, "u40");
4581
- writeScope($scope14_id, {});
4919
+ const $scope15_id = _scope_id();
4920
+ _html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Update all</button>${_el_resume($scope15_id, "a")}`);
4921
+ _script($scope15_id, "u43");
4922
+ writeScope($scope15_id, {});
4582
4923
  return 0;
4583
4924
  }
4584
4925
  }, $scope0_id, "a6", 1, 1, 1, 0, 1);
4585
4926
  _if(() => {
4586
4927
  if (missingInstallable.length > 1) {
4587
- const $scope15_id = _scope_id();
4588
- _html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Install missing</button>${_el_resume($scope15_id, "a")}`);
4589
- _script($scope15_id, "u41");
4590
- writeScope($scope15_id, {});
4928
+ const $scope16_id = _scope_id();
4929
+ _html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Install missing</button>${_el_resume($scope16_id, "a")}`);
4930
+ _script($scope16_id, "u44");
4931
+ writeScope($scope16_id, {});
4591
4932
  return 0;
4592
4933
  }
4593
4934
  }, $scope0_id, "a7", 1, 1, 1, 0, 1);
4594
4935
  _html("</div>");
4595
4936
  _if(() => {
4596
4937
  if (setup && !setup.mise.installed) {
4597
- const $scope16_id = _scope_id();
4598
- _html(`<p${_attr_class("_bu")}>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($scope16_id, "c")}</button>${_el_resume($scope16_id, "b")}</p>`);
4599
- _script($scope16_id, "u42");
4600
- writeScope($scope16_id, {});
4938
+ const $scope17_id = _scope_id();
4939
+ _html(`<p${_attr_class("_bD")}>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>`);
4940
+ _script($scope17_id, "u45");
4941
+ writeScope($scope17_id, {});
4601
4942
  return 0;
4602
4943
  }
4603
4944
  }, $scope0_id, "a8", 1, 1, 1, 0, 1);
4604
4945
  _html(`<ul${_attr_class(toolGrid)}>`);
4605
4946
  _if(() => {
4606
4947
  if (self) {
4607
- const $scope39_id = _scope_id();
4948
+ const $scope40_id = _scope_id();
4608
4949
  _html(`<li${_attr_class(row)}><span${_attr_class(["_cq", "_x"])}>work</span>`);
4609
4950
  _if(() => {
4610
4951
  if (selfUpdating) {
4611
- const $scope68_id = _scope_id();
4952
+ const $scope69_id = _scope_id();
4612
4953
  _html(`<span${_attr_class("_cb")}><span${_attr_class("_F")}></span>Updating — the app restarts and reloads when it is done…</span>`);
4613
- writeScope($scope68_id, {});
4954
+ writeScope($scope69_id, {});
4614
4955
  return 0;
4615
4956
  } else {
4616
- const $scope40_id = _scope_id();
4617
- _html(`<span${_attr_class(["_x", metaTrunc])} title="Running version">v<!>${_escape(self.version)}${_el_resume($scope40_id, "b")}</span>`);
4957
+ const $scope41_id = _scope_id();
4958
+ _html(`<span${_attr_class(["_x", metaTrunc])} title="Running version">v<!>${_escape(self.version)}${_el_resume($scope41_id, "b")}</span>`);
4618
4959
  _if(() => {
4619
4960
  if (self.install === "source") {
4620
- const $scope69_id = _scope_id();
4961
+ const $scope70_id = _scope_id();
4621
4962
  _html(`<span${_attr_class(metaTrunc)} title="Started from a checkout, not the published package">source checkout — update with git</span>`);
4622
- writeScope($scope69_id, {});
4963
+ writeScope($scope70_id, {});
4623
4964
  return 0;
4624
4965
  } else if (self.latest && self.latest !== self.version) {
4625
- const $scope41_id = _scope_id();
4626
- _html(`<button${_attr_class([btnSm, "_cs"])}${_attr("title", `Update work to v${self.latest} and restart`)}>↑ <!>${_escape(self.latest)}${_el_resume($scope41_id, "b")}</button>${_el_resume($scope41_id, "a")}`);
4627
- _script($scope41_id, "u43");
4628
- _subscribe($self_latest__closures, writeScope($scope41_id, { Ce9: 3 }));
4966
+ const $scope42_id = _scope_id();
4967
+ _html(`<button${_attr_class([btnSm, "_cs"])}${_attr("title", `Update work to v${self.latest} and restart`)}>↑ <!>${_escape(self.latest)}${_el_resume($scope42_id, "b")}</button>${_el_resume($scope42_id, "a")}`);
4968
+ _script($scope42_id, "u46");
4969
+ _subscribe($self_latest__closures, writeScope($scope42_id, { Ce9: 3 }));
4629
4970
  return 1;
4630
4971
  } else if (self.latest) {
4631
- const $scope70_id = _scope_id();
4972
+ const $scope71_id = _scope_id();
4632
4973
  _html(`<span${_attr_class(metaTrunc)}>up to date</span>`);
4633
- writeScope($scope70_id, {});
4974
+ writeScope($scope71_id, {});
4634
4975
  return 2;
4635
4976
  }
4636
- }, $scope40_id, "c", 1, 1, 1, 0, 1);
4637
- _subscribe($self_version__closures, _subscribe($self_latest__closures, _subscribe($self_install__closures, writeScope($scope40_id, {
4977
+ }, $scope41_id, "c", 1, 1, 1, 0, 1);
4978
+ _subscribe($self_version__closures, _subscribe($self_latest__closures, _subscribe($self_install__closures, writeScope($scope41_id, {
4638
4979
  Ce9: 2,
4639
4980
  Cea: 1
4640
4981
  }))));
4641
4982
  return 1;
4642
4983
  }
4643
- }, $scope39_id, "c");
4984
+ }, $scope40_id, "c");
4644
4985
  _html(`<span${_attr_class("_y")}></span>`);
4645
4986
  _if(() => {
4646
4987
  if (!selfUpdating) {
4647
- const $scope71_id = _scope_id();
4988
+ const $scope72_id = _scope_id();
4648
4989
  _html(`<span${_attr_class("_I")}>app</span>`);
4649
- writeScope($scope71_id, {});
4990
+ writeScope($scope72_id, {});
4650
4991
  return 0;
4651
4992
  }
4652
- }, $scope39_id, "e", 1, 1, 1, 0, 1);
4993
+ }, $scope40_id, "e", 1, 1, 1, 0, 1);
4653
4994
  _html("</li>");
4654
- writeScope($scope39_id, {});
4995
+ writeScope($scope40_id, {});
4655
4996
  return 0;
4656
4997
  }
4657
4998
  }, $scope0_id, "aa", 1, 1, 1, 0, 1);
4658
4999
  _for_of(tools, (t) => {
4659
- const $scope17_id = _scope_id();
5000
+ const $scope18_id = _scope_id();
4660
5001
  const $for_content5__t_label__closures = /* @__PURE__ */ new Set();
4661
5002
  const $for_content5__t_version__closures = /* @__PURE__ */ new Set();
4662
5003
  const $for_content5__t_path__closures = /* @__PURE__ */ new Set();
4663
5004
  const $for_content5__t_latest__closures = /* @__PURE__ */ new Set();
4664
5005
  const $for_content5__t_id__closures = /* @__PURE__ */ new Set();
4665
- _html(`<li${_attr_class([row, { ["_cp"]: !t.installed }])}><span${_attr_class(["_cq", "_x"])}>${_escape(t.label)}${_el_resume($scope17_id, "c")}</span>`);
5006
+ _html(`<li${_attr_class([row, { ["_cp"]: !t.installed }])}><span${_attr_class(["_cq", "_x"])}>${_escape(t.label)}${_el_resume($scope18_id, "c")}</span>`);
4666
5007
  _if(() => {
4667
5008
  if (active.has(t.id)) {
4668
- const $scope18_id = _scope_id();
4669
- _html(`<span${_attr_class("_cb")}><span${_attr_class("_F")}></span><!>${_escape(active.get(t.id) || "Starting…")}${_el_resume($scope18_id, "c")}</span>`);
4670
- _subscribe($active__closures, writeScope($scope18_id, { Cdx: 2 }));
5009
+ const $scope19_id = _scope_id();
5010
+ _html(`<span${_attr_class("_cb")}><span${_attr_class("_F")}></span><!>${_escape(active.get(t.id) || "Starting…")}${_el_resume($scope19_id, "c")}</span>`);
5011
+ _subscribe($active__closures, writeScope($scope19_id, { Cdx: 3 }));
4671
5012
  return 0;
4672
5013
  } else if (t.installed) {
4673
- const $scope30_id = _scope_id();
5014
+ const $scope31_id = _scope_id();
4674
5015
  _if(() => {
4675
5016
  if (t.version) {
4676
- const $scope31_id = _scope_id();
4677
- _html(`<button${_attr_class(["_cr", "_x"])}${_attr("title", `${t.path || t.label}. Pin a version`)}>v<!>${_escape(t.version)}${_el_resume($scope31_id, "b")}</button>${_el_resume($scope31_id, "a")}`);
4678
- _script($scope31_id, "u44");
4679
- _subscribe($for_content5__t_path__closures, _subscribe($for_content5__t_version__closures, _subscribe($for_content5__t_label__closures, writeScope($scope31_id, { Cu: 1 }))));
5017
+ const $scope32_id = _scope_id();
5018
+ _html(`<button${_attr_class(["_cr", "_x"])}${_attr("title", `${t.path || t.label}. Pin a version`)}>v<!>${_escape(t.version)}${_el_resume($scope32_id, "b")}</button>${_el_resume($scope32_id, "a")}`);
5019
+ _script($scope32_id, "u47");
5020
+ _subscribe($for_content5__t_path__closures, _subscribe($for_content5__t_version__closures, _subscribe($for_content5__t_label__closures, writeScope($scope32_id, { Cu: 1 }))));
4680
5021
  return 0;
4681
5022
  } else {
4682
- const $scope72_id = _scope_id();
4683
- _html(`<span${_attr_class([metaTrunc, "_x"])}${_attr("title", t.path)}>${_escape(t.path)}${_el_resume($scope72_id, "b")}</span>${_el_resume($scope72_id, "a")}`);
4684
- _subscribe($for_content5__t_path__closures, writeScope($scope72_id, { Cx: 1 }));
5023
+ const $scope73_id = _scope_id();
5024
+ _html(`<span${_attr_class([metaTrunc, "_x"])}${_attr("title", t.path)}>${_escape(t.path)}${_el_resume($scope73_id, "b")}</span>${_el_resume($scope73_id, "a")}`);
5025
+ _subscribe($for_content5__t_path__closures, writeScope($scope73_id, { Cx: 1 }));
4685
5026
  return 1;
4686
5027
  }
4687
- }, $scope30_id, "a", 1, 1, 1, 0, 1);
5028
+ }, $scope31_id, "a", 1, 1, 1, 0, 1);
4688
5029
  _if(() => {
4689
5030
  if (outdated(t)) {
4690
- const $scope45_id = _scope_id();
4691
- _html(`<button${_attr_class([btnSm, "_cs"])}${_attr("title", `Update to v${t.latest}`)}>↑ <!>${_escape(t.latest)}${_el_resume($scope45_id, "b")}</button>${_el_resume($scope45_id, "a")}`);
4692
- _script($scope45_id, "u45");
4693
- _subscribe($for_content5__t_latest__closures, writeScope($scope45_id, {}));
5031
+ const $scope46_id = _scope_id();
5032
+ _html(`<button${_attr_class([btnSm, "_cs"])}${_attr("title", `Update to v${t.latest}`)}>↑ <!>${_escape(t.latest)}${_el_resume($scope46_id, "b")}</button>${_el_resume($scope46_id, "a")}`);
5033
+ _script($scope46_id, "u48");
5034
+ _subscribe($for_content5__t_latest__closures, writeScope($scope46_id, {}));
4694
5035
  return 0;
4695
5036
  }
4696
- }, $scope30_id, "b", 1, 1, 1, 0, 1);
4697
- writeScope($scope30_id, {});
5037
+ }, $scope31_id, "b", 1, 1, 1, 0, 1);
5038
+ writeScope($scope31_id, {});
4698
5039
  return 1;
4699
5040
  } else if (t.installable) {
4700
- const $scope73_id = _scope_id();
5041
+ const $scope74_id = _scope_id();
4701
5042
  _html(`<span${_attr_class(metaTrunc)}>not installed</span>`);
4702
- writeScope($scope73_id, {});
5043
+ writeScope($scope74_id, {});
4703
5044
  return 2;
4704
5045
  } else {
4705
- const $scope74_id = _scope_id();
5046
+ const $scope75_id = _scope_id();
4706
5047
  _html(`<span${_attr_class(metaTrunc)} title="Installed with the system package manager">system package</span>`);
4707
- writeScope($scope74_id, {});
5048
+ writeScope($scope75_id, {});
4708
5049
  return 3;
4709
5050
  }
4710
- }, $scope17_id, "d");
5051
+ }, $scope18_id, "d");
4711
5052
  _html(`<span${_attr_class("_y")}></span>`);
4712
5053
  _if(() => {
4713
5054
  if (!active.has(t.id)) {
4714
- const $scope27_id = _scope_id();
5055
+ const $scope28_id = _scope_id();
4715
5056
  _if(() => {
4716
5057
  if (t.required) {
4717
- const $scope75_id = _scope_id();
5058
+ const $scope76_id = _scope_id();
4718
5059
  _html(`<span${_attr_class("_I")}>required</span>`);
4719
- writeScope($scope75_id, {});
5060
+ writeScope($scope76_id, {});
4720
5061
  return 0;
4721
5062
  }
4722
- }, $scope27_id, "a", 1, 1, 1, 0, 1);
5063
+ }, $scope28_id, "a", 1, 1, 1, 0, 1);
4723
5064
  _if(() => {
4724
5065
  if (!t.installed && t.installable) {
4725
- const $scope46_id = _scope_id();
4726
- _html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope46_id, "a")}`);
4727
- _script($scope46_id, "u46");
4728
- writeScope($scope46_id, {});
5066
+ const $scope47_id = _scope_id();
5067
+ _html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope47_id, "a")}`);
5068
+ _script($scope47_id, "u49");
5069
+ writeScope($scope47_id, {});
4729
5070
  return 0;
4730
5071
  } else if (t.installed && t.version && !t.required) {
4731
- const $scope28_id = _scope_id();
5072
+ const $scope29_id = _scope_id();
4732
5073
  _html(`<button${_attr_class([
4733
5074
  iconBtnXs,
4734
5075
  "_2",
@@ -4737,28 +5078,28 @@ var settings_page_default = _template("u", (input) => {
4737
5078
  ])}${confirmingRemove === t.id ? _attr("title", `Remove ${t.label}?`) : _attr("title", `Remove ${t.label}`)}>`);
4738
5079
  _if(() => {
4739
5080
  if (confirmingRemove === t.id) {
4740
- const $scope76_id = _scope_id();
5081
+ const $scope77_id = _scope_id();
4741
5082
  _html("Remove?");
4742
- writeScope($scope76_id, {});
5083
+ writeScope($scope77_id, {});
4743
5084
  return 0;
4744
5085
  } else {
4745
- const $scope77_id = _scope_id();
5086
+ const $scope78_id = _scope_id();
4746
5087
  icon_xmark_default({ size: 13 });
4747
- writeScope($scope77_id, {});
5088
+ writeScope($scope78_id, {});
4748
5089
  return 1;
4749
5090
  }
4750
- }, $scope28_id, "a", 1, 1, 1, "</button>");
4751
- _script($scope28_id, "u47");
4752
- _subscribe($for_content5__t_id__closures, _subscribe($for_content5__t_label__closures, _subscribe($confirmingRemove__closures, writeScope($scope28_id, { Ce0: 2 }))));
5091
+ }, $scope29_id, "a", 1, 1, 1, "</button>");
5092
+ _script($scope29_id, "u50");
5093
+ _subscribe($for_content5__t_id__closures, _subscribe($for_content5__t_label__closures, _subscribe($confirmingRemove__closures, writeScope($scope29_id, { Ce0: 2 }))));
4753
5094
  return 1;
4754
5095
  }
4755
- }, $scope27_id, "b", 1, 1, 1, 0, 1);
4756
- writeScope($scope27_id, {});
5096
+ }, $scope28_id, "b", 1, 1, 1, 0, 1);
5097
+ writeScope($scope28_id, {});
4757
5098
  return 0;
4758
5099
  }
4759
- }, $scope17_id, "f");
4760
- _html(`</li>${_el_resume($scope17_id, "a")}`);
4761
- writeScope($scope17_id, {
5100
+ }, $scope18_id, "f");
5101
+ _html(`</li>${_el_resume($scope18_id, "a")}`);
5102
+ writeScope($scope18_id, {
4762
5103
  h: t,
4763
5104
  i: t?.installed,
4764
5105
  j: t?.label,
@@ -4778,81 +5119,81 @@ var settings_page_default = _template("u", (input) => {
4778
5119
  _html("</ul>");
4779
5120
  _if(() => {
4780
5121
  if (setup && setup.mise.installed) {
4781
- const $scope19_id = _scope_id();
5122
+ const $scope20_id = _scope_id();
4782
5123
  _html(`<div><label${_attr_class("_W")}>`);
4783
5124
  icon_search_default({
4784
5125
  size: 14,
4785
5126
  class: "_X"
4786
5127
  });
4787
- _html(`<input${_attr_input_value($scope19_id, "c", query, search)}${_attr_class([inputLg, "_Y"])} type=text placeholder="Add a tool from the mise registry…" aria-label="Search the mise registry" autocomplete=off>${_el_resume($scope19_id, "c")}</label>`);
5128
+ _html(`<input${_attr_input_value($scope20_id, "c", query, search)}${_attr_class([inputLg, "_Y"])} type=text placeholder="Add a tool from the mise registry…" aria-label="Search the mise registry" autocomplete=off>${_el_resume($scope20_id, "c")}</label>`);
4788
5129
  _if(() => {
4789
5130
  if (hits && hits.length) {
4790
- const $scope20_id = _scope_id();
5131
+ const $scope21_id = _scope_id();
4791
5132
  _html(`<ul${_attr_class([toolGrid, "_ct"])}>`);
4792
5133
  _for_of(hits, (h) => {
4793
- const $scope21_id = _scope_id();
4794
- _html(`<li${_attr_class(row)}><div${_attr_class("_bp")}><span${_attr_class(["_cq", "_x"])}>${_escape(h.name)}${_el_resume($scope21_id, "d")}</span>`);
5134
+ const $scope22_id = _scope_id();
5135
+ _html(`<li${_attr_class(row)}><div${_attr_class("_by")}><span${_attr_class(["_cq", "_x"])}>${_escape(h.name)}${_el_resume($scope22_id, "d")}</span>`);
4795
5136
  _if(() => {
4796
5137
  if (active.has(h.name)) {
4797
- const $scope22_id = _scope_id();
4798
- _html(`<span${_attr_class("_cb")}><span${_attr_class("_F")}></span><!>${_escape(active.get(h.name) || "Starting…")}${_el_resume($scope22_id, "c")}</span>`);
4799
- _subscribe($active__closures, writeScope($scope22_id, { Cdx: 4 }));
5138
+ const $scope23_id = _scope_id();
5139
+ _html(`<span${_attr_class("_cb")}><span${_attr_class("_F")}></span><!>${_escape(active.get(h.name) || "Starting…")}${_el_resume($scope23_id, "c")}</span>`);
5140
+ _subscribe($active__closures, writeScope($scope23_id, { Cdx: 5 }));
4800
5141
  return 0;
4801
5142
  } else if (h.description) {
4802
- const $scope78_id = _scope_id();
4803
- _html(`<span${_attr_class("_bs")}${_attr("title", h.description)}>${_escape(h.description)}${_el_resume($scope78_id, "b")}</span>${_el_resume($scope78_id, "a")}`);
4804
- writeScope($scope78_id, {});
5143
+ const $scope79_id = _scope_id();
5144
+ _html(`<span${_attr_class("_bB")}${_attr("title", h.description)}>${_escape(h.description)}${_el_resume($scope79_id, "b")}</span>${_el_resume($scope79_id, "a")}`);
5145
+ writeScope($scope79_id, {});
4805
5146
  return 1;
4806
5147
  }
4807
- }, $scope21_id, "e", 1, 1, 1, 0, 1);
5148
+ }, $scope22_id, "e", 1, 1, 1, 0, 1);
4808
5149
  _html("</div>");
4809
5150
  _if(() => {
4810
5151
  if (!active.has(h.name)) {
4811
- const $scope32_id = _scope_id();
5152
+ const $scope33_id = _scope_id();
4812
5153
  _if(() => {
4813
5154
  if (h.installed) {
4814
- const $scope79_id = _scope_id();
5155
+ const $scope80_id = _scope_id();
4815
5156
  _html(`<span${_attr_class("_I")}>installed</span>`);
4816
- writeScope($scope79_id, {});
5157
+ writeScope($scope80_id, {});
4817
5158
  return 0;
4818
5159
  } else {
4819
- const $scope33_id = _scope_id();
4820
- _html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope33_id, "a")}<button${_attr_class(btnSm)} title="Install a specific version">@…</button>${_el_resume($scope33_id, "b")}`);
4821
- _script($scope33_id, "u48");
4822
- writeScope($scope33_id, {});
5160
+ const $scope34_id = _scope_id();
5161
+ _html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope34_id, "a")}<button${_attr_class(btnSm)} title="Install a specific version">@…</button>${_el_resume($scope34_id, "b")}`);
5162
+ _script($scope34_id, "u51");
5163
+ writeScope($scope34_id, {});
4823
5164
  return 1;
4824
5165
  }
4825
- }, $scope32_id, "a");
4826
- writeScope($scope32_id, {});
5166
+ }, $scope33_id, "a");
5167
+ writeScope($scope33_id, {});
4827
5168
  return 0;
4828
5169
  }
4829
- }, $scope21_id, "f");
5170
+ }, $scope22_id, "f");
4830
5171
  _html("</li>");
4831
- _subscribe($active__closures, writeScope($scope21_id, {
5172
+ _subscribe($active__closures, writeScope($scope22_id, {
4832
5173
  i: h?.name,
4833
5174
  k: h?.description,
4834
5175
  m: h?.installed,
4835
- Cdx: 3
5176
+ Cdx: 4
4836
5177
  }));
4837
- }, "name", $scope20_id, "a", 1, 1, 1, "</ul>", 1);
4838
- _subscribe($hits__closures, writeScope($scope20_id, {}));
5178
+ }, "name", $scope21_id, "a", 1, 1, 1, "</ul>", 1);
5179
+ _subscribe($hits__closures, writeScope($scope21_id, {}));
4839
5180
  return 0;
4840
5181
  } else if (hits && !searching) {
4841
- const $scope35_id = _scope_id();
4842
- _html(`<p${_attr_class("_bu")}>No tools match "<!>${_escape(query)}${_el_resume($scope35_id, "b")}".</p>`);
4843
- _subscribe($query__closures, writeScope($scope35_id, {}));
5182
+ const $scope36_id = _scope_id();
5183
+ _html(`<p${_attr_class("_bD")}>No tools match "<!>${_escape(query)}${_el_resume($scope36_id, "b")}".</p>`);
5184
+ _subscribe($query__closures, writeScope($scope36_id, {}));
4844
5185
  return 1;
4845
5186
  }
4846
- }, $scope19_id, "d", 1, 1, 1, 0, 1);
5187
+ }, $scope20_id, "d", 1, 1, 1, 0, 1);
4847
5188
  _html("</div>");
4848
- _script($scope19_id, "u49");
4849
- writeScope($scope19_id, {});
5189
+ _script($scope20_id, "u52");
5190
+ writeScope($scope20_id, {});
4850
5191
  return 0;
4851
5192
  }
4852
5193
  }, $scope0_id, "ac", 1, 1, 1, 0, 1);
4853
- _html(`</section><section${_attr_class("_bj")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_bk")}><h2${_attr("id", appearanceId)}${_attr_class("_by")}>Appearance</h2></div><div${_attr_class(["_bo", "_cx"])}><label${_attr_class("_cy")}><span${_attr_class("_cz")}>Name</span><input${_attr_input_value($scope0_id, "aj", input.instance.name, _resume(function(v) {
5194
+ _html(`</section><section${_attr_class("_bs")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_bt")}><h2${_attr("id", appearanceId)}${_attr_class("_bH")}>Appearance</h2></div><div${_attr_class(["_bx", "_cz"])}><label${_attr_class("_cA")}><span${_attr_class("_cB")}>Name</span><input${_attr_input_value($scope0_id, "aj", input.instance.name, _resume(function(v) {
4854
5195
  setInstance({ name: v });
4855
- }, "u3", $scope0_id))}${_attr_class(["_U", "_cA"])} type=text placeholder=work maxlength=32 autocomplete=off spellcheck=false aria-describedby=look-name-hint>${_el_resume($scope0_id, "aj")}<span id=look-name-hint${_attr_class(["_S", "_cB"])}>Tab title, home-screen icon, and notifications.</span></label><div${_attr_class("_cy")} role=radiogroup aria-label="Color theme"><span${_attr_class("_cz")}>Theme</span><span${_attr_class("_cC")}>`);
5196
+ }, "u3", $scope0_id))}${_attr_class(["_U", "_cC"])} type=text placeholder=work maxlength=32 autocomplete=off spellcheck=false aria-describedby=look-name-hint>${_el_resume($scope0_id, "aj")}<span id=look-name-hint${_attr_class(["_S", "_cD"])}>Tab title, home-screen icon, and notifications.</span></label><div${_attr_class("_cA")} role=radiogroup aria-label="Color theme"><span${_attr_class("_cB")}>Theme</span><span${_attr_class("_cE")}>`);
4856
5197
  _for_of([
4857
5198
  {
4858
5199
  id: "system",
@@ -4867,23 +5208,23 @@ var settings_page_default = _template("u", (input) => {
4867
5208
  label: "Dark"
4868
5209
  }
4869
5210
  ], (opt) => {
4870
- const $scope42_id = _scope_id();
4871
- _html(`<button type=button${_attr_class(["_cD", { ["_cE"]: themeMode === opt.id }])} role=radio aria-checked=${themeMode === opt.id ? "true" : "false"}>${_escape(opt.label)}</button>${_el_resume($scope42_id, "a")}`);
4872
- _script($scope42_id, "u50");
4873
- writeScope($scope42_id, {
5211
+ const $scope43_id = _scope_id();
5212
+ _html(`<button type=button${_attr_class(["_cF", { ["_cG"]: themeMode === opt.id }])} role=radio aria-checked=${themeMode === opt.id ? "true" : "false"}>${_escape(opt.label)}</button>${_el_resume($scope43_id, "a")}`);
5213
+ _script($scope43_id, "u53");
5214
+ writeScope($scope43_id, {
4874
5215
  e: opt?.id,
4875
5216
  _: _scope_with_id($scope0_id)
4876
5217
  });
4877
5218
  }, "id", $scope0_id, "an", 1, 0, 1, 0, 1);
4878
- _html(`</span><span${_attr_class(["_S", "_cB"])}>Follow the OS, or force light or dark.</span></div><div${_attr_class("_cy")} role=radiogroup aria-label="Accent colour"><span${_attr_class("_cz")}>Accent</span><span${_attr_class("_cJ")}><button type=button${_attr_class([
4879
- "_cK",
5219
+ _html(`</span><span${_attr_class(["_S", "_cD"])}>Follow the OS, or force light or dark.</span></div><div${_attr_class("_cA")} role=radiogroup aria-label="Accent colour"><span${_attr_class("_cB")}>Accent</span><span${_attr_class("_cL")}><button type=button${_attr_class([
4880
5220
  "_cM",
4881
- { ["_cL"]: !input.instance.accent }
5221
+ "_cO",
5222
+ { ["_cN"]: !input.instance.accent }
4882
5223
  ])} role=radio aria-checked=${!input.instance.accent ? "true" : "false"} title="Default (blue)" aria-label="Default (blue)"></button>${_el_resume($scope0_id, "as")}`);
4883
5224
  _for_of(ACCENT_PRESETS, (p) => {
4884
5225
  const $scope4_id = _scope_id();
4885
- _html(`<button type=button${_attr_class(["_cK", { ["_cL"]: 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")}`);
4886
- _script($scope4_id, "u51");
5226
+ _html(`<button type=button${_attr_class(["_cM", { ["_cN"]: 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")}`);
5227
+ _script($scope4_id, "u54");
4887
5228
  writeScope($scope4_id, {
4888
5229
  d: p?.value,
4889
5230
  _: _scope_with_id($scope0_id)
@@ -4891,17 +5232,17 @@ var settings_page_default = _template("u", (input) => {
4891
5232
  }, "value", $scope0_id, "at", $sg__input_instance_accent, 0, 1, 0, 1);
4892
5233
  const customOn = !!input.instance.accent && !ACCENT_PRESETS.some((p) => p.value === input.instance.accent);
4893
5234
  _html(`<label${_attr_class([
4894
- "_cK",
4895
- "_cN",
4896
- { ["_cL"]: customOn }
5235
+ "_cM",
5236
+ "_cP",
5237
+ { ["_cN"]: customOn }
4897
5238
  ])}${customOn ? _attr_style(`--swatch:${input.instance.accent}`) : ""} title="Custom colour"><input${_attr_input_value($scope0_id, "av", input.instance.accent || "#3556d8", _resume(function(v) {
4898
5239
  setInstance({ accent: v });
4899
- }, "u4", $scope0_id))}${_attr_class("_cO")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "av")}<span aria-hidden=true>+</span></label>${_el_resume($scope0_id, "au", $sg__input_instance_accent)}</span><span${_attr_class(["_S", "_cB"])}>Selected rows, buttons, and the icon.</span></div></div></section></div></div></div>`);
5240
+ }, "u4", $scope0_id))}${_attr_class("_cQ")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "av")}<span aria-hidden=true>+</span></label>${_el_resume($scope0_id, "au", $sg__input_instance_accent)}</span><span${_attr_class(["_S", "_cD"])}>Selected rows, buttons, and the icon.</span></div></div></section></div></div></div>`);
4900
5241
  _if(() => {
4901
5242
  if (versionPick) {
4902
- const $scope29_id = _scope_id();
5243
+ const $scope30_id = _scope_id();
4903
5244
  _set_serialize_reason(14);
4904
- const $childScope10 = _peek_scope_id();
5245
+ const $childScope11 = _peek_scope_id();
4905
5246
  prompt_dialog_default({
4906
5247
  label: `Pin ${versionPick.label}: latest, lts, a prefix (22), or exact (22.11.0)`,
4907
5248
  placeholder: "latest",
@@ -4910,19 +5251,19 @@ var settings_page_default = _template("u", (input) => {
4910
5251
  open: versionPick != null,
4911
5252
  openChange: _resume(function(o) {
4912
5253
  if (!o) versionPick = null;
4913
- }, "u26", $scope29_id),
5254
+ }, "u29", $scope30_id),
4914
5255
  onSubmit: _resume(function(v) {
4915
5256
  const pick = versionPick;
4916
5257
  versionPick = null;
4917
5258
  run(pick.id, "install", v);
4918
- }, "u27", $scope29_id)
5259
+ }, "u30", $scope30_id)
4919
5260
  });
4920
- writeScope($scope29_id, { a: _existing_scope($childScope10) });
5261
+ writeScope($scope30_id, { a: _existing_scope($childScope11) });
4921
5262
  return 0;
4922
5263
  }
4923
5264
  }, $scope0_id, "ax", 1, 1, 1, 0, 1);
4924
- _script($scope0_id, "u52");
4925
- _script($scope0_id, "u53");
5265
+ _script($scope0_id, "u55");
5266
+ _script($scope0_id, "u56");
4926
5267
  writeScope($scope0_id, {
4927
5268
  b1: input.setupChange,
4928
5269
  b2: input.agentsChange,
@@ -4997,9 +5338,11 @@ var settings_page_default = _template("u", (input) => {
4997
5338
  p: _existing_scope($childScope3),
4998
5339
  dx: $active__closures,
4999
5340
  dq: $si__input_preferred && $input_preferred__closures,
5000
- ej: $accountsFor2__closures,
5341
+ ek: $accountsFor2__closures,
5001
5342
  dz: $authCodes__closures,
5002
5343
  e0: $confirmingRemove__closures,
5344
+ ee: $si__input_setupChange && $refresh2__closures,
5345
+ ef: $run2__closures,
5003
5346
  e8: $self_install__closures,
5004
5347
  e7: $hits__closures,
5005
5348
  e6: $query__closures
@@ -5008,13 +5351,13 @@ var settings_page_default = _template("u", (input) => {
5008
5351
  });
5009
5352
  //#endregion
5010
5353
  //#region src/tags/new-workspace.css.ts
5011
- var content$1 = "_bI _bB";
5012
- var section$1 = "_bM _bj";
5354
+ var content$1 = "_bI _bk";
5355
+ var section$1 = "_bM _bs";
5013
5356
  var curBase = "_bR _T _S";
5014
- var archived = "_bW _bj";
5357
+ var archived = "_bW _bs";
5015
5358
  var archivedHint = "_bX _S";
5016
- var archivedCard = "_bY _bo";
5017
- var resultBranch = "_c7 _Z _j";
5359
+ var archivedCard = "_bY _bx";
5360
+ var resultBranch = "_cZ _Z _j";
5018
5361
  //#endregion
5019
5362
  //#region src/tags/branch-pick.marko
5020
5363
  var branch_pick_default = _template("d", (input) => {
@@ -5025,11 +5368,11 @@ var branch_pick_default = _template("d", (input) => {
5025
5368
  let branches = null;
5026
5369
  let defaultBranch = null;
5027
5370
  let branchFilter = "";
5028
- _html(`<div${_attr_class("_c9")}>`);
5371
+ _html(`<div${_attr_class("_c1")}>`);
5029
5372
  _if(() => {
5030
5373
  {
5031
5374
  const $scope4_id = _scope_id();
5032
- _html(`<p${_attr_class("_bu")}><span${_attr_class("_F")}></span> Loading branches…</p>`);
5375
+ _html(`<p${_attr_class("_bD")}><span${_attr_class("_F")}></span> Loading branches…</p>`);
5033
5376
  writeScope($scope4_id, {});
5034
5377
  return 0;
5035
5378
  }
@@ -5052,6 +5395,7 @@ var branch_pick_default = _template("d", (input) => {
5052
5395
  //#endregion
5053
5396
  //#region src/tags/repo-picker.marko
5054
5397
  var api$5;
5398
+ var prefs$1;
5055
5399
  var repo_picker_default = _template("s", (input) => {
5056
5400
  const $scope0_reason = _scope_reason(), $si__input_onError = _serialize_if($scope0_reason, 2);
5057
5401
  const $scope0_id = _scope_id();
@@ -5099,99 +5443,125 @@ var repo_picker_default = _template("s", (input) => {
5099
5443
  branchesFor = branchesFor === fullName ? null : fullName;
5100
5444
  if (fullName !== pasted) pasteWillFork = false;
5101
5445
  }, "s6", $scope0_id);
5102
- _html(`<div${_attr_class("_c1")}><label${_attr_class("_W")}>`);
5446
+ let ssoIgnoreTick = 0;
5447
+ const ssoPending = (() => {
5448
+ const ignored = new Set(prefs$1?.ignoredSsoOrgs?.() ?? []);
5449
+ return (catalog?.sso || []).filter((s) => !ignored.has(s.org));
5450
+ })();
5451
+ _html(`<div${_attr_class("_cS")}>`);
5452
+ _if(() => {
5453
+ if (ssoPending.length) {
5454
+ const $scope7_id = _scope_id();
5455
+ _html(`<div${_attr_class("_cT")}>`);
5456
+ _set_serialize_reason(12);
5457
+ const $childScope = _peek_scope_id();
5458
+ sso_auth_default({
5459
+ items: ssoPending,
5460
+ onChange: _resume(function() {
5461
+ ssoIgnoreTick++;
5462
+ }, "s7", $scope7_id),
5463
+ onDone: _resume(function() {
5464
+ loadCatalog(true);
5465
+ }, "s8", $scope7_id)
5466
+ });
5467
+ _html("</div>");
5468
+ writeScope($scope7_id, { b: _existing_scope($childScope) });
5469
+ return 0;
5470
+ }
5471
+ }, $scope0_id, "b", 1, 1, 1, 0, 1);
5472
+ _html(`<label${_attr_class("_W")}>`);
5103
5473
  icon_search_default({
5104
5474
  size: 14,
5105
5475
  class: "_X"
5106
5476
  });
5107
- _html(`<input${_attr_input_value($scope0_id, "d", filter, _resume(function(v) {
5477
+ _html(`<input${_attr_input_value($scope0_id, "e", filter, _resume(function(v) {
5108
5478
  filter = v;
5109
5479
  highlight = 0;
5110
5480
  pasteWillFork = false;
5111
- }, "s0", $scope0_id))}${_attr_class([inputLg, "_Y"])} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input.disabled)}>${_el_resume($scope0_id, "d")}</label>`);
5481
+ }, "s0", $scope0_id))}${_attr_class([inputLg, "_Y"])} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input.disabled)}>${_el_resume($scope0_id, "e")}</label>`);
5112
5482
  _if(() => {
5113
5483
  if (pasted) {
5114
5484
  const $scope1_id = _scope_id();
5115
- _html(`<ul${_attr_class("_c2")}><li><div${_attr_class(["_c4", "_c3"])}><button${_attr_class("_c5")}${pasteWillFork ? _attr("title", `Fork ${pasted} to your account and add the fork`) : _attr("title", `Add ${pasted} as-is (pushes go to that repo)`)}>`);
5485
+ _html(`<ul${_attr_class("_cU")}><li><div${_attr_class(["_cW", "_cV"])}><button${_attr_class("_cX")}${pasteWillFork ? _attr("title", `Fork ${pasted} to your account and add the fork`) : _attr("title", `Add ${pasted} as-is (pushes go to that repo)`)}>`);
5116
5486
  icon_plus_default({
5117
5487
  size: 12,
5118
- class: "_da"
5488
+ class: "_c3"
5119
5489
  });
5120
- _html(`<span${_attr_class("_db")}>${_escape(repoLabel(pasted))}${_el_resume($scope1_id, "f")}</span></button>${_el_resume($scope1_id, "c")}`);
5490
+ _html(`<span${_attr_class("_c4")}>${_escape(repoLabel(pasted))}${_el_resume($scope1_id, "f")}</span></button>${_el_resume($scope1_id, "c")}`);
5121
5491
  _if(() => {
5122
5492
  if (pastedForkable) {
5123
- const $scope7_id = _scope_id();
5124
- _html(`<button${_attr_class(["_c8", { ["_c6"]: 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"}>${pasteWillFork ? "✓ fork" : "Fork"}${_el_resume($scope7_id, "b")}</button>${_el_resume($scope7_id, "a")}`);
5125
- _script($scope7_id, "s11");
5126
- _subscribe($pasteWillFork__closures, _subscribe($pasted__closures, writeScope($scope7_id, { Cah: 1 })));
5493
+ const $scope8_id = _scope_id();
5494
+ _html(`<button${_attr_class(["_c0", { ["_cY"]: 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"}>${pasteWillFork ? "✓ fork" : "Fork"}${_el_resume($scope8_id, "b")}</button>${_el_resume($scope8_id, "a")}`);
5495
+ _script($scope8_id, "s13");
5496
+ _subscribe($pasteWillFork__closures, _subscribe($pasted__closures, writeScope($scope8_id, { Cao: 1 })));
5127
5497
  return 0;
5128
5498
  }
5129
5499
  }, $scope1_id, "g", 1, 1, 1, 0, 1);
5130
- _html(`<button${_attr_class([resultBranch, { ["_c6"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>⎇</button>${_el_resume($scope1_id, "h")}</div>`);
5500
+ _html(`<button${_attr_class([resultBranch, { ["_cY"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>⎇</button>${_el_resume($scope1_id, "h")}</div>`);
5131
5501
  _if(() => {
5132
5502
  if (branchesFor === pasted) {
5133
5503
  const $scope2_id = _scope_id();
5134
- const $childScope = _peek_scope_id();
5504
+ const $childScope2 = _peek_scope_id();
5135
5505
  branch_pick_default({
5136
5506
  repo: pasted,
5137
5507
  onPick: _resume(function(branch, isDefault) {
5138
5508
  pick(pasted, isDefault ? void 0 : branch, pastedFork(pasteWillFork));
5139
- }, "s7", $scope2_id),
5509
+ }, "s9", $scope2_id),
5140
5510
  onError: _resume(function(message) {
5141
5511
  branchesFor = null;
5142
5512
  input.onError?.(message);
5143
- }, "s8", $scope2_id)
5513
+ }, "s10", $scope2_id)
5144
5514
  });
5145
- _subscribe($pasted__closures, _subscribe($si__input_onError && $input_onError__closures, writeScope($scope2_id, { a: _existing_scope($childScope) })));
5515
+ _subscribe($pasted__closures, _subscribe($si__input_onError && $input_onError__closures, writeScope($scope2_id, { a: _existing_scope($childScope2) })));
5146
5516
  return 0;
5147
5517
  }
5148
5518
  }, $scope1_id, "i", 1, 1, 1, 0, 1);
5149
5519
  _html("</li></ul>");
5150
- _script($scope1_id, "s12");
5520
+ _script($scope1_id, "s14");
5151
5521
  writeScope($scope1_id, {});
5152
5522
  return 0;
5153
5523
  } else if (filter && !catalog) {
5154
- const $scope8_id = _scope_id();
5155
- _html(`<p${_attr_class("_bu")}>Loading repos…</p>`);
5156
- writeScope($scope8_id, {});
5524
+ const $scope9_id = _scope_id();
5525
+ _html(`<p${_attr_class("_bD")}>Loading repos…</p>`);
5526
+ writeScope($scope9_id, {});
5157
5527
  return 1;
5158
5528
  }
5159
- }, $scope0_id, "e", 1, 1, 1, 0, 1);
5529
+ }, $scope0_id, "f", 1, 1, 1, 0, 1);
5160
5530
  _if(() => {
5161
5531
  if (results.length) {
5162
5532
  const $scope3_id = _scope_id();
5163
- _html(`<ul${_attr_class("_c2")}>`);
5533
+ _html(`<ul${_attr_class("_cU")}>`);
5164
5534
  _for_of(results, (repo, i) => {
5165
5535
  const $scope4_id = _scope_id();
5166
- _html(`<li><div${_attr_class(["_c4", { ["_c3"]: i === highlight }])}><button${_attr_class("_c5")}>`);
5536
+ _html(`<li><div${_attr_class(["_cW", { ["_cV"]: i === highlight }])}><button${_attr_class("_cX")}>`);
5167
5537
  icon_plus_default({
5168
5538
  size: 12,
5169
- class: "_da"
5539
+ class: "_c3"
5170
5540
  });
5171
- _html(`<span${_attr_class("_db")}>${_escape(repoLabel(repo.nameWithOwner))}${_el_resume($scope4_id, "e")}</span></button>${_el_resume($scope4_id, "b")}<button${_attr_class([resultBranch, { ["_c6"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>⎇</button>${_el_resume($scope4_id, "f")}</div>${_el_resume($scope4_id, "a")}`);
5541
+ _html(`<span${_attr_class("_c4")}>${_escape(repoLabel(repo.nameWithOwner))}${_el_resume($scope4_id, "e")}</span></button>${_el_resume($scope4_id, "b")}<button${_attr_class([resultBranch, { ["_cY"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>⎇</button>${_el_resume($scope4_id, "f")}</div>${_el_resume($scope4_id, "a")}`);
5172
5542
  _if(() => {
5173
5543
  if (branchesFor === repo.nameWithOwner) {
5174
5544
  const $scope5_id = _scope_id();
5175
- const $childScope2 = _peek_scope_id();
5545
+ const $childScope3 = _peek_scope_id();
5176
5546
  branch_pick_default({
5177
5547
  repo: repo.nameWithOwner,
5178
5548
  onPick: _resume(function(branch, isDefault) {
5179
5549
  pick(repo.nameWithOwner, isDefault ? void 0 : branch);
5180
- }, "s9", $scope5_id),
5550
+ }, "s11", $scope5_id),
5181
5551
  onError: _resume(function(message) {
5182
5552
  branchesFor = null;
5183
5553
  input.onError?.(message);
5184
- }, "s10", $scope5_id)
5554
+ }, "s12", $scope5_id)
5185
5555
  });
5186
5556
  _subscribe($si__input_onError && $input_onError__closures, writeScope($scope5_id, {
5187
- a: _existing_scope($childScope2),
5188
- Cad: $si__input_onError && 1
5557
+ a: _existing_scope($childScope3),
5558
+ Caj: $si__input_onError && 1
5189
5559
  }));
5190
5560
  return 0;
5191
5561
  }
5192
5562
  }, $scope4_id, "g", 1, 1, 1, 0, 1);
5193
5563
  _html("</li>");
5194
- _script($scope4_id, "s13");
5564
+ _script($scope4_id, "s15");
5195
5565
  _subscribe($branchesFor__closures, _subscribe($highlight__closures, writeScope($scope4_id, {
5196
5566
  j: repo?.nameWithOwner,
5197
5567
  l: i
@@ -5201,41 +5571,44 @@ var repo_picker_default = _template("s", (input) => {
5201
5571
  return 0;
5202
5572
  } else if (filter && catalog && !pasted) {
5203
5573
  const $scope6_id = _scope_id();
5204
- _html(`<p${_attr_class("_bu")}>No repos match "<!>${_escape(filter)}${_el_resume($scope6_id, "b")}". Paste a clone URL to add any repo.</p>`);
5574
+ _html(`<p${_attr_class("_bD")}>No repos match "<!>${_escape(filter)}${_el_resume($scope6_id, "b")}". Paste a clone URL to add any repo.</p>`);
5205
5575
  writeScope($scope6_id, {});
5206
5576
  return 1;
5207
5577
  }
5208
- }, $scope0_id, "f", 1, 1, 1, 0, 1);
5578
+ }, $scope0_id, "g", 1, 1, 1, 0, 1);
5209
5579
  _html("</div>");
5210
5580
  const $return = _resume(() => loadCatalog(true), "s1", $scope0_id);
5211
- _script($scope0_id, "s14");
5212
- _script($scope0_id, "s15");
5581
+ _script($scope0_id, "s16");
5582
+ _script($scope0_id, "s17");
5213
5583
  writeScope($scope0_id, {
5214
- i: _serialize_if($scope0_reason, 1) && input.refreshing,
5215
- j: _serialize_if($scope0_reason, 0) && input.refreshingChange,
5216
- l: input.onError,
5217
- m: input.exclude,
5218
- n: input.onPick,
5219
- r: catalog,
5220
- s: catalog?.repos,
5221
- u: filter,
5222
- v: highlight,
5223
- w: loadCatalog,
5224
- x: excluded,
5225
- a0: results,
5226
- a2: pasted,
5227
- a6: pastedForkable,
5228
- a7: branchesFor,
5229
- a9: pasteWillFork,
5230
- aa: pick,
5231
- ab: pastedFork,
5232
- ac: toggleBranches,
5233
- q: input.refreshingChange || void 0,
5234
- ah: $pasted__closures,
5235
- ak: $pasteWillFork__closures,
5236
- ad: $si__input_onError && $input_onError__closures,
5237
- af: $highlight__closures,
5238
- aj: $branchesFor__closures
5584
+ j: _serialize_if($scope0_reason, 1) && input.refreshing,
5585
+ k: _serialize_if($scope0_reason, 0) && input.refreshingChange,
5586
+ m: input.onError,
5587
+ n: input.exclude,
5588
+ o: input.onPick,
5589
+ s: catalog,
5590
+ t: catalog?.repos,
5591
+ v: catalog?.sso,
5592
+ w: filter,
5593
+ x: highlight,
5594
+ y: loadCatalog,
5595
+ z: excluded,
5596
+ a2: results,
5597
+ a4: pasted,
5598
+ a8: pastedForkable,
5599
+ a9: branchesFor,
5600
+ ab: pasteWillFork,
5601
+ ac: pick,
5602
+ ad: pastedFork,
5603
+ ae: toggleBranches,
5604
+ af: ssoIgnoreTick,
5605
+ ah: ssoPending,
5606
+ r: input.refreshingChange || void 0,
5607
+ ao: $pasted__closures,
5608
+ ar: $pasteWillFork__closures,
5609
+ aj: $si__input_onError && $input_onError__closures,
5610
+ al: $highlight__closures,
5611
+ aq: $branchesFor__closures
5239
5612
  });
5240
5613
  _resume_branch($scope0_id);
5241
5614
  return $return;
@@ -5339,7 +5712,7 @@ var new_workspace_default = _template("p", (input) => {
5339
5712
  }
5340
5713
  }, "p6", $scope0_id);
5341
5714
  const titleId = _id();
5342
- _html(`<div${_attr_class("_bz")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bA")}><div${_attr_class(content$1)}>`);
5715
+ _html(`<div${_attr_class("_bi")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bj")}><div${_attr_class(content$1)}>`);
5343
5716
  _set_serialize_reason({
5344
5717
  0: _serialize_guard($scope0_reason, 2),
5345
5718
  1: $sg__input_backHref__OR__input_onExit,
@@ -5378,9 +5751,9 @@ var new_workspace_default = _template("p", (input) => {
5378
5751
  return 0;
5379
5752
  }
5380
5753
  }, $scope0_id, "e", 1, 1, 1, 0, 1);
5381
- _html(`<label${_attr_class("_bL")}><span${_attr_class("_by")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
5754
+ _html(`<label${_attr_class("_bL")}><span${_attr_class("_bH")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
5382
5755
  name = _new_name;
5383
- }, "p0", $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("_bN")}><h2${_attr_class("_by")}>Repos</h2><button${_attr_class(iconBtnRow)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
5756
+ }, "p0", $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("_bN")}><h2${_attr_class("_bH")}>Repos</h2><button${_attr_class(iconBtnRow)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
5384
5757
  _set_serialize_reason(1);
5385
5758
  const $childScope2 = _peek_scope_id();
5386
5759
  icon_refresh_default({
@@ -5437,7 +5810,7 @@ var new_workspace_default = _template("p", (input) => {
5437
5810
  _if(() => {
5438
5811
  if (!selected.length) {
5439
5812
  const $scope12_id = _scope_id();
5440
- _html(`<li${_attr_class("_bu")}>No repos yet. Search below to add one, or create it empty.</li>`);
5813
+ _html(`<li${_attr_class("_bD")}>No repos yet. Search below to add one, or create it empty.</li>`);
5441
5814
  writeScope($scope12_id, {});
5442
5815
  return 0;
5443
5816
  }
@@ -5504,10 +5877,10 @@ var new_workspace_default = _template("p", (input) => {
5504
5877
  _if(() => {
5505
5878
  if (archived$1.length) {
5506
5879
  const $scope4_id = _scope_id();
5507
- _html(`<section${_attr_class(archived)}><div${_attr_class("_bN")}><h2${_attr_class("_by")}>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("_bm")}>`);
5880
+ _html(`<section${_attr_class(archived)}><div${_attr_class("_bN")}><h2${_attr_class("_bH")}>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("_bv")}>`);
5508
5881
  _for_of(archived$1, (ws) => {
5509
5882
  const $scope5_id = _scope_id();
5510
- _html(`<li${_attr_class(archivedCard)}><div${_attr_class("_bp")}><span${_attr_class("_bq")}>${_escape(ws.name)}${_el_resume($scope5_id, "d", $sg__input_workspaces)}</span><span${_attr_class([metaTrunc, "_x"])}${_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)}>`);
5883
+ _html(`<li${_attr_class(archivedCard)}><div${_attr_class("_by")}><span${_attr_class("_bz")}>${_escape(ws.name)}${_el_resume($scope5_id, "d", $sg__input_workspaces)}</span><span${_attr_class([metaTrunc, "_x"])}${_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)}>`);
5511
5884
  _if(() => {
5512
5885
  if (restoring === ws.id) {
5513
5886
  const $scope15_id = _scope_id();
@@ -5652,9 +6025,9 @@ function activeAgent(session) {
5652
6025
  const command = session.state?.command?.trim();
5653
6026
  return command && agentFromCommand(command) || session.agent;
5654
6027
  }
5655
- var iconBtn$1 = "_dg _j";
5656
- var navToggle = "_dl _j";
5657
- _template("H", (input) => {
6028
+ var iconBtn$1 = "_dj _j";
6029
+ var navToggle = "_do _j";
6030
+ _template("I", (input) => {
5658
6031
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
5659
6032
  const $scope0_id = _scope_id();
5660
6033
  _set_serialize_reason({
@@ -5671,7 +6044,7 @@ _template("H", (input) => {
5671
6044
  });
5672
6045
  //#endregion
5673
6046
  //#region src/tags/icons/icon-settings.marko
5674
- var icon_settings_default = _template("U", (input) => {
6047
+ var icon_settings_default = _template("V", (input) => {
5675
6048
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
5676
6049
  const $scope0_id = _scope_id();
5677
6050
  _set_serialize_reason({
@@ -5696,12 +6069,12 @@ var ARM_MS = 3500;
5696
6069
  function disarmLater(fn) {
5697
6070
  return setTimeout(fn, ARM_MS);
5698
6071
  }
5699
- var railBtn = "_f7 _j";
5700
- var rowIcon = "_gf _Z _j";
5701
- var close = "_gg _Z _j _2";
6072
+ var railBtn = "_gk _j";
6073
+ var rowIcon = "_gt _Z _j";
6074
+ var close = "_gu _Z _j _2";
5702
6075
  //#endregion
5703
6076
  //#region src/styles/session-pop.css.ts
5704
- var sessionPop = "_fM _4";
6077
+ var sessionPop = "_gg _4";
5705
6078
  //#endregion
5706
6079
  //#region src/client/usage.ts
5707
6080
  /** The plan row an agent instance draws on: its own account (`claude2`)
@@ -5715,7 +6088,7 @@ function usageFor(agentId, usage) {
5715
6088
  }
5716
6089
  //#endregion
5717
6090
  //#region src/tags/icons/icon-diff.marko
5718
- var icon_diff_default = _template("K", (input) => {
6091
+ var icon_diff_default = _template("L", (input) => {
5719
6092
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
5720
6093
  const $scope0_id = _scope_id();
5721
6094
  _set_serialize_reason({
@@ -5732,7 +6105,7 @@ var icon_diff_default = _template("K", (input) => {
5732
6105
  });
5733
6106
  //#endregion
5734
6107
  //#region src/tags/icons/icon-manage.marko
5735
- var icon_manage_default = _template("Q", (input) => {
6108
+ var icon_manage_default = _template("R", (input) => {
5736
6109
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
5737
6110
  const $scope0_id = _scope_id();
5738
6111
  _set_serialize_reason({
@@ -5753,7 +6126,7 @@ function pctText(pct) {
5753
6126
  const rounded = Math.round(pct);
5754
6127
  return rounded !== pct && (rounded === 100 || rounded === 0) ? `${pct.toFixed(1)}%` : `${rounded}%`;
5755
6128
  }
5756
- var usage_pcts_default = _template("C", (input) => {
6129
+ var usage_pcts_default = _template("D", (input) => {
5757
6130
  const $scope0_reason = _scope_reason(), $sg__input_agent = _serialize_guard($scope0_reason, 1), $si__input_agent = _serialize_if($scope0_reason, 1), $sg__input_agent__OR__input_class = _serialize_guard($scope0_reason, 0), $si__input_agent__OR__input_class = _serialize_if($scope0_reason, 0);
5758
6131
  const $scope0_id = _scope_id();
5759
6132
  const agent = input.agent;
@@ -5762,22 +6135,22 @@ var usage_pcts_default = _template("C", (input) => {
5762
6135
  if (windows.length) {
5763
6136
  const $scope1_id = _scope_id();
5764
6137
  _html(`<span${_attr_class([
5765
- "_e8",
6138
+ "_fl",
5766
6139
  input.class,
5767
- { ["_e9"]: agent.stale_seconds != null }
6140
+ { ["_fm"]: agent.stale_seconds != null }
5768
6141
  ])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
5769
6142
  _for_of(windows, (win$1, i) => {
5770
6143
  const $scope2_id = _scope_id();
5771
- _html(`<span${_attr_class("_e_")}>`);
6144
+ _html(`<span${_attr_class("_fn")}>`);
5772
6145
  _if(() => {
5773
6146
  if (i) {
5774
6147
  const $scope3_id = _scope_id();
5775
- _html(`<span${_attr_class("_fc")} aria-hidden=true>·</span>`);
6148
+ _html(`<span${_attr_class("_fq")} aria-hidden=true>·</span>`);
5776
6149
  $si__input_agent && writeScope($scope3_id, {});
5777
6150
  return 0;
5778
6151
  }
5779
6152
  }, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
5780
- _html(`<span${_attr_class("_fa")}>${_escape(win$1.window)}${_el_resume($scope2_id, "d", $sg__input_agent)}</span><span${_attr_class(["_fb", win$1.used_percent >= 90 ? "_e4" : win$1.used_percent >= 70 ? "_e3" : win$1.used_percent >= 40 ? "_e2" : "_e1"])}>${_escape(pctText(win$1.used_percent))}${_el_resume($scope2_id, "f", $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
6153
+ _html(`<span${_attr_class("_fo")}>${_escape(win$1.window)}${_el_resume($scope2_id, "d", $sg__input_agent)}</span><span${_attr_class(["_fp", win$1.used_percent >= 90 ? "_fh" : win$1.used_percent >= 70 ? "_fg" : win$1.used_percent >= 40 ? "_ff" : "_fe"])}>${_escape(pctText(win$1.used_percent))}${_el_resume($scope2_id, "f", $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
5781
6154
  $si__input_agent && writeScope($scope2_id, {});
5782
6155
  }, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
5783
6156
  $si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
@@ -5793,7 +6166,7 @@ var usage_pcts_default = _template("C", (input) => {
5793
6166
  });
5794
6167
  //#endregion
5795
6168
  //#region src/tags/icons/icon-edit.marko
5796
- var icon_edit_default = _template("M", (input) => {
6169
+ var icon_edit_default = _template("N", (input) => {
5797
6170
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
5798
6171
  const $scope0_id = _scope_id();
5799
6172
  _set_serialize_reason({
@@ -5808,12 +6181,12 @@ var icon_edit_default = _template("M", (input) => {
5808
6181
  });
5809
6182
  _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
5810
6183
  });
5811
- var prChip = "_g_ _s _g9";
5812
- var portChip = "_ha _s _g9";
6184
+ var prChip = "_hk _s _hj";
6185
+ var portChip = "_hl _s _hj";
5813
6186
  var prState = {
5814
- open: "_he",
5815
- merged: "_hf",
5816
- closed: "_hg"
6187
+ open: "_hp",
6188
+ merged: "_hq",
6189
+ closed: "_hr"
5817
6190
  };
5818
6191
  //#endregion
5819
6192
  //#region src/tags/side-nav-chips.marko
@@ -5861,7 +6234,7 @@ var side_nav_chips_default = _template("v", (input) => {
5861
6234
  const name = repo.full_name.split("/").at(-1);
5862
6235
  return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel(repo.full_name) : name;
5863
6236
  }, "v2", $scope1_id);
5864
- _html(`<div${_attr_class("_g8")}>`);
6237
+ _html(`<div${_attr_class("_hi")}>`);
5865
6238
  _for_of(repos, (repo) => {
5866
6239
  const $scope2_id = _scope_id();
5867
6240
  const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
@@ -5877,11 +6250,11 @@ var side_nav_chips_default = _template("v", (input) => {
5877
6250
  [prState.merged]: pr.state === "MERGED",
5878
6251
  [prState.closed]: pr.state === "CLOSED"
5879
6252
  }
5880
- ])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["_hb", { ["_hi"]: !open }])}${_attr("href", pr.url)} target=_blank rel=noopener>${_escape(repoLabel$1(repo))}${_el_resume($scope3_id, "c", $sg__input_status_repos)}#${_sep($sg__input_status_repos)}${_escape(pr.number)}${_el_resume($scope3_id, "d", $sg__input_status_repos)}</a>${_el_resume($scope3_id, "b", $sg__input_status_repos)}`);
6253
+ ])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["_hm", { ["_ht"]: !open }])}${_attr("href", pr.url)} target=_blank rel=noopener>${_escape(repoLabel$1(repo))}${_el_resume($scope3_id, "c", $sg__input_status_repos)}#${_sep($sg__input_status_repos)}${_escape(pr.number)}${_el_resume($scope3_id, "d", $sg__input_status_repos)}</a>${_el_resume($scope3_id, "b", $sg__input_status_repos)}`);
5881
6254
  _if(() => {
5882
6255
  if (open) {
5883
6256
  const $scope4_id = _scope_id();
5884
- _html(`<a${_attr_class(["_hb", "_hc"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr.number}`)}`)}${_attr("title", `Review #${pr.number} changes`)}>`);
6257
+ _html(`<a${_attr_class(["_hm", "_hn"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr.number}`)}`)}${_attr("title", `Review #${pr.number} changes`)}>`);
5885
6258
  icon_diff_default({ size: 12 });
5886
6259
  _html(`</a>${_el_resume($scope4_id, "a", _serialize_guard($scope0_reason, 0))}`);
5887
6260
  _serialize_if($scope0_reason, 2) && _subscribe($si__input_status_repos && $for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, { _: _scope_with_id($scope3_id) })));
@@ -5889,9 +6262,9 @@ var side_nav_chips_default = _template("v", (input) => {
5889
6262
  } else {
5890
6263
  const $scope6_id = _scope_id();
5891
6264
  _html(`<button type=button${_attr_class([
5892
- "_hb",
5893
- "_hc",
5894
- "_hd"
6265
+ "_hm",
6266
+ "_hn",
6267
+ "_ho"
5895
6268
  ])}${_attr("title", `Dismiss #${pr.number}`)}>`);
5896
6269
  icon_xmark_default({ size: 12 });
5897
6270
  _html(`</button>${_el_resume($scope6_id, "a")}`);
@@ -5916,10 +6289,10 @@ var side_nav_chips_default = _template("v", (input) => {
5916
6289
  }, "full_name", $scope1_id, "b", $sg__input_status_repos, $sg__input_status_repos, $sg__input_status_repos__OR__input_status_ports);
5917
6290
  _for_of(ports, (p) => {
5918
6291
  const $scope5_id = _scope_id();
5919
- _html(`<span${_attr_class(["_s", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["_hb", "_hh"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${p.port}`)}>:${_sep($sg__input_status_ports)}${_escape(p.port)}${_el_resume($scope5_id, "c", $sg__input_status_ports)}</button>${_el_resume($scope5_id, "b")}<button type=button${_attr_class([
5920
- "_hb",
5921
- "_hc",
5922
- "_hd",
6292
+ _html(`<span${_attr_class(["_s", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["_hm", "_hs"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${p.port}`)}>:${_sep($sg__input_status_ports)}${_escape(p.port)}${_el_resume($scope5_id, "c", $sg__input_status_ports)}</button>${_el_resume($scope5_id, "b")}<button type=button${_attr_class([
6293
+ "_hm",
6294
+ "_hn",
6295
+ "_ho",
5923
6296
  { ["_q"]: armedPid === p.pid }
5924
6297
  ])}${armedPid === p.pid ? " title=Kill?" : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
5925
6298
  icon_xmark_default({ size: 12 });
@@ -6011,10 +6384,10 @@ var side_nav_item_default = _template("w", (input) => {
6011
6384
  _if(() => {
6012
6385
  if (input.rail) {
6013
6386
  const $scope2_id = _scope_id();
6014
- _html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_f5"]: 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([
6387
+ _html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_gi"]: 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([
6015
6388
  "_z",
6016
6389
  phase[dot],
6017
- "_f8"
6390
+ "_gl"
6018
6391
  ])}></span>${_el_resume($scope2_id, "c", $sg__input_workspaceId__OR__input_status)}</a>${_el_resume($scope2_id, "a", _serialize_guard($scope0_reason, 3))}`);
6019
6392
  _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) })))));
6020
6393
  return 0;
@@ -6022,15 +6395,15 @@ var side_nav_item_default = _template("w", (input) => {
6022
6395
  const $scope3_id = _scope_id();
6023
6396
  const sessions$1 = input.sessions || [];
6024
6397
  const phaseLabel = dot === "working" ? "Working" : dot === "waiting" ? "Needs input" : dot === "idle" ? "Idle" : "Not running";
6025
- _html(`<section${_attr_class(["_f_", {
6026
- ["_f5"]: input.current,
6398
+ _html(`<section${_attr_class(["_gn", {
6399
+ ["_gi"]: input.current,
6027
6400
  ["_5"]: input.current,
6028
- ["_ga"]: input.railPop,
6029
- ["_f9"]: input.page
6030
- }])}><div${_attr_class("_gb")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class("_gc")}><span${_attr_class([
6401
+ ["_go"]: input.railPop,
6402
+ ["_gm"]: input.page
6403
+ }])}><div${_attr_class("_gp")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class("_gq")}><span${_attr_class([
6031
6404
  "_z",
6032
6405
  phase[dot],
6033
- "_gp"
6406
+ "_gD"
6034
6407
  ])}${_attr("title", phaseLabel)}></span>${_el_resume($scope3_id, "d", $sg__input_workspaceId__OR__input_status)}`);
6035
6408
  _if(() => {
6036
6409
  if (sessions$1.length === 1) {
@@ -6043,7 +6416,7 @@ var side_nav_item_default = _template("w", (input) => {
6043
6416
  icon_agent_default({
6044
6417
  agent: activeAgent(sessions$1[0]),
6045
6418
  size: 12,
6046
- class: "_gh"
6419
+ class: "_gv"
6047
6420
  });
6048
6421
  $si__input_sessions && writeScope($scope14_id, {
6049
6422
  _: _scope_with_id($scope3_id),
@@ -6053,16 +6426,16 @@ var side_nav_item_default = _template("w", (input) => {
6053
6426
  }
6054
6427
  }, $scope3_id, "e", $sg__input_sessions, $sg__input_sessions);
6055
6428
  const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length === 1 ? sessions$1[0].title || "" : `${sessions$1.length} sessions`;
6056
- _html(`<span${_attr_class("_gi")}><span${_attr_class("_gj")}>${_escape(ws$1.name)}${_el_resume($scope3_id, "h", $sg__input_workspaces__OR__input_workspaceId)}</span>`);
6429
+ _html(`<span${_attr_class("_gw")}><span${_attr_class("_gx")}>${_escape(ws$1.name)}${_el_resume($scope3_id, "h", $sg__input_workspaces__OR__input_workspaceId)}</span>`);
6057
6430
  _if(() => {
6058
6431
  if (input.page && metaText) {
6059
6432
  const $scope16_id = _scope_id();
6060
- _html(`<span${_attr_class("_gn")}>${_escape(metaText)}${_el_resume($scope16_id, "b", _serialize_guard($scope0_reason, 7))}</span>`);
6433
+ _html(`<span${_attr_class("_gB")}>${_escape(metaText)}${_el_resume($scope16_id, "b", _serialize_guard($scope0_reason, 7))}</span>`);
6061
6434
  $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) });
6062
6435
  return 0;
6063
6436
  } else if (sessions$1.length === 1 && sessions$1[0].title) {
6064
6437
  const $scope15_id = _scope_id();
6065
- _html(`<span${_attr_class("_gk")}>${_escape(sessions$1[0].title)}${_el_resume($scope15_id, "b", $sg__input_sessions)}</span>`);
6438
+ _html(`<span${_attr_class("_gy")}>${_escape(sessions$1[0].title)}${_el_resume($scope15_id, "b", $sg__input_sessions)}</span>`);
6066
6439
  $si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && writeScope($scope15_id, { _: $si__input_sessions && _scope_with_id($scope3_id) });
6067
6440
  return 1;
6068
6441
  }
@@ -6075,7 +6448,7 @@ var side_nav_item_default = _template("w", (input) => {
6075
6448
  "_I",
6076
6449
  "_R",
6077
6450
  "_K",
6078
- "_go"
6451
+ "_gC"
6079
6452
  ])}>${input.current ? "Open" : ""}${_el_resume($scope4_id, "b", _serialize_guard($scope0_reason, 21))}</span>`);
6080
6453
  $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, {
6081
6454
  _: _scope_with_id($scope3_id),
@@ -6088,7 +6461,7 @@ var side_nav_item_default = _template("w", (input) => {
6088
6461
  _if(() => {
6089
6462
  if (!input.page) {
6090
6463
  const $scope5_id = _scope_id();
6091
- _html(`<div${_attr_class("_gd")}>`);
6464
+ _html(`<div${_attr_class("_gr")}>`);
6092
6465
  _if(() => {
6093
6466
  if (input.onNewSession) {
6094
6467
  const $scope6_id = _scope_id();
@@ -6102,7 +6475,7 @@ var side_nav_item_default = _template("w", (input) => {
6102
6475
  _html(`</button>${_el_resume($scope6_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class(sessionPop)}>`);
6103
6476
  _for_of([], (agent) => {
6104
6477
  const $scope7_id = _scope_id();
6105
- _html(`<button${_attr_class("_fN")}>`);
6478
+ _html(`<button${_attr_class("_gh")}>`);
6106
6479
  _set_serialize_reason(12);
6107
6480
  const $childScope2 = _peek_scope_id();
6108
6481
  icon_agent_default({
@@ -6137,7 +6510,7 @@ var side_nav_item_default = _template("w", (input) => {
6137
6510
  return 0;
6138
6511
  }
6139
6512
  }, $scope5_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
6140
- _html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_f6"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
6513
+ _html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_gj"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
6141
6514
  icon_manage_default({ size: 12 });
6142
6515
  _html(`</a>${_el_resume($scope5_id, "d", _serialize_guard($scope0_reason, 8))}</div>`);
6143
6516
  _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, {
@@ -6147,7 +6520,7 @@ var side_nav_item_default = _template("w", (input) => {
6147
6520
  return 0;
6148
6521
  }
6149
6522
  }, $scope3_id, "k", $sg__input_page, $sg__input_page, 1, 0, 1);
6150
- _html(`</div><div${_attr_class("_gu")}>`);
6523
+ _html(`</div><div${_attr_class("_gI")}>`);
6151
6524
  _if(() => {
6152
6525
  if (sessions$1.length === 1 && openPlan) {
6153
6526
  const $scope11_id = _scope_id();
@@ -6155,7 +6528,7 @@ var side_nav_item_default = _template("w", (input) => {
6155
6528
  const $childScope3 = _peek_scope_id();
6156
6529
  usage_pcts_default({
6157
6530
  agent: openPlan,
6158
- class: "_gl"
6531
+ class: "_gz"
6159
6532
  });
6160
6533
  _subscribe($openPlan__closures, writeScope($scope11_id, {
6161
6534
  a: _existing_scope($childScope3),
@@ -6166,14 +6539,14 @@ var side_nav_item_default = _template("w", (input) => {
6166
6539
  }, $scope3_id, "m");
6167
6540
  _for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
6168
6541
  const $scope8_id = _scope_id();
6169
- _html(`<div${_attr_class(["_ge", { ["_f5"]: s.id === input.currentTab }])}>`);
6542
+ _html(`<div${_attr_class(["_gs", { ["_gi"]: s.id === input.currentTab }])}>`);
6170
6543
  _if(() => {
6171
6544
  if (renamingId === s.id) {
6172
6545
  const $scope10_id = _scope_id();
6173
6546
  _html(`<span${_attr_class([
6174
6547
  "_z",
6175
6548
  phase[sessionPhase(s.state)],
6176
- "_gs"
6549
+ "_gG"
6177
6550
  ])}></span>${_el_resume($scope10_id, "a", $sg__input_sessions)}`);
6178
6551
  _set_serialize_reason({
6179
6552
  1: $sg__input_sessions,
@@ -6183,17 +6556,17 @@ var side_nav_item_default = _template("w", (input) => {
6183
6556
  icon_agent_default({
6184
6557
  agent: activeAgent(s),
6185
6558
  size: 13,
6186
- class: "_gw"
6559
+ class: "_gK"
6187
6560
  });
6188
6561
  _html(`<input${_attr_input_value($scope10_id, "c", renameValue, _resume((_new_renameValue) => {
6189
6562
  renameValue = _new_renameValue;
6190
- }, "w0", $scope10_id))}${_attr_class(["_U", "_gt"])} aria-label="Session name">${_el_resume($scope10_id, "c")}`);
6563
+ }, "w0", $scope10_id))}${_attr_class(["_U", "_gH"])} aria-label="Session name">${_el_resume($scope10_id, "c")}`);
6191
6564
  _script($scope10_id, "w5");
6192
6565
  _subscribe($renameValue__closures, writeScope($scope10_id, { b: $si__input_sessions && _existing_scope($childScope4) }));
6193
6566
  return 0;
6194
6567
  } else {
6195
6568
  const $scope9_id = _scope_id();
6196
- _html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("_gv")}><span${_attr_class(["_z", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope9_id, "b", $sg__input_sessions)}`);
6569
+ _html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("_gJ")}><span${_attr_class(["_z", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope9_id, "b", $sg__input_sessions)}`);
6197
6570
  _set_serialize_reason({
6198
6571
  1: $sg__input_sessions,
6199
6572
  2: $sg__input_sessions
@@ -6202,9 +6575,9 @@ var side_nav_item_default = _template("w", (input) => {
6202
6575
  icon_agent_default({
6203
6576
  agent: activeAgent(s),
6204
6577
  size: 13,
6205
- class: "_gw"
6578
+ class: "_gK"
6206
6579
  });
6207
- _html(`<span${_attr_class("_gq")}>${_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("_gr")}><button${_attr_class(rowIcon)} title="Rename session">`);
6580
+ _html(`<span${_attr_class("_gE")}>${_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("_gF")}><button${_attr_class(rowIcon)} title="Rename session">`);
6208
6581
  icon_edit_default({ size: 12 });
6209
6582
  _html(`</button>${_el_resume($scope9_id, "g")}<button${_attr_class([close, { ["_q"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
6210
6583
  icon_xmark_default({ size: 12 });
@@ -6216,7 +6589,7 @@ var side_nav_item_default = _template("w", (input) => {
6216
6589
  const $childScope6 = _peek_scope_id();
6217
6590
  usage_pcts_default({
6218
6591
  agent: openPlan,
6219
- class: "_gm"
6592
+ class: "_gA"
6220
6593
  });
6221
6594
  _subscribe($openPlan__closures, writeScope($scope12_id, {
6222
6595
  a: _existing_scope($childScope6),
@@ -6335,7 +6708,7 @@ var side_nav_item_default = _template("w", (input) => {
6335
6708
  });
6336
6709
  //#endregion
6337
6710
  //#region src/tags/icons/icon-folder-plus.marko
6338
- var icon_folder_plus_default = _template("N", (input) => {
6711
+ var icon_folder_plus_default = _template("O", (input) => {
6339
6712
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
6340
6713
  const $scope0_id = _scope_id();
6341
6714
  _set_serialize_reason({
@@ -6352,7 +6725,7 @@ var icon_folder_plus_default = _template("N", (input) => {
6352
6725
  });
6353
6726
  //#endregion
6354
6727
  //#region src/tags/icons/icon-sidebar-collapse.marko
6355
- var icon_sidebar_collapse_default = _template("V", (input) => {
6728
+ var icon_sidebar_collapse_default = _template("W", (input) => {
6356
6729
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
6357
6730
  const $scope0_id = _scope_id();
6358
6731
  _set_serialize_reason({
@@ -6419,34 +6792,34 @@ var side_nav_default = _template("x", (input) => {
6419
6792
  const iconSrc = `/api/instance/icon${input.instanceAccent ? `?v=${input.instanceAccent.slice(1)}` : ""}`;
6420
6793
  const otherIds = itemIds.filter((id) => id !== ws.id);
6421
6794
  const listIds = isPage ? [ws.id, ...otherIds] : itemIds;
6422
- _html(`<aside${_attr_class(["_dk", {
6423
- ["_di"]: !navOpen,
6424
- ["_dj"]: isPage
6795
+ _html(`<aside${_attr_class(["_dn", {
6796
+ ["_dl"]: !navOpen,
6797
+ ["_dm"]: isPage
6425
6798
  }])}${_attr("hidden", view === "diff")}>`);
6426
6799
  _if(() => {
6427
6800
  if (isPage) {
6428
6801
  const $scope1_id = _scope_id();
6429
- _html(`<header${_attr_class("_dn")}><div${_attr_class("_dw")}>`);
6802
+ _html(`<header${_attr_class("_dq")}><div${_attr_class("_dz")}>`);
6430
6803
  _if(() => {
6431
6804
  if (input.instanceName) {
6432
6805
  const $scope2_id = _scope_id();
6433
- _html(`<div${_attr_class("_dt")} title="This work server (Settings → Appearance)"><img${_attr_class("_du")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_dv")}>${_escape(input.instanceName)}${_el_resume($scope2_id, "d", $sg__input_instanceName)}</span></div>`);
6806
+ _html(`<div${_attr_class("_dw")} title="This work server (Settings → Appearance)"><img${_attr_class("_dx")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_dy")}>${_escape(input.instanceName)}${_el_resume($scope2_id, "d", $sg__input_instanceName)}</span></div>`);
6434
6807
  _subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
6435
6808
  return 0;
6436
6809
  }
6437
6810
  }, $scope1_id, "c", $sg__input_instanceName, $sg__input_instanceName, 1, 0, 1);
6438
- _html(`<h1${_attr_class("_do")}>Workspaces</h1></div><div${_attr_class("_dp")}>`);
6811
+ _html(`<h1${_attr_class("_dr")}>Workspaces</h1></div><div${_attr_class("_ds")}>`);
6439
6812
  _if(() => {}, $scope1_id, "f", 1, 1, 1, 0, 1);
6440
6813
  _html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
6441
6814
  iconBtn$1,
6442
- "_dq",
6443
- { ["_df"]: view === "settings" }
6815
+ "_dt",
6816
+ { ["_di"]: view === "settings" }
6444
6817
  ])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
6445
6818
  icon_settings_default({ size: 16 });
6446
6819
  _if(() => {
6447
6820
  if (input.setupReady === false) {
6448
6821
  const $scope12_id = _scope_id();
6449
- _html(`<span${_attr_class(["_z", "_dh"])} title="Machine setup incomplete"></span>`);
6822
+ _html(`<span${_attr_class(["_z", "_dk"])} title="Machine setup incomplete"></span>`);
6450
6823
  $si__input_setupReady && writeScope($scope12_id, {});
6451
6824
  return 0;
6452
6825
  }
@@ -6459,18 +6832,18 @@ var side_nav_default = _template("x", (input) => {
6459
6832
  _if(() => {
6460
6833
  if (!isPage && input.instanceName) {
6461
6834
  const $scope3_id = _scope_id();
6462
- _html(`<div${_attr_class("_dt")} title="This work server (Settings → Appearance)"><img${_attr_class("_du")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope3_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_dv")}>${_escape(input.instanceName)}${_el_resume($scope3_id, "d", $sg__input_instanceName)}</span></div>`);
6835
+ _html(`<div${_attr_class("_dw")} title="This work server (Settings → Appearance)"><img${_attr_class("_dx")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope3_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_dy")}>${_escape(input.instanceName)}${_el_resume($scope3_id, "d", $sg__input_instanceName)}</span></div>`);
6463
6836
  writeScope($scope3_id, {});
6464
6837
  return 0;
6465
6838
  }
6466
6839
  }, $scope0_id, "c", 1, 1, 1, 0, 1);
6467
- _html(`<div${_attr_class("_dx")}>`);
6840
+ _html(`<div${_attr_class("_dA")}>`);
6468
6841
  _for_of(listIds, (wsId) => {
6469
6842
  const $scope4_id = _scope_id();
6470
6843
  _if(() => {
6471
6844
  if (isPage && wsId === ws.id) {
6472
6845
  const $scope13_id = _scope_id();
6473
- _html(`<h2${_attr_class(["_by", "_dr"])}>Current</h2>`);
6846
+ _html(`<h2${_attr_class(["_bH", "_du"])}>Current</h2>`);
6474
6847
  writeScope($scope13_id, {});
6475
6848
  return 0;
6476
6849
  }
@@ -6478,7 +6851,7 @@ var side_nav_default = _template("x", (input) => {
6478
6851
  _if(() => {
6479
6852
  if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
6480
6853
  const $scope14_id = _scope_id();
6481
- _html(`<h2${_attr_class(["_by", "_dr"])}>Other workspaces</h2>`);
6854
+ _html(`<h2${_attr_class(["_bH", "_du"])}>Other workspaces</h2>`);
6482
6855
  writeScope($scope14_id, {});
6483
6856
  return 0;
6484
6857
  }
@@ -6565,7 +6938,7 @@ var side_nav_default = _template("x", (input) => {
6565
6938
  railHover = null;
6566
6939
  }, 150);
6567
6940
  }, "x6", $scope5_id);
6568
- _html(`<div${_attr_class("_dy")}>`);
6941
+ _html(`<div${_attr_class("_dB")}>`);
6569
6942
  _for_of(itemIds, (wsId, i) => {
6570
6943
  const $scope6_id = _scope_id();
6571
6944
  _html("<span>");
@@ -6619,7 +6992,7 @@ var side_nav_default = _template("x", (input) => {
6619
6992
  if (railHover) {
6620
6993
  const $scope7_id = _scope_id();
6621
6994
  const hoverId = railHover.id;
6622
- _html(`<div${_attr_class(["_4", "_dB"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
6995
+ _html(`<div${_attr_class(["_4", "_dE"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
6623
6996
  _set_serialize_reason({
6624
6997
  0: 1,
6625
6998
  1: 1,
@@ -6707,7 +7080,7 @@ var side_nav_default = _template("x", (input) => {
6707
7080
  return 0;
6708
7081
  }
6709
7082
  }, $scope0_id, "e");
6710
- _html(`<div${_attr_class("_dz")}>`);
7083
+ _html(`<div${_attr_class("_dC")}>`);
6711
7084
  _if(() => {
6712
7085
  if (isPage) {
6713
7086
  const $scope9_id = _scope_id();
@@ -6715,7 +7088,7 @@ var side_nav_default = _template("x", (input) => {
6715
7088
  "_o",
6716
7089
  "_p",
6717
7090
  btnLg,
6718
- "_ds"
7091
+ "_dv"
6719
7092
  ])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
6720
7093
  icon_folder_plus_default({ size: 16 });
6721
7094
  _html(` New workspace</a>${_el_resume($scope9_id, "a")}`);
@@ -6737,19 +7110,19 @@ var side_nav_default = _template("x", (input) => {
6737
7110
  return 1;
6738
7111
  }
6739
7112
  }, $scope8_id, "a", 1, 1, 1, "</button>", 1);
6740
- _html(`<div${_attr_class(["_y", "_dA"])}></div>`);
7113
+ _html(`<div${_attr_class(["_y", "_dD"])}></div>`);
6741
7114
  _if(() => {}, $scope8_id, "c", 1, 1, 1, 0, 1);
6742
- _html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["_df"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
7115
+ _html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["_di"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
6743
7116
  icon_settings_default({ size: 15 });
6744
7117
  _if(() => {
6745
7118
  if (input.setupReady === false) {
6746
7119
  const $scope17_id = _scope_id();
6747
- _html(`<span${_attr_class(["_z", "_dh"])} title="Machine setup incomplete"></span>`);
7120
+ _html(`<span${_attr_class(["_z", "_dk"])} title="Machine setup incomplete"></span>`);
6748
7121
  $si__input_setupReady && writeScope($scope17_id, {});
6749
7122
  return 0;
6750
7123
  }
6751
7124
  }, $scope8_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
6752
- _html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn$1, { ["_df"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
7125
+ _html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn$1, { ["_di"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
6753
7126
  icon_folder_plus_default({ size: 16 });
6754
7127
  _html(`</a>${_el_resume($scope8_id, "g")}`);
6755
7128
  _script($scope8_id, "x15");
@@ -6814,11 +7187,11 @@ var side_nav_default = _template("x", (input) => {
6814
7187
  _resume_branch($scope0_id);
6815
7188
  });
6816
7189
  var iconBtn = "_0 _j";
6817
- var sectionCount = "_bl _I _J";
6818
- var content = "_cQ _bB";
6819
- var pageMeta = "_cR _bG";
6820
- var pathMeta = "_cU _x";
6821
- var dangerHint = "_c0 _S";
7190
+ var sectionCount = "_bu _I _J";
7191
+ var content = "_c8 _bk";
7192
+ var pageMeta = "_c9 _bp";
7193
+ var pathMeta = "_db _x";
7194
+ var dangerHint = "_dh _S";
6822
7195
  //#endregion
6823
7196
  //#region src/tags/manage-workspace.marko
6824
7197
  var api$2;
@@ -6917,7 +7290,7 @@ var manage_workspace_default = _template("n", (input) => {
6917
7290
  setTimeout(() => loadProcs(void 0), 500);
6918
7291
  }, "n5", $scope0_id);
6919
7292
  const titleId = _id();
6920
- _html(`<div${_attr_class("_bz")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bA")}><div${_attr_class(content)}>`);
7293
+ _html(`<div${_attr_class("_bi")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bj")}><div${_attr_class(content)}>`);
6921
7294
  _set_serialize_reason(30);
6922
7295
  const $childScope = _peek_scope_id();
6923
7296
  page_head_default({
@@ -6930,7 +7303,7 @@ var manage_workspace_default = _template("n", (input) => {
6930
7303
  meta: attrTag({ content: _content_resume("n11", () => {
6931
7304
  _scope_reason();
6932
7305
  const $scope8_id = _scope_id();
6933
- _html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_cS")}>${_escape(ws.name)}${_el_resume($scope8_id, "c")}</span>`);
7306
+ _html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_c_")}>${_escape(ws.name)}${_el_resume($scope8_id, "c")}</span>`);
6934
7307
  _if(() => {
6935
7308
  if (ws.status !== "active") {
6936
7309
  const $scope11_id = _scope_id();
@@ -6939,7 +7312,7 @@ var manage_workspace_default = _template("n", (input) => {
6939
7312
  return 0;
6940
7313
  }
6941
7314
  }, $scope8_id, "d", 1, 1, 1, 0, 1);
6942
- _html(`<span${_attr_class("_cT")} aria-hidden=true>·</span><span${_attr_class(pathMeta)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope8_id, "g")}</span></span>${_el_resume($scope8_id, "a")}`);
7315
+ _html(`<span${_attr_class("_da")} aria-hidden=true>·</span><span${_attr_class(pathMeta)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope8_id, "g")}</span></span>${_el_resume($scope8_id, "a")}`);
6943
7316
  _subscribe($ws_status__closures, _subscribe($ws_name__closures, _subscribe($ws_path__closures, _subscribe($ws_display_path__closures, writeScope($scope8_id, { _: _scope_with_id($scope0_id) })))));
6944
7317
  _resume_branch($scope8_id);
6945
7318
  }, $scope0_id) })
@@ -6967,22 +7340,22 @@ var manage_workspace_default = _template("n", (input) => {
6967
7340
  _if(() => {
6968
7341
  if (pendingAction && actionStep) {
6969
7342
  const $scope7_id = _scope_id();
6970
- _html(`<p${_attr_class("_bi")}><span${_attr_class("_F")}></span><!>${_escape(actionStep)}${_el_resume($scope7_id, "c")}</p>`);
7343
+ _html(`<p${_attr_class("_br")}><span${_attr_class("_F")}></span><!>${_escape(actionStep)}${_el_resume($scope7_id, "c")}</p>`);
6971
7344
  writeScope($scope7_id, {});
6972
7345
  return 0;
6973
7346
  }
6974
7347
  }, $scope0_id, "f", 1, 1, 1, 0, 1);
6975
- _html(`<section${_attr_class("_bj")}><div${_attr_class("_bk")}><h2${_attr_class("_by")}>Repos</h2><span${_attr_class(sectionCount)}>${_escape(ws.repos.length)}${_el_resume($scope0_id, "k")}</span><div${_attr_class("_y")}></div><button${_attr_class(iconBtn)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
7348
+ _html(`<section${_attr_class("_bs")}><div${_attr_class("_bt")}><h2${_attr_class("_bH")}>Repos</h2><span${_attr_class(sectionCount)}>${_escape(ws.repos.length)}${_el_resume($scope0_id, "k")}</span><div${_attr_class("_y")}></div><button${_attr_class(iconBtn)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
6976
7349
  _set_serialize_reason(1);
6977
7350
  const $childScope2 = _peek_scope_id();
6978
7351
  icon_refresh_default({
6979
7352
  size: 14,
6980
7353
  class: catalogRefreshing && "_E"
6981
7354
  });
6982
- _html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("_bm")}>`);
7355
+ _html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("_bv")}>`);
6983
7356
  _for_of(ws.repos, (row) => {
6984
7357
  const $scope1_id = _scope_id();
6985
- _html(`<li${_attr_class("_bo")}><div${_attr_class("_bp")}><span${_attr_class(["_bq", "_x"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_br")}><a${_attr_class(["_bs", "_cW"])}${_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")}`);
7358
+ _html(`<li${_attr_class("_bx")}><div${_attr_class("_by")}><span${_attr_class(["_bz", "_x"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_bA")}><a${_attr_class(["_bB", "_dd"])}${_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")}`);
6986
7359
  _if(() => {
6987
7360
  if (row.base_branch !== row.default_branch) {
6988
7361
  const $scope12_id = _scope_id();
@@ -7001,7 +7374,7 @@ var manage_workspace_default = _template("n", (input) => {
7001
7374
  } else {
7002
7375
  const $scope6_id = _scope_id();
7003
7376
  _html(`<button${_attr_class([
7004
- "_bt",
7377
+ "_bC",
7005
7378
  "_2",
7006
7379
  "_3",
7007
7380
  { ["_q"]: confirmingRemove === row.full_name }
@@ -7034,19 +7407,19 @@ var manage_workspace_default = _template("n", (input) => {
7034
7407
  }, "full_name", $scope0_id, "p", 1, 1, 1, 0, 1);
7035
7408
  _for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
7036
7409
  const $scope16_id = _scope_id();
7037
- _html(`<li${_attr_class(["_bo", "_bn"])}><span${_attr_class("_F")}></span><div${_attr_class("_bp")}><span${_attr_class("_bs")}>Adding <!>${_escape(name)}${_el_resume($scope16_id, "e")}…</span></div></li>`);
7410
+ _html(`<li${_attr_class(["_bx", "_bw"])}><span${_attr_class("_F")}></span><div${_attr_class("_by")}><span${_attr_class("_bB")}>Adding <!>${_escape(name)}${_el_resume($scope16_id, "e")}…</span></div></li>`);
7038
7411
  writeScope($scope16_id, {});
7039
7412
  }, (n) => n, $scope0_id, "q", 1, 1, 1, 0, 1);
7040
7413
  _html("</ul>");
7041
7414
  _if(() => {
7042
7415
  if (!ws.repos.length && !busy.size) {
7043
7416
  const $scope17_id = _scope_id();
7044
- _html(`<p${_attr_class("_bu")}>No repos yet. Search below to add one.</p>`);
7417
+ _html(`<p${_attr_class("_bD")}>No repos yet. Search below to add one.</p>`);
7045
7418
  writeScope($scope17_id, {});
7046
7419
  return 0;
7047
7420
  }
7048
7421
  }, $scope0_id, "r", 1, 1, 1, 0, 1);
7049
- _html(`<div${_attr_class("_cV")}>`);
7422
+ _html(`<div${_attr_class("_dc")}>`);
7050
7423
  const $childScope3 = _peek_scope_id();
7051
7424
  let refreshCatalog = repo_picker_default({
7052
7425
  exclude: inWorkspace,
@@ -7066,17 +7439,17 @@ var manage_workspace_default = _template("n", (input) => {
7066
7439
  _if(() => {
7067
7440
  if (running.length) {
7068
7441
  const $scope9_id = _scope_id();
7069
- _html(`<section${_attr_class("_bj")}><div${_attr_class("_bk")}><h2${_attr_class("_by")}>Running</h2><span${_attr_class(sectionCount)}>${_escape(running.length)}${_el_resume($scope9_id, "e")}</span></div><ul${_attr_class("_bm")}>`);
7442
+ _html(`<section${_attr_class("_bs")}><div${_attr_class("_bt")}><h2${_attr_class("_bH")}>Running</h2><span${_attr_class(sectionCount)}>${_escape(running.length)}${_el_resume($scope9_id, "e")}</span></div><ul${_attr_class("_bv")}>`);
7070
7443
  _for_of(running, (p) => {
7071
7444
  const $scope10_id = _scope_id();
7072
- _html(`<li${_attr_class("_bo")}><div${_attr_class("_bp")}${_attr("title", p.args)}><span${_attr_class(["_bq", "_x"])}>${_escape(p.cmd)}${_el_resume($scope10_id, "d")}</span>`);
7445
+ _html(`<li${_attr_class("_bx")}><div${_attr_class("_by")}${_attr("title", p.args)}><span${_attr_class(["_bz", "_x"])}>${_escape(p.cmd)}${_el_resume($scope10_id, "d")}</span>`);
7073
7446
  _if(() => {
7074
7447
  if (p.ports.length) {
7075
7448
  const $scope18_id = _scope_id();
7076
- _html(`<span${_attr_class("_br")}>`);
7449
+ _html(`<span${_attr_class("_bA")}>`);
7077
7450
  _for_of(p.ports, (port) => {
7078
7451
  const $scope19_id = _scope_id();
7079
- _html(`<button${_attr_class(["_s", "_cX"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope19_id, "b")}</button>${_el_resume($scope19_id, "a")}`);
7452
+ _html(`<button${_attr_class(["_s", "_de"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope19_id, "b")}</button>${_el_resume($scope19_id, "a")}`);
7080
7453
  _script($scope19_id, "n15");
7081
7454
  writeScope($scope19_id, { d: port });
7082
7455
  }, (x) => String(x), $scope18_id, "a", 1, 1, 1, "</span>", 1);
@@ -7084,7 +7457,7 @@ var manage_workspace_default = _template("n", (input) => {
7084
7457
  return 0;
7085
7458
  }
7086
7459
  }, $scope10_id, "e", 1, 1, 1, 0, 1);
7087
- _html(`</div>${_el_resume($scope10_id, "b")}<button${_attr_class(["_bt", "_2"])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
7460
+ _html(`</div>${_el_resume($scope10_id, "b")}<button${_attr_class(["_bC", "_2"])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
7088
7461
  icon_xmark_default({ size: 14 });
7089
7462
  _html(`</button>${_el_resume($scope10_id, "f")}</li>`);
7090
7463
  _script($scope10_id, "n16");
@@ -7098,7 +7471,7 @@ var manage_workspace_default = _template("n", (input) => {
7098
7471
  return 0;
7099
7472
  }
7100
7473
  }, $scope0_id, "v", 1, 1, 1, 0, 1);
7101
- _html(`<section${_attr_class(["_bj", "_cY"])}><div${_attr_class("_bk")}><h2${_attr_class("_by")}>Workspace</h2></div><div${_attr_class("_cZ")}>`);
7474
+ _html(`<section${_attr_class(["_bs", "_df"])}><div${_attr_class("_bt")}><h2${_attr_class("_bH")}>Workspace</h2></div><div${_attr_class("_dg")}>`);
7102
7475
  _if(() => {
7103
7476
  if (ws.status === "active") {
7104
7477
  const $scope4_id = _scope_id();
@@ -7165,7 +7538,7 @@ var manage_workspace_default = _template("n", (input) => {
7165
7538
  });
7166
7539
  //#endregion
7167
7540
  //#region src/tags/term-find.marko
7168
- var term_find_default = _template("y", (input) => {
7541
+ var term_find_default = _template("z", (input) => {
7169
7542
  const $scope0_reason = _scope_reason();
7170
7543
  const $scope0_id = _scope_id();
7171
7544
  let open = input.open;
@@ -7182,37 +7555,37 @@ var term_find_default = _template("y", (input) => {
7182
7555
  if (!live.open) return;
7183
7556
  const search = input.onSearch;
7184
7557
  if (search) search(live.query, dir);
7185
- }, "y1", $scope0_id);
7558
+ }, "z1", $scope0_id);
7186
7559
  const close = _resume(() => {
7187
7560
  open = false;
7188
7561
  live.open = false;
7189
7562
  const clear = input.onClear;
7190
7563
  if (clear) clear();
7191
- }, "y2", $scope0_id);
7564
+ }, "z2", $scope0_id);
7192
7565
  const focusInput = _resume(() => {
7193
7566
  const el = ((findEl) => findEl())(_el_read_error);
7194
7567
  if (!el) return;
7195
7568
  el.focus();
7196
7569
  if (document.activeElement !== el) setTimeout(() => el.focus(), 0);
7197
- }, "y3", $scope0_id);
7570
+ }, "z3", $scope0_id);
7198
7571
  const hasQuery = !!query.trim();
7199
7572
  const canStep = hasQuery && open;
7200
7573
  const keybar = input.placement === "keybar";
7201
7574
  _html(`<div${_attr_class([
7202
- "_fj",
7203
- keybar ? "_fl" : "_fk",
7204
- !open && "_fn"
7205
- ])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_fe", keybar ? "_fm" : "_fg"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
7575
+ "_f_",
7576
+ keybar ? "_gb" : "_ga",
7577
+ !open && "_gd"
7578
+ ])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_f5", keybar ? "_gc" : "_f7"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
7206
7579
  if (!open) return;
7207
7580
  query = v;
7208
7581
  live.query = v;
7209
7582
  run(0);
7210
- }, "y0", $scope0_id))}${_attr_class([findInput, keybar && "_fo"])} 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 && "_fp"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↑</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_fp"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↓</button>${_el_resume($scope0_id, "e")}<button type=button${_attr_class([findIconBtn, keybar && "_fp"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
7583
+ }, "z0", $scope0_id))}${_attr_class([findInput, keybar && "_ge"])} 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 && "_gf"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↑</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_gf"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↓</button>${_el_resume($scope0_id, "e")}<button type=button${_attr_class([findIconBtn, keybar && "_gf"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
7211
7584
  icon_xmark_default({ size: 14 });
7212
7585
  _html(`</button>${_el_resume($scope0_id, "f")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
7213
- _script($scope0_id, "y4");
7214
- _script($scope0_id, "y5");
7215
- _script($scope0_id, "y6");
7586
+ _script($scope0_id, "z4");
7587
+ _script($scope0_id, "z5");
7588
+ _script($scope0_id, "z6");
7216
7589
  writeScope($scope0_id, {
7217
7590
  j: _serialize_if($scope0_reason, 1) && input.open,
7218
7591
  k: _serialize_if($scope0_reason, 0) && input.openChange,
@@ -7235,7 +7608,7 @@ var term_find_default = _template("y", (input) => {
7235
7608
  });
7236
7609
  _resume_branch($scope0_id);
7237
7610
  });
7238
- _template("Y", (input) => {
7611
+ _template("Z", (input) => {
7239
7612
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
7240
7613
  const $scope0_id = _scope_id();
7241
7614
  _set_serialize_reason({
@@ -7250,7 +7623,7 @@ _template("Y", (input) => {
7250
7623
  });
7251
7624
  _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
7252
7625
  });
7253
- _template("L", (input) => {
7626
+ _template("M", (input) => {
7254
7627
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
7255
7628
  const $scope0_id = _scope_id();
7256
7629
  _set_serialize_reason({
@@ -7265,7 +7638,7 @@ _template("L", (input) => {
7265
7638
  });
7266
7639
  _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
7267
7640
  });
7268
- _template("P", (input) => {
7641
+ _template("Q", (input) => {
7269
7642
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
7270
7643
  const $scope0_id = _scope_id();
7271
7644
  _set_serialize_reason({
@@ -7280,7 +7653,7 @@ _template("P", (input) => {
7280
7653
  });
7281
7654
  _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
7282
7655
  });
7283
- _template("J", (input) => {
7656
+ _template("K", (input) => {
7284
7657
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
7285
7658
  const $scope0_id = _scope_id();
7286
7659
  _set_serialize_reason({
@@ -7299,7 +7672,7 @@ _template("J", (input) => {
7299
7672
  //#region src/tags/term.marko
7300
7673
  var REPEAT_DELAY = 400;
7301
7674
  var REPEAT_EVERY = 55;
7302
- var term_default = _template("z", (input) => {
7675
+ var term_default = _template("A", (input) => {
7303
7676
  const $scope0_reason = _scope_reason();
7304
7677
  _serialize_guard($scope0_reason, 5);
7305
7678
  _serialize_guard($scope0_reason, 0);
@@ -7318,7 +7691,7 @@ var term_default = _template("z", (input) => {
7318
7691
  _serialize_guard($scope0_reason, 13);
7319
7692
  const $si__input_sessionState = _serialize_if($scope0_reason, 6), $si__input_onCloseSession = _serialize_if($scope0_reason, 7), $si__input_workspaceName = _serialize_if($scope0_reason, 13);
7320
7693
  const $scope0_id = _scope_id();
7321
- _hoist($scope0_id, "z21");
7694
+ _hoist($scope0_id, "A21");
7322
7695
  const $findOpen__closures = /* @__PURE__ */ new Set();
7323
7696
  const $findTick__closures = /* @__PURE__ */ new Set();
7324
7697
  const $input_onCloseSession__closures = /* @__PURE__ */ new Set();
@@ -7340,7 +7713,7 @@ var term_default = _template("z", (input) => {
7340
7713
  let findOpen = false;
7341
7714
  const $openChange = _resume((_new_findOpen) => {
7342
7715
  findOpen = _new_findOpen;
7343
- }, "z1", $scope0_id);
7716
+ }, "A1", $scope0_id);
7344
7717
  let findTick = 0;
7345
7718
  const ioBox = { current: null };
7346
7719
  const searchBox = {
@@ -7348,7 +7721,7 @@ var term_default = _template("z", (input) => {
7348
7721
  query: "",
7349
7722
  refreshTimer: 0
7350
7723
  };
7351
- const findFocusRef = { focus: _resume(function() {}, "z2") };
7724
+ const findFocusRef = { focus: _resume(function() {}, "A2") };
7352
7725
  const scheduleFindRefresh = _resume(() => {
7353
7726
  if (!searchBox.query.trim() || !searchBox.overlay) return;
7354
7727
  if (searchBox.refreshTimer) clearTimeout(searchBox.refreshTimer);
@@ -7356,7 +7729,7 @@ var term_default = _template("z", (input) => {
7356
7729
  searchBox.refreshTimer = 0;
7357
7730
  searchBox.overlay?.refresh();
7358
7731
  }, 32);
7359
- }, "z3", $scope0_id);
7732
+ }, "A3", $scope0_id);
7360
7733
  const runFind = _resume((query, dir) => {
7361
7734
  const overlay = searchBox.overlay;
7362
7735
  if (!overlay) return;
@@ -7370,7 +7743,7 @@ var term_default = _template("z", (input) => {
7370
7743
  return;
7371
7744
  }
7372
7745
  overlay.search(query, dir);
7373
- }, "z4", $scope0_id);
7746
+ }, "A4", $scope0_id);
7374
7747
  const clearFind = _resume(() => {
7375
7748
  if (searchBox.refreshTimer) {
7376
7749
  clearTimeout(searchBox.refreshTimer);
@@ -7378,7 +7751,7 @@ var term_default = _template("z", (input) => {
7378
7751
  }
7379
7752
  searchBox.query = "";
7380
7753
  searchBox.overlay?.clear();
7381
- }, "z5", $scope0_id);
7754
+ }, "A5", $scope0_id);
7382
7755
  const openFind = _resume(() => {
7383
7756
  if (kb) {
7384
7757
  kb = false;
@@ -7388,7 +7761,7 @@ var term_default = _template("z", (input) => {
7388
7761
  findOpen = true;
7389
7762
  findTick++;
7390
7763
  findFocusRef.focus();
7391
- }, "z6", $scope0_id);
7764
+ }, "A6", $scope0_id);
7392
7765
  const toggleFind = _resume(() => {
7393
7766
  if (findOpen) {
7394
7767
  findOpen = false;
@@ -7397,7 +7770,7 @@ var term_default = _template("z", (input) => {
7397
7770
  return;
7398
7771
  }
7399
7772
  openFind();
7400
- }, "z7", $scope0_id);
7773
+ }, "A7", $scope0_id);
7401
7774
  const onTermPage = input.mode == null || input.mode === "term";
7402
7775
  const canKeys = onTermPage || input.mode === "diff";
7403
7776
  const findLit = onTermPage ? findOpen : input.mode === "diff" && !!input.reviewFindOpen;
@@ -7408,7 +7781,7 @@ var term_default = _template("z", (input) => {
7408
7781
  return;
7409
7782
  }
7410
7783
  if (input.mode === "diff") input.onToggleReviewFind?.();
7411
- }, "z8", $scope0_id);
7784
+ }, "A8", $scope0_id);
7412
7785
  const thisAgent = activeAgent({
7413
7786
  agent: input.agent || "shell",
7414
7787
  state: input.sessionState
@@ -7420,7 +7793,7 @@ var term_default = _template("z", (input) => {
7420
7793
  copyFlashBox.timer = setTimeout(() => {
7421
7794
  copiedFlash = false;
7422
7795
  }, 1200);
7423
- }, "z9", $scope0_id);
7796
+ }, "A9", $scope0_id);
7424
7797
  const holdBox = { current: null };
7425
7798
  const startHold = _resume((seq) => {
7426
7799
  ((stopHold) => stopHold())(_hoist_read_error);
@@ -7430,7 +7803,7 @@ var term_default = _template("z", (input) => {
7430
7803
  state.repeat = setInterval(() => ioBox.current?.send(seq), REPEAT_EVERY);
7431
7804
  }, REPEAT_DELAY);
7432
7805
  holdBox.current = state;
7433
- }, "z10", $scope0_id);
7806
+ }, "A10", $scope0_id);
7434
7807
  const stopHold = _resume(() => {
7435
7808
  const hold = holdBox.current;
7436
7809
  if (hold) {
@@ -7438,7 +7811,7 @@ var term_default = _template("z", (input) => {
7438
7811
  clearInterval(hold.repeat);
7439
7812
  holdBox.current = null;
7440
7813
  }
7441
- }, "z11", $scope0_id);
7814
+ }, "A11", $scope0_id);
7442
7815
  const uploadAsset = _resume(async (file) => {
7443
7816
  if (!file) return;
7444
7817
  uploading = true;
@@ -7451,7 +7824,7 @@ var term_default = _template("z", (input) => {
7451
7824
  } finally {
7452
7825
  uploading = false;
7453
7826
  }
7454
- }, "z12", $scope0_id);
7827
+ }, "A12", $scope0_id);
7455
7828
  const handlePasted = _resume(async (clipboardData) => {
7456
7829
  const files = [...clipboardData?.files || []];
7457
7830
  for (const file of files) await uploadAsset(file);
@@ -7460,7 +7833,7 @@ var term_default = _template("z", (input) => {
7460
7833
  if (text) ioBox.current?.send(text);
7461
7834
  }
7462
7835
  trapOpen = false;
7463
- }, "z13", $scope0_id);
7836
+ }, "A13", $scope0_id);
7464
7837
  const pasteClipboard = _resume(async () => {
7465
7838
  if (!navigator.clipboard?.read) {
7466
7839
  trapOpen = true;
@@ -7480,8 +7853,8 @@ var term_default = _template("z", (input) => {
7480
7853
  } catch {
7481
7854
  trapOpen = true;
7482
7855
  }
7483
- }, "z14", $scope0_id);
7484
- _html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_dC")}><div${_attr_class("_dD")}></div>${_el_resume($scope0_id, "b")}`);
7856
+ }, "A14", $scope0_id);
7857
+ _html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_dF")}><div${_attr_class("_dG")}></div>${_el_resume($scope0_id, "b")}`);
7485
7858
  _if(() => {
7486
7859
  if (findOpen) {
7487
7860
  const $scope12_id = _scope_id();
@@ -7495,11 +7868,11 @@ var term_default = _template("z", (input) => {
7495
7868
  focusRef: findFocusRef,
7496
7869
  onSearch: _resume(function(q, dir) {
7497
7870
  runFind(q, dir);
7498
- }, "z15", $scope12_id),
7871
+ }, "A15", $scope12_id),
7499
7872
  onClear: _resume(function() {
7500
7873
  clearFind();
7501
7874
  ioBox.current?.setFindMode(false);
7502
- }, "z16", $scope12_id)
7875
+ }, "A16", $scope12_id)
7503
7876
  });
7504
7877
  writeScope($scope12_id, { a: _existing_scope($childScope) });
7505
7878
  return 0;
@@ -7508,7 +7881,7 @@ var term_default = _template("z", (input) => {
7508
7881
  _if(() => {
7509
7882
  if (uploading) {
7510
7883
  const $scope19_id = _scope_id();
7511
- _html(`<div${_attr_class("_dJ")}>uploading…</div>`);
7884
+ _html(`<div${_attr_class("_dM")}>uploading…</div>`);
7512
7885
  writeScope($scope19_id, {});
7513
7886
  return 0;
7514
7887
  }
@@ -7516,7 +7889,7 @@ var term_default = _template("z", (input) => {
7516
7889
  _if(() => {
7517
7890
  if (copiedFlash) {
7518
7891
  const $scope20_id = _scope_id();
7519
- _html(`<div${_attr_class("_dI")}>Copied</div>`);
7892
+ _html(`<div${_attr_class("_dL")}>Copied</div>`);
7520
7893
  writeScope($scope20_id, {});
7521
7894
  return 0;
7522
7895
  }
@@ -7525,18 +7898,18 @@ var term_default = _template("z", (input) => {
7525
7898
  _if(() => {
7526
7899
  if (trapOpen) {
7527
7900
  const $scope11_id = _scope_id();
7528
- _html(`<div${_attr_class("_dK")}><div${_attr_class("_dL")}><p${_attr_class("_ef")}>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")}`);
7529
- _script($scope11_id, "z25");
7530
- _script($scope11_id, "z26");
7901
+ _html(`<div${_attr_class("_dN")}><div${_attr_class("_dO")}><p${_attr_class("_ei")}>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")}`);
7902
+ _script($scope11_id, "A25");
7903
+ _script($scope11_id, "A26");
7531
7904
  writeScope($scope11_id, {});
7532
7905
  return 0;
7533
7906
  }
7534
7907
  }, $scope0_id, "g", 1, 1, 1, 0, 1);
7535
7908
  _html(`</div>${_el_resume($scope0_id, "a")}`);
7536
7909
  _if(() => {}, $scope0_id, "h", 1, 1, 1, 0, 1);
7537
- _script($scope0_id, "z41");
7538
- _script($scope0_id, "z42");
7539
- _script($scope0_id, "z43");
7910
+ _script($scope0_id, "A41");
7911
+ _script($scope0_id, "A42");
7912
+ _script($scope0_id, "A43");
7540
7913
  writeScope($scope0_id, {
7541
7914
  k: input.mode,
7542
7915
  l: input.reviewFindOpen,
@@ -7603,7 +7976,7 @@ var term_default = _template("z", (input) => {
7603
7976
  //#region src/tags/work-view.marko
7604
7977
  var api$1;
7605
7978
  var isTransientApiError$1;
7606
- var work_view_default = _template("D", (input) => {
7979
+ var work_view_default = _template("E", (input) => {
7607
7980
  const $scope0_reason = _scope_reason(), $sg__input_workspace = _serialize_guard($scope0_reason, 6), $sg__input_agents = _serialize_guard($scope0_reason, 15), $sg__input_allWorkspaces = _serialize_guard($scope0_reason, 14), $si__input_workspace = _serialize_if($scope0_reason, 6), $si__input_active = _serialize_if($scope0_reason, 8), $si__input_agents = _serialize_if($scope0_reason, 15), $si__input_preferred = _serialize_if($scope0_reason, 9);
7608
7981
  const $scope0_id = _scope_id();
7609
7982
  const $error__closures = /* @__PURE__ */ new Set();
@@ -7628,16 +8001,16 @@ var work_view_default = _template("D", (input) => {
7628
8001
  let DiffView = null;
7629
8002
  const loadDiffView = _resume(() => {
7630
8003
  if (DiffView) return;
7631
- import("./_Cz8F94WW.js").then((m) => {
8004
+ import("./_BI3Xi4eO.js").then((m) => {
7632
8005
  DiffView = m.default;
7633
8006
  });
7634
- }, "D6", $scope0_id);
8007
+ }, "E6", $scope0_id);
7635
8008
  let manageMounted = input.initialView === "manage";
7636
8009
  let settingsMounted = input.initialView === "settings";
7637
8010
  let newMounted = input.initialView === "new";
7638
8011
  let reviewFindOpen = false;
7639
8012
  let reviewFindTick = 0;
7640
- const reviewFindFocus = { focus: _resume(function() {}, "D0") };
8013
+ const reviewFindFocus = { focus: _resume(function() {}, "E0") };
7641
8014
  let focusPr = input.initialPr ?? "";
7642
8015
  let focusNonce = 0;
7643
8016
  let reviewScope = input.initialScope ?? null;
@@ -7655,22 +8028,22 @@ var work_view_default = _template("D", (input) => {
7655
8028
  loadDiffView();
7656
8029
  diffMounted = true;
7657
8030
  view = "diff";
7658
- }, "D7", $scope0_id);
8031
+ }, "E7", $scope0_id);
7659
8032
  const openManage = _resume(() => {
7660
8033
  manageMounted = true;
7661
8034
  view = "manage";
7662
- }, "D8", $scope0_id);
8035
+ }, "E8", $scope0_id);
7663
8036
  const openSettings = _resume(() => {
7664
8037
  settingsMounted = true;
7665
8038
  view = "settings";
7666
- }, "D9", $scope0_id);
8039
+ }, "E9", $scope0_id);
7667
8040
  const toggleNav = _resume(() => {
7668
8041
  view = view === "nav" ? "term" : "nav";
7669
- }, "D10", $scope0_id);
8042
+ }, "E10", $scope0_id);
7670
8043
  const toggleDiff = _resume(() => {
7671
8044
  if (view === "diff") view = "term";
7672
8045
  else openDiff();
7673
- }, "D11", $scope0_id);
8046
+ }, "E11", $scope0_id);
7674
8047
  const shownSessions = sessions ?? input.allStatus?.[ws.id]?.sessions ?? null;
7675
8048
  const curTab = (() => {
7676
8049
  if (tab && shownSessions?.some((s) => s.id === tab)) return tab;
@@ -7687,10 +8060,10 @@ var work_view_default = _template("D", (input) => {
7687
8060
  reviewFindOpen = true;
7688
8061
  reviewFindTick++;
7689
8062
  reviewFindFocus.focus();
7690
- }, "D12", $scope0_id);
8063
+ }, "E12", $scope0_id);
7691
8064
  const exitCreate = _resume(() => {
7692
8065
  if (view === "new") view = "term";
7693
- }, "D13", $scope0_id);
8066
+ }, "E13", $scope0_id);
7694
8067
  const applyView = _resume((v) => {
7695
8068
  if (v.view === "diff") {
7696
8069
  if (v.scope !== void 0) reviewScope = v.scope ?? null;
@@ -7705,7 +8078,7 @@ var work_view_default = _template("D", (input) => {
7705
8078
  }
7706
8079
  view = "term";
7707
8080
  }
7708
- }, "D14", $scope0_id);
8081
+ }, "E14", $scope0_id);
7709
8082
  const createSession = _resume(async (agent, select) => {
7710
8083
  spawning = true;
7711
8084
  try {
@@ -7726,7 +8099,7 @@ var work_view_default = _template("D", (input) => {
7726
8099
  } finally {
7727
8100
  spawning = false;
7728
8101
  }
7729
- }, "D15", $scope0_id);
8102
+ }, "E15", $scope0_id);
7730
8103
  const loadMem = {
7731
8104
  wanted: false,
7732
8105
  run: void 0
@@ -7752,11 +8125,11 @@ var work_view_default = _template("D", (input) => {
7752
8125
  if (isTransientApiError$1(err)) return;
7753
8126
  error = String(err.message || err);
7754
8127
  }
7755
- }, "D16", $scope0_id);
8128
+ }, "E16", $scope0_id);
7756
8129
  const loadSessions = _resume((autoCreate) => {
7757
8130
  if (autoCreate) loadMem.wanted = true;
7758
8131
  return (loadMem.run ??= coalesce(loadBody))();
7759
- }, "D17", $scope0_id);
8132
+ }, "E17", $scope0_id);
7760
8133
  const closeSession = _resume(async (id) => {
7761
8134
  try {
7762
8135
  sessions = (sessions || []).filter((s) => s.id !== id);
@@ -7766,7 +8139,7 @@ var work_view_default = _template("D", (input) => {
7766
8139
  error = `Close session failed: ${String(err.message || err)}`;
7767
8140
  loadSessions(false);
7768
8141
  }
7769
- }, "D18", $scope0_id);
8142
+ }, "E18", $scope0_id);
7770
8143
  const renameSession = _resume(async (id, title) => {
7771
8144
  title = title.trim();
7772
8145
  const cur = (sessions || []).find((s) => s.id === id);
@@ -7781,7 +8154,7 @@ var work_view_default = _template("D", (input) => {
7781
8154
  headers: { "content-type": "application/json" },
7782
8155
  body: JSON.stringify({ title })
7783
8156
  });
7784
- }, "D19", $scope0_id);
8157
+ }, "E19", $scope0_id);
7785
8158
  const newSession = _resume(async (wsId, agent) => {
7786
8159
  if (wsId === ws.id) {
7787
8160
  const session = await createSession(agent, true);
@@ -7799,7 +8172,7 @@ var work_view_default = _template("D", (input) => {
7799
8172
  } catch (err) {
7800
8173
  error = String(err.message || err);
7801
8174
  }
7802
- }, "D20", $scope0_id);
8175
+ }, "E20", $scope0_id);
7803
8176
  const onKey = _resume((e) => {
7804
8177
  const target = e.target;
7805
8178
  const typing = !!target && !target.closest(".xterm") && (target.tagName === "INPUT" || target.tagName === "TEXTAREA" || target.tagName === "SELECT" || target.isContentEditable);
@@ -7813,7 +8186,7 @@ var work_view_default = _template("D", (input) => {
7813
8186
  e.preventDefault();
7814
8187
  toggleDiff();
7815
8188
  }
7816
- }, "D21", $scope0_id);
8189
+ }, "E21", $scope0_id);
7817
8190
  _html(`<div${_attr_class(["_b2", {
7818
8191
  ["_b0"]: view === "nav",
7819
8192
  ["_b1"]: !input.active
@@ -7849,35 +8222,35 @@ var work_view_default = _template("D", (input) => {
7849
8222
  tab: curTab,
7850
8223
  tabChange: _resume(function(id) {
7851
8224
  tab = id;
7852
- }, "D22", $scope0_id),
8225
+ }, "E22", $scope0_id),
7853
8226
  view,
7854
8227
  viewChange: _resume((_new_view) => {
7855
8228
  view = _new_view;
7856
- }, "D23", $scope0_id),
8229
+ }, "E23", $scope0_id),
7857
8230
  allWorkspaces: input.allWorkspaces,
7858
8231
  allStatus: input.allStatus,
7859
8232
  agents: input.agents,
7860
8233
  onError: _resume(function(message) {
7861
8234
  error = message;
7862
- }, "D24", $scope0_id),
8235
+ }, "E24", $scope0_id),
7863
8236
  onSelectWorkspace: _resume(function(id) {
7864
8237
  exitCreate();
7865
8238
  input.onSelectWorkspace?.(id);
7866
- }, "D25", $scope0_id),
8239
+ }, "E25", $scope0_id),
7867
8240
  onNewSession: _resume(function(wsId, agent) {
7868
8241
  exitCreate();
7869
8242
  newSession(wsId, agent);
7870
- }, "D26", $scope0_id),
8243
+ }, "E26", $scope0_id),
7871
8244
  onCloseSession: _resume(function(id) {
7872
8245
  closeSession(id);
7873
- }, "D27", $scope0_id),
8246
+ }, "E27", $scope0_id),
7874
8247
  onRenameSession: _resume(function(s, title) {
7875
8248
  renameSession(s.id, title);
7876
- }, "D28", $scope0_id),
8249
+ }, "E28", $scope0_id),
7877
8250
  onReviewOpened: _resume(function(pr) {
7878
8251
  exitCreate();
7879
8252
  openDiff(pr);
7880
- }, "D29", $scope0_id)
8253
+ }, "E29", $scope0_id)
7881
8254
  });
7882
8255
  _html(`</div><div${_attr_class("_b4")}>`);
7883
8256
  _if(() => {
@@ -7886,8 +8259,8 @@ var work_view_default = _template("D", (input) => {
7886
8259
  toast_default({
7887
8260
  onDismiss: _resume(function() {
7888
8261
  error = null;
7889
- }, "D30", $scope8_id),
7890
- content: _content_resume("D48", () => {
8262
+ }, "E30", $scope8_id),
8263
+ content: _content_resume("E48", () => {
7891
8264
  _scope_reason();
7892
8265
  const $scope9_id = _scope_id();
7893
8266
  _html(`${_escape(error)}${_el_resume($scope9_id, "a")}`);
@@ -7916,23 +8289,23 @@ var work_view_default = _template("D", (input) => {
7916
8289
  scope: reviewScope,
7917
8290
  onScopeChange: _resume(function(s) {
7918
8291
  reviewScope = s === "committed" ? null : s;
7919
- }, "D1", $scope1_id),
8292
+ }, "E1", $scope1_id),
7920
8293
  onFileChange: _resume(function(f) {
7921
8294
  reviewFile = f;
7922
- }, "D2", $scope1_id),
8295
+ }, "E2", $scope1_id),
7923
8296
  findOpen: reviewFindOpen,
7924
8297
  findOpenChange: _resume((_new_reviewFindOpen) => {
7925
8298
  reviewFindOpen = _new_reviewFindOpen;
7926
- }, "D3", $scope1_id),
8299
+ }, "E3", $scope1_id),
7927
8300
  findTick: reviewFindTick,
7928
8301
  findFocusRef: reviewFindFocus,
7929
8302
  onSent: _resume(function(sessionId) {
7930
8303
  tab = sessionId;
7931
8304
  view = "term";
7932
- }, "D4", $scope1_id),
8305
+ }, "E4", $scope1_id),
7933
8306
  onExit: _resume(function() {
7934
8307
  view = "term";
7935
- }, "D5", $scope1_id)
8308
+ }, "E5", $scope1_id)
7936
8309
  });
7937
8310
  _html(`</div>${_el_resume($scope1_id, "a")}`);
7938
8311
  writeScope($scope1_id, {});
@@ -7949,13 +8322,13 @@ var work_view_default = _template("D", (input) => {
7949
8322
  workspace: ws,
7950
8323
  workspaceChange: _resume(function(next) {
7951
8324
  input.onWorkspaceChange?.(next);
7952
- }, "D31", $scope2_id),
8325
+ }, "E31", $scope2_id),
7953
8326
  onExit: _resume(function() {
7954
8327
  view = "term";
7955
- }, "D32", $scope2_id),
8328
+ }, "E32", $scope2_id),
7956
8329
  onDeleted: _resume(function() {
7957
8330
  input.onWorkspaceDeleted?.(ws.id);
7958
- }, "D33", $scope2_id)
8331
+ }, "E33", $scope2_id)
7959
8332
  });
7960
8333
  _html(`</div>${_el_resume($scope2_id, "a")}`);
7961
8334
  writeScope($scope2_id, { b: _serialize_if($scope0_reason, 4) && _existing_scope($childScope2) });
@@ -7969,10 +8342,11 @@ var work_view_default = _template("D", (input) => {
7969
8342
  _set_serialize_reason({
7970
8343
  0: _serialize_guard($scope0_reason, 1),
7971
8344
  1: $sg__input_workspace,
7972
- 2: _serialize_guard($scope0_reason, 9),
7973
- 3: $sg__input_workspace,
7974
- 4: $sg__input_agents,
7975
- 5: _serialize_guard($scope0_reason, 10)
8345
+ 2: _serialize_guard($scope0_reason, 17),
8346
+ 3: _serialize_guard($scope0_reason, 9),
8347
+ 4: $sg__input_workspace,
8348
+ 5: $sg__input_agents,
8349
+ 6: _serialize_guard($scope0_reason, 10)
7976
8350
  });
7977
8351
  const $childScope3 = _peek_scope_id();
7978
8352
  settings_page_default({
@@ -7981,21 +8355,21 @@ var work_view_default = _template("D", (input) => {
7981
8355
  instance: input.instance,
7982
8356
  instanceChange: _resume(function(i) {
7983
8357
  input.onInstanceChange?.(i);
7984
- }, "D34", $scope3_id),
8358
+ }, "E34", $scope3_id),
7985
8359
  backHref: `/w/${ws.id}`,
7986
8360
  onExit: _resume(function() {
7987
8361
  view = "term";
7988
- }, "D35", $scope3_id),
8362
+ }, "E35", $scope3_id),
7989
8363
  setup: input.setup,
7990
8364
  setupChange: _resume(function(s) {
7991
8365
  input.onSetupChange?.(s);
7992
- }, "D36", $scope3_id),
8366
+ }, "E36", $scope3_id),
7993
8367
  preferredChange: _resume(function(agent) {
7994
8368
  input.onPreferredChange?.(agent);
7995
- }, "D37", $scope3_id),
8369
+ }, "E37", $scope3_id),
7996
8370
  agentsChange: _resume(function(agents) {
7997
8371
  input.onAgentsChange?.(agents);
7998
- }, "D38", $scope3_id)
8372
+ }, "E38", $scope3_id)
7999
8373
  });
8000
8374
  _html(`</div>${_el_resume($scope3_id, "a")}`);
8001
8375
  writeScope($scope3_id, { b: _serialize_if($scope0_reason, 5) && _existing_scope($childScope3) });
@@ -8017,15 +8391,15 @@ var work_view_default = _template("D", (input) => {
8017
8391
  backHref: `/w/${ws.id}`,
8018
8392
  onExit: _resume(function() {
8019
8393
  exitCreate();
8020
- }, "D39", $scope4_id),
8394
+ }, "E39", $scope4_id),
8021
8395
  onCreate: _resume(function(ws) {
8022
8396
  input.onCreated?.(ws);
8023
- }, "D40", $scope4_id),
8397
+ }, "E40", $scope4_id),
8024
8398
  onRestore: _resume(function(next) {
8025
8399
  input.onWorkspaceChange?.(next);
8026
8400
  input.onSelectWorkspace?.(next.id);
8027
8401
  exitCreate();
8028
- }, "D41", $scope4_id)
8402
+ }, "E41", $scope4_id)
8029
8403
  });
8030
8404
  _html(`</div>${_el_resume($scope4_id, "a")}`);
8031
8405
  writeScope($scope4_id, { b: _existing_scope($childScope4) });
@@ -8067,26 +8441,26 @@ var work_view_default = _template("D", (input) => {
8067
8441
  onNewSession: _resume(function(agent) {
8068
8442
  view = "term";
8069
8443
  newSession(ws.id, agent);
8070
- }, "D42", $scope6_id),
8444
+ }, "E42", $scope6_id),
8071
8445
  onOpenTab: _resume(function(id) {
8072
8446
  tab = id;
8073
8447
  view = "term";
8074
- }, "D43", $scope6_id),
8448
+ }, "E43", $scope6_id),
8075
8449
  onCloseSession: _resume(function(id) {
8076
8450
  closeSession(id);
8077
- }, "D44", $scope6_id),
8451
+ }, "E44", $scope6_id),
8078
8452
  onRenameSession: _resume(function(id, title) {
8079
8453
  renameSession(id, title);
8080
- }, "D45", $scope6_id),
8454
+ }, "E45", $scope6_id),
8081
8455
  active: input.active && view === "term" && s.id === curTab,
8082
8456
  mode: view,
8083
8457
  onOpenNav: _resume(function() {
8084
8458
  toggleNav();
8085
- }, "D46", $scope6_id),
8459
+ }, "E46", $scope6_id),
8086
8460
  reviewFindOpen,
8087
8461
  onToggleReviewFind: _resume(function() {
8088
8462
  toggleReviewFind();
8089
- }, "D47", $scope6_id)
8463
+ }, "E47", $scope6_id)
8090
8464
  });
8091
8465
  _html(`</div>${_el_resume($scope6_id, "a")}`);
8092
8466
  _subscribe($newSession2__closures, _subscribe($renameSession2__closures, _subscribe($closeSession2__closures, _subscribe($toggleReviewFind2__closures, _subscribe($curTab__closures, _subscribe($shownSessions__closures, _subscribe($si__input_workspace && $ws_name__closures, _subscribe($si__input_workspace && $ws_id__closures, _subscribe($reviewFindOpen__closures, _subscribe($view__closures, _subscribe($si__input_agents && $input_agents__closures, _subscribe($si__input_active && $input_active__closures, writeScope($scope6_id, {
@@ -8097,8 +8471,8 @@ var work_view_default = _template("D", (input) => {
8097
8471
  _if(() => {
8098
8472
  if (!shownSessions.length && view === "term") {
8099
8473
  const $scope7_id = _scope_id();
8100
- _html(`<div${_attr_class("_bv")}><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>`);
8101
- _script($scope7_id, "D49");
8474
+ _html(`<div${_attr_class("_bE")}><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>`);
8475
+ _script($scope7_id, "E49");
8102
8476
  _subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
8103
8477
  return 0;
8104
8478
  }
@@ -8107,21 +8481,21 @@ var work_view_default = _template("D", (input) => {
8107
8481
  return 0;
8108
8482
  } else {
8109
8483
  const $scope10_id = _scope_id();
8110
- _html(`<p${_attr_class("_bv")}>Loading sessions…</p>`);
8484
+ _html(`<p${_attr_class("_bE")}>Loading sessions…</p>`);
8111
8485
  writeScope($scope10_id, {});
8112
8486
  return 1;
8113
8487
  }
8114
8488
  }, $scope0_id, "j", 1, 1, 1, "</div>");
8115
8489
  _html(`</div></div>${_el_resume($scope0_id, "a")}`);
8116
- _script($scope0_id, "D50");
8117
- _script($scope0_id, "D51");
8118
- _script($scope0_id, "D52");
8119
- _script($scope0_id, "D53");
8120
- _script($scope0_id, "D54");
8121
- _script($scope0_id, "D55");
8122
- _script($scope0_id, "D56");
8123
- _script($scope0_id, "D57");
8124
- _script($scope0_id, "D58");
8490
+ _script($scope0_id, "E50");
8491
+ _script($scope0_id, "E51");
8492
+ _script($scope0_id, "E52");
8493
+ _script($scope0_id, "E53");
8494
+ _script($scope0_id, "E54");
8495
+ _script($scope0_id, "E55");
8496
+ _script($scope0_id, "E56");
8497
+ _script($scope0_id, "E57");
8498
+ _script($scope0_id, "E58");
8125
8499
  writeScope($scope0_id, {
8126
8500
  n: input.initialView,
8127
8501
  s: input.allStatus,
@@ -8354,7 +8728,7 @@ var app_shell_default = _template("c", (input) => {
8354
8728
  if (!selectedId && showSetup) {
8355
8729
  const $scope4_id = _scope_id();
8356
8730
  _html(`<div${_attr_class("_h")}>`);
8357
- _set_serialize_reason(106);
8731
+ _set_serialize_reason(210);
8358
8732
  const $childScope = _peek_scope_id();
8359
8733
  settings_page_default({
8360
8734
  preferred: settings ? settings.preferredAgent : "shell",
@@ -8420,7 +8794,7 @@ var app_shell_default = _template("c", (input) => {
8420
8794
  if (ws) {
8421
8795
  const $scope2_id = _scope_id();
8422
8796
  _html(`<div${_attr_class("_g")}>`);
8423
- _set_serialize_reason(1);
8797
+ _set_serialize_reason(262142);
8424
8798
  const $childScope3 = _peek_scope_id();
8425
8799
  work_view_default({
8426
8800
  workspace: ws,
@@ -8652,7 +9026,7 @@ var app_page_default = _template("b", (input) => {
8652
9026
  });
8653
9027
  //#endregion
8654
9028
  //#region src/routes/_app/new/+page.marko
8655
- var _page_default$4 = _template("$", (input) => {
9029
+ var _page_default$4 = _template("ab", (input) => {
8656
9030
  _scope_reason();
8657
9031
  _scope_id();
8658
9032
  app_page_default({ initial: {
@@ -8694,7 +9068,7 @@ var GET$21 = Run.GET(async (_ctx, next) => {
8694
9068
  });
8695
9069
  //#endregion
8696
9070
  //#region src/routes/_app/settings/+page.marko
8697
- var _page_default$3 = _template("ab", (input) => {
9071
+ var _page_default$3 = _template("bb", (input) => {
8698
9072
  _scope_reason();
8699
9073
  _scope_id();
8700
9074
  app_page_default({ initial: {
@@ -8731,7 +9105,7 @@ function head3(context) {
8731
9105
  }
8732
9106
  //#endregion
8733
9107
  //#region src/routes/_app/w/$id/+page.marko
8734
- var _page_default$2 = _template("bb", (input) => {
9108
+ var _page_default$2 = _template("cb", (input) => {
8735
9109
  _scope_reason();
8736
9110
  _scope_id();
8737
9111
  app_page_default({ initial: {
@@ -8768,7 +9142,7 @@ function head4(context) {
8768
9142
  }
8769
9143
  //#endregion
8770
9144
  //#region src/routes/_app/w/$id/manage/+page.marko
8771
- var _page_default$1 = _template("cb", (input) => {
9145
+ var _page_default$1 = _template("db", (input) => {
8772
9146
  _scope_reason();
8773
9147
  _scope_id();
8774
9148
  app_page_default({ initial: {
@@ -8804,7 +9178,7 @@ function head5(context) {
8804
9178
  }
8805
9179
  //#endregion
8806
9180
  //#region src/routes/_app/w/$id/review/+page.marko
8807
- var _page_default = _template("db", (input) => {
9181
+ var _page_default = _template("eb", (input) => {
8808
9182
  _scope_reason();
8809
9183
  _scope_id();
8810
9184
  const q = $global().url.searchParams;
@@ -10090,6 +10464,7 @@ var Body = /* @__PURE__ */ object({
10090
10464
  "update",
10091
10465
  "remove",
10092
10466
  "auth",
10467
+ "auth-refresh",
10093
10468
  "logout"
10094
10469
  ]),
10095
10470
  version: /* @__PURE__ */ optional(/* @__PURE__ */ string())
@@ -10493,11 +10868,33 @@ function missingRemoteRef(err) {
10493
10868
  const msg = err && typeof err === "object" && "stderr" in err ? String(err.stderr) : String(err);
10494
10869
  return /couldn't find remote ref/.test(msg);
10495
10870
  }
10871
+ /** Well-known empty tree for the repo's hash algorithm — diff against it
10872
+ * to show every file as an add (first push to an empty GitHub repo). */
10873
+ async function emptyTreeOid(dir) {
10874
+ return git([
10875
+ "hash-object",
10876
+ "-t",
10877
+ "tree",
10878
+ "/dev/null"
10879
+ ], dir);
10880
+ }
10881
+ /** Any `refs/remotes/origin/*` tip after freshen — cheap empty-remote check
10882
+ * without another network round-trip. */
10883
+ async function remoteHasHeads(dir) {
10884
+ const out = await git([
10885
+ "for-each-ref",
10886
+ "--format=%(refname)",
10887
+ "--count=1",
10888
+ "refs/remotes/origin"
10889
+ ], dir).catch(() => "");
10890
+ return /refs\/remotes\/origin\//.test(out);
10891
+ }
10496
10892
  /** The ref the working tree is compared against by default, best first.
10497
10893
  * Workspace branch / detached / foreign → `origin/<base>`. Our `-topic`
10498
10894
  * lane → `origin/<ws-branch>` (only two levels; `<ws>-a-b` still parents
10499
10895
  * to the workspace branch). `foreign` is other workspaces' branches so a
10500
- * longer prefix is not stolen. An explicit `baseRef` overrides all. */
10896
+ * longer prefix is not stolen. An explicit `baseRef` overrides all.
10897
+ * Empty remote (no origin tips) → empty tree, not `missing`. */
10501
10898
  async function resolveBase(dir, wsBranch, baseBranch, headBranch, foreign, baseRef) {
10502
10899
  const ours = ownsBranch(headBranch, wsBranch) && !foreign.some((x) => ownsBranch(headBranch, x));
10503
10900
  const candidates = [];
@@ -10521,10 +10918,20 @@ async function resolveBase(dir, wsBranch, baseBranch, headBranch, foreign, baseR
10521
10918
  label
10522
10919
  };
10523
10920
  } catch {}
10921
+ const label = baseRef || baseBranch;
10922
+ if (!await remoteHasHeads(dir)) {
10923
+ const empty = await emptyTreeOid(dir);
10924
+ return {
10925
+ mergeBase: empty,
10926
+ ref: empty,
10927
+ label: `${label} (empty remote)`,
10928
+ emptyRemote: true
10929
+ };
10930
+ }
10524
10931
  return {
10525
10932
  mergeBase: "HEAD",
10526
10933
  ref: "HEAD",
10527
- label: baseRef || baseBranch,
10934
+ label,
10528
10935
  missing: true
10529
10936
  };
10530
10937
  }
@@ -10650,30 +11057,47 @@ async function localDiff(dir, ws, repo, branch, localHead, baseRef, scope) {
10650
11057
  ...branch !== "HEAD" ? [branch] : [],
10651
11058
  ...baseRef ? [baseRef] : [repo.base_branch]
10652
11059
  ]);
10653
- const { mergeBase, ref, label, missing } = await resolveBase(dir, ws.branch, repo.base_branch, branch, otherWorkspaceBranches(ws.id), baseRef);
10654
- if (missing && !uncommitted) return {
11060
+ const { mergeBase, ref, label, missing, emptyRemote } = await resolveBase(dir, ws.branch, repo.base_branch, branch, otherWorkspaceBranches(ws.id), baseRef);
11061
+ const base = {
10655
11062
  id: repo.worktree,
10656
11063
  worktree: repo.worktree,
10657
11064
  full_name: repo.full_name,
10658
11065
  base: label,
10659
11066
  default_branch: repo.default_branch,
10660
- branch,
11067
+ branch
11068
+ };
11069
+ if (!localHead) {
11070
+ const empty = emptyRemote ? mergeBase : await emptyTreeOid(dir).catch(() => "");
11071
+ if (scope === "committed" || !empty) return {
11072
+ ...base,
11073
+ head: "",
11074
+ baseSha: empty || "",
11075
+ unborn: true,
11076
+ ...!emptyRemote && missing ? { baseMissing: true } : {},
11077
+ files: []
11078
+ };
11079
+ const files = await collectFiles(dir, empty, empty, "working");
11080
+ return {
11081
+ ...base,
11082
+ head: "",
11083
+ baseSha: empty,
11084
+ unborn: true,
11085
+ files
11086
+ };
11087
+ }
11088
+ if (missing && !uncommitted) return {
11089
+ ...base,
10661
11090
  head: localHead,
10662
11091
  baseSha: localHead,
10663
11092
  baseMissing: true,
10664
11093
  files: []
10665
11094
  };
10666
- const contained = !missing && await treeContainedIn(dir, ref, "HEAD");
11095
+ const contained = !missing && !emptyRemote && await treeContainedIn(dir, ref, "HEAD");
10667
11096
  const against = contained ? "HEAD" : mergeBase;
10668
- const baseSha = missing ? localHead : await git(["rev-parse", ref], dir).catch(() => mergeBase);
11097
+ const baseSha = missing ? localHead : emptyRemote ? mergeBase : await git(["rev-parse", ref], dir).catch(() => mergeBase);
10669
11098
  const files = await collectFiles(dir, against, "HEAD", scope);
10670
11099
  return {
10671
- id: repo.worktree,
10672
- worktree: repo.worktree,
10673
- full_name: repo.full_name,
10674
- base: label,
10675
- default_branch: repo.default_branch,
10676
- branch,
11100
+ ...base,
10677
11101
  head: localHead,
10678
11102
  baseSha,
10679
11103
  ...missing && { baseMissing: true },
@@ -16050,4 +16474,4 @@ server.listen(port, () => {
16050
16474
  //#endregion
16051
16475
  export {};
16052
16476
 
16053
- ;var __MARKO_MANIFEST__={"T$MNY0k":{"block":[2,"stylesheet#/assets/app-page-DOL8nhko.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DOL8nhko.css\"",">"],"defer":[2,"/assets/w._-hKsQDica.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-hKsQDica.js\"","></script>",2,"modulepreload#/assets/_DY1ZTiKf.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DY1ZTiKf.js\"",">"]},"ZLT8joi":{"block":[2,"stylesheet#/assets/app-page-DOL8nhko.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DOL8nhko.css\"",">"],"defer":[2,"/assets/new-hKsQDica.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-hKsQDica.js\"","></script>",2,"modulepreload#/assets/_DY1ZTiKf.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DY1ZTiKf.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/app-page-DOL8nhko.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DOL8nhko.css\"",">"],"defer":[2,"/assets/settings-hKsQDica.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-hKsQDica.js\"","></script>",2,"modulepreload#/assets/_DY1ZTiKf.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DY1ZTiKf.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/app-page-DOL8nhko.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DOL8nhko.css\"",">"],"defer":[2,"/assets/w._-CyAQSfuD.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-CyAQSfuD.js\"","></script>",2,"modulepreload#/assets/_DY1ZTiKf.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DY1ZTiKf.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/app-page-DOL8nhko.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DOL8nhko.css\"",">"],"defer":[2,"/assets/w-hKsQDica.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-hKsQDica.js\"","></script>",2,"modulepreload#/assets/_DY1ZTiKf.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DY1ZTiKf.js\"",">"]}};
16477
+ ;var __MARKO_MANIFEST__={"ZLT8joi":{"block":[2,"stylesheet#/assets/app-page-CYLbQ8QR.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CYLbQ8QR.css\"",">"],"defer":[2,"/assets/new-C7B6EV0t.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-C7B6EV0t.js\"","></script>",2,"modulepreload#/assets/_BL7dyWXL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BL7dyWXL.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/app-page-CYLbQ8QR.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CYLbQ8QR.css\"",">"],"defer":[2,"/assets/w-C7B6EV0t.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-C7B6EV0t.js\"","></script>",2,"modulepreload#/assets/_BL7dyWXL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BL7dyWXL.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/app-page-CYLbQ8QR.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CYLbQ8QR.css\"",">"],"defer":[2,"/assets/settings-C7B6EV0t.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-C7B6EV0t.js\"","></script>",2,"modulepreload#/assets/_BL7dyWXL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BL7dyWXL.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/app-page-CYLbQ8QR.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CYLbQ8QR.css\"",">"],"defer":[2,"/assets/w._-C7B6EV0t.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-C7B6EV0t.js\"","></script>",2,"modulepreload#/assets/_BL7dyWXL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BL7dyWXL.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/app-page-CYLbQ8QR.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CYLbQ8QR.css\"",">"],"defer":[2,"/assets/w._-Bwtl9yyA.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-Bwtl9yyA.js\"","></script>",2,"modulepreload#/assets/_BL7dyWXL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BL7dyWXL.js\"",">"]}};