@dylanpiercey/work 0.0.76 → 0.0.77

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/{_CqtfLw6Y.js → _CiiZ9YMw.js} +15 -15
  2. package/dist/{__lXIKR5F.js → _ubn-vkjC.js} +14 -14
  3. package/dist/index.mjs +808 -556
  4. package/dist/public/assets/{_Ct92IAWI2.js → _00PbHJJQ2.js} +1 -1
  5. package/dist/public/assets/_00PbHJJQ2.js.br +0 -0
  6. package/dist/public/assets/{_ClX_Oqrr.js → _0svi-Z9G.js} +1 -1
  7. package/dist/public/assets/_0svi-Z9G.js.br +0 -0
  8. package/dist/public/assets/{_ZpIu30xq.js → _25WwTagO.js} +1 -1
  9. package/dist/public/assets/_25WwTagO.js.br +0 -0
  10. package/dist/public/assets/{_D8uHD5Q02.js → _2uqwl4G82.js} +1 -1
  11. package/dist/public/assets/_2uqwl4G82.js.br +0 -0
  12. package/dist/public/assets/{_C6Oq-fpi.js → _8WhLEtNe.js} +1 -1
  13. package/dist/public/assets/_8WhLEtNe.js.br +0 -0
  14. package/dist/public/assets/{_DTGwibmE.js → _8sk_HqwA.js} +1 -1
  15. package/dist/public/assets/_8sk_HqwA.js.br +0 -0
  16. package/dist/public/assets/{_8toYrXVK.js → _903E2DBi.js} +1 -1
  17. package/dist/public/assets/{_BUgACTwS.js → _9KXBE7Hu.js} +1 -1
  18. package/dist/public/assets/_9KXBE7Hu.js.br +0 -0
  19. package/dist/public/assets/{_D9QFUawY.js → _B1q8fJHt.js} +1 -1
  20. package/dist/public/assets/_B1q8fJHt.js.br +0 -0
  21. package/dist/public/assets/{_wB8kCQ2X.js → _B5e75MhA.js} +1 -1
  22. package/dist/public/assets/_B5e75MhA.js.br +0 -0
  23. package/dist/public/assets/{_BxG2fPQ6.js → _BAhGnkQs.js} +1 -1
  24. package/dist/public/assets/_BAhGnkQs.js.br +0 -0
  25. package/dist/public/assets/{_D367w68f.js → _BO6GQdi8.js} +1 -1
  26. package/dist/public/assets/_BO6GQdi8.js.br +0 -0
  27. package/dist/public/assets/{_D7ModyMj.js → _BR3i1Qkq.js} +1 -1
  28. package/dist/public/assets/_BR3i1Qkq.js.br +0 -0
  29. package/dist/public/assets/{_BzqUZqWL2.js → _BS1yiJcV2.js} +1 -1
  30. package/dist/public/assets/_BS1yiJcV2.js.br +0 -0
  31. package/dist/public/assets/_BY3mVX6d.js +85 -0
  32. package/dist/public/assets/_BY3mVX6d.js.br +0 -0
  33. package/dist/public/assets/{_BnWlJiz6.js → _BYed_78j.js} +1 -1
  34. package/dist/public/assets/_BYed_78j.js.br +0 -0
  35. package/dist/public/assets/{_xnbg6Khg.js → _Bc1oJggC.js} +1 -1
  36. package/dist/public/assets/_Bc1oJggC.js.br +0 -0
  37. package/dist/public/assets/{_WVX78_eQ2.js → _Bki1svWe2.js} +1 -1
  38. package/dist/public/assets/_Bki1svWe2.js.br +0 -0
  39. package/dist/public/assets/{_GndjdkeR.js → _BmVLh6_t.js} +1 -1
  40. package/dist/public/assets/_BmVLh6_t.js.br +0 -0
  41. package/dist/public/assets/{_CD2q1ZVm.js → _BovAGS35.js} +1 -1
  42. package/dist/public/assets/_BovAGS35.js.br +0 -0
  43. package/dist/public/assets/{_Bx-6cv1l.js → _BqPU6IpH.js} +1 -1
  44. package/dist/public/assets/_BqPU6IpH.js.br +0 -0
  45. package/dist/public/assets/{_Dkei5s2x2.js → _Bs0i44JK2.js} +1 -1
  46. package/dist/public/assets/_Bs0i44JK2.js.br +0 -0
  47. package/dist/public/assets/{_Yp8RndlS2.js → _BsTGlYQ42.js} +1 -1
  48. package/dist/public/assets/_BsTGlYQ42.js.br +0 -0
  49. package/dist/public/assets/{_dRNLUcmQ.js → _BviY3_tc.js} +1 -1
  50. package/dist/public/assets/_BviY3_tc.js.br +0 -0
  51. package/dist/public/assets/{_O6S_XpA12.js → _BwHH8J1Y2.js} +1 -1
  52. package/dist/public/assets/{_iVbNVfLo.js → _C17Xwtif.js} +1 -1
  53. package/dist/public/assets/_C17Xwtif.js.br +0 -0
  54. package/dist/public/assets/{_Cn6w3MhW.js → _C2LaNYu8.js} +1 -1
  55. package/dist/public/assets/_C2LaNYu8.js.br +0 -0
  56. package/dist/public/assets/{_CEWSo0iP2.js → _C5XfJNim2.js} +1 -1
  57. package/dist/public/assets/_C5XfJNim2.js.br +0 -0
  58. package/dist/public/assets/{_DTbRs8Rd.js → _CBAr-tnV.js} +1 -1
  59. package/dist/public/assets/_CBAr-tnV.js.br +0 -0
  60. package/dist/public/assets/{_CEOCshbv.js → _CEBzrS7j.js} +1 -1
  61. package/dist/public/assets/_CEBzrS7j.js.br +0 -0
  62. package/dist/public/assets/{_CSuwPDOp2.js → _CHJVp9aW2.js} +1 -1
  63. package/dist/public/assets/_CHJVp9aW2.js.br +0 -0
  64. package/dist/public/assets/{_BNFNv1Bq.js → _CPOYVWkV.js} +1 -1
  65. package/dist/public/assets/_CPOYVWkV.js.br +0 -0
  66. package/dist/public/assets/{_3Hkb9yUu.js → _CTVJ6v8k.js} +6 -6
  67. package/dist/public/assets/_CTVJ6v8k.js.br +0 -0
  68. package/dist/public/assets/{_DqKJcZgQ.js → _CV1QH-SW.js} +1 -1
  69. package/dist/public/assets/_CV1QH-SW.js.br +0 -0
  70. package/dist/public/assets/{_B_b1CgHC2.js → _CVB5MEi72.js} +1 -1
  71. package/dist/public/assets/_CVB5MEi72.js.br +0 -0
  72. package/dist/public/assets/{_BHlaYXO_2.js → _CW5MKl4v2.js} +1 -1
  73. package/dist/public/assets/_CW5MKl4v2.js.br +0 -0
  74. package/dist/public/assets/{_Da8CpJXC2.js → _CcYS7BLe2.js} +1 -1
  75. package/dist/public/assets/{_DCJtg98I.js → _CewarLhg.js} +1 -1
  76. package/dist/public/assets/_CewarLhg.js.br +0 -0
  77. package/dist/public/assets/{_DgB3U5Gu.js → _CjQh1My0.js} +1 -1
  78. package/dist/public/assets/_CjQh1My0.js.br +0 -0
  79. package/dist/public/assets/{_D14ai5852.js → _Cnlm26jx2.js} +1 -1
  80. package/dist/public/assets/_Cnlm26jx2.js.br +0 -0
  81. package/dist/public/assets/{_BppyqDqk.js → _CoPsduZt.js} +1 -1
  82. package/dist/public/assets/_CoPsduZt.js.br +0 -0
  83. package/dist/public/assets/{_CFj_gwWI.js → _CpjMuu_t.js} +1 -1
  84. package/dist/public/assets/_CpjMuu_t.js.br +0 -0
  85. package/dist/public/assets/{_DQ-YqDv_.js → _CtbjZ7c8.js} +1 -1
  86. package/dist/public/assets/_CtbjZ7c8.js.br +0 -0
  87. package/dist/public/assets/{_DJ0O5SUE.js → _CwFVQN8O.js} +1 -1
  88. package/dist/public/assets/_CwFVQN8O.js.br +0 -0
  89. package/dist/public/assets/{_6AsCIctl.js → _CxRS6cVn.js} +1 -1
  90. package/dist/public/assets/_CxRS6cVn.js.br +0 -0
  91. package/dist/public/assets/{_DNuUxoGY.js → _Cxhtunwi.js} +1 -1
  92. package/dist/public/assets/_Cxhtunwi.js.br +0 -0
  93. package/dist/public/assets/{_DK3cmEdX.js → _Cz9053dB.js} +1 -1
  94. package/dist/public/assets/_Cz9053dB.js.br +0 -0
  95. package/dist/public/assets/{_CUDXFOSz2.js → _CzN_J4xS2.js} +1 -1
  96. package/dist/public/assets/_CzN_J4xS2.js.br +0 -0
  97. package/dist/public/assets/{_C5C_uOm72.js → _D6D5D9GO2.js} +1 -1
  98. package/dist/public/assets/_D6D5D9GO2.js.br +0 -0
  99. package/dist/public/assets/{_nG8aO-be.js → _DBv2cR_2.js} +1 -1
  100. package/dist/public/assets/_DBv2cR_2.js.br +0 -0
  101. package/dist/public/assets/{_CctK1uSA.js → _DFythFcf.js} +1 -1
  102. package/dist/public/assets/_DFythFcf.js.br +0 -0
  103. package/dist/public/assets/{_C8iBzrpk.js → _DJe2Pv0m.js} +1 -1
  104. package/dist/public/assets/_DJe2Pv0m.js.br +0 -0
  105. package/dist/public/assets/{_oHe-s5Oy2.js → _DNXyUDNj2.js} +1 -1
  106. package/dist/public/assets/_DNXyUDNj2.js.br +0 -0
  107. package/dist/public/assets/{_BjPdBgJ8.js → _DPJnDsbZ.js} +1 -1
  108. package/dist/public/assets/_DPJnDsbZ.js.br +0 -0
  109. package/dist/public/assets/{_2JbF4QZ-2.js → _DXvm_2Xe2.js} +1 -1
  110. package/dist/public/assets/_DXvm_2Xe2.js.br +0 -0
  111. package/dist/public/assets/{_lUBz-hZ6.js → _DcGJqmLH.js} +1 -1
  112. package/dist/public/assets/_DcGJqmLH.js.br +0 -0
  113. package/dist/public/assets/{_C34E09cV2.js → _DjEo88LH2.js} +1 -1
  114. package/dist/public/assets/_DjEo88LH2.js.br +0 -0
  115. package/dist/public/assets/{_BdktPwDj.js → _Doqa_iNG.js} +1 -1
  116. package/dist/public/assets/_Doqa_iNG.js.br +0 -0
  117. package/dist/public/assets/{_CqPdZxvF2.js → _DoxDdtS32.js} +1 -1
  118. package/dist/public/assets/_DoxDdtS32.js.br +0 -0
  119. package/dist/public/assets/{_CVuPSJA72.js → _DtIvrJCJ2.js} +1 -1
  120. package/dist/public/assets/_DtIvrJCJ2.js.br +0 -0
  121. package/dist/public/assets/{_BZ5X8ZeJ.js → _Dy0Uw0re.js} +1 -1
  122. package/dist/public/assets/_Dy0Uw0re.js.br +0 -0
  123. package/dist/public/assets/{_Cs51LV8m.js → _N7bjLQq0.js} +1 -1
  124. package/dist/public/assets/_N7bjLQq0.js.br +0 -0
  125. package/dist/public/assets/{_mwsyNxHs.js → _Ozf3nrvj.js} +1 -1
  126. package/dist/public/assets/_Ozf3nrvj.js.br +0 -0
  127. package/dist/public/assets/{_D1YQla-x2.js → _RJT3BKwl2.js} +1 -1
  128. package/dist/public/assets/_RJT3BKwl2.js.br +0 -0
  129. package/dist/public/assets/{_DnvNLHgm.js → _SsF4M0KM.js} +1 -1
  130. package/dist/public/assets/_SsF4M0KM.js.br +0 -0
  131. package/dist/public/assets/{_BEG2RHhd.js → _VX4-MjKf.js} +1 -1
  132. package/dist/public/assets/_VX4-MjKf.js.br +0 -0
  133. package/dist/public/assets/{_CsXxbWcQ.js → _WOYbxXeH.js} +1 -1
  134. package/dist/public/assets/_WOYbxXeH.js.br +0 -0
  135. package/dist/public/assets/{_B7fOkgiH.js → _l0bPVEwg.js} +1 -1
  136. package/dist/public/assets/_l0bPVEwg.js.br +0 -0
  137. package/dist/public/assets/{_CsgJmYNA.js → _mdKr2weU.js} +1 -1
  138. package/dist/public/assets/_mdKr2weU.js.br +0 -0
  139. package/dist/public/assets/{_C91eNTKI2.js → _pypa1r9R2.js} +1 -1
  140. package/dist/public/assets/_pypa1r9R2.js.br +0 -0
  141. package/dist/public/assets/{_D0nMBSFq.js → _qOmd0vjm.js} +1 -1
  142. package/dist/public/assets/_qOmd0vjm.js.br +0 -0
  143. package/dist/public/assets/{_jbEhGKqF.js → _qnxbSZnV.js} +1 -1
  144. package/dist/public/assets/_qnxbSZnV.js.br +0 -0
  145. package/dist/public/assets/{_BpBr5IdO.js → _rTQPa6zM.js} +1 -1
  146. package/dist/public/assets/_rTQPa6zM.js.br +0 -0
  147. package/dist/public/assets/{_Cphh_yi5.js → _rsxlkA3P.js} +1 -1
  148. package/dist/public/assets/_rsxlkA3P.js.br +0 -0
  149. package/dist/public/assets/{_CFPLV_RM2.js → _sXB-xPac2.js} +1 -1
  150. package/dist/public/assets/_sXB-xPac2.js.br +0 -0
  151. package/dist/public/assets/{_Dv99udYl2.js → _xeig1-rM2.js} +1 -1
  152. package/dist/public/assets/_xeig1-rM2.js.br +0 -0
  153. package/dist/public/assets/app-page-DnlfALI5.css +1 -0
  154. package/dist/public/assets/app-page-DnlfALI5.css.br +0 -0
  155. package/dist/public/assets/{diff-view-Dy6kJWU6.css → diff-view-DDxnH9WL.css} +1 -1
  156. package/dist/public/assets/diff-view-DDxnH9WL.css.br +0 -0
  157. package/dist/public/assets/new-BJV4mfBg.js +1 -0
  158. package/dist/public/assets/settings-BJV4mfBg.js +1 -0
  159. package/dist/public/assets/w-BJV4mfBg.js +1 -0
  160. package/dist/public/assets/w._-B6v2qlds.js +1 -0
  161. package/dist/public/assets/w._-BJV4mfBg.js +1 -0
  162. package/package.json +1 -1
  163. package/dist/public/assets/_2JbF4QZ-2.js.br +0 -0
  164. package/dist/public/assets/_3Hkb9yUu.js.br +0 -0
  165. package/dist/public/assets/_6AsCIctl.js.br +0 -0
  166. package/dist/public/assets/_B7fOkgiH.js.br +0 -0
  167. package/dist/public/assets/_BEG2RHhd.js.br +0 -0
  168. package/dist/public/assets/_BHlaYXO_2.js.br +0 -0
  169. package/dist/public/assets/_BNFNv1Bq.js.br +0 -0
  170. package/dist/public/assets/_BUgACTwS.js.br +0 -0
  171. package/dist/public/assets/_BZ5X8ZeJ.js.br +0 -0
  172. package/dist/public/assets/_B_b1CgHC2.js.br +0 -0
  173. package/dist/public/assets/_BdktPwDj.js.br +0 -0
  174. package/dist/public/assets/_BjPdBgJ8.js.br +0 -0
  175. package/dist/public/assets/_BnWlJiz6.js.br +0 -0
  176. package/dist/public/assets/_BpBr5IdO.js.br +0 -0
  177. package/dist/public/assets/_BppyqDqk.js.br +0 -0
  178. package/dist/public/assets/_Bx-6cv1l.js.br +0 -0
  179. package/dist/public/assets/_BxG2fPQ6.js.br +0 -0
  180. package/dist/public/assets/_BzqUZqWL2.js.br +0 -0
  181. package/dist/public/assets/_C34E09cV2.js.br +0 -0
  182. package/dist/public/assets/_C5C_uOm72.js.br +0 -0
  183. package/dist/public/assets/_C6Oq-fpi.js.br +0 -0
  184. package/dist/public/assets/_C8iBzrpk.js.br +0 -0
  185. package/dist/public/assets/_C91eNTKI2.js.br +0 -0
  186. package/dist/public/assets/_CD2q1ZVm.js.br +0 -0
  187. package/dist/public/assets/_CEOCshbv.js.br +0 -0
  188. package/dist/public/assets/_CEWSo0iP2.js.br +0 -0
  189. package/dist/public/assets/_CFPLV_RM2.js.br +0 -0
  190. package/dist/public/assets/_CFj_gwWI.js.br +0 -0
  191. package/dist/public/assets/_CSuwPDOp2.js.br +0 -0
  192. package/dist/public/assets/_CUDXFOSz2.js.br +0 -0
  193. package/dist/public/assets/_CVuPSJA72.js.br +0 -0
  194. package/dist/public/assets/_CctK1uSA.js.br +0 -0
  195. package/dist/public/assets/_ClX_Oqrr.js.br +0 -0
  196. package/dist/public/assets/_Cn6w3MhW.js.br +0 -0
  197. package/dist/public/assets/_Cphh_yi5.js.br +0 -0
  198. package/dist/public/assets/_CqPdZxvF2.js.br +0 -0
  199. package/dist/public/assets/_Cs51LV8m.js.br +0 -0
  200. package/dist/public/assets/_CsXxbWcQ.js.br +0 -0
  201. package/dist/public/assets/_CsgJmYNA.js.br +0 -0
  202. package/dist/public/assets/_Ct92IAWI2.js.br +0 -0
  203. package/dist/public/assets/_D0nMBSFq.js.br +0 -0
  204. package/dist/public/assets/_D14ai5852.js.br +0 -0
  205. package/dist/public/assets/_D1YQla-x2.js.br +0 -0
  206. package/dist/public/assets/_D367w68f.js.br +0 -0
  207. package/dist/public/assets/_D7ModyMj.js.br +0 -0
  208. package/dist/public/assets/_D8uHD5Q02.js.br +0 -0
  209. package/dist/public/assets/_D9-Z5alI.js +0 -85
  210. package/dist/public/assets/_D9-Z5alI.js.br +0 -0
  211. package/dist/public/assets/_D9QFUawY.js.br +0 -0
  212. package/dist/public/assets/_DCJtg98I.js.br +0 -0
  213. package/dist/public/assets/_DJ0O5SUE.js.br +0 -0
  214. package/dist/public/assets/_DK3cmEdX.js.br +0 -0
  215. package/dist/public/assets/_DNuUxoGY.js.br +0 -0
  216. package/dist/public/assets/_DQ-YqDv_.js.br +0 -0
  217. package/dist/public/assets/_DTGwibmE.js.br +0 -0
  218. package/dist/public/assets/_DTbRs8Rd.js.br +0 -0
  219. package/dist/public/assets/_DgB3U5Gu.js.br +0 -0
  220. package/dist/public/assets/_Dkei5s2x2.js.br +0 -0
  221. package/dist/public/assets/_DnvNLHgm.js.br +0 -0
  222. package/dist/public/assets/_DqKJcZgQ.js.br +0 -0
  223. package/dist/public/assets/_Dv99udYl2.js.br +0 -0
  224. package/dist/public/assets/_GndjdkeR.js.br +0 -0
  225. package/dist/public/assets/_WVX78_eQ2.js.br +0 -0
  226. package/dist/public/assets/_Yp8RndlS2.js.br +0 -0
  227. package/dist/public/assets/_ZpIu30xq.js.br +0 -0
  228. package/dist/public/assets/_dRNLUcmQ.js.br +0 -0
  229. package/dist/public/assets/_iVbNVfLo.js.br +0 -0
  230. package/dist/public/assets/_jbEhGKqF.js.br +0 -0
  231. package/dist/public/assets/_lUBz-hZ6.js.br +0 -0
  232. package/dist/public/assets/_mwsyNxHs.js.br +0 -0
  233. package/dist/public/assets/_nG8aO-be.js.br +0 -0
  234. package/dist/public/assets/_oHe-s5Oy2.js.br +0 -0
  235. package/dist/public/assets/_wB8kCQ2X.js.br +0 -0
  236. package/dist/public/assets/_xnbg6Khg.js.br +0 -0
  237. package/dist/public/assets/app-page-D4vPVvwL.css +0 -1
  238. package/dist/public/assets/app-page-D4vPVvwL.css.br +0 -0
  239. package/dist/public/assets/diff-view-Dy6kJWU6.css.br +0 -0
  240. package/dist/public/assets/new-DZ3Y7jRu.js +0 -1
  241. package/dist/public/assets/settings-DZ3Y7jRu.js +0 -1
  242. package/dist/public/assets/w-DZ3Y7jRu.js +0 -1
  243. package/dist/public/assets/w._-B_8o0W7U.js +0 -1
  244. package/dist/public/assets/w._-DZ3Y7jRu.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 DEFAULT_GITHUB_HOST, A as setScrapedPhase, B as allPrefs, C as agentBadge, D as agentMeta, E as agentLabel, F as publish, G as setDisabledAgents, H as enabledAgents, I as subscribe, J as doctor, K as setPref, L as subscriberCount, M as deleteSubscription, N as pushPublicKey, O as clearAgentPhase, P as saveSubscription, Q as which, R as subscriberJoins, S as blankRow, T as agentFromCommand, U as getSetting, V as disabledAgents, W as preferredAgent, X as miseVersions, Y as ghKnownHosts, Z as setupPath, _ as tmuxName, a as ensureTmuxServer, at as get, b as readHookPayload, c as killWorkspaceSessions, ct as gh, d as newSessionArgs, dt as tmux, et as TOOLS, ft as config, g as sessionStates, h as sendToSession, i as disposeSessions, it as db, j as setSessionViewers, k as setAgentPhase, l as listSessions, lt as git, m as renameSession, n as clearTmuxStarted, nt as toolById, o as getSession, ot as workspacePath, p as panePids, q as setSetting, r as createSession, rt as all, s as killSession, st as TMUX_SOCKET, t as cleanEnv, tt as agentById, u as markTmuxStarted, ut as run, v as tmuxWasStarted, w as agentFamily, x as reportsWorking, y as AGENTS, z as agentChoices } from "./_BXcFivfU.js";
3
- import { $ as _flush_head, A as metaTrunc, B as _attr_select_value, C as setPrimaryHost, Ct as _try, D as iconBtnRow, Dt as writeScope, Et as withPageAssets, F as _attr_class, G as _content, H as _attrs, K as _content_resume, L as _attr_input_value, M as tone, N as $global, O as iconBtnXs, P as _attr, Q as _existing_scope, R as _attr_option_value, S as repoWebUrl$1, St as _trailers, T as btnSm, Tt as attrTag, U as _attrs_partial, V as _attr_style, W as _await, X as _el_resume, Y as _el_read_error, Z as _escape, _ as sectionCount$1, _t as _show_end, at as _if, b as icon_base_default, bt as _template, c as sideNavOpen, ct as _resume_branch, d as rankRepos, dt as _scope_with_id, et as _for_of, f as icon_search_default, ft as _script, g as row, gt as _set_serialize_reason, h as iconBtn$2, ht as _serialize_if, it as _id, j as phase, k as inputLg, l as workspaceTab, lt as _scope_id, m as icon_refresh_default, mt as _serialize_guard, n as findInput, nt as _hoist_read_error, ot as _peek_scope_id, p as icon_back_default, pt as _sep, q as _dynamic_tag, r as icon_sidebar_default, rt as _html, s as setWorkspaceTab, st as _resume, t as findIconBtn, tt as _hoist, ut as _scope_reason, v as toast_default, vt as _show_start, w as btnLg, wt as _var, x as repoLabel, xt as _to_text, y as icon_xmark_default, yt as _subscribe, z as _attr_or } from "./_CqtfLw6Y.js";
3
+ import { $ as _flush_head, A as metaTrunc, B as _attr_select_value, C as setPrimaryHost, Ct as _try, D as iconBtnRow, Dt as writeScope, Et as withPageAssets, F as _attr_class, G as _content, H as _attrs, K as _content_resume, L as _attr_input_value, M as tone, N as $global, O as iconBtnXs, P as _attr, Q as _existing_scope, R as _attr_option_value, S as repoWebUrl$1, St as _trailers, T as btnSm, Tt as attrTag, U as _attrs_partial, V as _attr_style, W as _await, X as _el_resume, Y as _el_read_error, Z as _escape, _ as sectionCount$1, _t as _show_end, at as _if, b as icon_base_default, bt as _template, c as sideNavOpen, ct as _resume_branch, d as rankRepos, dt as _scope_with_id, et as _for_of, f as icon_search_default, ft as _script, g as row, gt as _set_serialize_reason, h as iconBtn$2, ht as _serialize_if, it as _id, j as phase, k as inputLg, l as workspaceTab, lt as _scope_id, m as icon_refresh_default, mt as _serialize_guard, n as findInput, nt as _hoist_read_error, ot as _peek_scope_id, p as icon_back_default, pt as _sep, q as _dynamic_tag, r as icon_sidebar_default, rt as _html, s as setWorkspaceTab, st as _resume, t as findIconBtn, tt as _hoist, ut as _scope_reason, v as toast_default, vt as _show_start, w as btnLg, wt as _var, x as repoLabel, xt as _to_text, y as icon_xmark_default, yt as _subscribe, z as _attr_or } from "./_CiiZ9YMw.js";
4
4
  import fs from "node:fs";
5
5
  import { createServer } from "node:http";
6
6
  import path from "node:path";
@@ -2590,7 +2590,7 @@ async function runSetupAction(id, action, opts = {}) {
2590
2590
  }
2591
2591
  //#endregion
2592
2592
  //#region __marko-run__index.js
