@dylanpiercey/work 0.0.33 → 0.0.34

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 (156) hide show
  1. package/dist/index.mjs +723 -626
  2. package/dist/public/assets/{_ujs3Cf-s2.js → _-lFHo8zk2.js} +2 -2
  3. package/dist/public/assets/{_ujs3Cf-s2.js.map → _-lFHo8zk2.js.map} +1 -1
  4. package/dist/public/assets/{_B5cYV888.js → _0T7f8ooc.js} +2 -2
  5. package/dist/public/assets/{_B5cYV888.js.map → _0T7f8ooc.js.map} +1 -1
  6. package/dist/public/assets/{_CC1M-Ie3.js → _0lwLZLQL.js} +2 -2
  7. package/dist/public/assets/{_CC1M-Ie3.js.map → _0lwLZLQL.js.map} +1 -1
  8. package/dist/public/assets/{_iFPsXBqw2.js → _3LcAxsyH2.js} +2 -2
  9. package/dist/public/assets/{_iFPsXBqw2.js.map → _3LcAxsyH2.js.map} +1 -1
  10. package/dist/public/assets/{_Ce-UnLgA.js → _6ci7sYVv.js} +2 -2
  11. package/dist/public/assets/{_Ce-UnLgA.js.map → _6ci7sYVv.js.map} +1 -1
  12. package/dist/public/assets/{_TjWgiyx3.js → _9nXeWYZs.js} +2 -2
  13. package/dist/public/assets/{_TjWgiyx3.js.map → _9nXeWYZs.js.map} +1 -1
  14. package/dist/public/assets/{_CLptoP76.js → _B7lL4AIz.js} +2 -2
  15. package/dist/public/assets/{_CLptoP76.js.map → _B7lL4AIz.js.map} +1 -1
  16. package/dist/public/assets/{_k-BfGkJ3.js → _BA9ciy99.js} +2 -2
  17. package/dist/public/assets/{_k-BfGkJ3.js.map → _BA9ciy99.js.map} +1 -1
  18. package/dist/public/assets/{_CVhKyryg.js → _BM1NTbyi.js} +2 -2
  19. package/dist/public/assets/{_CVhKyryg.js.map → _BM1NTbyi.js.map} +1 -1
  20. package/dist/public/assets/{_BJN80lXD2.js → _BMf1fzuY2.js} +2 -2
  21. package/dist/public/assets/{_BJN80lXD2.js.map → _BMf1fzuY2.js.map} +1 -1
  22. package/dist/public/assets/{_BEWOoHPh.js → _BO3Juu4Y.js} +2 -2
  23. package/dist/public/assets/{_BEWOoHPh.js.map → _BO3Juu4Y.js.map} +1 -1
  24. package/dist/public/assets/{_Chh_cVkW.js → _BQxXqMVH.js} +2 -2
  25. package/dist/public/assets/{_Chh_cVkW.js.map → _BQxXqMVH.js.map} +1 -1
  26. package/dist/public/assets/{_D3H_FZ2N2.js → _BSNgpj6n2.js} +2 -2
  27. package/dist/public/assets/{_D3H_FZ2N2.js.map → _BSNgpj6n2.js.map} +1 -1
  28. package/dist/public/assets/{_CoLUhFVy2.js → _BTOpcZK92.js} +2 -2
  29. package/dist/public/assets/{_CoLUhFVy2.js.map → _BTOpcZK92.js.map} +1 -1
  30. package/dist/public/assets/{_D_tVtmDu.js → _BY5thO1g.js} +2 -2
  31. package/dist/public/assets/{_D_tVtmDu.js.map → _BY5thO1g.js.map} +1 -1
  32. package/dist/public/assets/{_Bw3KRZxI2.js → _BZgPjjyH2.js} +2 -2
  33. package/dist/public/assets/{_Bw3KRZxI2.js.map → _BZgPjjyH2.js.map} +1 -1
  34. package/dist/public/assets/{_wDww_MeW2.js → _BbQqGZm22.js} +2 -2
  35. package/dist/public/assets/{_wDww_MeW2.js.map → _BbQqGZm22.js.map} +1 -1
  36. package/dist/public/assets/{_CacjFFZF.js → _BgHjNH9b.js} +2 -2
  37. package/dist/public/assets/{_CacjFFZF.js.map → _BgHjNH9b.js.map} +1 -1
  38. package/dist/public/assets/{_CLf6okdk.js → _Bht4yF5z.js} +2 -2
  39. package/dist/public/assets/{_CLf6okdk.js.map → _Bht4yF5z.js.map} +1 -1
  40. package/dist/public/assets/{_BWvOOubP2.js → _Bl3hSI2b2.js} +2 -2
  41. package/dist/public/assets/{_BWvOOubP2.js.map → _Bl3hSI2b2.js.map} +1 -1
  42. package/dist/public/assets/{_DyoTtYDG2.js → _Bq-esmkV2.js} +2 -2
  43. package/dist/public/assets/{_DyoTtYDG2.js.map → _Bq-esmkV2.js.map} +1 -1
  44. package/dist/public/assets/{_AjDldx3Z2.js → _Bs1iZKsK2.js} +2 -2
  45. package/dist/public/assets/{_AjDldx3Z2.js.map → _Bs1iZKsK2.js.map} +1 -1
  46. package/dist/public/assets/{_DKhSza_S2.js → _Bu7tphR42.js} +2 -2
  47. package/dist/public/assets/{_DKhSza_S2.js.map → _Bu7tphR42.js.map} +1 -1
  48. package/dist/public/assets/{_D5dKoTRN2.js → _BuY46UEC2.js} +2 -2
  49. package/dist/public/assets/{_D5dKoTRN2.js.map → _BuY46UEC2.js.map} +1 -1
  50. package/dist/public/assets/{_CGS0u-MH.js → _Bz5bJ8Y_.js} +2 -2
  51. package/dist/public/assets/{_CGS0u-MH.js.map → _Bz5bJ8Y_.js.map} +1 -1
  52. package/dist/public/assets/{_BoGI_m2Y.js → _C-GkJLpv.js} +2 -2
  53. package/dist/public/assets/{_BoGI_m2Y.js.map → _C-GkJLpv.js.map} +1 -1
  54. package/dist/public/assets/{_DZGhnPAh2.js → _C-ZGxaMQ2.js} +2 -2
  55. package/dist/public/assets/{_DZGhnPAh2.js.map → _C-ZGxaMQ2.js.map} +1 -1
  56. package/dist/public/assets/{_D1AWvYu0.js → _C0GTiS92.js} +2 -2
  57. package/dist/public/assets/{_D1AWvYu0.js.map → _C0GTiS92.js.map} +1 -1
  58. package/dist/public/assets/{_Fu7rzwmo2.js → _C45K0E_O2.js} +2 -2
  59. package/dist/public/assets/{_Fu7rzwmo2.js.map → _C45K0E_O2.js.map} +1 -1
  60. package/dist/public/assets/{_Bg2PM8YT.js → _C47aNCsh.js} +2 -2
  61. package/dist/public/assets/{_Bg2PM8YT.js.map → _C47aNCsh.js.map} +1 -1
  62. package/dist/public/assets/{_8F9Fx5cP.js → _C5Dsq6Y3.js} +2 -2
  63. package/dist/public/assets/{_8F9Fx5cP.js.map → _C5Dsq6Y3.js.map} +1 -1
  64. package/dist/public/assets/{_DfYhW2NI.js → _C5fPbpEz.js} +2 -2
  65. package/dist/public/assets/{_DfYhW2NI.js.map → _C5fPbpEz.js.map} +1 -1
  66. package/dist/public/assets/{_D41HUXW22.js → _CCsG-c5e2.js} +2 -2
  67. package/dist/public/assets/{_D41HUXW22.js.map → _CCsG-c5e2.js.map} +1 -1
  68. package/dist/public/assets/{_9Td5xucy2.js → _CEHy4nud2.js} +2 -2
  69. package/dist/public/assets/{_9Td5xucy2.js.map → _CEHy4nud2.js.map} +1 -1
  70. package/dist/public/assets/{_BPoOSowS.js → _CFmiQtT2.js} +2 -2
  71. package/dist/public/assets/{_BPoOSowS.js.map → _CFmiQtT2.js.map} +1 -1
  72. package/dist/public/assets/{_BM1E43km2.js → _CGMX9yXC2.js} +2 -2
  73. package/dist/public/assets/{_BM1E43km2.js.map → _CGMX9yXC2.js.map} +1 -1
  74. package/dist/public/assets/{_f_1onGVo.js → _CLLEJeRs.js} +2 -2
  75. package/dist/public/assets/{_f_1onGVo.js.map → _CLLEJeRs.js.map} +1 -1
  76. package/dist/public/assets/{_BL0sT3Tb.js → _CV1pXYjT.js} +2 -2
  77. package/dist/public/assets/{_BL0sT3Tb.js.map → _CV1pXYjT.js.map} +1 -1
  78. package/dist/public/assets/{_Cv5yUW-C.js → _CdtEL9QP.js} +2 -2
  79. package/dist/public/assets/{_Cv5yUW-C.js.map → _CdtEL9QP.js.map} +1 -1
  80. package/dist/public/assets/{_-klu5fSf.js → _CkxQU6Dc.js} +2 -2
  81. package/dist/public/assets/{_-klu5fSf.js.map → _CkxQU6Dc.js.map} +1 -1
  82. package/dist/public/assets/{_D5qob12H.js → _Cqn3_VH2.js} +2 -2
  83. package/dist/public/assets/{_D5qob12H.js.map → _Cqn3_VH2.js.map} +1 -1
  84. package/dist/public/assets/{_CJmqbsWn.js → _CttvQkqp.js} +2 -2
  85. package/dist/public/assets/{_CJmqbsWn.js.map → _CttvQkqp.js.map} +1 -1
  86. package/dist/public/assets/{_DpMdqDDO.js → _Cv1QzSrA.js} +2 -2
  87. package/dist/public/assets/{_DpMdqDDO.js.map → _Cv1QzSrA.js.map} +1 -1
  88. package/dist/public/assets/{_C74n10kY.js → _CwML5wGP.js} +2 -2
  89. package/dist/public/assets/{_C74n10kY.js.map → _CwML5wGP.js.map} +1 -1
  90. package/dist/public/assets/{_Pfb9VJuM.js → _CzMaBSK6.js} +2 -2
  91. package/dist/public/assets/{_Pfb9VJuM.js.map → _CzMaBSK6.js.map} +1 -1
  92. package/dist/public/assets/{_DBjRCoSm.js → _D-jmEnaD.js} +2 -2
  93. package/dist/public/assets/{_DBjRCoSm.js.map → _D-jmEnaD.js.map} +1 -1
  94. package/dist/public/assets/{_O5V4SA2S.js → _D1XCa7K7.js} +2 -2
  95. package/dist/public/assets/{_O5V4SA2S.js.map → _D1XCa7K7.js.map} +1 -1
  96. package/dist/public/assets/{_DyjMbqNS.js → _DAK-J3AS.js} +2 -2
  97. package/dist/public/assets/{_DyjMbqNS.js.map → _DAK-J3AS.js.map} +1 -1
  98. package/dist/public/assets/{_Mhk-1VgJ.js → _DLROsaYk.js} +2 -2
  99. package/dist/public/assets/{_Mhk-1VgJ.js.map → _DLROsaYk.js.map} +1 -1
  100. package/dist/public/assets/{_muaAlGMF.js → _DM-QKGQL.js} +2 -2
  101. package/dist/public/assets/{_muaAlGMF.js.map → _DM-QKGQL.js.map} +1 -1
  102. package/dist/public/assets/{_kFNwcuvr2.js → _DQ1byX2e2.js} +2 -2
  103. package/dist/public/assets/{_kFNwcuvr2.js.map → _DQ1byX2e2.js.map} +1 -1
  104. package/dist/public/assets/{_DuBJifJJ.js → _DRCu_oY3.js} +2 -2
  105. package/dist/public/assets/{_DuBJifJJ.js.map → _DRCu_oY3.js.map} +1 -1
  106. package/dist/public/assets/{_COINgEFl.js → _DVT6rHDl.js} +2 -2
  107. package/dist/public/assets/{_COINgEFl.js.map → _DVT6rHDl.js.map} +1 -1
  108. package/dist/public/assets/{_DU4uDxJM.js → _DVW0Wg2c.js} +2 -2
  109. package/dist/public/assets/{_DU4uDxJM.js.map → _DVW0Wg2c.js.map} +1 -1
  110. package/dist/public/assets/{_hooIWuAt.js → _DeI9niJs.js} +2 -2
  111. package/dist/public/assets/{_hooIWuAt.js.map → _DeI9niJs.js.map} +1 -1
  112. package/dist/public/assets/{_BnepmhWf2.js → _DjDLEEDd2.js} +2 -2
  113. package/dist/public/assets/{_BnepmhWf2.js.map → _DjDLEEDd2.js.map} +1 -1
  114. package/dist/public/assets/{_CTdjxyC7.js → _DjxPVp5U.js} +2 -2
  115. package/dist/public/assets/{_CTdjxyC7.js.map → _DjxPVp5U.js.map} +1 -1
  116. package/dist/public/assets/{_DN64thrx.js → _DnrpkC6W.js} +2 -2
  117. package/dist/public/assets/{_DN64thrx.js.map → _DnrpkC6W.js.map} +1 -1
  118. package/dist/public/assets/{_DwglaQs8.js → _DrmxaS0k.js} +2 -2
  119. package/dist/public/assets/{_DwglaQs8.js.map → _DrmxaS0k.js.map} +1 -1
  120. package/dist/public/assets/{_CKdywEe0.js → _DwoQd6de.js} +2 -2
  121. package/dist/public/assets/{_CKdywEe0.js.map → _DwoQd6de.js.map} +1 -1
  122. package/dist/public/assets/{_CctkwSwM.js → _DyyQeo94.js} +2 -2
  123. package/dist/public/assets/{_CctkwSwM.js.map → _DyyQeo94.js.map} +1 -1
  124. package/dist/public/assets/{_C5AMG61s2.js → _HOnDceKS2.js} +2 -2
  125. package/dist/public/assets/{_C5AMG61s2.js.map → _HOnDceKS2.js.map} +1 -1
  126. package/dist/public/assets/{_B3nW8JkI.js → _JIlNGzfE.js} +2 -2
  127. package/dist/public/assets/{_B3nW8JkI.js.map → _JIlNGzfE.js.map} +1 -1
  128. package/dist/public/assets/{_BIwcYVu8.js → _MTKF2Fgh.js} +2 -2
  129. package/dist/public/assets/{_BIwcYVu8.js.map → _MTKF2Fgh.js.map} +1 -1
  130. package/dist/public/assets/{_DJsZ0bHq.js → _MWLKuKk1.js} +2 -2
  131. package/dist/public/assets/{_DJsZ0bHq.js.map → _MWLKuKk1.js.map} +1 -1
  132. package/dist/public/assets/{_CbHrblZU.js → _S_GkiS7V.js} +2 -2
  133. package/dist/public/assets/{_CbHrblZU.js.map → _S_GkiS7V.js.map} +1 -1
  134. package/dist/public/assets/{_Blld8tfN.js → _S_dWwx4b.js} +2 -2
  135. package/dist/public/assets/{_Blld8tfN.js.map → _S_dWwx4b.js.map} +1 -1
  136. package/dist/public/assets/{_BJ2Ewl882.js → _bIuAHcgW2.js} +2 -2
  137. package/dist/public/assets/{_BJ2Ewl882.js.map → _bIuAHcgW2.js.map} +1 -1
  138. package/dist/public/assets/{_Ca0wIrWe.js → _bhJWkZhp.js} +2 -2
  139. package/dist/public/assets/{_Ca0wIrWe.js.map → _bhJWkZhp.js.map} +1 -1
  140. package/dist/public/assets/{__ZPt9LLv.js → _dKI0s7pW.js} +2 -2
  141. package/dist/public/assets/{__ZPt9LLv.js.map → _dKI0s7pW.js.map} +1 -1
  142. package/dist/public/assets/{_D-977nbP2.js → _iC139j9r2.js} +2 -2
  143. package/dist/public/assets/{_D-977nbP2.js.map → _iC139j9r2.js.map} +1 -1
  144. package/dist/public/assets/{_Ez6GWFhB2.js → _jUcYdc4y2.js} +2 -2
  145. package/dist/public/assets/{_Ez6GWFhB2.js.map → _jUcYdc4y2.js.map} +1 -1
  146. package/dist/public/assets/{_DDL85kCz.js → _v8f0ZllR.js} +2 -2
  147. package/dist/public/assets/{_DDL85kCz.js.map → _v8f0ZllR.js.map} +1 -1
  148. package/dist/public/assets/{_DO5QmTxw2.js → _wZr_KYlB2.js} +2 -2
  149. package/dist/public/assets/{_DO5QmTxw2.js.map → _wZr_KYlB2.js.map} +1 -1
  150. package/dist/public/assets/index-CruM-Gda.js +1615 -0
  151. package/dist/public/assets/index-CruM-Gda.js.map +1 -0
  152. package/dist/public/assets/index-DkSXfvNK.css +1 -0
  153. package/package.json +1 -1
  154. package/dist/public/assets/index-C_nMyXjp.css +0 -1
  155. package/dist/public/assets/index-D98ikHh-.js +0 -1615
  156. package/dist/public/assets/index-D98ikHh-.js.map +0 -1
