@dylanpiercey/work 0.0.8 → 0.0.10

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 +645 -445
  2. package/dist/public/assets/{_B8hRUvsg2.js → _77Fyk0IZ2.js} +2 -2
  3. package/dist/public/assets/{_B8hRUvsg2.js.map → _77Fyk0IZ2.js.map} +1 -1
  4. package/dist/public/assets/{_5FPBKXmV.js → _7VADVuOA.js} +2 -2
  5. package/dist/public/assets/{_5FPBKXmV.js.map → _7VADVuOA.js.map} +1 -1
  6. package/dist/public/assets/{_ByVsRQi_.js → _AvFmZM6P.js} +2 -2
  7. package/dist/public/assets/{_ByVsRQi_.js.map → _AvFmZM6P.js.map} +1 -1
  8. package/dist/public/assets/{_8JbqtAcO2.js → _B60B9ttT2.js} +2 -2
  9. package/dist/public/assets/{_8JbqtAcO2.js.map → _B60B9ttT2.js.map} +1 -1
  10. package/dist/public/assets/{_ClP4oh7a.js → _BAif6Kkv.js} +2 -2
  11. package/dist/public/assets/{_ClP4oh7a.js.map → _BAif6Kkv.js.map} +1 -1
  12. package/dist/public/assets/{_ZXbjL1cp.js → _BFytbAm5.js} +2 -2
  13. package/dist/public/assets/{_ZXbjL1cp.js.map → _BFytbAm5.js.map} +1 -1
  14. package/dist/public/assets/{_B6VcGcFS.js → _BGcQuwom.js} +2 -2
  15. package/dist/public/assets/{_B6VcGcFS.js.map → _BGcQuwom.js.map} +1 -1
  16. package/dist/public/assets/{_FkD5nJ3p.js → _BJIyZxK0.js} +2 -2
  17. package/dist/public/assets/{_FkD5nJ3p.js.map → _BJIyZxK0.js.map} +1 -1
  18. package/dist/public/assets/{_1sfledaC2.js → _BJO73Smt2.js} +2 -2
  19. package/dist/public/assets/{_1sfledaC2.js.map → _BJO73Smt2.js.map} +1 -1
  20. package/dist/public/assets/{_KZaj47gf.js → _BKAMvBgJ.js} +2 -2
  21. package/dist/public/assets/{_KZaj47gf.js.map → _BKAMvBgJ.js.map} +1 -1
  22. package/dist/public/assets/{_mz-it25q.js → _BUNsdM7N.js} +2 -2
  23. package/dist/public/assets/{_mz-it25q.js.map → _BUNsdM7N.js.map} +1 -1
  24. package/dist/public/assets/{_ArCUqa6q2.js → _BZ6_GIpc2.js} +2 -2
  25. package/dist/public/assets/{_ArCUqa6q2.js.map → _BZ6_GIpc2.js.map} +1 -1
  26. package/dist/public/assets/{_VxrPs6zz2.js → _BaqI91VC2.js} +2 -2
  27. package/dist/public/assets/{_VxrPs6zz2.js.map → _BaqI91VC2.js.map} +1 -1
  28. package/dist/public/assets/{_DNJJM0AE.js → _Bit2YbJH.js} +2 -2
  29. package/dist/public/assets/{_DNJJM0AE.js.map → _Bit2YbJH.js.map} +1 -1
  30. package/dist/public/assets/{_BRmBVeT02.js → _BsE1kvV-2.js} +2 -2
  31. package/dist/public/assets/{_BRmBVeT02.js.map → _BsE1kvV-2.js.map} +1 -1
  32. package/dist/public/assets/{_Cu2ARJ6m2.js → _BwTiY7vg2.js} +2 -2
  33. package/dist/public/assets/{_Cu2ARJ6m2.js.map → _BwTiY7vg2.js.map} +1 -1
  34. package/dist/public/assets/{_BYiCMSp_.js → _C2Swe4f0.js} +2 -2
  35. package/dist/public/assets/{_BYiCMSp_.js.map → _C2Swe4f0.js.map} +1 -1
  36. package/dist/public/assets/{_BZj2u1P8.js → _C2iaQ953.js} +2 -2
  37. package/dist/public/assets/{_BZj2u1P8.js.map → _C2iaQ953.js.map} +1 -1
  38. package/dist/public/assets/{_CiLa9EZD.js → _C6p3UjM0.js} +2 -2
  39. package/dist/public/assets/{_CiLa9EZD.js.map → _C6p3UjM0.js.map} +1 -1
  40. package/dist/public/assets/{_DPOTu7jR.js → _CAf6rM7T.js} +2 -2
  41. package/dist/public/assets/{_DPOTu7jR.js.map → _CAf6rM7T.js.map} +1 -1
  42. package/dist/public/assets/{_Du7L3DNJ2.js → _CCC02X-42.js} +2 -2
  43. package/dist/public/assets/{_Du7L3DNJ2.js.map → _CCC02X-42.js.map} +1 -1
  44. package/dist/public/assets/{_CHnVT46K.js → _CDE_l3Ah.js} +2 -2
  45. package/dist/public/assets/{_CHnVT46K.js.map → _CDE_l3Ah.js.map} +1 -1
  46. package/dist/public/assets/{_Yc_Nhrnz.js → _CEW9INI2.js} +2 -2
  47. package/dist/public/assets/{_Yc_Nhrnz.js.map → _CEW9INI2.js.map} +1 -1
  48. package/dist/public/assets/{_BzzAJ7NO.js → _CG7XKeSB.js} +2 -2
  49. package/dist/public/assets/{_BzzAJ7NO.js.map → _CG7XKeSB.js.map} +1 -1
  50. package/dist/public/assets/{_MY6ncoWy.js → _CIBWjTJ8.js} +2 -2
  51. package/dist/public/assets/{_MY6ncoWy.js.map → _CIBWjTJ8.js.map} +1 -1
  52. package/dist/public/assets/{_C7N-1UWP.js → _CL0s7Kya.js} +2 -2
  53. package/dist/public/assets/{_C7N-1UWP.js.map → _CL0s7Kya.js.map} +1 -1
  54. package/dist/public/assets/{_d0JPWXs6.js → _CNDu3El-.js} +2 -2
  55. package/dist/public/assets/{_d0JPWXs6.js.map → _CNDu3El-.js.map} +1 -1
  56. package/dist/public/assets/{_DDkF3p8s.js → _COjvApw5.js} +2 -2
  57. package/dist/public/assets/{_DDkF3p8s.js.map → _COjvApw5.js.map} +1 -1
  58. package/dist/public/assets/{_Zn6WQhNB.js → _CRfCwzvc.js} +2 -2
  59. package/dist/public/assets/{_Zn6WQhNB.js.map → _CRfCwzvc.js.map} +1 -1
  60. package/dist/public/assets/{_BKZkyaFV.js → _CToEE4-R.js} +2 -2
  61. package/dist/public/assets/{_BKZkyaFV.js.map → _CToEE4-R.js.map} +1 -1
  62. package/dist/public/assets/{_UIRw8u-5.js → _CVbLeR5M.js} +2 -2
  63. package/dist/public/assets/{_UIRw8u-5.js.map → _CVbLeR5M.js.map} +1 -1
  64. package/dist/public/assets/{_CJkEzRYS.js → _CY9fvXvg.js} +2 -2
  65. package/dist/public/assets/{_CJkEzRYS.js.map → _CY9fvXvg.js.map} +1 -1
  66. package/dist/public/assets/{_DbScTuHX.js → _CaEMsx56.js} +2 -2
  67. package/dist/public/assets/{_DbScTuHX.js.map → _CaEMsx56.js.map} +1 -1
  68. package/dist/public/assets/{_BBbOvFnN.js → _Cay9-_-u.js} +2 -2
  69. package/dist/public/assets/{_BBbOvFnN.js.map → _Cay9-_-u.js.map} +1 -1
  70. package/dist/public/assets/{_Cuarrf-F.js → _CbL7aWfv.js} +2 -2
  71. package/dist/public/assets/{_Cuarrf-F.js.map → _CbL7aWfv.js.map} +1 -1
  72. package/dist/public/assets/{_B3wDsGH_.js → _CdQVpQAM.js} +2 -2
  73. package/dist/public/assets/{_B3wDsGH_.js.map → _CdQVpQAM.js.map} +1 -1
  74. package/dist/public/assets/{_CraDhcnw.js → _ChU_0Gs7.js} +2 -2
  75. package/dist/public/assets/{_CraDhcnw.js.map → _ChU_0Gs7.js.map} +1 -1
  76. package/dist/public/assets/{_CLKEqaNz.js → _CnYv5yOJ.js} +2 -2
  77. package/dist/public/assets/{_CLKEqaNz.js.map → _CnYv5yOJ.js.map} +1 -1
  78. package/dist/public/assets/{_CfcBd2P72.js → _CvNx2YfP2.js} +2 -2
  79. package/dist/public/assets/{_CfcBd2P72.js.map → _CvNx2YfP2.js.map} +1 -1
  80. package/dist/public/assets/{_BA1Flvg32.js → _D69Y468R2.js} +2 -2
  81. package/dist/public/assets/{_BA1Flvg32.js.map → _D69Y468R2.js.map} +1 -1
  82. package/dist/public/assets/{_BfklLvTH2.js → _DCcYmQ_s2.js} +2 -2
  83. package/dist/public/assets/{_BfklLvTH2.js.map → _DCcYmQ_s2.js.map} +1 -1
  84. package/dist/public/assets/{_DatWcE_l.js → _DE0OXEWX.js} +2 -2
  85. package/dist/public/assets/{_DatWcE_l.js.map → _DE0OXEWX.js.map} +1 -1
  86. package/dist/public/assets/{_CVTm837N.js → _DGzOveRF.js} +2 -2
  87. package/dist/public/assets/{_CVTm837N.js.map → _DGzOveRF.js.map} +1 -1
  88. package/dist/public/assets/{_BZ1vsOtU2.js → _DIBiig5O2.js} +2 -2
  89. package/dist/public/assets/{_BZ1vsOtU2.js.map → _DIBiig5O2.js.map} +1 -1
  90. package/dist/public/assets/{_CEhaT_yw.js → _DLrpVVOP.js} +2 -2
  91. package/dist/public/assets/{_CEhaT_yw.js.map → _DLrpVVOP.js.map} +1 -1
  92. package/dist/public/assets/{_VQFhNNlC.js → _DLs3aRaJ.js} +2 -2
  93. package/dist/public/assets/{_VQFhNNlC.js.map → _DLs3aRaJ.js.map} +1 -1
  94. package/dist/public/assets/{_mIMmc1-4.js → _DRFrNohk.js} +2 -2
  95. package/dist/public/assets/{_mIMmc1-4.js.map → _DRFrNohk.js.map} +1 -1
  96. package/dist/public/assets/{_DsdF3uU02.js → _DSiCqz1P2.js} +2 -2
  97. package/dist/public/assets/{_DsdF3uU02.js.map → _DSiCqz1P2.js.map} +1 -1
  98. package/dist/public/assets/{_DWpL0T8T.js → _DTYxR8JQ.js} +2 -2
  99. package/dist/public/assets/{_DWpL0T8T.js.map → _DTYxR8JQ.js.map} +1 -1
  100. package/dist/public/assets/{_C7qjJec5.js → _DV3zDssv.js} +2 -2
  101. package/dist/public/assets/{_C7qjJec5.js.map → _DV3zDssv.js.map} +1 -1
  102. package/dist/public/assets/{_x39l6v9i.js → _DWZwPPmf.js} +2 -2
  103. package/dist/public/assets/{_x39l6v9i.js.map → _DWZwPPmf.js.map} +1 -1
  104. package/dist/public/assets/{_BENakU6F2.js → _Db3F1ZqM2.js} +2 -2
  105. package/dist/public/assets/{_BENakU6F2.js.map → _Db3F1ZqM2.js.map} +1 -1
  106. package/dist/public/assets/{_CGshnRGq2.js → _DdoBNw7O2.js} +2 -2
  107. package/dist/public/assets/{_CGshnRGq2.js.map → _DdoBNw7O2.js.map} +1 -1
  108. package/dist/public/assets/{_BdjtVej2.js → _DeeBFErP.js} +2 -2
  109. package/dist/public/assets/{_BdjtVej2.js.map → _DeeBFErP.js.map} +1 -1
  110. package/dist/public/assets/{_tEWpbjjW.js → _Dnj_upFW.js} +2 -2
  111. package/dist/public/assets/{_tEWpbjjW.js.map → _Dnj_upFW.js.map} +1 -1
  112. package/dist/public/assets/{_DpCf_atU.js → _Dou03otF.js} +2 -2
  113. package/dist/public/assets/{_DpCf_atU.js.map → _Dou03otF.js.map} +1 -1
  114. package/dist/public/assets/{_Doc3xk-E2.js → _Dp01MMO42.js} +2 -2
  115. package/dist/public/assets/{_Doc3xk-E2.js.map → _Dp01MMO42.js.map} +1 -1
  116. package/dist/public/assets/{_CDqUkraW.js → _DqMqiyah.js} +2 -2
  117. package/dist/public/assets/{_CDqUkraW.js.map → _DqMqiyah.js.map} +1 -1
  118. package/dist/public/assets/{_ClFfFrAg2.js → _Dy1d23fd2.js} +2 -2
  119. package/dist/public/assets/{_ClFfFrAg2.js.map → _Dy1d23fd2.js.map} +1 -1
  120. package/dist/public/assets/{_lq6Mp4lM.js → _HN4GzXai.js} +2 -2
  121. package/dist/public/assets/{_lq6Mp4lM.js.map → _HN4GzXai.js.map} +1 -1
  122. package/dist/public/assets/{_lFKA9njW2.js → _JivX8J_W2.js} +2 -2
  123. package/dist/public/assets/{_lFKA9njW2.js.map → _JivX8J_W2.js.map} +1 -1
  124. package/dist/public/assets/{_ljVbYQrb.js → _K3UNrLtV.js} +2 -2
  125. package/dist/public/assets/{_ljVbYQrb.js.map → _K3UNrLtV.js.map} +1 -1
  126. package/dist/public/assets/{_CRzez65S.js → _N_MncSgy.js} +2 -2
  127. package/dist/public/assets/{_CRzez65S.js.map → _N_MncSgy.js.map} +1 -1
  128. package/dist/public/assets/{_CxREVo2W2.js → _VdtJ_5pb2.js} +2 -2
  129. package/dist/public/assets/{_CxREVo2W2.js.map → _VdtJ_5pb2.js.map} +1 -1
  130. package/dist/public/assets/{_PLe738he.js → _YFy-LCwd.js} +2 -2
  131. package/dist/public/assets/{_PLe738he.js.map → _YFy-LCwd.js.map} +1 -1
  132. package/dist/public/assets/{_9T4KD6Cx2.js → _YzHkI38Y2.js} +2 -2
  133. package/dist/public/assets/{_9T4KD6Cx2.js.map → _YzHkI38Y2.js.map} +1 -1
  134. package/dist/public/assets/{_Dlqi-FuG.js → _Z_ClK8ZW.js} +2 -2
  135. package/dist/public/assets/{_Dlqi-FuG.js.map → _Z_ClK8ZW.js.map} +1 -1
  136. package/dist/public/assets/{_DzcnHy3e2.js → _isfb253p2.js} +2 -2
  137. package/dist/public/assets/{_DzcnHy3e2.js.map → _isfb253p2.js.map} +1 -1
  138. package/dist/public/assets/{_BSK-jOsW2.js → _kSqeI-Mv2.js} +2 -2
  139. package/dist/public/assets/{_BSK-jOsW2.js.map → _kSqeI-Mv2.js.map} +1 -1
  140. package/dist/public/assets/{_mwzbhNSE2.js → _r4jzjyPa2.js} +2 -2
  141. package/dist/public/assets/{_mwzbhNSE2.js.map → _r4jzjyPa2.js.map} +1 -1
  142. package/dist/public/assets/{_kFADAUVE.js → _tY5zLQZp.js} +2 -2
  143. package/dist/public/assets/{_kFADAUVE.js.map → _tY5zLQZp.js.map} +1 -1
  144. package/dist/public/assets/{_CghRvWTz2.js → _tv3y18472.js} +2 -2
  145. package/dist/public/assets/{_CghRvWTz2.js.map → _tv3y18472.js.map} +1 -1
  146. package/dist/public/assets/{_BKayEvX0.js → _vIlLN3ua.js} +2 -2
  147. package/dist/public/assets/{_BKayEvX0.js.map → _vIlLN3ua.js.map} +1 -1
  148. package/dist/public/assets/{_Dmvx0mCq.js → _zWA2RsS1.js} +2 -2
  149. package/dist/public/assets/{_Dmvx0mCq.js.map → _zWA2RsS1.js.map} +1 -1
  150. package/dist/public/assets/{index-C_YqjXeW.css → index-CExZozP4.css} +1 -1
  151. package/dist/public/assets/index-DW02FbhG.js +1615 -0
  152. package/dist/public/assets/index-DW02FbhG.js.map +1 -0
  153. package/package.json +1 -1
  154. package/dist/public/assets/index-BnMs3duC.js +0 -1614
  155. package/dist/public/assets/index-BnMs3duC.js.map +0 -1
package/dist/index.mjs CHANGED
@@ -3359,7 +3359,7 @@ function coalesce(fn) {
3359
3359
  }
3360
3360
  //#endregion
3361
3361
  //#region src/tags/icons/icon-base.marko
