@dylanpiercey/work 0.0.18 → 0.0.20

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 +529 -292
  2. package/dist/public/assets/{_Cc4hFu76.js → _1vY8pby1.js} +2 -2
  3. package/dist/public/assets/{_Cc4hFu76.js.map → _1vY8pby1.js.map} +1 -1
  4. package/dist/public/assets/{_BK1rXqZY2.js → _8HSgn8Ae2.js} +2 -2
  5. package/dist/public/assets/{_BK1rXqZY2.js.map → _8HSgn8Ae2.js.map} +1 -1
  6. package/dist/public/assets/{_DxsG51lC.js → _9e0FE9jl.js} +2 -2
  7. package/dist/public/assets/{_DxsG51lC.js.map → _9e0FE9jl.js.map} +1 -1
  8. package/dist/public/assets/{_CaOOa7SQ2.js → _B-3tfKTw2.js} +2 -2
  9. package/dist/public/assets/{_CaOOa7SQ2.js.map → _B-3tfKTw2.js.map} +1 -1
  10. package/dist/public/assets/{_ipzY5Dao.js → _BC-q6DS6.js} +2 -2
  11. package/dist/public/assets/{_ipzY5Dao.js.map → _BC-q6DS6.js.map} +1 -1
  12. package/dist/public/assets/{_Cevj0Mmw.js → _BMXWQXeX.js} +2 -2
  13. package/dist/public/assets/{_Cevj0Mmw.js.map → _BMXWQXeX.js.map} +1 -1
  14. package/dist/public/assets/{_DK83DE0Y2.js → _BTQOUkJH2.js} +2 -2
  15. package/dist/public/assets/{_DK83DE0Y2.js.map → _BTQOUkJH2.js.map} +1 -1
  16. package/dist/public/assets/{_D714w-yv2.js → _BTrOYuEk2.js} +2 -2
  17. package/dist/public/assets/{_D714w-yv2.js.map → _BTrOYuEk2.js.map} +1 -1
  18. package/dist/public/assets/{_De9KPS5Q.js → _BZzhWd3g.js} +2 -2
  19. package/dist/public/assets/{_De9KPS5Q.js.map → _BZzhWd3g.js.map} +1 -1
  20. package/dist/public/assets/{_DCYW4ec9.js → _Bc6gDxIN.js} +2 -2
  21. package/dist/public/assets/{_DCYW4ec9.js.map → _Bc6gDxIN.js.map} +1 -1
  22. package/dist/public/assets/{_B3RjA95S2.js → _BdrBTnQV2.js} +2 -2
  23. package/dist/public/assets/{_B3RjA95S2.js.map → _BdrBTnQV2.js.map} +1 -1
  24. package/dist/public/assets/{_DrneSE0O.js → _Bexv6Y9B.js} +2 -2
  25. package/dist/public/assets/{_DrneSE0O.js.map → _Bexv6Y9B.js.map} +1 -1
  26. package/dist/public/assets/{_CdXiOM4b.js → _Bg0vcVNm.js} +2 -2
  27. package/dist/public/assets/{_CdXiOM4b.js.map → _Bg0vcVNm.js.map} +1 -1
  28. package/dist/public/assets/{_CC-j3k6M.js → _BhcFcxh_.js} +2 -2
  29. package/dist/public/assets/{_CC-j3k6M.js.map → _BhcFcxh_.js.map} +1 -1
  30. package/dist/public/assets/{_D4dnSbs9.js → _BiAQN2ar.js} +2 -2
  31. package/dist/public/assets/{_D4dnSbs9.js.map → _BiAQN2ar.js.map} +1 -1
  32. package/dist/public/assets/{_GNnGtE502.js → _BoyRXB0-2.js} +2 -2
  33. package/dist/public/assets/{_GNnGtE502.js.map → _BoyRXB0-2.js.map} +1 -1
  34. package/dist/public/assets/{_D1g8yfY_.js → _BpQoL5sK.js} +2 -2
  35. package/dist/public/assets/{_D1g8yfY_.js.map → _BpQoL5sK.js.map} +1 -1
  36. package/dist/public/assets/{_Y34jUHbQ.js → _BrtaMKSf.js} +2 -2
  37. package/dist/public/assets/{_Y34jUHbQ.js.map → _BrtaMKSf.js.map} +1 -1
  38. package/dist/public/assets/{_BZ-hSpp-.js → _C0Aq200h.js} +2 -2
  39. package/dist/public/assets/{_BZ-hSpp-.js.map → _C0Aq200h.js.map} +1 -1
  40. package/dist/public/assets/{_CylUZ4ox.js → _C6_Bkr9e.js} +2 -2
  41. package/dist/public/assets/{_CylUZ4ox.js.map → _C6_Bkr9e.js.map} +1 -1
  42. package/dist/public/assets/{_Bu4ATEWu.js → _C96rg9Cn.js} +2 -2
  43. package/dist/public/assets/{_Bu4ATEWu.js.map → _C96rg9Cn.js.map} +1 -1
  44. package/dist/public/assets/{_BCJFFYkY2.js → _C9vwBOMi2.js} +2 -2
  45. package/dist/public/assets/{_BCJFFYkY2.js.map → _C9vwBOMi2.js.map} +1 -1
  46. package/dist/public/assets/{_09UGbqbe.js → _CBgFzcoa.js} +2 -2
  47. package/dist/public/assets/{_09UGbqbe.js.map → _CBgFzcoa.js.map} +1 -1
  48. package/dist/public/assets/{_C11BpdOf.js → _CONbe6YE.js} +2 -2
  49. package/dist/public/assets/{_C11BpdOf.js.map → _CONbe6YE.js.map} +1 -1
  50. package/dist/public/assets/{_CrJ9Ko13.js → _CSCYugS_.js} +2 -2
  51. package/dist/public/assets/{_CrJ9Ko13.js.map → _CSCYugS_.js.map} +1 -1
  52. package/dist/public/assets/{_DIQt9GI5.js → _CSdPg73e.js} +2 -2
  53. package/dist/public/assets/{_DIQt9GI5.js.map → _CSdPg73e.js.map} +1 -1
  54. package/dist/public/assets/{_DK4AwxNY2.js → _CTmSJ3aE2.js} +2 -2
  55. package/dist/public/assets/{_DK4AwxNY2.js.map → _CTmSJ3aE2.js.map} +1 -1
  56. package/dist/public/assets/{_BUyxdAoO.js → _CVYrmNa5.js} +2 -2
  57. package/dist/public/assets/{_BUyxdAoO.js.map → _CVYrmNa5.js.map} +1 -1
  58. package/dist/public/assets/{_RhvBw5HZ.js → _CWiaS9tN.js} +2 -2
  59. package/dist/public/assets/{_RhvBw5HZ.js.map → _CWiaS9tN.js.map} +1 -1
  60. package/dist/public/assets/{_DNzvi45g.js → _CY51jVa3.js} +2 -2
  61. package/dist/public/assets/{_DNzvi45g.js.map → _CY51jVa3.js.map} +1 -1
  62. package/dist/public/assets/{_Ce4ncwLA2.js → _C_N5lXIT2.js} +2 -2
  63. package/dist/public/assets/{_Ce4ncwLA2.js.map → _C_N5lXIT2.js.map} +1 -1
  64. package/dist/public/assets/{_Bpen4kph.js → _CcQeIXwg.js} +2 -2
  65. package/dist/public/assets/{_Bpen4kph.js.map → _CcQeIXwg.js.map} +1 -1
  66. package/dist/public/assets/{_CMPgfitX2.js → _CekmLjtJ2.js} +2 -2
  67. package/dist/public/assets/{_CMPgfitX2.js.map → _CekmLjtJ2.js.map} +1 -1
  68. package/dist/public/assets/{_BZ__x_xD.js → _CexcTijs.js} +2 -2
  69. package/dist/public/assets/{_BZ__x_xD.js.map → _CexcTijs.js.map} +1 -1
  70. package/dist/public/assets/{_BkP94cES2.js → _Cqdz3hZN2.js} +2 -2
  71. package/dist/public/assets/{_BkP94cES2.js.map → _Cqdz3hZN2.js.map} +1 -1
  72. package/dist/public/assets/{_DyeFgeps.js → _CsU7IfeP.js} +2 -2
  73. package/dist/public/assets/{_DyeFgeps.js.map → _CsU7IfeP.js.map} +1 -1
  74. package/dist/public/assets/{_5pITs-eB.js → _CtMaZFiS.js} +2 -2
  75. package/dist/public/assets/{_5pITs-eB.js.map → _CtMaZFiS.js.map} +1 -1
  76. package/dist/public/assets/{_DqqTIO4X2.js → _CvQo4_H-2.js} +2 -2
  77. package/dist/public/assets/{_DqqTIO4X2.js.map → _CvQo4_H-2.js.map} +1 -1
  78. package/dist/public/assets/{_CAT-e2QL.js → _CwXWcR4L.js} +2 -2
  79. package/dist/public/assets/{_CAT-e2QL.js.map → _CwXWcR4L.js.map} +1 -1
  80. package/dist/public/assets/{_BBpMSlj_2.js → _CzS0SrVK2.js} +2 -2
  81. package/dist/public/assets/{_BBpMSlj_2.js.map → _CzS0SrVK2.js.map} +1 -1
  82. package/dist/public/assets/{_DeYNOTTM.js → _D1QJFY1d.js} +2 -2
  83. package/dist/public/assets/{_DeYNOTTM.js.map → _D1QJFY1d.js.map} +1 -1
  84. package/dist/public/assets/{_DiIPM4ZR2.js → _D4YgBy102.js} +2 -2
  85. package/dist/public/assets/{_DiIPM4ZR2.js.map → _D4YgBy102.js.map} +1 -1
  86. package/dist/public/assets/{_CoF5nWq02.js → _D5E_RD5H2.js} +2 -2
  87. package/dist/public/assets/{_CoF5nWq02.js.map → _D5E_RD5H2.js.map} +1 -1
  88. package/dist/public/assets/{_CNv-Oo1i.js → _D6GBnH1C.js} +2 -2
  89. package/dist/public/assets/{_CNv-Oo1i.js.map → _D6GBnH1C.js.map} +1 -1
  90. package/dist/public/assets/{_CEpH5m1M2.js → _D6mf7azh2.js} +2 -2
  91. package/dist/public/assets/{_CEpH5m1M2.js.map → _D6mf7azh2.js.map} +1 -1
  92. package/dist/public/assets/{_D9PpwVxg.js → _DDQcSiNZ.js} +2 -2
  93. package/dist/public/assets/{_D9PpwVxg.js.map → _DDQcSiNZ.js.map} +1 -1
  94. package/dist/public/assets/{_-y9kulTm2.js → _DGb5RYdw2.js} +2 -2
  95. package/dist/public/assets/{_-y9kulTm2.js.map → _DGb5RYdw2.js.map} +1 -1
  96. package/dist/public/assets/{_pycVA1dr.js → _DHU3s4L8.js} +2 -2
  97. package/dist/public/assets/{_pycVA1dr.js.map → _DHU3s4L8.js.map} +1 -1
  98. package/dist/public/assets/{_C46jYJRW.js → _DNygB11b.js} +2 -2
  99. package/dist/public/assets/{_C46jYJRW.js.map → _DNygB11b.js.map} +1 -1
  100. package/dist/public/assets/{_BLCmmW1D.js → _DPQpBMwo.js} +2 -2
  101. package/dist/public/assets/{_BLCmmW1D.js.map → _DPQpBMwo.js.map} +1 -1
  102. package/dist/public/assets/{_Di1u4_E92.js → _DQm9_WBm2.js} +2 -2
  103. package/dist/public/assets/{_Di1u4_E92.js.map → _DQm9_WBm2.js.map} +1 -1
  104. package/dist/public/assets/{_C50Bb9xS.js → _DRazGDj4.js} +2 -2
  105. package/dist/public/assets/{_C50Bb9xS.js.map → _DRazGDj4.js.map} +1 -1
  106. package/dist/public/assets/{_8KGTgk4a.js → _DUKDYAof.js} +2 -2
  107. package/dist/public/assets/{_8KGTgk4a.js.map → _DUKDYAof.js.map} +1 -1
  108. package/dist/public/assets/{_BRXIjM2U2.js → _Dc3dYVuw2.js} +2 -2
  109. package/dist/public/assets/{_BRXIjM2U2.js.map → _Dc3dYVuw2.js.map} +1 -1
  110. package/dist/public/assets/{_DhR2bAEg.js → _Dge-k2OK.js} +2 -2
  111. package/dist/public/assets/{_DhR2bAEg.js.map → _Dge-k2OK.js.map} +1 -1
  112. package/dist/public/assets/{_D0wRtMZ7.js → _Dgh3CpAc.js} +2 -2
  113. package/dist/public/assets/{_D0wRtMZ7.js.map → _Dgh3CpAc.js.map} +1 -1
  114. package/dist/public/assets/{_ByGoCdzl.js → _Dh0ojLY7.js} +2 -2
  115. package/dist/public/assets/{_ByGoCdzl.js.map → _Dh0ojLY7.js.map} +1 -1
  116. package/dist/public/assets/{_COqOvD8r2.js → _Dia6fhph2.js} +2 -2
  117. package/dist/public/assets/{_COqOvD8r2.js.map → _Dia6fhph2.js.map} +1 -1
  118. package/dist/public/assets/{_BJQAFH5m2.js → _DxQA8DF72.js} +2 -2
  119. package/dist/public/assets/{_BJQAFH5m2.js.map → _DxQA8DF72.js.map} +1 -1
  120. package/dist/public/assets/{_D3M90Nuy.js → _DyzfV4EQ.js} +2 -2
  121. package/dist/public/assets/{_D3M90Nuy.js.map → _DyzfV4EQ.js.map} +1 -1
  122. package/dist/public/assets/{_DCF6n82O.js → _GnVvdLnS.js} +2 -2
  123. package/dist/public/assets/{_DCF6n82O.js.map → _GnVvdLnS.js.map} +1 -1
  124. package/dist/public/assets/{_CDkLozzf.js → _T_Eme7qq.js} +2 -2
  125. package/dist/public/assets/{_CDkLozzf.js.map → _T_Eme7qq.js.map} +1 -1
  126. package/dist/public/assets/{_CCOY7Mzw.js → _U_zJ788O.js} +2 -2
  127. package/dist/public/assets/{_CCOY7Mzw.js.map → _U_zJ788O.js.map} +1 -1
  128. package/dist/public/assets/{_DxRN-75-.js → _VrKcP-IA.js} +2 -2
  129. package/dist/public/assets/{_DxRN-75-.js.map → _VrKcP-IA.js.map} +1 -1
  130. package/dist/public/assets/{_B67sYaTh.js → _WdzvtYc4.js} +2 -2
  131. package/dist/public/assets/{_B67sYaTh.js.map → _WdzvtYc4.js.map} +1 -1
  132. package/dist/public/assets/{_BLtaIsON2.js → _aiX4inqS2.js} +2 -2
  133. package/dist/public/assets/{_BLtaIsON2.js.map → _aiX4inqS2.js.map} +1 -1
  134. package/dist/public/assets/{_TJASwUTM.js → _c4JkcQT9.js} +2 -2
  135. package/dist/public/assets/{_TJASwUTM.js.map → _c4JkcQT9.js.map} +1 -1
  136. package/dist/public/assets/{_BWIqed3r.js → _cy1N2YQO.js} +2 -2
  137. package/dist/public/assets/{_BWIqed3r.js.map → _cy1N2YQO.js.map} +1 -1
  138. package/dist/public/assets/{_DbwVuiCb2.js → _ephmTnv12.js} +2 -2
  139. package/dist/public/assets/{_DbwVuiCb2.js.map → _ephmTnv12.js.map} +1 -1
  140. package/dist/public/assets/{_CmvbMi4x.js → _g8IPJgde.js} +2 -2
  141. package/dist/public/assets/{_CmvbMi4x.js.map → _g8IPJgde.js.map} +1 -1
  142. package/dist/public/assets/{_D8qhq4R9.js → _hecKvkGK.js} +2 -2
  143. package/dist/public/assets/{_D8qhq4R9.js.map → _hecKvkGK.js.map} +1 -1
  144. package/dist/public/assets/{_DVlQ9TJ1.js → _n3dr6s1l.js} +2 -2
  145. package/dist/public/assets/{_DVlQ9TJ1.js.map → _n3dr6s1l.js.map} +1 -1
  146. package/dist/public/assets/{_CLHoxMEK.js → _sq9fDeBh.js} +2 -2
  147. package/dist/public/assets/{_CLHoxMEK.js.map → _sq9fDeBh.js.map} +1 -1
  148. package/dist/public/assets/{_Cy-GwoDV2.js → _wSQWJJZf2.js} +2 -2
  149. package/dist/public/assets/{_Cy-GwoDV2.js.map → _wSQWJJZf2.js.map} +1 -1
  150. package/dist/public/assets/{index-B9tvi1r1.js → index-CxXU95sL.js} +63 -63
  151. package/dist/public/assets/index-CxXU95sL.js.map +1 -0
  152. package/dist/public/assets/index-CxxdFG3E.css +1 -0
  153. package/package.json +1 -1
  154. package/dist/public/assets/index-B9tvi1r1.js.map +0 -1
  155. package/dist/public/assets/index-CExZozP4.css +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, { Cd3: 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,13 +6127,13 @@ 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
6139
  Ccw: 1
@@ -6037,16 +6141,16 @@ var diff_view_default = _template("e", (input) => {
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
6149
  _if(() => {
6046
6150
  if (loading) {
6047
- const $scope31_id = _scope_id();
6151
+ const $scope37_id = _scope_id();
6048
6152
  _html("<span class=\"refresh-chip dim\"><span class=spin></span>Refreshing…</span>");
6049
- writeScope($scope31_id, {});
6153
+ writeScope($scope37_id, {});
6050
6154
  return 0;
6051
6155
  }
6052
6156
  }, $scope0_id, "h", 1, 1, 1, 0, 1);
@@ -6067,14 +6171,14 @@ var diff_view_default = _template("e", (input) => {
6067
6171
  _html("</div>");
6068
6172
  _if(() => {
6069
6173
  if (findOpen) {
6070
- const $scope23_id = _scope_id();
6174
+ const $scope28_id = _scope_id();
6071
6175
  const $childScope2 = _peek_scope_id();
6072
6176
  diff_find_default({
6073
6177
  files: fileFiltered,
6074
6178
  tick: findTick,
6075
6179
  onState: _resume(function(s) {
6076
6180
  onFindState(s);
6077
- }, "e23", $scope23_id),
6181
+ }, "e23", $scope28_id),
6078
6182
  onClose: _resume(function() {
6079
6183
  findOpen = false;
6080
6184
  findState = {
@@ -6082,9 +6186,9 @@ var diff_view_default = _template("e", (input) => {
6082
6186
  hit: null,
6083
6187
  keys: []
6084
6188
  };
6085
- }, "e24", $scope23_id)
6189
+ }, "e24", $scope28_id)
6086
6190
  });
6087
- writeScope($scope23_id, { a: _existing_scope($childScope2) });
6191
+ writeScope($scope28_id, { a: _existing_scope($childScope2) });
6088
6192
  return 0;
6089
6193
  }
6090
6194
  }, $scope0_id, "s", 1, 1, 1, 0, 1);
@@ -6092,60 +6196,167 @@ var diff_view_default = _template("e", (input) => {
6092
6196
  _if(() => {
6093
6197
  if (error) {
6094
6198
  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");
6199
+ toast_default({
6200
+ onDismiss: _resume(function() {
6201
+ error = null;
6202
+ }, "e25", $scope17_id),
6203
+ content: _content_resume("e39", () => {
6204
+ _scope_reason();
6205
+ const $scope18_id = _scope_id();
6206
+ _html(`${_escape(error)}${_el_resume($scope18_id, "a")}`);
6207
+ _subscribe($error__closures, writeScope($scope18_id, { _: _scope_with_id($scope17_id) }));
6208
+ _resume_branch($scope18_id);
6209
+ }, $scope17_id)
6210
+ });
6097
6211
  writeScope($scope17_id, {});
6098
6212
  return 0;
6099
6213
  }
6100
6214
  }, $scope0_id, "u", 1, 1, 1, 0, 1);
6101
6215
  _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, {});
6216
+ const $scope22_id = _scope_id();
6217
+ const $for_content6__repo_base__closures = /* @__PURE__ */ new Set();
6218
+ _set_serialize_reason(40);
6219
+ const $childScope3 = _peek_scope_id();
6220
+ toast_default({
6221
+ kind: "warn",
6222
+ placement: "inline",
6223
+ title: `${repo.worktree}: base not found`,
6224
+ content: _content_resume("e40", () => {
6225
+ _scope_reason();
6226
+ const $scope23_id = _scope_id();
6227
+ _html(`${_escape(repo.base)}${_el_resume($scope23_id, "a")}<!>${uncommitted ? " — showing uncommitted changes only" : ""}${_el_resume($scope23_id, "b")}.`);
6228
+ _subscribe($for_content6__repo_base__closures, _subscribe($uncommitted__closures, writeScope($scope23_id, { _: _scope_with_id($scope22_id) })));
6229
+ _resume_branch($scope23_id);
6230
+ }, $scope22_id)
6231
+ });
6232
+ writeScope($scope22_id, {
6233
+ e: repo?.base,
6234
+ f: $for_content6__repo_base__closures,
6235
+ a: _existing_scope($childScope3)
6236
+ });
6105
6237
  }, "id", $scope0_id, "v", 1, 1, 1, 0, 1);
6106
6238
  _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, {});
6239
+ const $scope24_id = _scope_id();
6240
+ const $for_content7__repo_base__closures = /* @__PURE__ */ new Set();
6241
+ _set_serialize_reason(40);
6242
+ const $childScope4 = _peek_scope_id();
6243
+ toast_default({
6244
+ kind: "info",
6245
+ placement: "inline",
6246
+ title: repo.pr ? `${repo.worktree} #${repo.pr.number}` : repo.worktree,
6247
+ content: _content_resume("e41", () => {
6248
+ _scope_reason();
6249
+ const $scope25_id = _scope_id();
6250
+ _html(`already in <!>${_escape(repo.base)}${_el_resume($scope25_id, "a")}<!>${uncommitted ? " — showing uncommitted changes only" : ""}${_el_resume($scope25_id, "b")}.`);
6251
+ _subscribe($for_content7__repo_base__closures, _subscribe($uncommitted__closures, writeScope($scope25_id, {
6252
+ _: _scope_with_id($scope24_id),
6253
+ Ccz: 1
6254
+ })));
6255
+ _resume_branch($scope25_id);
6256
+ }, $scope24_id)
6257
+ });
6258
+ writeScope($scope24_id, {
6259
+ g: repo?.base,
6260
+ h: $for_content7__repo_base__closures,
6261
+ a: _existing_scope($childScope4)
6262
+ });
6110
6263
  }, "id", $scope0_id, "w", 1, 1, 1, 0, 1);
