@dylanpiercey/work 0.0.89 → 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/{_BNW7lzU5.js → _BI3Xi4eO.js} +70 -70
  2. package/dist/{_BaBpI2_Z.js → _BoHSyzGw.js} +27 -15
  3. package/dist/index.mjs +1008 -607
  4. package/dist/public/assets/{_C5ArZ6tM2.js → _3ynplbg02.js} +1 -1
  5. package/dist/public/assets/_3ynplbg02.js.br +0 -0
  6. package/dist/public/assets/{_3ApHfAFB.js → _4S5nbYez.js} +1 -1
  7. package/dist/public/assets/_4S5nbYez.js.br +0 -0
  8. package/dist/public/assets/{_DMM-d_n4.js → _6JqdBfNo.js} +6 -6
  9. package/dist/public/assets/_6JqdBfNo.js.br +0 -0
  10. package/dist/public/assets/{_DLlzUjC4.js → _B-X5aTOX.js} +1 -1
  11. package/dist/public/assets/{_C4R1AZ7T.js → _B2W6--GA.js} +1 -1
  12. package/dist/public/assets/_B2W6--GA.js.br +0 -0
  13. package/dist/public/assets/{__FHdvvoU.js → _B5L88Fun.js} +1 -1
  14. package/dist/public/assets/_B5L88Fun.js.br +0 -0
  15. package/dist/public/assets/{_CUNBYPpl2.js → _B5zr-Eqv2.js} +1 -1
  16. package/dist/public/assets/{_B0EHPDCY.js → _B77CKFnL.js} +1 -1
  17. package/dist/public/assets/_B77CKFnL.js.br +0 -0
  18. package/dist/public/assets/{_jpL592Mp.js → _B8cmFbkc.js} +1 -1
  19. package/dist/public/assets/_B8cmFbkc.js.br +0 -0
  20. package/dist/public/assets/{_Csr0JoJi.js → _BDDJCM8z.js} +1 -1
  21. package/dist/public/assets/_BDDJCM8z.js.br +0 -0
  22. package/dist/public/assets/{_D8a3k14z2.js → _BDpDNdO22.js} +1 -1
  23. package/dist/public/assets/_BDpDNdO22.js.br +0 -0
  24. package/dist/public/assets/{_CJ4R3Xhd.js → _BDurrHP5.js} +1 -1
  25. package/dist/public/assets/_BDurrHP5.js.br +0 -0
  26. package/dist/public/assets/{_CsOY40Tj.js → _BEk6xpoo.js} +1 -1
  27. package/dist/public/assets/_BEk6xpoo.js.br +0 -0
  28. package/dist/public/assets/{_Dz-CLezO2.js → _BGveroZ62.js} +1 -1
  29. package/dist/public/assets/_BGveroZ62.js.br +0 -0
  30. package/dist/public/assets/{_DBZliThN2.js → _BJRef8Og2.js} +1 -1
  31. package/dist/public/assets/_BJRef8Og2.js.br +0 -0
  32. package/dist/public/assets/{_DLnZn5vf.js → _BL7dyWXL.js} +20 -20
  33. package/dist/public/assets/_BL7dyWXL.js.br +0 -0
  34. package/dist/public/assets/{_D2AcgzVt.js → _BNpauKOa.js} +1 -1
  35. package/dist/public/assets/_BNpauKOa.js.br +5 -0
  36. package/dist/public/assets/{_BJYOVEXV.js → _BRtEkH0S.js} +1 -1
  37. package/dist/public/assets/_BRtEkH0S.js.br +0 -0
  38. package/dist/public/assets/{_68NBnRBw.js → _BTWYV-Lp.js} +1 -1
  39. package/dist/public/assets/_BTWYV-Lp.js.br +0 -0
  40. package/dist/public/assets/{_wVj_AaSO2.js → _BYxENZ8N2.js} +1 -1
  41. package/dist/public/assets/_BYxENZ8N2.js.br +0 -0
  42. package/dist/public/assets/{_CCnllILq.js → _Bat7nbwI.js} +1 -1
  43. package/dist/public/assets/_Bat7nbwI.js.br +0 -0
  44. package/dist/public/assets/{_B0VinNA_.js → _BcsnmmsA.js} +1 -1
  45. package/dist/public/assets/_BcsnmmsA.js.br +0 -0
  46. package/dist/public/assets/{_Czc_uzvi.js → _BgHgS7fo.js} +1 -1
  47. package/dist/public/assets/_BgHgS7fo.js.br +0 -0
  48. package/dist/public/assets/{_CXvlT_ey.js → _BgTMYO5f.js} +1 -1
  49. package/dist/public/assets/_BgTMYO5f.js.br +0 -0
  50. package/dist/public/assets/{_7gm8mq-M2.js → _BkUG7KqS2.js} +1 -1
  51. package/dist/public/assets/_BkUG7KqS2.js.br +0 -0
  52. package/dist/public/assets/{_DLnnHpAM2.js → _BmE5vg1I2.js} +1 -1
  53. package/dist/public/assets/_BmE5vg1I2.js.br +0 -0
  54. package/dist/public/assets/{_CBEk-f702.js → _Bx6kQ7i82.js} +1 -1
  55. package/dist/public/assets/_Bx6kQ7i82.js.br +0 -0
  56. package/dist/public/assets/{_CeHIw9_Z2.js → _C4At0P-72.js} +1 -1
  57. package/dist/public/assets/_C4At0P-72.js.br +0 -0
  58. package/dist/public/assets/{_DdN-JTu5.js → _C6C6kASF.js} +1 -1
  59. package/dist/public/assets/_C6C6kASF.js.br +0 -0
  60. package/dist/public/assets/{_rNEbZj3_.js → _CAGMXD3z.js} +1 -1
  61. package/dist/public/assets/_CAGMXD3z.js.br +0 -0
  62. package/dist/public/assets/{_wK2y6faT2.js → _CDHF4ZQE2.js} +1 -1
  63. package/dist/public/assets/_CDHF4ZQE2.js.br +0 -0
  64. package/dist/public/assets/{_BEjvKyQl.js → _CMqX47N9.js} +1 -1
  65. package/dist/public/assets/_CMqX47N9.js.br +0 -0
  66. package/dist/public/assets/{_BbRXjU8u.js → _CTbAK0l2.js} +1 -1
  67. package/dist/public/assets/_CTbAK0l2.js.br +0 -0
  68. package/dist/public/assets/{_CZwFYO2Z2.js → _CU55G8Yf2.js} +1 -1
  69. package/dist/public/assets/_CU55G8Yf2.js.br +0 -0
  70. package/dist/public/assets/{_CHeP2N572.js → _CW0r9JmM2.js} +1 -1
  71. package/dist/public/assets/_CW0r9JmM2.js.br +0 -0
  72. package/dist/public/assets/{_Dh-sLvqG.js → _CZTLFFJd.js} +1 -1
  73. package/dist/public/assets/_CZTLFFJd.js.br +0 -0
  74. package/dist/public/assets/{_BaV_r0KE.js → _C_IYNn8f.js} +1 -1
  75. package/dist/public/assets/_C_IYNn8f.js.br +0 -0
  76. package/dist/public/assets/{_DapQP84P2.js → _C_qZ5uwd2.js} +1 -1
  77. package/dist/public/assets/_C_qZ5uwd2.js.br +0 -0
  78. package/dist/public/assets/{_BFlZZV-0.js → _CbSFdGhW.js} +1 -1
  79. package/dist/public/assets/_CbSFdGhW.js.br +0 -0
  80. package/dist/public/assets/{_CHfbuaf42.js → _CwJ0At0b2.js} +1 -1
  81. package/dist/public/assets/_CwJ0At0b2.js.br +0 -0
  82. package/dist/public/assets/{_DVtMOg1P.js → _Cy-7OIHA.js} +1 -1
  83. package/dist/public/assets/_Cy-7OIHA.js.br +0 -0
  84. package/dist/public/assets/{_BVl-sPkB.js → _CyBvc9ho.js} +1 -1
  85. package/dist/public/assets/_CyBvc9ho.js.br +0 -0
  86. package/dist/public/assets/{_B09NjUR4.js → _Cyv5hWnQ.js} +1 -1
  87. package/dist/public/assets/_Cyv5hWnQ.js.br +0 -0
  88. package/dist/public/assets/{_DLFXdzdD.js → _D1XnveBV.js} +1 -1
  89. package/dist/public/assets/_D1XnveBV.js.br +0 -0
  90. package/dist/public/assets/{_Df4cvc6C.js → _D8Iy1C9u.js} +1 -1
  91. package/dist/public/assets/_D8Iy1C9u.js.br +0 -0
  92. package/dist/public/assets/{_eEsY8spY.js → _D9Wr0Ggc.js} +1 -1
  93. package/dist/public/assets/_D9Wr0Ggc.js.br +0 -0
  94. package/dist/public/assets/{_CZlD9KhN.js → _DAWoam_-.js} +1 -1
  95. package/dist/public/assets/_DAWoam_-.js.br +0 -0
  96. package/dist/public/assets/{_nxQ7vB0v2.js → _DGM3-GL02.js} +1 -1
  97. package/dist/public/assets/_DGM3-GL02.js.br +0 -0
  98. package/dist/public/assets/{_DPcFZ9y5.js → _DJdiUu64.js} +1 -1
  99. package/dist/public/assets/_DJdiUu64.js.br +0 -0
  100. package/dist/public/assets/{_q80G7tDX2.js → _DK35E5612.js} +1 -1
  101. package/dist/public/assets/_DK35E5612.js.br +0 -0
  102. package/dist/public/assets/{_DHKGemnb2.js → _DPayMNVG2.js} +1 -1
  103. package/dist/public/assets/_DPayMNVG2.js.br +0 -0
  104. package/dist/public/assets/{_6nUxgGxb.js → _D_iLSXxo.js} +1 -1
  105. package/dist/public/assets/_D_iLSXxo.js.br +0 -0
  106. package/dist/public/assets/{_BSySd27S.js → _DciRF9rE.js} +1 -1
  107. package/dist/public/assets/_DciRF9rE.js.br +0 -0
  108. package/dist/public/assets/{_BPi2-dgs.js → _DfNptl8V.js} +1 -1
  109. package/dist/public/assets/_DfNptl8V.js.br +0 -0
  110. package/dist/public/assets/{_CqYgTZl02.js → _DijIqSaj2.js} +1 -1
  111. package/dist/public/assets/_DijIqSaj2.js.br +0 -0
  112. package/dist/public/assets/{_mmUZxMmq.js → _DkpU65ju.js} +1 -1
  113. package/dist/public/assets/_DkpU65ju.js.br +0 -0
  114. package/dist/public/assets/{_CuWbP_-M.js → _DoMUzoqQ.js} +1 -1
  115. package/dist/public/assets/_DoMUzoqQ.js.br +0 -0
  116. package/dist/public/assets/{_Bj9cNmYh.js → _Ds32TzIf.js} +1 -1
  117. package/dist/public/assets/_Ds32TzIf.js.br +0 -0
  118. package/dist/public/assets/{_B9UAz-r-2.js → _DwFOcLsI2.js} +1 -1
  119. package/dist/public/assets/_DwFOcLsI2.js.br +0 -0
  120. package/dist/public/assets/{_D62vus3Y.js → _DyODLJ7v.js} +1 -1
  121. package/dist/public/assets/_DyODLJ7v.js.br +0 -0
  122. package/dist/public/assets/{_wl9V6Cj_.js → _DyzNnEOs.js} +1 -1
  123. package/dist/public/assets/_DyzNnEOs.js.br +0 -0
  124. package/dist/public/assets/{_CJVn7QPr2.js → _EZAd6l9R2.js} +1 -1
  125. package/dist/public/assets/{_gDwVQCtN.js → _IL1tPh9k.js} +1 -1
  126. package/dist/public/assets/_IL1tPh9k.js.br +0 -0
  127. package/dist/public/assets/{_M3-QzOcT.js → _PoE8SOKi.js} +1 -1
  128. package/dist/public/assets/_PoE8SOKi.js.br +0 -0
  129. package/dist/public/assets/{_DYjLnTZb2.js → _SzbJBQbg2.js} +1 -1
  130. package/dist/public/assets/_SzbJBQbg2.js.br +0 -0
  131. package/dist/public/assets/{_Crd8NEGi.js → _WhpyuASW.js} +1 -1
  132. package/dist/public/assets/_WhpyuASW.js.br +0 -0
  133. package/dist/public/assets/{_D-TNzqKE.js → _aE4RRi8y.js} +1 -1
  134. package/dist/public/assets/_aE4RRi8y.js.br +0 -0
  135. package/dist/public/assets/{_QW8ME1h1.js → _avsueLNZ.js} +1 -1
  136. package/dist/public/assets/_avsueLNZ.js.br +0 -0
  137. package/dist/public/assets/{_BTrntntO.js → _h3cff2nW.js} +1 -1
  138. package/dist/public/assets/_h3cff2nW.js.br +0 -0
  139. package/dist/public/assets/{_B7p4f0NK.js → _kzWcm3nm.js} +1 -1
  140. package/dist/public/assets/_kzWcm3nm.js.br +0 -0
  141. package/dist/public/assets/{_BogP78ys.js → _leSBrm_6.js} +1 -1
  142. package/dist/public/assets/_leSBrm_6.js.br +0 -0
  143. package/dist/public/assets/{_DoPX7h422.js → _mIIXioBP2.js} +1 -1
  144. package/dist/public/assets/_mIIXioBP2.js.br +0 -0
  145. package/dist/public/assets/{_BL2BsfGC.js → _tYnN-yyR.js} +1 -1
  146. package/dist/public/assets/_tYnN-yyR.js.br +0 -0
  147. package/dist/public/assets/{_B4Pr9Te92.js → _u_QJIZlf2.js} +1 -1
  148. package/dist/public/assets/_u_QJIZlf2.js.br +0 -0
  149. package/dist/public/assets/{_C-3zDLjM.js → _vDRZXcov.js} +1 -1
  150. package/dist/public/assets/_vDRZXcov.js.br +0 -0
  151. package/dist/public/assets/{_DUv8q83I.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/_3ApHfAFB.js.br +0 -0
  167. package/dist/public/assets/_68NBnRBw.js.br +0 -0
  168. package/dist/public/assets/_6nUxgGxb.js.br +0 -0
  169. package/dist/public/assets/_7gm8mq-M2.js.br +0 -0
  170. package/dist/public/assets/_B09NjUR4.js.br +0 -0
  171. package/dist/public/assets/_B0EHPDCY.js.br +0 -0
  172. package/dist/public/assets/_B0VinNA_.js.br +0 -0
  173. package/dist/public/assets/_B4Pr9Te92.js.br +0 -0
  174. package/dist/public/assets/_B7p4f0NK.js.br +0 -0
  175. package/dist/public/assets/_B9UAz-r-2.js.br +0 -0
  176. package/dist/public/assets/_BEjvKyQl.js.br +0 -0
  177. package/dist/public/assets/_BFlZZV-0.js.br +0 -0
  178. package/dist/public/assets/_BJYOVEXV.js.br +0 -0
  179. package/dist/public/assets/_BL2BsfGC.js.br +0 -0
  180. package/dist/public/assets/_BPi2-dgs.js.br +0 -0
  181. package/dist/public/assets/_BSySd27S.js.br +0 -0
  182. package/dist/public/assets/_BTrntntO.js.br +0 -0
  183. package/dist/public/assets/_BVl-sPkB.js.br +0 -0
  184. package/dist/public/assets/_BaV_r0KE.js.br +0 -0
  185. package/dist/public/assets/_BbRXjU8u.js.br +0 -0
  186. package/dist/public/assets/_Bj9cNmYh.js.br +0 -0
  187. package/dist/public/assets/_BogP78ys.js.br +0 -0
  188. package/dist/public/assets/_C-3zDLjM.js.br +0 -0
  189. package/dist/public/assets/_C4R1AZ7T.js.br +0 -0
  190. package/dist/public/assets/_C5ArZ6tM2.js.br +0 -0
  191. package/dist/public/assets/_CBEk-f702.js.br +0 -0
  192. package/dist/public/assets/_CCnllILq.js.br +0 -0
  193. package/dist/public/assets/_CHeP2N572.js.br +0 -0
  194. package/dist/public/assets/_CHfbuaf42.js.br +0 -0
  195. package/dist/public/assets/_CJ4R3Xhd.js.br +0 -0
  196. package/dist/public/assets/_CXvlT_ey.js.br +0 -0
  197. package/dist/public/assets/_CZlD9KhN.js.br +0 -0
  198. package/dist/public/assets/_CZwFYO2Z2.js.br +0 -0
  199. package/dist/public/assets/_CeHIw9_Z2.js.br +0 -0
  200. package/dist/public/assets/_CqYgTZl02.js.br +0 -0
  201. package/dist/public/assets/_Crd8NEGi.js.br +0 -0
  202. package/dist/public/assets/_CsOY40Tj.js.br +0 -0
  203. package/dist/public/assets/_Csr0JoJi.js.br +0 -0
  204. package/dist/public/assets/_CuWbP_-M.js.br +0 -0
  205. package/dist/public/assets/_Czc_uzvi.js.br +0 -0
  206. package/dist/public/assets/_D-TNzqKE.js.br +0 -0
  207. package/dist/public/assets/_D2AcgzVt.js.br +0 -0
  208. package/dist/public/assets/_D62vus3Y.js.br +0 -0
  209. package/dist/public/assets/_D8a3k14z2.js.br +0 -0
  210. package/dist/public/assets/_DBZliThN2.js.br +0 -0
  211. package/dist/public/assets/_DHKGemnb2.js.br +0 -0
  212. package/dist/public/assets/_DLFXdzdD.js.br +0 -0
  213. package/dist/public/assets/_DLnZn5vf.js.br +0 -0
  214. package/dist/public/assets/_DLnnHpAM2.js.br +0 -0
  215. package/dist/public/assets/_DMM-d_n4.js.br +0 -0
  216. package/dist/public/assets/_DPcFZ9y5.js.br +0 -0
  217. package/dist/public/assets/_DUv8q83I.js.br +0 -0
  218. package/dist/public/assets/_DVtMOg1P.js.br +0 -0
  219. package/dist/public/assets/_DYjLnTZb2.js.br +0 -0
  220. package/dist/public/assets/_DapQP84P2.js.br +0 -0
  221. package/dist/public/assets/_DdN-JTu5.js.br +0 -0
  222. package/dist/public/assets/_Df4cvc6C.js.br +0 -0
  223. package/dist/public/assets/_Dh-sLvqG.js.br +0 -0
  224. package/dist/public/assets/_DoPX7h422.js.br +0 -0
  225. package/dist/public/assets/_Dz-CLezO2.js.br +0 -0
  226. package/dist/public/assets/_M3-QzOcT.js.br +0 -0
  227. package/dist/public/assets/_QW8ME1h1.js.br +0 -0
  228. package/dist/public/assets/__FHdvvoU.js.br +0 -0
  229. package/dist/public/assets/_eEsY8spY.js.br +0 -0
  230. package/dist/public/assets/_gDwVQCtN.js.br +0 -0
  231. package/dist/public/assets/_jpL592Mp.js.br +0 -0
  232. package/dist/public/assets/_mmUZxMmq.js.br +0 -0
  233. package/dist/public/assets/_nxQ7vB0v2.js.br +0 -0
  234. package/dist/public/assets/_q80G7tDX2.js.br +0 -0
  235. package/dist/public/assets/_rNEbZj3_.js.br +0 -0
  236. package/dist/public/assets/_wK2y6faT2.js.br +0 -0
  237. package/dist/public/assets/_wVj_AaSO2.js.br +0 -0
  238. package/dist/public/assets/_wl9V6Cj_.js.br +0 -0
  239. package/dist/public/assets/app-page-DJ2ivnX8.css +0 -1
  240. package/dist/public/assets/app-page-DJ2ivnX8.css.br +0 -0
  241. package/dist/public/assets/diff-view-BGH4FQ_a.css +0 -1
  242. package/dist/public/assets/diff-view-BGH4FQ_a.css.br +0 -0
  243. package/dist/public/assets/new-CBB1WWUj.js +0 -1
  244. package/dist/public/assets/settings-CBB1WWUj.js +0 -1
  245. package/dist/public/assets/w-CBB1WWUj.js +0 -1
  246. package/dist/public/assets/w._-CBB1WWUj.js +0 -1
  247. package/dist/public/assets/w._-DYgthMaF.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 "./_BaBpI2_Z.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 = {
@@ -2310,7 +2408,7 @@ async function addWorkspaceWorktree(bare, dest, branch, base) {
2310
2408
  }
2311
2409
  const label = path.basename(dest);
2312
2410
  if (!baseOid) {
2313
- if (await remoteHasHeads(bare)) throw new Error(`missing ${baseRef} after fetch`);
2411
+ if (await remoteHasHeads$1(bare)) throw new Error(`missing ${baseRef} after fetch`);
2314
2412
  progress$1(`Adding empty worktree ${label}/…`);
2315
2413
  await git([
2316
2414
  "worktree",
@@ -2360,7 +2458,7 @@ async function addWorkspaceWorktree(bare, dest, branch, base) {
2360
2458
  }
2361
2459
  /** Any `refs/remotes/origin/<branch>` tip — not `origin/HEAD`, which can
2362
2460
  * exist as a symref even when the pointed-to branch has no commits yet. */
2363
- async function remoteHasHeads(bare) {
2461
+ async function remoteHasHeads$1(bare) {
2364
2462
  return (await git([
2365
2463
  "for-each-ref",
2366
2464
  "--format=%(refname)",
@@ -2683,6 +2781,35 @@ async function authGithub(host, { interactive = false, ...opts } = {}) {
2683
2781
  }
2684
2782
  });
2685
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
+ }
2686
2813
  /** Sign out of a GitHub host (drops gh's token; the host stays listed). */
2687
2814
  async function logoutGithub(host, opts = {}) {
2688
2815
  if (!which("gh")) throw new Error("gh is not installed");
@@ -2758,8 +2885,20 @@ async function getSetup(refresh = false) {
2758
2885
  enabled: !off.has(i.id)
2759
2886
  }))
2760
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
+ }));
2761
2899
  return {
2762
2900
  ...d,
2901
+ github,
2763
2902
  tools,
2764
2903
  agents
2765
2904
  };
@@ -2817,7 +2956,7 @@ function withLock(key, fn) {
2817
2956
  */
2818
2957
  async function runSetupAction(id, action, opts = {}) {
2819
2958
  const log = (line) => progress$1(line);
2820
- const lockKey = action === "auth" || action === "logout" ? `auth:${id}` : "mise";
2959
+ const lockKey = action === "auth" || action === "auth-refresh" || action === "logout" ? `auth:${id}` : "mise";
2821
2960
  await withProgressOp(`setup:${id}`, () => withLock(lockKey, async () => {
2822
2961
  if (action === "auth") {
2823
2962
  await authGithub(id, { log });
@@ -2825,6 +2964,12 @@ async function runSetupAction(id, action, opts = {}) {
2825
2964
  await ensureGitCredentials(id);
2826
2965
  return;
2827
2966
  }
2967
+ if (action === "auth-refresh") {
2968
+ await refreshGithub(id, { log });
2969
+ forgetToken(id);
2970
+ await ensureGitCredentials(id);
2971
+ return;
2972
+ }
2828
2973
  if (action === "logout") {
2829
2974
  await logoutGithub(id, { log });
2830
2975
  forgetToken(id);
@@ -3517,26 +3662,26 @@ function applyInstance(inst) {
3517
3662
  }
3518
3663
  //#endregion
3519
3664
  //#region src/tags/settings-page.css.ts
3520
- var content$2 = "_ca _bB _bC";
3521
- var agentGrid = "_ce _bm";
3522
- var toolGrid = "_co _bm";
3665
+ var content$2 = "_ca _bk _bl";
3666
+ var agentGrid = "_ce _bv";
3667
+ var toolGrid = "_co _bv";
3523
3668
  //#endregion
3524
3669
  //#region src/tags/page-head.marko
3525
3670
  var page_head_default = _template("q", (input) => {
3526
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);
3527
3672
  const $scope0_id = _scope_id();
3528
- _html(`<header${_attr_class("_bD")}>`);
3673
+ _html(`<header${_attr_class("_bm")}>`);
3529
3674
  _if(() => {
3530
3675
  if (input.backHref) {
3531
3676
  const $scope1_id = _scope_id();
3532
- _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")}>`);
3533
3678
  icon_back_default({ size: 16 });
3534
3679
  _html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
3535
3680
  _serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
3536
3681
  return 0;
3537
3682
  } else if (input.onBack) {
3538
3683
  const $scope2_id = _scope_id();
3539
- _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")}>`);
3540
3685
  icon_back_default({ size: 16 });
3541
3686
  _html(`</button>${_el_resume($scope2_id, "a")}`);
3542
3687
  _script($scope2_id, "q0");
@@ -3544,11 +3689,11 @@ var page_head_default = _template("q", (input) => {
3544
3689
  return 1;
3545
3690
  }
3546
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);
3547
- _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))}`);
3548
3693
  _if(() => {
3549
3694
  if (input.meta) {
3550
3695
  const $scope3_id = _scope_id();
3551
- _html(`<p${_attr_class("_bG")}>`);
3696
+ _html(`<p${_attr_class("_bp")}>`);
3552
3697
  _dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
3553
3698
  _html("</p>");
3554
3699
  $si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
@@ -3559,7 +3704,7 @@ var page_head_default = _template("q", (input) => {
3559
3704
  _if(() => {
3560
3705
  if (input.actions) {
3561
3706
  const $scope4_id = _scope_id();
3562
- _html(`<div${_attr_class("_bH")}>`);
3707
+ _html(`<div${_attr_class("_bq")}>`);
3563
3708
  _dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
3564
3709
  _html("</div>");
3565
3710
  $si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
@@ -3577,7 +3722,7 @@ var page_head_default = _template("q", (input) => {
3577
3722
  });
3578
3723
  //#endregion
3579
3724
  //#region src/tags/icons/icon-agent.marko
3580
- var icon_agent_default = _template("E", (input) => {
3725
+ var icon_agent_default = _template("F", (input) => {
3581
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);
3582
3727
  const $scope0_id = _scope_id();
3583
3728
  const $badge__closures = /* @__PURE__ */ new Set();
@@ -3627,7 +3772,7 @@ var icon_agent_default = _template("E", (input) => {
3627
3772
  n: $badge__closures
3628
3773
  });
3629
3774
  });
3630
- var usageNote = "_eR _S";
3775
+ var usageNote = "_e5 _S";
3631
3776
  //#endregion
3632
3777
  //#region src/tags/usage-meters.marko
3633
3778
  function duration(ms) {
@@ -3647,15 +3792,15 @@ function resetLabel(iso, stale) {
3647
3792
  if (ms <= 0) return stale ? null : "now";
3648
3793
  return duration(ms);
3649
3794
  }
3650
- var usage_meters_default = _template("B", (input) => {
3795
+ var usage_meters_default = _template("C", (input) => {
3651
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);
3652
3797
  const $scope0_id = _scope_id();
3653
3798
  const agent = input.agent;
3654
- _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")}>`);
3655
3800
  _if(() => {
3656
3801
  if (!input.hideName) {
3657
3802
  const $scope1_id = _scope_id();
3658
- _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>`);
3659
3804
  $si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
3660
3805
  return 0;
3661
3806
  }
@@ -3663,7 +3808,7 @@ var usage_meters_default = _template("B", (input) => {
3663
3808
  _if(() => {
3664
3809
  if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
3665
3810
  const $scope2_id = _scope_id();
3666
- _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>`);
3667
3812
  $si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
3668
3813
  return 0;
3669
3814
  }
@@ -3671,19 +3816,19 @@ var usage_meters_default = _template("B", (input) => {
3671
3816
  _if(() => {
3672
3817
  if (agent.stale_seconds != null) {
3673
3818
  const $scope3_id = _scope_id();
3674
- _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)}`);
3675
3820
  $si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
3676
3821
  return 0;
3677
3822
  }
3678
3823
  }, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
3679
- _html(`</div><div${_attr_class(["_eQ", { ["_e7"]: agent.stale_seconds != null }])}>`);
3824
+ _html(`</div><div${_attr_class(["_e4", { ["_fk"]: agent.stale_seconds != null }])}>`);
3680
3825
  _for_of(agent.windows || [], (win) => {
3681
3826
  const $scope4_id = _scope_id();
3682
3827
  const pct = pctText$1(win.used_percent);
3683
3828
  const label = resetLabel(win.resets_at, agent.stale_seconds != null);
3684
- const fillClass = win.used_percent >= 90 ? "_eZ" : win.used_percent >= 70 ? "_eY" : win.used_percent >= 40 ? "_eX" : "_eW";
3685
- const pctClass = win.used_percent >= 90 ? "_e4" : win.used_percent >= 70 ? "_e3" : win.used_percent >= 40 ? "_e2" : "_e1";
3686
- _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)}`);
3687
3832
  $si__input_agent && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
3688
3833
  }, "window", $scope0_id, "g", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
3689
3834
  _if(() => {
@@ -3703,8 +3848,136 @@ var usage_meters_default = _template("B", (input) => {
3703
3848
  });
3704
3849
  });
3705
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
3706
3979
  //#region src/tags/icons/icon-plus.marko
3707
- var icon_plus_default = _template("R", (input) => {
3980
+ var icon_plus_default = _template("S", (input) => {
3708
3981
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
3709
3982
  const $scope0_id = _scope_id();
3710
3983
  _set_serialize_reason({
@@ -3742,7 +4015,7 @@ var modal_view_default = _template("o", (input) => {
3742
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;
3743
4016
  const dismissable = input.dismissable !== false;
3744
4017
  let open = input.open;
3745
- _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({
3746
4019
  ...htmlInput,
3747
4020
  open: null
3748
4021
  }, {
@@ -3752,20 +4025,20 @@ var modal_view_default = _template("o", (input) => {
3752
4025
  closedby: 1,
3753
4026
  "on-cancel": 1,
3754
4027
  "on-close": 1
3755
- }, "a", $scope0_id, "dialog")}><div${_attr_class("_g3")}>`);
4028
+ }, "a", $scope0_id, "dialog")}><div${_attr_class("_hv")}>`);
3756
4029
  _dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
3757
4030
  _html("</div>");
3758
4031
  _if(() => {
3759
4032
  if (footer) {
3760
4033
  const $scope1_id = _scope_id();
3761
- _html(`<form method=dialog${_attr_class("_g4")}>`);
4034
+ _html(`<form method=dialog${_attr_class("_hw")}>`);
3762
4035
  _dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
3763
4036
  _html("</form>");
3764
4037
  $si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
3765
4038
  return 0;
3766
4039
  } else if (input.openChange) {
3767
4040
  const $scope2_id = _scope_id();
3768
- _html(`<form method=dialog${_attr_class("_g4")}>`);
4041
+ _html(`<form method=dialog${_attr_class("_hw")}>`);
3769
4042
  dialog_close_default({
3770
4043
  class: ["_o", "_p"],
3771
4044
  content: _content("o0", () => {
@@ -3824,7 +4097,7 @@ var prompt_dialog_default = _template("r", (input) => {
3824
4097
  const $childScope = _peek_scope_id();
3825
4098
  modal_view_default({
3826
4099
  label: input.label,
3827
- class: "_eJ",
4100
+ class: "_eM",
3828
4101
  open: input.open,
3829
4102
  openChange: input.openChange,
3830
4103
  "aria-labelledby": titleId,
@@ -3847,7 +4120,7 @@ var prompt_dialog_default = _template("r", (input) => {
3847
4120
  content: _content("r6", () => {
3848
4121
  _scope_reason();
3849
4122
  const $scope2_id = _scope_id();
3850
- _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) => {
3851
4124
  value = _new_value;
3852
4125
  }, "r0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
3853
4126
  _script($scope2_id, "r4");
@@ -3888,7 +4161,7 @@ function familyOf(usageAgent, families) {
3888
4161
  var lastSetup = null;
3889
4162
  var lastUsage = null;
3890
4163
  var settings_page_default = _template("u", (input) => {
3891
- 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);
3892
4165
  const $scope0_id = _scope_id();
3893
4166
  const $setup_missing__closures = /* @__PURE__ */ new Set();
3894
4167
  const $setup2__closures = /* @__PURE__ */ new Set();
@@ -3901,6 +4174,8 @@ var settings_page_default = _template("u", (input) => {
3901
4174
  const $accountsFor2__closures = /* @__PURE__ */ new Set();
3902
4175
  const $authCodes__closures = /* @__PURE__ */ new Set();
3903
4176
  const $confirmingRemove__closures = /* @__PURE__ */ new Set();
4177
+ const $refresh2__closures = /* @__PURE__ */ new Set();
4178
+ const $run2__closures = /* @__PURE__ */ new Set();
3904
4179
  const $self_install__closures = /* @__PURE__ */ new Set();
3905
4180
  const $hits__closures = /* @__PURE__ */ new Set();
3906
4181
  const $query__closures = /* @__PURE__ */ new Set();
@@ -4155,9 +4430,9 @@ var settings_page_default = _template("u", (input) => {
4155
4430
  const appearanceId = _id();
4156
4431
  const githubId = _id();
4157
4432
  const machineId = _id();
4158
- _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)}>`);
4159
4434
  _set_serialize_reason({
4160
- 0: _serialize_guard($scope0_reason, 3),
4435
+ 0: _serialize_guard($scope0_reason, 4),
4161
4436
  1: $sg__input_backHref__OR__input_onExit,
4162
4437
  2: $sg__input_backHref__OR__input_onExit,
4163
4438
  3: $sg__input_backHref__OR__input_onExit
@@ -4168,19 +4443,19 @@ var settings_page_default = _template("u", (input) => {
4168
4443
  titleId,
4169
4444
  backHref: input.backHref,
4170
4445
  onBack: input.onExit && _resume(() => input.onExit?.(), "u24", $scope0_id),
4171
- meta: attrTag({ content: _content_resume("u29", () => {
4446
+ meta: attrTag({ content: _content_resume("u32", () => {
4172
4447
  _scope_reason();
4173
4448
  const $scope5_id = _scope_id();
4174
4449
  _if(() => {
4175
4450
  if (!setup) {
4176
- const $scope50_id = _scope_id();
4451
+ const $scope51_id = _scope_id();
4177
4452
  _html("Checking this machine…");
4178
- writeScope($scope50_id, {});
4453
+ writeScope($scope51_id, {});
4179
4454
  return 0;
4180
4455
  } else if (setup.ready) {
4181
- const $scope51_id = _scope_id();
4456
+ const $scope52_id = _scope_id();
4182
4457
  _html(`<span${_attr_class("_cc")}>Ready</span>. Tools, GitHub, and an agent are all in place.`);
4183
- writeScope($scope51_id, {});
4458
+ writeScope($scope52_id, {});
4184
4459
  return 1;
4185
4460
  } else {
4186
4461
  const $scope6_id = _scope_id();
@@ -4192,7 +4467,7 @@ var settings_page_default = _template("u", (input) => {
4192
4467
  _subscribe($setup2__closures, writeScope($scope5_id, { _: _scope_with_id($scope0_id) }));
4193
4468
  _resume_branch($scope5_id);
4194
4469
  }, $scope0_id) }),
4195
- actions: attrTag({ content: _content_resume("u30", () => {
4470
+ actions: attrTag({ content: _content_resume("u33", () => {
4196
4471
  _scope_reason();
4197
4472
  const $scope10_id = _scope_id();
4198
4473
  _html(`<button${_attr_class(iconBtnRow)} title="Re-check this machine" aria-label="Re-check this machine"${_attr("disabled", refreshing)}>`);
@@ -4203,7 +4478,7 @@ var settings_page_default = _template("u", (input) => {
4203
4478
  class: refreshing && "_E"
4204
4479
  });
4205
4480
  _html(`</button>${_el_resume($scope10_id, "a")}`);
4206
- _script($scope10_id, "u28");
4481
+ _script($scope10_id, "u31");
4207
4482
  _subscribe($refreshing__closures, writeScope($scope10_id, {
4208
4483
  _: _scope_with_id($scope0_id),
4209
4484
  b: _existing_scope($childScope)
@@ -4219,7 +4494,7 @@ var settings_page_default = _template("u", (input) => {
4219
4494
  onDismiss: _resume(function() {
4220
4495
  error = null;
4221
4496
  }, "u25", $scope8_id),
4222
- content: _content_resume("u31", () => {
4497
+ content: _content_resume("u34", () => {
4223
4498
  _scope_reason();
4224
4499
  const $scope9_id = _scope_id();
4225
4500
  _html(`${_escape(error)}${_el_resume($scope9_id, "a")}`);
@@ -4233,44 +4508,44 @@ var settings_page_default = _template("u", (input) => {
4233
4508
  }, $scope0_id, "e", 1, 1, 1, 0, 1);
4234
4509
  _if(() => {
4235
4510
  if (selfUpdatePending || selfUpdating) {
4236
- const $scope36_id = _scope_id();
4237
- _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")}>`);
4238
4513
  _if(() => {
4239
4514
  if (selfUpdating) {
4240
- const $scope52_id = _scope_id();
4241
- _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>`);
4242
- 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, {});
4243
4518
  return 0;
4244
4519
  } else {
4245
- const $scope37_id = _scope_id();
4246
- _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>`);
4247
- _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, {})));
4248
4523
  return 1;
4249
4524
  }
4250
- }, $scope36_id, "b", 1, 1, 1, "</div>");
4525
+ }, $scope37_id, "b", 1, 1, 1, "</div>");
4251
4526
  _if(() => {
4252
4527
  if (!selfUpdating) {
4253
- const $scope38_id = _scope_id();
4254
- _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")}`);
4255
- _script($scope38_id, "u32");
4256
- _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 }));
4257
4532
  return 0;
4258
4533
  }
4259
- }, $scope36_id, "c", 1, 1, 1, 0, 1);
4534
+ }, $scope37_id, "c", 1, 1, 1, 0, 1);
4260
4535
  _html("</div>");
4261
- writeScope($scope36_id, {});
4536
+ writeScope($scope37_id, {});
4262
4537
  return 0;
4263
4538
  }
4264
4539
  }, $scope0_id, "f", 1, 1, 1, 0, 1);
4265
- _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")}>`);
4266
4541
  _attr_select_value($scope0_id, "n", input.preferred, _resume(function(v) {
4267
4542
  setPreferred(v);
4268
4543
  }, "u1", $scope0_id), () => {
4269
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">`);
4270
4545
  _for_of(input.agents.filter((a) => a !== "shell"), (id) => {
4271
- const $scope53_id = _scope_id();
4272
- _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)}`);
4273
- _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, {});
4274
4549
  }, (a) => a, $scope0_id, "n", $sg__input_agents, 1, 1, "</select>", 1);
4275
4550
  });
4276
4551
  _html(`</span></label><button${_attr_class(iconBtn$2)} title="Refresh usage" aria-label="Refresh usage"${_attr("disabled", usageRefreshing)}>`);
@@ -4287,19 +4562,19 @@ var settings_page_default = _template("u", (input) => {
4287
4562
  const rows = lone ? [] : a.instances;
4288
4563
  const loneAccounts = lone && lone.enabled ? accountsFor(lone.id) : [];
4289
4564
  const extraAccounts = a.installed ? strayAccountsFor(a) : [];
4290
- _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 }])}>`);
4291
4566
  _set_serialize_reason(12);
4292
4567
  const $childScope4 = _peek_scope_id();
4293
4568
  icon_agent_default({
4294
4569
  agent: a.id,
4295
4570
  size: 18
4296
4571
  });
4297
- _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>`);
4298
4573
  _if(() => {
4299
4574
  if (lone && input.preferred === lone.id) {
4300
- const $scope54_id = _scope_id();
4575
+ const $scope55_id = _scope_id();
4301
4576
  _html(`<span${_attr_class(["_I", tone.accent])}>default</span>`);
4302
- writeScope($scope54_id, {});
4577
+ writeScope($scope55_id, {});
4303
4578
  return 0;
4304
4579
  }
4305
4580
  }, $scope1_id, "h", 1, 1, 1, 0, 1);
@@ -4311,32 +4586,32 @@ var settings_page_default = _template("u", (input) => {
4311
4586
  _subscribe($active__closures, writeScope($scope11_id, {}));
4312
4587
  return 0;
4313
4588
  } else if (!a.installed) {
4314
- const $scope55_id = _scope_id();
4315
- _html(`<span${_attr_class("_bs")}>Not installed</span>`);
4316
- writeScope($scope55_id, {});
4589
+ const $scope56_id = _scope_id();
4590
+ _html(`<span${_attr_class("_bB")}>Not installed</span>`);
4591
+ writeScope($scope56_id, {});
4317
4592
  return 1;
4318
4593
  }
4319
4594
  }, $scope1_id, "i", 1, 1, 1, 0, 1);
4320
4595
  _html("</div>");
4321
4596
  _if(() => {
4322
4597
  if (!a.installed && !active.has(a.id)) {
4323
- const $scope43_id = _scope_id();
4324
- _html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope43_id, "a")}`);
4325
- _script($scope43_id, "u33");
4326
- 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, {});
4327
4602
  return 0;
4328
4603
  }
4329
4604
  }, $scope1_id, "j", 1, 1, 1, 0, 1);
4330
4605
  _if(() => {
4331
4606
  if (lone) {
4332
- const $scope47_id = _scope_id();
4607
+ const $scope48_id = _scope_id();
4333
4608
  _html(`<button${_attr_class([
4334
4609
  "_I",
4335
4610
  "_K",
4336
4611
  { [tone.ok]: lone.enabled }
4337
- ])} 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")}`);
4338
- _script($scope47_id, "u34");
4339
- 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, {});
4340
4615
  return 0;
4341
4616
  }
4342
4617
  }, $scope1_id, "k", 1, 1, 1, 0, 1);
@@ -4358,9 +4633,9 @@ var settings_page_default = _template("u", (input) => {
4358
4633
  _html(`<span${_attr_class(["_cm", "_x"])}>${_escape(inst.command)}${_el_resume($scope3_id, "e")}</span>`);
4359
4634
  _if(() => {
4360
4635
  if (input.preferred === inst.id) {
4361
- const $scope56_id = _scope_id();
4636
+ const $scope57_id = _scope_id();
4362
4637
  _html(`<span${_attr_class(["_I", tone.accent])}>default</span>`);
4363
- writeScope($scope56_id, {});
4638
+ writeScope($scope57_id, {});
4364
4639
  return 0;
4365
4640
  }
4366
4641
  }, $scope3_id, "f", 1, 1, 1, 0, 1);
@@ -4370,17 +4645,17 @@ var settings_page_default = _template("u", (input) => {
4370
4645
  { [tone.ok]: inst.enabled }
4371
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")}`);
4372
4647
  _for_of(accounts, (u) => {
4373
- const $scope57_id = _scope_id();
4648
+ const $scope58_id = _scope_id();
4374
4649
  _set_serialize_reason(6);
4375
4650
  const $childScope6 = _peek_scope_id();
4376
4651
  usage_meters_default({
4377
4652
  agent: u,
4378
4653
  hideName: true
4379
4654
  });
4380
- writeScope($scope57_id, { a: _existing_scope($childScope6) });
4655
+ writeScope($scope58_id, { a: _existing_scope($childScope6) });
4381
4656
  }, (u) => `${u.agent}-${u.account || ""}`, $scope3_id, "j", 1, 1, 1, 0, 1);
4382
4657
  _html("</li>");
4383
- _script($scope3_id, "u35");
4658
+ _script($scope3_id, "u38");
4384
4659
  _subscribe($accountsFor2__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope3_id, {
4385
4660
  m: inst?.enabled,
4386
4661
  n: inst?.id,
@@ -4388,7 +4663,7 @@ var settings_page_default = _template("u", (input) => {
4388
4663
  })));
4389
4664
  }, "id", $scope2_id, "b", 1, 1, 1, 0, 1);
4390
4665
  _for_of(loneAccounts, (u) => {
4391
- const $scope58_id = _scope_id();
4666
+ const $scope59_id = _scope_id();
4392
4667
  _html("<li>");
4393
4668
  _set_serialize_reason(6);
4394
4669
  const $childScope7 = _peek_scope_id();
@@ -4397,16 +4672,16 @@ var settings_page_default = _template("u", (input) => {
4397
4672
  hideName: true
4398
4673
  });
4399
4674
  _html("</li>");
4400
- writeScope($scope58_id, { a: _existing_scope($childScope7) });
4675
+ writeScope($scope59_id, { a: _existing_scope($childScope7) });
4401
4676
  }, (u) => `${u.agent}-${u.account || ""}`, $scope2_id, "c", 1, 1, 1, 0, 1);
4402
4677
  _for_of(extraAccounts, (u) => {
4403
- const $scope59_id = _scope_id();
4678
+ const $scope60_id = _scope_id();
4404
4679
  _html("<li>");
4405
4680
  _set_serialize_reason(6);
4406
4681
  const $childScope8 = _peek_scope_id();
4407
4682
  usage_meters_default({ agent: u });
4408
4683
  _html("</li>");
4409
- writeScope($scope59_id, { a: _existing_scope($childScope8) });
4684
+ writeScope($scope60_id, { a: _existing_scope($childScope8) });
4410
4685
  }, (u) => `${u.agent}-${u.account || ""}`, $scope2_id, "d", 1, 1, 1, 0, 1);
4411
4686
  _html("</ul>");
4412
4687
  writeScope($scope2_id, {});
@@ -4429,47 +4704,57 @@ var settings_page_default = _template("u", (input) => {
4429
4704
  });
4430
4705
  }, "id", $scope0_id, "r", 1, 1, 1, 0, 1);
4431
4706
  _for_of(otherUsage, (u) => {
4432
- const $scope60_id = _scope_id();
4433
- _html(`<li${_attr_class(["_bo", "_cf"])}>`);
4707
+ const $scope61_id = _scope_id();
4708
+ _html(`<li${_attr_class(["_bx", "_cf"])}>`);
4434
4709
  _set_serialize_reason(6);
4435
4710
  const $childScope9 = _peek_scope_id();
4436
4711
  usage_meters_default({ agent: u });
4437
4712
  _html("</li>");
4438
- writeScope($scope60_id, { b: _existing_scope($childScope9) });
4713
+ writeScope($scope61_id, { b: _existing_scope($childScope9) });
4439
4714
  }, (u) => `${u.agent}-${u.account || ""}`, $scope0_id, "s", 1, 1, 1, 0, 1);
4440
4715
  _html("</ul>");
4441
4716
  _if(() => {
4442
4717
  if (!usage && families.length) {
4443
- const $scope61_id = _scope_id();
4444
- _html(`<p${_attr_class("_bu")}><span${_attr_class("_F")}></span> Loading usage…</p>`);
4445
- 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, {});
4446
4721
  return 0;
4447
4722
  } else if (usage?.error) {
4448
4723
  const $scope7_id = _scope_id();
4449
- _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>`);
4450
4725
  writeScope($scope7_id, {});
4451
4726
  return 1;
4452
4727
  }
4453
4728
  }, $scope0_id, "t", 1, 1, 1, 0, 1);
4454
- _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")}>`);
4455
4730
  _for_of(setup?.github || [], (h) => {
4456
4731
  const $scope12_id = _scope_id();
4457
4732
  const $for_content4__h_host__closures = /* @__PURE__ */ new Set();
4458
- _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>`);
4459
4744
  _if(() => {
4460
4745
  if (h.isEnterprise) {
4461
- const $scope64_id = _scope_id();
4746
+ const $scope65_id = _scope_id();
4462
4747
  _html(`<span${_attr_class("_I")}>Enterprise</span>`);
4463
- writeScope($scope64_id, {});
4748
+ writeScope($scope65_id, {});
4464
4749
  return 0;
4465
4750
  }
4466
- }, $scope12_id, "f", 1, 1, 1, 0, 1);
4751
+ }, $scope12_id, "g", 1, 1, 1, 0, 1);
4467
4752
  _html("</span>");
4468
4753
  _if(() => {
4469
4754
  if (active.has(h.host) && authCodes.has(h.host)) {
4470
- const $scope23_id = _scope_id();
4471
- _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>`);
4472
- _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 }));
4473
4758
  return 0;
4474
4759
  } else if (active.has(h.host)) {
4475
4760
  const $scope13_id = _scope_id();
@@ -4477,281 +4762,314 @@ var settings_page_default = _template("u", (input) => {
4477
4762
  _subscribe($active__closures, writeScope($scope13_id, { Cdx: 1 }));
4478
4763
  return 1;
4479
4764
  } else if (h.authed) {
4480
- const $scope62_id = _scope_id();
4481
- _html(`<span${_attr_class("_bs")}>Signed in<!>${h.user ? ` as ${_escape(`${_to_text(h.user)}`)}` : ""}${_el_resume($scope62_id, "b")}</span>`);
4482
- writeScope($scope62_id, {});
4483
- return 2;
4484
- } else {
4485
4765
  const $scope63_id = _scope_id();
4486
- _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>`);
4487
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, {});
4488
4773
  return 3;
4489
4774
  }
4490
- }, $scope12_id, "g", 1, 1, 1, 0, 1);
4775
+ }, $scope12_id, "h", 1, 1, 1, 0, 1);
4491
4776
  _html("</div>");
4492
4777
  _if(() => {
4493
4778
  if (!active.has(h.host)) {
4494
- const $scope24_id = _scope_id();
4779
+ const $scope25_id = _scope_id();
4495
4780
  _if(() => {
4496
4781
  if (!h.authed) {
4497
- const $scope44_id = _scope_id();
4498
- _html(`<button${_attr_class(btnSm)}>Sign in</button>${_el_resume($scope44_id, "a")}`);
4499
- _script($scope44_id, "u36");
4500
- 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, {});
4501
4786
  return 0;
4502
4787
  } else {
4503
- const $scope25_id = _scope_id();
4788
+ const $scope26_id = _scope_id();
4504
4789
  _html(`<button${_attr_class([btnSm, {
4505
4790
  ["_r"]: confirmingRemove === `out:${h.host}`,
4506
4791
  ["_q"]: confirmingRemove === `out:${h.host}`
4507
- }])}${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")}`);
4508
- _script($scope25_id, "u37");
4509
- _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, {})));
4510
4795
  return 1;
4511
4796
  }
4512
- }, $scope24_id, "a", 1, 1, 1, 0, 1);
4797
+ }, $scope25_id, "a", 1, 1, 1, 0, 1);
4513
4798
  _if(() => {
4514
4799
  if (h.isEnterprise) {
4515
- const $scope26_id = _scope_id();
4800
+ const $scope27_id = _scope_id();
4516
4801
  _html(`<button${_attr_class([
4517
- "_bt",
4802
+ "_bC",
4518
4803
  "_2",
4519
4804
  "_3",
4520
4805
  { ["_q"]: confirmingRemove === h.host }
4521
4806
  ])}${confirmingRemove === h.host ? _attr("title", `Forget ${h.host}? (gh stays signed in)`) : _attr("title", `Forget ${h.host}`)}>`);
4522
4807
  _if(() => {
4523
4808
  if (confirmingRemove === h.host) {
4524
- const $scope65_id = _scope_id();
4809
+ const $scope66_id = _scope_id();
4525
4810
  _html("Forget?");
4526
- writeScope($scope65_id, {});
4811
+ writeScope($scope66_id, {});
4527
4812
  return 0;
4528
4813
  } else {
4529
- const $scope66_id = _scope_id();
4814
+ const $scope67_id = _scope_id();
4530
4815
  icon_xmark_default({ size: 13 });
4531
- writeScope($scope66_id, {});
4816
+ writeScope($scope67_id, {});
4532
4817
  return 1;
4533
4818
  }
4534
- }, $scope26_id, "a", 1, 1, 1, "</button>");
4535
- _script($scope26_id, "u38");
4536
- _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, {
4537
4822
  Ce0: 1,
4538
- Cr: 1
4823
+ Ca2: 1
4539
4824
  })));
4540
4825
  return 0;
4541
4826
  }
4542
- }, $scope24_id, "b", 1, 1, 1, 0, 1);
4543
- 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
+ })))));
4544
4857
  return 0;
4545
4858
  }
4546
- }, $scope12_id, "h");
4859
+ }, $scope12_id, "j", 1, 1, 1, 0, 1);
4547
4860
  _html("</li>");