3362
- var icon_base_default = _template("r", (input) => {
3362
+ var icon_base_default = _template("t", (input) => {
3363
3363
  const $scope0_reason = _scope_reason();
3364
3364
  const $scope0_id = _scope_id();
3365
3365
  const size = input.size ?? 15;
@@ -3368,7 +3368,7 @@ var icon_base_default = _template("r", (input) => {
3368
3368
  });
3369
3369
  //#endregion
3370
3370
  //#region src/tags/icons/icon-diff.marko
3371
- var icon_diff_default = _template("u", (input) => {
3371
+ var icon_diff_default = _template("w", (input) => {
3372
3372
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
3373
3373
  const $scope0_id = _scope_id();
3374
3374
  _set_serialize_reason({
@@ -3385,7 +3385,7 @@ var icon_diff_default = _template("u", (input) => {
3385
3385
  });
3386
3386
  //#endregion
3387
3387
  //#region src/tags/icons/icon-manage.marko
3388
- var icon_manage_default = _template("B", (input) => {
3388
+ var icon_manage_default = _template("D", (input) => {
3389
3389
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
3390
3390
  const $scope0_id = _scope_id();
3391
3391
  _set_serialize_reason({
@@ -3402,7 +3402,7 @@ var icon_manage_default = _template("B", (input) => {
3402
3402
  });
3403
3403
  //#endregion
3404
3404
  //#region src/tags/icons/icon-plus.marko
3405
- var icon_plus_default = _template("C", (input) => {
3405
+ var icon_plus_default = _template("E", (input) => {
3406
3406
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
3407
3407
  const $scope0_id = _scope_id();
3408
3408
  _set_serialize_reason({
@@ -3426,7 +3426,7 @@ var PATHS = {
3426
3426
  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
3427
  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
3428
  };
3429
- var icon_agent_default = _template("p", (input) => {
3429
+ var icon_agent_default = _template("r", (input) => {
3430
3430
  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
3431
  const $scope0_id = _scope_id();
3432
3432
  const size = input.size ?? 15;
@@ -3474,7 +3474,7 @@ var $class$3 = [
3474
3474
  "\"row archived\"",
3475
3475
  "\"row hi archived\""
3476
3476
  ];
3477
- var palette_default = _template("h", (input) => {
3477
+ var palette_default = _template("j", (input) => {
3478
3478
  const $scope0_reason = _scope_reason(), $sg__input_inline = _serialize_guard($scope0_reason, 4), $sg__input_inline__OR__input_workspaces_length = _serialize_guard($scope0_reason, 1), $sg__input_settings_agents = _serialize_guard($scope0_reason, 6), $si__input_settings_agents = _serialize_if($scope0_reason, 6), $si__input_selectedId = _serialize_if($scope0_reason, 2), $si__input_status = _serialize_if($scope0_reason, 5);
3479
3479
  const $scope0_id = _scope_id();
3480
3480
  const $input_selectedId__closures = /* @__PURE__ */ new Set();
@@ -3485,7 +3485,7 @@ var palette_default = _template("h", (input) => {
3485
3485
  let showArchived = false;
3486
3486
  const active = input.workspaces.filter((ws) => ws.status === "active");
3487
3487
  const archived = input.workspaces.filter((ws) => ws.status === "archived");
3488
- const matches = _resume((list) => list.filter((ws) => fuzzy(query, ws.name)), "h2", $scope0_id);
3488
+ const matches = _resume((list) => list.filter((ws) => fuzzy(query, ws.name)), "j2", $scope0_id);
3489
3489
  const currentWs = input.workspaces.find((ws) => ws.id === input.selectedId);
3490
3490
  const commands = !query || !currentWs ? [] : [
3491
3491
  {
@@ -3523,12 +3523,12 @@ var palette_default = _template("h", (input) => {
3523
3523
  if (row.kind === "new") input.onNew();
3524
3524
  else if (row.kind === "cmd") row.run();
3525
3525
  else input.onSelect(row.ws);
3526
- }, "h3", $scope0_id);
3526
+ }, "j3", $scope0_id);
3527
3527
  _if(() => {
3528
3528
  if (!input.inline) {
3529
3529
  const $scope1_id = _scope_id();
3530
3530
  _html(`<div class=palette-backdrop></div>${_el_resume($scope1_id, "a")}`);
3531
- _script($scope1_id, "h4");
3531
+ _script($scope1_id, "j4");
3532
3532
  writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
3533
3533
  return 0;
3534
3534
  }
@@ -3545,7 +3545,7 @@ var palette_default = _template("h", (input) => {
3545
3545
  _html(`<input${_attr_input_value($scope0_id, "d", query, _resume(function(v) {
3546
3546
  query = v;
3547
3547
  hiRaw = 0;
3548
- }, "h0", $scope0_id))} autofocus placeholder="Jump to workspace…" aria-label="Filter workspaces">${_el_resume($scope0_id, "d")}<ul class=rows>`);
3548
+ }, "j0", $scope0_id))} autofocus placeholder="Jump to workspace…" aria-label="Filter workspaces">${_el_resume($scope0_id, "d")}<ul class=rows>`);
3549
3549
  _for_of(rows, (row, i) => {
3550
3550
  const $scope2_id = _scope_id();
3551
3551
  _html(`<li><div class=row-wrap><button class=${$class$3[(i === hi ? 1 : 0) + (row.kind === "ws" && row.archived ? 2 : 0)]}>`);
@@ -3647,20 +3647,20 @@ var palette_default = _template("h", (input) => {
3647
3647
  size: 14
3648
3648
  });
3649
3649
  _html(`${_sep($sg__input_settings_agents)}${_escape(agent)}${_el_resume($scope5_id, "c", $sg__input_settings_agents)}</button>${_el_resume($scope5_id, "a")}`);
3650
- _script($scope5_id, "h5");
3650
+ _script($scope5_id, "j5");
3651
3651
  writeScope($scope5_id, {
3652
3652
  e: agent,
3653
3653
  _: _scope_with_id($scope4_id),
3654
3654
  b: $si__input_settings_agents && _existing_scope($childScope)
3655
3655
  });
3656
3656
  }, (a) => a, $scope4_id, "g", $sg__input_settings_agents, 1, $sg__input_settings_agents, "</div>", 1);
3657
- _script($scope4_id, "h6");
3657
+ _script($scope4_id, "j6");
3658
3658
  _subscribe($si__input_settings_agents && $input_settings_agents__closures, writeScope($scope4_id, {}));
3659
3659
  return 0;
3660
3660
  }
3661
3661
  }, $scope2_id, "b");
3662
3662
  _html("</div></li>");
3663
- _script($scope2_id, "h7");
3663
+ _script($scope2_id, "j7");
3664
3664
  writeScope($scope2_id, {
3665
3665
  d: row,
3666
3666
  e: row?.kind,
@@ -3677,7 +3677,7 @@ var palette_default = _template("h", (input) => {
3677
3677
  if (archived.length && !query) {
3678
3678
  const $scope7_id = _scope_id();
3679
3679
  _html(`<button class="archived-link dim">${`archived (${_escape(`${archived.length}`)})`}${_el_resume($scope7_id, "b")}</button>${_el_resume($scope7_id, "a")}`);
3680
- _script($scope7_id, "h8");
3680
+ _script($scope7_id, "j8");
3681
3681
  writeScope($scope7_id, {});
3682
3682
  return 0;
3683
3683
  }
@@ -3697,7 +3697,7 @@ var palette_default = _template("h", (input) => {
3697
3697
  headers: { "content-type": "application/json" },
3698
3698
  body: JSON.stringify({ preferredAgent: v })
3699
3699
  }).catch(() => {});
3700
- }, "h1", $scope6_id), () => {
3700
+ }, "j1", $scope6_id), () => {
3701
3701
  _html("<select aria-label=\"Preferred agent\">");
3702
3702
  _for_of(input.settings.agents, (agent) => {
3703
3703
  const $scope17_id = _scope_id();
@@ -3706,15 +3706,15 @@ var palette_default = _template("h", (input) => {
3706
3706
  }, (a) => a, $scope6_id, "a", $sg__input_settings_agents, 1, $sg__input_settings_agents, "</select>", 1);
3707
3707
  });
3708
3708
  _html("</label>");
3709
- _script($scope6_id, "h9");
3709
+ _script($scope6_id, "j9");
3710
3710
  writeScope($scope6_id, { _: _scope_with_id($scope0_id) });
3711
3711
  return 0;
3712
3712
  }
3713
3713
  }, $scope0_id, "g", _serialize_guard($scope0_reason, 0), _serialize_guard($scope0_reason, 3), 1, 0, 1);
3714
3714
  _html(`</div></div>${_el_resume($scope0_id, "b", $sg__input_inline)}`);
3715
- _script($scope0_id, "h10");
3716
- _script($scope0_id, "h11");
3717
- _script($scope0_id, "h12");
3715
+ _script($scope0_id, "j10");
3716
+ _script($scope0_id, "j11");
3717
+ _script($scope0_id, "j12");
3718
3718
  writeScope($scope0_id, {
3719
3719
  j: $si__input_selectedId && input.workspaces,
3720
3720
  k: input.selectedId,
@@ -3752,7 +3752,7 @@ var palette_default = _template("h", (input) => {
3752
3752
  });
3753
3753
  //#endregion
3754
3754
  //#region src/tags/icons/icon-refresh.marko
3755
- var icon_refresh_default = _template("D", (input) => {
3755
+ var icon_refresh_default = _template("F", (input) => {
3756
3756
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
3757
3757
  const $scope0_id = _scope_id();
3758
3758
  _set_serialize_reason({
@@ -3771,7 +3771,7 @@ var icon_refresh_default = _template("D", (input) => {
3771
3771
  //#region src/tags/repo-picker.marko
3772
3772
  var api$6;
3773
3773
  var rankRepos;
3774
- var repo_picker_default = _template("j", (input) => {
3774
+ var repo_picker_default = _template("l", (input) => {
3775
3775
  _scope_reason();
3776
3776
  const $scope0_id = _scope_id();
3777
3777
  const $branchFilter__closures = /* @__PURE__ */ new Set();
@@ -3790,7 +3790,7 @@ var repo_picker_default = _template("j", (input) => {
3790
3790
  input.onError?.(String(err.message || err));
3791
3791
  }
3792
3792
  if (refresh) input.refreshingChange?.(false);
3793
- }, "j3", $scope0_id);
3793
+ }, "l3", $scope0_id);
3794
3794
  const results = catalog && filter ? rankRepos(filter, catalog.repos, (name) => input.exclude.has(name)) : [];
3795
3795
  let branchesFor = null;
3796
3796
  let branches = null;
@@ -3799,7 +3799,7 @@ var repo_picker_default = _template("j", (input) => {
3799
3799
  filter = "";
3800
3800
  branchesFor = null;
3801
3801
  input.onPick(fullName, baseBranch);
3802
- }, "j4", $scope0_id);
3802
+ }, "l4", $scope0_id);
3803
3803
  const toggleBranches = _resume(async (fullName) => {
3804
3804
  if (branchesFor === fullName) {
3805
3805
  branchesFor = null;
@@ -3815,11 +3815,11 @@ var repo_picker_default = _template("j", (input) => {
3815
3815
  branchesFor = null;
3816
3816
  input.onError?.(String(err.message || err));
3817
3817
  }
3818
- }, "j5", $scope0_id);
3818
+ }, "l5", $scope0_id);
3819
3819
  _html(`<div class=add-repo><input${_attr_input_value($scope0_id, "a", filter, _resume(function(v) {
3820
3820
  filter = v;
3821
3821
  highlight = 0;
3822
- }, "j0", $scope0_id))} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input.disabled)}>${_el_resume($scope0_id, "a")}`);
3822
+ }, "l0", $scope0_id))} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input.disabled)}>${_el_resume($scope0_id, "a")}`);
3823
3823
  _if(() => {
3824
3824
  if (filter && !catalog) {
3825
3825
  const $scope8_id = _scope_id();
@@ -3857,8 +3857,8 @@ var repo_picker_default = _template("j", (input) => {
3857
3857
  const $scope6_id = _scope_id();
3858
3858
  _html(`<input${_attr_input_value($scope6_id, "a", branchFilter, _resume((_new_branchFilter) => {
3859
3859
  branchFilter = _new_branchFilter;
3860
- }, "j1", $scope6_id))} placeholder="Filter branches…" aria-label="Filter branches" autofocus>${_el_resume($scope6_id, "a")}`);
3861
- _script($scope6_id, "j6");
3860
+ }, "l1", $scope6_id))} placeholder="Filter branches…" aria-label="Filter branches" autofocus>${_el_resume($scope6_id, "a")}`);
3861
+ _script($scope6_id, "l6");
3862
3862
  _subscribe($branchFilter__closures, writeScope($scope6_id, { Ca7: 1 }));
3863
3863
  return 0;
3864
3864
  }
@@ -3868,7 +3868,7 @@ var repo_picker_default = _template("j", (input) => {
3868
3868
  _for_of(shown, (branch) => {
3869
3869
  const $scope7_id = _scope_id();
3870
3870
  _html(`<li><button class=result-row><span class="repo-name mono">${_escape(branch)}${_el_resume($scope7_id, "b")}</span></button>${_el_resume($scope7_id, "a")}</li>`);
3871
- _script($scope7_id, "j7");
3871
+ _script($scope7_id, "l7");
3872
3872
  writeScope($scope7_id, { d: branch });
3873
3873
  }, (b) => b, $scope5_id, "b", 1, 1, 1, 0, 1);
3874
3874
  _if(() => {
@@ -3889,7 +3889,7 @@ var repo_picker_default = _template("j", (input) => {
3889
3889
  }
3890
3890
  }, $scope3_id, "f", 1, 1, 1, 0, 1);
3891
3891
  _html("</li>");
3892
- _script($scope3_id, "j8");
3892
+ _script($scope3_id, "l8");
3893
3893
  _subscribe($branchesFor__closures, _subscribe($highlight__closures, writeScope($scope3_id, {
3894
3894
  i: repo?.nameWithOwner,
3895
3895
  k: i
@@ -3905,9 +3905,9 @@ var repo_picker_default = _template("j", (input) => {
3905
3905
  }
3906
3906
  }, $scope0_id, "c", 1, 1, 1, 0, 1);
3907
3907
  _html("</div>");
3908
- const $return = _resume(() => loadCatalog(true), "j2", $scope0_id);
3909
- _script($scope0_id, "j9");
3910
- _script($scope0_id, "j10");
3908
+ const $return = _resume(() => loadCatalog(true), "l2", $scope0_id);
3909
+ _script($scope0_id, "l9");
3910
+ _script($scope0_id, "l10");
3911
3911
  writeScope($scope0_id, {
3912
3912
  f: input.refreshingChange,
3913
3913
  g: input.onError,
@@ -3935,7 +3935,7 @@ var repo_picker_default = _template("j", (input) => {
3935
3935
  });
3936
3936
  //#endregion
3937
3937
  //#region src/tags/modal-view.marko
3938
- var modal_view_default = _template("f", (input) => {
3938
+ var modal_view_default = _template("h", (input) => {
3939
3939
  const $scope0_reason = _scope_reason(), $sg__input_onClose__OR__input_footer = _serialize_guard($scope0_reason, 0), $si__input_onClose__OR__input_footer = _serialize_if($scope0_reason, 0);
3940
3940
  const $scope0_id = _scope_id();
3941
3941
  const dismissable = input.dismissable !== false;
@@ -3953,14 +3953,14 @@ var modal_view_default = _template("f", (input) => {
3953
3953
  } else if (input.onClose) {
3954
3954
  const $scope2_id = _scope_id();
3955
3955
  _html(`<div class=manage-bar><button class="btn primary">Done</button>${_el_resume($scope2_id, "a")}</div>`);
3956
- _script($scope2_id, "f0");
3956
+ _script($scope2_id, "h0");
3957
3957
  writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
3958
3958
  return 1;
3959
3959
  }
3960
3960
  }, $scope0_id, "d", $sg__input_onClose__OR__input_footer, $sg__input_onClose__OR__input_footer, $sg__input_onClose__OR__input_footer, 0, 1);
3961
3961
  _html(`</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 1))}`);
3962
- _script($scope0_id, "f1");
3963
- _script($scope0_id, "f2");
3962
+ _script($scope0_id, "h1");
3963
+ _script($scope0_id, "h2");
3964
3964
  writeScope($scope0_id, {
3965
3965
  h: input.onClose,
3966
3966
  l: _serialize_if($scope0_reason, 2) && input.footer,
@@ -3973,7 +3973,7 @@ var modal_view_default = _template("f", (input) => {
3973
3973
  //#region src/tags/manage-workspace.marko
3974
3974
  var api$5;
3975
3975
  var lastData = /* @__PURE__ */ new Map();
3976
- var manage_workspace_default = _template("e", (input) => {
3976
+ var manage_workspace_default = _template("g", (input) => {
3977
3977
  const $scope0_reason = _scope_reason(), $sg__input_workspace = _serialize_guard($scope0_reason, 1), $si__input_workspace = _serialize_if($scope0_reason, 1), $sg__input_onClose = _serialize_guard($scope0_reason, 2);
3978
3978
  const $scope0_id = _scope_id();
3979
3979
  const $actionStep__closures = /* @__PURE__ */ new Set();
@@ -4013,19 +4013,19 @@ var manage_workspace_default = _template("e", (input) => {
4013
4013
  procs = data;
4014
4014
  lastData.set(`procs:${ws.id}`, data);
4015
4015
  } catch {}
4016
- }, "e0", $scope0_id);
4016
+ }, "g0", $scope0_id);
4017
4017
  const loadPrs = _resume(async (signal, refresh) => {
4018
4018
  try {
4019
4019
  const data = await api$5(`/api/workspaces/${ws.id}/prs${refresh ? "?refresh" : ""}`, { signal });
4020
4020
  prs = data;
4021
4021
  lastData.set(`prs:${ws.id}`, data);
4022
4022
  } catch {}
4023
- }, "e1", $scope0_id);
4023
+ }, "g1", $scope0_id);
4024
4024
  const refreshPrs = _resume(async () => {
4025
4025
  prsRefreshing = true;
4026
4026
  await loadPrs(void 0, true);
4027
4027
  prsRefreshing = false;
4028
- }, "e2", $scope0_id);
4028
+ }, "g2", $scope0_id);
4029
4029
  const clearFinished = _resume(async () => {
4030
4030
  for (const repo of prs || []) for (const pr of repo.prs) {
4031
4031
  if (pr.state === "OPEN") continue;
@@ -4039,7 +4039,7 @@ var manage_workspace_default = _template("e", (input) => {
4039
4039
  }).catch(() => {});
4040
4040
  }
4041
4041
  await loadPrs(void 0, false);
4042
- }, "e3", $scope0_id);
4042
+ }, "g3", $scope0_id);
4043
4043
  const dismissPr = _resume(async (fullName, number) => {
4044
4044
  error = null;
4045
4045
  try {
@@ -4056,14 +4056,14 @@ var manage_workspace_default = _template("e", (input) => {
4056
4056
  } catch (err) {
4057
4057
  error = String(err.message || err);
4058
4058
  }
4059
- }, "e4", $scope0_id);
4059
+ }, "g4", $scope0_id);
4060
4060
  const inWorkspace = new Set(ws.repos.map((r) => r.full_name));
4061
4061
  const setBusy = _resume((name, on) => {
4062
4062
  const next = new Set(busy);
4063
4063
  if (on) next.add(name);
4064
4064
  else next.delete(name);
4065
4065
  busy = next;
4066
- }, "e5", $scope0_id);
4066
+ }, "g5", $scope0_id);
4067
4067
  const addRepo = _resume(async (name, baseBranch) => {
4068
4068
  if (!name || busy.has(name)) return;
4069
4069
  error = null;
@@ -4082,7 +4082,7 @@ var manage_workspace_default = _template("e", (input) => {
4082
4082
  error = String(err.message || err);
4083
4083
  }
4084
4084
  setBusy(name, false);
4085
- }, "e6", $scope0_id);
4085
+ }, "g6", $scope0_id);
4086
4086
  const removeRepo = _resume(async (row) => {
4087
4087
  if (busy.has(row.full_name)) return;
4088
4088
  error = null;
@@ -4097,7 +4097,7 @@ var manage_workspace_default = _template("e", (input) => {
4097
4097
  error = String(err.message || err);
4098
4098
  }
4099
4099
  setBusy(row.full_name, false);
4100
- }, "e7", $scope0_id);
4100
+ }, "g7", $scope0_id);
4101
4101
  const runAction = _resume(async (action) => {
4102
4102
  error = null;
4103
4103
  pendingAction = action;
@@ -4115,11 +4115,11 @@ var manage_workspace_default = _template("e", (input) => {
4115
4115
  pendingAction = null;
4116
4116
  actionStep = null;
4117
4117
  }
4118
- }, "e8", $scope0_id);
4118
+ }, "g8", $scope0_id);
4119
4119
  const killProc = _resume(async (pid) => {
4120
4120
  await fetch(`/api/procs/${pid}`, { method: "DELETE" });
4121
4121
  setTimeout(() => loadProcs(void 0), 500);
4122
- }, "e9", $scope0_id);
4122
+ }, "g9", $scope0_id);
4123
4123
  _set_serialize_reason({
4124
4124
  0: $sg__input_onClose,
4125
4125
  1: $sg__input_workspace,
@@ -4130,8 +4130,8 @@ var manage_workspace_default = _template("e", (input) => {
4130
4130
  label: `Manage ${ws.name}`,
4131
4131
  onClose: _resume(function() {
4132
4132
  input.onClose?.();
4133
- }, "e10", $scope0_id),
4134
- footer: attrTag({ content: _content_resume("e26", () => {
4133
+ }, "g10", $scope0_id),
4134
+ footer: attrTag({ content: _content_resume("g26", () => {
4135
4135
  _scope_reason();
4136
4136
  const $scope1_id = _scope_id();
4137
4137
  _html(`<button class="btn primary"${_attr("disabled", !!pendingAction)}>Done</button>${_el_resume($scope1_id, "a")}`);
@@ -4148,7 +4148,7 @@ var manage_workspace_default = _template("e", (input) => {
4148
4148
  if (ws.status === "active") {
4149
4149
  const $scope8_id = _scope_id();
4150
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, "e14");
4151
+ _script($scope8_id, "g14");
4152
4152
  _subscribe($pendingAction__closures, writeScope($scope8_id, {
4153
4153
  _: _scope_with_id($scope1_id),
4154
4154
  Cap: 1
@@ -4157,7 +4157,7 @@ var manage_workspace_default = _template("e", (input) => {
4157
4157
  } else {
4158
4158
  const $scope9_id = _scope_id();
4159
4159
  _html(`<button class=btn${_attr("disabled", !!pendingAction)}>Restore</button>${_el_resume($scope9_id, "a")}`);
4160
- _script($scope9_id, "e15");
4160
+ _script($scope9_id, "g15");
4161
4161
  _subscribe($pendingAction__closures, writeScope($scope9_id, {
4162
4162
  _: _scope_with_id($scope1_id),
4163
4163
  Cap: 2
@@ -4166,11 +4166,11 @@ var manage_workspace_default = _template("e", (input) => {
4166
4166
  }
4167
4167
  }, $scope1_id, "c", $sg__input_workspace, $sg__input_workspace, 1, 0, 1);
4168
4168
  _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, "e16");
4169
+ _script($scope1_id, "g16");
4170
4170
  _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
4171
  _resume_branch($scope1_id);
4172
4172
  }, $scope0_id) }),
4173
- content: _content("e27", () => {
4173
+ content: _content("g27", () => {
4174
4174
  _scope_reason();
4175
4175
  const $scope2_id = _scope_id();
4176
4176
  _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>`);
@@ -4178,7 +4178,7 @@ var manage_workspace_default = _template("e", (input) => {
4178
4178
  if (error) {
4179
4179
  const $scope7_id = _scope_id();
4180
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, "e17");
4181
+ _script($scope7_id, "g17");
4182
4182
  _subscribe($error__closures, writeScope($scope7_id, { Cao: 1 }));
4183
4183
  return 0;
4184
4184
  }
@@ -4192,7 +4192,7 @@ var manage_workspace_default = _template("e", (input) => {
4192
4192
  if (finishedCount) {
4193
4193
  const $scope12_id = _scope_id();
4194
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, "e18");
4195
+ _script($scope12_id, "g18");
4196
4196
  writeScope($scope12_id, {});
4197
4197
  return 0;
4198
4198
  }
@@ -4233,7 +4233,7 @@ var manage_workspace_default = _template("e", (input) => {
4233
4233
  if (pr.state !== "OPEN") {
4234
4234
  const $scope14_id = _scope_id();
4235
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, "e19");
4236
+ _script($scope14_id, "g19");
4237
4237
  writeScope($scope14_id, {});
4238
4238
  return 0;
4239
4239
  }
@@ -4248,7 +4248,7 @@ var manage_workspace_default = _template("e", (input) => {
4248
4248
  }));
4249
4249
  }, "full_name", $scope4_id, "d", 1, 1, 1, 0, 1);
4250
4250
  _html("</section>");
4251
- _script($scope4_id, "e20");
4251
+ _script($scope4_id, "g20");
4252
4252
  _subscribe($prsRefreshing__closures, _subscribe($prs__closures, writeScope($scope4_id, {
4253
4253
  e: finishedCount,
4254
4254
  Caj: 1
@@ -4279,7 +4279,7 @@ var manage_workspace_default = _template("e", (input) => {
4279
4279
  } else {
4280
4280
  const $scope10_id = _scope_id();
4281
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, "e21");
4282
+ _script($scope10_id, "g21");
4283
4283
  _subscribe($confirmingRemove__closures, writeScope($scope10_id, {}));
4284
4284
  return 1;
4285
4285
  }
@@ -4313,15 +4313,15 @@ var manage_workspace_default = _template("e", (input) => {
4313
4313
  exclude: inWorkspace,
4314
4314
  onPick: _resume(function(name, baseBranch) {
4315
4315
  addRepo(name, baseBranch);
4316
- }, "e11", $scope2_id),
4316
+ }, "g11", $scope2_id),
4317
4317
  onError: _resume(function(message) {
4318
4318
  error = message;
4319
- }, "e12", $scope2_id),
4319
+ }, "g12", $scope2_id),
4320
4320
  refreshingChange: _resume(function(busy) {
4321
4321
  catalogRefreshing = busy;
4322
- }, "e13", $scope2_id)
4322
+ }, "g13", $scope2_id)
4323
4323
  });
4324
- _var($scope2_id, "k", $childScope, "e22");
4324
+ _var($scope2_id, "k", $childScope, "g22");
4325
4325
  _html("</section>");
4326
4326
  _if(() => {
4327
4327
  if (procs && procs.length) {
@@ -4333,11 +4333,11 @@ var manage_workspace_default = _template("e", (input) => {
4333
4333
  _for_of(p.ports, (port) => {
4334
4334
  const $scope23_id = _scope_id();
4335
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, "e23");
4336
+ _script($scope23_id, "g23");
4337
4337
  writeScope($scope23_id, { d: port });
4338
4338
  }, (x) => String(x), $scope15_id, "c", 1, 1, 1, 0, 1);
4339
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, "e24");
4340
+ _script($scope15_id, "g24");
4341
4341
  writeScope($scope15_id, { j: p?.pid });
4342
4342
  }, "pid", $scope3_id, "a", 1, 1, 1, "</ul>", 1);
4343
4343
  _html("</section>");
@@ -4345,7 +4345,7 @@ var manage_workspace_default = _template("e", (input) => {
4345
4345
  return 0;
4346
4346
  }
4347
4347
  }, $scope2_id, "l", 1, 1, 1, 0, 1);
4348
- _script($scope2_id, "e25");
4348
+ _script($scope2_id, "g25");
4349
4349
  _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
4350
  m: refreshCatalog,
4351
4351
  _: _scope_with_id($scope0_id),
@@ -4354,7 +4354,7 @@ var manage_workspace_default = _template("e", (input) => {
4354
4354
  _resume_branch($scope2_id);
4355
4355
  })
4356
4356
  });
4357
- _script($scope0_id, "e28");
4357
+ _script($scope0_id, "g28");
4358
4358
  writeScope($scope0_id, {
4359
4359
  f: input.onChange,
4360
4360
  g: input.onClose,
@@ -4411,7 +4411,7 @@ var manage_workspace_default = _template("e", (input) => {
4411
4411
  //#endregion
4412
4412
  //#region src/tags/new-workspace.marko
4413
4413
  var api$4;
4414
- var new_workspace_default = _template("g", (input) => {
4414
+ var new_workspace_default = _template("i", (input) => {
4415
4415
  const $sg__input_onCancel = _serialize_guard(_scope_reason(), 0);
4416
4416
  const $scope0_id = _scope_id();
4417
4417
  const $name__closures = /* @__PURE__ */ new Set();
@@ -4440,17 +4440,17 @@ var new_workspace_default = _template("g", (input) => {
4440
4440
  if (e.seq) prog.last = e.seq;
4441
4441
  steps = steps.concat(e.message);
4442
4442
  }
4443
- }, "g1", $scope0_id);
4443
+ }, "i1", $scope0_id);
4444
4444
  const addRepo = _resume((fullName, baseBranch) => {
4445
4445
  if (!fullName || selected.some((r) => r.fullName === fullName)) return;
4446
4446
  selected = selected.concat({
4447
4447
  fullName,
4448
4448
  baseBranch
4449
4449
  });
4450
- }, "g2", $scope0_id);
4450
+ }, "i2", $scope0_id);
4451
4451
  const removeRepo = _resume((fullName) => {
4452
4452
  selected = selected.filter((r) => r.fullName !== fullName);
4453
- }, "g3", $scope0_id);
4453
+ }, "i3", $scope0_id);
4454
4454
  const create = _resume(async () => {
4455
4455
  busy = true;
4456
4456
  error = null;
@@ -4483,7 +4483,7 @@ var new_workspace_default = _template("g", (input) => {
4483
4483
  } finally {
4484
4484
  clearInterval(poll);
4485
4485
  }
4486
- }, "g4", $scope0_id);
4486
+ }, "i4", $scope0_id);
4487
4487
  _set_serialize_reason({
4488
4488
  0: $sg__input_onCancel,
4489
4489
  2: $sg__input_onCancel
@@ -4495,16 +4495,16 @@ var new_workspace_default = _template("g", (input) => {
4495
4495
  dismissable: !busy,
4496
4496
  onClose: _resume(function() {
4497
4497
  input.onCancel?.();
4498
- }, "g5", $scope0_id),
4499
- footer: attrTag({ content: _content_resume("g14", () => {
4498
+ }, "i5", $scope0_id),
4499
+ footer: attrTag({ content: _content_resume("i14", () => {
4500
4500
  _scope_reason();
4501
4501
  const $scope1_id = _scope_id();
4502
4502
  _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, "g9");
4503
+ _script($scope1_id, "i9");
4504
4504
  _subscribe($busy__closures, _subscribe($name__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })));
4505
4505
  _resume_branch($scope1_id);
4506
4506
  }, $scope0_id) }),
4507
- content: _content("g15", () => {
4507
+ content: _content("i15", () => {
4508
4508
  _scope_reason();
4509
4509
  const $scope2_id = _scope_id();
4510
4510
  _html("<header class=manage-head><div><h2>New workspace</h2></div></header>");
@@ -4512,14 +4512,14 @@ var new_workspace_default = _template("g", (input) => {
4512
4512
  if (error) {
4513
4513
  const $scope4_id = _scope_id();
4514
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, "g10");
4515
+ _script($scope4_id, "i10");
4516
4516
  _subscribe($error__closures, writeScope($scope4_id, { Ca2: 1 }));
4517
4517
  return 0;
4518
4518
  }
4519
4519
  }, $scope2_id, "a", 1, 1, 1, 0, 1);
4520
4520
  _html(`<label class=field><span>Name</span><input${_attr_input_value($scope2_id, "b", name, _resume((_new_name) => {
4521
4521
  name = _new_name;
4522
- }, "g0", $scope2_id))} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope2_id, "b")}</label><section><div class=repos-head><h3>Repos</h3><button class=${catalogRefreshing ? "\"icon-btn spinning\"" : "icon-btn"} title="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
4522
+ }, "i0", $scope2_id))} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope2_id, "b")}</label><section><div class=repos-head><h3>Repos</h3><button class=${catalogRefreshing ? "\"icon-btn spinning\"" : "icon-btn"} title="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
4523
4523
  icon_refresh_default({ size: 13 });
4524
4524
  _html(`</button>${_el_resume($scope2_id, "c")}</div><ul class=cur-repos>`);
4525
4525
  _for_of(selected, (repo) => {
@@ -4534,7 +4534,7 @@ var new_workspace_default = _template("g", (input) => {
4534
4534
  }
4535
4535
  }, $scope3_id, "b", 1, 1, 1, 0, 1);
4536
4536
  _html(`<button class=cur-remove${_attr("title", `Remove ${repo.fullName}`)}${_attr("disabled", busy)}>×</button>${_el_resume($scope3_id, "c")}</li>`);
4537
- _script($scope3_id, "g11");
4537
+ _script($scope3_id, "i11");
4538
4538
  _subscribe($busy__closures, writeScope($scope3_id, {
4539
4539
  f: repo?.fullName,
4540
4540
  g: repo?.baseBranch,
@@ -4556,15 +4556,15 @@ var new_workspace_default = _template("g", (input) => {
4556
4556
  disabled: busy,
4557
4557
  onPick: _resume(function(fullName, baseBranch) {
4558
4558
  addRepo(fullName, baseBranch);
4559
- }, "g6", $scope2_id),
4559
+ }, "i6", $scope2_id),
4560
4560
  onError: _resume(function(message) {
4561
4561
  error = message;
4562
- }, "g7", $scope2_id),
4562
+ }, "i7", $scope2_id),
4563
4563
  refreshingChange: _resume(function(v) {
4564
4564
  catalogRefreshing = v;
4565
- }, "g8", $scope2_id)
4565
+ }, "i8", $scope2_id)
4566
4566
  });
4567
- _var($scope2_id, "h", $childScope, "g12");
4567
+ _var($scope2_id, "h", $childScope, "i12");
4568
4568
  _html("</section>");
4569
4569
  _if(() => {
4570
4570
  if (busy && steps.length) {
@@ -4593,7 +4593,7 @@ var new_workspace_default = _template("g", (input) => {
4593
4593
  return 0;
4594
4594
  }
4595
4595
  }, $scope2_id, "i", 1, 1, 1, 0, 1);
4596
- _script($scope2_id, "g13");
4596
+ _script($scope2_id, "i13");
4597
4597
  _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
4598
  j: refreshCatalog,
4599
4599
  _: _scope_with_id($scope0_id),
@@ -4604,7 +4604,7 @@ var new_workspace_default = _template("g", (input) => {
4604
4604
  _resume_branch($scope2_id);
4605
4605
  })
4606
4606
  });
4607
- _script($scope0_id, "g16");
4607
+ _script($scope0_id, "i16");
4608
4608
  writeScope($scope0_id, {
4609
4609
  d: input.onCreate,
4610
4610
  e: input.onCancel,
@@ -4678,7 +4678,7 @@ function diffUncommitted() {
4678
4678
  }
4679
4679
  //#endregion
4680
4680
  //#region src/tags/icons/icon-edit.marko
4681
- var icon_edit_default = _template("w", (input) => {
4681
+ var icon_edit_default = _template("y", (input) => {
4682
4682
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
4683
4683
  const $scope0_id = _scope_id();
4684
4684
  _set_serialize_reason({
@@ -4703,7 +4703,7 @@ var $class$2 = [
4703
4703
  "\"chip pr rejected\"",
4704
4704
  "\"chip pr draft rejected\""
4705
4705
  ];
4706
- var side_nav_item_default = _template("k", (input) => {
4706
+ var side_nav_item_default = _template("m", (input) => {
4707
4707
  const $scope0_reason = _scope_reason(), $sg__input_workspaceId__OR__input_status = _serialize_guard($scope0_reason, 1), $sg__input_onReview = _serialize_guard($scope0_reason, 14), $sg__input_agents = _serialize_guard($scope0_reason, 16), $si__input_agents = _serialize_if($scope0_reason, 16), $sg__input_workspaceId__OR__input_status__OR__input_onReview__OR__input_onNewSession = _serialize_guard($scope0_reason, 9), $sg__input_onNewSession = _serialize_guard($scope0_reason, 15), $sg__input_sessions = _serialize_guard($scope0_reason, 17), $si__input_workspaceId__OR__input_status = _serialize_if($scope0_reason, 1), $si__input_current = _serialize_if($scope0_reason, 12), $si__input_sessions = _serialize_if($scope0_reason, 17), $si__input_workspaces__OR__input_workspaceId = _serialize_if($scope0_reason, 0), $sg__input_rail = _serialize_guard($scope0_reason, 11), $si__input_workspaceId__OR__input_status__OR__input_rail = _serialize_if($scope0_reason, 5), $sg__input_workspaces__OR__input_workspaceId = _serialize_guard($scope0_reason, 0), $si__input_workspaces__OR__input_workspaceId__OR__input_rail = _serialize_if($scope0_reason, 4), $si__input_index = _serialize_if($scope0_reason, 13), $si__input_currentTab = _serialize_if($scope0_reason, 18), $si__input_onReview = _serialize_if($scope0_reason, 14), $si__input_onNewSession = _serialize_if($scope0_reason, 15);
4708
4708
  const $scope0_id = _scope_id();
4709
4709
  const $input_current__closures = /* @__PURE__ */ new Set();
@@ -4726,7 +4726,7 @@ var side_nav_item_default = _template("k", (input) => {
4726
4726
  armedKill = null;
4727
4727
  armedPid = null;
4728
4728
  }, 3500);
4729
- }, "k0", $scope0_id);
4729
+ }, "m0", $scope0_id);
4730
4730
  const ws = input.workspaces.find((w) => w.id === input.workspaceId);
4731
4731
  _if(() => {
4732
4732
  if (ws) {
@@ -4739,7 +4739,7 @@ var side_nav_item_default = _template("k", (input) => {
4739
4739
  if (input.rail) {
4740
4740
  const $scope2_id = _scope_id();
4741
4741
  _html(`<button class=${input.current ? "\"icon-btn rail-btn current\"" : "\"icon-btn rail-btn\""}${_attr("title", ws.name)}>${_escape((input.index ?? 0) + 1)}${_el_resume($scope2_id, "b", _serialize_guard($scope0_reason, 13))}<span${_attr_class(["dot", dot])}></span>${_el_resume($scope2_id, "c", $sg__input_workspaceId__OR__input_status)}</button>${_el_resume($scope2_id, "a")}`);
4742
- _script($scope2_id, "k2");
4742
+ _script($scope2_id, "m2");
4743
4743
  _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_name__closures, _subscribe($si__input_index && $input_index__closures, _subscribe($si__input_current && $input_current__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) }))));
4744
4744
  return 0;
4745
4745
  } else {
@@ -4751,7 +4751,7 @@ var side_nav_item_default = _template("k", (input) => {
4751
4751
  _html("<button class=\"row-icon new-sess\" title=\"Review changes\">");
4752
4752
  icon_diff_default({ size: 12 });
4753
4753
  _html(`</button>${_el_resume($scope4_id, "a")}`);
4754
- _script($scope4_id, "k3");
4754
+ _script($scope4_id, "m3");
4755
4755
  writeScope($scope4_id, { _: _scope_with_id($scope3_id) });
4756
4756
  return 0;
4757
4757
  }
@@ -4782,14 +4782,14 @@ var side_nav_item_default = _template("k", (input) => {
4782
4782
  size: 14
4783
4783
  });
4784
4784
  _html(`${_sep($sg__input_agents)}${_escape(agent)}${_el_resume($scope6_id, "c", $sg__input_agents)}</button>${_el_resume($scope6_id, "a")}`);
4785
- _script($scope6_id, "k4");
4785
+ _script($scope6_id, "m4");
4786
4786
  writeScope($scope6_id, {
4787
4787
  e: agent,
4788
4788
  _: _scope_with_id($scope5_id),
4789
4789
  b: $si__input_agents && _existing_scope($childScope)
4790
4790
  });
4791
4791
  }, (a) => a, $scope5_id, "c", $sg__input_agents, 1, $sg__input_agents, "</div>", 1);
4792
- _script($scope5_id, "k5");
4792
+ _script($scope5_id, "m5");
4793
4793
  _subscribe($si__input_agents && $input_agents__closures, writeScope($scope5_id, { _: _scope_with_id($scope3_id) }));
4794
4794
  return 0;
4795
4795
  }
@@ -4812,7 +4812,7 @@ var side_nav_item_default = _template("k", (input) => {
4812
4812
  _html(`${_sep($sg__input_sessions)}${_escape(s.title || s.agent)}${_el_resume($scope7_id, "e", $sg__input_sessions)}</button>${_el_resume($scope7_id, "b")}<button class=row-icon title="Rename session">`);
4813
4813
  icon_edit_default({ size: 12 });
4814
4814
  _html(`</button>${_el_resume($scope7_id, "f")}<button class=${armedKill === s.id ? "\"close armed\"" : "close"} title=${armedKill === s.id ? "\"Really kill this session?\"" : "\"Kill session\""}>×</button>${_el_resume($scope7_id, "h")}</div>${_el_resume($scope7_id, "a", _serialize_guard($scope0_reason, 2))}`);
4815
- _script($scope7_id, "k6");
4815
+ _script($scope7_id, "m6");
4816
4816
  _subscribe($armedKill__closures, _subscribe($si__input_currentTab && $input_currentTab__closures, writeScope($scope7_id, {
4817
4817
  j: s,
4818
4818
  k: s?.id,
@@ -4829,14 +4829,14 @@ var side_nav_item_default = _template("k", (input) => {
4829
4829
  if (repos.length < 2) return "";
4830
4830
  const name = repo.full_name.split("/")[1];
4831
4831
  return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/")[1] === name) ? repo.full_name : name;
4832
- }, "k1", $scope8_id);
4832
+ }, "m1", $scope8_id);
4833
4833
  _html("<div class=side-chips>");
4834
4834
  _for_of(st?.repos || [], (repo) => {
4835
4835
  const $scope9_id = _scope_id();
4836
4836
  _for_of(repo.prs || [], (pr) => {
4837
4837
  const $scope10_id = _scope_id();
4838
4838
  _html(`<button class=${$class$2[(pr.isDraft ? 1 : 0) + (pr.reviewDecision === "CHANGES_REQUESTED" ? 2 : 0)]}${_attr("title", `${repo.worktree} — ${pr.title}${pr.reviewDecision === "APPROVED" ? " (approved)" : pr.reviewDecision === "CHANGES_REQUESTED" ? " (changes requested)" : ""}`)}>${_escape(repoLabel(repo))}${_el_resume($scope10_id, "b", $sg__input_workspaceId__OR__input_status)}#${_sep($sg__input_workspaceId__OR__input_status)}${_escape(pr.number)}${_el_resume($scope10_id, "c", $sg__input_workspaceId__OR__input_status)}${_sep($sg__input_workspaceId__OR__input_status)}${pr.reviewDecision === "APPROVED" ? " ✓" : pr.reviewDecision === "CHANGES_REQUESTED" ? " ✗" : ""}${_el_resume($scope10_id, "d", $sg__input_workspaceId__OR__input_status)}</button>${_el_resume($scope10_id, "a")}`);
4839
- _script($scope10_id, "k7");
4839
+ _script($scope10_id, "m7");
4840
4840
  _subscribe($si__input_workspaceId__OR__input_status && $if_content5__repoLabel__closures, writeScope($scope10_id, {
4841
4841
  l: pr?.number,
4842
4842
  _: _scope_with_id($scope9_id)
@@ -4851,7 +4851,7 @@ var side_nav_item_default = _template("k", (input) => {
4851
4851
  _for_of(st?.ports || [], (p) => {
4852
4852
  const $scope11_id = _scope_id();
4853
4853
  _html(`<span class="chip port-chip"${_attr("title", p.cmd)}><button class=port-open${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${p.port}`)}>:${_sep($sg__input_workspaceId__OR__input_status)}${_escape(p.port)}${_el_resume($scope11_id, "c", $sg__input_workspaceId__OR__input_status)}</button>${_el_resume($scope11_id, "b")}<button class=${armedPid === p.pid ? "\"port-kill armed\"" : "port-kill"}${armedPid === p.pid ? _attr("title", `Really kill ${p.cmd}?`) : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>×</button>${_el_resume($scope11_id, "d")}</span>${_el_resume($scope11_id, "a", $sg__input_workspaceId__OR__input_status)}`);
4854
- _script($scope11_id, "k8");
4854
+ _script($scope11_id, "m8");
4855
4855
  _subscribe($armedPid__closures, writeScope($scope11_id, {
4856
4856
  g: p?.cmd,
4857
4857
  h: p?.port,
@@ -4869,7 +4869,7 @@ var side_nav_item_default = _template("k", (input) => {
4869
4869
  }
4870
4870
  }, $scope3_id, "j", $sg__input_workspaceId__OR__input_status, $sg__input_workspaceId__OR__input_status, $sg__input_workspaceId__OR__input_status__OR__input_onReview__OR__input_onNewSession, 0, 1);
4871
4871
  _html(`</div></section>${_el_resume($scope3_id, "a", _serialize_guard($scope0_reason, 12))}`);
4872
- _script($scope3_id, "k9");
4872
+ _script($scope3_id, "m9");
4873
4873
  _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_name__closures, _subscribe($si__input_sessions && $input_sessions__closures, _subscribe($si__input_onNewSession && $input_onNewSession__closures, _subscribe($si__input_onReview && $input_onReview__closures, _subscribe($si__input_current && $input_current__closures, writeScope($scope3_id, {
4874
4874
  _: _scope_with_id($scope1_id),
4875
4875
  Ca5: $si__input_current && 1,
@@ -4927,7 +4927,7 @@ var side_nav_item_default = _template("k", (input) => {
4927
4927
  });
4928
4928
  //#endregion
4929
4929
  //#region src/tags/icons/icon-sidebar-collapse.marko
4930
- var icon_sidebar_collapse_default = _template("E", (input) => {
4930
+ var icon_sidebar_collapse_default = _template("H", (input) => {
4931
4931
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
4932
4932
  const $scope0_id = _scope_id();
4933
4933
  _set_serialize_reason({
@@ -4944,7 +4944,7 @@ var icon_sidebar_collapse_default = _template("E", (input) => {
4944
4944
  });
4945
4945
  //#endregion
4946
4946
  //#region src/tags/icons/icon-sidebar.marko
4947
- var icon_sidebar_default = _template("F", (input) => {
4947
+ var icon_sidebar_default = _template("I", (input) => {
4948
4948
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
4949
4949
  const $scope0_id = _scope_id();
4950
4950
  _set_serialize_reason({
@@ -4961,7 +4961,7 @@ var icon_sidebar_default = _template("F", (input) => {
4961
4961
  });
4962
4962
  //#endregion
4963
4963
  //#region src/tags/icons/icon-bell.marko
4964
- var icon_bell_default = _template("s", (input) => {
4964
+ var icon_bell_default = _template("u", (input) => {
4965
4965
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
4966
4966
  const $scope0_id = _scope_id();
4967
4967
  _set_serialize_reason({
@@ -4978,7 +4978,7 @@ var icon_bell_default = _template("s", (input) => {
4978
4978
  });
4979
4979
  //#endregion
4980
4980
  //#region src/tags/icons/icon-gauge.marko
4981
- var icon_gauge_default = _template("y", (input) => {
4981
+ var icon_gauge_default = _template("A", (input) => {
4982
4982
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
4983
4983
  const $scope0_id = _scope_id();
4984
4984
  _set_serialize_reason({
@@ -4995,7 +4995,7 @@ var icon_gauge_default = _template("y", (input) => {
4995
4995
  });
4996
4996
  //#endregion
4997
4997
  //#region src/tags/icons/icon-folder-plus.marko
4998
- var icon_folder_plus_default = _template("x", (input) => {
4998
+ var icon_folder_plus_default = _template("z", (input) => {
4999
4999
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
5000
5000
  const $scope0_id = _scope_id();
5001
5001
  _set_serialize_reason({
@@ -5022,7 +5022,7 @@ var $class$1 = [
5022
5022
  "\"side-nav open\"",
5023
5023
  "\"side-nav closed open\""
5024
5024
  ];
5025
- var side_nav_default = _template("l", (input) => {
5025
+ var side_nav_default = _template("n", (input) => {
5026
5026
  const $scope0_reason = _scope_reason(), $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus = _serialize_guard($scope0_reason, 1), $sg__input_workspace__OR__input_allWorkspaces = _serialize_guard($scope0_reason, 0), $sg__input_workspace__OR__input_allWorkspaces__OR__input_onNewSession = _serialize_guard($scope0_reason, 2), $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus__OR__input_sessions = _serialize_guard($scope0_reason, 3), $sg__input_agents = _serialize_guard($scope0_reason, 14), $si__input_workspace = _serialize_if($scope0_reason, 4), $si__input_workspace__OR__input_allWorkspaces = _serialize_if($scope0_reason, 0), $si__input_allStatus = _serialize_if($scope0_reason, 12), $si__input_onSelectWorkspace = _serialize_if($scope0_reason, 13), $si__input_agents = _serialize_if($scope0_reason, 14), $si__input_onNewSession = _serialize_if($scope0_reason, 15), $si__input_onReviewOpened = _serialize_if($scope0_reason, 16), $si__input_sessions = _serialize_if($scope0_reason, 17), $si__input_onRenameSession = _serialize_if($scope0_reason, 18), $si__input_onCloseSession = _serialize_if($scope0_reason, 19);
5027
5027
  const $scope0_id = _scope_id();
5028
5028
  const $ws_id__closures = /* @__PURE__ */ new Set();
@@ -5056,7 +5056,7 @@ var side_nav_default = _template("l", (input) => {
5056
5056
  notifyOn = false;
5057
5057
  input.onError?.(`Notifications failed: ${String(err.message || err)}`);
5058
5058
  }
5059
- }, "l0", $scope0_id);
5059
+ }, "n0", $scope0_id);
5060
5060
  const itemIds = input.allWorkspaces?.length ? input.allWorkspaces.filter((w) => w.status === "active").map((w) => w.id) : [ws.id];
5061
5061
  const workspaces = input.allWorkspaces || [ws];
5062
5062
  const allStatus = input.allStatus || {};
@@ -5065,7 +5065,7 @@ var side_nav_default = _template("l", (input) => {
5065
5065
  if (drawerOpen) {
5066
5066
  const $scope5_id = _scope_id();
5067
5067
  _html(`<div class=drawer-backdrop></div>${_el_resume($scope5_id, "a")}`);
5068
- _script($scope5_id, "l16");
5068
+ _script($scope5_id, "n16");
5069
5069
  writeScope($scope5_id, {});
5070
5070
  return 0;
5071
5071
  }
@@ -5103,16 +5103,16 @@ var side_nav_default = _template("l", (input) => {
5103
5103
  drawerOpen = false;
5104
5104
  input.onSelectWorkspace?.(wsId);
5105
5105
  }
5106
- }, "l1", $scope1_id),
5106
+ }, "n1", $scope1_id),
5107
5107
  onManage: _resume(function() {
5108
5108
  drawerOpen = false;
5109
5109
  input.onManage?.(wsId);
5110
- }, "l2", $scope1_id),
5110
+ }, "n2", $scope1_id),
5111
5111
  agents: input.agents,
5112
5112
  onNewSession: _resume(function(agent) {
5113
5113
  drawerOpen = false;
5114
5114
  input.onNewSession(wsId, agent);
5115
- }, "l3", $scope1_id),
5115
+ }, "n3", $scope1_id),
5116
5116
  onReview: _resume(function() {
5117
5117
  drawerOpen = false;
5118
5118
  if (wsId === ws.id) {
@@ -5122,7 +5122,7 @@ var side_nav_default = _template("l", (input) => {
5122
5122
  navIntent$1.requestDiff(wsId);
5123
5123
  input.onSelectWorkspace?.(wsId);
5124
5124
  }
5125
- }, "l4", $scope1_id),
5125
+ }, "n4", $scope1_id),
5126
5126
  onReviewPr: _resume(function(worktree, number) {
5127
5127
  drawerOpen = false;
5128
5128
  const pr = `${worktree}/${number}`;
@@ -5133,7 +5133,7 @@ var side_nav_default = _template("l", (input) => {
5133
5133
  navIntent$1.requestDiff(wsId, pr);
5134
5134
  input.onSelectWorkspace?.(wsId);
5135
5135
  }
5136
- }, "l5", $scope1_id),
5136
+ }, "n5", $scope1_id),
5137
5137
  sessions: wsId === ws.id && input.sessions ? input.sessions : allStatus[wsId]?.sessions || [],
5138
5138
  currentTab: wsId === ws.id && view === "term" ? tab : null,
5139
5139
  onOpenTab: _resume(function(sessionId) {
@@ -5142,7 +5142,7 @@ var side_nav_default = _template("l", (input) => {
5142
5142
  tab = sessionId;
5143
5143
  view = "term";
5144
5144
  } else input.onOpenSession?.(wsId, sessionId);
5145
- }, "l6", $scope1_id),
5145
+ }, "n6", $scope1_id),
5146
5146
  onRenameSession: input.onRenameSession,
5147
5147
  onCloseSession: input.onCloseSession
5148
5148
  });
@@ -5157,13 +5157,13 @@ var side_nav_default = _template("l", (input) => {
5157
5157
  const $scope2_id = _scope_id();
5158
5158
  let railHover = null;
5159
5159
  const railHoverBox = { timer: 0 };
5160
- const railKeep = _resume(() => clearTimeout(railHoverBox.timer), "l7", $scope2_id);
5160
+ const railKeep = _resume(() => clearTimeout(railHoverBox.timer), "n7", $scope2_id);
5161
5161
  const railHide = _resume(() => {
5162
5162
  clearTimeout(railHoverBox.timer);
5163
5163
  railHoverBox.timer = setTimeout(() => {
5164
5164
  railHover = null;
5165
5165
  }, 150);
5166
- }, "l8", $scope2_id);
5166
+ }, "n8", $scope2_id);
5167
5167
  _html("<div class=side-rail>");
5168
5168
  _for_of(itemIds, (wsId, i) => {
5169
5169
  const $scope3_id = _scope_id();
@@ -5192,10 +5192,10 @@ var side_nav_default = _template("l", (input) => {
5192
5192
  current: wsId === ws.id,
5193
5193
  onSelect: _resume(function() {
5194
5194
  if (wsId !== ws.id) input.onSelectWorkspace?.(wsId);
5195
- }, "l9", $scope3_id)
5195
+ }, "n9", $scope3_id)
5196
5196
  });
5197
5197
  _html(`</span>${_el_resume($scope3_id, "a")}`);
5198
- _script($scope3_id, "l17");
5198
+ _script($scope3_id, "n17");
5199
5199
  _subscribe($si__input_allStatus && $allStatus__closures, _subscribe($si__input_workspace__OR__input_allWorkspaces && $workspaces__closures, _subscribe($si__input_workspace && $ws_id__closures, writeScope($scope3_id, {
5200
5200
  d: wsId,
5201
5201
  _: _scope_with_id($scope2_id),
@@ -5235,16 +5235,16 @@ var side_nav_default = _template("l", (input) => {
5235
5235
  onSelect: _resume(function() {
5236
5236
  railHover = null;
5237
5237
  if (hoverId !== ws.id) input.onSelectWorkspace?.(hoverId);
5238
- }, "l10", $scope4_id),
5238
+ }, "n10", $scope4_id),
5239
5239
  onManage: _resume(function() {
5240
5240
  railHover = null;
5241
5241
  input.onManage?.(hoverId);
5242
- }, "l11", $scope4_id),
5242
+ }, "n11", $scope4_id),
5243
5243
  agents: input.agents,
5244
5244
  onNewSession: _resume(function(agent) {
5245
5245
  railHover = null;
5246
5246
  input.onNewSession(hoverId, agent);
5247
- }, "l12", $scope4_id),
5247
+ }, "n12", $scope4_id),
5248
5248
  onReview: _resume(function() {
5249
5249
  railHover = null;
5250
5250
  if (hoverId === ws.id) {
@@ -5254,7 +5254,7 @@ var side_nav_default = _template("l", (input) => {
5254
5254
  navIntent$1.requestDiff(hoverId);
5255
5255
  input.onSelectWorkspace?.(hoverId);
5256
5256
  }
5257
- }, "l13", $scope4_id),
5257
+ }, "n13", $scope4_id),
5258
5258
  onReviewPr: _resume(function(worktree, number) {
5259
5259
  railHover = null;
5260
5260
  const pr = `${worktree}/${number}`;
@@ -5265,7 +5265,7 @@ var side_nav_default = _template("l", (input) => {
5265
5265
  navIntent$1.requestDiff(hoverId, pr);
5266
5266
  input.onSelectWorkspace?.(hoverId);
5267
5267
  }
5268
- }, "l14", $scope4_id),
5268
+ }, "n14", $scope4_id),
5269
5269
  sessions: hoverId === ws.id && input.sessions ? input.sessions : allStatus[hoverId]?.sessions || [],
5270
5270
  currentTab: hoverId === ws.id && view === "term" ? tab : null,
5271
5271
  onOpenTab: _resume(function(sessionId) {
@@ -5274,12 +5274,12 @@ var side_nav_default = _template("l", (input) => {
5274
5274
  tab = sessionId;
5275
5275
  view = "term";
5276
5276
  } else input.onOpenSession?.(hoverId, sessionId);
5277
- }, "l15", $scope4_id),
5277
+ }, "n15", $scope4_id),
5278
5278
  onRenameSession: input.onRenameSession,
5279
5279
  onCloseSession: input.onCloseSession
5280
5280
  });
5281
5281
  _html(`</div>${_el_resume($scope4_id, "a")}`);
5282
- _script($scope4_id, "l18");
5282
+ _script($scope4_id, "n18");
5283
5283
  _subscribe($si__input_allStatus && $allStatus__closures, _subscribe($si__input_workspace__OR__input_allWorkspaces && $workspaces__closures, _subscribe($view__closures, _subscribe($tab__closures, _subscribe($si__input_workspace && $ws_id__closures, _subscribe($si__input_onCloseSession && $input_onCloseSession__closures, _subscribe($si__input_onRenameSession && $input_onRenameSession__closures, _subscribe($si__input_sessions && $input_sessions__closures, _subscribe($si__input_onReviewOpened && $input_onReviewOpened__closures, _subscribe($si__input_onNewSession && $input_onNewSession__closures, _subscribe($si__input_agents && $input_agents__closures, _subscribe($si__input_onSelectWorkspace && $input_onSelectWorkspace__closures, writeScope($scope4_id, {
5284
5284
  c: hoverId,
5285
5285
  b: _existing_scope($childScope3),
@@ -5322,7 +5322,7 @@ var side_nav_default = _template("l", (input) => {
5322
5322
  _html(`<button class=${notifyOn ? "\"icon-btn notify-btn on\"" : "\"icon-btn notify-btn\""} title=${notifyOn ? "\"Disable agent-waiting notifications\"" : "\"Notify when an agent is waiting\""}>`);
5323
5323
  icon_bell_default({ size: 15 });
5324
5324
  _html(`</button>${_el_resume($scope6_id, "a")}`);
5325
- _script($scope6_id, "l19");
5325
+ _script($scope6_id, "n19");
5326
5326
  writeScope($scope6_id, { _: _scope_with_id($scope0_id) });
5327
5327
  return 0;
5328
5328
  }
@@ -5332,8 +5332,8 @@ var side_nav_default = _template("l", (input) => {
5332
5332
  _html(`</button>${_el_resume($scope0_id, "g")}<button class=icon-btn title="New workspace">`);
5333
5333
  icon_folder_plus_default({ size: 16 });
5334
5334
  _html(`</button>${_el_resume($scope0_id, "i")}</div></aside>${_el_resume($scope0_id, "b")}`);
5335
- _script($scope0_id, "l20");
5336
- _script($scope0_id, "l21");
5335
+ _script($scope0_id, "n20");
5336
+ _script($scope0_id, "n21");
5337
5337
  writeScope($scope0_id, {
5338
5338
  n: _serialize_if($scope0_reason, 6) && input.tab,
5339
5339
  o: _serialize_if($scope0_reason, 5) && input.tabChange,
@@ -5513,7 +5513,7 @@ function treeRows(files) {
5513
5513
  }
5514
5514
  //#endregion
5515
5515
  //#region src/tags/icons/icon-back.marko
5516
- var icon_back_default = _template("q", (input) => {
5516
+ var icon_back_default = _template("s", (input) => {
5517
5517
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
5518
5518
  const $scope0_id = _scope_id();
5519
5519
  _set_serialize_reason({
@@ -5528,6 +5528,137 @@ var icon_back_default = _template("q", (input) => {
5528
5528
  });
5529
5529
  _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
5530
5530
  });
5531
+ //#endregion
5532
+ //#region src/tags/icons/icon-search.marko
5533
+ var icon_search_default = _template("G", (input) => {
5534
+ const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
5535
+ const $scope0_id = _scope_id();
5536
+ _set_serialize_reason({
5537
+ 0: $sg__input_size__OR__input_class,
5538
+ 1: $sg__input_size__OR__input_class
5539
+ });
5540
+ const $childScope = _peek_scope_id();
5541
+ icon_base_default({
5542
+ 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",
5543
+ size: input.size,
5544
+ class: input.class
5545
+ });
5546
+ _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
5547
+ });
5548
+ //#endregion
5549
+ //#region src/tags/file-filter.marko
5550
+ var file_filter_default = _template("f", (input) => {
5551
+ _scope_reason();
5552
+ const $scope0_id = _scope_id();
5553
+ let draft = input.value || "";
5554
+ const box = { timer: 0 };
5555
+ const flush = _resume(() => {
5556
+ if (box.timer) {
5557
+ clearTimeout(box.timer);
5558
+ box.timer = 0;
5559
+ }
5560
+ input.onChange(draft);
5561
+ }, "f1", $scope0_id);
5562
+ const type = _resume((v) => {
5563
+ draft = v;
5564
+ if (box.timer) clearTimeout(box.timer);
5565
+ if (!v) {
5566
+ box.timer = 0;
5567
+ input.onChange("");
5568
+ return;
5569
+ }
5570
+ box.timer = setTimeout(flush, 150);
5571
+ }, "f2", $scope0_id);
5572
+ _html(`<div class=wrap><input${_attr_input_value($scope0_id, "a", draft, _resume(function(v) {
5573
+ type(v);
5574
+ }, "f0", $scope0_id))} class=file-filter type=search placeholder="Filter files… (globs, !excludes)" aria-label="Filter files">${_el_resume($scope0_id, "a")}</div>`);
5575
+ _script($scope0_id, "f3");
5576
+ _script($scope0_id, "f4");
5577
+ writeScope($scope0_id, {
5578
+ e: input.onChange,
5579
+ f: draft,
5580
+ h: box.timer,
5581
+ j: flush,
5582
+ l: type
5583
+ });
5584
+ _resume_branch($scope0_id);
5585
+ });
5586
+ //#endregion
5587
+ //#region src/tags/diff-find.marko
5588
+ var searchDiffFiles;
5589
+ var setSearchPaint;
5590
+ var diff_find_default = _template("d", (input) => {
5591
+ _scope_reason();
5592
+ const $scope0_id = _scope_id();
5593
+ let query = "";
5594
+ let hi = 0;
5595
+ const hits = searchDiffFiles(input.files, query);
5596
+ const at = hits.length ? Math.min(hi, hits.length - 1) : -1;
5597
+ const box = {
5598
+ timer: 0,
5599
+ tick: 0
5600
+ };
5601
+ const emit = _resume((q, i) => {
5602
+ const list = searchDiffFiles(input.files, q);
5603
+ const keys = [...new Set(list.map((h) => h.key))];
5604
+ if (!list.length) {
5605
+ hi = 0;
5606
+ setSearchPaint(q, null);
5607
+ input.onState({
5608
+ query: q,
5609
+ hit: null,
5610
+ keys
5611
+ });
5612
+ return;
5613
+ }
5614
+ hi = (i % list.length + list.length) % list.length;
5615
+ const hit = list[hi];
5616
+ setSearchPaint(q, hit);
5617
+ input.onState({
5618
+ query: q,
5619
+ hit,
5620
+ keys
5621
+ });
5622
+ }, "d1", $scope0_id);
5623
+ const type = _resume((v) => {
5624
+ query = v;
5625
+ hi = 0;
5626
+ setSearchPaint(v, searchDiffFiles(input.files, v)[0] ?? null);
5627
+ if (box.timer) clearTimeout(box.timer);
5628
+ box.timer = setTimeout(() => {
5629
+ box.timer = 0;
5630
+ emit(v, 0);
5631
+ }, 80);
5632
+ }, "d2", $scope0_id);
5633
+ const next = _resume((dir) => {
5634
+ if (box.timer) {
5635
+ clearTimeout(box.timer);
5636
+ box.timer = 0;
5637
+ }
5638
+ emit(query, (at < 0 ? 0 : at) + dir);
5639
+ }, "d3", $scope0_id);
5640
+ _html(`<div class=find-bar><input${_attr_input_value($scope0_id, "a", query, _resume(function(v) {
5641
+ type(v);
5642
+ }, "d0", $scope0_id))} class=find-input type=search placeholder="Find in diffs" aria-label="Find in diffs">${_el_resume($scope0_id, "a")}<span class=count>${query.trim() ? hits.length ? `${_escape(`${at + 1}`)}/${_escape(`${hits.length}`)}` : "0/0" : ""}${_el_resume($scope0_id, "b")}</span><button class=icon-btn title="Previous match"${_attr("disabled", !hits.length)}>↑</button>${_el_resume($scope0_id, "c")}<button class=icon-btn title="Next match"${_attr("disabled", !hits.length)}>↓</button>${_el_resume($scope0_id, "d")}<button class=icon-btn title="Close find">×</button>${_el_resume($scope0_id, "e")}</div>`);
5643
+ _script($scope0_id, "d4");
5644
+ _script($scope0_id, "d5");
5645
+ writeScope($scope0_id, {
5646
+ h: input.files,
5647
+ i: input.onState,
5648
+ j: input.onClose,
5649
+ k: input.tick,
5650
+ l: query,
5651
+ n: hi,
5652
+ q: hits?.length,
5653
+ s: at,
5654
+ v: box.timer,
5655
+ w: box.tick,
5656
+ x: emit,
5657
+ a0: type,
5658
+ a2: next
5659
+ });
5660
+ _resume_branch($scope0_id);
5661
+ });
5531
5662
  _template("c", (input) => {
5532
5663
  _scope_reason();
5533
5664
  const $scope0_id = _scope_id();
@@ -5552,13 +5683,13 @@ var api$3;
5552
5683
  var copyText;
5553
5684
  var getTermDims;
5554
5685
  var makeFileFilter;
5555
- var diff_view_default = _template("d", (input) => {
5686
+ var diff_view_default = _template("e", (input) => {
5556
5687
  const $scope0_reason = _scope_reason(), $sg__input_onExit = _serialize_guard($scope0_reason, 1), $sg__input_sessions = _serialize_guard($scope0_reason, 0), $si__input_sessions = _serialize_if($scope0_reason, 0), $si__input_sessions_0_title = _serialize_if($scope0_reason, 2), $si__input_sessions_0_agent = _serialize_if($scope0_reason, 3);
5557
5688
  const $scope0_id = _scope_id();
5558
5689
  const $collapsedDirs__closures = /* @__PURE__ */ new Set();
5559
5690
  const $viewed__closures = /* @__PURE__ */ new Set();
5560
5691
  const $commentsByFile__closures = /* @__PURE__ */ new Set();
5561
- const $filesByRepo__closures = /* @__PURE__ */ new Set();
5692
+ const $shownByRepo__closures = /* @__PURE__ */ new Set();
5562
5693
  const $input_sessions_0_title__closures = /* @__PURE__ */ new Set();
5563
5694
  const $input_sessions_0_agent__closures = /* @__PURE__ */ new Set();
5564
5695
  const $sending__closures = /* @__PURE__ */ new Set();
@@ -5568,7 +5699,9 @@ var diff_view_default = _template("d", (input) => {
5568
5699
  const $draft__closures = /* @__PURE__ */ new Set();
5569
5700
  const $saveComment2__closures = /* @__PURE__ */ new Set();
5570
5701
  const $removeComment2__closures = /* @__PURE__ */ new Set();
5702
+ const $shownKeySet__closures = /* @__PURE__ */ new Set();
5571
5703
  const $toggleViewed2__closures = /* @__PURE__ */ new Set();
5704
+ const $findState_hit_repo__closures = /* @__PURE__ */ new Set();
5572
5705
  const $repoList_length__closures = /* @__PURE__ */ new Set();
5573
5706
  let repos = null;
5574
5707
  let comments = [];
@@ -5582,6 +5715,13 @@ var diff_view_default = _template("d", (input) => {
5582
5715
  let fileFilter = "";
5583
5716
  let uncommitted = diffUncommitted();
5584
5717
  let treeOpen = diffTreeOpen();
5718
+ let findOpen = false;
5719
+ let findTick = 0;
5720
+ let findState = {
5721
+ query: "",
5722
+ hit: null,
5723
+ keys: []
5724
+ };
5585
5725
  let collapsedDirs = /* @__PURE__ */ new Set();
5586
5726
  let collapsedRepos = /* @__PURE__ */ new Set();
5587
5727
  let dismissedDrift = /* @__PURE__ */ new Set();
@@ -5589,7 +5729,7 @@ var diff_view_default = _template("d", (input) => {
5589
5729
  const next = new Set(collapsedRepos);
5590
5730
  if (!next.delete(worktree)) next.add(worktree);
5591
5731
  collapsedRepos = next;
5592
- }, "d3", $scope0_id);
5732
+ }, "e2", $scope0_id);
5593
5733
  const nearBox = {
5594
5734
  io: null,
5595
5735
  cbs: null
@@ -5604,7 +5744,7 @@ var diff_view_default = _template("d", (input) => {
5604
5744
  }, { rootMargin: "600px 0px" });
5605
5745
  nearBox.cbs.set(el, cb);
5606
5746
  nearBox.io.observe(el);
5607
- }, "d4", $scope0_id);
5747
+ }, "e3", $scope0_id);
5608
5748
  const load = _resume(async (dirty = uncommitted, refresh = false) => {
5609
5749
  loading = true;
5610
5750
  error = null;
@@ -5622,14 +5762,14 @@ var diff_view_default = _template("d", (input) => {
5622
5762
  error = String(err.message || err);
5623
5763
  }
5624
5764
  loading = false;
5625
- }, "d5", $scope0_id);
5765
+ }, "e4", $scope0_id);
5626
5766
  const loadReview = _resume(async () => {
5627
5767
  try {
5628
5768
  const reviewData = await api$3(`/api/workspaces/${input.workspaceId}/review`);
5629
5769
  comments = reviewData.comments || [];
5630
5770
  viewed = new Set(reviewData.viewed || []);
5631
5771
  } catch {}
5632
- }, "d6", $scope0_id);
5772
+ }, "e5", $scope0_id);
5633
5773
  const repoList = repos || [];
5634
5774
  const allFiles = repoList.flatMap((r) => r.files.map((f) => ({
5635
5775
  ...f,
@@ -5637,8 +5777,12 @@ var diff_view_default = _template("d", (input) => {
5637
5777
  key: `${r.worktree}/${f.path}`
5638
5778
  })));
5639
5779
  const fileMatch = makeFileFilter(fileFilter);
5640
- const shownFiles = allFiles.filter((f) => fileMatch(f.key));
5641
- const filesByRepo = new Map(repoList.map((r) => [r.id, shownFiles.filter((f) => f.repo === r.id)]));
5780
+ const fileFiltered = allFiles.filter((f) => fileMatch(f.key));
5781
+ const findKeys = findState.query.trim() ? new Set(findState.keys) : null;
5782
+ const shownFiles = findKeys ? fileFiltered.filter((f) => findKeys.has(f.key) || f.key === findState.hit?.key) : fileFiltered;
5783
+ const shownKeySet = new Set(shownFiles.map((f) => f.key));
5784
+ const filesByRepo = new Map(repoList.map((r) => [r.id, allFiles.filter((f) => f.repo === r.id)]));
5785
+ const shownByRepo = new Map(repoList.map((r) => [r.id, shownFiles.filter((f) => f.repo === r.id)]));
5642
5786
  const commentsByFile = (() => {
5643
5787
  const map = /* @__PURE__ */ new Map();
5644
5788
  for (const c of comments) {
@@ -5648,15 +5792,15 @@ var diff_view_default = _template("d", (input) => {
5648
5792
  return map;
5649
5793
  })();
5650
5794
  const sendPick = (input.sessions || []).some((s) => s.id === sendTarget) ? sendTarget : input.sessions?.[0]?.id ?? null;
5651
- const localDiffers = _resume((repo) => !!repo.pr && !!repo.localHead && (repo.localHead !== repo.head || repo.branch !== repo.pr.headRefName), "d7");
5795
+ const localDiffers = _resume((repo) => !!repo.pr && !!repo.localHead && (repo.localHead !== repo.head || repo.branch !== repo.pr.headRefName), "e6");
5652
5796
  const driftRepos = repoList.filter((r) => r.githubDrift && !dismissedDrift.has(r.id));
5653
5797
  const dismissDrift = _resume(() => {
5654
5798
  dismissedDrift = /* @__PURE__ */ new Set([...dismissedDrift, ...driftRepos.map((r) => r.id)]);
5655
- }, "d8", $scope0_id);
5799
+ }, "e7", $scope0_id);
5656
5800
  const reload = _resume(() => {
5657
5801
  dismissedDrift = /* @__PURE__ */ new Set();
5658
5802
  return load(uncommitted, true);
5659
- }, "d9", $scope0_id);
5803
+ }, "e8", $scope0_id);
5660
5804
  const toggleViewed = _resume((key) => {
5661
5805
  const next = new Set(viewed);
5662
5806
  const isViewed = !next.has(key);
@@ -5674,7 +5818,7 @@ var diff_view_default = _template("d", (input) => {
5674
5818
  }).catch(() => {
5675
5819
  error = "Saving viewed state failed — it may reset on reload.";
5676
5820
  });
5677
- }, "d10", $scope0_id);
5821
+ }, "e9", $scope0_id);
5678
5822
  const saveComment = _resume(async (file, text) => {
5679
5823
  const range = draft;
5680
5824
  draft = null;
@@ -5696,11 +5840,11 @@ var diff_view_default = _template("d", (input) => {
5696
5840
  } catch (err) {
5697
5841
  error = String(err.message || err);
5698
5842
  }
5699
- }, "d11", $scope0_id);
5843
+ }, "e10", $scope0_id);
5700
5844
  const removeComment = _resume(async (id) => {
5701
5845
  comments = comments.filter((c) => c.id !== id);
5702
5846
  await fetch(`/api/review-comments/${id}`, { method: "DELETE" });
5703
- }, "d12", $scope0_id);
5847
+ }, "e11", $scope0_id);
5704
5848
  const clearComments = _resume(async () => {
5705
5849
  comments = [];
5706
5850
  draft = null;
@@ -5709,7 +5853,7 @@ var diff_view_default = _template("d", (input) => {
5709
5853
  headers: { "content-type": "application/json" },
5710
5854
  body: JSON.stringify({ action: "clear" })
5711
5855
  });
5712
- }, "d13", $scope0_id);
5856
+ }, "e12", $scope0_id);
5713
5857
  const copyMarkdown = _resume(async () => {
5714
5858
  if (!await copyText(commentMarkdown(comments, repos))) {
5715
5859
  error = "Copy failed — clipboard needs HTTPS on this browser.";
@@ -5720,7 +5864,7 @@ var diff_view_default = _template("d", (input) => {
5720
5864
  copied = false;
5721
5865
  }, 1500);
5722
5866
  await clearComments();
5723
- }, "d14", $scope0_id);
5867
+ }, "e13", $scope0_id);
5724
5868
  const sendTo = _resume(async (sessionId) => {
5725
5869
  if (!sessionId) return;
5726
5870
  sending = true;
@@ -5740,25 +5884,33 @@ var diff_view_default = _template("d", (input) => {
5740
5884
  error = String(err.message || err);
5741
5885
  sending = false;
5742
5886
  }
5743
- }, "d15", $scope0_id);
5887
+ }, "e14", $scope0_id);
5744
5888
  const jumpTo = _resume((key) => {
5745
5889
  const el = ((scrollEl) => scrollEl())(_el_read_error).querySelector(`details[data-key="${CSS.escape(key)}"]`);
5746
5890
  if (el) {
5747
5891
  el.open = true;
5748
5892
  el.scrollIntoView({ block: "start" });
5749
5893
  }
5750
- }, "d16", $scope0_id);
5894
+ }, "e15", $scope0_id);
5895
+ const openFind = _resume(() => {
5896
+ findOpen = true;
5897
+ findTick++;
5898
+ }, "e16", $scope0_id);
5899
+ const onFindState = _resume((next) => {
5900
+ findState = next;
5901
+ if (next.hit) setTimeout(() => jumpTo(next.hit.key), 0);
5902
+ }, "e17", $scope0_id);
5751
5903
  _html(`<div class=diff-view><aside class=${!treeOpen ? "\"tree closed\"" : "tree"}>`);
5752
- _for_of(repoList.filter((r) => filesByRepo.get(r.id)?.length), (repo) => {
5904
+ _for_of(repoList.filter((r) => shownByRepo.get(r.id)?.length), (repo) => {
5753
5905
  const $scope5_id = _scope_id();
5754
5906
  _html(`<div class=tree-repo><button class=${collapsedRepos.has(repo.id) ? "\"tree-repo-name mono closed\"" : "\"tree-repo-name mono\""}><span class=tree-chev>${collapsedRepos.has(repo.id) ? "▸" : "▾"}${_el_resume($scope5_id, "b")}</span><!>${repo.pr ? `${_escape(`${repo.worktree}`)} #${_escape(`${repo.pr.number}`)}` : _escape(repo.worktree)}${_el_resume($scope5_id, "c")}</button>${_el_resume($scope5_id, "a")}`);
5755
5907
  _if(() => {
5756
5908
  if (!collapsedRepos.has(repo.id)) {
5757
5909
  const $scope6_id = _scope_id();
5758
5910
  const $if_content4__dirKey__closures = /* @__PURE__ */ new Set();
5759
- const repoRows = treeRows(filesByRepo.get(repo.id) || []);
5760
- const dirKey = _resume((path) => `${repo.id}/${path}`, "d17", $scope6_id);
5761
- const rowDir = _resume((row) => row.kind === "dir" ? row.path : row.file.path.includes("/") ? row.file.path.slice(0, row.file.path.lastIndexOf("/")) : "", "d18");
5911
+ const repoRows = treeRows(shownByRepo.get(repo.id) || []);
5912
+ const dirKey = _resume((path) => `${repo.id}/${path}`, "e18", $scope6_id);
5913
+ const rowDir = _resume((row) => row.kind === "dir" ? row.path : row.file.path.includes("/") ? row.file.path.slice(0, row.file.path.lastIndexOf("/")) : "", "e19");
5762
5914
  const hiddenByCollapse = _resume((row) => {
5763
5915
  const dir = rowDir(row);
5764
5916
  for (const collapsed of collapsedDirs) {
@@ -5768,29 +5920,29 @@ var diff_view_default = _template("d", (input) => {
5768
5920
  if (dir === path || dir.startsWith(`${path}/`)) return true;
5769
5921
  }
5770
5922
  return false;
5771
- }, "d19", $scope6_id);
5923
+ }, "e20", $scope6_id);
5772
5924
  _for_of(repoRows, (row) => {
5773
5925
  const $scope7_id = _scope_id();
5774
5926
  _if(() => {
5775
5927
  if (!hiddenByCollapse(row) && row.kind === "dir") {
5776
- const $scope23_id = _scope_id();
5777
- _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($scope23_id, "b")}</span>${_escape(row.label)}${_el_resume($scope23_id, "c")}/</button>${_el_resume($scope23_id, "a")}`);
5778
- _script($scope23_id, "d25");
5779
- _subscribe($if_content4__dirKey__closures, _subscribe($collapsedDirs__closures, writeScope($scope23_id, { Ccg: 1 })));
5928
+ const $scope24_id = _scope_id();
5929
+ _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")}`);
5930
+ _script($scope24_id, "e29");
5931
+ _subscribe($if_content4__dirKey__closures, _subscribe($collapsedDirs__closures, writeScope($scope24_id, { Cd1: 1 })));
5780
5932
  return 0;
5781
5933
  } else if (!hiddenByCollapse(row) && row.kind !== "dir") {
5782
5934
  const $scope8_id = _scope_id();
5783
5935
  _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>`);
5784
5936
  _if(() => {
5785
5937
  if (commentsByFile.has(row.file.key)) {
5786
- const $scope28_id = _scope_id();
5938
+ const $scope29_id = _scope_id();
5787
5939
  _html("<span class=tree-note>💬</span>");
5788
- writeScope($scope28_id, {});
5940
+ writeScope($scope29_id, {});
5789
5941
  return 0;
5790
5942
  }
5791
5943
  }, $scope8_id, "e", 1, 1, 1, 0, 1);
5792
5944
  _html(`</button>${_el_resume($scope8_id, "a")}`);
5793
- _script($scope8_id, "d26");
5945
+ _script($scope8_id, "e30");
5794
5946
  _subscribe($commentsByFile__closures, _subscribe($viewed__closures, writeScope($scope8_id, {})));
5795
5947
  return 1;
5796
5948
  }
@@ -5806,7 +5958,7 @@ var diff_view_default = _template("d", (input) => {
5806
5958
  l: row?.name
5807
5959
  });
5808
5960
  }, (r) => r.kind === "dir" ? `d:${r.path}` : r.file.key, $scope6_id, "a");
5809
- _subscribe($filesByRepo__closures, _subscribe($collapsedDirs__closures, writeScope($scope6_id, {
5961
+ _subscribe($shownByRepo__closures, _subscribe($collapsedDirs__closures, writeScope($scope6_id, {
5810
5962
  c: dirKey,
5811
5963
  d: rowDir,
5812
5964
  f: hiddenByCollapse,
@@ -5816,7 +5968,7 @@ var diff_view_default = _template("d", (input) => {
5816
5968
  }
5817
5969
  }, $scope5_id, "d");
5818
5970
  _html("</div>");
5819
- _script($scope5_id, "d27");
5971
+ _script($scope5_id, "e31");
5820
5972
  writeScope($scope5_id, { g: repo?.id });
5821
5973
  }, "id", $scope0_id, "a", 1, 1, 1, "</aside>", 1);
5822
5974
  _html("<div class=diff-col><div class=diff-head>");
@@ -5826,7 +5978,7 @@ var diff_view_default = _template("d", (input) => {
5826
5978
  _html("<button class=icon-btn title=\"Back to terminal\">");
5827
5979
  icon_back_default({ size: 14 });
5828
5980
  _html(`</button>${_el_resume($scope1_id, "a")}`);
5829
- _script($scope1_id, "d28");
5981
+ _script($scope1_id, "e32");
5830
5982
  writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
5831
5983
  return 0;
5832
5984
  }
@@ -5840,7 +5992,7 @@ var diff_view_default = _template("d", (input) => {
5840
5992
  if ((input.sessions || []).length === 1) {
5841
5993
  const $scope3_id = _scope_id();
5842
5994
  _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")}`);
5843
- _script($scope3_id, "d29");
5995
+ _script($scope3_id, "e33");
5844
5996
  _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) }))));
5845
5997
  return 0;
5846
5998
  } else if ((input.sessions || []).length) {
@@ -5848,33 +6000,33 @@ var diff_view_default = _template("d", (input) => {
5848
6000
  _html(`<span class="split-btn primary"><button${_attr("disabled", sending)}>${sending ? "Sending…" : "Send to"}${_el_resume($scope4_id, "b")}</button>${_el_resume($scope4_id, "a")}`);
5849
6001
  _attr_select_value($scope4_id, "c", sendTarget, _resume((_new_sendTarget) => {
5850
6002
  sendTarget = _new_sendTarget;
5851
- }, "d0", $scope4_id), () => {
6003
+ }, "e0", $scope4_id), () => {
5852
6004
  _html(`<select aria-label="Send comments to session"${_attr("disabled", sending)}>`);
5853
6005
  _for_of(input.sessions, (s) => {
5854
- const $scope29_id = _scope_id();
5855
- _html(`<option${_attr_option_value(s.id)}>${_escape(s.title || s.agent)}${_el_resume($scope29_id, "b", $sg__input_sessions)}</option>${_el_resume($scope29_id, "a", $sg__input_sessions)}`);
5856
- $si__input_sessions && writeScope($scope29_id, {});
6006
+ const $scope30_id = _scope_id();
6007
+ _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)}`);
6008
+ $si__input_sessions && writeScope($scope30_id, {});
5857
6009
  }, "id", $scope4_id, "c", $sg__input_sessions, 1, $sg__input_sessions, "</select>", 1);
5858
6010
  });
5859
6011
  _html("</span>");
5860
- _script($scope4_id, "d30");
6012
+ _script($scope4_id, "e34");
5861
6013
  _subscribe($sendTarget__closures, _subscribe($sending__closures, _subscribe($si__input_sessions && $input_sessions__closures, writeScope($scope4_id, {
5862
6014
  _: _scope_with_id($scope2_id),
5863
- Ccc: 1
6015
+ Ccu: 1
5864
6016
  }))));
5865
6017
  return 1;
5866
6018
  }
5867
6019
  }, $scope2_id, "c", $sg__input_sessions, $sg__input_sessions, $sg__input_sessions, 0, 1);
5868
- _script($scope2_id, "d31");
6020
+ _script($scope2_id, "e35");
5869
6021
  writeScope($scope2_id, {});
5870
6022
  return 0;
5871
6023
  }
5872
6024
  }, $scope0_id, "g", 1, 1, 1, "</span>");
5873
6025
  _if(() => {
5874
6026
  if (loading) {
5875
- const $scope30_id = _scope_id();
6027
+ const $scope31_id = _scope_id();
5876
6028
  _html("<span class=\"refresh-chip dim\"><span class=spin></span>Refreshing…</span>");
5877
- writeScope($scope30_id, {});
6029
+ writeScope($scope31_id, {});
5878
6030
  return 0;
5879
6031
  }
5880
6032
  }, $scope0_id, "h", 1, 1, 1, 0, 1);
@@ -5882,69 +6034,101 @@ var diff_view_default = _template("d", (input) => {
5882
6034
  icon_sidebar_default({ size: 14 });
5883
6035
  _html(`</button>${_el_resume($scope0_id, "i")}<button class=${loading ? "\"icon-btn spinning\"" : "icon-btn"} title="Refresh diff"${_attr("disabled", loading)}>`);
5884
6036
  icon_refresh_default({ size: 14 });
5885
- _html(`</button>${_el_resume($scope0_id, "k")}<button class="btn files-btn" title="Jump to file">Files (<!>${_escape(shownFiles.length)}${_el_resume($scope0_id, "n")})</button>${_el_resume($scope0_id, "m")}<input${_attr_input_value($scope0_id, "o", fileFilter, _resume((_new_fileFilter) => {
5886
- fileFilter = _new_fileFilter;
5887
- }, "d1", $scope0_id))} class=file-filter placeholder="Filter files… (globs, !excludes)" aria-label="Filter files">${_el_resume($scope0_id, "o")}<label class=two-dot title="Include uncommitted and untracked files in the review. Off by default — the review is commit-to-commit."><input${_attr_input_checked($scope0_id, "p", uncommitted)} type=checkbox>${_el_resume($scope0_id, "p")} include uncommitted</label></div><div class=diff-main>`);
6037
+ _html(`</button>${_el_resume($scope0_id, "k")}<button class="btn files-btn" title="Jump to file">Files (<!>${_escape(shownFiles.length)}${_el_resume($scope0_id, "n")})</button>${_el_resume($scope0_id, "m")}<button class=${findOpen ? "\"btn find-btn on\"" : "\"btn find-btn\""} title="Find in the review (⌘/Ctrl+F)">`);
6038
+ icon_search_default({ size: 14 });
6039
+ _html(`<span class=find-label>Find</span></button>${_el_resume($scope0_id, "o")}<label class=two-dot title="Include uncommitted and untracked files in the review. Off by default — the review is commit-to-commit."><input${_attr_input_checked($scope0_id, "q", uncommitted)} type=checkbox>${_el_resume($scope0_id, "q")} include uncommitted</label>`);
6040
+ const $childScope = _peek_scope_id();
6041
+ file_filter_default({
6042
+ value: fileFilter,
6043
+ onChange: _resume(function(q) {
6044
+ fileFilter = q;
6045
+ }, "e21", $scope0_id)
6046
+ });
6047
+ _html("</div>");
6048
+ _if(() => {
6049
+ if (findOpen) {
6050
+ const $scope23_id = _scope_id();
6051
+ const $childScope2 = _peek_scope_id();
6052
+ diff_find_default({
6053
+ files: fileFiltered,
6054
+ tick: findTick,
6055
+ onState: _resume(function(s) {
6056
+ onFindState(s);
6057
+ }, "e22", $scope23_id),
6058
+ onClose: _resume(function() {
6059
+ findOpen = false;
6060
+ findState = {
6061
+ query: "",
6062
+ hit: null,
6063
+ keys: []
6064
+ };
6065
+ }, "e23", $scope23_id)
6066
+ });
6067
+ writeScope($scope23_id, { a: _existing_scope($childScope2) });
6068
+ return 0;
6069
+ }
6070
+ }, $scope0_id, "s", 1, 1, 1, 0, 1);
6071
+ _html("<div class=diff-main>");
5888
6072
  _if(() => {
5889
6073
  if (error) {
5890
6074
  const $scope17_id = _scope_id();
5891
6075
  _html(`<p class=toast-error>${_escape(error)}${_el_resume($scope17_id, "a")} <button>×</button>${_el_resume($scope17_id, "b")}</p>`);
5892
- _script($scope17_id, "d32");
6076
+ _script($scope17_id, "e36");
5893
6077
  writeScope($scope17_id, {});
5894
6078
  return 0;
5895
6079
  }
5896
- }, $scope0_id, "r", 1, 1, 1, 0, 1);
6080
+ }, $scope0_id, "u", 1, 1, 1, 0, 1);
5897
6081
  _for_of(repoList.filter((r) => r.baseMissing), (repo) => {
5898
6082
  const $scope20_id = _scope_id();
5899
6083
  _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>`);
5900
6084
  writeScope($scope20_id, {});
5901
- }, "id", $scope0_id, "s", 1, 1, 1, 0, 1);
6085
+ }, "id", $scope0_id, "v", 1, 1, 1, 0, 1);
5902
6086
  _for_of(repoList.filter((r) => r.contained && r.files.length), (repo) => {
5903
6087
  const $scope21_id = _scope_id();
5904
6088
  _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>`);
5905
6089
  writeScope($scope21_id, {});
5906
- }, "id", $scope0_id, "t", 1, 1, 1, 0, 1);
6090
+ }, "id", $scope0_id, "w", 1, 1, 1, 0, 1);
5907
6091
  _if(() => {
5908
6092
  if (driftRepos.length) {
5909
6093
  const $scope18_id = _scope_id();
5910
6094
  _html("<p class=toast-error>");
5911
6095
  _for_of(driftRepos, (repo) => {
5912
- const $scope31_id = _scope_id();
5913
- _html(`${_escape(repo.worktree)}${_el_resume($scope31_id, "a")} #<!>${_escape(repo.pr.number)}${_el_resume($scope31_id, "b")}: origin/<!>${_escape(repo.pr.headRefName)}${_el_resume($scope31_id, "c")} is <!>${_escape(shortSha(repo.head))}${_el_resume($scope31_id, "d")}, GitHub last saw <!>${_escape(shortSha(repo.pr.headRefOid))}${_el_resume($scope31_id, "e")}.`);
5914
- writeScope($scope31_id, {});
6096
+ const $scope32_id = _scope_id();
6097
+ _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")}.`);
6098
+ writeScope($scope32_id, {});
5915
6099
  }, "id", $scope18_id, "a");
5916
6100
  _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>`);
5917
- _script($scope18_id, "d33");
6101
+ _script($scope18_id, "e37");
5918
6102
  writeScope($scope18_id, {});
5919
6103
  return 0;
5920
6104
  }
5921
- }, $scope0_id, "u", 1, 1, 1, 0, 1);
6105
+ }, $scope0_id, "x", 1, 1, 1, 0, 1);
5922
6106
  _for_of(repoList.filter(localDiffers), (repo) => {
5923
6107
  const $scope22_id = _scope_id();
5924
6108
  _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>`);
5925
6109
  writeScope($scope22_id, {});
5926
- }, "id", $scope0_id, "v", 1, 1, 1, 0, 1);
6110
+ }, "id", $scope0_id, "y", 1, 1, 1, 0, 1);
5927
6111
  _if(() => {
5928
6112
  if (!repos && loading) {
5929
- const $scope32_id = _scope_id();
6113
+ const $scope33_id = _scope_id();
5930
6114
  _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>");
5931
- writeScope($scope32_id, {});
6115
+ writeScope($scope33_id, {});
5932
6116
  return 0;
5933
6117
  }
5934
- }, $scope0_id, "w", 1, 1, 1, 0, 1);
6118
+ }, $scope0_id, "z", 1, 1, 1, 0, 1);
5935
6119
  _if(() => {
5936
6120
  if (repos && !allFiles.length) {
5937
- const $scope26_id = _scope_id();
5938
- _html(`<p class="dim center-pad">${repoList.some((r) => r.pr) ? "No file changes on these PRs." : "No changes vs base."}${_el_resume($scope26_id, "a")}</p>`);
5939
- writeScope($scope26_id, {});
6121
+ const $scope27_id = _scope_id();
6122
+ _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>`);
6123
+ writeScope($scope27_id, {});
5940
6124
  return 0;
5941
- } else if (repos && !shownFiles.length) {
6125
+ } else if (repos && !shownFiles.length && !findState.hit) {
5942
6126
  const $scope19_id = _scope_id();
5943
- _html(`<p class="dim center-pad">No files match "<!>${_escape(fileFilter)}${_el_resume($scope19_id, "a")}".</p>`);
6127
+ _html(`<p class="dim center-pad">${findState.query.trim() ? "No matches in diffs." : `No files match "${_escape(`${fileFilter}`)}".`}${_el_resume($scope19_id, "a")}</p>`);
5944
6128
  writeScope($scope19_id, {});
5945
6129
  return 1;
5946
6130
  }
5947
- }, $scope0_id, "x", 1, 1, 1, 0, 1);
6131
+ }, $scope0_id, "a0", 1, 1, 1, 0, 1);
5948
6132
  _for_of(repoList, (repo) => {
5949
6133
  const $scope9_id = _scope_id();
5950
6134
  const $for_content3__repo_pr_number__closures = /* @__PURE__ */ new Set();
@@ -5963,84 +6147,85 @@ var diff_view_default = _template("d", (input) => {
5963
6147
  const $for_content3__repo_worktree__closures = /* @__PURE__ */ new Set();
5964
6148
  const $for_content3__repoFiles__closures = /* @__PURE__ */ new Set();
5965
6149
  const repoFiles = filesByRepo.get(repo.id) || [];
6150
+ const shownInRepo = shownByRepo.get(repo.id) || [];
5966
6151
  _if(() => {
5967
6152
  if (repoFiles.length) {
5968
6153
  const $scope10_id = _scope_id();
5969
- _html(`<section class=repo-section${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}>`);
6154
+ _html(`<section class=repo-section${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}${_attr("hidden", !shownInRepo.length && findState.hit?.repo !== repo.id)}>`);
5970
6155
  _if(() => {
5971
6156
  if (repoList.length > 1) {
5972
- const $scope24_id = _scope_id();
5973
- _html(`<button class=${collapsedRepos.has(repo.id) ? "\"repo-sep closed\"" : "repo-sep"}><span class=tree-chev>${collapsedRepos.has(repo.id) ? "▸" : "▾"}${_el_resume($scope24_id, "b")}</span><span class=mono>${_escape(repo.worktree)}${_el_resume($scope24_id, "c")}</span>`);
6157
+ const $scope25_id = _scope_id();
6158
+ _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>`);
5974
6159
  _if(() => {
5975
6160
  if (repo.pr) {
5976
- const $scope33_id = _scope_id();
5977
- _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($scope33_id, "b")}</a>${_el_resume($scope33_id, "a")}<span class=dim>${_escape(repo.pr.title)}${_el_resume($scope33_id, "c")}</span>`);
5978
- _script($scope33_id, "d34");
5979
- _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($scope33_id, {
5980
- Ca1: 2,
5981
- Ca2: 2,
5982
- Ca3: 2
6161
+ const $scope34_id = _scope_id();
6162
+ _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>`);
6163
+ _script($scope34_id, "e38");
6164
+ _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, {
6165
+ Ca4: 2,
6166
+ Ca5: 2,
6167
+ Ca6: 2
5983
6168
  }))))))));
5984
6169
  return 0;
5985
6170
  } else {
5986
- const $scope34_id = _scope_id();
5987
- _html(`<span class=dim>${_escape(repo.full_name)}${_el_resume($scope34_id, "a")}</span>`);
5988
- _subscribe($for_content3__repo_full_name__closures, writeScope($scope34_id, {}));
6171
+ const $scope35_id = _scope_id();
6172
+ _html(`<span class=dim>${_escape(repo.full_name)}${_el_resume($scope35_id, "a")}</span>`);
6173
+ _subscribe($for_content3__repo_full_name__closures, writeScope($scope35_id, {}));
5989
6174
  return 1;
5990
6175
  }
5991
- }, $scope24_id, "d");
5992
- _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($scope24_id, "f")}</span>${_el_resume($scope24_id, "e")}<span class=chip${_attr("title", `${repo.base} ${repo.baseSha}`)}>vs <!>${_escape(repo.base)}${_el_resume($scope24_id, "h")}</span>${_el_resume($scope24_id, "g")}`);
6176
+ }, $scope25_id, "d");
6177
+ _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")}`);
5993
6178
  _if(() => {
5994
6179
  if (localDiffers(repo)) {
5995
- const $scope35_id = _scope_id();
5996
- _html(`<span class=chip${_attr("title", `checked out ${repo.branch} ${repo.localHead}`)}>local <!>${_escape(repo.branch)}${_el_resume($scope35_id, "b")}</span>${_el_resume($scope35_id, "a")}`);
5997
- _subscribe($for_content3__repo_localHead__closures, _subscribe($for_content3__repo_branch__closures, writeScope($scope35_id, { Ca5: 2 })));
6180
+ const $scope36_id = _scope_id();
6181
+ _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")}`);
6182
+ _subscribe($for_content3__repo_localHead__closures, _subscribe($for_content3__repo_branch__closures, writeScope($scope36_id, { Ca8: 2 })));
5998
6183
  return 0;
5999
6184
  }
6000
- }, $scope24_id, "i", 1, 1, 1, 0, 1);
6001
- _html(`</button>${_el_resume($scope24_id, "a")}`);
6002
- _script($scope24_id, "d35");
6003
- _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($scope24_id, { Cch: 1 }))))))))));
6185
+ }, $scope25_id, "i", 1, 1, 1, 0, 1);
6186
+ _html(`</button>${_el_resume($scope25_id, "a")}`);
6187
+ _script($scope25_id, "e39");
6188
+ _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, { Cd2: 1 }))))))))));
6004
6189
  return 0;