6111
6264
  _if(() => {
6112
6265
  if (driftRepos.length) {
6113
- const $scope18_id = _scope_id();
6114
- _html("<p class=toast-error>");
6115
- _for_of(driftRepos, (repo) => {
6116
- const $scope32_id = _scope_id();
6117
- _html(`${_escape(repo.worktree)}${_el_resume($scope32_id, "a")} #<!>${_escape(repo.pr.number)}${_el_resume($scope32_id, "b")}: origin/<!>${_escape(repo.pr.headRefName)}${_el_resume($scope32_id, "c")} is <!>${_escape(shortSha(repo.head))}${_el_resume($scope32_id, "d")}, GitHub last saw <!>${_escape(shortSha(repo.pr.headRefOid))}${_el_resume($scope32_id, "e")}.`);
6118
- writeScope($scope32_id, {});
6119
- }, "id", $scope18_id, "a");
6120
- _html(`<button class=btn${_attr("disabled", loading)}>${loading ? "Reloading…" : "Reload"}${_el_resume($scope18_id, "c")}</button>${_el_resume($scope18_id, "b")}<button title=Dismiss>×</button>${_el_resume($scope18_id, "d")}</p>`);
6121
- _script($scope18_id, "e38");
6122
- writeScope($scope18_id, {});
6266
+ const $scope19_id = _scope_id();
6267
+ _set_serialize_reason(268);
6268
+ const $childScope5 = _peek_scope_id();
6269
+ toast_default({
6270
+ kind: "info",
6271
+ placement: "inline",
6272
+ title: "GitHub is behind",
6273
+ onDismiss: _resume(function() {
6274
+ dismissDrift();
6275
+ }, "e26", $scope19_id),
6276
+ action: attrTag({ content: _content_resume("e43", () => {
6277
+ _scope_reason();
6278
+ const $scope20_id = _scope_id();
6279
+ _html(`<button class=btn${_attr("disabled", loading)}>${loading ? "Reloading…" : "Reload"}${_el_resume($scope20_id, "b")}</button>${_el_resume($scope20_id, "a")}`);
6280
+ _script($scope20_id, "e42");
6281
+ _subscribe($loading__closures, writeScope($scope20_id, { _: _scope_with_id($scope19_id) }));
6282
+ _resume_branch($scope20_id);
6283
+ }, $scope19_id) }),
6284
+ content: _content_resume("e44", () => {
6285
+ _scope_reason();
6286
+ const $scope34_id = _scope_id();
6287
+ _html("<span class=dim>");
6288
+ _for_of(driftRepos, (repo, i) => {
6289
+ const $scope38_id = _scope_id();
6290
+ _html(`${i > 0 ? " · " : ""}${_el_resume($scope38_id, "a")}<!>${_escape(repo.worktree)}${_el_resume($scope38_id, "b")} #<!>${_escape(repo.pr.number)}${_el_resume($scope38_id, "c")}`);
6291
+ writeScope($scope38_id, {});
6292
+ }, "id", $scope34_id, "a");
6293
+ _html(" — this view has a newer tip than the PR page.</span><span class=\"mono dim toast-meta\">");
6294
+ _for_of(driftRepos, (repo, i) => {
6295
+ const $scope39_id = _scope_id();
6296
+ _html(`<span${_attr("title", `origin/${repo.pr.headRefName} ${repo.head} · GitHub ${repo.pr.headRefOid}`)}>${i > 0 ? " · " : ""}${_el_resume($scope39_id, "b")}<!>${_escape(shortSha(repo.head))}${_el_resume($scope39_id, "c")} → <!>${_escape(shortSha(repo.pr.headRefOid))}${_el_resume($scope39_id, "d")}</span>${_el_resume($scope39_id, "a")}`);
6297
+ writeScope($scope39_id, {});
6298
+ }, "id", $scope34_id, "b", 1, 1, 1, "</span>", 1);
6299
+ _subscribe($driftRepos__closures, writeScope($scope34_id, { _: _scope_with_id($scope19_id) }));
6300
+ _resume_branch($scope34_id);
6301
+ }, $scope19_id)
6302
+ });
6303
+ writeScope($scope19_id, { a: _existing_scope($childScope5) });
6123
6304
  return 0;
6124
6305
  }
6125
6306
  }, $scope0_id, "x", 1, 1, 1, 0, 1);
