@dylanpiercey/work 0.0.19 → 0.0.21

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 (155) hide show
  1. package/dist/index.mjs +619 -404
  2. package/dist/public/assets/{_DqBrnmsB.js → _-3M9WuU4.js} +2 -2
  3. package/dist/public/assets/{_DqBrnmsB.js.map → _-3M9WuU4.js.map} +1 -1
  4. package/dist/public/assets/{_DFsQS3GZ2.js → _3ZKZeEN32.js} +2 -2
  5. package/dist/public/assets/{_DFsQS3GZ2.js.map → _3ZKZeEN32.js.map} +1 -1
  6. package/dist/public/assets/{_wNWFJz0D.js → _753RhcUs.js} +2 -2
  7. package/dist/public/assets/{_wNWFJz0D.js.map → _753RhcUs.js.map} +1 -1
  8. package/dist/public/assets/{_Cu_m_g8O.js → _B1Ress7e.js} +2 -2
  9. package/dist/public/assets/{_Cu_m_g8O.js.map → _B1Ress7e.js.map} +1 -1
  10. package/dist/public/assets/{_CfBJpFPc.js → _B49wgrKW.js} +2 -2
  11. package/dist/public/assets/{_CfBJpFPc.js.map → _B49wgrKW.js.map} +1 -1
  12. package/dist/public/assets/{_CNaDFvDU.js → _B7ZTox7L.js} +2 -2
  13. package/dist/public/assets/{_CNaDFvDU.js.map → _B7ZTox7L.js.map} +1 -1
  14. package/dist/public/assets/{_DLs0iAHA.js → _BBCthCRB.js} +2 -2
  15. package/dist/public/assets/{_DLs0iAHA.js.map → _BBCthCRB.js.map} +1 -1
  16. package/dist/public/assets/{_BVwiDo7u.js → _BFnmKuGb.js} +2 -2
  17. package/dist/public/assets/{_BVwiDo7u.js.map → _BFnmKuGb.js.map} +1 -1
  18. package/dist/public/assets/{_DBTfl1BL2.js → _BG21uqHk2.js} +2 -2
  19. package/dist/public/assets/{_DBTfl1BL2.js.map → _BG21uqHk2.js.map} +1 -1
  20. package/dist/public/assets/{_Do4wHDxf.js → _BGO4yXnZ.js} +2 -2
  21. package/dist/public/assets/{_Do4wHDxf.js.map → _BGO4yXnZ.js.map} +1 -1
  22. package/dist/public/assets/{_BYAflDia.js → _BRfYhRDN.js} +2 -2
  23. package/dist/public/assets/{_BYAflDia.js.map → _BRfYhRDN.js.map} +1 -1
  24. package/dist/public/assets/{_6M2i0Bc_.js → _BVimx11r.js} +2 -2
  25. package/dist/public/assets/{_6M2i0Bc_.js.map → _BVimx11r.js.map} +1 -1
  26. package/dist/public/assets/{_GgYN_7WI2.js → _BWIzVLMa2.js} +2 -2
  27. package/dist/public/assets/{_GgYN_7WI2.js.map → _BWIzVLMa2.js.map} +1 -1
  28. package/dist/public/assets/{_DqpA4LzC.js → _BchSFDSU.js} +2 -2
  29. package/dist/public/assets/{_DqpA4LzC.js.map → _BchSFDSU.js.map} +1 -1
  30. package/dist/public/assets/{_wNGiI6rA2.js → _BeCpXzaO2.js} +2 -2
  31. package/dist/public/assets/{_wNGiI6rA2.js.map → _BeCpXzaO2.js.map} +1 -1
  32. package/dist/public/assets/{_DJdBYBDh.js → _BfCF5T_K.js} +2 -2
  33. package/dist/public/assets/{_DJdBYBDh.js.map → _BfCF5T_K.js.map} +1 -1
  34. package/dist/public/assets/{_CRgAhh4i.js → _Bo2t_uNU.js} +2 -2
  35. package/dist/public/assets/{_CRgAhh4i.js.map → _Bo2t_uNU.js.map} +1 -1
  36. package/dist/public/assets/{_CYVe1usf.js → _BooCIZFD.js} +2 -2
  37. package/dist/public/assets/{_CYVe1usf.js.map → _BooCIZFD.js.map} +1 -1
  38. package/dist/public/assets/{_BmqYEcuy.js → _BpB-O0HN.js} +2 -2
  39. package/dist/public/assets/{_BmqYEcuy.js.map → _BpB-O0HN.js.map} +1 -1
  40. package/dist/public/assets/{_Dwzheq3I.js → _BpIotmis.js} +2 -2
  41. package/dist/public/assets/{_Dwzheq3I.js.map → _BpIotmis.js.map} +1 -1
  42. package/dist/public/assets/{_sOYm8G3s.js → _BpxV-2f3.js} +2 -2
  43. package/dist/public/assets/{_sOYm8G3s.js.map → _BpxV-2f3.js.map} +1 -1
  44. package/dist/public/assets/{_B3l2kM6k.js → _Bv61tUGo.js} +2 -2
  45. package/dist/public/assets/{_B3l2kM6k.js.map → _Bv61tUGo.js.map} +1 -1
  46. package/dist/public/assets/{_DMVFmUAA2.js → _BwnkAzDN2.js} +2 -2
  47. package/dist/public/assets/{_DMVFmUAA2.js.map → _BwnkAzDN2.js.map} +1 -1
  48. package/dist/public/assets/{_CStO_rmM.js → _ByaF5Ym8.js} +2 -2
  49. package/dist/public/assets/{_CStO_rmM.js.map → _ByaF5Ym8.js.map} +1 -1
  50. package/dist/public/assets/{_DsMwRxjY.js → _C3OrD7LT.js} +2 -2
  51. package/dist/public/assets/{_DsMwRxjY.js.map → _C3OrD7LT.js.map} +1 -1
  52. package/dist/public/assets/{_BhUEmgtZ.js → _C480-4NE.js} +2 -2
  53. package/dist/public/assets/{_BhUEmgtZ.js.map → _C480-4NE.js.map} +1 -1
  54. package/dist/public/assets/{_Dr79BSWo.js → _C4JQ0avI.js} +2 -2
  55. package/dist/public/assets/{_Dr79BSWo.js.map → _C4JQ0avI.js.map} +1 -1
  56. package/dist/public/assets/{_DQCPwKUU2.js → _C5tw5jaH2.js} +2 -2
  57. package/dist/public/assets/{_DQCPwKUU2.js.map → _C5tw5jaH2.js.map} +1 -1
  58. package/dist/public/assets/{_BamL2t-o.js → _CFwjuNga.js} +2 -2
  59. package/dist/public/assets/{_BamL2t-o.js.map → _CFwjuNga.js.map} +1 -1
  60. package/dist/public/assets/{_0lnz5iGN2.js → _CG65evuJ2.js} +2 -2
  61. package/dist/public/assets/{_0lnz5iGN2.js.map → _CG65evuJ2.js.map} +1 -1
  62. package/dist/public/assets/{_BQQycE1A2.js → _COiINYul2.js} +2 -2
  63. package/dist/public/assets/{_BQQycE1A2.js.map → _COiINYul2.js.map} +1 -1
  64. package/dist/public/assets/{_Dp6szfhx.js → _CRMMWY-q.js} +2 -2
  65. package/dist/public/assets/{_Dp6szfhx.js.map → _CRMMWY-q.js.map} +1 -1
  66. package/dist/public/assets/{_C8Az9O0j2.js → _CXLqhKMK2.js} +2 -2
  67. package/dist/public/assets/{_C8Az9O0j2.js.map → _CXLqhKMK2.js.map} +1 -1
  68. package/dist/public/assets/{_D3nRbiPU.js → _CZtA_-Ie.js} +2 -2
  69. package/dist/public/assets/{_D3nRbiPU.js.map → _CZtA_-Ie.js.map} +1 -1
  70. package/dist/public/assets/{_WcLljSaq2.js → _Cbg9-SI_2.js} +2 -2
  71. package/dist/public/assets/{_WcLljSaq2.js.map → _Cbg9-SI_2.js.map} +1 -1
  72. package/dist/public/assets/{_DnP0uNvj.js → _CeybDOH3.js} +2 -2
  73. package/dist/public/assets/{_DnP0uNvj.js.map → _CeybDOH3.js.map} +1 -1
  74. package/dist/public/assets/{_BrJll1tj.js → _CgX5-PN8.js} +2 -2
  75. package/dist/public/assets/{_BrJll1tj.js.map → _CgX5-PN8.js.map} +1 -1
  76. package/dist/public/assets/{_CJyXt7A3.js → _ChXwBYfg.js} +2 -2
  77. package/dist/public/assets/{_CJyXt7A3.js.map → _ChXwBYfg.js.map} +1 -1
  78. package/dist/public/assets/{_Dd4cfSol.js → _CjAjLYnS.js} +2 -2
  79. package/dist/public/assets/{_Dd4cfSol.js.map → _CjAjLYnS.js.map} +1 -1
  80. package/dist/public/assets/{_CndbeqUD.js → _CjNZdOEs.js} +2 -2
  81. package/dist/public/assets/{_CndbeqUD.js.map → _CjNZdOEs.js.map} +1 -1
  82. package/dist/public/assets/{_DVe8KgY8.js → _CkT411UL.js} +2 -2
  83. package/dist/public/assets/{_DVe8KgY8.js.map → _CkT411UL.js.map} +1 -1
  84. package/dist/public/assets/{_n9Sk67sI2.js → _Cm-mKxlV2.js} +2 -2
  85. package/dist/public/assets/{_n9Sk67sI2.js.map → _Cm-mKxlV2.js.map} +1 -1
  86. package/dist/public/assets/{_Bd1yjUI3.js → _Cww6wLe3.js} +2 -2
  87. package/dist/public/assets/{_Bd1yjUI3.js.map → _Cww6wLe3.js.map} +1 -1
  88. package/dist/public/assets/{_D41yN8oQ2.js → _D0-uwMfH2.js} +2 -2
  89. package/dist/public/assets/{_D41yN8oQ2.js.map → _D0-uwMfH2.js.map} +1 -1
  90. package/dist/public/assets/{_CZYUzjzN.js → _D32jCBoK.js} +2 -2
  91. package/dist/public/assets/{_CZYUzjzN.js.map → _D32jCBoK.js.map} +1 -1
  92. package/dist/public/assets/{_ChPSCKci2.js → _D8RqMrGW2.js} +2 -2
  93. package/dist/public/assets/{_ChPSCKci2.js.map → _D8RqMrGW2.js.map} +1 -1
  94. package/dist/public/assets/{_HhBHIbjV.js → _DDpdWlxA.js} +2 -2
  95. package/dist/public/assets/{_HhBHIbjV.js.map → _DDpdWlxA.js.map} +1 -1
  96. package/dist/public/assets/{_CitDIRwA.js → _DGZCHdAh.js} +2 -2
  97. package/dist/public/assets/{_CitDIRwA.js.map → _DGZCHdAh.js.map} +1 -1
  98. package/dist/public/assets/{_xi-5EjUf2.js → _DInIL5iq2.js} +2 -2
  99. package/dist/public/assets/{_xi-5EjUf2.js.map → _DInIL5iq2.js.map} +1 -1
  100. package/dist/public/assets/{_DSjDjvKM.js → _DK5es8xg.js} +2 -2
  101. package/dist/public/assets/{_DSjDjvKM.js.map → _DK5es8xg.js.map} +1 -1
  102. package/dist/public/assets/{_DUvRmPhU.js → _DLg1-IRM.js} +2 -2
  103. package/dist/public/assets/{_DUvRmPhU.js.map → _DLg1-IRM.js.map} +1 -1
  104. package/dist/public/assets/{_hs8fkq392.js → _DT71qSJE2.js} +2 -2
  105. package/dist/public/assets/{_hs8fkq392.js.map → _DT71qSJE2.js.map} +1 -1
  106. package/dist/public/assets/{_C3ZNQOP62.js → _DVIw_RgW2.js} +2 -2
  107. package/dist/public/assets/{_C3ZNQOP62.js.map → _DVIw_RgW2.js.map} +1 -1
  108. package/dist/public/assets/{_DSsAmdzA2.js → _D_8pG7bS2.js} +2 -2
  109. package/dist/public/assets/{_DSsAmdzA2.js.map → _D_8pG7bS2.js.map} +1 -1
  110. package/dist/public/assets/{_Cr1i_bCo2.js → _DkpMMWAt2.js} +2 -2
  111. package/dist/public/assets/{_Cr1i_bCo2.js.map → _DkpMMWAt2.js.map} +1 -1
  112. package/dist/public/assets/{_CBghy_0n2.js → _DncMx76o2.js} +2 -2
  113. package/dist/public/assets/{_CBghy_0n2.js.map → _DncMx76o2.js.map} +1 -1
  114. package/dist/public/assets/{_BI7Ou__Z2.js → _Do3Q5gXZ2.js} +2 -2
  115. package/dist/public/assets/{_BI7Ou__Z2.js.map → _Do3Q5gXZ2.js.map} +1 -1
  116. package/dist/public/assets/{_CN-7gae5.js → _DpLjBHyL.js} +2 -2
  117. package/dist/public/assets/{_CN-7gae5.js.map → _DpLjBHyL.js.map} +1 -1
  118. package/dist/public/assets/{_OuBFV33P.js → _DqqLoHco.js} +2 -2
  119. package/dist/public/assets/{_OuBFV33P.js.map → _DqqLoHco.js.map} +1 -1
  120. package/dist/public/assets/{_D3XTD4Fq.js → _DtmS6252.js} +2 -2
  121. package/dist/public/assets/{_D3XTD4Fq.js.map → _DtmS6252.js.map} +1 -1
  122. package/dist/public/assets/{_BYdjeT-F2.js → _E5dbeZEm2.js} +2 -2
  123. package/dist/public/assets/{_BYdjeT-F2.js.map → _E5dbeZEm2.js.map} +1 -1
  124. package/dist/public/assets/{_DSiMLM3O.js → _H-G61tx0.js} +2 -2
  125. package/dist/public/assets/{_DSiMLM3O.js.map → _H-G61tx0.js.map} +1 -1
  126. package/dist/public/assets/{_DtzFboki2.js → _JmyDHQ3S2.js} +2 -2
  127. package/dist/public/assets/{_DtzFboki2.js.map → _JmyDHQ3S2.js.map} +1 -1
  128. package/dist/public/assets/{_vvD7gyMI.js → _O3QIPxoe.js} +2 -2
  129. package/dist/public/assets/{_vvD7gyMI.js.map → _O3QIPxoe.js.map} +1 -1
  130. package/dist/public/assets/{_CEP7ZGfc.js → _RgPZr-u4.js} +2 -2
  131. package/dist/public/assets/{_CEP7ZGfc.js.map → _RgPZr-u4.js.map} +1 -1
  132. package/dist/public/assets/{_MmznFepY.js → _ZSGrflxk.js} +2 -2
  133. package/dist/public/assets/{_MmznFepY.js.map → _ZSGrflxk.js.map} +1 -1
  134. package/dist/public/assets/{_pygOP_de.js → _aXYWp2ZC.js} +2 -2
  135. package/dist/public/assets/{_pygOP_de.js.map → _aXYWp2ZC.js.map} +1 -1
  136. package/dist/public/assets/{_6fGd-E4-.js → _anllqmOe.js} +2 -2
  137. package/dist/public/assets/{_6fGd-E4-.js.map → _anllqmOe.js.map} +1 -1
  138. package/dist/public/assets/{_E5IsfPKg.js → _cZMSm0LN.js} +2 -2
  139. package/dist/public/assets/{_E5IsfPKg.js.map → _cZMSm0LN.js.map} +1 -1
  140. package/dist/public/assets/{_CKPcZv9h2.js → _dkeDDehz2.js} +2 -2
  141. package/dist/public/assets/{_CKPcZv9h2.js.map → _dkeDDehz2.js.map} +1 -1
  142. package/dist/public/assets/{_BpBuZDjU.js → _g7Q1ADd0.js} +2 -2
  143. package/dist/public/assets/{_BpBuZDjU.js.map → _g7Q1ADd0.js.map} +1 -1
  144. package/dist/public/assets/{_tIqPcFUr.js → _m1KNq0Gx.js} +2 -2
  145. package/dist/public/assets/{_tIqPcFUr.js.map → _m1KNq0Gx.js.map} +1 -1
  146. package/dist/public/assets/{_D5PcDKAq.js → _q9TSOuKE.js} +2 -2
  147. package/dist/public/assets/{_D5PcDKAq.js.map → _q9TSOuKE.js.map} +1 -1
  148. package/dist/public/assets/{_CsE5tdQX2.js → _xuVEda462.js} +2 -2
  149. package/dist/public/assets/{_CsE5tdQX2.js.map → _xuVEda462.js.map} +1 -1
  150. package/dist/public/assets/index-BxVK_c-q.css +1 -0
  151. package/dist/public/assets/{index-D78h5g92.js → index-DJu3fA99.js} +63 -63
  152. package/dist/public/assets/index-DJu3fA99.js.map +1 -0
  153. package/package.json +1 -1
  154. package/dist/public/assets/index-D218Ug0a.css +0 -1
  155. package/dist/public/assets/index-D78h5g92.js.map +0 -1
package/dist/index.mjs CHANGED
@@ -3358,8 +3358,80 @@ function coalesce(fn) {
3358
3358
  };
3359
3359
  }
3360
3360
  //#endregion