6005
6190
  } else {
6006
- const $scope27_id = _scope_id();
6191
+ const $scope28_id = _scope_id();
6007
6192
  _html("<p class=repo-meta>");
6008
6193
  _if(() => {
6009
6194
  if (repo.pr) {
6010
- const $scope36_id = _scope_id();
6011
- _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($scope36_id, "b")}</a>${_el_resume($scope36_id, "a")}<span class=dim>${_escape(repo.pr.title)}${_el_resume($scope36_id, "c")}</span>`);
6012
- _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($scope36_id, {
6013
- Cx: 1,
6014
- Cy: 1,
6015
- Cz: 1,
6195
+ const $scope37_id = _scope_id();
6196
+ _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>`);
6197
+ _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, {
6016
6198
  Ca0: 1,
6017
- Ca1: 3,
6018
- Ca2: 3,
6019
- Ca3: 3
6199
+ Ca1: 1,
6200
+ Ca2: 1,
6201
+ Ca3: 1,
6202
+ Ca4: 3,
6203
+ Ca5: 3,
6204
+ Ca6: 3
6020
6205
  }))))))));
6021
6206
  return 0;
6022
6207
  }
6023
- }, $scope27_id, "a");
6024
- _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($scope27_id, "c")}</span>${_el_resume($scope27_id, "b")}<span class=chip${_attr("title", `${repo.base} ${repo.baseSha}`)}>vs <!>${_escape(repo.base)}${_el_resume($scope27_id, "e")}</span>${_el_resume($scope27_id, "d")}`);
6208
+ }, $scope28_id, "a");
6209
+ _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")}`);
6025
6210
  _if(() => {
6026
6211
  if (localDiffers(repo)) {
6027
- const $scope37_id = _scope_id();
6028
- _html(`<span class=chip${_attr("title", `checked out ${repo.branch} ${repo.localHead}`)}>local <!>${_escape(repo.branch)}${_el_resume($scope37_id, "b")}</span>${_el_resume($scope37_id, "a")}`);
6029
- _subscribe($for_content3__repo_localHead__closures, _subscribe($for_content3__repo_branch__closures, writeScope($scope37_id, {
6030
- Ca5: 3,
6031
- Ca6: 1
6212
+ const $scope38_id = _scope_id();
6213
+ _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")}`);
6214
+ _subscribe($for_content3__repo_localHead__closures, _subscribe($for_content3__repo_branch__closures, writeScope($scope38_id, {
6215
+ Ca8: 3,
6216
+ Ca9: 1
6032
6217
  })));
6033
6218
  return 0;
6034
6219
  }
6035
- }, $scope27_id, "f", 1, 1, 1, 0, 1);
6220
+ }, $scope28_id, "f", 1, 1, 1, 0, 1);
6036
6221
  _html("</p>");
6037
- _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($scope27_id, {
6038
- Ct: 1,
6039
- Cv: 1,
6040
- Ca1: 1,
6041
- Ca2: 1,
6042
- Ca3: 1,
6043
- Ca5: 1
6222
+ _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, {
6223
+ Cw: 1,
6224
+ Cy: 1,
6225
+ Ca4: 1,
6226
+ Ca5: 1,
6227
+ Ca6: 1,
6228
+ Ca8: 1
6044
6229
  })))))));