6126
6307
  _for_of(repoList.filter(localDiffers), (repo) => {
6127
- const $scope22_id = _scope_id();
6128
- _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>`);
6129
- writeScope($scope22_id, {});
6308
+ const $scope26_id = _scope_id();
6309
+ const $for_content8__repo_head__closures = /* @__PURE__ */ new Set();
6310
+ const $for_content8__repo_pr_headRefName__closures = /* @__PURE__ */ new Set();
6311
+ const $for_content8__repo_localHead__closures = /* @__PURE__ */ new Set();
6312
+ const $for_content8__repo_branch__closures = /* @__PURE__ */ new Set();
6313
+ _set_serialize_reason(40);
6314
+ const $childScope6 = _peek_scope_id();
6315
+ toast_default({
6316
+ kind: "info",
6317
+ placement: "inline",
6318
+ title: `${repo.worktree} #${repo.pr.number}`,
6319
+ content: _content_resume("e45", () => {
6320
+ _scope_reason();
6321
+ const $scope27_id = _scope_id();
6322
+ _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")}).`);
6323
+ _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, {
6324
+ _: _scope_with_id($scope26_id),
6325
+ Ccz: 2
6326
+ }))))));
6327
+ _resume_branch($scope27_id);
6328
+ }, $scope26_id)
6329
+ });
6330
+ writeScope($scope26_id, {
6331
+ h: repo?.head,
6332
+ i: repo?.pr?.headRefName,
6333
+ j: repo?.localHead,
6334
+ k: repo?.branch,
6335
+ l: $for_content8__repo_head__closures,
6336
+ m: $for_content8__repo_pr_headRefName__closures,
6337
+ n: $for_content8__repo_localHead__closures,
6338
+ o: $for_content8__repo_branch__closures,
6339
+ a: _existing_scope($childScope6)
6340
+ });
6130
6341
  }, "id", $scope0_id, "y", 1, 1, 1, 0, 1);