3361
+ //#region src/tags/toast.marko
3362
+ var toast_default = _template("p", (input) => {
3363
+ const $scope0_reason = _scope_reason(), $sg__input_title = _serialize_guard($scope0_reason, 4), $sg__input_title__OR__input_content__OR__input_action__OR__input_onDismiss = _serialize_guard($scope0_reason, 2), $sg__input_content = _serialize_guard($scope0_reason, 5), $sg__input_action = _serialize_guard($scope0_reason, 6), $sg__input_action__OR__input_onDismiss = _serialize_guard($scope0_reason, 1), $sg__input_onDismiss = _serialize_guard($scope0_reason, 7), $si__input_title = _serialize_if($scope0_reason, 4), $si__input_content = _serialize_if($scope0_reason, 5), $si__input_action__OR__input_onDismiss = _serialize_if($scope0_reason, 1), $si__input_action_content = _serialize_if($scope0_reason, 8);
3364
+ const $scope0_id = _scope_id();
3365
+ const $input_action_content__closures = /* @__PURE__ */ new Set();
3366
+ const kind = input.kind || "error";
3367
+ const placement = input.placement || "float";
3368
+ _html(`<div${_attr_class([
3369
+ "toast",
3370
+ `toast-${kind}`,
3371
+ `toast-${placement}`
3372
+ ])} role=${kind === "error" ? "alert" : "status"}><div class=toast-body>`);
3373
+ _if(() => {
3374
+ if (input.title) {
3375
+ const $scope1_id = _scope_id();
3376
+ _html(`<strong class=toast-title>${_escape(input.title)}${_el_resume($scope1_id, "a", $sg__input_title)}</strong>`);
3377
+ $si__input_title && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
3378
+ return 0;
3379
+ }
3380
+ }, $scope0_id, "b", $sg__input_title, $sg__input_title, $sg__input_title__OR__input_content__OR__input_action__OR__input_onDismiss, 0, 1);
3381
+ _if(() => {
3382
+ if (input.content) {
3383
+ const $scope2_id = _scope_id();
3384
+ _html("<div class=toast-content>");
3385
+ _dynamic_tag($scope2_id, "a", input.content, {}, 0, 0, $sg__input_content);
3386
+ _html("</div>");
3387
+ $si__input_content && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
3388
+ return 0;
3389
+ }
3390
+ }, $scope0_id, "c", $sg__input_content, $sg__input_content, $sg__input_title__OR__input_content__OR__input_action__OR__input_onDismiss, 0, 1);
3391
+ _html("</div>");
3392
+ _if(() => {
3393
+ if (input.action || input.onDismiss) {
3394
+ const $scope3_id = _scope_id();
3395
+ _html("<div class=toast-actions>");
3396
+ _if(() => {
3397
+ if (input.action) {
3398
+ const $scope4_id = _scope_id();
3399
+ _dynamic_tag($scope4_id, "a", input.action.content, {}, 0, 0, _serialize_guard($scope0_reason, 8));
3400
+ $si__input_action__OR__input_onDismiss && _subscribe($si__input_action_content && $input_action_content__closures, writeScope($scope4_id, { _: _scope_with_id($scope3_id) }));
3401
+ return 0;
3402
+ }
3403
+ }, $scope3_id, "a", $sg__input_action, $sg__input_action, $sg__input_action__OR__input_onDismiss);
3404
+ _if(() => {
3405
+ if (input.onDismiss) {
3406
+ const $scope5_id = _scope_id();
3407
+ _html(`<button class="icon-btn toast-dismiss" title=Dismiss>×</button>${_el_resume($scope5_id, "a")}`);
3408
+ _script($scope5_id, "p0");
3409
+ writeScope($scope5_id, { _: _scope_with_id($scope3_id) });
3410
+ return 0;
3411
+ }
3412
+ }, $scope3_id, "b", $sg__input_onDismiss, $sg__input_onDismiss, $sg__input_action__OR__input_onDismiss, 0, 1);
3413
+ _html("</div>");
3414
+ writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
3415
+ return 0;
3416
+ }
3417
+ }, $scope0_id, "d", $sg__input_action__OR__input_onDismiss, $sg__input_action__OR__input_onDismiss, $sg__input_title__OR__input_content__OR__input_action__OR__input_onDismiss, 0, 1);
3418
+ _html(`</div>${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 0))}`);
3419
+ _script($scope0_id, "p1");
3420
+ writeScope($scope0_id, {
3421
+ i: $si__input_title && input.title,
3422
+ j: $si__input_content && input.content,
3423
+ k: $si__input_action__OR__input_onDismiss && input.action,
3424
+ l: input.onDismiss,
3425
+ n: $si__input_action__OR__input_onDismiss && input.action?.content,
3426
+ o: _serialize_if($scope0_reason, 3) && kind,
3427
+ p: placement,
3428
+ w: $si__input_action_content && $input_action_content__closures
3429
+ });
3430
+ _resume_branch($scope0_id);
3431
+ });
3432
+ //#endregion
3361
3433
  //#region src/tags/icons/icon-base.marko