6045
6230
  return 1;
6046
6231
  }
@@ -6056,42 +6241,42 @@ var diff_view_default = _template("d", (input) => {
6056
6241
  const $for_content4__fileComments__closures = /* @__PURE__ */ new Set();
6057
6242
  const fileComments = commentsByFile.get(file.key) || [];
6058
6243
  let expanded = !viewed.has(file.key);
6059
- _html(`<details${_attr_details_or_dialog_open($scope12_id, "a", expanded)} class=file${_attr("data-key", 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")}`);
6244
+ _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")}`);
6060
6245
  _if(() => {
6061
6246
  if (fileComments.length) {
6062
- const $scope38_id = _scope_id();
6063
- _html(`<span class=chip>💬 <!>${_escape(fileComments.length)}${_el_resume($scope38_id, "a")}</span>`);
6064
- writeScope($scope38_id, {});
6247
+ const $scope39_id = _scope_id();
6248
+ _html(`<span class=chip>💬 <!>${_escape(fileComments.length)}${_el_resume($scope39_id, "a")}</span>`);
6249
+ writeScope($scope39_id, {});
6065
6250
  return 0;
6066
6251
  }
6067
6252
  }, $scope12_id, "f", 1, 1, 1, 0, 1);
6068
6253
  _html(`<label class=viewed><input${_attr_input_checked($scope12_id, "h", viewed.has(file.key), _resume(function() {
6069
6254
  toggleViewed(file.key);
6070
- }, "d2", $scope12_id))} type=checkbox>${_el_resume($scope12_id, "h")}<span class=dim>viewed</span></label>${_el_resume($scope12_id, "g")}</summary>`);
6255
+ }, "e1", $scope12_id))} type=checkbox>${_el_resume($scope12_id, "h")}<span class=dim>viewed</span></label>${_el_resume($scope12_id, "g")}</summary>`);
6071
6256
  _if(() => {
6072
6257
  if (file.binary) {
6073
- const $scope39_id = _scope_id();
6258
+ const $scope40_id = _scope_id();
6074
6259
  _html("<p class=\"dim diff-pad\">binary file</p>");
6075
- writeScope($scope39_id, {});
6260
+ writeScope($scope40_id, {});
6076
6261
  return 0;
6077
6262
  } else if (file.tooLarge) {
6078
- const $scope40_id = _scope_id();
6263
+ const $scope41_id = _scope_id();
6079
6264
  _html("<p class=\"dim diff-pad\">file too large to display</p>");
6080
- writeScope($scope40_id, {});
6265
+ writeScope($scope41_id, {});
6081
6266
  return 1;
6082
6267
  } else if (file.old == null && file.new == null) {
6083
- const $scope41_id = _scope_id();
6268
+ const $scope42_id = _scope_id();
6084
6269
  _html("<p class=\"dim diff-pad\">file could not be read</p>");
6085
- writeScope($scope41_id, {});
6270
+ writeScope($scope42_id, {});
6086
6271
  return 2;
6087
6272
  } else if (expanded) {
6088
6273
  const $scope15_id = _scope_id();
6089
6274
  _if(() => {
6090
6275
  {
6091
- const $scope25_id = _scope_id();
6092
- _html(`<div class=diff-wait></div>${_el_resume($scope25_id, "a")}`);
6093
- _script($scope25_id, "d36");
6094
- writeScope($scope25_id, {});
6276
+ const $scope26_id = _scope_id();
6277
+ _html(`<div class=diff-wait></div>${_el_resume($scope26_id, "a")}`);
6278
+ _script($scope26_id, "e40");
6279
+ writeScope($scope26_id, {});
6095
6280
  return 0;
6096
6281
  }
6097
6282
  }, $scope15_id, "a", 1, 1, 1, 0, 1);
@@ -6100,141 +6285,156 @@ var diff_view_default = _template("d", (input) => {
6100
6285
  }
6101
6286
  }, $scope12_id, "i");
6102
6287
  _html(`</details>${_el_resume($scope12_id, "a")}`);
6103
- _script($scope12_id, "d37");
6104
- _subscribe($toggleViewed2__closures, _subscribe($commentsByFile__closures, _subscribe($viewed__closures, writeScope($scope12_id, {
6288
+ _script($scope12_id, "e41");
6289
+ _subscribe($toggleViewed2__closures, _subscribe($commentsByFile__closures, _subscribe($shownKeySet__closures, _subscribe($viewed__closures, writeScope($scope12_id, {
6105
6290
  k: file,
6106
6291
  l: file?.key,
6107
- r: file?.binary,
6108
- s: file?.tooLarge,
6109
- t: file?.old,
6110
- u: file?.new,
6111
- v: fileComments,
6112
- w: fileComments.length,
6113
- x: expanded,
6114
- z: $for_content4__file__closures,
6115
- a0: $for_content4__file_key__closures,
6116
- a1: $for_content4__fileComments__closures,
6117
- Cc6: 1,
6118
- Cco: 1
6119
- }))));
6292
+ s: file?.binary,
6293
+ t: file?.tooLarge,
6294
+ u: file?.old,
6295
+ v: file?.new,
6296
+ w: fileComments,
6297
+ x: fileComments.length,
6298
+ y: expanded,
6299
+ a0: $for_content4__file__closures,
6300
+ a1: $for_content4__file_key__closures,
6301
+ a2: $for_content4__fileComments__closures,
6302
+ Cco: 1,
6303
+ Cdc: 1
6304
+ })))));
6120
6305
  }, "key", $scope11_id, "a", 1, 1, 1, "</div>", 1);
6121
6306
  _subscribe($for_content3__repoFiles__closures, writeScope($scope11_id, {}));
6122
6307
  return 0;
6123
6308
  }
6124
6309
  }, $scope10_id, "c", 1, 1, 1, 0, 1);
6125
6310
  _html(`</section>${_el_resume($scope10_id, "a")}`);
6126
- _subscribe($repoList_length__closures, _subscribe($collapsedRepos__closures, writeScope($scope10_id, {})));
6311
+ _subscribe($repoList_length__closures, _subscribe($collapsedRepos__closures, _subscribe($findState_hit_repo__closures, writeScope($scope10_id, {}))));
6127
6312
  return 0;
6128
6313
  }
6129
6314
  }, $scope9_id, "a", 1, 1, 1, 0, 1);
6130
6315
  writeScope($scope9_id, {
6131
6316
  c: repo,
6132
6317
  d: repo?.id,
6133
- f: repo?.pr,
6134
- g: repo?.worktree,
6135
- h: repo?.pr?.number,
6136
- i: repo?.pr?.url,
6137
- j: repo?.pr?.title,
6138
- k: repo?.pr?.headRefName,
6139
- l: repo?.head,
6140
- m: repo?.base,
6141
- n: repo?.baseSha,
6142
- o: repo?.full_name,
6143
- p: repo?.branch,
6144
- q: repo?.localHead,
6145
- r: repoFiles,
6146
- x: $for_content3__repo_pr_number__closures,
6147
- y: $for_content3__repo_pr_url__closures,
6148
- z: $for_content3__repo_pr_title__closures,
6149
- a0: $for_content3__repo_pr_headRefName__closures,
6150
- a1: $for_content3__repo_head__closures,
6151
- a2: $for_content3__repo_base__closures,
6152
- a3: $for_content3__repo_baseSha__closures,
6153
- a4: $for_content3__repo_full_name__closures,
6154
- a5: $for_content3__repo_branch__closures,
6155
- a6: $for_content3__repo_localHead__closures,
6156
- t: $for_content3__repo__closures,
6157
- u: $for_content3__repo_id__closures,
6158
- v: $for_content3__repo_pr__closures,
6159
- w: $for_content3__repo_worktree__closures,
6160
- a7: $for_content3__repoFiles__closures
6318
+ g: repo?.pr,
6319
+ h: repo?.worktree,
6320
+ i: repo?.pr?.number,
6321
+ j: repo?.pr?.url,
6322
+ k: repo?.pr?.title,
6323
+ l: repo?.pr?.headRefName,
6324
+ m: repo?.head,
6325
+ n: repo?.base,
6326
+ o: repo?.baseSha,
6327
+ p: repo?.full_name,
6328
+ q: repo?.branch,
6329
+ r: repo?.localHead,
6330
+ s: repoFiles,
6331
+ v: shownInRepo.length,
6332
+ a0: $for_content3__repo_pr_number__closures,
6333
+ a1: $for_content3__repo_pr_url__closures,
6334
+ a2: $for_content3__repo_pr_title__closures,
6335
+ a3: $for_content3__repo_pr_headRefName__closures,
6336
+ a4: $for_content3__repo_head__closures,
6337
+ a5: $for_content3__repo_base__closures,
6338
+ a6: $for_content3__repo_baseSha__closures,
6339
+ a7: $for_content3__repo_full_name__closures,
6340
+ a8: $for_content3__repo_branch__closures,
6341
+ a9: $for_content3__repo_localHead__closures,
6342
+ w: $for_content3__repo__closures,
6343
+ x: $for_content3__repo_id__closures,
6344
+ y: $for_content3__repo_pr__closures,
6345
+ z: $for_content3__repo_worktree__closures,
6346
+ aa: $for_content3__repoFiles__closures
6161
6347
  });
6162
- }, "id", $scope0_id, "y");
6163
- _html(`</div>${_el_resume($scope0_id, "q")}</div>`);
6164
- _if(() => {}, $scope0_id, "z");
6348
+ }, "id", $scope0_id, "a1");
6349
+ _html(`</div>${_el_resume($scope0_id, "t")}</div>`);
6350
+ _if(() => {}, $scope0_id, "a2");
6165
6351
  _html("</div>");
6166
- _script($scope0_id, "d40");
6167
- _script($scope0_id, "d41");
6352
+ _script($scope0_id, "e44");
6353
+ _script($scope0_id, "e45");
6168
6354
  writeScope($scope0_id, {
6169
- a2: input.focusPr,
6170
- a3: input.workspaceId,
6171
- a4: input.active,
6172
- a5: input.sessions,
6173
- a7: input.onSent,
6174
- a8: input.onExit,
6175
- a9: input.sessions?.[0]?.title,
6176
- aa: input.sessions?.[0]?.agent,
6177
- ab: repos,
6178
- ac: comments,
6179
- ae: viewed,
6180
- ag: viewed?.size,
6181
- ah: draft,
6182
- aj: error,
6183
- ak: loading,
6184
- am: copied,
6185
- an: sending,
6186
- ao: sendTarget,
6187
- aq: fileFilter,
6188
- ar: uncommitted,
6189
- at: treeOpen,
6190
- av: collapsedDirs,
6191
- aw: collapsedRepos,
6192
- ax: dismissedDrift,
6193
- ay: toggleRepo,
6194
- b0: nearBox.cbs,
6195
- b1: nearBox.io,
6196
- b3: observeNear,
6197
- b4: load,
6198
- b6: loadReview,
6199
- b8: repoList,
6200
- ba: repoList.length,
6201
- bb: allFiles,
6202
- bc: allFiles?.length,
6203
- bd: fileMatch,
6204
- bf: shownFiles,
6205
- bj: filesByRepo,
6206
- bl: commentsByFile,
6207
- bm: sendPick,
6208
- bn: localDiffers,
6209
- bp: driftRepos,
6210
- bs: dismissDrift,
6211
- bt: reload,
6212
- bu: toggleViewed,
6213
- bv: saveComment,
6214
- bw: removeComment,
6215
- bx: clearComments,
6216
- c0: copyMarkdown,
6217
- c1: sendTo,
6218
- c2: jumpTo,
6219
- cg: $collapsedDirs__closures,
6220
- c6: $viewed__closures,
6221
- co: $commentsByFile__closures,
6222
- cn: $filesByRepo__closures,
6223
- c4: $si__input_sessions_0_title && $input_sessions_0_title__closures,
6224
- c5: $si__input_sessions_0_agent && $input_sessions_0_agent__closures,
6225
- cc: $sending__closures,
6226
- c3: $si__input_sessions && $input_sessions__closures,
6227
- cd: $sendTarget__closures,
6228
- ch: $collapsedRepos__closures,
6229
- c8: $draft__closures,
6230
- cs: $saveComment2__closures,
6231
- ct: $removeComment2__closures,
6232
- cr: $toggleViewed2__closures,
6233
- ck: $repoList_length__closures
6355
+ a5: input.focusPr,
6356
+ a6: input.workspaceId,
6357
+ a7: input.active,
6358
+ a8: input.sessions,
6359
+ aa: input.onSent,
6360
+ ab: input.onExit,
6361
+ ac: input.sessions?.[0]?.title,
6362
+ ad: input.sessions?.[0]?.agent,
6363
+ ae: repos,
6364
+ af: comments,
6365
+ ah: viewed,
6366
+ aj: viewed?.size,
6367
+ ak: draft,
6368
+ am: error,
6369
+ an: loading,
6370
+ ap: copied,
6371
+ aq: sending,
6372
+ ar: sendTarget,
6373
+ at: fileFilter,
6374
+ au: uncommitted,
6375
+ aw: treeOpen,
6376
+ az: findTick,
6377
+ b1: findState?.query,
6378
+ b3: findState?.hit,
6379
+ b4: findState?.hit?.key,
6380
+ b5: findState?.hit?.repo,
6381
+ b6: collapsedDirs,
6382
+ b7: collapsedRepos,
6383
+ b8: dismissedDrift,
6384
+ b9: toggleRepo,
6385
+ bb: nearBox.cbs,
6386
+ bc: nearBox.io,
6387
+ be: observeNear,
6388
+ bf: load,
6389
+ bh: loadReview,
6390
+ bj: repoList,
6391
+ bl: repoList.length,
6392
+ bm: allFiles,
6393
+ bn: allFiles?.length,
6394
+ bo: fileMatch,
6395
+ bq: fileFiltered,
6396
+ br: findKeys,
6397
+ bt: shownFiles,
6398
+ bx: shownKeySet,
6399
+ by: filesByRepo,
6400
+ bz: shownByRepo,
6401
+ c1: commentsByFile,
6402
+ c2: sendPick,
6403
+ c3: localDiffers,
6404
+ c5: driftRepos,
6405
+ c8: dismissDrift,
6406
+ c9: reload,
6407
+ ca: toggleViewed,
6408
+ cb: saveComment,
6409
+ cc: removeComment,
6410
+ cd: clearComments,
6411
+ cg: copyMarkdown,
6412
+ ch: sendTo,
6413
+ ci: jumpTo,
6414
+ cj: openFind,
6415
+ ck: onFindState,
6416
+ d1: $collapsedDirs__closures,
6417
+ co: $viewed__closures,
6418
+ dc: $commentsByFile__closures,
6419
+ db: $shownByRepo__closures,
6420
+ cm: $si__input_sessions_0_title && $input_sessions_0_title__closures,
6421
+ cn: $si__input_sessions_0_agent && $input_sessions_0_agent__closures,
6422
+ cu: $sending__closures,
6423
+ cl: $si__input_sessions && $input_sessions__closures,
6424
+ cv: $sendTarget__closures,
6425
+ r: _existing_scope($childScope),
6426
+ d2: $collapsedRepos__closures,
6427
+ cq: $draft__closures,
6428
+ dg: $saveComment2__closures,
6429
+ dh: $removeComment2__closures,
6430
+ d9: $shownKeySet__closures,
6431
+ df: $toggleViewed2__closures,
6432
+ d0: $findState_hit_repo__closures,
6433
+ d5: $repoList_length__closures
6234
6434
  });
6235
6435
  _resume_branch($scope0_id);
6236
6436
  });
6237
- _template("v", (input) => {
6437
+ _template("x", (input) => {
6238
6438
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
6239
6439
  const $scope0_id = _scope_id();
6240
6440
  _set_serialize_reason({
@@ -6249,7 +6449,7 @@ _template("v", (input) => {
6249
6449
  });
6250
6450
  _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
6251
6451
  });
6252
- _template("A", (input) => {
6452
+ _template("C", (input) => {
6253
6453
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
6254
6454
  const $scope0_id = _scope_id();
6255
6455
  _set_serialize_reason({
@@ -6264,7 +6464,7 @@ _template("A", (input) => {
6264
6464
  });
6265
6465
  _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
6266
6466
  });
6267
- _template("t", (input) => {
6467
+ _template("v", (input) => {
6268
6468
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
6269
6469
  const $scope0_id = _scope_id();
6270
6470
  _set_serialize_reason({
@@ -6279,7 +6479,7 @@ _template("t", (input) => {
6279
6479
  });
6280
6480
  _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
6281
6481
  });
6282
- _template("z", (input) => {
6482
+ _template("B", (input) => {
6283
6483
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
6284
6484
  const $scope0_id = _scope_id();
6285
6485
  _set_serialize_reason({
@@ -6298,7 +6498,7 @@ _template("z", (input) => {
6298
6498
  //#region src/tags/term.marko
6299
6499
  var REPEAT_DELAY = 400;
6300
6500
  var REPEAT_EVERY = 55;
6301
- var term_default = _template("m", (input) => {
6501
+ var term_default = _template("o", (input) => {
6302
6502
  const $scope0_reason = _scope_reason();
6303
6503
  _serialize_guard($scope0_reason, 6);
6304
6504
  _serialize_guard($scope0_reason, 7);
@@ -6308,14 +6508,14 @@ var term_default = _template("m", (input) => {
6308
6508
  const $si__input_sessions = _serialize_if($scope0_reason, 9);
6309
6509
  _serialize_guard($scope0_reason, 13);
6310
6510
  const $si__input_agents = _serialize_if($scope0_reason, 13), $si__input_agent = _serialize_if($scope0_reason, 7);
6311
- _serialize_guard($scope0_reason, 8);
6312
- const $si__input_sessionState = _serialize_if($scope0_reason, 8);
6313
6511
  _serialize_guard($scope0_reason, 5);
6314
6512
  _serialize_guard($scope0_reason, 0);
6513
+ _serialize_guard($scope0_reason, 8);
6514
+ const $si__input_sessionState = _serialize_if($scope0_reason, 8);
6315
6515
  _serialize_guard($scope0_reason, 14);
6316
6516
  const $si__input_sessionId = _serialize_if($scope0_reason, 10), $si__input_onRenameSession = _serialize_if($scope0_reason, 11), $si__input_onCloseSession = _serialize_if($scope0_reason, 12), $si__input_workspaceName = _serialize_if($scope0_reason, 14);
6317
6517
  const $scope0_id = _scope_id();
6318
- _hoist($scope0_id, "m6");
6518
+ _hoist($scope0_id, "o6");
6319
6519
  const $input_sessionId__closures = /* @__PURE__ */ new Set();
6320
6520
  const $input_onRenameSession__closures = /* @__PURE__ */ new Set();
6321
6521
  const $input_onCloseSession__closures = /* @__PURE__ */ new Set();
@@ -6338,7 +6538,7 @@ var term_default = _template("m", (input) => {
6338
6538
  copyFlashBox.timer = setTimeout(() => {
6339
6539
  copiedFlash = false;
6340
6540
  }, 1200);
6341
- }, "m0", $scope0_id);
6541
+ }, "o0", $scope0_id);
6342
6542
  const holdBox = { current: null };
6343
6543
  const startHold = _resume((seq) => {
6344
6544
  ((stopHold) => stopHold())(_hoist_read_error);
@@ -6348,7 +6548,7 @@ var term_default = _template("m", (input) => {
6348
6548
  state.repeat = setInterval(() => ioBox.current?.send(seq), REPEAT_EVERY);
6349
6549
  }, REPEAT_DELAY);
6350
6550
  holdBox.current = state;
6351
- }, "m1", $scope0_id);
6551
+ }, "o1", $scope0_id);
6352
6552
  const stopHold = _resume(() => {
6353
6553
  const hold = holdBox.current;
6354
6554
  if (hold) {
@@ -6356,7 +6556,7 @@ var term_default = _template("m", (input) => {
6356
6556
  clearInterval(hold.repeat);
6357
6557
  holdBox.current = null;
6358
6558
  }
6359
- }, "m2", $scope0_id);
6559
+ }, "o2", $scope0_id);
6360
6560
  const uploadAsset = _resume(async (file) => {
6361
6561
  if (!file) return;
6362
6562
  uploading = true;
@@ -6369,7 +6569,7 @@ var term_default = _template("m", (input) => {
6369
6569
  } finally {
6370
6570
  uploading = false;
6371
6571
  }
6372
- }, "m3", $scope0_id);
6572
+ }, "o3", $scope0_id);
6373
6573
  const handlePasted = _resume(async (clipboardData) => {
6374
6574
  const files = [...clipboardData?.files || []];
6375
6575
  for (const file of files) await uploadAsset(file);
@@ -6378,7 +6578,7 @@ var term_default = _template("m", (input) => {
6378
6578
  if (text) ioBox.current?.send(text);
6379
6579
  }
6380
6580
  trapOpen = false;
6381
- }, "m4", $scope0_id);
6581
+ }, "o4", $scope0_id);
6382
6582
  const pasteClipboard = _resume(async () => {
6383
6583
  if (!navigator.clipboard?.read) {
6384
6584
  trapOpen = true;
@@ -6398,39 +6598,39 @@ var term_default = _template("m", (input) => {
6398
6598
  } catch {
6399
6599
  trapOpen = true;
6400
6600
  }
6401
- }, "m5", $scope0_id);
6601
+ }, "o5", $scope0_id);
6402
6602
  _html(`<div${_attr("hidden", input.mode === "diff")} class=term-wrap><div class=term></div>${_el_resume($scope0_id, "b")}`);
6403
6603
  _if(() => {
6404
6604
  if (uploading) {
6405
- const $scope19_id = _scope_id();
6605
+ const $scope18_id = _scope_id();
6406
6606
  _html("<div class=\"term-uploading dim\">uploading…</div>");
6407
- writeScope($scope19_id, {});
6607
+ writeScope($scope18_id, {});
6408
6608
  return 0;
6409
6609
  }
6410
6610
  }, $scope0_id, "c", 1, 1, 1, 0, 1);
6411
6611
  _if(() => {
6412
6612
  if (copiedFlash) {
6413
- const $scope20_id = _scope_id();
6613
+ const $scope19_id = _scope_id();
6414
6614
  _html("<div class=term-copied>Copied</div>");
6415
- writeScope($scope20_id, {});
6615
+ writeScope($scope19_id, {});
6416
6616
  return 0;
6417
6617
  }
6418
6618
  }, $scope0_id, "d", 1, 1, 1, 0, 1);
6419
6619
  _if(() => {}, $scope0_id, "e", 1, 1, 1, 0, 1);
6420
6620
  _if(() => {
6421
6621
  if (trapOpen) {
6422
- const $scope13_id = _scope_id();
6423
- _html(`<div class=trap-backdrop><div class=paste-trap><p class=dim>Long-press below and choose Paste</p><input placeholder="Paste here…">${_el_resume($scope13_id, "c")}<button class=btn>Cancel</button>${_el_resume($scope13_id, "d")}</div>${_el_resume($scope13_id, "b")}</div>${_el_resume($scope13_id, "a")}`);
6424
- _script($scope13_id, "m8");
6425
- _script($scope13_id, "m9");
6426
- writeScope($scope13_id, {});
6622
+ const $scope12_id = _scope_id();
6623
+ _html(`<div class=trap-backdrop><div class=paste-trap><p class=dim>Long-press below and choose Paste</p><input placeholder="Paste here…">${_el_resume($scope12_id, "c")}<button class=btn>Cancel</button>${_el_resume($scope12_id, "d")}</div>${_el_resume($scope12_id, "b")}</div>${_el_resume($scope12_id, "a")}`);
6624
+ _script($scope12_id, "o8");
6625
+ _script($scope12_id, "o9");
6626
+ writeScope($scope12_id, {});
6427
6627
  return 0;
6428
6628
  }
6429
6629
  }, $scope0_id, "f", 1, 1, 1, 0, 1);
6430
6630
  _html(`</div>${_el_resume($scope0_id, "a")}`);
6431
6631
  _if(() => {}, $scope0_id, "g", 1, 1, 1, 0, 1);
6432
- _script($scope0_id, "m24");
6433
- _script($scope0_id, "m25");
6632
+ _script($scope0_id, "o24");
6633
+ _script($scope0_id, "o25");
6434
6634
  writeScope($scope0_id, {
6435
6635
  j: input.workspaceId,
6436
6636
  k: input.mode,
@@ -6495,7 +6695,7 @@ var $class = [
6495
6695
  "\"meter-fill warm\"",
6496
6696
  "\"meter-fill hot warm\""
6497
6697
  ];
6498
- var usage_stats_default = _template("n", (input) => {
6698
+ var usage_stats_default = _template("p", (input) => {
6499
6699
  const $scope0_reason = _scope_reason(), $sg__input_onClose = _serialize_guard($scope0_reason, 0);
6500
6700
  const $scope0_id = _scope_id();
6501
6701
  const $usage_error__closures = /* @__PURE__ */ new Set();
@@ -6510,12 +6710,12 @@ var usage_stats_default = _template("n", (input) => {
6510
6710
  } catch (err) {
6511
6711
  usage = { error: String(err.message || err) };
6512
6712
  }
6513
- }, "n0", $scope0_id);
6713
+ }, "p0", $scope0_id);
6514
6714
  const refresh = _resume(async () => {
6515
6715
  refreshing = true;
6516
6716
  await load(true);
6517
6717
  refreshing = false;
6518
- }, "n1", $scope0_id);
6718
+ }, "p1", $scope0_id);
6519
6719
  _set_serialize_reason({
6520
6720
  0: $sg__input_onClose,
6521
6721
  2: $sg__input_onClose
@@ -6526,8 +6726,8 @@ var usage_stats_default = _template("n", (input) => {
6526
6726
  class: "usage-modal",
6527
6727
  onClose: _resume(function() {
6528
6728
  input.onClose();
6529
- }, "n2", $scope0_id),
6530
- content: _content("n4", () => {
6729
+ }, "p2", $scope0_id),
6730
+ content: _content("p4", () => {
6531
6731
  _scope_reason();
6532
6732
  const $scope1_id = _scope_id();
6533
6733
  _html(`<header class=manage-head><div><h2>Usage</h2></div><button class=${refreshing ? "\"icon-btn spinning\"" : "icon-btn"} title="Refresh usage"${_attr("disabled", refreshing)}>`);
@@ -6584,12 +6784,12 @@ var usage_stats_default = _template("n", (input) => {
6584
6784
  return 2;
6585
6785
  }
6586
6786
  }, $scope1_id, "c", 1, 1, 1, 0, 1);
6587
- _script($scope1_id, "n3");
6787
+ _script($scope1_id, "p3");
6588
6788
  _subscribe($refreshing__closures, _subscribe($usage__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })));
6589
6789
  _resume_branch($scope1_id);
6590
6790
  })
6591
6791
  });
6592
- _script($scope0_id, "n5");
6792
+ _script($scope0_id, "p5");
6593
6793
  writeScope($scope0_id, {
6594
6794
  d: input.onClose,
6595
6795
  f: usage?.error,
@@ -6606,7 +6806,7 @@ var usage_stats_default = _template("n", (input) => {
6606
6806
  });
6607
6807
  //#endregion
6608
6808
  //#region src/tags/prompt-dialog.marko
6609
- var prompt_dialog_default = _template("i", (input) => {
6809
+ var prompt_dialog_default = _template("k", (input) => {
6610
6810
  const $scope0_reason = _scope_reason(), $sg__input_label = _serialize_guard($scope0_reason, 1), $sg__input_onCancel = _serialize_guard($scope0_reason, 2), $si__input_submitLabel = _serialize_if($scope0_reason, 3), $si__input_label = _serialize_if($scope0_reason, 1), $si__input_placeholder = _serialize_if($scope0_reason, 4);
6611
6811
  const $scope0_id = _scope_id();
6612
6812
  const $modalview_content__subscribers = /* @__PURE__ */ new Set();
@@ -6618,7 +6818,7 @@ var prompt_dialog_default = _template("i", (input) => {
6618
6818
  const submit = _resume(() => {
6619
6819
  const v = value.trim();
6620
6820
  if (v) input.onSubmit(v);
6621
- }, "i1", $scope0_id);
6821
+ }, "k1", $scope0_id);
6622
6822
  _set_serialize_reason({
6623
6823
  0: $sg__input_onCancel,
6624
6824
  1: $sg__input_label,
@@ -6630,22 +6830,22 @@ var prompt_dialog_default = _template("i", (input) => {
6630
6830
  class: "prompt-dlg",
6631
6831
  onClose: _resume(function() {
6632
6832
  input.onCancel();
6633
- }, "i2", $scope0_id),
6634
- footer: attrTag({ content: _content_resume("i5", () => {
6833
+ }, "k2", $scope0_id),
6834
+ footer: attrTag({ content: _content_resume("k5", () => {
6635
6835
  _scope_reason();
6636
6836
  const $scope1_id = _scope_id();
6637
6837
  _html(`<button class="btn primary"${_attr("disabled", !value.trim())}>${_escape(input.submitLabel || "OK")}${_el_resume($scope1_id, "b", _serialize_guard($scope0_reason, 3))}</button>${_el_resume($scope1_id, "a")}<div class=spacer></div><button class=btn>Cancel</button>${_el_resume($scope1_id, "c")}`);
6638
- _script($scope1_id, "i3");
6838
+ _script($scope1_id, "k3");
6639
6839
  _subscribe($value__closures, _subscribe($si__input_submitLabel && $input_submitLabel__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })));
6640
6840
  _resume_branch($scope1_id);
6641
6841
  }, $scope0_id) }),
6642
- content: _content("i6", () => {
6842
+ content: _content("k6", () => {
6643
6843
  _scope_reason();
6644
6844
  const $scope2_id = _scope_id();
6645
6845
  _html(`<h2 class=prompt-title>${_escape(input.label)}${_el_resume($scope2_id, "a", $sg__input_label)}</h2><input${_attr_input_value($scope2_id, "b", value, _resume((_new_value) => {
6646
6846
  value = _new_value;
6647
- }, "i0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "b")}`);
6648
- _script($scope2_id, "i4");
6847
+ }, "k0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "b")}`);
6848
+ _script($scope2_id, "k4");
6649
6849
  _subscribe($value__closures, _subscribe($si__input_placeholder && $input_placeholder__closures, _subscribe($si__input_label && $input_label__closures, _subscribe($modalview_content__subscribers, writeScope($scope2_id, {
6650
6850
  _: _scope_with_id($scope0_id),
6651
6851
  Cp: 1
@@ -6653,7 +6853,7 @@ var prompt_dialog_default = _template("i", (input) => {
6653
6853
  _resume_branch($scope2_id);
6654
6854
  })
6655
6855
  });
6656
- _script($scope0_id, "i7");
6856
+ _script($scope0_id, "k7");
6657
6857
  writeScope($scope0_id, {
6658
6858
  e: input.onSubmit,
6659
6859
  g: input.onCancel,
@@ -6672,7 +6872,7 @@ var prompt_dialog_default = _template("i", (input) => {
6672
6872
  //#endregion
6673
6873
  //#region src/tags/work-view.marko
6674
6874
  var api$1;
6675
- var work_view_default = _template("o", (input) => {
6875
+ var work_view_default = _template("q", (input) => {
6676
6876
  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);
6677
6877
  const $scope0_id = _scope_id();
6678
6878
  const $input_active__closures = /* @__PURE__ */ new Set();
@@ -6722,7 +6922,7 @@ var work_view_default = _template("o", (input) => {
6722
6922
  } finally {
6723
6923
  spawning = false;
6724
6924
  }
6725
- }, "o0", $scope0_id);
6925
+ }, "q0", $scope0_id);
6726
6926
  const loadMem = {
6727
6927
  wanted: false,
6728
6928
  run: void 0
@@ -6744,11 +6944,11 @@ var work_view_default = _template("o", (input) => {
6744
6944
  sessions = sessions || [];
6745
6945
  error = String(err);
6746
6946
  }
6747
- }, "o1", $scope0_id);
6947
+ }, "q1", $scope0_id);
6748
6948
  const loadSessions = _resume((autoCreate) => {
6749
6949
  if (autoCreate) loadMem.wanted = true;
6750
6950
  return (loadMem.run ??= coalesce(loadBody))();
6751
- }, "o2", $scope0_id);
6951
+ }, "q2", $scope0_id);
6752
6952
  const closeSession = _resume(async (id) => {
6753
6953
  try {
6754
6954
  await api$1(`/api/sessions/${id}`, { method: "DELETE" });
@@ -6757,7 +6957,7 @@ var work_view_default = _template("o", (input) => {
6757
6957
  } catch (err) {
6758
6958
  error = `Kill session failed: ${String(err.message || err)}`;
6759
6959
  }
6760
- }, "o3", $scope0_id);
6960
+ }, "q3", $scope0_id);
6761
6961
  const renameSession = _resume(async (id, title) => {
6762
6962
  title = title.trim();
6763
6963
  if (!title) return;
@@ -6770,7 +6970,7 @@ var work_view_default = _template("o", (input) => {
6770
6970
  headers: { "content-type": "application/json" },
6771
6971
  body: JSON.stringify({ title })
6772
6972
  });
6773
- }, "o4", $scope0_id);
6973
+ }, "q4", $scope0_id);
6774
6974
  const newSession = _resume(async (wsId, agent) => {
6775
6975
  if (wsId === ws.id) {
6776
6976
  const session = await createSession(agent, true);
@@ -6787,10 +6987,10 @@ var work_view_default = _template("o", (input) => {
6787
6987
  } catch (err) {
6788
6988
  error = String(err.message || err);
6789
6989
  }
6790
- }, "o5", $scope0_id);
6990
+ }, "q5", $scope0_id);
6791
6991
  const promptRename = _resume((s) => {
6792
6992
  renaming = s;
6793
- }, "o6", $scope0_id);
6993
+ }, "q6", $scope0_id);
6794
6994
  _html("<div class=work-view>");
6795
6995
  _set_serialize_reason({
6796
6996
  0: _serialize_guard($scope0_reason, 0),
@@ -6816,47 +7016,47 @@ var work_view_default = _template("o", (input) => {
6816
7016
  tab: curTab,
6817
7017
  tabChange: _resume(function(id) {
6818
7018
  tab = id;
6819
- }, "o7", $scope0_id),
7019
+ }, "q7", $scope0_id),
6820
7020
  view,
6821
7021
  viewChange: _resume((_new_view) => {
6822
7022
  view = _new_view;
6823
- }, "o8", $scope0_id),
7023
+ }, "q8", $scope0_id),
6824
7024
  drawerOpen,
6825
7025
  drawerOpenChange: _resume((_new_drawerOpen) => {
6826
7026
  drawerOpen = _new_drawerOpen;
6827
- }, "o9", $scope0_id),
7027
+ }, "q9", $scope0_id),
6828
7028
  allWorkspaces: input.allWorkspaces,