6131
6342
  _if(() => {
6132
6343
  if (!repos && loading) {
6133
- const $scope33_id = _scope_id();
6344
+ const $scope40_id = _scope_id();
6134
6345
  _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>");
6135
- writeScope($scope33_id, {});
6346
+ writeScope($scope40_id, {});
6136
6347
  return 0;
6137
6348
  }
6138
6349
  }, $scope0_id, "z", 1, 1, 1, 0, 1);
6139
6350
  _if(() => {
6140
6351
  if (repos && !allFiles.length) {
6141
- const $scope27_id = _scope_id();
6142
- _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>`);
6143
- writeScope($scope27_id, {});
6352
+ const $scope32_id = _scope_id();
6353
+ _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>`);
6354
+ writeScope($scope32_id, {});
6144
6355
  return 0;
6145
6356
  } else if (repos && !shownFiles.length && !findState.hit) {
6146
- const $scope19_id = _scope_id();
6147
- _html(`<p class="dim center-pad">${findState.query.trim() ? "No matches in diffs." : `No files match "${_escape(`${fileFilter}`)}".`}${_el_resume($scope19_id, "a")}</p>`);
6148
- writeScope($scope19_id, {});
6357
+ const $scope21_id = _scope_id();
6358
+ _html(`<p class="dim center-pad">${findState.query.trim() ? "No matches in diffs." : `No files match "${_escape(`${fileFilter}`)}".`}${_el_resume($scope21_id, "a")}</p>`);
6359
+ writeScope($scope21_id, {});
6149
6360
  return 1;
6150
6361
  }
6151
6362
  }, $scope0_id, "a0", 1, 1, 1, 0, 1);
@@ -6174,47 +6385,47 @@ var diff_view_default = _template("e", (input) => {
6174
6385
  _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)}>`);
6175
6386
  _if(() => {
6176
6387
  if (repoList.length > 1) {
6177
- const $scope25_id = _scope_id();
6178
- _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>`);
6388
+ const $scope30_id = _scope_id();
6389
+ _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>`);
6179
6390
  _if(() => {
6180
6391
  if (repo.pr) {
6181
- const $scope34_id = _scope_id();
6182
- _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($scope34_id, "b")}</a>${_el_resume($scope34_id, "a")}<span class=dim>${_escape(repo.pr.title)}${_el_resume($scope34_id, "c")}</span>`);
6183
- _script($scope34_id, "e39");
6184
- _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($scope34_id, {
6392
+ const $scope41_id = _scope_id();
6393
+ _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($scope41_id, "b")}</a>${_el_resume($scope41_id, "a")}<span class=dim>${_escape(repo.pr.title)}${_el_resume($scope41_id, "c")}</span>`);
6394
+ _script($scope41_id, "e46");
6395
+ _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($scope41_id, {
6185
6396
  Ca5: 2,
6186
6397
  Ca6: 2,
6187
6398
  Ca7: 2
6188
6399
  }))))))));
6189
6400
  return 0;
6190
6401
  } else {
6191
- const $scope35_id = _scope_id();
6192
- _html(`<span class=dim>${_escape(repo.full_name)}${_el_resume($scope35_id, "a")}</span>`);
6193
- _subscribe($for_content3__repo_full_name__closures, writeScope($scope35_id, {}));
6402
+ const $scope42_id = _scope_id();
6403
+ _html(`<span class=dim>${_escape(repo.full_name)}${_el_resume($scope42_id, "a")}</span>`);
6404
+ _subscribe($for_content3__repo_full_name__closures, writeScope($scope42_id, {}));
6194
6405
  return 1;
6195
6406
  }
6196
- }, $scope25_id, "d");
6197
- _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")}`);
6407
+ }, $scope30_id, "d");
6408
+ _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")}`);
6198
6409
  _if(() => {
6199
6410
  if (localDiffers(repo)) {
6200
- const $scope36_id = _scope_id();
6201
- _html(`<span class=chip${_attr("title", `checked out ${repo.branch} ${repo.localHead}`)}>local <!>${_escape(repo.branch)}${_el_resume($scope36_id, "b")}</span>${_el_resume($scope36_id, "a")}`);
6202
- _subscribe($for_content3__repo_localHead__closures, _subscribe($for_content3__repo_branch__closures, writeScope($scope36_id, { Ca9: 2 })));
6411
+ const $scope43_id = _scope_id();
6412
+ _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")}`);
6413
+ _subscribe($for_content3__repo_localHead__closures, _subscribe($for_content3__repo_branch__closures, writeScope($scope43_id, { Ca9: 2 })));
6203
6414
  return 0;
6204
6415
  }
6205
- }, $scope25_id, "i", 1, 1, 1, 0, 1);
6206
- _html(`</button>${_el_resume($scope25_id, "a")}`);
6207
- _script($scope25_id, "e40");
6208
- _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 }))))))))));
6416
+ }, $scope30_id, "i", 1, 1, 1, 0, 1);
6417
+ _html(`</button>${_el_resume($scope30_id, "a")}`);
6418
+ _script($scope30_id, "e47");
6419
+ _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, { Cd4: 1 }))))))))));
6209
6420
  return 0;