package/dist/index.mjs CHANGED
@@ -10710,30 +10710,30 @@ var _layout_default = _template("a", (input) => {
10710
10710
  _trailers("</body></html>");
10711
10711
  _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {});
10712
10712
  }, 1);
10713
- var page_module_default = { boot: "_w" };
10713
+ var page_module_default = { boot: "_a" };
10714
10714
  var ui_module_default = {
10715
- icon: "_a",
10716
- btn: "_b",
10717
- primary: "_c",
10718
- danger: "_d",
10719
- armed: "_e",
10720
- chip: "_f",
10721
- lane: "_g",
10722
- pr: "_h",
10723
- draft: "_i",
10724
- dim: "_j",
10725
- mono: "_k",
10726
- spacer: "_l",
10727
- dot: "_m",
10728
- working: "_n",
10729
- waiting: "_o",
10730
- idle: "_p",
10731
- off: "_q",
10732
- splitBtn: "_r",
10733
- splitPrimary: "_s _r",
10734
- splitGrow: "_t",
10735
- spin: "_u",
10736
- workSpin: "_v"
10715
+ icon: "_b",
10716
+ btn: "_c",
10717
+ primary: "_d",
10718
+ danger: "_e",
10719
+ armed: "_f",
10720
+ chip: "_g",
10721
+ lane: "_h",
10722
+ pr: "_i",
10723
+ draft: "_j",
10724
+ dim: "_k",
10725
+ mono: "_l",
10726
+ spacer: "_m",
10727
+ dot: "_n",
10728
+ working: "_o",
10729
+ waiting: "_p",
10730
+ idle: "_q",
10731
+ off: "_r",
10732
+ splitBtn: "_s",
10733
+ splitPrimary: "_t _s",
10734
+ splitGrow: "_u",
10735
+ spin: "_v",
10736
+ workSpin: "_w"
10737
10737
  };
10738
10738
  var page_boot_module_default = { root: "_x" };
10739
10739
  var bus = new EventTarget();
@@ -10770,17 +10770,17 @@ function coalesce(fn) {
10770
10770
  };
10771
10771
  }
10772
10772
  var toast_module_default = {
10773
- toast: "_H",
10774
- toastFloat: "_I",
10775
- toastInline: "_J",
10776
- toastError: "_K",
10777
- toastTitle: "_L",
10778
- toastWarn: "_M",
10779
- toastInfo: "_N",
10780
- toastBody: "_O",
10781
- toastContent: "_P",
10782
- toastActions: "_Q",
10783
- toastDismiss: "_R _bz"
10773
+ toast: "_y",
10774
+ toastFloat: "_z",
10775
+ toastInline: "_A",
10776
+ toastError: "_B",
10777
+ toastTitle: "_C",
10778
+ toastWarn: "_D",
10779
+ toastInfo: "_E",
10780
+ toastBody: "_F",
10781
+ toastContent: "_G",
10782
+ toastActions: "_H",
10783
+ toastDismiss: "_I _d9"
10784
10784
  };
10785
10785
  //#endregion
10786
10786
  //#region src/tags/toast.marko
@@ -10924,27 +10924,27 @@ function sessionPhase(state) {
10924
10924
  return state?.phase === "working" ? "working" : state?.phase === "waiting" ? "waiting" : state?.alive ? "idle" : "off";
10925
10925
  }
10926
10926
  var palette_module_default = {
10927
- paletteBackdrop: "_be",
10928
- palette: "_bf",
10929
- inline: "_bg",
10930
- rows: "_bh",
10931
- rowWrap: "_bi",
10932
- row: "_bj",
10933
- rowMore: "_bk",
10934
- hi: "_bl",
10935
- archived: "_bm",
10936
- cmdRow: "_bn",
10937
- onboard: "_bo",
10938
- rowName: "_bp",
10939
- rowNameText: "_bq",
10940
- rowStats: "_br",
10941
- open: "_bs",
10942
- stat: "_bt",
10943
- rowRepos: "_bu",
10944
- paletteFoot: "_bv",
10945
- hint: "_bw",
10946
- archivedLink: "_bx",
10947
- newSessionPop: "_by"
10927
+ paletteBackdrop: "_S",
10928
+ palette: "_T",
10929
+ inline: "_U",
10930
+ rows: "_V",
10931
+ rowWrap: "_W",
10932
+ row: "_X",
10933
+ rowMore: "_Y",
10934
+ hi: "_Z",
10935
+ archived: "_0",
10936
+ cmdRow: "_1",
10937
+ onboard: "_2",
10938
+ rowName: "_3",
10939
+ rowNameText: "_4",
10940
+ rowStats: "_5",
10941
+ open: "_6",
10942
+ stat: "_7",
10943
+ rowRepos: "_8",
10944
+ paletteFoot: "_9",
10945
+ hint: "__",
10946
+ archivedLink: "_ba",
10947
+ newSessionPop: "_bb"
10948
10948
  };
10949
10949
  //#endregion
10950
10950
  //#region src/tags/icons/icon-base.marko
@@ -11344,29 +11344,29 @@ var palette_default = _template("o", (input) => {
11344
11344
  _resume_branch($scope0_id);
11345
11345
  });
11346
11346
  var new_workspace_module_default = {
11347
- page: "_S",
11348
- body: "_T",
11349
- content: "_U",
11350
- pageHead: "_V",
11351
- backBtn: "_W",
11352
- pageHeadText: "_X",
11353
- pageMeta: "_Y",
11354
- actions: "_Z",
11355
- barPrimary: "_0",
11356
- iconBtn: "_1 _bz",
11357
- spinning: "_2 _bA",
11358
- field: "_3",
11359
- section: "_4",
11360
- reposHead: "_5",
11361
- curRepos: "_6",
11362
- curRepo: "_7",
11363
- curFull: "_8",
11364
- curBase: "_9",
11365
- curRemove: "__",
11366
- emptyNote: "_ba",
11367
- steps: "_bb",
11368
- active: "_bc",
11369
- stepDone: "_bd"
11347
+ page: "_bc",
11348
+ body: "_bd",
11349
+ content: "_be",
11350
+ pageHead: "_bf",
11351
+ backBtn: "_bg",
11352
+ pageHeadText: "_bh",
11353
+ pageMeta: "_bi",
11354
+ actions: "_bj",
11355
+ barPrimary: "_bk",
11356
+ iconBtn: "_bl _d9",
11357
+ spinning: "_bm _d_",
11358
+ field: "_bn",
11359
+ section: "_bo",
11360
+ reposHead: "_bp",
11361
+ curRepos: "_bq",
11362
+ curRepo: "_br",
11363
+ curFull: "_bs",
11364
+ curBase: "_bt",
11365
+ curRemove: "_bu",
11366
+ emptyNote: "_bv",
11367
+ steps: "_bw",
11368
+ active: "_bx",
11369
+ stepDone: "_by"
11370
11370
  };
11371
11371
  //#endregion
11372
11372
  //#region src/tags/icons/icon-back.marko
@@ -11403,18 +11403,18 @@ var icon_refresh_default = _template("M", (input) => {
11403
11403
  _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
11404
11404
  });
11405
11405
  var repo_picker_module_default = {
11406
- addRepo: "_dz",
11407
- repoResults: "_dA",
11408
- resultWrap: "_dB",
11409
- hi: "_dC",
11410
- resultRow: "_dD",
11411
- resultBranch: "_dE",
11412
- on: "_dF",
11413
- branchPick: "_dG",
11414
- branchList: "_dH",
11415
- resultPlus: "_dI",
11416
- repoName: "_dJ",
11417
- emptyNote: "_dK"
11406
+ addRepo: "_eb",
11407
+ repoResults: "_ec",
11408
+ resultWrap: "_ed",
11409
+ hi: "_ee",
11410
+ resultRow: "_ef",
11411
+ resultBranch: "_eg",
11412
+ on: "_eh",
11413
+ branchPick: "_ei",
11414
+ branchList: "_ej",
11415
+ resultPlus: "_ek",
11416
+ repoName: "_el",
11417
+ emptyNote: "_em"
11418
11418
  };
11419
11419
  //#endregion
11420
11420
  //#region src/tags/repo-picker.marko
@@ -11824,15 +11824,15 @@ function diffUncommitted() {
11824
11824
  return get("diff-uncommitted") === "1";
11825
11825
  }
11826
11826
  var work_view_module_default = {
11827
- workView: "_y",
11828
- sideWrap: "_z",
11829
- sideHidden: "_A",
11830
- navPage: "_B",
11831
- mainCol: "_C",
11832
- termArea: "_D",
11833
- asBar: "_E",
11834
- padInline: "_F",
11835
- emptySess: "_G"
11827
+ workView: "_J",
11828
+ sideWrap: "_K",
11829
+ sideHidden: "_L",
11830
+ navPage: "_M",
11831
+ mainCol: "_N",
11832
+ termArea: "_O",
11833
+ asBar: "_P",
11834
+ padInline: "_Q",
11835
+ emptySess: "_R"
11836
11836
  };
11837
11837
  //#endregion
11838
11838
  //#region src/client/api.ts
@@ -11897,23 +11897,23 @@ function vapidKey(base64) {
11897
11897
  return Uint8Array.from(raw, (c) => c.charCodeAt(0));
11898
11898
  }
11899
11899
  var side_nav_module_default = {
11900
- iconBtn: "_bC _bz",
11901
- spinning: "_bD _bA",
11902
- navToggle: "_bE _bz",
11903
- notifyBtn: "_bF _bz",
11904
- sideNav: "_bG",
11905
- pageHead: "_bH",
11906
- pageHeadActions: "_bI",
11907
- sectionLabel: "_bJ",
11908
- newSpaceBtn: "_bK",
11909
- page: "_bL",
11910
- sideList: "_bM",
11911
- sideRail: "_bN",
11912
- sideFoot: "_bO",
11913
- footSpacer: "_bP",
11914
- on: "_bQ",
11915
- closed: "_bR",
11916
- railPop: "_bS"
11900
+ iconBtn: "_b8 _d9",
11901
+ spinning: "_b9 _d_",
11902
+ navToggle: "_b_ _d9",
11903
+ notifyBtn: "_ca _d9",
11904
+ sideNav: "_cb",
11905
+ pageHead: "_cc",
11906
+ pageHeadActions: "_cd",
11907
+ sectionLabel: "_ce",
11908
+ newSpaceBtn: "_cf",
11909
+ page: "_cg",
11910
+ sideList: "_ch",
11911
+ sideRail: "_ci",
11912
+ sideFoot: "_cj",
11913
+ footSpacer: "_ck",
11914
+ on: "_cl",
11915
+ closed: "_cm",
11916
+ railPop: "_cn"
11917
11917
  };