6829
7029
  allStatus: input.allStatus,
6830
7030
  agents: input.agents,
6831
7031
  onError: _resume(function(message) {
6832
7032
  error = message;
6833
- }, "o10", $scope0_id),
7033
+ }, "q10", $scope0_id),
6834
7034
  onSelectWorkspace: input.onSelectWorkspace,
6835
7035
  onOpenSession: input.onOpenSession,
6836
7036
  onManage: input.onManage,
6837
7037
  onNew: input.onNew,
6838
7038
  onUsage: _resume(function() {
6839
7039
  usageOpen = true;
6840
- }, "o11", $scope0_id),
7040
+ }, "q11", $scope0_id),
6841
7041
  onNewSession: _resume(function(wsId, agent) {
6842
7042
  newSession(wsId, agent);
6843
- }, "o12", $scope0_id),
7043
+ }, "q12", $scope0_id),
6844
7044
  onCloseSession: _resume(function(id) {
6845
7045
  closeSession(id);
6846
- }, "o13", $scope0_id),
7046
+ }, "q13", $scope0_id),
6847
7047
  onRenameSession: _resume(function(s) {
6848
7048
  promptRename(s);
6849
- }, "o14", $scope0_id),
7049
+ }, "q14", $scope0_id),
6850
7050
  onReviewOpened: _resume(function(pr) {
6851
7051
  focusPr = pr || "";
6852
- }, "o15", $scope0_id)
7052
+ }, "q15", $scope0_id)
6853
7053
  });
