@dylanpiercey/work 0.0.105 → 0.0.107

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 (244) hide show
  1. package/dist/{_BuETZvgo.js → _CnOgSoC0.js} +73 -91
  2. package/dist/{_Bn7Vo42N.js → _l7X4G2ig.js} +21 -3
  3. package/dist/index.mjs +491 -439
  4. package/dist/public/assets/{_B3xBMyxG.js → _0rO6P6TP.js} +1 -1
  5. package/dist/public/assets/_0rO6P6TP.js.br +0 -0
  6. package/dist/public/assets/{_be1vkmnl.js → _5g4D95_1.js} +1 -1
  7. package/dist/public/assets/_5g4D95_1.js.br +0 -0
  8. package/dist/public/assets/{_m9e7-RL0.js → _B0Dkg7ZQ.js} +1 -1
  9. package/dist/public/assets/_B0Dkg7ZQ.js.br +0 -0
  10. package/dist/public/assets/{_aey-kaDM.js → _B0NOYINr.js} +1 -1
  11. package/dist/public/assets/_B0NOYINr.js.br +3 -0
  12. package/dist/public/assets/{_Om-eeglP.js → _B5ftCdb7.js} +1 -1
  13. package/dist/public/assets/_B5ftCdb7.js.br +0 -0
  14. package/dist/public/assets/{_TDnxhggP.js → _B6LXhcRm.js} +1 -1
  15. package/dist/public/assets/_B6LXhcRm.js.br +0 -0
  16. package/dist/public/assets/{_Cb2YgPjW.js → _B7uNGxEP.js} +1 -1
  17. package/dist/public/assets/_B7uNGxEP.js.br +8 -0
  18. package/dist/public/assets/{_6YPfPDI62.js → _B8RoNlNc2.js} +1 -1
  19. package/dist/public/assets/_B8RoNlNc2.js.br +0 -0
  20. package/dist/public/assets/{_CIBrDTSe.js → _B8vP0Z8T.js} +1 -1
  21. package/dist/public/assets/_B8vP0Z8T.js.br +0 -0
  22. package/dist/public/assets/{_Ci0yrL1O2.js → _BDCf2Wo62.js} +1 -1
  23. package/dist/public/assets/_BDCf2Wo62.js.br +0 -0
  24. package/dist/public/assets/{_C5TU8ZAS.js → _BEs8vK7W.js} +1 -1
  25. package/dist/public/assets/_BEs8vK7W.js.br +0 -0
  26. package/dist/public/assets/{_fVNzbcGw2.js → _BF0KHsSl2.js} +1 -1
  27. package/dist/public/assets/_BF0KHsSl2.js.br +0 -0
  28. package/dist/public/assets/{_B0ecEmZT.js → _BIsxNVwM.js} +1 -1
  29. package/dist/public/assets/_BIsxNVwM.js.br +0 -0
  30. package/dist/public/assets/{_BCi02Szc.js → _BQgeJmc0.js} +1 -1
  31. package/dist/public/assets/_BQgeJmc0.js.br +0 -0
  32. package/dist/public/assets/{_C3nSfG5r.js → _BRsTg2lb.js} +1 -1
  33. package/dist/public/assets/_BRsTg2lb.js.br +0 -0
  34. package/dist/public/assets/{_EmeaqKAA.js → _BVYtUhDt.js} +1 -1
  35. package/dist/public/assets/_BVYtUhDt.js.br +0 -0
  36. package/dist/public/assets/{_CFMVxyXy.js → _BWMDedgS.js} +1 -1
  37. package/dist/public/assets/_BWMDedgS.js.br +0 -0
  38. package/dist/public/assets/{_CjDax-uG.js → _BX_YmVED.js} +1 -1
  39. package/dist/public/assets/_BX_YmVED.js.br +0 -0
  40. package/dist/public/assets/{_jw6J8BNS2.js → _BcHeNsT02.js} +1 -1
  41. package/dist/public/assets/_BcHeNsT02.js.br +0 -0
  42. package/dist/public/assets/{_DEJFvYJ62.js → _Bft63M8y2.js} +1 -1
  43. package/dist/public/assets/_Bft63M8y2.js.br +0 -0
  44. package/dist/public/assets/{_BjXvUzVX.js → _Bln_SavQ.js} +1 -1
  45. package/dist/public/assets/_Bln_SavQ.js.br +0 -0
  46. package/dist/public/assets/{_DmmsdEZ5.js → _Bm84P30z.js} +1 -1
  47. package/dist/public/assets/_Bm84P30z.js.br +0 -0
  48. package/dist/public/assets/{_DbacTS0F.js → _BoyvSM0r.js} +1 -1
  49. package/dist/public/assets/_BoyvSM0r.js.br +0 -0
  50. package/dist/public/assets/{_DJizIs0X.js → _BpigGSKG.js} +1 -1
  51. package/dist/public/assets/_BpigGSKG.js.br +0 -0
  52. package/dist/public/assets/{_BwUwI70z2.js → _BqCHwj4j2.js} +1 -1
  53. package/dist/public/assets/{_LqCR3QeF.js → _BvrICDAH.js} +1 -1
  54. package/dist/public/assets/_BvrICDAH.js.br +0 -0
  55. package/dist/public/assets/{_CQnu0mBt.js → _BwzirC4y.js} +1 -1
  56. package/dist/public/assets/_BwzirC4y.js.br +0 -0
  57. package/dist/public/assets/{_BFxqTICp2.js → _C0zMWaUs2.js} +1 -1
  58. package/dist/public/assets/_C0zMWaUs2.js.br +0 -0
  59. package/dist/public/assets/{_fgBwCMOP2.js → _C7rkj5zB2.js} +1 -1
  60. package/dist/public/assets/_C7rkj5zB2.js.br +0 -0
  61. package/dist/public/assets/{_DQFsV6Gg2.js → _CGPXzGv32.js} +1 -1
  62. package/dist/public/assets/_CGPXzGv32.js.br +0 -0
  63. package/dist/public/assets/{_BU4ISbxW.js → _CIxhLVuf.js} +1 -1
  64. package/dist/public/assets/_CIxhLVuf.js.br +0 -0
  65. package/dist/public/assets/{_RlqlMErp.js → _CJPlfpq5.js} +1 -1
  66. package/dist/public/assets/_CJPlfpq5.js.br +0 -0
  67. package/dist/public/assets/{_Bvx3AHBt2.js → _CKALSAjw2.js} +1 -1
  68. package/dist/public/assets/_CKALSAjw2.js.br +0 -0
  69. package/dist/public/assets/{_CHHgiJEf2.js → _CKRa4_Xj2.js} +1 -1
  70. package/dist/public/assets/{_D9X7jhy-2.js → _CMQ31fBp2.js} +1 -1
  71. package/dist/public/assets/_CMQ31fBp2.js.br +0 -0
  72. package/dist/public/assets/{_DViTUS4x2.js → _CO26sqYi2.js} +1 -1
  73. package/dist/public/assets/_CO26sqYi2.js.br +0 -0
  74. package/dist/public/assets/{_D-HDmpgw.js → _CRqhBwXk.js} +1 -1
  75. package/dist/public/assets/_CRqhBwXk.js.br +0 -0
  76. package/dist/public/assets/{_BcVRcB9j.js → _CSNvoh2o.js} +1 -1
  77. package/dist/public/assets/_CSNvoh2o.js.br +0 -0
  78. package/dist/public/assets/{_DoTFmtt7.js → _CSz72k9B.js} +1 -1
  79. package/dist/public/assets/_CSz72k9B.js.br +0 -0
  80. package/dist/public/assets/{_BlKbB1WQ.js → _CVsz55gy.js} +1 -1
  81. package/dist/public/assets/_CVsz55gy.js.br +0 -0
  82. package/dist/public/assets/{_CZDjAlvx.js → _C_ftH2vB.js} +1 -1
  83. package/dist/public/assets/_C_ftH2vB.js.br +0 -0
  84. package/dist/public/assets/{_CiZP5SWa.js → _CfjKqVdQ.js} +1 -1
  85. package/dist/public/assets/_CfjKqVdQ.js.br +0 -0
  86. package/dist/public/assets/{_DLnK9h4u2.js → _ChXRkH4T2.js} +1 -1
  87. package/dist/public/assets/_ChXRkH4T2.js.br +0 -0
  88. package/dist/public/assets/{_CdUu-2fh2.js → _ClZTX_pU2.js} +1 -1
  89. package/dist/public/assets/_ClZTX_pU2.js.br +0 -0
  90. package/dist/public/assets/{_CutPxIXt2.js → _Clslf-eq2.js} +1 -1
  91. package/dist/public/assets/_Clslf-eq2.js.br +0 -0
  92. package/dist/public/assets/{_BW55cmST.js → _Csa_vKlI.js} +1 -1
  93. package/dist/public/assets/_Csa_vKlI.js.br +0 -0
  94. package/dist/public/assets/{_Cp1qgW4u.js → _CyuaTGVy.js} +1 -1
  95. package/dist/public/assets/_CyuaTGVy.js.br +0 -0
  96. package/dist/public/assets/{_CePmodgU.js → _CzVVrbgT.js} +1 -1
  97. package/dist/public/assets/{_ehLhw-eU.js → _D-JoND9E.js} +6 -6
  98. package/dist/public/assets/_D-JoND9E.js.br +0 -0
  99. package/dist/public/assets/{_DEQ3hL-_.js → _D7s5hIII.js} +1 -1
  100. package/dist/public/assets/_D7s5hIII.js.br +0 -0
  101. package/dist/public/assets/{_BrD6BZxi.js → _DF2WxgmL.js} +1 -1
  102. package/dist/public/assets/_DF2WxgmL.js.br +0 -0
  103. package/dist/public/assets/{_BYppen6z2.js → _DF6pUbkG2.js} +1 -1
  104. package/dist/public/assets/_DF6pUbkG2.js.br +0 -0
  105. package/dist/public/assets/{_CjATfBBm.js → _DF8NCuaM.js} +1 -1
  106. package/dist/public/assets/_DF8NCuaM.js.br +0 -0
  107. package/dist/public/assets/{_eAWjxuKH2.js → _DNiiz65R2.js} +1 -1
  108. package/dist/public/assets/_DNiiz65R2.js.br +0 -0
  109. package/dist/public/assets/{_CkmLV3hJ2.js → _DNl8Gyc52.js} +1 -1
  110. package/dist/public/assets/_DNl8Gyc52.js.br +0 -0
  111. package/dist/public/assets/{_BEO3l5rw.js → _DUZHLnR2.js} +1 -1
  112. package/dist/public/assets/_DUZHLnR2.js.br +0 -0
  113. package/dist/public/assets/{_D6algS7t.js → _DWM3faGg.js} +1 -1
  114. package/dist/public/assets/_DWM3faGg.js.br +0 -0
  115. package/dist/public/assets/{_R4Xh_jnK2.js → _DdSFMPCI2.js} +1 -1
  116. package/dist/public/assets/_DdSFMPCI2.js.br +0 -0
  117. package/dist/public/assets/{_BLqga2mU.js → _DjUU9hJU.js} +1 -1
  118. package/dist/public/assets/_DjUU9hJU.js.br +0 -0
  119. package/dist/public/assets/{_CrQlVTSw2.js → _DkGPKQRN2.js} +1 -1
  120. package/dist/public/assets/_DkGPKQRN2.js.br +0 -0
  121. package/dist/public/assets/{_C5fA1o7F2.js → _Du9lQw1k2.js} +1 -1
  122. package/dist/public/assets/_Du9lQw1k2.js.br +0 -0
  123. package/dist/public/assets/{_CaTrqYX-.js → _MyuAmMNV.js} +1 -1
  124. package/dist/public/assets/_MyuAmMNV.js.br +0 -0
  125. package/dist/public/assets/{_BrLsGhQp.js → _NKV7dW-P.js} +1 -1
  126. package/dist/public/assets/_NKV7dW-P.js.br +0 -0
  127. package/dist/public/assets/{_BqvL8Q_F.js → _SLCShLmn.js} +21 -21
  128. package/dist/public/assets/_SLCShLmn.js.br +0 -0
  129. package/dist/public/assets/{_CpV6WCxZ2.js → _SRkzSl4t2.js} +1 -1
  130. package/dist/public/assets/_SRkzSl4t2.js.br +0 -0
  131. package/dist/public/assets/{_Clhb3_UQ.js → _SdUhoIiq.js} +1 -1
  132. package/dist/public/assets/_SdUhoIiq.js.br +0 -0
  133. package/dist/public/assets/{_Dlf2ZDxM.js → _TwTe_HJA.js} +1 -1
  134. package/dist/public/assets/_TwTe_HJA.js.br +0 -0
  135. package/dist/public/assets/{_CVaCgXiI.js → _fjObnvv3.js} +1 -1
  136. package/dist/public/assets/_fjObnvv3.js.br +0 -0
  137. package/dist/public/assets/{_CLSdxGxS.js → _hlukLVx_.js} +1 -1
  138. package/dist/public/assets/_hlukLVx_.js.br +0 -0
  139. package/dist/public/assets/{_rt1FuEUK.js → _hxnShDkd.js} +1 -1
  140. package/dist/public/assets/_hxnShDkd.js.br +0 -0
  141. package/dist/public/assets/{_DKGKy8Ue.js → _jXEAHizC.js} +1 -1
  142. package/dist/public/assets/_jXEAHizC.js.br +0 -0
  143. package/dist/public/assets/{_DoCKCU_e2.js → _kaGT3pkC2.js} +1 -1
  144. package/dist/public/assets/_kaGT3pkC2.js.br +0 -0
  145. package/dist/public/assets/{_Dd6AxdTB.js → _knyXa4w7.js} +1 -1
  146. package/dist/public/assets/_knyXa4w7.js.br +0 -0
  147. package/dist/public/assets/{_SkLm7UXs.js → _qQKdtgp2.js} +1 -1
  148. package/dist/public/assets/_qQKdtgp2.js.br +0 -0
  149. package/dist/public/assets/{_DUAWKDne.js → _y24ul_MP.js} +1 -1
  150. package/dist/public/assets/_y24ul_MP.js.br +0 -0
  151. package/dist/public/assets/{_DUHq5d-O.js → _zms7eG9j.js} +1 -1
  152. package/dist/public/assets/_zms7eG9j.js.br +0 -0
  153. package/dist/public/assets/app-page-KY8tW9DO.css +1 -0
  154. package/dist/public/assets/app-page-KY8tW9DO.css.br +0 -0
  155. package/dist/public/assets/diff-view-U1s7mXp0.css +1 -0
  156. package/dist/public/assets/diff-view-U1s7mXp0.css.br +0 -0
  157. package/dist/public/assets/new-DTmmniHd.js +1 -0
  158. package/dist/public/assets/settings-DTmmniHd.js +1 -0
  159. package/dist/public/assets/w-DTmmniHd.js +1 -0
  160. package/dist/public/assets/w._-CJ_Gh3uK.js +1 -0
  161. package/dist/public/assets/w._-DTmmniHd.js +1 -0
  162. package/package.json +1 -1
  163. package/dist/public/assets/_6YPfPDI62.js.br +0 -0
  164. package/dist/public/assets/_B0ecEmZT.js.br +0 -0
  165. package/dist/public/assets/_B3xBMyxG.js.br +0 -0
  166. package/dist/public/assets/_BCi02Szc.js.br +0 -0
  167. package/dist/public/assets/_BEO3l5rw.js.br +0 -0
  168. package/dist/public/assets/_BFxqTICp2.js.br +0 -0
  169. package/dist/public/assets/_BLqga2mU.js.br +0 -0
  170. package/dist/public/assets/_BU4ISbxW.js.br +0 -0
  171. package/dist/public/assets/_BW55cmST.js.br +0 -0
  172. package/dist/public/assets/_BYppen6z2.js.br +0 -0
  173. package/dist/public/assets/_BcVRcB9j.js.br +0 -0
  174. package/dist/public/assets/_BjXvUzVX.js.br +0 -0
  175. package/dist/public/assets/_BlKbB1WQ.js.br +0 -0
  176. package/dist/public/assets/_BqvL8Q_F.js.br +0 -0
  177. package/dist/public/assets/_BrD6BZxi.js.br +0 -0
  178. package/dist/public/assets/_BrLsGhQp.js.br +0 -0
  179. package/dist/public/assets/_Bvx3AHBt2.js.br +0 -0
  180. package/dist/public/assets/_C3nSfG5r.js.br +0 -0
  181. package/dist/public/assets/_C5TU8ZAS.js.br +0 -0
  182. package/dist/public/assets/_C5fA1o7F2.js.br +0 -0
  183. package/dist/public/assets/_CFMVxyXy.js.br +0 -0
  184. package/dist/public/assets/_CIBrDTSe.js.br +0 -0
  185. package/dist/public/assets/_CLSdxGxS.js.br +0 -0
  186. package/dist/public/assets/_CQnu0mBt.js.br +0 -0
  187. package/dist/public/assets/_CVaCgXiI.js.br +0 -0
  188. package/dist/public/assets/_CZDjAlvx.js.br +0 -0
  189. package/dist/public/assets/_CaTrqYX-.js.br +0 -0
  190. package/dist/public/assets/_Cb2YgPjW.js.br +0 -4
  191. package/dist/public/assets/_CdUu-2fh2.js.br +0 -0
  192. package/dist/public/assets/_Ci0yrL1O2.js.br +0 -0
  193. package/dist/public/assets/_CiZP5SWa.js.br +0 -0
  194. package/dist/public/assets/_CjATfBBm.js.br +0 -0
  195. package/dist/public/assets/_CjDax-uG.js.br +0 -0
  196. package/dist/public/assets/_CkmLV3hJ2.js.br +0 -0
  197. package/dist/public/assets/_Clhb3_UQ.js.br +0 -0
  198. package/dist/public/assets/_Cp1qgW4u.js.br +0 -0
  199. package/dist/public/assets/_CpV6WCxZ2.js.br +0 -0
  200. package/dist/public/assets/_CrQlVTSw2.js.br +0 -0
  201. package/dist/public/assets/_CutPxIXt2.js.br +0 -0
  202. package/dist/public/assets/_D-HDmpgw.js.br +0 -0
  203. package/dist/public/assets/_D6algS7t.js.br +0 -0
  204. package/dist/public/assets/_D9X7jhy-2.js.br +0 -0
  205. package/dist/public/assets/_DEJFvYJ62.js.br +0 -0
  206. package/dist/public/assets/_DEQ3hL-_.js.br +0 -0
  207. package/dist/public/assets/_DJizIs0X.js.br +0 -0
  208. package/dist/public/assets/_DKGKy8Ue.js.br +0 -0
  209. package/dist/public/assets/_DLnK9h4u2.js.br +0 -0
  210. package/dist/public/assets/_DQFsV6Gg2.js.br +0 -0
  211. package/dist/public/assets/_DUAWKDne.js.br +0 -0
  212. package/dist/public/assets/_DUHq5d-O.js.br +0 -0
  213. package/dist/public/assets/_DViTUS4x2.js.br +0 -0
  214. package/dist/public/assets/_DbacTS0F.js.br +0 -0
  215. package/dist/public/assets/_Dd6AxdTB.js.br +0 -0
  216. package/dist/public/assets/_Dlf2ZDxM.js.br +0 -0
  217. package/dist/public/assets/_DmmsdEZ5.js.br +0 -0
  218. package/dist/public/assets/_DoCKCU_e2.js.br +0 -0
  219. package/dist/public/assets/_DoTFmtt7.js.br +0 -0
  220. package/dist/public/assets/_EmeaqKAA.js.br +0 -0
  221. package/dist/public/assets/_LqCR3QeF.js.br +0 -0
  222. package/dist/public/assets/_Om-eeglP.js.br +0 -0
  223. package/dist/public/assets/_R4Xh_jnK2.js.br +0 -0
  224. package/dist/public/assets/_RlqlMErp.js.br +0 -0
  225. package/dist/public/assets/_SkLm7UXs.js.br +0 -0
  226. package/dist/public/assets/_TDnxhggP.js.br +0 -0
  227. package/dist/public/assets/_aey-kaDM.js.br +0 -0
  228. package/dist/public/assets/_be1vkmnl.js.br +0 -0
  229. package/dist/public/assets/_eAWjxuKH2.js.br +0 -0
  230. package/dist/public/assets/_ehLhw-eU.js.br +0 -0
  231. package/dist/public/assets/_fVNzbcGw2.js.br +0 -0
  232. package/dist/public/assets/_fgBwCMOP2.js.br +0 -0
  233. package/dist/public/assets/_jw6J8BNS2.js.br +0 -0
  234. package/dist/public/assets/_m9e7-RL0.js.br +0 -0
  235. package/dist/public/assets/_rt1FuEUK.js.br +0 -0
  236. package/dist/public/assets/app-page-C2vRDhnS.css +0 -1
  237. package/dist/public/assets/app-page-C2vRDhnS.css.br +0 -0
  238. package/dist/public/assets/diff-view-CYgMfo6C.css +0 -1
  239. package/dist/public/assets/diff-view-CYgMfo6C.css.br +0 -0
  240. package/dist/public/assets/new-CwkHt2eP.js +0 -1
  241. package/dist/public/assets/settings-CwkHt2eP.js +0 -1
  242. package/dist/public/assets/w-CwkHt2eP.js +0 -1
  243. package/dist/public/assets/w._-BxPjPqAS.js +0 -1
  244. package/dist/public/assets/w._-CwkHt2eP.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 "./_BYk3MBDh.js";