4548
4861
  writeScope($scope12_id, {
4549
- k: h?.host,
4550
- m: h?.isEnterprise,
4551
- n: h?.authed,
4552
- p: h?.user,
4553
- q: h?.error,
4554
- 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
4555
4873
  });
4556
4874
  }, "host", $scope0_id, "x", 1, 1, 1, "</ul>", 1);
4557
4875
  _if(() => {
4558
4876
  if (setup && !setup.github.length) {
4559
- const $scope67_id = _scope_id();
4560
- _html(`<p${_attr_class("_bu")}>Install the GitHub CLI below to sign in.</p>`);
4561
- 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, {});
4562
4880
  return 0;
4563
4881
  }
4564
4882
  }, $scope0_id, "y", 1, 1, 1, 0, 1);
4565
4883
  _if(() => {
4566
4884
  if (setup) {
4567
- const $scope34_id = _scope_id();
4885
+ const $scope35_id = _scope_id();
4568
4886
  _html(`<form${_attr_class("_cu")}><label${_attr_class("_W")}>`);
4569
4887
  icon_plus_default({
4570
4888
  size: 14,
4571
4889
  class: "_X"
4572
4890
  });
4573
- _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) => {
4574
4892
  hostInput = _new_hostInput;
4575
- }, "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")}`);
4576
- _script($scope34_id, "u39");
4577
- 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, {});
4578
4896
  return 0;
4579
4897
  }
4580
4898
  }, $scope0_id, "z", 1, 1, 1, 0, 1);
4581
- _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>`);
4582
4900
  _if(() => {
4583
4901
  if (missingCount) {
4584
- const $scope48_id = _scope_id();
4585
- _html(`<span${_attr_class(sectionCount$1)}>${_escape(missingCount)}${_el_resume($scope48_id, "b")} missing</span>`);
4586
- 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, {});
4587
4905
  return 0;
4588
4906
  }
4589
4907
  }, $scope0_id, "a3", 1, 1, 1, 0, 1);