6854
7054
  _html("<div class=main-col>");
6855
7055
  _if(() => {
6856
7056
  if (error) {
6857
7057
  const $scope5_id = _scope_id();
6858
7058
  _html(`<p class=toast-error>${_escape(error)}${_el_resume($scope5_id, "a")}<button title=Dismiss>×</button>${_el_resume($scope5_id, "b")}</p>`);
6859
- _script($scope5_id, "o29");
7059
+ _script($scope5_id, "q29");
6860
7060
  writeScope($scope5_id, {});
6861
7061
  return 0;
6862
7062
  }
@@ -6873,10 +7073,10 @@ var work_view_default = _template("o", (input) => {
6873
7073
  onSent: _resume(function(sessionId) {
6874
7074
  tab = sessionId;
6875
7075
  view = "term";
6876
- }, "o16", $scope0_id),
7076
+ }, "q16", $scope0_id),
6877
7077
  onExit: _resume(function() {
6878
7078
  view = "term";
6879
- }, "o17", $scope0_id)
7079
+ }, "q17", $scope0_id)
6880
7080
  });
6881
7081
  _show_end($scope0_id, "f", $show);
6882
7082
  _html(`<div class=${view === "diff" ? "\"term-area as-bar\"" : "term-area"}>`);
@@ -6915,32 +7115,32 @@ var work_view_default = _template("o", (input) => {
6915
7115
  sessions: shownSessions,
6916
7116
  onNewSession: _resume(function(agent) {
6917
7117
  newSession(ws.id, agent);
6918
- }, "o18", $scope2_id),
7118
+ }, "q18", $scope2_id),
6919
7119
  onOpenTab: _resume(function(id) {
6920
7120
  tab = id;
6921
- }, "o19", $scope2_id),
7121
+ }, "q19", $scope2_id),
6922
7122
  onCloseSession: _resume(function(id) {
6923
7123
  closeSession(id);
6924
- }, "o20", $scope2_id),
7124
+ }, "q20", $scope2_id),
6925
7125
  onRenameSession: _resume(function(id) {
6926
7126
  const target = (shownSessions || []).find((x) => x.id === id);
6927
7127
  if (target) renaming = target;
6928
- }, "o21", $scope2_id),
7128
+ }, "q21", $scope2_id),
6929
7129
  active: input.active && view === "term" && s.id === curTab,
