@dylanpiercey/work 0.0.8 → 0.0.9
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.
- package/dist/index.mjs +616 -436
- package/dist/public/assets/{_kFADAUVE.js → _-55Xel81.js} +2 -2
- package/dist/public/assets/{_kFADAUVE.js.map → _-55Xel81.js.map} +1 -1
- package/dist/public/assets/{_UIRw8u-5.js → _-73K0jRE.js} +2 -2
- package/dist/public/assets/{_UIRw8u-5.js.map → _-73K0jRE.js.map} +1 -1
- package/dist/public/assets/{_MY6ncoWy.js → _0_OX1kW7.js} +2 -2
- package/dist/public/assets/{_MY6ncoWy.js.map → _0_OX1kW7.js.map} +1 -1
- package/dist/public/assets/{_VxrPs6zz2.js → _2phIuyIo2.js} +2 -2
- package/dist/public/assets/{_VxrPs6zz2.js.map → _2phIuyIo2.js.map} +1 -1
- package/dist/public/assets/{_BZj2u1P8.js → _3lpetwqV.js} +2 -2
- package/dist/public/assets/{_BZj2u1P8.js.map → _3lpetwqV.js.map} +1 -1
- package/dist/public/assets/{_lFKA9njW2.js → _5WPTFj7l2.js} +2 -2
- package/dist/public/assets/{_lFKA9njW2.js.map → _5WPTFj7l2.js.map} +1 -1
- package/dist/public/assets/{_CraDhcnw.js → _7wDPFeG9.js} +2 -2
- package/dist/public/assets/{_CraDhcnw.js.map → _7wDPFeG9.js.map} +1 -1
- package/dist/public/assets/{_B6VcGcFS.js → _88LLH6RY.js} +2 -2
- package/dist/public/assets/{_B6VcGcFS.js.map → _88LLH6RY.js.map} +1 -1
- package/dist/public/assets/{_ByVsRQi_.js → _B57HhNZL.js} +2 -2
- package/dist/public/assets/{_ByVsRQi_.js.map → _B57HhNZL.js.map} +1 -1
- package/dist/public/assets/{_BRmBVeT02.js → _B8tT5VjG2.js} +2 -2
- package/dist/public/assets/{_BRmBVeT02.js.map → _B8tT5VjG2.js.map} +1 -1
- package/dist/public/assets/{_ZXbjL1cp.js → _BCV86zXw.js} +2 -2
- package/dist/public/assets/{_ZXbjL1cp.js.map → _BCV86zXw.js.map} +1 -1
- package/dist/public/assets/{_Cu2ARJ6m2.js → _BH4uiVT52.js} +2 -2
- package/dist/public/assets/{_Cu2ARJ6m2.js.map → _BH4uiVT52.js.map} +1 -1
- package/dist/public/assets/{_BYiCMSp_.js → _BKFS53A_.js} +2 -2
- package/dist/public/assets/{_BYiCMSp_.js.map → _BKFS53A_.js.map} +1 -1
- package/dist/public/assets/{_DNJJM0AE.js → _BQPkk7gE.js} +2 -2
- package/dist/public/assets/{_DNJJM0AE.js.map → _BQPkk7gE.js.map} +1 -1
- package/dist/public/assets/{_Zn6WQhNB.js → _BS8MY6NA.js} +2 -2
- package/dist/public/assets/{_Zn6WQhNB.js.map → _BS8MY6NA.js.map} +1 -1
- package/dist/public/assets/{_ArCUqa6q2.js → _BV7BdgkE2.js} +2 -2
- package/dist/public/assets/{_ArCUqa6q2.js.map → _BV7BdgkE2.js.map} +1 -1
- package/dist/public/assets/{_BZ1vsOtU2.js → _BXe3hS8_2.js} +2 -2
- package/dist/public/assets/{_BZ1vsOtU2.js.map → _BXe3hS8_2.js.map} +1 -1
- package/dist/public/assets/{_CRzez65S.js → _Bab58ETy.js} +2 -2
- package/dist/public/assets/{_CRzez65S.js.map → _Bab58ETy.js.map} +1 -1
- package/dist/public/assets/{_CxREVo2W2.js → _Bdo5QTEH2.js} +2 -2
- package/dist/public/assets/{_CxREVo2W2.js.map → _Bdo5QTEH2.js.map} +1 -1
- package/dist/public/assets/{_BKZkyaFV.js → _BfjNQh7a.js} +2 -2
- package/dist/public/assets/{_BKZkyaFV.js.map → _BfjNQh7a.js.map} +1 -1
- package/dist/public/assets/{_DatWcE_l.js → _BgKdw9kC.js} +2 -2
- package/dist/public/assets/{_DatWcE_l.js.map → _BgKdw9kC.js.map} +1 -1
- package/dist/public/assets/{_Cuarrf-F.js → _BpQ-G-AF.js} +2 -2
- package/dist/public/assets/{_Cuarrf-F.js.map → _BpQ-G-AF.js.map} +1 -1
- package/dist/public/assets/{_CJkEzRYS.js → _BqDMxN-L.js} +2 -2
- package/dist/public/assets/{_CJkEzRYS.js.map → _BqDMxN-L.js.map} +1 -1
- package/dist/public/assets/{_mz-it25q.js → _Bq_9GHxI.js} +2 -2
- package/dist/public/assets/{_mz-it25q.js.map → _Bq_9GHxI.js.map} +1 -1
- package/dist/public/assets/{_KZaj47gf.js → _BvkihIXY.js} +2 -2
- package/dist/public/assets/{_KZaj47gf.js.map → _BvkihIXY.js.map} +1 -1
- package/dist/public/assets/{_BfklLvTH2.js → _C4oMjK0u2.js} +2 -2
- package/dist/public/assets/{_BfklLvTH2.js.map → _C4oMjK0u2.js.map} +1 -1
- package/dist/public/assets/{_DDkF3p8s.js → _C4olLuQJ.js} +2 -2
- package/dist/public/assets/{_DDkF3p8s.js.map → _C4olLuQJ.js.map} +1 -1
- package/dist/public/assets/{_CHnVT46K.js → _C6pzcNUP.js} +2 -2
- package/dist/public/assets/{_CHnVT46K.js.map → _C6pzcNUP.js.map} +1 -1
- package/dist/public/assets/{_d0JPWXs6.js → _C9AzMHu4.js} +2 -2
- package/dist/public/assets/{_d0JPWXs6.js.map → _C9AzMHu4.js.map} +1 -1
- package/dist/public/assets/{_DzcnHy3e2.js → _CE0gqRSP2.js} +2 -2
- package/dist/public/assets/{_DzcnHy3e2.js.map → _CE0gqRSP2.js.map} +1 -1
- package/dist/public/assets/{_Dlqi-FuG.js → _CEyWh8I4.js} +2 -2
- package/dist/public/assets/{_Dlqi-FuG.js.map → _CEyWh8I4.js.map} +1 -1
- package/dist/public/assets/{_Du7L3DNJ2.js → _CFJ_Gbqs2.js} +2 -2
- package/dist/public/assets/{_Du7L3DNJ2.js.map → _CFJ_Gbqs2.js.map} +1 -1
- package/dist/public/assets/{_Yc_Nhrnz.js → _CH9AUL7E.js} +2 -2
- package/dist/public/assets/{_Yc_Nhrnz.js.map → _CH9AUL7E.js.map} +1 -1
- package/dist/public/assets/{_FkD5nJ3p.js → _CLtk_qBT.js} +2 -2
- package/dist/public/assets/{_FkD5nJ3p.js.map → _CLtk_qBT.js.map} +1 -1
- package/dist/public/assets/{_BSK-jOsW2.js → _CNNynxl62.js} +2 -2
- package/dist/public/assets/{_BSK-jOsW2.js.map → _CNNynxl62.js.map} +1 -1
- package/dist/public/assets/{_ClP4oh7a.js → _CRJ5N3b1.js} +2 -2
- package/dist/public/assets/{_ClP4oh7a.js.map → _CRJ5N3b1.js.map} +1 -1
- package/dist/public/assets/{_5FPBKXmV.js → _CUHqwbp6.js} +2 -2
- package/dist/public/assets/{_5FPBKXmV.js.map → _CUHqwbp6.js.map} +1 -1
- package/dist/public/assets/{_lq6Mp4lM.js → _Cb64F8Xd.js} +2 -2
- package/dist/public/assets/{_lq6Mp4lM.js.map → _Cb64F8Xd.js.map} +1 -1
- package/dist/public/assets/{_ljVbYQrb.js → _CgRB9uAQ.js} +2 -2
- package/dist/public/assets/{_ljVbYQrb.js.map → _CgRB9uAQ.js.map} +1 -1
- package/dist/public/assets/{_Doc3xk-E2.js → _CgkmkIJ92.js} +2 -2
- package/dist/public/assets/{_Doc3xk-E2.js.map → _CgkmkIJ92.js.map} +1 -1
- package/dist/public/assets/{_DpCf_atU.js → _CrOembp8.js} +2 -2
- package/dist/public/assets/{_DpCf_atU.js.map → _CrOembp8.js.map} +1 -1
- package/dist/public/assets/{_C7N-1UWP.js → _CtFaFUga.js} +2 -2
- package/dist/public/assets/{_C7N-1UWP.js.map → _CtFaFUga.js.map} +1 -1
- package/dist/public/assets/{_CfcBd2P72.js → _CuFOgpWA2.js} +2 -2
- package/dist/public/assets/{_CfcBd2P72.js.map → _CuFOgpWA2.js.map} +1 -1
- package/dist/public/assets/{_PLe738he.js → _D0Ts18KW.js} +2 -2
- package/dist/public/assets/{_PLe738he.js.map → _D0Ts18KW.js.map} +1 -1
- package/dist/public/assets/{_BBbOvFnN.js → _D0Ttdg97.js} +2 -2
- package/dist/public/assets/{_BBbOvFnN.js.map → _D0Ttdg97.js.map} +1 -1
- package/dist/public/assets/{_DPOTu7jR.js → _D8MgFd9S.js} +2 -2
- package/dist/public/assets/{_DPOTu7jR.js.map → _D8MgFd9S.js.map} +1 -1
- package/dist/public/assets/{_CLKEqaNz.js → _DAwzmJAZ.js} +2 -2
- package/dist/public/assets/{_CLKEqaNz.js.map → _DAwzmJAZ.js.map} +1 -1
- package/dist/public/assets/{_mwzbhNSE2.js → _DB6AYvKF2.js} +2 -2
- package/dist/public/assets/{_mwzbhNSE2.js.map → _DB6AYvKF2.js.map} +1 -1
- package/dist/public/assets/{_CVTm837N.js → _DE81xtaZ.js} +2 -2
- package/dist/public/assets/{_CVTm837N.js.map → _DE81xtaZ.js.map} +1 -1
- package/dist/public/assets/{_BdjtVej2.js → _DEXcart7.js} +2 -2
- package/dist/public/assets/{_BdjtVej2.js.map → _DEXcart7.js.map} +1 -1
- package/dist/public/assets/{_C7qjJec5.js → _DIZ6bu7o.js} +2 -2
- package/dist/public/assets/{_C7qjJec5.js.map → _DIZ6bu7o.js.map} +1 -1
- package/dist/public/assets/{_x39l6v9i.js → _DJhn0lLx.js} +2 -2
- package/dist/public/assets/{_x39l6v9i.js.map → _DJhn0lLx.js.map} +1 -1
- package/dist/public/assets/{_DsdF3uU02.js → _DUnCYX_j2.js} +2 -2
- package/dist/public/assets/{_DsdF3uU02.js.map → _DUnCYX_j2.js.map} +1 -1
- package/dist/public/assets/{_DWpL0T8T.js → _DX6DEPmj.js} +2 -2
- package/dist/public/assets/{_DWpL0T8T.js.map → _DX6DEPmj.js.map} +1 -1
- package/dist/public/assets/{_CghRvWTz2.js → _D_ecb7DE2.js} +2 -2
- package/dist/public/assets/{_CghRvWTz2.js.map → _D_ecb7DE2.js.map} +1 -1
- package/dist/public/assets/{_CiLa9EZD.js → _DbcMovdI.js} +2 -2
- package/dist/public/assets/{_CiLa9EZD.js.map → _DbcMovdI.js.map} +1 -1
- package/dist/public/assets/{_Dmvx0mCq.js → _DfNtk5CQ.js} +2 -2
- package/dist/public/assets/{_Dmvx0mCq.js.map → _DfNtk5CQ.js.map} +1 -1
- package/dist/public/assets/{_B8hRUvsg2.js → _Dgwkmp3z2.js} +2 -2
- package/dist/public/assets/{_B8hRUvsg2.js.map → _Dgwkmp3z2.js.map} +1 -1
- package/dist/public/assets/{_BKayEvX0.js → _DgwlT66k.js} +2 -2
- package/dist/public/assets/{_BKayEvX0.js.map → _DgwlT66k.js.map} +1 -1
- package/dist/public/assets/{_tEWpbjjW.js → _DlgN2kEE.js} +2 -2
- package/dist/public/assets/{_tEWpbjjW.js.map → _DlgN2kEE.js.map} +1 -1
- package/dist/public/assets/{_mIMmc1-4.js → _DmoK7wKA.js} +2 -2
- package/dist/public/assets/{_mIMmc1-4.js.map → _DmoK7wKA.js.map} +1 -1
- package/dist/public/assets/{_VQFhNNlC.js → _DohC64nA.js} +2 -2
- package/dist/public/assets/{_VQFhNNlC.js.map → _DohC64nA.js.map} +1 -1
- package/dist/public/assets/{_CDqUkraW.js → _DrtiB7iS.js} +2 -2
- package/dist/public/assets/{_CDqUkraW.js.map → _DrtiB7iS.js.map} +1 -1
- package/dist/public/assets/{_8JbqtAcO2.js → _DsJHtXCw2.js} +2 -2
- package/dist/public/assets/{_8JbqtAcO2.js.map → _DsJHtXCw2.js.map} +1 -1
- package/dist/public/assets/{_1sfledaC2.js → _DtJOtiYn2.js} +2 -2
- package/dist/public/assets/{_1sfledaC2.js.map → _DtJOtiYn2.js.map} +1 -1
- package/dist/public/assets/{_BzzAJ7NO.js → _DvQrzBXV.js} +2 -2
- package/dist/public/assets/{_BzzAJ7NO.js.map → _DvQrzBXV.js.map} +1 -1
- package/dist/public/assets/{_CEhaT_yw.js → _DvRMLfAr.js} +2 -2
- package/dist/public/assets/{_CEhaT_yw.js.map → _DvRMLfAr.js.map} +1 -1
- package/dist/public/assets/{_DbScTuHX.js → _W9pIZN2H.js} +2 -2
- package/dist/public/assets/{_DbScTuHX.js.map → _W9pIZN2H.js.map} +1 -1
- package/dist/public/assets/{_B3wDsGH_.js → _WWfkY3yQ.js} +2 -2
- package/dist/public/assets/{_B3wDsGH_.js.map → _WWfkY3yQ.js.map} +1 -1
- package/dist/public/assets/{_9T4KD6Cx2.js → _gACclczL2.js} +2 -2
- package/dist/public/assets/{_9T4KD6Cx2.js.map → _gACclczL2.js.map} +1 -1
- package/dist/public/assets/{_ClFfFrAg2.js → _iKqe8fVJ2.js} +2 -2
- package/dist/public/assets/{_ClFfFrAg2.js.map → _iKqe8fVJ2.js.map} +1 -1
- package/dist/public/assets/{_BA1Flvg32.js → _jPW5BUHX2.js} +2 -2
- package/dist/public/assets/{_BA1Flvg32.js.map → _jPW5BUHX2.js.map} +1 -1
- package/dist/public/assets/{_BENakU6F2.js → _jiFYFr7O2.js} +2 -2
- package/dist/public/assets/{_BENakU6F2.js.map → _jiFYFr7O2.js.map} +1 -1
- package/dist/public/assets/{_CGshnRGq2.js → _reyWd1VB2.js} +2 -2
- package/dist/public/assets/{_CGshnRGq2.js.map → _reyWd1VB2.js.map} +1 -1
- package/dist/public/assets/{index-C_YqjXeW.css → index-DaxFUqZq.css} +1 -1
- package/dist/public/assets/{index-BnMs3duC.js → index-_W4Ej1WQ.js} +56 -55
- package/dist/public/assets/index-_W4Ej1WQ.js.map +1 -0
- package/package.json +1 -1
- 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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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)), "
|
|
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
|
-
}, "
|
|
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, "
|
|
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
|
-
}, "
|
|
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, "
|
|
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, "
|
|
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, "
|
|
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, "
|
|
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
|
-
}, "
|
|
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, "
|
|
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, "
|
|
3716
|
-
_script($scope0_id, "
|
|
3717
|
-
_script($scope0_id, "
|
|
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("
|
|
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("
|
|
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
|
-
}, "
|
|
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
|
-
}, "
|
|
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
|
-
}, "
|
|
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
|
-
}, "
|
|
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
|
-
}, "
|
|
3861
|
-
_script($scope6_id, "
|
|
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, "
|
|
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, "
|
|
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), "
|
|
3909
|
-
_script($scope0_id, "
|
|
3910
|
-
_script($scope0_id, "
|
|
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("
|
|
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, "
|
|
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, "
|
|
3963
|
-
_script($scope0_id, "
|
|
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("
|
|
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
|
-
}, "
|
|
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
|
-
}, "
|
|
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
|
-
}, "
|
|
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
|
-
}, "
|
|
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
|
-
}, "
|
|
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
|
-
}, "
|
|
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
|
-
}, "
|
|
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
|
-
}, "
|
|
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
|
-
}, "
|
|
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
|
-
}, "
|
|
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
|
-
}, "
|
|
4134
|
-
footer: attrTag({ content: _content_resume("
|
|
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, "
|
|
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, "
|
|
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, "
|
|
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("
|
|
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, "
|
|
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, "
|
|
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, "
|
|
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, "
|
|
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, "
|
|
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
|
-
}, "
|
|
4316
|
+
}, "g11", $scope2_id),
|
|
4317
4317
|
onError: _resume(function(message) {
|
|
4318
4318
|
error = message;
|
|
4319
|
-
}, "
|
|
4319
|
+
}, "g12", $scope2_id),
|
|
4320
4320
|
refreshingChange: _resume(function(busy) {
|
|
4321
4321
|
catalogRefreshing = busy;
|
|
4322
|
-
}, "
|
|
4322
|
+
}, "g13", $scope2_id)
|
|
4323
4323
|
});
|
|
4324
|
-
_var($scope2_id, "k", $childScope, "
|
|
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, "
|
|
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, "
|
|
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, "
|
|
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, "
|
|
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("
|
|
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
|
-
}, "
|
|
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
|
-
}, "
|
|
4450
|
+
}, "i2", $scope0_id);
|
|
4451
4451
|
const removeRepo = _resume((fullName) => {
|
|
4452
4452
|
selected = selected.filter((r) => r.fullName !== fullName);
|
|
4453
|
-
}, "
|
|
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
|
-
}, "
|
|
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
|
-
}, "
|
|
4499
|
-
footer: attrTag({ content: _content_resume("
|
|
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, "
|
|
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("
|
|
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, "
|
|
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
|
-
}, "
|
|
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, "
|
|
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
|
-
}, "
|
|
4559
|
+
}, "i6", $scope2_id),
|
|
4560
4560
|
onError: _resume(function(message) {
|
|
4561
4561
|
error = message;
|
|
4562
|
-
}, "
|
|
4562
|
+
}, "i7", $scope2_id),
|
|
4563
4563
|
refreshingChange: _resume(function(v) {
|
|
4564
4564
|
catalogRefreshing = v;
|
|
4565
|
-
}, "
|
|
4565
|
+
}, "i8", $scope2_id)
|
|
4566
4566
|
});
|
|
4567
|
-
_var($scope2_id, "h", $childScope, "
|
|
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, "
|
|
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, "
|
|
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("
|
|
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("
|
|
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
|
-
}, "
|
|
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, "
|
|
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, "
|
|
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, "
|
|
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, "
|
|
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, "
|
|
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
|
-
}, "
|
|
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, "
|
|
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, "
|
|
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, "
|
|
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("
|
|
4930
|
+
var icon_sidebar_collapse_default = _template("G", (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("
|
|
4947
|
+
var icon_sidebar_default = _template("H", (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("
|
|
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("
|
|
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("
|
|
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("
|
|
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
|
-
}, "
|
|
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, "
|
|
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
|
-
}, "
|
|
5106
|
+
}, "n1", $scope1_id),
|
|
5107
5107
|
onManage: _resume(function() {
|
|
5108
5108
|
drawerOpen = false;
|
|
5109
5109
|
input.onManage?.(wsId);
|
|
5110
|
-
}, "
|
|
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
|
-
}, "
|
|
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
|
-
}, "
|
|
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
|
-
}, "
|
|
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
|
-
}, "
|
|
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), "
|
|
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
|
-
}, "
|
|
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
|
-
}, "
|
|
5195
|
+
}, "n9", $scope3_id)
|
|
5196
5196
|
});
|
|
5197
5197
|
_html(`</span>${_el_resume($scope3_id, "a")}`);
|
|
5198
|
-
_script($scope3_id, "
|
|
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
|
-
}, "
|
|
5238
|
+
}, "n10", $scope4_id),
|
|
5239
5239
|
onManage: _resume(function() {
|
|
5240
5240
|
railHover = null;
|
|
5241
5241
|
input.onManage?.(hoverId);
|
|
5242
|
-
}, "
|
|
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
|
-
}, "
|
|
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
|
-
}, "
|
|
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
|
-
}, "
|
|
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
|
-
}, "
|
|
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, "
|
|
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, "
|
|
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, "
|
|
5336
|
-
_script($scope0_id, "
|
|
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("
|
|
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,44 @@ 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/file-filter.marko
|
|
5533
|
+
var file_filter_default = _template("f", (input) => {
|
|
5534
|
+
_scope_reason();
|
|
5535
|
+
const $scope0_id = _scope_id();
|
|
5536
|
+
let draft = input.value || "";
|
|
5537
|
+
const box = { timer: 0 };
|
|
5538
|
+
const flush = _resume(() => {
|
|
5539
|
+
if (box.timer) {
|
|
5540
|
+
clearTimeout(box.timer);
|
|
5541
|
+
box.timer = 0;
|
|
5542
|
+
}
|
|
5543
|
+
input.onChange(draft);
|
|
5544
|
+
}, "f1", $scope0_id);
|
|
5545
|
+
const type = _resume((v) => {
|
|
5546
|
+
draft = v;
|
|
5547
|
+
if (box.timer) clearTimeout(box.timer);
|
|
5548
|
+
if (!v) {
|
|
5549
|
+
box.timer = 0;
|
|
5550
|
+
input.onChange("");
|
|
5551
|
+
return;
|
|
5552
|
+
}
|
|
5553
|
+
box.timer = setTimeout(flush, 150);
|
|
5554
|
+
}, "f2", $scope0_id);
|
|
5555
|
+
_html(`<div class=wrap><input${_attr_input_value($scope0_id, "a", draft, _resume(function(v) {
|
|
5556
|
+
type(v);
|
|
5557
|
+
}, "f0", $scope0_id))} class=file-filter type=search placeholder="Filter files… (globs, !excludes)" aria-label="Filter files">${_el_resume($scope0_id, "a")}</div>`);
|
|
5558
|
+
_script($scope0_id, "f3");
|
|
5559
|
+
_script($scope0_id, "f4");
|
|
5560
|
+
writeScope($scope0_id, {
|
|
5561
|
+
e: input.onChange,
|
|
5562
|
+
f: draft,
|
|
5563
|
+
h: box.timer,
|
|
5564
|
+
j: flush,
|
|
5565
|
+
l: type
|
|
5566
|
+
});
|
|
5567
|
+
_resume_branch($scope0_id);
|
|
5568
|
+
});
|
|
5531
5569
|
_template("c", (input) => {
|
|
5532
5570
|
_scope_reason();
|
|
5533
5571
|
const $scope0_id = _scope_id();
|
|
@@ -5547,18 +5585,94 @@ _template("c", (input) => {
|
|
|
5547
5585
|
_resume_branch($scope0_id);
|
|
5548
5586
|
});
|
|
5549
5587
|
//#endregion
|
|
5588
|
+
//#region src/tags/diff-find.marko
|
|
5589
|
+
var searchDiffFiles;
|
|
5590
|
+
var setSearchPaint;
|
|
5591
|
+
var diff_find_default = _template("d", (input) => {
|
|
5592
|
+
_scope_reason();
|
|
5593
|
+
const $scope0_id = _scope_id();
|
|
5594
|
+
let query = "";
|
|
5595
|
+
let hi = 0;
|
|
5596
|
+
const hits = searchDiffFiles(input.files, query);
|
|
5597
|
+
const at = hits.length ? Math.min(hi, hits.length - 1) : -1;
|
|
5598
|
+
const box = {
|
|
5599
|
+
timer: 0,
|
|
5600
|
+
tick: 0
|
|
5601
|
+
};
|
|
5602
|
+
const emit = _resume((q, i) => {
|
|
5603
|
+
const list = searchDiffFiles(input.files, q);
|
|
5604
|
+
const keys = [...new Set(list.map((h) => h.key))];
|
|
5605
|
+
if (!list.length) {
|
|
5606
|
+
hi = 0;
|
|
5607
|
+
setSearchPaint(q, null);
|
|
5608
|
+
input.onState({
|
|
5609
|
+
query: q,
|
|
5610
|
+
hit: null,
|
|
5611
|
+
keys
|
|
5612
|
+
});
|
|
5613
|
+
return;
|
|
5614
|
+
}
|
|
5615
|
+
hi = (i % list.length + list.length) % list.length;
|
|
5616
|
+
const hit = list[hi];
|
|
5617
|
+
setSearchPaint(q, hit);
|
|
5618
|
+
input.onState({
|
|
5619
|
+
query: q,
|
|
5620
|
+
hit,
|
|
5621
|
+
keys
|
|
5622
|
+
});
|
|
5623
|
+
}, "d1", $scope0_id);
|
|
5624
|
+
const type = _resume((v) => {
|
|
5625
|
+
query = v;
|
|
5626
|
+
hi = 0;
|
|
5627
|
+
setSearchPaint(v, searchDiffFiles(input.files, v)[0] ?? null);
|
|
5628
|
+
if (box.timer) clearTimeout(box.timer);
|
|
5629
|
+
box.timer = setTimeout(() => {
|
|
5630
|
+
box.timer = 0;
|
|
5631
|
+
emit(v, 0);
|
|
5632
|
+
}, 80);
|
|
5633
|
+
}, "d2", $scope0_id);
|
|
5634
|
+
const next = _resume((dir) => {
|
|
5635
|
+
if (box.timer) {
|
|
5636
|
+
clearTimeout(box.timer);
|
|
5637
|
+
box.timer = 0;
|
|
5638
|
+
}
|
|
5639
|
+
emit(query, (at < 0 ? 0 : at) + dir);
|
|
5640
|
+
}, "d3", $scope0_id);
|
|
5641
|
+
_html(`<div class=find-bar><input${_attr_input_value($scope0_id, "a", query, _resume(function(v) {
|
|
5642
|
+
type(v);
|
|
5643
|
+
}, "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>`);
|
|
5644
|
+
_script($scope0_id, "d4");
|
|
5645
|
+
_script($scope0_id, "d5");
|
|
5646
|
+
writeScope($scope0_id, {
|
|
5647
|
+
h: input.files,
|
|
5648
|
+
i: input.onState,
|
|
5649
|
+
j: input.onClose,
|
|
5650
|
+
k: input.tick,
|
|
5651
|
+
l: query,
|
|
5652
|
+
n: hi,
|
|
5653
|
+
q: hits?.length,
|
|
5654
|
+
s: at,
|
|
5655
|
+
v: box.timer,
|
|
5656
|
+
w: box.tick,
|
|
5657
|
+
x: emit,
|
|
5658
|
+
a0: type,
|
|
5659
|
+
a2: next
|
|
5660
|
+
});
|
|
5661
|
+
_resume_branch($scope0_id);
|
|
5662
|
+
});
|
|
5663
|
+
//#endregion
|
|
5550
5664
|
//#region src/tags/diff-view.marko
|
|
5551
5665
|
var api$3;
|
|
5552
5666
|
var copyText;
|
|
5553
5667
|
var getTermDims;
|
|
5554
5668
|
var makeFileFilter;
|
|
5555
|
-
var diff_view_default = _template("
|
|
5669
|
+
var diff_view_default = _template("e", (input) => {
|
|
5556
5670
|
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
5671
|
const $scope0_id = _scope_id();
|
|
5558
5672
|
const $collapsedDirs__closures = /* @__PURE__ */ new Set();
|
|
5559
5673
|
const $viewed__closures = /* @__PURE__ */ new Set();
|
|
5560
5674
|
const $commentsByFile__closures = /* @__PURE__ */ new Set();
|
|
5561
|
-
const $
|
|
5675
|
+
const $shownByRepo__closures = /* @__PURE__ */ new Set();
|
|
5562
5676
|
const $input_sessions_0_title__closures = /* @__PURE__ */ new Set();
|
|
5563
5677
|
const $input_sessions_0_agent__closures = /* @__PURE__ */ new Set();
|
|
5564
5678
|
const $sending__closures = /* @__PURE__ */ new Set();
|
|
@@ -5568,7 +5682,9 @@ var diff_view_default = _template("d", (input) => {
|
|
|
5568
5682
|
const $draft__closures = /* @__PURE__ */ new Set();
|
|
5569
5683
|
const $saveComment2__closures = /* @__PURE__ */ new Set();
|
|
5570
5684
|
const $removeComment2__closures = /* @__PURE__ */ new Set();
|
|
5685
|
+
const $shownKeySet__closures = /* @__PURE__ */ new Set();
|
|
5571
5686
|
const $toggleViewed2__closures = /* @__PURE__ */ new Set();
|
|
5687
|
+
const $findState_hit_repo__closures = /* @__PURE__ */ new Set();
|
|
5572
5688
|
const $repoList_length__closures = /* @__PURE__ */ new Set();
|
|
5573
5689
|
let repos = null;
|
|
5574
5690
|
let comments = [];
|
|
@@ -5582,6 +5698,13 @@ var diff_view_default = _template("d", (input) => {
|
|
|
5582
5698
|
let fileFilter = "";
|
|
5583
5699
|
let uncommitted = diffUncommitted();
|
|
5584
5700
|
let treeOpen = diffTreeOpen();
|
|
5701
|
+
let findOpen = false;
|
|
5702
|
+
let findTick = 0;
|
|
5703
|
+
let findState = {
|
|
5704
|
+
query: "",
|
|
5705
|
+
hit: null,
|
|
5706
|
+
keys: []
|
|
5707
|
+
};
|
|
5585
5708
|
let collapsedDirs = /* @__PURE__ */ new Set();
|
|
5586
5709
|
let collapsedRepos = /* @__PURE__ */ new Set();
|
|
5587
5710
|
let dismissedDrift = /* @__PURE__ */ new Set();
|
|
@@ -5589,7 +5712,7 @@ var diff_view_default = _template("d", (input) => {
|
|
|
5589
5712
|
const next = new Set(collapsedRepos);
|
|
5590
5713
|
if (!next.delete(worktree)) next.add(worktree);
|
|
5591
5714
|
collapsedRepos = next;
|
|
5592
|
-
}, "
|
|
5715
|
+
}, "e2", $scope0_id);
|
|
5593
5716
|
const nearBox = {
|
|
5594
5717
|
io: null,
|
|
5595
5718
|
cbs: null
|
|
@@ -5604,7 +5727,7 @@ var diff_view_default = _template("d", (input) => {
|
|
|
5604
5727
|
}, { rootMargin: "600px 0px" });
|
|
5605
5728
|
nearBox.cbs.set(el, cb);
|
|
5606
5729
|
nearBox.io.observe(el);
|
|
5607
|
-
}, "
|
|
5730
|
+
}, "e3", $scope0_id);
|
|
5608
5731
|
const load = _resume(async (dirty = uncommitted, refresh = false) => {
|
|
5609
5732
|
loading = true;
|
|
5610
5733
|
error = null;
|
|
@@ -5622,14 +5745,14 @@ var diff_view_default = _template("d", (input) => {
|
|
|
5622
5745
|
error = String(err.message || err);
|
|
5623
5746
|
}
|
|
5624
5747
|
loading = false;
|
|
5625
|
-
}, "
|
|
5748
|
+
}, "e4", $scope0_id);
|
|
5626
5749
|
const loadReview = _resume(async () => {
|
|
5627
5750
|
try {
|
|
5628
5751
|
const reviewData = await api$3(`/api/workspaces/${input.workspaceId}/review`);
|
|
5629
5752
|
comments = reviewData.comments || [];
|
|
5630
5753
|
viewed = new Set(reviewData.viewed || []);
|
|
5631
5754
|
} catch {}
|
|
5632
|
-
}, "
|
|
5755
|
+
}, "e5", $scope0_id);
|
|
5633
5756
|
const repoList = repos || [];
|
|
5634
5757
|
const allFiles = repoList.flatMap((r) => r.files.map((f) => ({
|
|
5635
5758
|
...f,
|
|
@@ -5637,8 +5760,12 @@ var diff_view_default = _template("d", (input) => {
|
|
|
5637
5760
|
key: `${r.worktree}/${f.path}`
|
|
5638
5761
|
})));
|
|
5639
5762
|
const fileMatch = makeFileFilter(fileFilter);
|
|
5640
|
-
const
|
|
5641
|
-
const
|
|
5763
|
+
const fileFiltered = allFiles.filter((f) => fileMatch(f.key));
|
|
5764
|
+
const findKeys = findState.query.trim() ? new Set(findState.keys) : null;
|
|
5765
|
+
const shownFiles = findKeys ? fileFiltered.filter((f) => findKeys.has(f.key) || f.key === findState.hit?.key) : fileFiltered;
|
|
5766
|
+
const shownKeySet = new Set(shownFiles.map((f) => f.key));
|
|
5767
|
+
const filesByRepo = new Map(repoList.map((r) => [r.id, allFiles.filter((f) => f.repo === r.id)]));
|
|
5768
|
+
const shownByRepo = new Map(repoList.map((r) => [r.id, shownFiles.filter((f) => f.repo === r.id)]));
|
|
5642
5769
|
const commentsByFile = (() => {
|
|
5643
5770
|
const map = /* @__PURE__ */ new Map();
|
|
5644
5771
|
for (const c of comments) {
|
|
@@ -5648,15 +5775,15 @@ var diff_view_default = _template("d", (input) => {
|
|
|
5648
5775
|
return map;
|
|
5649
5776
|
})();
|
|
5650
5777
|
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), "
|
|
5778
|
+
const localDiffers = _resume((repo) => !!repo.pr && !!repo.localHead && (repo.localHead !== repo.head || repo.branch !== repo.pr.headRefName), "e6");
|
|
5652
5779
|
const driftRepos = repoList.filter((r) => r.githubDrift && !dismissedDrift.has(r.id));
|
|
5653
5780
|
const dismissDrift = _resume(() => {
|
|
5654
5781
|
dismissedDrift = /* @__PURE__ */ new Set([...dismissedDrift, ...driftRepos.map((r) => r.id)]);
|
|
5655
|
-
}, "
|
|
5782
|
+
}, "e7", $scope0_id);
|
|
5656
5783
|
const reload = _resume(() => {
|
|
5657
5784
|
dismissedDrift = /* @__PURE__ */ new Set();
|
|
5658
5785
|
return load(uncommitted, true);
|
|
5659
|
-
}, "
|
|
5786
|
+
}, "e8", $scope0_id);
|
|
5660
5787
|
const toggleViewed = _resume((key) => {
|
|
5661
5788
|
const next = new Set(viewed);
|
|
5662
5789
|
const isViewed = !next.has(key);
|
|
@@ -5674,7 +5801,7 @@ var diff_view_default = _template("d", (input) => {
|
|
|
5674
5801
|
}).catch(() => {
|
|
5675
5802
|
error = "Saving viewed state failed — it may reset on reload.";
|
|
5676
5803
|
});
|
|
5677
|
-
}, "
|
|
5804
|
+
}, "e9", $scope0_id);
|
|
5678
5805
|
const saveComment = _resume(async (file, text) => {
|
|
5679
5806
|
const range = draft;
|
|
5680
5807
|
draft = null;
|
|
@@ -5696,11 +5823,11 @@ var diff_view_default = _template("d", (input) => {
|
|
|
5696
5823
|
} catch (err) {
|
|
5697
5824
|
error = String(err.message || err);
|
|
5698
5825
|
}
|
|
5699
|
-
}, "
|
|
5826
|
+
}, "e10", $scope0_id);
|
|
5700
5827
|
const removeComment = _resume(async (id) => {
|
|
5701
5828
|
comments = comments.filter((c) => c.id !== id);
|
|
5702
5829
|
await fetch(`/api/review-comments/${id}`, { method: "DELETE" });
|
|
5703
|
-
}, "
|
|
5830
|
+
}, "e11", $scope0_id);
|
|
5704
5831
|
const clearComments = _resume(async () => {
|
|
5705
5832
|
comments = [];
|
|
5706
5833
|
draft = null;
|
|
@@ -5709,7 +5836,7 @@ var diff_view_default = _template("d", (input) => {
|
|
|
5709
5836
|
headers: { "content-type": "application/json" },
|
|
5710
5837
|
body: JSON.stringify({ action: "clear" })
|
|
5711
5838
|
});
|
|
5712
|
-
}, "
|
|
5839
|
+
}, "e12", $scope0_id);
|
|
5713
5840
|
const copyMarkdown = _resume(async () => {
|
|
5714
5841
|
if (!await copyText(commentMarkdown(comments, repos))) {
|
|
5715
5842
|
error = "Copy failed — clipboard needs HTTPS on this browser.";
|
|
@@ -5720,7 +5847,7 @@ var diff_view_default = _template("d", (input) => {
|
|
|
5720
5847
|
copied = false;
|
|
5721
5848
|
}, 1500);
|
|
5722
5849
|
await clearComments();
|
|
5723
|
-
}, "
|
|
5850
|
+
}, "e13", $scope0_id);
|
|
5724
5851
|
const sendTo = _resume(async (sessionId) => {
|
|
5725
5852
|
if (!sessionId) return;
|
|
5726
5853
|
sending = true;
|
|
@@ -5740,25 +5867,33 @@ var diff_view_default = _template("d", (input) => {
|
|
|
5740
5867
|
error = String(err.message || err);
|
|
5741
5868
|
sending = false;
|
|
5742
5869
|
}
|
|
5743
|
-
}, "
|
|
5870
|
+
}, "e14", $scope0_id);
|
|
5744
5871
|
const jumpTo = _resume((key) => {
|
|
5745
5872
|
const el = ((scrollEl) => scrollEl())(_el_read_error).querySelector(`details[data-key="${CSS.escape(key)}"]`);
|
|
5746
5873
|
if (el) {
|
|
5747
5874
|
el.open = true;
|
|
5748
5875
|
el.scrollIntoView({ block: "start" });
|
|
5749
5876
|
}
|
|
5750
|
-
}, "
|
|
5877
|
+
}, "e15", $scope0_id);
|
|
5878
|
+
const openFind = _resume(() => {
|
|
5879
|
+
findOpen = true;
|
|
5880
|
+
findTick++;
|
|
5881
|
+
}, "e16", $scope0_id);
|
|
5882
|
+
const onFindState = _resume((next) => {
|
|
5883
|
+
findState = next;
|
|
5884
|
+
if (next.hit) setTimeout(() => jumpTo(next.hit.key), 0);
|
|
5885
|
+
}, "e17", $scope0_id);
|
|
5751
5886
|
_html(`<div class=diff-view><aside class=${!treeOpen ? "\"tree closed\"" : "tree"}>`);
|
|
5752
|
-
_for_of(repoList.filter((r) =>
|
|
5887
|
+
_for_of(repoList.filter((r) => shownByRepo.get(r.id)?.length), (repo) => {
|
|
5753
5888
|
const $scope5_id = _scope_id();
|
|
5754
5889
|
_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
5890
|
_if(() => {
|
|
5756
5891
|
if (!collapsedRepos.has(repo.id)) {
|
|
5757
5892
|
const $scope6_id = _scope_id();
|
|
5758
5893
|
const $if_content4__dirKey__closures = /* @__PURE__ */ new Set();
|
|
5759
|
-
const repoRows = treeRows(
|
|
5760
|
-
const dirKey = _resume((path) => `${repo.id}/${path}`, "
|
|
5761
|
-
const rowDir = _resume((row) => row.kind === "dir" ? row.path : row.file.path.includes("/") ? row.file.path.slice(0, row.file.path.lastIndexOf("/")) : "", "
|
|
5894
|
+
const repoRows = treeRows(shownByRepo.get(repo.id) || []);
|
|
5895
|
+
const dirKey = _resume((path) => `${repo.id}/${path}`, "e18", $scope6_id);
|
|
5896
|
+
const rowDir = _resume((row) => row.kind === "dir" ? row.path : row.file.path.includes("/") ? row.file.path.slice(0, row.file.path.lastIndexOf("/")) : "", "e19");
|
|
5762
5897
|
const hiddenByCollapse = _resume((row) => {
|
|
5763
5898
|
const dir = rowDir(row);
|
|
5764
5899
|
for (const collapsed of collapsedDirs) {
|
|
@@ -5768,29 +5903,29 @@ var diff_view_default = _template("d", (input) => {
|
|
|
5768
5903
|
if (dir === path || dir.startsWith(`${path}/`)) return true;
|
|
5769
5904
|
}
|
|
5770
5905
|
return false;
|
|
5771
|
-
}, "
|
|
5906
|
+
}, "e20", $scope6_id);
|
|
5772
5907
|
_for_of(repoRows, (row) => {
|
|
5773
5908
|
const $scope7_id = _scope_id();
|
|
5774
5909
|
_if(() => {
|
|
5775
5910
|
if (!hiddenByCollapse(row) && row.kind === "dir") {
|
|
5776
|
-
const $
|
|
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($
|
|
5778
|
-
_script($
|
|
5779
|
-
_subscribe($if_content4__dirKey__closures, _subscribe($collapsedDirs__closures, writeScope($
|
|
5911
|
+
const $scope24_id = _scope_id();
|
|
5912
|
+
_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")}`);
|
|
5913
|
+
_script($scope24_id, "e29");
|
|
5914
|
+
_subscribe($if_content4__dirKey__closures, _subscribe($collapsedDirs__closures, writeScope($scope24_id, { Cd0: 1 })));
|
|
5780
5915
|
return 0;
|
|
5781
5916
|
} else if (!hiddenByCollapse(row) && row.kind !== "dir") {
|
|
5782
5917
|
const $scope8_id = _scope_id();
|
|
5783
5918
|
_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
5919
|
_if(() => {
|
|
5785
5920
|
if (commentsByFile.has(row.file.key)) {
|
|
5786
|
-
const $
|
|
5921
|
+
const $scope29_id = _scope_id();
|
|
5787
5922
|
_html("<span class=tree-note>💬</span>");
|
|
5788
|
-
writeScope($
|
|
5923
|
+
writeScope($scope29_id, {});
|
|
5789
5924
|
return 0;
|
|
5790
5925
|
}
|
|
5791
5926
|
}, $scope8_id, "e", 1, 1, 1, 0, 1);
|
|
5792
5927
|
_html(`</button>${_el_resume($scope8_id, "a")}`);
|
|
5793
|
-
_script($scope8_id, "
|
|
5928
|
+
_script($scope8_id, "e30");
|
|
5794
5929
|
_subscribe($commentsByFile__closures, _subscribe($viewed__closures, writeScope($scope8_id, {})));
|
|
5795
5930
|
return 1;
|
|
5796
5931
|
}
|
|
@@ -5806,7 +5941,7 @@ var diff_view_default = _template("d", (input) => {
|
|
|
5806
5941
|
l: row?.name
|
|
5807
5942
|
});
|
|
5808
5943
|
}, (r) => r.kind === "dir" ? `d:${r.path}` : r.file.key, $scope6_id, "a");
|
|
5809
|
-
_subscribe($
|
|
5944
|
+
_subscribe($shownByRepo__closures, _subscribe($collapsedDirs__closures, writeScope($scope6_id, {
|
|
5810
5945
|
c: dirKey,
|
|
5811
5946
|
d: rowDir,
|
|
5812
5947
|
f: hiddenByCollapse,
|
|
@@ -5816,7 +5951,7 @@ var diff_view_default = _template("d", (input) => {
|
|
|
5816
5951
|
}
|
|
5817
5952
|
}, $scope5_id, "d");
|
|
5818
5953
|
_html("</div>");
|
|
5819
|
-
_script($scope5_id, "
|
|
5954
|
+
_script($scope5_id, "e31");
|
|
5820
5955
|
writeScope($scope5_id, { g: repo?.id });
|
|
5821
5956
|
}, "id", $scope0_id, "a", 1, 1, 1, "</aside>", 1);
|
|
5822
5957
|
_html("<div class=diff-col><div class=diff-head>");
|
|
@@ -5826,7 +5961,7 @@ var diff_view_default = _template("d", (input) => {
|
|
|
5826
5961
|
_html("<button class=icon-btn title=\"Back to terminal\">");
|
|
5827
5962
|
icon_back_default({ size: 14 });
|
|
5828
5963
|
_html(`</button>${_el_resume($scope1_id, "a")}`);
|
|
5829
|
-
_script($scope1_id, "
|
|
5964
|
+
_script($scope1_id, "e32");
|
|
5830
5965
|
writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
5831
5966
|
return 0;
|
|
5832
5967
|
}
|
|
@@ -5840,7 +5975,7 @@ var diff_view_default = _template("d", (input) => {
|
|
|
5840
5975
|
if ((input.sessions || []).length === 1) {
|
|
5841
5976
|
const $scope3_id = _scope_id();
|
|
5842
5977
|
_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, "
|
|
5978
|
+
_script($scope3_id, "e33");
|
|
5844
5979
|
_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
5980
|
return 0;
|
|
5846
5981
|
} else if ((input.sessions || []).length) {
|
|
@@ -5848,33 +5983,33 @@ var diff_view_default = _template("d", (input) => {
|
|
|
5848
5983
|
_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
5984
|
_attr_select_value($scope4_id, "c", sendTarget, _resume((_new_sendTarget) => {
|
|
5850
5985
|
sendTarget = _new_sendTarget;
|
|
5851
|
-
}, "
|
|
5986
|
+
}, "e0", $scope4_id), () => {
|
|
5852
5987
|
_html(`<select aria-label="Send comments to session"${_attr("disabled", sending)}>`);
|
|
5853
5988
|
_for_of(input.sessions, (s) => {
|
|
5854
|
-
const $
|
|
5855
|
-
_html(`<option${_attr_option_value(s.id)}>${_escape(s.title || s.agent)}${_el_resume($
|
|
5856
|
-
$si__input_sessions && writeScope($
|
|
5989
|
+
const $scope30_id = _scope_id();
|
|
5990
|
+
_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)}`);
|
|
5991
|
+
$si__input_sessions && writeScope($scope30_id, {});
|
|
5857
5992
|
}, "id", $scope4_id, "c", $sg__input_sessions, 1, $sg__input_sessions, "</select>", 1);
|
|
5858
5993
|
});
|
|
5859
5994
|
_html("</span>");
|
|
5860
|
-
_script($scope4_id, "
|
|
5995
|
+
_script($scope4_id, "e34");
|
|
5861
5996
|
_subscribe($sendTarget__closures, _subscribe($sending__closures, _subscribe($si__input_sessions && $input_sessions__closures, writeScope($scope4_id, {
|
|
5862
5997
|
_: _scope_with_id($scope2_id),
|
|
5863
|
-
|
|
5998
|
+
Cct: 1
|
|
5864
5999
|
}))));
|
|
5865
6000
|
return 1;
|
|
5866
6001
|
}
|
|
5867
6002
|
}, $scope2_id, "c", $sg__input_sessions, $sg__input_sessions, $sg__input_sessions, 0, 1);
|
|
5868
|
-
_script($scope2_id, "
|
|
6003
|
+
_script($scope2_id, "e35");
|
|
5869
6004
|
writeScope($scope2_id, {});
|
|
5870
6005
|
return 0;
|
|
5871
6006
|
}
|
|
5872
6007
|
}, $scope0_id, "g", 1, 1, 1, "</span>");
|
|
5873
6008
|
_if(() => {
|
|
5874
6009
|
if (loading) {
|
|
5875
|
-
const $
|
|
6010
|
+
const $scope31_id = _scope_id();
|
|
5876
6011
|
_html("<span class=\"refresh-chip dim\"><span class=spin></span>Refreshing…</span>");
|
|
5877
|
-
writeScope($
|
|
6012
|
+
writeScope($scope31_id, {});
|
|
5878
6013
|
return 0;
|
|
5879
6014
|
}
|
|
5880
6015
|
}, $scope0_id, "h", 1, 1, 1, 0, 1);
|
|
@@ -5882,69 +6017,75 @@ var diff_view_default = _template("d", (input) => {
|
|
|
5882
6017
|
icon_sidebar_default({ size: 14 });
|
|
5883
6018
|
_html(`</button>${_el_resume($scope0_id, "i")}<button class=${loading ? "\"icon-btn spinning\"" : "icon-btn"} title="Refresh diff"${_attr("disabled", loading)}>`);
|
|
5884
6019
|
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")}
|
|
5886
|
-
|
|
5887
|
-
|
|
6020
|
+
_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")}`);
|
|
6021
|
+
const $childScope = _peek_scope_id();
|
|
6022
|
+
file_filter_default({
|
|
6023
|
+
value: fileFilter,
|
|
6024
|
+
onChange: _resume(function(q) {
|
|
6025
|
+
fileFilter = q;
|
|
6026
|
+
}, "e21", $scope0_id)
|
|
6027
|
+
});
|
|
6028
|
+
_html(`<button class=btn title="Find in the review (⌘/Ctrl+F)">Find</button>${_el_resume($scope0_id, "p")}<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></div><div class=diff-main>`);
|
|
5888
6029
|
_if(() => {
|
|
5889
6030
|
if (error) {
|
|
5890
6031
|
const $scope17_id = _scope_id();
|
|
5891
6032
|
_html(`<p class=toast-error>${_escape(error)}${_el_resume($scope17_id, "a")} <button>×</button>${_el_resume($scope17_id, "b")}</p>`);
|
|
5892
|
-
_script($scope17_id, "
|
|
6033
|
+
_script($scope17_id, "e36");
|
|
5893
6034
|
writeScope($scope17_id, {});
|
|
5894
6035
|
return 0;
|
|
5895
6036
|
}
|
|
5896
|
-
}, $scope0_id, "
|
|
6037
|
+
}, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
5897
6038
|
_for_of(repoList.filter((r) => r.baseMissing), (repo) => {
|
|
5898
6039
|
const $scope20_id = _scope_id();
|
|
5899
6040
|
_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
6041
|
writeScope($scope20_id, {});
|
|
5901
|
-
}, "id", $scope0_id, "
|
|
6042
|
+
}, "id", $scope0_id, "t", 1, 1, 1, 0, 1);
|
|
5902
6043
|
_for_of(repoList.filter((r) => r.contained && r.files.length), (repo) => {
|
|
5903
6044
|
const $scope21_id = _scope_id();
|
|
5904
6045
|
_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
6046
|
writeScope($scope21_id, {});
|
|
5906
|
-
}, "id", $scope0_id, "
|
|
6047
|
+
}, "id", $scope0_id, "u", 1, 1, 1, 0, 1);
|
|
5907
6048
|
_if(() => {
|
|
5908
6049
|
if (driftRepos.length) {
|
|
5909
6050
|
const $scope18_id = _scope_id();
|
|
5910
6051
|
_html("<p class=toast-error>");
|
|
5911
6052
|
_for_of(driftRepos, (repo) => {
|
|
5912
|
-
const $
|
|
5913
|
-
_html(`${_escape(repo.worktree)}${_el_resume($
|
|
5914
|
-
writeScope($
|
|
6053
|
+
const $scope32_id = _scope_id();
|
|
6054
|
+
_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")}.`);
|
|
6055
|
+
writeScope($scope32_id, {});
|
|
5915
6056
|
}, "id", $scope18_id, "a");
|
|
5916
6057
|
_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, "
|
|
6058
|
+
_script($scope18_id, "e37");
|
|
5918
6059
|
writeScope($scope18_id, {});
|
|
5919
6060
|
return 0;
|
|
5920
6061
|
}
|
|
5921
|
-
}, $scope0_id, "
|
|
6062
|
+
}, $scope0_id, "v", 1, 1, 1, 0, 1);
|
|
5922
6063
|
_for_of(repoList.filter(localDiffers), (repo) => {
|
|
5923
6064
|
const $scope22_id = _scope_id();
|
|
5924
6065
|
_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
6066
|
writeScope($scope22_id, {});
|
|
5926
|
-
}, "id", $scope0_id, "
|
|
6067
|
+
}, "id", $scope0_id, "w", 1, 1, 1, 0, 1);
|
|
5927
6068
|
_if(() => {
|
|
5928
6069
|
if (!repos && loading) {
|
|
5929
|
-
const $
|
|
6070
|
+
const $scope33_id = _scope_id();
|
|
5930
6071
|
_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($
|
|
6072
|
+
writeScope($scope33_id, {});
|
|
5932
6073
|
return 0;
|
|
5933
6074
|
}
|
|
5934
|
-
}, $scope0_id, "
|
|
6075
|
+
}, $scope0_id, "x", 1, 1, 1, 0, 1);
|
|
5935
6076
|
_if(() => {
|
|
5936
6077
|
if (repos && !allFiles.length) {
|
|
5937
|
-
const $
|
|
5938
|
-
_html(`<p class="dim center-pad">${repoList.some((r) => r.pr) ? "No file changes on these PRs." : "No changes vs base."}${_el_resume($
|
|
5939
|
-
writeScope($
|
|
6078
|
+
const $scope27_id = _scope_id();
|
|
6079
|
+
_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>`);
|
|
6080
|
+
writeScope($scope27_id, {});
|
|
5940
6081
|
return 0;
|
|
5941
|
-
} else if (repos && !shownFiles.length) {
|
|
6082
|
+
} else if (repos && !shownFiles.length && !findState.hit) {
|
|
5942
6083
|
const $scope19_id = _scope_id();
|
|
5943
|
-
_html(`<p class="dim center-pad"
|
|
6084
|
+
_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
6085
|
writeScope($scope19_id, {});
|
|
5945
6086
|
return 1;
|
|
5946
6087
|
}
|
|
5947
|
-
}, $scope0_id, "
|
|
6088
|
+
}, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
5948
6089
|
_for_of(repoList, (repo) => {
|
|
5949
6090
|
const $scope9_id = _scope_id();
|
|
5950
6091
|
const $for_content3__repo_pr_number__closures = /* @__PURE__ */ new Set();
|
|
@@ -5963,84 +6104,85 @@ var diff_view_default = _template("d", (input) => {
|
|
|
5963
6104
|
const $for_content3__repo_worktree__closures = /* @__PURE__ */ new Set();
|
|
5964
6105
|
const $for_content3__repoFiles__closures = /* @__PURE__ */ new Set();
|
|
5965
6106
|
const repoFiles = filesByRepo.get(repo.id) || [];
|
|
6107
|
+
const shownInRepo = shownByRepo.get(repo.id) || [];
|
|
5966
6108
|
_if(() => {
|
|
5967
6109
|
if (repoFiles.length) {
|
|
5968
6110
|
const $scope10_id = _scope_id();
|
|
5969
|
-
_html(`<section class=repo-section${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}>`);
|
|
6111
|
+
_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
6112
|
_if(() => {
|
|
5971
6113
|
if (repoList.length > 1) {
|
|
5972
|
-
const $
|
|
5973
|
-
_html(`<button class=${collapsedRepos.has(repo.id) ? "\"repo-sep closed\"" : "repo-sep"}><span class=tree-chev>${collapsedRepos.has(repo.id) ? "▸" : "▾"}${_el_resume($
|
|
6114
|
+
const $scope25_id = _scope_id();
|
|
6115
|
+
_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
6116
|
_if(() => {
|
|
5975
6117
|
if (repo.pr) {
|
|
5976
|
-
const $
|
|
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($
|
|
5978
|
-
_script($
|
|
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($
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
6118
|
+
const $scope34_id = _scope_id();
|
|
6119
|
+
_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>`);
|
|
6120
|
+
_script($scope34_id, "e38");
|
|
6121
|
+
_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, {
|
|
6122
|
+
Ca4: 2,
|
|
6123
|
+
Ca5: 2,
|
|
6124
|
+
Ca6: 2
|
|
5983
6125
|
}))))))));
|
|
5984
6126
|
return 0;
|
|
5985
6127
|
} else {
|
|
5986
|
-
const $
|
|
5987
|
-
_html(`<span class=dim>${_escape(repo.full_name)}${_el_resume($
|
|
5988
|
-
_subscribe($for_content3__repo_full_name__closures, writeScope($
|
|
6128
|
+
const $scope35_id = _scope_id();
|
|
6129
|
+
_html(`<span class=dim>${_escape(repo.full_name)}${_el_resume($scope35_id, "a")}</span>`);
|
|
6130
|
+
_subscribe($for_content3__repo_full_name__closures, writeScope($scope35_id, {}));
|
|
5989
6131
|
return 1;
|
|
5990
6132
|
}
|
|
5991
|
-
}, $
|
|
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($
|
|
6133
|
+
}, $scope25_id, "d");
|
|
6134
|
+
_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
6135
|
_if(() => {
|
|
5994
6136
|
if (localDiffers(repo)) {
|
|
5995
|
-
const $
|
|
5996
|
-
_html(`<span class=chip${_attr("title", `checked out ${repo.branch} ${repo.localHead}`)}>local <!>${_escape(repo.branch)}${_el_resume($
|
|
5997
|
-
_subscribe($for_content3__repo_localHead__closures, _subscribe($for_content3__repo_branch__closures, writeScope($
|
|
6137
|
+
const $scope36_id = _scope_id();
|
|
6138
|
+
_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")}`);
|
|
6139
|
+
_subscribe($for_content3__repo_localHead__closures, _subscribe($for_content3__repo_branch__closures, writeScope($scope36_id, { Ca8: 2 })));
|
|
5998
6140
|
return 0;
|
|
5999
6141
|
}
|
|
6000
|
-
}, $
|
|
6001
|
-
_html(`</button>${_el_resume($
|
|
6002
|
-
_script($
|
|
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($
|
|
6142
|
+
}, $scope25_id, "i", 1, 1, 1, 0, 1);
|
|
6143
|
+
_html(`</button>${_el_resume($scope25_id, "a")}`);
|
|
6144
|
+
_script($scope25_id, "e39");
|
|
6145
|
+
_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, { Cd1: 1 }))))))))));
|
|
6004
6146
|
return 0;
|
|
6005
6147
|
} else {
|
|
6006
|
-
const $
|
|
6148
|
+
const $scope28_id = _scope_id();
|
|
6007
6149
|
_html("<p class=repo-meta>");
|
|
6008
6150
|
_if(() => {
|
|
6009
6151
|
if (repo.pr) {
|
|
6010
|
-
const $
|
|
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($
|
|
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($
|
|
6013
|
-
Cx: 1,
|
|
6014
|
-
Cy: 1,
|
|
6015
|
-
Cz: 1,
|
|
6152
|
+
const $scope37_id = _scope_id();
|
|
6153
|
+
_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>`);
|
|
6154
|
+
_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
6155
|
Ca0: 1,
|
|
6017
|
-
Ca1:
|
|
6018
|
-
Ca2:
|
|
6019
|
-
Ca3:
|
|
6156
|
+
Ca1: 1,
|
|
6157
|
+
Ca2: 1,
|
|
6158
|
+
Ca3: 1,
|
|
6159
|
+
Ca4: 3,
|
|
6160
|
+
Ca5: 3,
|
|
6161
|
+
Ca6: 3
|
|
6020
6162
|
}))))))));
|
|
6021
6163
|
return 0;
|
|
6022
6164
|
}
|
|
6023
|
-
}, $
|
|
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($
|
|
6165
|
+
}, $scope28_id, "a");
|
|
6166
|
+
_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
6167
|
_if(() => {
|
|
6026
6168
|
if (localDiffers(repo)) {
|
|
6027
|
-
const $
|
|
6028
|
-
_html(`<span class=chip${_attr("title", `checked out ${repo.branch} ${repo.localHead}`)}>local <!>${_escape(repo.branch)}${_el_resume($
|
|
6029
|
-
_subscribe($for_content3__repo_localHead__closures, _subscribe($for_content3__repo_branch__closures, writeScope($
|
|
6030
|
-
|
|
6031
|
-
|
|
6169
|
+
const $scope38_id = _scope_id();
|
|
6170
|
+
_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")}`);
|
|
6171
|
+
_subscribe($for_content3__repo_localHead__closures, _subscribe($for_content3__repo_branch__closures, writeScope($scope38_id, {
|
|
6172
|
+
Ca8: 3,
|
|
6173
|
+
Ca9: 1
|
|
6032
6174
|
})));
|
|
6033
6175
|
return 0;
|
|
6034
6176
|
}
|
|
6035
|
-
}, $
|
|
6177
|
+
}, $scope28_id, "f", 1, 1, 1, 0, 1);
|
|
6036
6178
|
_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($
|
|
6038
|
-
|
|
6039
|
-
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
|
|
6179
|
+
_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, {
|
|
6180
|
+
Cw: 1,
|
|
6181
|
+
Cy: 1,
|
|
6182
|
+
Ca4: 1,
|
|
6183
|
+
Ca5: 1,
|
|
6184
|
+
Ca6: 1,
|
|
6185
|
+
Ca8: 1
|
|
6044
6186
|
})))))));
|
|
6045
6187
|
return 1;
|
|
6046
6188
|
}
|
|
@@ -6056,42 +6198,42 @@ var diff_view_default = _template("d", (input) => {
|
|
|
6056
6198
|
const $for_content4__fileComments__closures = /* @__PURE__ */ new Set();
|
|
6057
6199
|
const fileComments = commentsByFile.get(file.key) || [];
|
|
6058
6200
|
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")}`);
|
|
6201
|
+
_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
6202
|
_if(() => {
|
|
6061
6203
|
if (fileComments.length) {
|
|
6062
|
-
const $
|
|
6063
|
-
_html(`<span class=chip>💬 <!>${_escape(fileComments.length)}${_el_resume($
|
|
6064
|
-
writeScope($
|
|
6204
|
+
const $scope39_id = _scope_id();
|
|
6205
|
+
_html(`<span class=chip>💬 <!>${_escape(fileComments.length)}${_el_resume($scope39_id, "a")}</span>`);
|
|
6206
|
+
writeScope($scope39_id, {});
|
|
6065
6207
|
return 0;
|
|
6066
6208
|
}
|
|
6067
6209
|
}, $scope12_id, "f", 1, 1, 1, 0, 1);
|
|
6068
6210
|
_html(`<label class=viewed><input${_attr_input_checked($scope12_id, "h", viewed.has(file.key), _resume(function() {
|
|
6069
6211
|
toggleViewed(file.key);
|
|
6070
|
-
}, "
|
|
6212
|
+
}, "e1", $scope12_id))} type=checkbox>${_el_resume($scope12_id, "h")}<span class=dim>viewed</span></label>${_el_resume($scope12_id, "g")}</summary>`);
|
|
6071
6213
|
_if(() => {
|
|
6072
6214
|
if (file.binary) {
|
|
6073
|
-
const $
|
|
6215
|
+
const $scope40_id = _scope_id();
|
|
6074
6216
|
_html("<p class=\"dim diff-pad\">binary file</p>");
|
|
6075
|
-
writeScope($
|
|
6217
|
+
writeScope($scope40_id, {});
|
|
6076
6218
|
return 0;
|
|
6077
6219
|
} else if (file.tooLarge) {
|
|
6078
|
-
const $
|
|
6220
|
+
const $scope41_id = _scope_id();
|
|
6079
6221
|
_html("<p class=\"dim diff-pad\">file too large to display</p>");
|
|
6080
|
-
writeScope($
|
|
6222
|
+
writeScope($scope41_id, {});
|
|
6081
6223
|
return 1;
|
|
6082
6224
|
} else if (file.old == null && file.new == null) {
|
|
6083
|
-
const $
|
|
6225
|
+
const $scope42_id = _scope_id();
|
|
6084
6226
|
_html("<p class=\"dim diff-pad\">file could not be read</p>");
|
|
6085
|
-
writeScope($
|
|
6227
|
+
writeScope($scope42_id, {});
|
|
6086
6228
|
return 2;
|
|
6087
6229
|
} else if (expanded) {
|
|
6088
6230
|
const $scope15_id = _scope_id();
|
|
6089
6231
|
_if(() => {
|
|
6090
6232
|
{
|
|
6091
|
-
const $
|
|
6092
|
-
_html(`<div class=diff-wait></div>${_el_resume($
|
|
6093
|
-
_script($
|
|
6094
|
-
writeScope($
|
|
6233
|
+
const $scope26_id = _scope_id();
|
|
6234
|
+
_html(`<div class=diff-wait></div>${_el_resume($scope26_id, "a")}`);
|
|
6235
|
+
_script($scope26_id, "e40");
|
|
6236
|
+
writeScope($scope26_id, {});
|
|
6095
6237
|
return 0;
|
|
6096
6238
|
}
|
|
6097
6239
|
}, $scope15_id, "a", 1, 1, 1, 0, 1);
|
|
@@ -6100,141 +6242,179 @@ var diff_view_default = _template("d", (input) => {
|
|
|
6100
6242
|
}
|
|
6101
6243
|
}, $scope12_id, "i");
|
|
6102
6244
|
_html(`</details>${_el_resume($scope12_id, "a")}`);
|
|
6103
|
-
_script($scope12_id, "
|
|
6104
|
-
_subscribe($toggleViewed2__closures, _subscribe($commentsByFile__closures, _subscribe($viewed__closures, writeScope($scope12_id, {
|
|
6245
|
+
_script($scope12_id, "e41");
|
|
6246
|
+
_subscribe($toggleViewed2__closures, _subscribe($commentsByFile__closures, _subscribe($shownKeySet__closures, _subscribe($viewed__closures, writeScope($scope12_id, {
|
|
6105
6247
|
k: file,
|
|
6106
6248
|
l: file?.key,
|
|
6107
|
-
|
|
6108
|
-
|
|
6109
|
-
|
|
6110
|
-
|
|
6111
|
-
|
|
6112
|
-
|
|
6113
|
-
|
|
6114
|
-
|
|
6115
|
-
|
|
6116
|
-
|
|
6117
|
-
|
|
6118
|
-
|
|
6119
|
-
}))));
|
|
6249
|
+
s: file?.binary,
|
|
6250
|
+
t: file?.tooLarge,
|
|
6251
|
+
u: file?.old,
|
|
6252
|
+
v: file?.new,
|
|
6253
|
+
w: fileComments,
|
|
6254
|
+
x: fileComments.length,
|
|
6255
|
+
y: expanded,
|
|
6256
|
+
a0: $for_content4__file__closures,
|
|
6257
|
+
a1: $for_content4__file_key__closures,
|
|
6258
|
+
a2: $for_content4__fileComments__closures,
|
|
6259
|
+
Ccn: 1,
|
|
6260
|
+
Cdb: 1
|
|
6261
|
+
})))));
|
|
6120
6262
|
}, "key", $scope11_id, "a", 1, 1, 1, "</div>", 1);
|
|
6121
6263
|
_subscribe($for_content3__repoFiles__closures, writeScope($scope11_id, {}));
|
|
6122
6264
|
return 0;
|
|
6123
6265
|
}
|
|
6124
6266
|
}, $scope10_id, "c", 1, 1, 1, 0, 1);
|
|
6125
6267
|
_html(`</section>${_el_resume($scope10_id, "a")}`);
|
|
6126
|
-
_subscribe($repoList_length__closures, _subscribe($collapsedRepos__closures, writeScope($scope10_id, {})));
|
|
6268
|
+
_subscribe($repoList_length__closures, _subscribe($collapsedRepos__closures, _subscribe($findState_hit_repo__closures, writeScope($scope10_id, {}))));
|
|
6127
6269
|
return 0;
|
|
6128
6270
|
}
|
|
6129
6271
|
}, $scope9_id, "a", 1, 1, 1, 0, 1);
|
|
6130
6272
|
writeScope($scope9_id, {
|
|
6131
6273
|
c: repo,
|
|
6132
6274
|
d: repo?.id,
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
|
|
6138
|
-
|
|
6139
|
-
|
|
6140
|
-
|
|
6141
|
-
|
|
6142
|
-
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
|
|
6147
|
-
|
|
6148
|
-
|
|
6149
|
-
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
-
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
|
|
6159
|
-
|
|
6160
|
-
|
|
6275
|
+
g: repo?.pr,
|
|
6276
|
+
h: repo?.worktree,
|
|
6277
|
+
i: repo?.pr?.number,
|
|
6278
|
+
j: repo?.pr?.url,
|
|
6279
|
+
k: repo?.pr?.title,
|
|
6280
|
+
l: repo?.pr?.headRefName,
|
|
6281
|
+
m: repo?.head,
|
|
6282
|
+
n: repo?.base,
|
|
6283
|
+
o: repo?.baseSha,
|
|
6284
|
+
p: repo?.full_name,
|
|
6285
|
+
q: repo?.branch,
|
|
6286
|
+
r: repo?.localHead,
|
|
6287
|
+
s: repoFiles,
|
|
6288
|
+
v: shownInRepo.length,
|
|
6289
|
+
a0: $for_content3__repo_pr_number__closures,
|
|
6290
|
+
a1: $for_content3__repo_pr_url__closures,
|
|
6291
|
+
a2: $for_content3__repo_pr_title__closures,
|
|
6292
|
+
a3: $for_content3__repo_pr_headRefName__closures,
|
|
6293
|
+
a4: $for_content3__repo_head__closures,
|
|
6294
|
+
a5: $for_content3__repo_base__closures,
|
|
6295
|
+
a6: $for_content3__repo_baseSha__closures,
|
|
6296
|
+
a7: $for_content3__repo_full_name__closures,
|
|
6297
|
+
a8: $for_content3__repo_branch__closures,
|
|
6298
|
+
a9: $for_content3__repo_localHead__closures,
|
|
6299
|
+
w: $for_content3__repo__closures,
|
|
6300
|
+
x: $for_content3__repo_id__closures,
|
|
6301
|
+
y: $for_content3__repo_pr__closures,
|
|
6302
|
+
z: $for_content3__repo_worktree__closures,
|
|
6303
|
+
aa: $for_content3__repoFiles__closures
|
|
6161
6304
|
});
|
|
6162
|
-
}, "id", $scope0_id, "
|
|
6163
|
-
_html(`</div>${_el_resume($scope0_id, "
|
|
6164
|
-
_if(() => {
|
|
6305
|
+
}, "id", $scope0_id, "z");
|
|
6306
|
+
_html(`</div>${_el_resume($scope0_id, "r")}</div>`);
|
|
6307
|
+
_if(() => {
|
|
6308
|
+
if (findOpen) {
|
|
6309
|
+
const $scope23_id = _scope_id();
|
|
6310
|
+
const $childScope3 = _peek_scope_id();
|
|
6311
|
+
diff_find_default({
|
|
6312
|
+
files: fileFiltered,
|
|
6313
|
+
tick: findTick,
|
|
6314
|
+
onState: _resume(function(s) {
|
|
6315
|
+
onFindState(s);
|
|
6316
|
+
}, "e27", $scope23_id),
|
|
6317
|
+
onClose: _resume(function() {
|
|
6318
|
+
findOpen = false;
|
|
6319
|
+
findState = {
|
|
6320
|
+
query: "",
|
|
6321
|
+
hit: null,
|
|
6322
|
+
keys: []
|
|
6323
|
+
};
|
|
6324
|
+
}, "e28", $scope23_id)
|
|
6325
|
+
});
|
|
6326
|
+
writeScope($scope23_id, { a: _existing_scope($childScope3) });
|
|
6327
|
+
return 0;
|
|
6328
|
+
}
|
|
6329
|
+
}, $scope0_id, "a0", 1, 1, 1, 0, 1);
|
|
6330
|
+
_if(() => {}, $scope0_id, "a1");
|
|
6165
6331
|
_html("</div>");
|
|
6166
|
-
_script($scope0_id, "
|
|
6167
|
-
_script($scope0_id, "
|
|
6332
|
+
_script($scope0_id, "e44");
|
|
6333
|
+
_script($scope0_id, "e45");
|
|
6168
6334
|
writeScope($scope0_id, {
|
|
6169
|
-
|
|
6170
|
-
|
|
6171
|
-
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
|
|
6181
|
-
|
|
6182
|
-
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
|
-
|
|
6191
|
-
|
|
6192
|
-
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
|
|
6203
|
-
|
|
6204
|
-
|
|
6205
|
-
|
|
6206
|
-
bl:
|
|
6207
|
-
bm:
|
|
6208
|
-
bn:
|
|
6209
|
-
bp:
|
|
6210
|
-
|
|
6211
|
-
|
|
6212
|
-
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
|
|
6220
|
-
|
|
6221
|
-
|
|
6222
|
-
|
|
6223
|
-
|
|
6224
|
-
|
|
6225
|
-
|
|
6226
|
-
|
|
6227
|
-
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
6231
|
-
|
|
6232
|
-
|
|
6233
|
-
|
|
6335
|
+
a4: input.focusPr,
|
|
6336
|
+
a5: input.workspaceId,
|
|
6337
|
+
a6: input.active,
|
|
6338
|
+
a7: input.sessions,
|
|
6339
|
+
a9: input.onSent,
|
|
6340
|
+
aa: input.onExit,
|
|
6341
|
+
ab: input.sessions?.[0]?.title,
|
|
6342
|
+
ac: input.sessions?.[0]?.agent,
|
|
6343
|
+
ad: repos,
|
|
6344
|
+
ae: comments,
|
|
6345
|
+
ag: viewed,
|
|
6346
|
+
ai: viewed?.size,
|
|
6347
|
+
aj: draft,
|
|
6348
|
+
al: error,
|
|
6349
|
+
am: loading,
|
|
6350
|
+
ao: copied,
|
|
6351
|
+
ap: sending,
|
|
6352
|
+
aq: sendTarget,
|
|
6353
|
+
as: fileFilter,
|
|
6354
|
+
at: uncommitted,
|
|
6355
|
+
av: treeOpen,
|
|
6356
|
+
ay: findTick,
|
|
6357
|
+
b0: findState?.query,
|
|
6358
|
+
b2: findState?.hit,
|
|
6359
|
+
b3: findState?.hit?.key,
|
|
6360
|
+
b4: findState?.hit?.repo,
|
|
6361
|
+
b5: collapsedDirs,
|
|
6362
|
+
b6: collapsedRepos,
|
|
6363
|
+
b7: dismissedDrift,
|
|
6364
|
+
b8: toggleRepo,
|
|
6365
|
+
ba: nearBox.cbs,
|
|
6366
|
+
bb: nearBox.io,
|
|
6367
|
+
bd: observeNear,
|
|
6368
|
+
be: load,
|
|
6369
|
+
bg: loadReview,
|
|
6370
|
+
bi: repoList,
|
|
6371
|
+
bk: repoList.length,
|
|
6372
|
+
bl: allFiles,
|
|
6373
|
+
bm: allFiles?.length,
|
|
6374
|
+
bn: fileMatch,
|
|
6375
|
+
bp: fileFiltered,
|
|
6376
|
+
bq: findKeys,
|
|
6377
|
+
bs: shownFiles,
|
|
6378
|
+
bw: shownKeySet,
|
|
6379
|
+
bx: filesByRepo,
|
|
6380
|
+
by: shownByRepo,
|
|
6381
|
+
c0: commentsByFile,
|
|
6382
|
+
c1: sendPick,
|
|
6383
|
+
c2: localDiffers,
|
|
6384
|
+
c4: driftRepos,
|
|
6385
|
+
c7: dismissDrift,
|
|
6386
|
+
c8: reload,
|
|
6387
|
+
c9: toggleViewed,
|
|
6388
|
+
ca: saveComment,
|
|
6389
|
+
cb: removeComment,
|
|
6390
|
+
cc: clearComments,
|
|
6391
|
+
cf: copyMarkdown,
|
|
6392
|
+
cg: sendTo,
|
|
6393
|
+
ch: jumpTo,
|
|
6394
|
+
ci: openFind,
|
|
6395
|
+
cj: onFindState,
|
|
6396
|
+
d0: $collapsedDirs__closures,
|
|
6397
|
+
cn: $viewed__closures,
|
|
6398
|
+
db: $commentsByFile__closures,
|
|
6399
|
+
da: $shownByRepo__closures,
|
|
6400
|
+
cl: $si__input_sessions_0_title && $input_sessions_0_title__closures,
|
|
6401
|
+
cm: $si__input_sessions_0_agent && $input_sessions_0_agent__closures,
|
|
6402
|
+
ct: $sending__closures,
|
|
6403
|
+
ck: $si__input_sessions && $input_sessions__closures,
|
|
6404
|
+
cu: $sendTarget__closures,
|
|
6405
|
+
o: _existing_scope($childScope),
|
|
6406
|
+
d1: $collapsedRepos__closures,
|
|
6407
|
+
cp: $draft__closures,
|
|
6408
|
+
df: $saveComment2__closures,
|
|
6409
|
+
dg: $removeComment2__closures,
|
|
6410
|
+
d8: $shownKeySet__closures,
|
|
6411
|
+
de: $toggleViewed2__closures,
|
|
6412
|
+
cz: $findState_hit_repo__closures,
|
|
6413
|
+
d4: $repoList_length__closures
|
|
6234
6414
|
});
|
|
6235
6415
|
_resume_branch($scope0_id);
|
|
6236
6416
|
});
|
|
6237
|
-
_template("
|
|
6417
|
+
_template("x", (input) => {
|
|
6238
6418
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6239
6419
|
const $scope0_id = _scope_id();
|
|
6240
6420
|
_set_serialize_reason({
|
|
@@ -6249,7 +6429,7 @@ _template("v", (input) => {
|
|
|
6249
6429
|
});
|
|
6250
6430
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
6251
6431
|
});
|
|
6252
|
-
_template("
|
|
6432
|
+
_template("C", (input) => {
|
|
6253
6433
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6254
6434
|
const $scope0_id = _scope_id();
|
|
6255
6435
|
_set_serialize_reason({
|
|
@@ -6264,7 +6444,7 @@ _template("A", (input) => {
|
|
|
6264
6444
|
});
|
|
6265
6445
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
6266
6446
|
});
|
|
6267
|
-
_template("
|
|
6447
|
+
_template("v", (input) => {
|
|
6268
6448
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6269
6449
|
const $scope0_id = _scope_id();
|
|
6270
6450
|
_set_serialize_reason({
|
|
@@ -6279,7 +6459,7 @@ _template("t", (input) => {
|
|
|
6279
6459
|
});
|
|
6280
6460
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
6281
6461
|
});
|
|
6282
|
-
_template("
|
|
6462
|
+
_template("B", (input) => {
|
|
6283
6463
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6284
6464
|
const $scope0_id = _scope_id();
|
|
6285
6465
|
_set_serialize_reason({
|
|
@@ -6298,7 +6478,7 @@ _template("z", (input) => {
|
|
|
6298
6478
|
//#region src/tags/term.marko
|
|
6299
6479
|
var REPEAT_DELAY = 400;
|
|
6300
6480
|
var REPEAT_EVERY = 55;
|
|
6301
|
-
var term_default = _template("
|
|
6481
|
+
var term_default = _template("o", (input) => {
|
|
6302
6482
|
const $scope0_reason = _scope_reason();
|
|
6303
6483
|
_serialize_guard($scope0_reason, 6);
|
|
6304
6484
|
_serialize_guard($scope0_reason, 7);
|
|
@@ -6315,7 +6495,7 @@ var term_default = _template("m", (input) => {
|
|
|
6315
6495
|
_serialize_guard($scope0_reason, 14);
|
|
6316
6496
|
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
6497
|
const $scope0_id = _scope_id();
|
|
6318
|
-
_hoist($scope0_id, "
|
|
6498
|
+
_hoist($scope0_id, "o6");
|
|
6319
6499
|
const $input_sessionId__closures = /* @__PURE__ */ new Set();
|
|
6320
6500
|
const $input_onRenameSession__closures = /* @__PURE__ */ new Set();
|
|
6321
6501
|
const $input_onCloseSession__closures = /* @__PURE__ */ new Set();
|
|
@@ -6338,7 +6518,7 @@ var term_default = _template("m", (input) => {
|
|
|
6338
6518
|
copyFlashBox.timer = setTimeout(() => {
|
|
6339
6519
|
copiedFlash = false;
|
|
6340
6520
|
}, 1200);
|
|
6341
|
-
}, "
|
|
6521
|
+
}, "o0", $scope0_id);
|
|
6342
6522
|
const holdBox = { current: null };
|
|
6343
6523
|
const startHold = _resume((seq) => {
|
|
6344
6524
|
((stopHold) => stopHold())(_hoist_read_error);
|
|
@@ -6348,7 +6528,7 @@ var term_default = _template("m", (input) => {
|
|
|
6348
6528
|
state.repeat = setInterval(() => ioBox.current?.send(seq), REPEAT_EVERY);
|
|
6349
6529
|
}, REPEAT_DELAY);
|
|
6350
6530
|
holdBox.current = state;
|
|
6351
|
-
}, "
|
|
6531
|
+
}, "o1", $scope0_id);
|
|
6352
6532
|
const stopHold = _resume(() => {
|
|
6353
6533
|
const hold = holdBox.current;
|
|
6354
6534
|
if (hold) {
|
|
@@ -6356,7 +6536,7 @@ var term_default = _template("m", (input) => {
|
|
|
6356
6536
|
clearInterval(hold.repeat);
|
|
6357
6537
|
holdBox.current = null;
|
|
6358
6538
|
}
|
|
6359
|
-
}, "
|
|
6539
|
+
}, "o2", $scope0_id);
|
|
6360
6540
|
const uploadAsset = _resume(async (file) => {
|
|
6361
6541
|
if (!file) return;
|
|
6362
6542
|
uploading = true;
|
|
@@ -6369,7 +6549,7 @@ var term_default = _template("m", (input) => {
|
|
|
6369
6549
|
} finally {
|
|
6370
6550
|
uploading = false;
|
|
6371
6551
|
}
|
|
6372
|
-
}, "
|
|
6552
|
+
}, "o3", $scope0_id);
|
|
6373
6553
|
const handlePasted = _resume(async (clipboardData) => {
|
|
6374
6554
|
const files = [...clipboardData?.files || []];
|
|
6375
6555
|
for (const file of files) await uploadAsset(file);
|
|
@@ -6378,7 +6558,7 @@ var term_default = _template("m", (input) => {
|
|
|
6378
6558
|
if (text) ioBox.current?.send(text);
|
|
6379
6559
|
}
|
|
6380
6560
|
trapOpen = false;
|
|
6381
|
-
}, "
|
|
6561
|
+
}, "o4", $scope0_id);
|
|
6382
6562
|
const pasteClipboard = _resume(async () => {
|
|
6383
6563
|
if (!navigator.clipboard?.read) {
|
|
6384
6564
|
trapOpen = true;
|
|
@@ -6398,7 +6578,7 @@ var term_default = _template("m", (input) => {
|
|
|
6398
6578
|
} catch {
|
|
6399
6579
|
trapOpen = true;
|
|
6400
6580
|
}
|
|
6401
|
-
}, "
|
|
6581
|
+
}, "o5", $scope0_id);
|
|
6402
6582
|
_html(`<div${_attr("hidden", input.mode === "diff")} class=term-wrap><div class=term></div>${_el_resume($scope0_id, "b")}`);
|
|
6403
6583
|
_if(() => {
|
|
6404
6584
|
if (uploading) {
|
|
@@ -6421,16 +6601,16 @@ var term_default = _template("m", (input) => {
|
|
|
6421
6601
|
if (trapOpen) {
|
|
6422
6602
|
const $scope13_id = _scope_id();
|
|
6423
6603
|
_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, "
|
|
6425
|
-
_script($scope13_id, "
|
|
6604
|
+
_script($scope13_id, "o8");
|
|
6605
|
+
_script($scope13_id, "o9");
|
|
6426
6606
|
writeScope($scope13_id, {});
|
|
6427
6607
|
return 0;
|
|
6428
6608
|
}
|
|
6429
6609
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
6430
6610
|
_html(`</div>${_el_resume($scope0_id, "a")}`);
|
|
6431
6611
|
_if(() => {}, $scope0_id, "g", 1, 1, 1, 0, 1);
|
|
6432
|
-
_script($scope0_id, "
|
|
6433
|
-
_script($scope0_id, "
|
|
6612
|
+
_script($scope0_id, "o24");
|
|
6613
|
+
_script($scope0_id, "o25");
|
|
6434
6614
|
writeScope($scope0_id, {
|
|
6435
6615
|
j: input.workspaceId,
|
|
6436
6616
|
k: input.mode,
|
|
@@ -6495,7 +6675,7 @@ var $class = [
|
|
|
6495
6675
|
"\"meter-fill warm\"",
|
|
6496
6676
|
"\"meter-fill hot warm\""
|
|
6497
6677
|
];
|
|
6498
|
-
var usage_stats_default = _template("
|
|
6678
|
+
var usage_stats_default = _template("p", (input) => {
|
|
6499
6679
|
const $scope0_reason = _scope_reason(), $sg__input_onClose = _serialize_guard($scope0_reason, 0);
|
|
6500
6680
|
const $scope0_id = _scope_id();
|
|
6501
6681
|
const $usage_error__closures = /* @__PURE__ */ new Set();
|
|
@@ -6510,12 +6690,12 @@ var usage_stats_default = _template("n", (input) => {
|
|
|
6510
6690
|
} catch (err) {
|
|
6511
6691
|
usage = { error: String(err.message || err) };
|
|
6512
6692
|
}
|
|
6513
|
-
}, "
|
|
6693
|
+
}, "p0", $scope0_id);
|
|
6514
6694
|
const refresh = _resume(async () => {
|
|
6515
6695
|
refreshing = true;
|
|
6516
6696
|
await load(true);
|
|
6517
6697
|
refreshing = false;
|
|
6518
|
-
}, "
|
|
6698
|
+
}, "p1", $scope0_id);
|
|
6519
6699
|
_set_serialize_reason({
|
|
6520
6700
|
0: $sg__input_onClose,
|
|
6521
6701
|
2: $sg__input_onClose
|
|
@@ -6526,8 +6706,8 @@ var usage_stats_default = _template("n", (input) => {
|
|
|
6526
6706
|
class: "usage-modal",
|
|
6527
6707
|
onClose: _resume(function() {
|
|
6528
6708
|
input.onClose();
|
|
6529
|
-
}, "
|
|
6530
|
-
content: _content("
|
|
6709
|
+
}, "p2", $scope0_id),
|
|
6710
|
+
content: _content("p4", () => {
|
|
6531
6711
|
_scope_reason();
|
|
6532
6712
|
const $scope1_id = _scope_id();
|
|
6533
6713
|
_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 +6764,12 @@ var usage_stats_default = _template("n", (input) => {
|
|
|
6584
6764
|
return 2;
|
|
6585
6765
|
}
|
|
6586
6766
|
}, $scope1_id, "c", 1, 1, 1, 0, 1);
|
|
6587
|
-
_script($scope1_id, "
|
|
6767
|
+
_script($scope1_id, "p3");
|
|
6588
6768
|
_subscribe($refreshing__closures, _subscribe($usage__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })));
|
|
6589
6769
|
_resume_branch($scope1_id);
|
|
6590
6770
|
})
|
|
6591
6771
|
});
|
|
6592
|
-
_script($scope0_id, "
|
|
6772
|
+
_script($scope0_id, "p5");
|
|
6593
6773
|
writeScope($scope0_id, {
|
|
6594
6774
|
d: input.onClose,
|
|
6595
6775
|
f: usage?.error,
|
|
@@ -6606,7 +6786,7 @@ var usage_stats_default = _template("n", (input) => {
|
|
|
6606
6786
|
});
|
|
6607
6787
|
//#endregion
|
|
6608
6788
|
//#region src/tags/prompt-dialog.marko
|
|
6609
|
-
var prompt_dialog_default = _template("
|
|
6789
|
+
var prompt_dialog_default = _template("k", (input) => {
|
|
6610
6790
|
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
6791
|
const $scope0_id = _scope_id();
|
|
6612
6792
|
const $modalview_content__subscribers = /* @__PURE__ */ new Set();
|
|
@@ -6618,7 +6798,7 @@ var prompt_dialog_default = _template("i", (input) => {
|
|
|
6618
6798
|
const submit = _resume(() => {
|
|
6619
6799
|
const v = value.trim();
|
|
6620
6800
|
if (v) input.onSubmit(v);
|
|
6621
|
-
}, "
|
|
6801
|
+
}, "k1", $scope0_id);
|
|
6622
6802
|
_set_serialize_reason({
|
|
6623
6803
|
0: $sg__input_onCancel,
|
|
6624
6804
|
1: $sg__input_label,
|
|
@@ -6630,22 +6810,22 @@ var prompt_dialog_default = _template("i", (input) => {
|
|
|
6630
6810
|
class: "prompt-dlg",
|
|
6631
6811
|
onClose: _resume(function() {
|
|
6632
6812
|
input.onCancel();
|
|
6633
|
-
}, "
|
|
6634
|
-
footer: attrTag({ content: _content_resume("
|
|
6813
|
+
}, "k2", $scope0_id),
|
|
6814
|
+
footer: attrTag({ content: _content_resume("k5", () => {
|
|
6635
6815
|
_scope_reason();
|
|
6636
6816
|
const $scope1_id = _scope_id();
|
|
6637
6817
|
_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, "
|
|
6818
|
+
_script($scope1_id, "k3");
|
|
6639
6819
|
_subscribe($value__closures, _subscribe($si__input_submitLabel && $input_submitLabel__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })));
|
|
6640
6820
|
_resume_branch($scope1_id);
|
|
6641
6821
|
}, $scope0_id) }),
|
|
6642
|
-
content: _content("
|
|
6822
|
+
content: _content("k6", () => {
|
|
6643
6823
|
_scope_reason();
|
|
6644
6824
|
const $scope2_id = _scope_id();
|
|
6645
6825
|
_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
6826
|
value = _new_value;
|
|
6647
|
-
}, "
|
|
6648
|
-
_script($scope2_id, "
|
|
6827
|
+
}, "k0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "b")}`);
|
|
6828
|
+
_script($scope2_id, "k4");
|
|
6649
6829
|
_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
6830
|
_: _scope_with_id($scope0_id),
|
|
6651
6831
|
Cp: 1
|
|
@@ -6653,7 +6833,7 @@ var prompt_dialog_default = _template("i", (input) => {
|
|
|
6653
6833
|
_resume_branch($scope2_id);
|
|
6654
6834
|
})
|
|
6655
6835
|
});
|
|
6656
|
-
_script($scope0_id, "
|
|
6836
|
+
_script($scope0_id, "k7");
|
|
6657
6837
|
writeScope($scope0_id, {
|
|
6658
6838
|
e: input.onSubmit,
|
|
6659
6839
|
g: input.onCancel,
|
|
@@ -6672,7 +6852,7 @@ var prompt_dialog_default = _template("i", (input) => {
|
|
|
6672
6852
|
//#endregion
|
|
6673
6853
|
//#region src/tags/work-view.marko
|
|
6674
6854
|
var api$1;
|
|
6675
|
-
var work_view_default = _template("
|
|
6855
|
+
var work_view_default = _template("q", (input) => {
|
|
6676
6856
|
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
6857
|
const $scope0_id = _scope_id();
|
|
6678
6858
|
const $input_active__closures = /* @__PURE__ */ new Set();
|
|
@@ -6722,7 +6902,7 @@ var work_view_default = _template("o", (input) => {
|
|
|
6722
6902
|
} finally {
|
|
6723
6903
|
spawning = false;
|
|
6724
6904
|
}
|
|
6725
|
-
}, "
|
|
6905
|
+
}, "q0", $scope0_id);
|
|
6726
6906
|
const loadMem = {
|
|
6727
6907
|
wanted: false,
|
|
6728
6908
|
run: void 0
|
|
@@ -6744,11 +6924,11 @@ var work_view_default = _template("o", (input) => {
|
|
|
6744
6924
|
sessions = sessions || [];
|
|
6745
6925
|
error = String(err);
|
|
6746
6926
|
}
|
|
6747
|
-
}, "
|
|
6927
|
+
}, "q1", $scope0_id);
|
|
6748
6928
|
const loadSessions = _resume((autoCreate) => {
|
|
6749
6929
|
if (autoCreate) loadMem.wanted = true;
|
|
6750
6930
|
return (loadMem.run ??= coalesce(loadBody))();
|
|
6751
|
-
}, "
|
|
6931
|
+
}, "q2", $scope0_id);
|
|
6752
6932
|
const closeSession = _resume(async (id) => {
|
|
6753
6933
|
try {
|
|
6754
6934
|
await api$1(`/api/sessions/${id}`, { method: "DELETE" });
|
|
@@ -6757,7 +6937,7 @@ var work_view_default = _template("o", (input) => {
|
|
|
6757
6937
|
} catch (err) {
|
|
6758
6938
|
error = `Kill session failed: ${String(err.message || err)}`;
|
|
6759
6939
|
}
|
|
6760
|
-
}, "
|
|
6940
|
+
}, "q3", $scope0_id);
|
|
6761
6941
|
const renameSession = _resume(async (id, title) => {
|
|
6762
6942
|
title = title.trim();
|
|
6763
6943
|
if (!title) return;
|
|
@@ -6770,7 +6950,7 @@ var work_view_default = _template("o", (input) => {
|
|
|
6770
6950
|
headers: { "content-type": "application/json" },
|
|
6771
6951
|
body: JSON.stringify({ title })
|
|
6772
6952
|
});
|
|
6773
|
-
}, "
|
|
6953
|
+
}, "q4", $scope0_id);
|
|
6774
6954
|
const newSession = _resume(async (wsId, agent) => {
|
|
6775
6955
|
if (wsId === ws.id) {
|
|
6776
6956
|
const session = await createSession(agent, true);
|
|
@@ -6787,10 +6967,10 @@ var work_view_default = _template("o", (input) => {
|
|
|
6787
6967
|
} catch (err) {
|
|
6788
6968
|
error = String(err.message || err);
|
|
6789
6969
|
}
|
|
6790
|
-
}, "
|
|
6970
|
+
}, "q5", $scope0_id);
|
|
6791
6971
|
const promptRename = _resume((s) => {
|
|
6792
6972
|
renaming = s;
|
|
6793
|
-
}, "
|
|
6973
|
+
}, "q6", $scope0_id);
|
|
6794
6974
|
_html("<div class=work-view>");
|
|
6795
6975
|
_set_serialize_reason({
|
|
6796
6976
|
0: _serialize_guard($scope0_reason, 0),
|
|
@@ -6816,47 +6996,47 @@ var work_view_default = _template("o", (input) => {
|
|
|
6816
6996
|
tab: curTab,
|
|
6817
6997
|
tabChange: _resume(function(id) {
|
|
6818
6998
|
tab = id;
|
|
6819
|
-
}, "
|
|
6999
|
+
}, "q7", $scope0_id),
|
|
6820
7000
|
view,
|
|
6821
7001
|
viewChange: _resume((_new_view) => {
|
|
6822
7002
|
view = _new_view;
|
|
6823
|
-
}, "
|
|
7003
|
+
}, "q8", $scope0_id),
|
|
6824
7004
|
drawerOpen,
|
|
6825
7005
|
drawerOpenChange: _resume((_new_drawerOpen) => {
|
|
6826
7006
|
drawerOpen = _new_drawerOpen;
|
|
6827
|
-
}, "
|
|
7007
|
+
}, "q9", $scope0_id),
|
|
6828
7008
|
allWorkspaces: input.allWorkspaces,
|
|
6829
7009
|
allStatus: input.allStatus,
|
|
6830
7010
|
agents: input.agents,
|
|
6831
7011
|
onError: _resume(function(message) {
|
|
6832
7012
|
error = message;
|
|
6833
|
-
}, "
|
|
7013
|
+
}, "q10", $scope0_id),
|
|
6834
7014
|
onSelectWorkspace: input.onSelectWorkspace,
|
|
6835
7015
|
onOpenSession: input.onOpenSession,
|
|
6836
7016
|
onManage: input.onManage,
|
|
6837
7017
|
onNew: input.onNew,
|
|
6838
7018
|
onUsage: _resume(function() {
|
|
6839
7019
|
usageOpen = true;
|
|
6840
|
-
}, "
|
|
7020
|
+
}, "q11", $scope0_id),
|
|
6841
7021
|
onNewSession: _resume(function(wsId, agent) {
|
|
6842
7022
|
newSession(wsId, agent);
|
|
6843
|
-
}, "
|
|
7023
|
+
}, "q12", $scope0_id),
|
|
6844
7024
|
onCloseSession: _resume(function(id) {
|
|
6845
7025
|
closeSession(id);
|
|
6846
|
-
}, "
|
|
7026
|
+
}, "q13", $scope0_id),
|
|
6847
7027
|
onRenameSession: _resume(function(s) {
|
|
6848
7028
|
promptRename(s);
|
|
6849
|
-
}, "
|
|
7029
|
+
}, "q14", $scope0_id),
|
|
6850
7030
|
onReviewOpened: _resume(function(pr) {
|
|
6851
7031
|
focusPr = pr || "";
|
|
6852
|
-
}, "
|
|
7032
|
+
}, "q15", $scope0_id)
|
|
6853
7033
|
});
|
|
6854
7034
|
_html("<div class=main-col>");
|
|
6855
7035
|
_if(() => {
|
|
6856
7036
|
if (error) {
|
|
6857
7037
|
const $scope5_id = _scope_id();
|
|
6858
7038
|
_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, "
|
|
7039
|
+
_script($scope5_id, "q29");
|
|
6860
7040
|
writeScope($scope5_id, {});
|
|
6861
7041
|
return 0;
|
|
6862
7042
|
}
|
|
@@ -6873,10 +7053,10 @@ var work_view_default = _template("o", (input) => {
|
|
|
6873
7053
|
onSent: _resume(function(sessionId) {
|
|
6874
7054
|
tab = sessionId;
|
|
6875
7055
|
view = "term";
|
|
6876
|
-
}, "
|
|
7056
|
+
}, "q16", $scope0_id),
|
|
6877
7057
|
onExit: _resume(function() {
|
|
6878
7058
|
view = "term";
|
|
6879
|
-
}, "
|
|
7059
|
+
}, "q17", $scope0_id)
|
|
6880
7060
|
});
|
|
6881
7061
|
_show_end($scope0_id, "f", $show);
|
|
6882
7062
|
_html(`<div class=${view === "diff" ? "\"term-area as-bar\"" : "term-area"}>`);
|
|
@@ -6915,32 +7095,32 @@ var work_view_default = _template("o", (input) => {
|
|
|
6915
7095
|
sessions: shownSessions,
|
|
6916
7096
|
onNewSession: _resume(function(agent) {
|
|
6917
7097
|
newSession(ws.id, agent);
|
|
6918
|
-
}, "
|
|
7098
|
+
}, "q18", $scope2_id),
|
|
6919
7099
|
onOpenTab: _resume(function(id) {
|
|
6920
7100
|
tab = id;
|
|
6921
|
-
}, "
|
|
7101
|
+
}, "q19", $scope2_id),
|
|
6922
7102
|
onCloseSession: _resume(function(id) {
|
|
6923
7103
|
closeSession(id);
|
|
6924
|
-
}, "
|
|
7104
|
+
}, "q20", $scope2_id),
|
|
6925
7105
|
onRenameSession: _resume(function(id) {
|
|
6926
7106
|
const target = (shownSessions || []).find((x) => x.id === id);
|
|
6927
7107
|
if (target) renaming = target;
|
|
6928
|
-
}, "
|
|
7108
|
+
}, "q21", $scope2_id),
|
|
6929
7109
|
active: input.active && view === "term" && s.id === curTab,
|
|
6930
7110
|
mode: view,
|
|
6931
7111
|
onToggleDiff: _resume(function() {
|
|
6932
7112
|
focusPr = "";
|
|
6933
7113
|
view = "diff";
|
|
6934
|
-
}, "
|
|
7114
|
+
}, "q22", $scope2_id),
|
|
6935
7115
|
onExitReview: _resume(function() {
|
|
6936
7116
|
view = "term";
|
|
6937
|
-
}, "
|
|
7117
|
+
}, "q23", $scope2_id),
|
|
6938
7118
|
onOpenNav: _resume(function() {
|
|
6939
7119
|
drawerOpen = true;
|
|
6940
|
-
}, "
|
|
7120
|
+
}, "q24", $scope2_id),
|
|
6941
7121
|
onManage: _resume(function() {
|
|
6942
7122
|
input.onManage?.(ws.id);
|
|
6943
|
-
}, "
|
|
7123
|
+
}, "q25", $scope2_id)
|
|
6944
7124
|
});
|
|
6945
7125
|
_show_end($scope2_id, "d", $show2);
|
|
6946
7126
|
_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 +7132,7 @@ var work_view_default = _template("o", (input) => {
|
|
|
6952
7132
|
if (!shownSessions.length) {
|
|
6953
7133
|
const $scope3_id = _scope_id();
|
|
6954
7134
|
_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, "
|
|
7135
|
+
_script($scope3_id, "q30");
|
|
6956
7136
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope3_id, {})));
|
|
6957
7137
|
return 0;
|
|
6958
7138
|
}
|
|
@@ -6972,7 +7152,7 @@ var work_view_default = _template("o", (input) => {
|
|
|
6972
7152
|
const $scope4_id = _scope_id();
|
|
6973
7153
|
usage_stats_default({ onClose: _resume(function() {
|
|
6974
7154
|
usageOpen = false;
|
|
6975
|
-
}, "
|
|
7155
|
+
}, "q26", $scope4_id) });
|
|
6976
7156
|
writeScope($scope4_id, {});
|
|
6977
7157
|
return 0;
|
|
6978
7158
|
}
|
|
@@ -6988,21 +7168,21 @@ var work_view_default = _template("o", (input) => {
|
|
|
6988
7168
|
onSubmit: _resume(function(title) {
|
|
6989
7169
|
renameSession(renaming.id, title);
|
|
6990
7170
|
renaming = null;
|
|
6991
|
-
}, "
|
|
7171
|
+
}, "q27", $scope6_id),
|
|
6992
7172
|
onCancel: _resume(function() {
|
|
6993
7173
|
renaming = null;
|
|
6994
|
-
}, "
|
|
7174
|
+
}, "q28", $scope6_id)
|
|
6995
7175
|
});
|
|
6996
7176
|
writeScope($scope6_id, { a: _existing_scope($childScope4) });
|
|
6997
7177
|
return 0;
|
|
6998
7178
|
}
|
|
6999
7179
|
}, $scope0_id, "i");
|
|
7000
7180
|
_html("</div>");
|
|
7001
|
-
_script($scope0_id, "
|
|
7002
|
-
_script($scope0_id, "
|
|
7003
|
-
_script($scope0_id, "
|
|
7004
|
-
_script($scope0_id, "
|
|
7005
|
-
_script($scope0_id, "
|
|
7181
|
+
_script($scope0_id, "q31");
|
|
7182
|
+
_script($scope0_id, "q32");
|
|
7183
|
+
_script($scope0_id, "q33");
|
|
7184
|
+
_script($scope0_id, "q34");
|
|
7185
|
+
_script($scope0_id, "q35");
|
|
7006
7186
|
writeScope($scope0_id, {
|
|
7007
7187
|
m: input.allStatus,
|
|
7008
7188
|
n: input.active,
|
|
@@ -21497,4 +21677,4 @@ server.listen(port, () => {
|
|
|
21497
21677
|
//#endregion
|
|
21498
21678
|
export {};
|
|
21499
21679
|
|
|
21500
|
-
;var __MARKO_MANIFEST__={"esfPH6H":{"block":[2,"stylesheet#/assets/index-
|
|
21680
|
+
;var __MARKO_MANIFEST__={"esfPH6H":{"block":[2,"stylesheet#/assets/index-DaxFUqZq.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/index-DaxFUqZq.css\"",">"],"defer":[2,"/assets/index-_W4Ej1WQ.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/index-_W4Ej1WQ.js\"","></script>"]}};
|