3
- import { $ as _await, A as repoLabel, At as _try, B as phase, C as sideNavOpen, Ct as _serialize_guard, D as icon_xmark_default, Dt as _template, E as toast_default, Et as _subscribe, H as $global, I as iconBtnRow, J as _attr_or, K as _attr_input_value, L as iconBtnXs, M as setPrimaryHost, Mt as attrTag, N as btnLg, Nt as withPageAssets, O as icon_base_default, Ot as _to_text, P as btnSm, Pt as writeScope, Q as _attrs_partial, R as inputLg, S as setWorkspaceTab, St as _sep, T as workspaceTab, Tt as _set_serialize_reason, U as _attr, V as tone, W as _attr_class, X as _attr_style, Y as _attr_select_value, Z as _attrs, _t as _resume_branch, at as _el_resume, bt as _scope_with_id, c as icon_arrow_up_default, ct as _flush_head, d as iconBtn$2, dt as _hoist_read_error, et as _content, f as row, ft as _html, gt as _resume, ht as _peek_scope_id, i as icon_sidebar_default, it as _el_read_error, j as repoWebUrl$1, jt as _var, k as parseRepoUrl, kt as _trailers, l as icon_back_default, lt as _for_of, mt as _if, n as findIconBtn, nt as _dynamic_tag, o as rankRepos, ot as _escape, p as sectionCount$1, pt as _id, q as _attr_option_value, r as findInput, s as icon_search_default, st as _existing_scope, t as icon_arrow_down_default, tt as _content_resume, u as icon_refresh_default, ut as _hoist, v as ignoredSsoOrgs, vt as _scope_id, w as theme, wt as _serialize_if, x as setTheme, xt as _script, yt as _scope_reason, z as metaTrunc } from "./_Bn7Vo42N.js";
3
+ import { $ as _attrs_partial, A as repoLabel, At as _trailers, B as phase, C as sideNavOpen, Ct as _sep, D as icon_xmark_default, Dt as _subscribe, E as toast_default, Et as _set_serialize_reason, Ft as writeScope, G as _attr_class, H as urlFor, I as iconBtnRow, J as _attr_option_value, L as iconBtnXs, M as setPrimaryHost, Mt as _var, N as btnLg, Nt as attrTag, O as icon_base_default, Ot as _template, P as btnSm, Pt as withPageAssets, Q as _attrs, R as inputLg, S as setWorkspaceTab, St as _script, T as workspaceTab, Tt as _serialize_if, U as $global, V as tone, W as _attr, X as _attr_select_value, Y as _attr_or, Z as _attr_style, _t as _resume, at as _el_read_error, bt as _scope_reason, c as icon_arrow_up_default, ct as _existing_scope, d as iconBtn$2, dt as _hoist, et as _await, f as row, ft as _hoist_read_error, gt as _peek_scope_id, ht as _if, i as icon_sidebar_default, j as repoWebUrl$1, jt as _try, k as parseRepoUrl, kt as _to_text, l as icon_back_default, lt as _flush_head, mt as _id, n as findIconBtn, nt as _content_resume, o as rankRepos, ot as _el_resume, p as sectionCount$1, pt as _html, q as _attr_input_value, r as findInput, rt as _dynamic_tag, s as icon_search_default, st as _escape, t as icon_arrow_down_default, tt as _content, u as icon_refresh_default, ut as _for_of, v as ignoredSsoOrgs, vt as _resume_branch, w as theme, wt as _serialize_guard, x as setTheme, xt as _scope_with_id, yt as _scope_id, z as metaTrunc } from "./_l7X4G2ig.js";
4
4
  import fs from "node:fs";
5
5
  import { createServer } from "node:http";
6
6
  import path from "node:path";
@@ -3548,10 +3548,6 @@ var _layout_default = _template("a", (input) => {
3548
3548
  _trailers("</body></html>");
3549
3549
  _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {});
3550
3550
  }, 1);
3551
- var bus = new EventTarget();
3552
- function requestDiff(workspaceId, pr) {
3553
- bus.dispatchEvent(new Event("intent"));
3554
- }
3555
3551
  //#endregion
3556
3552
  //#region src/client/coalesce.ts
3557
3553
  /** Wrap an async task so event bursts collapse: never more than one run in
@@ -3704,26 +3700,26 @@ function applyInstance(inst) {
3704
3700
  }
3705
3701
  //#endregion
3706
3702
  //#region src/tags/settings-page.css.ts
3707
- var content$2 = "_b2 _bD _bE";
3708
- var agentGrid = "_b6 _bo";
3709
- var toolGrid = "_cf _bo";
3703
+ var content$2 = "_ca _bM _bN";
3704
+ var agentGrid = "_ce _bx";
3705
+ var toolGrid = "_co _bx";
3710
3706
  //#endregion
3711
3707
  //#region src/tags/page-head.marko
3712
3708
  var page_head_default = _template("r", (input) => {
3713
3709
  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);
3714
3710
  const $scope0_id = _scope_id();
3715
- _html(`<header${_attr_class("_bF")}>`);
3711
+ _html(`<header${_attr_class("_bO")}>`);
3716
3712
  _if(() => {
3717
3713
  if (input.backHref) {
3718
3714
  const $scope1_id = _scope_id();
3719
- _html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_cT"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
3715
+ _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")}>`);
3720
3716
  icon_back_default({ size: 16 });
3721
3717
  _html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
3722
3718
  _serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
3723
3719
  return 0;
3724
3720
  } else if (input.onBack) {
3725
3721
  const $scope2_id = _scope_id();
3726
- _html(`<button${_attr_class([iconBtnRow, "_cT"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
3722
+ _html(`<button${_attr_class([iconBtnRow, "_cR"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
3727
3723
  icon_back_default({ size: 16 });
3728
3724
  _html(`</button>${_el_resume($scope2_id, "a")}`);
3729
3725
  _script($scope2_id, "r0");
@@ -3731,11 +3727,11 @@ var page_head_default = _template("r", (input) => {
3731
3727
  return 1;
3732
3728
  }
3733
3729
  }, $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);
3734
- _html(`<div${_attr_class("_bH")}><h1${_attr("id", input.titleId)}${_attr_class("_bG")}>${_escape(input.title)}${_el_resume($scope0_id, "e", _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
3730
+ _html(`<div${_attr_class("_bQ")}><h1${_attr("id", input.titleId)}${_attr_class("_bP")}>${_escape(input.title)}${_el_resume($scope0_id, "e", _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
3735
3731
  _if(() => {
3736
3732
  if (input.meta) {
3737
3733
  const $scope3_id = _scope_id();
3738
- _html(`<p${_attr_class("_bI")}>`);
3734
+ _html(`<p${_attr_class("_bR")}>`);
3739
3735
  _dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
3740
3736
  _html("</p>");
3741
3737
  $si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
@@ -3746,7 +3742,7 @@ var page_head_default = _template("r", (input) => {
3746
3742
  _if(() => {
3747
3743
  if (input.actions) {
3748
3744
  const $scope4_id = _scope_id();
3749
- _html(`<div${_attr_class("_bJ")}>`);
3745
+ _html(`<div${_attr_class("_bS")}>`);
3750
3746
  _dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
3751
3747
  _html("</div>");
3752
3748
  $si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
@@ -3814,7 +3810,7 @@ var icon_agent_default = _template("G", (input) => {
3814
3810
  n: $badge__closures
3815
3811
  });
3816
3812
  });
3817
- var usageNote = "_dt _S";
3813
+ var usageNote = "_df _S";
3818
3814
  //#endregion
3819
3815
  //#region src/tags/icons/icon-warning.marko
3820
3816
  var icon_warning_default = _template("kb", (input) => {
@@ -3855,11 +3851,11 @@ var usage_meters_default = _template("D", (input) => {
3855
3851
  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);
3856
3852
  const $scope0_id = _scope_id();
3857
3853
  const agent = input.agent;
3858
- _html(`<div${_attr_class(["_dn", { ["_do"]: input.hideName }])}><div${_attr_class("_dp")}>`);
3854
+ _html(`<div${_attr_class(["_c_", { ["_da"]: input.hideName }])}><div${_attr_class("_db")}>`);
3859
3855
  _if(() => {
3860
3856
  if (!input.hideName) {
3861
3857
  const $scope1_id = _scope_id();
3862
- _html(`<strong${_attr_class("_dI")}>${_escape(agent.agent)}${_el_resume($scope1_id, "b", $sg__input_agent)}</strong>`);
3858
+ _html(`<strong${_attr_class("_du")}>${_escape(agent.agent)}${_el_resume($scope1_id, "b", $sg__input_agent)}</strong>`);
3863
3859
  $si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
3864
3860
  return 0;
3865
3861
  }
@@ -3867,7 +3863,7 @@ var usage_meters_default = _template("D", (input) => {
3867
3863
  _if(() => {
3868
3864
  if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
3869
3865
  const $scope2_id = _scope_id();
3870
- _html(`<span${_attr_class("_dq")}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope2_id, "b", $sg__input_agent)}</span>`);
3866
+ _html(`<span${_attr_class("_dc")}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope2_id, "b", $sg__input_agent)}</span>`);
3871
3867
  $si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
3872
3868
  return 0;
3873
3869
  }
@@ -3875,21 +3871,21 @@ var usage_meters_default = _template("D", (input) => {
3875
3871
  _if(() => {
3876
3872
  if (agent.stale_seconds != null) {
3877
3873
  const $scope3_id = _scope_id();
3878
- _html(`<span${_attr_class("_dr")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
3874
+ _html(`<span${_attr_class("_dd")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
3879
3875
  icon_warning_default({ size: 12 });
3880
3876
  _html(` ${_sep($sg__input_agent)}${_escape(duration(agent.stale_seconds * 1e3))}${_el_resume($scope3_id, "c", $sg__input_agent)} old</span>${_el_resume($scope3_id, "a", $sg__input_agent)}`);
3881
3877
  $si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
3882
3878
  return 0;
3883
3879
  }
3884
3880
  }, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
3885
- _html(`</div><div${_attr_class(["_ds", { ["_dJ"]: agent.stale_seconds != null }])}>`);
3881
+ _html(`</div><div${_attr_class(["_de", { ["_dv"]: agent.stale_seconds != null }])}>`);
3886
3882
  _for_of(agent.windows || [], (win) => {
3887
3883
  const $scope4_id = _scope_id();
3888
3884
  const pct = pctText$1(win.used_percent);
3889
3885
  const label = resetLabel(win.resets_at, agent.stale_seconds != null);
3890
- const fillClass = win.used_percent >= 90 ? "_dB" : win.used_percent >= 70 ? "_dA" : win.used_percent >= 40 ? "_dz" : "_dy";
3891
- const pctClass = win.used_percent >= 90 ? "_dG" : win.used_percent >= 70 ? "_dF" : win.used_percent >= 40 ? "_dE" : "_dD";
3892
- _html(`<div${_attr_class("_du")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_dv")}>${_escape(win.window)}${_el_resume($scope4_id, "c", $sg__input_agent)}</span><span${_attr_class("_dw")}><span${_attr_class(["_dx", 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(["_dC", pctClass])}>${_escape(pct)}${_el_resume($scope4_id, "g", $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_dH")}>`);
3886
+ const fillClass = win.used_percent >= 90 ? "_dn" : win.used_percent >= 70 ? "_dm" : win.used_percent >= 40 ? "_dl" : "_dk";
3887
+ const pctClass = win.used_percent >= 90 ? "_ds" : win.used_percent >= 70 ? "_dr" : win.used_percent >= 40 ? "_dq" : "_dp";
3888
+ _html(`<div${_attr_class("_dg")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_dh")}>${_escape(win.window)}${_el_resume($scope4_id, "c", $sg__input_agent)}</span><span${_attr_class("_di")}><span${_attr_class(["_dj", 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(["_do", pctClass])}>${_escape(pct)}${_el_resume($scope4_id, "g", $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_dt")}>`);
3893
3889
  _if(() => {
3894
3890
  if (label) {
3895
3891
  const $scope6_id = _scope_id();
@@ -3968,14 +3964,14 @@ var sso_auth_default = _template("z", (input) => {
3968
3964
  localCode = null;
3969
3965
  }
3970
3966
  }, "z0", $scope0_id);
3971
- _html(`<div${_attr_class("_db")}>`);
3967
+ _html(`<div${_attr_class("_dw")}>`);
3972
3968
  _if(() => {
3973
3969
  if (input.items.length) {
3974
3970
  const $scope1_id = _scope_id();
3975
- _html(`<p${_attr_class("_dm")}>GitHub CLI needs org SSO for ${_sep($sg__input_items)}${_escape(input.items.map((s) => s.org).join(", "))}${_el_resume($scope1_id, "b", $sg__input_items)}.</p><ul${_attr_class("_dc")}>`);
3971
+ _html(`<p${_attr_class("_dH")}>GitHub CLI needs org SSO for ${_sep($sg__input_items)}${_escape(input.items.map((s) => s.org).join(", "))}${_el_resume($scope1_id, "b", $sg__input_items)}.</p><ul${_attr_class("_dx")}>`);
3976
3972
  _for_of(input.items, (s) => {
3977
3973
  const $scope2_id = _scope_id();
3978
- _html(`<li${_attr_class("_dd")}>${_escape(s.org)}${_el_resume($scope2_id, "b", $sg__input_items)}<button type=button${_attr_class("_de")}${_attr("title", `Skip ${s.org}`)}${_attr("aria-label", `Skip ${s.org}`)}${_attr("disabled", busy)}>`);
3974
+ _html(`<li${_attr_class("_dy")}>${_escape(s.org)}${_el_resume($scope2_id, "b", $sg__input_items)}<button type=button${_attr_class("_dz")}${_attr("title", `Skip ${s.org}`)}${_attr("aria-label", `Skip ${s.org}`)}${_attr("disabled", busy)}>`);
3979
3975
  icon_xmark_default({ size: 11 });
3980
3976
  _html(`</button>${_el_resume($scope2_id, "c")}</li>`);
3981
3977
  _script($scope2_id, "z1");
@@ -3984,17 +3980,17 @@ var sso_auth_default = _template("z", (input) => {
3984
3980
  _: _scope_with_id($scope1_id)
3985
3981
  }));
3986
3982
  }, "org", $scope1_id, "c", $sg__input_items, $sg__input_items, $sg__input_items, "</ul>", 1);
3987
- _html(`<div${_attr_class("_df")}>`);
3983
+ _html(`<div${_attr_class("_dA")}>`);
3988
3984
  _if(() => {
3989
3985
  if (busy && authCode$2) {
3990
3986
  const $scope5_id = _scope_id();
3991
- _html(`<span${_attr_class("_dg")}><span${_attr_class("_F")}></span> Enter code <strong${_attr_class("_dh")}>${_escape(authCode$2)}${_el_resume($scope5_id, "d")}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_di")}>${_escape(host)}${_el_resume($scope5_id, "f", _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope5_id, "e")}</span>`);
3987
+ _html(`<span${_attr_class("_dB")}><span${_attr_class("_F")}></span> Enter code <strong${_attr_class("_dC")}>${_escape(authCode$2)}${_el_resume($scope5_id, "d")}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_dD")}>${_escape(host)}${_el_resume($scope5_id, "f", _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope5_id, "e")}</span>`);
3992
3988
  _script($scope5_id, "z2");
3993
3989
  _subscribe($authCode__closures, _subscribe($si__input_items_0_host && $host__closures, writeScope($scope5_id, {})));
3994
3990
  return 0;
3995
3991
  } else if (busy) {
3996
3992
  const $scope8_id = _scope_id();
3997
- _html(`<span${_attr_class("_dg")}><span${_attr_class("_F")}></span>Starting GitHub re-authorization…</span>`);
3993
+ _html(`<span${_attr_class("_dB")}><span${_attr_class("_F")}></span>Starting GitHub re-authorization…</span>`);
3998
3994
  writeScope($scope8_id, {});
3999
3995
  return 1;
4000
3996
  } else {
@@ -4008,7 +4004,7 @@ var sso_auth_default = _template("z", (input) => {
4008
4004
  _if(() => {
4009
4005
  if (localError) {
4010
4006
  const $scope6_id = _scope_id();
4011
- _html(`<p${_attr_class("_dm")}>${_escape(localError)}${_el_resume($scope6_id, "b")}</p>`);
4007
+ _html(`<p${_attr_class("_dH")}>${_escape(localError)}${_el_resume($scope6_id, "b")}</p>`);
4012
4008
  _subscribe($localError__closures, writeScope($scope6_id, {}));
4013
4009
  return 0;
4014
4010
  }
@@ -4020,10 +4016,10 @@ var sso_auth_default = _template("z", (input) => {
4020
4016
  _if(() => {
4021
4017
  if (skipped$1.length) {
4022
4018
  const $scope3_id = _scope_id();
4023
- _html(`<p${_attr_class("_dj")}>Skipped SSO for `);
4019
+ _html(`<p${_attr_class("_dE")}>Skipped SSO for `);
4024
4020
  _for_of(skipped$1, (s) => {
4025
4021
  const $scope4_id = _scope_id();
4026
- _html(`<span${_attr_class("_dk")}>${_escape(s.org)}${_el_resume($scope4_id, "b", $sg__input_skipped)}<button type=button${_attr_class("_dl")}${_attr("title", `Show ${s.org} again`)}>(undo)</button>${_el_resume($scope4_id, "c")}</span>`);
4022
+ _html(`<span${_attr_class("_dF")}>${_escape(s.org)}${_el_resume($scope4_id, "b", $sg__input_skipped)}<button type=button${_attr_class("_dG")}${_attr("title", `Show ${s.org} again`)}>(undo)</button>${_el_resume($scope4_id, "c")}</span>`);
4027
4023
  _script($scope4_id, "z4");
4028
4024
  writeScope($scope4_id, {
4029
4025
  f: s?.org,
@@ -4098,7 +4094,7 @@ var modal_view_default = _template("p", (input) => {
4098
4094
  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;
4099
4095
  const dismissable = input.dismissable !== false;
4100
4096
  let open = input.open;
4101
- _html(`<dialog${_attr_class(["_dV", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
4097
+ _html(`<dialog${_attr_class(["_fl", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
4102
4098
  ...htmlInput,
4103
4099
  open: null
4104
4100
  }, {
@@ -4108,20 +4104,20 @@ var modal_view_default = _template("p", (input) => {
4108
4104
  closedby: 1,
4109
4105
  "on-cancel": 1,
4110
4106
  "on-close": 1
4111
- }, "a", $scope0_id, "dialog")}><div${_attr_class("_dW")}>`);
4107
+ }, "a", $scope0_id, "dialog")}><div${_attr_class("_fm")}>`);
4112
4108
  _dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
4113
4109
  _html("</div>");
4114
4110
  _if(() => {
4115
4111
  if (footer) {
4116
4112
  const $scope1_id = _scope_id();
4117
- _html(`<form method=dialog${_attr_class("_dX")}>`);
4113
+ _html(`<form method=dialog${_attr_class("_fn")}>`);
4118
4114
  _dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
4119
4115
  _html("</form>");
4120
4116
  $si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
4121
4117
  return 0;
4122
4118
  } else if (input.openChange) {
4123
4119
  const $scope2_id = _scope_id();
4124
- _html(`<form method=dialog${_attr_class("_dX")}>`);
4120
+ _html(`<form method=dialog${_attr_class("_fn")}>`);
4125
4121
  dialog_close_default({
4126
4122
  class: ["_o", "_p"],
4127
4123
  content: _content("p0", () => {
@@ -4180,7 +4176,7 @@ var prompt_dialog_default = _template("s", (input) => {
4180
4176
  const $childScope = _peek_scope_id();
4181
4177
  modal_view_default({
4182
4178
  label: input.label,
4183
- class: "_c_",
4179
+ class: "_c8",
4184
4180
  open: input.open,
4185
4181
  openChange: input.openChange,
4186
4182
  "aria-labelledby": titleId,
@@ -4203,7 +4199,7 @@ var prompt_dialog_default = _template("s", (input) => {
4203
4199
  content: _content("s6", () => {
4204
4200
  _scope_reason();
4205
4201
  const $scope2_id = _scope_id();
4206
- _html(`<h2${_attr_class("_da")}${_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) => {
4202
+ _html(`<h2${_attr_class("_c9")}${_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) => {
4207
4203
  value = _new_value;
4208
4204
  }, "s0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
4209
4205
  _script($scope2_id, "s4");
@@ -4513,7 +4509,7 @@ var settings_page_default = _template("v", (input) => {
4513
4509
  const appearanceId = _id();
4514
4510
  const githubId = _id();
4515
4511
  const machineId = _id();
4516
- _html(`<div${_attr_class("_bB")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bC")}><div${_attr_class(content$2)}>`);
4512
+ _html(`<div${_attr_class("_bK")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bL")}><div${_attr_class(content$2)}>`);
4517
4513
  _set_serialize_reason({
4518
4514
  0: _serialize_guard($scope0_reason, 4),
4519
4515
  1: $sg__input_backHref__OR__input_onExit,
@@ -4537,12 +4533,12 @@ var settings_page_default = _template("v", (input) => {
4537
4533
  return 0;
4538
4534
  } else if (setup.ready) {
4539
4535
  const $scope52_id = _scope_id();
4540
- _html(`<span${_attr_class("_b4")}>Ready</span>. Tools, GitHub, and an agent are all in place.`);
4536
+ _html(`<span${_attr_class("_cc")}>Ready</span>. Tools, GitHub, and an agent are all in place.`);
4541
4537
  writeScope($scope52_id, {});
4542
4538
  return 1;
4543
4539
  } else {
4544
4540
  const $scope6_id = _scope_id();
4545
- _html(`<span${_attr_class("_b5")}>Not ready</span>. Missing <!>${_escape(setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "))}${_el_resume($scope6_id, "b")}.`);
4541
+ _html(`<span${_attr_class("_cd")}>Not ready</span>. Missing <!>${_escape(setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "))}${_el_resume($scope6_id, "b")}.`);
4546
4542
  _subscribe($setup_missing__closures, writeScope($scope6_id, {}));
4547
4543
  return 2;
4548
4544
  }
@@ -4592,16 +4588,16 @@ var settings_page_default = _template("v", (input) => {
4592
4588
  _if(() => {
4593
4589
  if (selfUpdatePending || selfUpdating) {
4594
4590
  const $scope37_id = _scope_id();
4595
- _html(`<div${_attr_class("_cy")} role=status><div${_attr_class("_cz")}>`);
4591
+ _html(`<div${_attr_class("_cH")} role=status><div${_attr_class("_cI")}>`);
4596
4592
  _if(() => {
4597
4593
  if (selfUpdating) {
4598
4594
  const $scope53_id = _scope_id();
4599
- _html(`<span${_attr_class("_cA")}><span${_attr_class("_F")}></span> Updating work…</span><span${_attr_class("_cB")}>The app restarts and reloads when it is done.</span>`);
4595
+ _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>`);
4600
4596
  writeScope($scope53_id, {});
4601
4597
  return 0;
4602
4598
  } else {
4603
4599
  const $scope38_id = _scope_id();
4604
- _html(`<span${_attr_class("_cA")}>Update available</span><span${_attr_class("_cB")}>v<!>${_escape(self.version)}${_el_resume($scope38_id, "c")} → v<!>${_escape(self.latest)}${_el_resume($scope38_id, "d")}</span>`);
4600
+ _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>`);
4605
4601
  _subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($scope38_id, {})));
4606
4602
  return 1;
4607
4603
  }
@@ -4620,11 +4616,11 @@ var settings_page_default = _template("v", (input) => {
4620
4616
  return 0;
4621
4617
  }
4622
4618
  }, $scope0_id, "f", 1, 1, 1, 0, 1);
4623
- _html(`<section${_attr_class("_bl")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bm")}><h2${_attr("id", agentsId)}${_attr_class("_bA")}>Agents</h2><div${_attr_class("_y")}></div><label${_attr_class("_b8")}><span${_attr_class("_S")}>Default</span><span${_attr_class("_m")}>`);
4619
+ _html(`<section${_attr_class("_bu")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bv")}><h2${_attr("id", agentsId)}${_attr_class("_bJ")}>Agents</h2><div${_attr_class("_y")}></div><label${_attr_class("_cg")}><span${_attr_class("_S")}>Default</span><span${_attr_class("_m")}>`);
4624
4620
  _attr_select_value($scope0_id, "n", input.preferred, _resume(function(v) {
4625
4621
  setPreferred(v);
4626
4622
  }, "v1", $scope0_id), () => {
4627
- _html(`<select${_attr_class(["_n", "_b9"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
4623
+ _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">`);
4628
4624
  _for_of(input.agents.filter((a) => a !== "shell"), (id) => {
4629
4625
  const $scope54_id = _scope_id();
4630
4626
  _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)}`);
@@ -4645,14 +4641,14 @@ var settings_page_default = _template("v", (input) => {
4645
4641
  const rows = lone ? [] : a.instances;
4646
4642
  const loneAccounts = lone && lone.enabled ? accountsFor(lone.id) : [];
4647
4643
  const extraAccounts = a.installed ? strayAccountsFor(a) : [];
4648
- _html(`<li${_attr_class(["_bq", "_b7"])}><div${_attr_class(["_b_", { ["_cc"]: lone && !lone.enabled }])}>`);
4644
+ _html(`<li${_attr_class(["_bz", "_cf"])}><div${_attr_class(["_ci", { ["_cl"]: lone && !lone.enabled }])}>`);
4649
4645
  _set_serialize_reason(12);
4650
4646
  const $childScope4 = _peek_scope_id();
4651
4647
  icon_agent_default({
4652
4648
  agent: a.id,
4653
4649
  size: 18
4654
4650
  });
4655
- _html(`<div${_attr_class("_br")}><span${_attr_class("_bt")}><span${_attr_class("_bs")}>${_escape(a.label)}${_el_resume($scope1_id, "g")}</span>`);
4651
+ _html(`<div${_attr_class("_bA")}><span${_attr_class("_bC")}><span${_attr_class("_bB")}>${_escape(a.label)}${_el_resume($scope1_id, "g")}</span>`);
4656
4652
  _if(() => {
4657
4653
  if (lone && input.preferred === lone.id) {
4658
4654
  const $scope55_id = _scope_id();
@@ -4665,12 +4661,12 @@ var settings_page_default = _template("v", (input) => {
4665
4661
  _if(() => {
4666
4662
  if (active.has(a.id)) {
4667
4663
  const $scope11_id = _scope_id();
4668
- _html(`<span${_attr_class("_b3")}><span${_attr_class("_F")}></span><!>${_escape(active.get(a.id) || "Starting…")}${_el_resume($scope11_id, "c")}</span>`);
4664
+ _html(`<span${_attr_class("_cb")}><span${_attr_class("_F")}></span><!>${_escape(active.get(a.id) || "Starting…")}${_el_resume($scope11_id, "c")}</span>`);
4669
4665
  _subscribe($active__closures, writeScope($scope11_id, {}));
4670
4666
  return 0;
4671
4667
  } else if (!a.installed) {
4672
4668
  const $scope56_id = _scope_id();
4673
- _html(`<span${_attr_class("_bu")}>Not installed</span>`);
4669
+ _html(`<span${_attr_class("_bD")}>Not installed</span>`);
4674
4670
  writeScope($scope56_id, {});
4675
4671
  return 1;
4676
4672
  }
@@ -4702,18 +4698,18 @@ var settings_page_default = _template("v", (input) => {
4702
4698
  _if(() => {
4703
4699
  if (rows.length || loneAccounts.length || extraAccounts.length) {
4704
4700
  const $scope2_id = _scope_id();
4705
- _html(`<ul${_attr_class("_ce")}>`);
4701
+ _html(`<ul${_attr_class("_cn")}>`);
4706
4702
  _for_of(rows, (inst) => {
4707
4703
  const $scope3_id = _scope_id();
4708
4704
  const accounts = inst.enabled ? accountsFor(inst.id) : [];
4709
- _html(`<li${_attr_class("_ca")}><div${_attr_class(["_cb", { ["_cc"]: !inst.enabled }])}>`);
4705
+ _html(`<li${_attr_class("_cj")}><div${_attr_class(["_ck", { ["_cl"]: !inst.enabled }])}>`);
4710
4706
  _set_serialize_reason(12);
4711
4707
  const $childScope5 = _peek_scope_id();
4712
4708
  icon_agent_default({
4713
4709
  agent: inst.id,
4714
4710
  size: 15
4715
4711
  });
4716
- _html(`<span${_attr_class(["_cd", "_x"])}>${_escape(inst.command)}${_el_resume($scope3_id, "e")}</span>`);
4712
+ _html(`<span${_attr_class(["_cm", "_x"])}>${_escape(inst.command)}${_el_resume($scope3_id, "e")}</span>`);
4717
4713
  _if(() => {
4718
4714
  if (input.preferred === inst.id) {
4719
4715
  const $scope57_id = _scope_id();
@@ -4788,7 +4784,7 @@ var settings_page_default = _template("v", (input) => {
4788
4784
  }, "id", $scope0_id, "r", 1, 1, 1, 0, 1);
4789
4785
  _for_of(otherUsage, (u) => {
4790
4786
  const $scope61_id = _scope_id();
4791
- _html(`<li${_attr_class(["_bq", "_b7"])}>`);
4787
+ _html(`<li${_attr_class(["_bz", "_cf"])}>`);
4792
4788
  _set_serialize_reason(6);
4793
4789
  const $childScope9 = _peek_scope_id();
4794
4790
  usage_meters_default({ agent: u });
@@ -4799,17 +4795,17 @@ var settings_page_default = _template("v", (input) => {
4799
4795
  _if(() => {
4800
4796
  if (!usage && families.length) {
4801
4797
  const $scope62_id = _scope_id();
4802
- _html(`<p${_attr_class("_bw")}><span${_attr_class("_F")}></span> Loading usage…</p>`);
4798
+ _html(`<p${_attr_class("_bF")}><span${_attr_class("_F")}></span> Loading usage…</p>`);
4803
4799
  writeScope($scope62_id, {});
4804
4800
  return 0;
4805
4801
  } else if (usage?.error) {
4806
4802
  const $scope7_id = _scope_id();
4807
- _html(`<p${_attr_class("_bw")}>${_escape(usage.error)}${_el_resume($scope7_id, "b")}</p>`);
4803
+ _html(`<p${_attr_class("_bF")}>${_escape(usage.error)}${_el_resume($scope7_id, "b")}</p>`);
4808
4804
  writeScope($scope7_id, {});
4809
4805
  return 1;
4810
4806
  }
4811
4807
  }, $scope0_id, "t", 1, 1, 1, 0, 1);
4812
- _html(`</section><section${_attr_class("_bl")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_bm")}><h2${_attr("id", githubId)}${_attr_class("_bA")}>GitHub</h2></div><ul${_attr_class("_bo")}>`);
4808
+ _html(`</section><section${_attr_class("_bu")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_bv")}><h2${_attr("id", githubId)}${_attr_class("_bJ")}>GitHub</h2></div><ul${_attr_class("_bx")}>`);
4813
4809
  _for_of(setup?.github || [], (h) => {
4814
4810
  const $scope12_id = _scope_id();
4815
4811
  const $for_content4__h_host__closures = /* @__PURE__ */ new Set();