6930
7130
  mode: view,
6931
7131
  onToggleDiff: _resume(function() {
6932
7132
  focusPr = "";
6933
7133
  view = "diff";
6934
- }, "o22", $scope2_id),
7134
+ }, "q22", $scope2_id),
6935
7135
  onExitReview: _resume(function() {
6936
7136
  view = "term";
6937
- }, "o23", $scope2_id),
7137
+ }, "q23", $scope2_id),
6938
7138
  onOpenNav: _resume(function() {
6939
7139
  drawerOpen = true;
6940
- }, "o24", $scope2_id),
7140
+ }, "q24", $scope2_id),
6941
7141
  onManage: _resume(function() {
6942
7142
  input.onManage?.(ws.id);
6943
- }, "o25", $scope2_id)
7143
+ }, "q25", $scope2_id)
6944
7144
  });
6945
7145
  _show_end($scope2_id, "d", $show2);
6946
7146
  _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, {
@@ -6952,7 +7152,7 @@ var work_view_default = _template("o", (input) => {
6952
7152
  if (!shownSessions.length) {
6953
7153
  const $scope3_id = _scope_id();
6954
7154
  _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>`);
6955
- _script($scope3_id, "o30");
7155
+ _script($scope3_id, "q30");
6956
7156
  _subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope3_id, {})));
6957
7157
  return 0;
6958
7158
  }
@@ -6972,7 +7172,7 @@ var work_view_default = _template("o", (input) => {
6972
7172
  const $scope4_id = _scope_id();
6973
7173
  usage_stats_default({ onClose: _resume(function() {
6974
7174
  usageOpen = false;
6975
- }, "o26", $scope4_id) });
7175
+ }, "q26", $scope4_id) });
6976
7176
  writeScope($scope4_id, {});
6977
7177
  return 0;
6978
7178
  }
@@ -6988,21 +7188,21 @@ var work_view_default = _template("o", (input) => {
6988
7188
  onSubmit: _resume(function(title) {
6989
7189
  renameSession(renaming.id, title);
6990
7190
  renaming = null;
6991
- }, "o27", $scope6_id),
7191
+ }, "q27", $scope6_id),
6992
7192
  onCancel: _resume(function() {
6993
7193
  renaming = null;
6994
- }, "o28", $scope6_id)
7194
+ }, "q28", $scope6_id)
6995
7195
  });
6996
7196
  writeScope($scope6_id, { a: _existing_scope($childScope4) });
6997
7197
  return 0;
6998
7198
  }
6999
7199
  }, $scope0_id, "i");
7000
7200
  _html("</div>");
7001
- _script($scope0_id, "o31");
7002
- _script($scope0_id, "o32");
7003
- _script($scope0_id, "o33");
7004
- _script($scope0_id, "o34");
7005
- _script($scope0_id, "o35");
7201
+ _script($scope0_id, "q31");
7202
+ _script($scope0_id, "q32");
7203
+ _script($scope0_id, "q33");
7204
+ _script($scope0_id, "q34");
7205
+ _script($scope0_id, "q35");
7006
7206
  writeScope($scope0_id, {
7007
7207
  m: input.allStatus,
7008
7208
  n: input.active,
@@ -21497,4 +21697,4 @@ server.listen(port, () => {
21497
21697
  //#endregion
21498
21698
  export {};
21499
21699
 
21500
- ;var __MARKO_MANIFEST__={"esfPH6H":{"block":[2,"stylesheet#/assets/index-C_YqjXeW.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/index-C_YqjXeW.css\"",">"],"defer":[2,"/assets/index-BnMs3duC.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/index-BnMs3duC.js\"","></script>"]}};
21700
+ ;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-DW02FbhG.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/index-DW02FbhG.js\"","></script>"]}};