4590
4908
  _if(() => {
4591
4909
  if (outdatedIds.length) {
4592
- const $scope49_id = _scope_id();
4593
- _html(`<span${_attr_class(sectionCount$1)}>${_escape(outdatedIds.length)}${_el_resume($scope49_id, "b")} outdated</span>`);
4594
- 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, {});
4595
4913
  return 0;
4596
4914
  }
4597
4915
  }, $scope0_id, "a4", 1, 1, 1, 0, 1);
4598
4916
  _html(`<div${_attr_class("_y")}></div>`);
4599
4917
  _if(() => {
4600
4918
  if (outdatedIds.length > 1) {
4601
- const $scope14_id = _scope_id();
4602
- _html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Update all</button>${_el_resume($scope14_id, "a")}`);
4603
- _script($scope14_id, "u40");
4604
- 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, {});
4605
4923
  return 0;
4606
4924
  }
4607
4925
  }, $scope0_id, "a6", 1, 1, 1, 0, 1);
4608
4926
  _if(() => {
4609
4927
  if (missingInstallable.length > 1) {
4610
- const $scope15_id = _scope_id();
4611
- _html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Install missing</button>${_el_resume($scope15_id, "a")}`);
4612
- _script($scope15_id, "u41");
4613
- 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, {});
4614
4932
  return 0;
4615
4933
  }
4616
4934
  }, $scope0_id, "a7", 1, 1, 1, 0, 1);
4617
4935
  _html("</div>");
4618
4936
  _if(() => {
4619
4937
  if (setup && !setup.mise.installed) {
4620
- const $scope16_id = _scope_id();
4621
- _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>`);
4622
- _script($scope16_id, "u42");
4623
- 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, {});
4624
4942
  return 0;
4625
4943
  }
4626
4944
  }, $scope0_id, "a8", 1, 1, 1, 0, 1);
4627
4945
  _html(`<ul${_attr_class(toolGrid)}>`);
4628
4946
  _if(() => {
4629
4947
  if (self) {
4630
- const $scope39_id = _scope_id();
4948
+ const $scope40_id = _scope_id();
4631
4949
  _html(`<li${_attr_class(row)}><span${_attr_class(["_cq", "_x"])}>work</span>`);
4632
4950
  _if(() => {
4633
4951
  if (selfUpdating) {
4634
- const $scope68_id = _scope_id();
4952
+ const $scope69_id = _scope_id();
4635
4953
  _html(`<span${_attr_class("_cb")}><span${_attr_class("_F")}></span>Updating — the app restarts and reloads when it is done…</span>`);
4636
- writeScope($scope68_id, {});
4954
+ writeScope($scope69_id, {});
4637
4955
  return 0;
4638
4956
  } else {
4639
- const $scope40_id = _scope_id();
4640
- _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>`);
4641
4959
  _if(() => {
4642
4960
  if (self.install === "source") {
4643
- const $scope69_id = _scope_id();
4961
+ const $scope70_id = _scope_id();
4644
4962
  _html(`<span${_attr_class(metaTrunc)} title="Started from a checkout, not the published package">source checkout — update with git</span>`);
4645
- writeScope($scope69_id, {});
4963
+ writeScope($scope70_id, {});
4646
4964
  return 0;
4647
4965
  } else if (self.latest && self.latest !== self.version) {
4648
- const $scope41_id = _scope_id();
4649
- _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")}`);
4650
- _script($scope41_id, "u43");
4651
- _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 }));
4652
4970
  return 1;
4653
4971
  } else if (self.latest) {
4654
- const $scope70_id = _scope_id();
4972
+ const $scope71_id = _scope_id();
4655
4973
  _html(`<span${_attr_class(metaTrunc)}>up to date</span>`);
4656
- writeScope($scope70_id, {});
4974
+ writeScope($scope71_id, {});
4657
4975
  return 2;
4658
4976
  }
4659
- }, $scope40_id, "c", 1, 1, 1, 0, 1);
4660
- _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, {
4661
4979
  Ce9: 2,
4662
4980
  Cea: 1
4663
4981
  }))));
4664
4982
  return 1;
4665
4983
  }
4666
- }, $scope39_id, "c");
4984
+ }, $scope40_id, "c");
4667
4985
  _html(`<span${_attr_class("_y")}></span>`);
4668
4986
  _if(() => {
4669
4987
  if (!selfUpdating) {
4670
- const $scope71_id = _scope_id();
4988
+ const $scope72_id = _scope_id();
4671
4989
  _html(`<span${_attr_class("_I")}>app</span>`);
4672
- writeScope($scope71_id, {});
4990
+ writeScope($scope72_id, {});
4673
4991
  return 0;
4674
4992
  }
4675
- }, $scope39_id, "e", 1, 1, 1, 0, 1);
4993
+ }, $scope40_id, "e", 1, 1, 1, 0, 1);
4676
4994
  _html("</li>");
4677
- writeScope($scope39_id, {});
4995
+ writeScope($scope40_id, {});
4678
4996
  return 0;
4679
4997
  }
4680
4998
  }, $scope0_id, "aa", 1, 1, 1, 0, 1);
4681
4999
  _for_of(tools, (t) => {
4682
- const $scope17_id = _scope_id();
5000
+ const $scope18_id = _scope_id();
4683
5001
  const $for_content5__t_label__closures = /* @__PURE__ */ new Set();
4684
5002
  const $for_content5__t_version__closures = /* @__PURE__ */ new Set();
4685
5003
  const $for_content5__t_path__closures = /* @__PURE__ */ new Set();
4686
5004
  const $for_content5__t_latest__closures = /* @__PURE__ */ new Set();
4687
5005
  const $for_content5__t_id__closures = /* @__PURE__ */ new Set();
4688
- _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>`);
4689
5007
  _if(() => {
4690
5008
  if (active.has(t.id)) {
4691
- const $scope18_id = _scope_id();
4692
- _html(`<span${_attr_class("_cb")}><span${_attr_class("_F")}></span><!>${_escape(active.get(t.id) || "Starting…")}${_el_resume($scope18_id, "c")}</span>`);
4693
- _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 }));
4694
5012
  return 0;
4695
5013
  } else if (t.installed) {
4696
- const $scope30_id = _scope_id();
5014
+ const $scope31_id = _scope_id();
4697
5015
  _if(() => {
4698
5016
  if (t.version) {
4699
- const $scope31_id = _scope_id();
4700
- _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")}`);
4701
- _script($scope31_id, "u44");
4702
- _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 }))));
4703
5021
  return 0;