@@ -4823,7 +4819,7 @@ var settings_page_default = _template("v", (input) => {
4823
4819
  const skippedSso = (() => {
4824
4820
  return (h.sso || []).filter((s) => ignoredSso.has(s.org));
4825
4821
  })();
4826
- _html(`<li${_attr_class(["_bq", "_co"])}><div${_attr_class("_cp")}><div${_attr_class("_br")}><span${_attr_class("_bt")}><span${_attr_class(["_bs", "_x"])}>${_escape(h.host)}${_el_resume($scope12_id, "f")}</span>`);
4822
+ _html(`<li${_attr_class(["_bz", "_cx"])}><div${_attr_class("_cy")}><div${_attr_class("_bA")}><span${_attr_class("_bC")}><span${_attr_class(["_bB", "_x"])}>${_escape(h.host)}${_el_resume($scope12_id, "f")}</span>`);
4827
4823
  _if(() => {
4828
4824
  if (h.isEnterprise) {
4829
4825
  const $scope65_id = _scope_id();
@@ -4836,22 +4832,22 @@ var settings_page_default = _template("v", (input) => {
4836
4832
  _if(() => {
4837
4833
  if (active.has(h.host) && authCodes.has(h.host)) {
4838
4834
  const $scope24_id = _scope_id();
4839
- _html(`<span${_attr_class("_b3")}><span${_attr_class("_F")}></span> Enter code <strong${_attr_class("_cm")}>${_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("_cn")}>${_escape(h.host)}${_el_resume($scope24_id, "f")}/login/device</a>${_el_resume($scope24_id, "e")}</span>`);
4835
+ _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>`);
4840
4836
  _subscribe($authCodes__closures, writeScope($scope24_id, { Cdz: 1 }));
4841
4837
  return 0;
4842
4838
  } else if (active.has(h.host)) {
4843
4839
  const $scope13_id = _scope_id();
4844
- _html(`<span${_attr_class("_b3")}><span${_attr_class("_F")}></span><!>${_escape(active.get(h.host) || "Starting…")}${_el_resume($scope13_id, "c")}</span>`);
4840
+ _html(`<span${_attr_class("_cb")}><span${_attr_class("_F")}></span><!>${_escape(active.get(h.host) || "Starting…")}${_el_resume($scope13_id, "c")}</span>`);
4845
4841
  _subscribe($active__closures, writeScope($scope13_id, { Cdx: 1 }));
4846
4842
  return 1;
4847
4843
  } else if (h.authed) {
4848
4844
  const $scope63_id = _scope_id();
4849
- _html(`<span${_attr_class("_bu")}>Signed in<!>${h.user ? ` as ${_escape(`${_to_text(h.user)}`)}` : ""}${_el_resume($scope63_id, "b")}</span>`);
4845
+ _html(`<span${_attr_class("_bD")}>Signed in<!>${h.user ? ` as ${_escape(`${_to_text(h.user)}`)}` : ""}${_el_resume($scope63_id, "b")}</span>`);
4850
4846
  writeScope($scope63_id, {});
4851
4847
  return 2;
4852
4848
  } else {
4853
4849
  const $scope64_id = _scope_id();
4854
- _html(`<span${_attr_class("_bu")}>${_escape(h.error || "Not signed in")}${_el_resume($scope64_id, "b")}</span>`);
4850
+ _html(`<span${_attr_class("_bD")}>${_escape(h.error || "Not signed in")}${_el_resume($scope64_id, "b")}</span>`);
4855
4851
  writeScope($scope64_id, {});
4856
4852
  return 3;
4857
4853
  }
@@ -4882,7 +4878,7 @@ var settings_page_default = _template("v", (input) => {
4882
4878
  if (h.isEnterprise) {
4883
4879
  const $scope27_id = _scope_id();
4884
4880
  _html(`<button${_attr_class([
4885
- "_bv",
4881
+ "_bE",
4886
4882
  "_2",
4887
4883
  "_3",
4888
4884
  { ["_q"]: confirmingRemove === h.host }
@@ -4958,7 +4954,7 @@ var settings_page_default = _template("v", (input) => {
4958
4954
  _if(() => {
4959
4955
  if (setup && !setup.github.length) {
4960
4956
  const $scope68_id = _scope_id();
4961
- _html(`<p${_attr_class("_bw")}>Install the GitHub CLI below to sign in.</p>`);
4957
+ _html(`<p${_attr_class("_bF")}>Install the GitHub CLI below to sign in.</p>`);
4962
4958
  writeScope($scope68_id, {});
4963
4959
  return 0;
4964
4960
  }
@@ -4966,7 +4962,7 @@ var settings_page_default = _template("v", (input) => {
4966
4962
  _if(() => {
4967
4963
  if (setup) {
4968
4964
  const $scope35_id = _scope_id();
4969
- _html(`<form${_attr_class("_cl")}><label${_attr_class("_W")}>`);
4965
+ _html(`<form${_attr_class("_cu")}><label${_attr_class("_W")}>`);
4970
4966
  icon_plus_default({
4971
4967
  size: 14,
4972
4968
  class: "_X"
@@ -4979,7 +4975,7 @@ var settings_page_default = _template("v", (input) => {
4979
4975
  return 0;
4980
4976
  }
4981
4977
  }, $scope0_id, "z", 1, 1, 1, 0, 1);
4982
- _html(`</section><section${_attr_class("_bl")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_bm")}><h2${_attr("id", machineId)}${_attr_class("_bA")}>Machine</h2>`);
4978
+ _html(`</section><section${_attr_class("_bu")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_bv")}><h2${_attr("id", machineId)}${_attr_class("_bJ")}>Machine</h2>`);
4983
4979
  _if(() => {
4984
4980
  if (missingCount) {
4985
4981
  const $scope49_id = _scope_id();
@@ -5019,7 +5015,7 @@ var settings_page_default = _template("v", (input) => {
5019
5015
  _if(() => {
5020
5016
  if (setup && !setup.mise.installed) {
5021
5017
  const $scope17_id = _scope_id();
5022
- _html(`<p${_attr_class("_bw")}>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>`);
5018
+ _html(`<p${_attr_class("_bF")}>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>`);
5023
5019
  _script($scope17_id, "v45");
5024
5020
  writeScope($scope17_id, {});
5025
5021
  return 0;
@@ -5029,11 +5025,11 @@ var settings_page_default = _template("v", (input) => {
5029
5025
  _if(() => {
5030
5026
  if (self) {
5031
5027
  const $scope40_id = _scope_id();
5032
- _html(`<li${_attr_class(row)}><span${_attr_class(["_ch", "_x"])}>work</span>`);
5028
+ _html(`<li${_attr_class(row)}><span${_attr_class(["_cq", "_x"])}>work</span>`);
5033
5029
  _if(() => {
5034
5030
  if (selfUpdating) {
5035
5031
  const $scope69_id = _scope_id();
5036
- _html(`<span${_attr_class("_b3")}><span${_attr_class("_F")}></span>Updating — the app restarts and reloads when it is done…</span>`);
5032
+ _html(`<span${_attr_class("_cb")}><span${_attr_class("_F")}></span>Updating — the app restarts and reloads when it is done…</span>`);
5037
5033
  writeScope($scope69_id, {});
5038
5034
  return 0;
5039
5035
  } else {
@@ -5047,7 +5043,7 @@ var settings_page_default = _template("v", (input) => {
5047
5043
  return 0;
5048
5044
  } else if (self.latest && self.latest !== self.version) {
5049
5045
  const $scope42_id = _scope_id();
5050
- _html(`<button${_attr_class([btnSm, "_cj"])}${_attr("title", `Update work to v${self.latest} and restart`)}>`);
5046
+ _html(`<button${_attr_class([btnSm, "_cs"])}${_attr("title", `Update work to v${self.latest} and restart`)}>`);
5051
5047
  icon_arrow_up_default({ size: 12 });
5052
5048
  _html(` <!>${_escape(self.latest)}${_el_resume($scope42_id, "c")}</button>${_el_resume($scope42_id, "a")}`);
5053
5049
  _script($scope42_id, "v46");
@@ -5088,11 +5084,11 @@ var settings_page_default = _template("v", (input) => {
5088
5084
  const $for_content5__t_path__closures = /* @__PURE__ */ new Set();
5089
5085
  const $for_content5__t_latest__closures = /* @__PURE__ */ new Set();
5090
5086
  const $for_content5__t_id__closures = /* @__PURE__ */ new Set();
5091
- _html(`<li${_attr_class([row, { ["_cg"]: !t.installed }])}><span${_attr_class(["_ch", "_x"])}>${_escape(t.label)}${_el_resume($scope18_id, "c")}</span>`);
5087
+ _html(`<li${_attr_class([row, { ["_cp"]: !t.installed }])}><span${_attr_class(["_cq", "_x"])}>${_escape(t.label)}${_el_resume($scope18_id, "c")}</span>`);
5092
5088
  _if(() => {
5093
5089
  if (active.has(t.id)) {
5094
5090
  const $scope19_id = _scope_id();
5095
- _html(`<span${_attr_class("_b3")}><span${_attr_class("_F")}></span><!>${_escape(active.get(t.id) || "Starting…")}${_el_resume($scope19_id, "c")}</span>`);
5091
+ _html(`<span${_attr_class("_cb")}><span${_attr_class("_F")}></span><!>${_escape(active.get(t.id) || "Starting…")}${_el_resume($scope19_id, "c")}</span>`);
5096
5092
  _subscribe($active__closures, writeScope($scope19_id, { Cdx: 3 }));
5097
5093
  return 0;
5098
5094
  } else if (t.installed) {
@@ -5100,7 +5096,7 @@ var settings_page_default = _template("v", (input) => {
5100
5096
  _if(() => {
5101
5097
  if (t.version) {
5102
5098
  const $scope32_id = _scope_id();
5103
- _html(`<button${_attr_class(["_ci", "_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")}`);
5099
+ _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")}`);
5104
5100
  _script($scope32_id, "v47");
5105
5101
  _subscribe($for_content5__t_path__closures, _subscribe($for_content5__t_version__closures, _subscribe($for_content5__t_label__closures, writeScope($scope32_id, { Cu: 1 }))));
5106
5102
  return 0;
@@ -5114,7 +5110,7 @@ var settings_page_default = _template("v", (input) => {
5114
5110
  _if(() => {
5115
5111
  if (outdated(t)) {
5116
5112
  const $scope46_id = _scope_id();
5117
- _html(`<button${_attr_class([btnSm, "_cj"])}${_attr("title", `Update to v${t.latest}`)}>`);
5113
+ _html(`<button${_attr_class([btnSm, "_cs"])}${_attr("title", `Update to v${t.latest}`)}>`);
5118
5114
  icon_arrow_up_default({ size: 12 });
5119
5115
  _html(` <!>${_escape(t.latest)}${_el_resume($scope46_id, "c")}</button>${_el_resume($scope46_id, "a")}`);
5120
5116
  _script($scope46_id, "v48");
@@ -5216,19 +5212,19 @@ var settings_page_default = _template("v", (input) => {
5216
5212
  _if(() => {
5217
5213
  if (hits && hits.length) {
5218
5214
  const $scope21_id = _scope_id();
5219
- _html(`<ul${_attr_class([toolGrid, "_ck"])}>`);
5215
+ _html(`<ul${_attr_class([toolGrid, "_ct"])}>`);
5220
5216
  _for_of(hits, (h) => {
5221
5217
  const $scope22_id = _scope_id();
5222
- _html(`<li${_attr_class(row)}><div${_attr_class("_br")}><span${_attr_class(["_ch", "_x"])}>${_escape(h.name)}${_el_resume($scope22_id, "d")}</span>`);
5218
+ _html(`<li${_attr_class(row)}><div${_attr_class("_bA")}><span${_attr_class(["_cq", "_x"])}>${_escape(h.name)}${_el_resume($scope22_id, "d")}</span>`);
5223
5219
  _if(() => {
5224
5220
  if (active.has(h.name)) {
5225
5221
  const $scope23_id = _scope_id();
5226
- _html(`<span${_attr_class("_b3")}><span${_attr_class("_F")}></span><!>${_escape(active.get(h.name) || "Starting…")}${_el_resume($scope23_id, "c")}</span>`);
5222
+ _html(`<span${_attr_class("_cb")}><span${_attr_class("_F")}></span><!>${_escape(active.get(h.name) || "Starting…")}${_el_resume($scope23_id, "c")}</span>`);
5227
5223
  _subscribe($active__closures, writeScope($scope23_id, { Cdx: 5 }));
5228
5224
  return 0;
5229
5225
  } else if (h.description) {
5230
5226
  const $scope79_id = _scope_id();
5231
- _html(`<span${_attr_class("_bu")}${_attr("title", h.description)}>${_escape(h.description)}${_el_resume($scope79_id, "b")}</span>${_el_resume($scope79_id, "a")}`);
5227
+ _html(`<span${_attr_class("_bD")}${_attr("title", h.description)}>${_escape(h.description)}${_el_resume($scope79_id, "b")}</span>${_el_resume($scope79_id, "a")}`);
5232
5228
  writeScope($scope79_id, {});
5233
5229
  return 1;
5234
5230
  }
@@ -5267,7 +5263,7 @@ var settings_page_default = _template("v", (input) => {
5267
5263
  return 0;
5268
5264
  } else if (hits && !searching) {
5269
5265
  const $scope36_id = _scope_id();
5270
- _html(`<p${_attr_class("_bw")}>No tools match "<!>${_escape(query)}${_el_resume($scope36_id, "b")}".</p>`);
5266
+ _html(`<p${_attr_class("_bF")}>No tools match "<!>${_escape(query)}${_el_resume($scope36_id, "b")}".</p>`);
5271
5267
  _subscribe($query__closures, writeScope($scope36_id, {}));
5272
5268
  return 1;
5273
5269
  }
@@ -5278,9 +5274,9 @@ var settings_page_default = _template("v", (input) => {
5278
5274
  return 0;
5279
5275
  }
5280
5276
  }, $scope0_id, "ac", 1, 1, 1, 0, 1);
5281
- _html(`</section><section${_attr_class("_bl")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_bm")}><h2${_attr("id", appearanceId)}${_attr_class("_bA")}>Appearance</h2></div><div${_attr_class(["_bq", "_cq"])}><label${_attr_class("_cr")}><span${_attr_class("_cs")}>Name</span><input${_attr_input_value($scope0_id, "aj", input.instance.name, _resume(function(v) {
5277
+ _html(`</section><section${_attr_class("_bu")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_bv")}><h2${_attr("id", appearanceId)}${_attr_class("_bJ")}>Appearance</h2></div><div${_attr_class(["_bz", "_cz"])}><label${_attr_class("_cA")}><span${_attr_class("_cB")}>Name</span><input${_attr_input_value($scope0_id, "aj", input.instance.name, _resume(function(v) {
5282
5278
  setInstance({ name: v });
5283
- }, "v3", $scope0_id))}${_attr_class(["_U", "_ct"])} 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", "_cu"])}>Tab title, home-screen icon, and notifications.</span></label><div${_attr_class("_cr")} role=radiogroup aria-label="Color theme"><span${_attr_class("_cs")}>Theme</span><span${_attr_class("_cv")}>`);
5279
+ }, "v3", $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")}>`);
5284
5280
  _for_of([
5285
5281
  {
5286
5282
  id: "system",
@@ -5296,21 +5292,21 @@ var settings_page_default = _template("v", (input) => {
5296
5292
  }
5297
5293
  ], (opt) => {
5298
5294
  const $scope43_id = _scope_id();
5299
- _html(`<button type=button${_attr_class(["_cw", { ["_cx"]: themeMode === opt.id }])} role=radio aria-checked=${themeMode === opt.id ? "true" : "false"}>${_escape(opt.label)}</button>${_el_resume($scope43_id, "a")}`);
5295
+ _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")}`);
5300
5296
  _script($scope43_id, "v53");
5301
5297
  writeScope($scope43_id, {
5302
5298
  e: opt?.id,
5303
5299
  _: _scope_with_id($scope0_id)
5304
5300
  });
5305
5301
  }, "id", $scope0_id, "an", 1, 0, 1, 0, 1);
5306
- _html(`</span><span${_attr_class(["_S", "_cu"])}>Follow the OS, or force light or dark.</span></div><div${_attr_class("_cr")} role=radiogroup aria-label="Accent colour"><span${_attr_class("_cs")}>Accent</span><span${_attr_class("_cC")}><button type=button${_attr_class([
5307
- "_cD",
5308
- "_cF",
5309
- { ["_cE"]: !input.instance.accent }
5302
+ _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([
5303
+ "_cM",
5304
+ "_cO",
5305
+ { ["_cN"]: !input.instance.accent }
5310
5306
  ])} role=radio aria-checked=${!input.instance.accent ? "true" : "false"} title="Default (blue)" aria-label="Default (blue)"></button>${_el_resume($scope0_id, "as")}`);
5311
5307
  _for_of(ACCENT_PRESETS, (p) => {
5312
5308
  const $scope4_id = _scope_id();
5313
- _html(`<button type=button${_attr_class(["_cD", { ["_cE"]: 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")}`);
5309
+ _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")}`);
5314
5310
  _script($scope4_id, "v54");
5315
5311
  writeScope($scope4_id, {
5316
5312
  d: p?.value,
@@ -5319,12 +5315,12 @@ var settings_page_default = _template("v", (input) => {
5319
5315
  }, "value", $scope0_id, "at", $sg__input_instance_accent, 0, 1, 0, 1);
5320
5316
  const customOn = !!input.instance.accent && !ACCENT_PRESETS.some((p) => p.value === input.instance.accent);
5321
5317
  _html(`<label${_attr_class([
5322
- "_cD",
5323
- "_cG",
5324
- { ["_cE"]: customOn }
5318
+ "_cM",
5319
+ "_cP",
5320
+ { ["_cN"]: customOn }
5325
5321
  ])}${customOn ? _attr_style(`--swatch:${input.instance.accent}`) : ""} title="Custom colour"><input${_attr_input_value($scope0_id, "av", input.instance.accent || "#3556d8", _resume(function(v) {
5326
5322
  setInstance({ accent: v });
5327
- }, "v4", $scope0_id))}${_attr_class("_cH")} 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", "_cu"])}>Selected rows, buttons, and the icon.</span></div></div></section></div></div></div>`);
5323
+ }, "v4", $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>`);
5328
5324
  _if(() => {
5329
5325
  if (versionPick) {
5330
5326
  const $scope30_id = _scope_id();
@@ -5438,12 +5434,12 @@ var settings_page_default = _template("v", (input) => {
5438
5434
  });
5439
5435
  //#endregion
5440
5436
  //#region src/tags/new-workspace.css.ts
5441
- var content$1 = "_bK _bD";
5442
- var section$1 = "_bO _bl";
5443
- var curBase = "_bT _T _S";
5444
- var archived = "_bY _bl";
5445
- var archivedHint = "_bZ _S";
5446
- var archivedCard = "_b0 _bq";
5437
+ var content$1 = "_bT _bM";
5438
+ var section$1 = "_bX _bu";
5439
+ var curBase = "_b2 _T _S";
5440
+ var archived = "_b7 _bu";
5441
+ var archivedHint = "_b8 _S";
5442
+ var archivedCard = "_b9 _bz";
5447
5443
  //#endregion
5448
5444
  //#region src/tags/icons/icon-check.marko
5449
5445
  var icon_check_default = _template("P", (input) => {
@@ -5478,7 +5474,7 @@ var icon_branch_default = _template("O", (input) => {
5478
5474
  });
5479
5475
  _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
5480
5476
  });
5481
- var resultBranch = "_c1 _Z _j";
5477
+ var resultBranch = "_cZ _Z _j";
5482
5478
  //#endregion
5483
5479
  //#region src/tags/branch-pick.marko
5484
5480
  var branch_pick_default = _template("d", (input) => {
@@ -5489,11 +5485,11 @@ var branch_pick_default = _template("d", (input) => {
5489
5485
  let branches = null;
5490
5486
  let defaultBranch = null;
5491
5487
  let branchFilter = "";
5492
- _html(`<div${_attr_class("_c3")}>`);
5488
+ _html(`<div${_attr_class("_c1")}>`);
5493
5489
  _if(() => {
5494
5490
  {
5495
5491
  const $scope4_id = _scope_id();
5496
- _html(`<p${_attr_class("_bw")}><span${_attr_class("_F")}></span> Loading branches…</p>`);
5492
+ _html(`<p${_attr_class("_bF")}><span${_attr_class("_F")}></span> Loading branches…</p>`);
5497
5493
  writeScope($scope4_id, {});
5498
5494
  return 0;
5499
5495
  }
@@ -5569,11 +5565,11 @@ var repo_picker_default = _template("t", (input) => {
5569
5565
  const ignored = new Set(prefs$1?.ignoredSsoOrgs?.() ?? []);
5570
5566
  return (catalog?.sso || []).filter((s) => !ignored.has(s.org));
5571
5567
  })();
5572
- _html(`<div${_attr_class("_cU")}>`);
5568
+ _html(`<div${_attr_class("_cS")}>`);
5573
5569
  _if(() => {
5574
5570
  if (ssoPending.length) {
5575
5571
  const $scope7_id = _scope_id();
5576
- _html(`<div${_attr_class("_cV")}>`);
5572
+ _html(`<div${_attr_class("_cT")}>`);
5577
5573
  _set_serialize_reason(154);
5578
5574
  const $childScope = _peek_scope_id();
5579
5575
  sso_auth_default({
@@ -5603,16 +5599,16 @@ var repo_picker_default = _template("t", (input) => {
5603
5599
  _if(() => {
5604
5600
  if (pasted) {
5605
5601
  const $scope1_id = _scope_id();
5606
- _html(`<ul${_attr_class("_cW")}><li><div${_attr_class(["_cY", "_cX"])}><button${_attr_class("_cZ")}${pasteWillFork ? _attr("title", `Fork ${pasted} to your account and add the fork`) : _attr("title", `Add ${pasted} as-is (pushes go to that repo)`)}>`);
5602
+ _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)`)}>`);
5607
5603
  icon_plus_default({
5608
5604
  size: 12,
5609
- class: "_c5"
5605
+ class: "_c3"
5610
5606
  });
5611
- _html(`<span${_attr_class("_c6")}>${_escape(repoLabel(pasted))}${_el_resume($scope1_id, "f")}</span></button>${_el_resume($scope1_id, "c")}`);
5607
+ _html(`<span${_attr_class("_c4")}>${_escape(repoLabel(pasted))}${_el_resume($scope1_id, "f")}</span></button>${_el_resume($scope1_id, "c")}`);
5612
5608
  _if(() => {
5613
5609
  if (pastedForkable) {
5614
5610
  const $scope8_id = _scope_id();
5615
- _html(`<button${_attr_class(["_c2", { ["_c0"]: pasteWillFork }])}${pasteWillFork ? " title=\"Will fork to your account; click to clone as-is instead\"" : _attr("title", `Fork ${pasted} to your account and clone the fork`)} aria-pressed=${pasteWillFork ? "true" : "false"}>`);
5611
+ _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"}>`);
5616
5612
  _if(() => {
5617
5613
  if (pasteWillFork) {
5618
5614
  const $scope10_id = _scope_id();
@@ -5632,7 +5628,7 @@ var repo_picker_default = _template("t", (input) => {
5632
5628
  return 0;
5633
5629
  }
5634
5630
  }, $scope1_id, "g", 1, 1, 1, 0, 1);
5635
- _html(`<button${_attr_class([resultBranch, { ["_c0"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>`);
5631
+ _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}`)}>`);
5636
5632
  icon_branch_default({ size: 12 });
5637
5633
  _html(`</button>${_el_resume($scope1_id, "h")}</div>`);
5638
5634
  _if(() => {
@@ -5659,7 +5655,7 @@ var repo_picker_default = _template("t", (input) => {
5659
5655
  return 0;
5660
5656
  } else if (filter && !catalog) {
5661
5657
  const $scope9_id = _scope_id();
5662
- _html(`<p${_attr_class("_bw")}>Loading repos…</p>`);
5658
+ _html(`<p${_attr_class("_bF")}>Loading repos…</p>`);
5663
5659
  writeScope($scope9_id, {});
5664
5660
  return 1;
5665
5661
  }
@@ -5667,15 +5663,15 @@ var repo_picker_default = _template("t", (input) => {
5667
5663
  _if(() => {
5668
5664
  if (results.length) {
5669
5665
  const $scope3_id = _scope_id();
5670
- _html(`<ul${_attr_class("_cW")}>`);
5666
+ _html(`<ul${_attr_class("_cU")}>`);
5671
5667
  _for_of(results, (repo, i) => {
5672
5668
  const $scope4_id = _scope_id();
5673
- _html(`<li><div${_attr_class(["_cY", { ["_cX"]: i === highlight }])}><button${_attr_class("_cZ")}>`);
5669
+ _html(`<li><div${_attr_class(["_cW", { ["_cV"]: i === highlight }])}><button${_attr_class("_cX")}>`);
5674
5670
  icon_plus_default({
5675
5671
  size: 12,
5676
- class: "_c5"
5672
+ class: "_c3"
5677
5673
  });
5678
- _html(`<span${_attr_class("_c6")}>${_escape(repoLabel(repo.nameWithOwner))}${_el_resume($scope4_id, "e")}</span></button>${_el_resume($scope4_id, "b")}<button${_attr_class([resultBranch, { ["_c0"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>`);
5674
+ _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}`)}>`);
5679
5675
  icon_branch_default({ size: 12 });
5680
5676
  _html(`</button>${_el_resume($scope4_id, "f")}</div>${_el_resume($scope4_id, "a")}`);
5681
5677
  _if(() => {
@@ -5710,7 +5706,7 @@ var repo_picker_default = _template("t", (input) => {
5710
5706
  return 0;
5711
5707
  } else if (filter && catalog && !pasted) {
5712
5708
  const $scope6_id = _scope_id();
5713
- _html(`<p${_attr_class("_bw")}>No repos match "<!>${_escape(filter)}${_el_resume($scope6_id, "b")}". Paste a clone URL to add any repo.</p>`);
5709
+ _html(`<p${_attr_class("_bF")}>No repos match "<!>${_escape(filter)}${_el_resume($scope6_id, "b")}". Paste a clone URL to add any repo.</p>`);
5714
5710
  writeScope($scope6_id, {});
5715
5711
  return 1;
5716
5712
  }
@@ -5851,7 +5847,7 @@ var new_workspace_default = _template("q", (input) => {
5851
5847
  }
5852
5848
  }, "q6", $scope0_id);
5853
5849
  const titleId = _id();
5854
- _html(`<div${_attr_class("_bB")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bC")}><div${_attr_class(content$1)}>`);
5850
+ _html(`<div${_attr_class("_bK")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bL")}><div${_attr_class(content$1)}>`);
5855
5851
  _set_serialize_reason({
5856
5852
  0: _serialize_guard($scope0_reason, 2),
5857
5853
  1: $sg__input_backHref__OR__input_onExit,
@@ -5890,23 +5886,23 @@ var new_workspace_default = _template("q", (input) => {
5890
5886
  return 0;
5891
5887
  }
5892
5888
  }, $scope0_id, "e", 1, 1, 1, 0, 1);
5893
- _html(`<label${_attr_class("_bN")}><span${_attr_class("_bA")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
5889
+ _html(`<label${_attr_class("_bW")}><span${_attr_class("_bJ")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
5894
5890
  name = _new_name;
5895
- }, "q0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class(section$1)}><div${_attr_class("_bP")}><h2${_attr_class("_bA")}>Repos</h2><button${_attr_class(iconBtnRow)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
5891
+ }, "q0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class(section$1)}><div${_attr_class("_bY")}><h2${_attr_class("_bJ")}>Repos</h2><button${_attr_class(iconBtnRow)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
5896
5892
  _set_serialize_reason(1);
5897
5893
  const $childScope2 = _peek_scope_id();
5898
5894
  icon_refresh_default({
5899
5895
  size: 14,
5900
5896
  class: catalogRefreshing && "_E"
5901
5897
  });
5902
- _html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("_bQ")}>`);
5898
+ _html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("_bZ")}>`);
5903
5899
  _for_of(selected, (repo) => {
5904
5900
  const $scope2_id = _scope_id();
5905
- _html(`<li><div${_attr_class(row)}><span${_attr_class("_bR")}>${_escape(repoLabel(repo.fullName))}${_el_resume($scope2_id, "c")}</span>`);
5901
+ _html(`<li><div${_attr_class(row)}><span${_attr_class("_b0")}>${_escape(repoLabel(repo.fullName))}${_el_resume($scope2_id, "c")}</span>`);
5906
5902
  _if(() => {
5907
5903
  if (repo.fork !== void 0) {
5908
5904
  const $scope3_id = _scope_id();
5909
- _html(`<button${_attr_class(["_bU", { ["_bS"]: repo.fork }])}${repo.fork ? _attr("title", `${repo.fullName} will be forked to your account; click to clone as-is instead`) : _attr("title", `Fork ${repo.fullName} to your account and clone the fork`)} aria-pressed=${repo.fork ? "true" : "false"}${_attr("disabled", busy)}>`);
5905
+ _html(`<button${_attr_class(["_b3", { ["_b1"]: repo.fork }])}${repo.fork ? _attr("title", `${repo.fullName} will be forked to your account; click to clone as-is instead`) : _attr("title", `Fork ${repo.fullName} to your account and clone the fork`)} aria-pressed=${repo.fork ? "true" : "false"}${_attr("disabled", busy)}>`);
5910
5906
  _if(() => {
5911
5907
  if (repo.fork) {
5912
5908
  const $scope12_id = _scope_id();
@@ -5929,7 +5925,7 @@ var new_workspace_default = _template("q", (input) => {
5929
5925
  _html(`<button${_attr_class([
5930
5926
  curBase,
5931
5927
  "_x",
5932
- { ["_bS"]: branchesFor === repo.fullName }
5928
+ { ["_b1"]: branchesFor === repo.fullName }
5933
5929
  ])}${_attr("title", `Change base branch for ${repo.fullName}`)}${_attr("aria-label", `Change base branch for ${repo.fullName}`)}${_attr("disabled", busy)}>`);
5934
5930
  icon_branch_default({ size: 12 });
5935
5931
  _html(`<!>${repo.baseBranch ? ` ${_escape(`${_to_text(repo.baseBranch)}`)}` : ""}${_el_resume($scope2_id, "g")}</button>${_el_resume($scope2_id, "e")}<button${_attr_class([iconBtnXs, "_2"])}${_attr("title", `Remove ${repo.fullName}`)}${_attr("disabled", busy)}>`);
@@ -5965,7 +5961,7 @@ var new_workspace_default = _template("q", (input) => {
5965
5961
  _if(() => {
5966
5962
  if (!selected.length) {
5967
5963
  const $scope14_id = _scope_id();
5968
- _html(`<li${_attr_class("_bw")}>No repos yet. Search below to add one, or create it empty.</li>`);
5964
+ _html(`<li${_attr_class("_bF")}>No repos yet. Search below to add one, or create it empty.</li>`);
5969
5965
  writeScope($scope14_id, {});
5970
5966
  return 0;
5971
5967
  }
@@ -5990,10 +5986,10 @@ var new_workspace_default = _template("q", (input) => {
5990
5986
  _if(() => {
5991
5987
  if (busy && steps$1.length) {
5992
5988
  const $scope9_id = _scope_id();
5993
- _html(`<ul${_attr_class("_bV")}>`);
5989
+ _html(`<ul${_attr_class("_b4")}>`);
5994
5990
  _for_of(steps$1, (step$1, i) => {
5995
5991
  const $scope10_id = _scope_id();
5996
- _html(`<li${_attr_class(["_b1", { ["_bW"]: i === steps$1.length - 1 }])}>`);
5992
+ _html(`<li${_attr_class(["_b_", { ["_b5"]: i === steps$1.length - 1 }])}>`);
5997
5993
  _if(() => {
5998
5994
  if (i === steps$1.length - 1) {
5999
5995
  const $scope15_id = _scope_id();
@@ -6002,7 +5998,7 @@ var new_workspace_default = _template("q", (input) => {
6002
5998
  return 0;
6003
5999
  } else {
6004
6000
  const $scope16_id = _scope_id();
6005
- _html(`<span${_attr_class("_bX")}>`);
6001
+ _html(`<span${_attr_class("_b6")}>`);
6006
6002
  icon_check_default({ size: 14 });
6007
6003
  _html("</span>");
6008
6004
  writeScope($scope16_id, {});
@@ -6016,7 +6012,7 @@ var new_workspace_default = _template("q", (input) => {
6016
6012
  return 0;
6017
6013
  }
6018
6014
  }, $scope0_id, "s", 1, 1, 1, 0, 1);
6019
- _html(`<div${_attr_class("_bL")}>`);
6015
+ _html(`<div${_attr_class("_bU")}>`);
6020
6016
  _if(() => {
6021
6017
  if (input.onExit || busy) {
6022
6018
  const $scope1_id = _scope_id();
@@ -6029,15 +6025,15 @@ var new_workspace_default = _template("q", (input) => {
6029
6025
  _html(`<button type=button${_attr_class([
6030
6026
  btnLg,
6031
6027
  "_p",
6032
- "_bM"
6028
+ "_bV"
6033
6029
  ])}${_attr("disabled", busy || !!restoring || !name.trim())}>${busy ? "Creating…" : "Create workspace"}${_el_resume($scope0_id, "w")}</button>${_el_resume($scope0_id, "v")}</div>`);
6034
6030
  _if(() => {
6035
6031
  if (archived$1.length) {
6036
6032
  const $scope4_id = _scope_id();
6037
- _html(`<section${_attr_class(archived)}><div${_attr_class("_bP")}><h2${_attr_class("_bA")}>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("_bo")}>`);
6033
+ _html(`<section${_attr_class(archived)}><div${_attr_class("_bY")}><h2${_attr_class("_bJ")}>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("_bx")}>`);
6038
6034
  _for_of(archived$1, (ws) => {
6039
6035
  const $scope5_id = _scope_id();
6040
- _html(`<li${_attr_class(archivedCard)}><div${_attr_class("_br")}><span${_attr_class("_bs")}>${_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)}>`);
6036
+ _html(`<li${_attr_class(archivedCard)}><div${_attr_class("_bA")}><span${_attr_class("_bB")}>${_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)}>`);
6041
6037
  _if(() => {
6042
6038
  if (restoring === ws.id) {
6043
6039
  const $scope17_id = _scope_id();
@@ -6194,8 +6190,8 @@ function activeAgent(session) {
6194
6190
  const command = session.state?.command?.trim();
6195
6191
  return command && agentFromCommand(command) || session.agent;
6196
6192
  }
6197
- var iconBtn$1 = "_dZ _j";
6198
- var navToggle = "_d4 _j";
6193
+ var iconBtn$1 = "_dU _j";
6194
+ var navToggle = "_dZ _j";
6199
6195
  _template("N", (input) => {
6200
6196
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
6201
6197
  const $scope0_id = _scope_id();
@@ -6238,12 +6234,12 @@ var ARM_MS = 3500;
6238
6234
  function disarmLater(fn) {
6239
6235
  return setTimeout(fn, ARM_MS);
6240
6236
  }
6241
- var railBtn = "_gq _j";
6242
- var rowIcon = "_gz _Z _j";
6243
- var close = "_gA _Z _j _2";
6237
+ var railBtn = "_gV _j";
6238
+ var rowIcon = "_g4 _Z _j";
6239
+ var close = "_g5 _Z _j _2";
6244
6240
  //#endregion
6245
6241
  //#region src/styles/session-pop.css.ts
6246
- var sessionPop = "_gm _4";
6242
+ var sessionPop = "_gk _4";
6247
6243
  //#endregion
6248
6244
  //#region src/client/usage.ts
6249
6245
  /** The plan row an agent instance draws on: its own account (`claude2`)
@@ -6304,22 +6300,22 @@ var usage_pcts_default = _template("E", (input) => {
6304
6300
  if (windows.length) {
6305
6301
  const $scope1_id = _scope_id();
6306
6302
  _html(`<span${_attr_class([
6307
- "_fZ",
6303
+ "_fo",
6308
6304
  input.class,
6309
- { ["_f0"]: agent.stale_seconds != null }
6305
+ { ["_fp"]: agent.stale_seconds != null }
6310
6306
  ])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
6311
6307
  _for_of(windows, (win$1, i) => {
6312
6308
  const $scope2_id = _scope_id();
6313
- _html(`<span${_attr_class("_f1")}>`);
6309
+ _html(`<span${_attr_class("_fq")}>`);
6314
6310
  _if(() => {
6315
6311
  if (i) {
6316
6312
  const $scope3_id = _scope_id();
6317
- _html(`<span${_attr_class("_f4")} aria-hidden=true>·</span>`);
6313
+ _html(`<span${_attr_class("_ft")} aria-hidden=true>·</span>`);
6318
6314
  $si__input_agent && writeScope($scope3_id, {});
6319
6315
  return 0;
6320
6316
  }
6321
6317
  }, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
6322
- _html(`<span${_attr_class("_f2")}>${_escape(win$1.window)}${_el_resume($scope2_id, "d", $sg__input_agent)}</span><span${_attr_class(["_f3", win$1.used_percent >= 90 ? "_dG" : win$1.used_percent >= 70 ? "_dF" : win$1.used_percent >= 40 ? "_dE" : "_dD"])}>${_escape(pctText(win$1.used_percent))}${_el_resume($scope2_id, "f", $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
6318
+ _html(`<span${_attr_class("_fr")}>${_escape(win$1.window)}${_el_resume($scope2_id, "d", $sg__input_agent)}</span><span${_attr_class(["_fs", win$1.used_percent >= 90 ? "_ds" : win$1.used_percent >= 70 ? "_dr" : win$1.used_percent >= 40 ? "_dq" : "_dp"])}>${_escape(pctText(win$1.used_percent))}${_el_resume($scope2_id, "f", $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
6323
6319
  $si__input_agent && writeScope($scope2_id, {});
6324
6320
  }, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
6325
6321
  $si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
@@ -6350,12 +6346,12 @@ var icon_edit_default = _template("X", (input) => {
6350
6346
  });
6351
6347
  _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
6352
6348
  });
6353
- var prChip = "_hs _s _hr";
6354
- var portChip = "_ht _s _hr";
6349
+ var prChip = "_hq _s _hp";
6350
+ var portChip = "_hr _s _hp";
6355
6351
  var prState = {
6356
- open: "_hx",
6357
- merged: "_hy",
6358
- closed: "_hz"
6352
+ open: "_hv",
6353
+ merged: "_hw",
6354
+ closed: "_hx"
6359
6355
  };
6360
6356
  //#endregion
6361
6357
  //#region src/tags/side-nav-chips.marko
@@ -6427,7 +6423,7 @@ var side_nav_chips_default = _template("w", (input) => {
6427
6423
  const name = repo.full_name.split("/").at(-1);
6428
6424
  return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel(repo.full_name) : name;
6429
6425
  }, "w4", $scope1_id);
6430
- _html(`<div${_attr_class("_hq")}>`);
6426
+ _html(`<div${_attr_class("_ho")}>`);
6431
6427
  _for_of(repos, (repo) => {
6432
6428
  const $scope2_id = _scope_id();
6433
6429
  const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
@@ -6443,11 +6439,11 @@ var side_nav_chips_default = _template("w", (input) => {
6443
6439
  [prState.merged]: pr.state === "MERGED",
6444
6440
  [prState.closed]: pr.state === "CLOSED"
6445
6441
  }
6446
- ])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["_hu", { ["_hB"]: !open }])}${_attr("href", pr.url)} target=_blank rel=noopener>${_escape(repoLabel$1(repo))}${_el_resume($scope3_id, "c")}#<!>${_escape(pr.number)}${_el_resume($scope3_id, "d")}</a>${_el_resume($scope3_id, "b")}`);
6442
+ ])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["_hs", { ["_hz"]: !open }])}${_attr("href", pr.url)} target=_blank rel=noopener>${_escape(repoLabel$1(repo))}${_el_resume($scope3_id, "c")}#<!>${_escape(pr.number)}${_el_resume($scope3_id, "d")}</a>${_el_resume($scope3_id, "b")}`);
6447
6443
  _if(() => {
6448
6444
  if (open) {
6449
6445
  const $scope4_id = _scope_id();
6450
- _html(`<a${_attr_class(["_hu", "_hv"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr.number}`)}`)}${_attr("title", `Review #${pr.number} changes`)}>`);
6446
+ _html(`<a${_attr_class(["_hs", "_ht"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr.number}`)}`)}${_attr("title", `Review #${pr.number} changes`)}>`);
6451
6447
  icon_diff_default({ size: 12 });
6452
6448
  _html(`</a>${_el_resume($scope4_id, "a")}`);
6453
6449
  _subscribe($for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, {})));
@@ -6455,9 +6451,9 @@ var side_nav_chips_default = _template("w", (input) => {
6455
6451
  } else {
6456
6452
  const $scope6_id = _scope_id();
6457
6453
  _html(`<button type=button${_attr_class([
6458
- "_hu",
6459
- "_hv",
6460
- "_hw"
6454
+ "_hs",
6455
+ "_ht",
6456
+ "_hu"
6461
6457
  ])}${_attr("title", `Dismiss #${pr.number}`)}>`);
6462
6458
  icon_xmark_default({ size: 12 });
6463
6459
  _html(`</button>${_el_resume($scope6_id, "a")}`);
@@ -6478,10 +6474,10 @@ var side_nav_chips_default = _template("w", (input) => {
6478
6474
  }, "full_name", $scope1_id, "b");
6479
6475
  _for_of(ports, (p) => {
6480
6476
  const $scope5_id = _scope_id();
6481
- _html(`<span${_attr_class(["_s", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["_hu", "_hA"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${p.port}`)}>:<!>${_escape(p.port)}${_el_resume($scope5_id, "c")}</button>${_el_resume($scope5_id, "b")}<button type=button${_attr_class([
6477
+ _html(`<span${_attr_class(["_s", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["_hs", "_hy"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${p.port}`)}>:<!>${_escape(p.port)}${_el_resume($scope5_id, "c")}</button>${_el_resume($scope5_id, "b")}<button type=button${_attr_class([
6478
+ "_hs",
6479
+ "_ht",
6482
6480
  "_hu",
6483
- "_hv",
6484
- "_hw",
6485
6481
  { ["_q"]: armedPid === p.pid }
6486
6482
  ])}${armedPid === p.pid ? " title=Kill?" : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
6487
6483
  icon_xmark_default({ size: 12 });
@@ -6577,10 +6573,10 @@ var side_nav_item_default = _template("x", (input) => {
6577
6573
  _if(() => {
6578
6574
  if (input.rail) {
6579
6575
  const $scope2_id = _scope_id();
6580
- _html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_go"]: 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([
6576
+ _html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_gT"]: 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([
6581
6577
  "_z",
6582
6578
  phase[dot],
6583
- "_gr"
6579
+ "_gW"
6584
6580
  ])}></span>${_el_resume($scope2_id, "c", $sg__input_workspaceId__OR__input_status)}</a>${_el_resume($scope2_id, "a", _serialize_guard($scope0_reason, 3))}`);
6585
6581
  _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) })))));
6586
6582
  return 0;
@@ -6588,15 +6584,15 @@ var side_nav_item_default = _template("x", (input) => {
6588
6584
  const $scope3_id = _scope_id();
6589
6585
  const sessions$1 = input.sessions || [];
6590
6586
  const phaseLabel = dot === "working" ? "Working" : dot === "waiting" ? "Needs input" : dot === "idle" ? "Idle" : "Not running";
6591
- _html(`<section${_attr_class(["_gt", {
6592
- ["_go"]: input.current,
6587
+ _html(`<section${_attr_class(["_gY", {
6588
+ ["_gT"]: input.current,
6593
6589
  ["_5"]: input.current,
6594
- ["_gu"]: input.railPop,
6595
- ["_gs"]: input.page
6596
- }])}><div${_attr_class("_gv")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class("_gw")}><span${_attr_class([
6590
+ ["_gZ"]: input.railPop,
6591
+ ["_gX"]: input.page
6592
+ }])}><div${_attr_class("_g0")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class("_g1")}><span${_attr_class([
6597
6593
  "_z",
6598
6594
  phase[dot],
6599
- "_gJ"
6595
+ "_hd"
6600
6596
  ])}${_attr("title", phaseLabel)}></span>${_el_resume($scope3_id, "d", $sg__input_workspaceId__OR__input_status)}`);
6601
6597
  _if(() => {
6602
6598
  if (sessions$1.length === 1) {
@@ -6609,7 +6605,7 @@ var side_nav_item_default = _template("x", (input) => {
6609
6605
  icon_agent_default({
6610
6606
  agent: activeAgent(sessions$1[0]),
6611
6607
  size: 12,
6612
- class: "_gB"
6608
+ class: "_g6"
6613
6609
  });
6614
6610
  $si__input_sessions && writeScope($scope14_id, {
6615
6611
  _: _scope_with_id($scope3_id),
@@ -6619,16 +6615,16 @@ var side_nav_item_default = _template("x", (input) => {
6619
6615
  }
6620
6616
  }, $scope3_id, "e", $sg__input_sessions, $sg__input_sessions);
6621
6617
  const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length === 1 ? sessions$1[0].title || "" : `${sessions$1.length} sessions`;
6622
- _html(`<span${_attr_class("_gC")}><span${_attr_class("_gD")}>${_escape(ws$1.name)}${_el_resume($scope3_id, "h", $sg__input_workspaces__OR__input_workspaceId)}</span>`);
6618
+ _html(`<span${_attr_class("_g7")}><span${_attr_class("_g8")}>${_escape(ws$1.name)}${_el_resume($scope3_id, "h", $sg__input_workspaces__OR__input_workspaceId)}</span>`);
6623
6619
  _if(() => {
6624
6620
  if (input.page && metaText) {
6625
6621
  const $scope16_id = _scope_id();
6626
- _html(`<span${_attr_class("_gH")}>${_escape(metaText)}${_el_resume($scope16_id, "b", _serialize_guard($scope0_reason, 7))}</span>`);
6622
+ _html(`<span${_attr_class("_hb")}>${_escape(metaText)}${_el_resume($scope16_id, "b", _serialize_guard($scope0_reason, 7))}</span>`);
6627
6623
  $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) });
6628
6624
  return 0;
6629
6625
  } else if (sessions$1.length === 1 && sessions$1[0].title) {
6630
6626
  const $scope15_id = _scope_id();
6631
- _html(`<span${_attr_class("_gE")}>${_escape(sessions$1[0].title)}${_el_resume($scope15_id, "b", $sg__input_sessions)}</span>`);
6627
+ _html(`<span${_attr_class("_g9")}>${_escape(sessions$1[0].title)}${_el_resume($scope15_id, "b", $sg__input_sessions)}</span>`);
6632
6628
  $si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && writeScope($scope15_id, { _: $si__input_sessions && _scope_with_id($scope3_id) });
6633
6629
  return 1;
6634
6630
  }
@@ -6641,7 +6637,7 @@ var side_nav_item_default = _template("x", (input) => {
6641
6637
  "_I",
6642
6638
  "_R",
6643
6639
  "_K",
6644
- "_gI"
6640
+ "_hc"
6645
6641
  ])}>${input.current ? "Open" : ""}${_el_resume($scope4_id, "b", _serialize_guard($scope0_reason, 21))}</span>`);
6646
6642
  $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, {
6647
6643
  _: _scope_with_id($scope3_id),
@@ -6654,7 +6650,7 @@ var side_nav_item_default = _template("x", (input) => {
6654
6650
  _if(() => {
6655
6651
  if (!input.page) {
6656
6652
  const $scope5_id = _scope_id();
6657
- _html(`<div${_attr_class("_gx")}>`);
6653
+ _html(`<div${_attr_class("_g2")}>`);
6658
6654
  _if(() => {
6659
6655
  if (input.onNewSession) {
6660
6656
  const $scope6_id = _scope_id();
@@ -6668,7 +6664,7 @@ var side_nav_item_default = _template("x", (input) => {
6668
6664
  _html(`</button>${_el_resume($scope6_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class(sessionPop)}>`);
6669
6665
  _for_of([], (agent) => {
6670
6666
  const $scope7_id = _scope_id();
6671
- _html(`<button${_attr_class("_gn")}>`);
6667
+ _html(`<button${_attr_class("_gl")}>`);
6672
6668
  _set_serialize_reason(12);
6673
6669
  const $childScope2 = _peek_scope_id();
6674
6670
  icon_agent_default({
@@ -6703,7 +6699,7 @@ var side_nav_item_default = _template("x", (input) => {
6703
6699
  return 0;
6704
6700
  }
6705
6701
  }, $scope5_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
6706
- _html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_gp"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
6702
+ _html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_gU"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
6707
6703
  icon_manage_default({ size: 12 });
6708
6704
  _html(`</a>${_el_resume($scope5_id, "d", _serialize_guard($scope0_reason, 8))}</div>`);
6709
6705
  _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, {
@@ -6713,7 +6709,7 @@ var side_nav_item_default = _template("x", (input) => {
6713
6709
  return 0;
6714
6710
  }
6715
6711
  }, $scope3_id, "k", $sg__input_page, $sg__input_page, 1, 0, 1);
6716
- _html(`</div><div${_attr_class("_gO")}>`);
6712
+ _html(`</div><div${_attr_class("_hi")}>`);
6717
6713
  _if(() => {
6718
6714
  if (sessions$1.length === 1 && openPlan) {
6719
6715
  const $scope11_id = _scope_id();
@@ -6721,7 +6717,7 @@ var side_nav_item_default = _template("x", (input) => {
6721
6717
  const $childScope3 = _peek_scope_id();
6722
6718
  usage_pcts_default({
6723
6719
  agent: openPlan,
6724
- class: "_gF"
6720
+ class: "_g_"
6725
6721
  });
6726
6722
  _subscribe($openPlan__closures, writeScope($scope11_id, {
6727
6723
  a: _existing_scope($childScope3),
@@ -6732,14 +6728,14 @@ var side_nav_item_default = _template("x", (input) => {
6732
6728
  }, $scope3_id, "m");
6733
6729
  _for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
6734
6730
  const $scope8_id = _scope_id();
6735
- _html(`<div${_attr_class(["_gy", { ["_go"]: s.id === input.currentTab }])}>`);
6731
+ _html(`<div${_attr_class(["_g3", { ["_gT"]: s.id === input.currentTab }])}>`);
6736
6732
  _if(() => {
6737
6733
  if (renamingId === s.id) {
6738
6734
  const $scope10_id = _scope_id();
6739
6735
  _html(`<span${_attr_class([
6740
6736
  "_z",
6741
6737
  phase[sessionPhase(s.state)],
6742
- "_gM"
6738
+ "_hg"
6743
6739
  ])}></span>${_el_resume($scope10_id, "a", $sg__input_sessions)}`);
6744
6740
  _set_serialize_reason({
6745
6741
  1: $sg__input_sessions,
@@ -6749,17 +6745,17 @@ var side_nav_item_default = _template("x", (input) => {
6749
6745
  icon_agent_default({
6750
6746
  agent: activeAgent(s),
6751
6747
  size: 13,
6752
- class: "_gQ"
6748
+ class: "_hk"
6753
6749
  });
6754
6750
  _html(`<input${_attr_input_value($scope10_id, "c", renameValue, _resume((_new_renameValue) => {
6755
6751
  renameValue = _new_renameValue;
6756
- }, "x0", $scope10_id))}${_attr_class(["_U", "_gN"])} aria-label="Session name">${_el_resume($scope10_id, "c")}`);
6752
+ }, "x0", $scope10_id))}${_attr_class(["_U", "_hh"])} aria-label="Session name">${_el_resume($scope10_id, "c")}`);
6757
6753
  _script($scope10_id, "x5");
6758
6754
  _subscribe($renameValue__closures, writeScope($scope10_id, { b: $si__input_sessions && _existing_scope($childScope4) }));
6759
6755
  return 0;
6760
6756
  } else {
6761
6757
  const $scope9_id = _scope_id();
6762
- _html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("_gP")}><span${_attr_class(["_z", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope9_id, "b", $sg__input_sessions)}`);
6758
+ _html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("_hj")}><span${_attr_class(["_z", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope9_id, "b", $sg__input_sessions)}`);
6763
6759
  _set_serialize_reason({
6764
6760
  1: $sg__input_sessions,
6765
6761
  2: $sg__input_sessions
@@ -6768,9 +6764,9 @@ var side_nav_item_default = _template("x", (input) => {
6768
6764
  icon_agent_default({
6769
6765
  agent: activeAgent(s),
6770
6766
  size: 13,
6771
- class: "_gQ"
6767
+ class: "_hk"
6772
6768
  });
6773
- _html(`<span${_attr_class("_gK")}>${_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("_gL")}><button${_attr_class(rowIcon)} title="Rename session">`);
6769
+ _html(`<span${_attr_class("_he")}>${_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("_hf")}><button${_attr_class(rowIcon)} title="Rename session">`);
6774
6770
  icon_edit_default({ size: 12 });
6775
6771
  _html(`</button>${_el_resume($scope9_id, "g")}<button${_attr_class([close, { ["_q"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
6776
6772
  icon_xmark_default({ size: 12 });
@@ -6782,7 +6778,7 @@ var side_nav_item_default = _template("x", (input) => {
6782
6778
  const $childScope6 = _peek_scope_id();
6783
6779
  usage_pcts_default({
6784
6780
  agent: openPlan,
6785
- class: "_gG"
6781
+ class: "_ha"
6786
6782
  });
6787
6783
  _subscribe($openPlan__closures, writeScope($scope12_id, {
6788
6784
  a: _existing_scope($childScope6),
@@ -6929,7 +6925,7 @@ var icon_sidebar_collapse_default = _template("hb", (input) => {
6929
6925
  //#endregion
6930
6926
  //#region src/tags/side-nav.marko
6931
6927
  var side_nav_default = _template("y", (input) => {
6932
- const $scope0_reason = _scope_reason(), $sg__input_instanceName = _serialize_guard($scope0_reason, 12), $sg__input_setupReady = _serialize_guard($scope0_reason, 13), $sg__input_instanceAccent = _serialize_guard($scope0_reason, 11), $sg__input_workspace__OR__input_allWorkspaces = _serialize_guard($scope0_reason, 0), $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus = _serialize_guard($scope0_reason, 3), $sg__input_agents = _serialize_guard($scope0_reason, 15), $si__input_workspace = _serialize_if($scope0_reason, 4), $si__input_workspace__OR__input_allWorkspaces = _serialize_if($scope0_reason, 0), $si__input_allStatus = _serialize_if($scope0_reason, 10), $si__input_setupReady = _serialize_if($scope0_reason, 13), $si__input_instanceName = _serialize_if($scope0_reason, 12), $si__input_instanceAccent = _serialize_if($scope0_reason, 11), $si__input_onSelectWorkspace = _serialize_if($scope0_reason, 14), $si__input_agents = _serialize_if($scope0_reason, 15), $si__input_onNewSession = _serialize_if($scope0_reason, 16), $si__input_onReviewOpened = _serialize_if($scope0_reason, 17), $si__input_sessions = _serialize_if($scope0_reason, 18), $si__input_onRenameSession = _serialize_if($scope0_reason, 19), $si__input_onCloseSession = _serialize_if($scope0_reason, 20), $si__input_tab__OR__input_tabChange = _serialize_if($scope0_reason, 1);
6928
+ const $scope0_reason = _scope_reason(), $sg__input_instanceName = _serialize_guard($scope0_reason, 12), $sg__input_setupReady = _serialize_guard($scope0_reason, 13), $sg__input_instanceAccent = _serialize_guard($scope0_reason, 11), $sg__input_workspace__OR__input_allWorkspaces = _serialize_guard($scope0_reason, 0), $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus = _serialize_guard($scope0_reason, 3), $sg__input_agents = _serialize_guard($scope0_reason, 14), $si__input_workspace = _serialize_if($scope0_reason, 4), $si__input_workspace__OR__input_allWorkspaces = _serialize_if($scope0_reason, 0), $si__input_allStatus = _serialize_if($scope0_reason, 10), $si__input_setupReady = _serialize_if($scope0_reason, 13), $si__input_instanceName = _serialize_if($scope0_reason, 12), $si__input_instanceAccent = _serialize_if($scope0_reason, 11), $si__input_agents = _serialize_if($scope0_reason, 14), $si__input_onNewSession = _serialize_if($scope0_reason, 15), $si__input_onReviewOpened = _serialize_if($scope0_reason, 16), $si__input_onReviewOther = _serialize_if($scope0_reason, 17), $si__input_sessions = _serialize_if($scope0_reason, 18), $si__input_onRenameSession = _serialize_if($scope0_reason, 19), $si__input_onCloseSession = _serialize_if($scope0_reason, 20), $si__input_tab__OR__input_tabChange = _serialize_if($scope0_reason, 1);
6933
6929
  const $scope0_id = _scope_id();
6934
6930
  const $input_instanceName__closures = /* @__PURE__ */ new Set();
6935
6931
  const $iconSrc__closures = /* @__PURE__ */ new Set();
@@ -6937,10 +6933,10 @@ var side_nav_default = _template("y", (input) => {
6937
6933
  const $ws_id__closures = /* @__PURE__ */ new Set();
6938
6934
  const $workspaces__closures = /* @__PURE__ */ new Set();
6939
6935
  const $allStatus__closures = /* @__PURE__ */ new Set();
6940
- const $input_onSelectWorkspace__closures = /* @__PURE__ */ new Set();
6941
6936
  const $input_agents__closures = /* @__PURE__ */ new Set();
6942
6937
  const $input_onNewSession__closures = /* @__PURE__ */ new Set();
6943
6938
  const $input_onReviewOpened__closures = /* @__PURE__ */ new Set();
6939
+ const $input_onReviewOther__closures = /* @__PURE__ */ new Set();
6944
6940
  const $input_sessions__closures = /* @__PURE__ */ new Set();
6945
6941
  const $input_onRenameSession__closures = /* @__PURE__ */ new Set();
6946
6942
  const $input_onCloseSession__closures = /* @__PURE__ */ new Set();
@@ -6978,34 +6974,34 @@ var side_nav_default = _template("y", (input) => {
6978
6974
  const iconSrc = `/api/instance/icon${input.instanceAccent ? `?v=${input.instanceAccent.slice(1)}` : ""}`;
6979
6975
  const otherIds = itemIds.filter((id) => id !== ws.id);
6980
6976
  const listIds = isPage ? [ws.id, ...otherIds] : itemIds;
6981
- _html(`<aside${_attr_class(["_d3", {
6982
- ["_d1"]: !navOpen,
6983
- ["_d2"]: isPage
6977
+ _html(`<aside${_attr_class(["_dY", {
6978
+ ["_dW"]: !navOpen,
6979
+ ["_dX"]: isPage
6984
6980
  }])}${_attr("hidden", view === "diff")}>`);
6985
6981
  _if(() => {
6986
6982
  if (isPage) {
6987
6983
  const $scope1_id = _scope_id();
6988
- _html(`<header${_attr_class("_d6")}><div${_attr_class("_ee")}>`);
6984
+ _html(`<header${_attr_class("_d1")}><div${_attr_class("_d_")}>`);
6989
6985
  _if(() => {
6990
6986
  if (input.instanceName) {
6991
6987
  const $scope2_id = _scope_id();
6992
- _html(`<div${_attr_class("_eb")} title="This work server (Settings → Appearance)"><img${_attr_class("_ec")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_ed")}>${_escape(input.instanceName)}${_el_resume($scope2_id, "d", $sg__input_instanceName)}</span></div>`);
6988
+ _html(`<div${_attr_class("_d7")} title="This work server (Settings → Appearance)"><img${_attr_class("_d8")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_d9")}>${_escape(input.instanceName)}${_el_resume($scope2_id, "d", $sg__input_instanceName)}</span></div>`);
6993
6989
  _subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
6994
6990
  return 0;
6995
6991
  }
6996
6992
  }, $scope1_id, "c", $sg__input_instanceName, $sg__input_instanceName, 1, 0, 1);
6997
- _html(`<h1${_attr_class("_d7")}>Workspaces</h1></div><div${_attr_class("_d8")}>`);
6993
+ _html(`<h1${_attr_class("_d2")}>Workspaces</h1></div><div${_attr_class("_d3")}>`);
6998
6994
  _if(() => {}, $scope1_id, "f", 1, 1, 1, 0, 1);
6999
6995
  _html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
7000
6996
  iconBtn$1,
7001
- "_d9",
7002
- { ["_dY"]: view === "settings" }
6997
+ "_d4",
6998
+ { ["_dT"]: view === "settings" }
7003
6999
  ])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
7004
7000
  icon_settings_default({ size: 16 });
7005
7001
  _if(() => {
7006
7002
  if (input.setupReady === false) {
7007
7003
  const $scope12_id = _scope_id();
7008
- _html(`<span${_attr_class(["_z", "_d0"])} title="Machine setup incomplete"></span>`);
7004
+ _html(`<span${_attr_class(["_z", "_dV"])} title="Machine setup incomplete"></span>`);
7009
7005
  $si__input_setupReady && writeScope($scope12_id, {});
7010
7006
  return 0;
7011
7007
  }
@@ -7018,18 +7014,18 @@ var side_nav_default = _template("y", (input) => {
7018
7014
  _if(() => {
7019
7015
  if (!isPage && input.instanceName) {
7020
7016
  const $scope3_id = _scope_id();
7021
- _html(`<div${_attr_class("_eb")} title="This work server (Settings → Appearance)"><img${_attr_class("_ec")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope3_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_ed")}>${_escape(input.instanceName)}${_el_resume($scope3_id, "d", $sg__input_instanceName)}</span></div>`);
7017
+ _html(`<div${_attr_class("_d7")} title="This work server (Settings → Appearance)"><img${_attr_class("_d8")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope3_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_d9")}>${_escape(input.instanceName)}${_el_resume($scope3_id, "d", $sg__input_instanceName)}</span></div>`);
7022
7018
  writeScope($scope3_id, {});
7023
7019
  return 0;
7024
7020
  }
7025
7021
  }, $scope0_id, "c", 1, 1, 1, 0, 1);
7026
- _html(`<div${_attr_class("_ef")}>`);
7022
+ _html(`<div${_attr_class("_ea")}>`);
7027
7023
  _for_of(listIds, (wsId) => {
7028
7024
  const $scope4_id = _scope_id();
7029
7025
  _if(() => {
7030
7026
  if (isPage && wsId === ws.id) {
7031
7027
  const $scope13_id = _scope_id();
7032
- _html(`<h2${_attr_class(["_bA", "_d_"])}>Current</h2>`);
7028
+ _html(`<h2${_attr_class(["_bJ", "_d5"])}>Current</h2>`);
7033
7029
  writeScope($scope13_id, {});
7034
7030
  return 0;
7035
7031
  }
@@ -7037,7 +7033,7 @@ var side_nav_default = _template("y", (input) => {
7037
7033
  _if(() => {
7038
7034
  if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
7039
7035
  const $scope14_id = _scope_id();
7040
- _html(`<h2${_attr_class(["_bA", "_d_"])}>Other workspaces</h2>`);
7036
+ _html(`<h2${_attr_class(["_bJ", "_d5"])}>Other workspaces</h2>`);
7041
7037
  writeScope($scope14_id, {});
7042
7038
  return 0;
7043
7039
  }
@@ -7097,10 +7093,7 @@ var side_nav_default = _template("y", (input) => {
7097
7093
  if (wsId === ws.id) {
7098
7094
  if (view === "diff") view = "term";
7099
7095
  else input.onReviewOpened?.();
7100
- } else {
7101
- requestDiff(wsId);
7102
- input.onSelectWorkspace?.(wsId);
7103
- }
7096
+ } else input.onReviewOther?.(wsId);
7104
7097
  }, "y4", $scope4_id),
7105
7098
  sessions: wsId === ws.id && input.sessions ? input.sessions : allStatus[wsId]?.sessions || [],
7106
7099
  currentTab: wsId === ws.id && view === "term" ? tab : null,
@@ -7124,7 +7117,7 @@ var side_nav_default = _template("y", (input) => {
7124
7117
  railHover = null;
7125
7118
  }, 150);
7126
7119
  }, "y6", $scope5_id);
7127
- _html(`<div${_attr_class("_eg")}>`);
7120
+ _html(`<div${_attr_class("_eb")}>`);
7128
7121
  _for_of(itemIds, (wsId, i) => {
7129
7122
  const $scope6_id = _scope_id();
7130
7123
  _html("<span>");
@@ -7178,7 +7171,7 @@ var side_nav_default = _template("y", (input) => {
7178
7171
  if (railHover) {
7179
7172
  const $scope7_id = _scope_id();
7180
7173
  const hoverId = railHover.id;
7181
- _html(`<div${_attr_class(["_4", "_ej"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
7174
+ _html(`<div${_attr_class(["_4", "_ee"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
7182
7175
  _set_serialize_reason({
7183
7176
  0: 1,
7184
7177
  1: 1,
@@ -7233,10 +7226,7 @@ var side_nav_default = _template("y", (input) => {
7233
7226
  if (hoverId === ws.id) {
7234
7227
  if (view === "diff") view = "term";
7235
7228
  else input.onReviewOpened?.();
7236
- } else {
7237
- requestDiff(hoverId);
7238
- input.onSelectWorkspace?.(hoverId);
7239
- }
7229
+ } else input.onReviewOther?.(hoverId);
7240
7230
  }, "y10", $scope7_id),
7241
7231
  sessions: hoverId === ws.id && input.sessions ? input.sessions : allStatus[hoverId]?.sessions || [],
7242
7232
  currentTab: hoverId === ws.id && view === "term" ? tab : null,
@@ -7245,12 +7235,12 @@ var side_nav_default = _template("y", (input) => {
7245
7235
  });
7246
7236
  _html(`</div>${_el_resume($scope7_id, "a")}`);
7247
7237
  _script($scope7_id, "y13");
7248
- _subscribe($si__input_allStatus && $allStatus__closures, _subscribe($si__input_workspace__OR__input_allWorkspaces && $workspaces__closures, _subscribe($view__closures, _subscribe($si__input_tab__OR__input_tabChange && $tab__closures, _subscribe($si__input_workspace && $ws_id__closures, _subscribe($si__input_onCloseSession && $input_onCloseSession__closures, _subscribe($si__input_onRenameSession && $input_onRenameSession__closures, _subscribe($si__input_sessions && $input_sessions__closures, _subscribe($si__input_onReviewOpened && $input_onReviewOpened__closures, _subscribe($si__input_onNewSession && $input_onNewSession__closures, _subscribe($si__input_agents && $input_agents__closures, _subscribe($si__input_onSelectWorkspace && $input_onSelectWorkspace__closures, writeScope($scope7_id, {
7238
+ _subscribe($si__input_allStatus && $allStatus__closures, _subscribe($si__input_workspace__OR__input_allWorkspaces && $workspaces__closures, _subscribe($view__closures, _subscribe($si__input_tab__OR__input_tabChange && $tab__closures, _subscribe($si__input_workspace && $ws_id__closures, _subscribe($si__input_onCloseSession && $input_onCloseSession__closures, _subscribe($si__input_onRenameSession && $input_onRenameSession__closures, _subscribe($si__input_sessions && $input_sessions__closures, _subscribe($si__input_onReviewOther && $input_onReviewOther__closures, _subscribe($si__input_onReviewOpened && $input_onReviewOpened__closures, _subscribe($si__input_onNewSession && $input_onNewSession__closures, _subscribe($si__input_agents && $input_agents__closures, writeScope($scope7_id, {
7249
7239
  d: hoverId,
7250
7240
  b: _existing_scope($childScope3),
7251
- Cb4: $si__input_workspace && 1,
7252
- Cbc: $si__input_workspace__OR__input_allWorkspaces && 1,
7253
- Cbd: $si__input_allStatus && 1
7241
+ Cb5: $si__input_workspace && 1,
7242
+ Cbd: $si__input_workspace__OR__input_allWorkspaces && 1,
7243
+ Cbe: $si__input_allStatus && 1
7254
7244
  })))))))))))));
7255
7245
  return 0;
7256
7246
  }
@@ -7266,7 +7256,7 @@ var side_nav_default = _template("y", (input) => {
7266
7256
  return 0;
7267
7257
  }
7268
7258
  }, $scope0_id, "e");
7269
- _html(`<div${_attr_class("_eh")}>`);
7259
+ _html(`<div${_attr_class("_ec")}>`);
7270
7260
  _if(() => {
7271
7261
  if (isPage) {
7272
7262
  const $scope9_id = _scope_id();
@@ -7274,7 +7264,7 @@ var side_nav_default = _template("y", (input) => {
7274
7264
  "_o",
7275
7265
  "_p",
7276
7266
  btnLg,
7277
- "_ea"
7267
+ "_d6"
7278
7268
  ])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
7279
7269
  icon_folder_plus_default({ size: 16 });
7280
7270
  _html(` New workspace</a>${_el_resume($scope9_id, "a")}`);
@@ -7296,19 +7286,19 @@ var side_nav_default = _template("y", (input) => {
7296
7286
  return 1;
7297
7287
  }
7298
7288
  }, $scope8_id, "a", 1, 1, 1, "</button>", 1);
7299
- _html(`<div${_attr_class(["_y", "_ei"])}></div>`);
7289
+ _html(`<div${_attr_class(["_y", "_ed"])}></div>`);
7300
7290
  _if(() => {}, $scope8_id, "c", 1, 1, 1, 0, 1);
7301
- _html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["_dY"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
7291
+ _html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["_dT"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
7302
7292
  icon_settings_default({ size: 15 });
7303
7293
  _if(() => {
7304
7294
  if (input.setupReady === false) {
7305
7295
  const $scope17_id = _scope_id();
7306
- _html(`<span${_attr_class(["_z", "_d0"])} title="Machine setup incomplete"></span>`);
7296
+ _html(`<span${_attr_class(["_z", "_dV"])} title="Machine setup incomplete"></span>`);
7307
7297
  $si__input_setupReady && writeScope($scope17_id, {});
7308
7298
  return 0;
7309
7299
  }
7310
7300
  }, $scope8_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
7311
- _html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn$1, { ["_dY"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
7301
+ _html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn$1, { ["_dT"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
7312
7302
  icon_folder_plus_default({ size: 16 });
7313
7303
  _html(`</a>${_el_resume($scope8_id, "g")}`);
7314
7304
  _script($scope8_id, "y15");
@@ -7333,51 +7323,52 @@ var side_nav_default = _template("y", (input) => {
7333
7323
  x: input.agents,
7334
7324
  y: input.onNewSession,
7335
7325
  z: input.onReviewOpened,
7336
- a0: input.sessions,
7337
- a1: input.onRenameSession,
7338
- a2: input.onCloseSession,
7339
- a3: _serialize_if($scope0_reason, 9) && ws,
7340
- a5: ws?.id,
7341
- a7: tab,
7342
- a9: view,
7343
- ab: navOpen,
7344
- ac: notifyOn,
7345
- ae: canPush,
7346
- af: leaveNav,
7347
- ag: toggleNotify,
7348
- ah: itemIds,
7349
- aj: workspaces,
7350
- ak: allStatus,
7351
- am: isPage,
7352
- ap: backHref,
7353
- aq: iconSrc,
7354
- ar: otherIds,
7355
- at: otherIds?.[0],
7356
- aa: input.viewChange || void 0,
7357
- av: $si__input_instanceName && $input_instanceName__closures,
7358
- bg: $si__input_instanceAccent && $iconSrc__closures,
7359
- b8: $notifyOn__closures,
7360
- b4: $si__input_workspace && $ws_id__closures,
7361
- bc: $si__input_workspace__OR__input_allWorkspaces && $workspaces__closures,
7362
- bd: $si__input_allStatus && $allStatus__closures,
7363
- ax: $si__input_onSelectWorkspace && $input_onSelectWorkspace__closures,
7326
+ a0: input.onReviewOther,
7327
+ a1: input.sessions,
7328
+ a2: input.onRenameSession,
7329
+ a3: input.onCloseSession,
7330
+ a4: _serialize_if($scope0_reason, 9) && ws,
7331
+ a6: ws?.id,
7332
+ a8: tab,
7333
+ aa: view,
7334
+ ac: navOpen,
7335
+ ad: notifyOn,
7336
+ af: canPush,
7337
+ ag: leaveNav,
7338
+ ah: toggleNotify,
7339
+ ai: itemIds,
7340
+ ak: workspaces,
7341
+ al: allStatus,
7342
+ an: isPage,
7343
+ aq: backHref,
7344
+ ar: iconSrc,
7345
+ as: otherIds,
7346
+ au: otherIds?.[0],
7347
+ ab: input.viewChange || void 0,
7348
+ aw: $si__input_instanceName && $input_instanceName__closures,
7349
+ bh: $si__input_instanceAccent && $iconSrc__closures,
7350
+ b9: $notifyOn__closures,
7351
+ b5: $si__input_workspace && $ws_id__closures,
7352
+ bd: $si__input_workspace__OR__input_allWorkspaces && $workspaces__closures,
7353
+ be: $si__input_allStatus && $allStatus__closures,
7364
7354
  ay: $si__input_agents && $input_agents__closures,
7365
7355
  az: $si__input_onNewSession && $input_onNewSession__closures,
7366
7356
  b0: $si__input_onReviewOpened && $input_onReviewOpened__closures,
7367
- b1: $si__input_sessions && $input_sessions__closures,
7368
- b2: $si__input_onRenameSession && $input_onRenameSession__closures,
7369
- b3: $si__input_onCloseSession && $input_onCloseSession__closures,
7370
- b5: $si__input_tab__OR__input_tabChange && $tab__closures,
7371
- b6: $view__closures
7357
+ b1: $si__input_onReviewOther && $input_onReviewOther__closures,
7358
+ b2: $si__input_sessions && $input_sessions__closures,
7359
+ b3: $si__input_onRenameSession && $input_onRenameSession__closures,
7360
+ b4: $si__input_onCloseSession && $input_onCloseSession__closures,
7361
+ b6: $si__input_tab__OR__input_tabChange && $tab__closures,
7362
+ b7: $view__closures
7372
7363
  });
7373
7364
  _resume_branch($scope0_id);
7374
7365
  });
7375
7366
  var iconBtn = "_0 _j";
7376
- var sectionCount = "_bn _I _J";
7377
- var content = "_dK _bD";
7378
- var pageMeta = "_dL _bI";
7379
- var pathMeta = "_dO _x";
7380
- var dangerHint = "_dU _S";
7367
+ var sectionCount = "_bw _I _J";
7368
+ var content = "_dI _bM";
7369
+ var pageMeta = "_dJ _bR";
7370
+ var pathMeta = "_dM _x";
7371
+ var dangerHint = "_dS _S";
7381
7372
  //#endregion
7382
7373
  //#region src/tags/manage-workspace.marko
7383
7374
  var api$2;
@@ -7476,7 +7467,7 @@ var manage_workspace_default = _template("o", (input) => {
7476
7467
  setTimeout(() => loadProcs(void 0), 500);
7477
7468
  }, "o5", $scope0_id);
7478
7469
  const titleId = _id();
7479
- _html(`<div${_attr_class("_bB")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bC")}><div${_attr_class(content)}>`);
7470
+ _html(`<div${_attr_class("_bK")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bL")}><div${_attr_class(content)}>`);
7480
7471
  _set_serialize_reason(30);
7481
7472
  const $childScope = _peek_scope_id();
7482
7473
  page_head_default({
@@ -7489,7 +7480,7 @@ var manage_workspace_default = _template("o", (input) => {
7489
7480
  meta: attrTag({ content: _content_resume("o11", () => {
7490
7481
  _scope_reason();
7491
7482
  const $scope8_id = _scope_id();
7492
- _html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_dM")}>${_escape(ws.name)}${_el_resume($scope8_id, "c")}</span>`);
7483
+ _html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_dK")}>${_escape(ws.name)}${_el_resume($scope8_id, "c")}</span>`);
7493
7484
  _if(() => {
7494
7485
  if (ws.status !== "active") {
7495
7486
  const $scope11_id = _scope_id();
@@ -7498,7 +7489,7 @@ var manage_workspace_default = _template("o", (input) => {
7498
7489
  return 0;
7499
7490
  }
7500
7491
  }, $scope8_id, "d", 1, 1, 1, 0, 1);
7501
- _html(`<span${_attr_class("_dN")} 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")}`);
7492
+ _html(`<span${_attr_class("_dL")} 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")}`);
7502
7493
  _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) })))));
7503
7494
  _resume_branch($scope8_id);
7504
7495
  }, $scope0_id) })
@@ -7526,22 +7517,22 @@ var manage_workspace_default = _template("o", (input) => {
7526
7517
  _if(() => {
7527
7518
  if (pendingAction && actionStep) {
7528
7519
  const $scope7_id = _scope_id();
7529
- _html(`<p${_attr_class("_bk")}><span${_attr_class("_F")}></span><!>${_escape(actionStep)}${_el_resume($scope7_id, "c")}</p>`);
7520
+ _html(`<p${_attr_class("_bt")}><span${_attr_class("_F")}></span><!>${_escape(actionStep)}${_el_resume($scope7_id, "c")}</p>`);
7530
7521
  writeScope($scope7_id, {});
7531
7522
  return 0;
7532
7523
  }
7533
7524
  }, $scope0_id, "f", 1, 1, 1, 0, 1);
7534
- _html(`<section${_attr_class("_bl")}><div${_attr_class("_bm")}><h2${_attr_class("_bA")}>Repos</h2><span${_attr_class(sectionCount)}>${_escape(ws.repos.length)}${_el_resume($scope0_id, "k")}</span><div${_attr_class("_y")}></div><button${_attr_class(iconBtn)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
7525
+ _html(`<section${_attr_class("_bu")}><div${_attr_class("_bv")}><h2${_attr_class("_bJ")}>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)}>`);
7535
7526
  _set_serialize_reason(1);
7536
7527
  const $childScope2 = _peek_scope_id();
7537
7528
  icon_refresh_default({
7538
7529
  size: 14,
7539
7530
  class: catalogRefreshing && "_E"
7540
7531
  });
7541
- _html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("_bo")}>`);
7532
+ _html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("_bx")}>`);
7542
7533
  _for_of(ws.repos, (row) => {
7543
7534
  const $scope1_id = _scope_id();
7544
- _html(`<li${_attr_class("_bq")}><div${_attr_class("_br")}><span${_attr_class(["_bs", "_x"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_bt")}><a${_attr_class(["_bu", "_dQ"])}${_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")}`);
7535
+ _html(`<li${_attr_class("_bz")}><div${_attr_class("_bA")}><span${_attr_class(["_bB", "_x"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_bC")}><a${_attr_class(["_bD", "_dO"])}${_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")}`);
7545
7536
  _if(() => {
7546
7537
  if (row.base_branch !== row.default_branch) {
7547
7538
  const $scope12_id = _scope_id();
@@ -7562,7 +7553,7 @@ var manage_workspace_default = _template("o", (input) => {
7562
7553
  } else {
7563
7554
  const $scope6_id = _scope_id();
7564
7555
  _html(`<button${_attr_class([
7565
- "_bv",
7556
+ "_bE",
7566
7557
  "_2",
7567
7558
  "_3",
7568
7559
  { ["_q"]: confirmingRemove === row.full_name }
@@ -7595,19 +7586,19 @@ var manage_workspace_default = _template("o", (input) => {
7595
7586
  }, "full_name", $scope0_id, "p", 1, 1, 1, 0, 1);
7596
7587
  _for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
7597
7588
  const $scope16_id = _scope_id();
7598
- _html(`<li${_attr_class(["_bq", "_bp"])}><span${_attr_class("_F")}></span><div${_attr_class("_br")}><span${_attr_class("_bu")}>Adding <!>${_escape(name)}${_el_resume($scope16_id, "e")}…</span></div></li>`);
7589
+ _html(`<li${_attr_class(["_bz", "_by"])}><span${_attr_class("_F")}></span><div${_attr_class("_bA")}><span${_attr_class("_bD")}>Adding <!>${_escape(name)}${_el_resume($scope16_id, "e")}…</span></div></li>`);
7599
7590
  writeScope($scope16_id, {});
7600
7591
  }, (n) => n, $scope0_id, "q", 1, 1, 1, 0, 1);
7601
7592
  _html("</ul>");
7602
7593
  _if(() => {
7603
7594
  if (!ws.repos.length && !busy.size) {
7604
7595
  const $scope17_id = _scope_id();
7605
- _html(`<p${_attr_class("_bw")}>No repos yet. Search below to add one.</p>`);
7596
+ _html(`<p${_attr_class("_bF")}>No repos yet. Search below to add one.</p>`);
7606
7597
  writeScope($scope17_id, {});
7607
7598
  return 0;
7608
7599
  }
7609
7600
  }, $scope0_id, "r", 1, 1, 1, 0, 1);
7610
- _html(`<div${_attr_class("_dP")}>`);
7601
+ _html(`<div${_attr_class("_dN")}>`);
7611
7602
  const $childScope3 = _peek_scope_id();
7612
7603
  let refreshCatalog = repo_picker_default({
7613
7604
  exclude: inWorkspace,
@@ -7627,17 +7618,17 @@ var manage_workspace_default = _template("o", (input) => {
7627
7618
  _if(() => {
7628
7619
  if (running.length) {
7629
7620
  const $scope9_id = _scope_id();
7630
- _html(`<section${_attr_class("_bl")}><div${_attr_class("_bm")}><h2${_attr_class("_bA")}>Running</h2><span${_attr_class(sectionCount)}>${_escape(running.length)}${_el_resume($scope9_id, "e")}</span></div><ul${_attr_class("_bo")}>`);
7621
+ _html(`<section${_attr_class("_bu")}><div${_attr_class("_bv")}><h2${_attr_class("_bJ")}>Running</h2><span${_attr_class(sectionCount)}>${_escape(running.length)}${_el_resume($scope9_id, "e")}</span></div><ul${_attr_class("_bx")}>`);
7631
7622
  _for_of(running, (p) => {
7632
7623
  const $scope10_id = _scope_id();
7633
- _html(`<li${_attr_class("_bq")}><div${_attr_class("_br")}${_attr("title", p.args)}><span${_attr_class(["_bs", "_x"])}>${_escape(p.cmd)}${_el_resume($scope10_id, "d")}</span>`);
7624
+ _html(`<li${_attr_class("_bz")}><div${_attr_class("_bA")}${_attr("title", p.args)}><span${_attr_class(["_bB", "_x"])}>${_escape(p.cmd)}${_el_resume($scope10_id, "d")}</span>`);
7634
7625
  _if(() => {
7635
7626
  if (p.ports.length) {
7636
7627
  const $scope18_id = _scope_id();
7637
- _html(`<span${_attr_class("_bt")}>`);
7628
+ _html(`<span${_attr_class("_bC")}>`);
7638
7629
  _for_of(p.ports, (port) => {
7639
7630
  const $scope19_id = _scope_id();
7640
- _html(`<button${_attr_class(["_s", "_dR"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope19_id, "b")}</button>${_el_resume($scope19_id, "a")}`);
7631
+ _html(`<button${_attr_class(["_s", "_dP"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope19_id, "b")}</button>${_el_resume($scope19_id, "a")}`);
7641
7632
  _script($scope19_id, "o15");
7642
7633
  writeScope($scope19_id, { d: port });
7643
7634
  }, (x) => String(x), $scope18_id, "a", 1, 1, 1, "</span>", 1);
@@ -7645,7 +7636,7 @@ var manage_workspace_default = _template("o", (input) => {
7645
7636
  return 0;
7646
7637
  }
7647
7638
  }, $scope10_id, "e", 1, 1, 1, 0, 1);
7648
- _html(`</div>${_el_resume($scope10_id, "b")}<button${_attr_class(["_bv", "_2"])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
7639
+ _html(`</div>${_el_resume($scope10_id, "b")}<button${_attr_class(["_bE", "_2"])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
7649
7640
  icon_xmark_default({ size: 14 });
7650
7641
  _html(`</button>${_el_resume($scope10_id, "f")}</li>`);
7651
7642
  _script($scope10_id, "o16");
@@ -7659,7 +7650,7 @@ var manage_workspace_default = _template("o", (input) => {
7659
7650
  return 0;
7660
7651
  }
7661
7652
  }, $scope0_id, "v", 1, 1, 1, 0, 1);
7662
- _html(`<section${_attr_class(["_bl", "_dS"])}><div${_attr_class("_bm")}><h2${_attr_class("_bA")}>Workspace</h2></div><div${_attr_class("_dT")}>`);
7653
+ _html(`<section${_attr_class(["_bu", "_dQ"])}><div${_attr_class("_bv")}><h2${_attr_class("_bJ")}>Workspace</h2></div><div${_attr_class("_dR")}>`);
7663
7654
  _if(() => {
7664
7655
  if (ws.status === "active") {
7665
7656
  const $scope4_id = _scope_id();
@@ -8106,7 +8097,7 @@ var term_default = _template("B", (input) => {
8106
8097
  trapOpen = true;
8107
8098
  }
8108
8099
  }, "B14", $scope0_id);
8109
- _html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_ek")}><div${_attr_class("_el")}></div>${_el_resume($scope0_id, "b")}`);
8100
+ _html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_ef")}><div${_attr_class("_eg")}></div>${_el_resume($scope0_id, "b")}`);
8110
8101
  _if(() => {
8111
8102
  if (findOpen) {
8112
8103
  const $scope12_id = _scope_id();
@@ -8133,7 +8124,7 @@ var term_default = _template("B", (input) => {
8133
8124
  _if(() => {
8134
8125
  if (uploading) {
8135
8126
  const $scope19_id = _scope_id();
8136
- _html(`<div${_attr_class("_er")}>uploading…</div>`);
8127
+ _html(`<div${_attr_class("_em")}>uploading…</div>`);
8137
8128
  writeScope($scope19_id, {});
8138
8129
  return 0;
8139
8130
  }
@@ -8141,7 +8132,7 @@ var term_default = _template("B", (input) => {
8141
8132
  _if(() => {
8142
8133
  if (copiedFlash) {
8143
8134
  const $scope20_id = _scope_id();
8144
- _html(`<div${_attr_class("_eq")}>Copied</div>`);
8135
+ _html(`<div${_attr_class("_el")}>Copied</div>`);
8145
8136
  writeScope($scope20_id, {});
8146
8137
  return 0;
8147
8138
  }
@@ -8150,7 +8141,7 @@ var term_default = _template("B", (input) => {
8150
8141
  _if(() => {
8151
8142
  if (trapOpen) {
8152
8143
  const $scope11_id = _scope_id();
8153
- _html(`<div${_attr_class("_es")}><div${_attr_class("_et")}><p${_attr_class("_eX")}>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")}`);
8144
+ _html(`<div${_attr_class("_en")}><div${_attr_class("_eo")}><p${_attr_class("_eS")}>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")}`);
8154
8145
  _script($scope11_id, "B25");
8155
8146
  _script($scope11_id, "B26");
8156
8147
  writeScope($scope11_id, {});
@@ -8253,7 +8244,7 @@ var work_view_default = _template("F", (input) => {
8253
8244
  let DiffView = null;
8254
8245
  const loadDiffView = _resume(() => {
8255
8246
  if (DiffView) return;
8256
- import("./_BuETZvgo.js").then((m) => {
8247
+ import("./_CnOgSoC0.js").then((m) => {
8257
8248
  DiffView = m.default;
8258
8249
  });
8259
8250
  }, "F6", $scope0_id);
@@ -8319,11 +8310,12 @@ var work_view_default = _template("F", (input) => {
8319
8310
  const applyView = _resume((v) => {
8320
8311
  if (v.view === "diff") {
8321
8312
  if (v.scope !== void 0) reviewScope = v.scope ?? null;
8322
- openDiff(v.pr, v.file);
8313
+ openDiff(v.pr ?? void 0, v.file ?? void 0);
8323
8314
  } else if (v.view === "manage") openManage();
8324
8315
  else if (v.view === "settings") openSettings();
8325
- else if (v.view === "new") input.onNew?.();
8326
- else {
8316
+ else if (v.view === "new") {
8317
+ if (!input.creating) input.onNew?.();
8318
+ } else {
8327
8319
  if (v.sessionId) {
8328
8320
  tab = v.sessionId;
8329
8321
  setWorkspaceTab(ws.id, v.sessionId);
@@ -8331,6 +8323,7 @@ var work_view_default = _template("F", (input) => {
8331
8323
  view = "term";
8332
8324
  }
8333
8325
  }, "F14", $scope0_id);
8326
+ const navGate = { seen: -1 };
8334
8327
  const createSession = _resume(async (agent, select) => {
8335
8328
  spawning = true;
8336
8329
  try {
@@ -8439,10 +8432,10 @@ var work_view_default = _template("F", (input) => {
8439
8432
  toggleDiff();
8440
8433
  }
8441
8434
  }, "F21", $scope0_id);
8442
- _html(`<div${_attr_class(["_cK", {
8443
- ["_cI"]: view === "nav",
8444
- ["_cJ"]: !input.active
8445
- }])}><div${_attr_class("_cL")}>`);
8435
+ _html(`<div${_attr_class(["_bm", {
8436
+ ["_bk"]: view === "nav",
8437
+ ["_bl"]: !input.active
8438
+ }])}><div${_attr_class("_bn")}>`);
8446
8439
  _set_serialize_reason({
8447
8440
  0: _serialize_guard($scope0_reason, 0),
8448
8441
  1: 1,
@@ -8456,8 +8449,8 @@ var work_view_default = _template("F", (input) => {
8456
8449
  11: _serialize_guard($scope0_reason, 12),
8457
8450
  12: _serialize_guard($scope0_reason, 11),
8458
8451
  13: _serialize_guard($scope0_reason, 13),
8459
- 14: 1,
8460
- 15: $sg__input_agents,
8452
+ 14: $sg__input_agents,
8453
+ 15: 1,
8461
8454
  16: 1,
8462
8455
  17: 1,
8463
8456
  18: 1,
@@ -8502,17 +8495,24 @@ var work_view_default = _template("F", (input) => {
8502
8495
  onReviewOpened: _resume(function(pr) {
8503
8496
  exitCreate();
8504
8497
  openDiff(pr);
8505
- }, "F29", $scope0_id)
8498
+ }, "F29", $scope0_id),
8499
+ onReviewOther: _resume(function(wsId) {
8500
+ exitCreate();
8501
+ input.onNavigate?.({
8502
+ workspaceId: wsId,
8503
+ view: "diff"
8504
+ });
8505
+ }, "F30", $scope0_id)
8506
8506
  });
8507
- _html(`</div><div${_attr_class("_cM")}>`);
8507
+ _html(`</div><div${_attr_class("_bo")}>`);
8508
8508
  _if(() => {
8509
8509
  if (error) {
8510
8510
  const $scope8_id = _scope_id();
8511
8511
  toast_default({
8512
8512
  onDismiss: _resume(function() {
8513
8513
  error = null;
8514
- }, "F30", $scope8_id),
8515
- content: _content_resume("F48", () => {
8514
+ }, "F31", $scope8_id),
8515
+ content: _content_resume("F49", () => {
8516
8516
  _scope_reason();
8517
8517
  const $scope9_id = _scope_id();
8518
8518
  _html(`${_escape(error)}${_el_resume($scope9_id, "a")}`);
@@ -8527,7 +8527,7 @@ var work_view_default = _template("F", (input) => {
8527
8527
  _if(() => {
8528
8528
  if (diffMounted && DiffView) {
8529
8529
  const $scope1_id = _scope_id();
8530
- _html(`<div${_attr_class(["_cN", { ["_cO"]: view === "diff" }])}>`);
8530
+ _html(`<div${_attr_class("_bp")}${_attr_or("data-live", view === "diff", "")}${_attr("inert", view !== "diff")}>`);
8531
8531
  _dynamic_tag($scope1_id, "b", DiffView, {
8532
8532
  workspaceId: ws.id,
8533
8533
  workspaceBranch: ws.branch,
@@ -8567,20 +8567,20 @@ var work_view_default = _template("F", (input) => {
8567
8567
  _if(() => {
8568
8568
  if (manageMounted) {
8569
8569
  const $scope2_id = _scope_id();
8570
- _html(`<div${_attr_class(["_cN", { ["_cO"]: view === "manage" }])}>`);
8570
+ _html(`<div${_attr_class("_bp")}${_attr_or("data-live", view === "manage", "")}${_attr("inert", view !== "manage")}>`);
8571
8571
  _set_serialize_reason(_serialize_guard($scope0_reason, 16));
8572
8572
  const $childScope2 = _peek_scope_id();
8573
8573
  manage_workspace_default({
8574
8574
  workspace: ws,
8575
8575
  workspaceChange: _resume(function(next) {
8576
8576
  input.onWorkspaceChange?.(next);
8577
- }, "F31", $scope2_id),
8577
+ }, "F32", $scope2_id),
8578
8578
  onExit: _resume(function() {
8579
8579
  view = "term";
8580
- }, "F32", $scope2_id),
8580
+ }, "F33", $scope2_id),
8581
8581
  onDeleted: _resume(function() {
8582
8582
  input.onWorkspaceDeleted?.(ws.id);
8583
- }, "F33", $scope2_id)
8583
+ }, "F34", $scope2_id)
8584
8584
  });
8585
8585
  _html(`</div>${_el_resume($scope2_id, "a")}`);
8586
8586
  writeScope($scope2_id, { b: _serialize_if($scope0_reason, 4) && _existing_scope($childScope2) });
@@ -8590,7 +8590,7 @@ var work_view_default = _template("F", (input) => {
8590
8590
  _if(() => {
8591
8591
  if (settingsMounted) {
8592
8592
  const $scope3_id = _scope_id();
8593
- _html(`<div${_attr_class(["_cN", { ["_cO"]: view === "settings" }])}>`);
8593
+ _html(`<div${_attr_class("_bp")}${_attr_or("data-live", view === "settings", "")}${_attr("inert", view !== "settings")}>`);
8594
8594
  _set_serialize_reason({
8595
8595
  0: _serialize_guard($scope0_reason, 1),
8596
8596
  1: $sg__input_workspace,
@@ -8607,21 +8607,21 @@ var work_view_default = _template("F", (input) => {
8607
8607
  instance: input.instance,
8608
8608
  instanceChange: _resume(function(i) {
8609
8609
  input.onInstanceChange?.(i);
8610
- }, "F34", $scope3_id),
8610
+ }, "F35", $scope3_id),
8611
8611
  backHref: `/w/${ws.id}`,
8612
8612
  onExit: _resume(function() {
8613
8613
  view = "term";
8614
- }, "F35", $scope3_id),
8614
+ }, "F36", $scope3_id),
8615
8615
  setup: input.setup,
8616
8616
  setupChange: _resume(function(s) {
8617
8617
  input.onSetupChange?.(s);
8618
- }, "F36", $scope3_id),
8618
+ }, "F37", $scope3_id),
8619
8619
  preferredChange: _resume(function(agent) {
8620
8620
  input.onPreferredChange?.(agent);
8621
- }, "F37", $scope3_id),
8621
+ }, "F38", $scope3_id),
8622
8622
  agentsChange: _resume(function(agents) {
8623
8623
  input.onAgentsChange?.(agents);
8624
- }, "F38", $scope3_id)
8624
+ }, "F39", $scope3_id)
8625
8625
  });
8626
8626
  _html(`</div>${_el_resume($scope3_id, "a")}`);
8627
8627
  writeScope($scope3_id, { b: _serialize_if($scope0_reason, 5) && _existing_scope($childScope3) });
@@ -8631,7 +8631,7 @@ var work_view_default = _template("F", (input) => {
8631
8631
  _if(() => {
8632
8632
  if (newMounted) {
8633
8633
  const $scope4_id = _scope_id();
8634
- _html(`<div${_attr_class(["_cN", { ["_cO"]: view === "new" }])}>`);
8634
+ _html(`<div${_attr_class("_bp")}${_attr_or("data-live", view === "new", "")}${_attr("inert", view !== "new")}>`);
8635
8635
  _set_serialize_reason({
8636
8636
  0: 1,
8637
8637
  1: $sg__input_allWorkspaces,
@@ -8643,28 +8643,28 @@ var work_view_default = _template("F", (input) => {
8643
8643
  backHref: `/w/${ws.id}`,
8644
8644
  onExit: _resume(function() {
8645
8645
  exitCreate();
8646
- }, "F39", $scope4_id),
8646
+ }, "F40", $scope4_id),
8647
8647
  onCreate: _resume(function(ws) {
8648
8648
  input.onCreated?.(ws);
8649
- }, "F40", $scope4_id),
8649
+ }, "F41", $scope4_id),
8650
8650
  onRestore: _resume(function(next) {
8651
8651
  input.onWorkspaceChange?.(next);
8652
8652
  input.onSelectWorkspace?.(next.id);
8653
8653
  exitCreate();
8654
- }, "F41", $scope4_id)
8654
+ }, "F42", $scope4_id)
8655
8655
  });
8656
8656
  _html(`</div>${_el_resume($scope4_id, "a")}`);
8657
8657
  writeScope($scope4_id, { b: _existing_scope($childScope4) });
8658
8658
  return 0;
8659
8659
  }
8660
8660
  }, $scope0_id, "i", 1, 1, 1, 0, 1);
8661
- _html(`<div${_attr_class(["_cQ", { ["_cP"]: view !== "term" }])}>`);
8661
+ _html(`<div${_attr_class(["_br", { ["_bq"]: view !== "term" }])}>`);
8662
8662
  _if(() => {
8663
8663
  if (shownSessions) {
8664
8664
  const $scope5_id = _scope_id();
8665
- _for_of(shownSessions, (s) => {
8665
+ _for_of(input.active ? shownSessions : shownSessions.filter((x) => x.id === curTab), (s) => {
8666
8666
  const $scope6_id = _scope_id();
8667
- _html(`<div${_attr_class(["_cR", { ["_cS"]: s.id === curTab }])}>`);
8667
+ _html(`<div${_attr_class("_bs")}${_attr_or("data-live", s.id === curTab, "")}${_attr("inert", s.id !== curTab)}>`);
8668
8668
  _set_serialize_reason({
8669
8669
  0: 1,
8670
8670
  1: 1,
@@ -8693,26 +8693,26 @@ var work_view_default = _template("F", (input) => {
8693
8693
  onNewSession: _resume(function(agent) {
8694
8694
  view = "term";
8695
8695
  newSession(ws.id, agent);
8696
- }, "F42", $scope6_id),
8696
+ }, "F43", $scope6_id),
8697
8697
  onOpenTab: _resume(function(id) {
8698
8698
  tab = id;
8699
8699
  view = "term";
8700
- }, "F43", $scope6_id),
8700
+ }, "F44", $scope6_id),
8701
8701
  onCloseSession: _resume(function(id) {
8702
8702
  closeSession(id);
8703
- }, "F44", $scope6_id),
8703
+ }, "F45", $scope6_id),
8704
8704
  onRenameSession: _resume(function(id, title) {
8705
8705
  renameSession(id, title);
8706
- }, "F45", $scope6_id),
8706
+ }, "F46", $scope6_id),
8707
8707
  active: input.active && view === "term" && s.id === curTab,
8708
8708
  mode: view,
8709
8709
  onOpenNav: _resume(function() {
8710
8710
  toggleNav();
8711
- }, "F46", $scope6_id),
8711
+ }, "F47", $scope6_id),
8712
8712
  reviewFindOpen,
8713
8713
  onToggleReviewFind: _resume(function() {
8714
8714
  toggleReviewFind();
8715
- }, "F47", $scope6_id)
8715
+ }, "F48", $scope6_id)
8716
8716
  });
8717
8717
  _html(`</div>${_el_resume($scope6_id, "a")}`);
8718
8718
  _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, {
@@ -8723,8 +8723,8 @@ var work_view_default = _template("F", (input) => {
8723
8723
  _if(() => {
8724
8724
  if (!shownSessions.length && view === "term") {
8725
8725
  const $scope7_id = _scope_id();
8726
- _html(`<div${_attr_class("_bx")}><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>`);
8727
- _script($scope7_id, "F49");
8726
+ _html(`<div${_attr_class("_bG")}><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>`);
8727
+ _script($scope7_id, "F50");
8728
8728
  _subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
8729
8729
  return 0;
8730
8730
  }
@@ -8733,13 +8733,12 @@ var work_view_default = _template("F", (input) => {
8733
8733
  return 0;
8734
8734
  } else {
8735
8735
  const $scope10_id = _scope_id();
8736
- _html(`<p${_attr_class("_bx")}>Loading sessions…</p>`);
8736
+ _html(`<p${_attr_class("_bG")}>Loading sessions…</p>`);
8737
8737
  writeScope($scope10_id, {});
8738
8738
  return 1;
8739
8739
  }
8740
8740
  }, $scope0_id, "j", 1, 1, 1, "</div>");
8741
8741
  _html(`</div></div>${_el_resume($scope0_id, "a")}`);
8742
- _script($scope0_id, "F50");
8743
8742
  _script($scope0_id, "F51");
8744
8743
  _script($scope0_id, "F52");
8745
8744
  _script($scope0_id, "F53");
@@ -8748,6 +8747,7 @@ var work_view_default = _template("F", (input) => {
8748
8747
  _script($scope0_id, "F56");
8749
8748
  _script($scope0_id, "F57");
8750
8749
  _script($scope0_id, "F58");
8750
+ _script($scope0_id, "F59");
8751
8751
  writeScope($scope0_id, {
8752
8752
  n: input.initialView,
8753
8753
  s: input.allStatus,
@@ -8756,78 +8756,85 @@ var work_view_default = _template("F", (input) => {
8756
8756
  v: input.onExitCreate,
8757
8757
  w: input.onNew,
8758
8758
  x: input.onRouteChange,
8759
- y: input.preferred,
8760
- z: input.onSelectWorkspace,
8761
- a0: input.instance,
8762
- a3: input.setup,
8763
- a4: input.allWorkspaces,
8764
- a5: input.agents,
8765
- a6: input.onWorkspaceChange,
8766
- a7: input.onWorkspaceDeleted,
8767
- a8: input.onInstanceChange,
8768
- a9: input.onSetupChange,
8769
- aa: input.onPreferredChange,
8770
- ab: input.onAgentsChange,
8771
- ac: input.onCreated,
8772
- ad: sessions,
8773
- ae: tab,
8774
- af: view,
8775
- ah: diffMounted,
8776
- ai: DiffView,
8777
- ak: loadDiffView,
8778
- ap: reviewFindOpen,
8779
- ar: reviewFindTick,
8780
- as: reviewFindFocus,
8781
- au: focusPr,
8782
- av: focusNonce,
8783
- aw: reviewScope,
8784
- ax: reviewFile,
8785
- ay: focusFile,
8786
- az: focusFileNonce,
8787
- b1: error,
8788
- b2: spawning,
8789
- b3: ws,
8790
- b4: ws?.id,
8791
- b8: ws?.status,
8792
- b9: ws?.branch,
8793
- ba: ws?.name,
8794
- bb: openDiff,
8795
- bd: openManage,
8796
- bf: openSettings,
8797
- bi: toggleNav,
8798
- bj: toggleDiff,
8799
- bk: shownSessions,
8800
- bm: shownSessions?.length,
8801
- bn: curTab,
8802
- bq: createGate.open,
8803
- bs: toggleReviewFind,
8804
- bt: exitCreate,
8805
- bx: applyView,
8806
- bz: createSession,
8807
- c2: loadMem.wanted,
8808
- c4: loadMem.run,
8809
- c5: loadBody,
8810
- c7: loadSessions,
8811
- ca: closeSession,
8812
- cb: renameSession,
8813
- cc: newSession,
8814
- ce: onKey,
8759
+ y: input.nav,
8760
+ z: input.navNonce,
8761
+ a0: input.preferred,
8762
+ a1: input.onSelectWorkspace,
8763
+ a2: input.instance,
8764
+ a5: input.setup,
8765
+ a6: input.allWorkspaces,
8766
+ a7: input.agents,
8767
+ a8: input.onNavigate,
8768
+ a9: input.onWorkspaceChange,
8769
+ aa: input.onWorkspaceDeleted,
8770
+ ab: input.onInstanceChange,
8771
+ ac: input.onSetupChange,
8772
+ ad: input.onPreferredChange,
8773
+ ae: input.onAgentsChange,
8774
+ af: input.onCreated,
8775
+ ag: sessions,
8776
+ ah: tab,
8777
+ ai: view,
8778
+ ak: diffMounted,
8779
+ al: DiffView,
8780
+ an: loadDiffView,
8781
+ ap: manageMounted,
8782
+ aq: settingsMounted,
8783
+ ar: newMounted,
8784
+ at: reviewFindOpen,
8785
+ av: reviewFindTick,
8786
+ aw: reviewFindFocus,
8787
+ ay: focusPr,
8788
+ az: focusNonce,
8789
+ b0: reviewScope,
8790
+ b1: reviewFile,
8791
+ b2: focusFile,
8792
+ b3: focusFileNonce,
8793
+ b5: error,
8794
+ b6: spawning,
8795
+ b7: ws,
8796
+ b8: ws?.id,
8797
+ bc: ws?.status,
8798
+ bd: ws?.branch,
8799
+ be: ws?.name,
8800
+ bf: openDiff,
8801
+ bh: openManage,
8802
+ bj: openSettings,
8803
+ bm: toggleNav,
8804
+ bn: toggleDiff,
8805
+ bo: shownSessions,
8806
+ bq: shownSessions?.length,
8807
+ br: curTab,
8808
+ bu: createGate.open,
8809
+ bw: toggleReviewFind,
8810
+ bx: exitCreate,
8811
+ c1: applyView,
8812
+ c3: navGate.seen,
8813
+ c5: createSession,
8814
+ c8: loadMem.wanted,
8815
+ ca: loadMem.run,
8816
+ cb: loadBody,
8817
+ cd: loadSessions,
8818
+ cg: closeSession,
8819
+ ch: renameSession,
8820
+ ci: newSession,
8821
+ ck: onKey,
8815
8822
  c: _existing_scope($childScope),
8816
- d4: $error__closures,
8817
- cg: $si__input_active && $input_active__closures,
8818
- cm: $si__input_agents && $input_agents__closures,
8819
- cu: $view__closures,
8820
- cw: $reviewFindOpen__closures,
8821
- d7: $si__input_workspace && $ws_id__closures,
8822
- d9: $si__input_workspace && $ws_name__closures,
8823
- da: $shownSessions__closures,
8824
- dc: $curTab__closures,
8825
- dd: $toggleReviewFind2__closures,
8826
- df: $closeSession2__closures,
8827
- dg: $renameSession2__closures,
8828
- dh: $newSession2__closures,
8829
- ch: $si__input_preferred && $input_preferred__closures,
8830
- d5: $spawning__closures
8823
+ da: $error__closures,
8824
+ cm: $si__input_active && $input_active__closures,
8825
+ cs: $si__input_agents && $input_agents__closures,
8826
+ d0: $view__closures,
8827
+ d2: $reviewFindOpen__closures,
8828
+ dd: $si__input_workspace && $ws_id__closures,
8829
+ df: $si__input_workspace && $ws_name__closures,
8830
+ dg: $shownSessions__closures,
8831
+ di: $curTab__closures,
8832
+ dj: $toggleReviewFind2__closures,
8833
+ dl: $closeSession2__closures,
8834
+ dm: $renameSession2__closures,
8835
+ dn: $newSession2__closures,
8836
+ cn: $si__input_preferred && $input_preferred__closures,
8837
+ db: $spawning__closures
8831
8838
  });
8832
8839
  _resume_branch($scope0_id);
8833
8840
  });
@@ -8835,6 +8842,7 @@ var work_view_default = _template("F", (input) => {
8835
8842
  //#region src/tags/app-shell.marko
8836
8843
  var api;
8837
8844
  var isTransientApiError;
8845
+ var panic;
8838
8846
  var prefs;
8839
8847
  var NO_INSTANCE = {
8840
8848
  name: "",
@@ -8855,9 +8863,12 @@ var app_shell_default = _template("c", (input) => {
8855
8863
  const $settings__closures = /* @__PURE__ */ new Set();
8856
8864
  const $selectedId__closures = /* @__PURE__ */ new Set();
8857
8865
  const $creating__closures = /* @__PURE__ */ new Set();
8866
+ const $nav__closures = /* @__PURE__ */ new Set();
8867
+ const $navNonce__closures = /* @__PURE__ */ new Set();
8858
8868
  const $setup2__closures = /* @__PURE__ */ new Set();
8859
8869
  const $applyWorkspaces2__closures = /* @__PURE__ */ new Set();
8860
8870
  const $openWorkspace2__closures = /* @__PURE__ */ new Set();
8871
+ const $go2__closures = /* @__PURE__ */ new Set();
8861
8872
  const boot = input.boot;
8862
8873
  const initial = input.initial || {
8863
8874
  workspaceId: null,
@@ -8872,6 +8883,8 @@ var app_shell_default = _template("c", (input) => {
8872
8883
  let openIds = selectedId ? [selectedId] : [];
8873
8884
  let creating = initial.view === "new" && !!bootActive.length;
8874
8885
  let route = null;
8886
+ let nav = null;
8887
+ let navNonce = 0;
8875
8888
  const lastUrl = { route: null };
8876
8889
  let setup = boot.setup;
8877
8890
  const wantSetup = boot.setup == null;
@@ -8956,6 +8969,33 @@ var app_shell_default = _template("c", (input) => {
8956
8969
  if (!openIds.includes(id)) openIds = openIds.concat(id);
8957
8970
  prefs.setLastWorkspace(id);
8958
8971
  }, "c4", $scope0_id);
8972
+ const navWatch = { seq: 0 };
8973
+ const go = _resume((r) => {
8974
+ const id = r.workspaceId || selectedId;
8975
+ if (!id) {
8976
+ if (r.view === "settings") showSetup = true;
8977
+ else if (r.view === "new") showSetup = false;
8978
+ return;
8979
+ }
8980
+ openWorkspace(id);
8981
+ nav = {
8982
+ ...r,
8983
+ workspaceId: id
8984
+ };
8985
+ navNonce++;
8986
+ if (typeof location === "undefined") return;
8987
+ const want = new URL(urlFor({
8988
+ ...r,
8989
+ workspaceId: id
8990
+ }), location.href).pathname;
8991
+ const before = location.href;
8992
+ const seq = ++navWatch.seq;
8993
+ setTimeout(() => {
8994
+ if (seq !== navWatch.seq) return;
8995
+ if (location.pathname === want || location.href !== before) return;
8996
+ panic(`The page stopped responding to navigation (wanted ${want}) — reload to recover.`);
8997
+ }, 4e3);
8998
+ }, "c5", $scope0_id);
8959
8999
  _html(`<div${_attr_class("_d")}>`);
8960
9000
  _if(() => {
8961
9001
  if (error) {
@@ -8963,8 +9003,8 @@ var app_shell_default = _template("c", (input) => {
8963
9003
  toast_default({
8964
9004
  onDismiss: _resume(function() {
8965
9005
  error = null;
8966
- }, "c5", $scope5_id),
8967
- content: _content_resume("c23", () => {
9006
+ }, "c6", $scope5_id),
9007
+ content: _content_resume("c25", () => {
8968
9008
  _scope_reason();
8969
9009
  const $scope6_id = _scope_id();
8970
9010
  _html(`${_escape(error)}${_el_resume($scope6_id, "a")}`);
@@ -8993,29 +9033,29 @@ var app_shell_default = _template("c", (input) => {
8993
9033
  ...settings,
8994
9034
  instance
8995
9035
  };
8996
- }, "c6", $scope4_id),
9036
+ }, "c7", $scope4_id),
8997
9037
  setup,
8998
9038
  setupChange: _resume(function(s) {
8999
9039
  setup = s;
9000
9040
  if (s.ready) showSetup = false;
9001
- }, "c7", $scope4_id),
9041
+ }, "c8", $scope4_id),
9002
9042
  preferredChange: _resume(function(agent) {
9003
9043
  if (!settings) return;
9004
9044
  settings = {
9005
9045
  ...settings,
9006
9046
  preferredAgent: agent
9007
9047
  };
9008
- }, "c8", $scope4_id),
9048
+ }, "c9", $scope4_id),
9009
9049
  agentsChange: _resume(function(agents) {
9010
9050
  if (!settings) return;
9011
9051
  settings = {
9012
9052
  ...settings,
9013
9053
  agents
9014
9054
  };
9015
- }, "c9", $scope4_id)
9055
+ }, "c10", $scope4_id)
9016
9056
  });
9017
9057
  _html(`<div${_attr_class("_i")}><button type=button${_attr_class("_o")}>Later, go to workspaces</button>${_el_resume($scope4_id, "d")}</div></div>`);
9018
- _script($scope4_id, "c24");
9058
+ _script($scope4_id, "c26");
9019
9059
  writeScope($scope4_id, { b: _existing_scope($childScope) });
9020
9060
  return 0;
9021
9061
  } else if (!selectedId) {
@@ -9028,12 +9068,12 @@ var app_shell_default = _template("c", (input) => {
9028
9068
  if (!workspaces.some((w) => w.id === ws.id)) workspaces = [ws, ...workspaces];
9029
9069
  creating = false;
9030
9070
  openWorkspace(ws.id);
9031
- }, "c10", $scope3_id),
9071
+ }, "c11", $scope3_id),
9032
9072
  onRestore: _resume(function(next) {
9033
9073
  applyWorkspaces(workspaces.map((w) => w.id === next.id ? next : w));
9034
9074
  creating = false;
9035
9075
  openWorkspace(next.id);
9036
- }, "c11", $scope3_id)
9076
+ }, "c12", $scope3_id)
9037
9077
  });
9038
9078
  writeScope($scope3_id, { a: _existing_scope($childScope2) });
9039
9079
  return 1;
@@ -9046,7 +9086,7 @@ var app_shell_default = _template("c", (input) => {
9046
9086
  _if(() => {
9047
9087
  if (ws) {
9048
9088
  const $scope2_id = _scope_id();
9049
- _html(`<div${_attr_class("_g")}>`);
9089
+ _html(`<div${_attr_class("_g")}${_attr("inert", ws.id !== selectedId)}>`);
9050
9090
  _set_serialize_reason(262142);
9051
9091
  const $childScope3 = _peek_scope_id();
9052
9092
  work_view_default({
@@ -9064,11 +9104,11 @@ var app_shell_default = _template("c", (input) => {
9064
9104
  ...settings,
9065
9105
  instance
9066
9106
  };
9067
- }, "c12", $scope2_id),
9107
+ }, "c13", $scope2_id),
9068
9108
  setup,
9069
9109
  onSetupChange: _resume(function(s) {
9070
9110
  setup = s;
9071
- }, "c13", $scope2_id),
9111
+ }, "c14", $scope2_id),
9072
9112
  initialView: ws.id === initial.workspaceId || !initial.workspaceId ? initial.view : void 0,
9073
9113
  initialTab: ws.id === initial.workspaceId ? initial.sessionId ?? null : null,
9074
9114
  initialPr: ws.id === initial.workspaceId ? initial.pr ?? null : null,
@@ -9084,44 +9124,49 @@ var app_shell_default = _template("c", (input) => {
9084
9124
  scope: r.scope,
9085
9125
  file: r.file
9086
9126
  };
9087
- }, "c14", $scope2_id),
9127
+ }, "c15", $scope2_id),
9088
9128
  onPreferredChange: _resume(function(agent) {
9089
9129
  if (!settings) return;
9090
9130
  settings = {
9091
9131
  ...settings,
9092
9132
  preferredAgent: agent
9093
9133
  };
9094
- }, "c15", $scope2_id),
9134
+ }, "c16", $scope2_id),
9095
9135
  onAgentsChange: _resume(function(agents) {
9096
9136
  if (!settings) return;
9097
9137
  settings = {
9098
9138
  ...settings,
9099
9139
  agents
9100
9140
  };
9101
- }, "c16", $scope2_id),
9141
+ }, "c17", $scope2_id),
9142
+ nav: ws.id === selectedId ? nav : null,
9143
+ navNonce,
9144
+ onNavigate: _resume(function(r) {
9145
+ go(r);
9146
+ }, "c18", $scope2_id),
9102
9147
  onSelectWorkspace: _resume(function(wsId) {
9103
9148
  openWorkspace(wsId);
9104
- }, "c17", $scope2_id),
9149
+ }, "c19", $scope2_id),
9105
9150
  onWorkspaceChange: _resume(function(next) {
9106
9151
  applyWorkspaces(workspaces.map((w) => w.id === next.id ? next : w));
9107
- }, "c18", $scope2_id),
9152
+ }, "c20", $scope2_id),
9108
9153
  onWorkspaceDeleted: _resume(function(id) {
9109
9154
  applyWorkspaces(workspaces.filter((w) => w.id !== id));
9110
- }, "c19", $scope2_id),
9155
+ }, "c21", $scope2_id),
9111
9156
  onNew: _resume(function() {
9112
9157
  creating = true;
9113
- }, "c20", $scope2_id),
9158
+ }, "c22", $scope2_id),
9114
9159
  onExitCreate: _resume(function() {
9115
9160
  creating = false;
9116
- }, "c21", $scope2_id),
9161
+ }, "c23", $scope2_id),
9117
9162
  onCreated: _resume(function(ws) {
9118
9163
  if (!workspaces.some((w) => w.id === ws.id)) workspaces = [ws, ...workspaces];
9119
9164
  creating = false;
9120
9165
  openWorkspace(ws.id);
9121
- }, "c22", $scope2_id)
9166
+ }, "c24", $scope2_id)
9122
9167
  });
9123
- _html("</div>");
9124
- _subscribe($openWorkspace2__closures, _subscribe($applyWorkspaces2__closures, _subscribe($setup2__closures, _subscribe($creating__closures, _subscribe($selectedId__closures, _subscribe($settings__closures, _subscribe($status__closures, _subscribe($workspaces__closures, _subscribe($si__input_initial && $initial_file__closures, _subscribe($si__input_initial && $initial_scope__closures, _subscribe($si__input_initial && $initial_pr__closures, _subscribe($si__input_initial && $initial_sessionId__closures, _subscribe($si__input_initial && $initial_view__closures, _subscribe($si__input_initial && $initial_workspaceId__closures, writeScope($scope2_id, { b: _existing_scope($childScope3) })))))))))))))));
9168
+ _html(`</div>${_el_resume($scope2_id, "a")}`);
9169
+ _subscribe($go2__closures, _subscribe($openWorkspace2__closures, _subscribe($applyWorkspaces2__closures, _subscribe($setup2__closures, _subscribe($navNonce__closures, _subscribe($nav__closures, _subscribe($creating__closures, _subscribe($selectedId__closures, _subscribe($settings__closures, _subscribe($status__closures, _subscribe($workspaces__closures, _subscribe($si__input_initial && $initial_file__closures, _subscribe($si__input_initial && $initial_scope__closures, _subscribe($si__input_initial && $initial_pr__closures, _subscribe($si__input_initial && $initial_sessionId__closures, _subscribe($si__input_initial && $initial_view__closures, _subscribe($si__input_initial && $initial_workspaceId__closures, writeScope($scope2_id, { b: _existing_scope($childScope3) }))))))))))))))))));
9125
9170
  return 0;
9126
9171
  }
9127
9172
  }, $scope1_id, "a", 1, 1, 1, 0, 1);
@@ -9132,9 +9177,9 @@ var app_shell_default = _template("c", (input) => {
9132
9177
  });
9133
9178
  }, (id) => id, $scope0_id, "e", 1, 1, 1, "</div>");
9134
9179
  _html(`</div>${_el_resume($scope0_id, "a")}`);
9135
- _script($scope0_id, "c25");
9136
- _script($scope0_id, "c26");
9137
9180
  _script($scope0_id, "c27");
9181
+ _script($scope0_id, "c28");
9182
+ _script($scope0_id, "c29");
9138
9183
  writeScope($scope0_id, {
9139
9184
  n: boot?.prefs,
9140
9185
  t: initial.workspaceId,
@@ -9153,33 +9198,40 @@ var app_shell_default = _template("c", (input) => {
9153
9198
  a8: openIds,
9154
9199
  ab: creating,
9155
9200
  ac: route,
9156
- ae: lastUrl.route,
9157
- ag: setup,
9158
- ah: wantSetup,
9159
- ai: showSetup,
9160
- ak: error,
9161
- al: applyWorkspaces,
9162
- am: load,
9163
- an: patchStatusSessions,
9164
- ap: statusMem.fresh,
9165
- aq: statusMem.run,
9166
- as: loadStatus,
9167
- at: openWorkspace,
9168
- b7: $error__closures,
9169
- av: $si__input_initial && $initial_workspaceId__closures,
9170
- aw: $si__input_initial && $initial_view__closures,
9171
- ax: $si__input_initial && $initial_sessionId__closures,
9172
- ay: $si__input_initial && $initial_pr__closures,
9173
- az: $si__input_initial && $initial_scope__closures,
9174
- b0: $si__input_initial && $initial_file__closures,
9175
- b1: $workspaces__closures,
9176
- b2: $status__closures,
9177
- b3: $settings__closures,
9178
- b4: $selectedId__closures,
9179
- b5: $creating__closures,
9180
- b6: $setup2__closures,
9181
- b8: $applyWorkspaces2__closures,
9182
- b9: $openWorkspace2__closures
9201
+ ad: nav,
9202
+ ae: navNonce,
9203
+ ag: lastUrl.route,
9204
+ ai: setup,
9205
+ aj: wantSetup,
9206
+ ak: showSetup,
9207
+ am: error,
9208
+ an: applyWorkspaces,
9209
+ ao: load,
9210
+ ap: patchStatusSessions,
9211
+ ar: statusMem.fresh,
9212
+ as: statusMem.run,
9213
+ au: loadStatus,
9214
+ av: openWorkspace,
9215
+ ax: navWatch.seq,
9216
+ az: go,
9217
+ bf: $error__closures,
9218
+ b1: $si__input_initial && $initial_workspaceId__closures,
9219
+ b2: $si__input_initial && $initial_view__closures,
9220
+ b3: $si__input_initial && $initial_sessionId__closures,
9221
+ b4: $si__input_initial && $initial_pr__closures,
9222
+ b5: $si__input_initial && $initial_scope__closures,
9223
+ b6: $si__input_initial && $initial_file__closures,
9224
+ b7: $workspaces__closures,
9225
+ b8: $status__closures,
9226
+ b9: $settings__closures,
9227
+ ba: $selectedId__closures,
9228
+ bb: $creating__closures,
9229
+ bc: $nav__closures,
9230
+ bd: $navNonce__closures,
9231
+ be: $setup2__closures,
9232
+ bg: $applyWorkspaces2__closures,
9233
+ bh: $openWorkspace2__closures,
9234
+ bi: $go2__closures
9183
9235
  });
9184
9236
  _resume_branch($scope0_id);
9185
9237
  });
@@ -16737,4 +16789,4 @@ server.listen(port, () => {
16737
16789
  //#endregion
16738
16790
  export {};
16739
16791
 
16740
- ;var __MARKO_MANIFEST__={"LH2lXAg":{"block":[2,"stylesheet#/assets/app-page-C2vRDhnS.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-C2vRDhnS.css\"",">"],"defer":[2,"/assets/w-CwkHt2eP.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-CwkHt2eP.js\"","></script>",2,"modulepreload#/assets/_BqvL8Q_F.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BqvL8Q_F.js\"",">"]},"ZLT8joi":{"block":[2,"stylesheet#/assets/app-page-C2vRDhnS.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-C2vRDhnS.css\"",">"],"defer":[2,"/assets/new-CwkHt2eP.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-CwkHt2eP.js\"","></script>",2,"modulepreload#/assets/_BqvL8Q_F.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BqvL8Q_F.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/app-page-C2vRDhnS.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-C2vRDhnS.css\"",">"],"defer":[2,"/assets/settings-CwkHt2eP.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-CwkHt2eP.js\"","></script>",2,"modulepreload#/assets/_BqvL8Q_F.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BqvL8Q_F.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/app-page-C2vRDhnS.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-C2vRDhnS.css\"",">"],"defer":[2,"/assets/w._-CwkHt2eP.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-CwkHt2eP.js\"","></script>",2,"modulepreload#/assets/_BqvL8Q_F.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BqvL8Q_F.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/app-page-C2vRDhnS.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-C2vRDhnS.css\"",">"],"defer":[2,"/assets/w._-BxPjPqAS.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-BxPjPqAS.js\"","></script>",2,"modulepreload#/assets/_BqvL8Q_F.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BqvL8Q_F.js\"",">"]}};
16792
+ ;var __MARKO_MANIFEST__={"ZLT8joi":{"block":[2,"stylesheet#/assets/app-page-KY8tW9DO.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-KY8tW9DO.css\"",">"],"defer":[2,"/assets/new-DTmmniHd.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-DTmmniHd.js\"","></script>",2,"modulepreload#/assets/_SLCShLmn.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_SLCShLmn.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/app-page-KY8tW9DO.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-KY8tW9DO.css\"",">"],"defer":[2,"/assets/w._-DTmmniHd.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-DTmmniHd.js\"","></script>",2,"modulepreload#/assets/_SLCShLmn.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_SLCShLmn.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/app-page-KY8tW9DO.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-KY8tW9DO.css\"",">"],"defer":[2,"/assets/w-DTmmniHd.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-DTmmniHd.js\"","></script>",2,"modulepreload#/assets/_SLCShLmn.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_SLCShLmn.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/app-page-KY8tW9DO.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-KY8tW9DO.css\"",">"],"defer":[2,"/assets/settings-DTmmniHd.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-DTmmniHd.js\"","></script>",2,"modulepreload#/assets/_SLCShLmn.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_SLCShLmn.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/app-page-KY8tW9DO.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-KY8tW9DO.css\"",">"],"defer":[2,"/assets/w._-CJ_Gh3uK.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-CJ_Gh3uK.js\"","></script>",2,"modulepreload#/assets/_SLCShLmn.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_SLCShLmn.js\"",">"]}};