3362
- var icon_base_default = _template("t", (input) => {
3434
+ var icon_base_default = _template("u", (input) => {
3363
3435
  const $scope0_reason = _scope_reason();
3364
3436
  const $scope0_id = _scope_id();
3365
3437
  const size = input.size ?? 15;
@@ -3368,7 +3440,7 @@ var icon_base_default = _template("t", (input) => {
3368
3440
  });
3369
3441
  //#endregion
3370
3442
  //#region src/tags/icons/icon-diff.marko
3371
- var icon_diff_default = _template("w", (input) => {
3443
+ var icon_diff_default = _template("x", (input) => {
3372
3444
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
3373
3445
  const $scope0_id = _scope_id();
3374
3446
  _set_serialize_reason({
@@ -3385,7 +3457,7 @@ var icon_diff_default = _template("w", (input) => {
3385
3457
  });
3386
3458
  //#endregion
3387
3459
  //#region src/tags/icons/icon-manage.marko
3388
- var icon_manage_default = _template("D", (input) => {
3460
+ var icon_manage_default = _template("E", (input) => {
3389
3461
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
3390
3462
  const $scope0_id = _scope_id();
3391
3463
  _set_serialize_reason({
@@ -3402,7 +3474,7 @@ var icon_manage_default = _template("D", (input) => {
3402
3474
  });
3403
3475
  //#endregion
3404
3476
  //#region src/tags/icons/icon-plus.marko
3405
- var icon_plus_default = _template("E", (input) => {
3477
+ var icon_plus_default = _template("F", (input) => {
3406
3478
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
3407
3479
  const $scope0_id = _scope_id();
3408
3480
  _set_serialize_reason({
@@ -3426,7 +3498,7 @@ var PATHS = {
3426
3498
  copilot: "M19.245 5.364c1.322 1.36 1.877 3.216 2.11 5.817.622 0 1.2.135 1.592.654l.73.964c.21.278.323.61.323.955v2.62c0 .339-.173.669-.453.868C20.239 19.602 16.157 21.5 12 21.5c-4.6 0-9.205-2.583-11.547-4.258-.28-.2-.452-.53-.453-.868v-2.62c0-.345.113-.679.321-.956l.73-.963c.392-.517.974-.654 1.593-.654l.029-.297c.25-2.446.81-4.213 2.082-5.52 2.461-2.54 5.71-2.851 7.146-2.864h.198c1.436.013 4.685.323 7.146 2.864zm-7.244 4.328c-.284 0-.613.016-.962.05-.123.447-.305.85-.57 1.108-1.05 1.023-2.316 1.18-2.994 1.18-.638 0-1.306-.13-1.851-.464-.516.165-1.012.403-1.044.996a65.882 65.882 0 00-.063 2.884l-.002.48c-.002.563-.005 1.126-.013 1.69.002.326.204.63.51.765 2.482 1.102 4.83 1.657 6.99 1.657 2.156 0 4.504-.555 6.985-1.657a.854.854 0 00.51-.766c.03-1.682.006-3.372-.076-5.053-.031-.596-.528-.83-1.046-.996-.546.333-1.212.464-1.85.464-.677 0-1.942-.157-2.993-1.18-.266-.258-.447-.661-.57-1.108-.32-.032-.64-.049-.96-.05zm-2.525 4.013c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zm5 0c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zM7.635 5.087c-1.05.102-1.935.438-2.385.906-.975 1.037-.765 3.668-.21 4.224.405.394 1.17.657 1.995.657h.09c.649-.013 1.785-.176 2.73-1.11.435-.41.705-1.433.675-2.47-.03-.834-.27-1.52-.63-1.813-.39-.336-1.275-.482-2.265-.394zm6.465.394c-.36.292-.6.98-.63 1.813-.03 1.037.24 2.06.675 2.47.968.957 2.136 1.104 2.776 1.11h.044c.825 0 1.59-.263 1.995-.657.555-.556.765-3.187-.21-4.224-.45-.468-1.335-.804-2.385-.906-.99-.088-1.875.058-2.265.394zM12 7.615c-.24 0-.525.015-.84.044.03.16.045.336.06.526l-.001.159a2.94 2.94 0 01-.014.25c.225-.022.425-.027.612-.028h.366c.187 0 .387.006.612.028-.015-.146-.015-.277-.015-.409.015-.19.03-.365.06-.526a9.29 9.29 0 00-.84-.044z",
3427
3499
  cursor: "M22.106 5.68L12.5.135a.998.998 0 00-.998 0L1.893 5.68a.84.84 0 00-.419.726v11.186c0 .3.16.577.42.727l9.607 5.547a.999.999 0 00.998 0l9.608-5.547a.84.84 0 00.42-.727V6.407a.84.84 0 00-.42-.726zm-.603 1.176L12.228 22.92c-.063.108-.228.064-.228-.061V12.34a.59.59 0 00-.295-.51l-9.11-5.26c-.107-.062-.063-.228.062-.228h18.55c.264 0 .428.286.296.514z"
3428
3500
  };
3429
- var icon_agent_default = _template("r", (input) => {
3501
+ var icon_agent_default = _template("s", (input) => {
3430
3502
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0), $si__input_size__OR__input_class = _serialize_if($scope0_reason, 0), $si__input_size__OR__input_agent__OR__input_class = _serialize_if($scope0_reason, 1), $sg__input_agent = _serialize_guard($scope0_reason, 2);
3431
3503
  const $scope0_id = _scope_id();
3432
3504
  const size = input.size ?? 15;
@@ -3752,7 +3824,7 @@ var palette_default = _template("j", (input) => {
3752
3824
  });
3753
3825
  //#endregion
3754
3826
  //#region src/tags/icons/icon-refresh.marko
3755
- var icon_refresh_default = _template("F", (input) => {
3827
+ var icon_refresh_default = _template("G", (input) => {
3756
3828
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
3757
3829
  const $scope0_id = _scope_id();
3758
3830
  _set_serialize_reason({
@@ -4131,34 +4203,34 @@ var manage_workspace_default = _template("g", (input) => {
4131
4203
  onClose: _resume(function() {
4132
4204
  input.onClose?.();
4133
4205
  }, "g10", $scope0_id),
4134
- footer: attrTag({ content: _content_resume("g26", () => {
4206
+ footer: attrTag({ content: _content_resume("g27", () => {
4135
4207
  _scope_reason();
4136
4208
  const $scope1_id = _scope_id();
4137
4209
  _html(`<button class="btn primary"${_attr("disabled", !!pendingAction)}>Done</button>${_el_resume($scope1_id, "a")}`);
4138
4210
  _if(() => {
4139
4211
  if (pendingAction && actionStep) {
4140
- const $scope11_id = _scope_id();
4141
- _html(`<span class="act-step dim"><span class=spin></span><!>${_escape(actionStep)}${_el_resume($scope11_id, "a")}</span>`);
4142
- _subscribe($actionStep__closures, writeScope($scope11_id, { Cas: 1 }));
4212
+ const $scope12_id = _scope_id();
4213
+ _html(`<span class="act-step dim"><span class=spin></span><!>${_escape(actionStep)}${_el_resume($scope12_id, "a")}</span>`);
4214
+ _subscribe($actionStep__closures, writeScope($scope12_id, { Cas: 1 }));
4143
4215
  return 0;
4144
4216
  }
4145
4217
  }, $scope1_id, "b", 1, 1, 1, 0, 1);
4146
4218
  _html("<div class=spacer></div>");
4147
4219
  _if(() => {
4148
4220
  if (ws.status === "active") {
4149
- const $scope8_id = _scope_id();
4150
- _html(`<button class=btn${_attr("disabled", !!pendingAction)}>${pendingAction === "archive" ? "Archiving…" : "Archive"}${_el_resume($scope8_id, "b")}</button>${_el_resume($scope8_id, "a")}`);
4151
- _script($scope8_id, "g14");
4152
- _subscribe($pendingAction__closures, writeScope($scope8_id, {
4221
+ const $scope9_id = _scope_id();
4222
+ _html(`<button class=btn${_attr("disabled", !!pendingAction)}>${pendingAction === "archive" ? "Archiving…" : "Archive"}${_el_resume($scope9_id, "b")}</button>${_el_resume($scope9_id, "a")}`);
4223
+ _script($scope9_id, "g15");
4224
+ _subscribe($pendingAction__closures, writeScope($scope9_id, {
4153
4225
  _: _scope_with_id($scope1_id),
4154
4226
  Cap: 1
4155
4227
  }));
4156
4228
  return 0;
4157
4229
  } else {
4158
- const $scope9_id = _scope_id();
4159
- _html(`<button class=btn${_attr("disabled", !!pendingAction)}>Restore</button>${_el_resume($scope9_id, "a")}`);
4160
- _script($scope9_id, "g15");
4161
- _subscribe($pendingAction__closures, writeScope($scope9_id, {
4230
+ const $scope10_id = _scope_id();
4231
+ _html(`<button class=btn${_attr("disabled", !!pendingAction)}>Restore</button>${_el_resume($scope10_id, "a")}`);
4232
+ _script($scope10_id, "g16");
4233
+ _subscribe($pendingAction__closures, writeScope($scope10_id, {
4162
4234
  _: _scope_with_id($scope1_id),
4163
4235
  Cap: 2
4164
4236
  }));
@@ -4166,20 +4238,34 @@ var manage_workspace_default = _template("g", (input) => {
4166
4238
  }
4167
4239
  }, $scope1_id, "c", $sg__input_workspace, $sg__input_workspace, 1, 0, 1);
4168
4240
  _html(`<button class="btn danger"${_attr("disabled", !!pendingAction)}>${pendingAction === "delete" ? "Deleting…" : "Delete"}${_el_resume($scope1_id, "e")}</button>${_el_resume($scope1_id, "d")}`);
4169
- _script($scope1_id, "g16");
4241
+ _script($scope1_id, "g17");
4170
4242
  _subscribe($si__input_workspace && $ws_status__closures, _subscribe($actionStep__closures, _subscribe($confirmingDelete__closures, _subscribe($pendingAction__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })))));
4171
4243
  _resume_branch($scope1_id);
4172
4244
  }, $scope0_id) }),
4173
- content: _content("g27", () => {
4245
+ content: _content("g28", () => {
4174
4246
  _scope_reason();
4175
4247
  const $scope2_id = _scope_id();
4176
4248
  _html(`<header class=manage-head><div><h2>${_escape(ws.name)}${_el_resume($scope2_id, "a", $sg__input_workspace)}</h2><p class="dim mono">${_escape(ws.display_path || ws.path)}${_el_resume($scope2_id, "b", $sg__input_workspace)}</p></div></header>`);
4177
4249
  _if(() => {
4178
4250
  if (error) {
4179
4251
  const $scope7_id = _scope_id();
4180
- _html(`<p class=toast-error>${_escape(error)}${_el_resume($scope7_id, "a")} <button>×</button>${_el_resume($scope7_id, "b")}</p>`);
4181
- _script($scope7_id, "g17");
4182
- _subscribe($error__closures, writeScope($scope7_id, { Cao: 1 }));
4252
+ toast_default({
4253
+ placement: "inline",
4254
+ onDismiss: _resume(function() {
4255
+ error = null;
4256
+ }, "g11", $scope7_id),
4257
+ content: _content_resume("g18", () => {
4258
+ _scope_reason();
4259
+ const $scope8_id = _scope_id();
4260
+ _html(`${_escape(error)}${_el_resume($scope8_id, "a")}`);
4261
+ _subscribe($error__closures, writeScope($scope8_id, {
4262
+ _: _scope_with_id($scope7_id),
4263
+ Cao: 1
4264
+ }));
4265
+ _resume_branch($scope8_id);
4266
+ }, $scope7_id)
4267
+ });
4268
+ writeScope($scope7_id, {});
4183
4269
  return 0;
4184
4270
  }
4185
4271
  }, $scope2_id, "c", 1, 1, 1, 0, 1);
@@ -4190,10 +4276,10 @@ var manage_workspace_default = _template("g", (input) => {
4190
4276
  _html("<section><div class=repos-head><h3>Pull requests</h3>");
4191
4277
  _if(() => {
4192
4278
  if (finishedCount) {
4193
- const $scope12_id = _scope_id();
4194
- _html(`<button class=btn title="Confirm every merged/closed PR is done — remove them from this list">Clear <!>${_escape(finishedCount)}${_el_resume($scope12_id, "b")} finished</button>${_el_resume($scope12_id, "a")}`);
4195
- _script($scope12_id, "g18");
4196
- writeScope($scope12_id, {});
4279
+ const $scope13_id = _scope_id();
4280
+ _html(`<button class=btn title="Confirm every merged/closed PR is done — remove them from this list">Clear <!>${_escape(finishedCount)}${_el_resume($scope13_id, "b")} finished</button>${_el_resume($scope13_id, "a")}`);
4281
+ _script($scope13_id, "g19");
4282
+ writeScope($scope13_id, {});
4197
4283
  return 0;
4198
4284
  }
4199
4285
  }, $scope4_id, "a", 1, 1, 1, 0, 1);
@@ -4205,41 +4291,41 @@ var manage_workspace_default = _template("g", (input) => {
4205
4291
  _html("<div class=pr-repo>");
4206
4292
  _if(() => {
4207
4293
  if (prs.length > 1) {
4208
- const $scope16_id = _scope_id();
4209
- _html(`<div class="pr-repo-name mono dim">${_escape(repo.worktree)}${_el_resume($scope16_id, "a")}</div>`);
4210
- writeScope($scope16_id, {});
4294
+ const $scope17_id = _scope_id();
4295
+ _html(`<div class="pr-repo-name mono dim">${_escape(repo.worktree)}${_el_resume($scope17_id, "a")}</div>`);
4296
+ writeScope($scope17_id, {});
4211
4297
  return 0;
4212
4298
  }
4213
4299
  }, $scope5_id, "a", 1, 1, 1, 0, 1);
4214
4300
  _html("<ul class=pr-list>");
4215
4301
  _for_of(repo.prs, (pr) => {
4216
- const $scope13_id = _scope_id();
4217
- _html(`<li><span${_attr_class(["pr-state", pr.state.toLowerCase()])}>${pr.state === "OPEN" && pr.isDraft ? "draft" : _escape(pr.state.toLowerCase())}${_el_resume($scope13_id, "b")}</span>${_el_resume($scope13_id, "a")}`);
4302
+ const $scope14_id = _scope_id();
4303
+ _html(`<li><span${_attr_class(["pr-state", pr.state.toLowerCase()])}>${pr.state === "OPEN" && pr.isDraft ? "draft" : _escape(pr.state.toLowerCase())}${_el_resume($scope14_id, "b")}</span>${_el_resume($scope14_id, "a")}`);
4218
4304
  _if(() => {
4219
4305
  if (pr.state === "OPEN" && pr.reviewDecision === "APPROVED") {
4220
- const $scope17_id = _scope_id();
4306
+ const $scope18_id = _scope_id();
4221
4307
  _html("<span class=\"pr-state open\" title=Approved>✓</span>");
4222
- writeScope($scope17_id, {});
4308
+ writeScope($scope18_id, {});
4223
4309
  return 0;
4224
4310
  } else if (pr.state === "OPEN" && pr.reviewDecision === "CHANGES_REQUESTED") {
4225
- const $scope18_id = _scope_id();
4311
+ const $scope19_id = _scope_id();
4226
4312
  _html("<span class=\"pr-state closed\" title=\"Changes requested\">✗</span>");
4227
- writeScope($scope18_id, {});
4313
+ writeScope($scope19_id, {});
4228
4314
  return 1;
4229
4315
  }
4230
- }, $scope13_id, "c", 1, 1, 1, 0, 1);
4231
- _html(`<a class=pr-link${_attr("href", pr.url)} target=_blank rel=noopener><span class="dim mono">#<!>${_escape(pr.number)}${_el_resume($scope13_id, "e")}</span><!>${_escape(pr.title)}${_el_resume($scope13_id, "f")}</a>${_el_resume($scope13_id, "d")}<span class=pr-spacer></span>`);
4316
+ }, $scope14_id, "c", 1, 1, 1, 0, 1);
4317
+ _html(`<a class=pr-link${_attr("href", pr.url)} target=_blank rel=noopener><span class="dim mono">#<!>${_escape(pr.number)}${_el_resume($scope14_id, "e")}</span><!>${_escape(pr.title)}${_el_resume($scope14_id, "f")}</a>${_el_resume($scope14_id, "d")}<span class=pr-spacer></span>`);
4232
4318
  _if(() => {
4233
4319
  if (pr.state !== "OPEN") {
4234
- const $scope14_id = _scope_id();
4235
- _html(`<button class=pr-dismiss${_attr("title", `Confirm #${pr.number} is done — remove from this list`)}>✓</button>${_el_resume($scope14_id, "a")}`);
4236
- _script($scope14_id, "g19");
4237
- writeScope($scope14_id, {});
4320
+ const $scope15_id = _scope_id();
4321
+ _html(`<button class=pr-dismiss${_attr("title", `Confirm #${pr.number} is done — remove from this list`)}>✓</button>${_el_resume($scope15_id, "a")}`);
4322
+ _script($scope15_id, "g20");
4323
+ writeScope($scope15_id, {});
4238
4324
  return 0;
4239
4325
  }
4240
- }, $scope13_id, "g", 1, 1, 1, 0, 1);
4326
+ }, $scope14_id, "g", 1, 1, 1, 0, 1);
4241
4327
  _html("</li>");
4242
- writeScope($scope13_id, { p: pr?.number });
4328
+ writeScope($scope14_id, { p: pr?.number });
4243
4329
  }, "number", $scope5_id, "b", 1, 1, 1, "</ul>", 1);
4244
4330
  _html("</div>");
4245
4331
  _subscribe($prs_length__closures, writeScope($scope5_id, {
@@ -4248,7 +4334,7 @@ var manage_workspace_default = _template("g", (input) => {
4248
4334
  }));
4249
4335
  }, "full_name", $scope4_id, "d", 1, 1, 1, 0, 1);
4250
4336
  _html("</section>");
4251
- _script($scope4_id, "g20");
4337
+ _script($scope4_id, "g21");
4252
4338
  _subscribe($prsRefreshing__closures, _subscribe($prs__closures, writeScope($scope4_id, {
4253
4339
  e: finishedCount,
4254
4340
  Caj: 1
@@ -4264,23 +4350,23 @@ var manage_workspace_default = _template("g", (input) => {
4264
4350
  _html(`<li class=cur-repo><span class="mono cur-worktree">${_escape(row.worktree)}${_el_resume($scope6_id, "a", $sg__input_workspace)}/</span><span class="dim cur-full">${_escape(row.full_name)}${_el_resume($scope6_id, "b", $sg__input_workspace)}</span>`);
4265
4351
  _if(() => {
4266
4352
  if (row.base_branch !== row.default_branch) {
4267
- const $scope19_id = _scope_id();
4268
- _html(`<span class="cur-base mono" title="Base branch">⎇ ${_sep($sg__input_workspace)}${_escape(row.base_branch)}${_el_resume($scope19_id, "a", $sg__input_workspace)}</span>`);
4269
- $si__input_workspace && writeScope($scope19_id, { _: _scope_with_id($scope6_id) });
4353
+ const $scope20_id = _scope_id();
4354
+ _html(`<span class="cur-base mono" title="Base branch">⎇ ${_sep($sg__input_workspace)}${_escape(row.base_branch)}${_el_resume($scope20_id, "a", $sg__input_workspace)}</span>`);
4355
+ $si__input_workspace && writeScope($scope20_id, { _: _scope_with_id($scope6_id) });
4270
4356
  return 0;
4271
4357
  }
4272
4358
  }, $scope6_id, "c", $sg__input_workspace, $sg__input_workspace, 1, 0, 1);
4273
4359
  _if(() => {
4274
4360
  if (busy.has(row.full_name)) {
4275
- const $scope20_id = _scope_id();
4361
+ const $scope21_id = _scope_id();
4276
4362
  _html("<span class=spin></span>");
4277
- writeScope($scope20_id, {});
4363
+ writeScope($scope21_id, {});
4278
4364
  return 0;
4279
4365
  } else {
4280
- const $scope10_id = _scope_id();
4281
- _html(`<button class=${confirmingRemove === row.full_name ? "\"cur-remove armed\"" : "cur-remove"}${confirmingRemove === row.full_name ? _attr("title", `Really remove ${row.worktree}/? Uncommitted changes are lost.`) : _attr("title", `Remove ${row.worktree}/`)}>${confirmingRemove === row.full_name ? "remove?" : "×"}${_el_resume($scope10_id, "b")}</button>${_el_resume($scope10_id, "a")}`);
4282
- _script($scope10_id, "g21");
4283
- _subscribe($confirmingRemove__closures, writeScope($scope10_id, {}));
4366
+ const $scope11_id = _scope_id();
4367
+ _html(`<button class=${confirmingRemove === row.full_name ? "\"cur-remove armed\"" : "cur-remove"}${confirmingRemove === row.full_name ? _attr("title", `Really remove ${row.worktree}/? Uncommitted changes are lost.`) : _attr("title", `Remove ${row.worktree}/`)}>${confirmingRemove === row.full_name ? "remove?" : "×"}${_el_resume($scope11_id, "b")}</button>${_el_resume($scope11_id, "a")}`);
4368
+ _script($scope11_id, "g22");
4369
+ _subscribe($confirmingRemove__closures, writeScope($scope11_id, {}));
4284
4370
  return 1;
4285
4371
  }
4286
4372
  }, $scope6_id, "d", 1, 1, 1, 0, 1);
@@ -4295,15 +4381,15 @@ var manage_workspace_default = _template("g", (input) => {
4295
4381
  }));
4296
4382
  }, "full_name", $scope2_id, "g", $sg__input_workspace, $sg__input_workspace, 1, 0, 1);
4297
4383
  _for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
4298
- const $scope21_id = _scope_id();
4299
- _html(`<li class="cur-repo pending"><span class=spin></span><span class="dim cur-full">${_escape(name)}${_el_resume($scope21_id, "a")}</span></li>`);
4300
- writeScope($scope21_id, {});
4384
+ const $scope22_id = _scope_id();
4385
+ _html(`<li class="cur-repo pending"><span class=spin></span><span class="dim cur-full">${_escape(name)}${_el_resume($scope22_id, "a")}</span></li>`);
4386
+ writeScope($scope22_id, {});
4301
4387
  }, (n) => n, $scope2_id, "h", 1, 1, 1, 0, 1);
4302
4388
  _if(() => {
4303
4389
  if (!ws.repos.length && !busy.size) {
4304
- const $scope22_id = _scope_id();
4390
+ const $scope23_id = _scope_id();
4305
4391
  _html("<li class=\"dim empty-note\">No repos yet — search below to add one.</li>");
4306
- writeScope($scope22_id, {});
4392
+ writeScope($scope23_id, {});
4307
4393
  return 0;
4308
4394
  }
4309
4395
  }, $scope2_id, "i", 1, 1, 1, 0, 1);
@@ -4313,39 +4399,39 @@ var manage_workspace_default = _template("g", (input) => {
4313
4399
  exclude: inWorkspace,
4314
4400
  onPick: _resume(function(name, baseBranch) {
4315
4401
  addRepo(name, baseBranch);
4316
- }, "g11", $scope2_id),
4402
+ }, "g12", $scope2_id),
4317
4403
  onError: _resume(function(message) {
4318
4404
  error = message;
4319
- }, "g12", $scope2_id),
4405
+ }, "g13", $scope2_id),
4320
4406
  refreshingChange: _resume(function(busy) {
4321
4407
  catalogRefreshing = busy;
4322
- }, "g13", $scope2_id)
4408
+ }, "g14", $scope2_id)
4323
4409
  });
4324
- _var($scope2_id, "k", $childScope, "g22");
4410
+ _var($scope2_id, "k", $childScope, "g23");
4325
4411
  _html("</section>");
4326
4412
  _if(() => {
4327
4413
  if (procs && procs.length) {
4328
4414
  const $scope3_id = _scope_id();
4329
4415
  _html("<section><h3>Processes</h3><ul class=procs>");
4330
4416
  _for_of(procs, (p) => {
4331
- const $scope15_id = _scope_id();
4332
- _html(`<li><span class="mono proc-cmd"${_attr("title", p.args)}>${_escape(p.cmd)}${_el_resume($scope15_id, "b")}`);
4417
+ const $scope16_id = _scope_id();
4418
+ _html(`<li><span class="mono proc-cmd"${_attr("title", p.args)}>${_escape(p.cmd)}${_el_resume($scope16_id, "b")}`);
4333
4419
  _for_of(p.ports, (port) => {
4334
- const $scope23_id = _scope_id();
4335
- _html(`<button class="chip port-link"${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope23_id, "b")}</button>${_el_resume($scope23_id, "a")}`);
4336
- _script($scope23_id, "g23");
4337
- writeScope($scope23_id, { d: port });
4338
- }, (x) => String(x), $scope15_id, "c", 1, 1, 1, 0, 1);
4339
- _html(`</span>${_el_resume($scope15_id, "a")}<button class=proc-kill${_attr("title", `Kill ${p.pid}`)}>×</button>${_el_resume($scope15_id, "d")}</li>`);
4340
- _script($scope15_id, "g24");
4341
- writeScope($scope15_id, { j: p?.pid });
4420
+ const $scope24_id = _scope_id();
4421
+ _html(`<button class="chip port-link"${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope24_id, "b")}</button>${_el_resume($scope24_id, "a")}`);
4422
+ _script($scope24_id, "g24");
4423
+ writeScope($scope24_id, { d: port });
4424
+ }, (x) => String(x), $scope16_id, "c", 1, 1, 1, 0, 1);
4425
+ _html(`</span>${_el_resume($scope16_id, "a")}<button class=proc-kill${_attr("title", `Kill ${p.pid}`)}>×</button>${_el_resume($scope16_id, "d")}</li>`);
4426
+ _script($scope16_id, "g25");
4427
+ writeScope($scope16_id, { j: p?.pid });
4342
4428
  }, "pid", $scope3_id, "a", 1, 1, 1, "</ul>", 1);
4343
4429
  _html("</section>");
4344
4430
  _subscribe($procs__closures, writeScope($scope3_id, { Cai: 1 }));
4345
4431
  return 0;
4346
4432
  }
4347
4433
  }, $scope2_id, "l", 1, 1, 1, 0, 1);
4348
- _script($scope2_id, "g25");
4434
+ _script($scope2_id, "g26");
4349
4435
  _subscribe($addRepo2__closures, _subscribe($si__input_workspace && $inWorkspace__closures, _subscribe($si__input_workspace && $ws_repos_length__closures, _subscribe($si__input_workspace && $ws_path__closures, _subscribe($si__input_workspace && $ws_display_path__closures, _subscribe($si__input_workspace && $ws_name__closures, _subscribe($si__input_workspace && $ws_repos__closures, _subscribe($error__closures, _subscribe($busy_size__closures, _subscribe($busy__closures, _subscribe($prs__closures, _subscribe($procs__closures, _subscribe($catalogRefreshing__closures, writeScope($scope2_id, {
4350
4436
  m: refreshCatalog,
4351
4437
  _: _scope_with_id($scope0_id),
@@ -4354,7 +4440,7 @@ var manage_workspace_default = _template("g", (input) => {
4354
4440
  _resume_branch($scope2_id);
4355
4441
  })
4356
4442
  });
4357
- _script($scope0_id, "g28");
4443
+ _script($scope0_id, "g29");
4358
4444
  writeScope($scope0_id, {
4359
4445
  f: input.onChange,
4360
4446
  g: input.onClose,
@@ -4496,24 +4582,38 @@ var new_workspace_default = _template("i", (input) => {
4496
4582
  onClose: _resume(function() {
4497
4583
  input.onCancel?.();
4498
4584
  }, "i5", $scope0_id),
4499
- footer: attrTag({ content: _content_resume("i14", () => {
4585
+ footer: attrTag({ content: _content_resume("i15", () => {
4500
4586
  _scope_reason();
4501
4587
  const $scope1_id = _scope_id();
4502
4588
  _html(`<button class="btn primary"${_attr("disabled", busy || !name.trim())}>${busy ? "Creating…" : "Create workspace"}${_el_resume($scope1_id, "b")}</button>${_el_resume($scope1_id, "a")}<div class=spacer></div><button class=btn${_attr("disabled", busy)}>Cancel</button>${_el_resume($scope1_id, "c")}`);
4503
- _script($scope1_id, "i9");
4589
+ _script($scope1_id, "i10");
4504
4590
  _subscribe($busy__closures, _subscribe($name__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })));
4505
4591
  _resume_branch($scope1_id);
4506
4592
  }, $scope0_id) }),
4507
- content: _content("i15", () => {
4593
+ content: _content("i16", () => {
4508
4594
  _scope_reason();
4509
4595
  const $scope2_id = _scope_id();
4510
4596
  _html("<header class=manage-head><div><h2>New workspace</h2></div></header>");
4511
4597
  _if(() => {
4512
4598
  if (error) {
4513
4599
  const $scope4_id = _scope_id();
4514
- _html(`<p class=toast-error>${_escape(error)}${_el_resume($scope4_id, "a")} <button>×</button>${_el_resume($scope4_id, "b")}</p>`);
4515
- _script($scope4_id, "i10");
4516
- _subscribe($error__closures, writeScope($scope4_id, { Ca2: 1 }));
4600
+ toast_default({
4601
+ placement: "inline",
4602
+ onDismiss: _resume(function() {
4603
+ error = null;
4604
+ }, "i6", $scope4_id),
4605
+ content: _content_resume("i11", () => {
4606
+ _scope_reason();
4607
+ const $scope5_id = _scope_id();
4608
+ _html(`${_escape(error)}${_el_resume($scope5_id, "a")}`);
4609
+ _subscribe($error__closures, writeScope($scope5_id, {
4610
+ _: _scope_with_id($scope4_id),
4611
+ Ca2: 1
4612
+ }));
4613
+ _resume_branch($scope5_id);
4614
+ }, $scope4_id)
4615
+ });
4616
+ writeScope($scope4_id, {});
4517
4617
  return 0;
4518
4618
  }
4519
4619
  }, $scope2_id, "a", 1, 1, 1, 0, 1);
@@ -4527,14 +4627,14 @@ var new_workspace_default = _template("i", (input) => {
4527
4627
  _html(`<li class=cur-repo><span class=cur-full>${_escape(repo.fullName)}${_el_resume($scope3_id, "a")}</span>`);
4528
4628
  _if(() => {
4529
4629
  if (repo.baseBranch) {
4530
- const $scope7_id = _scope_id();
4531
- _html(`<span class="cur-base mono" title="Base branch">⎇ <!>${_escape(repo.baseBranch)}${_el_resume($scope7_id, "a")}</span>`);
4532
- writeScope($scope7_id, {});
4630
+ const $scope8_id = _scope_id();
4631
+ _html(`<span class="cur-base mono" title="Base branch">⎇ <!>${_escape(repo.baseBranch)}${_el_resume($scope8_id, "a")}</span>`);
4632
+ writeScope($scope8_id, {});
4533
4633
  return 0;
4534
4634
  }
4535
4635
  }, $scope3_id, "b", 1, 1, 1, 0, 1);
4536
4636
  _html(`<button class=cur-remove${_attr("title", `Remove ${repo.fullName}`)}${_attr("disabled", busy)}>×</button>${_el_resume($scope3_id, "c")}</li>`);
4537
- _script($scope3_id, "i11");
4637
+ _script($scope3_id, "i12");
4538
4638
  _subscribe($busy__closures, writeScope($scope3_id, {
4539
4639
  f: repo?.fullName,
4540
4640
  g: repo?.baseBranch,
@@ -4543,9 +4643,9 @@ var new_workspace_default = _template("i", (input) => {
4543
4643
  }, "fullName", $scope2_id, "e", 1, 1, 1, 0, 1);
4544
4644
  _if(() => {
4545
4645
  if (!selected.length) {
4546
- const $scope8_id = _scope_id();
4646
+ const $scope9_id = _scope_id();
4547
4647
  _html("<li class=\"dim empty-note\">No repos yet — search below to add one (or create empty).</li>");
4548
- writeScope($scope8_id, {});
4648
+ writeScope($scope9_id, {});
4549
4649
  return 0;
4550
4650
  }
4551
4651
  }, $scope2_id, "f", 1, 1, 1, 0, 1);
@@ -4556,44 +4656,44 @@ var new_workspace_default = _template("i", (input) => {
4556
4656
  disabled: busy,
4557
4657
  onPick: _resume(function(fullName, baseBranch) {
4558
4658
  addRepo(fullName, baseBranch);
4559
- }, "i6", $scope2_id),
4659
+ }, "i7", $scope2_id),
4560
4660
  onError: _resume(function(message) {
4561
4661
  error = message;
4562
- }, "i7", $scope2_id),
4662
+ }, "i8", $scope2_id),
4563
4663
  refreshingChange: _resume(function(v) {
4564
4664
  catalogRefreshing = v;
4565
- }, "i8", $scope2_id)
4665
+ }, "i9", $scope2_id)
4566
4666
  });
4567
- _var($scope2_id, "h", $childScope, "i12");
4667
+ _var($scope2_id, "h", $childScope, "i13");
4568
4668
  _html("</section>");
4569
4669
  _if(() => {
4570
4670
  if (busy && steps.length) {
4571
- const $scope5_id = _scope_id();
4671
+ const $scope6_id = _scope_id();
4572
4672
  _html("<ul class=steps>");
4573
4673
  _for_of(steps, (step, i) => {
4574
- const $scope6_id = _scope_id();
4674
+ const $scope7_id = _scope_id();
4575
4675
  _html(`<li${_attr_class({ active: i === steps.length - 1 })}>`);
4576
4676
  _if(() => {
4577
4677
  if (i === steps.length - 1) {
4578
- const $scope9_id = _scope_id();
4678
+ const $scope10_id = _scope_id();
4579
4679
  _html("<span class=spin></span>");
4580
- writeScope($scope9_id, {});
4680
+ writeScope($scope10_id, {});
4581
4681
  return 0;
4582
4682
  } else {
4583
- const $scope10_id = _scope_id();
4683
+ const $scope11_id = _scope_id();
4584
4684
  _html("<span class=step-done>✓</span>");
4585
- writeScope($scope10_id, {});
4685
+ writeScope($scope11_id, {});
4586
4686
  return 1;
4587
4687
  }
4588
- }, $scope6_id, "b", 1, 1, 1, 0, 1);
4589
- _html(`<!>${_escape(step)}${_el_resume($scope6_id, "c")}</li>${_el_resume($scope6_id, "a")}`);
4590
- _subscribe($steps_length__closures, writeScope($scope6_id, { Ca4: 1 }));
4591
- }, 0, $scope5_id, "a", 1, 1, 1, "</ul>", 1);
4592
- _subscribe($steps__closures, writeScope($scope5_id, {}));
4688
+ }, $scope7_id, "b", 1, 1, 1, 0, 1);
4689
+ _html(`<!>${_escape(step)}${_el_resume($scope7_id, "c")}</li>${_el_resume($scope7_id, "a")}`);
4690
+ _subscribe($steps_length__closures, writeScope($scope7_id, { Ca4: 1 }));
4691
+ }, 0, $scope6_id, "a", 1, 1, 1, "</ul>", 1);
4692
+ _subscribe($steps__closures, writeScope($scope6_id, {}));
4593
4693
  return 0;
4594
4694
  }
4595
4695
  }, $scope2_id, "i", 1, 1, 1, 0, 1);
4596
- _script($scope2_id, "i13");
4696
+ _script($scope2_id, "i14");
4597
4697
  _subscribe($addRepo2__closures, _subscribe($steps_length__closures, _subscribe($error__closures, _subscribe($busy__closures, _subscribe($selected_length__closures, _subscribe($selected__closures, _subscribe($catalogRefreshing__closures, _subscribe($name__closures, writeScope($scope2_id, {
4598
4698
  j: refreshCatalog,
4599
4699
  _: _scope_with_id($scope0_id),
@@ -4604,7 +4704,7 @@ var new_workspace_default = _template("i", (input) => {
4604
4704
  _resume_branch($scope2_id);
4605
4705
  })
4606
4706
  });
4607
- _script($scope0_id, "i16");
4707
+ _script($scope0_id, "i17");
4608
4708
  writeScope($scope0_id, {
4609
4709
  d: input.onCreate,
4610
4710
  e: input.onCancel,
@@ -4678,7 +4778,7 @@ function diffUncommitted() {
4678
4778
  }
4679
4779
  //#endregion
4680
4780
  //#region src/tags/icons/icon-edit.marko
4681
- var icon_edit_default = _template("y", (input) => {
4781
+ var icon_edit_default = _template("z", (input) => {
4682
4782
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
4683
4783
  const $scope0_id = _scope_id();
4684
4784
  _set_serialize_reason({
@@ -4927,7 +5027,7 @@ var side_nav_item_default = _template("m", (input) => {
4927
5027
  });
4928
5028
  //#endregion
4929
5029
  //#region src/tags/icons/icon-sidebar-collapse.marko
4930
- var icon_sidebar_collapse_default = _template("H", (input) => {
5030
+ var icon_sidebar_collapse_default = _template("I", (input) => {
4931
5031
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
4932
5032
  const $scope0_id = _scope_id();
4933
5033
  _set_serialize_reason({
@@ -4944,7 +5044,7 @@ var icon_sidebar_collapse_default = _template("H", (input) => {
4944
5044
  });
4945
5045
  //#endregion
4946
5046
  //#region src/tags/icons/icon-sidebar.marko
4947
- var icon_sidebar_default = _template("I", (input) => {
5047
+ var icon_sidebar_default = _template("J", (input) => {
4948
5048
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
4949
5049
  const $scope0_id = _scope_id();
4950
5050
  _set_serialize_reason({
@@ -4961,7 +5061,7 @@ var icon_sidebar_default = _template("I", (input) => {
4961
5061
  });
4962
5062
  //#endregion
4963
5063
  //#region src/tags/icons/icon-bell.marko
4964
- var icon_bell_default = _template("u", (input) => {
5064
+ var icon_bell_default = _template("v", (input) => {
4965
5065
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
4966
5066
  const $scope0_id = _scope_id();
4967
5067
  _set_serialize_reason({
@@ -4978,7 +5078,7 @@ var icon_bell_default = _template("u", (input) => {
4978
5078
  });
4979
5079
  //#endregion
4980
5080
  //#region src/tags/icons/icon-gauge.marko
4981
- var icon_gauge_default = _template("A", (input) => {
5081
+ var icon_gauge_default = _template("B", (input) => {
4982
5082
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
4983
5083
  const $scope0_id = _scope_id();
4984
5084
  _set_serialize_reason({
@@ -4995,7 +5095,7 @@ var icon_gauge_default = _template("A", (input) => {
4995
5095
  });
4996
5096
  //#endregion
4997
5097
  //#region src/tags/icons/icon-folder-plus.marko
4998
- var icon_folder_plus_default = _template("z", (input) => {
5098
+ var icon_folder_plus_default = _template("A", (input) => {
4999
5099
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
5000
5100
  const $scope0_id = _scope_id();
5001
5101
  _set_serialize_reason({
@@ -5513,7 +5613,7 @@ function treeRows(files) {
5513
5613
  }
5514
5614
  //#endregion
5515
5615
  //#region src/tags/icons/icon-back.marko
5516
- var icon_back_default = _template("s", (input) => {
5616
+ var icon_back_default = _template("t", (input) => {
5517
5617
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
5518
5618
  const $scope0_id = _scope_id();
5519
5619
  _set_serialize_reason({
@@ -5530,7 +5630,7 @@ var icon_back_default = _template("s", (input) => {
5530
5630
  });
5531
5631
  //#endregion
5532
5632
  //#region src/tags/icons/icon-search.marko
5533
- var icon_search_default = _template("G", (input) => {
5633
+ var icon_search_default = _template("H", (input) => {
5534
5634
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
5535
5635
  const $scope0_id = _scope_id();
5536
5636
  _set_serialize_reason({
@@ -5695,6 +5795,10 @@ var diff_view_default = _template("e", (input) => {
5695
5795
  const $sending__closures = /* @__PURE__ */ new Set();
5696
5796
  const $input_sessions__closures = /* @__PURE__ */ new Set();
5697
5797
  const $sendTarget__closures = /* @__PURE__ */ new Set();
5798
+ const $error__closures = /* @__PURE__ */ new Set();
5799
+ const $uncommitted__closures = /* @__PURE__ */ new Set();
5800
+ const $loading__closures = /* @__PURE__ */ new Set();
5801
+ const $driftRepos__closures = /* @__PURE__ */ new Set();
5698
5802
  const $collapsedRepos__closures = /* @__PURE__ */ new Set();
5699
5803
  const $draft__closures = /* @__PURE__ */ new Set();
5700
5804
  const $saveComment2__closures = /* @__PURE__ */ new Set();
@@ -5945,24 +6049,24 @@ var diff_view_default = _template("e", (input) => {
5945
6049
  const $scope7_id = _scope_id();
5946
6050
  _if(() => {
5947
6051
  if (!hiddenByCollapse(row) && row.kind === "dir") {
5948
- const $scope24_id = _scope_id();
5949
- _html(`<button class=${collapsedDirs.has(dirKey(row.path)) ? "\"tree-dir dim mono closed\"" : "\"tree-dir dim mono\""}${_attr("title", row.path)}${_attr_style(`padding-left:${.35 + row.depth * .75}rem`)}><span class=tree-chev>${collapsedDirs.has(dirKey(row.path)) ? "▸" : "▾"}${_el_resume($scope24_id, "b")}</span>${_escape(row.label)}${_el_resume($scope24_id, "c")}/</button>${_el_resume($scope24_id, "a")}`);
5950
- _script($scope24_id, "e30");
5951
- _subscribe($if_content4__dirKey__closures, _subscribe($collapsedDirs__closures, writeScope($scope24_id, { Cd3: 1 })));
6052
+ const $scope29_id = _scope_id();
6053
+ _html(`<button class=${collapsedDirs.has(dirKey(row.path)) ? "\"tree-dir dim mono closed\"" : "\"tree-dir dim mono\""}${_attr("title", row.path)}${_attr_style(`padding-left:${.35 + row.depth * .75}rem`)}><span class=tree-chev>${collapsedDirs.has(dirKey(row.path)) ? "▸" : "▾"}${_el_resume($scope29_id, "b")}</span>${_escape(row.label)}${_el_resume($scope29_id, "c")}/</button>${_el_resume($scope29_id, "a")}`);
6054
+ _script($scope29_id, "e32");
6055
+ _subscribe($if_content4__dirKey__closures, _subscribe($collapsedDirs__closures, writeScope($scope29_id, { Cd0: 1 })));
5952
6056
  return 0;
5953
6057
  } else if (!hiddenByCollapse(row) && row.kind !== "dir") {
5954
6058
  const $scope8_id = _scope_id();
5955
6059
  _html(`<button class=${viewed.has(row.file.key) ? "\"tree-file mono seen\"" : "\"tree-file mono\""}${_attr("title", row.file.path)}${_attr_style(`padding-left:${.5 + row.depth * .75}rem`)}><span${_attr_class(["status", row.file.status])}>${_escape(row.file.status)}${_el_resume($scope8_id, "c")}</span>${_el_resume($scope8_id, "b")}<span class=tree-file-name>${_escape(row.name)}${_el_resume($scope8_id, "d")}</span>`);
5956
6060
  _if(() => {
5957
6061
  if (commentsByFile.has(row.file.key)) {
5958
- const $scope29_id = _scope_id();
6062
+ const $scope35_id = _scope_id();
5959
6063
  _html("<span class=tree-note>💬</span>");
5960
- writeScope($scope29_id, {});
6064
+ writeScope($scope35_id, {});
5961
6065
  return 0;
5962
6066
  }
5963
6067
  }, $scope8_id, "e", 1, 1, 1, 0, 1);
5964
6068
  _html(`</button>${_el_resume($scope8_id, "a")}`);
5965
- _script($scope8_id, "e31");
6069
+ _script($scope8_id, "e33");
5966
6070
  _subscribe($commentsByFile__closures, _subscribe($viewed__closures, writeScope($scope8_id, {})));
5967
6071
  return 1;
5968
6072
  }
@@ -5988,7 +6092,7 @@ var diff_view_default = _template("e", (input) => {
5988
6092
  }
5989
6093
  }, $scope5_id, "d");
5990
6094
  _html("</div>");
5991
- _script($scope5_id, "e32");
6095
+ _script($scope5_id, "e34");
5992
6096
  writeScope($scope5_id, { g: repo?.id });
5993
6097
  }, "id", $scope0_id, "a", 1, 1, 1, "</aside>", 1);
5994
6098
  _html("<div class=diff-col><div class=diff-head>");
@@ -5998,7 +6102,7 @@ var diff_view_default = _template("e", (input) => {
5998
6102
  _html("<button class=icon-btn title=\"Back to terminal\">");
5999
6103
  icon_back_default({ size: 14 });
6000
6104
  _html(`</button>${_el_resume($scope1_id, "a")}`);
6001
- _script($scope1_id, "e33");
6105
+ _script($scope1_id, "e35");
6002
6106
  writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
6003
6107
  return 0;
6004
6108
  }
@@ -6012,7 +6116,7 @@ var diff_view_default = _template("e", (input) => {
6012
6116
  if ((input.sessions || []).length === 1) {
6013
6117
  const $scope3_id = _scope_id();
6014
6118
  _html(`<button class="btn primary"${_attr("disabled", sending)}>${sending ? "Sending…" : `Send to ${_escape(`${input.sessions[0].title || input.sessions[0].agent}`)}`}${_el_resume($scope3_id, "b")}</button>${_el_resume($scope3_id, "a")}`);
6015
- _script($scope3_id, "e34");
6119
+ _script($scope3_id, "e36");
6016
6120
  _subscribe($sending__closures, _subscribe($si__input_sessions_0_agent && $input_sessions_0_agent__closures, _subscribe($si__input_sessions_0_title && $input_sessions_0_title__closures, writeScope($scope3_id, { _: _scope_with_id($scope2_id) }))));
6017
6121
  return 0;
6018
6122
  } else if ((input.sessions || []).length) {
@@ -6023,40 +6127,32 @@ var diff_view_default = _template("e", (input) => {
6023
6127
  }, "e0", $scope4_id), () => {
6024
6128
  _html(`<select aria-label="Send comments to session"${_attr("disabled", sending)}>`);
6025
6129
  _for_of(input.sessions, (s) => {
6026
- const $scope30_id = _scope_id();
6027
- _html(`<option${_attr_option_value(s.id)}>${_escape(s.title || s.agent)}${_el_resume($scope30_id, "b", $sg__input_sessions)}</option>${_el_resume($scope30_id, "a", $sg__input_sessions)}`);
6028
- $si__input_sessions && writeScope($scope30_id, {});
6130
+ const $scope36_id = _scope_id();
6131
+ _html(`<option${_attr_option_value(s.id)}>${_escape(s.title || s.agent)}${_el_resume($scope36_id, "b", $sg__input_sessions)}</option>${_el_resume($scope36_id, "a", $sg__input_sessions)}`);
6132
+ $si__input_sessions && writeScope($scope36_id, {});
6029
6133
  }, "id", $scope4_id, "c", $sg__input_sessions, 1, $sg__input_sessions, "</select>", 1);
6030
6134
  });
6031
6135
  _html("</span>");
6032
- _script($scope4_id, "e35");
6136
+ _script($scope4_id, "e37");
6033
6137
  _subscribe($sendTarget__closures, _subscribe($sending__closures, _subscribe($si__input_sessions && $input_sessions__closures, writeScope($scope4_id, {
6034
6138
  _: _scope_with_id($scope2_id),
6035
- Ccw: 1
6139
+ Cct: 1
6036
6140
  }))));
6037
6141
  return 1;
6038
6142
  }
6039
6143
  }, $scope2_id, "c", $sg__input_sessions, $sg__input_sessions, $sg__input_sessions, 0, 1);
6040
- _script($scope2_id, "e36");
6144
+ _script($scope2_id, "e38");
6041
6145
  writeScope($scope2_id, {});
6042
6146
  return 0;
6043
6147
  }
6044
6148
  }, $scope0_id, "g", 1, 1, 1, "</span>");
6045
- _if(() => {
6046
- if (loading) {
6047
- const $scope31_id = _scope_id();
6048
- _html("<span class=\"refresh-chip dim\"><span class=spin></span>Refreshing…</span>");
6049
- writeScope($scope31_id, {});
6050
- return 0;
6051
- }
6052
- }, $scope0_id, "h", 1, 1, 1, 0, 1);
6053
6149
  _html(`</div><div class=diff-tools><button class=${treeOpen ? "\"icon-btn tree-toggle on\"" : "\"icon-btn tree-toggle\""} title=${treeOpen ? "\"Hide file tree\"" : "\"Show file tree\""}>`);
6054
6150
  icon_sidebar_default({ size: 14 });
6055
- _html(`</button>${_el_resume($scope0_id, "i")}<button class=${loading ? "\"icon-btn spinning\"" : "icon-btn"} title="Refresh diff"${_attr("disabled", loading)}>`);
6151
+ _html(`</button>${_el_resume($scope0_id, "h")}<button class=${loading ? "\"icon-btn spinning\"" : "icon-btn"} title="Refresh diff"${_attr("disabled", loading)}>`);
6056
6152
  icon_refresh_default({ size: 14 });
6057
- _html(`</button>${_el_resume($scope0_id, "k")}<button class="btn files-btn" title="Jump to file">Files (<!>${_escape(shownFiles.length)}${_el_resume($scope0_id, "n")})</button>${_el_resume($scope0_id, "m")}<button class=${findOpen ? "\"btn find-btn on\"" : "\"btn find-btn\""} title="Find in the review (⌘/Ctrl+F)">`);
6153
+ _html(`</button>${_el_resume($scope0_id, "j")}<button class="btn files-btn" title="Jump to file">Files (<!>${_escape(shownFiles.length)}${_el_resume($scope0_id, "m")})</button>${_el_resume($scope0_id, "l")}<button class=${findOpen ? "\"btn find-btn on\"" : "\"btn find-btn\""} title="Find in the review (⌘/Ctrl+F)">`);
6058
6154
  icon_search_default({ size: 14 });
6059
- _html(`<span class=find-label>Find</span></button>${_el_resume($scope0_id, "o")}<label class=two-dot title="Include uncommitted and untracked files in the review. Off by default — the review is commit-to-commit."><input${_attr_input_checked($scope0_id, "q", uncommitted)} type=checkbox>${_el_resume($scope0_id, "q")} include uncommitted</label>`);
6155
+ _html(`<span class=find-label>Find</span></button>${_el_resume($scope0_id, "n")}<label class=two-dot title="Include uncommitted and untracked files in the review. Off by default — the review is commit-to-commit."><input${_attr_input_checked($scope0_id, "p", uncommitted)} type=checkbox>${_el_resume($scope0_id, "p")} include uncommitted</label>`);
6060
6156
  const $childScope = _peek_scope_id();
6061
6157
  file_filter_default({
6062
6158
  value: fileFilter,
@@ -6067,14 +6163,14 @@ var diff_view_default = _template("e", (input) => {
6067
6163
  _html("</div>");
6068
6164
  _if(() => {
6069
6165
  if (findOpen) {
6070
- const $scope23_id = _scope_id();
6166
+ const $scope28_id = _scope_id();
6071
6167
  const $childScope2 = _peek_scope_id();
6072
6168
  diff_find_default({
6073
6169
  files: fileFiltered,
6074
6170
  tick: findTick,
6075
6171
  onState: _resume(function(s) {
6076
6172
  onFindState(s);
6077
- }, "e23", $scope23_id),
6173
+ }, "e23", $scope28_id),
6078
6174
  onClose: _resume(function() {
6079
6175
  findOpen = false;
6080
6176
  findState = {
@@ -6082,79 +6178,172 @@ var diff_view_default = _template("e", (input) => {
6082
6178
  hit: null,
6083
6179
  keys: []
6084
6180
  };
6085
- }, "e24", $scope23_id)
6181
+ }, "e24", $scope28_id)
6086
6182
  });
6087
- writeScope($scope23_id, { a: _existing_scope($childScope2) });
6183
+ writeScope($scope28_id, { a: _existing_scope($childScope2) });
6088
6184
  return 0;
6089
6185
  }
6090
- }, $scope0_id, "s", 1, 1, 1, 0, 1);
6186
+ }, $scope0_id, "r", 1, 1, 1, 0, 1);
6091
6187
  _html("<div class=diff-main>");
6092
6188
  _if(() => {
6093
6189
  if (error) {
6094
6190
  const $scope17_id = _scope_id();
6095
- _html(`<p class=toast-error>${_escape(error)}${_el_resume($scope17_id, "a")} <button>×</button>${_el_resume($scope17_id, "b")}</p>`);
6096
- _script($scope17_id, "e37");
6191
+ toast_default({
6192
+ onDismiss: _resume(function() {
6193
+ error = null;
6194
+ }, "e25", $scope17_id),
6195
+ content: _content_resume("e39", () => {
6196
+ _scope_reason();
6197
+ const $scope18_id = _scope_id();
6198
+ _html(`${_escape(error)}${_el_resume($scope18_id, "a")}`);
6199
+ _subscribe($error__closures, writeScope($scope18_id, { _: _scope_with_id($scope17_id) }));
6200
+ _resume_branch($scope18_id);
6201
+ }, $scope17_id)
6202
+ });
6097
6203
  writeScope($scope17_id, {});
6098
6204
  return 0;
6099
6205
  }
6100
- }, $scope0_id, "u", 1, 1, 1, 0, 1);
6206
+ }, $scope0_id, "t", 1, 1, 1, 0, 1);
6101
6207
  _for_of(repoList.filter((r) => r.baseMissing), (repo) => {
6102
- const $scope20_id = _scope_id();
6103
- _html(`<p class=toast-error>${_escape(repo.worktree)}${_el_resume($scope20_id, "a")}: base <!>${_escape(repo.base)}${_el_resume($scope20_id, "b")} not found<!>${uncommitted ? " — showing uncommitted changes only" : ""}${_el_resume($scope20_id, "c")}.</p>`);
6104
- writeScope($scope20_id, {});
6105
- }, "id", $scope0_id, "v", 1, 1, 1, 0, 1);
6208
+ const $scope22_id = _scope_id();
6209
+ const $for_content6__repo_base__closures = /* @__PURE__ */ new Set();
6210
+ _set_serialize_reason(40);
6211
+ const $childScope3 = _peek_scope_id();
6212
+ toast_default({
6213
+ kind: "warn",
6214
+ placement: "inline",
6215
+ title: `${repo.worktree}: base not found`,
6216
+ content: _content_resume("e40", () => {
6217
+ _scope_reason();
6218
+ const $scope23_id = _scope_id();
6219
+ _html(`${_escape(repo.base)}${_el_resume($scope23_id, "a")}<!>${uncommitted ? " — showing uncommitted changes only" : ""}${_el_resume($scope23_id, "b")}.`);
6220
+ _subscribe($for_content6__repo_base__closures, _subscribe($uncommitted__closures, writeScope($scope23_id, { _: _scope_with_id($scope22_id) })));
6221
+ _resume_branch($scope23_id);
6222
+ }, $scope22_id)
6223
+ });
6224
+ writeScope($scope22_id, {
6225
+ e: repo?.base,
6226
+ f: $for_content6__repo_base__closures,
6227
+ a: _existing_scope($childScope3)
6228
+ });
6229
+ }, "id", $scope0_id, "u", 1, 1, 1, 0, 1);
6106
6230
  _for_of(repoList.filter((r) => r.contained && r.files.length), (repo) => {
6107
- const $scope21_id = _scope_id();
6108
- _html(`<p class=dim>${_escape(repo.worktree)}${_el_resume($scope21_id, "a")}<!>${repo.pr ? ` #${_escape(`${repo.pr.number}`)}` : ""}${_el_resume($scope21_id, "b")}: already in <!>${_escape(repo.base)}${_el_resume($scope21_id, "c")}<!>${uncommitted ? " — showing uncommitted changes only" : ""}${_el_resume($scope21_id, "d")}.</p>`);
6109
- writeScope($scope21_id, {});
6110
- }, "id", $scope0_id, "w", 1, 1, 1, 0, 1);
6231
+ const $scope24_id = _scope_id();
6232
+ const $for_content7__repo_base__closures = /* @__PURE__ */ new Set();
6233
+ _set_serialize_reason(40);
6234
+ const $childScope4 = _peek_scope_id();
6235
+ toast_default({
6236
+ kind: "info",
6237
+ placement: "inline",
6238
+ title: repo.pr ? `${repo.worktree} #${repo.pr.number}` : repo.worktree,
6239
+ content: _content_resume("e41", () => {
6240
+ _scope_reason();
6241
+ const $scope25_id = _scope_id();
6242
+ _html(`already in <!>${_escape(repo.base)}${_el_resume($scope25_id, "a")}<!>${uncommitted ? " — showing uncommitted changes only" : ""}${_el_resume($scope25_id, "b")}.`);
6243
+ _subscribe($for_content7__repo_base__closures, _subscribe($uncommitted__closures, writeScope($scope25_id, {
6244
+ _: _scope_with_id($scope24_id),
6245
+ Ccw: 1
6246
+ })));
6247
+ _resume_branch($scope25_id);
6248
+ }, $scope24_id)
6249
+ });
6250
+ writeScope($scope24_id, {
6251
+ g: repo?.base,
6252
+ h: $for_content7__repo_base__closures,
6253
+ a: _existing_scope($childScope4)
6254
+ });
6255
+ }, "id", $scope0_id, "v", 1, 1, 1, 0, 1);
6111
6256
  _if(() => {
6112
6257
  if (driftRepos.length) {
6113
- const $scope18_id = _scope_id();
6114
- _html("<div class=diff-notice><div class=notice-body><strong>GitHub is behind</strong><span class=dim>");
6115
- _for_of(driftRepos, (repo, i) => {
6116
- const $scope32_id = _scope_id();
6117
- _html(`${i > 0 ? " · " : ""}${_el_resume($scope32_id, "a")}<!>${_escape(repo.worktree)}${_el_resume($scope32_id, "b")} #<!>${_escape(repo.pr.number)}${_el_resume($scope32_id, "c")}`);
6118
- writeScope($scope32_id, {});
6119
- }, "id", $scope18_id, "a");
6120
- _html(" — this view has a newer tip than the PR page.</span><span class=\"notice-shas mono dim\">");
6121
- _for_of(driftRepos, (repo, i) => {
6122
- const $scope33_id = _scope_id();
6123
- _html(`<span${_attr("title", `origin/${repo.pr.headRefName} ${repo.head} · GitHub ${repo.pr.headRefOid}`)}>${i > 0 ? " · " : ""}${_el_resume($scope33_id, "b")}<!>${_escape(shortSha(repo.head))}${_el_resume($scope33_id, "c")} → <!>${_escape(shortSha(repo.pr.headRefOid))}${_el_resume($scope33_id, "d")}</span>${_el_resume($scope33_id, "a")}`);
6124
- writeScope($scope33_id, {});
6125
- }, "id", $scope18_id, "b", 1, 1, 1, "</span>", 1);
6126
- _html(`</div><div class=notice-actions><button class=btn${_attr("disabled", loading)}>${loading ? "Reloading…" : "Reload"}${_el_resume($scope18_id, "d")}</button>${_el_resume($scope18_id, "c")}<button class=icon-btn title=Dismiss>×</button>${_el_resume($scope18_id, "e")}</div></div>`);
6127
- _script($scope18_id, "e38");
6128
- writeScope($scope18_id, {});
6258
+ const $scope19_id = _scope_id();
6259
+ _set_serialize_reason(268);
6260
+ const $childScope5 = _peek_scope_id();
6261
+ toast_default({
6262
+ kind: "info",
6263
+ placement: "inline",
6264
+ title: "GitHub is behind",
6265
+ onDismiss: _resume(function() {
6266
+ dismissDrift();
6267
+ }, "e26", $scope19_id),
6268
+ action: attrTag({ content: _content_resume("e43", () => {
6269
+ _scope_reason();
6270
+ const $scope20_id = _scope_id();
6271
+ _html(`<button class=btn${_attr("disabled", loading)}>${loading ? "Reloading…" : "Reload"}${_el_resume($scope20_id, "b")}</button>${_el_resume($scope20_id, "a")}`);
6272
+ _script($scope20_id, "e42");
6273
+ _subscribe($loading__closures, writeScope($scope20_id, { _: _scope_with_id($scope19_id) }));
6274
+ _resume_branch($scope20_id);
6275
+ }, $scope19_id) }),
6276
+ content: _content_resume("e44", () => {
6277
+ _scope_reason();
6278
+ const $scope34_id = _scope_id();
6279
+ _html("<span class=dim>");
6280
+ _for_of(driftRepos, (repo, i) => {
6281
+ const $scope37_id = _scope_id();
6282
+ _html(`${i > 0 ? " · " : ""}${_el_resume($scope37_id, "a")}<!>${_escape(repo.worktree)}${_el_resume($scope37_id, "b")} #<!>${_escape(repo.pr.number)}${_el_resume($scope37_id, "c")}`);
6283
+ writeScope($scope37_id, {});
6284
+ }, "id", $scope34_id, "a");
6285
+ _html(" — this view has a newer tip than the PR page.</span><span class=\"mono dim toast-meta\">");
6286
+ _for_of(driftRepos, (repo, i) => {
6287
+ const $scope38_id = _scope_id();
6288
+ _html(`<span${_attr("title", `origin/${repo.pr.headRefName} ${repo.head} · GitHub ${repo.pr.headRefOid}`)}>${i > 0 ? " · " : ""}${_el_resume($scope38_id, "b")}<!>${_escape(shortSha(repo.head))}${_el_resume($scope38_id, "c")} → <!>${_escape(shortSha(repo.pr.headRefOid))}${_el_resume($scope38_id, "d")}</span>${_el_resume($scope38_id, "a")}`);
6289
+ writeScope($scope38_id, {});
6290
+ }, "id", $scope34_id, "b", 1, 1, 1, "</span>", 1);
6291
+ _subscribe($driftRepos__closures, writeScope($scope34_id, { _: _scope_with_id($scope19_id) }));
6292
+ _resume_branch($scope34_id);
6293
+ }, $scope19_id)
6294
+ });
6295
+ writeScope($scope19_id, { a: _existing_scope($childScope5) });
6129
6296
  return 0;
6130
6297
  }
6131
- }, $scope0_id, "x", 1, 1, 1, 0, 1);
6298
+ }, $scope0_id, "w", 1, 1, 1, 0, 1);
6132
6299
  _for_of(repoList.filter(localDiffers), (repo) => {
6133
- const $scope22_id = _scope_id();
6134
- _html(`<p class=dim>${_escape(repo.worktree)}${_el_resume($scope22_id, "a")} #<!>${_escape(repo.pr.number)}${_el_resume($scope22_id, "b")}: this view is <!>${_escape(shortSha(repo.head))}${_el_resume($scope22_id, "c")} (<!>${_escape(repo.pr.headRefName)}${_el_resume($scope22_id, "d")}). Local is <!>${_escape(shortSha(repo.localHead))}${_el_resume($scope22_id, "e")} (<!>${_escape(repo.branch)}${_el_resume($scope22_id, "f")}<!>${uncommitted ? ", plus uncommitted" : ""}${_el_resume($scope22_id, "g")}).</p>`);
6135
- writeScope($scope22_id, {});
6136
- }, "id", $scope0_id, "y", 1, 1, 1, 0, 1);
6137
- _if(() => {
6138
- if (!repos && loading) {
6139
- const $scope34_id = _scope_id();
6140
- _html("<div class=diff-skel><p class=dim><span class=spin></span>Loading diff…</p><div class=skel-row></div><div class=skel-row></div><div class=skel-row></div></div>");
6141
- writeScope($scope34_id, {});
6142
- return 0;
6143
- }
6144
- }, $scope0_id, "z", 1, 1, 1, 0, 1);
6300
+ const $scope26_id = _scope_id();
6301
+ const $for_content8__repo_head__closures = /* @__PURE__ */ new Set();
6302
+ const $for_content8__repo_pr_headRefName__closures = /* @__PURE__ */ new Set();
6303
+ const $for_content8__repo_localHead__closures = /* @__PURE__ */ new Set();
6304
+ const $for_content8__repo_branch__closures = /* @__PURE__ */ new Set();
6305
+ _set_serialize_reason(40);
6306
+ const $childScope6 = _peek_scope_id();
6307
+ toast_default({
6308
+ kind: "info",
6309
+ placement: "inline",
6310
+ title: `${repo.worktree} #${repo.pr.number}`,
6311
+ content: _content_resume("e45", () => {
6312
+ _scope_reason();
6313
+ const $scope27_id = _scope_id();
6314
+ _html(`this view is <!>${_escape(shortSha(repo.head))}${_el_resume($scope27_id, "a")} (<!>${_escape(repo.pr.headRefName)}${_el_resume($scope27_id, "b")}). Local is <!>${_escape(shortSha(repo.localHead))}${_el_resume($scope27_id, "c")} (<!>${_escape(repo.branch)}${_el_resume($scope27_id, "d")}<!>${uncommitted ? ", plus uncommitted" : ""}${_el_resume($scope27_id, "e")}).`);
6315
+ _subscribe($for_content8__repo_branch__closures, _subscribe($for_content8__repo_localHead__closures, _subscribe($for_content8__repo_pr_headRefName__closures, _subscribe($for_content8__repo_head__closures, _subscribe($uncommitted__closures, writeScope($scope27_id, {
6316
+ _: _scope_with_id($scope26_id),
6317
+ Ccw: 2
6318
+ }))))));
6319
+ _resume_branch($scope27_id);
6320
+ }, $scope26_id)
6321
+ });
6322
+ writeScope($scope26_id, {
6323
+ h: repo?.head,
6324
+ i: repo?.pr?.headRefName,
6325
+ j: repo?.localHead,
6326
+ k: repo?.branch,
6327
+ l: $for_content8__repo_head__closures,
6328
+ m: $for_content8__repo_pr_headRefName__closures,
6329
+ n: $for_content8__repo_localHead__closures,
6330
+ o: $for_content8__repo_branch__closures,
6331
+ a: _existing_scope($childScope6)
6332
+ });
6333
+ }, "id", $scope0_id, "x", 1, 1, 1, 0, 1);
6145
6334
  _if(() => {
6146
6335
  if (repos && !allFiles.length) {
6147
- const $scope27_id = _scope_id();
6148
- _html(`<p class="dim center-pad">${repoList.some((r) => r.pr) ? "No file changes on these PRs." : "No changes vs base."}${_el_resume($scope27_id, "a")}</p>`);
6149
- writeScope($scope27_id, {});
6336
+ const $scope32_id = _scope_id();
6337
+ _html(`<p class="dim center-pad">${repoList.some((r) => r.pr) ? "No file changes on these PRs." : "No changes vs base."}${_el_resume($scope32_id, "a")}</p>`);
6338
+ writeScope($scope32_id, {});
6150
6339
  return 0;
6151
6340
  } else if (repos && !shownFiles.length && !findState.hit) {
6152
- const $scope19_id = _scope_id();
6153
- _html(`<p class="dim center-pad">${findState.query.trim() ? "No matches in diffs." : `No files match "${_escape(`${fileFilter}`)}".`}${_el_resume($scope19_id, "a")}</p>`);
6154
- writeScope($scope19_id, {});
6341
+ const $scope21_id = _scope_id();
6342
+ _html(`<p class="dim center-pad">${findState.query.trim() ? "No matches in diffs." : `No files match "${_escape(`${fileFilter}`)}".`}${_el_resume($scope21_id, "a")}</p>`);
6343
+ writeScope($scope21_id, {});
6155
6344
  return 1;
6156
6345
  }
6157
- }, $scope0_id, "a0", 1, 1, 1, 0, 1);
6346
+ }, $scope0_id, "y", 1, 1, 1, 0, 1);
6158
6347
  _for_of(repoList, (repo) => {
6159
6348
  const $scope9_id = _scope_id();
6160
6349
  const $for_content3__repo_pr_number__closures = /* @__PURE__ */ new Set();
@@ -6180,47 +6369,47 @@ var diff_view_default = _template("e", (input) => {
6180
6369
  _html(`<section class=repo-section${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}${_attr("hidden", !shownInRepo.length && !repo.pr && findState.hit?.repo !== repo.id)}>`);
6181
6370
  _if(() => {
6182
6371
  if (repoList.length > 1) {
6183
- const $scope25_id = _scope_id();
6184
- _html(`<button class=${collapsedRepos.has(repo.id) ? "\"repo-sep closed\"" : "repo-sep"}><span class=tree-chev>${collapsedRepos.has(repo.id) ? "▸" : "▾"}${_el_resume($scope25_id, "b")}</span><span class=mono>${_escape(repo.worktree)}${_el_resume($scope25_id, "c")}</span>`);
6372
+ const $scope30_id = _scope_id();
6373
+ _html(`<button class=${collapsedRepos.has(repo.id) ? "\"repo-sep closed\"" : "repo-sep"}><span class=tree-chev>${collapsedRepos.has(repo.id) ? "▸" : "▾"}${_el_resume($scope30_id, "b")}</span><span class=mono>${_escape(repo.worktree)}${_el_resume($scope30_id, "c")}</span>`);
6185
6374
  _if(() => {
6186
6375
  if (repo.pr) {
6187
- const $scope35_id = _scope_id();
6188
- _html(`<a class="chip pr"${_attr("href", `${repo.pr.url}/files`)} target=_blank rel=noopener${_attr("title", `${repo.pr.title} — ${repo.pr.headRefName} ${repo.head} vs ${repo.base} ${repo.baseSha}`)}>#<!>${_escape(repo.pr.number)}${_el_resume($scope35_id, "b")}</a>${_el_resume($scope35_id, "a")}<span class=dim>${_escape(repo.pr.title)}${_el_resume($scope35_id, "c")}</span>`);
6189
- _script($scope35_id, "e39");
6190
- _subscribe($for_content3__repo_baseSha__closures, _subscribe($for_content3__repo_base__closures, _subscribe($for_content3__repo_head__closures, _subscribe($for_content3__repo_pr_headRefName__closures, _subscribe($for_content3__repo_pr_title__closures, _subscribe($for_content3__repo_pr_url__closures, _subscribe($for_content3__repo_pr_number__closures, writeScope($scope35_id, {
6376
+ const $scope39_id = _scope_id();
6377
+ _html(`<a class="chip pr"${_attr("href", `${repo.pr.url}/files`)} target=_blank rel=noopener${_attr("title", `${repo.pr.title} — ${repo.pr.headRefName} ${repo.head} vs ${repo.base} ${repo.baseSha}`)}>#<!>${_escape(repo.pr.number)}${_el_resume($scope39_id, "b")}</a>${_el_resume($scope39_id, "a")}<span class=dim>${_escape(repo.pr.title)}${_el_resume($scope39_id, "c")}</span>`);
6378
+ _script($scope39_id, "e46");
6379
+ _subscribe($for_content3__repo_baseSha__closures, _subscribe($for_content3__repo_base__closures, _subscribe($for_content3__repo_head__closures, _subscribe($for_content3__repo_pr_headRefName__closures, _subscribe($for_content3__repo_pr_title__closures, _subscribe($for_content3__repo_pr_url__closures, _subscribe($for_content3__repo_pr_number__closures, writeScope($scope39_id, {
6191
6380
  Ca5: 2,
6192
6381
  Ca6: 2,
6193
6382
  Ca7: 2
6194
6383
  }))))))));
6195
6384
  return 0;
6196
6385
  } else {
6197
- const $scope36_id = _scope_id();
6198
- _html(`<span class=dim>${_escape(repo.full_name)}${_el_resume($scope36_id, "a")}</span>`);
6199
- _subscribe($for_content3__repo_full_name__closures, writeScope($scope36_id, {}));
6386
+ const $scope40_id = _scope_id();
6387
+ _html(`<span class=dim>${_escape(repo.full_name)}${_el_resume($scope40_id, "a")}</span>`);
6388
+ _subscribe($for_content3__repo_full_name__closures, writeScope($scope40_id, {}));
6200
6389
  return 1;
6201
6390
  }
6202
- }, $scope25_id, "d");
6203
- _html(`<span class="chip lane"${_attr("title", `${repo.pr ? "PR head" : "checked out"} ${repo.pr ? repo.pr.headRefName : repo.branch} ${repo.head}`)}>on <!>${repo.pr ? _escape(repo.pr.headRefName) : _escape(repo.branch)}${_el_resume($scope25_id, "f")}</span>${_el_resume($scope25_id, "e")}<span class=chip${_attr("title", `${repo.base} ${repo.baseSha}`)}>vs <!>${_escape(repo.base)}${_el_resume($scope25_id, "h")}</span>${_el_resume($scope25_id, "g")}`);
6391
+ }, $scope30_id, "d");
6392
+ _html(`<span class="chip lane"${_attr("title", `${repo.pr ? "PR head" : "checked out"} ${repo.pr ? repo.pr.headRefName : repo.branch} ${repo.head}`)}>on <!>${repo.pr ? _escape(repo.pr.headRefName) : _escape(repo.branch)}${_el_resume($scope30_id, "f")}</span>${_el_resume($scope30_id, "e")}<span class=chip${_attr("title", `${repo.base} ${repo.baseSha}`)}>vs <!>${_escape(repo.base)}${_el_resume($scope30_id, "h")}</span>${_el_resume($scope30_id, "g")}`);
6204
6393
  _if(() => {
6205
6394
  if (localDiffers(repo)) {
6206
- const $scope37_id = _scope_id();
6207
- _html(`<span class=chip${_attr("title", `checked out ${repo.branch} ${repo.localHead}`)}>local <!>${_escape(repo.branch)}${_el_resume($scope37_id, "b")}</span>${_el_resume($scope37_id, "a")}`);
6208
- _subscribe($for_content3__repo_localHead__closures, _subscribe($for_content3__repo_branch__closures, writeScope($scope37_id, { Ca9: 2 })));
6395
+ const $scope41_id = _scope_id();
6396
+ _html(`<span class=chip${_attr("title", `checked out ${repo.branch} ${repo.localHead}`)}>local <!>${_escape(repo.branch)}${_el_resume($scope41_id, "b")}</span>${_el_resume($scope41_id, "a")}`);
6397
+ _subscribe($for_content3__repo_localHead__closures, _subscribe($for_content3__repo_branch__closures, writeScope($scope41_id, { Ca9: 2 })));
6209
6398
  return 0;
6210
6399
  }
6211
- }, $scope25_id, "i", 1, 1, 1, 0, 1);
6212
- _html(`</button>${_el_resume($scope25_id, "a")}`);
6213
- _script($scope25_id, "e40");
6214
- _subscribe($for_content3__repo_branch__closures, _subscribe($for_content3__repo_baseSha__closures, _subscribe($for_content3__repo_base__closures, _subscribe($for_content3__repo_head__closures, _subscribe($for_content3__repo_worktree__closures, _subscribe($for_content3__repo_pr__closures, _subscribe($for_content3__repo_id__closures, _subscribe($for_content3__repo__closures, _subscribe($collapsedRepos__closures, writeScope($scope25_id, { Cd4: 1 }))))))))));
6400
+ }, $scope30_id, "i", 1, 1, 1, 0, 1);
6401
+ _html(`</button>${_el_resume($scope30_id, "a")}`);
6402
+ _script($scope30_id, "e47");
6403
+ _subscribe($for_content3__repo_branch__closures, _subscribe($for_content3__repo_baseSha__closures, _subscribe($for_content3__repo_base__closures, _subscribe($for_content3__repo_head__closures, _subscribe($for_content3__repo_worktree__closures, _subscribe($for_content3__repo_pr__closures, _subscribe($for_content3__repo_id__closures, _subscribe($for_content3__repo__closures, _subscribe($collapsedRepos__closures, writeScope($scope30_id, { Cd1: 1 }))))))))));
6215
6404
  return 0;
6216
6405
  } else {
6217
- const $scope28_id = _scope_id();
6406
+ const $scope33_id = _scope_id();
6218
6407
  _html("<p class=repo-meta>");
6219
6408
  _if(() => {
6220
6409
  if (repo.pr) {
6221
- const $scope38_id = _scope_id();
6222
- _html(`<a class="chip pr"${_attr("href", `${repo.pr.url}/files`)} target=_blank rel=noopener${_attr("title", `${repo.pr.title} — ${repo.pr.headRefName} ${repo.head} vs ${repo.base} ${repo.baseSha}`)}>#<!>${_escape(repo.pr.number)}${_el_resume($scope38_id, "b")}</a>${_el_resume($scope38_id, "a")}<span class=dim>${_escape(repo.pr.title)}${_el_resume($scope38_id, "c")}</span>`);
6223
- _subscribe($for_content3__repo_baseSha__closures, _subscribe($for_content3__repo_base__closures, _subscribe($for_content3__repo_head__closures, _subscribe($for_content3__repo_pr_headRefName__closures, _subscribe($for_content3__repo_pr_title__closures, _subscribe($for_content3__repo_pr_url__closures, _subscribe($for_content3__repo_pr_number__closures, writeScope($scope38_id, {
6410
+ const $scope42_id = _scope_id();
6411
+ _html(`<a class="chip pr"${_attr("href", `${repo.pr.url}/files`)} target=_blank rel=noopener${_attr("title", `${repo.pr.title} — ${repo.pr.headRefName} ${repo.head} vs ${repo.base} ${repo.baseSha}`)}>#<!>${_escape(repo.pr.number)}${_el_resume($scope42_id, "b")}</a>${_el_resume($scope42_id, "a")}<span class=dim>${_escape(repo.pr.title)}${_el_resume($scope42_id, "c")}</span>`);
6412
+ _subscribe($for_content3__repo_baseSha__closures, _subscribe($for_content3__repo_base__closures, _subscribe($for_content3__repo_head__closures, _subscribe($for_content3__repo_pr_headRefName__closures, _subscribe($for_content3__repo_pr_title__closures, _subscribe($for_content3__repo_pr_url__closures, _subscribe($for_content3__repo_pr_number__closures, writeScope($scope42_id, {
6224
6413
  Ca1: 1,
6225
6414
  Ca2: 1,
6226
6415
  Ca3: 1,
@@ -6231,21 +6420,21 @@ var diff_view_default = _template("e", (input) => {
6231
6420
  }))))))));
6232
6421
  return 0;
6233
6422
  }
6234
- }, $scope28_id, "a");
6235
- _html(`<span class="chip lane"${_attr("title", `${repo.pr ? "PR head" : "checked out"} ${repo.pr ? repo.pr.headRefName : repo.branch} ${repo.head}`)}>on <!>${repo.pr ? _escape(repo.pr.headRefName) : _escape(repo.branch)}${_el_resume($scope28_id, "c")}</span>${_el_resume($scope28_id, "b")}<span class=chip${_attr("title", `${repo.base} ${repo.baseSha}`)}>vs <!>${_escape(repo.base)}${_el_resume($scope28_id, "e")}</span>${_el_resume($scope28_id, "d")}`);
6423
+ }, $scope33_id, "a");
6424
+ _html(`<span class="chip lane"${_attr("title", `${repo.pr ? "PR head" : "checked out"} ${repo.pr ? repo.pr.headRefName : repo.branch} ${repo.head}`)}>on <!>${repo.pr ? _escape(repo.pr.headRefName) : _escape(repo.branch)}${_el_resume($scope33_id, "c")}</span>${_el_resume($scope33_id, "b")}<span class=chip${_attr("title", `${repo.base} ${repo.baseSha}`)}>vs <!>${_escape(repo.base)}${_el_resume($scope33_id, "e")}</span>${_el_resume($scope33_id, "d")}`);
6236
6425
  _if(() => {
6237
6426
  if (localDiffers(repo)) {
6238
- const $scope39_id = _scope_id();
6239
- _html(`<span class=chip${_attr("title", `checked out ${repo.branch} ${repo.localHead}`)}>local <!>${_escape(repo.branch)}${_el_resume($scope39_id, "b")}</span>${_el_resume($scope39_id, "a")}`);
6240
- _subscribe($for_content3__repo_localHead__closures, _subscribe($for_content3__repo_branch__closures, writeScope($scope39_id, {
6427
+ const $scope43_id = _scope_id();
6428
+ _html(`<span class=chip${_attr("title", `checked out ${repo.branch} ${repo.localHead}`)}>local <!>${_escape(repo.branch)}${_el_resume($scope43_id, "b")}</span>${_el_resume($scope43_id, "a")}`);
6429
+ _subscribe($for_content3__repo_localHead__closures, _subscribe($for_content3__repo_branch__closures, writeScope($scope43_id, {
6241
6430
  Ca9: 3,
6242
6431
  Caa: 1
6243
6432
  })));
6244
6433
  return 0;
6245
6434
  }
6246
- }, $scope28_id, "f", 1, 1, 1, 0, 1);
6435
+ }, $scope33_id, "f", 1, 1, 1, 0, 1);
6247
6436
  _html("</p>");
6248
- _subscribe($for_content3__repo_branch__closures, _subscribe($for_content3__repo_baseSha__closures, _subscribe($for_content3__repo_base__closures, _subscribe($for_content3__repo_head__closures, _subscribe($for_content3__repo_pr__closures, _subscribe($for_content3__repo__closures, writeScope($scope28_id, {
6437
+ _subscribe($for_content3__repo_branch__closures, _subscribe($for_content3__repo_baseSha__closures, _subscribe($for_content3__repo_base__closures, _subscribe($for_content3__repo_head__closures, _subscribe($for_content3__repo_pr__closures, _subscribe($for_content3__repo__closures, writeScope($scope33_id, {
6249
6438
  Cx: 1,
6250
6439
  Cz: 1,
6251
6440
  Ca5: 1,
@@ -6270,9 +6459,9 @@ var diff_view_default = _template("e", (input) => {
6270
6459
  _html(`<details${_attr_details_or_dialog_open($scope12_id, "a", expanded)} class=file${_attr("data-key", file.key)}${_attr("hidden", !shownKeySet.has(file.key))}><summary><span${_attr_class(["status", file.status])}>${_escape(file.status)}${_el_resume($scope12_id, "c")}</span>${_el_resume($scope12_id, "b")}<span class=path${_attr("title", file.path)}><bdi>${_escape(file.path)}${_el_resume($scope12_id, "e")}</bdi></span>${_el_resume($scope12_id, "d")}`);
6271
6460
  _if(() => {
6272
6461
  if (fileComments.length) {
6273
- const $scope40_id = _scope_id();
6274
- _html(`<span class=chip>💬 <!>${_escape(fileComments.length)}${_el_resume($scope40_id, "a")}</span>`);
6275
- writeScope($scope40_id, {});
6462
+ const $scope44_id = _scope_id();
6463
+ _html(`<span class=chip>💬 <!>${_escape(fileComments.length)}${_el_resume($scope44_id, "a")}</span>`);
6464
+ writeScope($scope44_id, {});
6276
6465
  return 0;
6277
6466
  }
6278
6467
  }, $scope12_id, "f", 1, 1, 1, 0, 1);
@@ -6281,28 +6470,28 @@ var diff_view_default = _template("e", (input) => {
6281
6470
  }, "e1", $scope12_id))} type=checkbox>${_el_resume($scope12_id, "h")}<span class=dim>viewed</span></label>${_el_resume($scope12_id, "g")}</summary>`);
6282
6471
  _if(() => {
6283
6472
  if (file.binary) {
6284
- const $scope41_id = _scope_id();
6473
+ const $scope45_id = _scope_id();
6285
6474
  _html("<p class=\"dim diff-pad\">binary file</p>");
6286
- writeScope($scope41_id, {});
6475
+ writeScope($scope45_id, {});
6287
6476
  return 0;
6288
6477
  } else if (file.tooLarge) {
6289
- const $scope42_id = _scope_id();
6478
+ const $scope46_id = _scope_id();
6290
6479
  _html("<p class=\"dim diff-pad\">file too large to display</p>");
6291
- writeScope($scope42_id, {});
6480
+ writeScope($scope46_id, {});
6292
6481
  return 1;
6293
6482
  } else if (file.old == null && file.new == null) {
6294
- const $scope43_id = _scope_id();
6483
+ const $scope47_id = _scope_id();
6295
6484
  _html("<p class=\"dim diff-pad\">file could not be read</p>");
6296
- writeScope($scope43_id, {});
6485
+ writeScope($scope47_id, {});
6297
6486
  return 2;
6298
6487
  } else if (expanded) {
6299
6488
  const $scope15_id = _scope_id();
6300
6489
  _if(() => {
6301
6490
  {
6302
- const $scope26_id = _scope_id();
6303
- _html(`<div class=diff-wait></div>${_el_resume($scope26_id, "a")}`);
6304
- _script($scope26_id, "e41");
6305
- writeScope($scope26_id, {});
6491
+ const $scope31_id = _scope_id();
6492
+ _html(`<div class=diff-wait></div>${_el_resume($scope31_id, "a")}`);
6493
+ _script($scope31_id, "e48");
6494
+ writeScope($scope31_id, {});
6306
6495
  return 0;
6307
6496
  }
6308
6497
  }, $scope15_id, "a", 1, 1, 1, 0, 1);
@@ -6311,7 +6500,7 @@ var diff_view_default = _template("e", (input) => {
6311
6500
  }
6312
6501
  }, $scope12_id, "i");
6313
6502
  _html(`</details>${_el_resume($scope12_id, "a")}`);
6314
- _script($scope12_id, "e42");
6503
+ _script($scope12_id, "e49");
6315
6504
  _subscribe($toggleViewed2__closures, _subscribe($commentsByFile__closures, _subscribe($shownKeySet__closures, _subscribe($viewed__closures, writeScope($scope12_id, {
6316
6505
  k: file,
6317
6506
  l: file?.key,
@@ -6325,8 +6514,8 @@ var diff_view_default = _template("e", (input) => {
6325
6514
  a0: $for_content4__file__closures,
6326
6515
  a1: $for_content4__file_key__closures,
6327
6516
  a2: $for_content4__fileComments__closures,
6328
- Ccq: 1,
6329
- Cde: 1
6517
+ Ccn: 1,
6518
+ Cdb: 1
6330
6519
  })))));
6331
6520
  }, "key", $scope11_id, "a", 1, 1, 1, "</div>", 1);
6332
6521
  _subscribe($for_content3__repoFiles__closures, writeScope($scope11_id, {}));
@@ -6371,98 +6560,102 @@ var diff_view_default = _template("e", (input) => {
6371
6560
  a0: $for_content3__repo_worktree__closures,
6372
6561
  ab: $for_content3__repoFiles__closures
6373
6562
  });
6374
- }, "id", $scope0_id, "a1");
6375
- _html(`</div>${_el_resume($scope0_id, "t")}</div>`);
6376
- _if(() => {}, $scope0_id, "a2");
6563
+ }, "id", $scope0_id, "z");
6564
+ _html(`</div>${_el_resume($scope0_id, "s")}</div>`);
6565
+ _if(() => {}, $scope0_id, "a0");
6377
6566
  _html("</div>");
6378
- _script($scope0_id, "e45");
6379
- _script($scope0_id, "e46");
6567
+ _script($scope0_id, "e52");
6568
+ _script($scope0_id, "e53");
6380
6569
  writeScope($scope0_id, {
6381
- a5: input.workspaceId,
6382
- a6: input.focusPr,
6383
- a7: input.active,
6384
- a8: input.focusNonce,
6385
- a9: input.sessions,
6386
- ab: input.onSent,
6387
- ac: input.onExit,
6388
- ad: input.sessions?.[0]?.title,
6389
- ae: input.sessions?.[0]?.agent,
6390
- af: repos,
6391
- ag: comments,
6392
- ai: viewed,
6393
- ak: viewed?.size,
6394
- al: draft,
6395
- an: error,
6396
- ao: loading,
6397
- aq: copied,
6398
- ar: sending,
6399
- as: sendTarget,
6400
- au: fileFilter,
6401
- av: uncommitted,
6402
- aw: treeOpen,
6403
- az: findTick,
6404
- b1: findState?.query,
6405
- b3: findState?.hit,
6406
- b4: findState?.hit?.key,
6407
- b5: findState?.hit?.repo,
6408
- b6: collapsedDirs,
6409
- b7: collapsedRepos,
6410
- b8: dismissedDrift,
6411
- b9: toggleRepo,
6412
- bb: nearBox.cbs,
6413
- bc: nearBox.io,
6414
- be: observeNear,
6415
- bf: focusPrSection,
6416
- bh: load,
6417
- bj: loadReview,
6418
- bl: repoList,
6419
- bn: repoList.length,
6420
- bo: allFiles,
6421
- bp: allFiles?.length,
6422
- bq: fileMatch,
6423
- bs: fileFiltered,
6424
- bt: findKeys,
6425
- bv: shownFiles,
6426
- bz: shownKeySet,
6427
- c0: filesByRepo,
6428
- c1: shownByRepo,
6429
- c3: commentsByFile,
6430
- c4: sendPick,
6431
- c5: localDiffers,
6432
- c7: driftRepos,
6433
- ca: dismissDrift,
6434
- cb: reload,
6435
- cc: toggleViewed,
6436
- cd: saveComment,
6437
- ce: removeComment,
6438
- cf: clearComments,
6439
- ci: copyMarkdown,
6440
- cj: sendTo,
6441
- ck: jumpTo,
6442
- cl: openFind,
6443
- cm: onFindState,
6444
- d3: $collapsedDirs__closures,
6445
- cq: $viewed__closures,
6446
- de: $commentsByFile__closures,
6447
- dd: $shownByRepo__closures,
6448
- co: $si__input_sessions_0_title && $input_sessions_0_title__closures,
6449
- cp: $si__input_sessions_0_agent && $input_sessions_0_agent__closures,
6450
- cw: $sending__closures,
6451
- cn: $si__input_sessions && $input_sessions__closures,
6452
- cx: $sendTarget__closures,
6453
- r: _existing_scope($childScope),
6454
- d4: $collapsedRepos__closures,
6455
- cs: $draft__closures,
6456
- di: $saveComment2__closures,
6457
- dj: $removeComment2__closures,
6458
- db: $shownKeySet__closures,
6459
- dh: $toggleViewed2__closures,
6460
- d2: $findState_hit_repo__closures,
6461
- d7: $repoList_length__closures
6570
+ a3: input.workspaceId,
6571
+ a4: input.focusPr,
6572
+ a5: input.active,
6573
+ a6: input.focusNonce,
6574
+ a7: input.sessions,
6575
+ a9: input.onSent,
6576
+ aa: input.onExit,
6577
+ ab: input.sessions?.[0]?.title,
6578
+ ac: input.sessions?.[0]?.agent,
6579
+ ad: repos,
6580
+ ae: comments,
6581
+ ag: viewed,
6582
+ ai: viewed?.size,
6583
+ aj: draft,
6584
+ al: error,
6585
+ am: loading,
6586
+ an: copied,
6587
+ ao: sending,
6588
+ ap: sendTarget,
6589
+ ar: fileFilter,
6590
+ as: uncommitted,
6591
+ at: treeOpen,
6592
+ aw: findTick,
6593
+ ay: findState?.query,
6594
+ b0: findState?.hit,
6595
+ b1: findState?.hit?.key,
6596
+ b2: findState?.hit?.repo,
6597
+ b3: collapsedDirs,
6598
+ b4: collapsedRepos,
6599
+ b5: dismissedDrift,
6600
+ b6: toggleRepo,
6601
+ b8: nearBox.cbs,
6602
+ b9: nearBox.io,
6603
+ bb: observeNear,
6604
+ bc: focusPrSection,
6605
+ be: load,
6606
+ bg: loadReview,
6607
+ bi: repoList,
6608
+ bk: repoList.length,
6609
+ bl: allFiles,
6610
+ bm: allFiles?.length,
6611
+ bn: fileMatch,
6612
+ bp: fileFiltered,
6613
+ bq: findKeys,
6614
+ bs: shownFiles,
6615
+ bw: shownKeySet,
6616
+ bx: filesByRepo,
6617
+ by: shownByRepo,
6618
+ c0: commentsByFile,
6619
+ c1: sendPick,
6620
+ c2: localDiffers,
6621
+ c4: driftRepos,
6622
+ c7: dismissDrift,
6623
+ c8: reload,
6624
+ c9: toggleViewed,
6625
+ ca: saveComment,
6626
+ cb: removeComment,
6627
+ cc: clearComments,
6628
+ cf: copyMarkdown,
6629
+ cg: sendTo,
6630
+ ch: jumpTo,
6631
+ ci: openFind,
6632
+ cj: onFindState,
6633
+ d0: $collapsedDirs__closures,
6634
+ cn: $viewed__closures,
6635
+ db: $commentsByFile__closures,
6636
+ da: $shownByRepo__closures,
6637
+ cl: $si__input_sessions_0_title && $input_sessions_0_title__closures,
6638
+ cm: $si__input_sessions_0_agent && $input_sessions_0_agent__closures,
6639
+ ct: $sending__closures,
6640
+ ck: $si__input_sessions && $input_sessions__closures,
6641
+ cu: $sendTarget__closures,
6642
+ q: _existing_scope($childScope),
6643
+ cq: $error__closures,
6644
+ cw: $uncommitted__closures,
6645
+ cr: $loading__closures,
6646
+ dd: $driftRepos__closures,
6647
+ d1: $collapsedRepos__closures,
6648
+ cp: $draft__closures,
6649
+ dg: $saveComment2__closures,
6650
+ dh: $removeComment2__closures,
6651
+ d8: $shownKeySet__closures,
6652
+ df: $toggleViewed2__closures,
6653
+ cz: $findState_hit_repo__closures,
6654
+ d4: $repoList_length__closures
6462
6655
  });
6463
6656
  _resume_branch($scope0_id);
6464
6657
  });
6465
- _template("x", (input) => {
6658
+ _template("y", (input) => {
6466
6659
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
6467
6660
  const $scope0_id = _scope_id();
6468
6661
  _set_serialize_reason({
@@ -6477,7 +6670,7 @@ _template("x", (input) => {
6477
6670
  });
6478
6671
  _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
6479
6672
  });
6480
- _template("C", (input) => {
6673
+ _template("D", (input) => {
6481
6674
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
6482
6675
  const $scope0_id = _scope_id();
6483
6676
  _set_serialize_reason({
@@ -6492,7 +6685,7 @@ _template("C", (input) => {
6492
6685
  });
6493
6686
  _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
6494
6687
  });
6495
- _template("v", (input) => {
6688
+ _template("w", (input) => {
6496
6689
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
6497
6690
  const $scope0_id = _scope_id();
6498
6691
  _set_serialize_reason({
@@ -6507,7 +6700,7 @@ _template("v", (input) => {
6507
6700
  });
6508
6701
  _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
6509
6702
  });
6510
- _template("B", (input) => {
6703
+ _template("C", (input) => {
6511
6704
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
6512
6705
  const $scope0_id = _scope_id();
6513
6706
  _set_serialize_reason({
@@ -6723,7 +6916,7 @@ var $class = [
6723
6916
  "\"meter-fill warm\"",
6724
6917
  "\"meter-fill hot warm\""
6725
6918
  ];
6726
- var usage_stats_default = _template("p", (input) => {
6919
+ var usage_stats_default = _template("q", (input) => {
6727
6920
  const $scope0_reason = _scope_reason(), $sg__input_onClose = _serialize_guard($scope0_reason, 0);
6728
6921
  const $scope0_id = _scope_id();
6729
6922
  const $usage_error__closures = /* @__PURE__ */ new Set();
@@ -6738,12 +6931,12 @@ var usage_stats_default = _template("p", (input) => {
6738
6931
  } catch (err) {
6739
6932
  usage = { error: String(err.message || err) };
6740
6933
  }
6741
- }, "p0", $scope0_id);
6934
+ }, "q0", $scope0_id);
6742
6935
  const refresh = _resume(async () => {
6743
6936
  refreshing = true;
6744
6937
  await load(true);
6745
6938
  refreshing = false;
6746
- }, "p1", $scope0_id);
6939
+ }, "q1", $scope0_id);
6747
6940
  _set_serialize_reason({
6748
6941
  0: $sg__input_onClose,
6749
6942
  2: $sg__input_onClose
@@ -6754,8 +6947,8 @@ var usage_stats_default = _template("p", (input) => {
6754
6947
  class: "usage-modal",
6755
6948
  onClose: _resume(function() {
6756
6949
  input.onClose();
6757
- }, "p2", $scope0_id),
6758
- content: _content("p4", () => {
6950
+ }, "q2", $scope0_id),
6951
+ content: _content("q4", () => {
6759
6952
  _scope_reason();
6760
6953
  const $scope1_id = _scope_id();
6761
6954
  _html(`<header class=manage-head><div><h2>Usage</h2></div><button class=${refreshing ? "\"icon-btn spinning\"" : "icon-btn"} title="Refresh usage"${_attr("disabled", refreshing)}>`);
@@ -6812,12 +7005,12 @@ var usage_stats_default = _template("p", (input) => {
6812
7005
  return 2;
6813
7006
  }
6814
7007
  }, $scope1_id, "c", 1, 1, 1, 0, 1);
6815
- _script($scope1_id, "p3");
7008
+ _script($scope1_id, "q3");
6816
7009
  _subscribe($refreshing__closures, _subscribe($usage__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })));
6817
7010
  _resume_branch($scope1_id);
6818
7011
  })
6819
7012
  });
6820
- _script($scope0_id, "p5");
7013
+ _script($scope0_id, "q5");
6821
7014
  writeScope($scope0_id, {
6822
7015
  d: input.onClose,
6823
7016
  f: usage?.error,
@@ -6900,9 +7093,10 @@ var prompt_dialog_default = _template("k", (input) => {
6900
7093
  //#endregion
6901
7094
  //#region src/tags/work-view.marko
6902
7095
  var api$1;
6903
- var work_view_default = _template("q", (input) => {
7096
+ var work_view_default = _template("r", (input) => {
6904
7097
  const $scope0_reason = _scope_reason(), $sg__input_agents = _serialize_guard($scope0_reason, 8), $sg__input_workspace = _serialize_guard($scope0_reason, 2), $si__input_workspace = _serialize_if($scope0_reason, 2), $si__input_active = _serialize_if($scope0_reason, 4), $si__input_agents = _serialize_if($scope0_reason, 8), $si__input_preferred = _serialize_if($scope0_reason, 5);
6905
7098
  const $scope0_id = _scope_id();
7099
+ const $error__closures = /* @__PURE__ */ new Set();
6906
7100
  const $input_active__closures = /* @__PURE__ */ new Set();
6907
7101
  const $input_agents__closures = /* @__PURE__ */ new Set();
6908
7102
  const $view__closures = /* @__PURE__ */ new Set();
@@ -6929,7 +7123,7 @@ var work_view_default = _template("q", (input) => {
6929
7123
  focusPr = pr || "";
6930
7124
  if (pr) focusNonce++;
6931
7125
  view = "diff";
6932
- }, "q0", $scope0_id);
7126
+ }, "r0", $scope0_id);
6933
7127
  const shownSessions = sessions ?? input.allStatus?.[ws.id]?.sessions ?? null;
6934
7128
  const curTab = (() => {
6935
7129
  if (tab && shownSessions?.some((s) => s.id === tab)) return tab;
@@ -6956,7 +7150,7 @@ var work_view_default = _template("q", (input) => {
6956
7150
  } finally {
6957
7151
  spawning = false;
6958
7152
  }
6959
- }, "q1", $scope0_id);
7153
+ }, "r1", $scope0_id);
6960
7154
  const loadMem = {
6961
7155
  wanted: false,
6962
7156
  run: void 0
@@ -6978,11 +7172,11 @@ var work_view_default = _template("q", (input) => {
6978
7172
  sessions = sessions || [];
6979
7173
  error = String(err);
6980
7174
  }
6981
- }, "q2", $scope0_id);
7175
+ }, "r2", $scope0_id);
6982
7176
  const loadSessions = _resume((autoCreate) => {
6983
7177
  if (autoCreate) loadMem.wanted = true;
6984
7178
  return (loadMem.run ??= coalesce(loadBody))();
6985
- }, "q3", $scope0_id);
7179
+ }, "r3", $scope0_id);
6986
7180
  const closeSession = _resume(async (id) => {
6987
7181
  try {
6988
7182
  await api$1(`/api/sessions/${id}`, { method: "DELETE" });
@@ -6991,7 +7185,7 @@ var work_view_default = _template("q", (input) => {
6991
7185
  } catch (err) {
6992
7186
  error = `Kill session failed: ${String(err.message || err)}`;
6993
7187
  }
6994
- }, "q4", $scope0_id);
7188
+ }, "r4", $scope0_id);
6995
7189
  const renameSession = _resume(async (id, title) => {
6996
7190
  title = title.trim();
6997
7191
  if (!title) return;
@@ -7004,7 +7198,7 @@ var work_view_default = _template("q", (input) => {
7004
7198
  headers: { "content-type": "application/json" },
7005
7199
  body: JSON.stringify({ title })
7006
7200
  });
7007
- }, "q5", $scope0_id);
7201
+ }, "r5", $scope0_id);
7008
7202
  const newSession = _resume(async (wsId, agent) => {
7009
7203
  if (wsId === ws.id) {
7010
7204
  const session = await createSession(agent, true);
@@ -7021,10 +7215,10 @@ var work_view_default = _template("q", (input) => {
7021
7215
  } catch (err) {
7022
7216
  error = String(err.message || err);
7023
7217
  }
7024
- }, "q6", $scope0_id);
7218
+ }, "r6", $scope0_id);
7025
7219
  const promptRename = _resume((s) => {
7026
7220
  renaming = s;
7027
- }, "q7", $scope0_id);
7221
+ }, "r7", $scope0_id);
7028
7222
  _html("<div class=work-view>");
7029
7223
  _set_serialize_reason({
7030
7224
  0: _serialize_guard($scope0_reason, 0),
@@ -7051,47 +7245,57 @@ var work_view_default = _template("q", (input) => {
7051
7245
  tab: curTab,
7052
7246
  tabChange: _resume(function(id) {
7053
7247
  tab = id;
7054
- }, "q8", $scope0_id),
7248
+ }, "r8", $scope0_id),
7055
7249
  view,
7056
7250
  viewChange: _resume((_new_view) => {
7057
7251
  view = _new_view;
7058
- }, "q9", $scope0_id),
7252
+ }, "r9", $scope0_id),
7059
7253
  drawerOpen,
7060
7254
  drawerOpenChange: _resume((_new_drawerOpen) => {
7061
7255
  drawerOpen = _new_drawerOpen;
7062
- }, "q10", $scope0_id),
7256
+ }, "r10", $scope0_id),
7063
7257
  allWorkspaces: input.allWorkspaces,
7064
7258
  allStatus: input.allStatus,
7065
7259
  agents: input.agents,
7066
7260
  onError: _resume(function(message) {
7067
7261
  error = message;
7068
- }, "q11", $scope0_id),
7262
+ }, "r11", $scope0_id),
7069
7263
  onSelectWorkspace: input.onSelectWorkspace,
7070
7264
  onOpenSession: input.onOpenSession,
7071
7265
  onManage: input.onManage,
7072
7266
  onNew: input.onNew,
7073
7267
  onUsage: _resume(function() {
7074
7268
  usageOpen = true;
7075
- }, "q12", $scope0_id),
7269
+ }, "r12", $scope0_id),
7076
7270
  onNewSession: _resume(function(wsId, agent) {
7077
7271
  newSession(wsId, agent);
7078
- }, "q13", $scope0_id),
7272
+ }, "r13", $scope0_id),
7079
7273
  onCloseSession: _resume(function(id) {
7080
7274
  closeSession(id);
7081
- }, "q14", $scope0_id),
7275
+ }, "r14", $scope0_id),
7082
7276
  onRenameSession: _resume(function(s) {
7083
7277
  promptRename(s);
7084
- }, "q15", $scope0_id),
7278
+ }, "r15", $scope0_id),
7085
7279
  onReviewOpened: _resume(function(pr) {
7086
7280
  openDiff(pr);
7087
- }, "q16", $scope0_id)
7281
+ }, "r16", $scope0_id)
7088
7282
  });
7089
7283
  _html("<div class=main-col>");
7090
7284
  _if(() => {
7091
7285
  if (error) {
7092
7286
  const $scope5_id = _scope_id();
7093
- _html(`<p class=toast-error>${_escape(error)}${_el_resume($scope5_id, "a")}<button title=Dismiss>×</button>${_el_resume($scope5_id, "b")}</p>`);
7094
- _script($scope5_id, "q30");
7287
+ toast_default({
7288
+ onDismiss: _resume(function() {
7289
+ error = null;
7290
+ }, "r17", $scope5_id),
7291
+ content: _content_resume("r31", () => {
7292
+ _scope_reason();
7293
+ const $scope6_id = _scope_id();
7294
+ _html(`${_escape(error)}${_el_resume($scope6_id, "a")}`);
7295
+ _subscribe($error__closures, writeScope($scope6_id, { _: _scope_with_id($scope5_id) }));
7296
+ _resume_branch($scope6_id);
7297
+ }, $scope5_id)
7298
+ });
7095
7299
  writeScope($scope5_id, {});
7096
7300
  return 0;
7097
7301
  }
@@ -7109,10 +7313,10 @@ var work_view_default = _template("q", (input) => {
7109
7313
  onSent: _resume(function(sessionId) {
7110
7314
  tab = sessionId;
7111
7315
  view = "term";
7112
- }, "q17", $scope0_id),
7316
+ }, "r18", $scope0_id),
7113
7317
  onExit: _resume(function() {
7114
7318
  view = "term";
7115
- }, "q18", $scope0_id)
7319
+ }, "r19", $scope0_id)
7116
7320
  });
7117
7321
  _show_end($scope0_id, "f", $show);
7118
7322
  _html(`<div class=${view === "diff" ? "\"term-area as-bar\"" : "term-area"}>`);
@@ -7151,31 +7355,31 @@ var work_view_default = _template("q", (input) => {
7151
7355
  sessions: shownSessions,
7152
7356
  onNewSession: _resume(function(agent) {
7153
7357
  newSession(ws.id, agent);
7154
- }, "q19", $scope2_id),
7358
+ }, "r20", $scope2_id),
7155
7359
  onOpenTab: _resume(function(id) {
7156
7360
  tab = id;
7157
- }, "q20", $scope2_id),
7361
+ }, "r21", $scope2_id),
7158
7362
  onCloseSession: _resume(function(id) {
7159
7363
  closeSession(id);
7160
- }, "q21", $scope2_id),
7364
+ }, "r22", $scope2_id),
7161
7365
  onRenameSession: _resume(function(id) {
7162
7366
  const target = (shownSessions || []).find((x) => x.id === id);
7163
7367
  if (target) renaming = target;
7164
- }, "q22", $scope2_id),
7368
+ }, "r23", $scope2_id),
7165
7369
  active: input.active && view === "term" && s.id === curTab,
7166
7370
  mode: view,
7167
7371
  onToggleDiff: _resume(function() {
7168
7372
  openDiff();
7169
- }, "q23", $scope2_id),
7373
+ }, "r24", $scope2_id),
7170
7374
  onExitReview: _resume(function() {
7171
7375
  view = "term";
7172
- }, "q24", $scope2_id),
7376
+ }, "r25", $scope2_id),
7173
7377
  onOpenNav: _resume(function() {
7174
7378
  drawerOpen = true;
7175
- }, "q25", $scope2_id),
7379
+ }, "r26", $scope2_id),
7176
7380
  onManage: _resume(function() {
7177
7381
  input.onManage?.(ws.id);
7178
- }, "q26", $scope2_id)
7382
+ }, "r27", $scope2_id)
7179
7383
  });
7180
7384
  _show_end($scope2_id, "d", $show2);
7181
7385
  _subscribe($newSession2__closures, _subscribe($closeSession2__closures, _subscribe($curTab__closures, _subscribe($shownSessions__closures, _subscribe($si__input_workspace && $ws_name__closures, _subscribe($si__input_workspace && $ws_id__closures, _subscribe($view__closures, _subscribe($si__input_agents && $input_agents__closures, _subscribe($si__input_active && $input_active__closures, writeScope($scope2_id, {
@@ -7187,7 +7391,7 @@ var work_view_default = _template("q", (input) => {
7187
7391
  if (!shownSessions.length) {
7188
7392
  const $scope3_id = _scope_id();
7189
7393
  _html(`<div class=empty-sess><p class=dim>No sessions in this workspace.</p><button class="btn primary"${_attr("disabled", spawning)}>${spawning ? "Starting…" : `Start ${_escape(`${input.preferred || "claude"}`)}`}${_el_resume($scope3_id, "b")}</button>${_el_resume($scope3_id, "a")}</div>`);
7190
- _script($scope3_id, "q31");
7394
+ _script($scope3_id, "r32");
7191
7395
  _subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope3_id, {})));
7192
7396
  return 0;
7193
7397
  }
@@ -7195,9 +7399,9 @@ var work_view_default = _template("q", (input) => {
7195
7399
  writeScope($scope1_id, {});
7196
7400
  return 0;
7197
7401
  } else {
7198
- const $scope7_id = _scope_id();
7402
+ const $scope8_id = _scope_id();
7199
7403
  _html("<p class=\"dim pad-inline\">Loading sessions…</p>");
7200
- writeScope($scope7_id, {});
7404
+ writeScope($scope8_id, {});
7201
7405
  return 1;
7202
7406
  }
7203
7407
  }, $scope0_id, "g", 1, 1, 1, "</div>");
@@ -7207,14 +7411,14 @@ var work_view_default = _template("q", (input) => {
7207
7411
  const $scope4_id = _scope_id();
7208
7412
  usage_stats_default({ onClose: _resume(function() {
7209
7413
  usageOpen = false;
7210
- }, "q27", $scope4_id) });
7414
+ }, "r28", $scope4_id) });
7211
7415
  writeScope($scope4_id, {});
7212
7416
  return 0;
7213
7417
  }
7214
7418
  }, $scope0_id, "h");
7215
7419
  _if(() => {
7216
7420
  if (renaming) {
7217
- const $scope6_id = _scope_id();
7421
+ const $scope7_id = _scope_id();
7218
7422
  const $childScope4 = _peek_scope_id();
7219
7423
  prompt_dialog_default({
7220
7424
  label: "Rename session",
@@ -7223,21 +7427,21 @@ var work_view_default = _template("q", (input) => {
7223
7427
  onSubmit: _resume(function(title) {
7224
7428
  renameSession(renaming.id, title);
7225
7429
  renaming = null;
7226
- }, "q28", $scope6_id),
7430
+ }, "r29", $scope7_id),
7227
7431
  onCancel: _resume(function() {
7228
7432
  renaming = null;
7229
- }, "q29", $scope6_id)
7433
+ }, "r30", $scope7_id)
7230
7434
  });
7231
- writeScope($scope6_id, { a: _existing_scope($childScope4) });
7435
+ writeScope($scope7_id, { a: _existing_scope($childScope4) });
7232
7436
  return 0;
7233
7437
  }
7234
7438
  }, $scope0_id, "i");
7235
7439
  _html("</div>");
7236
- _script($scope0_id, "q32");
7237
- _script($scope0_id, "q33");
7238
- _script($scope0_id, "q34");
7239
- _script($scope0_id, "q35");
7240
- _script($scope0_id, "q36");
7440
+ _script($scope0_id, "r33");
7441
+ _script($scope0_id, "r34");
7442
+ _script($scope0_id, "r35");
7443
+ _script($scope0_id, "r36");
7444
+ _script($scope0_id, "r37");
7241
7445
  writeScope($scope0_id, {
7242
7446
  m: input.allStatus,
7243
7447
  n: input.active,
@@ -7272,6 +7476,7 @@ var work_view_default = _template("q", (input) => {
7272
7476
  b0: newSession,
7273
7477
  b1: promptRename,
7274
7478
  a: _existing_scope($childScope),
7479
+ b6: $error__closures,
7275
7480
  d: _existing_scope($childScope2),
7276
7481
  b2: $si__input_active && $input_active__closures,
7277
7482
  b4: $si__input_agents && $input_agents__closures,
@@ -7374,31 +7579,41 @@ var _page_default = _template("b", (input) => {
7374
7579
  _if(() => {
7375
7580
  if (error && loaded) {
7376
7581
  const $scope6_id = _scope_id();
7377
- _html(`<p class=toast-error>${_escape(error)}${_el_resume($scope6_id, "a")} <button>×</button>${_el_resume($scope6_id, "b")}</p>`);
7378
- _script($scope6_id, "b18");
7582
+ toast_default({
7583
+ onDismiss: _resume(function() {
7584
+ error = null;
7585
+ }, "b3", $scope6_id),
7586
+ content: _content_resume("b19", () => {
7587
+ _scope_reason();
7588
+ const $scope7_id = _scope_id();
7589
+ _html(`${_escape(error)}${_el_resume($scope7_id, "a")}`);
7590
+ _subscribe($error__closures, writeScope($scope7_id, { _: _scope_with_id($scope6_id) }));
7591
+ _resume_branch($scope7_id);
7592
+ }, $scope6_id)
7593
+ });
7379
7594
  writeScope($scope6_id, {});
7380
7595
  return 0;
7381
7596
  }
7382
7597
  }, $scope0_id, "a", 1, 1, 1, 0, 1);
7383
7598
  _if(() => {
7384
7599
  if (!loaded) {
7385
- const $scope7_id = _scope_id();
7600
+ const $scope8_id = _scope_id();
7386
7601
  _html("<div class=\"boot dim\">");
7387
7602
  _if(() => {
7388
7603
  if (error) {
7389
- const $scope8_id = _scope_id();
7390
- _html(`<p>${_escape(error)}${_el_resume($scope8_id, "a")}</p><button class=btn>Retry</button>${_el_resume($scope8_id, "b")}`);
7391
- _script($scope8_id, "b19");
7392
- _subscribe($error__closures, writeScope($scope8_id, {}));
7604
+ const $scope9_id = _scope_id();
7605
+ _html(`<p>${_escape(error)}${_el_resume($scope9_id, "a")}</p><button class=btn>Retry</button>${_el_resume($scope9_id, "b")}`);
7606
+ _script($scope9_id, "b20");
7607
+ _subscribe($error__closures, writeScope($scope9_id, { Cae: 1 }));
7393
7608
  return 0;
7394
7609
  } else {
7395
- const $scope9_id = _scope_id();
7610
+ const $scope10_id = _scope_id();
7396
7611
  _html("<span class=spin></span>Loading workspaces…");
7397
- writeScope($scope9_id, {});
7612
+ writeScope($scope10_id, {});
7398
7613
  return 1;
7399
7614
  }
7400
- }, $scope7_id, "a", 1, 1, 1, "</div>");
7401
- writeScope($scope7_id, {});
7615
+ }, $scope8_id, "a", 1, 1, 1, "</div>");
7616
+ writeScope($scope8_id, {});
7402
7617
  return 0;
7403
7618
  }
7404
7619
  }, $scope0_id, "b", 1, 1, 1, 0, 1);
@@ -7415,14 +7630,14 @@ var _page_default = _template("b", (input) => {
7415
7630
  inline: !paletteOpen && showInlinePalette,
7416
7631
  onSettings: _resume(function(s) {
7417
7632
  settings = s;
7418
- }, "b3", $scope1_id),
7633
+ }, "b4", $scope1_id),
7419
7634
  onSelect: _resume(function(ws) {
7420
7635
  openWorkspace(ws.id);
7421
- }, "b4", $scope1_id),
7636
+ }, "b5", $scope1_id),
7422
7637
  onReview: _resume(function(ws) {
7423
7638
  navIntent.requestDiff(ws.id);
7424
7639
  openWorkspace(ws.id);
7425
- }, "b5", $scope1_id),
7640
+ }, "b6", $scope1_id),
7426
7641
  onNewSession: _resume(function(ws, agent) {
7427
7642
  paletteOpen = false;
7428
7643
  api(`/api/workspaces/${ws.id}/sessions`, {
@@ -7435,19 +7650,19 @@ var _page_default = _template("b", (input) => {
7435
7650
  }).catch((err) => {
7436
7651
  error = `New session failed: ${String(err.message || err)}`;
7437
7652
  });
7438
- }, "b6", $scope1_id),
7653
+ }, "b7", $scope1_id),
7439
7654
  onManage: _resume(function(ws) {
7440
7655
  managingId = ws.id;
7441
7656
  creating = false;
7442
7657
  paletteOpen = false;
7443
- }, "b7", $scope1_id),
7658
+ }, "b8", $scope1_id),
7444
7659
  onNew: _resume(function() {
7445
7660
  creating = true;
7446
7661
  paletteOpen = false;
7447
- }, "b8", $scope1_id),
7662
+ }, "b9", $scope1_id),
7448
7663
  onClose: _resume(function() {
7449
7664
  paletteOpen = false;
7450
- }, "b9", $scope1_id)
7665
+ }, "b10", $scope1_id)
7451
7666
  });
7452
7667
  writeScope($scope1_id, { a: _existing_scope($childScope) });
7453
7668
  return 0;
@@ -7462,10 +7677,10 @@ var _page_default = _template("b", (input) => {
7462
7677
  workspace: managing,
7463
7678
  onClose: _resume(function() {
7464
7679
  managingId = null;
7465
- }, "b10", $scope2_id),
7680
+ }, "b11", $scope2_id),
7466
7681
  onChange: _resume(function(ws) {
7467
7682
  workspaces = workspaces.map((w) => w.id === ws.id ? ws : w);
7468
- }, "b11", $scope2_id)
7683
+ }, "b12", $scope2_id)
7469
7684
  });
7470
7685
  writeScope($scope2_id, { a: _existing_scope($childScope2) });
7471
7686
  return 0;
@@ -7478,12 +7693,12 @@ var _page_default = _template("b", (input) => {
7478
7693
  new_workspace_default({
7479
7694
  onCancel: _resume(function() {
7480
7695
  creating = false;
7481
- }, "b12", $scope3_id),
7696
+ }, "b13", $scope3_id),
7482
7697
  onCreate: _resume(function(ws) {
7483
7698
  if (!workspaces.some((w) => w.id === ws.id)) workspaces = [ws, ...workspaces];
7484
7699
  creating = false;
7485
7700
  openWorkspace(ws.id);
7486
- }, "b13", $scope3_id)
7701
+ }, "b14", $scope3_id)
7487
7702
  });
7488
7703
  writeScope($scope3_id, { a: _existing_scope($childScope3) });
7489
7704
  return 0;
@@ -7508,18 +7723,18 @@ var _page_default = _template("b", (input) => {
7508
7723
  agents: settings ? settings.agents : ["claude"],
7509
7724
  onSelectWorkspace: _resume(function(wsId) {
7510
7725
  openWorkspace(wsId);
7511
- }, "b14", $scope5_id),
7726
+ }, "b15", $scope5_id),
7512
7727
  onOpenSession: _resume(function(wsId, sessionId) {
7513
7728
  navIntent.requestTab(wsId, sessionId);
7514
7729
  prefs.setWorkspaceTab(wsId, sessionId);
7515
7730
  openWorkspace(wsId);
7516
- }, "b15", $scope5_id),
7731
+ }, "b16", $scope5_id),
7517
7732
  onManage: _resume(function(wsId) {
7518
7733
  managingId = wsId || ws.id;
7519
- }, "b16", $scope5_id),
7734
+ }, "b17", $scope5_id),
7520
7735
  onNew: _resume(function() {
7521
7736
  creating = true;
7522
- }, "b17", $scope5_id)
7737
+ }, "b18", $scope5_id)
7523
7738
  });
7524
7739
  _show_end($scope5_id, "d", $show);
7525
7740
  _subscribe($managing__closures, _subscribe($openWorkspace2__closures, _subscribe($creating__closures, _subscribe($selectedId__closures, _subscribe($settings__closures, _subscribe($status__closures, _subscribe($workspaces__closures, writeScope($scope5_id, { b: _existing_scope($childScope4) }))))))));
@@ -7533,7 +7748,7 @@ var _page_default = _template("b", (input) => {
7533
7748
  });
7534
7749
  }, (id) => id, $scope0_id, "f");
7535
7750
  _html("</main>");
7536
- _script($scope0_id, "b20");
7751
+ _script($scope0_id, "b21");
7537
7752
  writeScope($scope0_id, {
7538
7753
  g: workspaces,
7539
7754
  h: status,
@@ -21734,4 +21949,4 @@ server.listen(port, () => {
21734
21949
  //#endregion
21735
21950
  export {};
21736
21951
 
21737
- ;var __MARKO_MANIFEST__={"esfPH6H":{"block":[2,"stylesheet#/assets/index-D218Ug0a.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/index-D218Ug0a.css\"",">"],"defer":[2,"/assets/index-D78h5g92.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/index-D78h5g92.js\"","></script>"]}};
21952
+ ;var __MARKO_MANIFEST__={"esfPH6H":{"block":[2,"stylesheet#/assets/index-BxVK_c-q.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/index-BxVK_c-q.css\"",">"],"defer":[2,"/assets/index-DJu3fA99.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/index-DJu3fA99.js\"","></script>"]}};