6210
6421
  } else {
6211
- const $scope28_id = _scope_id();
6422
+ const $scope33_id = _scope_id();
6212
6423
  _html("<p class=repo-meta>");
6213
6424
  _if(() => {
6214
6425
  if (repo.pr) {
6215
- const $scope37_id = _scope_id();
6216
- _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($scope37_id, "b")}</a>${_el_resume($scope37_id, "a")}<span class=dim>${_escape(repo.pr.title)}${_el_resume($scope37_id, "c")}</span>`);
6217
- _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($scope37_id, {
6426
+ const $scope44_id = _scope_id();
6427
+ _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($scope44_id, "b")}</a>${_el_resume($scope44_id, "a")}<span class=dim>${_escape(repo.pr.title)}${_el_resume($scope44_id, "c")}</span>`);
6428
+ _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($scope44_id, {
6218
6429
  Ca1: 1,
6219
6430
  Ca2: 1,
6220
6431
  Ca3: 1,
@@ -6225,21 +6436,21 @@ var diff_view_default = _template("e", (input) => {
6225
6436
  }))))))));
6226
6437
  return 0;
6227
6438
  }
6228
- }, $scope28_id, "a");
6229
- _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")}`);
6439
+ }, $scope33_id, "a");
6440
+ _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")}`);
6230
6441
  _if(() => {
6231
6442
  if (localDiffers(repo)) {
6232
- const $scope38_id = _scope_id();
6233
- _html(`<span class=chip${_attr("title", `checked out ${repo.branch} ${repo.localHead}`)}>local <!>${_escape(repo.branch)}${_el_resume($scope38_id, "b")}</span>${_el_resume($scope38_id, "a")}`);
6234
- _subscribe($for_content3__repo_localHead__closures, _subscribe($for_content3__repo_branch__closures, writeScope($scope38_id, {
6443
+ const $scope45_id = _scope_id();
6444
+ _html(`<span class=chip${_attr("title", `checked out ${repo.branch} ${repo.localHead}`)}>local <!>${_escape(repo.branch)}${_el_resume($scope45_id, "b")}</span>${_el_resume($scope45_id, "a")}`);
6445
+ _subscribe($for_content3__repo_localHead__closures, _subscribe($for_content3__repo_branch__closures, writeScope($scope45_id, {
6235
6446
  Ca9: 3,
6236
6447
  Caa: 1
6237
6448
  })));
6238
6449
  return 0;
6239
6450
  }
6240
- }, $scope28_id, "f", 1, 1, 1, 0, 1);
6451
+ }, $scope33_id, "f", 1, 1, 1, 0, 1);
6241
6452
  _html("</p>");
6242
- _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, {
6453
+ _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, {
6243
6454
  Cx: 1,
6244
6455
  Cz: 1,
6245
6456
  Ca5: 1,
@@ -6264,9 +6475,9 @@ var diff_view_default = _template("e", (input) => {
6264
6475
  _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")}`);
6265
6476
  _if(() => {
6266
6477
  if (fileComments.length) {
6267
- const $scope39_id = _scope_id();
6268
- _html(`<span class=chip>💬 <!>${_escape(fileComments.length)}${_el_resume($scope39_id, "a")}</span>`);
6269
- writeScope($scope39_id, {});
6478
+ const $scope46_id = _scope_id();
6479
+ _html(`<span class=chip>💬 <!>${_escape(fileComments.length)}${_el_resume($scope46_id, "a")}</span>`);
6480
+ writeScope($scope46_id, {});
6270
6481
  return 0;
6271
6482
  }
6272
6483
  }, $scope12_id, "f", 1, 1, 1, 0, 1);
@@ -6275,28 +6486,28 @@ var diff_view_default = _template("e", (input) => {
6275
6486
  }, "e1", $scope12_id))} type=checkbox>${_el_resume($scope12_id, "h")}<span class=dim>viewed</span></label>${_el_resume($scope12_id, "g")}</summary>`);
6276
6487
  _if(() => {
6277
6488
  if (file.binary) {
6278
- const $scope40_id = _scope_id();
6489
+ const $scope47_id = _scope_id();
6279
6490
  _html("<p class=\"dim diff-pad\">binary file</p>");
6280
- writeScope($scope40_id, {});
6491
+ writeScope($scope47_id, {});
6281
6492
  return 0;
6282
6493
  } else if (file.tooLarge) {
6283
- const $scope41_id = _scope_id();
6494
+ const $scope48_id = _scope_id();
6284
6495
  _html("<p class=\"dim diff-pad\">file too large to display</p>");
6285
- writeScope($scope41_id, {});
6496
+ writeScope($scope48_id, {});
6286
6497
  return 1;
6287
6498
  } else if (file.old == null && file.new == null) {
6288
- const $scope42_id = _scope_id();
6499
+ const $scope49_id = _scope_id();
6289
6500
  _html("<p class=\"dim diff-pad\">file could not be read</p>");
6290
- writeScope($scope42_id, {});
6501
+ writeScope($scope49_id, {});
6291
6502
  return 2;
6292
6503
  } else if (expanded) {
6293
6504
  const $scope15_id = _scope_id();
6294
6505
  _if(() => {
6295
6506
  {
6296
- const $scope26_id = _scope_id();
6297
- _html(`<div class=diff-wait></div>${_el_resume($scope26_id, "a")}`);
6298
- _script($scope26_id, "e41");
6299
- writeScope($scope26_id, {});
6507
+ const $scope31_id = _scope_id();
6508
+ _html(`<div class=diff-wait></div>${_el_resume($scope31_id, "a")}`);
6509
+ _script($scope31_id, "e48");
6510
+ writeScope($scope31_id, {});
6300
6511
  return 0;
6301
6512
  }
6302
6513
  }, $scope15_id, "a", 1, 1, 1, 0, 1);
@@ -6305,7 +6516,7 @@ var diff_view_default = _template("e", (input) => {
6305
6516
  }
6306
6517
  }, $scope12_id, "i");
6307
6518
  _html(`</details>${_el_resume($scope12_id, "a")}`);
6308
- _script($scope12_id, "e42");
6519
+ _script($scope12_id, "e49");
6309
6520
  _subscribe($toggleViewed2__closures, _subscribe($commentsByFile__closures, _subscribe($shownKeySet__closures, _subscribe($viewed__closures, writeScope($scope12_id, {
6310
6521
  k: file,
6311
6522
  l: file?.key,
@@ -6369,8 +6580,8 @@ var diff_view_default = _template("e", (input) => {
6369
6580
  _html(`</div>${_el_resume($scope0_id, "t")}</div>`);
6370
6581
  _if(() => {}, $scope0_id, "a2");
6371
6582
  _html("</div>");
6372
- _script($scope0_id, "e45");
6373
- _script($scope0_id, "e46");
6583
+ _script($scope0_id, "e52");
6584
+ _script($scope0_id, "e53");
6374
6585
  writeScope($scope0_id, {
6375
6586
  a5: input.workspaceId,
6376
6587
  a6: input.focusPr,
@@ -6445,18 +6656,22 @@ var diff_view_default = _template("e", (input) => {
6445
6656
  cn: $si__input_sessions && $input_sessions__closures,
6446
6657
  cx: $sendTarget__closures,
6447
6658
  r: _existing_scope($childScope),
6659
+ ct: $error__closures,
6660
+ cz: $uncommitted__closures,
6661
+ cu: $loading__closures,
6662
+ dg: $driftRepos__closures,
6448
6663
  d4: $collapsedRepos__closures,
6449
6664
  cs: $draft__closures,
6450
- di: $saveComment2__closures,
6451
- dj: $removeComment2__closures,
6665
+ dj: $saveComment2__closures,
6666
+ dk: $removeComment2__closures,
6452
6667
  db: $shownKeySet__closures,
6453
- dh: $toggleViewed2__closures,
6668
+ di: $toggleViewed2__closures,
6454
6669
  d2: $findState_hit_repo__closures,
6455
6670
  d7: $repoList_length__closures
6456
6671
  });
6457
6672
  _resume_branch($scope0_id);
6458
6673
  });
6459
- _template("x", (input) => {
6674
+ _template("y", (input) => {
6460
6675
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
6461
6676
  const $scope0_id = _scope_id();
6462
6677
  _set_serialize_reason({
@@ -6471,7 +6686,7 @@ _template("x", (input) => {
6471
6686
  });
6472
6687
  _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
6473
6688
  });
6474
- _template("C", (input) => {
6689
+ _template("D", (input) => {
6475
6690
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
6476
6691
  const $scope0_id = _scope_id();
6477
6692
  _set_serialize_reason({
@@ -6486,7 +6701,7 @@ _template("C", (input) => {
6486
6701
  });
6487
6702
  _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
6488
6703
  });
6489
- _template("v", (input) => {
6704
+ _template("w", (input) => {
6490
6705
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
6491
6706
  const $scope0_id = _scope_id();
6492
6707
  _set_serialize_reason({
@@ -6501,7 +6716,7 @@ _template("v", (input) => {
6501
6716
  });
6502
6717
  _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
6503
6718
  });
6504
- _template("B", (input) => {
6719
+ _template("C", (input) => {
6505
6720
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
6506
6721
  const $scope0_id = _scope_id();
6507
6722
  _set_serialize_reason({
@@ -6717,7 +6932,7 @@ var $class = [
6717
6932
  "\"meter-fill warm\"",
6718
6933
  "\"meter-fill hot warm\""
6719
6934
  ];
6720
- var usage_stats_default = _template("p", (input) => {
6935
+ var usage_stats_default = _template("q", (input) => {
6721
6936
  const $scope0_reason = _scope_reason(), $sg__input_onClose = _serialize_guard($scope0_reason, 0);
6722
6937
  const $scope0_id = _scope_id();
6723
6938
  const $usage_error__closures = /* @__PURE__ */ new Set();
@@ -6732,12 +6947,12 @@ var usage_stats_default = _template("p", (input) => {
6732
6947
  } catch (err) {
6733
6948
  usage = { error: String(err.message || err) };
6734
6949
  }
6735
- }, "p0", $scope0_id);
6950
+ }, "q0", $scope0_id);
6736
6951
  const refresh = _resume(async () => {
6737
6952
  refreshing = true;
6738
6953
  await load(true);
6739
6954
  refreshing = false;
6740
- }, "p1", $scope0_id);
6955
+ }, "q1", $scope0_id);
6741
6956
  _set_serialize_reason({
6742
6957
  0: $sg__input_onClose,
6743
6958
  2: $sg__input_onClose
@@ -6748,8 +6963,8 @@ var usage_stats_default = _template("p", (input) => {
6748
6963
  class: "usage-modal",
6749
6964
  onClose: _resume(function() {
6750
6965
  input.onClose();
6751
- }, "p2", $scope0_id),
6752
- content: _content("p4", () => {
6966
+ }, "q2", $scope0_id),
6967
+ content: _content("q4", () => {
6753
6968
  _scope_reason();
6754
6969
  const $scope1_id = _scope_id();
6755
6970
  _html(`<header class=manage-head><div><h2>Usage</h2></div><button class=${refreshing ? "\"icon-btn spinning\"" : "icon-btn"} title="Refresh usage"${_attr("disabled", refreshing)}>`);
@@ -6806,12 +7021,12 @@ var usage_stats_default = _template("p", (input) => {
6806
7021
  return 2;
6807
7022
  }
6808
7023
  }, $scope1_id, "c", 1, 1, 1, 0, 1);
6809
- _script($scope1_id, "p3");
7024
+ _script($scope1_id, "q3");
6810
7025
  _subscribe($refreshing__closures, _subscribe($usage__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })));
6811
7026
  _resume_branch($scope1_id);
6812
7027
  })
6813
7028
  });
6814
- _script($scope0_id, "p5");
7029
+ _script($scope0_id, "q5");
6815
7030
  writeScope($scope0_id, {
6816
7031
  d: input.onClose,
6817
7032
  f: usage?.error,
@@ -6894,9 +7109,10 @@ var prompt_dialog_default = _template("k", (input) => {
6894
7109
  //#endregion
6895
7110
  //#region src/tags/work-view.marko
6896
7111
  var api$1;
6897
- var work_view_default = _template("q", (input) => {
7112
+ var work_view_default = _template("r", (input) => {
6898
7113
  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);
6899
7114
  const $scope0_id = _scope_id();
7115
+ const $error__closures = /* @__PURE__ */ new Set();
6900
7116
  const $input_active__closures = /* @__PURE__ */ new Set();
6901
7117
  const $input_agents__closures = /* @__PURE__ */ new Set();
6902
7118
  const $view__closures = /* @__PURE__ */ new Set();
@@ -6923,7 +7139,7 @@ var work_view_default = _template("q", (input) => {
6923
7139
  focusPr = pr || "";
6924
7140
  if (pr) focusNonce++;
6925
7141
  view = "diff";
6926
- }, "q0", $scope0_id);
7142
+ }, "r0", $scope0_id);
6927
7143
  const shownSessions = sessions ?? input.allStatus?.[ws.id]?.sessions ?? null;
6928
7144
  const curTab = (() => {
6929
7145
  if (tab && shownSessions?.some((s) => s.id === tab)) return tab;
@@ -6950,7 +7166,7 @@ var work_view_default = _template("q", (input) => {
6950
7166
  } finally {
6951
7167
  spawning = false;
6952
7168
  }
6953
- }, "q1", $scope0_id);
7169
+ }, "r1", $scope0_id);
6954
7170
  const loadMem = {
6955
7171
  wanted: false,
6956
7172
  run: void 0
@@ -6972,11 +7188,11 @@ var work_view_default = _template("q", (input) => {
6972
7188
  sessions = sessions || [];
6973
7189
  error = String(err);
6974
7190
  }
6975
- }, "q2", $scope0_id);
7191
+ }, "r2", $scope0_id);
6976
7192
  const loadSessions = _resume((autoCreate) => {
6977
7193
  if (autoCreate) loadMem.wanted = true;
6978
7194
  return (loadMem.run ??= coalesce(loadBody))();
6979
- }, "q3", $scope0_id);
7195
+ }, "r3", $scope0_id);
6980
7196
  const closeSession = _resume(async (id) => {
6981
7197
  try {
6982
7198
  await api$1(`/api/sessions/${id}`, { method: "DELETE" });
@@ -6985,7 +7201,7 @@ var work_view_default = _template("q", (input) => {
6985
7201
  } catch (err) {
6986
7202
  error = `Kill session failed: ${String(err.message || err)}`;
6987
7203
  }
6988
- }, "q4", $scope0_id);
7204
+ }, "r4", $scope0_id);
6989
7205
  const renameSession = _resume(async (id, title) => {
6990
7206
  title = title.trim();
6991
7207
  if (!title) return;
@@ -6998,7 +7214,7 @@ var work_view_default = _template("q", (input) => {
6998
7214
  headers: { "content-type": "application/json" },
6999
7215
  body: JSON.stringify({ title })
7000
7216
  });
7001
- }, "q5", $scope0_id);
7217
+ }, "r5", $scope0_id);
7002
7218
  const newSession = _resume(async (wsId, agent) => {
7003
7219
  if (wsId === ws.id) {
7004
7220
  const session = await createSession(agent, true);
@@ -7015,10 +7231,10 @@ var work_view_default = _template("q", (input) => {
7015
7231
  } catch (err) {
7016
7232
  error = String(err.message || err);
7017
7233
  }
7018
- }, "q6", $scope0_id);
7234
+ }, "r6", $scope0_id);
7019
7235
  const promptRename = _resume((s) => {
7020
7236
  renaming = s;
7021
- }, "q7", $scope0_id);
7237
+ }, "r7", $scope0_id);
7022
7238
  _html("<div class=work-view>");
7023
7239
  _set_serialize_reason({
7024
7240
  0: _serialize_guard($scope0_reason, 0),
@@ -7045,47 +7261,57 @@ var work_view_default = _template("q", (input) => {
7045
7261
  tab: curTab,
7046
7262
  tabChange: _resume(function(id) {
7047
7263
  tab = id;
7048
- }, "q8", $scope0_id),
7264
+ }, "r8", $scope0_id),
7049
7265
  view,
7050
7266
  viewChange: _resume((_new_view) => {
7051
7267
  view = _new_view;
7052
- }, "q9", $scope0_id),
7268
+ }, "r9", $scope0_id),
7053
7269
  drawerOpen,
7054
7270
  drawerOpenChange: _resume((_new_drawerOpen) => {
7055
7271
  drawerOpen = _new_drawerOpen;
7056
- }, "q10", $scope0_id),
7272
+ }, "r10", $scope0_id),
7057
7273
  allWorkspaces: input.allWorkspaces,
7058
7274
  allStatus: input.allStatus,
7059
7275
  agents: input.agents,
7060
7276
  onError: _resume(function(message) {
7061
7277
  error = message;
7062
- }, "q11", $scope0_id),
7278
+ }, "r11", $scope0_id),
7063
7279
  onSelectWorkspace: input.onSelectWorkspace,
7064
7280
  onOpenSession: input.onOpenSession,
7065
7281
  onManage: input.onManage,
7066
7282
  onNew: input.onNew,
7067
7283
  onUsage: _resume(function() {
7068
7284
  usageOpen = true;
7069
- }, "q12", $scope0_id),
7285
+ }, "r12", $scope0_id),
7070
7286
  onNewSession: _resume(function(wsId, agent) {
7071
7287
  newSession(wsId, agent);
7072
- }, "q13", $scope0_id),
7288
+ }, "r13", $scope0_id),
7073
7289
  onCloseSession: _resume(function(id) {
7074
7290
  closeSession(id);
7075
- }, "q14", $scope0_id),
7291
+ }, "r14", $scope0_id),
7076
7292
  onRenameSession: _resume(function(s) {
7077
7293
  promptRename(s);
7078
- }, "q15", $scope0_id),
7294
+ }, "r15", $scope0_id),
7079
7295
  onReviewOpened: _resume(function(pr) {
7080
7296
  openDiff(pr);
7081
- }, "q16", $scope0_id)
7297
+ }, "r16", $scope0_id)
7082
7298
  });
7083
7299
  _html("<div class=main-col>");
7084
7300
  _if(() => {
7085
7301
  if (error) {
7086
7302
  const $scope5_id = _scope_id();
7087
- _html(`<p class=toast-error>${_escape(error)}${_el_resume($scope5_id, "a")}<button title=Dismiss>×</button>${_el_resume($scope5_id, "b")}</p>`);
7088
- _script($scope5_id, "q30");
7303
+ toast_default({
7304
+ onDismiss: _resume(function() {
7305
+ error = null;
7306
+ }, "r17", $scope5_id),
7307
+ content: _content_resume("r31", () => {
7308
+ _scope_reason();
7309
+ const $scope6_id = _scope_id();
7310
+ _html(`${_escape(error)}${_el_resume($scope6_id, "a")}`);
7311
+ _subscribe($error__closures, writeScope($scope6_id, { _: _scope_with_id($scope5_id) }));
7312
+ _resume_branch($scope6_id);
7313
+ }, $scope5_id)
7314
+ });
7089
7315
  writeScope($scope5_id, {});
7090
7316
  return 0;
7091
7317
  }
@@ -7103,10 +7329,10 @@ var work_view_default = _template("q", (input) => {
7103
7329
  onSent: _resume(function(sessionId) {
7104
7330
  tab = sessionId;
7105
7331
  view = "term";
7106
- }, "q17", $scope0_id),
7332
+ }, "r18", $scope0_id),
7107
7333
  onExit: _resume(function() {
7108
7334
  view = "term";
7109
- }, "q18", $scope0_id)
7335
+ }, "r19", $scope0_id)
7110
7336
  });
7111
7337
  _show_end($scope0_id, "f", $show);
7112
7338
  _html(`<div class=${view === "diff" ? "\"term-area as-bar\"" : "term-area"}>`);
@@ -7145,31 +7371,31 @@ var work_view_default = _template("q", (input) => {
7145
7371
  sessions: shownSessions,
7146
7372
  onNewSession: _resume(function(agent) {
7147
7373
  newSession(ws.id, agent);
7148
- }, "q19", $scope2_id),
7374
+ }, "r20", $scope2_id),
7149
7375
  onOpenTab: _resume(function(id) {
7150
7376
  tab = id;
7151
- }, "q20", $scope2_id),
7377
+ }, "r21", $scope2_id),
7152
7378
  onCloseSession: _resume(function(id) {
7153
7379
  closeSession(id);
7154
- }, "q21", $scope2_id),
7380
+ }, "r22", $scope2_id),
7155
7381
  onRenameSession: _resume(function(id) {
7156
7382
  const target = (shownSessions || []).find((x) => x.id === id);
7157
7383
  if (target) renaming = target;
7158
- }, "q22", $scope2_id),
7384
+ }, "r23", $scope2_id),
7159
7385
  active: input.active && view === "term" && s.id === curTab,
7160
7386
  mode: view,
7161
7387
  onToggleDiff: _resume(function() {
7162
7388
  openDiff();
7163
- }, "q23", $scope2_id),
7389
+ }, "r24", $scope2_id),
7164
7390
  onExitReview: _resume(function() {
7165
7391
  view = "term";
7166
- }, "q24", $scope2_id),
7392
+ }, "r25", $scope2_id),
7167
7393
  onOpenNav: _resume(function() {
7168
7394
  drawerOpen = true;
7169
- }, "q25", $scope2_id),
7395
+ }, "r26", $scope2_id),
7170
7396
  onManage: _resume(function() {
7171
7397
  input.onManage?.(ws.id);
7172
- }, "q26", $scope2_id)
7398
+ }, "r27", $scope2_id)
7173
7399
  });
7174
7400
  _show_end($scope2_id, "d", $show2);
7175
7401
  _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, {
@@ -7181,7 +7407,7 @@ var work_view_default = _template("q", (input) => {
7181
7407
  if (!shownSessions.length) {
7182
7408
  const $scope3_id = _scope_id();
7183
7409
  _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>`);
7184
- _script($scope3_id, "q31");
7410
+ _script($scope3_id, "r32");
7185
7411
  _subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope3_id, {})));
