@dylanpiercey/work 0.0.45 → 0.0.46
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/{_DncwyiYL.js → _BlRAjywT.js} +57 -57
- package/dist/{_BlvusYIA.js → _CWl3Ch5X.js} +2 -2
- package/dist/index.mjs +135 -134
- package/dist/public/assets/{_CUudFj1k2.js → _2M21bg3q2.js} +1 -1
- package/dist/public/assets/_2M21bg3q2.js.br +0 -0
- package/dist/public/assets/{_Drob8ol2.js → _352AdLA5.js} +1 -1
- package/dist/public/assets/_352AdLA5.js.br +0 -0
- package/dist/public/assets/{_MbiYJ36s.js → _3Ix19RVv.js} +1 -1
- package/dist/public/assets/_3Ix19RVv.js.br +0 -0
- package/dist/public/assets/{_BBnPf4LB.js → _7EJ8kgH9.js} +1 -1
- package/dist/public/assets/_7EJ8kgH9.js.br +0 -0
- package/dist/public/assets/{_BKPFmzRa2.js → _7QGssl5Y2.js} +1 -1
- package/dist/public/assets/_7QGssl5Y2.js.br +0 -0
- package/dist/public/assets/{_IiVyZhFQ2.js → _AnY5lXmz2.js} +1 -1
- package/dist/public/assets/_AnY5lXmz2.js.br +0 -0
- package/dist/public/assets/{_B1lH2KuX.js → _B0-W17hf.js} +1 -1
- package/dist/public/assets/_B0-W17hf.js.br +0 -0
- package/dist/public/assets/{_Fd6qP3go.js → _B5-VBCs9.js} +1 -1
- package/dist/public/assets/_B5-VBCs9.js.br +0 -0
- package/dist/public/assets/{_DAp7RKbE2.js → _BAm2L16s2.js} +1 -1
- package/dist/public/assets/_BAm2L16s2.js.br +0 -0
- package/dist/public/assets/{_CBWyaxNg.js → _BBEhnK4G.js} +1 -1
- package/dist/public/assets/_BBEhnK4G.js.br +0 -0
- package/dist/public/assets/{_D5wyt0NZ.js → _BEK6FWxR.js} +1 -1
- package/dist/public/assets/_BEK6FWxR.js.br +0 -0
- package/dist/public/assets/{_wx4NAfvC.js → _BIoq-ERW.js} +1 -1
- package/dist/public/assets/_BIoq-ERW.js.br +0 -0
- package/dist/public/assets/{_DlEZP4B2.js → _BKoNtf_F.js} +1 -1
- package/dist/public/assets/_BKoNtf_F.js.br +0 -0
- package/dist/public/assets/{_RcdEaPTX.js → _BRlDlrsI.js} +1 -1
- package/dist/public/assets/_BRlDlrsI.js.br +0 -0
- package/dist/public/assets/{_Bj8eqKyf2.js → _BXfL26ye2.js} +1 -1
- package/dist/public/assets/_BXfL26ye2.js.br +0 -0
- package/dist/public/assets/{_DQZT5aYv2.js → _BYauXu-72.js} +1 -1
- package/dist/public/assets/_BYauXu-72.js.br +0 -0
- package/dist/public/assets/{_BQKEgF_-.js → _B_q23_II.js} +1 -1
- package/dist/public/assets/_B_q23_II.js.br +0 -0
- package/dist/public/assets/{_HmwD_O7C.js → _BfHpfaZ_.js} +1 -1
- package/dist/public/assets/_BfHpfaZ_.js.br +0 -0
- package/dist/public/assets/{_CVpg0dqw.js → _BgEZ4VVT.js} +1 -1
- package/dist/public/assets/_BgEZ4VVT.js.br +0 -0
- package/dist/public/assets/{_rShrll8V.js → _BjNNABN4.js} +1 -1
- package/dist/public/assets/_BjNNABN4.js.br +0 -0
- package/dist/public/assets/{_7WXyLEhK.js → _Bl1lbp_w.js} +1 -1
- package/dist/public/assets/_Bl1lbp_w.js.br +0 -0
- package/dist/public/assets/{_C9jJ-zAu2.js → _BpdQAAz52.js} +1 -1
- package/dist/public/assets/_BpdQAAz52.js.br +0 -0
- package/dist/public/assets/{_c4j42n9F2.js → _Buzw695T2.js} +1 -1
- package/dist/public/assets/_Buzw695T2.js.br +0 -0
- package/dist/public/assets/{_C5qWivO82.js → _BwiRBnwa2.js} +1 -1
- package/dist/public/assets/_BwiRBnwa2.js.br +0 -0
- package/dist/public/assets/{_Dp6GcCez.js → _Bwvf5O5m.js} +1 -1
- package/dist/public/assets/_Bwvf5O5m.js.br +0 -0
- package/dist/public/assets/{_Cu2zWIrA.js → _BxoEzgEZ.js} +1 -1
- package/dist/public/assets/_BxoEzgEZ.js.br +0 -0
- package/dist/public/assets/{_BeS7I1tE.js → _C2_FIDzy.js} +1 -1
- package/dist/public/assets/_C2_FIDzy.js.br +0 -0
- package/dist/public/assets/{_COItZVVh.js → _C7ePJdWG.js} +1 -1
- package/dist/public/assets/_C7ePJdWG.js.br +0 -0
- package/dist/public/assets/{_C2a60ukk2.js → _C8Et1SyI2.js} +1 -1
- package/dist/public/assets/_C8Et1SyI2.js.br +0 -0
- package/dist/public/assets/{_M4_M1GCx2.js → _C8ZyCmzP2.js} +1 -1
- package/dist/public/assets/_C8ZyCmzP2.js.br +0 -0
- package/dist/public/assets/{_BmpuJc0U2.js → _CCEQHCkw2.js} +1 -1
- package/dist/public/assets/_CCEQHCkw2.js.br +0 -0
- package/dist/public/assets/{_BKSy9tfl.js → _CF8Ye5Pr.js} +1 -1
- package/dist/public/assets/_CF8Ye5Pr.js.br +0 -0
- package/dist/public/assets/{_DJIoEU4l.js → _CG1U-TrX.js} +1 -1
- package/dist/public/assets/_CG1U-TrX.js.br +0 -0
- package/dist/public/assets/{_DSl3gnKp2.js → _CHF-A3pQ2.js} +1 -1
- package/dist/public/assets/{_QBVNsQ8h.js → _CIWR8COm.js} +1 -1
- package/dist/public/assets/_CIWR8COm.js.br +0 -0
- package/dist/public/assets/{_BszYFXns.js → _CJb-25b5.js} +1 -1
- package/dist/public/assets/_CJb-25b5.js.br +0 -0
- package/dist/public/assets/{_BrNJO7NC.js → _CNkHd20B.js} +1 -1
- package/dist/public/assets/_CNkHd20B.js.br +0 -0
- package/dist/public/assets/{_0jDMZ5Nf.js → _CPintIPn.js} +1 -1
- package/dist/public/assets/_CPintIPn.js.br +0 -0
- package/dist/public/assets/{_CWcbEhLf.js → _CV-6NFPr.js} +1 -1
- package/dist/public/assets/_CV-6NFPr.js.br +0 -0
- package/dist/public/assets/{_BsDGIBWi.js → _CcKgVKPB.js} +1 -1
- package/dist/public/assets/_CcKgVKPB.js.br +0 -0
- package/dist/public/assets/{_CxfUzQkI.js → _Cjul82Zq.js} +1 -1
- package/dist/public/assets/_Cjul82Zq.js.br +0 -0
- package/dist/public/assets/{_B2jdNsMP.js → _ClIws-96.js} +33 -33
- package/dist/public/assets/_ClIws-96.js.br +0 -0
- package/dist/public/assets/{_B6bkX_xw.js → _CovynO6D.js} +1 -1
- package/dist/public/assets/_CovynO6D.js.br +0 -0
- package/dist/public/assets/{_B7_IQvxy.js → _CulCcVql.js} +1 -1
- package/dist/public/assets/_CulCcVql.js.br +0 -0
- package/dist/public/assets/{_gqKnRhHm2.js → _D1PGPveJ2.js} +1 -1
- package/dist/public/assets/_D1PGPveJ2.js.br +0 -0
- package/dist/public/assets/{_C7E2sftJ.js → _D6gJIVAe.js} +1 -1
- package/dist/public/assets/_D6gJIVAe.js.br +0 -0
- package/dist/public/assets/{_BVVf3KNx2.js → _DCWsqkZv2.js} +1 -1
- package/dist/public/assets/_DCWsqkZv2.js.br +0 -0
- package/dist/public/assets/{_i3m2va9y2.js → _DCm-_PJn2.js} +1 -1
- package/dist/public/assets/_DCm-_PJn2.js.br +0 -0
- package/dist/public/assets/{_DmkxrcNE2.js → _DEwU7Qht2.js} +1 -1
- package/dist/public/assets/_DEwU7Qht2.js.br +0 -0
- package/dist/public/assets/{_6t6kjpdU.js → _DGWBK-es.js} +1 -1
- package/dist/public/assets/_DGWBK-es.js.br +0 -0
- package/dist/public/assets/{_DYgx29Kq2.js → _DHGqWb3U2.js} +1 -1
- package/dist/public/assets/{_BdE0YzeT2.js → _DNzVvAp22.js} +1 -1
- package/dist/public/assets/_DNzVvAp22.js.br +0 -0
- package/dist/public/assets/{_DSfzkPVh.js → _DTpbGvLK.js} +1 -1
- package/dist/public/assets/_DTpbGvLK.js.br +0 -0
- package/dist/public/assets/{_B-tmCiTe2.js → _DXcwnV6_2.js} +1 -1
- package/dist/public/assets/_DXcwnV6_2.js.br +0 -0
- package/dist/public/assets/{_CVRoyRZW.js → _DXwZkY0g.js} +1 -1
- package/dist/public/assets/_DXwZkY0g.js.br +0 -0
- package/dist/public/assets/{_2JIp-AkL.js → _DXyHmj0W.js} +1 -1
- package/dist/public/assets/_DXyHmj0W.js.br +0 -0
- package/dist/public/assets/{_DUwDVnyb2.js → _Da-7IlQ12.js} +1 -1
- package/dist/public/assets/_Da-7IlQ12.js.br +0 -0
- package/dist/public/assets/{_cRSAYsIy.js → _Da05VMNb.js} +1 -1
- package/dist/public/assets/_Da05VMNb.js.br +0 -0
- package/dist/public/assets/{_DAES5BQ6.js → _DbNaSvXF.js} +1 -1
- package/dist/public/assets/_DbNaSvXF.js.br +0 -0
- package/dist/public/assets/{_ChdHZg3q2.js → _DfrjsE1y2.js} +1 -1
- package/dist/public/assets/_DfrjsE1y2.js.br +0 -0
- package/dist/public/assets/{_NSw61-q82.js → _DqtgQ2KQ2.js} +1 -1
- package/dist/public/assets/_DqtgQ2KQ2.js.br +0 -0
- package/dist/public/assets/{_CQjfWgLv.js → _EuJYsBIp.js} +1 -1
- package/dist/public/assets/_EuJYsBIp.js.br +0 -0
- package/dist/public/assets/{_CCxiHsg1.js → _KWAohXQr.js} +1 -1
- package/dist/public/assets/_KWAohXQr.js.br +0 -0
- package/dist/public/assets/{_BEn7bsbI.js → _XYmpEKpu.js} +1 -1
- package/dist/public/assets/_XYmpEKpu.js.br +0 -0
- package/dist/public/assets/{_B-HE1A0L.js → _YewM841C.js} +1 -1
- package/dist/public/assets/_YewM841C.js.br +0 -0
- package/dist/public/assets/{_GX4ApnkB.js → _apOz5w70.js} +1 -1
- package/dist/public/assets/_apOz5w70.js.br +0 -0
- package/dist/public/assets/{_Ty6Zi_p6.js → _bnyHmBSB.js} +1 -1
- package/dist/public/assets/_bnyHmBSB.js.br +0 -0
- package/dist/public/assets/{_DdvD3pSx2.js → _cEH-PUtq2.js} +1 -1
- package/dist/public/assets/_cEH-PUtq2.js.br +0 -0
- package/dist/public/assets/{_CvB8TafR.js → _dqrrRyjM.js} +1 -1
- package/dist/public/assets/_dqrrRyjM.js.br +0 -0
- package/dist/public/assets/{_C-3_S2jT.js → _eKiwGFGI.js} +1 -1
- package/dist/public/assets/_eKiwGFGI.js.br +0 -0
- package/dist/public/assets/{_Csumg8kE2.js → _iIzVA4u72.js} +1 -1
- package/dist/public/assets/_iIzVA4u72.js.br +0 -0
- package/dist/public/assets/{_DbeeD9R1.js → _iTZwOiw8.js} +1 -1
- package/dist/public/assets/_iTZwOiw8.js.br +0 -0
- package/dist/public/assets/{_CMXeuTU3.js → _nYIFwHU2.js} +1 -1
- package/dist/public/assets/_nYIFwHU2.js.br +0 -0
- package/dist/public/assets/{_BPhrpOAd.js → _qriUiiqP.js} +1 -1
- package/dist/public/assets/_qriUiiqP.js.br +0 -0
- package/dist/public/assets/{_wsALS6ya.js → _qsL2FxXl.js} +1 -1
- package/dist/public/assets/_qsL2FxXl.js.br +0 -0
- package/dist/public/assets/{_WSiIjl8k.js → _wqvH6a9w.js} +1 -1
- package/dist/public/assets/diff-view-C8mNAKSm.css +1 -0
- package/dist/public/assets/diff-view-C8mNAKSm.css.br +0 -0
- package/dist/public/assets/index-7WlgwCwh.css +1 -0
- package/dist/public/assets/index-7WlgwCwh.css.br +0 -0
- package/dist/public/assets/index-BffJzCDz.js +86 -0
- package/dist/public/assets/index-BffJzCDz.js.br +0 -0
- package/dist/public/assets/{preload-helper-Di0vWBYv.css → preload-helper-EAZGOO6u.css} +1 -1
- package/dist/public/assets/preload-helper-EAZGOO6u.css.br +0 -0
- package/package.json +1 -2
- package/dist/public/assets/_0jDMZ5Nf.js.br +0 -0
- package/dist/public/assets/_2JIp-AkL.js.br +0 -0
- package/dist/public/assets/_6t6kjpdU.js.br +0 -0
- package/dist/public/assets/_7WXyLEhK.js.br +0 -0
- package/dist/public/assets/_B-HE1A0L.js.br +0 -0
- package/dist/public/assets/_B-tmCiTe2.js.br +0 -0
- package/dist/public/assets/_B1lH2KuX.js.br +0 -0
- package/dist/public/assets/_B2jdNsMP.js.br +0 -0
- package/dist/public/assets/_B6bkX_xw.js.br +0 -0
- package/dist/public/assets/_B7_IQvxy.js.br +0 -0
- package/dist/public/assets/_BBnPf4LB.js.br +0 -0
- package/dist/public/assets/_BEn7bsbI.js.br +0 -0
- package/dist/public/assets/_BKPFmzRa2.js.br +0 -0
- package/dist/public/assets/_BKSy9tfl.js.br +0 -0
- package/dist/public/assets/_BPhrpOAd.js.br +0 -0
- package/dist/public/assets/_BQKEgF_-.js.br +0 -0
- package/dist/public/assets/_BVVf3KNx2.js.br +0 -0
- package/dist/public/assets/_BdE0YzeT2.js.br +0 -0
- package/dist/public/assets/_BeS7I1tE.js.br +0 -0
- package/dist/public/assets/_Bj8eqKyf2.js.br +0 -0
- package/dist/public/assets/_BmpuJc0U2.js.br +0 -0
- package/dist/public/assets/_BrNJO7NC.js.br +0 -0
- package/dist/public/assets/_BsDGIBWi.js.br +0 -0
- package/dist/public/assets/_BszYFXns.js.br +0 -0
- package/dist/public/assets/_C-3_S2jT.js.br +0 -0
- package/dist/public/assets/_C2a60ukk2.js.br +0 -0
- package/dist/public/assets/_C5qWivO82.js.br +0 -0
- package/dist/public/assets/_C7E2sftJ.js.br +0 -0
- package/dist/public/assets/_C9jJ-zAu2.js.br +0 -0
- package/dist/public/assets/_CBWyaxNg.js.br +0 -0
- package/dist/public/assets/_CCxiHsg1.js.br +0 -0
- package/dist/public/assets/_CMXeuTU3.js.br +0 -0
- package/dist/public/assets/_COItZVVh.js.br +0 -0
- package/dist/public/assets/_CQjfWgLv.js.br +0 -0
- package/dist/public/assets/_CUudFj1k2.js.br +0 -0
- package/dist/public/assets/_CVRoyRZW.js.br +0 -0
- package/dist/public/assets/_CVpg0dqw.js.br +0 -0
- package/dist/public/assets/_CWcbEhLf.js.br +0 -0
- package/dist/public/assets/_ChdHZg3q2.js.br +0 -0
- package/dist/public/assets/_Csumg8kE2.js.br +0 -0
- package/dist/public/assets/_Cu2zWIrA.js.br +0 -0
- package/dist/public/assets/_CvB8TafR.js.br +0 -0
- package/dist/public/assets/_CxfUzQkI.js.br +0 -0
- package/dist/public/assets/_D5wyt0NZ.js.br +0 -0
- package/dist/public/assets/_DAES5BQ6.js.br +0 -0
- package/dist/public/assets/_DAp7RKbE2.js.br +0 -0
- package/dist/public/assets/_DJIoEU4l.js.br +0 -0
- package/dist/public/assets/_DQZT5aYv2.js.br +0 -0
- package/dist/public/assets/_DSfzkPVh.js.br +0 -0
- package/dist/public/assets/_DUwDVnyb2.js.br +0 -0
- package/dist/public/assets/_DbeeD9R1.js.br +0 -0
- package/dist/public/assets/_DdvD3pSx2.js.br +0 -0
- package/dist/public/assets/_DlEZP4B2.js.br +0 -0
- package/dist/public/assets/_DmkxrcNE2.js.br +0 -0
- package/dist/public/assets/_Dp6GcCez.js.br +0 -0
- package/dist/public/assets/_Drob8ol2.js.br +0 -0
- package/dist/public/assets/_Fd6qP3go.js.br +0 -0
- package/dist/public/assets/_GX4ApnkB.js.br +0 -0
- package/dist/public/assets/_HmwD_O7C.js.br +0 -0
- package/dist/public/assets/_IiVyZhFQ2.js.br +0 -0
- package/dist/public/assets/_M4_M1GCx2.js.br +0 -0
- package/dist/public/assets/_MbiYJ36s.js.br +0 -0
- package/dist/public/assets/_NSw61-q82.js.br +0 -0
- package/dist/public/assets/_QBVNsQ8h.js.br +0 -0
- package/dist/public/assets/_RcdEaPTX.js.br +0 -0
- package/dist/public/assets/_Ty6Zi_p6.js.br +0 -0
- package/dist/public/assets/_c4j42n9F2.js.br +0 -0
- package/dist/public/assets/_cRSAYsIy.js.br +0 -0
- package/dist/public/assets/_gqKnRhHm2.js.br +0 -0
- package/dist/public/assets/_i3m2va9y2.js.br +0 -0
- package/dist/public/assets/_rShrll8V.js.br +0 -0
- package/dist/public/assets/_wsALS6ya.js.br +0 -0
- package/dist/public/assets/_wx4NAfvC.js.br +0 -0
- package/dist/public/assets/diff-view-l7q43Ong.css +0 -1
- package/dist/public/assets/diff-view-l7q43Ong.css.br +0 -0
- package/dist/public/assets/index-BXWsr0DP.js +0 -86
- package/dist/public/assets/index-BXWsr0DP.js.br +0 -0
- package/dist/public/assets/index-Du7Hgz2d.css +0 -1
- package/dist/public/assets/index-Du7Hgz2d.css.br +0 -0
- package/dist/public/assets/preload-helper-Di0vWBYv.css.br +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM, r as __exportAll, t as __commonJSMin } from "./_BMI-E3GI.js";
|
|
2
2
|
import { A as TMUX_SOCKET, B as db, C as pushPublicKey, D as preferredAgent, E as allPrefs, F as publish, H as workspacePath, I as subscribe, L as subscriberCount, M as git, N as run, O as setPref, P as tmux, R as subscriberJoins, S as deleteSubscription, T as AGENTS, U as config, V as get, _ as reasonFromHookPayload, a as killSession, b as setSessionViewers, c as newSessionArgs, d as renameSession, f as sendToSession, g as clearAgentPhase, h as reportsWorking, i as getSession, j as gh, k as setSetting, m as tmuxName, n as createSession, o as killWorkspaceSessions, p as sessionStates, r as ensureTmuxServer, s as listSessions, t as cleanEnv, u as panePids, v as setAgentPhase, w as saveSubscription, x as summaryFromHookPayload, y as setScrapedPhase, z as all } from "./_P9IsUQm2.js";
|
|
3
|
-
import { $ as _subscribe, A as _el_resume, B as _peek_scope_id, C as _attr_style, D as _dynamic_tag, E as _content_resume, F as _hoist, G as _scope_with_id, H as _resume_branch, I as _hoist_read_error, J as _serialize_guard, K as _script, L as _html, M as _existing_scope, N as _flush_head, P as _for_of, Q as _show_start, R as _id, S as _attr_select_value, T as _content, U as _scope_id, V as _resume, W as _scope_reason, X as _set_serialize_reason, Y as _serialize_if, Z as _show_end, _ as _attr, at as attrTag, b as _attr_input_value, c as sideNavOpen, d as icon_base_default, et as _template, f as fuzzy, g as $global, h as phase, i as icon_sidebar_default, it as _var, j as _escape, k as _el_read_error, l as workspaceTab, m as toast_default, n as findIconBtn, nt as _trailers, ot as withPageAssets, p as rankRepos, q as _sep, r as findInput, rt as _try, s as setWorkspaceTab, st as writeScope, tt as _to_text, u as icon_refresh_default, v as _attr_class, w as _await, x as _attr_option_value, z as _if } from "./
|
|
3
|
+
import { $ as _subscribe, A as _el_resume, B as _peek_scope_id, C as _attr_style, D as _dynamic_tag, E as _content_resume, F as _hoist, G as _scope_with_id, H as _resume_branch, I as _hoist_read_error, J as _serialize_guard, K as _script, L as _html, M as _existing_scope, N as _flush_head, P as _for_of, Q as _show_start, R as _id, S as _attr_select_value, T as _content, U as _scope_id, V as _resume, W as _scope_reason, X as _set_serialize_reason, Y as _serialize_if, Z as _show_end, _ as _attr, at as attrTag, b as _attr_input_value, c as sideNavOpen, d as icon_base_default, et as _template, f as fuzzy, g as $global, h as phase, i as icon_sidebar_default, it as _var, j as _escape, k as _el_read_error, l as workspaceTab, m as toast_default, n as findIconBtn, nt as _trailers, ot as withPageAssets, p as rankRepos, q as _sep, r as findInput, rt as _try, s as setWorkspaceTab, st as writeScope, tt as _to_text, u as icon_refresh_default, v as _attr_class, w as _await, x as _attr_option_value, z as _if } from "./_CWl3Ch5X.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
import path from "node:path";
|
|
@@ -3046,14 +3046,14 @@ var repo_picker_default = _template("q", (input) => {
|
|
|
3046
3046
|
input.onError?.(String(err.message || err));
|
|
3047
3047
|
}
|
|
3048
3048
|
}, "q5", $scope0_id);
|
|
3049
|
-
_html(`<div${_attr_class("
|
|
3049
|
+
_html(`<div${_attr_class("_bZ")}><input${_attr_input_value($scope0_id, "b", filter, _resume(function(v) {
|
|
3050
3050
|
filter = v;
|
|
3051
3051
|
highlight = 0;
|
|
3052
|
-
}, "q0", $scope0_id))}${_attr_class("
|
|
3052
|
+
}, "q0", $scope0_id))}${_attr_class("_ca")} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input.disabled)}>${_el_resume($scope0_id, "b")}`);
|
|
3053
3053
|
_if(() => {
|
|
3054
3054
|
if (filter && !catalog) {
|
|
3055
3055
|
const $scope8_id = _scope_id();
|
|
3056
|
-
_html(`<p${_attr_class("
|
|
3056
|
+
_html(`<p${_attr_class("_b_")}>Loading repos…</p>`);
|
|
3057
3057
|
writeScope($scope8_id, {});
|
|
3058
3058
|
return 0;
|
|
3059
3059
|
}
|
|
@@ -3061,23 +3061,23 @@ var repo_picker_default = _template("q", (input) => {
|
|
|
3061
3061
|
_if(() => {
|
|
3062
3062
|
if (results.length) {
|
|
3063
3063
|
const $scope2_id = _scope_id();
|
|
3064
|
-
_html(`<ul${_attr_class("
|
|
3064
|
+
_html(`<ul${_attr_class("_b0")}>`);
|
|
3065
3065
|
_for_of(results, (repo, i) => {
|
|
3066
3066
|
const $scope3_id = _scope_id();
|
|
3067
|
-
_html(`<li><div${_attr_class(["
|
|
3067
|
+
_html(`<li><div${_attr_class(["_b2", { ["_b1"]: i === highlight }])}><button${_attr_class("_b3")}>`);
|
|
3068
3068
|
icon_plus_default({
|
|
3069
3069
|
size: 12,
|
|
3070
|
-
class: "
|
|
3070
|
+
class: "_b8"
|
|
3071
3071
|
});
|
|
3072
|
-
_html(`<span${_attr_class("
|
|
3072
|
+
_html(`<span${_attr_class("_b9")}>${_escape(repo.nameWithOwner)}${_el_resume($scope3_id, "e")}</span></button>${_el_resume($scope3_id, "b")}<button${_attr_class(["_b5", { ["_b4"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>⎇</button>${_el_resume($scope3_id, "f")}</div>${_el_resume($scope3_id, "a")}`);
|
|
3073
3073
|
_if(() => {
|
|
3074
3074
|
if (branchesFor === repo.nameWithOwner) {
|
|
3075
3075
|
const $scope4_id = _scope_id();
|
|
3076
|
-
_html(`<div${_attr_class("
|
|
3076
|
+
_html(`<div${_attr_class("_b6")}>`);
|
|
3077
3077
|
_if(() => {
|
|
3078
3078
|
if (!branches) {
|
|
3079
3079
|
const $scope9_id = _scope_id();
|
|
3080
|
-
_html(`<p${_attr_class("
|
|
3080
|
+
_html(`<p${_attr_class("_b_")}><span${_attr_class("_w")}></span> Loading branches…</p>`);
|
|
3081
3081
|
writeScope($scope9_id, {});
|
|
3082
3082
|
return 0;
|
|
3083
3083
|
} else {
|
|
@@ -3087,24 +3087,24 @@ var repo_picker_default = _template("q", (input) => {
|
|
|
3087
3087
|
const $scope6_id = _scope_id();
|
|
3088
3088
|
_html(`<input${_attr_input_value($scope6_id, "a", branchFilter, _resume((_new_branchFilter) => {
|
|
3089
3089
|
branchFilter = _new_branchFilter;
|
|
3090
|
-
}, "q1", $scope6_id))}${_attr_class("
|
|
3090
|
+
}, "q1", $scope6_id))}${_attr_class("_cb")} placeholder="Filter branches…" aria-label="Filter branches" autofocus>${_el_resume($scope6_id, "a")}`);
|
|
3091
3091
|
_script($scope6_id, "q6");
|
|
3092
3092
|
_subscribe($branchFilter__closures, writeScope($scope6_id, { Ca9: 1 }));
|
|
3093
3093
|
return 0;
|
|
3094
3094
|
}
|
|
3095
3095
|
}, $scope5_id, "a", 1, 1, 1, 0, 1);
|
|
3096
3096
|
const shown = (branchFilter ? branches.filter((b) => b.toLowerCase().includes(branchFilter.toLowerCase())) : branches).slice(0, 12);
|
|
3097
|
-
_html(`<ul${_attr_class("
|
|
3097
|
+
_html(`<ul${_attr_class("_b7")}>`);
|
|
3098
3098
|
_for_of(shown, (branch) => {
|
|
3099
3099
|
const $scope7_id = _scope_id();
|
|
3100
|
-
_html(`<li><button${_attr_class(["
|
|
3100
|
+
_html(`<li><button${_attr_class(["_b3", "_cc"])}><span${_attr_class(["_b9", "_o"])}>${_escape(branch)}${_el_resume($scope7_id, "c")}</span></button>${_el_resume($scope7_id, "a")}</li>`);
|
|
3101
3101
|
_script($scope7_id, "q7");
|
|
3102
3102
|
writeScope($scope7_id, { e: branch });
|
|
3103
3103
|
}, (b) => b, $scope5_id, "c", 1, 1, 1, 0, 1);
|
|
3104
3104
|
_if(() => {
|
|
3105
3105
|
if (!shown.length) {
|
|
3106
3106
|
const $scope10_id = _scope_id();
|
|
3107
|
-
_html(`<li><p${_attr_class("
|
|
3107
|
+
_html(`<li><p${_attr_class("_b_")}>No branches match.</p></li>`);
|
|
3108
3108
|
writeScope($scope10_id, {});
|
|
3109
3109
|
return 0;
|
|
3110
3110
|
}
|
|
@@ -3129,7 +3129,7 @@ var repo_picker_default = _template("q", (input) => {
|
|
|
3129
3129
|
return 0;
|
|
3130
3130
|
} else if (filter && catalog) {
|
|
3131
3131
|
const $scope1_id = _scope_id();
|
|
3132
|
-
_html(`<p${_attr_class("
|
|
3132
|
+
_html(`<p${_attr_class("_b_")}>No repos match "<!>${_escape(filter)}${_el_resume($scope1_id, "b")}".</p>`);
|
|
3133
3133
|
writeScope($scope1_id, {});
|
|
3134
3134
|
return 1;
|
|
3135
3135
|
}
|
|
@@ -3494,8 +3494,8 @@ function vapidKey(base64) {
|
|
|
3494
3494
|
const raw = atob(padded.replace(/-/g, "+").replace(/_/g, "/"));
|
|
3495
3495
|
return Uint8Array.from(raw, (c) => c.charCodeAt(0));
|
|
3496
3496
|
}
|
|
3497
|
-
var iconBtn$2 = "
|
|
3498
|
-
var navToggle = "
|
|
3497
|
+
var iconBtn$2 = "_c_ _y";
|
|
3498
|
+
var navToggle = "_dd _y";
|
|
3499
3499
|
_template("C", (input) => {
|
|
3500
3500
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
3501
3501
|
const $scope0_id = _scope_id();
|
|
@@ -3528,7 +3528,7 @@ var icon_gauge_default = _template("J", (input) => {
|
|
|
3528
3528
|
});
|
|
3529
3529
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
3530
3530
|
});
|
|
3531
|
-
var railBtn = "
|
|
3531
|
+
var railBtn = "_fB _y";
|
|
3532
3532
|
//#endregion
|
|
3533
3533
|
//#region src/tags/icons/icon-edit.marko
|
|
3534
3534
|
var icon_edit_default = _template("H", (input) => {
|
|
@@ -3546,12 +3546,12 @@ var icon_edit_default = _template("H", (input) => {
|
|
|
3546
3546
|
});
|
|
3547
3547
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
3548
3548
|
});
|
|
3549
|
-
var prChip = "
|
|
3550
|
-
var portChip = "
|
|
3549
|
+
var prChip = "_f1 _j _f0";
|
|
3550
|
+
var portChip = "_f2 _j _f0";
|
|
3551
3551
|
var prState = {
|
|
3552
|
-
open: "
|
|
3553
|
-
merged: "
|
|
3554
|
-
closed: "
|
|
3552
|
+
open: "_f7",
|
|
3553
|
+
merged: "_f8",
|
|
3554
|
+
closed: "_f9"
|
|
3555
3555
|
};
|
|
3556
3556
|
//#endregion
|
|
3557
3557
|
//#region src/tags/icons/icon-xmark.marko
|
|
@@ -3615,7 +3615,7 @@ var side_nav_chips_default = _template("r", (input) => {
|
|
|
3615
3615
|
const name = repo.full_name.split("/")[1];
|
|
3616
3616
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/")[1] === name) ? repo.full_name : name;
|
|
3617
3617
|
}, "r2", $scope1_id);
|
|
3618
|
-
_html(`<div${_attr_class("
|
|
3618
|
+
_html(`<div${_attr_class("_fZ")}>`);
|
|
3619
3619
|
_for_of(repos, (repo) => {
|
|
3620
3620
|
const $scope2_id = _scope_id();
|
|
3621
3621
|
_for_of(repo.prs || [], (pr) => {
|
|
@@ -3630,11 +3630,11 @@ var side_nav_chips_default = _template("r", (input) => {
|
|
|
3630
3630
|
[prState.merged]: pr.state === "MERGED",
|
|
3631
3631
|
[prState.closed]: pr.state === "CLOSED"
|
|
3632
3632
|
}
|
|
3633
|
-
])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["
|
|
3633
|
+
])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["_f3", { ["_ga"]: !open }])}${_attr("href", pr.url)} target=_blank rel=noopener>${_escape(repoLabel(repo))}${_el_resume($scope3_id, "c", $sg__input_status_repos)}#${_sep($sg__input_status_repos)}${_escape(pr.number)}${_el_resume($scope3_id, "d", $sg__input_status_repos)}</a>${_el_resume($scope3_id, "b", $sg__input_status_repos)}`);
|
|
3634
3634
|
_if(() => {
|
|
3635
3635
|
if (open) {
|
|
3636
3636
|
const $scope4_id = _scope_id();
|
|
3637
|
-
_html(`<button type=button${_attr_class(["
|
|
3637
|
+
_html(`<button type=button${_attr_class(["_f3", "_f4"])}${_attr("title", `Review #${pr.number} diff`)}>`);
|
|
3638
3638
|
icon_diff_default({ size: 12 });
|
|
3639
3639
|
_html(`</button>${_el_resume($scope4_id, "a")}`);
|
|
3640
3640
|
_script($scope4_id, "r3");
|
|
@@ -3643,9 +3643,9 @@ var side_nav_chips_default = _template("r", (input) => {
|
|
|
3643
3643
|
} else {
|
|
3644
3644
|
const $scope6_id = _scope_id();
|
|
3645
3645
|
_html(`<button type=button${_attr_class([
|
|
3646
|
-
"
|
|
3647
|
-
"
|
|
3648
|
-
"
|
|
3646
|
+
"_f3",
|
|
3647
|
+
"_f4",
|
|
3648
|
+
"_f5"
|
|
3649
3649
|
])}${_attr("title", `Clear #${pr.number} from this list`)}>`);
|
|
3650
3650
|
icon_xmark_default({ size: 12 });
|
|
3651
3651
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
@@ -3669,11 +3669,11 @@ var side_nav_chips_default = _template("r", (input) => {
|
|
|
3669
3669
|
}, "full_name", $scope1_id, "b", $sg__input_status_repos, $sg__input_status_repos, $sg__input_status_repos__OR__input_status_ports);
|
|
3670
3670
|
_for_of(ports, (p) => {
|
|
3671
3671
|
const $scope5_id = _scope_id();
|
|
3672
|
-
_html(`<span${_attr_class(["_j", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["
|
|
3673
|
-
"_f1",
|
|
3674
|
-
"_f2",
|
|
3672
|
+
_html(`<span${_attr_class(["_j", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["_f3", "_f_"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${p.port}`)}>:${_sep($sg__input_status_ports)}${_escape(p.port)}${_el_resume($scope5_id, "c", $sg__input_status_ports)}</button>${_el_resume($scope5_id, "b")}<button type=button${_attr_class([
|
|
3675
3673
|
"_f3",
|
|
3676
|
-
|
|
3674
|
+
"_f4",
|
|
3675
|
+
"_f5",
|
|
3676
|
+
{ ["_f6"]: armedPid === p.pid }
|
|
3677
3677
|
])}${armedPid === p.pid ? _attr("title", `Really kill ${p.cmd}?`) : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
|
|
3678
3678
|
icon_xmark_default({ size: 12 });
|
|
3679
3679
|
_html(`</button>${_el_resume($scope5_id, "d")}</span>${_el_resume($scope5_id, "a", $sg__input_status_ports)}`);
|
|
@@ -3755,10 +3755,10 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
3755
3755
|
_if(() => {
|
|
3756
3756
|
if (input.rail) {
|
|
3757
3757
|
const $scope2_id = _scope_id();
|
|
3758
|
-
_html(`<button${_attr_class([railBtn, { ["
|
|
3758
|
+
_html(`<button${_attr_class([railBtn, { ["_fy"]: input.current }])}${_attr("title", ws$1.name)}>${_escape((input.index ?? 0) + 1)}${_el_resume($scope2_id, "b", _serialize_guard($scope0_reason, 17))}<span${_attr_class([
|
|
3759
3759
|
"_q",
|
|
3760
3760
|
phase[dot],
|
|
3761
|
-
"
|
|
3761
|
+
"_fC"
|
|
3762
3762
|
])}></span>${_el_resume($scope2_id, "c", $sg__input_workspaceId__OR__input_status)}</button>${_el_resume($scope2_id, "a")}`);
|
|
3763
3763
|
_script($scope2_id, "s3");
|
|
3764
3764
|
_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) }))));
|
|
@@ -3767,14 +3767,14 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
3767
3767
|
const $scope3_id = _scope_id();
|
|
3768
3768
|
const sessions$1 = input.sessions || [];
|
|
3769
3769
|
const phaseLabel = dot === "working" ? "Working" : dot === "waiting" ? "Needs you" : dot === "idle" ? "Idle" : "Off";
|
|
3770
|
-
_html(`<section${_attr_class(["
|
|
3771
|
-
["
|
|
3772
|
-
["
|
|
3773
|
-
["
|
|
3774
|
-
}])}><div${_attr_class("
|
|
3770
|
+
_html(`<section${_attr_class(["_fE", {
|
|
3771
|
+
["_fy"]: input.current,
|
|
3772
|
+
["_fF"]: input.railPop,
|
|
3773
|
+
["_fD"]: input.page
|
|
3774
|
+
}])}><div${_attr_class("_fG")}><button${_attr_class("_fH")}><span${_attr_class([
|
|
3775
3775
|
"_q",
|
|
3776
3776
|
phase[dot],
|
|
3777
|
-
"
|
|
3777
|
+
"_fR"
|
|
3778
3778
|
])}></span>${_el_resume($scope3_id, "d", $sg__input_workspaceId__OR__input_status)}`);
|
|
3779
3779
|
_if(() => {
|
|
3780
3780
|
if (sessions$1.length === 1) {
|
|
@@ -3787,7 +3787,7 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
3787
3787
|
icon_agent_default({
|
|
3788
3788
|
agent: activeAgent(sessions$1[0]),
|
|
3789
3789
|
size: 12,
|
|
3790
|
-
class: "
|
|
3790
|
+
class: "_fM"
|
|
3791
3791
|
});
|
|
3792
3792
|
$si__input_sessions && writeScope($scope12_id, {
|
|
3793
3793
|
_: _scope_with_id($scope3_id),
|
|
@@ -3797,11 +3797,11 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
3797
3797
|
}
|
|
3798
3798
|
}, $scope3_id, "e", $sg__input_sessions, $sg__input_sessions, $sg__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page);
|
|
3799
3799
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length === 1 ? sessions$1[0].title || "" : `${sessions$1.length} sessions`;
|
|
3800
|
-
_html(`<span${_attr_class("
|
|
3800
|
+
_html(`<span${_attr_class("_fN")}><span${_attr_class("_fO")}>${_escape(ws$1.name)}${_el_resume($scope3_id, "h", $sg__input_workspaces__OR__input_workspaceId)}</span>`);
|
|
3801
3801
|
_if(() => {
|
|
3802
3802
|
if (input.page && metaText) {
|
|
3803
3803
|
const $scope13_id = _scope_id();
|
|
3804
|
-
_html(`<span${_attr_class("
|
|
3804
|
+
_html(`<span${_attr_class("_fP")}>${_escape(metaText)}${_el_resume($scope13_id, "b", _serialize_guard($scope0_reason, 5))}</span>`);
|
|
3805
3805
|
$si__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page && writeScope($scope13_id, { _: _serialize_if($scope0_reason, 5) && _scope_with_id($scope3_id) });
|
|
3806
3806
|
return 0;
|
|
3807
3807
|
}
|
|
@@ -3810,7 +3810,7 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
3810
3810
|
_if(() => {
|
|
3811
3811
|
if (input.page) {
|
|
3812
3812
|
const $scope4_id = _scope_id();
|
|
3813
|
-
_html(`<span${_attr_class("
|
|
3813
|
+
_html(`<span${_attr_class("_fQ")}>${input.current ? "Open" : ""}${_el_resume($scope4_id, "b", _serialize_guard($scope0_reason, 16))}</span>`);
|
|
3814
3814
|
$si__input_workspaces__OR__input_workspaceId__OR__input_rail__OR__input_current__OR__input_page && _subscribe($si__input_current && $input_current__closures, writeScope($scope4_id, {
|
|
3815
3815
|
_: _scope_with_id($scope3_id),
|
|
3816
3816
|
Cab: $si__input_current && 2
|
|
@@ -3822,13 +3822,13 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
3822
3822
|
_if(() => {
|
|
3823
3823
|
if (!input.page) {
|
|
3824
3824
|
const $scope5_id = _scope_id();
|
|
3825
|
-
_html(`<div${_attr_class("
|
|
3825
|
+
_html(`<div${_attr_class("_fI")}>`);
|
|
3826
3826
|
_if(() => {
|
|
3827
3827
|
if (input.onNewSession) {
|
|
3828
3828
|
const $scope6_id = _scope_id();
|
|
3829
3829
|
const newPopId = _id();
|
|
3830
3830
|
let pickerReady = false;
|
|
3831
|
-
_html(`<button${_attr_class("
|
|
3831
|
+
_html(`<button${_attr_class("_fK")} title="New session"${_attr("popovertarget", newPopId)}>`);
|
|
3832
3832
|
icon_agent_default({
|
|
3833
3833
|
agent: "shell",
|
|
3834
3834
|
size: 12
|
|
@@ -3861,7 +3861,7 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
3861
3861
|
_if(() => {
|
|
3862
3862
|
if (input.onReview) {
|
|
3863
3863
|
const $scope8_id = _scope_id();
|
|
3864
|
-
_html(`<button${_attr_class("
|
|
3864
|
+
_html(`<button${_attr_class("_fK")} title="Review changes">`);
|
|
3865
3865
|
icon_diff_default({ size: 12 });
|
|
3866
3866
|
_html(`</button>${_el_resume($scope8_id, "a")}`);
|
|
3867
3867
|
_script($scope8_id, "s6");
|
|
@@ -3869,7 +3869,7 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
3869
3869
|
return 0;
|
|
3870
3870
|
}
|
|
3871
3871
|
}, $scope5_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
3872
|
-
_html(`<button${_attr_class(["
|
|
3872
|
+
_html(`<button${_attr_class(["_fK", { ["_fz"]: input.managing }])} title="Manage workspace" aria-pressed=${input.managing ? "true" : "false"}>`);
|
|
3873
3873
|
icon_manage_default({ size: 12 });
|
|
3874
3874
|
_html(`</button>${_el_resume($scope5_id, "d")}</div>`);
|
|
3875
3875
|
_script($scope5_id, "s7");
|
|
@@ -3877,17 +3877,17 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
3877
3877
|
return 0;
|
|
3878
3878
|
}
|
|
3879
3879
|
}, $scope3_id, "k", $sg__input_page, $sg__input_page, $sg__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page, 0, 1);
|
|
3880
|
-
_html(`</div><div${_attr_class("
|
|
3880
|
+
_html(`</div><div${_attr_class("_fW")}>`);
|
|
3881
3881
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
3882
3882
|
const $scope9_id = _scope_id();
|
|
3883
|
-
_html(`<div${_attr_class(["
|
|
3883
|
+
_html(`<div${_attr_class(["_fJ", { ["_fy"]: s.id === input.currentTab }])}>`);
|
|
3884
3884
|
_if(() => {
|
|
3885
3885
|
if (renamingId === s.id) {
|
|
3886
3886
|
const $scope11_id = _scope_id();
|
|
3887
3887
|
_html(`<span${_attr_class([
|
|
3888
3888
|
"_q",
|
|
3889
3889
|
phase[sessionPhase(s.state)],
|
|
3890
|
-
"
|
|
3890
|
+
"_fU"
|
|
3891
3891
|
])}></span>${_el_resume($scope11_id, "a", $sg__input_sessions)}`);
|
|
3892
3892
|
_set_serialize_reason({
|
|
3893
3893
|
1: $sg__input_sessions,
|
|
@@ -3897,17 +3897,17 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
3897
3897
|
icon_agent_default({
|
|
3898
3898
|
agent: activeAgent(s),
|
|
3899
3899
|
size: 13,
|
|
3900
|
-
class: "
|
|
3900
|
+
class: "_fY"
|
|
3901
3901
|
});
|
|
3902
3902
|
_html(`<input${_attr_input_value($scope11_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
3903
3903
|
renameValue = _new_renameValue;
|
|
3904
|
-
}, "s0", $scope11_id))}${_attr_class("
|
|
3904
|
+
}, "s0", $scope11_id))}${_attr_class("_fV")} aria-label="Session name">${_el_resume($scope11_id, "c")}`);
|
|
3905
3905
|
_script($scope11_id, "s8");
|
|
3906
3906
|
_subscribe($renameValue__closures, writeScope($scope11_id, { b: $si__input_sessions && _existing_scope($childScope3) }));
|
|
3907
3907
|
return 0;
|
|
3908
3908
|
} else {
|
|
3909
3909
|
const $scope10_id = _scope_id();
|
|
3910
|
-
_html(`<button${_attr_class("
|
|
3910
|
+
_html(`<button${_attr_class("_fX")}><span${_attr_class(["_q", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope10_id, "b", $sg__input_sessions)}`);
|
|
3911
3911
|
_set_serialize_reason({
|
|
3912
3912
|
1: $sg__input_sessions,
|
|
3913
3913
|
2: $sg__input_sessions
|
|
@@ -3916,11 +3916,11 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
3916
3916
|
icon_agent_default({
|
|
3917
3917
|
agent: activeAgent(s),
|
|
3918
3918
|
size: 13,
|
|
3919
|
-
class: "
|
|
3919
|
+
class: "_fY"
|
|
3920
3920
|
});
|
|
3921
|
-
_html(`<span${_attr_class("
|
|
3921
|
+
_html(`<span${_attr_class("_fS")}>${_escape(s.title || activeAgent(s))}${_el_resume($scope10_id, "e", $sg__input_sessions)}</span></button>${_el_resume($scope10_id, "a")}<div${_attr_class("_fT")}><button${_attr_class("_fK")} title="Rename session">`);
|
|
3922
3922
|
icon_edit_default({ size: 12 });
|
|
3923
|
-
_html(`</button>${_el_resume($scope10_id, "g")}<button${_attr_class(["
|
|
3923
|
+
_html(`</button>${_el_resume($scope10_id, "g")}<button${_attr_class(["_fL", { ["_fA"]: armedKill === s.id }])} title=${armedKill === s.id ? "\"Really kill this session?\"" : "\"Kill session\""}>×</button>${_el_resume($scope10_id, "i")}</div>`);
|
|
3924
3924
|
_script($scope10_id, "s9");
|
|
3925
3925
|
_subscribe($armedKill__closures, writeScope($scope10_id, { c: $si__input_sessions && _existing_scope($childScope4) }));
|
|
3926
3926
|
return 1;
|
|
@@ -4101,19 +4101,19 @@ var side_nav_default = _template("t", (input) => {
|
|
|
4101
4101
|
const wsSelected = view !== "usage" && view !== "new";
|
|
4102
4102
|
const otherIds = itemIds.filter((id) => id !== ws.id);
|
|
4103
4103
|
const listIds = isPage ? [ws.id, ...otherIds] : itemIds;
|
|
4104
|
-
_html(`<aside${_attr_class(["
|
|
4105
|
-
["
|
|
4106
|
-
["
|
|
4104
|
+
_html(`<aside${_attr_class(["_dc", {
|
|
4105
|
+
["_da"]: !navOpen,
|
|
4106
|
+
["_db"]: isPage
|
|
4107
4107
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
4108
4108
|
_if(() => {
|
|
4109
4109
|
if (isPage) {
|
|
4110
4110
|
const $scope1_id = _scope_id();
|
|
4111
|
-
_html(`<header${_attr_class("
|
|
4111
|
+
_html(`<header${_attr_class("_df")}><h1${_attr_class("_dg")}>Workspaces</h1><div${_attr_class("_dh")}>`);
|
|
4112
4112
|
_if(() => {}, $scope1_id, "d", 1, 1, 1, 0, 1);
|
|
4113
4113
|
_html(`<button${_attr_class([
|
|
4114
4114
|
iconBtn$2,
|
|
4115
|
-
"
|
|
4116
|
-
{ ["
|
|
4115
|
+
"_di",
|
|
4116
|
+
{ ["_c9"]: view === "usage" }
|
|
4117
4117
|
])} title=Usage aria-pressed=${view === "usage" ? "true" : "false"}>`);
|
|
4118
4118
|
icon_gauge_default({ size: 16 });
|
|
4119
4119
|
_html(`</button>${_el_resume($scope1_id, "e")}</div></header>`);
|
|
@@ -4122,13 +4122,13 @@ var side_nav_default = _template("t", (input) => {
|
|
|
4122
4122
|
return 0;
|
|
4123
4123
|
}
|
|
4124
4124
|
}, $scope0_id, "b", 1, 1, 1, 0, 1);
|
|
4125
|
-
_html(`<div${_attr_class("
|
|
4125
|
+
_html(`<div${_attr_class("_dl")}>`);
|
|
4126
4126
|
_for_of(listIds, (wsId) => {
|
|
4127
4127
|
const $scope2_id = _scope_id();
|
|
4128
4128
|
_if(() => {
|
|
4129
4129
|
if (isPage && wsId === ws.id) {
|
|
4130
4130
|
const $scope10_id = _scope_id();
|
|
4131
|
-
_html(`<h2${_attr_class("
|
|
4131
|
+
_html(`<h2${_attr_class("_dj")}>Current</h2>`);
|
|
4132
4132
|
writeScope($scope10_id, {});
|
|
4133
4133
|
return 0;
|
|
4134
4134
|
}
|
|
@@ -4136,7 +4136,7 @@ var side_nav_default = _template("t", (input) => {
|
|
|
4136
4136
|
_if(() => {
|
|
4137
4137
|
if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
|
|
4138
4138
|
const $scope11_id = _scope_id();
|
|
4139
|
-
_html(`<h2${_attr_class("
|
|
4139
|
+
_html(`<h2${_attr_class("_dj")}>Other spaces</h2>`);
|
|
4140
4140
|
writeScope($scope11_id, {});
|
|
4141
4141
|
return 0;
|
|
4142
4142
|
}
|
|
@@ -4234,7 +4234,7 @@ var side_nav_default = _template("t", (input) => {
|
|
|
4234
4234
|
railHover = null;
|
|
4235
4235
|
}, 150);
|
|
4236
4236
|
}, "t9", $scope3_id);
|
|
4237
|
-
_html(`<div${_attr_class("
|
|
4237
|
+
_html(`<div${_attr_class("_dm")}>`);
|
|
4238
4238
|
_for_of(itemIds, (wsId, i) => {
|
|
4239
4239
|
const $scope4_id = _scope_id();
|
|
4240
4240
|
_html("<span>");
|
|
@@ -4281,7 +4281,7 @@ var side_nav_default = _template("t", (input) => {
|
|
|
4281
4281
|
if (railHover) {
|
|
4282
4282
|
const $scope5_id = _scope_id();
|
|
4283
4283
|
const hoverId = railHover.id;
|
|
4284
|
-
_html(`<div${_attr_class("
|
|
4284
|
+
_html(`<div${_attr_class("_dp")}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
4285
4285
|
_set_serialize_reason({
|
|
4286
4286
|
0: 1,
|
|
4287
4287
|
1: 1,
|
|
@@ -4384,11 +4384,11 @@ var side_nav_default = _template("t", (input) => {
|
|
|
4384
4384
|
return 0;
|
|
4385
4385
|
}
|
|
4386
4386
|
}, $scope0_id, "d");
|
|
4387
|
-
_html(`<div${_attr_class("
|
|
4387
|
+
_html(`<div${_attr_class("_dn")}>`);
|
|
4388
4388
|
_if(() => {
|
|
4389
4389
|
if (isPage) {
|
|
4390
4390
|
const $scope6_id = _scope_id();
|
|
4391
|
-
_html(`<button${_attr_class(["
|
|
4391
|
+
_html(`<button${_attr_class(["_dk", { ["_c9"]: view === "new" }])} title="New workspace" aria-pressed=${view === "new" ? "true" : "false"}>`);
|
|
4392
4392
|
icon_folder_plus_default({ size: 16 });
|
|
4393
4393
|
_html(` New workspace</button>${_el_resume($scope6_id, "a")}`);
|
|
4394
4394
|
_script($scope6_id, "t21");
|
|
@@ -4410,11 +4410,11 @@ var side_nav_default = _template("t", (input) => {
|
|
|
4410
4410
|
return 1;
|
|
4411
4411
|
}
|
|
4412
4412
|
}, $scope7_id, "a", 1, 1, 1, "</button>", 1);
|
|
4413
|
-
_html(`<div${_attr_class(["_p", "
|
|
4413
|
+
_html(`<div${_attr_class(["_p", "_do"])}></div>`);
|
|
4414
4414
|
_if(() => {}, $scope7_id, "c", 1, 1, 1, 0, 1);
|
|
4415
|
-
_html(`<button${_attr_class([iconBtn$2, { ["
|
|
4415
|
+
_html(`<button${_attr_class([iconBtn$2, { ["_c9"]: view === "usage" }])} title=Usage aria-pressed=${view === "usage" ? "true" : "false"}>`);
|
|
4416
4416
|
icon_gauge_default({ size: 15 });
|
|
4417
|
-
_html(`</button>${_el_resume($scope7_id, "d")}<button${_attr_class([iconBtn$2, { ["
|
|
4417
|
+
_html(`</button>${_el_resume($scope7_id, "d")}<button${_attr_class([iconBtn$2, { ["_c9"]: view === "new" }])} title="New workspace" aria-pressed=${view === "new" ? "true" : "false"}>`);
|
|
4418
4418
|
icon_folder_plus_default({ size: 16 });
|
|
4419
4419
|
_html(`</button>${_el_resume($scope7_id, "f")}`);
|
|
4420
4420
|
_script($scope7_id, "t23");
|
|
@@ -4481,9 +4481,9 @@ var side_nav_default = _template("t", (input) => {
|
|
|
4481
4481
|
});
|
|
4482
4482
|
//#endregion
|
|
4483
4483
|
//#region src/tags/manage-workspace.css.ts
|
|
4484
|
-
var content$1 = "
|
|
4485
|
-
var pageMeta = "
|
|
4486
|
-
var iconBtn$1 = "
|
|
4484
|
+
var content$1 = "_cE _O";
|
|
4485
|
+
var pageMeta = "_cF _T";
|
|
4486
|
+
var iconBtn$1 = "_c7 _y";
|
|
4487
4487
|
//#endregion
|
|
4488
4488
|
//#region src/tags/manage-workspace.marko
|
|
4489
4489
|
var api$3;
|
|
@@ -4577,16 +4577,16 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
4577
4577
|
setTimeout(() => loadProcs(void 0), 500);
|
|
4578
4578
|
}, "k5", $scope0_id);
|
|
4579
4579
|
const titleId = _id();
|
|
4580
|
-
_html(`<div${_attr_class("_M")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_N")}><div${_attr_class(content$1)}><header${_attr_class("_Q")}><div${_attr_class("_S")}><h1${_attr("id", titleId)}${_attr_class("_R")}>Manage</h1><p${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
4580
|
+
_html(`<div${_attr_class("_M")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_N")}><div${_attr_class(content$1)}><header${_attr_class("_Q")}><div${_attr_class("_S")}><h1${_attr("id", titleId)}${_attr_class("_R")}>Manage</h1><p${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_cG")}>${_escape(ws.name)}${_el_resume($scope0_id, "i")}</span>`);
|
|
4581
4581
|
_if(() => {
|
|
4582
4582
|
if (ws.status !== "active") {
|
|
4583
4583
|
const $scope10_id = _scope_id();
|
|
4584
|
-
_html(`<span${_attr_class(["
|
|
4584
|
+
_html(`<span${_attr_class(["_cJ", "_cK"])}>Archived</span>`);
|
|
4585
4585
|
writeScope($scope10_id, {});
|
|
4586
4586
|
return 0;
|
|
4587
4587
|
}
|
|
4588
4588
|
}, $scope0_id, "j", 1, 1, 1, 0, 1);
|
|
4589
|
-
_html(`<span${_attr_class("
|
|
4589
|
+
_html(`<span${_attr_class("_cH")} aria-hidden=true>·</span><span${_attr_class(["_cI", "_o"])}>${_escape(ws.display_path || ws.path)}${_el_resume($scope0_id, "m")}</span></p>${_el_resume($scope0_id, "g")}</div></header>`);
|
|
4590
4590
|
_if(() => {
|
|
4591
4591
|
if (error) {
|
|
4592
4592
|
const $scope2_id = _scope_id();
|
|
@@ -4610,26 +4610,26 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
4610
4610
|
_if(() => {
|
|
4611
4611
|
if (pendingAction && actionStep) {
|
|
4612
4612
|
const $scope7_id = _scope_id();
|
|
4613
|
-
_html(`<p${_attr_class("
|
|
4613
|
+
_html(`<p${_attr_class("_cL")}><span${_attr_class("_w")}></span><!>${_escape(actionStep)}${_el_resume($scope7_id, "c")}</p>`);
|
|
4614
4614
|
writeScope($scope7_id, {});
|
|
4615
4615
|
return 0;
|
|
4616
4616
|
}
|
|
4617
4617
|
}, $scope0_id, "o", 1, 1, 1, 0, 1);
|
|
4618
|
-
_html(`<section${_attr_class("
|
|
4618
|
+
_html(`<section${_attr_class("_cM")}><div${_attr_class("_cN")}><h2${_attr_class("_c8")}>Repos</h2><span${_attr_class("_cO")}>${_escape(ws.repos.length)}${_el_resume($scope0_id, "t")}</span><div${_attr_class("_p")}></div><button${_attr_class(iconBtn$1)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
4619
4619
|
_set_serialize_reason(1);
|
|
4620
4620
|
const $childScope = _peek_scope_id();
|
|
4621
4621
|
icon_refresh_default({
|
|
4622
4622
|
size: 14,
|
|
4623
4623
|
class: catalogRefreshing && "_v"
|
|
4624
4624
|
});
|
|
4625
|
-
_html(`</button>${_el_resume($scope0_id, "v")}</div><ul${_attr_class("
|
|
4625
|
+
_html(`</button>${_el_resume($scope0_id, "v")}</div><ul${_attr_class("_cQ")}>`);
|
|
4626
4626
|
_for_of(ws.repos, (row) => {
|
|
4627
4627
|
const $scope1_id = _scope_id();
|
|
4628
|
-
_html(`<li${_attr_class("
|
|
4628
|
+
_html(`<li${_attr_class("_cS")}><div${_attr_class("_cT")}><span${_attr_class(["_cU", "_o"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_cV")}><span${_attr_class("_cW")}>${_escape(row.full_name)}${_el_resume($scope1_id, "g")}</span>`);
|
|
4629
4629
|
_if(() => {
|
|
4630
4630
|
if (row.base_branch !== row.default_branch) {
|
|
4631
4631
|
const $scope11_id = _scope_id();
|
|
4632
|
-
_html(`<span${_attr_class(["
|
|
4632
|
+
_html(`<span${_attr_class(["_cX", "_o"])} title="Base branch">⎇ <!>${_escape(row.base_branch)}${_el_resume($scope11_id, "b")}</span>`);
|
|
4633
4633
|
writeScope($scope11_id, {});
|
|
4634
4634
|
return 0;
|
|
4635
4635
|
}
|
|
@@ -4644,9 +4644,9 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
4644
4644
|
} else {
|
|
4645
4645
|
const $scope6_id = _scope_id();
|
|
4646
4646
|
_html(`<button${_attr_class([
|
|
4647
|
-
"
|
|
4648
|
-
"
|
|
4649
|
-
{ ["
|
|
4647
|
+
"_cY",
|
|
4648
|
+
"_c0",
|
|
4649
|
+
{ ["_cZ"]: confirmingRemove === row.full_name }
|
|
4650
4650
|
])}${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($scope6_id, "b")}</button>${_el_resume($scope6_id, "a")}`);
|
|
4651
4651
|
_script($scope6_id, "k11");
|
|
4652
4652
|
_subscribe($confirmingRemove__closures, writeScope($scope6_id, {}));
|
|
@@ -4663,19 +4663,19 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
4663
4663
|
}, "full_name", $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
4664
4664
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
4665
4665
|
const $scope13_id = _scope_id();
|
|
4666
|
-
_html(`<li${_attr_class(["
|
|
4666
|
+
_html(`<li${_attr_class(["_cS", "_cR"])}><span${_attr_class("_w")}></span><div${_attr_class("_cT")}><span${_attr_class("_cW")}>Adding <!>${_escape(name)}${_el_resume($scope13_id, "e")}…</span></div></li>`);
|
|
4667
4667
|
writeScope($scope13_id, {});
|
|
4668
4668
|
}, (n) => n, $scope0_id, "z", 1, 1, 1, 0, 1);
|
|
4669
4669
|
_html("</ul>");
|
|
4670
4670
|
_if(() => {
|
|
4671
4671
|
if (!ws.repos.length && !busy.size) {
|
|
4672
4672
|
const $scope14_id = _scope_id();
|
|
4673
|
-
_html(`<p${_attr_class("
|
|
4673
|
+
_html(`<p${_attr_class("_c2")}>No repos yet — search below to add one.</p>`);
|
|
4674
4674
|
writeScope($scope14_id, {});
|
|
4675
4675
|
return 0;
|
|
4676
4676
|
}
|
|
4677
4677
|
}, $scope0_id, "a0", 1, 1, 1, 0, 1);
|
|
4678
|
-
_html(`<div${_attr_class("
|
|
4678
|
+
_html(`<div${_attr_class("_cP")}>`);
|
|
4679
4679
|
const $childScope2 = _peek_scope_id();
|
|
4680
4680
|
let refreshCatalog = repo_picker_default({
|
|
4681
4681
|
exclude: inWorkspace,
|
|
@@ -4695,17 +4695,17 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
4695
4695
|
_if(() => {
|
|
4696
4696
|
if (running.length) {
|
|
4697
4697
|
const $scope8_id = _scope_id();
|
|
4698
|
-
_html(`<section${_attr_class("
|
|
4698
|
+
_html(`<section${_attr_class("_cM")}><div${_attr_class("_cN")}><h2${_attr_class("_c8")}>Running</h2><span${_attr_class("_cO")}>${_escape(running.length)}${_el_resume($scope8_id, "e")}</span></div><ul${_attr_class("_cQ")}>`);
|
|
4699
4699
|
_for_of(running, (p) => {
|
|
4700
4700
|
const $scope9_id = _scope_id();
|
|
4701
|
-
_html(`<li${_attr_class("
|
|
4701
|
+
_html(`<li${_attr_class("_cS")}><div${_attr_class("_cT")}${_attr("title", p.args)}><span${_attr_class(["_cU", "_o"])}>${_escape(p.cmd)}${_el_resume($scope9_id, "d")}</span>`);
|
|
4702
4702
|
_if(() => {
|
|
4703
4703
|
if (p.ports.length) {
|
|
4704
4704
|
const $scope15_id = _scope_id();
|
|
4705
|
-
_html(`<span${_attr_class("
|
|
4705
|
+
_html(`<span${_attr_class("_cV")}>`);
|
|
4706
4706
|
_for_of(p.ports, (port) => {
|
|
4707
4707
|
const $scope16_id = _scope_id();
|
|
4708
|
-
_html(`<button${_attr_class(["_j", "
|
|
4708
|
+
_html(`<button${_attr_class(["_j", "_c1"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope16_id, "b")}</button>${_el_resume($scope16_id, "a")}`);
|
|
4709
4709
|
_script($scope16_id, "k13");
|
|
4710
4710
|
writeScope($scope16_id, { d: port });
|
|
4711
4711
|
}, (x) => String(x), $scope15_id, "a", 1, 1, 1, "</span>", 1);
|
|
@@ -4713,7 +4713,7 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
4713
4713
|
return 0;
|
|
4714
4714
|
}
|
|
4715
4715
|
}, $scope9_id, "e", 1, 1, 1, 0, 1);
|
|
4716
|
-
_html(`</div>${_el_resume($scope9_id, "b")}<button${_attr_class(["
|
|
4716
|
+
_html(`</div>${_el_resume($scope9_id, "b")}<button${_attr_class(["_cY", "_c0"])} type=button${_attr("title", `Kill ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>×</button>${_el_resume($scope9_id, "f")}</li>`);
|
|
4717
4717
|
_script($scope9_id, "k14");
|
|
4718
4718
|
writeScope($scope9_id, {
|
|
4719
4719
|
k: p?.ports,
|
|
@@ -4725,17 +4725,17 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
4725
4725
|
return 0;
|
|
4726
4726
|
}
|
|
4727
4727
|
}, $scope0_id, "a4", 1, 1, 1, 0, 1);
|
|
4728
|
-
_html(`<section${_attr_class(["
|
|
4728
|
+
_html(`<section${_attr_class(["_cM", "_c3"])}><div${_attr_class("_cN")}><h2${_attr_class("_c8")}>Workspace</h2></div><div${_attr_class("_c4")}>`);
|
|
4729
4729
|
_if(() => {
|
|
4730
4730
|
if (ws.status === "active") {
|
|
4731
4731
|
const $scope4_id = _scope_id();
|
|
4732
|
-
_html(`<button type=button${_attr_class(["_f", "
|
|
4732
|
+
_html(`<button type=button${_attr_class(["_f", "_c5"])}${_attr("disabled", !!pendingAction)}>${pendingAction === "archive" ? "Archiving…" : "Archive"}${_el_resume($scope4_id, "b")}</button>${_el_resume($scope4_id, "a")}`);
|
|
4733
4733
|
_script($scope4_id, "k15");
|
|
4734
4734
|
writeScope($scope4_id, {});
|
|
4735
4735
|
return 0;
|
|
4736
4736
|
} else {
|
|
4737
4737
|
const $scope5_id = _scope_id();
|
|
4738
|
-
_html(`<button type=button${_attr_class(["_f", "
|
|
4738
|
+
_html(`<button type=button${_attr_class(["_f", "_c5"])}${_attr("disabled", !!pendingAction)}>Restore</button>${_el_resume($scope5_id, "a")}`);
|
|
4739
4739
|
_script($scope5_id, "k16");
|
|
4740
4740
|
writeScope($scope5_id, {});
|
|
4741
4741
|
return 1;
|
|
@@ -4744,9 +4744,9 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
4744
4744
|
_html(`<button type=button${_attr_class([
|
|
4745
4745
|
"_f",
|
|
4746
4746
|
"_i",
|
|
4747
|
-
"
|
|
4747
|
+
"_c5",
|
|
4748
4748
|
{ ["_h"]: confirmingDelete }
|
|
4749
|
-
])}${_attr("disabled", !!pendingAction)}>${pendingAction === "delete" ? "Deleting…" : "Delete"}${_el_resume($scope0_id, "ab")}</button>${_el_resume($scope0_id, "aa")}</div><p${_attr_class("
|
|
4749
|
+
])}${_attr("disabled", !!pendingAction)}>${pendingAction === "delete" ? "Deleting…" : "Delete"}${_el_resume($scope0_id, "ab")}</button>${_el_resume($scope0_id, "aa")}</div><p${_attr_class("_c6")}>Archive hides the space from the list. Delete removes it and its worktrees.</p></section></div></div></div>`);
|
|
4750
4750
|
_script($scope0_id, "k17");
|
|
4751
4751
|
_script($scope0_id, "k18");
|
|
4752
4752
|
writeScope($scope0_id, {
|
|
@@ -4783,8 +4783,8 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
4783
4783
|
});
|
|
4784
4784
|
//#endregion
|
|
4785
4785
|
//#region src/tags/usage-stats.css.ts
|
|
4786
|
-
var content = "
|
|
4787
|
-
var iconBtn = "
|
|
4786
|
+
var content = "_cd _O _P";
|
|
4787
|
+
var iconBtn = "_ce _y";
|
|
4788
4788
|
//#endregion
|
|
4789
4789
|
//#region src/tags/usage-stats.marko
|
|
4790
4790
|
var api$2;
|
|
@@ -4819,7 +4819,7 @@ var usage_stats_default = _template("x", (input) => {
|
|
|
4819
4819
|
refreshing = false;
|
|
4820
4820
|
}, "x1", $scope0_id);
|
|
4821
4821
|
const titleId = _id();
|
|
4822
|
-
_html(`<div${_attr_class("_M")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_N")}><div${_attr_class(content)}><header${_attr_class("_Q")}><div${_attr_class("_S")}><h1${_attr("id", titleId)}${_attr_class("_R")}>Usage</h1><p${_attr_class("_T")}>Provider plan windows across your agents.</p></div><div${_attr_class("_U")}><button${_attr_class([iconBtn, "
|
|
4822
|
+
_html(`<div${_attr_class("_M")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_N")}><div${_attr_class(content)}><header${_attr_class("_Q")}><div${_attr_class("_S")}><h1${_attr("id", titleId)}${_attr_class("_R")}>Usage</h1><p${_attr_class("_T")}>Provider plan windows across your agents.</p></div><div${_attr_class("_U")}><button${_attr_class([iconBtn, "_cf"])} title="Refresh usage" aria-label="Refresh usage"${_attr("disabled", refreshing)}>`);
|
|
4823
4823
|
_set_serialize_reason(1);
|
|
4824
4824
|
const $childScope = _peek_scope_id();
|
|
4825
4825
|
icon_refresh_default({
|
|
@@ -4830,24 +4830,24 @@ var usage_stats_default = _template("x", (input) => {
|
|
|
4830
4830
|
_if(() => {
|
|
4831
4831
|
if (!usage) {
|
|
4832
4832
|
const $scope3_id = _scope_id();
|
|
4833
|
-
_html(`<p${_attr_class(["_n", "
|
|
4833
|
+
_html(`<p${_attr_class(["_n", "_cg"])}><span${_attr_class("_w")}></span> Loading usage…</p>`);
|
|
4834
4834
|
writeScope($scope3_id, {});
|
|
4835
4835
|
return 0;
|
|
4836
4836
|
} else if (usage.error) {
|
|
4837
4837
|
const $scope1_id = _scope_id();
|
|
4838
|
-
_html(`<p${_attr_class(["_n", "
|
|
4838
|
+
_html(`<p${_attr_class(["_n", "_cg"])}>${_escape(usage.error)}${_el_resume($scope1_id, "b")}</p>`);
|
|
4839
4839
|
writeScope($scope1_id, {});
|
|
4840
4840
|
return 1;
|
|
4841
4841
|
} else {
|
|
4842
4842
|
const $scope2_id = _scope_id();
|
|
4843
|
-
_html(`<div${_attr_class("
|
|
4843
|
+
_html(`<div${_attr_class("_ch")}>`);
|
|
4844
4844
|
_for_of(usage.agents || [], (agent) => {
|
|
4845
4845
|
const $scope4_id = _scope_id();
|
|
4846
|
-
_html(`<div${_attr_class("
|
|
4846
|
+
_html(`<div${_attr_class("_ci")}><div${_attr_class("_cj")}><strong${_attr_class("_cC")}>${_escape(agent.agent)}${_el_resume($scope4_id, "d")}</strong>`);
|
|
4847
4847
|
_if(() => {
|
|
4848
4848
|
if (agent.plan) {
|
|
4849
4849
|
const $scope5_id = _scope_id();
|
|
4850
|
-
_html(`<span${_attr_class("
|
|
4850
|
+
_html(`<span${_attr_class("_ck")}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope5_id, "b")}</span>`);
|
|
4851
4851
|
writeScope($scope5_id, {});
|
|
4852
4852
|
return 0;
|
|
4853
4853
|
}
|
|
@@ -4855,25 +4855,25 @@ var usage_stats_default = _template("x", (input) => {
|
|
|
4855
4855
|
_if(() => {
|
|
4856
4856
|
if (agent.stale_seconds != null) {
|
|
4857
4857
|
const $scope6_id = _scope_id();
|
|
4858
|
-
_html(`<span${_attr_class("
|
|
4858
|
+
_html(`<span${_attr_class("_cl")}${_attr("title", `${agent.note || "couldn't reach this provider"} — these are the last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>⚠ <!>${_escape(duration(agent.stale_seconds * 1e3))}${_el_resume($scope6_id, "b")} old</span>${_el_resume($scope6_id, "a")}`);
|
|
4859
4859
|
writeScope($scope6_id, {});
|
|
4860
4860
|
return 0;
|
|
4861
4861
|
}
|
|
4862
4862
|
}, $scope4_id, "f", 1, 1, 1, 0, 1);
|
|
4863
|
-
_html(`</div><div${_attr_class(["
|
|
4863
|
+
_html(`</div><div${_attr_class(["_cm", { ["_cD"]: agent.stale_seconds != null }])}>`);
|
|
4864
4864
|
_for_of(agent.windows || [], (win) => {
|
|
4865
4865
|
const $scope7_id = _scope_id();
|
|
4866
4866
|
const pct = Math.round(win.used_percent);
|
|
4867
4867
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
4868
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
4869
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
4870
|
-
_html(`<div${_attr_class("
|
|
4868
|
+
const fillClass = win.used_percent >= 90 ? "_cv" : win.used_percent >= 70 ? "_cu" : win.used_percent >= 40 ? "_ct" : "_cs";
|
|
4869
|
+
const pctClass = win.used_percent >= 90 ? "_cA" : win.used_percent >= 70 ? "_cz" : win.used_percent >= 40 ? "_cy" : "_cx";
|
|
4870
|
+
_html(`<div${_attr_class("_co")}${_attr("title", `${win.window}: ${pct}% used${win.resets_at ? ` — resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_cp")}>${_escape(win.window)}${_el_resume($scope7_id, "c")}</span><span${_attr_class("_cq")}><span${_attr_class(["_cr", fillClass])}${_attr_style(`width:${Math.min(100, Math.max(2, win.used_percent))}%`)}></span>${_el_resume($scope7_id, "e")}</span><span${_attr_class(["_cw", pctClass])}>${_escape(pct)}${_el_resume($scope7_id, "g")}%</span>${_el_resume($scope7_id, "f")}<span${_attr_class("_cB")}>${label ? `↻ ${_escape(`${_to_text(label)}`)}` : ""}${_el_resume($scope7_id, "i")}</span></div>${_el_resume($scope7_id, "a")}`);
|
|
4871
4871
|
writeScope($scope7_id, {});
|
|
4872
4872
|
}, "window", $scope4_id, "h", 1, 1, 1, 0, 1);
|
|
4873
4873
|
_if(() => {
|
|
4874
4874
|
if (agent.note) {
|
|
4875
4875
|
const $scope8_id = _scope_id();
|
|
4876
|
-
_html(`<p${_attr_class("
|
|
4876
|
+
_html(`<p${_attr_class("_cn")}>${_escape(agent.note)}${_el_resume($scope8_id, "b")}</p>`);
|
|
4877
4877
|
writeScope($scope8_id, {});
|
|
4878
4878
|
return 0;
|
|
4879
4879
|
}
|
|
@@ -4937,15 +4937,15 @@ var term_find_default = _template("u", (input) => {
|
|
|
4937
4937
|
const canStep = hasQuery && open;
|
|
4938
4938
|
const keybar = input.placement === "keybar";
|
|
4939
4939
|
_html(`<div${_attr_class([
|
|
4940
|
-
"
|
|
4941
|
-
keybar ? "
|
|
4942
|
-
!open && "
|
|
4943
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
4940
|
+
"_e2",
|
|
4941
|
+
keybar ? "_e4" : "_e3",
|
|
4942
|
+
!open && "_e6"
|
|
4943
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_eX", keybar ? "_e5" : "_eZ"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
4944
4944
|
if (!open) return;
|
|
4945
4945
|
query = v;
|
|
4946
4946
|
live.query = v;
|
|
4947
4947
|
run(0);
|
|
4948
|
-
}, "u0", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
4948
|
+
}, "u0", $scope0_id))}${_attr_class([findInput, keybar && "_e7"])} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in terminal" aria-label="Find in terminal">${_el_resume($scope0_id, "c")}<button type=button${_attr_class([findIconBtn, keybar && "_e8"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↑</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_e8"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↓</button>${_el_resume($scope0_id, "e")}<button type=button${_attr_class([findIconBtn, keybar && "_e8"])} title="Close find" tabindex=${open ? "0" : "-1"}>×</button>${_el_resume($scope0_id, "f")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
4949
4949
|
_script($scope0_id, "u4");
|
|
4950
4950
|
_script($scope0_id, "u5");
|
|
4951
4951
|
_script($scope0_id, "u6");
|
|
@@ -5214,7 +5214,7 @@ var term_default = _template("v", (input) => {
|
|
|
5214
5214
|
trapOpen = true;
|
|
5215
5215
|
}
|
|
5216
5216
|
}, "v14", $scope0_id);
|
|
5217
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
5217
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_dr")}><div${_attr_class("_ds")}></div>${_el_resume($scope0_id, "b")}`);
|
|
5218
5218
|
_if(() => {
|
|
5219
5219
|
if (findOpen) {
|
|
5220
5220
|
const $scope11_id = _scope_id();
|
|
@@ -5241,7 +5241,7 @@ var term_default = _template("v", (input) => {
|
|
|
5241
5241
|
_if(() => {
|
|
5242
5242
|
if (uploading) {
|
|
5243
5243
|
const $scope18_id = _scope_id();
|
|
5244
|
-
_html(`<div${_attr_class("
|
|
5244
|
+
_html(`<div${_attr_class("_dw")}>uploading…</div>`);
|
|
5245
5245
|
writeScope($scope18_id, {});
|
|
5246
5246
|
return 0;
|
|
5247
5247
|
}
|
|
@@ -5249,7 +5249,7 @@ var term_default = _template("v", (input) => {
|
|
|
5249
5249
|
_if(() => {
|
|
5250
5250
|
if (copiedFlash) {
|
|
5251
5251
|
const $scope19_id = _scope_id();
|
|
5252
|
-
_html(`<div${_attr_class("
|
|
5252
|
+
_html(`<div${_attr_class("_dv")}>Copied</div>`);
|
|
5253
5253
|
writeScope($scope19_id, {});
|
|
5254
5254
|
return 0;
|
|
5255
5255
|
}
|
|
@@ -5258,7 +5258,7 @@ var term_default = _template("v", (input) => {
|
|
|
5258
5258
|
_if(() => {
|
|
5259
5259
|
if (trapOpen) {
|
|
5260
5260
|
const $scope10_id = _scope_id();
|
|
5261
|
-
_html(`<div${_attr_class("
|
|
5261
|
+
_html(`<div${_attr_class("_dx")}><div${_attr_class("_dy")}><p${_attr_class("_d2")}>Long-press below and choose Paste</p><input placeholder="Paste here…">${_el_resume($scope10_id, "d")}<button${_attr_class("_f")}>Cancel</button>${_el_resume($scope10_id, "e")}</div>${_el_resume($scope10_id, "b")}</div>${_el_resume($scope10_id, "a")}`);
|
|
5262
5262
|
_script($scope10_id, "v23");
|
|
5263
5263
|
_script($scope10_id, "v24");
|
|
5264
5264
|
writeScope($scope10_id, {});
|
|
@@ -5363,7 +5363,7 @@ var work_view_default = _template("y", (input) => {
|
|
|
5363
5363
|
let DiffView = null;
|
|
5364
5364
|
const loadDiffView = _resume(() => {
|
|
5365
5365
|
if (DiffView) return;
|
|
5366
|
-
import("./
|
|
5366
|
+
import("./_BlRAjywT.js").then((m) => {
|
|
5367
5367
|
DiffView = m.default;
|
|
5368
5368
|
});
|
|
5369
5369
|
}, "y4", $scope0_id);
|
|
@@ -5679,8 +5679,7 @@ var work_view_default = _template("y", (input) => {
|
|
|
5679
5679
|
const $scope4_id = _scope_id();
|
|
5680
5680
|
_for_of(shownSessions, (s) => {
|
|
5681
5681
|
const $scope5_id = _scope_id();
|
|
5682
|
-
|
|
5683
|
-
_show_start($show5, 1);
|
|
5682
|
+
_html(`<div${_attr_class(["_bU", { ["_bV"]: s.id === curTab }])}>`);
|
|
5684
5683
|
_set_serialize_reason({
|
|
5685
5684
|
0: 1,
|
|
5686
5685
|
1: 1,
|
|
@@ -5738,16 +5737,16 @@ var work_view_default = _template("y", (input) => {
|
|
|
5738
5737
|
toggleReviewFind();
|
|
5739
5738
|
}, "y46", $scope5_id)
|
|
5740
5739
|
});
|
|
5741
|
-
|
|
5740
|
+
_html(`</div>${_el_resume($scope5_id, "a")}`);
|
|
5742
5741
|
_subscribe($newSession2__closures, _subscribe($renameSession2__closures, _subscribe($closeSession2__closures, _subscribe($toggleReviewFind2__closures, _subscribe($curTab__closures, _subscribe($shownSessions__closures, _subscribe($si__input_workspace && $ws_name__closures, _subscribe($si__input_workspace && $ws_id__closures, _subscribe($reviewFindOpen__closures, _subscribe($view__closures, _subscribe($si__input_agents && $input_agents__closures, _subscribe($si__input_active && $input_active__closures, writeScope($scope5_id, {
|
|
5743
|
-
|
|
5742
|
+
e: s?.id,
|
|
5744
5743
|
b: _existing_scope($childScope4)
|
|
5745
5744
|
})))))))))))));
|
|
5746
|
-
}, "id", $scope4_id, "a");
|
|
5745
|
+
}, "id", $scope4_id, "a", 1, 1, 1, 0, 1);
|
|
5747
5746
|
_if(() => {
|
|
5748
5747
|
if (!shownSessions.length) {
|
|
5749
5748
|
const $scope6_id = _scope_id();
|
|
5750
|
-
_html(`<div${_attr_class("
|
|
5749
|
+
_html(`<div${_attr_class("_bX")}><p${_attr_class("_bY")}>No sessions in this workspace.</p><button${_attr_class(["_f", "_g"])}${_attr("disabled", spawning)}>${spawning ? "Starting…" : `Start ${_escape(`${input.preferred || "claude"}`)}`}${_el_resume($scope6_id, "d")}</button>${_el_resume($scope6_id, "c")}</div>`);
|
|
5751
5750
|
_script($scope6_id, "y48");
|
|
5752
5751
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope6_id, {})));
|
|
5753
5752
|
return 0;
|
|
@@ -5757,7 +5756,7 @@ var work_view_default = _template("y", (input) => {
|
|
|
5757
5756
|
return 0;
|
|
5758
5757
|
} else {
|
|
5759
5758
|
const $scope10_id = _scope_id();
|
|
5760
|
-
_html(`<p${_attr_class("
|
|
5759
|
+
_html(`<p${_attr_class("_bW")}>Loading sessions…</p>`);
|
|
5761
5760
|
writeScope($scope10_id, {});
|
|
5762
5761
|
return 1;
|
|
5763
5762
|
}
|
|
@@ -13143,7 +13142,9 @@ function attachTermServer(server) {
|
|
|
13143
13142
|
let dims = [cols, rows];
|
|
13144
13143
|
const forceWindowSize = () => {
|
|
13145
13144
|
if (!visible) return;
|
|
13146
|
-
|
|
13145
|
+
const key = `${dims[0]}x${dims[1]}`;
|
|
13146
|
+
if (lastForced.get(session.id) === key) return;
|
|
13147
|
+
lastForced.set(session.id, key);
|
|
13147
13148
|
tmux([
|
|
13148
13149
|
"resize-window",
|
|
13149
13150
|
"-t",
|
|
@@ -13342,4 +13343,4 @@ server.listen(port, () => {
|
|
|
13342
13343
|
//#endregion
|
|
13343
13344
|
export {};
|
|
13344
13345
|
|
|
13345
|
-
;var __MARKO_MANIFEST__={"esfPH6H":{"block":[2,"stylesheet#/assets/preload-helper-
|
|
13346
|
+
;var __MARKO_MANIFEST__={"esfPH6H":{"block":[2,"stylesheet#/assets/preload-helper-EAZGOO6u.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/preload-helper-EAZGOO6u.css\"",">",2,"stylesheet#/assets/index-7WlgwCwh.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/index-7WlgwCwh.css\"",">"],"defer":[2,"/assets/index-BffJzCDz.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/index-BffJzCDz.js\"","></script>",2,"modulepreload#/assets/_YewM841C.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_YewM841C.js\"",">"]}};
|