11918
11918
  _template("B", (input) => {
11919
11919
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
@@ -11948,32 +11948,32 @@ var icon_gauge_default = _template("H", (input) => {
11948
11948
  _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
11949
11949
  });
11950
11950
  var side_nav_item_module_default = {
11951
- railBtn: "_et _bz",
11952
- current: "_eu",
11953
- railDot: "_ev",
11954
- ws: "_ew",
11955
- railPopWs: "_ex",
11956
- wsRow: "_ey",
11957
- wsBtn: "_ez",
11958
- wsActions: "_eA",
11959
- newSessionPop: "_eB",
11960
- rowIcon: "_eC",
11961
- wsText: "_eD",
11962
- wsName: "_eE",
11963
- wsMeta: "_eF",
11964
- wsOpenHint: "_eG",
11965
- statusDot: "_eH",
11966
- pageCard: "_eI",
11967
- sessTitle: "_eJ",
11968
- sessActions: "_eK",
11969
- sessRenameDot: "_eL",
11970
- sessRename: "_eM",
11971
- close: "_eN",
11972
- sess: "_eO",
11973
- armed: "_eP",
11974
- sessions: "_eQ",
11975
- sessBtn: "_eR",
11976
- sessIcon: "_eS"
11951
+ railBtn: "_eP _d9",
11952
+ current: "_eQ",
11953
+ railDot: "_eR",
11954
+ ws: "_eS",
11955
+ railPopWs: "_eT",
11956
+ wsRow: "_eU",
11957
+ wsBtn: "_eV",
11958
+ wsActions: "_eW",
11959
+ newSessionPop: "_eX",
11960
+ rowIcon: "_eY",
11961
+ wsText: "_eZ",
11962
+ wsName: "_e0",
11963
+ wsMeta: "_e1",
11964
+ wsOpenHint: "_e2",
11965
+ statusDot: "_e3",
11966
+ pageCard: "_e4",
11967
+ sessTitle: "_e5",
11968
+ sessActions: "_e6",
11969
+ sessRenameDot: "_e7",
11970
+ sessRename: "_e8",
11971
+ close: "_e9",
11972
+ sess: "_e_",
11973
+ armed: "_fa",
11974
+ sessions: "_fb",
11975
+ sessBtn: "_fc",
11976
+ sessIcon: "_fd"
11977
11977
  };
11978
11978
  //#endregion
11979
11979
  //#region src/tags/icons/icon-edit.marko
@@ -11993,13 +11993,13 @@ var icon_edit_default = _template("F", (input) => {
11993
11993
  _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
11994
11994
  });
11995
11995
  var side_nav_chips_module_default = {
11996
- sideChips: "_fa",
11997
- prBtn: "_fb",
11998
- portChip: "_fc",
11999
- portOpen: "_fd",
12000
- portKill: "_fe",
12001
- rejected: "_ff",
12002
- armed: "_fg"
11996
+ sideChips: "_fe",
11997
+ prBtn: "_ff",
11998
+ portChip: "_fg",
11999
+ portOpen: "_fh",
12000
+ portKill: "_fi",
12001
+ rejected: "_fj",
12002
+ armed: "_fk"
12003
12003
  };
12004
12004
  //#endregion
12005
12005
  //#region src/tags/side-nav-chips.marko
@@ -13037,42 +13037,96 @@ function treeRows(files) {
13037
13037
  return rows;
13038
13038
  }
13039
13039
  var diff_view_module_default = {
13040
- iconBtn: "_bT _bz",
13041
- spinning: "_bU _bA",
13042
- diffView: "_bV",
13043
- treeToggle: "_bW _bz",
13044
- diffTools: "_bX",
13045
- on: "_bY",
13046
- diffCol: "_bZ",
13047
- diffHead: "_b0",
13048
- backBtn: "_b1",
13049
- headText: "_b2",
13050
- pageTitle: "_b3",
13051
- headWithSend: "_b4",
13052
- findBtn: "_b5",
13053
- diffMain: "_b6",
13054
- toastMeta: "_b7",
13055
- diffStats: "_b8",
13056
- scope: "_b9",
13057
- scopeOpt: "_b_",
13058
- scopeOn: "_ca",
13059
- scopeChip: "_cb",
13060
- repoSection: "_cc",
13061
- repoSep: "_cd",
13062
- repoWorktree: "_ce _k",
13063
- repoTitle: "_cf _j",
13064
- repoMeta: "_cg",
13065
- files: "_ch",
13066
- file: "_ci",
13067
- diffWait: "_cj",
13068
- treeChev: "_ck",
13069
- status: "_cl",
13070
- path: "_cm",
13071
- centerPad: "_cn",
13072
- filesBtn: "_co",
13073
- diffPad: "_cp"
13040
+ iconBtn: "_dx _d9",
13041
+ spinning: "_dy _d_",
13042
+ diffView: "_dz",
13043
+ treeToggle: "_dA _d9",
13044
+ diffTools: "_dB",
13045
+ on: "_dC",
13046
+ diffCol: "_dD",
13047
+ diffHead: "_dE",
13048
+ backBtn: "_dF",
13049
+ headText: "_dG",
13050
+ pageTitle: "_dH",
13051
+ headWithSend: "_dI",
13052
+ findBtn: "_dJ",
13053
+ diffMain: "_dK",
13054
+ toastMeta: "_dL",
13055
+ diffStats: "_dM",
13056
+ statAdd: "_dN",
13057
+ statDel: "_dO",
13058
+ statEmpty: "_dP",
13059
+ statSep: "_dQ",
13060
+ scope: "_dR",
13061
+ scopeOpt: "_dS",
13062
+ scopeOn: "_dT",
13063
+ scopeChip: "_dU",
13064
+ repoSection: "_dV",
13065
+ repoSep: "_dW",
13066
+ repoWorktree: "_dX _l",
13067
+ repoTitle: "_dY _k",
13068
+ repoMeta: "_dZ",
13069
+ files: "_d0",
13070
+ file: "_d1",
13071
+ diffWait: "_d2",
13072
+ treeChev: "_d3",
13073
+ status: "_d4",
13074
+ path: "_d5",
13075
+ centerPad: "_d6",
13076
+ filesBtn: "_d7",
13077
+ diffPad: "_d8"
13074
13078
  };
13075
- var diff_send_module_default = { headActions: "_eT" };
13079
+ var file_filter_module_default = {
13080
+ wrap: "_ex",
13081
+ fileFilter: "_ey"
13082
+ };
13083
+ //#endregion
13084
+ //#region src/tags/file-filter.marko
13085
+ var file_filter_default = _template("j", (input) => {
13086
+ const $scope0_reason = _scope_reason();
13087
+ const $scope0_id = _scope_id();
13088
+ let value = input.value;
13089
+ let pending = null;
13090
+ const draft = (pending ?? value) || "";
13091
+ const box = { timer: 0 };
13092
+ const flush = _resume(() => {
13093
+ if (box.timer) {
13094
+ clearTimeout(box.timer);
13095
+ box.timer = 0;
13096
+ }
13097
+ const next = pending !== null ? pending : value || "";
13098
+ pending = null;
13099
+ value = next;
13100
+ }, "j1", $scope0_id);
13101
+ const type = _resume((v) => {
13102
+ if (box.timer) clearTimeout(box.timer);
13103
+ if (!v) {
13104
+ box.timer = 0;
13105
+ pending = null;
13106
+ value = "";
13107
+ return;
13108
+ }
13109
+ pending = v;
13110
+ box.timer = setTimeout(flush, 150);
13111
+ }, "j2", $scope0_id);
13112
+ _html(`<div${_attr_class(file_filter_module_default.wrap)}><input${_attr_input_value($scope0_id, "b", draft, _resume(function(v) {
13113
+ type(v);
13114
+ }, "j0", $scope0_id))}${_attr_class(file_filter_module_default.fileFilter)} type=search placeholder="Filter files… (globs, !excludes)" aria-label="Filter files">${_el_resume($scope0_id, "b")}</div>`);
13115
+ _script($scope0_id, "j3");
13116
+ writeScope($scope0_id, {
13117
+ e: _serialize_if($scope0_reason, 1) && input.value,
13118
+ f: _serialize_if($scope0_reason, 0) && input.valueChange,
13119
+ h: value,
13120
+ j: pending,
13121
+ l: draft,
13122
+ n: box.timer,
13123
+ p: flush,
13124
+ r: type,
13125
+ i: input.valueChange || void 0
13126
+ });
13127
+ _resume_branch($scope0_id);
13128
+ });
13129
+ var diff_send_module_default = { headActions: "_ez" };
13076
13130
  //#endregion
13077
13131
  //#region src/tags/diff-send.marko
13078
13132
  var diff_send_default = _template("g", (input) => {
@@ -13124,73 +13178,6 @@ var diff_send_default = _template("g", (input) => {
13124
13178
  _resume_branch($scope0_id);
13125
13179
  });
13126
13180
  //#endregion
13127
- //#region src/tags/icons/icon-search.marko
13128
- var icon_search_default = _template("N", (input) => {
13129
- const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
13130
- const $scope0_id = _scope_id();
13131
- _set_serialize_reason({
13132
- 0: $sg__input_size__OR__input_class,
13133
- 1: $sg__input_size__OR__input_class
13134
- });
13135
- const $childScope = _peek_scope_id();
13136
- icon_base_default({
13137
- d: "M17 17L21 21 M3 11C3 15.4183 6.58172 19 11 19C13.213 19 15.2161 18.1015 16.6644 16.6493C18.1077 15.2022 19 13.2053 19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11Z",
13138
- size: input.size,
13139
- class: input.class
13140
- });
13141
- _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
13142
- });
13143
- var file_filter_module_default = {
13144
- wrap: "_eU",
13145
- fileFilter: "_eV"
13146
- };
13147
- //#endregion
13148
- //#region src/tags/file-filter.marko
13149
- var file_filter_default = _template("j", (input) => {
13150
- const $scope0_reason = _scope_reason();
13151
- const $scope0_id = _scope_id();
13152
- let value = input.value;
13153
- let pending = null;
13154
- const draft = (pending ?? value) || "";
13155
- const box = { timer: 0 };
13156
- const flush = _resume(() => {
13157
- if (box.timer) {
13158
- clearTimeout(box.timer);
13159
- box.timer = 0;
13160
- }
13161
- const next = pending !== null ? pending : value || "";
13162
- pending = null;
13163
- value = next;
13164
- }, "j1", $scope0_id);
13165
- const type = _resume((v) => {
13166
- if (box.timer) clearTimeout(box.timer);
13167
- if (!v) {
13168
- box.timer = 0;
13169
- pending = null;
13170
- value = "";
13171
- return;
13172
- }
13173
- pending = v;
13174
- box.timer = setTimeout(flush, 150);
13175
- }, "j2", $scope0_id);
13176
- _html(`<div${_attr_class(file_filter_module_default.wrap)}><input${_attr_input_value($scope0_id, "b", draft, _resume(function(v) {
13177
- type(v);
13178
- }, "j0", $scope0_id))}${_attr_class(file_filter_module_default.fileFilter)} type=search placeholder="Filter files… (globs, !excludes)" aria-label="Filter files">${_el_resume($scope0_id, "b")}</div>`);
13179
- _script($scope0_id, "j3");
13180
- writeScope($scope0_id, {
13181
- e: _serialize_if($scope0_reason, 1) && input.value,
13182
- f: _serialize_if($scope0_reason, 0) && input.valueChange,
13183
- h: value,
13184
- j: pending,
13185
- l: draft,
13186
- n: box.timer,
13187
- p: flush,
13188
- r: type,
13189
- i: input.valueChange || void 0
13190
- });
13191
- _resume_branch($scope0_id);
13192
- });
13193
- //#endregion
13194
13181
  //#region src/client/diff-search.ts
13195
13182
  var MAX_HITS = 200;
13196
13183
  var MAX_PER_FILE = 40;
@@ -13248,10 +13235,10 @@ function clip(line, at, len) {
13248
13235
  return (start > 0 ? "…" : "") + line.slice(start, end) + (end < line.length ? "…" : "");
13249
13236
  }
13250
13237
  var diff_find_module_default = {
13251
- findBar: "_eX",
13252
- findInput: "_eY",
13253
- count: "_eZ",
13254
- findIconBtn: "_e0 _bz"
13238
+ findBar: "_eA",
13239
+ findInput: "_eB",
13240
+ count: "_eC",
13241
+ findIconBtn: "_eD _d9"
13255
13242
  };
13256
13243
  //#endregion
13257
13244
  //#region src/tags/diff-find.marko
@@ -13326,7 +13313,24 @@ var diff_find_default = _template("f", (input) => {
13326
13313
  });
13327
13314
  _resume_branch($scope0_id);
13328
13315
  });
13329
- var diff_file_module_default = { diffFile: "_eW" };
13316
+ //#endregion
13317
+ //#region src/tags/icons/icon-search.marko
13318
+ var icon_search_default = _template("N", (input) => {
13319
+ const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
13320
+ const $scope0_id = _scope_id();
13321
+ _set_serialize_reason({
13322
+ 0: $sg__input_size__OR__input_class,
13323
+ 1: $sg__input_size__OR__input_class
13324
+ });
13325
+ const $childScope = _peek_scope_id();
13326
+ icon_base_default({
13327
+ d: "M17 17L21 21 M3 11C3 15.4183 6.58172 19 11 19C13.213 19 15.2161 18.1015 16.6644 16.6493C18.1077 15.2022 19 13.2053 19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11Z",
13328
+ size: input.size,
13329
+ class: input.class
13330
+ });
13331
+ _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
13332
+ });
13333
+ var diff_file_module_default = { diffFile: "_eE" };
13330
13334
  _template("e", (input) => {
13331
13335
  _scope_reason();
13332
13336
  const $scope0_id = _scope_id();
@@ -13346,16 +13350,16 @@ _template("e", (input) => {
13346
13350
  _resume_branch($scope0_id);
13347
13351
  });
13348
13352
  var diff_tree_module_default = {
13349
- tree: "_e1",
13350
- closed: "_e2",
13351
- treeRepo: "_e3",
13352
- treeRepoName: "_e4",
13353
- treeDir: "_e5",
13354
- treeFile: "_e6",
13355
- treeFileName: "_e7",
13356
- treeNote: "_e8",
13357
- treeChev: "_e9",
13358
- status: "_e_"
13353
+ tree: "_eF",
13354
+ closed: "_eG",
13355
+ treeRepo: "_eH",
13356
+ treeRepoName: "_eI",
13357
+ treeDir: "_eJ",
13358
+ treeFile: "_eK",
13359
+ treeFileName: "_eL",
13360
+ treeNote: "_eM",
13361
+ treeChev: "_eN",
13362
+ status: "_eO"
13359
13363
  };
13360
13364
  //#endregion
13361
13365
  //#region src/tags/diff-tree.marko
@@ -13459,16 +13463,16 @@ var diff_tree_default = _template("h", (input) => {
13459
13463
  _resume_branch($scope0_id);
13460
13464
  });
13461
13465
  var diff_file_sheet_module_default = {
13462
- iconBtn: "_ej _bz",
13463
- spinning: "_ek _bA",
13464
- sheetBackdrop: "_el",
13465
- fileSheet: "_em",
13466
- sheetHead: "_en",
13467
- fileCount: "_eo",
13468
- sheetList: "_ep",
13469
- sheetFile: "_eq",
13470
- sheetPath: "_er",
13471
- status: "_es"
13466
+ iconBtn: "_en _d9",
13467
+ spinning: "_eo _d_",
13468
+ sheetBackdrop: "_ep",
13469
+ fileSheet: "_eq",
13470
+ sheetHead: "_er",
13471
+ fileCount: "_es",
13472
+ sheetList: "_et",
13473
+ sheetFile: "_eu",
13474
+ sheetPath: "_ev",
13475
+ status: "_ew"
13472
13476
  };
13473
13477
  //#endregion
13474
13478
  //#region src/tags/diff-file-sheet.marko
@@ -13642,6 +13646,18 @@ var diff_view_default = _template("i", (input) => {
13642
13646
  const match = makeFileFilter(fileFilter);
13643
13647
  return allFiles.filter((f) => match(f.key));
13644
13648
  })();
13649
+ const lineStats = (() => {
13650
+ let additions = 0;
13651
+ let deletions = 0;
13652
+ for (const f of fileFiltered) {
13653
+ additions += f.additions || 0;
13654
+ deletions += f.deletions || 0;
13655
+ }
13656
+ return {
13657
+ additions,
13658
+ deletions
13659
+ };
13660
+ })();
13645
13661
  const findKeys = findState.query.trim() ? new Set(findState.keys) : null;
13646
13662
  const shownFiles = findKeys ? fileFiltered.filter((f) => findKeys.has(f.key) || f.key === findState.hit?.key) : fileFiltered;
13647
13663
  const shownKeySet = new Set(shownFiles.map((f) => f.key));
@@ -13753,18 +13769,48 @@ var diff_view_default = _template("i", (input) => {
13753
13769
  return 0;
13754
13770
  }
13755
13771
  }, $scope0_id, "d", $sg__input_onExit, $sg__input_onExit, 1, 0, 1);
13756
- _html(`<div${_attr_class(diff_view_module_default.headText)}><h1${_attr_class(diff_view_module_default.pageTitle)}>Review</h1><span${_attr_class(diff_view_module_default.diffStats)}>${_escape(allFiles.length)}${_el_resume($scope0_id, "h")} file<!>${allFiles.length === 1 ? "" : "s"}${_el_resume($scope0_id, "i")} changed <!>${comments.length ? `· ${_escape(`${_to_text(comments.length)}`)} comment${_escape(`${_to_text(comments.length === 1 ? "" : "s")}`)}` : ""}${_el_resume($scope0_id, "j")}</span></div>`);
13772
+ _set_serialize_reason(2);
13773
+ const $childScope = _peek_scope_id();
13774
+ file_filter_default({
13775
+ value: fileFilter,
13776
+ valueChange: _resume((_new_fileFilter) => {
13777
+ fileFilter = _new_fileFilter;
13778
+ }, "i15", $scope0_id)
13779
+ });
13780
+ _html(`<div${_attr_class(diff_view_module_default.headText)}><h1${_attr_class(diff_view_module_default.pageTitle)}>Review</h1><span${_attr_class(diff_view_module_default.diffStats)}>`);
13781
+ _if(() => {
13782
+ if (lineStats.additions || lineStats.deletions) {
13783
+ const $scope25_id = _scope_id();
13784
+ _html(`<span${_attr_class(diff_view_module_default.statAdd)}>+<!>${_escape(lineStats.additions)}${_el_resume($scope25_id, "b")}</span><span${_attr_class(diff_view_module_default.statDel)}>−<!>${_escape(lineStats.deletions)}${_el_resume($scope25_id, "d")}</span>`);
13785
+ writeScope($scope25_id, {});
13786
+ return 0;
13787
+ } else {
13788
+ const $scope29_id = _scope_id();
13789
+ _html(`<span${_attr_class(diff_view_module_default.statEmpty)}>0</span>`);
13790
+ writeScope($scope29_id, {});
13791
+ return 1;
13792
+ }
13793
+ }, $scope0_id, "i");
13794
+ _if(() => {
13795
+ if (comments.length) {
13796
+ const $scope3_id = _scope_id();
13797
+ _html(`<span${_attr_class(diff_view_module_default.statSep)}>·</span>${_escape(comments.length)}${_el_resume($scope3_id, "b")} comment<!>${comments.length === 1 ? "" : "s"}${_el_resume($scope3_id, "c")}`);
13798
+ writeScope($scope3_id, {});
13799
+ return 0;
13800
+ }
13801
+ }, $scope0_id, "j");
13802
+ _html("</span></div>");
13757
13803
  _if(() => {
13758
13804
  if (comments.length) {
13759
13805
  const $scope2_id = _scope_id();
13760
13806
  _set_serialize_reason(_serialize_guard($scope0_reason, 1));
13761
- const $childScope = _peek_scope_id();
13807
+ const $childScope2 = _peek_scope_id();
13762
13808
  diff_send_default({
13763
13809
  sessions: input.sessions,
13764
13810
  onCopy: copyMarkdown,
13765
13811
  onSend: sendTo
13766
13812
  });
13767
- writeScope($scope2_id, { a: _existing_scope($childScope) });
13813
+ writeScope($scope2_id, { a: _existing_scope($childScope2) });
13768
13814
  return 0;
13769
13815
  }
13770
13816
  }, $scope0_id, "k", 1, 1, 1, 0, 1);
@@ -13772,25 +13818,10 @@ var diff_view_default = _template("i", (input) => {
13772
13818
  icon_sidebar_default({ size: 14 });
13773
13819
  _html(`</button>${_el_resume($scope0_id, "m")}<button${_attr_class([diff_view_module_default.iconBtn, { [diff_view_module_default.spinning]: loading }])} title="Refresh diff"${_attr("disabled", loading)}>`);
13774
13820
  icon_refresh_default({ size: 14 });
13775
- _html(`</button>${_el_resume($scope0_id, "o")}<button${_attr_class([ui_module_default.btn, diff_view_module_default.filesBtn])} title="Jump to file">Files (<!>${_escape(shownFiles.length)}${_el_resume($scope0_id, "r")})</button>${_el_resume($scope0_id, "q")}<button${_attr_class([
13776
- diff_view_module_default.iconBtn,
13777
- diff_view_module_default.findBtn,
13778
- { [diff_view_module_default.on]: findOpen }
13779
- ])} title="Find in the review (⌘/Ctrl+F)" aria-label="Find in the review">`);
13780
- icon_search_default({ size: 14 });
13781
- _html(`</button>${_el_resume($scope0_id, "s")}<div${_attr_class(diff_view_module_default.scope)} role=group aria-label="Review scope"><button type=button${_attr_class([diff_view_module_default.scopeOpt, { [diff_view_module_default.scopeOn]: !uncommitted }])} aria-pressed=${!uncommitted ? "true" : "false"} title="Committed changes only — base…tip, no working-tree edits"${_attr("disabled", loading)}>Committed</button>${_el_resume($scope0_id, "v")}<button type=button${_attr_class([diff_view_module_default.scopeOpt, { [diff_view_module_default.scopeOn]: uncommitted }])} aria-pressed=${uncommitted ? "true" : "false"} title="Include uncommitted and untracked files in the working tree"${_attr("disabled", loading)}>Working tree</button>${_el_resume($scope0_id, "w")}</div><button type=button${_attr_class([diff_view_module_default.scopeChip, { [diff_view_module_default.scopeOn]: uncommitted }])} aria-pressed=${uncommitted ? "true" : "false"} title=${uncommitted ? "\"Showing working tree — tap for committed only\"" : "\"Showing committed only — tap to include uncommitted\""}${_attr("disabled", loading)}>${uncommitted ? "Dirty" : "Clean"}${_el_resume($scope0_id, "y")}</button>${_el_resume($scope0_id, "x")}`);
13782
- _set_serialize_reason(2);
13783
- const $childScope2 = _peek_scope_id();
13784
- file_filter_default({
13785
- value: fileFilter,
13786
- valueChange: _resume((_new_fileFilter) => {
13787
- fileFilter = _new_fileFilter;
13788
- }, "i15", $scope0_id)
13789
- });
13790
- _html("</div>");
13821
+ _html(`</button>${_el_resume($scope0_id, "o")}<button${_attr_class([ui_module_default.btn, diff_view_module_default.filesBtn])} title="Jump to file">Files (<!>${_escape(shownFiles.length)}${_el_resume($scope0_id, "r")})</button>${_el_resume($scope0_id, "q")}<div${_attr_class(diff_view_module_default.scope)} role=group aria-label="Review scope"><button type=button${_attr_class([diff_view_module_default.scopeOpt, { [diff_view_module_default.scopeOn]: !uncommitted }])} aria-pressed=${!uncommitted ? "true" : "false"} title="Committed changes only — base…tip, no working-tree edits"${_attr("disabled", loading)}>Committed</button>${_el_resume($scope0_id, "t")}<button type=button${_attr_class([diff_view_module_default.scopeOpt, { [diff_view_module_default.scopeOn]: uncommitted }])} aria-pressed=${uncommitted ? "true" : "false"} title="Include uncommitted and untracked files in the working tree"${_attr("disabled", loading)}>Working tree</button>${_el_resume($scope0_id, "u")}</div><button type=button${_attr_class([diff_view_module_default.scopeChip, { [diff_view_module_default.scopeOn]: uncommitted }])} aria-pressed=${uncommitted ? "true" : "false"} title=${uncommitted ? "\"Showing working tree — tap for committed only\"" : "\"Showing committed only — tap to include uncommitted\""}${_attr("disabled", loading)}>${uncommitted ? "Dirty" : "Clean"}${_el_resume($scope0_id, "w")}</button>${_el_resume($scope0_id, "v")}`);
13791
13822
  _if(() => {
13792
13823
  if (findOpen) {
13793
- const $scope20_id = _scope_id();
13824
+ const $scope21_id = _scope_id();
13794
13825
  _set_serialize_reason(2);
13795
13826
  const $childScope3 = _peek_scope_id();
13796
13827
  diff_find_default({
@@ -13799,37 +13830,45 @@ var diff_view_default = _template("i", (input) => {
13799
13830
  open: findOpen,
13800
13831
  openChange: _resume((_new_findOpen) => {
13801
13832
  findOpen = _new_findOpen;
13802
- }, "i16", $scope20_id),
13833
+ }, "i16", $scope21_id),
13803
13834
  stateChange: _resume(function(s) {
13804
13835
  onFindState(s);
13805
- }, "i17", $scope20_id)
13836
+ }, "i17", $scope21_id)
13806
13837
  });
13807
- writeScope($scope20_id, { a: _existing_scope($childScope3) });
13838
+ writeScope($scope21_id, { a: _existing_scope($childScope3) });
13808
13839
  return 0;
13840
+ } else {
13841
+ const $scope28_id = _scope_id();
13842
+ _html(`<button${_attr_class([diff_view_module_default.iconBtn, diff_view_module_default.findBtn])} title="Find in the review (⌘/Ctrl+F)" aria-label="Find in the review">`);
13843
+ icon_search_default({ size: 14 });
13844
+ _html(`</button>${_el_resume($scope28_id, "a")}`);
13845
+ _script($scope28_id, "i28");
13846
+ writeScope($scope28_id, {});
13847
+ return 1;
13809
13848
  }
13810
- }, $scope0_id, "a0", 1, 1, 1, 0, 1);
13811
- _html(`<div${_attr_class(diff_view_module_default.diffMain)} data-diff-main>`);
13849
+ }, $scope0_id, "x", 1, 1, 1, 0, 1);
13850
+ _html(`</div><div${_attr_class(diff_view_module_default.diffMain)} data-diff-main>`);
13812
13851
  _if(() => {
13813
13852
  if (error) {
13814
- const $scope9_id = _scope_id();
13853
+ const $scope10_id = _scope_id();
13815
13854
  toast_default({
13816
13855
  onDismiss: _resume(function() {
13817
13856
  error = null;
13818
- }, "i18", $scope9_id),
13819
- content: _content_resume("i28", () => {
13857
+ }, "i18", $scope10_id),
13858
+ content: _content_resume("i29", () => {
13820
13859
  _scope_reason();
13821
- const $scope10_id = _scope_id();
13822
- _html(`${_escape(error)}${_el_resume($scope10_id, "a")}`);
13823
- _subscribe($error__closures, writeScope($scope10_id, { _: _scope_with_id($scope9_id) }));
13824
- _resume_branch($scope10_id);
13825
- }, $scope9_id)
13860
+ const $scope11_id = _scope_id();
13861
+ _html(`${_escape(error)}${_el_resume($scope11_id, "a")}`);
13862
+ _subscribe($error__closures, writeScope($scope11_id, { _: _scope_with_id($scope10_id) }));
13863
+ _resume_branch($scope11_id);
13864
+ }, $scope10_id)
13826
13865
  });
13827
- writeScope($scope9_id, {});
13866
+ writeScope($scope10_id, {});
13828
13867
  return 0;
13829
13868
  }
13830
- }, $scope0_id, "a2", 1, 1, 1, 0, 1);
13869
+ }, $scope0_id, "z", 1, 1, 1, 0, 1);
13831
13870
  _for_of(repoList.filter((r) => r.baseMissing), (repo) => {
13832
- const $scope14_id = _scope_id();
13871
+ const $scope15_id = _scope_id();
13833
13872
  const $for_content3__repo_base__closures = /* @__PURE__ */ new Set();
13834
13873
  _set_serialize_reason(96);
13835
13874
  const $childScope4 = _peek_scope_id();
@@ -13837,22 +13876,22 @@ var diff_view_default = _template("i", (input) => {
13837
13876
  kind: "warn",
13838
13877
  placement: "inline",
13839
13878
  title: `${repo.worktree}: base not found`,
13840
- content: _content_resume("i29", () => {
13879
+ content: _content_resume("i30", () => {
13841
13880
  _scope_reason();
13842
- const $scope15_id = _scope_id();
13843
- _html(`${_escape(repo.base)}${_el_resume($scope15_id, "a")}<!>${uncommitted ? " — showing uncommitted changes only" : ""}${_el_resume($scope15_id, "b")}.`);
13844
- _subscribe($for_content3__repo_base__closures, _subscribe($uncommitted__closures, writeScope($scope15_id, { _: _scope_with_id($scope14_id) })));
13845
- _resume_branch($scope15_id);
13846
- }, $scope14_id)
13881
+ const $scope16_id = _scope_id();
13882
+ _html(`${_escape(repo.base)}${_el_resume($scope16_id, "a")}<!>${uncommitted ? " — showing uncommitted changes only" : ""}${_el_resume($scope16_id, "b")}.`);
13883
+ _subscribe($for_content3__repo_base__closures, _subscribe($uncommitted__closures, writeScope($scope16_id, { _: _scope_with_id($scope15_id) })));
13884
+ _resume_branch($scope16_id);
13885
+ }, $scope15_id)
13847
13886
  });
13848
- writeScope($scope14_id, {
13887
+ writeScope($scope15_id, {
13849
13888
  e: repo?.base,
13850
13889
  f: $for_content3__repo_base__closures,
13851
13890
  a: _existing_scope($childScope4)
13852
13891
  });
13853
- }, "id", $scope0_id, "a3", 1, 1, 1, 0, 1);
13892
+ }, "id", $scope0_id, "a0", 1, 1, 1, 0, 1);
13854
13893
  _for_of(repoList.filter((r) => r.contained && r.files.length), (repo) => {
13855
- const $scope16_id = _scope_id();
13894
+ const $scope17_id = _scope_id();
13856
13895
  const $for_content4__repo_base__closures = /* @__PURE__ */ new Set();
13857
13896
  _set_serialize_reason(96);
13858
13897
  const $childScope5 = _peek_scope_id();
@@ -13860,26 +13899,26 @@ var diff_view_default = _template("i", (input) => {
13860
13899
  kind: "info",
13861
13900
  placement: "inline",
13862
13901
  title: repo.pr ? `${repo.worktree} #${repo.pr.number}` : repo.worktree,
13863
- content: _content_resume("i30", () => {
13902
+ content: _content_resume("i31", () => {
13864
13903
  _scope_reason();
13865
- const $scope17_id = _scope_id();
13866
- _html(`already in <!>${_escape(repo.base)}${_el_resume($scope17_id, "a")}<!>${uncommitted ? " — showing uncommitted changes only" : ""}${_el_resume($scope17_id, "b")}.`);
13867
- _subscribe($for_content4__repo_base__closures, _subscribe($uncommitted__closures, writeScope($scope17_id, {
13868
- _: _scope_with_id($scope16_id),
13869
- Ccs: 1
13904
+ const $scope18_id = _scope_id();
13905
+ _html(`already in <!>${_escape(repo.base)}${_el_resume($scope18_id, "a")}<!>${uncommitted ? " — showing uncommitted changes only" : ""}${_el_resume($scope18_id, "b")}.`);
13906
+ _subscribe($for_content4__repo_base__closures, _subscribe($uncommitted__closures, writeScope($scope18_id, {
13907
+ _: _scope_with_id($scope17_id),
13908
+ Ccu: 1
13870
13909
  })));
13871
- _resume_branch($scope17_id);
13872
- }, $scope16_id)
13910
+ _resume_branch($scope18_id);
13911
+ }, $scope17_id)
13873
13912
  });
13874
- writeScope($scope16_id, {
13913
+ writeScope($scope17_id, {
13875
13914
  g: repo?.base,
13876
13915
  h: $for_content4__repo_base__closures,
13877
13916
  a: _existing_scope($childScope5)
13878
13917
  });
13879
- }, "id", $scope0_id, "a4", 1, 1, 1, 0, 1);
13918
+ }, "id", $scope0_id, "a1", 1, 1, 1, 0, 1);
13880
13919
  _if(() => {
13881
13920
  if (driftRepos.length) {
13882
- const $scope11_id = _scope_id();
13921
+ const $scope12_id = _scope_id();
13883
13922
  _set_serialize_reason(1072);
13884
13923
  const $childScope6 = _peek_scope_id();
13885
13924
  toast_default({
@@ -13888,40 +13927,40 @@ var diff_view_default = _template("i", (input) => {
13888
13927
  title: "GitHub is behind",
13889
13928
  onDismiss: _resume(function() {
13890
13929
  dismissDrift();
13891
- }, "i19", $scope11_id),
13892
- action: attrTag({ content: _content_resume("i32", () => {
13930
+ }, "i19", $scope12_id),
13931
+ action: attrTag({ content: _content_resume("i33", () => {
13893
13932
  _scope_reason();
13894
- const $scope12_id = _scope_id();
13895
- _html(`<button${_attr_class(ui_module_default.btn)}${_attr("disabled", loading)}>${loading ? "Reloading…" : "Reload"}${_el_resume($scope12_id, "b")}</button>${_el_resume($scope12_id, "a")}`);
13896
- _script($scope12_id, "i31");
13897
- _subscribe($loading__closures, writeScope($scope12_id, { _: _scope_with_id($scope11_id) }));
13898
- _resume_branch($scope12_id);
13899
- }, $scope11_id) }),
13900
- content: _content_resume("i33", () => {
13933
+ const $scope13_id = _scope_id();
13934
+ _html(`<button${_attr_class(ui_module_default.btn)}${_attr("disabled", loading)}>${loading ? "Reloading…" : "Reload"}${_el_resume($scope13_id, "b")}</button>${_el_resume($scope13_id, "a")}`);
13935
+ _script($scope13_id, "i32");
13936
+ _subscribe($loading__closures, writeScope($scope13_id, { _: _scope_with_id($scope12_id) }));
13937
+ _resume_branch($scope13_id);
13938
+ }, $scope12_id) }),
13939
+ content: _content_resume("i34", () => {
13901
13940
  _scope_reason();
13902
- const $scope25_id = _scope_id();
13941
+ const $scope27_id = _scope_id();
13903
13942
  _html(`<span${_attr_class(ui_module_default.dim)}>`);
13904
13943
  _for_of(driftRepos, (repo, i) => {
13905
- const $scope26_id = _scope_id();
13906
- _html(`${i > 0 ? " · " : ""}${_el_resume($scope26_id, "a")}<!>${_escape(repo.worktree)}${_el_resume($scope26_id, "b")} #<!>${_escape(repo.pr.number)}${_el_resume($scope26_id, "c")}`);
13907
- writeScope($scope26_id, {});
13908
- }, "id", $scope25_id, "b");
13944
+ const $scope30_id = _scope_id();
13945
+ _html(`${i > 0 ? " · " : ""}${_el_resume($scope30_id, "a")}<!>${_escape(repo.worktree)}${_el_resume($scope30_id, "b")} #<!>${_escape(repo.pr.number)}${_el_resume($scope30_id, "c")}`);
13946
+ writeScope($scope30_id, {});
13947
+ }, "id", $scope27_id, "b");
13909
13948
  _html(` — this view has a newer tip than the PR page.</span><span${_attr_class([ui_module_default.mono, diff_view_module_default.toastMeta])}>`);
13910
13949
  _for_of(driftRepos, (repo, i) => {
13911
- const $scope27_id = _scope_id();
13912
- _html(`<span${_attr("title", `origin/${repo.pr.headRefName} ${repo.head} · GitHub ${repo.pr.headRefOid}`)}>${i > 0 ? " · " : ""}${_el_resume($scope27_id, "b")}<!>${_escape(shortSha(repo.head))}${_el_resume($scope27_id, "c")} → <!>${_escape(shortSha(repo.pr.headRefOid))}${_el_resume($scope27_id, "d")}</span>${_el_resume($scope27_id, "a")}`);
13913
- writeScope($scope27_id, {});
13914
- }, "id", $scope25_id, "c", 1, 1, 1, "</span>", 1);
13915
- _subscribe($driftRepos__closures, writeScope($scope25_id, { _: _scope_with_id($scope11_id) }));
13916
- _resume_branch($scope25_id);
13917
- }, $scope11_id)
13950
+ const $scope31_id = _scope_id();
13951
+ _html(`<span${_attr("title", `origin/${repo.pr.headRefName} ${repo.head} · GitHub ${repo.pr.headRefOid}`)}>${i > 0 ? " · " : ""}${_el_resume($scope31_id, "b")}<!>${_escape(shortSha(repo.head))}${_el_resume($scope31_id, "c")} → <!>${_escape(shortSha(repo.pr.headRefOid))}${_el_resume($scope31_id, "d")}</span>${_el_resume($scope31_id, "a")}`);
13952
+ writeScope($scope31_id, {});
13953
+ }, "id", $scope27_id, "c", 1, 1, 1, "</span>", 1);
13954
+ _subscribe($driftRepos__closures, writeScope($scope27_id, { _: _scope_with_id($scope12_id) }));
13955
+ _resume_branch($scope27_id);
13956
+ }, $scope12_id)
13918
13957
  });
13919
- writeScope($scope11_id, { a: _existing_scope($childScope6) });
13958
+ writeScope($scope12_id, { a: _existing_scope($childScope6) });
13920
13959
  return 0;
13921
13960
  }
13922
- }, $scope0_id, "a5", 1, 1, 1, 0, 1);
13961
+ }, $scope0_id, "a2", 1, 1, 1, 0, 1);
13923
13962
  _for_of(localDifferList, (repo) => {
13924
- const $scope18_id = _scope_id();
13963
+ const $scope19_id = _scope_id();
13925
13964
  const $for_content5__repo_head__closures = /* @__PURE__ */ new Set();
13926
13965
  const $for_content5__repo_pr_headRefName__closures = /* @__PURE__ */ new Set();
13927
13966
  const $for_content5__repo_localHead__closures = /* @__PURE__ */ new Set();
@@ -13932,18 +13971,18 @@ var diff_view_default = _template("i", (input) => {
13932
13971
  kind: "info",
13933
13972
  placement: "inline",
13934
13973
  title: `${repo.worktree} #${repo.pr.number}`,
13935
- content: _content_resume("i34", () => {
13974
+ content: _content_resume("i35", () => {
13936
13975
  _scope_reason();
13937
- const $scope19_id = _scope_id();
13938
- _html(`this view is <!>${_escape(shortSha(repo.head))}${_el_resume($scope19_id, "a")} (<!>${_escape(repo.pr.headRefName)}${_el_resume($scope19_id, "b")}). Local is <!>${_escape(shortSha(repo.localHead))}${_el_resume($scope19_id, "c")} (<!>${_escape(repo.branch)}${_el_resume($scope19_id, "d")}<!>${uncommitted ? ", plus uncommitted" : ""}${_el_resume($scope19_id, "e")}).`);
13939
- _subscribe($for_content5__repo_branch__closures, _subscribe($for_content5__repo_localHead__closures, _subscribe($for_content5__repo_pr_headRefName__closures, _subscribe($for_content5__repo_head__closures, _subscribe($uncommitted__closures, writeScope($scope19_id, {
13940
- _: _scope_with_id($scope18_id),
13941
- Ccs: 2
13976
+ const $scope20_id = _scope_id();
13977
+ _html(`this view is <!>${_escape(shortSha(repo.head))}${_el_resume($scope20_id, "a")} (<!>${_escape(repo.pr.headRefName)}${_el_resume($scope20_id, "b")}). Local is <!>${_escape(shortSha(repo.localHead))}${_el_resume($scope20_id, "c")} (<!>${_escape(repo.branch)}${_el_resume($scope20_id, "d")}<!>${uncommitted ? ", plus uncommitted" : ""}${_el_resume($scope20_id, "e")}).`);
13978
+ _subscribe($for_content5__repo_branch__closures, _subscribe($for_content5__repo_localHead__closures, _subscribe($for_content5__repo_pr_headRefName__closures, _subscribe($for_content5__repo_head__closures, _subscribe($uncommitted__closures, writeScope($scope20_id, {
13979
+ _: _scope_with_id($scope19_id),
13980
+ Ccu: 2
13942
13981
  }))))));
13943
- _resume_branch($scope19_id);
13944
- }, $scope18_id)
13982
+ _resume_branch($scope20_id);
13983
+ }, $scope19_id)
13945
13984
  });
13946
- writeScope($scope18_id, {
13985
+ writeScope($scope19_id, {
13947
13986
  h: repo?.head,
13948
13987
  i: repo?.pr?.headRefName,
13949
13988
  j: repo?.localHead,
@@ -13954,22 +13993,22 @@ var diff_view_default = _template("i", (input) => {
13954
13993
  o: $for_content5__repo_branch__closures,
13955
13994
  a: _existing_scope($childScope7)
13956
13995
  });
13957
- }, "id", $scope0_id, "a6", 1, 1, 1, 0, 1);
13996
+ }, "id", $scope0_id, "a3", 1, 1, 1, 0, 1);
13958
13997
  _if(() => {
13959
13998
  if (repos && !allFiles.length) {
13960
- const $scope23_id = _scope_id();
13961
- _html(`<p${_attr_class(diff_view_module_default.centerPad)}>${repoList.some((r) => r.pr) ? "No file changes on these PRs." : "No changes vs base."}${_el_resume($scope23_id, "b")}</p>`);
13962
- writeScope($scope23_id, {});
13999
+ const $scope24_id = _scope_id();
14000
+ _html(`<p${_attr_class(diff_view_module_default.centerPad)}>${repoList.some((r) => r.pr) ? "No file changes on these PRs." : "No changes vs base."}${_el_resume($scope24_id, "b")}</p>`);
14001
+ writeScope($scope24_id, {});
13963
14002
  return 0;
13964
14003
  } else if (repos && !shownFiles.length && !findState.hit) {
13965
- const $scope13_id = _scope_id();
13966
- _html(`<p${_attr_class(diff_view_module_default.centerPad)}>${findState.query.trim() ? "No matches in diffs." : `No files match "${_escape(`${fileFilter}`)}".`}${_el_resume($scope13_id, "b")}</p>`);
13967
- writeScope($scope13_id, {});
14004
+ const $scope14_id = _scope_id();
14005
+ _html(`<p${_attr_class(diff_view_module_default.centerPad)}>${findState.query.trim() ? "No matches in diffs." : `No files match "${_escape(`${fileFilter}`)}".`}${_el_resume($scope14_id, "b")}</p>`);
14006
+ writeScope($scope14_id, {});
13968
14007
  return 1;
13969
14008
  }
13970
- }, $scope0_id, "a7", 1, 1, 1, 0, 1);
14009
+ }, $scope0_id, "a4", 1, 1, 1, 0, 1);
13971
14010
  _for_of(repoList, (repo) => {
13972
- const $scope3_id = _scope_id();
14011
+ const $scope4_id = _scope_id();
13973
14012
  const $for_content__repo_pr_number__closures = /* @__PURE__ */ new Set();
13974
14013
  const $for_content__repo_pr_url__closures = /* @__PURE__ */ new Set();
13975
14014
  const $for_content__repo_pr_title__closures = /* @__PURE__ */ new Set();
@@ -13988,51 +14027,51 @@ var diff_view_default = _template("i", (input) => {
13988
14027
  const shownInRepo = shownByRepo.get(repo.id) || [];
13989
14028
  _if(() => {
13990
14029
  if (repoFiles.length || repo.pr) {
13991
- const $scope4_id = _scope_id();
14030
+ const $scope5_id = _scope_id();
13992
14031
  _html(`<section${_attr_class(diff_view_module_default.repoSection)}${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}${_attr("hidden", !shownInRepo.length && !repo.pr && findState.hit?.repo !== repo.id)}>`);
13993
14032
  _if(() => {
13994
14033
  if (repoList.length > 1) {
13995
- const $scope21_id = _scope_id();
13996
- _html(`<button${_attr_class(diff_view_module_default.repoSep)}><span${_attr_class(diff_view_module_default.treeChev)}>${collapsedRepos.has(repo.id) ? "▸" : "▾"}${_el_resume($scope21_id, "c")}</span><span${_attr_class(diff_view_module_default.repoWorktree)}>${_escape(repo.worktree)}${_el_resume($scope21_id, "e")}</span>`);
14034
+ const $scope22_id = _scope_id();
14035
+ _html(`<button${_attr_class(diff_view_module_default.repoSep)}><span${_attr_class(diff_view_module_default.treeChev)}>${collapsedRepos.has(repo.id) ? "▸" : "▾"}${_el_resume($scope22_id, "c")}</span><span${_attr_class(diff_view_module_default.repoWorktree)}>${_escape(repo.worktree)}${_el_resume($scope22_id, "e")}</span>`);
13997
14036
  _if(() => {
13998
14037
  if (repo.pr) {
13999
- const $scope28_id = _scope_id();
14000
- _html(`<a${_attr_class([ui_module_default.chip, ui_module_default.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($scope28_id, "b")}</a>${_el_resume($scope28_id, "a")}<span${_attr_class(diff_view_module_default.repoTitle)}>${_escape(repo.pr.title)}${_el_resume($scope28_id, "d")}</span>`);
14001
- _script($scope28_id, "i35");
14002
- _subscribe($for_content__repo_baseSha__closures, _subscribe($for_content__repo_base__closures, _subscribe($for_content__repo_head__closures, _subscribe($for_content__repo_pr_headRefName__closures, _subscribe($for_content__repo_pr_title__closures, _subscribe($for_content__repo_pr_url__closures, _subscribe($for_content__repo_pr_number__closures, writeScope($scope28_id, {
14038
+ const $scope32_id = _scope_id();
14039
+ _html(`<a${_attr_class([ui_module_default.chip, ui_module_default.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($scope32_id, "b")}</a>${_el_resume($scope32_id, "a")}<span${_attr_class(diff_view_module_default.repoTitle)}>${_escape(repo.pr.title)}${_el_resume($scope32_id, "d")}</span>`);
14040
+ _script($scope32_id, "i36");
14041
+ _subscribe($for_content__repo_baseSha__closures, _subscribe($for_content__repo_base__closures, _subscribe($for_content__repo_head__closures, _subscribe($for_content__repo_pr_headRefName__closures, _subscribe($for_content__repo_pr_title__closures, _subscribe($for_content__repo_pr_url__closures, _subscribe($for_content__repo_pr_number__closures, writeScope($scope32_id, {
14003
14042
  Ca4: 2,
14004
14043
  Ca5: 2,
14005
14044
  Ca6: 2
14006
14045
  }))))))));
14007
14046
  return 0;
14008
14047
  } else {
14009
- const $scope29_id = _scope_id();
14010
- _html(`<span${_attr_class(diff_view_module_default.repoTitle)}>${_escape(repo.full_name)}${_el_resume($scope29_id, "b")}</span>`);
14011
- _subscribe($for_content__repo_full_name__closures, writeScope($scope29_id, {}));
14048
+ const $scope33_id = _scope_id();
14049
+ _html(`<span${_attr_class(diff_view_module_default.repoTitle)}>${_escape(repo.full_name)}${_el_resume($scope33_id, "b")}</span>`);
14050
+ _subscribe($for_content__repo_full_name__closures, writeScope($scope33_id, {}));
14012
14051
  return 1;
14013
14052
  }
14014
- }, $scope21_id, "f");
14015
- _html(`<span${_attr_class([ui_module_default.chip, ui_module_default.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($scope21_id, "h")}</span>${_el_resume($scope21_id, "g")}<span${_attr_class(ui_module_default.chip)}${_attr("title", `${repo.base} ${repo.baseSha}`)}>vs <!>${_escape(repo.base)}${_el_resume($scope21_id, "j")}</span>${_el_resume($scope21_id, "i")}`);
14053
+ }, $scope22_id, "f");
14054
+ _html(`<span${_attr_class([ui_module_default.chip, ui_module_default.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($scope22_id, "h")}</span>${_el_resume($scope22_id, "g")}<span${_attr_class(ui_module_default.chip)}${_attr("title", `${repo.base} ${repo.baseSha}`)}>vs <!>${_escape(repo.base)}${_el_resume($scope22_id, "j")}</span>${_el_resume($scope22_id, "i")}`);
14016
14055
  _if(() => {
14017
14056
  if (localDifferIds.has(repo.id)) {
14018
- const $scope30_id = _scope_id();
14019
- _html(`<span${_attr_class(ui_module_default.chip)}${_attr("title", `checked out ${repo.branch} ${repo.localHead}`)}>local <!>${_escape(repo.branch)}${_el_resume($scope30_id, "b")}</span>${_el_resume($scope30_id, "a")}`);
14020
- _subscribe($for_content__repo_localHead__closures, _subscribe($for_content__repo_branch__closures, writeScope($scope30_id, { Ca8: 2 })));
14057
+ const $scope34_id = _scope_id();
14058
+ _html(`<span${_attr_class(ui_module_default.chip)}${_attr("title", `checked out ${repo.branch} ${repo.localHead}`)}>local <!>${_escape(repo.branch)}${_el_resume($scope34_id, "b")}</span>${_el_resume($scope34_id, "a")}`);
14059
+ _subscribe($for_content__repo_localHead__closures, _subscribe($for_content__repo_branch__closures, writeScope($scope34_id, { Ca8: 2 })));
14021
14060
  return 0;
14022
14061
  }
14023
- }, $scope21_id, "k", 1, 1, 1, 0, 1);
14024
- _html(`</button>${_el_resume($scope21_id, "a")}`);
14025
- _script($scope21_id, "i36");
14026
- _subscribe($for_content__repo_branch__closures, _subscribe($for_content__repo_baseSha__closures, _subscribe($for_content__repo_base__closures, _subscribe($for_content__repo_head__closures, _subscribe($for_content__repo_worktree__closures, _subscribe($for_content__repo_pr__closures, _subscribe($for_content__repo_id__closures, _subscribe($localDifferIds__closures, _subscribe($collapsedRepos__closures, writeScope($scope21_id, { Ccx: 1 }))))))))));
14062
+ }, $scope22_id, "k", 1, 1, 1, 0, 1);
14063
+ _html(`</button>${_el_resume($scope22_id, "a")}`);
14064
+ _script($scope22_id, "i37");
14065
+ _subscribe($for_content__repo_branch__closures, _subscribe($for_content__repo_baseSha__closures, _subscribe($for_content__repo_base__closures, _subscribe($for_content__repo_head__closures, _subscribe($for_content__repo_worktree__closures, _subscribe($for_content__repo_pr__closures, _subscribe($for_content__repo_id__closures, _subscribe($localDifferIds__closures, _subscribe($collapsedRepos__closures, writeScope($scope22_id, { Ccz: 1 }))))))))));
14027
14066
  return 0;
14028
14067
  } else {
14029
- const $scope24_id = _scope_id();
14068
+ const $scope26_id = _scope_id();
14030
14069
  _html(`<p${_attr_class(diff_view_module_default.repoMeta)}>`);
14031
14070
  _if(() => {
14032
14071
  if (repo.pr) {
14033
- const $scope31_id = _scope_id();
14034
- _html(`<a${_attr_class([ui_module_default.chip, ui_module_default.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($scope31_id, "b")}</a>${_el_resume($scope31_id, "a")}<span${_attr_class(ui_module_default.dim)}>${_escape(repo.pr.title)}${_el_resume($scope31_id, "d")}</span>`);
14035
- _subscribe($for_content__repo_baseSha__closures, _subscribe($for_content__repo_base__closures, _subscribe($for_content__repo_head__closures, _subscribe($for_content__repo_pr_headRefName__closures, _subscribe($for_content__repo_pr_title__closures, _subscribe($for_content__repo_pr_url__closures, _subscribe($for_content__repo_pr_number__closures, writeScope($scope31_id, {
14072
+ const $scope35_id = _scope_id();
14073
+ _html(`<a${_attr_class([ui_module_default.chip, ui_module_default.pr])}${_attr("href", `${repo.pr.url}/files`)} target=_blank rel=noopener${_attr("title", `${repo.pr.title} — ${repo.pr.headRefName} ${repo.head} vs ${repo.base} ${repo.baseSha}`)}>#<!>${_escape(repo.pr.number)}${_el_resume($scope35_id, "b")}</a>${_el_resume($scope35_id, "a")}<span${_attr_class(ui_module_default.dim)}>${_escape(repo.pr.title)}${_el_resume($scope35_id, "d")}</span>`);
14074
+ _subscribe($for_content__repo_baseSha__closures, _subscribe($for_content__repo_base__closures, _subscribe($for_content__repo_head__closures, _subscribe($for_content__repo_pr_headRefName__closures, _subscribe($for_content__repo_pr_title__closures, _subscribe($for_content__repo_pr_url__closures, _subscribe($for_content__repo_pr_number__closures, writeScope($scope35_id, {
14036
14075
  Ca0: 1,
14037
14076
  Ca1: 1,
14038
14077
  Ca2: 1,
@@ -14043,22 +14082,22 @@ var diff_view_default = _template("i", (input) => {
14043
14082
  }))))))));
14044
14083
  return 0;
14045
14084
  }
14046
- }, $scope24_id, "b");
14047
- _html(`<span${_attr_class([ui_module_default.chip, ui_module_default.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($scope24_id, "d")}</span>${_el_resume($scope24_id, "c")}<span${_attr_class(ui_module_default.chip)}${_attr("title", `${repo.base} ${repo.baseSha}`)}>vs <!>${_escape(repo.base)}${_el_resume($scope24_id, "f")}</span>${_el_resume($scope24_id, "e")}`);
14085
+ }, $scope26_id, "b");
14086
+ _html(`<span${_attr_class([ui_module_default.chip, ui_module_default.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($scope26_id, "d")}</span>${_el_resume($scope26_id, "c")}<span${_attr_class(ui_module_default.chip)}${_attr("title", `${repo.base} ${repo.baseSha}`)}>vs <!>${_escape(repo.base)}${_el_resume($scope26_id, "f")}</span>${_el_resume($scope26_id, "e")}`);
14048
14087
  _if(() => {
14049
14088
  if (localDifferIds.has(repo.id)) {
14050
- const $scope32_id = _scope_id();
14051
- _html(`<span${_attr_class(ui_module_default.chip)}${_attr("title", `checked out ${repo.branch} ${repo.localHead}`)}>local <!>${_escape(repo.branch)}${_el_resume($scope32_id, "b")}</span>${_el_resume($scope32_id, "a")}`);
14052
- _subscribe($for_content__repo_localHead__closures, _subscribe($for_content__repo_branch__closures, writeScope($scope32_id, {
14089
+ const $scope36_id = _scope_id();
14090
+ _html(`<span${_attr_class(ui_module_default.chip)}${_attr("title", `checked out ${repo.branch} ${repo.localHead}`)}>local <!>${_escape(repo.branch)}${_el_resume($scope36_id, "b")}</span>${_el_resume($scope36_id, "a")}`);
14091
+ _subscribe($for_content__repo_localHead__closures, _subscribe($for_content__repo_branch__closures, writeScope($scope36_id, {
14053
14092
  Ca8: 3,
14054
14093
  Ca9: 1
14055
14094
  })));
14056
14095
  return 0;
14057
14096
  }
14058
- }, $scope24_id, "g", 1, 1, 1, 0, 1);
14097
+ }, $scope26_id, "g", 1, 1, 1, 0, 1);
14059
14098
  _html("</p>");
14060
- _subscribe($for_content__repo_branch__closures, _subscribe($for_content__repo_baseSha__closures, _subscribe($for_content__repo_base__closures, _subscribe($for_content__repo_head__closures, _subscribe($for_content__repo_pr__closures, _subscribe($for_content__repo_id__closures, _subscribe($localDifferIds__closures, writeScope($scope24_id, {
14061
- Cd6: 1,
14099
+ _subscribe($for_content__repo_branch__closures, _subscribe($for_content__repo_baseSha__closures, _subscribe($for_content__repo_base__closures, _subscribe($for_content__repo_head__closures, _subscribe($for_content__repo_pr__closures, _subscribe($for_content__repo_id__closures, _subscribe($localDifferIds__closures, writeScope($scope26_id, {
14100
+ Cda: 1,
14062
14101
  Cx: 1,
14063
14102
  Cy: 1,
14064
14103
  Ca4: 1,
@@ -14068,62 +14107,62 @@ var diff_view_default = _template("i", (input) => {
14068
14107
  }))))))));
14069
14108
  return 1;
14070
14109
  }
14071
- }, $scope4_id, "b", 1, 1, 1, 0, 1);
14110
+ }, $scope5_id, "b", 1, 1, 1, 0, 1);
14072
14111
  _if(() => {
14073
14112
  if (!(repoList.length > 1 && collapsedRepos.has(repo.id))) {
14074
- const $scope5_id = _scope_id();
14113
+ const $scope6_id = _scope_id();
14075
14114
  _html(`<div${_attr_class(diff_view_module_default.files)}>`);
14076
14115
  _for_of(repoFiles, (file) => {
14077
- const $scope6_id = _scope_id();
14116
+ const $scope7_id = _scope_id();
14078
14117
  const $for_content2__file__closures = /* @__PURE__ */ new Set();
14079
14118
  const $for_content2__file_key__closures = /* @__PURE__ */ new Set();
14080
14119
  const $for_content2__fileComments__closures = /* @__PURE__ */ new Set();
14081
14120
  const fileComments = commentsByFile.get(file.key) || [];
14082
14121
  let expanded = true;
14083
- _html(`<details${_attr_details_or_dialog_open($scope6_id, "a", expanded)}${_attr_class(diff_view_module_default.file)}${_attr("data-key", file.key)}${_attr("hidden", !shownKeySet.has(file.key))}><summary><span${_attr_class(diff_view_module_default.status)}${_attr("data-status", file.status)}>${_escape(file.status)}${_el_resume($scope6_id, "c")}</span>${_el_resume($scope6_id, "b")}<span${_attr_class(diff_view_module_default.path)}${_attr("title", file.path)}><bdi>${_escape(file.path)}${_el_resume($scope6_id, "e")}</bdi></span>${_el_resume($scope6_id, "d")}`);
14122
+ _html(`<details${_attr_details_or_dialog_open($scope7_id, "a", expanded)}${_attr_class(diff_view_module_default.file)}${_attr("data-key", file.key)}${_attr("hidden", !shownKeySet.has(file.key))}><summary><span${_attr_class(diff_view_module_default.status)}${_attr("data-status", file.status)}>${_escape(file.status)}${_el_resume($scope7_id, "c")}</span>${_el_resume($scope7_id, "b")}<span${_attr_class(diff_view_module_default.path)}${_attr("title", file.path)}><bdi>${_escape(file.path)}${_el_resume($scope7_id, "e")}</bdi></span>${_el_resume($scope7_id, "d")}`);
14084
14123
  _if(() => {
14085
14124
  if (fileComments.length) {
14086
- const $scope33_id = _scope_id();
14087
- _html(`<span${_attr_class(ui_module_default.chip)}>💬 <!>${_escape(fileComments.length)}${_el_resume($scope33_id, "b")}</span>`);
14088
- writeScope($scope33_id, {});
14125
+ const $scope37_id = _scope_id();
14126
+ _html(`<span${_attr_class(ui_module_default.chip)}>💬 <!>${_escape(fileComments.length)}${_el_resume($scope37_id, "b")}</span>`);
14127
+ writeScope($scope37_id, {});
14089
14128
  return 0;
14090
14129
  }
14091
- }, $scope6_id, "f", 1, 1, 1, 0, 1);
14130
+ }, $scope7_id, "f", 1, 1, 1, 0, 1);
14092
14131
  _html("</summary>");
14093
14132
  _if(() => {
14094
14133
  if (file.binary) {
14095
- const $scope34_id = _scope_id();
14134
+ const $scope38_id = _scope_id();
14096
14135
  _html(`<p${_attr_class(diff_view_module_default.diffPad)}>binary file</p>`);
14097
- writeScope($scope34_id, {});
14136
+ writeScope($scope38_id, {});
14098
14137
  return 0;
14099
14138
  } else if (file.tooLarge) {
14100
- const $scope35_id = _scope_id();
14139
+ const $scope39_id = _scope_id();
14101
14140
  _html(`<p${_attr_class(diff_view_module_default.diffPad)}>file too large to display</p>`);
14102
- writeScope($scope35_id, {});
14141
+ writeScope($scope39_id, {});
14103
14142
  return 1;
14104
14143
  } else if (file.old == null && file.new == null) {
14105
- const $scope36_id = _scope_id();
14144
+ const $scope40_id = _scope_id();
14106
14145
  _html(`<p${_attr_class(diff_view_module_default.diffPad)}>file could not be read</p>`);
14107
- writeScope($scope36_id, {});
14146
+ writeScope($scope40_id, {});
14108
14147
  return 2;
14109
14148
  } else {
14110
- const $scope7_id = _scope_id();
14149
+ const $scope8_id = _scope_id();
14111
14150
  _if(() => {
14112
14151
  {
14113
- const $scope22_id = _scope_id();
14114
- _html(`<div${_attr_class(diff_view_module_default.diffWait)}></div>${_el_resume($scope22_id, "a")}`);
14115
- _script($scope22_id, "i37");
14116
- writeScope($scope22_id, {});
14152
+ const $scope23_id = _scope_id();
14153
+ _html(`<div${_attr_class(diff_view_module_default.diffWait)}></div>${_el_resume($scope23_id, "a")}`);
14154
+ _script($scope23_id, "i38");
14155
+ writeScope($scope23_id, {});
14117
14156
  return 0;
14118
14157
  }
14119
- }, $scope7_id, "a", 1, 1, 1, 0, 1);
14120
- writeScope($scope7_id, {});
14158
+ }, $scope8_id, "a", 1, 1, 1, 0, 1);
14159
+ writeScope($scope8_id, {});
14121
14160
  return 3;
14122
14161
  }
14123
- }, $scope6_id, "g");
14124
- _html(`</details>${_el_resume($scope6_id, "a")}`);
14125
- _script($scope6_id, "i38");
14126
- _subscribe($commentsByFile__closures, _subscribe($shownKeySet__closures, writeScope($scope6_id, {
14162
+ }, $scope7_id, "g");
14163
+ _html(`</details>${_el_resume($scope7_id, "a")}`);
14164
+ _script($scope7_id, "i39");
14165
+ _subscribe($commentsByFile__closures, _subscribe($shownKeySet__closures, writeScope($scope7_id, {
14127
14166
  i: file,
14128
14167
  j: file?.key,
14129
14168
  o: file?.binary,
@@ -14137,17 +14176,17 @@ var diff_view_default = _template("i", (input) => {
14137
14176
  x: $for_content2__file_key__closures,
14138
14177
  y: $for_content2__fileComments__closures
14139
14178
  })));
14140
- }, "key", $scope5_id, "a", 1, 1, 1, "</div>", 1);
14141
- _subscribe($for_content__repoFiles__closures, writeScope($scope5_id, {}));
14179
+ }, "key", $scope6_id, "a", 1, 1, 1, "</div>", 1);
14180
+ _subscribe($for_content__repoFiles__closures, writeScope($scope6_id, {}));
14142
14181
  return 0;
14143
14182
  }
14144
- }, $scope4_id, "c", 1, 1, 1, 0, 1);
14145
- _html(`</section>${_el_resume($scope4_id, "a")}`);
14146
- _subscribe($repoList_length__closures, _subscribe($collapsedRepos__closures, _subscribe($findState_hit_repo__closures, writeScope($scope4_id, {}))));
14183
+ }, $scope5_id, "c", 1, 1, 1, 0, 1);
14184
+ _html(`</section>${_el_resume($scope5_id, "a")}`);
14185
+ _subscribe($repoList_length__closures, _subscribe($collapsedRepos__closures, _subscribe($findState_hit_repo__closures, writeScope($scope5_id, {}))));
14147
14186
  return 0;
14148
14187
  }
14149
- }, $scope3_id, "a", 1, 1, 1, 0, 1);
14150
- writeScope($scope3_id, {
14188
+ }, $scope4_id, "a", 1, 1, 1, 0, 1);
14189
+ writeScope($scope4_id, {
14151
14190
  d: repo?.id,
14152
14191
  g: repo?.pr,
14153
14192
  h: repo?.worktree,
@@ -14178,8 +14217,8 @@ var diff_view_default = _template("i", (input) => {
14178
14217
  z: $for_content__repo_worktree__closures,
14179
14218
  aa: $for_content__repoFiles__closures
14180
14219
  });
14181
- }, "id", $scope0_id, "a8");
14182
- _html(`</div>${_el_resume($scope0_id, "a1")}</div>`);
14220
+ }, "id", $scope0_id, "a5");
14221
+ _html(`</div>${_el_resume($scope0_id, "y")}</div>`);
14183
14222
  _set_serialize_reason(110);
14184
14223
  const $childScope9 = _peek_scope_id();
14185
14224
  diff_tree_default({
@@ -14205,123 +14244,126 @@ var diff_view_default = _template("i", (input) => {
14205
14244
  onJump: jumpTo
14206
14245
  });
14207
14246
  _html("</div>");
14208
- _script($scope0_id, "i39");
14209
14247
  _script($scope0_id, "i40");
14210
14248
  _script($scope0_id, "i41");
14249
+ _script($scope0_id, "i42");
14211
14250
  writeScope($scope0_id, {
14212
- ad: input.workspaceId,
14213
- ae: input.focusPr,
14214
- af: input.active,
14215
- ag: input.focusNonce,
14216
- ah: input.onSent,
14217
- ai: input.onExit,
14218
- aj: input.sessions,
14219
- ak: repos,
14220
- al: comments,
14221
- an: draft,
14222
- ap: error,
14223
- aq: loading,
14224
- ar: fileFilter,
14225
- as: uncommitted,
14226
- at: treeOpen,
14227
- av: findOpen,
14228
- aw: findTick,
14229
- az: findState?.query,
14230
- b1: findState?.hit,
14231
- b2: findState?.hit?.key,
14232
- b3: findState?.hit?.repo,
14233
- b4: collapsedRepos,
14234
- b5: dismissedDrift,
14235
- b7: nearBox.cbs,
14236
- b8: nearBox.io,
14237
- ba: observeNear,
14238
- bb: focusPrSection,
14239
- bd: headBox.sig,
14240
- bf: headBox.timer,
14241
- bg: load,
14242
- bi: loadReview,
14243
- bj: reload,
14244
- bl: reloadSoon,
14245
- bn: repoList,
14246
- bp: repoList.length,
14247
- bq: allFiles,
14248
- bs: allFiles?.length,
14249
- bt: fileFiltered,
14250
- bu: findKeys,
14251
- c0: shownKeySet,
14252
- c1: filesByRepo,
14253
- c2: shownByRepo,
14254
- c4: commentsByFile,
14255
- c8: localDifferIds,
14256
- c9: driftRepos,
14257
- cc: dismissDrift,
14258
- cd: saveComment,
14259
- ce: removeComment,
14260
- cf: clearComments,
14261
- ci: copyMarkdown,
14262
- cj: sendTo,
14263
- ck: jumpTo,
14264
- cl: openFind,
14265
- cm: onFindState,
14266
- z: _existing_scope($childScope2),
14267
- cp: $error__closures,
14268
- cs: $uncommitted__closures,
14269
- cq: $loading__closures,
14270
- d7: $driftRepos__closures,
14271
- cx: $collapsedRepos__closures,
14272
- d6: $localDifferIds__closures,
14273
- co: $draft__closures,
14274
- d9: $saveComment2__closures,
14275
- da: $removeComment2__closures,
14276
- d2: $shownKeySet__closures,
14277
- d5: $commentsByFile__closures,
14278
- cw: $findState_hit_repo__closures,
14279
- d0: $repoList_length__closures,
14280
- a9: _existing_scope($childScope9),
14281
- aa: _existing_scope($childScope10)
14251
+ aa: input.workspaceId,
14252
+ ab: input.focusPr,
14253
+ ac: input.active,
14254
+ ad: input.focusNonce,
14255
+ ae: input.onSent,
14256
+ af: input.onExit,
14257
+ ag: input.sessions,
14258
+ ah: repos,
14259
+ ai: comments,
14260
+ aj: comments?.length,
14261
+ ak: draft,
14262
+ am: error,
14263
+ an: loading,
14264
+ ao: fileFilter,
14265
+ ap: uncommitted,
14266
+ aq: treeOpen,
14267
+ as: findOpen,
14268
+ at: findTick,
14269
+ aw: findState?.query,
14270
+ ay: findState?.hit,
14271
+ az: findState?.hit?.key,
14272
+ b0: findState?.hit?.repo,
14273
+ b1: collapsedRepos,
14274
+ b2: dismissedDrift,
14275
+ b4: nearBox.cbs,
14276
+ b5: nearBox.io,
14277
+ b7: observeNear,
14278
+ b8: focusPrSection,
14279
+ ba: headBox.sig,
14280
+ bc: headBox.timer,
14281
+ bd: load,
14282
+ bf: loadReview,
14283
+ bg: reload,
14284
+ bi: reloadSoon,
14285
+ bk: repoList,
14286
+ bm: repoList.length,
14287
+ bn: allFiles,
14288
+ bp: allFiles?.length,
14289
+ bq: fileFiltered,
14290
+ bs: lineStats?.additions,
14291
+ bt: lineStats?.deletions,
14292
+ bv: findKeys,
14293
+ c1: shownKeySet,
14294
+ c2: filesByRepo,
14295
+ c3: shownByRepo,
14296
+ c5: commentsByFile,
14297
+ c9: localDifferIds,
14298
+ ca: driftRepos,
14299
+ cd: dismissDrift,
14300
+ ce: saveComment,
14301
+ cf: removeComment,
14302
+ cg: clearComments,
14303
+ cj: copyMarkdown,
14304
+ ck: sendTo,
14305
+ cl: jumpTo,
14306
+ cm: openFind,
14307
+ cn: onFindState,
14308
+ e: _existing_scope($childScope),
14309
+ cr: $error__closures,
14310
+ cu: $uncommitted__closures,
14311
+ cs: $loading__closures,
14312
+ db: $driftRepos__closures,
14313
+ cz: $collapsedRepos__closures,
14314
+ da: $localDifferIds__closures,
14315
+ cq: $draft__closures,
14316
+ dd: $saveComment2__closures,
14317
+ de: $removeComment2__closures,
14318
+ d6: $shownKeySet__closures,
14319
+ d9: $commentsByFile__closures,
14320
+ cy: $findState_hit_repo__closures,
14321
+ d2: $repoList_length__closures,
14322
+ a6: _existing_scope($childScope9),
14323
+ a7: _existing_scope($childScope10)
14282
14324
  });
14283
14325
  _resume_branch($scope0_id);
14284
14326
  });
14285
14327
  var manage_workspace_module_default = {
14286
- page: "_cX",
14287
- body: "_cY",
14288
- content: "_cZ",
14289
- pageHead: "_c0",
14290
- backBtn: "_c1",
14291
- pageHeadText: "_c2",
14292
- pageMeta: "_c3",
14293
- statusPill: "_c4",
14294
- statusOn: "_c5",
14295
- statusOff: "_c6",
14296
- progress: "_c7",
14297
- section: "_c8",
14298
- sectionHead: "_c9",
14299
- sectionCount: "_c_",
14300
- sectionBtn: "_da",
14301
- groupLabel: "_db",
14302
- pickerWrap: "_dc",
14303
- cardList: "_dd",
14304
- card: "_de",
14305
- pending: "_df",
14306
- cardMain: "_dg",
14307
- cardTitle: "_dh",
14308
- cardMeta: "_di",
14309
- cardSub: "_dj",
14310
- cardTag: "_dk",
14311
- cardAction: "_dl",
14312
- dangerAction: "_dm",
14313
- armed: "_dn",
14314
- okAction: "_do",
14315
- prState: "_dp",
14316
- portLink: "_dq",
14317
- emptyNote: "_dr",
14318
- dangerZone: "_ds",
14319
- dangerRow: "_dt",
14320
- dangerBtn: "_du",
14321
- dangerHint: "_dv",
14322
- pageHeadAside: "_dw",
14323
- iconBtn: "_dx _bz",
14324
- spinning: "_dy _bA"
14328
+ page: "_co",
14329
+ body: "_cp",
14330
+ content: "_cq",
14331
+ pageHead: "_cr",
14332
+ backBtn: "_cs",
14333
+ pageHeadText: "_ct",
14334
+ pageMeta: "_cu",
14335
+ statusPill: "_cv",
14336
+ statusOn: "_cw",
14337
+ statusOff: "_cx",
14338
+ progress: "_cy",
14339
+ section: "_cz",
14340
+ sectionHead: "_cA",
14341
+ sectionCount: "_cB",
14342
+ sectionBtn: "_cC",
14343
+ groupLabel: "_cD",
14344
+ pickerWrap: "_cE",
14345
+ cardList: "_cF",
14346
+ card: "_cG",
14347
+ pending: "_cH",
14348
+ cardMain: "_cI",
14349
+ cardTitle: "_cJ",
14350
+ cardMeta: "_cK",
14351
+ cardSub: "_cL",
14352
+ cardTag: "_cM",
14353
+ cardAction: "_cN",
14354
+ dangerAction: "_cO",
14355
+ armed: "_cP",
14356
+ okAction: "_cQ",
14357
+ prState: "_cR",
14358
+ portLink: "_cS",
14359
+ emptyNote: "_cT",
14360
+ dangerZone: "_cU",
14361
+ dangerRow: "_cV",
14362
+ dangerBtn: "_cW",
14363
+ dangerHint: "_cX",
14364
+ pageHeadAside: "_cY",
14365
+ iconBtn: "_cZ _d9",
14366
+ spinning: "_c0 _d_"
14325
14367
  };
14326
14368
  //#endregion
14327
14369
  //#region src/tags/manage-workspace.marko
@@ -14733,39 +14775,39 @@ var manage_workspace_default = _template("k", (input) => {
14733
14775
  _resume_branch($scope0_id);
14734
14776
  });
14735
14777
  var usage_stats_module_default = {
14736
- page: "_cq",
14737
- body: "_cr",
14738
- content: "_cs",
14739
- iconBtn: "_ct _bz",
14740
- spinning: "_cu _bA",
14741
- pageHead: "_cv",
14742
- backBtn: "_cw",
14743
- refreshBtn: "_cx",
14744
- pageHeadText: "_cy",
14745
- pageMeta: "_cz",
14746
- pageHeadAside: "_cA",
14747
- note: "_cB",
14748
- usageList: "_cC",
14749
- usageRow: "_cD",
14750
- usageName: "_cE",
14751
- plan: "_cF",
14752
- usageStale: "_cG",
14753
- stale: "_cH",
14754
- usageMeters: "_cI",
14755
- meter: "_cJ",
14756
- meterLabel: "_cK",
14757
- meterTrack: "_cL",
14758
- meterFill: "_cM",
14759
- fillOk: "_cN",
14760
- fillMid: "_cO",
14761
- fillWarm: "_cP",
14762
- fillHot: "_cQ",
14763
- meterPct: "_cR",
14764
- pctOk: "_cS",
14765
- pctMid: "_cT",
14766
- pctWarm: "_cU",
14767
- pctHot: "_cV",
14768
- meterReset: "_cW"
14778
+ page: "_c1",
14779
+ body: "_c2",
14780
+ content: "_c3",
14781
+ iconBtn: "_c4 _d9",
14782
+ spinning: "_c5 _d_",
14783
+ pageHead: "_c6",
14784
+ backBtn: "_c7",
14785
+ refreshBtn: "_c8",
14786
+ pageHeadText: "_c9",
14787
+ pageMeta: "_c_",
14788
+ pageHeadAside: "_da",
14789
+ note: "_db",
14790
+ usageList: "_dc",
14791
+ usageRow: "_dd",
14792
+ usageName: "_de",
14793
+ plan: "_df",
14794
+ usageStale: "_dg",
14795
+ stale: "_dh",
14796
+ usageMeters: "_di",
14797
+ meter: "_dj",
14798
+ meterLabel: "_dk",
14799
+ meterTrack: "_dl",
14800
+ meterFill: "_dm",
14801
+ fillOk: "_dn",
14802
+ fillMid: "_do",
14803
+ fillWarm: "_dp",
14804
+ fillHot: "_dq",
14805
+ meterPct: "_dr",
14806
+ pctOk: "_ds",
14807
+ pctMid: "_dt",
14808
+ pctWarm: "_du",
14809
+ pctHot: "_dv",
14810
+ meterReset: "_dw"
14769
14811
  };
14770
14812
  //#endregion
14771
14813
  //#region src/tags/usage-stats.marko
@@ -14876,41 +14918,41 @@ var usage_stats_default = _template("w", (input) => {
14876
14918
  _resume_branch($scope0_id);
14877
14919
  });
14878
14920
  var term_module_default = {
14879
- iconBtn: "_dL _bz",
14880
- termWrap: "_dM",
14881
- term: "_dN",
14882
- xterm: "_dO",
14883
- termDead: "_dP",
14884
- termCopied: "_dQ",
14885
- termCopiedFade: "_dR",
14886
- termUploading: "_dS",
14887
- trapBackdrop: "_dT",
14888
- pasteTrap: "_dU",
14889
- kbSlot: "_dV",
14890
- keyBar: "_dW",
14891
- kspacer: "_dX",
14892
- sessBtn: "_dY",
14893
- sessDot: "_dZ",
14894
- sessPop: "_d0",
14895
- sessRow: "_d1",
14896
- current: "_d2",
14897
- sessOpen: "_d3",
14898
- sessTitle: "_d4",
14899
- sessRename: "_d5",
14900
- sessX: "_d6",
14901
- armed: "_d7",
14902
- sessEdit: "_d8",
14903
- sessNew: "_d9",
14904
- lone: "_d_",
14905
- kbarWs: "_ea",
14906
- kbarWsName: "_eb",
14907
- kbtn: "_ec _bz",
14908
- kbtnEsc: "_ed",
14909
- dpadGrid: "_ee",
14910
- repeat: "_ef",
14911
- on: "_eg",
14912
- bigGlyph: "_eh",
14913
- enter: "_ei"
14921
+ iconBtn: "_bz _d9",
14922
+ termWrap: "_bA",
14923
+ term: "_bB",
14924
+ xterm: "_bC",
14925
+ termDead: "_bD",
14926
+ termCopied: "_bE",
14927
+ termCopiedFade: "_bF",
14928
+ termUploading: "_bG",
14929
+ trapBackdrop: "_bH",
14930
+ pasteTrap: "_bI",
14931
+ kbSlot: "_bJ",
14932
+ keyBar: "_bK",
14933
+ kspacer: "_bL",
14934
+ sessBtn: "_bM",
14935
+ sessDot: "_bN",
14936
+ sessPop: "_bO",
14937
+ sessRow: "_bP",
14938
+ current: "_bQ",
14939
+ sessOpen: "_bR",
14940
+ sessTitle: "_bS",
14941
+ sessRename: "_bT",
14942
+ sessX: "_bU",
14943
+ armed: "_bV",
14944
+ sessEdit: "_bW",
14945
+ sessNew: "_bX",
14946
+ lone: "_bY",
14947
+ kbarWs: "_bZ",
14948
+ kbarWsName: "_b0",
14949
+ kbtn: "_b1 _d9",
14950
+ kbtnEsc: "_b2",
14951
+ dpadGrid: "_b3",
14952
+ repeat: "_b4",
14953
+ on: "_b5",
14954
+ bigGlyph: "_b6",
14955
+ enter: "_b7"
14914
14956
  };
14915
14957
  _template("Q", (input) => {
14916
14958
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
@@ -18081,7 +18123,7 @@ function prMeta(pr) {
18081
18123
  };
18082
18124
  }
18083
18125
  async function collectFiles(dir, oldRev, newRev, uncommitted) {
18084
- const diffArgs = uncommitted ? [
18126
+ const nameArgs = uncommitted ? [
18085
18127
  "diff",
18086
18128
  "--name-status",
18087
18129
  "-z",
@@ -18095,12 +18137,30 @@ async function collectFiles(dir, oldRev, newRev, uncommitted) {
18095
18137
  oldRev,
18096
18138
  newRev
18097
18139
  ];
18098
- const [nameStatus, untracked] = await Promise.all([git(diffArgs, dir).catch(() => ""), uncommitted ? git([
18099
- "ls-files",
18100
- "--others",
18101
- "--exclude-standard",
18102
- "-z"
18103
- ], dir).catch(() => "") : Promise.resolve("")]);
18140
+ const numArgs = uncommitted ? [
18141
+ "diff",
18142
+ "--numstat",
18143
+ "-z",
18144
+ "--no-renames",
18145
+ oldRev
18146
+ ] : [
18147
+ "diff",
18148
+ "--numstat",
18149
+ "-z",
18150
+ "--no-renames",
18151
+ oldRev,
18152
+ newRev
18153
+ ];
18154
+ const [nameStatus, numstat, untracked] = await Promise.all([
18155
+ git(nameArgs, dir).catch(() => ""),
18156
+ git(numArgs, dir).catch(() => ""),
18157
+ uncommitted ? git([
18158
+ "ls-files",
18159
+ "--others",
18160
+ "--exclude-standard",
18161
+ "-z"
18162
+ ], dir).catch(() => "") : Promise.resolve("")
18163
+ ]);
18104
18164
  const entries = [];
18105
18165
  const parts = nameStatus.split("\0").filter(Boolean);
18106
18166
  for (let i = 0; i + 1 < parts.length; i += 2) entries.push({
@@ -18111,12 +18171,49 @@ async function collectFiles(dir, oldRev, newRev, uncommitted) {
18111
18171
  path: file,
18112
18172
  status: "A"
18113
18173
  });
18174
+ const stats = parseNumstat(numstat);
18114
18175
  const olds = await batchContents(dir, oldRev, entries.filter((e) => e.status !== "A").map((e) => e.path));
18115
18176
  const news = uncommitted ? null : await batchContents(dir, newRev, entries.filter((e) => e.status !== "D").map((e) => e.path));
18116
- const files = await Promise.all(entries.map((e) => news ? fromBlobs(e.path, e.status, olds.get(e.path), news.get(e.path)) : loadWorktreeFile(dir, e.path, e.status, olds.get(e.path))));
18177
+ const files = await Promise.all(entries.map(async (e) => {
18178
+ const file = news ? fromBlobs(e.path, e.status, olds.get(e.path), news.get(e.path)) : await loadWorktreeFile(dir, e.path, e.status, olds.get(e.path));
18179
+ const st = stats.get(e.path);
18180
+ if (st) {
18181
+ file.additions = st.additions;
18182
+ file.deletions = st.deletions;
18183
+ } else if (e.status === "A" && file.new != null && !file.binary) {
18184
+ file.additions = countLines(file.new);
18185
+ file.deletions = 0;
18186
+ }
18187
+ return file;
18188
+ }));
18117
18189
  files.sort((a, b) => a.path.localeCompare(b.path));
18118
18190
  return files;
18119
18191
  }
18192
+ /** `git diff --numstat -z`: `add\tdel\tpath\0` (or `-\t-\tpath` for binary). */
18193
+ function parseNumstat(raw) {
18194
+ const map = /* @__PURE__ */ new Map();
18195
+ for (const chunk of raw.split("\0").filter(Boolean)) {
18196
+ const tab1 = chunk.indexOf(" ");
18197
+ const tab2 = tab1 < 0 ? -1 : chunk.indexOf(" ", tab1 + 1);
18198
+ if (tab1 < 0 || tab2 < 0) continue;
18199
+ const addRaw = chunk.slice(0, tab1);
18200
+ const delRaw = chunk.slice(tab1 + 1, tab2);
18201
+ const filePath = chunk.slice(tab2 + 1);
18202
+ if (!filePath || addRaw === "-" || delRaw === "-") continue;
18203
+ map.set(filePath, {
18204
+ additions: Number(addRaw) || 0,
18205
+ deletions: Number(delRaw) || 0
18206
+ });
18207
+ }
18208
+ return map;
18209
+ }
18210
+ function countLines(text) {
18211
+ if (!text) return 0;
18212
+ let n = 1;
18213
+ for (let i = 0; i < text.length; i++) if (text.charCodeAt(i) === 10) n++;
18214
+ if (text.endsWith("\n")) n--;
18215
+ return n;
18216
+ }
18120
18217
  /** Blob contents for many paths through a single `git cat-file --batch`
18121
18218
  * process (instead of one `git show` per file). Blobs over MAX_FILE_BYTES
18122
18219
  * are skipped and mapped to "tooLarge". */
@@ -22807,4 +22904,4 @@ server.listen(port, () => {
22807
22904
  //#endregion
22808
22905
  export {};
22809
22906
 
22810
- ;var __MARKO_MANIFEST__={"esfPH6H":{"block":[2,"stylesheet#/assets/index-C_nMyXjp.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/index-C_nMyXjp.css\"",">"],"defer":[2,"/assets/index-D98ikHh-.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/index-D98ikHh-.js\"","></script>"]}};
22907
+ ;var __MARKO_MANIFEST__={"esfPH6H":{"block":[2,"stylesheet#/assets/index-DkSXfvNK.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/index-DkSXfvNK.css\"",">"],"defer":[2,"/assets/index-CruM-Gda.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/index-CruM-Gda.js\"","></script>"]}};