7186
7412
  return 0;
7187
7413
  }
@@ -7189,9 +7415,9 @@ var work_view_default = _template("q", (input) => {
7189
7415
  writeScope($scope1_id, {});
7190
7416
  return 0;
7191
7417
  } else {
7192
- const $scope7_id = _scope_id();
7418
+ const $scope8_id = _scope_id();
7193
7419
  _html("<p class=\"dim pad-inline\">Loading sessions…</p>");
7194
- writeScope($scope7_id, {});
7420
+ writeScope($scope8_id, {});
7195
7421
  return 1;
7196
7422
  }
7197
7423
  }, $scope0_id, "g", 1, 1, 1, "</div>");
@@ -7201,14 +7427,14 @@ var work_view_default = _template("q", (input) => {
7201
7427
  const $scope4_id = _scope_id();
7202
7428
  usage_stats_default({ onClose: _resume(function() {
7203
7429
  usageOpen = false;
7204
- }, "q27", $scope4_id) });
7430
+ }, "r28", $scope4_id) });
7205
7431
  writeScope($scope4_id, {});
7206
7432
  return 0;
7207
7433
  }
7208
7434
  }, $scope0_id, "h");
7209
7435
  _if(() => {
7210
7436
  if (renaming) {
7211
- const $scope6_id = _scope_id();
7437
+ const $scope7_id = _scope_id();
7212
7438
  const $childScope4 = _peek_scope_id();
7213
7439
  prompt_dialog_default({
7214
7440
  label: "Rename session",
@@ -7217,21 +7443,21 @@ var work_view_default = _template("q", (input) => {
7217
7443
  onSubmit: _resume(function(title) {
7218
7444
  renameSession(renaming.id, title);
7219
7445
  renaming = null;
7220
- }, "q28", $scope6_id),
7446
+ }, "r29", $scope7_id),
7221
7447
  onCancel: _resume(function() {
7222
7448
  renaming = null;
7223
- }, "q29", $scope6_id)
7449
+ }, "r30", $scope7_id)
7224
7450
  });
7225
- writeScope($scope6_id, { a: _existing_scope($childScope4) });
7451
+ writeScope($scope7_id, { a: _existing_scope($childScope4) });
7226
7452
  return 0;
7227
7453
  }