2593
- var getHandler$19 = normalizeHandler(Run.GET(async (ctx) => {
2593
+ var getHandler$20 = normalizeHandler(Run.GET(async (ctx) => {
2594
2594
  const active = listWorkspaces().filter((ws) => ws.status === "active");
2595
2595
  const prefs = allPrefs();
2596
2596
  const last = prefs["last-workspace"];
@@ -2602,10 +2602,10 @@ var getHandler$19 = normalizeHandler(Run.GET(async (ctx) => {
2602
2602
  }
2603
2603
  return ctx.redirect("/new", 302);
2604
2604
  }), "GET");
2605
- var get1_options = mergeOptions(getHandler$19);
2605
+ var get1_options = mergeOptions(getHandler$20);
2606
2606
  var head1_options = {};
2607
2607
  function get1(context) {
2608
- return call(getHandler$19, noContent, context);
2608
+ return call(getHandler$20, noContent, context);
2609
2609
  }
2610
2610
  function head1(context) {
2611
2611
  return stripResponseBody(get1(context));
@@ -3054,7 +3054,7 @@ var _middleware_default = Run.ALL((ctx, next) => {
3054
3054
  var mware3 = normalizeHandler(_middleware_default$3);
3055
3055
  var mware7 = normalizeHandler(_middleware_default$2);
3056
3056
  var mware11 = normalizeHandler(_middleware_default$1);
3057
- var mware33 = normalizeHandler(_middleware_default);
3057
+ var mware34 = normalizeHandler(_middleware_default);
3058
3058
  //#endregion
3059
3059
  //#region \0marko-link-assets.mjs
3060
3060
  var base = "/";
@@ -3133,15 +3133,15 @@ function coalesce(fn) {
3133
3133
  }
3134
3134
  //#endregion
3135
3135
  //#region src/tags/settings-page.css.ts
3136
- var content$2 = "_b3 _5 _6";
3137
- var agentGrid = "_b7 _bf";
3138
- var toolGrid = "_cg _bf";
3136
+ var content$2 = "_bV _bh _bi";
3137
+ var agentGrid = "_bZ _bs";
3138
+ var toolGrid = "_b9 _bs";
3139
3139
  //#endregion
3140
3140
  //#region src/tags/page-head.marko
3141
3141
  var page_head_default = _template("o", (input) => {
3142
3142
  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);
3143
3143
  const $scope0_id = _scope_id();
3144
- _html(`<header${_attr_class("_7")}>`);
3144
+ _html(`<header${_attr_class("_bj")}>`);
3145
3145
  _if(() => {
3146
3146
  if (input.backHref) {
3147
3147
  const $scope1_id = _scope_id();
@@ -3160,11 +3160,11 @@ var page_head_default = _template("o", (input) => {
3160
3160
  return 1;
3161
3161
  }
3162
3162
  }, $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);
3163
- _html(`<div${_attr_class("_9")}><h1${_attr("id", input.titleId)}${_attr_class("_8")}>${_escape(input.title)}${_el_resume($scope0_id, "e", _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
3163
+ _html(`<div${_attr_class("_bl")}><h1${_attr("id", input.titleId)}${_attr_class("_bk")}>${_escape(input.title)}${_el_resume($scope0_id, "e", _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
3164
3164
  _if(() => {
3165
3165
  if (input.meta) {
3166
3166
  const $scope3_id = _scope_id();
3167
- _html(`<p${_attr_class("__")}>`);
3167
+ _html(`<p${_attr_class("_bm")}>`);
3168
3168
  _dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
3169
3169
  _html("</p>");
3170
3170
  $si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
@@ -3175,7 +3175,7 @@ var page_head_default = _template("o", (input) => {
3175
3175
  _if(() => {
3176
3176
  if (input.actions) {
3177
3177
  const $scope4_id = _scope_id();
3178
- _html(`<div${_attr_class("_ba")}>`);
3178
+ _html(`<div${_attr_class("_bn")}>`);
3179
3179
  _dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
3180
3180
  _html("</div>");
3181
3181
  $si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
@@ -3243,7 +3243,7 @@ var icon_agent_default = _template("C", (input) => {
3243
3243
  n: $badge__closures
3244
3244
  });
3245
3245
  });
3246
- var usageNote = "_cw _P";
3246
+ var usageNote = "_cL _P";
3247
3247
  //#endregion
3248
3248
  //#region src/tags/usage-meters.marko
3249
3249
  function duration(ms) {
@@ -3267,11 +3267,11 @@ var usage_meters_default = _template("z", (input) => {
3267
3267
  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);
3268
3268
  const $scope0_id = _scope_id();
3269
3269
  const agent = input.agent;
3270
- _html(`<div${_attr_class(["_cq", { ["_cr"]: input.hideName }])}><div${_attr_class("_cs")}>`);
3270
+ _html(`<div${_attr_class(["_cF", { ["_cG"]: input.hideName }])}><div${_attr_class("_cH")}>`);
3271
3271
  _if(() => {
3272
3272
  if (!input.hideName) {
3273
3273
  const $scope1_id = _scope_id();
3274
- _html(`<strong${_attr_class("_cL")}>${_escape(agent.agent)}${_el_resume($scope1_id, "b", $sg__input_agent)}</strong>`);
3274
+ _html(`<strong${_attr_class("_c0")}>${_escape(agent.agent)}${_el_resume($scope1_id, "b", $sg__input_agent)}</strong>`);
3275
3275
  $si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
3276
3276
  return 0;
3277
3277
  }
@@ -3279,7 +3279,7 @@ var usage_meters_default = _template("z", (input) => {
3279
3279
  _if(() => {
3280
3280
  if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
3281
3281
  const $scope2_id = _scope_id();
3282
- _html(`<span${_attr_class("_ct")}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope2_id, "b", $sg__input_agent)}</span>`);
3282
+ _html(`<span${_attr_class("_cI")}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope2_id, "b", $sg__input_agent)}</span>`);
3283
3283
  $si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
3284
3284
  return 0;
3285
3285
  }
@@ -3287,19 +3287,19 @@ var usage_meters_default = _template("z", (input) => {
3287
3287
  _if(() => {
3288
3288
  if (agent.stale_seconds != null) {
3289
3289
  const $scope3_id = _scope_id();
3290
- _html(`<span${_attr_class("_cu")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>⚠ ${_sep($sg__input_agent)}${_escape(duration(agent.stale_seconds * 1e3))}${_el_resume($scope3_id, "b", $sg__input_agent)} old</span>${_el_resume($scope3_id, "a", $sg__input_agent)}`);
3290
+ _html(`<span${_attr_class("_cJ")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>⚠ ${_sep($sg__input_agent)}${_escape(duration(agent.stale_seconds * 1e3))}${_el_resume($scope3_id, "b", $sg__input_agent)} old</span>${_el_resume($scope3_id, "a", $sg__input_agent)}`);
3291
3291
  $si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
3292
3292
  return 0;
3293
3293
  }
3294
3294
  }, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
3295
- _html(`</div><div${_attr_class(["_cv", { ["_cM"]: agent.stale_seconds != null }])}>`);
3295
+ _html(`</div><div${_attr_class(["_cK", { ["_c1"]: agent.stale_seconds != null }])}>`);
3296
3296
  _for_of(agent.windows || [], (win) => {
3297
3297
  const $scope4_id = _scope_id();
3298
3298
  const pct = pctText$1(win.used_percent);
3299
3299
  const label = resetLabel(win.resets_at, agent.stale_seconds != null);
3300
- const fillClass = win.used_percent >= 90 ? "_cE" : win.used_percent >= 70 ? "_cD" : win.used_percent >= 40 ? "_cC" : "_cB";
3301
- const pctClass = win.used_percent >= 90 ? "_cJ" : win.used_percent >= 70 ? "_cI" : win.used_percent >= 40 ? "_cH" : "_cG";
3302
- _html(`<div${_attr_class("_cx")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_cy")}>${_escape(win.window)}${_el_resume($scope4_id, "c", $sg__input_agent)}</span><span${_attr_class("_cz")}><span${_attr_class(["_cA", 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(["_cF", pctClass])}>${_escape(pct)}${_el_resume($scope4_id, "g", $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_cK")}>${label ? `↻ ${_escape(`${_to_text(label)}`)}` : ""}${_el_resume($scope4_id, "i", $sg__input_agent)}</span></div>${_el_resume($scope4_id, "a", $sg__input_agent)}`);
3300
+ const fillClass = win.used_percent >= 90 ? "_cT" : win.used_percent >= 70 ? "_cS" : win.used_percent >= 40 ? "_cR" : "_cQ";
3301
+ const pctClass = win.used_percent >= 90 ? "_cY" : win.used_percent >= 70 ? "_cX" : win.used_percent >= 40 ? "_cW" : "_cV";
3302
+ _html(`<div${_attr_class("_cM")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_cN")}>${_escape(win.window)}${_el_resume($scope4_id, "c", $sg__input_agent)}</span><span${_attr_class("_cO")}><span${_attr_class(["_cP", 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(["_cU", pctClass])}>${_escape(pct)}${_el_resume($scope4_id, "g", $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_cZ")}>${label ? `↻ ${_escape(`${_to_text(label)}`)}` : ""}${_el_resume($scope4_id, "i", $sg__input_agent)}</span></div>${_el_resume($scope4_id, "a", $sg__input_agent)}`);
3303
3303
  $si__input_agent && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
3304
3304
  }, "window", $scope0_id, "g", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
3305
3305
  _if(() => {
@@ -3358,7 +3358,7 @@ var modal_view_default = _template("m", (input) => {
3358
3358
  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;
3359
3359
  const dismissable = input.dismissable !== false;
3360
3360
  let open = input.open;
3361
- _html(`<dialog${_attr_class(["_eI", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
3361
+ _html(`<dialog${_attr_class(["_eC", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
3362
3362
  ...htmlInput,
3363
3363
  open: null
3364
3364
  }, {
@@ -3368,20 +3368,20 @@ var modal_view_default = _template("m", (input) => {
3368
3368
  closedby: 1,
3369
3369
  "on-cancel": 1,
3370
3370
  "on-close": 1
3371
- }, "a", $scope0_id, "dialog")}><div${_attr_class("_eJ")}>`);
3371
+ }, "a", $scope0_id, "dialog")}><div${_attr_class("_eD")}>`);
3372
3372
  _dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
3373
3373
  _html("</div>");
3374
3374
  _if(() => {
3375
3375
  if (footer) {
3376
3376
  const $scope1_id = _scope_id();
3377
- _html(`<form method=dialog${_attr_class("_eK")}>`);
3377
+ _html(`<form method=dialog${_attr_class("_eE")}>`);
3378
3378
  _dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
3379
3379
  _html("</form>");
3380
3380
  $si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
3381
3381
  return 0;
3382
3382
  } else if (input.openChange) {
3383
3383
  const $scope2_id = _scope_id();
3384
- _html(`<form method=dialog${_attr_class("_eK")}>`);
3384
+ _html(`<form method=dialog${_attr_class("_eE")}>`);
3385
3385
  dialog_close_default({
3386
3386
  class: ["_l", "_m"],
3387
3387
  content: _content("m0", () => {
@@ -3440,7 +3440,7 @@ var prompt_dialog_default = _template("p", (input) => {
3440
3440
  const $childScope = _peek_scope_id();
3441
3441
  modal_view_default({
3442
3442
  label: input.label,
3443
- class: "_c0",
3443
+ class: "_cD",
3444
3444
  open: input.open,
3445
3445
  openChange: input.openChange,
3446
3446
  "aria-labelledby": titleId,
@@ -3463,7 +3463,7 @@ var prompt_dialog_default = _template("p", (input) => {
3463
3463
  content: _content("p6", () => {
3464
3464
  _scope_reason();
3465
3465
  const $scope2_id = _scope_id();
3466
- _html(`<h2${_attr_class("_c1")}${_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) => {
3466
+ _html(`<h2${_attr_class("_cE")}${_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) => {
3467
3467
  value = _new_value;
3468
3468
  }, "p0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
3469
3469
  _script($scope2_id, "p4");
@@ -3515,6 +3515,9 @@ var settings_page_default = _template("s", (input) => {
3515
3515
  const $accountsFor2__closures = /* @__PURE__ */ new Set();
3516
3516
  const $authCodes__closures = /* @__PURE__ */ new Set();
3517
3517
  const $confirmingRemove__closures = /* @__PURE__ */ new Set();
3518
+ const $self_latest__closures = /* @__PURE__ */ new Set();
3519
+ const $self_version__closures = /* @__PURE__ */ new Set();
3520
+ const $self_install__closures = /* @__PURE__ */ new Set();
3518
3521
  const $hits__closures = /* @__PURE__ */ new Set();
3519
3522
  const $query__closures = /* @__PURE__ */ new Set();
3520
3523
  let setup = input.setup || lastSetup;
@@ -3530,6 +3533,8 @@ var settings_page_default = _template("s", (input) => {
3530
3533
  let hostBusy = false;
3531
3534
  let query = "";
3532
3535
  let hits = null;
3536
+ let self = null;
3537
+ let selfUpdating = false;
3533
3538
  let searching = false;
3534
3539
  const searchTimer = { id: 0 };
3535
3540
  const applySetup = _resume((s) => {
@@ -3552,6 +3557,37 @@ var settings_page_default = _template("s", (input) => {
3552
3557
  error = String(err.message || err);
3553
3558
  }
3554
3559
  }, "s5", $scope0_id);
3560
+ const loadSelf = _resume(async (refresh) => {
3561
+ try {
3562
+ const info = await api$6(`/api/setup/self${refresh ? "?refresh" : ""}`);
3563
+ self = info;
3564
+ if (info.updating) selfUpdating = true;
3565
+ } catch {}
3566
+ }, "s6", $scope0_id);
3567
+ const updateSelf = _resume(async () => {
3568
+ if (!self || selfUpdating) return;
3569
+ selfUpdating = true;
3570
+ const from = self.version;
3571
+ try {
3572
+ await api$6("/api/setup/self", { method: "POST" });
3573
+ } catch (err) {
3574
+ selfUpdating = false;
3575
+ error = String(err.message || err);
3576
+ return;
3577
+ }
3578
+ const started = Date.now();
3579
+ const tick = async () => {
3580
+ try {
3581
+ if ((await api$6("/api/setup/self")).version !== from) {
3582
+ location.reload();
3583
+ return;
3584
+ }
3585
+ } catch {}
3586
+ if (Date.now() - started < 3e5) setTimeout(tick, 2e3);
3587
+ else selfUpdating = false;
3588
+ };
3589
+ setTimeout(tick, 4e3);
3590
+ }, "s7", $scope0_id);
3555
3591
  const loadUsage = _resume(async (refresh) => {
3556
3592
  try {
3557
3593
  usage = await api$6(`/api/usage${refresh ? "?refresh" : ""}`);
@@ -3559,23 +3595,23 @@ var settings_page_default = _template("s", (input) => {
3559
3595
  usage = { error: String(err.message || err) };
3560
3596
  }
3561
3597
  lastUsage = usage;
3562
- }, "s6", $scope0_id);
3598
+ }, "s8", $scope0_id);
3563
3599
  const refresh = _resume(async () => {
3564
3600
  refreshing = true;
3565
- await loadSetup(true);
3601
+ await Promise.all([loadSetup(true), loadSelf(true)]);
3566
3602
  refreshing = false;
3567
- }, "s7", $scope0_id);
3603
+ }, "s9", $scope0_id);
3568
3604
  const refreshUsage = _resume(async () => {
3569
3605
  usageRefreshing = true;
3570
3606
  await loadUsage(true);
3571
3607
  usageRefreshing = false;
3572
- }, "s8", $scope0_id);
3608
+ }, "s10", $scope0_id);
3573
3609
  const setActive = _resume((id, line) => {
3574
3610
  const next = new Map(active);
3575
3611
  if (line === null) next.delete(id);
3576
3612
  else next.set(id, line);
3577
3613
  active = next;
3578
- }, "s9", $scope0_id);
3614
+ }, "s11", $scope0_id);
3579
3615
  const run = _resume(async (id, action, version) => {
3580
3616
  if (active.has(id)) return;
3581
3617
  error = null;
@@ -3606,7 +3642,7 @@ var settings_page_default = _template("s", (input) => {
3606
3642
  watcher.stop();
3607
3643
  setActive(id, null);
3608
3644
  }
3609
- }, "s10", $scope0_id);
3645
+ }, "s12", $scope0_id);
3610
3646
  const changeHost = _resume(async (host, remove) => {
3611
3647
  hostBusy = true;
3612
3648
  error = null;
@@ -3625,10 +3661,10 @@ var settings_page_default = _template("s", (input) => {
3625
3661
  } finally {
3626
3662
  hostBusy = false;
3627
3663
  }
3628
- }, "s11", $scope0_id);
3664
+ }, "s13", $scope0_id);
3629
3665
  const runEach = _resume(async (ids, action) => {
3630
3666
  for (const id of ids) await run(id, action);
3631
- }, "s12", $scope0_id);
3667
+ }, "s14", $scope0_id);
3632
3668
  const setPreferred = _resume(async (agent) => {
3633
3669
  input.preferredChange?.(agent);
3634
3670
  try {
@@ -3640,7 +3676,7 @@ var settings_page_default = _template("s", (input) => {
3640
3676
  } catch (err) {
3641
3677
  error = String(err.message || err);
3642
3678
  }
3643
- }, "s13", $scope0_id);
3679
+ }, "s15", $scope0_id);
3644
3680
  const setEnabled = _resume(async (id, on) => {
3645
3681
  if (!setup) return;
3646
3682
  const off = new Set(setup.agents.flatMap((f) => f.instances.filter((i) => !i.enabled).map((i) => i.id)));
@@ -3667,7 +3703,7 @@ var settings_page_default = _template("s", (input) => {
3667
3703
  } catch (err) {
3668
3704
  error = String(err.message || err);
3669
3705
  }
3670
- }, "s14", $scope0_id);
3706
+ }, "s16", $scope0_id);
3671
3707
  const search = _resume((q) => {
3672
3708
  query = q;
3673
3709
  clearTimeout(searchTimer.id);
@@ -3688,21 +3724,21 @@ var settings_page_default = _template("s", (input) => {
3688
3724
  }
3689
3725
  }, 250);
3690
3726
  }, "s0", $scope0_id);
3691
- const outdated = _resume((t) => !!(t.installed && t.latest && t.latest !== t.version), "s15");
3727
+ const outdated = _resume((t) => !!(t.installed && t.latest && t.latest !== t.version), "s17");
3692
3728
  const tools = setup?.tools || [];
3693
3729
  const missingInstallable = tools.filter((t) => t.recommended && !t.installed && t.installable);
3694
3730
  const missingCount = tools.filter((t) => t.recommended && !t.installed).length;
3695
3731
  const outdatedIds = tools.filter(outdated).map((t) => t.id);
3696
3732
  const families = setup?.agents || [];
3697
3733
  const instanceIds = new Set(families.flatMap((f) => f.instances.map((i) => i.id)));
3698
- const accountsFor = _resume((id) => (usage?.agents || []).filter((u) => u.agent === id), "s16", $scope0_id);
3699
- const strayAccountsFor = _resume((f) => (usage?.agents || []).filter((u) => !instanceIds.has(u.agent) && familyOf(u.agent, families) === f.id), "s17", $scope0_id);
3734
+ const accountsFor = _resume((id) => (usage?.agents || []).filter((u) => u.agent === id), "s18", $scope0_id);
3735
+ const strayAccountsFor = _resume((f) => (usage?.agents || []).filter((u) => !instanceIds.has(u.agent) && familyOf(u.agent, families) === f.id), "s19", $scope0_id);
3700
3736
  const otherUsage = (usage?.agents || []).filter((u) => familyOf(u.agent, families) === null);
3701
3737
  const titleId = _id();
3702
3738
  const agentsId = _id();
3703
3739
  const githubId = _id();
3704
3740
  const machineId = _id();
3705
- _html(`<div${_attr_class("_3")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_4")}><div${_attr_class(content$2)}>`);
3741
+ _html(`<div${_attr_class("_bf")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bg")}><div${_attr_class(content$2)}>`);
3706
3742
  _set_serialize_reason({
3707
3743
  0: _serialize_guard($scope0_reason, 2),
3708
3744
  1: $sg__input_backHref__OR__input_onExit,
@@ -3714,24 +3750,24 @@ var settings_page_default = _template("s", (input) => {
3714
3750
  title: "Settings",
3715
3751
  titleId,
3716
3752
  backHref: input.backHref,
3717
- onBack: input.onExit && _resume(() => input.onExit?.(), "s18", $scope0_id),
3718
- meta: attrTag({ content: _content_resume("s23", () => {
3753
+ onBack: input.onExit && _resume(() => input.onExit?.(), "s20", $scope0_id),
3754
+ meta: attrTag({ content: _content_resume("s25", () => {
3719
3755
  _scope_reason();
3720
3756
  const $scope4_id = _scope_id();
3721
3757
  _if(() => {
3722
3758
  if (!setup) {
3723
- const $scope42_id = _scope_id();
3759
+ const $scope45_id = _scope_id();
3724
3760
  _html("Checking this machine…");
3725
- writeScope($scope42_id, {});
3761
+ writeScope($scope45_id, {});
3726
3762
  return 0;
3727
3763
  } else if (setup.ready) {
3728
- const $scope43_id = _scope_id();
3729
- _html(`<span${_attr_class("_b5")}>Ready</span>. Tools, GitHub, and an agent are all in place.`);
3730
- writeScope($scope43_id, {});
3764
+ const $scope46_id = _scope_id();
3765
+ _html(`<span${_attr_class("_bX")}>Ready</span>. Tools, GitHub, and an agent are all in place.`);
3766
+ writeScope($scope46_id, {});
3731
3767
  return 1;
3732
3768
  } else {
3733
3769
  const $scope5_id = _scope_id();
3734
- _html(`<span${_attr_class("_b6")}>Not ready</span>. Missing <!>${_escape(setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "))}${_el_resume($scope5_id, "b")}.`);
3770
+ _html(`<span${_attr_class("_bY")}>Not ready</span>. Missing <!>${_escape(setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "))}${_el_resume($scope5_id, "b")}.`);
3735
3771
  _subscribe($setup_missing__closures, writeScope($scope5_id, {}));
3736
3772
  return 2;
3737
3773
  }
@@ -3739,7 +3775,7 @@ var settings_page_default = _template("s", (input) => {
3739
3775
  _subscribe($setup2__closures, writeScope($scope4_id, { _: _scope_with_id($scope0_id) }));
3740
3776
  _resume_branch($scope4_id);
3741
3777
  }, $scope0_id) }),
3742
- actions: attrTag({ content: _content_resume("s24", () => {
3778
+ actions: attrTag({ content: _content_resume("s26", () => {
3743
3779
  _scope_reason();
3744
3780
  const $scope9_id = _scope_id();
3745
3781
  _html(`<button${_attr_class(iconBtnRow)} title="Re-check this machine" aria-label="Re-check this machine"${_attr("disabled", refreshing)}>`);
@@ -3750,7 +3786,7 @@ var settings_page_default = _template("s", (input) => {
3750
3786
  class: refreshing && "_B"
3751
3787
  });
3752
3788
  _html(`</button>${_el_resume($scope9_id, "a")}`);
3753
- _script($scope9_id, "s22");
3789
+ _script($scope9_id, "s24");
3754
3790
  _subscribe($refreshing__closures, writeScope($scope9_id, {
3755
3791
  _: _scope_with_id($scope0_id),
3756
3792
  b: _existing_scope($childScope)
@@ -3765,8 +3801,8 @@ var settings_page_default = _template("s", (input) => {
3765
3801
  placement: "inline",
3766
3802
  onDismiss: _resume(function() {
3767
3803
  error = null;
3768
- }, "s19", $scope7_id),
3769
- content: _content_resume("s25", () => {
3804
+ }, "s21", $scope7_id),
3805
+ content: _content_resume("s27", () => {
3770
3806
  _scope_reason();
3771
3807
  const $scope8_id = _scope_id();
3772
3808
  _html(`${_escape(error)}${_el_resume($scope8_id, "a")}`);
@@ -3778,15 +3814,15 @@ var settings_page_default = _template("s", (input) => {
3778
3814
  return 0;
3779
3815
  }
3780
3816
  }, $scope0_id, "e", 1, 1, 1, 0, 1);
3781
- _html(`<section${_attr_class("_bc")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bd")}><h2${_attr("id", agentsId)}${_attr_class("_br")}>Agents</h2><div${_attr_class("_v")}></div><label${_attr_class("_b9")}><span${_attr_class("_P")}>Default</span><span${_attr_class("_j")}>`);
3817
+ _html(`<section${_attr_class("_bp")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bq")}><h2${_attr("id", agentsId)}${_attr_class("_bE")}>Agents</h2><div${_attr_class("_v")}></div><label${_attr_class("_b1")}><span${_attr_class("_P")}>Default</span><span${_attr_class("_j")}>`);
3782
3818
  _attr_select_value($scope0_id, "m", input.preferred, _resume(function(v) {
3783
3819
  setPreferred(v);
3784
3820
  }, "s1", $scope0_id), () => {
3785
- _html(`<select${_attr_class(["_k", "_b_"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
3821
+ _html(`<select${_attr_class(["_k", "_b2"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
3786
3822
  _for_of(input.agents.filter((a) => a !== "shell"), (id) => {
3787
- const $scope44_id = _scope_id();
3788
- _html(`<option${_attr_option_value(id)}>${_escape(agentLabel(id))}${_el_resume($scope44_id, "b", $sg__input_agents)}</option>${_el_resume($scope44_id, "a", $sg__input_agents)}`);
3789
- _serialize_if($scope0_reason, 3) && writeScope($scope44_id, {});
3823
+ const $scope47_id = _scope_id();
3824
+ _html(`<option${_attr_option_value(id)}>${_escape(agentLabel(id))}${_el_resume($scope47_id, "b", $sg__input_agents)}</option>${_el_resume($scope47_id, "a", $sg__input_agents)}`);
3825
+ _serialize_if($scope0_reason, 3) && writeScope($scope47_id, {});
3790
3826
  }, (a) => a, $scope0_id, "m", $sg__input_agents, 1, 1, "</select>", 1);
3791
3827
  });
3792
3828
  _html(`</span></label><button${_attr_class(iconBtn$2)} title="Refresh usage" aria-label="Refresh usage"${_attr("disabled", usageRefreshing)}>`);
@@ -3803,19 +3839,19 @@ var settings_page_default = _template("s", (input) => {
3803
3839
  const rows = lone ? [] : a.instances;
3804
3840
  const loneAccounts = lone && lone.enabled ? accountsFor(lone.id) : [];
3805
3841
  const extraAccounts = a.installed ? strayAccountsFor(a) : [];
3806
- _html(`<li${_attr_class(["_bh", "_b8"])}><div${_attr_class(["_ca", { ["_cd"]: lone && !lone.enabled }])}>`);
3842
+ _html(`<li${_attr_class(["_bu", "_b0"])}><div${_attr_class(["_b3", { ["_b6"]: lone && !lone.enabled }])}>`);
3807
3843
  _set_serialize_reason(12);
3808
3844
  const $childScope4 = _peek_scope_id();
3809
3845
  icon_agent_default({
3810
3846
  agent: a.id,
3811
3847
  size: 18
3812
3848
  });
3813
- _html(`<div${_attr_class("_bi")}><span${_attr_class("_bk")}><span${_attr_class("_bj")}>${_escape(a.label)}${_el_resume($scope1_id, "g")}</span>`);
3849
+ _html(`<div${_attr_class("_bv")}><span${_attr_class("_bx")}><span${_attr_class("_bw")}>${_escape(a.label)}${_el_resume($scope1_id, "g")}</span>`);
3814
3850
  _if(() => {
3815
3851
  if (lone && input.preferred === lone.id) {
3816
- const $scope45_id = _scope_id();
3852
+ const $scope48_id = _scope_id();
3817
3853
  _html(`<span${_attr_class(["_F", tone.accent])}>default</span>`);
3818
- writeScope($scope45_id, {});
3854
+ writeScope($scope48_id, {});
3819
3855
  return 0;
3820
3856
  }
3821
3857
  }, $scope1_id, "h", 1, 1, 1, 0, 1);
@@ -3823,36 +3859,36 @@ var settings_page_default = _template("s", (input) => {
3823
3859
  _if(() => {
3824
3860
  if (active.has(a.id)) {
3825
3861
  const $scope10_id = _scope_id();
3826
- _html(`<span${_attr_class("_b4")}><span${_attr_class("_C")}></span><!>${_escape(active.get(a.id) || "Starting…")}${_el_resume($scope10_id, "c")}</span>`);
3862
+ _html(`<span${_attr_class("_bW")}><span${_attr_class("_C")}></span><!>${_escape(active.get(a.id) || "Starting…")}${_el_resume($scope10_id, "c")}</span>`);
3827
3863
  _subscribe($active__closures, writeScope($scope10_id, {}));
3828
3864
  return 0;
3829
3865
  } else if (!a.installed) {
3830
- const $scope46_id = _scope_id();
3831
- _html(`<span${_attr_class("_bl")}>Not installed</span>`);
3832
- writeScope($scope46_id, {});
3866
+ const $scope49_id = _scope_id();
3867
+ _html(`<span${_attr_class("_by")}>Not installed</span>`);
3868
+ writeScope($scope49_id, {});
3833
3869
  return 1;
3834
3870
  }
3835
3871
  }, $scope1_id, "i", 1, 1, 1, 0, 1);
3836
3872
  _html("</div>");
3837
3873
  _if(() => {
3838
3874
  if (!a.installed && !active.has(a.id)) {
3839
- const $scope35_id = _scope_id();
3840
- _html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope35_id, "a")}`);
3841
- _script($scope35_id, "s26");
3842
- writeScope($scope35_id, {});
3875
+ const $scope38_id = _scope_id();
3876
+ _html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope38_id, "a")}`);
3877
+ _script($scope38_id, "s28");
3878
+ writeScope($scope38_id, {});
3843
3879
  return 0;
3844
3880
  }
3845
3881
  }, $scope1_id, "j", 1, 1, 1, 0, 1);
3846
3882
  _if(() => {
3847
3883
  if (lone) {
3848
- const $scope39_id = _scope_id();
3884
+ const $scope42_id = _scope_id();
3849
3885
  _html(`<button${_attr_class([
3850
3886
  "_F",
3851
3887
  "_H",
3852
3888
  { [tone.ok]: lone.enabled }
3853
- ])} role=switch aria-checked=${lone.enabled ? "true" : "false"} title=${lone.enabled ? "\"Shown in session pickers. Hide it\"" : "\"Hidden from session pickers. Show it\""}>${lone.enabled ? "on" : "off"}${_el_resume($scope39_id, "b")}</button>${_el_resume($scope39_id, "a")}`);
3854
- _script($scope39_id, "s27");
3855
- writeScope($scope39_id, {});
3889
+ ])} role=switch aria-checked=${lone.enabled ? "true" : "false"} title=${lone.enabled ? "\"Shown in session pickers. Hide it\"" : "\"Hidden from session pickers. Show it\""}>${lone.enabled ? "on" : "off"}${_el_resume($scope42_id, "b")}</button>${_el_resume($scope42_id, "a")}`);
3890
+ _script($scope42_id, "s29");
3891
+ writeScope($scope42_id, {});
3856
3892
  return 0;
3857
3893
  }
3858
3894
  }, $scope1_id, "k", 1, 1, 1, 0, 1);
@@ -3860,23 +3896,23 @@ var settings_page_default = _template("s", (input) => {
3860
3896
  _if(() => {
3861
3897
  if (rows.length || loneAccounts.length || extraAccounts.length) {
3862
3898
  const $scope2_id = _scope_id();
3863
- _html(`<ul${_attr_class("_cf")}>`);
3899
+ _html(`<ul${_attr_class("_b8")}>`);
3864
3900
  _for_of(rows, (inst) => {
3865
3901
  const $scope3_id = _scope_id();
3866
3902
  const accounts = inst.enabled ? accountsFor(inst.id) : [];
3867
- _html(`<li${_attr_class("_cb")}><div${_attr_class(["_cc", { ["_cd"]: !inst.enabled }])}>`);
3903
+ _html(`<li${_attr_class("_b4")}><div${_attr_class(["_b5", { ["_b6"]: !inst.enabled }])}>`);
3868
3904
  _set_serialize_reason(12);
3869
3905
  const $childScope5 = _peek_scope_id();
3870
3906
  icon_agent_default({
3871
3907
  agent: inst.id,
3872
3908
  size: 15
3873
3909
  });
3874
- _html(`<span${_attr_class(["_ce", "_u"])}>${_escape(inst.command)}${_el_resume($scope3_id, "e")}</span>`);
3910
+ _html(`<span${_attr_class(["_b7", "_u"])}>${_escape(inst.command)}${_el_resume($scope3_id, "e")}</span>`);
3875
3911
  _if(() => {
3876
3912
  if (input.preferred === inst.id) {
3877
- const $scope47_id = _scope_id();
3913
+ const $scope50_id = _scope_id();
3878
3914
  _html(`<span${_attr_class(["_F", tone.accent])}>default</span>`);
3879
- writeScope($scope47_id, {});
3915
+ writeScope($scope50_id, {});
3880
3916
  return 0;
3881
3917
  }
3882
3918
  }, $scope3_id, "f", 1, 1, 1, 0, 1);
@@ -3886,17 +3922,17 @@ var settings_page_default = _template("s", (input) => {
3886
3922
  { [tone.ok]: inst.enabled }
3887
3923
  ])} role=switch aria-checked=${inst.enabled ? "true" : "false"} title=${inst.enabled ? "\"Shown in session pickers. Hide it\"" : "\"Hidden from session pickers. Show it\""}>${inst.enabled ? "on" : "off"}${_el_resume($scope3_id, "i")}</button>${_el_resume($scope3_id, "h")}</div>${_el_resume($scope3_id, "b")}`);
3888
3924
  _for_of(accounts, (u) => {
3889
- const $scope48_id = _scope_id();
3925
+ const $scope51_id = _scope_id();
3890
3926
  _set_serialize_reason(6);
3891
3927
  const $childScope6 = _peek_scope_id();
3892
3928
  usage_meters_default({
3893
3929
  agent: u,
3894
3930
  hideName: true
3895
3931
  });
3896
- writeScope($scope48_id, { a: _existing_scope($childScope6) });
3932
+ writeScope($scope51_id, { a: _existing_scope($childScope6) });
3897
3933
  }, (u) => `${u.agent}-${u.account || ""}`, $scope3_id, "j", 1, 1, 1, 0, 1);
3898
3934
  _html("</li>");
3899
- _script($scope3_id, "s28");
3935
+ _script($scope3_id, "s30");
3900
3936
  _subscribe($accountsFor2__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope3_id, {
3901
3937
  m: inst?.enabled,
3902
3938
  n: inst?.id,
@@ -3904,7 +3940,7 @@ var settings_page_default = _template("s", (input) => {
3904
3940
  })));
3905
3941
  }, "id", $scope2_id, "b", 1, 1, 1, 0, 1);
3906
3942
  _for_of(loneAccounts, (u) => {
3907
- const $scope49_id = _scope_id();
3943
+ const $scope52_id = _scope_id();
3908
3944
  _html("<li>");
3909
3945
  _set_serialize_reason(6);
3910
3946
  const $childScope7 = _peek_scope_id();
@@ -3913,16 +3949,16 @@ var settings_page_default = _template("s", (input) => {
3913
3949
  hideName: true
3914
3950
  });
3915
3951
  _html("</li>");
3916
- writeScope($scope49_id, { a: _existing_scope($childScope7) });
3952
+ writeScope($scope52_id, { a: _existing_scope($childScope7) });
3917
3953
  }, (u) => `${u.agent}-${u.account || ""}`, $scope2_id, "c", 1, 1, 1, 0, 1);
3918
3954
  _for_of(extraAccounts, (u) => {
3919
- const $scope50_id = _scope_id();
3955
+ const $scope53_id = _scope_id();
3920
3956
  _html("<li>");
3921
3957
  _set_serialize_reason(6);
3922
3958
  const $childScope8 = _peek_scope_id();
3923
3959
  usage_meters_default({ agent: u });
3924
3960
  _html("</li>");
3925
- writeScope($scope50_id, { a: _existing_scope($childScope8) });
3961
+ writeScope($scope53_id, { a: _existing_scope($childScope8) });
3926
3962
  }, (u) => `${u.agent}-${u.account || ""}`, $scope2_id, "d", 1, 1, 1, 0, 1);
3927
3963
  _html("</ul>");
3928
3964
  writeScope($scope2_id, {});
@@ -3945,38 +3981,38 @@ var settings_page_default = _template("s", (input) => {
3945
3981
  });
3946
3982
  }, "id", $scope0_id, "q", 1, 1, 1, 0, 1);
3947
3983
  _for_of(otherUsage, (u) => {
3948
- const $scope51_id = _scope_id();
3949
- _html(`<li${_attr_class(["_bh", "_b8"])}>`);
3984
+ const $scope54_id = _scope_id();
3985
+ _html(`<li${_attr_class(["_bu", "_b0"])}>`);
3950
3986
  _set_serialize_reason(6);
3951
3987
  const $childScope9 = _peek_scope_id();
3952
3988
  usage_meters_default({ agent: u });
3953
3989
  _html("</li>");
3954
- writeScope($scope51_id, { b: _existing_scope($childScope9) });
3990
+ writeScope($scope54_id, { b: _existing_scope($childScope9) });
3955
3991
  }, (u) => `${u.agent}-${u.account || ""}`, $scope0_id, "r", 1, 1, 1, 0, 1);
3956
3992
  _html("</ul>");
3957
3993
  _if(() => {
3958
3994
  if (!usage && families.length) {
3959
- const $scope52_id = _scope_id();
3960
- _html(`<p${_attr_class("_bn")}><span${_attr_class("_C")}></span> Loading usage…</p>`);
3961
- writeScope($scope52_id, {});
3995
+ const $scope55_id = _scope_id();
3996
+ _html(`<p${_attr_class("_bA")}><span${_attr_class("_C")}></span> Loading usage…</p>`);
3997
+ writeScope($scope55_id, {});
3962
3998
  return 0;
3963
3999
  } else if (usage?.error) {
3964
4000
  const $scope6_id = _scope_id();
3965
- _html(`<p${_attr_class("_bn")}>${_escape(usage.error)}${_el_resume($scope6_id, "b")}</p>`);
4001
+ _html(`<p${_attr_class("_bA")}>${_escape(usage.error)}${_el_resume($scope6_id, "b")}</p>`);
3966
4002
  writeScope($scope6_id, {});
3967
4003
  return 1;
3968
4004
  }
3969
4005
  }, $scope0_id, "s", 1, 1, 1, 0, 1);
3970
- _html(`</section><section${_attr_class("_bc")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_bd")}><h2${_attr("id", githubId)}${_attr_class("_br")}>GitHub</h2></div><ul${_attr_class("_bf")}>`);
4006
+ _html(`</section><section${_attr_class("_bp")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_bq")}><h2${_attr("id", githubId)}${_attr_class("_bE")}>GitHub</h2></div><ul${_attr_class("_bs")}>`);
3971
4007
  _for_of(setup?.github || [], (h) => {
3972
4008
  const $scope11_id = _scope_id();
3973
4009
  const $for_content3__h_host__closures = /* @__PURE__ */ new Set();
3974
- _html(`<li${_attr_class("_bh")}><div${_attr_class("_bi")}><span${_attr_class("_bk")}><span${_attr_class(["_bj", "_u"])}>${_escape(h.host)}${_el_resume($scope11_id, "e")}</span>`);
4010
+ _html(`<li${_attr_class("_bu")}><div${_attr_class("_bv")}><span${_attr_class("_bx")}><span${_attr_class(["_bw", "_u"])}>${_escape(h.host)}${_el_resume($scope11_id, "e")}</span>`);
3975
4011
  _if(() => {
3976
4012
  if (h.isEnterprise) {
3977
- const $scope55_id = _scope_id();
4013
+ const $scope58_id = _scope_id();
3978
4014
  _html(`<span${_attr_class("_F")}>Enterprise</span>`);
3979
- writeScope($scope55_id, {});
4015
+ writeScope($scope58_id, {});
3980
4016
  return 0;
3981
4017
  }
3982
4018
  }, $scope11_id, "f", 1, 1, 1, 0, 1);
@@ -3984,23 +4020,23 @@ var settings_page_default = _template("s", (input) => {
3984
4020
  _if(() => {
3985
4021
  if (active.has(h.host) && authCodes.has(h.host)) {
3986
4022
  const $scope22_id = _scope_id();
3987
- _html(`<span${_attr_class("_b4")}><span${_attr_class("_C")}></span> Enter code <strong${_attr_class("_cn")}>${_escape(authCodes.get(h.host))}${_el_resume($scope22_id, "d")}</strong> at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_co")}>${_escape(h.host)}${_el_resume($scope22_id, "f")}/login/device</a>${_el_resume($scope22_id, "e")}</span>`);
4023
+ _html(`<span${_attr_class("_bW")}><span${_attr_class("_C")}></span> Enter code <strong${_attr_class("_cf")}>${_escape(authCodes.get(h.host))}${_el_resume($scope22_id, "d")}</strong> at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_cg")}>${_escape(h.host)}${_el_resume($scope22_id, "f")}/login/device</a>${_el_resume($scope22_id, "e")}</span>`);
3988
4024
  _subscribe($authCodes__closures, writeScope($scope22_id, {}));
3989
4025
  return 0;
3990
4026
  } else if (active.has(h.host)) {
3991
4027
  const $scope12_id = _scope_id();
3992
- _html(`<span${_attr_class("_b4")}><span${_attr_class("_C")}></span><!>${_escape(active.get(h.host) || "Starting…")}${_el_resume($scope12_id, "c")}</span>`);
3993
- _subscribe($active__closures, writeScope($scope12_id, { Cck: 1 }));
4028
+ _html(`<span${_attr_class("_bW")}><span${_attr_class("_C")}></span><!>${_escape(active.get(h.host) || "Starting…")}${_el_resume($scope12_id, "c")}</span>`);
4029
+ _subscribe($active__closures, writeScope($scope12_id, { Ccv: 1 }));
3994
4030
  return 1;
3995
4031
  } else if (h.authed) {
3996
- const $scope53_id = _scope_id();
3997
- _html(`<span${_attr_class("_bl")}>Signed in<!>${h.user ? ` as ${_escape(`${_to_text(h.user)}`)}` : ""}${_el_resume($scope53_id, "b")}</span>`);
3998
- writeScope($scope53_id, {});
4032
+ const $scope56_id = _scope_id();
4033
+ _html(`<span${_attr_class("_by")}>Signed in<!>${h.user ? ` as ${_escape(`${_to_text(h.user)}`)}` : ""}${_el_resume($scope56_id, "b")}</span>`);
4034
+ writeScope($scope56_id, {});
3999
4035
  return 2;
4000
4036
  } else {
4001
- const $scope54_id = _scope_id();
4002
- _html(`<span${_attr_class("_bl")}>${_escape(h.error || "Not signed in")}${_el_resume($scope54_id, "b")}</span>`);
4003
- writeScope($scope54_id, {});
4037
+ const $scope57_id = _scope_id();
4038
+ _html(`<span${_attr_class("_by")}>${_escape(h.error || "Not signed in")}${_el_resume($scope57_id, "b")}</span>`);
4039
+ writeScope($scope57_id, {});
4004
4040
  return 3;
4005
4041
  }
4006
4042
  }, $scope11_id, "g", 1, 1, 1, 0, 1);
@@ -4010,10 +4046,10 @@ var settings_page_default = _template("s", (input) => {
4010
4046
  const $scope23_id = _scope_id();
4011
4047
  _if(() => {
4012
4048
  if (!h.authed) {
4013
- const $scope36_id = _scope_id();
4014
- _html(`<button${_attr_class(btnSm)}>Sign in</button>${_el_resume($scope36_id, "a")}`);
4015
- _script($scope36_id, "s29");
4016
- writeScope($scope36_id, {});
4049
+ const $scope39_id = _scope_id();
4050
+ _html(`<button${_attr_class(btnSm)}>Sign in</button>${_el_resume($scope39_id, "a")}`);
4051
+ _script($scope39_id, "s31");
4052
+ writeScope($scope39_id, {});
4017
4053
  return 0;
4018
4054
  } else {
4019
4055
  const $scope24_id = _scope_id();
@@ -4021,7 +4057,7 @@ var settings_page_default = _template("s", (input) => {
4021
4057
  ["_o"]: confirmingRemove === `out:${h.host}`,
4022
4058
  ["_n"]: confirmingRemove === `out:${h.host}`
4023
4059
  }])}${confirmingRemove === `out:${h.host}` ? _attr("title", `Sign out of ${h.host}?`) : _attr("title", `Sign out of ${h.host}`)}>${confirmingRemove === `out:${h.host}` ? "Sign out?" : "Sign out"}${_el_resume($scope24_id, "b")}</button>${_el_resume($scope24_id, "a")}`);
4024
- _script($scope24_id, "s30");
4060
+ _script($scope24_id, "s32");
4025
4061
  _subscribe($for_content3__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope24_id, {})));
4026
4062
  return 1;
4027
4063
  }
@@ -4030,27 +4066,27 @@ var settings_page_default = _template("s", (input) => {
4030
4066
  if (h.isEnterprise) {
4031
4067
  const $scope25_id = _scope_id();
4032
4068
  _html(`<button${_attr_class([
4033
- "_bm",
4069
+ "_bz",
4034
4070
  "_Z",
4035
4071
  "_0",
4036
4072
  { ["_n"]: confirmingRemove === h.host }
4037
4073
  ])}${confirmingRemove === h.host ? _attr("title", `Forget ${h.host}? (gh stays signed in)`) : _attr("title", `Forget ${h.host}`)}>`);
4038
4074
  _if(() => {
4039
4075
  if (confirmingRemove === h.host) {
4040
- const $scope56_id = _scope_id();
4076
+ const $scope59_id = _scope_id();
4041
4077
  _html("Forget?");
4042
- writeScope($scope56_id, {});
4078
+ writeScope($scope59_id, {});
4043
4079
  return 0;
4044
4080
  } else {
4045
- const $scope57_id = _scope_id();
4081
+ const $scope60_id = _scope_id();
4046
4082
  icon_xmark_default({ size: 13 });
4047
- writeScope($scope57_id, {});
4083
+ writeScope($scope60_id, {});
4048
4084
  return 1;
4049
4085
  }
4050
4086
  }, $scope25_id, "a", 1, 1, 1, "</button>");
4051
- _script($scope25_id, "s31");
4087
+ _script($scope25_id, "s33");
4052
4088
  _subscribe($for_content3__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope25_id, {
4053
- Ccn: 1,
4089
+ Ccy: 1,
4054
4090
  Cr: 1
4055
4091
  })));
4056
4092
  return 0;
@@ -4072,16 +4108,16 @@ var settings_page_default = _template("s", (input) => {
4072
4108
  }, "host", $scope0_id, "w", 1, 1, 1, "</ul>", 1);
4073
4109
  _if(() => {
4074
4110
  if (setup && !setup.github.length) {
4075
- const $scope58_id = _scope_id();
4076
- _html(`<p${_attr_class("_bn")}>Install the GitHub CLI below to sign in.</p>`);
4077
- writeScope($scope58_id, {});
4111
+ const $scope61_id = _scope_id();
4112
+ _html(`<p${_attr_class("_bA")}>Install the GitHub CLI below to sign in.</p>`);
4113
+ writeScope($scope61_id, {});
4078
4114
  return 0;
4079
4115
  }
4080
4116
  }, $scope0_id, "x", 1, 1, 1, 0, 1);
4081
4117
  _if(() => {
4082
4118
  if (setup) {
4083
4119
  const $scope33_id = _scope_id();
4084
- _html(`<form${_attr_class("_cm")}><label${_attr_class("_T")}>`);
4120
+ _html(`<form${_attr_class("_ce")}><label${_attr_class("_T")}>`);
4085
4121
  icon_plus_default({
4086
4122
  size: 14,
4087
4123
  class: "_U"
@@ -4089,25 +4125,25 @@ var settings_page_default = _template("s", (input) => {
4089
4125
  _html(`<input${_attr_input_value($scope33_id, "d", hostInput, _resume((_new_hostInput) => {
4090
4126
  hostInput = _new_hostInput;
4091
4127
  }, "s2", $scope33_id))}${_attr_class([inputLg, "_V"])} type=text placeholder="Add a GitHub Enterprise host, e.g. github.example.com" aria-label="GitHub Enterprise host" autocomplete=off spellcheck=false>${_el_resume($scope33_id, "d")}</label><button${_attr_class(btnSm)} type=submit${_attr("disabled", !hostInput.trim() || hostBusy)}>${hostBusy ? "Adding…" : "Add host"}${_el_resume($scope33_id, "f")}</button>${_el_resume($scope33_id, "e")}</form>${_el_resume($scope33_id, "a")}`);
4092
- _script($scope33_id, "s32");
4128
+ _script($scope33_id, "s34");
4093
4129
  writeScope($scope33_id, {});
4094
4130
  return 0;
4095
4131
  }
4096
4132
  }, $scope0_id, "y", 1, 1, 1, 0, 1);
4097
- _html(`</section><section${_attr_class("_bc")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_bd")}><h2${_attr("id", machineId)}${_attr_class("_br")}>Machine</h2>`);
4133
+ _html(`</section><section${_attr_class("_bp")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_bq")}><h2${_attr("id", machineId)}${_attr_class("_bE")}>Machine</h2>`);
4098
4134
  _if(() => {
4099
4135
  if (missingCount) {
4100
- const $scope40_id = _scope_id();
4101
- _html(`<span${_attr_class(sectionCount$1)}>${_escape(missingCount)}${_el_resume($scope40_id, "b")} missing</span>`);
4102
- writeScope($scope40_id, {});
4136
+ const $scope43_id = _scope_id();
4137
+ _html(`<span${_attr_class(sectionCount$1)}>${_escape(missingCount)}${_el_resume($scope43_id, "b")} missing</span>`);
4138
+ writeScope($scope43_id, {});
4103
4139
  return 0;
4104
4140
  }
4105
4141
  }, $scope0_id, "a2", 1, 1, 1, 0, 1);
4106
4142
  _if(() => {
4107
4143
  if (outdatedIds.length) {
4108
- const $scope41_id = _scope_id();
4109
- _html(`<span${_attr_class(sectionCount$1)}>${_escape(outdatedIds.length)}${_el_resume($scope41_id, "b")} outdated</span>`);
4110
- writeScope($scope41_id, {});
4144
+ const $scope44_id = _scope_id();
4145
+ _html(`<span${_attr_class(sectionCount$1)}>${_escape(outdatedIds.length)}${_el_resume($scope44_id, "b")} outdated</span>`);
4146
+ writeScope($scope44_id, {});
4111
4147
  return 0;
4112
4148
  }
4113
4149
  }, $scope0_id, "a3", 1, 1, 1, 0, 1);
@@ -4116,7 +4152,7 @@ var settings_page_default = _template("s", (input) => {
4116
4152
  if (outdatedIds.length > 1) {
4117
4153
  const $scope13_id = _scope_id();
4118
4154
  _html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Update all</button>${_el_resume($scope13_id, "a")}`);
4119
- _script($scope13_id, "s33");
4155
+ _script($scope13_id, "s35");
4120
4156
  writeScope($scope13_id, {});
4121
4157
  return 0;
4122
4158
  }
@@ -4125,7 +4161,7 @@ var settings_page_default = _template("s", (input) => {
4125
4161
  if (missingInstallable.length > 1) {
4126
4162
  const $scope14_id = _scope_id();
4127
4163
  _html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Install missing</button>${_el_resume($scope14_id, "a")}`);
4128
- _script($scope14_id, "s34");
4164
+ _script($scope14_id, "s36");
4129
4165
  writeScope($scope14_id, {});
4130
4166
  return 0;
4131
4167
  }
@@ -4134,13 +4170,63 @@ var settings_page_default = _template("s", (input) => {
4134
4170
  _if(() => {
4135
4171
  if (setup && !setup.mise.installed) {
4136
4172
  const $scope15_id = _scope_id();
4137
- _html(`<p${_attr_class("_bn")}>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($scope15_id, "c")}</button>${_el_resume($scope15_id, "b")}</p>`);
4138
- _script($scope15_id, "s35");
4173
+ _html(`<p${_attr_class("_bA")}>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($scope15_id, "c")}</button>${_el_resume($scope15_id, "b")}</p>`);
4174
+ _script($scope15_id, "s37");
4139
4175
  writeScope($scope15_id, {});
4140
4176
  return 0;
4141
4177
  }
4142
4178
  }, $scope0_id, "a7", 1, 1, 1, 0, 1);
4143
4179
  _html(`<ul${_attr_class(toolGrid)}>`);
4180
+ _if(() => {
4181
+ if (self) {
4182
+ const $scope35_id = _scope_id();
4183
+ _html(`<li${_attr_class(row)}><span${_attr_class(["_ca", "_u"])}>work</span>`);
4184
+ _if(() => {
4185
+ if (selfUpdating) {
4186
+ const $scope62_id = _scope_id();
4187
+ _html(`<span${_attr_class("_bW")}><span${_attr_class("_C")}></span>Updating — the app restarts and reloads when it is done…</span>`);
4188
+ writeScope($scope62_id, {});
4189
+ return 0;
4190
+ } else {
4191
+ const $scope36_id = _scope_id();
4192
+ _html(`<span${_attr_class(["_u", metaTrunc])} title="Running version">v<!>${_escape(self.version)}${_el_resume($scope36_id, "b")}</span>`);
4193
+ _if(() => {
4194
+ if (self.install === "source") {
4195
+ const $scope63_id = _scope_id();
4196
+ _html(`<span${_attr_class(metaTrunc)} title="Started from a checkout, not the published package">source checkout — update with git</span>`);
4197
+ writeScope($scope63_id, {});
4198
+ return 0;
4199
+ } else if (self.latest && self.latest !== self.version) {
4200
+ const $scope37_id = _scope_id();
4201
+ _html(`<button${_attr_class([btnSm, "_cc"])}${_attr("title", `Update work to v${self.latest} and restart`)}>↑ <!>${_escape(self.latest)}${_el_resume($scope37_id, "b")}</button>${_el_resume($scope37_id, "a")}`);
4202
+ _script($scope37_id, "s38");
4203
+ _subscribe($self_latest__closures, writeScope($scope37_id, { Cd8: 1 }));
4204
+ return 1;
4205
+ } else if (self.latest) {
4206
+ const $scope64_id = _scope_id();
4207
+ _html(`<span${_attr_class(metaTrunc)}>up to date</span>`);
4208
+ writeScope($scope64_id, {});
4209
+ return 2;
4210
+ }
4211
+ }, $scope36_id, "c", 1, 1, 1, 0, 1);
4212
+ _subscribe($self_latest__closures, _subscribe($self_install__closures, _subscribe($self_version__closures, writeScope($scope36_id, {}))));
4213
+ return 1;
4214
+ }
4215
+ }, $scope35_id, "c");
4216
+ _html(`<span${_attr_class("_v")}></span>`);
4217
+ _if(() => {
4218
+ if (!selfUpdating) {
4219
+ const $scope65_id = _scope_id();
4220
+ _html(`<span${_attr_class("_F")}>app</span>`);
4221
+ writeScope($scope65_id, {});
4222
+ return 0;
4223
+ }
4224
+ }, $scope35_id, "e", 1, 1, 1, 0, 1);
4225
+ _html("</li>");
4226
+ writeScope($scope35_id, {});
4227
+ return 0;
4228
+ }
4229
+ }, $scope0_id, "a9", 1, 1, 1, 0, 1);
4144
4230
  _for_of(tools, (t) => {
4145
4231
  const $scope16_id = _scope_id();
4146
4232
  const $for_content4__t_label__closures = /* @__PURE__ */ new Set();
@@ -4148,49 +4234,49 @@ var settings_page_default = _template("s", (input) => {
4148
4234
  const $for_content4__t_path__closures = /* @__PURE__ */ new Set();
4149
4235
  const $for_content4__t_latest__closures = /* @__PURE__ */ new Set();
4150
4236
  const $for_content4__t_id__closures = /* @__PURE__ */ new Set();
4151
- _html(`<li${_attr_class([row, { ["_ch"]: !t.installed }])}><span${_attr_class(["_ci", "_u"])}>${_escape(t.label)}${_el_resume($scope16_id, "c")}</span>`);
4237
+ _html(`<li${_attr_class([row, { ["_b_"]: !t.installed }])}><span${_attr_class(["_ca", "_u"])}>${_escape(t.label)}${_el_resume($scope16_id, "c")}</span>`);
4152
4238
  _if(() => {
4153
4239
  if (active.has(t.id)) {
4154
4240
  const $scope17_id = _scope_id();
4155
- _html(`<span${_attr_class("_b4")}><span${_attr_class("_C")}></span><!>${_escape(active.get(t.id) || "Starting…")}${_el_resume($scope17_id, "c")}</span>`);
4156
- _subscribe($active__closures, writeScope($scope17_id, { Cck: 2 }));
4241
+ _html(`<span${_attr_class("_bW")}><span${_attr_class("_C")}></span><!>${_escape(active.get(t.id) || "Starting…")}${_el_resume($scope17_id, "c")}</span>`);
4242
+ _subscribe($active__closures, writeScope($scope17_id, { Ccv: 2 }));
4157
4243
  return 0;
4158
4244
  } else if (t.installed) {
4159
4245
  const $scope29_id = _scope_id();
4160
4246
  _if(() => {
4161
4247
  if (t.version) {
4162
4248
  const $scope30_id = _scope_id();
4163
- _html(`<button${_attr_class(["_cj", "_u"])}${_attr("title", `${t.path || t.label}. Pin a version`)}>v<!>${_escape(t.version)}${_el_resume($scope30_id, "b")}</button>${_el_resume($scope30_id, "a")}`);
4164
- _script($scope30_id, "s36");
4249
+ _html(`<button${_attr_class(["_cb", "_u"])}${_attr("title", `${t.path || t.label}. Pin a version`)}>v<!>${_escape(t.version)}${_el_resume($scope30_id, "b")}</button>${_el_resume($scope30_id, "a")}`);
4250
+ _script($scope30_id, "s39");
4165
4251
  _subscribe($for_content4__t_path__closures, _subscribe($for_content4__t_version__closures, _subscribe($for_content4__t_label__closures, writeScope($scope30_id, { Cu: 1 }))));
4166
4252
  return 0;
4167
4253
  } else {
4168
- const $scope59_id = _scope_id();
4169
- _html(`<span${_attr_class([metaTrunc, "_u"])}${_attr("title", t.path)}>${_escape(t.path)}${_el_resume($scope59_id, "b")}</span>${_el_resume($scope59_id, "a")}`);
4170
- _subscribe($for_content4__t_path__closures, writeScope($scope59_id, { Cx: 1 }));
4254
+ const $scope66_id = _scope_id();
4255
+ _html(`<span${_attr_class([metaTrunc, "_u"])}${_attr("title", t.path)}>${_escape(t.path)}${_el_resume($scope66_id, "b")}</span>${_el_resume($scope66_id, "a")}`);
4256
+ _subscribe($for_content4__t_path__closures, writeScope($scope66_id, { Cx: 1 }));
4171
4257
  return 1;
4172
4258
  }
4173
4259
  }, $scope29_id, "a", 1, 1, 1, 0, 1);
4174
4260
  _if(() => {
4175
4261
  if (outdated(t)) {
4176
- const $scope37_id = _scope_id();
4177
- _html(`<button${_attr_class([btnSm, "_ck"])}${_attr("title", `Update to v${t.latest}`)}>↑ <!>${_escape(t.latest)}${_el_resume($scope37_id, "b")}</button>${_el_resume($scope37_id, "a")}`);
4178
- _script($scope37_id, "s37");
4179
- _subscribe($for_content4__t_latest__closures, writeScope($scope37_id, {}));
4262
+ const $scope40_id = _scope_id();
4263
+ _html(`<button${_attr_class([btnSm, "_cc"])}${_attr("title", `Update to v${t.latest}`)}>↑ <!>${_escape(t.latest)}${_el_resume($scope40_id, "b")}</button>${_el_resume($scope40_id, "a")}`);
4264
+ _script($scope40_id, "s40");
4265
+ _subscribe($for_content4__t_latest__closures, writeScope($scope40_id, {}));
4180
4266
  return 0;
4181
4267
  }
4182
4268
  }, $scope29_id, "b", 1, 1, 1, 0, 1);
4183
4269
  writeScope($scope29_id, {});
4184
4270
  return 1;
4185
4271
  } else if (t.installable) {
4186
- const $scope60_id = _scope_id();
4272
+ const $scope67_id = _scope_id();
4187
4273
  _html(`<span${_attr_class(metaTrunc)}>not installed</span>`);
4188
- writeScope($scope60_id, {});
4274
+ writeScope($scope67_id, {});
4189
4275
  return 2;
4190
4276
  } else {
4191
- const $scope61_id = _scope_id();
4277
+ const $scope68_id = _scope_id();
4192
4278
  _html(`<span${_attr_class(metaTrunc)} title="Installed with the system package manager">system package</span>`);
4193
- writeScope($scope61_id, {});
4279
+ writeScope($scope68_id, {});
4194
4280
  return 3;
4195
4281
  }
4196
4282
  }, $scope16_id, "d");
@@ -4200,18 +4286,18 @@ var settings_page_default = _template("s", (input) => {
4200
4286
  const $scope26_id = _scope_id();
4201
4287
  _if(() => {
4202
4288
  if (t.required) {
4203
- const $scope62_id = _scope_id();
4289
+ const $scope69_id = _scope_id();
4204
4290
  _html(`<span${_attr_class("_F")}>required</span>`);
4205
- writeScope($scope62_id, {});
4291
+ writeScope($scope69_id, {});
4206
4292
  return 0;
4207
4293
  }
4208
4294
  }, $scope26_id, "a", 1, 1, 1, 0, 1);
4209
4295
  _if(() => {
4210
4296
  if (!t.installed && t.installable) {
4211
- const $scope38_id = _scope_id();
4212
- _html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope38_id, "a")}`);
4213
- _script($scope38_id, "s38");
4214
- writeScope($scope38_id, {});
4297
+ const $scope41_id = _scope_id();
4298
+ _html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope41_id, "a")}`);
4299
+ _script($scope41_id, "s41");
4300
+ writeScope($scope41_id, {});
4215
4301
  return 0;
4216
4302
  } else if (t.installed && t.version && !t.required) {
4217
4303
  const $scope27_id = _scope_id();
@@ -4223,19 +4309,19 @@ var settings_page_default = _template("s", (input) => {
4223
4309
  ])}${confirmingRemove === t.id ? _attr("title", `Remove ${t.label}?`) : _attr("title", `Remove ${t.label}`)}>`);
4224
4310
  _if(() => {
4225
4311
  if (confirmingRemove === t.id) {
4226
- const $scope63_id = _scope_id();
4312
+ const $scope70_id = _scope_id();
4227
4313
  _html("Remove?");
4228
- writeScope($scope63_id, {});
4314
+ writeScope($scope70_id, {});
4229
4315
  return 0;
4230
4316
  } else {
4231
- const $scope64_id = _scope_id();
4317
+ const $scope71_id = _scope_id();
4232
4318
  icon_xmark_default({ size: 13 });
4233
- writeScope($scope64_id, {});
4319
+ writeScope($scope71_id, {});
4234
4320
  return 1;
4235
4321
  }
4236
4322
  }, $scope27_id, "a", 1, 1, 1, "</button>");
4237
- _script($scope27_id, "s39");
4238
- _subscribe($for_content4__t_id__closures, _subscribe($for_content4__t_label__closures, _subscribe($confirmingRemove__closures, writeScope($scope27_id, { Ccn: 2 }))));
4323
+ _script($scope27_id, "s42");
4324
+ _subscribe($for_content4__t_id__closures, _subscribe($for_content4__t_label__closures, _subscribe($confirmingRemove__closures, writeScope($scope27_id, { Ccy: 2 }))));
4239
4325
  return 1;
4240
4326
  }
4241
4327
  }, $scope26_id, "b", 1, 1, 1, 0, 1);
@@ -4260,7 +4346,8 @@ var settings_page_default = _template("s", (input) => {
4260
4346
  y: $for_content4__t_latest__closures,
4261
4347
  v: $for_content4__t_id__closures
4262
4348
  });
4263
- }, "id", $scope0_id, "a8", 1, 1, 1, "</ul>", 1);
4349
+ }, "id", $scope0_id, "aa", 1, 1, 1, 0, 1);
4350
+ _html("</ul>");
4264
4351
  _if(() => {
4265
4352
  if (setup && setup.mise.installed) {
4266
4353
  const $scope18_id = _scope_id();
@@ -4273,20 +4360,20 @@ var settings_page_default = _template("s", (input) => {
4273
4360
  _if(() => {
4274
4361
  if (hits && hits.length) {
4275
4362
  const $scope19_id = _scope_id();
4276
- _html(`<ul${_attr_class([toolGrid, "_cl"])}>`);
4363
+ _html(`<ul${_attr_class([toolGrid, "_cd"])}>`);
4277
4364
  _for_of(hits, (h) => {
4278
4365
  const $scope20_id = _scope_id();
4279
- _html(`<li${_attr_class(row)}><div${_attr_class("_bi")}><span${_attr_class(["_ci", "_u"])}>${_escape(h.name)}${_el_resume($scope20_id, "d")}</span>`);
4366
+ _html(`<li${_attr_class(row)}><div${_attr_class("_bv")}><span${_attr_class(["_ca", "_u"])}>${_escape(h.name)}${_el_resume($scope20_id, "d")}</span>`);
4280
4367
  _if(() => {
4281
4368
  if (active.has(h.name)) {
4282
4369
  const $scope21_id = _scope_id();
4283
- _html(`<span${_attr_class("_b4")}><span${_attr_class("_C")}></span><!>${_escape(active.get(h.name) || "Starting…")}${_el_resume($scope21_id, "c")}</span>`);
4284
- _subscribe($active__closures, writeScope($scope21_id, { Cck: 4 }));
4370
+ _html(`<span${_attr_class("_bW")}><span${_attr_class("_C")}></span><!>${_escape(active.get(h.name) || "Starting…")}${_el_resume($scope21_id, "c")}</span>`);
4371
+ _subscribe($active__closures, writeScope($scope21_id, { Ccv: 4 }));
4285
4372
  return 0;
4286
4373
  } else if (h.description) {
4287
- const $scope65_id = _scope_id();
4288
- _html(`<span${_attr_class("_bl")}${_attr("title", h.description)}>${_escape(h.description)}${_el_resume($scope65_id, "b")}</span>${_el_resume($scope65_id, "a")}`);
4289
- writeScope($scope65_id, {});
4374
+ const $scope72_id = _scope_id();
4375
+ _html(`<span${_attr_class("_by")}${_attr("title", h.description)}>${_escape(h.description)}${_el_resume($scope72_id, "b")}</span>${_el_resume($scope72_id, "a")}`);
4376
+ writeScope($scope72_id, {});
4290
4377
  return 1;
4291
4378
  }
4292
4379
  }, $scope20_id, "e", 1, 1, 1, 0, 1);
@@ -4296,14 +4383,14 @@ var settings_page_default = _template("s", (input) => {
4296
4383
  const $scope31_id = _scope_id();
4297
4384
  _if(() => {
4298
4385
  if (h.installed) {
4299
- const $scope66_id = _scope_id();
4386
+ const $scope73_id = _scope_id();
4300
4387
  _html(`<span${_attr_class("_F")}>installed</span>`);
4301
- writeScope($scope66_id, {});
4388
+ writeScope($scope73_id, {});
4302
4389
  return 0;
4303
4390
  } else {
4304
4391
  const $scope32_id = _scope_id();
4305
4392
  _html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope32_id, "a")}<button${_attr_class(btnSm)} title="Install a specific version">@…</button>${_el_resume($scope32_id, "b")}`);
4306
- _script($scope32_id, "s40");
4393
+ _script($scope32_id, "s43");
4307
4394
  writeScope($scope32_id, {});
4308
4395
  return 1;
4309
4396
  }
@@ -4317,24 +4404,24 @@ var settings_page_default = _template("s", (input) => {
4317
4404
  i: h?.name,
4318
4405
  k: h?.description,
4319
4406
  m: h?.installed,
4320
- Cck: 3
4407
+ Ccv: 3
4321
4408
  }));
4322
4409
  }, "name", $scope19_id, "a", 1, 1, 1, "</ul>", 1);
4323
4410
  _subscribe($hits__closures, writeScope($scope19_id, {}));
4324
4411
  return 0;
4325
4412
  } else if (hits && !searching) {
4326
4413
  const $scope34_id = _scope_id();
4327
- _html(`<p${_attr_class("_bn")}>No tools match "<!>${_escape(query)}${_el_resume($scope34_id, "b")}".</p>`);
4414
+ _html(`<p${_attr_class("_bA")}>No tools match "<!>${_escape(query)}${_el_resume($scope34_id, "b")}".</p>`);
4328
4415
  _subscribe($query__closures, writeScope($scope34_id, {}));
4329
4416
  return 1;
4330
4417
  }
4331
4418
  }, $scope18_id, "d", 1, 1, 1, 0, 1);
4332
4419
  _html("</div>");
4333
- _script($scope18_id, "s41");
4420
+ _script($scope18_id, "s44");
4334
4421
  writeScope($scope18_id, {});
4335
4422
  return 0;
4336
4423
  }
4337
- }, $scope0_id, "a9", 1, 1, 1, 0, 1);
4424
+ }, $scope0_id, "ab", 1, 1, 1, 0, 1);
4338
4425
  _html("</section></div></div></div>");
4339
4426
  _if(() => {
4340
4427
  if (versionPick) {
@@ -4349,95 +4436,105 @@ var settings_page_default = _template("s", (input) => {
4349
4436
  open: versionPick != null,
4350
4437
  openChange: _resume(function(o) {
4351
4438
  if (!o) versionPick = null;
4352
- }, "s20", $scope28_id),
4439
+ }, "s22", $scope28_id),
4353
4440
  onSubmit: _resume(function(v) {
4354
4441
  const pick = versionPick;
4355
4442
  versionPick = null;
4356
4443
  run(pick.id, "install", v);
4357
- }, "s21", $scope28_id)
4444
+ }, "s23", $scope28_id)
4358
4445
  });
4359
4446
  writeScope($scope28_id, { a: _existing_scope($childScope10) });
4360
4447
  return 0;
4361
4448
  }
4362
- }, $scope0_id, "aa", 1, 1, 1, 0, 1);
4363
- _script($scope0_id, "s42");
4364
- _script($scope0_id, "s43");
4449
+ }, $scope0_id, "ac", 1, 1, 1, 0, 1);
4450
+ _script($scope0_id, "s45");
4451
+ _script($scope0_id, "s46");
4365
4452
  writeScope($scope0_id, {
4366
- ae: input.setupChange,
4367
- af: input.agentsChange,
4368
- ag: input.preferred,
4369
- ah: input.preferredChange,
4370
- ak: input.onExit,
4371
- am: setup,
4372
- an: setup?.agents,
4373
- ap: setup?.missing,
4374
- ar: usage,
4375
- as: usage?.agents,
4376
- at: usage?.error,
4377
- au: error,
4378
- av: refreshing,
4379
- ax: active,
4380
- ay: active?.size,
4381
- az: authCodes,
4382
- b0: confirmingRemove,
4383
- b1: versionPick,
4384
- b2: versionPick?.label,
4385
- b3: versionPick?.current,
4386
- b4: hostInput,
4387
- b5: hostBusy,
4388
- b6: query,
4389
- b7: hits,
4390
- b8: searching,
4391
- ba: searchTimer.id,
4392
- bc: applySetup,
4393
- be: syncAgents,
4394
- bf: loadSetup,
4395
- bg: loadUsage,
4396
- bi: refresh,
4397
- bj: refreshUsage,
4398
- bk: setActive,
4399
- bm: run,
4400
- bn: changeHost,
4401
- bo: runEach,
4402
- bp: setPreferred,
4403
- br: setEnabled,
4404
- bs: search,
4405
- bt: outdated,
4406
- bw: missingInstallable,
4407
- by: missingCount,
4408
- bz: outdatedIds,
4409
- c0: outdatedIds?.length,
4410
- c1: families,
4411
- c3: families.length,
4412
- c5: instanceIds,
4413
- c7: accountsFor,
4414
- c8: strayAccountsFor,
4415
- cg: $setup_missing__closures,
4416
- cf: $setup2__closures,
4417
- cj: $refreshing__closures,
4453
+ ag: input.setupChange,
4454
+ ah: input.agentsChange,
4455
+ ai: input.preferred,
4456
+ aj: input.preferredChange,
4457
+ am: input.onExit,
4458
+ ao: setup,
4459
+ ap: setup?.agents,
4460
+ ar: setup?.missing,
4461
+ at: usage,
4462
+ au: usage?.agents,
4463
+ av: usage?.error,
4464
+ aw: error,
4465
+ ax: refreshing,
4466
+ az: active,
4467
+ b0: active?.size,
4468
+ b1: authCodes,
4469
+ b2: confirmingRemove,
4470
+ b3: versionPick,
4471
+ b4: versionPick?.label,
4472
+ b5: versionPick?.current,
4473
+ b6: hostInput,
4474
+ b7: hostBusy,
4475
+ b8: query,
4476
+ b9: hits,
4477
+ ba: self,
4478
+ bb: self?.version,
4479
+ bc: self?.install,
4480
+ bd: self?.latest,
4481
+ be: selfUpdating,
4482
+ bg: searching,
4483
+ bi: searchTimer.id,
4484
+ bk: applySetup,
4485
+ bm: syncAgents,
4486
+ bn: loadSetup,
4487
+ bo: loadSelf,
4488
+ bq: updateSelf,
4489
+ br: loadUsage,
4490
+ bt: refresh,
4491
+ bu: refreshUsage,
4492
+ bv: setActive,
4493
+ bx: run,
4494
+ by: changeHost,
4495
+ bz: runEach,
4496
+ c0: setPreferred,
4497
+ c2: setEnabled,
4498
+ c3: search,
4499
+ c4: outdated,
4500
+ c7: missingInstallable,
4501
+ c9: missingCount,
4502
+ ca: outdatedIds,
4503
+ cb: outdatedIds?.length,
4504
+ cc: families,
4505
+ ce: families.length,
4506
+ cg: instanceIds,
4507
+ ci: accountsFor,
4508
+ cj: strayAccountsFor,
4509
+ cr: $setup_missing__closures,
4510
+ cq: $setup2__closures,
4511
+ cu: $refreshing__closures,
4418
4512
  d: _serialize_if($scope0_reason, 0) && _existing_scope($childScope2),
4419
- ci: $error__closures,
4513
+ ct: $error__closures,
4420
4514
  o: _existing_scope($childScope3),
4421
- ck: $active__closures,
4422
- ce: $si__input_preferred && $input_preferred__closures,
4423
- d1: $accountsFor2__closures,
4424
- cm: $authCodes__closures,
4425
- cn: $confirmingRemove__closures,
4426
- cu: $hits__closures,
4427
- ct: $query__closures
4515
+ cv: $active__closures,
4516
+ cp: $si__input_preferred && $input_preferred__closures,
4517
+ dg: $accountsFor2__closures,
4518
+ cx: $authCodes__closures,
4519
+ cy: $confirmingRemove__closures,
4520
+ d8: $self_latest__closures,
4521
+ d6: $self_version__closures,
4522
+ d7: $self_install__closures,
4523
+ d5: $hits__closures,
4524
+ d4: $query__closures
4428
4525
  });
4429
4526
  _resume_branch($scope0_id);
4430
4527
  });
4431
4528
  //#endregion
4432
4529
  //#region src/tags/new-workspace.css.ts
4433
- var content$1 = "_bs _5";
4434
- var section$1 = "_bw _bc";
4435
- var curBase = "_bA _Q _P";
4436
- var archived = "_bE _bc";
4437
- var archivedHint = "_bF _P";
4438
- var archivedCard = "_bG _bh";
4439
- var resultBranch = "_cT _W _g";
4440
- var branchInput = "_cY _S _R";
4530
+ var content$1 = "_bF _bh";
4531
+ var section$1 = "_bJ _bp";
4532
+ var curBase = "_bN _Q _P";
4533
+ var archived = "_bR _bp";
4534
+ var archivedHint = "_bS _P";
4535
+ var archivedCard = "_bT _bu";
4536
+ var resultBranch = "_cw _W _g";
4537
+ var branchInput = "_cB _S _R";
4441
4538
  //#endregion
4442
4539
  //#region src/tags/repo-picker.marko
4443
4540
  var api$5;
@@ -4487,7 +4584,7 @@ var repo_picker_default = _template("q", (input) => {
4487
4584
  input.onError?.(String(err.message || err));
4488
4585
  }
4489
4586
  }, "q5", $scope0_id);
4490
- _html(`<div${_attr_class("_cN")}><label${_attr_class("_T")}>`);
4587
+ _html(`<div${_attr_class("_cq")}><label${_attr_class("_T")}>`);
4491
4588
  icon_search_default({
4492
4589
  size: 14,
4493
4590
  class: "_U"
@@ -4499,7 +4596,7 @@ var repo_picker_default = _template("q", (input) => {
4499
4596
  _if(() => {
4500
4597
  if (filter && !catalog) {
4501
4598
  const $scope8_id = _scope_id();
4502
- _html(`<p${_attr_class("_bn")}>Loading repos…</p>`);
4599
+ _html(`<p${_attr_class("_bA")}>Loading repos…</p>`);
4503
4600
  writeScope($scope8_id, {});
4504
4601
  return 0;
4505
4602
  }
@@ -4507,23 +4604,23 @@ var repo_picker_default = _template("q", (input) => {
4507
4604
  _if(() => {
4508
4605
  if (results.length) {
4509
4606
  const $scope2_id = _scope_id();
4510
- _html(`<ul${_attr_class("_cO")}>`);
4607
+ _html(`<ul${_attr_class("_cr")}>`);
4511
4608
  _for_of(results, (repo, i) => {
4512
4609
  const $scope3_id = _scope_id();
4513
- _html(`<li><div${_attr_class(["_cQ", { ["_cP"]: i === highlight }])}><button${_attr_class("_cR")}>`);
4610
+ _html(`<li><div${_attr_class(["_ct", { ["_cs"]: i === highlight }])}><button${_attr_class("_cu")}>`);
4514
4611
  icon_plus_default({
4515
4612
  size: 12,
4516
- class: "_cW"
4613
+ class: "_cz"
4517
4614
  });
4518
- _html(`<span${_attr_class("_cX")}>${_escape(repoLabel(repo.nameWithOwner))}${_el_resume($scope3_id, "e")}</span></button>${_el_resume($scope3_id, "b")}<button${_attr_class([resultBranch, { ["_cS"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>⎇</button>${_el_resume($scope3_id, "f")}</div>${_el_resume($scope3_id, "a")}`);
4615
+ _html(`<span${_attr_class("_cA")}>${_escape(repoLabel(repo.nameWithOwner))}${_el_resume($scope3_id, "e")}</span></button>${_el_resume($scope3_id, "b")}<button${_attr_class([resultBranch, { ["_cv"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>⎇</button>${_el_resume($scope3_id, "f")}</div>${_el_resume($scope3_id, "a")}`);
4519
4616
  _if(() => {
4520
4617
  if (branchesFor === repo.nameWithOwner) {
4521
4618
  const $scope4_id = _scope_id();
4522
- _html(`<div${_attr_class("_cU")}>`);
4619
+ _html(`<div${_attr_class("_cx")}>`);
4523
4620
  _if(() => {
4524
4621
  if (!branches) {
4525
4622
  const $scope9_id = _scope_id();
4526
- _html(`<p${_attr_class("_bn")}><span${_attr_class("_C")}></span> Loading branches…</p>`);
4623
+ _html(`<p${_attr_class("_bA")}><span${_attr_class("_C")}></span> Loading branches…</p>`);
4527
4624
  writeScope($scope9_id, {});
4528
4625
  return 0;
4529
4626
  } else {
@@ -4540,17 +4637,17 @@ var repo_picker_default = _template("q", (input) => {
4540
4637
  }
4541
4638
  }, $scope5_id, "a", 1, 1, 1, 0, 1);
4542
4639
  const shown = (branchFilter ? branches.filter((b) => b.toLowerCase().includes(branchFilter.toLowerCase())) : branches).slice(0, 12);
4543
- _html(`<ul${_attr_class("_cV")}>`);
4640
+ _html(`<ul${_attr_class("_cy")}>`);
4544
4641
  _for_of(shown, (branch) => {
4545
4642
  const $scope7_id = _scope_id();
4546
- _html(`<li><button${_attr_class(["_cR", "_cZ"])}><span${_attr_class(["_cX", "_u"])}>${_escape(branch)}${_el_resume($scope7_id, "c")}</span></button>${_el_resume($scope7_id, "a")}</li>`);
4643
+ _html(`<li><button${_attr_class(["_cu", "_cC"])}><span${_attr_class(["_cA", "_u"])}>${_escape(branch)}${_el_resume($scope7_id, "c")}</span></button>${_el_resume($scope7_id, "a")}</li>`);
4547
4644
  _script($scope7_id, "q7");
4548
4645
  writeScope($scope7_id, { e: branch });
4549
4646
  }, (b) => b, $scope5_id, "c", 1, 1, 1, 0, 1);
4550
4647
  _if(() => {
4551
4648
  if (!shown.length) {
4552
4649
  const $scope10_id = _scope_id();
4553
- _html(`<li><p${_attr_class("_bn")}>No branches match.</p></li>`);
4650
+ _html(`<li><p${_attr_class("_bA")}>No branches match.</p></li>`);
4554
4651
  writeScope($scope10_id, {});
4555
4652
  return 0;
4556
4653
  }
@@ -4575,7 +4672,7 @@ var repo_picker_default = _template("q", (input) => {
4575
4672
  return 0;
4576
4673
  } else if (filter && catalog) {
4577
4674
  const $scope1_id = _scope_id();
4578
- _html(`<p${_attr_class("_bn")}>No repos match "<!>${_escape(filter)}${_el_resume($scope1_id, "b")}".</p>`);
4675
+ _html(`<p${_attr_class("_bA")}>No repos match "<!>${_escape(filter)}${_el_resume($scope1_id, "b")}".</p>`);
4579
4676
  writeScope($scope1_id, {});
4580
4677
  return 1;
4581
4678
  }
@@ -4693,7 +4790,7 @@ var new_workspace_default = _template("n", (input) => {
4693
4790
  }
4694
4791
  }, "n4", $scope0_id);
4695
4792
  const titleId = _id();
4696
- _html(`<div${_attr_class("_3")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_4")}><div${_attr_class(content$1)}>`);
4793
+ _html(`<div${_attr_class("_bf")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bg")}><div${_attr_class(content$1)}>`);
4697
4794
  _set_serialize_reason({
4698
4795
  0: _serialize_guard($scope0_reason, 2),
4699
4796
  1: $sg__input_backHref__OR__input_onExit,
@@ -4732,19 +4829,19 @@ var new_workspace_default = _template("n", (input) => {
4732
4829
  return 0;
4733
4830
  }
4734
4831
  }, $scope0_id, "e", 1, 1, 1, 0, 1);
4735
- _html(`<label${_attr_class("_bv")}><span${_attr_class("_br")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
4832
+ _html(`<label${_attr_class("_bI")}><span${_attr_class("_bE")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
4736
4833
  name = _new_name;
4737
- }, "n0", $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("_bx")}><h2${_attr_class("_br")}>Repos</h2><button${_attr_class(iconBtnRow)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
4834
+ }, "n0", $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("_bK")}><h2${_attr_class("_bE")}>Repos</h2><button${_attr_class(iconBtnRow)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
4738
4835
  _set_serialize_reason(1);
4739
4836
  const $childScope2 = _peek_scope_id();
4740
4837
  icon_refresh_default({
4741
4838
  size: 14,
4742
4839
  class: catalogRefreshing && "_B"
4743
4840
  });
4744
- _html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("_by")}>`);
4841
+ _html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("_bL")}>`);
4745
4842
  _for_of(selected, (repo) => {
4746
4843
  const $scope2_id = _scope_id();
4747
- _html(`<li${_attr_class(row)}><span${_attr_class("_bz")}>${_escape(repoLabel(repo.fullName))}${_el_resume($scope2_id, "c")}</span>`);
4844
+ _html(`<li${_attr_class(row)}><span${_attr_class("_bM")}>${_escape(repoLabel(repo.fullName))}${_el_resume($scope2_id, "c")}</span>`);
4748
4845
  _if(() => {
4749
4846
  if (repo.baseBranch) {
4750
4847
  const $scope10_id = _scope_id();
@@ -4765,7 +4862,7 @@ var new_workspace_default = _template("n", (input) => {
4765
4862
  _if(() => {
4766
4863
  if (!selected.length) {
4767
4864
  const $scope11_id = _scope_id();
4768
- _html(`<li${_attr_class("_bn")}>No repos yet. Search below to add one, or create it empty.</li>`);
4865
+ _html(`<li${_attr_class("_bA")}>No repos yet. Search below to add one, or create it empty.</li>`);
4769
4866
  writeScope($scope11_id, {});
4770
4867
  return 0;
4771
4868
  }
@@ -4790,10 +4887,10 @@ var new_workspace_default = _template("n", (input) => {
4790
4887
  _if(() => {
4791
4888
  if (busy && steps$1.length) {
4792
4889
  const $scope7_id = _scope_id();
4793
- _html(`<ul${_attr_class("_bB")}>`);
4890
+ _html(`<ul${_attr_class("_bO")}>`);
4794
4891
  _for_of(steps$1, (step$1, i) => {
4795
4892
  const $scope8_id = _scope_id();
4796
- _html(`<li${_attr_class(["_bH", { ["_bC"]: i === steps$1.length - 1 }])}>`);
4893
+ _html(`<li${_attr_class(["_bU", { ["_bP"]: i === steps$1.length - 1 }])}>`);
4797
4894
  _if(() => {
4798
4895
  if (i === steps$1.length - 1) {
4799
4896
  const $scope12_id = _scope_id();
@@ -4802,7 +4899,7 @@ var new_workspace_default = _template("n", (input) => {
4802
4899
  return 0;
4803
4900
  } else {
4804
4901
  const $scope13_id = _scope_id();
4805
- _html(`<span${_attr_class("_bD")}>✓</span>`);
4902
+ _html(`<span${_attr_class("_bQ")}>✓</span>`);
4806
4903
  writeScope($scope13_id, {});
4807
4904
  return 1;
4808
4905
  }
@@ -4814,7 +4911,7 @@ var new_workspace_default = _template("n", (input) => {
4814
4911
  return 0;
4815
4912
  }
4816
4913
  }, $scope0_id, "s", 1, 1, 1, 0, 1);
4817
- _html(`<div${_attr_class("_bt")}>`);
4914
+ _html(`<div${_attr_class("_bG")}>`);
4818
4915
  _if(() => {
4819
4916
  if (input.onExit || busy) {
4820
4917
  const $scope1_id = _scope_id();
@@ -4827,15 +4924,15 @@ var new_workspace_default = _template("n", (input) => {
4827
4924
  _html(`<button type=button${_attr_class([
4828
4925
  btnLg,
4829
4926
  "_m",
4830
- "_bu"
4927
+ "_bH"
4831
4928
  ])}${_attr("disabled", busy || !!restoring || !name.trim())}>${busy ? "Creating…" : "Create workspace"}${_el_resume($scope0_id, "w")}</button>${_el_resume($scope0_id, "v")}</div>`);
4832
4929
  _if(() => {
4833
4930
  if (archived$1.length) {
4834
4931
  const $scope3_id = _scope_id();
4835
- _html(`<section${_attr_class(archived)}><div${_attr_class("_bx")}><h2${_attr_class("_br")}>Archived</h2><span${_attr_class(sectionCount$1)}>${_escape(archived$1.length)}${_el_resume($scope3_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("_bf")}>`);
4932
+ _html(`<section${_attr_class(archived)}><div${_attr_class("_bK")}><h2${_attr_class("_bE")}>Archived</h2><span${_attr_class(sectionCount$1)}>${_escape(archived$1.length)}${_el_resume($scope3_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("_bs")}>`);
4836
4933
  _for_of(archived$1, (ws) => {
4837
4934
  const $scope4_id = _scope_id();
4838
- _html(`<li${_attr_class(archivedCard)}><div${_attr_class("_bi")}><span${_attr_class("_bj")}>${_escape(ws.name)}${_el_resume($scope4_id, "d", $sg__input_workspaces)}</span><span${_attr_class([metaTrunc, "_u"])}${_attr("title", ws.display_path || ws.path)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope4_id, "f", $sg__input_workspaces)}</span>${_el_resume($scope4_id, "e", $sg__input_workspaces)}</div><button type=button${_attr_class(btnLg)}${_attr("disabled", busy || !!restoring)}>`);
4935
+ _html(`<li${_attr_class(archivedCard)}><div${_attr_class("_bv")}><span${_attr_class("_bw")}>${_escape(ws.name)}${_el_resume($scope4_id, "d", $sg__input_workspaces)}</span><span${_attr_class([metaTrunc, "_u"])}${_attr("title", ws.display_path || ws.path)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope4_id, "f", $sg__input_workspaces)}</span>${_el_resume($scope4_id, "e", $sg__input_workspaces)}</div><button type=button${_attr_class(btnLg)}${_attr("disabled", busy || !!restoring)}>`);
4839
4936
  _if(() => {
4840
4937
  if (restoring === ws.id) {
4841
4938
  const $scope14_id = _scope_id();
@@ -5020,12 +5117,12 @@ var ARM_MS = 3500;
5020
5117
  function disarmLater(fn) {
5021
5118
  return setTimeout(fn, ARM_MS);
5022
5119
  }
5023
- var railBtn = "_e2 _g";
5024
- var rowIcon = "_fa _W _g";
5025
- var close = "_fb _W _g _Z";
5120
+ var railBtn = "_fk _g";
5121
+ var rowIcon = "_ft _W _g";
5122
+ var close = "_fu _W _g _Z";
5026
5123
  //#endregion
5027
5124
  //#region src/styles/session-pop.css.ts
5028
- var sessionPop = "_eY _1";
5125
+ var sessionPop = "_fg _1";
5029
5126
  //#endregion
5030
5127
  //#region src/client/usage.ts
5031
5128
  /** The plan row an agent instance draws on: its own account (`claude2`)
@@ -5086,21 +5183,21 @@ var usage_pcts_default = _template("A", (input) => {
5086
5183
  if (windows.length) {
5087
5184
  const $scope1_id = _scope_id();
5088
5185
  _html(`<span${_attr_class([
5089
- "_eC",
5186
+ "_eF",
5090
5187
  input.class,
5091
- { ["_eD"]: agent.stale_seconds != null }
5188
+ { ["_eG"]: agent.stale_seconds != null }
5092
5189
  ])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
5093
5190
  _for_of(windows, (win$1, i) => {
5094
5191
  const $scope2_id = _scope_id();
5095
5192
  _if(() => {
5096
5193
  if (i) {
5097
5194
  const $scope3_id = _scope_id();
5098
- _html(`<span${_attr_class("_eH")} aria-hidden=true>·</span>`);
5195
+ _html(`<span${_attr_class("_eK")} aria-hidden=true>·</span>`);
5099
5196
  $si__input_agent && writeScope($scope3_id, {});
5100
5197
  return 0;
5101
5198
  }
5102
5199
  }, $scope2_id, "a", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
5103
- _html(`<span${_attr_class("_eE")}><span${_attr_class("_eF")}>${_escape(win$1.window)}${_el_resume($scope2_id, "d", $sg__input_agent)}</span><span${_attr_class(["_eG", win$1.used_percent >= 90 ? "_cJ" : win$1.used_percent >= 70 ? "_cI" : win$1.used_percent >= 40 ? "_cH" : "_cG"])}>${_escape(pctText(win$1.used_percent))}${_el_resume($scope2_id, "f", $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
5200
+ _html(`<span${_attr_class("_eH")}><span${_attr_class("_eI")}>${_escape(win$1.window)}${_el_resume($scope2_id, "d", $sg__input_agent)}</span><span${_attr_class(["_eJ", win$1.used_percent >= 90 ? "_cY" : win$1.used_percent >= 70 ? "_cX" : win$1.used_percent >= 40 ? "_cW" : "_cV"])}>${_escape(pctText(win$1.used_percent))}${_el_resume($scope2_id, "f", $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
5104
5201
  $si__input_agent && writeScope($scope2_id, {});
5105
5202
  }, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>");
5106
5203
  $si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
@@ -5334,10 +5431,10 @@ var side_nav_item_default = _template("u", (input) => {
5334
5431
  _if(() => {
5335
5432
  if (input.rail) {
5336
5433
  const $scope2_id = _scope_id();
5337
- _html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_e0"]: 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([
5434
+ _html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_fi"]: 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([
5338
5435
  "_w",
5339
5436
  phase[dot],
5340
- "_e3"
5437
+ "_fl"
5341
5438
  ])}></span>${_el_resume($scope2_id, "c", $sg__input_workspaceId__OR__input_status)}</a>${_el_resume($scope2_id, "a", _serialize_guard($scope0_reason, 3))}`);
5342
5439
  _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) })))));
5343
5440
  return 0;
@@ -5345,15 +5442,15 @@ var side_nav_item_default = _template("u", (input) => {
5345
5442
  const $scope3_id = _scope_id();
5346
5443
  const sessions$1 = input.sessions || [];
5347
5444
  const phaseLabel = dot === "working" ? "Working" : dot === "waiting" ? "Needs input" : dot === "idle" ? "Idle" : "Not running";
5348
- _html(`<section${_attr_class(["_e5", {
5349
- ["_e0"]: input.current,
5445
+ _html(`<section${_attr_class(["_fn", {
5446
+ ["_fi"]: input.current,
5350
5447
  ["_2"]: input.current,
5351
- ["_e6"]: input.railPop,
5352
- ["_e4"]: input.page
5353
- }])}><div${_attr_class("_e7")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class("_e8")}><span${_attr_class([
5448
+ ["_fo"]: input.railPop,
5449
+ ["_fm"]: input.page
5450
+ }])}><div${_attr_class("_fp")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class("_fq")}><span${_attr_class([
5354
5451
  "_w",
5355
5452
  phase[dot],
5356
- "_fl"
5453
+ "_fE"
5357
5454
  ])}${_attr("title", phaseLabel)}></span>${_el_resume($scope3_id, "d", $sg__input_workspaceId__OR__input_status)}`);
5358
5455
  _if(() => {
5359
5456
  if (sessions$1.length === 1) {
@@ -5366,7 +5463,7 @@ var side_nav_item_default = _template("u", (input) => {
5366
5463
  icon_agent_default({
5367
5464
  agent: activeAgent(sessions$1[0]),
5368
5465
  size: 12,
5369
- class: "_fc"
5466
+ class: "_fv"
5370
5467
  });
5371
5468
  $si__input_sessions && writeScope($scope14_id, {
5372
5469
  _: _scope_with_id($scope3_id),
@@ -5376,16 +5473,16 @@ var side_nav_item_default = _template("u", (input) => {
5376
5473
  }
5377
5474
  }, $scope3_id, "e", $sg__input_sessions, $sg__input_sessions);
5378
5475
  const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length === 1 ? sessions$1[0].title || "" : `${sessions$1.length} sessions`;
5379
- _html(`<span${_attr_class("_fd")}><span${_attr_class("_fe")}>${_escape(ws$1.name)}${_el_resume($scope3_id, "h", $sg__input_workspaces__OR__input_workspaceId)}</span>`);
5476
+ _html(`<span${_attr_class("_fw")}><span${_attr_class("_fx")}>${_escape(ws$1.name)}${_el_resume($scope3_id, "h", $sg__input_workspaces__OR__input_workspaceId)}</span>`);
5380
5477
  _if(() => {
5381
5478
  if (input.page && metaText) {
5382
5479
  const $scope16_id = _scope_id();
5383
- _html(`<span${_attr_class("_fj")}>${_escape(metaText)}${_el_resume($scope16_id, "b", _serialize_guard($scope0_reason, 7))}</span>`);
5480
+ _html(`<span${_attr_class("_fC")}>${_escape(metaText)}${_el_resume($scope16_id, "b", _serialize_guard($scope0_reason, 7))}</span>`);
5384
5481
  $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) });
5385
5482
  return 0;
5386
5483
  } else if (sessions$1.length === 1 && sessions$1[0].title) {
5387
5484
  const $scope15_id = _scope_id();
5388
- _html(`<span${_attr_class("_ff")}>${_escape(sessions$1[0].title)}${_el_resume($scope15_id, "b", $sg__input_sessions)}</span>`);
5485
+ _html(`<span${_attr_class("_fy")}>${_escape(sessions$1[0].title)}${_el_resume($scope15_id, "b", $sg__input_sessions)}</span>`);
5389
5486
  $si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && writeScope($scope15_id, { _: $si__input_sessions && _scope_with_id($scope3_id) });
5390
5487
  return 1;
5391
5488
  }
@@ -5398,7 +5495,7 @@ var side_nav_item_default = _template("u", (input) => {
5398
5495
  "_F",
5399
5496
  "_O",
5400
5497
  "_H",
5401
- "_fk"
5498
+ "_fD"
5402
5499
  ])}>${input.current ? "Open" : ""}${_el_resume($scope4_id, "b", _serialize_guard($scope0_reason, 21))}</span>`);
5403
5500
  $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, {
5404
5501
  _: _scope_with_id($scope3_id),
@@ -5411,7 +5508,7 @@ var side_nav_item_default = _template("u", (input) => {
5411
5508
  _if(() => {
5412
5509
  if (!input.page) {
5413
5510
  const $scope5_id = _scope_id();
5414
- _html(`<div${_attr_class("_e9")}>`);
5511
+ _html(`<div${_attr_class("_fr")}>`);
5415
5512
  _if(() => {
5416
5513
  if (input.onNewSession) {
5417
5514
  const $scope6_id = _scope_id();
@@ -5425,7 +5522,7 @@ var side_nav_item_default = _template("u", (input) => {
5425
5522
  _html(`</button>${_el_resume($scope6_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class(sessionPop)}>`);
5426
5523
  _for_of([], (agent) => {
5427
5524
  const $scope7_id = _scope_id();
5428
- _html(`<button${_attr_class("_eZ")}>`);
5525
+ _html(`<button${_attr_class("_fh")}>`);
5429
5526
  _set_serialize_reason(12);
5430
5527
  const $childScope2 = _peek_scope_id();
5431
5528
  icon_agent_default({
@@ -5460,7 +5557,7 @@ var side_nav_item_default = _template("u", (input) => {
5460
5557
  return 0;
5461
5558
  }
5462
5559
  }, $scope5_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
5463
- _html(`<a${_attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_e1"]: input.managing }])} title="Manage workspace"${input.managing ? " aria-current=page" : ""}>`);
5560
+ _html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_fj"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
5464
5561
  icon_manage_default({ size: 12 });
5465
5562
  _html(`</a>${_el_resume($scope5_id, "d", _serialize_guard($scope0_reason, 8))}</div>`);
5466
5563
  _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, {
@@ -5470,7 +5567,7 @@ var side_nav_item_default = _template("u", (input) => {
5470
5567
  return 0;
5471
5568
  }
5472
5569
  }, $scope3_id, "k", $sg__input_page, $sg__input_page, 1, 0, 1);
5473
- _html(`</div><div${_attr_class("_fq")}>`);
5570
+ _html(`</div><div${_attr_class("_fJ")}>`);
5474
5571
  _if(() => {
5475
5572
  if (sessions$1.length === 1 && openPlan) {
5476
5573
  const $scope11_id = _scope_id();
@@ -5478,7 +5575,7 @@ var side_nav_item_default = _template("u", (input) => {
5478
5575
  const $childScope3 = _peek_scope_id();
5479
5576
  usage_pcts_default({
5480
5577
  agent: openPlan,
5481
- class: "_fg"
5578
+ class: "_fz"
5482
5579
  });
5483
5580
  _subscribe($openPlan__closures, writeScope($scope11_id, {
5484
5581
  a: _existing_scope($childScope3),
@@ -5489,14 +5586,14 @@ var side_nav_item_default = _template("u", (input) => {
5489
5586
  }, $scope3_id, "m");
5490
5587
  _for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
5491
5588
  const $scope8_id = _scope_id();
5492
- _html(`<div${_attr_class(["_e_", { ["_e0"]: s.id === input.currentTab }])}>`);
5589
+ _html(`<div${_attr_class(["_fs", { ["_fi"]: s.id === input.currentTab }])}>`);
5493
5590
  _if(() => {
5494
5591
  if (renamingId === s.id) {
5495
5592
  const $scope10_id = _scope_id();
5496
5593
  _html(`<span${_attr_class([
5497
5594
  "_w",
5498
5595
  phase[sessionPhase(s.state)],
5499
- "_fo"
5596
+ "_fH"
5500
5597
  ])}></span>${_el_resume($scope10_id, "a", $sg__input_sessions)}`);
5501
5598
  _set_serialize_reason({
5502
5599
  1: $sg__input_sessions,
@@ -5506,17 +5603,17 @@ var side_nav_item_default = _template("u", (input) => {
5506
5603
  icon_agent_default({
5507
5604
  agent: activeAgent(s),
5508
5605
  size: 13,
5509
- class: "_fs"
5606
+ class: "_fL"
5510
5607
  });
5511
5608
  _html(`<input${_attr_input_value($scope10_id, "c", renameValue, _resume((_new_renameValue) => {
5512
5609
  renameValue = _new_renameValue;
5513
- }, "u0", $scope10_id))}${_attr_class(["_R", "_fp"])} aria-label="Session name">${_el_resume($scope10_id, "c")}`);
5610
+ }, "u0", $scope10_id))}${_attr_class(["_R", "_fI"])} aria-label="Session name">${_el_resume($scope10_id, "c")}`);
5514
5611
  _script($scope10_id, "u5");
5515
5612
  _subscribe($renameValue__closures, writeScope($scope10_id, { b: $si__input_sessions && _existing_scope($childScope4) }));
5516
5613
  return 0;
5517
5614
  } else {
5518
5615
  const $scope9_id = _scope_id();
5519
- _html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("_fr")}><span${_attr_class(["_w", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope9_id, "b", $sg__input_sessions)}`);
5616
+ _html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("_fK")}><span${_attr_class(["_w", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope9_id, "b", $sg__input_sessions)}`);
5520
5617
  _set_serialize_reason({
5521
5618
  1: $sg__input_sessions,
5522
5619
  2: $sg__input_sessions
@@ -5525,9 +5622,9 @@ var side_nav_item_default = _template("u", (input) => {
5525
5622
  icon_agent_default({
5526
5623
  agent: activeAgent(s),
5527
5624
  size: 13,
5528
- class: "_fs"
5625
+ class: "_fL"
5529
5626
  });
5530
- _html(`<span${_attr_class("_fh")}><span${_attr_class("_fm")}>${_escape(s.title || activeAgent(s))}${_el_resume($scope9_id, "f", $sg__input_sessions)}</span>`);
5627
+ _html(`<span${_attr_class("_fA")}><span${_attr_class("_fF")}>${_escape(s.title || activeAgent(s))}${_el_resume($scope9_id, "f", $sg__input_sessions)}</span>`);
5531
5628
  _if(() => {
5532
5629
  if (openPlan && s.id === openSess?.id) {
5533
5630
  const $scope12_id = _scope_id();
@@ -5535,7 +5632,7 @@ var side_nav_item_default = _template("u", (input) => {
5535
5632
  const $childScope6 = _peek_scope_id();
5536
5633
  usage_pcts_default({
5537
5634
  agent: openPlan,
5538
- class: "_fi"
5635
+ class: "_fB"
5539
5636
  });
5540
5637
  _subscribe($openPlan__closures, writeScope($scope12_id, {
5541
5638
  a: _existing_scope($childScope6),
@@ -5544,7 +5641,7 @@ var side_nav_item_default = _template("u", (input) => {
5544
5641
  return 0;
5545
5642
  }
5546
5643
  }, $scope9_id, "g");
5547
- _html(`</span></a>${_el_resume($scope9_id, "a", _serialize_guard($scope0_reason, 6))}<div${_attr_class("_fn")}><button${_attr_class(rowIcon)} title="Rename session">`);
5644
+ _html(`</span></a>${_el_resume($scope9_id, "a", _serialize_guard($scope0_reason, 6))}<div${_attr_class("_fG")}><button${_attr_class(rowIcon)} title="Rename session">`);
5548
5645
  icon_edit_default({ size: 12 });
5549
5646
  _html(`</button>${_el_resume($scope9_id, "i")}<button${_attr_class([close, { ["_n"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
5550
5647
  icon_xmark_default({ size: 12 });
@@ -5737,6 +5834,7 @@ var side_nav_default = _template("v", (input) => {
5737
5834
  const allStatus = input.allStatus || {};
5738
5835
  allStatus[ws.id];
5739
5836
  const isPage = view === "nav";
5837
+ const backHref = `/w/${ws.id}`;
5740
5838
  const otherIds = itemIds.filter((id) => id !== ws.id);
5741
5839
  const listIds = isPage ? [ws.id, ...otherIds] : itemIds;
5742
5840
  _html(`<aside${_attr_class(["_c7", {
@@ -5748,11 +5846,11 @@ var side_nav_default = _template("v", (input) => {
5748
5846
  const $scope1_id = _scope_id();
5749
5847
  _html(`<header${_attr_class("_c_")}><h1${_attr_class("_da")}>Workspaces</h1><div${_attr_class("_db")}>`);
5750
5848
  _if(() => {}, $scope1_id, "d", 1, 1, 1, 0, 1);
5751
- _html(`<a href=/settings${_attr_class([
5849
+ _html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
5752
5850
  iconBtn$1,
5753
5851
  "_dc",
5754
5852
  { ["_c2"]: view === "settings" }
5755
- ])} title=Settings${view === "settings" ? " aria-current=page" : ""}>`);
5853
+ ])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
5756
5854
  icon_settings_default({ size: 16 });
5757
5855
  _if(() => {
5758
5856
  if (input.setupReady === false) {
@@ -5773,7 +5871,7 @@ var side_nav_default = _template("v", (input) => {
5773
5871
  _if(() => {
5774
5872
  if (isPage && wsId === ws.id) {
5775
5873
  const $scope11_id = _scope_id();
5776
- _html(`<h2${_attr_class(["_br", "_dd"])}>Current</h2>`);
5874
+ _html(`<h2${_attr_class(["_bE", "_dd"])}>Current</h2>`);
5777
5875
  writeScope($scope11_id, {});
5778
5876
  return 0;
5779
5877
  }
@@ -5781,7 +5879,7 @@ var side_nav_default = _template("v", (input) => {
5781
5879
  _if(() => {
5782
5880
  if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
5783
5881
  const $scope12_id = _scope_id();
5784
- _html(`<h2${_attr_class(["_br", "_dd"])}>Other workspaces</h2>`);
5882
+ _html(`<h2${_attr_class(["_bE", "_dd"])}>Other workspaces</h2>`);
5785
5883
  writeScope($scope12_id, {});
5786
5884
  return 0;
5787
5885
  }
@@ -5992,9 +6090,9 @@ var side_nav_default = _template("v", (input) => {
5992
6090
  _subscribe($si__input_allStatus && $allStatus__closures, _subscribe($si__input_workspace__OR__input_allWorkspaces && $workspaces__closures, _subscribe($view__closures, _subscribe($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($scope5_id, {
5993
6091
  c: hoverId,
5994
6092
  b: _existing_scope($childScope3),
5995
- Cax: $si__input_workspace && 1,
5996
- Cb5: $si__input_workspace__OR__input_allWorkspaces && 1,
5997
- Cb6: $si__input_allStatus && 1
6093
+ Cay: $si__input_workspace && 1,
6094
+ Cb6: $si__input_workspace__OR__input_allWorkspaces && 1,
6095
+ Cb7: $si__input_allStatus && 1
5998
6096
  })))))))))))));
5999
6097
  return 0;
6000
6098
  }
@@ -6014,12 +6112,12 @@ var side_nav_default = _template("v", (input) => {
6014
6112
  _if(() => {
6015
6113
  if (isPage) {
6016
6114
  const $scope7_id = _scope_id();
6017
- _html(`<a href=/new${_attr_class([
6115
+ _html(`<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([
6018
6116
  "_l",
6019
6117
  "_m",
6020
6118
  btnLg,
6021
6119
  "_de"
6022
- ])} title="New workspace"${view === "new" ? " aria-current=page" : ""}>`);
6120
+ ])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
6023
6121
  icon_folder_plus_default({ size: 16 });
6024
6122
  _html(` New workspace</a>${_el_resume($scope7_id, "a")}`);
6025
6123
  writeScope($scope7_id, {});
@@ -6042,7 +6140,7 @@ var side_nav_default = _template("v", (input) => {
6042
6140
  }, $scope6_id, "a", 1, 1, 1, "</button>", 1);
6043
6141
  _html(`<div${_attr_class(["_v", "_di"])}></div>`);
6044
6142
  _if(() => {}, $scope6_id, "c", 1, 1, 1, 0, 1);
6045
- _html(`<a href=/settings${_attr_class([iconBtn$1, { ["_c2"]: view === "settings" }])} title=Settings${view === "settings" ? " aria-current=page" : ""}>`);
6143
+ _html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["_c2"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
6046
6144
  icon_settings_default({ size: 15 });
6047
6145
  _if(() => {
6048
6146
  if (input.setupReady === false) {
@@ -6052,7 +6150,7 @@ var side_nav_default = _template("v", (input) => {
6052
6150
  return 0;
6053
6151
  }
6054
6152
  }, $scope6_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
6055
- _html(`</a>${_el_resume($scope6_id, "d")}<a href=/new${_attr_class([iconBtn$1, { ["_c2"]: view === "new" }])} title="New workspace"${view === "new" ? " aria-current=page" : ""}>`);
6153
+ _html(`</a>${_el_resume($scope6_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn$1, { ["_c2"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
6056
6154
  icon_folder_plus_default({ size: 16 });
6057
6155
  _html(`</a>${_el_resume($scope6_id, "g")}`);
6058
6156
  _script($scope6_id, "v15");
@@ -6092,30 +6190,31 @@ var side_nav_default = _template("v", (input) => {
6092
6190
  ag: workspaces,
6093
6191
  ah: allStatus,
6094
6192
  aj: isPage,
6095
- al: otherIds,
6096
- an: otherIds?.[0],
6193
+ al: backHref,
6194
+ am: otherIds,
6195
+ ao: otherIds?.[0],
6097
6196
  a5: input.tabChange || void 0,
6098
6197
  a7: input.viewChange || void 0,
6099
- b1: $notifyOn__closures,
6100
- ax: $si__input_workspace && $ws_id__closures,
6101
- b5: $si__input_workspace__OR__input_allWorkspaces && $workspaces__closures,
6102
- b6: $si__input_allStatus && $allStatus__closures,
6103
- aq: $si__input_onSelectWorkspace && $input_onSelectWorkspace__closures,
6104
- ar: $si__input_agents && $input_agents__closures,
6105
- as: $si__input_onNewSession && $input_onNewSession__closures,
6106
- at: $si__input_onReviewOpened && $input_onReviewOpened__closures,
6107
- au: $si__input_sessions && $input_sessions__closures,
6108
- av: $si__input_onRenameSession && $input_onRenameSession__closures,
6109
- aw: $si__input_onCloseSession && $input_onCloseSession__closures,
6110
- ay: $tab__closures,
6111
- az: $view__closures
6198
+ b2: $notifyOn__closures,
6199
+ ay: $si__input_workspace && $ws_id__closures,
6200
+ b6: $si__input_workspace__OR__input_allWorkspaces && $workspaces__closures,
6201
+ b7: $si__input_allStatus && $allStatus__closures,
6202
+ ar: $si__input_onSelectWorkspace && $input_onSelectWorkspace__closures,
6203
+ as: $si__input_agents && $input_agents__closures,
6204
+ at: $si__input_onNewSession && $input_onNewSession__closures,
6205
+ au: $si__input_onReviewOpened && $input_onReviewOpened__closures,
6206
+ av: $si__input_sessions && $input_sessions__closures,
6207
+ aw: $si__input_onRenameSession && $input_onRenameSession__closures,
6208
+ ax: $si__input_onCloseSession && $input_onCloseSession__closures,
6209
+ az: $tab__closures,
6210
+ b0: $view__closures
6112
6211
  });
6113
6212
  _resume_branch($scope0_id);
6114
6213
  });
6115
6214
  var iconBtn = "_X _g";
6116
- var sectionCount = "_be _F _G";
6117
- var content = "_dk _5";
6118
- var pageMeta = "_dl __";
6215
+ var sectionCount = "_br _F _G";
6216
+ var content = "_dk _bh";
6217
+ var pageMeta = "_dl _bm";
6119
6218
  var pathMeta = "_do _u";
6120
6219
  var dangerHint = "_du _P";
6121
6220
  //#endregion
@@ -6215,7 +6314,7 @@ var manage_workspace_default = _template("l", (input) => {
6215
6314
  setTimeout(() => loadProcs(void 0), 500);
6216
6315
  }, "l5", $scope0_id);
6217
6316
  const titleId = _id();
6218
- _html(`<div${_attr_class("_3")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_4")}><div${_attr_class(content)}>`);
6317
+ _html(`<div${_attr_class("_bf")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bg")}><div${_attr_class(content)}>`);
6219
6318
  _set_serialize_reason(30);
6220
6319
  const $childScope = _peek_scope_id();
6221
6320
  page_head_default({
@@ -6265,22 +6364,22 @@ var manage_workspace_default = _template("l", (input) => {
6265
6364
  _if(() => {
6266
6365
  if (pendingAction && actionStep) {
6267
6366
  const $scope7_id = _scope_id();
6268
- _html(`<p${_attr_class("_bb")}><span${_attr_class("_C")}></span><!>${_escape(actionStep)}${_el_resume($scope7_id, "c")}</p>`);
6367
+ _html(`<p${_attr_class("_bo")}><span${_attr_class("_C")}></span><!>${_escape(actionStep)}${_el_resume($scope7_id, "c")}</p>`);
6269
6368
  writeScope($scope7_id, {});
6270
6369
  return 0;
6271
6370
  }
6272
6371
  }, $scope0_id, "f", 1, 1, 1, 0, 1);
6273
- _html(`<section${_attr_class("_bc")}><div${_attr_class("_bd")}><h2${_attr_class("_br")}>Repos</h2><span${_attr_class(sectionCount)}>${_escape(ws.repos.length)}${_el_resume($scope0_id, "k")}</span><div${_attr_class("_v")}></div><button${_attr_class(iconBtn)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
6372
+ _html(`<section${_attr_class("_bp")}><div${_attr_class("_bq")}><h2${_attr_class("_bE")}>Repos</h2><span${_attr_class(sectionCount)}>${_escape(ws.repos.length)}${_el_resume($scope0_id, "k")}</span><div${_attr_class("_v")}></div><button${_attr_class(iconBtn)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
6274
6373
  _set_serialize_reason(1);
6275
6374
  const $childScope2 = _peek_scope_id();
6276
6375
  icon_refresh_default({
6277
6376
  size: 14,
6278
6377
  class: catalogRefreshing && "_B"
6279
6378
  });
6280
- _html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("_bf")}>`);
6379
+ _html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("_bs")}>`);
6281
6380
  _for_of(ws.repos, (row) => {
6282
6381
  const $scope1_id = _scope_id();
6283
- _html(`<li${_attr_class("_bh")}><div${_attr_class("_bi")}><span${_attr_class(["_bj", "_u"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_bk")}><a${_attr_class(["_bl", "_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")}`);
6382
+ _html(`<li${_attr_class("_bu")}><div${_attr_class("_bv")}><span${_attr_class(["_bw", "_u"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_bx")}><a${_attr_class(["_by", "_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")}`);
6284
6383
  _if(() => {
6285
6384
  if (row.base_branch !== row.default_branch) {
6286
6385
  const $scope12_id = _scope_id();
@@ -6299,7 +6398,7 @@ var manage_workspace_default = _template("l", (input) => {
6299
6398
  } else {
6300
6399
  const $scope6_id = _scope_id();
6301
6400
  _html(`<button${_attr_class([
6302
- "_bm",
6401
+ "_bz",
6303
6402
  "_Z",
6304
6403
  "_0",
6305
6404
  { ["_n"]: confirmingRemove === row.full_name }
@@ -6332,14 +6431,14 @@ var manage_workspace_default = _template("l", (input) => {
6332
6431
  }, "full_name", $scope0_id, "p", 1, 1, 1, 0, 1);
6333
6432
  _for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
6334
6433
  const $scope16_id = _scope_id();
6335
- _html(`<li${_attr_class(["_bh", "_bg"])}><span${_attr_class("_C")}></span><div${_attr_class("_bi")}><span${_attr_class("_bl")}>Adding <!>${_escape(name)}${_el_resume($scope16_id, "e")}…</span></div></li>`);
6434
+ _html(`<li${_attr_class(["_bu", "_bt"])}><span${_attr_class("_C")}></span><div${_attr_class("_bv")}><span${_attr_class("_by")}>Adding <!>${_escape(name)}${_el_resume($scope16_id, "e")}…</span></div></li>`);
6336
6435
  writeScope($scope16_id, {});
6337
6436
  }, (n) => n, $scope0_id, "q", 1, 1, 1, 0, 1);
6338
6437
  _html("</ul>");
6339
6438
  _if(() => {
6340
6439
  if (!ws.repos.length && !busy.size) {
6341
6440
  const $scope17_id = _scope_id();
6342
- _html(`<p${_attr_class("_bn")}>No repos yet. Search below to add one.</p>`);
6441
+ _html(`<p${_attr_class("_bA")}>No repos yet. Search below to add one.</p>`);
6343
6442
  writeScope($scope17_id, {});
6344
6443
  return 0;
6345
6444
  }
@@ -6364,14 +6463,14 @@ var manage_workspace_default = _template("l", (input) => {
6364
6463
  _if(() => {
6365
6464
  if (running.length) {
6366
6465
  const $scope9_id = _scope_id();
6367
- _html(`<section${_attr_class("_bc")}><div${_attr_class("_bd")}><h2${_attr_class("_br")}>Running</h2><span${_attr_class(sectionCount)}>${_escape(running.length)}${_el_resume($scope9_id, "e")}</span></div><ul${_attr_class("_bf")}>`);
6466
+ _html(`<section${_attr_class("_bp")}><div${_attr_class("_bq")}><h2${_attr_class("_bE")}>Running</h2><span${_attr_class(sectionCount)}>${_escape(running.length)}${_el_resume($scope9_id, "e")}</span></div><ul${_attr_class("_bs")}>`);
6368
6467
  _for_of(running, (p) => {
6369
6468
  const $scope10_id = _scope_id();
6370
- _html(`<li${_attr_class("_bh")}><div${_attr_class("_bi")}${_attr("title", p.args)}><span${_attr_class(["_bj", "_u"])}>${_escape(p.cmd)}${_el_resume($scope10_id, "d")}</span>`);
6469
+ _html(`<li${_attr_class("_bu")}><div${_attr_class("_bv")}${_attr("title", p.args)}><span${_attr_class(["_bw", "_u"])}>${_escape(p.cmd)}${_el_resume($scope10_id, "d")}</span>`);
6371
6470
  _if(() => {
6372
6471
  if (p.ports.length) {
6373
6472
  const $scope18_id = _scope_id();
6374
- _html(`<span${_attr_class("_bk")}>`);
6473
+ _html(`<span${_attr_class("_bx")}>`);
6375
6474
  _for_of(p.ports, (port) => {
6376
6475
  const $scope19_id = _scope_id();
6377
6476
  _html(`<button${_attr_class(["_p", "_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")}`);
@@ -6382,7 +6481,7 @@ var manage_workspace_default = _template("l", (input) => {
6382
6481
  return 0;
6383
6482
  }
6384
6483
  }, $scope10_id, "e", 1, 1, 1, 0, 1);
6385
- _html(`</div>${_el_resume($scope10_id, "b")}<button${_attr_class(["_bm", "_Z"])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
6484
+ _html(`</div>${_el_resume($scope10_id, "b")}<button${_attr_class(["_bz", "_Z"])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
6386
6485
  icon_xmark_default({ size: 14 });
6387
6486
  _html(`</button>${_el_resume($scope10_id, "f")}</li>`);
6388
6487
  _script($scope10_id, "l16");
@@ -6396,7 +6495,7 @@ var manage_workspace_default = _template("l", (input) => {
6396
6495
  return 0;
6397
6496
  }
6398
6497
  }, $scope0_id, "v", 1, 1, 1, 0, 1);
6399
- _html(`<section${_attr_class(["_bc", "_ds"])}><div${_attr_class("_bd")}><h2${_attr_class("_br")}>Workspace</h2></div><div${_attr_class("_dt")}>`);
6498
+ _html(`<section${_attr_class(["_bp", "_ds"])}><div${_attr_class("_bq")}><h2${_attr_class("_bE")}>Workspace</h2></div><div${_attr_class("_dt")}>`);
6400
6499
  _if(() => {
6401
6500
  if (ws.status === "active") {
6402
6501
  const $scope4_id = _scope_id();
@@ -6926,7 +7025,7 @@ var work_view_default = _template("B", (input) => {
6926
7025
  let DiffView = null;
6927
7026
  const loadDiffView = _resume(() => {
6928
7027
  if (DiffView) return;
6929
- import("./__lXIKR5F.js").then((m) => {
7028
+ import("./_ubn-vkjC.js").then((m) => {
6930
7029
  DiffView = m.default;
6931
7030
  });
6932
7031
  }, "B6", $scope0_id);
@@ -7112,7 +7211,7 @@ var work_view_default = _template("B", (input) => {
7112
7211
  toggleDiff();
7113
7212
  }
7114
7213
  }, "B21", $scope0_id);
7115
- _html(`<div${_attr_class(["_bW", { ["_bV"]: view === "nav" }])}><div${_attr_class("_bX")}>`);
7214
+ _html(`<div${_attr_class(["_ci", { ["_ch"]: view === "nav" }])}><div${_attr_class("_cj")}>`);
7116
7215
  _set_serialize_reason({
7117
7216
  0: _serialize_guard($scope0_reason, 0),
7118
7217
  1: _serialize_guard($scope0_reason, 1),
@@ -7168,7 +7267,7 @@ var work_view_default = _template("B", (input) => {
7168
7267
  openDiff(pr);
7169
7268
  }, "B29", $scope0_id)
7170
7269
  });
7171
- _html(`</div><div${_attr_class("_bY")}>`);
7270
+ _html(`</div><div${_attr_class("_ck")}>`);
7172
7271
  _if(() => {
7173
7272
  if (error) {
7174
7273
  const $scope8_id = _scope_id();
@@ -7319,13 +7418,13 @@ var work_view_default = _template("B", (input) => {
7319
7418
  return 0;
7320
7419
  }
7321
7420
  }, $scope0_id, "i");
7322
- _html(`<div${_attr_class(["_b0", { ["_bZ"]: view !== "term" }])}>`);
7421
+ _html(`<div${_attr_class(["_cm", { ["_cl"]: view !== "term" }])}>`);
7323
7422
  _if(() => {
7324
7423
  if (shownSessions) {
7325
7424
  const $scope5_id = _scope_id();
7326
7425
  _for_of(shownSessions, (s) => {
7327
7426
  const $scope6_id = _scope_id();
7328
- _html(`<div${_attr_class(["_b1", { ["_b2"]: s.id === curTab }])}>`);
7427
+ _html(`<div${_attr_class(["_cn", { ["_co"]: s.id === curTab }])}>`);
7329
7428
  _set_serialize_reason({
7330
7429
  0: 1,
7331
7430
  1: 1,
@@ -7384,7 +7483,7 @@ var work_view_default = _template("B", (input) => {
7384
7483
  _if(() => {
7385
7484
  if (!shownSessions.length && view === "term") {
7386
7485
  const $scope7_id = _scope_id();
7387
- _html(`<div${_attr_class("_bo")}><span>No sessions in this workspace.</span><button${_attr_class(["_l", "_m"])}${_attr("disabled", spawning)}>${spawning ? "Starting…" : `Start ${_escape(`${input.preferred || "shell"}`)}`}${_el_resume($scope7_id, "c")}</button>${_el_resume($scope7_id, "b")}</div>`);
7486
+ _html(`<div${_attr_class("_bB")}><span>No sessions in this workspace.</span><button${_attr_class(["_l", "_m"])}${_attr("disabled", spawning)}>${spawning ? "Starting…" : `Start ${_escape(`${input.preferred || "shell"}`)}`}${_el_resume($scope7_id, "c")}</button>${_el_resume($scope7_id, "b")}</div>`);
7388
7487
  _script($scope7_id, "B48");
7389
7488
  _subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
7390
7489
  return 0;
@@ -7394,7 +7493,7 @@ var work_view_default = _template("B", (input) => {
7394
7493
  return 0;
7395
7494
  } else {
7396
7495
  const $scope10_id = _scope_id();
7397
- _html(`<p${_attr_class("_bo")}>Loading sessions…</p>`);
7496
+ _html(`<p${_attr_class("_bB")}>Loading sessions…</p>`);
7398
7497
  writeScope($scope10_id, {});
7399
7498
  return 1;
7400
7499
  }
@@ -7954,7 +8053,7 @@ function head2(context) {
7954
8053
  //#region src/routes/_app/settings/+handler.ts
7955
8054
  /** Settings is about the doctor snapshot, so this page waits for it and
7956
8055
  * server-renders every section (the shell still streams first). */
7957
- var GET$18 = Run.GET(async (_ctx, next) => {
8056
+ var GET$19 = Run.GET(async (_ctx, next) => {
7958
8057
  return next({ setup: await getSetup().catch(() => null) });
7959
8058
  });
7960
8059
  //#endregion
@@ -7983,12 +8082,12 @@ var settings_default = _template("AA0T2xt", (input) => {
7983
8082
  var settings_server_entry_default = withPageAssets(settings_default, flush, "AA0T2xt");
7984
8083
  //#endregion
7985
8084
  //#region __marko-run__settings.js
7986
- var getHandler$18 = normalizeHandler(GET$18, "GET");
7987
- var get3_options = mergeOptions(mware3, getHandler$18);
8085
+ var getHandler$19 = normalizeHandler(GET$19, "GET");
8086
+ var get3_options = mergeOptions(mware3, getHandler$19);
7988
8087
  var head3_options = mergeOptions(mware3);
7989
8088
  function get3(context) {
7990
8089
  const __page = (data) => render(context, settings_server_entry_default, {}, data);
7991
- const __getHandler = (data) => call(getHandler$18, __page, context, data);
8090
+ const __getHandler = (data) => call(getHandler$19, __page, context, data);
7992
8091
  return call(mware3, __getHandler, context);
7993
8092
  }
7994
8093
  function head3(context) {
@@ -8879,7 +8978,7 @@ var Query$1 = /* @__PURE__ */ object({
8879
8978
  });
8880
8979
  //#endregion
8881
8980
  //#region __marko-run__api.agent-state.js
8882
- var postHandler$13 = normalizeHandler(Run.POST({ search: (value) => parse(Query$1, value) }, async (ctx) => {
8981
+ var postHandler$14 = normalizeHandler(Run.POST({ search: (value) => parse(Query$1, value) }, async (ctx) => {
8883
8982
  const q = ctx.search;
8884
8983
  if (q.session && q.state) {
8885
8984
  const payload = await ctx.request.json().catch(() => void 0);
@@ -8895,9 +8994,9 @@ var postHandler$13 = normalizeHandler(Run.POST({ search: (value) => parse(Query$
8895
8994
  else setAgentPhase(body.session, body.state, body.reason);
8896
8995
  return Response.json({ ok: true });
8897
8996
  }), "POST");
8898
- var post7_options = mergeOptions(mware11, postHandler$13);
8997
+ var post7_options = mergeOptions(mware11, postHandler$14);
8899
8998
  function post7(context) {
8900
- const __postHandler = (data) => call(postHandler$13, noContent, context, data);
8999
+ const __postHandler = (data) => call(postHandler$14, noContent, context, data);
8901
9000
  return call(mware11, __postHandler, context);
8902
9001
  }
8903
9002
  //#endregion
@@ -8994,13 +9093,13 @@ startScraper();
8994
9093
  startStatusWatch();
8995
9094
  //#endregion
8996
9095
  //#region __marko-run__api.boot.js
8997
- var getHandler$17 = normalizeHandler(Run.GET(() => {
9096
+ var getHandler$18 = normalizeHandler(Run.GET(() => {
8998
9097
  return Response.json({ boot: BOOT_ID }, { headers: { "cache-control": "no-store" } });
8999
9098
  }), "GET");
9000
- var get8_options = mergeOptions(mware11, getHandler$17);
9099
+ var get8_options = mergeOptions(mware11, getHandler$18);
9001
9100
  var head8_options = mergeOptions(mware11);
9002
9101
  function get8(context) {
9003
- const __getHandler = (data) => call(getHandler$17, noContent, context, data);
9102
+ const __getHandler = (data) => call(getHandler$18, noContent, context, data);
9004
9103
  return call(mware11, __getHandler, context);
9005
9104
  }
9006
9105
  function head8(context) {
@@ -9008,11 +9107,11 @@ function head8(context) {
9008
9107
  }
9009
9108
  //#endregion
9010
9109
  //#region __marko-run__api.events.js
9011
- var getHandler$16 = normalizeHandler(Run.GET(() => Response.json({ error: "events bus is websocket — connect with ws(s)://host/api/events" }, { status: 410 })), "GET");
9012
- var get9_options = mergeOptions(mware11, getHandler$16);
9110
+ var getHandler$17 = normalizeHandler(Run.GET(() => Response.json({ error: "events bus is websocket — connect with ws(s)://host/api/events" }, { status: 410 })), "GET");
9111
+ var get9_options = mergeOptions(mware11, getHandler$17);
9013
9112
  var head9_options = mergeOptions(mware11);
9014
9113
  function get9(context) {
9015
- const __getHandler = (data) => call(getHandler$16, noContent, context, data);
9114
+ const __getHandler = (data) => call(getHandler$17, noContent, context, data);
9016
9115
  return call(mware11, __getHandler, context);
9017
9116
  }
9018
9117
  function head9(context) {
@@ -9026,7 +9125,7 @@ var Body$1 = /* @__PURE__ */ object({
9026
9125
  });
9027
9126
  //#endregion
9028
9127
  //#region __marko-run__api.github.hosts.js
9029
- var postHandler$12 = normalizeHandler(Run.POST({ json: Body$1 }, async (ctx) => {
9128
+ var postHandler$13 = normalizeHandler(Run.POST({ json: Body$1 }, async (ctx) => {
9030
9129
  const body = await readBody(ctx);
9031
9130
  if (body.remove) removeHost(body.host);
9032
9131
  else try {
@@ -9036,9 +9135,9 @@ var postHandler$12 = normalizeHandler(Run.POST({ json: Body$1 }, async (ctx) =>
9036
9135
  }
9037
9136
  return Response.json(await getSetup(true));
9038
9137
  }), "POST");
9039
- var post10_options = mergeOptions(mware11, postHandler$12);
9138
+ var post10_options = mergeOptions(mware11, postHandler$13);
9040
9139
  function post10(context) {
9041
- const __postHandler = (data) => call(postHandler$12, noContent, context, data);
9140
+ const __postHandler = (data) => call(postHandler$13, noContent, context, data);
9042
9141
  return call(mware11, __postHandler, context);
9043
9142
  }
9044
9143
  //#endregion
@@ -9047,27 +9146,27 @@ var Pref = /* @__PURE__ */ object({
9047
9146
  key: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ maxLength(120)),
9048
9147
  value: /* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ maxLength(4096)))
9049
9148
  });
9050
- var GET$15 = Run.GET(() => Response.json(allPrefs()));
9149
+ var GET$16 = Run.GET(() => Response.json(allPrefs()));
9051
9150
  //#endregion
9052
9151
  //#region __marko-run__api.prefs.js
9053
- var postHandler$11 = normalizeHandler(Run.POST({ json: Pref }, async (ctx) => {
9152
+ var postHandler$12 = normalizeHandler(Run.POST({ json: Pref }, async (ctx) => {
9054
9153
  const body = await readBody(ctx);
9055
9154
  setPref(body.key, body.value);
9056
9155
  return Response.json({ ok: true });
9057
9156
  }), "POST");
9058
- var getHandler$15 = normalizeHandler(GET$15, "GET");
9059
- var get11_options = mergeOptions(mware11, getHandler$15);
9157
+ var getHandler$16 = normalizeHandler(GET$16, "GET");
9158
+ var get11_options = mergeOptions(mware11, getHandler$16);
9060
9159
  var head11_options = mergeOptions(mware11);
9061
- var post11_options = mergeOptions(mware11, postHandler$11);
9160
+ var post11_options = mergeOptions(mware11, postHandler$12);
9062
9161
  function get11(context) {
9063
- const __getHandler = (data) => call(getHandler$15, noContent, context, data);
9162
+ const __getHandler = (data) => call(getHandler$16, noContent, context, data);
9064
9163
  return call(mware11, __getHandler, context);
9065
9164
  }
9066
9165
  function head11(context) {
9067
9166
  return stripResponseBody(get11(context));
9068
9167
  }
9069
9168
  function post11(context) {
9070
- const __postHandler = (data) => call(postHandler$11, noContent, context, data);
9169
+ const __postHandler = (data) => call(postHandler$12, noContent, context, data);
9071
9170
  return call(mware11, __postHandler, context);
9072
9171
  }
9073
9172
  //#endregion
@@ -9088,14 +9187,14 @@ function delete12(context) {
9088
9187
  }
9089
9188
  //#endregion
9090
9189
  //#region __marko-run__api.progress.js
9091
- var getHandler$14 = normalizeHandler(Run.GET({ search: (value) => ({
9190
+ var getHandler$15 = normalizeHandler(Run.GET({ search: (value) => ({
9092
9191
  since: typeof value.since === "string" ? Number(value.since) : void 0,
9093
9192
  op: typeof value.op === "string" && value.op ? value.op : void 0
9094
9193
  }) }, (ctx) => Response.json(progressSince(ctx.search.since, ctx.search.op))), "GET");
9095
- var get13_options = mergeOptions(mware11, getHandler$14);
9194
+ var get13_options = mergeOptions(mware11, getHandler$15);
9096
9195
  var head13_options = mergeOptions(mware11);
9097
9196
  function get13(context) {
9098
- const __getHandler = (data) => call(getHandler$14, noContent, context, data);
9197
+ const __getHandler = (data) => call(getHandler$15, noContent, context, data);
9099
9198
  return call(mware11, __getHandler, context);
9100
9199
  }
9101
9200
  function head13(context) {
@@ -9103,7 +9202,7 @@ function head13(context) {
9103
9202
  }
9104
9203
  //#endregion
9105
9204
  //#region src/routes/api/push/+handler.ts
9106
- var GET$13 = Run.GET(() => Response.json({ publicKey: pushPublicKey() }));
9205
+ var GET$14 = Run.GET(() => Response.json({ publicKey: pushPublicKey() }));
9107
9206
  var Subscription = /* @__PURE__ */ object({
9108
9207
  endpoint: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ url()),
9109
9208
  keys: /* @__PURE__ */ object({
@@ -9111,7 +9210,7 @@ var Subscription = /* @__PURE__ */ object({
9111
9210
  auth: /* @__PURE__ */ string()
9112
9211
  })
9113
9212
  });
9114
- var POST$10 = Run.POST({ json: Subscription }, async (ctx) => {
9213
+ var POST$11 = Run.POST({ json: Subscription }, async (ctx) => {
9115
9214
  saveSubscription(await readBody(ctx));
9116
9215
  return Response.json({ ok: true });
9117
9216
  });
@@ -9121,21 +9220,21 @@ var deleteHandler$3 = normalizeHandler(Run.DELETE({ search: (value) => ({ endpoi
9121
9220
  deleteSubscription(ctx.search.endpoint);
9122
9221
  return Response.json({ ok: true });
9123
9222
  }), "DELETE");
9124
- var postHandler$10 = normalizeHandler(POST$10, "POST");
9125
- var getHandler$13 = normalizeHandler(GET$13, "GET");
9126
- var get14_options = mergeOptions(mware11, getHandler$13);
9223
+ var postHandler$11 = normalizeHandler(POST$11, "POST");
9224
+ var getHandler$14 = normalizeHandler(GET$14, "GET");
9225
+ var get14_options = mergeOptions(mware11, getHandler$14);
9127
9226
  var head14_options = mergeOptions(mware11);
9128
- var post14_options = mergeOptions(mware11, postHandler$10);
9227
+ var post14_options = mergeOptions(mware11, postHandler$11);
9129
9228
  var delete14_options = mergeOptions(mware11, deleteHandler$3);
9130
9229
  function get14(context) {
9131
- const __getHandler = (data) => call(getHandler$13, noContent, context, data);
9230
+ const __getHandler = (data) => call(getHandler$14, noContent, context, data);
9132
9231
  return call(mware11, __getHandler, context);
9133
9232
  }
9134
9233
  function head14(context) {
9135
9234
  return stripResponseBody(get14(context));
9136
9235
  }
9137
9236
  function post14(context) {
9138
- const __postHandler = (data) => call(postHandler$10, noContent, context, data);
9237
+ const __postHandler = (data) => call(postHandler$11, noContent, context, data);
9139
9238
  return call(mware11, __postHandler, context);
9140
9239
  }
9141
9240
  function delete14(context) {
@@ -9150,7 +9249,7 @@ var Query = /* @__PURE__ */ object({
9150
9249
  });
9151
9250
  //#endregion
9152
9251
  //#region __marko-run__api.repo-pushed.js
9153
- var postHandler$9 = normalizeHandler(Run.POST({ search: (value) => parse(Query, value) }, async (ctx) => {
9252
+ var postHandler$10 = normalizeHandler(Run.POST({ search: (value) => parse(Query, value) }, async (ctx) => {
9154
9253
  if (ctx.search.token !== hookToken()) return Response.json({ error: "bad token" }, { status: 403 });
9155
9254
  notePushActivity();
9156
9255
  const targets = activeRepoTargets().filter((t) => t.fullName === ctx.search.repo);
@@ -9161,9 +9260,9 @@ var postHandler$9 = normalizeHandler(Run.POST({ search: (value) => parse(Query,
9161
9260
  pokeStatusWatch();
9162
9261
  return Response.json({ ok: true });
9163
9262
  }), "POST");
9164
- var post15_options = mergeOptions(mware11, postHandler$9);
9263
+ var post15_options = mergeOptions(mware11, postHandler$10);
9165
9264
  function post15(context) {
9166
- const __postHandler = (data) => call(postHandler$9, noContent, context, data);
9265
+ const __postHandler = (data) => call(postHandler$10, noContent, context, data);
9167
9266
  return call(mware11, __postHandler, context);
9168
9267
  }
9169
9268
  //#endregion
@@ -9262,11 +9361,11 @@ var branches = swr(3e5, async (fullName) => {
9262
9361
  });
9263
9362
  //#endregion
9264
9363
  //#region __marko-run__api.repos.js
9265
- var getHandler$12 = normalizeHandler(Run.GET({ search: (value) => ({ refresh: "refresh" in value }) }, async (ctx) => Response.json(await repoCatalog(ctx.search.refresh))), "GET");
9266
- var get16_options = mergeOptions(mware11, getHandler$12);
9364
+ var getHandler$13 = normalizeHandler(Run.GET({ search: (value) => ({ refresh: "refresh" in value }) }, async (ctx) => Response.json(await repoCatalog(ctx.search.refresh))), "GET");
9365
+ var get16_options = mergeOptions(mware11, getHandler$13);
9267
9366
  var head16_options = mergeOptions(mware11);
9268
9367
  function get16(context) {
9269
- const __getHandler = (data) => call(getHandler$12, noContent, context, data);
9368
+ const __getHandler = (data) => call(getHandler$13, noContent, context, data);
9270
9369
  return call(mware11, __getHandler, context);
9271
9370
  }
9272
9371
  function head16(context) {
@@ -9274,15 +9373,15 @@ function head16(context) {
9274
9373
  }
9275
9374
  //#endregion
9276
9375
  //#region __marko-run__api.repos.branches.js
9277
- var getHandler$11 = normalizeHandler(Run.GET({ search: (value) => {
9376
+ var getHandler$12 = normalizeHandler(Run.GET({ search: (value) => {
9278
9377
  const repo = typeof value.repo === "string" ? value.repo : "";
9279
9378
  if (!/^(?:[\w.-]+\/)?[\w.-]+\/[\w.-]+$/.test(repo)) throw httpError(400, "invalid repo");
9280
9379
  return { repo };
9281
9380
  } }, async (ctx) => Response.json({ branches: await repoBranches(ctx.search.repo) })), "GET");
9282
- var get17_options = mergeOptions(mware11, getHandler$11);
9381
+ var get17_options = mergeOptions(mware11, getHandler$12);
9283
9382
  var head17_options = mergeOptions(mware11);
9284
9383
  function get17(context) {
9285
- const __getHandler = (data) => call(getHandler$11, noContent, context, data);
9384
+ const __getHandler = (data) => call(getHandler$12, noContent, context, data);
9286
9385
  return call(mware11, __getHandler, context);
9287
9386
  }
9288
9387
  function head17(context) {
@@ -9322,7 +9421,7 @@ var Send = /* @__PURE__ */ object({
9322
9421
  });
9323
9422
  //#endregion
9324
9423
  //#region __marko-run__api.sessions.$.send.js
9325
- var postHandler$8 = normalizeHandler(Run.POST({ json: Send }, async (ctx) => {
9424
+ var postHandler$9 = normalizeHandler(Run.POST({ json: Send }, async (ctx) => {
9326
9425
  const body = await readBody(ctx);
9327
9426
  await sendToSession(ctx.params.id, body.text, body.cols && body.rows ? {
9328
9427
  cols: body.cols,
@@ -9330,9 +9429,9 @@ var postHandler$8 = normalizeHandler(Run.POST({ json: Send }, async (ctx) => {
9330
9429
  } : void 0);
9331
9430
  return Response.json({ ok: true });
9332
9431
  }), "POST");
9333
- var post19_options = mergeOptions(mware11, postHandler$8);
9432
+ var post19_options = mergeOptions(mware11, postHandler$9);
9334
9433
  function post19(context) {
9335
- const __postHandler = (data) => call(postHandler$8, noContent, context, data);
9434
+ const __postHandler = (data) => call(postHandler$9, noContent, context, data);
9336
9435
  return call(mware11, __postHandler, context);
9337
9436
  }
9338
9437
  //#endregion
@@ -9350,7 +9449,7 @@ function snapshot() {
9350
9449
  disabledAgents: [...disabledAgents()]
9351
9450
  };
9352
9451
  }
9353
- var GET$10 = Run.GET(() => Response.json(snapshot()));
9452
+ var GET$11 = Run.GET(() => Response.json(snapshot()));
9354
9453
  //#endregion
9355
9454
  //#region __marko-run__api.settings.js
9356
9455
  var putHandler = normalizeHandler(Run.PUT({ json: Patch }, async (ctx) => {
@@ -9362,12 +9461,12 @@ var putHandler = normalizeHandler(Run.PUT({ json: Patch }, async (ctx) => {
9362
9461
  }
9363
9462
  return Response.json(snapshot());
9364
9463
  }), "PUT");
9365
- var getHandler$10 = normalizeHandler(GET$10, "GET");
9366
- var get20_options = mergeOptions(mware11, getHandler$10);
9464
+ var getHandler$11 = normalizeHandler(GET$11, "GET");
9465
+ var get20_options = mergeOptions(mware11, getHandler$11);
9367
9466
  var head20_options = mergeOptions(mware11);
9368
9467
  var put20_options = mergeOptions(mware11, putHandler);
9369
9468
  function get20(context) {
9370
- const __getHandler = (data) => call(getHandler$10, noContent, context, data);
9469
+ const __getHandler = (data) => call(getHandler$11, noContent, context, data);
9371
9470
  return call(mware11, __getHandler, context);
9372
9471
  }
9373
9472
  function head20(context) {
@@ -9379,11 +9478,11 @@ function put20(context) {
9379
9478
  }
9380
9479
  //#endregion
9381
9480
  //#region __marko-run__api.setup.js
9382
- var getHandler$9 = normalizeHandler(Run.GET({ search: (value) => ({ refresh: "refresh" in value }) }, async (ctx) => Response.json(await getSetup(ctx.search.refresh))), "GET");
9383
- var get21_options = mergeOptions(mware11, getHandler$9);
9481
+ var getHandler$10 = normalizeHandler(Run.GET({ search: (value) => ({ refresh: "refresh" in value }) }, async (ctx) => Response.json(await getSetup(ctx.search.refresh))), "GET");
9482
+ var get21_options = mergeOptions(mware11, getHandler$10);
9384
9483
  var head21_options = mergeOptions(mware11);
9385
9484
  function get21(context) {
9386
- const __getHandler = (data) => call(getHandler$9, noContent, context, data);
9485
+ const __getHandler = (data) => call(getHandler$10, noContent, context, data);
9387
9486
  return call(mware11, __getHandler, context);
9388
9487
  }
9389
9488
  function head21(context) {
@@ -9403,39 +9502,171 @@ var Body = /* @__PURE__ */ object({
9403
9502
  });
9404
9503
  //#endregion
9405
9504
  //#region __marko-run__api.setup.$.js
9406
- var postHandler$7 = normalizeHandler(Run.POST({ json: Body }, async (ctx) => {
9505
+ var postHandler$8 = normalizeHandler(Run.POST({ json: Body }, async (ctx) => {
9407
9506
  const body = await readBody(ctx);
9408
9507
  return Response.json(await runSetupAction(ctx.params.id, body.action, { version: body.version }));
9409
9508
  }), "POST");
9410
- var post22_options = mergeOptions(mware11, postHandler$7);
9509
+ var post22_options = mergeOptions(mware11, postHandler$8);
9411
9510
  function post22(context) {
9412
- const __postHandler = (data) => call(postHandler$7, noContent, context, data);
9511
+ const __postHandler = (data) => call(postHandler$8, noContent, context, data);
9413
9512
  return call(mware11, __postHandler, context);
9414
9513
  }
9415
9514
  //#endregion
9416
9515
  //#region __marko-run__api.setup.search.js
9417
- var getHandler$8 = normalizeHandler(Run.GET({ search: (value) => ({ q: typeof value.q === "string" ? value.q : "" }) }, async (ctx) => Response.json(await searchMise(ctx.search.q))), "GET");
9418
- var get23_options = mergeOptions(mware11, getHandler$8);
9516
+ var getHandler$9 = normalizeHandler(Run.GET({ search: (value) => ({ q: typeof value.q === "string" ? value.q : "" }) }, async (ctx) => Response.json(await searchMise(ctx.search.q))), "GET");
9517
+ var get23_options = mergeOptions(mware11, getHandler$9);
9419
9518
  var head23_options = mergeOptions(mware11);
9420
9519
  function get23(context) {
9421
- const __getHandler = (data) => call(getHandler$8, noContent, context, data);
9520
+ const __getHandler = (data) => call(getHandler$9, noContent, context, data);
9422
9521
  return call(mware11, __getHandler, context);
9423
9522
  }
9424
9523
  function head23(context) {
9425
9524
  return stripResponseBody(get23(context));
9426
9525
  }
9427
9526
  //#endregion
9428
- //#region __marko-run__api.status.js
9429
- var getHandler$7 = normalizeHandler(Run.GET({ search: (value) => ({ fresh: "fresh" in value }) }, async (ctx) => Response.json(await (ctx.search.fresh ? statusForAllFresh() : statusForAll()))), "GET");
9430
- var get24_options = mergeOptions(mware11, getHandler$7);
9527
+ //#region src/server/self-update.ts
9528
+ var pkgRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
9529
+ var appVersion = (() => {
9530
+ for (const dir of [pkgRoot, path.resolve(pkgRoot, "..")]) try {
9531
+ return JSON.parse(fs.readFileSync(path.join(dir, "package.json"), "utf8")).version;
9532
+ } catch {}
9533
+ return "0.0.0";
9534
+ })();
9535
+ /** The CLI file that started this process (`work start`), if that is how
9536
+ * we were started. */
9537
+ function cliPath() {
9538
+ const arg = process.argv[1] || "";
9539
+ return /(^|[\\/])work\.mjs$/.test(arg) && fs.existsSync(arg) ? arg : null;
9540
+ }
9541
+ var REGISTRY = "https://registry.npmjs.org/@dylanpiercey/work/latest";
9542
+ var latest = swr(6e5, async (_key) => {
9543
+ try {
9544
+ const res = await fetch(REGISTRY, { signal: AbortSignal.timeout(6e3) });
9545
+ if (!res.ok) return void 0;
9546
+ const data = await res.json();
9547
+ return typeof data.version === "string" ? data.version : void 0;
9548
+ } catch {
9549
+ return;
9550
+ }
9551
+ });
9552
+ var updating = false;
9553
+ async function selfInfo(refresh = false) {
9554
+ return {
9555
+ version: appVersion,
9556
+ latest: await latest("latest", refresh),
9557
+ install: cliPath() ? "npm" : "source",
9558
+ updating
9559
+ };
9560
+ }
9561
+ /** Kick off `work update --yes` out of process and return; the CLI's
9562
+ * `setup` step restarts the service, which ends this process. On systemd
9563
+ * the child must leave the service's cgroup (a restart kills the cgroup),
9564
+ * so it runs as a transient unit; elsewhere a detached process is enough. */
9565
+ function startSelfUpdate() {
9566
+ const cli = cliPath();
9567
+ if (!cli) throw httpError(409, "This install is a source checkout — update it with git.");
9568
+ if (updating) return {
9569
+ version: appVersion,
9570
+ install: "npm",
9571
+ updating
9572
+ };
9573
+ fs.mkdirSync(config.dataDir, { recursive: true });
9574
+ const logFile = path.join(config.dataDir, "update.log");
9575
+ const out = fs.openSync(logFile, "w");
9576
+ const argv = [
9577
+ process.execPath,
9578
+ cli,
9579
+ "update",
9580
+ "--yes"
9581
+ ];
9582
+ const env = {
9583
+ ...process.env,
9584
+ WORK_SELF_UPDATE: "1"
9585
+ };
9586
+ let child;
9587
+ if (process.platform === "linux" && hasSystemdRun()) child = spawn("systemd-run", [
9588
+ "--user",
9589
+ "--collect",
9590
+ "--unit",
9591
+ `work-update-${Date.now()}`,
9592
+ `--setenv=PATH=${process.env.PATH || ""}`,
9593
+ `--setenv=HOME=${process.env.HOME || ""}`,
9594
+ ...Object.entries(env).filter(([k]) => /^(WORK_|https?_proxy|HTTPS?_PROXY|NO_PROXY|no_proxy|NODE_)/.test(k)).map(([k, v]) => `--setenv=${k}=${v}`),
9595
+ ...argv
9596
+ ], {
9597
+ stdio: [
9598
+ "ignore",
9599
+ out,
9600
+ out
9601
+ ],
9602
+ detached: true
9603
+ });
9604
+ else child = spawn(argv[0], argv.slice(1), {
9605
+ stdio: [
9606
+ "ignore",
9607
+ out,
9608
+ out
9609
+ ],
9610
+ detached: true,
9611
+ env
9612
+ });
9613
+ child.on("error", () => {
9614
+ updating = false;
9615
+ });
9616
+ child.unref();
9617
+ fs.closeSync(out);
9618
+ updating = true;
9619
+ return {
9620
+ version: appVersion,
9621
+ install: "npm",
9622
+ updating
9623
+ };
9624
+ }
9625
+ function hasSystemdRun() {
9626
+ return (process.env.PATH || "").split(":").some((dir) => {
9627
+ try {
9628
+ fs.accessSync(path.join(dir, "systemd-run"), fs.constants.X_OK);
9629
+ return true;
9630
+ } catch {
9631
+ return false;
9632
+ }
9633
+ });
9634
+ }
9635
+ //#endregion
9636
+ //#region src/routes/api/setup/self/+handler.ts
9637
+ /** work's own version, the newest published one, and the self-update
9638
+ * trigger (POST). `?refresh` re-asks the registry. */
9639
+ var GET$8 = Run.GET({ search: (value) => ({ refresh: "refresh" in value }) }, async (ctx) => Response.json(await selfInfo(ctx.search.refresh)));
9640
+ //#endregion
9641
+ //#region __marko-run__api.setup.self.js
9642
+ var postHandler$7 = normalizeHandler(Run.POST(async () => Response.json(startSelfUpdate())), "POST");
9643
+ var getHandler$8 = normalizeHandler(GET$8, "GET");
9644
+ var get24_options = mergeOptions(mware11, getHandler$8);
9431
9645
  var head24_options = mergeOptions(mware11);
9646
+ var post24_options = mergeOptions(mware11, postHandler$7);
9432
9647
  function get24(context) {
9433
- const __getHandler = (data) => call(getHandler$7, noContent, context, data);
9648
+ const __getHandler = (data) => call(getHandler$8, noContent, context, data);
9434
9649
  return call(mware11, __getHandler, context);
9435
9650
  }
9436
9651
  function head24(context) {
9437
9652
  return stripResponseBody(get24(context));
9438
9653
  }
9654
+ function post24(context) {
9655
+ const __postHandler = (data) => call(postHandler$7, noContent, context, data);
9656
+ return call(mware11, __postHandler, context);
9657
+ }
9658
+ //#endregion
9659
+ //#region __marko-run__api.status.js
9660
+ var getHandler$7 = normalizeHandler(Run.GET({ search: (value) => ({ fresh: "fresh" in value }) }, async (ctx) => Response.json(await (ctx.search.fresh ? statusForAllFresh() : statusForAll()))), "GET");
9661
+ var get25_options = mergeOptions(mware11, getHandler$7);
9662
+ var head25_options = mergeOptions(mware11);
9663
+ function get25(context) {
9664
+ const __getHandler = (data) => call(getHandler$7, noContent, context, data);
9665
+ return call(mware11, __getHandler, context);
9666
+ }
9667
+ function head25(context) {
9668
+ return stripResponseBody(get25(context));
9669
+ }
9439
9670
  //#endregion
9440
9671
  //#region src/server/usage/index.ts
9441
9672
  var TTL_MS = 6e4;
@@ -9487,14 +9718,14 @@ var usage = async (refresh = false) => {
9487
9718
  //#endregion
9488
9719
  //#region __marko-run__api.usage.js
9489
9720
  var getHandler$6 = normalizeHandler(Run.GET({ search: (value) => ({ refresh: "refresh" in value }) }, async (ctx) => Response.json(await usage(ctx.search.refresh))), "GET");
9490
- var get25_options = mergeOptions(mware11, getHandler$6);
9491
- var head25_options = mergeOptions(mware11);
9492
- function get25(context) {
9721
+ var get26_options = mergeOptions(mware11, getHandler$6);
9722
+ var head26_options = mergeOptions(mware11);
9723
+ function get26(context) {
9493
9724
  const __getHandler = (data) => call(getHandler$6, noContent, context, data);
9494
9725
  return call(mware11, __getHandler, context);
9495
9726
  }
9496
- function head25(context) {
9497
- return stripResponseBody(get25(context));
9727
+ function head26(context) {
9728
+ return stripResponseBody(get26(context));
9498
9729
  }
9499
9730
  //#endregion
9500
9731
  //#region src/routes/api/workspaces/+handler.ts
@@ -9516,17 +9747,17 @@ var postHandler$6 = normalizeHandler(Run.POST({ json: CreateWorkspace }, async (
9516
9747
  return Response.json(await withProgressOp(body.opId ?? "", () => createWorkspace(body.name, body.repos)));
9517
9748
  }), "POST");
9518
9749
  var getHandler$5 = normalizeHandler(GET$5, "GET");
9519
- var get26_options = mergeOptions(mware11, getHandler$5);
9520
- var head26_options = mergeOptions(mware11);
9521
- var post26_options = mergeOptions(mware11, postHandler$6);
9522
- function get26(context) {
9750
+ var get27_options = mergeOptions(mware11, getHandler$5);
9751
+ var head27_options = mergeOptions(mware11);
9752
+ var post27_options = mergeOptions(mware11, postHandler$6);
9753
+ function get27(context) {
9523
9754
  const __getHandler = (data) => call(getHandler$5, noContent, context, data);
9524
9755
  return call(mware11, __getHandler, context);
9525
9756
  }
9526
- function head26(context) {
9527
- return stripResponseBody(get26(context));
9757
+ function head27(context) {
9758
+ return stripResponseBody(get27(context));
9528
9759
  }
9529
- function post26(context) {
9760
+ function post27(context) {
9530
9761
  const __postHandler = (data) => call(postHandler$6, noContent, context, data);
9531
9762
  return call(mware11, __postHandler, context);
9532
9763
  }
@@ -9549,11 +9780,11 @@ var postHandler$5 = normalizeHandler(Run.POST({ json: WorkspaceAction }, async (
9549
9780
  });
9550
9781
  return Response.json({ ok: true });
9551
9782
  }), "POST");
9552
- var post27_options = mergeOptions(mware11, mware33, postHandler$5);
9553
- function post27(context) {
9783
+ var post28_options = mergeOptions(mware11, mware34, postHandler$5);
9784
+ function post28(context) {
9554
9785
  const __postHandler = (data) => call(postHandler$5, noContent, context, data);
9555
- const __mware33 = (data) => call(mware33, __postHandler, context, data);
9556
- return call(mware11, __mware33, context);
9786
+ const __mware34 = (data) => call(mware34, __postHandler, context, data);
9787
+ return call(mware11, __mware34, context);
9557
9788
  }
9558
9789
  //#endregion
9559
9790
  //#region src/routes/api/workspaces/$id/assets/+handler.ts
@@ -9572,11 +9803,11 @@ var postHandler$4 = normalizeHandler(Run.POST({ search: (value) => ({ name: type
9572
9803
  fs.writeFileSync(path.join(ws.path, relative), data);
9573
9804
  return Response.json({ path: relative });
9574
9805
  }), "POST");
9575
- var post28_options = mergeOptions(mware11, mware33, postHandler$4);
9576
- function post28(context) {
9806
+ var post29_options = mergeOptions(mware11, mware34, postHandler$4);
9807
+ function post29(context) {
9577
9808
  const __postHandler = (data) => call(postHandler$4, noContent, context, data);
9578
- const __mware33 = (data) => call(mware33, __postHandler, context, data);
9579
- return call(mware11, __mware33, context);
9809
+ const __mware34 = (data) => call(mware34, __postHandler, context, data);
9810
+ return call(mware11, __mware34, context);
9580
9811
  }
9581
9812
  //#endregion
9582
9813
  //#region src/server/review.ts
@@ -10075,28 +10306,28 @@ var getHandler$4 = normalizeHandler(Run.GET({ search: (value) => ({
10075
10306
  pr: ctx.search.pr,
10076
10307
  refresh: ctx.search.refresh
10077
10308
  }))), "GET");
10078
- var get29_options = mergeOptions(mware11, mware33, getHandler$4);
10079
- var head29_options = mergeOptions(mware11, mware33);
10080
- function get29(context) {
10309
+ var get30_options = mergeOptions(mware11, mware34, getHandler$4);
10310
+ var head30_options = mergeOptions(mware11, mware34);
10311
+ function get30(context) {
10081
10312
  const __getHandler = (data) => call(getHandler$4, noContent, context, data);
10082
- const __mware33 = (data) => call(mware33, __getHandler, context, data);
10083
- return call(mware11, __mware33, context);
10313
+ const __mware34 = (data) => call(mware34, __getHandler, context, data);
10314
+ return call(mware11, __mware34, context);
10084
10315
  }
10085
- function head29(context) {
10086
- return stripResponseBody(get29(context));
10316
+ function head30(context) {
10317
+ return stripResponseBody(get30(context));
10087
10318
  }
10088
10319
  //#endregion
10089
10320
  //#region __marko-run__api.workspaces.$.procs.js
10090
10321
  var getHandler$3 = normalizeHandler(Run.GET(async (ctx) => Response.json(await workspaceProcs(ctx.data.workspace.path))), "GET");
10091
- var get30_options = mergeOptions(mware11, mware33, getHandler$3);
10092
- var head30_options = mergeOptions(mware11, mware33);
10093
- function get30(context) {
10322
+ var get31_options = mergeOptions(mware11, mware34, getHandler$3);
10323
+ var head31_options = mergeOptions(mware11, mware34);
10324
+ function get31(context) {
10094
10325
  const __getHandler = (data) => call(getHandler$3, noContent, context, data);
10095
- const __mware33 = (data) => call(mware33, __getHandler, context, data);
10096
- return call(mware11, __mware33, context);
10326
+ const __mware34 = (data) => call(mware34, __getHandler, context, data);
10327
+ return call(mware11, __mware34, context);
10097
10328
  }
10098
- function head30(context) {
10099
- return stripResponseBody(get30(context));
10329
+ function head31(context) {
10330
+ return stripResponseBody(get31(context));
10100
10331
  }
10101
10332
  //#endregion
10102
10333
  //#region src/routes/api/workspaces/$id/prs/+handler.ts
@@ -10143,21 +10374,21 @@ async function listPrs(ws, refresh) {
10143
10374
  //#region __marko-run__api.workspaces.$.prs.js
10144
10375
  var postHandler$3 = normalizeHandler(POST$3, "POST");
10145
10376
  var getHandler$2 = normalizeHandler(GET$2, "GET");
10146
- var get31_options = mergeOptions(mware11, mware33, getHandler$2);
10147
- var head31_options = mergeOptions(mware11, mware33);
10148
- var post31_options = mergeOptions(mware11, mware33, postHandler$3);
10149
- function get31(context) {
10377
+ var get32_options = mergeOptions(mware11, mware34, getHandler$2);
10378
+ var head32_options = mergeOptions(mware11, mware34);
10379
+ var post32_options = mergeOptions(mware11, mware34, postHandler$3);
10380
+ function get32(context) {
10150
10381
  const __getHandler = (data) => call(getHandler$2, noContent, context, data);
10151
- const __mware33 = (data) => call(mware33, __getHandler, context, data);
10152
- return call(mware11, __mware33, context);
10382
+ const __mware34 = (data) => call(mware34, __getHandler, context, data);
10383
+ return call(mware11, __mware34, context);
10153
10384
  }
10154
- function head31(context) {
10155
- return stripResponseBody(get31(context));
10385
+ function head32(context) {
10386
+ return stripResponseBody(get32(context));
10156
10387
  }
10157
- function post31(context) {
10388
+ function post32(context) {
10158
10389
  const __postHandler = (data) => call(postHandler$3, noContent, context, data);
10159
- const __mware33 = (data) => call(mware33, __postHandler, context, data);
10160
- return call(mware11, __mware33, context);
10390
+ const __mware34 = (data) => call(mware34, __postHandler, context, data);
10391
+ return call(mware11, __mware34, context);
10161
10392
  }
10162
10393
  //#endregion
10163
10394
  //#region src/routes/api/workspaces/$id/repos/+handler.ts
@@ -10171,11 +10402,11 @@ var postHandler$2 = normalizeHandler(Run.POST({ json: AddRepo }, async (ctx) =>
10171
10402
  const body = await readBody(ctx);
10172
10403
  return Response.json(await withProgressOp(ctx.params.id, () => addRepo$1(ctx.params.id, body.fullName, body.baseBranch)));
10173
10404
  }), "POST");
10174
- var post32_options = mergeOptions(mware11, mware33, postHandler$2);
10175
- function post32(context) {
10405
+ var post33_options = mergeOptions(mware11, mware34, postHandler$2);
10406
+ function post33(context) {
10176
10407
  const __postHandler = (data) => call(postHandler$2, noContent, context, data);
10177
- const __mware33 = (data) => call(mware33, __postHandler, context, data);
10178
- return call(mware11, __mware33, context);
10408
+ const __mware34 = (data) => call(mware34, __postHandler, context, data);
10409
+ return call(mware11, __mware34, context);
10179
10410
  }
10180
10411
  //#endregion
10181
10412
  //#region __marko-run__api.workspaces.$.repos.$.js
@@ -10183,11 +10414,11 @@ var deleteHandler$1 = normalizeHandler(Run.DELETE(async (ctx) => {
10183
10414
  await withProgressOp(ctx.params.id, () => removeRepo(ctx.params.id, ctx.params.worktree));
10184
10415
  return Response.json({ ok: true });
10185
10416
  }), "DELETE");
10186
- var delete33_options = mergeOptions(mware11, mware33, deleteHandler$1);
10187
- function delete33(context) {
10417
+ var delete34_options = mergeOptions(mware11, mware34, deleteHandler$1);
10418
+ function delete34(context) {
10188
10419
  const __deleteHandler = (data) => call(deleteHandler$1, noContent, context, data);
10189
- const __mware33 = (data) => call(mware33, __deleteHandler, context, data);
10190
- return call(mware11, __mware33, context);
10420
+ const __mware34 = (data) => call(mware34, __deleteHandler, context, data);
10421
+ return call(mware11, __mware34, context);
10191
10422
  }
10192
10423
  //#endregion
10193
10424
  //#region src/routes/api/workspaces/$id/review/+handler.ts
@@ -10233,21 +10464,21 @@ var postHandler$1 = normalizeHandler(Run.POST({ json: ReviewAction }, async (ctx
10233
10464
  return Response.json({ ok: true });
10234
10465
  }), "POST");
10235
10466
  var getHandler$1 = normalizeHandler(GET$1, "GET");
10236
- var get34_options = mergeOptions(mware11, mware33, getHandler$1);
10237
- var head34_options = mergeOptions(mware11, mware33);
10238
- var post34_options = mergeOptions(mware11, mware33, postHandler$1);
10239
- function get34(context) {
10467
+ var get35_options = mergeOptions(mware11, mware34, getHandler$1);
10468
+ var head35_options = mergeOptions(mware11, mware34);
10469
+ var post35_options = mergeOptions(mware11, mware34, postHandler$1);
10470
+ function get35(context) {
10240
10471
  const __getHandler = (data) => call(getHandler$1, noContent, context, data);
10241
- const __mware33 = (data) => call(mware33, __getHandler, context, data);
10242
- return call(mware11, __mware33, context);
10472
+ const __mware34 = (data) => call(mware34, __getHandler, context, data);
10473
+ return call(mware11, __mware34, context);
10243
10474
  }
10244
- function head34(context) {
10245
- return stripResponseBody(get34(context));
10475
+ function head35(context) {
10476
+ return stripResponseBody(get35(context));
10246
10477
  }
10247
- function post34(context) {
10478
+ function post35(context) {
10248
10479
  const __postHandler = (data) => call(postHandler$1, noContent, context, data);
10249
- const __mware33 = (data) => call(mware33, __postHandler, context, data);
10250
- return call(mware11, __mware33, context);
10480
+ const __mware34 = (data) => call(mware34, __postHandler, context, data);
10481
+ return call(mware11, __mware34, context);
10251
10482
  }
10252
10483
  //#endregion
10253
10484
  //#region __marko-run__api.workspaces.$.review.$.js
@@ -10259,11 +10490,11 @@ var deleteHandler = normalizeHandler(Run.DELETE((ctx) => {
10259
10490
  deleteComment(commentId);
10260
10491
  return Response.json({ ok: true });
10261
10492
  }), "DELETE");
10262
- var delete35_options = mergeOptions(mware11, mware33, deleteHandler);
10263
- function delete35(context) {
10493
+ var delete36_options = mergeOptions(mware11, mware34, deleteHandler);
10494
+ function delete36(context) {
10264
10495
  const __deleteHandler = (data) => call(deleteHandler, noContent, context, data);
10265
- const __mware33 = (data) => call(mware33, __deleteHandler, context, data);
10266
- return call(mware11, __mware33, context);
10496
+ const __mware34 = (data) => call(mware34, __deleteHandler, context, data);
10497
+ return call(mware11, __mware34, context);
10267
10498
  }
10268
10499
  //#endregion
10269
10500
  //#region src/routes/api/workspaces/$id/sessions/+handler.ts
@@ -10282,21 +10513,21 @@ var postHandler = normalizeHandler(Run.POST({ json: CreateSession }, async (ctx)
10282
10513
  return Response.json(createSession(ctx.params.id, body.agent || preferredAgent()));
10283
10514
  }), "POST");
10284
10515
  var getHandler = normalizeHandler(GET, "GET");
10285
- var get36_options = mergeOptions(mware11, mware33, getHandler);
10286
- var head36_options = mergeOptions(mware11, mware33);
10287
- var post36_options = mergeOptions(mware11, mware33, postHandler);
10288
- function get36(context) {
10516
+ var get37_options = mergeOptions(mware11, mware34, getHandler);
10517
+ var head37_options = mergeOptions(mware11, mware34);
10518
+ var post37_options = mergeOptions(mware11, mware34, postHandler);
10519
+ function get37(context) {
10289
10520
  const __getHandler = (data) => call(getHandler, noContent, context, data);
10290
- const __mware33 = (data) => call(mware33, __getHandler, context, data);
10291
- return call(mware11, __mware33, context);
10521
+ const __mware34 = (data) => call(mware34, __getHandler, context, data);
10522
+ return call(mware11, __mware34, context);
10292
10523
  }
10293
- function head36(context) {
10294
- return stripResponseBody(get36(context));
10524
+ function head37(context) {
10525
+ return stripResponseBody(get37(context));
10295
10526
  }
10296
- function post36(context) {
10527
+ function post37(context) {
10297
10528
  const __postHandler = (data) => call(postHandler, noContent, context, data);
10298
- const __mware33 = (data) => call(mware33, __postHandler, context, data);
10299
- return call(mware11, __mware33, context);
10529
+ const __mware34 = (data) => call(mware34, __postHandler, context, data);
10530
+ return call(mware11, __mware34, context);
10300
10531
  }
10301
10532
  //#endregion
10302
10533
  //#region __marko-run__router.js
@@ -10435,24 +10666,24 @@ function match_internal(method, pathname) {
10435
10666
  meta: {}
10436
10667
  };
10437
10668
  case "status": return {
10438
- handler: get24,
10669
+ handler: get25,
10439
10670
  path: "/api/status",
10440
10671
  params: {},
10441
- options: get24_options,
10672
+ options: get25_options,
10442
10673
  meta: {}
10443
10674
  };
10444
10675
  case "usage": return {
10445
- handler: get25,
10676
+ handler: get26,
10446
10677
  path: "/api/usage",
10447
10678
  params: {},
10448
- options: get25_options,
10679
+ options: get26_options,
10449
10680
  meta: {}
10450
10681
  };
10451
10682
  case "workspaces": return {
10452
- handler: get26,
10683
+ handler: get27,
10453
10684
  path: "/api/workspaces",
10454
10685
  params: {},
10455
- options: get26_options,
10686
+ options: get27_options,
10456
10687
  meta: {}
10457
10688
  };
10458
10689
  }
@@ -10474,14 +10705,21 @@ function match_internal(method, pathname) {
10474
10705
  case "setup":
10475
10706
  {
10476
10707
  const i3 = pathname.indexOf("/", 11) + 1;
10477
- if (!i3 || i3 === len) {
10478
- if (pathname.slice(11, i3 ? -1 : len) === "search") return {
10708
+ if (!i3 || i3 === len) switch (pathname.slice(11, i3 ? -1 : len)) {
10709
+ case "search": return {
10479
10710
  handler: get23,
10480
10711
  path: "/api/setup/search",
10481
10712
  params: {},
10482
10713
  options: get23_options,
10483
10714
  meta: {}
10484
10715
  };
10716
+ case "self": return {
10717
+ handler: get24,
10718
+ path: "/api/setup/self",
10719
+ params: {},
10720
+ options: get24_options,
10721
+ meta: {}
10722
+ };
10485
10723
  }
10486
10724
  }
10487
10725
  break;
@@ -10493,38 +10731,38 @@ function match_internal(method, pathname) {
10493
10731
  const i4 = pathname.indexOf("/", i3) + 1;
10494
10732
  if (!i4 || i4 === len) switch (pathname.slice(i3, i4 ? -1 : len)) {
10495
10733
  case "diff": return {
10496
- handler: get29,
10734
+ handler: get30,
10497
10735
  path: "/api/workspaces/$id/diff",
10498
10736
  params: { id: s3 },
10499
- options: get29_options,
10737
+ options: get30_options,
10500
10738
  meta: {}
10501
10739
  };
10502
10740
  case "procs": return {
10503
- handler: get30,
10741
+ handler: get31,
10504
10742
  path: "/api/workspaces/$id/procs",
10505
10743
  params: { id: s3 },
10506
- options: get30_options,
10744
+ options: get31_options,
10507
10745
  meta: {}
10508
10746
  };
10509
10747
  case "prs": return {
10510
- handler: get31,
10748
+ handler: get32,
10511
10749
  path: "/api/workspaces/$id/prs",
10512
10750
  params: { id: s3 },
10513
- options: get31_options,
10751
+ options: get32_options,
10514
10752
  meta: {}
10515
10753
  };
10516
10754
  case "review": return {
10517
- handler: get34,
10755
+ handler: get35,
10518
10756
  path: "/api/workspaces/$id/review",
10519
10757
  params: { id: s3 },
10520
- options: get34_options,
10758
+ options: get35_options,
10521
10759
  meta: {}
10522
10760
  };
10523
10761
  case "sessions": return {
10524
- handler: get36,
10762
+ handler: get37,
10525
10763
  path: "/api/workspaces/$id/sessions",
10526
10764
  params: { id: s3 },
10527
- options: get36_options,
10765
+ options: get37_options,
10528
10766
  meta: {}
10529
10767
  };
10530
10768
  }
@@ -10659,24 +10897,24 @@ function match_internal(method, pathname) {
10659
10897
  meta: {}
10660
10898
  };
10661
10899
  case "status": return {
10662
- handler: head24,
10900
+ handler: head25,
10663
10901
  path: "/api/status",
10664
10902
  params: {},
10665
- options: head24_options,
10903
+ options: head25_options,
10666
10904
  meta: {}
10667
10905
  };
10668
10906
  case "usage": return {
10669
- handler: head25,
10907
+ handler: head26,
10670
10908
  path: "/api/usage",
10671
10909
  params: {},
10672
- options: head25_options,
10910
+ options: head26_options,
10673
10911
  meta: {}
10674
10912
  };
10675
10913
  case "workspaces": return {
10676
- handler: head26,
10914
+ handler: head27,
10677
10915
  path: "/api/workspaces",
10678
10916
  params: {},
10679
- options: head26_options,
10917
+ options: head27_options,
10680
10918
  meta: {}
10681
10919
  };
10682
10920
  }
@@ -10698,14 +10936,21 @@ function match_internal(method, pathname) {
10698
10936
  case "setup":
10699
10937
  {
10700
10938
  const i3 = pathname.indexOf("/", 11) + 1;
10701
- if (!i3 || i3 === len) {
10702
- if (pathname.slice(11, i3 ? -1 : len) === "search") return {
10939
+ if (!i3 || i3 === len) switch (pathname.slice(11, i3 ? -1 : len)) {
10940
+ case "search": return {
10703
10941
  handler: head23,
10704
10942
  path: "/api/setup/search",
10705
10943
  params: {},
10706
10944
  options: head23_options,
10707
10945
  meta: {}
10708
10946
  };
10947
+ case "self": return {
10948
+ handler: head24,
10949
+ path: "/api/setup/self",
10950
+ params: {},
10951
+ options: head24_options,
10952
+ meta: {}
10953
+ };
10709
10954
  }
10710
10955
  }
10711
10956
  break;
@@ -10717,38 +10962,38 @@ function match_internal(method, pathname) {
10717
10962
  const i4 = pathname.indexOf("/", i3) + 1;
10718
10963
  if (!i4 || i4 === len) switch (pathname.slice(i3, i4 ? -1 : len)) {
10719
10964
  case "diff": return {
10720
- handler: head29,
10965
+ handler: head30,
10721
10966
  path: "/api/workspaces/$id/diff",
10722
10967
  params: { id: s3 },
10723
- options: head29_options,
10968
+ options: head30_options,
10724
10969
  meta: {}
10725
10970
  };
10726
10971
  case "procs": return {
10727
- handler: head30,
10972
+ handler: head31,
10728
10973
  path: "/api/workspaces/$id/procs",
10729
10974
  params: { id: s3 },
10730
- options: head30_options,
10975
+ options: head31_options,
10731
10976
  meta: {}
10732
10977
  };
10733
10978
  case "prs": return {
10734
- handler: head31,
10979
+ handler: head32,
10735
10980
  path: "/api/workspaces/$id/prs",
10736
10981
  params: { id: s3 },
10737
- options: head31_options,
10982
+ options: head32_options,
10738
10983
  meta: {}
10739
10984
  };
10740
10985
  case "review": return {
10741
- handler: head34,
10986
+ handler: head35,
10742
10987
  path: "/api/workspaces/$id/review",
10743
10988
  params: { id: s3 },
10744
- options: head34_options,
10989
+ options: head35_options,
10745
10990
  meta: {}
10746
10991
  };
10747
10992
  case "sessions": return {
10748
- handler: head36,
10993
+ handler: head37,
10749
10994
  path: "/api/workspaces/$id/sessions",
10750
10995
  params: { id: s3 },
10751
- options: head36_options,
10996
+ options: head37_options,
10752
10997
  meta: {}
10753
10998
  };
10754
10999
  }
@@ -10797,10 +11042,10 @@ function match_internal(method, pathname) {
10797
11042
  meta: {}
10798
11043
  };
10799
11044
  case "workspaces": return {
10800
- handler: post26,
11045
+ handler: post27,
10801
11046
  path: "/api/workspaces",
10802
11047
  params: {},
10803
- options: post26_options,
11048
+ options: post27_options,
10804
11049
  meta: {}
10805
11050
  };
10806
11051
  }
@@ -10844,6 +11089,13 @@ function match_internal(method, pathname) {
10844
11089
  const i3 = pathname.indexOf("/", 11) + 1;
10845
11090
  if (!i3 || i3 === len) {
10846
11091
  const s3 = decodeURIComponent(pathname.slice(11, i3 ? -1 : len));
11092
+ if (s3 === "self") return {
11093
+ handler: post24,
11094
+ path: "/api/setup/self",
11095
+ params: {},
11096
+ options: post24_options,
11097
+ meta: {}
11098
+ };
10847
11099
  if (s3) return {
10848
11100
  handler: post22,
10849
11101
  path: "/api/setup/$id",
@@ -10859,10 +11111,10 @@ function match_internal(method, pathname) {
10859
11111
  if (!i3 || i3 === len) {
10860
11112
  const s3 = decodeURIComponent(pathname.slice(16, i3 ? -1 : len));
10861
11113
  if (s3) return {
10862
- handler: post27,
11114
+ handler: post28,
10863
11115
  path: "/api/workspaces/$id",
10864
11116
  params: { id: s3 },
10865
- options: post27_options,
11117
+ options: post28_options,
10866
11118
  meta: {}
10867
11119
  };
10868
11120
  } else {
@@ -10871,38 +11123,38 @@ function match_internal(method, pathname) {
10871
11123
  const i4 = pathname.indexOf("/", i3) + 1;
10872
11124
  if (!i4 || i4 === len) switch (pathname.slice(i3, i4 ? -1 : len)) {
10873
11125
  case "assets": return {
10874
- handler: post28,
11126
+ handler: post29,
10875
11127
  path: "/api/workspaces/$id/assets",
10876
11128
  params: { id: s3 },
10877
- options: post28_options,
11129
+ options: post29_options,
10878
11130
  meta: {}
10879
11131
  };
10880
11132
  case "prs": return {
10881
- handler: post31,
11133
+ handler: post32,
10882
11134
  path: "/api/workspaces/$id/prs",
10883
11135
  params: { id: s3 },
10884
- options: post31_options,
11136
+ options: post32_options,
10885
11137
  meta: {}
10886
11138
  };
10887
11139
  case "repos": return {
10888
- handler: post32,
11140
+ handler: post33,
10889
11141
  path: "/api/workspaces/$id/repos",
10890
11142
  params: { id: s3 },
10891
- options: post32_options,
11143
+ options: post33_options,
10892
11144
  meta: {}
10893
11145
  };
10894
11146
  case "review": return {
10895
- handler: post34,
11147
+ handler: post35,
10896
11148
  path: "/api/workspaces/$id/review",
10897
11149
  params: { id: s3 },
10898
- options: post34_options,
11150
+ options: post35_options,
10899
11151
  meta: {}
10900
11152
  };
10901
11153
  case "sessions": return {
10902
- handler: post36,
11154
+ handler: post37,
10903
11155
  path: "/api/workspaces/$id/sessions",
10904
11156
  params: { id: s3 },
10905
- options: post36_options,
11157
+ options: post37_options,
10906
11158
  meta: {}
10907
11159
  };
10908
11160
  }
@@ -10993,13 +11245,13 @@ function match_internal(method, pathname) {
10993
11245
  if (!i5 || i5 === len) {
10994
11246
  const s5 = decodeURIComponent(pathname.slice(i4, i5 ? -1 : len));
10995
11247
  if (s5) return {
10996
- handler: delete33,
11248
+ handler: delete34,
10997
11249
  path: "/api/workspaces/$id/repos/$worktree",
10998
11250
  params: {
10999
11251
  id: s3,
11000
11252
  worktree: s5
11001
11253
  },
11002
- options: delete33_options,
11254
+ options: delete34_options,
11003
11255
  meta: {}
11004
11256
  };
11005
11257
  }
@@ -11010,13 +11262,13 @@ function match_internal(method, pathname) {
11010
11262
  if (!i5 || i5 === len) {
11011
11263
  const s5 = decodeURIComponent(pathname.slice(i4, i5 ? -1 : len));
11012
11264
  if (s5) return {
11013
- handler: delete35,
11265
+ handler: delete36,
11014
11266
  path: "/api/workspaces/$id/review/$commentId",
11015
11267
  params: {
11016
11268
  id: s3,
11017
11269
  commentId: s5
11018
11270
  },
11019
- options: delete35_options,
11271
+ options: delete36_options,
11020
11272
  meta: {}
11021
11273
  };
11022
11274
  }
@@ -15047,4 +15299,4 @@ server.listen(port, () => {
15047
15299
  //#endregion
15048
15300
  export {};
15049
15301
 
15050
- ;var __MARKO_MANIFEST__={"LH2lXAg":{"block":[2,"stylesheet#/assets/app-page-D4vPVvwL.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-D4vPVvwL.css\"",">"],"defer":[2,"/assets/w-DZ3Y7jRu.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-DZ3Y7jRu.js\"","></script>",2,"modulepreload#/assets/_D9-Z5alI.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_D9-Z5alI.js\"",">"]},"ZLT8joi":{"block":[2,"stylesheet#/assets/app-page-D4vPVvwL.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-D4vPVvwL.css\"",">"],"defer":[2,"/assets/new-DZ3Y7jRu.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-DZ3Y7jRu.js\"","></script>",2,"modulepreload#/assets/_D9-Z5alI.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_D9-Z5alI.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/app-page-D4vPVvwL.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-D4vPVvwL.css\"",">"],"defer":[2,"/assets/settings-DZ3Y7jRu.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-DZ3Y7jRu.js\"","></script>",2,"modulepreload#/assets/_D9-Z5alI.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_D9-Z5alI.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/app-page-D4vPVvwL.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-D4vPVvwL.css\"",">"],"defer":[2,"/assets/w._-DZ3Y7jRu.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-DZ3Y7jRu.js\"","></script>",2,"modulepreload#/assets/_D9-Z5alI.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_D9-Z5alI.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/app-page-D4vPVvwL.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-D4vPVvwL.css\"",">"],"defer":[2,"/assets/w._-B_8o0W7U.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-B_8o0W7U.js\"","></script>",2,"modulepreload#/assets/_D9-Z5alI.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_D9-Z5alI.js\"",">"]}};
15302
+ ;var __MARKO_MANIFEST__={"LH2lXAg":{"block":[2,"stylesheet#/assets/app-page-DnlfALI5.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DnlfALI5.css\"",">"],"defer":[2,"/assets/w-BJV4mfBg.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-BJV4mfBg.js\"","></script>",2,"modulepreload#/assets/_BY3mVX6d.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BY3mVX6d.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/app-page-DnlfALI5.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DnlfALI5.css\"",">"],"defer":[2,"/assets/w._-BJV4mfBg.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-BJV4mfBg.js\"","></script>",2,"modulepreload#/assets/_BY3mVX6d.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BY3mVX6d.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/app-page-DnlfALI5.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DnlfALI5.css\"",">"],"defer":[2,"/assets/settings-BJV4mfBg.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-BJV4mfBg.js\"","></script>",2,"modulepreload#/assets/_BY3mVX6d.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BY3mVX6d.js\"",">"]},"ZLT8joi":{"block":[2,"stylesheet#/assets/app-page-DnlfALI5.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DnlfALI5.css\"",">"],"defer":[2,"/assets/new-BJV4mfBg.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-BJV4mfBg.js\"","></script>",2,"modulepreload#/assets/_BY3mVX6d.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BY3mVX6d.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/app-page-DnlfALI5.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DnlfALI5.css\"",">"],"defer":[2,"/assets/w._-B6v2qlds.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-B6v2qlds.js\"","></script>",2,"modulepreload#/assets/_BY3mVX6d.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BY3mVX6d.js\"",">"]}};