4704
5022
  } else {
4705
- const $scope72_id = _scope_id();
4706
- _html(`<span${_attr_class([metaTrunc, "_x"])}${_attr("title", t.path)}>${_escape(t.path)}${_el_resume($scope72_id, "b")}</span>${_el_resume($scope72_id, "a")}`);
4707
- _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 }));
4708
5026
  return 1;
4709
5027
  }
4710
- }, $scope30_id, "a", 1, 1, 1, 0, 1);
5028
+ }, $scope31_id, "a", 1, 1, 1, 0, 1);
4711
5029
  _if(() => {
4712
5030
  if (outdated(t)) {
4713
- const $scope45_id = _scope_id();
4714
- _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")}`);
4715
- _script($scope45_id, "u45");
4716
- _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, {}));
4717
5035
  return 0;
4718
5036
  }
4719
- }, $scope30_id, "b", 1, 1, 1, 0, 1);
4720
- writeScope($scope30_id, {});
5037
+ }, $scope31_id, "b", 1, 1, 1, 0, 1);
5038
+ writeScope($scope31_id, {});
4721
5039
  return 1;
4722
5040
  } else if (t.installable) {
4723
- const $scope73_id = _scope_id();
5041
+ const $scope74_id = _scope_id();
4724
5042
  _html(`<span${_attr_class(metaTrunc)}>not installed</span>`);
4725
- writeScope($scope73_id, {});
5043
+ writeScope($scope74_id, {});
4726
5044
  return 2;
4727
5045
  } else {
4728
- const $scope74_id = _scope_id();
5046
+ const $scope75_id = _scope_id();
4729
5047
  _html(`<span${_attr_class(metaTrunc)} title="Installed with the system package manager">system package</span>`);
4730
- writeScope($scope74_id, {});
5048
+ writeScope($scope75_id, {});
4731
5049
  return 3;
4732
5050
  }
4733
- }, $scope17_id, "d");
5051
+ }, $scope18_id, "d");
4734
5052
  _html(`<span${_attr_class("_y")}></span>`);
4735
5053
  _if(() => {
4736
5054
  if (!active.has(t.id)) {
4737
- const $scope27_id = _scope_id();
5055
+ const $scope28_id = _scope_id();
4738
5056
  _if(() => {
4739
5057
  if (t.required) {
4740
- const $scope75_id = _scope_id();
5058
+ const $scope76_id = _scope_id();
4741
5059
  _html(`<span${_attr_class("_I")}>required</span>`);
4742
- writeScope($scope75_id, {});
5060
+ writeScope($scope76_id, {});
4743
5061
  return 0;
4744
5062
  }
4745
- }, $scope27_id, "a", 1, 1, 1, 0, 1);
5063
+ }, $scope28_id, "a", 1, 1, 1, 0, 1);
4746
5064
  _if(() => {
4747
5065
  if (!t.installed && t.installable) {
4748
- const $scope46_id = _scope_id();
4749
- _html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope46_id, "a")}`);
4750
- _script($scope46_id, "u46");
4751
- 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, {});
4752
5070
  return 0;
4753
5071
  } else if (t.installed && t.version && !t.required) {
4754
- const $scope28_id = _scope_id();
5072
+ const $scope29_id = _scope_id();
4755
5073
  _html(`<button${_attr_class([
4756
5074
  iconBtnXs,
4757
5075
  "_2",
@@ -4760,28 +5078,28 @@ var settings_page_default = _template("u", (input) => {
4760
5078
  ])}${confirmingRemove === t.id ? _attr("title", `Remove ${t.label}?`) : _attr("title", `Remove ${t.label}`)}>`);
4761
5079
  _if(() => {
4762
5080
  if (confirmingRemove === t.id) {
4763
- const $scope76_id = _scope_id();
5081
+ const $scope77_id = _scope_id();
4764
5082
  _html("Remove?");
4765
- writeScope($scope76_id, {});
5083
+ writeScope($scope77_id, {});
4766
5084
  return 0;
4767
5085
  } else {
4768
- const $scope77_id = _scope_id();
5086
+ const $scope78_id = _scope_id();
4769
5087
  icon_xmark_default({ size: 13 });
4770
- writeScope($scope77_id, {});
5088
+ writeScope($scope78_id, {});
4771
5089
  return 1;
4772
5090
  }
4773
- }, $scope28_id, "a", 1, 1, 1, "</button>");
4774
- _script($scope28_id, "u47");
4775
- _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 }))));
4776
5094
  return 1;
4777
5095
  }
4778
- }, $scope27_id, "b", 1, 1, 1, 0, 1);
4779
- writeScope($scope27_id, {});
5096
+ }, $scope28_id, "b", 1, 1, 1, 0, 1);
5097
+ writeScope($scope28_id, {});
4780
5098
  return 0;
4781
5099
  }
4782
- }, $scope17_id, "f");
4783
- _html(`</li>${_el_resume($scope17_id, "a")}`);
4784
- writeScope($scope17_id, {
5100
+ }, $scope18_id, "f");
5101
+ _html(`</li>${_el_resume($scope18_id, "a")}`);
5102
+ writeScope($scope18_id, {
4785
5103
  h: t,
4786
5104
  i: t?.installed,
4787
5105
  j: t?.label,
@@ -4801,81 +5119,81 @@ var settings_page_default = _template("u", (input) => {
4801
5119
  _html("</ul>");
4802
5120
  _if(() => {
4803
5121
  if (setup && setup.mise.installed) {
4804
- const $scope19_id = _scope_id();
5122
+ const $scope20_id = _scope_id();
4805
5123
  _html(`<div><label${_attr_class("_W")}>`);
4806
5124
  icon_search_default({
4807
5125
  size: 14,
4808
5126
  class: "_X"
4809
5127
  });
4810
- _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>`);
4811
5129
  _if(() => {
4812
5130
  if (hits && hits.length) {
4813
- const $scope20_id = _scope_id();
5131
+ const $scope21_id = _scope_id();
4814
5132
  _html(`<ul${_attr_class([toolGrid, "_ct"])}>`);
4815
5133
  _for_of(hits, (h) => {
4816
- const $scope21_id = _scope_id();
4817
- _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>`);
4818
5136
  _if(() => {
4819
5137
  if (active.has(h.name)) {
4820
- const $scope22_id = _scope_id();
4821
- _html(`<span${_attr_class("_cb")}><span${_attr_class("_F")}></span><!>${_escape(active.get(h.name) || "Starting…")}${_el_resume($scope22_id, "c")}</span>`);
4822
- _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 }));
4823
5141
  return 0;
4824
5142
  } else if (h.description) {
4825
- const $scope78_id = _scope_id();
4826
- _html(`<span${_attr_class("_bs")}${_attr("title", h.description)}>${_escape(h.description)}${_el_resume($scope78_id, "b")}</span>${_el_resume($scope78_id, "a")}`);
4827
- 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, {});
4828
5146
  return 1;
4829
5147
  }
4830
- }, $scope21_id, "e", 1, 1, 1, 0, 1);
5148
+ }, $scope22_id, "e", 1, 1, 1, 0, 1);
4831
5149
  _html("</div>");
4832
5150
  _if(() => {
4833
5151
  if (!active.has(h.name)) {
4834
- const $scope32_id = _scope_id();
5152
+ const $scope33_id = _scope_id();
4835
5153
  _if(() => {
4836
5154
  if (h.installed) {
4837
- const $scope79_id = _scope_id();
5155
+ const $scope80_id = _scope_id();
4838
5156
  _html(`<span${_attr_class("_I")}>installed</span>`);
4839
- writeScope($scope79_id, {});
5157
+ writeScope($scope80_id, {});
4840
5158
  return 0;
4841
5159
  } else {
4842
- const $scope33_id = _scope_id();
4843
- _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")}`);
4844
- _script($scope33_id, "u48");
4845
- 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, {});
4846
5164
  return 1;
4847
5165
  }
4848
- }, $scope32_id, "a");
4849
- writeScope($scope32_id, {});
5166
+ }, $scope33_id, "a");
5167
+ writeScope($scope33_id, {});
4850
5168
  return 0;
4851
5169
  }
4852
- }, $scope21_id, "f");
5170
+ }, $scope22_id, "f");
4853
5171
  _html("</li>");
4854
- _subscribe($active__closures, writeScope($scope21_id, {
5172
+ _subscribe($active__closures, writeScope($scope22_id, {
4855
5173
  i: h?.name,
4856
5174
  k: h?.description,
4857
5175
  m: h?.installed,
4858
- Cdx: 3
5176
+ Cdx: 4
4859
5177
  }));
4860
- }, "name", $scope20_id, "a", 1, 1, 1, "</ul>", 1);
4861
- _subscribe($hits__closures, writeScope($scope20_id, {}));
5178
+ }, "name", $scope21_id, "a", 1, 1, 1, "</ul>", 1);
5179
+ _subscribe($hits__closures, writeScope($scope21_id, {}));
4862
5180
  return 0;
4863
5181
  } else if (hits && !searching) {
4864
- const $scope35_id = _scope_id();
4865
- _html(`<p${_attr_class("_bu")}>No tools match "<!>${_escape(query)}${_el_resume($scope35_id, "b")}".</p>`);
4866
- _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, {}));
4867
5185
  return 1;
4868
5186
  }
4869
- }, $scope19_id, "d", 1, 1, 1, 0, 1);
5187
+ }, $scope20_id, "d", 1, 1, 1, 0, 1);
4870
5188
  _html("</div>");
4871
- _script($scope19_id, "u49");
4872
- writeScope($scope19_id, {});
5189
+ _script($scope20_id, "u52");
5190
+ writeScope($scope20_id, {});
4873
5191
  return 0;
4874
5192
  }
4875
5193
  }, $scope0_id, "ac", 1, 1, 1, 0, 1);
4876
- _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) {
4877
5195
  setInstance({ name: v });
4878
- }, "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")}>`);
4879
5197
  _for_of([
4880
5198
  {
4881
5199
  id: "system",
@@ -4890,23 +5208,23 @@ var settings_page_default = _template("u", (input) => {
4890
5208
  label: "Dark"
4891
5209
  }
4892
5210
  ], (opt) => {
4893
- const $scope42_id = _scope_id();
4894
- _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")}`);
4895
- _script($scope42_id, "u50");
4896
- 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, {
4897
5215
  e: opt?.id,
4898
5216
  _: _scope_with_id($scope0_id)
4899
5217
  });
4900
5218
  }, "id", $scope0_id, "an", 1, 0, 1, 0, 1);
4901
- _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([
4902
- "_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([
4903
5220
  "_cM",
4904
- { ["_cL"]: !input.instance.accent }
5221
+ "_cO",
5222
+ { ["_cN"]: !input.instance.accent }
4905
5223
  ])} role=radio aria-checked=${!input.instance.accent ? "true" : "false"} title="Default (blue)" aria-label="Default (blue)"></button>${_el_resume($scope0_id, "as")}`);
4906
5224
  _for_of(ACCENT_PRESETS, (p) => {
4907
5225
  const $scope4_id = _scope_id();
4908
- _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")}`);
4909
- _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");
4910
5228
  writeScope($scope4_id, {
4911
5229
  d: p?.value,
4912
5230
  _: _scope_with_id($scope0_id)
@@ -4914,17 +5232,17 @@ var settings_page_default = _template("u", (input) => {
4914
5232
  }, "value", $scope0_id, "at", $sg__input_instance_accent, 0, 1, 0, 1);
4915
5233
  const customOn = !!input.instance.accent && !ACCENT_PRESETS.some((p) => p.value === input.instance.accent);
4916
5234
  _html(`<label${_attr_class([
4917
- "_cK",
4918
- "_cN",
4919
- { ["_cL"]: customOn }
5235
+ "_cM",
5236
+ "_cP",
5237
+ { ["_cN"]: customOn }
4920
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) {
4921
5239
  setInstance({ accent: v });
4922
- }, "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>`);
4923
5241
  _if(() => {
4924
5242
  if (versionPick) {
4925
- const $scope29_id = _scope_id();
5243
+ const $scope30_id = _scope_id();
4926
5244
  _set_serialize_reason(14);
4927
- const $childScope10 = _peek_scope_id();
5245
+ const $childScope11 = _peek_scope_id();
4928
5246
  prompt_dialog_default({
4929
5247
  label: `Pin ${versionPick.label}: latest, lts, a prefix (22), or exact (22.11.0)`,
4930
5248
  placeholder: "latest",
@@ -4933,19 +5251,19 @@ var settings_page_default = _template("u", (input) => {
4933
5251
  open: versionPick != null,
4934
5252
  openChange: _resume(function(o) {
4935
5253
  if (!o) versionPick = null;
4936
- }, "u26", $scope29_id),
5254
+ }, "u29", $scope30_id),
4937
5255
  onSubmit: _resume(function(v) {
4938
5256
  const pick = versionPick;
4939
5257
  versionPick = null;
4940
5258
  run(pick.id, "install", v);
4941
- }, "u27", $scope29_id)
5259
+ }, "u30", $scope30_id)
4942
5260
  });
4943
- writeScope($scope29_id, { a: _existing_scope($childScope10) });
5261
+ writeScope($scope30_id, { a: _existing_scope($childScope11) });
4944
5262
  return 0;
4945
5263
  }
4946
5264
  }, $scope0_id, "ax", 1, 1, 1, 0, 1);
4947
- _script($scope0_id, "u52");
4948
- _script($scope0_id, "u53");
5265
+ _script($scope0_id, "u55");
5266
+ _script($scope0_id, "u56");
4949
5267
  writeScope($scope0_id, {
4950
5268
  b1: input.setupChange,
4951
5269
  b2: input.agentsChange,
@@ -5020,9 +5338,11 @@ var settings_page_default = _template("u", (input) => {
5020
5338
  p: _existing_scope($childScope3),
5021
5339
  dx: $active__closures,
5022
5340
  dq: $si__input_preferred && $input_preferred__closures,
5023
- ej: $accountsFor2__closures,
5341
+ ek: $accountsFor2__closures,
5024
5342
  dz: $authCodes__closures,
5025
5343
  e0: $confirmingRemove__closures,
5344
+ ee: $si__input_setupChange && $refresh2__closures,
5345
+ ef: $run2__closures,
5026
5346
  e8: $self_install__closures,
5027
5347
  e7: $hits__closures,
5028
5348
  e6: $query__closures
@@ -5031,13 +5351,13 @@ var settings_page_default = _template("u", (input) => {
5031
5351
  });
5032
5352
  //#endregion
5033
5353
  //#region src/tags/new-workspace.css.ts
5034
- var content$1 = "_bI _bB";
5035
- var section$1 = "_bM _bj";
5354
+ var content$1 = "_bI _bk";
5355
+ var section$1 = "_bM _bs";
5036
5356
  var curBase = "_bR _T _S";
5037
- var archived = "_bW _bj";
5357
+ var archived = "_bW _bs";
5038
5358
  var archivedHint = "_bX _S";
5039
- var archivedCard = "_bY _bo";
5040
- var resultBranch = "_cW _Z _j";
5359
+ var archivedCard = "_bY _bx";
5360
+ var resultBranch = "_cZ _Z _j";
5041
5361
  //#endregion
5042
5362
  //#region src/tags/branch-pick.marko
5043
5363
  var branch_pick_default = _template("d", (input) => {
@@ -5048,11 +5368,11 @@ var branch_pick_default = _template("d", (input) => {
5048
5368
  let branches = null;
5049
5369
  let defaultBranch = null;
5050
5370
  let branchFilter = "";
5051
- _html(`<div${_attr_class("_cY")}>`);
5371
+ _html(`<div${_attr_class("_c1")}>`);
5052
5372
  _if(() => {
5053
5373
  {
5054
5374
  const $scope4_id = _scope_id();
5055
- _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>`);
5056
5376
  writeScope($scope4_id, {});
5057
5377
  return 0;
5058
5378
  }
@@ -5075,6 +5395,7 @@ var branch_pick_default = _template("d", (input) => {
5075
5395
  //#endregion
5076
5396
  //#region src/tags/repo-picker.marko
5077
5397
  var api$5;
5398
+ var prefs$1;
5078
5399
  var repo_picker_default = _template("s", (input) => {
5079
5400
  const $scope0_reason = _scope_reason(), $si__input_onError = _serialize_if($scope0_reason, 2);
5080
5401
  const $scope0_id = _scope_id();
@@ -5122,99 +5443,125 @@ var repo_picker_default = _template("s", (input) => {
5122
5443
  branchesFor = branchesFor === fullName ? null : fullName;
5123
5444
  if (fullName !== pasted) pasteWillFork = false;
5124
5445
  }, "s6", $scope0_id);
5125
- _html(`<div${_attr_class("_cQ")}><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")}>`);
5126
5473
  icon_search_default({
5127
5474
  size: 14,
5128
5475
  class: "_X"
5129
5476
  });
5130
- _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) {
5131
5478
  filter = v;
5132
5479
  highlight = 0;
5133
5480
  pasteWillFork = false;
5134
- }, "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>`);
5135
5482
  _if(() => {
5136
5483
  if (pasted) {
5137
5484
  const $scope1_id = _scope_id();
5138
- _html(`<ul${_attr_class("_cR")}><li><div${_attr_class(["_cT", "_cS"])}><button${_attr_class("_cU")}${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)`)}>`);
5139
5486
  icon_plus_default({
5140
5487
  size: 12,
5141
- class: "_c0"
5488
+ class: "_c3"
5142
5489
  });
5143
- _html(`<span${_attr_class("_c1")}>${_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")}`);
5144
5491
  _if(() => {
5145
5492
  if (pastedForkable) {
5146
- const $scope7_id = _scope_id();
5147
- _html(`<button${_attr_class(["_cX", { ["_cV"]: 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")}`);
5148
- _script($scope7_id, "s11");
5149
- _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 })));
5150
5497
  return 0;
5151
5498
  }
5152
5499
  }, $scope1_id, "g", 1, 1, 1, 0, 1);
5153
- _html(`<button${_attr_class([resultBranch, { ["_cV"]: 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>`);
5154
5501
  _if(() => {
5155
5502
  if (branchesFor === pasted) {
5156
5503
  const $scope2_id = _scope_id();
5157
- const $childScope = _peek_scope_id();
5504
+ const $childScope2 = _peek_scope_id();
5158
5505
  branch_pick_default({
5159
5506
  repo: pasted,
5160
5507
  onPick: _resume(function(branch, isDefault) {
5161
5508
  pick(pasted, isDefault ? void 0 : branch, pastedFork(pasteWillFork));
5162
- }, "s7", $scope2_id),
5509
+ }, "s9", $scope2_id),
5163
5510
  onError: _resume(function(message) {
5164
5511
  branchesFor = null;
5165
5512
  input.onError?.(message);
5166
- }, "s8", $scope2_id)
5513
+ }, "s10", $scope2_id)
5167
5514
  });
5168
- _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) })));
5169
5516
  return 0;
5170
5517
  }
5171
5518
  }, $scope1_id, "i", 1, 1, 1, 0, 1);
5172
5519
  _html("</li></ul>");
5173
- _script($scope1_id, "s12");
5520
+ _script($scope1_id, "s14");
5174
5521
  writeScope($scope1_id, {});
5175
5522
  return 0;
5176
5523
  } else if (filter && !catalog) {
5177
- const $scope8_id = _scope_id();
5178
- _html(`<p${_attr_class("_bu")}>Loading repos…</p>`);
5179
- writeScope($scope8_id, {});
5524
+ const $scope9_id = _scope_id();
5525
+ _html(`<p${_attr_class("_bD")}>Loading repos…</p>`);
5526
+ writeScope($scope9_id, {});
5180
5527
  return 1;
5181
5528
  }