7228
7454
  }, $scope0_id, "i");
7229
7455
  _html("</div>");
7230
- _script($scope0_id, "q32");
7231
- _script($scope0_id, "q33");
7232
- _script($scope0_id, "q34");
7233
- _script($scope0_id, "q35");
7234
- _script($scope0_id, "q36");
7456
+ _script($scope0_id, "r33");
7457
+ _script($scope0_id, "r34");
7458
+ _script($scope0_id, "r35");
7459
+ _script($scope0_id, "r36");
7460
+ _script($scope0_id, "r37");
7235
7461
  writeScope($scope0_id, {
7236
7462
  m: input.allStatus,
7237
7463
  n: input.active,
@@ -7266,6 +7492,7 @@ var work_view_default = _template("q", (input) => {
7266
7492
  b0: newSession,
7267
7493
  b1: promptRename,
7268
7494
  a: _existing_scope($childScope),
7495
+ b6: $error__closures,
7269
7496
  d: _existing_scope($childScope2),
7270
7497
  b2: $si__input_active && $input_active__closures,
7271
7498
  b4: $si__input_agents && $input_agents__closures,
@@ -7368,31 +7595,41 @@ var _page_default = _template("b", (input) => {
7368
7595
  _if(() => {
7369
7596
  if (error && loaded) {
7370
7597
  const $scope6_id = _scope_id();
7371
- _html(`<p class=toast-error>${_escape(error)}${_el_resume($scope6_id, "a")} <button>×</button>${_el_resume($scope6_id, "b")}</p>`);
7372
- _script($scope6_id, "b18");
7598
+ toast_default({
7599
+ onDismiss: _resume(function() {
7600
+ error = null;
7601
+ }, "b3", $scope6_id),
7602
+ content: _content_resume("b19", () => {
7603
+ _scope_reason();
7604
+ const $scope7_id = _scope_id();
7605
+ _html(`${_escape(error)}${_el_resume($scope7_id, "a")}`);
7606
+ _subscribe($error__closures, writeScope($scope7_id, { _: _scope_with_id($scope6_id) }));
7607
+ _resume_branch($scope7_id);
7608
+ }, $scope6_id)
7609
+ });
7373
7610
  writeScope($scope6_id, {});
7374
7611
  return 0;
7375
7612
  }
7376
7613
  }, $scope0_id, "a", 1, 1, 1, 0, 1);
7377
7614
  _if(() => {
7378
7615
  if (!loaded) {
7379
- const $scope7_id = _scope_id();
7616
+ const $scope8_id = _scope_id();
7380
7617
  _html("<div class=\"boot dim\">");
7381
7618
  _if(() => {
7382
7619
  if (error) {
7383
- const $scope8_id = _scope_id();
7384
- _html(`<p>${_escape(error)}${_el_resume($scope8_id, "a")}</p><button class=btn>Retry</button>${_el_resume($scope8_id, "b")}`);
7385
- _script($scope8_id, "b19");
7386
- _subscribe($error__closures, writeScope($scope8_id, {}));
7620
+ const $scope9_id = _scope_id();
7621
+ _html(`<p>${_escape(error)}${_el_resume($scope9_id, "a")}</p><button class=btn>Retry</button>${_el_resume($scope9_id, "b")}`);
7622
+ _script($scope9_id, "b20");
7623
+ _subscribe($error__closures, writeScope($scope9_id, { Cae: 1 }));
7387
7624
  return 0;
7388
7625
  } else {
7389
- const $scope9_id = _scope_id();
7626
+ const $scope10_id = _scope_id();
7390
7627
  _html("<span class=spin></span>Loading workspaces…");
7391
- writeScope($scope9_id, {});
7628
+ writeScope($scope10_id, {});
7392
7629
  return 1;
7393
7630
  }
7394
- }, $scope7_id, "a", 1, 1, 1, "</div>");
7395
- writeScope($scope7_id, {});
7631
+ }, $scope8_id, "a", 1, 1, 1, "</div>");
7632
+ writeScope($scope8_id, {});
7396
7633
  return 0;
7397
7634
  }
7398
7635
  }, $scope0_id, "b", 1, 1, 1, 0, 1);
@@ -7409,14 +7646,14 @@ var _page_default = _template("b", (input) => {
7409
7646
  inline: !paletteOpen && showInlinePalette,
7410
7647
  onSettings: _resume(function(s) {
7411
7648
  settings = s;
7412
- }, "b3", $scope1_id),
7649
+ }, "b4", $scope1_id),
7413
7650
  onSelect: _resume(function(ws) {
7414
7651
  openWorkspace(ws.id);
7415
- }, "b4", $scope1_id),
7652
+ }, "b5", $scope1_id),
7416
7653
  onReview: _resume(function(ws) {
7417
7654
  navIntent.requestDiff(ws.id);
7418
7655
  openWorkspace(ws.id);
7419
- }, "b5", $scope1_id),
7656
+ }, "b6", $scope1_id),
7420
7657
  onNewSession: _resume(function(ws, agent) {
7421
7658
  paletteOpen = false;
7422
7659
  api(`/api/workspaces/${ws.id}/sessions`, {
@@ -7429,19 +7666,19 @@ var _page_default = _template("b", (input) => {
7429
7666
  }).catch((err) => {
7430
7667
  error = `New session failed: ${String(err.message || err)}`;
7431
7668
  });
7432
- }, "b6", $scope1_id),
7669
+ }, "b7", $scope1_id),
7433
7670
  onManage: _resume(function(ws) {
7434
7671
  managingId = ws.id;
7435
7672
  creating = false;
7436
7673
  paletteOpen = false;
7437
- }, "b7", $scope1_id),
7674
+ }, "b8", $scope1_id),
7438
7675
  onNew: _resume(function() {
7439
7676
  creating = true;
7440
7677
  paletteOpen = false;
7441
- }, "b8", $scope1_id),
7678
+ }, "b9", $scope1_id),
7442
7679
  onClose: _resume(function() {
7443
7680
  paletteOpen = false;
7444
- }, "b9", $scope1_id)
7681
+ }, "b10", $scope1_id)
7445
7682
  });
7446
7683
  writeScope($scope1_id, { a: _existing_scope($childScope) });
7447
7684
  return 0;
@@ -7456,10 +7693,10 @@ var _page_default = _template("b", (input) => {
7456
7693
  workspace: managing,
7457
7694
  onClose: _resume(function() {
7458
7695
  managingId = null;
7459
- }, "b10", $scope2_id),
7696
+ }, "b11", $scope2_id),
7460
7697
  onChange: _resume(function(ws) {
7461
7698
  workspaces = workspaces.map((w) => w.id === ws.id ? ws : w);
7462
- }, "b11", $scope2_id)
7699
+ }, "b12", $scope2_id)
7463
7700
  });
7464
7701
  writeScope($scope2_id, { a: _existing_scope($childScope2) });
7465
7702
  return 0;
@@ -7472,12 +7709,12 @@ var _page_default = _template("b", (input) => {
7472
7709
  new_workspace_default({
7473
7710
  onCancel: _resume(function() {
7474
7711
  creating = false;
7475
- }, "b12", $scope3_id),
7712
+ }, "b13", $scope3_id),
7476
7713
  onCreate: _resume(function(ws) {
7477
7714
  if (!workspaces.some((w) => w.id === ws.id)) workspaces = [ws, ...workspaces];
7478
7715
  creating = false;
7479
7716
  openWorkspace(ws.id);
7480
- }, "b13", $scope3_id)
7717
+ }, "b14", $scope3_id)
7481
7718
  });
7482
7719
  writeScope($scope3_id, { a: _existing_scope($childScope3) });
7483
7720
  return 0;
@@ -7502,18 +7739,18 @@ var _page_default = _template("b", (input) => {
7502
7739
  agents: settings ? settings.agents : ["claude"],
7503
7740
  onSelectWorkspace: _resume(function(wsId) {
7504
7741
  openWorkspace(wsId);
7505
- }, "b14", $scope5_id),
7742
+ }, "b15", $scope5_id),
7506
7743
  onOpenSession: _resume(function(wsId, sessionId) {
7507
7744
  navIntent.requestTab(wsId, sessionId);
7508
7745
  prefs.setWorkspaceTab(wsId, sessionId);
7509
7746
  openWorkspace(wsId);
7510
- }, "b15", $scope5_id),
7747
+ }, "b16", $scope5_id),
7511
7748
  onManage: _resume(function(wsId) {
7512
7749
  managingId = wsId || ws.id;
7513
- }, "b16", $scope5_id),
7750
+ }, "b17", $scope5_id),
7514
7751
  onNew: _resume(function() {
7515
7752
  creating = true;
7516
- }, "b17", $scope5_id)
7753
+ }, "b18", $scope5_id)
7517
7754
  });
7518
7755
  _show_end($scope5_id, "d", $show);
7519
7756
  _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) }))))))));
@@ -7527,7 +7764,7 @@ var _page_default = _template("b", (input) => {
7527
7764
  });
7528
7765
  }, (id) => id, $scope0_id, "f");
7529
7766
  _html("</main>");
7530
- _script($scope0_id, "b20");
7767
+ _script($scope0_id, "b21");
7531
7768
  writeScope($scope0_id, {
7532
7769
  g: workspaces,
7533
7770
  h: status,
@@ -21728,4 +21965,4 @@ server.listen(port, () => {
21728
21965
  //#endregion
21729
21966
  export {};
21730
21967
 
21731
- ;var __MARKO_MANIFEST__={"esfPH6H":{"block":[2,"stylesheet#/assets/index-CExZozP4.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/index-CExZozP4.css\"",">"],"defer":[2,"/assets/index-B9tvi1r1.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/index-B9tvi1r1.js\"","></script>"]}};
21968
+ ;var __MARKO_MANIFEST__={"esfPH6H":{"block":[2,"stylesheet#/assets/index-CxxdFG3E.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/index-CxxdFG3E.css\"",">"],"defer":[2,"/assets/index-CxXU95sL.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/index-CxXU95sL.js\"","></script>"]}};