5182
- }, $scope0_id, "e", 1, 1, 1, 0, 1);
5529
+ }, $scope0_id, "f", 1, 1, 1, 0, 1);
5183
5530
  _if(() => {
5184
5531
  if (results.length) {
5185
5532
  const $scope3_id = _scope_id();
5186
- _html(`<ul${_attr_class("_cR")}>`);
5533
+ _html(`<ul${_attr_class("_cU")}>`);
5187
5534
  _for_of(results, (repo, i) => {
5188
5535
  const $scope4_id = _scope_id();
5189
- _html(`<li><div${_attr_class(["_cT", { ["_cS"]: i === highlight }])}><button${_attr_class("_cU")}>`);
5536
+ _html(`<li><div${_attr_class(["_cW", { ["_cV"]: i === highlight }])}><button${_attr_class("_cX")}>`);
5190
5537
  icon_plus_default({
5191
5538
  size: 12,
5192
- class: "_c0"
5539
+ class: "_c3"
5193
5540
  });
5194
- _html(`<span${_attr_class("_c1")}>${_escape(repoLabel(repo.nameWithOwner))}${_el_resume($scope4_id, "e")}</span></button>${_el_resume($scope4_id, "b")}<button${_attr_class([resultBranch, { ["_cV"]: 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")}`);
5195
5542
  _if(() => {
5196
5543
  if (branchesFor === repo.nameWithOwner) {
5197
5544
  const $scope5_id = _scope_id();
5198
- const $childScope2 = _peek_scope_id();
5545
+ const $childScope3 = _peek_scope_id();
5199
5546
  branch_pick_default({
5200
5547
  repo: repo.nameWithOwner,
5201
5548
  onPick: _resume(function(branch, isDefault) {
5202
5549
  pick(repo.nameWithOwner, isDefault ? void 0 : branch);
5203
- }, "s9", $scope5_id),
5550
+ }, "s11", $scope5_id),
5204
5551
  onError: _resume(function(message) {
5205
5552
  branchesFor = null;
5206
5553
  input.onError?.(message);
5207
- }, "s10", $scope5_id)
5554
+ }, "s12", $scope5_id)
5208
5555
  });
5209
5556
  _subscribe($si__input_onError && $input_onError__closures, writeScope($scope5_id, {
5210
- a: _existing_scope($childScope2),
5211
- Cad: $si__input_onError && 1
5557
+ a: _existing_scope($childScope3),
5558
+ Caj: $si__input_onError && 1
5212
5559
  }));
5213
5560
  return 0;
5214
5561
  }
5215
5562
  }, $scope4_id, "g", 1, 1, 1, 0, 1);
5216
5563
  _html("</li>");
5217
- _script($scope4_id, "s13");
5564
+ _script($scope4_id, "s15");
5218
5565
  _subscribe($branchesFor__closures, _subscribe($highlight__closures, writeScope($scope4_id, {
5219
5566
  j: repo?.nameWithOwner,
5220
5567
  l: i
@@ -5224,41 +5571,44 @@ var repo_picker_default = _template("s", (input) => {
5224
5571
  return 0;
5225
5572
  } else if (filter && catalog && !pasted) {
5226
5573
  const $scope6_id = _scope_id();
5227
- _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>`);
5228
5575
  writeScope($scope6_id, {});
5229
5576
  return 1;
5230
5577
  }
5231
- }, $scope0_id, "f", 1, 1, 1, 0, 1);
5578
+ }, $scope0_id, "g", 1, 1, 1, 0, 1);
5232
5579
  _html("</div>");
5233
5580
  const $return = _resume(() => loadCatalog(true), "s1", $scope0_id);
5234
- _script($scope0_id, "s14");
5235
- _script($scope0_id, "s15");
5581
+ _script($scope0_id, "s16");
5582
+ _script($scope0_id, "s17");
5236
5583
  writeScope($scope0_id, {
5237
- i: _serialize_if($scope0_reason, 1) && input.refreshing,
5238
- j: _serialize_if($scope0_reason, 0) && input.refreshingChange,
5239
- l: input.onError,
5240
- m: input.exclude,
5241
- n: input.onPick,
5242
- r: catalog,
5243
- s: catalog?.repos,
5244
- u: filter,
5245
- v: highlight,
5246
- w: loadCatalog,
5247
- x: excluded,
5248
- a0: results,
5249
- a2: pasted,
5250
- a6: pastedForkable,
5251
- a7: branchesFor,
5252
- a9: pasteWillFork,
5253
- aa: pick,
5254
- ab: pastedFork,
5255
- ac: toggleBranches,
5256
- q: input.refreshingChange || void 0,
5257
- ah: $pasted__closures,
5258
- ak: $pasteWillFork__closures,
5259
- ad: $si__input_onError && $input_onError__closures,
5260
- af: $highlight__closures,
5261
- 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
5262
5612
  });
5263
5613
  _resume_branch($scope0_id);
5264
5614
  return $return;
@@ -5362,7 +5712,7 @@ var new_workspace_default = _template("p", (input) => {
5362
5712
  }
5363
5713
  }, "p6", $scope0_id);
5364
5714
  const titleId = _id();
5365
- _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)}>`);
5366
5716
  _set_serialize_reason({
5367
5717
  0: _serialize_guard($scope0_reason, 2),
5368
5718
  1: $sg__input_backHref__OR__input_onExit,
@@ -5401,9 +5751,9 @@ var new_workspace_default = _template("p", (input) => {
5401
5751
  return 0;
5402
5752
  }
5403
5753
  }, $scope0_id, "e", 1, 1, 1, 0, 1);
5404
- _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) => {
5405
5755
  name = _new_name;
5406
- }, "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)}>`);
5407
5757
  _set_serialize_reason(1);
5408
5758
  const $childScope2 = _peek_scope_id();
5409
5759
  icon_refresh_default({
@@ -5460,7 +5810,7 @@ var new_workspace_default = _template("p", (input) => {
5460
5810
  _if(() => {
5461
5811
  if (!selected.length) {
5462
5812
  const $scope12_id = _scope_id();
5463
- _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>`);
5464
5814
  writeScope($scope12_id, {});
5465
5815
  return 0;
5466
5816
  }
@@ -5527,10 +5877,10 @@ var new_workspace_default = _template("p", (input) => {
5527
5877
  _if(() => {
5528
5878
  if (archived$1.length) {
5529
5879
  const $scope4_id = _scope_id();
5530
- _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")}>`);
5531
5881
  _for_of(archived$1, (ws) => {
5532
5882
  const $scope5_id = _scope_id();
5533
- _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)}>`);
5534
5884
  _if(() => {
5535
5885
  if (restoring === ws.id) {
5536
5886
  const $scope15_id = _scope_id();
@@ -5675,9 +6025,9 @@ function activeAgent(session) {
5675
6025
  const command = session.state?.command?.trim();
5676
6026
  return command && agentFromCommand(command) || session.agent;
5677
6027
  }
5678
- var iconBtn$1 = "_c6 _j";
5679
- var navToggle = "_da _j";
5680
- _template("H", (input) => {
6028
+ var iconBtn$1 = "_dj _j";
6029
+ var navToggle = "_do _j";
6030
+ _template("I", (input) => {
5681
6031
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
5682
6032
  const $scope0_id = _scope_id();
5683
6033
  _set_serialize_reason({
@@ -5694,7 +6044,7 @@ _template("H", (input) => {
5694
6044
  });
5695
6045
  //#endregion
5696
6046
  //#region src/tags/icons/icon-settings.marko
5697
- var icon_settings_default = _template("U", (input) => {
6047
+ var icon_settings_default = _template("V", (input) => {
5698
6048
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
5699
6049
  const $scope0_id = _scope_id();
5700
6050
  _set_serialize_reason({
@@ -5719,12 +6069,12 @@ var ARM_MS = 3500;
5719
6069
  function disarmLater(fn) {
5720
6070
  return setTimeout(fn, ARM_MS);
5721
6071
  }
5722
- var railBtn = "_f7 _j";
5723
- var rowIcon = "_gf _Z _j";
5724
- var close = "_gg _Z _j _2";
6072
+ var railBtn = "_gk _j";
6073
+ var rowIcon = "_gt _Z _j";
6074
+ var close = "_gu _Z _j _2";
5725
6075
  //#endregion
5726
6076
  //#region src/styles/session-pop.css.ts
5727
- var sessionPop = "_f3 _4";
6077
+ var sessionPop = "_gg _4";
5728
6078
  //#endregion
5729
6079
  //#region src/client/usage.ts
5730
6080
  /** The plan row an agent instance draws on: its own account (`claude2`)
@@ -5738,7 +6088,7 @@ function usageFor(agentId, usage) {
5738
6088
  }
5739
6089
  //#endregion
5740
6090
  //#region src/tags/icons/icon-diff.marko
5741
- var icon_diff_default = _template("K", (input) => {
6091
+ var icon_diff_default = _template("L", (input) => {
5742
6092
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
5743
6093
  const $scope0_id = _scope_id();
5744
6094
  _set_serialize_reason({
@@ -5755,7 +6105,7 @@ var icon_diff_default = _template("K", (input) => {
5755
6105
  });
5756
6106
  //#endregion
5757
6107
  //#region src/tags/icons/icon-manage.marko
5758
- var icon_manage_default = _template("Q", (input) => {
6108
+ var icon_manage_default = _template("R", (input) => {
5759
6109
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
5760
6110
  const $scope0_id = _scope_id();
5761
6111
  _set_serialize_reason({
@@ -5776,7 +6126,7 @@ function pctText(pct) {
5776
6126
  const rounded = Math.round(pct);
5777
6127
  return rounded !== pct && (rounded === 100 || rounded === 0) ? `${pct.toFixed(1)}%` : `${rounded}%`;
5778
6128
  }
5779
- var usage_pcts_default = _template("C", (input) => {
6129
+ var usage_pcts_default = _template("D", (input) => {
5780
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);
5781
6131
  const $scope0_id = _scope_id();
5782
6132
  const agent = input.agent;
@@ -5785,22 +6135,22 @@ var usage_pcts_default = _template("C", (input) => {
5785
6135
  if (windows.length) {
5786
6136
  const $scope1_id = _scope_id();
5787
6137
  _html(`<span${_attr_class([
5788
- "_fb",
6138
+ "_fl",
5789
6139
  input.class,
5790
- { ["_fc"]: agent.stale_seconds != null }
6140
+ { ["_fm"]: agent.stale_seconds != null }
5791
6141
  ])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
5792
6142
  _for_of(windows, (win$1, i) => {
5793
6143
  const $scope2_id = _scope_id();
5794
- _html(`<span${_attr_class("_fd")}>`);
6144
+ _html(`<span${_attr_class("_fn")}>`);
5795
6145
  _if(() => {
5796
6146
  if (i) {
5797
6147
  const $scope3_id = _scope_id();
5798
- _html(`<span${_attr_class("_fg")} aria-hidden=true>·</span>`);
6148
+ _html(`<span${_attr_class("_fq")} aria-hidden=true>·</span>`);
5799
6149
  $si__input_agent && writeScope($scope3_id, {});
5800
6150
  return 0;
5801
6151
  }
5802
6152
  }, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
5803
- _html(`<span${_attr_class("_fe")}>${_escape(win$1.window)}${_el_resume($scope2_id, "d", $sg__input_agent)}</span><span${_attr_class(["_ff", 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>`);
5804
6154
  $si__input_agent && writeScope($scope2_id, {});
5805
6155
  }, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
5806
6156
  $si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
@@ -5816,7 +6166,7 @@ var usage_pcts_default = _template("C", (input) => {
5816
6166
  });
5817
6167
  //#endregion
5818
6168
  //#region src/tags/icons/icon-edit.marko
5819
- var icon_edit_default = _template("M", (input) => {
6169
+ var icon_edit_default = _template("N", (input) => {
5820
6170
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
5821
6171
  const $scope0_id = _scope_id();
5822
6172
  _set_serialize_reason({
@@ -5831,12 +6181,12 @@ var icon_edit_default = _template("M", (input) => {
5831
6181
  });
5832
6182
  _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
5833
6183
  });
5834
- var prChip = "_g_ _s _g9";
5835
- var portChip = "_ha _s _g9";
6184
+ var prChip = "_hk _s _hj";
6185
+ var portChip = "_hl _s _hj";
5836
6186
  var prState = {
5837
- open: "_he",
5838
- merged: "_hf",
5839
- closed: "_hg"
6187
+ open: "_hp",
6188
+ merged: "_hq",
6189
+ closed: "_hr"
5840
6190
  };
5841
6191
  //#endregion
5842
6192
  //#region src/tags/side-nav-chips.marko
@@ -5884,7 +6234,7 @@ var side_nav_chips_default = _template("v", (input) => {
5884
6234
  const name = repo.full_name.split("/").at(-1);
5885
6235
  return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel(repo.full_name) : name;
5886
6236
  }, "v2", $scope1_id);
5887
- _html(`<div${_attr_class("_g8")}>`);
6237
+ _html(`<div${_attr_class("_hi")}>`);
5888
6238
  _for_of(repos, (repo) => {
5889
6239
  const $scope2_id = _scope_id();
5890
6240
  const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
@@ -5900,11 +6250,11 @@ var side_nav_chips_default = _template("v", (input) => {
5900
6250
  [prState.merged]: pr.state === "MERGED",
5901
6251
  [prState.closed]: pr.state === "CLOSED"
5902
6252
  }
5903
- ])}${_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)}`);
5904
6254
  _if(() => {
5905
6255
  if (open) {
5906
6256
  const $scope4_id = _scope_id();
5907
- _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`)}>`);
5908
6258
  icon_diff_default({ size: 12 });
5909
6259
  _html(`</a>${_el_resume($scope4_id, "a", _serialize_guard($scope0_reason, 0))}`);
5910
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) })));
@@ -5912,9 +6262,9 @@ var side_nav_chips_default = _template("v", (input) => {
5912
6262
  } else {
5913
6263
  const $scope6_id = _scope_id();
5914
6264
  _html(`<button type=button${_attr_class([
5915
- "_hb",
5916
- "_hc",
5917
- "_hd"
6265
+ "_hm",
6266
+ "_hn",
6267
+ "_ho"
5918
6268
  ])}${_attr("title", `Dismiss #${pr.number}`)}>`);
5919
6269
  icon_xmark_default({ size: 12 });
5920
6270
  _html(`</button>${_el_resume($scope6_id, "a")}`);
@@ -5939,10 +6289,10 @@ var side_nav_chips_default = _template("v", (input) => {
5939
6289
  }, "full_name", $scope1_id, "b", $sg__input_status_repos, $sg__input_status_repos, $sg__input_status_repos__OR__input_status_ports);
5940
6290
  _for_of(ports, (p) => {
5941
6291
  const $scope5_id = _scope_id();
5942
- _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([
5943
- "_hb",
5944
- "_hc",
5945
- "_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",
5946
6296
  { ["_q"]: armedPid === p.pid }
5947
6297
  ])}${armedPid === p.pid ? " title=Kill?" : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
5948
6298
  icon_xmark_default({ size: 12 });
@@ -6034,10 +6384,10 @@ var side_nav_item_default = _template("w", (input) => {
6034
6384
  _if(() => {
6035
6385
  if (input.rail) {
6036
6386
  const $scope2_id = _scope_id();
6037
- _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([
6038
6388
  "_z",
6039
6389
  phase[dot],
6040
- "_f8"
6390
+ "_gl"
6041
6391
  ])}></span>${_el_resume($scope2_id, "c", $sg__input_workspaceId__OR__input_status)}</a>${_el_resume($scope2_id, "a", _serialize_guard($scope0_reason, 3))}`);
6042
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) })))));
6043
6393
  return 0;
@@ -6045,15 +6395,15 @@ var side_nav_item_default = _template("w", (input) => {
6045
6395
  const $scope3_id = _scope_id();
6046
6396
  const sessions$1 = input.sessions || [];
6047
6397
  const phaseLabel = dot === "working" ? "Working" : dot === "waiting" ? "Needs input" : dot === "idle" ? "Idle" : "Not running";
6048
- _html(`<section${_attr_class(["_f_", {
6049
- ["_f5"]: input.current,
6398
+ _html(`<section${_attr_class(["_gn", {
6399
+ ["_gi"]: input.current,
6050
6400
  ["_5"]: input.current,
6051
- ["_ga"]: input.railPop,
6052
- ["_f9"]: input.page
6053
- }])}><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([
6054
6404
  "_z",
6055
6405
  phase[dot],
6056
- "_gp"
6406
+ "_gD"
6057
6407
  ])}${_attr("title", phaseLabel)}></span>${_el_resume($scope3_id, "d", $sg__input_workspaceId__OR__input_status)}`);
6058
6408
  _if(() => {
6059
6409
  if (sessions$1.length === 1) {
@@ -6066,7 +6416,7 @@ var side_nav_item_default = _template("w", (input) => {
6066
6416
  icon_agent_default({
6067
6417
  agent: activeAgent(sessions$1[0]),
6068
6418
  size: 12,
6069
- class: "_gh"
6419
+ class: "_gv"
6070
6420
  });
6071
6421
  $si__input_sessions && writeScope($scope14_id, {
6072
6422
  _: _scope_with_id($scope3_id),
@@ -6076,16 +6426,16 @@ var side_nav_item_default = _template("w", (input) => {
6076
6426
  }
6077
6427
  }, $scope3_id, "e", $sg__input_sessions, $sg__input_sessions);
6078
6428
  const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length === 1 ? sessions$1[0].title || "" : `${sessions$1.length} sessions`;
6079
- _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>`);
6080
6430
  _if(() => {
6081
6431
  if (input.page && metaText) {
6082
6432
  const $scope16_id = _scope_id();
6083
- _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>`);
6084
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) });
6085
6435
  return 0;
6086
6436
  } else if (sessions$1.length === 1 && sessions$1[0].title) {
6087
6437
  const $scope15_id = _scope_id();
6088
- _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>`);
6089
6439
  $si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && writeScope($scope15_id, { _: $si__input_sessions && _scope_with_id($scope3_id) });
6090
6440
  return 1;
6091
6441
  }
@@ -6098,7 +6448,7 @@ var side_nav_item_default = _template("w", (input) => {
6098
6448
  "_I",
6099
6449
  "_R",
6100
6450
  "_K",
6101
- "_go"
6451
+ "_gC"
6102
6452
  ])}>${input.current ? "Open" : ""}${_el_resume($scope4_id, "b", _serialize_guard($scope0_reason, 21))}</span>`);
6103
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, {
6104
6454
  _: _scope_with_id($scope3_id),
@@ -6111,7 +6461,7 @@ var side_nav_item_default = _template("w", (input) => {
6111
6461
  _if(() => {
6112
6462
  if (!input.page) {
6113
6463
  const $scope5_id = _scope_id();
6114
- _html(`<div${_attr_class("_gd")}>`);
6464
+ _html(`<div${_attr_class("_gr")}>`);
6115
6465
  _if(() => {
6116
6466
  if (input.onNewSession) {
6117
6467
  const $scope6_id = _scope_id();
@@ -6125,7 +6475,7 @@ var side_nav_item_default = _template("w", (input) => {
6125
6475
  _html(`</button>${_el_resume($scope6_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class(sessionPop)}>`);
6126
6476
  _for_of([], (agent) => {
6127
6477
  const $scope7_id = _scope_id();
6128
- _html(`<button${_attr_class("_f4")}>`);
6478
+ _html(`<button${_attr_class("_gh")}>`);
6129
6479
  _set_serialize_reason(12);
6130
6480
  const $childScope2 = _peek_scope_id();
6131
6481
  icon_agent_default({
@@ -6160,7 +6510,7 @@ var side_nav_item_default = _template("w", (input) => {
6160
6510
  return 0;
6161
6511
  }
6162
6512
  }, $scope5_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
6163
- _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" : ""}>`);
6164
6514
  icon_manage_default({ size: 12 });
6165
6515
  _html(`</a>${_el_resume($scope5_id, "d", _serialize_guard($scope0_reason, 8))}</div>`);
6166
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, {
@@ -6170,7 +6520,7 @@ var side_nav_item_default = _template("w", (input) => {
6170
6520
  return 0;
6171
6521
  }
6172
6522
  }, $scope3_id, "k", $sg__input_page, $sg__input_page, 1, 0, 1);
6173
- _html(`</div><div${_attr_class("_gu")}>`);
6523
+ _html(`</div><div${_attr_class("_gI")}>`);
6174
6524
  _if(() => {
6175
6525
  if (sessions$1.length === 1 && openPlan) {
6176
6526
  const $scope11_id = _scope_id();
@@ -6178,7 +6528,7 @@ var side_nav_item_default = _template("w", (input) => {
6178
6528
  const $childScope3 = _peek_scope_id();
6179
6529
  usage_pcts_default({
6180
6530
  agent: openPlan,
6181
- class: "_gl"
6531
+ class: "_gz"
6182
6532
  });
6183
6533
  _subscribe($openPlan__closures, writeScope($scope11_id, {
6184
6534
  a: _existing_scope($childScope3),
@@ -6189,14 +6539,14 @@ var side_nav_item_default = _template("w", (input) => {
6189
6539
  }, $scope3_id, "m");
6190
6540
  _for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
6191
6541
  const $scope8_id = _scope_id();
6192
- _html(`<div${_attr_class(["_ge", { ["_f5"]: s.id === input.currentTab }])}>`);
6542
+ _html(`<div${_attr_class(["_gs", { ["_gi"]: s.id === input.currentTab }])}>`);
6193
6543
  _if(() => {
6194
6544
  if (renamingId === s.id) {
6195
6545
  const $scope10_id = _scope_id();
6196
6546
  _html(`<span${_attr_class([
6197
6547
  "_z",
6198
6548
  phase[sessionPhase(s.state)],
6199
- "_gs"
6549
+ "_gG"
6200
6550
  ])}></span>${_el_resume($scope10_id, "a", $sg__input_sessions)}`);
6201
6551
  _set_serialize_reason({
6202
6552
  1: $sg__input_sessions,
@@ -6206,17 +6556,17 @@ var side_nav_item_default = _template("w", (input) => {
6206
6556
  icon_agent_default({
6207
6557
  agent: activeAgent(s),
6208
6558
  size: 13,
6209
- class: "_gw"
6559
+ class: "_gK"
6210
6560
  });
6211
6561
  _html(`<input${_attr_input_value($scope10_id, "c", renameValue, _resume((_new_renameValue) => {
6212
6562
  renameValue = _new_renameValue;
6213
- }, "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")}`);
6214
6564
  _script($scope10_id, "w5");
6215
6565
  _subscribe($renameValue__closures, writeScope($scope10_id, { b: $si__input_sessions && _existing_scope($childScope4) }));
6216
6566
  return 0;
6217
6567
  } else {
6218
6568
  const $scope9_id = _scope_id();
6219
- _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)}`);
6220
6570
  _set_serialize_reason({
6221
6571
  1: $sg__input_sessions,
6222
6572
  2: $sg__input_sessions
@@ -6225,9 +6575,9 @@ var side_nav_item_default = _template("w", (input) => {
6225
6575
  icon_agent_default({
6226
6576
  agent: activeAgent(s),
6227
6577
  size: 13,
6228
- class: "_gw"
6578
+ class: "_gK"
6229
6579
  });
6230
- _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">`);
6231
6581
  icon_edit_default({ size: 12 });
6232
6582
  _html(`</button>${_el_resume($scope9_id, "g")}<button${_attr_class([close, { ["_q"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
6233
6583
  icon_xmark_default({ size: 12 });
@@ -6239,7 +6589,7 @@ var side_nav_item_default = _template("w", (input) => {
6239
6589
  const $childScope6 = _peek_scope_id();
6240
6590
  usage_pcts_default({
6241
6591
  agent: openPlan,
6242
- class: "_gm"
6592
+ class: "_gA"
6243
6593
  });
6244
6594
  _subscribe($openPlan__closures, writeScope($scope12_id, {
6245
6595
  a: _existing_scope($childScope6),
@@ -6358,7 +6708,7 @@ var side_nav_item_default = _template("w", (input) => {
6358
6708
  });
6359
6709
  //#endregion
6360
6710
  //#region src/tags/icons/icon-folder-plus.marko
6361
- var icon_folder_plus_default = _template("N", (input) => {
6711
+ var icon_folder_plus_default = _template("O", (input) => {
6362
6712
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
6363
6713
  const $scope0_id = _scope_id();
6364
6714
  _set_serialize_reason({
@@ -6375,7 +6725,7 @@ var icon_folder_plus_default = _template("N", (input) => {
6375
6725
  });
6376
6726
  //#endregion
6377
6727
  //#region src/tags/icons/icon-sidebar-collapse.marko
6378
- var icon_sidebar_collapse_default = _template("V", (input) => {
6728
+ var icon_sidebar_collapse_default = _template("W", (input) => {
6379
6729
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
6380
6730
  const $scope0_id = _scope_id();
6381
6731
  _set_serialize_reason({
@@ -6442,34 +6792,34 @@ var side_nav_default = _template("x", (input) => {
6442
6792
  const iconSrc = `/api/instance/icon${input.instanceAccent ? `?v=${input.instanceAccent.slice(1)}` : ""}`;
6443
6793
  const otherIds = itemIds.filter((id) => id !== ws.id);
6444
6794
  const listIds = isPage ? [ws.id, ...otherIds] : itemIds;
6445
- _html(`<aside${_attr_class(["_c_", {
6446
- ["_c8"]: !navOpen,
6447
- ["_c9"]: isPage
6795
+ _html(`<aside${_attr_class(["_dn", {
6796
+ ["_dl"]: !navOpen,
6797
+ ["_dm"]: isPage
6448
6798
  }])}${_attr("hidden", view === "diff")}>`);
6449
6799
  _if(() => {
6450
6800
  if (isPage) {
6451
6801
  const $scope1_id = _scope_id();
6452
- _html(`<header${_attr_class("_dc")}><div${_attr_class("_dl")}>`);
6802
+ _html(`<header${_attr_class("_dq")}><div${_attr_class("_dz")}>`);
6453
6803
  _if(() => {
6454
6804
  if (input.instanceName) {
6455
6805
  const $scope2_id = _scope_id();
6456
- _html(`<div${_attr_class("_di")} title="This work server (Settings → Appearance)"><img${_attr_class("_dj")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_dk")}>${_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>`);
6457
6807
  _subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
6458
6808
  return 0;
6459
6809
  }
6460
6810
  }, $scope1_id, "c", $sg__input_instanceName, $sg__input_instanceName, 1, 0, 1);
6461
- _html(`<h1${_attr_class("_dd")}>Workspaces</h1></div><div${_attr_class("_de")}>`);
6811
+ _html(`<h1${_attr_class("_dr")}>Workspaces</h1></div><div${_attr_class("_ds")}>`);
6462
6812
  _if(() => {}, $scope1_id, "f", 1, 1, 1, 0, 1);
6463
6813
  _html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
6464
6814
  iconBtn$1,
6465
- "_df",
6466
- { ["_c5"]: view === "settings" }
6815
+ "_dt",
6816
+ { ["_di"]: view === "settings" }
6467
6817
  ])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
6468
6818
  icon_settings_default({ size: 16 });
6469
6819
  _if(() => {
6470
6820
  if (input.setupReady === false) {
6471
6821
  const $scope12_id = _scope_id();
6472
- _html(`<span${_attr_class(["_z", "_c7"])} title="Machine setup incomplete"></span>`);
6822
+ _html(`<span${_attr_class(["_z", "_dk"])} title="Machine setup incomplete"></span>`);
6473
6823
  $si__input_setupReady && writeScope($scope12_id, {});
6474
6824
  return 0;
6475
6825
  }
@@ -6482,18 +6832,18 @@ var side_nav_default = _template("x", (input) => {
6482
6832
  _if(() => {
6483
6833
  if (!isPage && input.instanceName) {
6484
6834
  const $scope3_id = _scope_id();
6485
- _html(`<div${_attr_class("_di")} title="This work server (Settings → Appearance)"><img${_attr_class("_dj")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope3_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_dk")}>${_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>`);
6486
6836
  writeScope($scope3_id, {});
6487
6837
  return 0;
6488
6838
  }
6489
6839
  }, $scope0_id, "c", 1, 1, 1, 0, 1);
6490
- _html(`<div${_attr_class("_dm")}>`);
6840
+ _html(`<div${_attr_class("_dA")}>`);
6491
6841
  _for_of(listIds, (wsId) => {
6492
6842
  const $scope4_id = _scope_id();
6493
6843
  _if(() => {
6494
6844
  if (isPage && wsId === ws.id) {
6495
6845
  const $scope13_id = _scope_id();
6496
- _html(`<h2${_attr_class(["_by", "_dg"])}>Current</h2>`);
6846
+ _html(`<h2${_attr_class(["_bH", "_du"])}>Current</h2>`);
6497
6847
  writeScope($scope13_id, {});
6498
6848
  return 0;
6499
6849
  }
@@ -6501,7 +6851,7 @@ var side_nav_default = _template("x", (input) => {
6501
6851
  _if(() => {
6502
6852
  if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
6503
6853
  const $scope14_id = _scope_id();
6504
- _html(`<h2${_attr_class(["_by", "_dg"])}>Other workspaces</h2>`);
6854
+ _html(`<h2${_attr_class(["_bH", "_du"])}>Other workspaces</h2>`);
6505
6855
  writeScope($scope14_id, {});
6506
6856
  return 0;
6507
6857
  }
@@ -6588,7 +6938,7 @@ var side_nav_default = _template("x", (input) => {
6588
6938
  railHover = null;
6589
6939
  }, 150);
6590
6940
  }, "x6", $scope5_id);
6591
- _html(`<div${_attr_class("_dn")}>`);
6941
+ _html(`<div${_attr_class("_dB")}>`);
6592
6942
  _for_of(itemIds, (wsId, i) => {
6593
6943
  const $scope6_id = _scope_id();
6594
6944
  _html("<span>");
@@ -6642,7 +6992,7 @@ var side_nav_default = _template("x", (input) => {
6642
6992
  if (railHover) {
6643
6993
  const $scope7_id = _scope_id();
6644
6994
  const hoverId = railHover.id;
6645
- _html(`<div${_attr_class(["_4", "_dq"])}${_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`)}>`);
6646
6996
  _set_serialize_reason({
6647
6997
  0: 1,
6648
6998
  1: 1,
@@ -6730,7 +7080,7 @@ var side_nav_default = _template("x", (input) => {
6730
7080
  return 0;
6731
7081
  }
6732
7082
  }, $scope0_id, "e");
6733
- _html(`<div${_attr_class("_do")}>`);
7083
+ _html(`<div${_attr_class("_dC")}>`);
6734
7084
  _if(() => {
6735
7085
  if (isPage) {
6736
7086
  const $scope9_id = _scope_id();
@@ -6738,7 +7088,7 @@ var side_nav_default = _template("x", (input) => {
6738
7088
  "_o",
6739
7089
  "_p",
6740
7090
  btnLg,
6741
- "_dh"
7091
+ "_dv"
6742
7092
  ])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
6743
7093
  icon_folder_plus_default({ size: 16 });
6744
7094
  _html(` New workspace</a>${_el_resume($scope9_id, "a")}`);
@@ -6760,19 +7110,19 @@ var side_nav_default = _template("x", (input) => {
6760
7110
  return 1;
6761
7111
  }
6762
7112
  }, $scope8_id, "a", 1, 1, 1, "</button>", 1);
6763
- _html(`<div${_attr_class(["_y", "_dp"])}></div>`);
7113
+ _html(`<div${_attr_class(["_y", "_dD"])}></div>`);
6764
7114
  _if(() => {}, $scope8_id, "c", 1, 1, 1, 0, 1);
6765
- _html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["_c5"]: 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" : ""}>`);
6766
7116
  icon_settings_default({ size: 15 });
6767
7117
  _if(() => {
6768
7118
  if (input.setupReady === false) {
6769
7119
  const $scope17_id = _scope_id();
6770
- _html(`<span${_attr_class(["_z", "_c7"])} title="Machine setup incomplete"></span>`);
7120
+ _html(`<span${_attr_class(["_z", "_dk"])} title="Machine setup incomplete"></span>`);
6771
7121
  $si__input_setupReady && writeScope($scope17_id, {});
6772
7122
  return 0;
6773
7123
  }
6774
7124
  }, $scope8_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
6775
- _html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn$1, { ["_c5"]: 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" : ""}>`);
6776
7126
  icon_folder_plus_default({ size: 16 });
6777
7127
  _html(`</a>${_el_resume($scope8_id, "g")}`);
6778
7128
  _script($scope8_id, "x15");
@@ -6837,11 +7187,11 @@ var side_nav_default = _template("x", (input) => {
6837
7187
  _resume_branch($scope0_id);
6838
7188
  });
6839
7189
  var iconBtn = "_0 _j";
6840
- var sectionCount = "_bl _I _J";
6841
- var content = "_dr _bB";
6842
- var pageMeta = "_ds _bG";
6843
- var pathMeta = "_dv _x";
6844
- var dangerHint = "_dB _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";
6845
7195
  //#endregion
6846
7196
  //#region src/tags/manage-workspace.marko
6847
7197
  var api$2;
@@ -6940,7 +7290,7 @@ var manage_workspace_default = _template("n", (input) => {
6940
7290
  setTimeout(() => loadProcs(void 0), 500);
6941
7291
  }, "n5", $scope0_id);
6942
7292
  const titleId = _id();
6943
- _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)}>`);
6944
7294
  _set_serialize_reason(30);
6945
7295
  const $childScope = _peek_scope_id();
6946
7296
  page_head_default({
@@ -6953,7 +7303,7 @@ var manage_workspace_default = _template("n", (input) => {
6953
7303
  meta: attrTag({ content: _content_resume("n11", () => {
6954
7304
  _scope_reason();
6955
7305
  const $scope8_id = _scope_id();
6956
- _html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_dt")}>${_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>`);
6957
7307
  _if(() => {
6958
7308
  if (ws.status !== "active") {
6959
7309
  const $scope11_id = _scope_id();
@@ -6962,7 +7312,7 @@ var manage_workspace_default = _template("n", (input) => {
6962
7312
  return 0;
6963
7313
  }
6964
7314
  }, $scope8_id, "d", 1, 1, 1, 0, 1);
6965
- _html(`<span${_attr_class("_du")} 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")}`);
6966
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) })))));
6967
7317
  _resume_branch($scope8_id);
6968
7318
  }, $scope0_id) })
@@ -6990,22 +7340,22 @@ var manage_workspace_default = _template("n", (input) => {
6990
7340
  _if(() => {
6991
7341
  if (pendingAction && actionStep) {
6992
7342
  const $scope7_id = _scope_id();
6993
- _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>`);
6994
7344
  writeScope($scope7_id, {});
6995
7345
  return 0;
6996
7346
  }
6997
7347
  }, $scope0_id, "f", 1, 1, 1, 0, 1);
6998
- _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)}>`);
6999
7349
  _set_serialize_reason(1);
7000
7350
  const $childScope2 = _peek_scope_id();
7001
7351
  icon_refresh_default({
7002
7352
  size: 14,
7003
7353
  class: catalogRefreshing && "_E"
7004
7354
  });
7005
- _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")}>`);
7006
7356
  _for_of(ws.repos, (row) => {
7007
7357
  const $scope1_id = _scope_id();
7008
- _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", "_dx"])}${_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")}`);
7009
7359
  _if(() => {
7010
7360
  if (row.base_branch !== row.default_branch) {
7011
7361
  const $scope12_id = _scope_id();
@@ -7024,7 +7374,7 @@ var manage_workspace_default = _template("n", (input) => {
7024
7374
  } else {
7025
7375
  const $scope6_id = _scope_id();
7026
7376
  _html(`<button${_attr_class([
7027
- "_bt",
7377
+ "_bC",
7028
7378
  "_2",
7029
7379
  "_3",
7030
7380
  { ["_q"]: confirmingRemove === row.full_name }
@@ -7057,19 +7407,19 @@ var manage_workspace_default = _template("n", (input) => {
7057
7407
  }, "full_name", $scope0_id, "p", 1, 1, 1, 0, 1);
7058
7408
  _for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
7059
7409
  const $scope16_id = _scope_id();
7060
- _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>`);
7061
7411
  writeScope($scope16_id, {});
7062
7412
  }, (n) => n, $scope0_id, "q", 1, 1, 1, 0, 1);
7063
7413
  _html("</ul>");
7064
7414
  _if(() => {
7065
7415
  if (!ws.repos.length && !busy.size) {
7066
7416
  const $scope17_id = _scope_id();
7067
- _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>`);
7068
7418
  writeScope($scope17_id, {});
7069
7419
  return 0;
7070
7420
  }
7071
7421
  }, $scope0_id, "r", 1, 1, 1, 0, 1);
7072
- _html(`<div${_attr_class("_dw")}>`);
7422
+ _html(`<div${_attr_class("_dc")}>`);
7073
7423
  const $childScope3 = _peek_scope_id();
7074
7424
  let refreshCatalog = repo_picker_default({
7075
7425
  exclude: inWorkspace,
@@ -7089,17 +7439,17 @@ var manage_workspace_default = _template("n", (input) => {
7089
7439
  _if(() => {
7090
7440
  if (running.length) {
7091
7441
  const $scope9_id = _scope_id();
7092
- _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")}>`);
7093
7443
  _for_of(running, (p) => {
7094
7444
  const $scope10_id = _scope_id();
7095
- _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>`);
7096
7446
  _if(() => {
7097
7447
  if (p.ports.length) {
7098
7448
  const $scope18_id = _scope_id();
7099
- _html(`<span${_attr_class("_br")}>`);
7449
+ _html(`<span${_attr_class("_bA")}>`);
7100
7450
  _for_of(p.ports, (port) => {
7101
7451
  const $scope19_id = _scope_id();
7102
- _html(`<button${_attr_class(["_s", "_dy"])}${_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")}`);
7103
7453
  _script($scope19_id, "n15");
7104
7454
  writeScope($scope19_id, { d: port });
7105
7455
  }, (x) => String(x), $scope18_id, "a", 1, 1, 1, "</span>", 1);
@@ -7107,7 +7457,7 @@ var manage_workspace_default = _template("n", (input) => {
7107
7457
  return 0;
7108
7458
  }
7109
7459
  }, $scope10_id, "e", 1, 1, 1, 0, 1);
7110
- _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}`)}>`);
7111
7461
  icon_xmark_default({ size: 14 });
7112
7462
  _html(`</button>${_el_resume($scope10_id, "f")}</li>`);
7113
7463
  _script($scope10_id, "n16");
@@ -7121,7 +7471,7 @@ var manage_workspace_default = _template("n", (input) => {
7121
7471
  return 0;
7122
7472
  }
7123
7473
  }, $scope0_id, "v", 1, 1, 1, 0, 1);
7124
- _html(`<section${_attr_class(["_bj", "_dz"])}><div${_attr_class("_bk")}><h2${_attr_class("_by")}>Workspace</h2></div><div${_attr_class("_dA")}>`);
7474
+ _html(`<section${_attr_class(["_bs", "_df"])}><div${_attr_class("_bt")}><h2${_attr_class("_bH")}>Workspace</h2></div><div${_attr_class("_dg")}>`);
7125
7475
  _if(() => {
7126
7476
  if (ws.status === "active") {
7127
7477
  const $scope4_id = _scope_id();
@@ -7188,7 +7538,7 @@ var manage_workspace_default = _template("n", (input) => {
7188
7538
  });
7189
7539
  //#endregion
7190
7540
  //#region src/tags/term-find.marko
7191
- var term_find_default = _template("y", (input) => {
7541
+ var term_find_default = _template("z", (input) => {
7192
7542
  const $scope0_reason = _scope_reason();
7193
7543
  const $scope0_id = _scope_id();
7194
7544
  let open = input.open;
@@ -7205,37 +7555,37 @@ var term_find_default = _template("y", (input) => {
7205
7555
  if (!live.open) return;
7206
7556
  const search = input.onSearch;
7207
7557
  if (search) search(live.query, dir);
7208
- }, "y1", $scope0_id);
7558
+ }, "z1", $scope0_id);
7209
7559
  const close = _resume(() => {
7210
7560
  open = false;
7211
7561
  live.open = false;
7212
7562
  const clear = input.onClear;
7213
7563
  if (clear) clear();
7214
- }, "y2", $scope0_id);
7564
+ }, "z2", $scope0_id);
7215
7565
  const focusInput = _resume(() => {
7216
7566
  const el = ((findEl) => findEl())(_el_read_error);
7217
7567
  if (!el) return;
7218
7568
  el.focus();
7219
7569
  if (document.activeElement !== el) setTimeout(() => el.focus(), 0);
7220
- }, "y3", $scope0_id);
7570
+ }, "z3", $scope0_id);
7221
7571
  const hasQuery = !!query.trim();
7222
7572
  const canStep = hasQuery && open;
7223
7573
  const keybar = input.placement === "keybar";
7224
7574
  _html(`<div${_attr_class([
7225
- "_fW",
7226
- keybar ? "_fY" : "_fX",
7227
- !open && "_f0"
7228
- ])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_fR", keybar ? "_fZ" : "_fT"])}><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) {
7229
7579
  if (!open) return;
7230
7580
  query = v;
7231
7581
  live.query = v;
7232
7582
  run(0);
7233
- }, "y0", $scope0_id))}${_attr_class([findInput, keybar && "_f1"])} 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 && "_f2"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↑</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_f2"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↓</button>${_el_resume($scope0_id, "e")}<button type=button${_attr_class([findIconBtn, keybar && "_f2"])} 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"}>`);
7234
7584
  icon_xmark_default({ size: 14 });
7235
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")}`);
7236
- _script($scope0_id, "y4");
7237
- _script($scope0_id, "y5");
7238
- _script($scope0_id, "y6");
7586
+ _script($scope0_id, "z4");
7587
+ _script($scope0_id, "z5");
7588
+ _script($scope0_id, "z6");
7239
7589
  writeScope($scope0_id, {
7240
7590
  j: _serialize_if($scope0_reason, 1) && input.open,
7241
7591
  k: _serialize_if($scope0_reason, 0) && input.openChange,
@@ -7258,7 +7608,7 @@ var term_find_default = _template("y", (input) => {
7258
7608
  });
7259
7609
  _resume_branch($scope0_id);
7260
7610
  });
7261
- _template("Y", (input) => {
7611
+ _template("Z", (input) => {
7262
7612
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
7263
7613
  const $scope0_id = _scope_id();
7264
7614
  _set_serialize_reason({
@@ -7273,7 +7623,7 @@ _template("Y", (input) => {
7273
7623
  });
7274
7624
  _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
7275
7625
  });
7276
- _template("L", (input) => {
7626
+ _template("M", (input) => {
7277
7627
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
7278
7628
  const $scope0_id = _scope_id();
7279
7629
  _set_serialize_reason({
@@ -7288,7 +7638,7 @@ _template("L", (input) => {
7288
7638
  });
7289
7639
  _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
7290
7640
  });
7291
- _template("P", (input) => {
7641
+ _template("Q", (input) => {
7292
7642
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
7293
7643
  const $scope0_id = _scope_id();
7294
7644
  _set_serialize_reason({
@@ -7303,7 +7653,7 @@ _template("P", (input) => {
7303
7653
  });
7304
7654
  _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
7305
7655
  });
7306
- _template("J", (input) => {
7656
+ _template("K", (input) => {
7307
7657
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
7308
7658
  const $scope0_id = _scope_id();
7309
7659
  _set_serialize_reason({
@@ -7322,7 +7672,7 @@ _template("J", (input) => {
7322
7672
  //#region src/tags/term.marko
7323
7673
  var REPEAT_DELAY = 400;
7324
7674
  var REPEAT_EVERY = 55;
7325
- var term_default = _template("z", (input) => {
7675
+ var term_default = _template("A", (input) => {
7326
7676
  const $scope0_reason = _scope_reason();
7327
7677
  _serialize_guard($scope0_reason, 5);
7328
7678
  _serialize_guard($scope0_reason, 0);
@@ -7341,7 +7691,7 @@ var term_default = _template("z", (input) => {
7341
7691
  _serialize_guard($scope0_reason, 13);
7342
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);
7343
7693
  const $scope0_id = _scope_id();
7344
- _hoist($scope0_id, "z21");
7694
+ _hoist($scope0_id, "A21");
7345
7695
  const $findOpen__closures = /* @__PURE__ */ new Set();
7346
7696
  const $findTick__closures = /* @__PURE__ */ new Set();
7347
7697
  const $input_onCloseSession__closures = /* @__PURE__ */ new Set();
@@ -7363,7 +7713,7 @@ var term_default = _template("z", (input) => {
7363
7713
  let findOpen = false;
7364
7714
  const $openChange = _resume((_new_findOpen) => {
7365
7715
  findOpen = _new_findOpen;
7366
- }, "z1", $scope0_id);
7716
+ }, "A1", $scope0_id);
7367
7717
  let findTick = 0;
7368
7718
  const ioBox = { current: null };
7369
7719
  const searchBox = {
@@ -7371,7 +7721,7 @@ var term_default = _template("z", (input) => {
7371
7721
  query: "",
7372
7722
  refreshTimer: 0
7373
7723
  };
7374
- const findFocusRef = { focus: _resume(function() {}, "z2") };
7724
+ const findFocusRef = { focus: _resume(function() {}, "A2") };
7375
7725
  const scheduleFindRefresh = _resume(() => {
7376
7726
  if (!searchBox.query.trim() || !searchBox.overlay) return;
7377
7727
  if (searchBox.refreshTimer) clearTimeout(searchBox.refreshTimer);
@@ -7379,7 +7729,7 @@ var term_default = _template("z", (input) => {
7379
7729
  searchBox.refreshTimer = 0;
7380
7730
  searchBox.overlay?.refresh();
7381
7731
  }, 32);
7382
- }, "z3", $scope0_id);
7732
+ }, "A3", $scope0_id);
7383
7733
  const runFind = _resume((query, dir) => {
7384
7734
  const overlay = searchBox.overlay;
7385
7735
  if (!overlay) return;
@@ -7393,7 +7743,7 @@ var term_default = _template("z", (input) => {
7393
7743
  return;
7394
7744
  }
7395
7745
  overlay.search(query, dir);
7396
- }, "z4", $scope0_id);
7746
+ }, "A4", $scope0_id);
7397
7747
  const clearFind = _resume(() => {
7398
7748
  if (searchBox.refreshTimer) {
7399
7749
  clearTimeout(searchBox.refreshTimer);
@@ -7401,7 +7751,7 @@ var term_default = _template("z", (input) => {
7401
7751
  }
7402
7752
  searchBox.query = "";
7403
7753
  searchBox.overlay?.clear();
7404
- }, "z5", $scope0_id);
7754
+ }, "A5", $scope0_id);
7405
7755
  const openFind = _resume(() => {
7406
7756
  if (kb) {
7407
7757
  kb = false;
@@ -7411,7 +7761,7 @@ var term_default = _template("z", (input) => {
7411
7761
  findOpen = true;
7412
7762
  findTick++;
7413
7763
  findFocusRef.focus();
7414
- }, "z6", $scope0_id);
7764
+ }, "A6", $scope0_id);
7415
7765
  const toggleFind = _resume(() => {
7416
7766
  if (findOpen) {
7417
7767
  findOpen = false;
@@ -7420,7 +7770,7 @@ var term_default = _template("z", (input) => {
7420
7770
  return;
7421
7771
  }
7422
7772
  openFind();
7423
- }, "z7", $scope0_id);
7773
+ }, "A7", $scope0_id);
7424
7774
  const onTermPage = input.mode == null || input.mode === "term";
7425
7775
  const canKeys = onTermPage || input.mode === "diff";
7426
7776
  const findLit = onTermPage ? findOpen : input.mode === "diff" && !!input.reviewFindOpen;
@@ -7431,7 +7781,7 @@ var term_default = _template("z", (input) => {
7431
7781
  return;
7432
7782
  }
7433
7783
  if (input.mode === "diff") input.onToggleReviewFind?.();
7434
- }, "z8", $scope0_id);
7784
+ }, "A8", $scope0_id);
7435
7785
  const thisAgent = activeAgent({
7436
7786
  agent: input.agent || "shell",
7437
7787
  state: input.sessionState
@@ -7443,7 +7793,7 @@ var term_default = _template("z", (input) => {
7443
7793
  copyFlashBox.timer = setTimeout(() => {
7444
7794
  copiedFlash = false;
7445
7795
  }, 1200);
7446
- }, "z9", $scope0_id);
7796
+ }, "A9", $scope0_id);
7447
7797
  const holdBox = { current: null };
7448
7798
  const startHold = _resume((seq) => {
7449
7799
  ((stopHold) => stopHold())(_hoist_read_error);
@@ -7453,7 +7803,7 @@ var term_default = _template("z", (input) => {
7453
7803
  state.repeat = setInterval(() => ioBox.current?.send(seq), REPEAT_EVERY);
7454
7804
  }, REPEAT_DELAY);
7455
7805
  holdBox.current = state;
7456
- }, "z10", $scope0_id);
7806
+ }, "A10", $scope0_id);
7457
7807
  const stopHold = _resume(() => {
7458
7808
  const hold = holdBox.current;
7459
7809
  if (hold) {
@@ -7461,7 +7811,7 @@ var term_default = _template("z", (input) => {
7461
7811
  clearInterval(hold.repeat);
7462
7812
  holdBox.current = null;
7463
7813
  }
7464
- }, "z11", $scope0_id);
7814
+ }, "A11", $scope0_id);
7465
7815
  const uploadAsset = _resume(async (file) => {
7466
7816
  if (!file) return;
7467
7817
  uploading = true;
@@ -7474,7 +7824,7 @@ var term_default = _template("z", (input) => {
7474
7824
  } finally {
7475
7825
  uploading = false;
7476
7826
  }
7477
- }, "z12", $scope0_id);
7827
+ }, "A12", $scope0_id);
7478
7828
  const handlePasted = _resume(async (clipboardData) => {
7479
7829
  const files = [...clipboardData?.files || []];
7480
7830
  for (const file of files) await uploadAsset(file);
@@ -7483,7 +7833,7 @@ var term_default = _template("z", (input) => {
7483
7833
  if (text) ioBox.current?.send(text);
7484
7834
  }
7485
7835
  trapOpen = false;
7486
- }, "z13", $scope0_id);
7836
+ }, "A13", $scope0_id);
7487
7837
  const pasteClipboard = _resume(async () => {
7488
7838
  if (!navigator.clipboard?.read) {
7489
7839
  trapOpen = true;
@@ -7503,8 +7853,8 @@ var term_default = _template("z", (input) => {
7503
7853
  } catch {
7504
7854
  trapOpen = true;
7505
7855
  }
7506
- }, "z14", $scope0_id);
7507
- _html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_d5")}><div${_attr_class("_d6")}></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")}`);
7508
7858
  _if(() => {
7509
7859
  if (findOpen) {
7510
7860
  const $scope12_id = _scope_id();
@@ -7518,11 +7868,11 @@ var term_default = _template("z", (input) => {
7518
7868
  focusRef: findFocusRef,
7519
7869
  onSearch: _resume(function(q, dir) {
7520
7870
  runFind(q, dir);
7521
- }, "z15", $scope12_id),
7871
+ }, "A15", $scope12_id),
7522
7872
  onClear: _resume(function() {
7523
7873
  clearFind();
7524
7874
  ioBox.current?.setFindMode(false);
7525
- }, "z16", $scope12_id)
7875
+ }, "A16", $scope12_id)
7526
7876
  });
7527
7877
  writeScope($scope12_id, { a: _existing_scope($childScope) });
7528
7878
  return 0;
@@ -7531,7 +7881,7 @@ var term_default = _template("z", (input) => {
7531
7881
  _if(() => {
7532
7882
  if (uploading) {
7533
7883
  const $scope19_id = _scope_id();
7534
- _html(`<div${_attr_class("_eb")}>uploading…</div>`);
7884
+ _html(`<div${_attr_class("_dM")}>uploading…</div>`);
7535
7885
  writeScope($scope19_id, {});
7536
7886
  return 0;
7537
7887
  }
@@ -7539,7 +7889,7 @@ var term_default = _template("z", (input) => {
7539
7889
  _if(() => {
7540
7890
  if (copiedFlash) {
7541
7891
  const $scope20_id = _scope_id();
7542
- _html(`<div${_attr_class("_ea")}>Copied</div>`);
7892
+ _html(`<div${_attr_class("_dL")}>Copied</div>`);
7543
7893
  writeScope($scope20_id, {});
7544
7894
  return 0;
7545
7895
  }
@@ -7548,18 +7898,18 @@ var term_default = _template("z", (input) => {
7548
7898
  _if(() => {
7549
7899
  if (trapOpen) {
7550
7900
  const $scope11_id = _scope_id();
7551
- _html(`<div${_attr_class("_ec")}><div${_attr_class("_ed")}><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")}`);
7552
- _script($scope11_id, "z25");
7553
- _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");
7554
7904
  writeScope($scope11_id, {});
7555
7905
  return 0;
7556
7906
  }
7557
7907
  }, $scope0_id, "g", 1, 1, 1, 0, 1);
7558
7908
  _html(`</div>${_el_resume($scope0_id, "a")}`);
7559
7909
  _if(() => {}, $scope0_id, "h", 1, 1, 1, 0, 1);
7560
- _script($scope0_id, "z41");
7561
- _script($scope0_id, "z42");
7562
- _script($scope0_id, "z43");
7910
+ _script($scope0_id, "A41");
7911
+ _script($scope0_id, "A42");
7912
+ _script($scope0_id, "A43");
7563
7913
  writeScope($scope0_id, {
7564
7914
  k: input.mode,
7565
7915
  l: input.reviewFindOpen,
@@ -7626,7 +7976,7 @@ var term_default = _template("z", (input) => {
7626
7976
  //#region src/tags/work-view.marko
7627
7977
  var api$1;
7628
7978
  var isTransientApiError$1;
7629
- var work_view_default = _template("D", (input) => {
7979
+ var work_view_default = _template("E", (input) => {
7630
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);
7631
7981
  const $scope0_id = _scope_id();
7632
7982
  const $error__closures = /* @__PURE__ */ new Set();
@@ -7651,16 +8001,16 @@ var work_view_default = _template("D", (input) => {
7651
8001
  let DiffView = null;
7652
8002
  const loadDiffView = _resume(() => {
7653
8003
  if (DiffView) return;
7654
- import("./_BNW7lzU5.js").then((m) => {
8004
+ import("./_BI3Xi4eO.js").then((m) => {
7655
8005
  DiffView = m.default;
7656
8006
  });
7657
- }, "D6", $scope0_id);
8007
+ }, "E6", $scope0_id);
7658
8008
  let manageMounted = input.initialView === "manage";
7659
8009
  let settingsMounted = input.initialView === "settings";
7660
8010
  let newMounted = input.initialView === "new";
7661
8011
  let reviewFindOpen = false;
7662
8012
  let reviewFindTick = 0;
7663
- const reviewFindFocus = { focus: _resume(function() {}, "D0") };
8013
+ const reviewFindFocus = { focus: _resume(function() {}, "E0") };
7664
8014
  let focusPr = input.initialPr ?? "";
7665
8015
  let focusNonce = 0;
7666
8016
  let reviewScope = input.initialScope ?? null;
@@ -7678,22 +8028,22 @@ var work_view_default = _template("D", (input) => {
7678
8028
  loadDiffView();
7679
8029
  diffMounted = true;
7680
8030
  view = "diff";
7681
- }, "D7", $scope0_id);
8031
+ }, "E7", $scope0_id);
7682
8032
  const openManage = _resume(() => {
7683
8033
  manageMounted = true;
7684
8034
  view = "manage";
7685
- }, "D8", $scope0_id);
8035
+ }, "E8", $scope0_id);
7686
8036
  const openSettings = _resume(() => {
7687
8037
  settingsMounted = true;
7688
8038
  view = "settings";
7689
- }, "D9", $scope0_id);
8039
+ }, "E9", $scope0_id);
7690
8040
  const toggleNav = _resume(() => {
7691
8041
  view = view === "nav" ? "term" : "nav";
7692
- }, "D10", $scope0_id);
8042
+ }, "E10", $scope0_id);
7693
8043
  const toggleDiff = _resume(() => {
7694
8044
  if (view === "diff") view = "term";
7695
8045
  else openDiff();
7696
- }, "D11", $scope0_id);
8046
+ }, "E11", $scope0_id);
7697
8047
  const shownSessions = sessions ?? input.allStatus?.[ws.id]?.sessions ?? null;
7698
8048
  const curTab = (() => {
7699
8049
  if (tab && shownSessions?.some((s) => s.id === tab)) return tab;
@@ -7710,10 +8060,10 @@ var work_view_default = _template("D", (input) => {
7710
8060
  reviewFindOpen = true;
7711
8061
  reviewFindTick++;
7712
8062
  reviewFindFocus.focus();
7713
- }, "D12", $scope0_id);
8063
+ }, "E12", $scope0_id);
7714
8064
  const exitCreate = _resume(() => {
7715
8065
  if (view === "new") view = "term";
7716
- }, "D13", $scope0_id);
8066
+ }, "E13", $scope0_id);
7717
8067
  const applyView = _resume((v) => {
7718
8068
  if (v.view === "diff") {
7719
8069
  if (v.scope !== void 0) reviewScope = v.scope ?? null;
@@ -7728,7 +8078,7 @@ var work_view_default = _template("D", (input) => {
7728
8078
  }
7729
8079
  view = "term";
7730
8080
  }
7731
- }, "D14", $scope0_id);
8081
+ }, "E14", $scope0_id);
7732
8082
  const createSession = _resume(async (agent, select) => {
7733
8083
  spawning = true;
7734
8084
  try {
@@ -7749,7 +8099,7 @@ var work_view_default = _template("D", (input) => {
7749
8099
  } finally {
7750
8100
  spawning = false;
7751
8101
  }
7752
- }, "D15", $scope0_id);
8102
+ }, "E15", $scope0_id);
7753
8103
  const loadMem = {
7754
8104
  wanted: false,
7755
8105
  run: void 0
@@ -7775,11 +8125,11 @@ var work_view_default = _template("D", (input) => {
7775
8125
  if (isTransientApiError$1(err)) return;
7776
8126
  error = String(err.message || err);
7777
8127
  }
7778
- }, "D16", $scope0_id);
8128
+ }, "E16", $scope0_id);
7779
8129
  const loadSessions = _resume((autoCreate) => {
7780
8130
  if (autoCreate) loadMem.wanted = true;
7781
8131
  return (loadMem.run ??= coalesce(loadBody))();
7782
- }, "D17", $scope0_id);
8132
+ }, "E17", $scope0_id);
7783
8133
  const closeSession = _resume(async (id) => {
7784
8134
  try {
7785
8135
  sessions = (sessions || []).filter((s) => s.id !== id);
@@ -7789,7 +8139,7 @@ var work_view_default = _template("D", (input) => {
7789
8139
  error = `Close session failed: ${String(err.message || err)}`;
7790
8140
  loadSessions(false);
7791
8141
  }
7792
- }, "D18", $scope0_id);
8142
+ }, "E18", $scope0_id);
7793
8143
  const renameSession = _resume(async (id, title) => {
7794
8144
  title = title.trim();
7795
8145
  const cur = (sessions || []).find((s) => s.id === id);
@@ -7804,7 +8154,7 @@ var work_view_default = _template("D", (input) => {
7804
8154
  headers: { "content-type": "application/json" },
7805
8155
  body: JSON.stringify({ title })
7806
8156
  });
7807
- }, "D19", $scope0_id);
8157
+ }, "E19", $scope0_id);
7808
8158
  const newSession = _resume(async (wsId, agent) => {
7809
8159
  if (wsId === ws.id) {
7810
8160
  const session = await createSession(agent, true);
@@ -7822,7 +8172,7 @@ var work_view_default = _template("D", (input) => {
7822
8172
  } catch (err) {
7823
8173
  error = String(err.message || err);
7824
8174
  }
7825
- }, "D20", $scope0_id);
8175
+ }, "E20", $scope0_id);
7826
8176
  const onKey = _resume((e) => {
7827
8177
  const target = e.target;
7828
8178
  const typing = !!target && !target.closest(".xterm") && (target.tagName === "INPUT" || target.tagName === "TEXTAREA" || target.tagName === "SELECT" || target.isContentEditable);
@@ -7836,7 +8186,7 @@ var work_view_default = _template("D", (input) => {
7836
8186
  e.preventDefault();
7837
8187
  toggleDiff();
7838
8188
  }
7839
- }, "D21", $scope0_id);
8189
+ }, "E21", $scope0_id);
7840
8190
  _html(`<div${_attr_class(["_b2", {
7841
8191
  ["_b0"]: view === "nav",
7842
8192
  ["_b1"]: !input.active
@@ -7872,35 +8222,35 @@ var work_view_default = _template("D", (input) => {
7872
8222
  tab: curTab,
7873
8223
  tabChange: _resume(function(id) {
7874
8224
  tab = id;
7875
- }, "D22", $scope0_id),
8225
+ }, "E22", $scope0_id),
7876
8226
  view,
7877
8227
  viewChange: _resume((_new_view) => {
7878
8228
  view = _new_view;
7879
- }, "D23", $scope0_id),
8229
+ }, "E23", $scope0_id),
7880
8230
  allWorkspaces: input.allWorkspaces,
7881
8231
  allStatus: input.allStatus,
7882
8232
  agents: input.agents,
7883
8233
  onError: _resume(function(message) {
7884
8234
  error = message;
7885
- }, "D24", $scope0_id),
8235
+ }, "E24", $scope0_id),
7886
8236
  onSelectWorkspace: _resume(function(id) {
7887
8237
  exitCreate();
7888
8238
  input.onSelectWorkspace?.(id);
7889
- }, "D25", $scope0_id),
8239
+ }, "E25", $scope0_id),
7890
8240
  onNewSession: _resume(function(wsId, agent) {
7891
8241
  exitCreate();
7892
8242
  newSession(wsId, agent);
7893
- }, "D26", $scope0_id),
8243
+ }, "E26", $scope0_id),
7894
8244
  onCloseSession: _resume(function(id) {
7895
8245
  closeSession(id);
7896
- }, "D27", $scope0_id),
8246
+ }, "E27", $scope0_id),
7897
8247
  onRenameSession: _resume(function(s, title) {
7898
8248
  renameSession(s.id, title);
7899
- }, "D28", $scope0_id),
8249
+ }, "E28", $scope0_id),
7900
8250
  onReviewOpened: _resume(function(pr) {
7901
8251
  exitCreate();
7902
8252
  openDiff(pr);
7903
- }, "D29", $scope0_id)
8253
+ }, "E29", $scope0_id)
7904
8254
  });
7905
8255
  _html(`</div><div${_attr_class("_b4")}>`);
7906
8256
  _if(() => {
@@ -7909,8 +8259,8 @@ var work_view_default = _template("D", (input) => {
7909
8259
  toast_default({
7910
8260
  onDismiss: _resume(function() {
7911
8261
  error = null;
7912
- }, "D30", $scope8_id),
7913
- content: _content_resume("D48", () => {
8262
+ }, "E30", $scope8_id),
8263
+ content: _content_resume("E48", () => {
7914
8264
  _scope_reason();
7915
8265
  const $scope9_id = _scope_id();
7916
8266
  _html(`${_escape(error)}${_el_resume($scope9_id, "a")}`);
@@ -7939,23 +8289,23 @@ var work_view_default = _template("D", (input) => {
7939
8289
  scope: reviewScope,
7940
8290
  onScopeChange: _resume(function(s) {
7941
8291
  reviewScope = s === "committed" ? null : s;
7942
- }, "D1", $scope1_id),
8292
+ }, "E1", $scope1_id),
7943
8293
  onFileChange: _resume(function(f) {
7944
8294
  reviewFile = f;
7945
- }, "D2", $scope1_id),
8295
+ }, "E2", $scope1_id),
7946
8296
  findOpen: reviewFindOpen,
7947
8297
  findOpenChange: _resume((_new_reviewFindOpen) => {
7948
8298
  reviewFindOpen = _new_reviewFindOpen;
7949
- }, "D3", $scope1_id),
8299
+ }, "E3", $scope1_id),
7950
8300
  findTick: reviewFindTick,
7951
8301
  findFocusRef: reviewFindFocus,
7952
8302
  onSent: _resume(function(sessionId) {
7953
8303
  tab = sessionId;
7954
8304
  view = "term";
7955
- }, "D4", $scope1_id),
8305
+ }, "E4", $scope1_id),
7956
8306
  onExit: _resume(function() {
7957
8307
  view = "term";
7958
- }, "D5", $scope1_id)
8308
+ }, "E5", $scope1_id)
7959
8309
  });
7960
8310
  _html(`</div>${_el_resume($scope1_id, "a")}`);
7961
8311
  writeScope($scope1_id, {});
@@ -7972,13 +8322,13 @@ var work_view_default = _template("D", (input) => {
7972
8322
  workspace: ws,
7973
8323
  workspaceChange: _resume(function(next) {
7974
8324
  input.onWorkspaceChange?.(next);
7975
- }, "D31", $scope2_id),
8325
+ }, "E31", $scope2_id),
7976
8326
  onExit: _resume(function() {
7977
8327
  view = "term";
7978
- }, "D32", $scope2_id),
8328
+ }, "E32", $scope2_id),
7979
8329
  onDeleted: _resume(function() {
7980
8330
  input.onWorkspaceDeleted?.(ws.id);
7981
- }, "D33", $scope2_id)
8331
+ }, "E33", $scope2_id)
7982
8332
  });
7983
8333
  _html(`</div>${_el_resume($scope2_id, "a")}`);
7984
8334
  writeScope($scope2_id, { b: _serialize_if($scope0_reason, 4) && _existing_scope($childScope2) });
@@ -7992,10 +8342,11 @@ var work_view_default = _template("D", (input) => {
7992
8342
  _set_serialize_reason({
7993
8343
  0: _serialize_guard($scope0_reason, 1),
7994
8344
  1: $sg__input_workspace,
7995
- 2: _serialize_guard($scope0_reason, 9),
7996
- 3: $sg__input_workspace,
7997
- 4: $sg__input_agents,
7998
- 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)
7999
8350
  });
8000
8351
  const $childScope3 = _peek_scope_id();
8001
8352
  settings_page_default({
@@ -8004,21 +8355,21 @@ var work_view_default = _template("D", (input) => {
8004
8355
  instance: input.instance,
8005
8356
  instanceChange: _resume(function(i) {
8006
8357
  input.onInstanceChange?.(i);
8007
- }, "D34", $scope3_id),
8358
+ }, "E34", $scope3_id),
8008
8359
  backHref: `/w/${ws.id}`,
8009
8360
  onExit: _resume(function() {
8010
8361
  view = "term";
8011
- }, "D35", $scope3_id),
8362
+ }, "E35", $scope3_id),
8012
8363
  setup: input.setup,
8013
8364
  setupChange: _resume(function(s) {
8014
8365
  input.onSetupChange?.(s);
8015
- }, "D36", $scope3_id),
8366
+ }, "E36", $scope3_id),
8016
8367
  preferredChange: _resume(function(agent) {
8017
8368
  input.onPreferredChange?.(agent);
8018
- }, "D37", $scope3_id),
8369
+ }, "E37", $scope3_id),
8019
8370
  agentsChange: _resume(function(agents) {
8020
8371
  input.onAgentsChange?.(agents);
8021
- }, "D38", $scope3_id)
8372
+ }, "E38", $scope3_id)
8022
8373
  });
8023
8374
  _html(`</div>${_el_resume($scope3_id, "a")}`);
8024
8375
  writeScope($scope3_id, { b: _serialize_if($scope0_reason, 5) && _existing_scope($childScope3) });
@@ -8040,15 +8391,15 @@ var work_view_default = _template("D", (input) => {
8040
8391
  backHref: `/w/${ws.id}`,
8041
8392
  onExit: _resume(function() {
8042
8393
  exitCreate();
8043
- }, "D39", $scope4_id),
8394
+ }, "E39", $scope4_id),
8044
8395
  onCreate: _resume(function(ws) {
8045
8396
  input.onCreated?.(ws);
8046
- }, "D40", $scope4_id),
8397
+ }, "E40", $scope4_id),
8047
8398
  onRestore: _resume(function(next) {
8048
8399
  input.onWorkspaceChange?.(next);
8049
8400
  input.onSelectWorkspace?.(next.id);
8050
8401
  exitCreate();
8051
- }, "D41", $scope4_id)
8402
+ }, "E41", $scope4_id)
8052
8403
  });
8053
8404
  _html(`</div>${_el_resume($scope4_id, "a")}`);
8054
8405
  writeScope($scope4_id, { b: _existing_scope($childScope4) });
@@ -8090,26 +8441,26 @@ var work_view_default = _template("D", (input) => {
8090
8441
  onNewSession: _resume(function(agent) {
8091
8442
  view = "term";
8092
8443
  newSession(ws.id, agent);
8093
- }, "D42", $scope6_id),
8444
+ }, "E42", $scope6_id),
8094
8445
  onOpenTab: _resume(function(id) {
8095
8446
  tab = id;
8096
8447
  view = "term";
8097
- }, "D43", $scope6_id),
8448
+ }, "E43", $scope6_id),
8098
8449
  onCloseSession: _resume(function(id) {
8099
8450
  closeSession(id);
8100
- }, "D44", $scope6_id),
8451
+ }, "E44", $scope6_id),
8101
8452
  onRenameSession: _resume(function(id, title) {
8102
8453
  renameSession(id, title);
8103
- }, "D45", $scope6_id),
8454
+ }, "E45", $scope6_id),
8104
8455
  active: input.active && view === "term" && s.id === curTab,
8105
8456
  mode: view,
8106
8457
  onOpenNav: _resume(function() {
8107
8458
  toggleNav();
8108
- }, "D46", $scope6_id),
8459
+ }, "E46", $scope6_id),
8109
8460
  reviewFindOpen,
8110
8461
  onToggleReviewFind: _resume(function() {
8111
8462
  toggleReviewFind();
8112
- }, "D47", $scope6_id)
8463
+ }, "E47", $scope6_id)
8113
8464
  });
8114
8465
  _html(`</div>${_el_resume($scope6_id, "a")}`);
8115
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, {
@@ -8120,8 +8471,8 @@ var work_view_default = _template("D", (input) => {
8120
8471
  _if(() => {
8121
8472
  if (!shownSessions.length && view === "term") {
8122
8473
  const $scope7_id = _scope_id();
8123
- _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>`);
8124
- _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");
8125
8476
  _subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
8126
8477
  return 0;
8127
8478
  }
@@ -8130,21 +8481,21 @@ var work_view_default = _template("D", (input) => {
8130
8481
  return 0;
8131
8482
  } else {
8132
8483
  const $scope10_id = _scope_id();
8133
- _html(`<p${_attr_class("_bv")}>Loading sessions…</p>`);
8484
+ _html(`<p${_attr_class("_bE")}>Loading sessions…</p>`);
8134
8485
  writeScope($scope10_id, {});
8135
8486
  return 1;
8136
8487
  }
8137
8488
  }, $scope0_id, "j", 1, 1, 1, "</div>");
8138
8489
  _html(`</div></div>${_el_resume($scope0_id, "a")}`);
8139
- _script($scope0_id, "D50");
8140
- _script($scope0_id, "D51");
8141
- _script($scope0_id, "D52");
8142
- _script($scope0_id, "D53");
8143
- _script($scope0_id, "D54");
8144
- _script($scope0_id, "D55");
8145
- _script($scope0_id, "D56");
8146
- _script($scope0_id, "D57");
8147
- _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");
8148
8499
  writeScope($scope0_id, {
8149
8500
  n: input.initialView,
8150
8501
  s: input.allStatus,
@@ -8377,7 +8728,7 @@ var app_shell_default = _template("c", (input) => {
8377
8728
  if (!selectedId && showSetup) {
8378
8729
  const $scope4_id = _scope_id();
8379
8730
  _html(`<div${_attr_class("_h")}>`);
8380
- _set_serialize_reason(106);
8731
+ _set_serialize_reason(210);
8381
8732
  const $childScope = _peek_scope_id();
8382
8733
  settings_page_default({
8383
8734
  preferred: settings ? settings.preferredAgent : "shell",
@@ -8443,7 +8794,7 @@ var app_shell_default = _template("c", (input) => {
8443
8794
  if (ws) {
8444
8795
  const $scope2_id = _scope_id();
8445
8796
  _html(`<div${_attr_class("_g")}>`);
8446
- _set_serialize_reason(1);
8797
+ _set_serialize_reason(262142);
8447
8798
  const $childScope3 = _peek_scope_id();
8448
8799
  work_view_default({
8449
8800
  workspace: ws,
@@ -8675,7 +9026,7 @@ var app_page_default = _template("b", (input) => {
8675
9026
  });
8676
9027
  //#endregion
8677
9028
  //#region src/routes/_app/new/+page.marko
8678
- var _page_default$4 = _template("$", (input) => {
9029
+ var _page_default$4 = _template("ab", (input) => {
8679
9030
  _scope_reason();
8680
9031
  _scope_id();
8681
9032
  app_page_default({ initial: {
@@ -8717,7 +9068,7 @@ var GET$21 = Run.GET(async (_ctx, next) => {
8717
9068
  });
8718
9069
  //#endregion
8719
9070
  //#region src/routes/_app/settings/+page.marko
8720
- var _page_default$3 = _template("ab", (input) => {
9071
+ var _page_default$3 = _template("bb", (input) => {
8721
9072
  _scope_reason();
8722
9073
  _scope_id();
8723
9074
  app_page_default({ initial: {
@@ -8754,7 +9105,7 @@ function head3(context) {
8754
9105
  }
8755
9106
  //#endregion
8756
9107
  //#region src/routes/_app/w/$id/+page.marko
8757
- var _page_default$2 = _template("bb", (input) => {
9108
+ var _page_default$2 = _template("cb", (input) => {
8758
9109
  _scope_reason();
8759
9110
  _scope_id();
8760
9111
  app_page_default({ initial: {
@@ -8791,7 +9142,7 @@ function head4(context) {
8791
9142
  }
8792
9143
  //#endregion
8793
9144
  //#region src/routes/_app/w/$id/manage/+page.marko
8794
- var _page_default$1 = _template("cb", (input) => {
9145
+ var _page_default$1 = _template("db", (input) => {
8795
9146
  _scope_reason();
8796
9147
  _scope_id();
8797
9148
  app_page_default({ initial: {
@@ -8827,7 +9178,7 @@ function head5(context) {
8827
9178
  }
8828
9179
  //#endregion
8829
9180
  //#region src/routes/_app/w/$id/review/+page.marko
8830
- var _page_default = _template("db", (input) => {
9181
+ var _page_default = _template("eb", (input) => {
8831
9182
  _scope_reason();
8832
9183
  _scope_id();
8833
9184
  const q = $global().url.searchParams;
@@ -10113,6 +10464,7 @@ var Body = /* @__PURE__ */ object({
10113
10464
  "update",
10114
10465
  "remove",
10115
10466
  "auth",
10467
+ "auth-refresh",
10116
10468
  "logout"
10117
10469
  ]),
10118
10470
  version: /* @__PURE__ */ optional(/* @__PURE__ */ string())
@@ -10516,11 +10868,33 @@ function missingRemoteRef(err) {
10516
10868
  const msg = err && typeof err === "object" && "stderr" in err ? String(err.stderr) : String(err);
10517
10869
  return /couldn't find remote ref/.test(msg);
10518
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
+ }
10519
10892
  /** The ref the working tree is compared against by default, best first.
10520
10893
  * Workspace branch / detached / foreign → `origin/<base>`. Our `-topic`
10521
10894
  * lane → `origin/<ws-branch>` (only two levels; `<ws>-a-b` still parents
10522
10895
  * to the workspace branch). `foreign` is other workspaces' branches so a
10523
- * 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`. */
10524
10898
  async function resolveBase(dir, wsBranch, baseBranch, headBranch, foreign, baseRef) {
10525
10899
  const ours = ownsBranch(headBranch, wsBranch) && !foreign.some((x) => ownsBranch(headBranch, x));
10526
10900
  const candidates = [];
@@ -10544,10 +10918,20 @@ async function resolveBase(dir, wsBranch, baseBranch, headBranch, foreign, baseR
10544
10918
  label
10545
10919
  };
10546
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
+ }
10547
10931
  return {
10548
10932
  mergeBase: "HEAD",
10549
10933
  ref: "HEAD",
10550
- label: baseRef || baseBranch,
10934
+ label,
10551
10935
  missing: true
10552
10936
  };
10553
10937
  }
@@ -10673,30 +11057,47 @@ async function localDiff(dir, ws, repo, branch, localHead, baseRef, scope) {
10673
11057
  ...branch !== "HEAD" ? [branch] : [],
10674
11058
  ...baseRef ? [baseRef] : [repo.base_branch]
10675
11059
  ]);
10676
- const { mergeBase, ref, label, missing } = await resolveBase(dir, ws.branch, repo.base_branch, branch, otherWorkspaceBranches(ws.id), baseRef);
10677
- 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 = {
10678
11062
  id: repo.worktree,
10679
11063
  worktree: repo.worktree,
10680
11064
  full_name: repo.full_name,
10681
11065
  base: label,
10682
11066
  default_branch: repo.default_branch,
10683
- 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,
10684
11090
  head: localHead,
10685
11091
  baseSha: localHead,
10686
11092
  baseMissing: true,
10687
11093
  files: []
10688
11094
  };
10689
- const contained = !missing && await treeContainedIn(dir, ref, "HEAD");
11095
+ const contained = !missing && !emptyRemote && await treeContainedIn(dir, ref, "HEAD");
10690
11096
  const against = contained ? "HEAD" : mergeBase;
10691
- 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);
10692
11098
  const files = await collectFiles(dir, against, "HEAD", scope);
10693
11099
  return {
10694
- id: repo.worktree,
10695
- worktree: repo.worktree,
10696
- full_name: repo.full_name,
10697
- base: label,
10698
- default_branch: repo.default_branch,
10699
- branch,
11100
+ ...base,
10700
11101
  head: localHead,
10701
11102
  baseSha,
10702
11103
  ...missing && { baseMissing: true },
@@ -16073,4 +16474,4 @@ server.listen(port, () => {
16073
16474
  //#endregion
16074
16475
  export {};
16075
16476
 
16076
- ;var __MARKO_MANIFEST__={"ZLT8joi":{"block":[2,"stylesheet#/assets/app-page-DJ2ivnX8.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DJ2ivnX8.css\"",">"],"defer":[2,"/assets/new-CBB1WWUj.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-CBB1WWUj.js\"","></script>",2,"modulepreload#/assets/_DLnZn5vf.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DLnZn5vf.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/app-page-DJ2ivnX8.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DJ2ivnX8.css\"",">"],"defer":[2,"/assets/settings-CBB1WWUj.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-CBB1WWUj.js\"","></script>",2,"modulepreload#/assets/_DLnZn5vf.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DLnZn5vf.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/app-page-DJ2ivnX8.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DJ2ivnX8.css\"",">"],"defer":[2,"/assets/w-CBB1WWUj.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-CBB1WWUj.js\"","></script>",2,"modulepreload#/assets/_DLnZn5vf.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DLnZn5vf.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/app-page-DJ2ivnX8.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DJ2ivnX8.css\"",">"],"defer":[2,"/assets/w._-CBB1WWUj.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-CBB1WWUj.js\"","></script>",2,"modulepreload#/assets/_DLnZn5vf.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DLnZn5vf.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/app-page-DJ2ivnX8.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DJ2ivnX8.css\"",">"],"defer":[2,"/assets/w._-DYgthMaF.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-DYgthMaF.js\"","></script>",2,"modulepreload#/assets/_DLnZn5vf.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DLnZn5vf.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\"",">"]}};