@dylanpiercey/work 0.0.140 → 0.0.141
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/{_BVHQZ1Ks.js → _CZz7Wyts.js} +17 -17
- package/dist/{_BXzfMZ_J.js → _CgMVRC4h.js} +179 -46
- package/dist/_CwAYWKgO.js +2 -0
- package/dist/{_CZd0I4nH.js → _jYLlSG8J.js} +79 -79
- package/dist/index.mjs +350 -344
- package/dist/public/assets/{_DKY8j24h.js → _B1B7SsmR.js} +1 -1
- package/dist/public/assets/_B1B7SsmR.js.br +0 -0
- package/dist/public/assets/{_D4OqQzgl.js → _B1nEnOeR.js} +1 -1
- package/dist/public/assets/_B1nEnOeR.js.br +0 -0
- package/dist/public/assets/{_C3Zk3OTU2.js → _B2vPwdLW2.js} +1 -1
- package/dist/public/assets/_B2vPwdLW2.js.br +0 -0
- package/dist/public/assets/{_B9ZAbzhF.js → _B2zlBhgP.js} +1 -1
- package/dist/public/assets/_B2zlBhgP.js.br +0 -0
- package/dist/public/assets/{_BbYPTPnv.js → _B3-rUIWu.js} +1 -1
- package/dist/public/assets/_B3-rUIWu.js.br +0 -0
- package/dist/public/assets/{_D6-73p3r.js → _B3v2Mxg9.js} +1 -1
- package/dist/public/assets/_B3v2Mxg9.js.br +0 -0
- package/dist/public/assets/{_BhFgAjkS.js → _B4zQcDgs.js} +1 -1
- package/dist/public/assets/_B4zQcDgs.js.br +0 -0
- package/dist/public/assets/{_Cp2jGFuU.js → _B7g6vstf.js} +1 -1
- package/dist/public/assets/_B7g6vstf.js.br +0 -0
- package/dist/public/assets/{_DJ2tTUOp.js → _B8bLTrAR.js} +1 -1
- package/dist/public/assets/_B8bLTrAR.js.br +0 -0
- package/dist/public/assets/{_DMmYo41H.js → _BERiWLR2.js} +1 -1
- package/dist/public/assets/_BERiWLR2.js.br +0 -0
- package/dist/public/assets/{_Dbx8VtKF.js → _BG6eCCtD.js} +1 -1
- package/dist/public/assets/_BG6eCCtD.js.br +0 -0
- package/dist/public/assets/{_DTBjw9eZ2.js → _BIGq6NLW2.js} +1 -1
- package/dist/public/assets/_BIGq6NLW2.js.br +0 -0
- package/dist/public/assets/{_BAQCbH2P2.js → _BJL8EzDT2.js} +1 -1
- package/dist/public/assets/_BJL8EzDT2.js.br +0 -0
- package/dist/public/assets/{_CQ3jYFa7.js → _BMjuOAQ4.js} +1 -1
- package/dist/public/assets/_BMjuOAQ4.js.br +0 -0
- package/dist/public/assets/{_AXvUJPqu2.js → _BNv3fPjT2.js} +1 -1
- package/dist/public/assets/_BNv3fPjT2.js.br +0 -0
- package/dist/public/assets/{_Bg_QV64o.js → _BQazGBwX.js} +1 -1
- package/dist/public/assets/_BQazGBwX.js.br +0 -0
- package/dist/public/assets/{_CTE7ghx3.js → _BY-WvMhs.js} +1 -1
- package/dist/public/assets/_BY-WvMhs.js.br +0 -0
- package/dist/public/assets/{_W3k8p4Ek.js → _BZJVwhA5.js} +1 -1
- package/dist/public/assets/_BZJVwhA5.js.br +0 -0
- package/dist/public/assets/{_BufLBhD52.js → _B_wawL6J2.js} +1 -1
- package/dist/public/assets/_B_wawL6J2.js.br +0 -0
- package/dist/public/assets/{_CmFZdEqe2.js → _Ba8vUCRv2.js} +1 -1
- package/dist/public/assets/_Ba8vUCRv2.js.br +0 -0
- package/dist/public/assets/{_BMpT9JnR.js → _BcTQMZit.js} +1 -1
- package/dist/public/assets/_BcTQMZit.js.br +0 -0
- package/dist/public/assets/{_CHRR_tdf2.js → _Blhy_Vd12.js} +1 -1
- package/dist/public/assets/_Blhy_Vd12.js.br +0 -0
- package/dist/public/assets/{_CJ9NIpKB2.js → _BuLSZuTT2.js} +1 -1
- package/dist/public/assets/{_cJ8FGCbf.js → _BuNhyEVe.js} +1 -1
- package/dist/public/assets/_BuNhyEVe.js.br +0 -0
- package/dist/public/assets/{_BcNyP4hq.js → _C2WEo047.js} +1 -1
- package/dist/public/assets/_C2WEo047.js.br +0 -0
- package/dist/public/assets/{_C4Z5tewe.js → _C5QblKM6.js} +1 -1
- package/dist/public/assets/_C5QblKM6.js.br +0 -0
- package/dist/public/assets/{_BuwtIM5I.js → _CBHyOOZB.js} +1 -1
- package/dist/public/assets/_CBHyOOZB.js.br +0 -0
- package/dist/public/assets/{_CgAhtyGH.js → _CFGDp3Sw.js} +1 -1
- package/dist/public/assets/_CFGDp3Sw.js.br +0 -0
- package/dist/public/assets/{_CTM65Tgs2.js → _CNPgjl1-2.js} +1 -1
- package/dist/public/assets/_CNPgjl1-2.js.br +0 -0
- package/dist/public/assets/{_DnGbQ0u92.js → _CSJQogH62.js} +1 -1
- package/dist/public/assets/_CSJQogH62.js.br +0 -0
- package/dist/public/assets/{_xrYLiFvZ.js → _CUjz6cMW.js} +1 -1
- package/dist/public/assets/_CUjz6cMW.js.br +0 -0
- package/dist/public/assets/{_a2HWPwTI2.js → _CWHyYnLM2.js} +1 -1
- package/dist/public/assets/_CWHyYnLM2.js.br +0 -0
- package/dist/public/assets/{_yDHOPHcI2.js → _CWzOnDwF2.js} +1 -1
- package/dist/public/assets/_CWzOnDwF2.js.br +0 -0
- package/dist/public/assets/{_DxmtmcQJ.js → _CXcrI0KH.js} +1 -1
- package/dist/public/assets/_CXcrI0KH.js.br +0 -0
- package/dist/public/assets/{_BfitEsfk2.js → _CYK6BCWH2.js} +1 -1
- package/dist/public/assets/_CYK6BCWH2.js.br +0 -0
- package/dist/public/assets/{_CpSY65dR.js → _CYSMKo7F.js} +1 -1
- package/dist/public/assets/_CYSMKo7F.js.br +0 -0
- package/dist/public/assets/{_aNDhwIJ9.js → _CfpVtrZd.js} +1 -1
- package/dist/public/assets/_CfpVtrZd.js.br +0 -0
- package/dist/public/assets/{_CQtiXk-1.js → _CftRvTVW.js} +1 -1
- package/dist/public/assets/_CftRvTVW.js.br +0 -0
- package/dist/public/assets/{_D2D61dAJ2.js → _ClSO8TOE2.js} +1 -1
- package/dist/public/assets/_ClSO8TOE2.js.br +0 -0
- package/dist/public/assets/{_wtrNcQUN.js → _CoIipOdm.js} +1 -1
- package/dist/public/assets/_CoIipOdm.js.br +0 -0
- package/dist/public/assets/{_Vg-VYt882.js → _CpqV5nOZ2.js} +1 -1
- package/dist/public/assets/_CpqV5nOZ2.js.br +0 -0
- package/dist/public/assets/{_YCkwa36v.js → _Cs_1C06H.js} +1 -1
- package/dist/public/assets/_Cs_1C06H.js.br +0 -0
- package/dist/public/assets/{_Bg6nm0G42.js → _CxrdJ7hp2.js} +1 -1
- package/dist/public/assets/_CxrdJ7hp2.js.br +0 -0
- package/dist/public/assets/{_B-G2jcQS.js → _CygMTO1C.js} +1 -1
- package/dist/public/assets/_CygMTO1C.js.br +0 -0
- package/dist/public/assets/{_Bmj60xc8.js → _CznrmqM4.js} +1 -1
- package/dist/public/assets/_CznrmqM4.js.br +0 -0
- package/dist/public/assets/{_BoPD9t5q.js → _DA_VGkH6.js} +1 -1
- package/dist/public/assets/_DA_VGkH6.js.br +0 -0
- package/dist/public/assets/{_DPI9uiRH.js → _DFGJGEpB.js} +1 -1
- package/dist/public/assets/_DFGJGEpB.js.br +0 -0
- package/dist/public/assets/{_C7fBne76.js → _DLzJNX7C.js} +1 -1
- package/dist/public/assets/_DLzJNX7C.js.br +0 -0
- package/dist/public/assets/{_DFMDH4tV2.js → _DMc_yyoD2.js} +1 -1
- package/dist/public/assets/_DMc_yyoD2.js.br +0 -0
- package/dist/public/assets/{_CcOLUAUB.js → _DMi37Owt.js} +1 -1
- package/dist/public/assets/_DMi37Owt.js.br +0 -0
- package/dist/public/assets/{_Bhm39j0U.js → _DRT4_m9d.js} +1 -1
- package/dist/public/assets/_DRT4_m9d.js.br +0 -0
- package/dist/public/assets/{_VnhmzZ9q.js → _DV6VXtzH.js} +5 -5
- package/dist/public/assets/_DV6VXtzH.js.br +0 -0
- package/dist/public/assets/{_B3yGzEa9.js → _DVIdvZ6L.js} +1 -1
- package/dist/public/assets/_DVIdvZ6L.js.br +0 -0
- package/dist/public/assets/{_DB76xuHC.js → _DXOGRSbq.js} +1 -1
- package/dist/public/assets/_DXOGRSbq.js.br +0 -0
- package/dist/public/assets/{_NBVVn24L2.js → _Da8gt_F52.js} +1 -1
- package/dist/public/assets/_Da8gt_F52.js.br +0 -0
- package/dist/public/assets/{_CHkTCCZL.js → _DbTEN3Co.js} +1 -1
- package/dist/public/assets/_DbTEN3Co.js.br +0 -0
- package/dist/public/assets/{_CmHQ_mnt2.js → _Dbp391kL2.js} +1 -1
- package/dist/public/assets/{_BAC2OLTW.js → _DcfWOyup.js} +1 -1
- package/dist/public/assets/_DcfWOyup.js.br +0 -0
- package/dist/public/assets/{_CWfLljks2.js → _Dd4lKEYp2.js} +1 -1
- package/dist/public/assets/_Dd4lKEYp2.js.br +0 -0
- package/dist/public/assets/{_BKuREDTF.js → _DgCQT80U.js} +1 -1
- package/dist/public/assets/_DgCQT80U.js.br +0 -0
- package/dist/public/assets/{_IHwiKLGt.js → _DhEdWcLh.js} +1 -1
- package/dist/public/assets/_DhEdWcLh.js.br +0 -0
- package/dist/public/assets/{_gGP1uofp.js → _DiHWQ-Ew.js} +1 -1
- package/dist/public/assets/_DiHWQ-Ew.js.br +0 -0
- package/dist/public/assets/{_jDIdu88k2.js → _DjcyEwVn2.js} +1 -1
- package/dist/public/assets/_DjcyEwVn2.js.br +0 -0
- package/dist/public/assets/{_BEIP10I4.js → _Dm-zlffy.js} +6 -6
- package/dist/public/assets/_Dm-zlffy.js.br +0 -0
- package/dist/public/assets/{_8J7bPMB9.js → _DnhKP7pH.js} +1 -1
- package/dist/public/assets/_DnhKP7pH.js.br +0 -0
- package/dist/public/assets/{_DUP19um8.js → _DpJdqIrj.js} +1 -1
- package/dist/public/assets/_DpJdqIrj.js.br +0 -0
- package/dist/public/assets/{_YjXp8Fa7.js → _DqxT_h3w.js} +1 -1
- package/dist/public/assets/_DqxT_h3w.js.br +0 -0
- package/dist/public/assets/{_pTrFhub3.js → _Dt461FGT.js} +1 -1
- package/dist/public/assets/_Dt461FGT.js.br +0 -0
- package/dist/public/assets/{_bjzjp9qV.js → _DvHOWoGF.js} +1 -1
- package/dist/public/assets/_DvHOWoGF.js.br +0 -0
- package/dist/public/assets/{_CXkMfc5M2.js → _N8vS2ulD2.js} +1 -1
- package/dist/public/assets/_N8vS2ulD2.js.br +0 -0
- package/dist/public/assets/{_BgRQhjCQ2.js → _ToAhQlpQ2.js} +1 -1
- package/dist/public/assets/_ToAhQlpQ2.js.br +0 -0
- package/dist/public/assets/{_BC1i3jO8.js → _TsHAzFfC.js} +1 -1
- package/dist/public/assets/_TsHAzFfC.js.br +0 -0
- package/dist/public/assets/{_CZQJ7BmY2.js → _ZVf0cDT12.js} +1 -1
- package/dist/public/assets/_ZVf0cDT12.js.br +0 -0
- package/dist/public/assets/{_DmqG9yJU.js → __g_2CBHN.js} +1 -1
- package/dist/public/assets/__g_2CBHN.js.br +0 -0
- package/dist/public/assets/{_BCaOQTDy.js → _hN1-RJcA.js} +1 -1
- package/dist/public/assets/{_DsmPrDz6.js → _p1qRbXAM.js} +1 -1
- package/dist/public/assets/_p1qRbXAM.js.br +0 -0
- package/dist/public/assets/{app-page-DD8AAZI2.css → app-page-B-xb0lEG.css} +1 -1
- package/dist/public/assets/app-page-B-xb0lEG.css.br +0 -0
- package/dist/public/assets/diff-view-CPZTgZs3.css +1 -0
- package/dist/public/assets/diff-view-CPZTgZs3.css.br +0 -0
- package/dist/public/assets/new-BMnZANmK.js +1 -0
- package/dist/public/assets/settings-BMnZANmK.js +1 -0
- package/dist/public/assets/w-BMnZANmK.js +1 -0
- package/dist/public/assets/w._-BMnZANmK.js +1 -0
- package/dist/public/assets/w._-C_I4x7J1.js +1 -0
- package/package.json +1 -1
- package/dist/_D2thrkJX.js +0 -2
- package/dist/public/assets/_8J7bPMB9.js.br +0 -0
- package/dist/public/assets/_AXvUJPqu2.js.br +0 -0
- package/dist/public/assets/_B-G2jcQS.js.br +0 -0
- package/dist/public/assets/_B3yGzEa9.js.br +0 -0
- package/dist/public/assets/_B9ZAbzhF.js.br +0 -0
- package/dist/public/assets/_BAC2OLTW.js.br +0 -0
- package/dist/public/assets/_BAQCbH2P2.js.br +0 -0
- package/dist/public/assets/_BC1i3jO8.js.br +0 -0
- package/dist/public/assets/_BEIP10I4.js.br +0 -0
- package/dist/public/assets/_BKuREDTF.js.br +0 -0
- package/dist/public/assets/_BMpT9JnR.js.br +0 -0
- package/dist/public/assets/_BbYPTPnv.js.br +0 -0
- package/dist/public/assets/_BcNyP4hq.js.br +0 -0
- package/dist/public/assets/_BfitEsfk2.js.br +0 -0
- package/dist/public/assets/_Bg6nm0G42.js.br +0 -0
- package/dist/public/assets/_BgRQhjCQ2.js.br +0 -0
- package/dist/public/assets/_Bg_QV64o.js.br +0 -0
- package/dist/public/assets/_BhFgAjkS.js.br +0 -0
- package/dist/public/assets/_Bhm39j0U.js.br +0 -0
- package/dist/public/assets/_Bmj60xc8.js.br +0 -0
- package/dist/public/assets/_BoPD9t5q.js.br +0 -0
- package/dist/public/assets/_BufLBhD52.js.br +0 -0
- package/dist/public/assets/_BuwtIM5I.js.br +0 -0
- package/dist/public/assets/_C3Zk3OTU2.js.br +0 -0
- package/dist/public/assets/_C4Z5tewe.js.br +0 -0
- package/dist/public/assets/_C7fBne76.js.br +0 -0
- package/dist/public/assets/_CHRR_tdf2.js.br +0 -0
- package/dist/public/assets/_CHkTCCZL.js.br +0 -0
- package/dist/public/assets/_CQ3jYFa7.js.br +0 -0
- package/dist/public/assets/_CQtiXk-1.js.br +0 -0
- package/dist/public/assets/_CTE7ghx3.js.br +0 -0
- package/dist/public/assets/_CTM65Tgs2.js.br +0 -0
- package/dist/public/assets/_CWfLljks2.js.br +0 -0
- package/dist/public/assets/_CXkMfc5M2.js.br +0 -0
- package/dist/public/assets/_CZQJ7BmY2.js.br +0 -0
- package/dist/public/assets/_CcOLUAUB.js.br +0 -0
- package/dist/public/assets/_CgAhtyGH.js.br +0 -0
- package/dist/public/assets/_CmFZdEqe2.js.br +0 -0
- package/dist/public/assets/_Cp2jGFuU.js.br +0 -0
- package/dist/public/assets/_CpSY65dR.js.br +0 -0
- package/dist/public/assets/_D2D61dAJ2.js.br +0 -0
- package/dist/public/assets/_D4OqQzgl.js.br +0 -0
- package/dist/public/assets/_D6-73p3r.js.br +0 -0
- package/dist/public/assets/_DB76xuHC.js.br +0 -0
- package/dist/public/assets/_DFMDH4tV2.js.br +0 -0
- package/dist/public/assets/_DJ2tTUOp.js.br +0 -0
- package/dist/public/assets/_DKY8j24h.js.br +0 -0
- package/dist/public/assets/_DMmYo41H.js.br +0 -0
- package/dist/public/assets/_DPI9uiRH.js.br +0 -0
- package/dist/public/assets/_DTBjw9eZ2.js.br +0 -0
- package/dist/public/assets/_DUP19um8.js.br +0 -0
- package/dist/public/assets/_Dbx8VtKF.js.br +0 -0
- package/dist/public/assets/_DmqG9yJU.js.br +0 -0
- package/dist/public/assets/_DnGbQ0u92.js.br +0 -0
- package/dist/public/assets/_DsmPrDz6.js.br +0 -0
- package/dist/public/assets/_DxmtmcQJ.js.br +0 -0
- package/dist/public/assets/_IHwiKLGt.js.br +0 -0
- package/dist/public/assets/_NBVVn24L2.js.br +0 -0
- package/dist/public/assets/_Vg-VYt882.js.br +0 -0
- package/dist/public/assets/_VnhmzZ9q.js.br +0 -0
- package/dist/public/assets/_W3k8p4Ek.js.br +0 -0
- package/dist/public/assets/_YCkwa36v.js.br +0 -0
- package/dist/public/assets/_YjXp8Fa7.js.br +0 -0
- package/dist/public/assets/_a2HWPwTI2.js.br +0 -0
- package/dist/public/assets/_aNDhwIJ9.js.br +0 -0
- package/dist/public/assets/_bjzjp9qV.js.br +0 -0
- package/dist/public/assets/_cJ8FGCbf.js.br +0 -0
- package/dist/public/assets/_gGP1uofp.js.br +0 -0
- package/dist/public/assets/_jDIdu88k2.js.br +0 -0
- package/dist/public/assets/_pTrFhub3.js.br +0 -0
- package/dist/public/assets/_wtrNcQUN.js.br +0 -0
- package/dist/public/assets/_xrYLiFvZ.js.br +0 -0
- package/dist/public/assets/_yDHOPHcI2.js.br +0 -0
- package/dist/public/assets/app-page-DD8AAZI2.css.br +0 -0
- package/dist/public/assets/diff-view-CigyjzyU.css +0 -1
- package/dist/public/assets/diff-view-CigyjzyU.css.br +0 -0
- package/dist/public/assets/new-CeNxYCDk.js +0 -1
- package/dist/public/assets/settings-CeNxYCDk.js +0 -1
- package/dist/public/assets/w-CeNxYCDk.js +0 -1
- package/dist/public/assets/w._-CY06s2qp.js +0 -1
- package/dist/public/assets/w._-CeNxYCDk.js +0 -1
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
|
-
import { $ as setSetting, A as setScrapedPhase, B as saveSubscription, C as agentBadge, D as agentMeta, E as agentLabel, F as manifest, G as agentChoices, H as subscribe, I as normalizeAccent, J as enabledAgents, K as allPrefs, L as setInstance, M as ACCENT_RE, N as getInstance, O as clearAgentPhase, P as iconSvg, Q as setPref, R as deleteSubscription, S as blankRow, T as agentFromCommand, U as subscriberCount, V as publish, W as subscriberJoins, X as preferredAgent, Y as getSetting, Z as setDisabledAgents, _ as tmuxName, _t as git, a as ensureTmuxServer, at as which, b as readHookPayload, bt as config, c as killWorkspaceSessions, ct as agentById, d as newSessionArgs, dt as all, et as discoverAgents, ft as db, g as sessionStates, gt as gh, h as sendToSession, ht as TMUX_SOCKET, i as disposeSessions, it as setupPath, j as setSessionViewers, k as setAgentPhase, l as listSessions, lt as agentLabel$1, m as renameSession, mt as workspacePath, n as clearTmuxStarted, nt as ghKnownHosts, o as getSession, ot as DEFAULT_GITHUB_HOST, p as panePids, pt as get, q as disabledAgents, r as createSession, rt as miseVersions, s as killSession, st as TOOLS, t as cleanEnv, tt as doctor, u as markTmuxStarted, ut as toolById, v as tmuxWasStarted, vt as run, w as agentFamily, x as reportsWorking, y as AGENTS, yt as tmux, z as pushPublicKey } from "./
|
|
3
|
-
import { $ as _attr_or, A as iconSize, At as _serialize_if, B as iconBtnXs, Bt as writeScope, C as setWorkspaceTab, Ct as _resume_branch, D as toast_default, Dt as _script, E as workspaceTab, Et as _scope_with_id, F as btnLg, Ft as _trailers, G as $global, H as metaTrunc, I as btnSm, It as _var, K as _attr, L as chipBtn, Lt as attrTag, M as repoLabel, Mt as _subscribe, N as repoWebUrl$1, Nt as _template, O as icon_xmark_default, Ot as _sep, P as setPrimaryHost, Pt as _to_text, Q as _attr_option_value, Rt as forOf, S as setTheme, St as _resume, T as theme, Tt as _scope_reason, U as phase, V as inputLg, W as tone, X as _attr_input_value, Y as _attr_input_checked, Z as _attr_nonce, _t as _hoist_read_error, at as _content, bt as _if, c as icon_search_default, d as icon_refresh_default, dt as _escape, et as _attr_select_value, f as iconBtn$1, ft as _escape_script, gt as _hoist, ht as _for_of, i as icon_sidebar_default, it as _attrs_partial, j as parseRepoUrl, jt as _set_serialize_reason, k as icon_base_default, kt as _serialize_guard, l as icon_chevron_right_default, lt as _el_read_error, m as sectionCount, mt as _flush_head, n as findIconBtn, nt as _attr_textarea_value, o as rankRepos, ot as _content_resume, p as row, pt as _existing_scope, q as _attr_class, r as findInput, rt as _attrs, s as icon_arrow_up_default, st as _dynamic_tag, t as icon_arrow_down_default, tt as _attr_style, u as icon_back_default, ut as _el_resume, vt as _html, w as sideNavOpen, wt as _scope_id, xt as _peek_scope_id, y as ignoredSsoOrgs, yt as _id, z as iconBtnRow, zt as withPageAssets } from "./
|
|
2
|
+
import { $ as setSetting, A as setScrapedPhase, B as saveSubscription, C as agentBadge, D as agentMeta, E as agentLabel, F as manifest, G as agentChoices, H as subscribe, I as normalizeAccent, J as enabledAgents, K as allPrefs, L as setInstance, M as ACCENT_RE, N as getInstance, O as clearAgentPhase, P as iconSvg, Q as setPref, R as deleteSubscription, S as blankRow, T as agentFromCommand, U as subscriberCount, V as publish, W as subscriberJoins, X as preferredAgent, Y as getSetting, Z as setDisabledAgents, _ as tmuxName, _t as git, a as ensureTmuxServer, at as which, b as readHookPayload, bt as config, c as killWorkspaceSessions, ct as agentById, d as newSessionArgs, dt as all, et as discoverAgents, ft as db, g as sessionStates, gt as gh, h as sendToSession, ht as TMUX_SOCKET, i as disposeSessions, it as setupPath, j as setSessionViewers, k as setAgentPhase, l as listSessions, lt as agentLabel$1, m as renameSession, mt as workspacePath, n as clearTmuxStarted, nt as ghKnownHosts, o as getSession, ot as DEFAULT_GITHUB_HOST, p as panePids, pt as get, q as disabledAgents, r as createSession, rt as miseVersions, s as killSession, st as TOOLS, t as cleanEnv, tt as doctor, u as markTmuxStarted, ut as toolById, v as tmuxWasStarted, vt as run, w as agentFamily, x as reportsWorking, y as AGENTS, yt as tmux, z as pushPublicKey } from "./_CgMVRC4h.js";
|
|
3
|
+
import { $ as _attr_or, A as iconSize, At as _serialize_if, B as iconBtnXs, Bt as writeScope, C as setWorkspaceTab, Ct as _resume_branch, D as toast_default, Dt as _script, E as workspaceTab, Et as _scope_with_id, F as btnLg, Ft as _trailers, G as $global, H as metaTrunc, I as btnSm, It as _var, K as _attr, L as chipBtn, Lt as attrTag, M as repoLabel, Mt as _subscribe, N as repoWebUrl$1, Nt as _template, O as icon_xmark_default, Ot as _sep, P as setPrimaryHost, Pt as _to_text, Q as _attr_option_value, Rt as forOf, S as setTheme, St as _resume, T as theme, Tt as _scope_reason, U as phase, V as inputLg, W as tone, X as _attr_input_value, Y as _attr_input_checked, Z as _attr_nonce, _t as _hoist_read_error, at as _content, bt as _if, c as icon_search_default, d as icon_refresh_default, dt as _escape, et as _attr_select_value, f as iconBtn$1, ft as _escape_script, gt as _hoist, ht as _for_of, i as icon_sidebar_default, it as _attrs_partial, j as parseRepoUrl, jt as _set_serialize_reason, k as icon_base_default, kt as _serialize_guard, l as icon_chevron_right_default, lt as _el_read_error, m as sectionCount, mt as _flush_head, n as findIconBtn, nt as _attr_textarea_value, o as rankRepos, ot as _content_resume, p as row, pt as _existing_scope, q as _attr_class, r as findInput, rt as _attrs, s as icon_arrow_up_default, st as _dynamic_tag, t as icon_arrow_down_default, tt as _attr_style, u as icon_back_default, ut as _el_resume, vt as _html, w as sideNavOpen, wt as _scope_id, xt as _peek_scope_id, y as ignoredSsoOrgs, yt as _id, z as iconBtnRow, zt as withPageAssets } from "./_CZz7Wyts.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import http, { createServer } from "node:http";
|
|
6
6
|
import path from "node:path";
|
|
@@ -4289,35 +4289,35 @@ function applyInstance(inst) {
|
|
|
4289
4289
|
}
|
|
4290
4290
|
//#endregion
|
|
4291
4291
|
//#region src/tags/settings-page.css.ts
|
|
4292
|
-
var content$2 = "
|
|
4293
|
-
var agentGrid = "
|
|
4294
|
-
var toolGrid = "
|
|
4295
|
-
var toolRow = "
|
|
4296
|
-
var themeSeg = "
|
|
4297
|
-
var swatches = "
|
|
4298
|
-
var checkList = "
|
|
4299
|
-
var flatCardRow = "
|
|
4300
|
-
var pop$1 = "
|
|
4301
|
-
var spinner = "
|
|
4302
|
-
var busy = "
|
|
4303
|
-
var pop = "
|
|
4292
|
+
var content$2 = "_cA _bN _bO";
|
|
4293
|
+
var agentGrid = "_cD _bl";
|
|
4294
|
+
var toolGrid = "_cN _cx";
|
|
4295
|
+
var toolRow = "_cO _cy";
|
|
4296
|
+
var themeSeg = "_da _bc";
|
|
4297
|
+
var swatches = "_di _bc";
|
|
4298
|
+
var checkList = "_dz _bl";
|
|
4299
|
+
var flatCardRow = "_cz _cy";
|
|
4300
|
+
var pop$1 = "_dI _8";
|
|
4301
|
+
var spinner = "_dL _0 _E";
|
|
4302
|
+
var busy = "_dP _dO";
|
|
4303
|
+
var pop = "_dR _8";
|
|
4304
4304
|
//#endregion
|
|
4305
4305
|
//#region src/tags/page-head.marko
|
|
4306
4306
|
var page_head_default = _template("t", (input) => {
|
|
4307
4307
|
const $scope0_reason = _scope_reason(), $sg__input_backHref__OR__input_onBack__OR__input_meta__OR__input_actions = _serialize_guard($scope0_reason, 3), $sg__input_meta = _serialize_guard($scope0_reason, 6), $sg__input_actions = _serialize_guard($scope0_reason, 7), $si__input_backHref__OR__input_onBack = _serialize_if($scope0_reason, 1), $si__input_meta = _serialize_if($scope0_reason, 6), $si__input_actions = _serialize_if($scope0_reason, 7);
|
|
4308
4308
|
const $scope0_id = _scope_id();
|
|
4309
|
-
_html(`<header${_attr_class("
|
|
4309
|
+
_html(`<header${_attr_class("_bP")}>`);
|
|
4310
4310
|
_if(() => {
|
|
4311
4311
|
if (input.backHref) {
|
|
4312
4312
|
const $scope1_id = _scope_id();
|
|
4313
|
-
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "
|
|
4313
|
+
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_dT"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
4314
4314
|
icon_back_default({ size: 16 });
|
|
4315
4315
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
4316
4316
|
_serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
|
|
4317
4317
|
return 0;
|
|
4318
4318
|
} else if (input.onBack) {
|
|
4319
4319
|
const $scope2_id = _scope_id();
|
|
4320
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
4320
|
+
_html(`<button${_attr_class([iconBtnRow, "_dT"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
4321
4321
|
icon_back_default({ size: 16 });
|
|
4322
4322
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
4323
4323
|
_script($scope2_id, "t0");
|
|
@@ -4325,11 +4325,11 @@ var page_head_default = _template("t", (input) => {
|
|
|
4325
4325
|
return 1;
|
|
4326
4326
|
}
|
|
4327
4327
|
}, $scope0_id, "b", _serialize_guard($scope0_reason, 2), _serialize_guard($scope0_reason, 1), $sg__input_backHref__OR__input_onBack__OR__input_meta__OR__input_actions, 0, 1);
|
|
4328
|
-
_html(`<div${_attr_class("
|
|
4328
|
+
_html(`<div${_attr_class("_bR")}><h1${_attr("id", input.titleId)}${_attr_class("_bQ")}>${_escape(input.title)}${_el_resume($scope0_id, "e", _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
|
|
4329
4329
|
_if(() => {
|
|
4330
4330
|
if (input.meta) {
|
|
4331
4331
|
const $scope3_id = _scope_id();
|
|
4332
|
-
_html(`<p${_attr_class("
|
|
4332
|
+
_html(`<p${_attr_class("_bS")}>`);
|
|
4333
4333
|
_dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
4334
4334
|
_html("</p>");
|
|
4335
4335
|
$si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -4340,7 +4340,7 @@ var page_head_default = _template("t", (input) => {
|
|
|
4340
4340
|
_if(() => {
|
|
4341
4341
|
if (input.actions) {
|
|
4342
4342
|
const $scope4_id = _scope_id();
|
|
4343
|
-
_html(`<div${_attr_class("
|
|
4343
|
+
_html(`<div${_attr_class("_bT")}>`);
|
|
4344
4344
|
_dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
4345
4345
|
_html("</div>");
|
|
4346
4346
|
$si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -4408,7 +4408,7 @@ var icon_agent_default = _template("J", (input) => {
|
|
|
4408
4408
|
n: $badge__closures
|
|
4409
4409
|
});
|
|
4410
4410
|
});
|
|
4411
|
-
var usageNote = "
|
|
4411
|
+
var usageNote = "_eU _V";
|
|
4412
4412
|
//#endregion
|
|
4413
4413
|
//#region src/tags/icons/icon-warning.marko
|
|
4414
4414
|
var icon_warning_default = _template("ob", (input) => {
|
|
@@ -4438,11 +4438,11 @@ var usage_meters_default = _template("G", (input) => {
|
|
|
4438
4438
|
const $scope0_reason = _scope_reason(), $sg__input_agent__OR__input_hideName = _serialize_guard($scope0_reason, 0), $sg__input_agent = _serialize_guard($scope0_reason, 1), $si__input_agent = _serialize_if($scope0_reason, 1), $sg__input_hideName = _serialize_guard($scope0_reason, 2), $si__input_agent__OR__input_hideName = _serialize_if($scope0_reason, 0);
|
|
4439
4439
|
const $scope0_id = _scope_id();
|
|
4440
4440
|
const agent = input.agent;
|
|
4441
|
-
_html(`<div${_attr_class(["
|
|
4441
|
+
_html(`<div${_attr_class(["_eO", { ["_eP"]: input.hideName }])}><div${_attr_class("_eQ")}>`);
|
|
4442
4442
|
_if(() => {
|
|
4443
4443
|
if (!input.hideName) {
|
|
4444
4444
|
const $scope1_id = _scope_id();
|
|
4445
|
-
_html(`<strong${_attr_class("
|
|
4445
|
+
_html(`<strong${_attr_class("_e9")}>${_escape(agent.agent)}${_el_resume($scope1_id, "b", $sg__input_agent)}</strong>`);
|
|
4446
4446
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
4447
4447
|
return 0;
|
|
4448
4448
|
}
|
|
@@ -4450,7 +4450,7 @@ var usage_meters_default = _template("G", (input) => {
|
|
|
4450
4450
|
_if(() => {
|
|
4451
4451
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
4452
4452
|
const $scope2_id = _scope_id();
|
|
4453
|
-
_html(`<span${_attr_class("
|
|
4453
|
+
_html(`<span${_attr_class("_eR")}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope2_id, "b", $sg__input_agent)}</span>`);
|
|
4454
4454
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
4455
4455
|
return 0;
|
|
4456
4456
|
}
|
|
@@ -4458,21 +4458,21 @@ var usage_meters_default = _template("G", (input) => {
|
|
|
4458
4458
|
_if(() => {
|
|
4459
4459
|
if (agent.stale_seconds != null) {
|
|
4460
4460
|
const $scope3_id = _scope_id();
|
|
4461
|
-
_html(`<span${_attr_class("
|
|
4461
|
+
_html(`<span${_attr_class("_eS")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
|
|
4462
4462
|
icon_warning_default({ size: 12 });
|
|
4463
4463
|
_html(` ${_sep($sg__input_agent)}${_escape(duration(agent.stale_seconds * 1e3))}${_el_resume($scope3_id, "c", $sg__input_agent)} old</span>${_el_resume($scope3_id, "a", $sg__input_agent)}`);
|
|
4464
4464
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
4465
4465
|
return 0;
|
|
4466
4466
|
}
|
|
4467
4467
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
4468
|
-
_html(`</div><div${_attr_class(["
|
|
4468
|
+
_html(`</div><div${_attr_class(["_eT", { ["_e_"]: agent.stale_seconds != null }])}>`);
|
|
4469
4469
|
_for_of(agent.windows || [], (win) => {
|
|
4470
4470
|
const $scope4_id = _scope_id();
|
|
4471
4471
|
const pct = pctText(win.used_percent);
|
|
4472
4472
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
4473
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
4474
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
4475
|
-
_html(`<div${_attr_class("
|
|
4473
|
+
const fillClass = win.used_percent >= 90 ? "_e2" : win.used_percent >= 70 ? "_e1" : win.used_percent >= 40 ? "_e0" : "_eZ";
|
|
4474
|
+
const pctClass = win.used_percent >= 90 ? "_e7" : win.used_percent >= 70 ? "_e6" : win.used_percent >= 40 ? "_e5" : "_e4";
|
|
4475
|
+
_html(`<div${_attr_class("_eV")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_eW")}>${_escape(win.window)}${_el_resume($scope4_id, "c", $sg__input_agent)}</span><span${_attr_class("_eX")}><span${_attr_class(["_eY", fillClass])}${_attr_style(`width:${Math.min(100, Math.max(2, win.used_percent))}%`)}></span>${_el_resume($scope4_id, "e", $sg__input_agent)}</span><span${_attr_class(["_e3", pctClass])}>${_escape(pct)}${_el_resume($scope4_id, "g", $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_e8")}>`);
|
|
4476
4476
|
_if(() => {
|
|
4477
4477
|
if (label) {
|
|
4478
4478
|
const $scope6_id = _scope_id();
|
|
@@ -4589,14 +4589,14 @@ var sso_auth_default = _template("C", (input) => {
|
|
|
4589
4589
|
localCode = null;
|
|
4590
4590
|
}
|
|
4591
4591
|
}, "C0", $scope0_id);
|
|
4592
|
-
_html(`<div${_attr_class(["
|
|
4592
|
+
_html(`<div${_attr_class(["_eC", input.class])}>`);
|
|
4593
4593
|
_for_of(input.items, (s) => {
|
|
4594
4594
|
const $scope1_id = _scope_id();
|
|
4595
|
-
_html(`<div${_attr_class("
|
|
4595
|
+
_html(`<div${_attr_class("_eD")}><span${_attr_class("_eF")}><span${_attr_class("_eG")}>${_escape(s.org)}${_el_resume($scope1_id, "d", $sg__input_items)}</span><span${_attr_class(["_eH", "_eI"])} title="Repos and PRs in this org stay hidden until the GitHub CLI is authorized for it.">SSO not authorized</span></span>`);
|
|
4596
4596
|
_if(() => {
|
|
4597
4597
|
if (!busy) {
|
|
4598
4598
|
const $scope2_id = _scope_id();
|
|
4599
|
-
_html(`<button type=button${_attr_class([btnSm, "_p"])} title="Re-authorize GitHub CLI (same device flow as Sign in)">Authorize</button>${_el_resume($scope2_id, "a")}<button type=button${_attr_class([btnSm, "
|
|
4599
|
+
_html(`<button type=button${_attr_class([btnSm, "_p"])} title="Re-authorize GitHub CLI (same device flow as Sign in)">Authorize</button>${_el_resume($scope2_id, "a")}<button type=button${_attr_class([btnSm, "_eJ"])}${_attr("title", `Ignore ${s.org} — stop asking about it`)}>Ignore</button>${_el_resume($scope2_id, "b")}`);
|
|
4600
4600
|
_script($scope2_id, "C1");
|
|
4601
4601
|
writeScope($scope2_id, {});
|
|
4602
4602
|
return 0;
|
|
@@ -4611,13 +4611,13 @@ var sso_auth_default = _template("C", (input) => {
|
|
|
4611
4611
|
_if(() => {
|
|
4612
4612
|
if (localBusy && localCode) {
|
|
4613
4613
|
const $scope4_id = _scope_id();
|
|
4614
|
-
_html(`<div${_attr_class(["
|
|
4614
|
+
_html(`<div${_attr_class(["_eD", "_eK"])}><span${_attr_class("_E")}></span> Enter code <strong${_attr_class("_eL")}>${_escape(localCode)}${_el_resume($scope4_id, "d")}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_eM")}>${_escape(host)}${_el_resume($scope4_id, "f", _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope4_id, "e")}</div>`);
|
|
4615
4615
|
_script($scope4_id, "C2");
|
|
4616
4616
|
writeScope($scope4_id, {});
|
|
4617
4617
|
return 0;
|
|
4618
4618
|
} else if (localBusy) {
|
|
4619
4619
|
const $scope6_id = _scope_id();
|
|
4620
|
-
_html(`<div${_attr_class(["
|
|
4620
|
+
_html(`<div${_attr_class(["_eD", "_eK"])}><span${_attr_class("_E")}></span>Starting GitHub re-authorization…</div>`);
|
|
4621
4621
|
writeScope($scope6_id, {});
|
|
4622
4622
|
return 1;
|
|
4623
4623
|
}
|
|
@@ -4625,14 +4625,14 @@ var sso_auth_default = _template("C", (input) => {
|
|
|
4625
4625
|
_if(() => {
|
|
4626
4626
|
if (localError) {
|
|
4627
4627
|
const $scope5_id = _scope_id();
|
|
4628
|
-
_html(`<p${_attr_class(["
|
|
4628
|
+
_html(`<p${_attr_class(["_eD", "_eN"])}>${_escape(localError)}${_el_resume($scope5_id, "b")}</p>`);
|
|
4629
4629
|
writeScope($scope5_id, {});
|
|
4630
4630
|
return 0;
|
|
4631
4631
|
}
|
|
4632
4632
|
}, $scope0_id, "d", 1, 1, 1, 0, 1);
|
|
4633
4633
|
_for_of(skipped, (s) => {
|
|
4634
4634
|
const $scope3_id = _scope_id();
|
|
4635
|
-
_html(`<div${_attr_class(["
|
|
4635
|
+
_html(`<div${_attr_class(["_eD", "_eE"])}><span${_attr_class("_eF")}><span${_attr_class("_eG")}>${_escape(s.org)}${_el_resume($scope3_id, "d", $sg__input_skipped)}</span><span${_attr_class("_eH")}>Ignored</span></span><button type=button${_attr_class([btnSm, "_eJ"])}${_attr("title", `Ask about ${s.org} again`)}>Undo</button>${_el_resume($scope3_id, "f")}</div>`);
|
|
4636
4636
|
_script($scope3_id, "C3");
|
|
4637
4637
|
writeScope($scope3_id, {
|
|
4638
4638
|
i: s?.org,
|
|
@@ -4666,7 +4666,7 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
4666
4666
|
const $input_tags__closures = /* @__PURE__ */ new Set();
|
|
4667
4667
|
const $input_actions__closures = /* @__PURE__ */ new Set();
|
|
4668
4668
|
const $input_trailing__closures = /* @__PURE__ */ new Set();
|
|
4669
|
-
_html(`<li${_attr_class("
|
|
4669
|
+
_html(`<li${_attr_class("_dN")}>`);
|
|
4670
4670
|
_if(() => {
|
|
4671
4671
|
if (input.busy != null) {
|
|
4672
4672
|
const $scope1_id = _scope_id();
|
|
@@ -4676,20 +4676,20 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
4676
4676
|
} else {
|
|
4677
4677
|
const $scope2_id = _scope_id();
|
|
4678
4678
|
const popId = _id();
|
|
4679
|
-
_html(`<button${_attr_class("
|
|
4679
|
+
_html(`<button${_attr_class("_dO")}${_attr("popovertarget", popId)}${_attr("title", `About ${input.name}`)}>${_escape(input.name)}${_el_resume($scope2_id, "b", $sg__input_name)}`);
|
|
4680
4680
|
_if(() => {
|
|
4681
4681
|
if (input.hint) {
|
|
4682
4682
|
const $scope3_id = _scope_id();
|
|
4683
|
-
_html(`<span${_attr_class("
|
|
4683
|
+
_html(`<span${_attr_class("_dQ")}>${_escape(input.hint)}${_el_resume($scope3_id, "b", $sg__input_hint)}</span>`);
|
|
4684
4684
|
$si__input_busy__OR__input_hint && _subscribe($si__input_hint && $input_hint__closures, writeScope($scope3_id, { _: _scope_with_id($scope2_id) }));
|
|
4685
4685
|
return 0;
|
|
4686
4686
|
}
|
|
4687
4687
|
}, $scope2_id, "c", $sg__input_hint, $sg__input_hint, $sg__input_hint__OR__input_description__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal__OR__input_tags__OR__input_actions__OR__input_trailing, 0, 1);
|
|
4688
|
-
_html(`</button>${_el_resume($scope2_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(pop)}><span${_attr_class(["
|
|
4688
|
+
_html(`</button>${_el_resume($scope2_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(pop)}><span${_attr_class(["_bp", "_w"])}>${_escape(input.name)}${_el_resume($scope2_id, "f", $sg__input_name)}</span>`);
|
|
4689
4689
|
_if(() => {
|
|
4690
4690
|
if (input.description) {
|
|
4691
4691
|
const $scope4_id = _scope_id();
|
|
4692
|
-
_html(`<span${_attr_class("
|
|
4692
|
+
_html(`<span${_attr_class("_br")}${_attr("title", input.description)}>${_escape(input.description)}${_el_resume($scope4_id, "b", $sg__input_description)}</span>${_el_resume($scope4_id, "a", $sg__input_description)}`);
|
|
4693
4693
|
$si__input_busy__OR__input_description && _subscribe($si__input_description && $input_description__closures, writeScope($scope4_id, { _: _scope_with_id($scope2_id) }));
|
|
4694
4694
|
return 0;
|
|
4695
4695
|
}
|
|
@@ -4697,12 +4697,12 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
4697
4697
|
_if(() => {
|
|
4698
4698
|
if (input.sourceUrl) {
|
|
4699
4699
|
const $scope5_id = _scope_id();
|
|
4700
|
-
_html(`<a${_attr_class(["
|
|
4700
|
+
_html(`<a${_attr_class(["_br", "_I"])}${_attr("href", input.sourceUrl)} target=_blank rel=noopener${_attr("title", `Open ${input.source} on GitHub`)}>${_escape(input.source)}${_el_resume($scope5_id, "b", $sg__input_source)}</a>${_el_resume($scope5_id, "a", _serialize_guard($scope0_reason, 6))}`);
|
|
4701
4701
|
$si__input_busy__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal && _subscribe($si__input_source && $input_source__closures, _subscribe($si__input_sourceUrl && $input_sourceUrl__closures, writeScope($scope5_id, { _: _scope_with_id($scope2_id) })));
|
|
4702
4702
|
return 0;
|
|
4703
4703
|
} else if (input.source) {
|
|
4704
4704
|
const $scope6_id = _scope_id();
|
|
4705
|
-
_html(`<span${_attr_class("
|
|
4705
|
+
_html(`<span${_attr_class("_br")}>${_escape(input.source)}${_el_resume($scope6_id, "b", $sg__input_source)}</span>`);
|
|
4706
4706
|
$si__input_busy__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal && _subscribe($si__input_source && $input_source__closures, writeScope($scope6_id, {
|
|
4707
4707
|
_: _scope_with_id($scope2_id),
|
|
4708
4708
|
Cs: $si__input_source && 1
|
|
@@ -4710,7 +4710,7 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
4710
4710
|
return 1;
|
|
4711
4711
|
} else if (input.noteLocal) {
|
|
4712
4712
|
const $scope10_id = _scope_id();
|
|
4713
|
-
_html(`<span${_attr_class(["
|
|
4713
|
+
_html(`<span${_attr_class(["_br", "_v"])} title="Not installed from a source, so it cannot be updated">local only</span>`);
|
|
4714
4714
|
_serialize_if($scope0_reason, 9) && writeScope($scope10_id, {});
|
|
4715
4715
|
return 2;
|
|
4716
4716
|
}
|
|
@@ -4718,7 +4718,7 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
4718
4718
|
_if(() => {
|
|
4719
4719
|
if (input.tags) {
|
|
4720
4720
|
const $scope7_id = _scope_id();
|
|
4721
|
-
_html(`<span${_attr_class("
|
|
4721
|
+
_html(`<span${_attr_class("_bq")}>`);
|
|
4722
4722
|
_dynamic_tag($scope7_id, "b", input.tags, {}, 0, 0, $sg__input_tags);
|
|
4723
4723
|
_html("</span>");
|
|
4724
4724
|
$si__input_busy__OR__input_tags && _subscribe($si__input_tags && $input_tags__closures, writeScope($scope7_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -4728,7 +4728,7 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
4728
4728
|
_if(() => {
|
|
4729
4729
|
if (input.actions) {
|
|
4730
4730
|
const $scope8_id = _scope_id();
|
|
4731
|
-
_html(`<div${_attr_class("
|
|
4731
|
+
_html(`<div${_attr_class("_dS")}>`);
|
|
4732
4732
|
_dynamic_tag($scope8_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
4733
4733
|
_html("</div>");
|
|
4734
4734
|
$si__input_busy__OR__input_actions && _subscribe($si__input_actions && $input_actions__closures, writeScope($scope8_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -4771,7 +4771,7 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
4771
4771
|
});
|
|
4772
4772
|
//#endregion
|
|
4773
4773
|
//#region src/tags/prompt-dialog.css.ts
|
|
4774
|
-
var promptDlg = "
|
|
4774
|
+
var promptDlg = "_eB _ec";
|
|
4775
4775
|
//#endregion
|
|
4776
4776
|
//#region src/tags/dialog-close.marko
|
|
4777
4777
|
var dialog_close_default = _template("f", (input) => {
|
|
@@ -4795,7 +4795,7 @@ var modal_view_default = _template("r", (input) => {
|
|
|
4795
4795
|
const { label, class: inputClass, open: _open, openChange: _openChange, dismissable: _dismissable, content, footer, closedby: _closedby, onCancel: _onCancel, onClose: _onClose, "aria-label": inputAriaLabel, "aria-labelledby": inputLabelledBy, ...htmlInput } = input;
|
|
4796
4796
|
const dismissable = input.dismissable !== false;
|
|
4797
4797
|
let open = input.open;
|
|
4798
|
-
_html(`<dialog${_attr_class(["
|
|
4798
|
+
_html(`<dialog${_attr_class(["_eb", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
4799
4799
|
...htmlInput,
|
|
4800
4800
|
open: null
|
|
4801
4801
|
}, {
|
|
@@ -4805,20 +4805,20 @@ var modal_view_default = _template("r", (input) => {
|
|
|
4805
4805
|
closedby: 1,
|
|
4806
4806
|
"on-cancel": 1,
|
|
4807
4807
|
"on-close": 1
|
|
4808
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
4808
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_ee")}>`);
|
|
4809
4809
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
4810
4810
|
_html("</div>");
|
|
4811
4811
|
_if(() => {
|
|
4812
4812
|
if (footer) {
|
|
4813
4813
|
const $scope1_id = _scope_id();
|
|
4814
|
-
_html(`<form method=dialog${_attr_class("
|
|
4814
|
+
_html(`<form method=dialog${_attr_class("_ef")}>`);
|
|
4815
4815
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
4816
4816
|
_html("</form>");
|
|
4817
4817
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
4818
4818
|
return 0;
|
|
4819
4819
|
} else if (input.openChange) {
|
|
4820
4820
|
const $scope2_id = _scope_id();
|
|
4821
|
-
_html(`<form method=dialog${_attr_class("
|
|
4821
|
+
_html(`<form method=dialog${_attr_class("_ef")}>`);
|
|
4822
4822
|
dialog_close_default({
|
|
4823
4823
|
class: ["_o", "_p"],
|
|
4824
4824
|
content: _content("r0", () => {
|
|
@@ -4901,7 +4901,7 @@ var prompt_dialog_default = _template("u", (input) => {
|
|
|
4901
4901
|
content: _content("u6", () => {
|
|
4902
4902
|
_scope_reason();
|
|
4903
4903
|
const $scope2_id = _scope_id();
|
|
4904
|
-
_html(`<h2${_attr_class("
|
|
4904
|
+
_html(`<h2${_attr_class("_ed")}${_attr("id", titleId)}>${_escape(input.label)}${_el_resume($scope2_id, "b", $sg__input_label)}</h2><input${_attr_input_value($scope2_id, "c", value, _resume((_new_value) => {
|
|
4905
4905
|
value = _new_value;
|
|
4906
4906
|
}, "u0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
4907
4907
|
_script($scope2_id, "u4");
|
|
@@ -5421,7 +5421,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5421
5421
|
const githubId = _id();
|
|
5422
5422
|
const backupId = _id();
|
|
5423
5423
|
const machineId = _id();
|
|
5424
|
-
_html(`<div${_attr_class("
|
|
5424
|
+
_html(`<div${_attr_class("_bL")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bM")}><div${_attr_class(content$2)}>`);
|
|
5425
5425
|
_set_serialize_reason({
|
|
5426
5426
|
0: _serialize_guard($scope0_reason, 4),
|
|
5427
5427
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -5433,7 +5433,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5433
5433
|
if (setup && !setup.ready) $meta = attrTag({ content: _content_resume("x43", () => {
|
|
5434
5434
|
_scope_reason();
|
|
5435
5435
|
const $scope5_id = _scope_id();
|
|
5436
|
-
_html(`<span${_attr_class("
|
|
5436
|
+
_html(`<span${_attr_class("_cC")}>Not ready</span>. Missing <!>${_escape(setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "))}${_el_resume($scope5_id, "b")}.`);
|
|
5437
5437
|
_subscribe($setup_missing__closures, writeScope($scope5_id, { _: _scope_with_id($scope0_id) }));
|
|
5438
5438
|
_resume_branch($scope5_id);
|
|
5439
5439
|
}, $scope0_id) });
|
|
@@ -5486,16 +5486,16 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5486
5486
|
_if(() => {
|
|
5487
5487
|
if (selfUpdatePending || selfUpdating) {
|
|
5488
5488
|
const $scope45_id = _scope_id();
|
|
5489
|
-
_html(`<div${_attr_class("
|
|
5489
|
+
_html(`<div${_attr_class("_de")} role=status><div${_attr_class("_df")}>`);
|
|
5490
5490
|
_if(() => {
|
|
5491
5491
|
if (selfUpdating) {
|
|
5492
5492
|
const $scope78_id = _scope_id();
|
|
5493
|
-
_html(`<span${_attr_class("
|
|
5493
|
+
_html(`<span${_attr_class("_dg")}><span${_attr_class("_E")}></span> Updating work…</span><span${_attr_class("_dh")}>The app restarts and reloads when it is done.</span>`);
|
|
5494
5494
|
writeScope($scope78_id, {});
|
|
5495
5495
|
return 0;
|
|
5496
5496
|
} else {
|
|
5497
5497
|
const $scope46_id = _scope_id();
|
|
5498
|
-
_html(`<span${_attr_class("
|
|
5498
|
+
_html(`<span${_attr_class("_dg")}>Update available</span><span${_attr_class("_dh")}>v<!>${_escape(self.version)}${_el_resume($scope46_id, "c")} → v<!>${_escape(self.latest)}${_el_resume($scope46_id, "d")}</span>`);
|
|
5499
5499
|
_subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($scope46_id, {})));
|
|
5500
5500
|
return 1;
|
|
5501
5501
|
}
|
|
@@ -5514,11 +5514,11 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5514
5514
|
return 0;
|
|
5515
5515
|
}
|
|
5516
5516
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
5517
|
-
_html(`<section${_attr_class("
|
|
5517
|
+
_html(`<section${_attr_class("_bi")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bj")}><h2${_attr("id", agentsId)}${_attr_class("_bw")}>Agents</h2><div${_attr_class("_x")}></div><label${_attr_class("_cF")}><span${_attr_class("_V")}>Default</span><span${_attr_class("_m")}>`);
|
|
5518
5518
|
_attr_select_value($scope0_id, "n", input$2.preferred, _resume(function(v) {
|
|
5519
5519
|
setPreferred(v);
|
|
5520
5520
|
}, "x2", $scope0_id), () => {
|
|
5521
|
-
_html(`<select${_attr_class(["_n", "
|
|
5521
|
+
_html(`<select${_attr_class(["_n", "_cG"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
|
|
5522
5522
|
_for_of(input$2.agents.filter((a) => a !== "shell"), (id) => {
|
|
5523
5523
|
const $scope79_id = _scope_id();
|
|
5524
5524
|
_html(`<option${_attr_option_value(id)}>${_escape(agentLabel(id))}${_el_resume($scope79_id, "b", $sg__input_agents)}</option>${_el_resume($scope79_id, "a", $sg__input_agents)}`);
|
|
@@ -5532,14 +5532,14 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5532
5532
|
const rows = lone ? [] : a.instances;
|
|
5533
5533
|
const loneAccounts = lone ? accountsFor(lone.id) : [];
|
|
5534
5534
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
5535
|
-
_html(`<li${_attr_class(["
|
|
5535
|
+
_html(`<li${_attr_class(["_bn", "_cE"])}><div${_attr_class(["_cH", { ["_cK"]: lone && !lone.enabled }])}>`);
|
|
5536
5536
|
_set_serialize_reason(12);
|
|
5537
5537
|
const $childScope3 = _peek_scope_id();
|
|
5538
5538
|
icon_agent_default({
|
|
5539
5539
|
agent: a.id,
|
|
5540
5540
|
size: 18
|
|
5541
5541
|
});
|
|
5542
|
-
_html(`<div${_attr_class("
|
|
5542
|
+
_html(`<div${_attr_class("_bo")}><span${_attr_class("_bq")}><span${_attr_class("_bp")}>${_escape(a.label)}${_el_resume($scope1_id, "g")}</span>`);
|
|
5543
5543
|
_if(() => {
|
|
5544
5544
|
if (lone && input$2.preferred === lone.id) {
|
|
5545
5545
|
const $scope80_id = _scope_id();
|
|
@@ -5552,12 +5552,12 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5552
5552
|
_if(() => {
|
|
5553
5553
|
if (active.has(a.id)) {
|
|
5554
5554
|
const $scope13_id = _scope_id();
|
|
5555
|
-
_html(`<span${_attr_class("
|
|
5555
|
+
_html(`<span${_attr_class("_cB")}><span${_attr_class("_E")}></span><!>${_escape(active.get(a.id) || "Starting…")}${_el_resume($scope13_id, "c")}</span>`);
|
|
5556
5556
|
_subscribe($active__closures, writeScope($scope13_id, {}));
|
|
5557
5557
|
return 0;
|
|
5558
5558
|
} else if (!a.installed) {
|
|
5559
5559
|
const $scope81_id = _scope_id();
|
|
5560
|
-
_html(`<span${_attr_class("
|
|
5560
|
+
_html(`<span${_attr_class("_br")}>Not installed</span>`);
|
|
5561
5561
|
writeScope($scope81_id, {});
|
|
5562
5562
|
return 1;
|
|
5563
5563
|
}
|
|
@@ -5585,15 +5585,15 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5585
5585
|
_if(() => {
|
|
5586
5586
|
if (rows.length || loneAccounts.length || extraAccounts.length) {
|
|
5587
5587
|
const $scope2_id = _scope_id();
|
|
5588
|
-
_html(`<ul${_attr_class(["
|
|
5588
|
+
_html(`<ul${_attr_class(["_cM", { ["_cK"]: lone && !lone.enabled }])}>`);
|
|
5589
5589
|
_for_of(rows, (inst) => {
|
|
5590
5590
|
const $scope3_id = _scope_id();
|
|
5591
5591
|
const accounts = accountsFor(inst.id);
|
|
5592
|
-
_html(`<li${_attr_class(["
|
|
5592
|
+
_html(`<li${_attr_class(["_cI", { ["_cK"]: !inst.enabled }])}><div${_attr_class("_cJ")}>`);
|
|
5593
5593
|
_set_serialize_reason(12);
|
|
5594
5594
|
const $childScope4 = _peek_scope_id();
|
|
5595
5595
|
icon_agent_default({ agent: inst.id });
|
|
5596
|
-
_html(`<span${_attr_class(["
|
|
5596
|
+
_html(`<span${_attr_class(["_cL", "_w"])}>${_escape(inst.command)}${_el_resume($scope3_id, "e")}</span>`);
|
|
5597
5597
|
_if(() => {
|
|
5598
5598
|
if (input$2.preferred === inst.id) {
|
|
5599
5599
|
const $scope82_id = _scope_id();
|
|
@@ -5664,7 +5664,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5664
5664
|
}, "id", $scope0_id, "p", 1, 1, 1, 0, 1);
|
|
5665
5665
|
_for_of(otherUsage, (u) => {
|
|
5666
5666
|
const $scope86_id = _scope_id();
|
|
5667
|
-
_html(`<li${_attr_class(["
|
|
5667
|
+
_html(`<li${_attr_class(["_bn", "_cE"])}>`);
|
|
5668
5668
|
_set_serialize_reason(6);
|
|
5669
5669
|
const $childScope8 = _peek_scope_id();
|
|
5670
5670
|
usage_meters_default({ agent: u });
|
|
@@ -5675,21 +5675,21 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5675
5675
|
_if(() => {
|
|
5676
5676
|
if (!usage && families.length) {
|
|
5677
5677
|
const $scope87_id = _scope_id();
|
|
5678
|
-
_html(`<p${_attr_class("
|
|
5678
|
+
_html(`<p${_attr_class("_bt")}><span${_attr_class("_E")}></span> Loading usage…</p>`);
|
|
5679
5679
|
writeScope($scope87_id, {});
|
|
5680
5680
|
return 0;
|
|
5681
5681
|
} else if (usage?.error) {
|
|
5682
5682
|
const $scope9_id = _scope_id();
|
|
5683
|
-
_html(`<p${_attr_class("
|
|
5683
|
+
_html(`<p${_attr_class("_bt")}>${_escape(usage.error)}${_el_resume($scope9_id, "b")}</p>`);
|
|
5684
5684
|
writeScope($scope9_id, {});
|
|
5685
5685
|
return 1;
|
|
5686
5686
|
}
|
|
5687
5687
|
}, $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
5688
|
-
_html(`</section><section${_attr_class("
|
|
5688
|
+
_html(`</section><section${_attr_class("_bi")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_bj")}><h2${_attr("id", githubId)}${_attr_class("_bw")}>GitHub</h2>`);
|
|
5689
5689
|
_if(() => {
|
|
5690
5690
|
if (setup && !addingHost) {
|
|
5691
5691
|
const $scope43_id = _scope_id();
|
|
5692
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
5692
|
+
_html(`<button${_attr_class([iconBtnRow, "_cU"])} title="Add Enterprise host" aria-label="Add Enterprise host">`);
|
|
5693
5693
|
icon_plus_default({ size: 16 });
|
|
5694
5694
|
_html(`</button>${_el_resume($scope43_id, "a")}`);
|
|
5695
5695
|
_script($scope43_id, "x50");
|
|
@@ -5701,10 +5701,10 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5701
5701
|
if (setup) {
|
|
5702
5702
|
const $scope42_id = _scope_id();
|
|
5703
5703
|
_html(`<form${_attr_class([
|
|
5704
|
-
"
|
|
5705
|
-
"
|
|
5706
|
-
{ ["
|
|
5707
|
-
])}><label${_attr_class(["_Z", "
|
|
5704
|
+
"_dD",
|
|
5705
|
+
"_cU",
|
|
5706
|
+
{ ["_dE"]: !addingHost }
|
|
5707
|
+
])}><label${_attr_class(["_Z", "_dF"])}>`);
|
|
5708
5708
|
icon_github_default({
|
|
5709
5709
|
size: 14,
|
|
5710
5710
|
class: "_0"
|
|
@@ -5714,12 +5714,12 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5714
5714
|
}, "x3", $scope42_id))}${_attr_class([
|
|
5715
5715
|
"_X",
|
|
5716
5716
|
"_1",
|
|
5717
|
-
"
|
|
5717
|
+
"_dG"
|
|
5718
5718
|
])} type=text placeholder=github.example.com aria-label="GitHub Enterprise host" autocomplete=off spellcheck=false>${_el_resume($scope42_id, "d")}</label><button${_attr_class([
|
|
5719
5719
|
btnSm,
|
|
5720
5720
|
"_p",
|
|
5721
|
-
"
|
|
5722
|
-
])} type=submit${_attr("hidden", !addingHost)}${_attr("disabled", !hostInput.trim() || hostBusy)}>${hostBusy ? "Adding…" : "Add"}${_el_resume($scope42_id, "f")}</button>${_el_resume($scope42_id, "e")}<button${_attr_class([iconBtnRow, "
|
|
5721
|
+
"_cT"
|
|
5722
|
+
])} type=submit${_attr("hidden", !addingHost)}${_attr("disabled", !hostInput.trim() || hostBusy)}>${hostBusy ? "Adding…" : "Add"}${_el_resume($scope42_id, "f")}</button>${_el_resume($scope42_id, "e")}<button${_attr_class([iconBtnRow, "_dH"])} type=button${_attr("hidden", !addingHost)} title=Cancel aria-label=Cancel${_attr("disabled", hostBusy)}>`);
|
|
5723
5723
|
icon_xmark_default({ size: 12 });
|
|
5724
5724
|
_html(`</button>${_el_resume($scope42_id, "g")}</form>${_el_resume($scope42_id, "a")}`);
|
|
5725
5725
|
_script($scope42_id, "x51");
|
|
@@ -5727,19 +5727,19 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5727
5727
|
return 0;
|
|
5728
5728
|
}
|
|
5729
5729
|
}, $scope0_id, "w", 1, 1, 1, 0, 1);
|
|
5730
|
-
_html(`</div><div${_attr_class(["
|
|
5730
|
+
_html(`</div><div${_attr_class(["_bn", "_cj"])}>`);
|
|
5731
5731
|
_for_of(setup?.github || [], (h) => {
|
|
5732
5732
|
const $scope7_id = _scope_id();
|
|
5733
5733
|
const $for_content4__h_host__closures = /* @__PURE__ */ new Set();
|
|
5734
5734
|
const hostSso$1 = (h.sso || []).filter((s) => !ignoredSso.has(s.org));
|
|
5735
5735
|
const skippedSso = (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
5736
5736
|
const busy = active.has(h.host);
|
|
5737
|
-
_html(`<div${_attr_class(["
|
|
5737
|
+
_html(`<div${_attr_class(["_ck", "_cV"])}><div${_attr_class("_cW")}>`);
|
|
5738
5738
|
icon_github_default({
|
|
5739
5739
|
size: 18,
|
|
5740
|
-
class: "
|
|
5740
|
+
class: "_cX"
|
|
5741
5741
|
});
|
|
5742
|
-
_html(`<div${_attr_class("
|
|
5742
|
+
_html(`<div${_attr_class("_bo")}><span${_attr_class("_bq")}><span${_attr_class("_bp")}>${_escape(h.host)}${_el_resume($scope7_id, "g")}</span>`);
|
|
5743
5743
|
_if(() => {
|
|
5744
5744
|
if (h.isEnterprise) {
|
|
5745
5745
|
const $scope90_id = _scope_id();
|
|
@@ -5752,25 +5752,25 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5752
5752
|
_if(() => {
|
|
5753
5753
|
if (busy) {
|
|
5754
5754
|
const $scope14_id = _scope_id();
|
|
5755
|
-
_html(`<span${_attr_class(["
|
|
5755
|
+
_html(`<span${_attr_class(["_br", "_cY"])}><span${_attr_class("_E")}></span><!>${authCodes.has(h.host) ? "Waiting for the browser…" : _escape(active.get(h.host) || "Starting…")}${_el_resume($scope14_id, "c")}</span>`);
|
|
5756
5756
|
_subscribe($authCodes__closures, _subscribe($active__closures, writeScope($scope14_id, { Cgt: 1 })));
|
|
5757
5757
|
return 0;
|
|
5758
5758
|
} else if (h.authed) {
|
|
5759
5759
|
const $scope88_id = _scope_id();
|
|
5760
|
-
_html(`<span${_attr_class(["
|
|
5760
|
+
_html(`<span${_attr_class(["_br", "_cY"])}>`);
|
|
5761
5761
|
icon_check_default({
|
|
5762
5762
|
size: 12,
|
|
5763
|
-
class: "
|
|
5763
|
+
class: "_cZ"
|
|
5764
5764
|
});
|
|
5765
|
-
_html(` Signed in as <strong${_attr_class("
|
|
5765
|
+
_html(` Signed in as <strong${_attr_class("_c1")}>${_escape(h.user || "?")}${_el_resume($scope88_id, "d")}</strong></span>`);
|
|
5766
5766
|
writeScope($scope88_id, {});
|
|
5767
5767
|
return 1;
|
|
5768
5768
|
} else if (h.error) {
|
|
5769
5769
|
const $scope89_id = _scope_id();
|
|
5770
5770
|
_html(`<span${_attr_class([
|
|
5771
|
-
"
|
|
5772
|
-
"
|
|
5773
|
-
"
|
|
5771
|
+
"_br",
|
|
5772
|
+
"_cY",
|
|
5773
|
+
"_c0"
|
|
5774
5774
|
])}>`);
|
|
5775
5775
|
icon_warning_default({ size: 12 });
|
|
5776
5776
|
_html(`<!>${_escape(h.error)}${_el_resume($scope89_id, "c")}</span>`);
|
|
@@ -5778,7 +5778,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5778
5778
|
return 2;
|
|
5779
5779
|
} else {
|
|
5780
5780
|
const $scope91_id = _scope_id();
|
|
5781
|
-
_html(`<span${_attr_class(["
|
|
5781
|
+
_html(`<span${_attr_class(["_br", "_cY"])}>Not signed in</span>`);
|
|
5782
5782
|
writeScope($scope91_id, {});
|
|
5783
5783
|
return 3;
|
|
5784
5784
|
}
|
|
@@ -5809,7 +5809,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5809
5809
|
if (h.isEnterprise) {
|
|
5810
5810
|
const $scope34_id = _scope_id();
|
|
5811
5811
|
_html(`<button${_attr_class([
|
|
5812
|
-
"
|
|
5812
|
+
"_bs",
|
|
5813
5813
|
"_6",
|
|
5814
5814
|
"_7",
|
|
5815
5815
|
{ ["_q"]: confirmingRemove === h.host }
|
|
@@ -5843,7 +5843,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5843
5843
|
_if(() => {
|
|
5844
5844
|
if (busy && authCodes.has(h.host)) {
|
|
5845
5845
|
const $scope31_id = _scope_id();
|
|
5846
|
-
_html(`<div${_attr_class("
|
|
5846
|
+
_html(`<div${_attr_class("_c2")}><span${_attr_class("_c3")}>Enter this code at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_c5")}>${_escape(h.host)}${_el_resume($scope31_id, "d")}/login/device</a>${_el_resume($scope31_id, "c")}</span><code${_attr_class("_c4")}>${_escape(authCodes.get(h.host))}${_el_resume($scope31_id, "f")}</code></div>`);
|
|
5847
5847
|
_subscribe($authCodes__closures, writeScope($scope31_id, { Cgv: 1 }));
|
|
5848
5848
|
return 0;
|
|
5849
5849
|
}
|
|
@@ -5855,7 +5855,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5855
5855
|
_set_serialize_reason(30);
|
|
5856
5856
|
const $childScope9 = _peek_scope_id();
|
|
5857
5857
|
sso_auth_default({
|
|
5858
|
-
class: ["
|
|
5858
|
+
class: ["_ck", "_c6"],
|
|
5859
5859
|
items: hostSso$1,
|
|
5860
5860
|
skipped: skippedSso,
|
|
5861
5861
|
busy,
|
|
@@ -5889,23 +5889,23 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5889
5889
|
_if(() => {
|
|
5890
5890
|
if (setup && !setup.github.length) {
|
|
5891
5891
|
const $scope94_id = _scope_id();
|
|
5892
|
-
_html(`<p${_attr_class("
|
|
5892
|
+
_html(`<p${_attr_class("_bt")}>Install the GitHub CLI below to sign in.</p>`);
|
|
5893
5893
|
writeScope($scope94_id, {});
|
|
5894
5894
|
return 0;
|
|
5895
5895
|
}
|
|
5896
5896
|
}, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
5897
|
-
_html(`</section><section${_attr_class("
|
|
5897
|
+
_html(`</section><section${_attr_class("_bi")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_bj")}><h2${_attr("id", machineId)}${_attr_class("_bw")}>Machine</h2></div><div${_attr_class(["_bn", "_cj"])}><div${_attr_class(["_ck", "_co"])}><div${_attr_class(["_cp", { ["_cq"]: skillsOpen }])}><button${_attr_class("_cr")} aria-expanded=true>`);
|
|
5898
5898
|
_set_serialize_reason(1);
|
|
5899
5899
|
const $childScope10 = _peek_scope_id();
|
|
5900
5900
|
icon_chevron_right_default({
|
|
5901
5901
|
size: 12,
|
|
5902
|
-
class: ["
|
|
5902
|
+
class: ["_cv", { ["_cw"]: skillsOpen }]
|
|
5903
5903
|
});
|
|
5904
|
-
_html(`<span${_attr_class("
|
|
5904
|
+
_html(`<span${_attr_class("_cs")}>Skills</span>`);
|
|
5905
5905
|
_if(() => {
|
|
5906
5906
|
if (skills?.global.length) {
|
|
5907
5907
|
const $scope52_id = _scope_id();
|
|
5908
|
-
_html(`<span${_attr_class("
|
|
5908
|
+
_html(`<span${_attr_class("_ct")}>${_escape(skills.global.length)}${_el_resume($scope52_id, "b")} installed</span>`);
|
|
5909
5909
|
writeScope($scope52_id, {});
|
|
5910
5910
|
return 0;
|
|
5911
5911
|
}
|
|
@@ -5925,7 +5925,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5925
5925
|
_if(() => {
|
|
5926
5926
|
if (skills?.available && skills.agents.length) {
|
|
5927
5927
|
const $scope15_id = _scope_id();
|
|
5928
|
-
_html(`<div${_attr_class(["
|
|
5928
|
+
_html(`<div${_attr_class(["_dD", { ["_dE"]: true }])}><label${_attr_class(["_Z", "_dF"])}>`);
|
|
5929
5929
|
_if(() => {
|
|
5930
5930
|
if (skillSearching) {
|
|
5931
5931
|
const $scope95_id = _scope_id();
|
|
@@ -5945,14 +5945,14 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5945
5945
|
_html(`<input${_attr_input_value($scope15_id, "d", skillQuery, searchSkills)}${_attr_class([
|
|
5946
5946
|
"_X",
|
|
5947
5947
|
"_1",
|
|
5948
|
-
"
|
|
5949
|
-
])} type=text placeholder="Search skills, or paste owner/repo…" aria-label="Search for a skill" autocomplete=off spellcheck=false>${_el_resume($scope15_id, "d")}</label><button${_attr_class([iconBtnRow, "
|
|
5948
|
+
"_dG"
|
|
5949
|
+
])} type=text placeholder="Search skills, or paste owner/repo…" aria-label="Search for a skill" autocomplete=off spellcheck=false>${_el_resume($scope15_id, "d")}</label><button${_attr_class([iconBtnRow, "_dH"])} type=button${_attr("hidden", true)} title="Close search" aria-label="Close search">`);
|
|
5950
5950
|
icon_xmark_default({ size: 12 });
|
|
5951
|
-
_html(`</button>${_el_resume($scope15_id, "e")}<ul${_attr_class([pop$1, "
|
|
5951
|
+
_html(`</button>${_el_resume($scope15_id, "e")}<ul${_attr_class([pop$1, "_dJ"])}${_attr("hidden", true)}>`);
|
|
5952
5952
|
_if(() => {
|
|
5953
5953
|
if (skillSearching && !skillHits?.length && !looksLikeSource(skillQuery)) {
|
|
5954
5954
|
const $scope97_id = _scope_id();
|
|
5955
|
-
_html(`<li${_attr_class("
|
|
5955
|
+
_html(`<li${_attr_class("_dK")}>Searching skills.sh…</li>`);
|
|
5956
5956
|
writeScope($scope97_id, {});
|
|
5957
5957
|
return 0;
|
|
5958
5958
|
}
|
|
@@ -5960,11 +5960,11 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5960
5960
|
_if(() => {
|
|
5961
5961
|
if (looksLikeSource(skillQuery)) {
|
|
5962
5962
|
const $scope16_id = _scope_id();
|
|
5963
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
5963
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_bo")}><span${_attr_class(["_cQ", "_w"])}>${_escape(skillQuery.trim())}${_el_resume($scope16_id, "d")}</span>`);
|
|
5964
5964
|
_if(() => {
|
|
5965
5965
|
if (active.has(skillQuery.trim())) {
|
|
5966
5966
|
const $scope17_id = _scope_id();
|
|
5967
|
-
_html(`<span${_attr_class("
|
|
5967
|
+
_html(`<span${_attr_class("_cB")}><span${_attr_class("_E")}></span><!>${_escape(active.get(skillQuery.trim()) || "Starting…")}${_el_resume($scope17_id, "c")}</span>`);
|
|
5968
5968
|
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($scope17_id, {
|
|
5969
5969
|
Cgt: 3,
|
|
5970
5970
|
Chh: 1
|
|
@@ -5972,7 +5972,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5972
5972
|
return 0;
|
|
5973
5973
|
} else {
|
|
5974
5974
|
const $scope98_id = _scope_id();
|
|
5975
|
-
_html(`<span${_attr_class("
|
|
5975
|
+
_html(`<span${_attr_class("_br")}>Add straight from this source</span>`);
|
|
5976
5976
|
writeScope($scope98_id, {});
|
|
5977
5977
|
return 1;
|
|
5978
5978
|
}
|
|
@@ -5995,16 +5995,16 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5995
5995
|
_for_of(skillHits || [], (h) => {
|
|
5996
5996
|
const $scope18_id = _scope_id();
|
|
5997
5997
|
const $for_content5__h_installs__closures = /* @__PURE__ */ new Set();
|
|
5998
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
5998
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_bo")}><span${_attr_class(["_cQ", "_w"])}>${_escape(h.name)}${_el_resume($scope18_id, "d")}</span>`);
|
|
5999
5999
|
_if(() => {
|
|
6000
6000
|
if (active.has(h.skillId)) {
|
|
6001
6001
|
const $scope19_id = _scope_id();
|
|
6002
|
-
_html(`<span${_attr_class("
|
|
6002
|
+
_html(`<span${_attr_class("_cB")}><span${_attr_class("_E")}></span><!>${_escape(active.get(h.skillId) || "Starting…")}${_el_resume($scope19_id, "c")}</span>`);
|
|
6003
6003
|
_subscribe($active__closures, writeScope($scope19_id, { Cgt: 5 }));
|
|
6004
6004
|
return 0;
|
|
6005
6005
|
} else {
|
|
6006
6006
|
const $scope99_id = _scope_id();
|
|
6007
|
-
_html(`<span${_attr_class("
|
|
6007
|
+
_html(`<span${_attr_class("_br")}${_attr("title", h.source)}>${_escape(h.source)}${_el_resume($scope99_id, "b")}</span>${_el_resume($scope99_id, "a")}`);
|
|
6008
6008
|
writeScope($scope99_id, {});
|
|
6009
6009
|
return 1;
|
|
6010
6010
|
}
|
|
@@ -6052,7 +6052,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6052
6052
|
_if(() => {
|
|
6053
6053
|
if (skillHits && !skillHits.length && !skillSearching && !looksLikeSource(skillQuery)) {
|
|
6054
6054
|
const $scope54_id = _scope_id();
|
|
6055
|
-
_html(`<li${_attr_class("
|
|
6055
|
+
_html(`<li${_attr_class("_dK")}>No skills match "<!>${_escape(skillQuery)}${_el_resume($scope54_id, "b")}".</li>`);
|
|
6056
6056
|
_subscribe($skillQuery__closures, writeScope($scope54_id, { Chh: 2 }));
|
|
6057
6057
|
return 0;
|
|
6058
6058
|
}
|
|
@@ -6067,22 +6067,22 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6067
6067
|
_if(() => {
|
|
6068
6068
|
{
|
|
6069
6069
|
const $scope20_id = _scope_id();
|
|
6070
|
-
_html(`<div${_attr_class("
|
|
6070
|
+
_html(`<div${_attr_class("_cu")}>`);
|
|
6071
6071
|
_if(() => {
|
|
6072
6072
|
if (skills && !skills.agents.length) {
|
|
6073
6073
|
const $scope102_id = _scope_id();
|
|
6074
|
-
_html(`<p${_attr_class("
|
|
6074
|
+
_html(`<p${_attr_class("_bt")}>No agent CLIs are installed, so a skill would have nowhere to go. Install one from Agents above.</p>`);
|
|
6075
6075
|
writeScope($scope102_id, {});
|
|
6076
6076
|
return 0;
|
|
6077
6077
|
} else if (skills && !skills.available) {
|
|
6078
6078
|
const $scope21_id = _scope_id();
|
|
6079
|
-
_html(`<p${_attr_class("
|
|
6079
|
+
_html(`<p${_attr_class("_bt")}>The skills CLI is not installed, so skills can be listed but not added or removed. <button${_attr_class(btnSm)}${_attr("disabled", active.has("skills"))}>${active.has("skills") ? "Installing…" : "Install it"}${_el_resume($scope21_id, "c")}</button>${_el_resume($scope21_id, "b")}</p>`);
|
|
6080
6080
|
_script($scope21_id, "x59");
|
|
6081
6081
|
_subscribe($active__closures, writeScope($scope21_id, { Cgt: 6 }));
|
|
6082
6082
|
return 1;
|
|
6083
6083
|
}
|
|
6084
6084
|
}, $scope20_id, "b", 1, 1, 1, 0, 1);
|
|
6085
|
-
_html(`<ul${_attr_class("
|
|
6085
|
+
_html(`<ul${_attr_class("_dM")}>`);
|
|
6086
6086
|
_for_of(skills?.global || [], (s) => {
|
|
6087
6087
|
const $scope22_id = _scope_id();
|
|
6088
6088
|
const $for_content6__s_agents__closures = /* @__PURE__ */ new Set();
|
|
@@ -6158,7 +6158,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6158
6158
|
_if(() => {
|
|
6159
6159
|
if (skills && !skills.global.length && skills.available && skills.agents.length) {
|
|
6160
6160
|
const $scope107_id = _scope_id();
|
|
6161
|
-
_html(`<p${_attr_class("
|
|
6161
|
+
_html(`<p${_attr_class("_bt")}>No skills installed. Search below, or paste an owner/repo.</p>`);
|
|
6162
6162
|
writeScope($scope107_id, {});
|
|
6163
6163
|
return 0;
|
|
6164
6164
|
}
|
|
@@ -6168,14 +6168,14 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6168
6168
|
return 0;
|
|
6169
6169
|
}
|
|
6170
6170
|
}, $scope0_id, "ab", 1, 1, 1, 0, 1);
|
|
6171
|
-
_html(`</div><div${_attr_class(["
|
|
6171
|
+
_html(`</div><div${_attr_class(["_ck", "_co"])}><div${_attr_class(["_cp", { ["_cq"]: machineOpen }])}><button${_attr_class("_cr")} aria-expanded=${machineOpen ? "true" : "false"}>`);
|
|
6172
6172
|
_set_serialize_reason(1);
|
|
6173
6173
|
const $childScope12 = _peek_scope_id();
|
|
6174
6174
|
icon_chevron_right_default({
|
|
6175
6175
|
size: 12,
|
|
6176
|
-
class: ["
|
|
6176
|
+
class: ["_cv", { ["_cw"]: machineOpen }]
|
|
6177
6177
|
});
|
|
6178
|
-
_html(`<span${_attr_class("
|
|
6178
|
+
_html(`<span${_attr_class("_cs")}>Tools</span><span${_attr_class("_ct")}>${_escape(tools.filter((t) => t.installed).length)}${_el_resume($scope0_id, "ai")} installed <!>${missingCount ? `${_escape(`${_to_text(" · ")}`)}${_escape(`${_to_text(missingCount)}`)} missing` : ""}${_el_resume($scope0_id, "aj")}<!>${outdatedIds.length ? `${_escape(`${_to_text(" · ")}`)}${_escape(`${_to_text(outdatedIds.length)}`)} outdated` : ""}${_el_resume($scope0_id, "ak")}</span></button>${_el_resume($scope0_id, "ae")}`);
|
|
6179
6179
|
_if(() => {
|
|
6180
6180
|
if (outdatedIds.length > 1) {
|
|
6181
6181
|
const $scope23_id = _scope_id();
|
|
@@ -6208,7 +6208,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6208
6208
|
_if(() => {
|
|
6209
6209
|
if (setup && setup.mise.installed) {
|
|
6210
6210
|
const $scope25_id = _scope_id();
|
|
6211
|
-
_html(`<div${_attr_class(["
|
|
6211
|
+
_html(`<div${_attr_class(["_dD", { ["_dE"]: true }])}><label${_attr_class(["_Z", "_dF"])}>`);
|
|
6212
6212
|
_if(() => {
|
|
6213
6213
|
if (searching) {
|
|
6214
6214
|
const $scope108_id = _scope_id();
|
|
@@ -6228,14 +6228,14 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6228
6228
|
_html(`<input${_attr_input_value($scope25_id, "d", query, search)}${_attr_class([
|
|
6229
6229
|
"_X",
|
|
6230
6230
|
"_1",
|
|
6231
|
-
"
|
|
6232
|
-
])} type=text placeholder="Search the mise registry…" aria-label="Search the mise registry" autocomplete=off>${_el_resume($scope25_id, "d")}</label><button${_attr_class([iconBtnRow, "
|
|
6231
|
+
"_dG"
|
|
6232
|
+
])} type=text placeholder="Search the mise registry…" aria-label="Search the mise registry" autocomplete=off>${_el_resume($scope25_id, "d")}</label><button${_attr_class([iconBtnRow, "_dH"])} type=button${_attr("hidden", true)} title="Close search" aria-label="Close search">`);
|
|
6233
6233
|
icon_xmark_default({ size: 12 });
|
|
6234
|
-
_html(`</button>${_el_resume($scope25_id, "e")}<ul${_attr_class([pop$1, "
|
|
6234
|
+
_html(`</button>${_el_resume($scope25_id, "e")}<ul${_attr_class([pop$1, "_dJ"])}${_attr("hidden", true)}>`);
|
|
6235
6235
|
_if(() => {
|
|
6236
6236
|
if (searching && !hits?.length) {
|
|
6237
6237
|
const $scope110_id = _scope_id();
|
|
6238
|
-
_html(`<li${_attr_class("
|
|
6238
|
+
_html(`<li${_attr_class("_dK")}>Searching the mise registry…</li>`);
|
|
6239
6239
|
writeScope($scope110_id, {});
|
|
6240
6240
|
return 0;
|
|
6241
6241
|
}
|
|
@@ -6243,23 +6243,23 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6243
6243
|
_if(() => {
|
|
6244
6244
|
if (hits && !hits.length && !searching) {
|
|
6245
6245
|
const $scope44_id = _scope_id();
|
|
6246
|
-
_html(`<li${_attr_class("
|
|
6246
|
+
_html(`<li${_attr_class("_dK")}>No tools match "<!>${_escape(query)}${_el_resume($scope44_id, "b")}".</li>`);
|
|
6247
6247
|
_subscribe($query__closures, writeScope($scope44_id, {}));
|
|
6248
6248
|
return 0;
|
|
6249
6249
|
}
|
|
6250
6250
|
}, $scope25_id, "i", 1, 1, 1, 0, 1);
|
|
6251
6251
|
_for_of(hits || [], (h) => {
|
|
6252
6252
|
const $scope26_id = _scope_id();
|
|
6253
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
6253
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_bo")}><span${_attr_class(["_cQ", "_w"])}>${_escape(h.name)}${_el_resume($scope26_id, "d")}</span>`);
|
|
6254
6254
|
_if(() => {
|
|
6255
6255
|
if (active.has(h.name)) {
|
|
6256
6256
|
const $scope27_id = _scope_id();
|
|
6257
|
-
_html(`<span${_attr_class("
|
|
6257
|
+
_html(`<span${_attr_class("_cB")}><span${_attr_class("_E")}></span><!>${_escape(active.get(h.name) || "Starting…")}${_el_resume($scope27_id, "c")}</span>`);
|
|
6258
6258
|
_subscribe($active__closures, writeScope($scope27_id, { Cgt: 9 }));
|
|
6259
6259
|
return 0;
|
|
6260
6260
|
} else if (h.description) {
|
|
6261
6261
|
const $scope111_id = _scope_id();
|
|
6262
|
-
_html(`<span${_attr_class("
|
|
6262
|
+
_html(`<span${_attr_class("_br")}${_attr("title", h.description)}>${_escape(h.description)}${_el_resume($scope111_id, "b")}</span>${_el_resume($scope111_id, "a")}`);
|
|
6263
6263
|
writeScope($scope111_id, {});
|
|
6264
6264
|
return 1;
|
|
6265
6265
|
}
|
|
@@ -6304,11 +6304,11 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6304
6304
|
_if(() => {
|
|
6305
6305
|
if (machineOpen) {
|
|
6306
6306
|
const $scope6_id = _scope_id();
|
|
6307
|
-
_html(`<div${_attr_class("
|
|
6307
|
+
_html(`<div${_attr_class("_cu")}>`);
|
|
6308
6308
|
_if(() => {
|
|
6309
6309
|
if (setup && !setup.mise.installed) {
|
|
6310
6310
|
const $scope28_id = _scope_id();
|
|
6311
|
-
_html(`<p${_attr_class("
|
|
6311
|
+
_html(`<p${_attr_class("_bt")}>mise is not installed. It provides every tool below. <button${_attr_class(btnSm)}${_attr("disabled", active.has("mise"))}>${active.has("mise") ? "Installing…" : "Install mise"}${_el_resume($scope28_id, "c")}</button>${_el_resume($scope28_id, "b")}</p>`);
|
|
6312
6312
|
_script($scope28_id, "x70");
|
|
6313
6313
|
_subscribe($active__closures, writeScope($scope28_id, { Cgt: 10 }));
|
|
6314
6314
|
return 0;
|
|
@@ -6318,11 +6318,11 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6318
6318
|
_if(() => {
|
|
6319
6319
|
if (self) {
|
|
6320
6320
|
const $scope48_id = _scope_id();
|
|
6321
|
-
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["
|
|
6321
|
+
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["_cQ", "_w"])}>work</span>`);
|
|
6322
6322
|
_if(() => {
|
|
6323
6323
|
if (selfUpdating) {
|
|
6324
6324
|
const $scope113_id = _scope_id();
|
|
6325
|
-
_html(`<span${_attr_class("
|
|
6325
|
+
_html(`<span${_attr_class("_cB")}><span${_attr_class("_E")}></span>Updating — the app restarts and reloads when it is done…</span>`);
|
|
6326
6326
|
writeScope($scope113_id, {});
|
|
6327
6327
|
return 0;
|
|
6328
6328
|
} else {
|
|
@@ -6336,7 +6336,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6336
6336
|
return 0;
|
|
6337
6337
|
} else if (self.latest && self.latest !== self.version) {
|
|
6338
6338
|
const $scope50_id = _scope_id();
|
|
6339
|
-
_html(`<button${_attr_class([btnSm, "
|
|
6339
|
+
_html(`<button${_attr_class([btnSm, "_cS"])}${_attr("title", `Update work to v${self.latest} and restart`)}>`);
|
|
6340
6340
|
icon_arrow_up_default({ size: 12 });
|
|
6341
6341
|
_html(` <!>${_escape(self.latest)}${_el_resume($scope50_id, "c")}</button>${_el_resume($scope50_id, "a")}`);
|
|
6342
6342
|
_script($scope50_id, "x71");
|
|
@@ -6377,11 +6377,11 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6377
6377
|
const $for_content8__t_path__closures = /* @__PURE__ */ new Set();
|
|
6378
6378
|
const $for_content8__t_latest__closures = /* @__PURE__ */ new Set();
|
|
6379
6379
|
const $for_content8__t_id__closures = /* @__PURE__ */ new Set();
|
|
6380
|
-
_html(`<li${_attr_class([toolRow, { ["
|
|
6380
|
+
_html(`<li${_attr_class([toolRow, { ["_cP"]: !t.installed }])}><span${_attr_class(["_cQ", "_w"])}>${_escape(t.label)}${_el_resume($scope29_id, "c")}</span>`);
|
|
6381
6381
|
_if(() => {
|
|
6382
6382
|
if (active.has(t.id)) {
|
|
6383
6383
|
const $scope30_id = _scope_id();
|
|
6384
|
-
_html(`<span${_attr_class("
|
|
6384
|
+
_html(`<span${_attr_class("_cB")}><span${_attr_class("_E")}></span><!>${_escape(active.get(t.id) || "Starting…")}${_el_resume($scope30_id, "c")}</span>`);
|
|
6385
6385
|
_subscribe($active__closures, writeScope($scope30_id, { Cgt: 12 }));
|
|
6386
6386
|
return 0;
|
|
6387
6387
|
} else if (t.installed) {
|
|
@@ -6389,7 +6389,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6389
6389
|
_if(() => {
|
|
6390
6390
|
if (t.version) {
|
|
6391
6391
|
const $scope41_id = _scope_id();
|
|
6392
|
-
_html(`<button${_attr_class(["
|
|
6392
|
+
_html(`<button${_attr_class(["_cR", "_w"])}${_attr("title", `${t.path || t.label}. Pin a version`)}>v<!>${_escape(t.version)}${_el_resume($scope41_id, "b")}</button>${_el_resume($scope41_id, "a")}`);
|
|
6393
6393
|
_script($scope41_id, "x72");
|
|
6394
6394
|
_subscribe($for_content8__t_path__closures, _subscribe($for_content8__t_version__closures, _subscribe($for_content8__t_label__closures, writeScope($scope41_id, { Cu: 1 }))));
|
|
6395
6395
|
return 0;
|
|
@@ -6403,7 +6403,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6403
6403
|
_if(() => {
|
|
6404
6404
|
if (outdated(t)) {
|
|
6405
6405
|
const $scope60_id = _scope_id();
|
|
6406
|
-
_html(`<button${_attr_class([btnSm, "
|
|
6406
|
+
_html(`<button${_attr_class([btnSm, "_cS"])}${_attr("title", `Update to v${t.latest}`)}>`);
|
|
6407
6407
|
icon_arrow_up_default({ size: 12 });
|
|
6408
6408
|
_html(` <!>${_escape(t.latest)}${_el_resume($scope60_id, "c")}</button>${_el_resume($scope60_id, "a")}`);
|
|
6409
6409
|
_script($scope60_id, "x73");
|
|
@@ -6512,9 +6512,9 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6512
6512
|
label: "Dark"
|
|
6513
6513
|
}
|
|
6514
6514
|
];
|
|
6515
|
-
_html(`</div></div></section><section${_attr_class("
|
|
6515
|
+
_html(`</div></div></section><section${_attr_class("_bi")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_bj")}><h2${_attr("id", appearanceId)}${_attr_class("_bw")}>Appearance</h2></div><div${_attr_class(["_bn", "_c7"])}><label${_attr_class("_c8")}><span${_attr_class("_c9")}>Name</span><input${_attr_input_value($scope0_id, "aw", input$2.instance.name, _resume(function(v) {
|
|
6516
6516
|
setInstance({ name: v });
|
|
6517
|
-
}, "x4", $scope0_id))}${_attr_class(["_X", "
|
|
6517
|
+
}, "x4", $scope0_id))}${_attr_class(["_X", "_c_"])} type=text placeholder="Tab title" maxlength=32 autocomplete=off spellcheck=false>${_el_resume($scope0_id, "aw")}</label><div${_attr_class("_c8")}><span${_attr_class("_c9")}>Theme</span><span${_attr_class("_db")}><span${_attr_class(themeSeg)} role=radiogroup aria-label="Color theme">`);
|
|
6518
6518
|
_for_of(themeOpts, (opt) => {
|
|
6519
6519
|
const $scope51_id = _scope_id();
|
|
6520
6520
|
_html(`<button type=button${_attr_class(["_be", { ["_bd"]: themeMode === opt.id }])} role=radio aria-checked=${themeMode === opt.id ? "true" : "false"}>${_escape(opt.label)}</button>${_el_resume($scope51_id, "a")}`);
|
|
@@ -6524,25 +6524,25 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6524
6524
|
_: _scope_with_id($scope0_id)
|
|
6525
6525
|
});
|
|
6526
6526
|
}, "id", $scope0_id, "b0", 1, 0, 1, 0, 1);
|
|
6527
|
-
_html(`</span><span${_attr_class(["_m", "
|
|
6527
|
+
_html(`</span><span${_attr_class(["_m", "_dc"])}>`);
|
|
6528
6528
|
_attr_select_value($scope0_id, "b2", themeMode, _resume(function(v) {
|
|
6529
6529
|
setThemeMode(v);
|
|
6530
6530
|
}, "x5", $scope0_id), () => {
|
|
6531
|
-
_html(`<select${_attr_class(["_n", "
|
|
6531
|
+
_html(`<select${_attr_class(["_n", "_dd"])} aria-label="Color theme">`);
|
|
6532
6532
|
forOf(themeOpts, (opt) => {
|
|
6533
6533
|
_scope_id();
|
|
6534
6534
|
_html(`<option${_attr_option_value(opt.id)}>${_escape(opt.label)}</option>`);
|
|
6535
6535
|
});
|
|
6536
6536
|
_html("</select>");
|
|
6537
6537
|
});
|
|
6538
|
-
_html(`${_el_resume($scope0_id, "b2")}</span></span></div><div${_attr_class("
|
|
6539
|
-
"
|
|
6540
|
-
"
|
|
6541
|
-
{ ["
|
|
6538
|
+
_html(`${_el_resume($scope0_id, "b2")}</span></span></div><div${_attr_class("_c8")}><span${_attr_class("_c9")}>Accent</span><span${_attr_class(swatches)} role=radiogroup aria-label="Accent colour"><button type=button${_attr_class([
|
|
6539
|
+
"_dj",
|
|
6540
|
+
"_dl",
|
|
6541
|
+
{ ["_dk"]: !input$2.instance.accent }
|
|
6542
6542
|
])} role=radio aria-checked=${!input$2.instance.accent ? "true" : "false"} title="Default (blue)" aria-label="Default (blue)"></button>${_el_resume($scope0_id, "b6")}`);
|
|
6543
6543
|
_for_of(ACCENT_PRESETS, (p) => {
|
|
6544
6544
|
const $scope4_id = _scope_id();
|
|
6545
|
-
_html(`<button type=button${_attr_class(["
|
|
6545
|
+
_html(`<button type=button${_attr_class(["_dj", { ["_dk"]: input$2.instance.accent === p.value }])}${_attr_style(`--swatch:${p.value}`)} role=radio aria-checked=${input$2.instance.accent === p.value ? "true" : "false"}${_attr("title", p.name)}${_attr("aria-label", p.name)}></button>${_el_resume($scope4_id, "a")}`);
|
|
6546
6546
|
_script($scope4_id, "x77");
|
|
6547
6547
|
writeScope($scope4_id, {
|
|
6548
6548
|
d: p?.value,
|
|
@@ -6551,21 +6551,21 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6551
6551
|
}, "value", $scope0_id, "b7", $sg__input_instance_accent, 0, 1, 0, 1);
|
|
6552
6552
|
const customOn = !!input$2.instance.accent && !ACCENT_PRESETS.some((p) => p.value === input$2.instance.accent);
|
|
6553
6553
|
_html(`<label${_attr_class([
|
|
6554
|
-
"
|
|
6555
|
-
"
|
|
6556
|
-
{ ["
|
|
6554
|
+
"_dj",
|
|
6555
|
+
"_dm",
|
|
6556
|
+
{ ["_dk"]: customOn }
|
|
6557
6557
|
])}${customOn ? _attr_style(`--swatch:${input$2.instance.accent}`) : ""} title="Custom colour"><input${_attr_input_value($scope0_id, "b9", input$2.instance.accent || "#3556d8", _resume(function(v) {
|
|
6558
6558
|
setInstance({ accent: v });
|
|
6559
|
-
}, "x6", $scope0_id))}${_attr_class("
|
|
6559
|
+
}, "x6", $scope0_id))}${_attr_class("_dn")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "b9")}<span aria-hidden=true>+</span></label>${_el_resume($scope0_id, "b8", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("_bi")}${_attr("aria-labelledby", backupId)}><div${_attr_class("_bj")}><h2${_attr("id", backupId)}${_attr_class("_bw")}>Backup</h2></div><div${_attr_class(["_bn", "_cj"])}><div${_attr_class("_ck")}><div${_attr_class("_do")}><div${_attr_class("_bo")}>`);
|
|
6560
6560
|
_if(() => {
|
|
6561
6561
|
if (backupBusy === "preflight") {
|
|
6562
6562
|
const $scope65_id = _scope_id();
|
|
6563
|
-
_html(`<span${_attr_class("
|
|
6563
|
+
_html(`<span${_attr_class("_cB")}><span${_attr_class("_E")}></span><!>${_escape(backupLine || "Checking workspaces…")}${_el_resume($scope65_id, "c")}</span>`);
|
|
6564
6564
|
writeScope($scope65_id, {});
|
|
6565
6565
|
return 0;
|
|
6566
6566
|
} else {
|
|
6567
6567
|
const $scope124_id = _scope_id();
|
|
6568
|
-
_html(`<span${_attr_class("
|
|
6568
|
+
_html(`<span${_attr_class("_br")}>Save workspaces, settings, skills and tool pins to a file. Code stays on GitHub.</span>`);
|
|
6569
6569
|
writeScope($scope124_id, {});
|
|
6570
6570
|
return 1;
|
|
6571
6571
|
}
|
|
@@ -6583,7 +6583,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6583
6583
|
_if(() => {
|
|
6584
6584
|
if (preflight && !backupBusy) {
|
|
6585
6585
|
const $scope67_id = _scope_id();
|
|
6586
|
-
_html(`<div${_attr_class("
|
|
6586
|
+
_html(`<div${_attr_class("_dq")}><p${_attr_class("_dr")}>In the file: <!>${_escape(preflight.contents.workspaces)}${_el_resume($scope67_id, "c")} workspace<!>${preflight.contents.workspaces === 1 ? "" : "s"}${_el_resume($scope67_id, "d")}<!>${preflight.contents.archived ? `${_escape(`${_to_text(" ")}`)}(${_escape(`${_to_text(preflight.contents.archived)}`)} archived)` : ""}${_el_resume($scope67_id, "e")} , <!>${_escape(preflight.contents.tools)}${_el_resume($scope67_id, "f")} tool pin<!>${preflight.contents.tools === 1 ? "" : "s"}${_el_resume($scope67_id, "g")}, <!>${_escape(preflight.contents.skills)}${_el_resume($scope67_id, "h")} skill<!>${preflight.contents.skills === 1 ? "" : "s"}${_el_resume($scope67_id, "i")}, <!>${_escape(preflight.contents.agents)}${_el_resume($scope67_id, "j")} agent<!>${preflight.contents.agents === 1 ? "" : "s"}${_el_resume($scope67_id, "k")}.</p><p${_attr_class("_dr")}>Not in the file: `);
|
|
6587
6587
|
_if(() => {
|
|
6588
6588
|
if (preflight.unpushed) {
|
|
6589
6589
|
const $scope68_id = _scope_id();
|
|
@@ -6600,15 +6600,15 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6600
6600
|
return 0;
|
|
6601
6601
|
}
|
|
6602
6602
|
}, $scope67_id, "m");
|
|
6603
|
-
_html(`<!>${preflight.files ? `${_escape(`${_to_text(" ")}`)}${_escape(`${_to_text(preflight.files)}`)} uncommitted file${_escape(`${_to_text(preflight.files === 1 ? "" : "s")}`)}` : ""}${_el_resume($scope67_id, "n")} .</p><ul${_attr_class("
|
|
6603
|
+
_html(`<!>${preflight.files ? `${_escape(`${_to_text(" ")}`)}${_escape(`${_to_text(preflight.files)}`)} uncommitted file${_escape(`${_to_text(preflight.files === 1 ? "" : "s")}`)}` : ""}${_el_resume($scope67_id, "n")} .</p><ul${_attr_class("_ds")}>`);
|
|
6604
6604
|
_for_of(preflight.workspaces, (w) => {
|
|
6605
6605
|
const $scope126_id = _scope_id();
|
|
6606
6606
|
const $for_content18__w_name__closures = /* @__PURE__ */ new Set();
|
|
6607
|
-
_html(`<li${_attr_class("
|
|
6607
|
+
_html(`<li${_attr_class("_dt")}><span${_attr_class("_bp")}>${_escape(w.name)}${_el_resume($scope126_id, "c")}</span><ul${_attr_class("_ds")}>`);
|
|
6608
6608
|
_for_of(w.repos, (r) => {
|
|
6609
6609
|
const $scope127_id = _scope_id();
|
|
6610
6610
|
const $for_content19__r_more__closures = /* @__PURE__ */ new Set();
|
|
6611
|
-
_html(`<li${_attr_class("
|
|
6611
|
+
_html(`<li${_attr_class("_du")}><span${_attr_class("_dv")}><span${_attr_class("_w")}>${_escape(r.worktree)}${_el_resume($scope127_id, "d")}/</span>`);
|
|
6612
6612
|
_for_of(r.unpushed, (b) => {
|
|
6613
6613
|
const $scope128_id = _scope_id();
|
|
6614
6614
|
_html(`<span${_attr_class(["_L", tone.warn])}${_attr("title", `${b.branch}: ${b.count} commit${b.count === 1 ? "" : "s"} origin does not have`)}>${_escape(b.count)}${_el_resume($scope128_id, "b")} unpushed `);
|
|
@@ -6627,10 +6627,10 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6627
6627
|
_if(() => {
|
|
6628
6628
|
if (r.modified.length || r.untracked.length || r.ignored.length) {
|
|
6629
6629
|
const $scope129_id = _scope_id();
|
|
6630
|
-
_html(`<ul${_attr_class("
|
|
6630
|
+
_html(`<ul${_attr_class("_dw")}>`);
|
|
6631
6631
|
_for_of(r.modified, (f) => {
|
|
6632
6632
|
const $scope132_id = _scope_id();
|
|
6633
|
-
_html(`<li${_attr_class("
|
|
6633
|
+
_html(`<li${_attr_class("_dx")}><span${_attr_class([
|
|
6634
6634
|
"_L",
|
|
6635
6635
|
"_N",
|
|
6636
6636
|
tone.warn
|
|
@@ -6639,18 +6639,18 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6639
6639
|
}, (f) => f, $scope129_id, "b", 1, 1, 1, 0, 1);
|
|
6640
6640
|
_for_of(r.untracked, (f) => {
|
|
6641
6641
|
const $scope133_id = _scope_id();
|
|
6642
|
-
_html(`<li${_attr_class("
|
|
6642
|
+
_html(`<li${_attr_class("_dx")}><span${_attr_class(["_L", "_N"])} title=Untracked>?</span><span${_attr_class(["_w", "__"])}>${_escape(f)}${_el_resume($scope133_id, "d")}</span></li>`);
|
|
6643
6643
|
writeScope($scope133_id, {});
|
|
6644
6644
|
}, (f) => f, $scope129_id, "c", 1, 1, 1, 0, 1);
|
|
6645
6645
|
_for_of(r.ignored, (f) => {
|
|
6646
6646
|
const $scope134_id = _scope_id();
|
|
6647
|
-
_html(`<li${_attr_class("
|
|
6647
|
+
_html(`<li${_attr_class("_dx")}><span${_attr_class(["_L", "_N"])} title="Ignored by git — a restore cannot bring it back">ignored</span><span${_attr_class(["_w", "__"])}>${_escape(f)}${_el_resume($scope134_id, "d")}</span></li>`);
|
|
6648
6648
|
writeScope($scope134_id, {});
|
|
6649
6649
|
}, (f) => f, $scope129_id, "d", 1, 1, 1, 0, 1);
|
|
6650
6650
|
_if(() => {
|
|
6651
6651
|
if (r.more) {
|
|
6652
6652
|
const $scope130_id = _scope_id();
|
|
6653
|
-
_html(`<li${_attr_class(["
|
|
6653
|
+
_html(`<li${_attr_class(["_dx", "_v"])}>+<!>${_escape(r.more)}${_el_resume($scope130_id, "b")} more</li>`);
|
|
6654
6654
|
_subscribe($for_content19__r_more__closures, writeScope($scope130_id, {}));
|
|
6655
6655
|
return 0;
|
|
6656
6656
|
}
|
|
@@ -6675,27 +6675,27 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6675
6675
|
i: $for_content18__w_name__closures
|
|
6676
6676
|
});
|
|
6677
6677
|
}, "id", $scope67_id, "o", 1, 1, 1, "</ul>", 1);
|
|
6678
|
-
_html(`<div${_attr_class("
|
|
6678
|
+
_html(`<div${_attr_class("_dy")}><button${_attr_class([btnSm, { ["_p"]: !preflight.unpushed }])}>${preflight.unpushed ? "Export anyway" : "Export"}${_el_resume($scope67_id, "r")}</button>${_el_resume($scope67_id, "q")}<button${_attr_class(btnSm)}>Cancel</button>${_el_resume($scope67_id, "s")}</div></div>`);
|
|
6679
6679
|
_script($scope67_id, "x79");
|
|
6680
6680
|
writeScope($scope67_id, {});
|
|
6681
6681
|
return 0;
|
|
6682
6682
|
}
|
|
6683
6683
|
}, $scope0_id, "bi", 1, 1, 1, 0, 1);
|
|
6684
|
-
_html(`</div><div${_attr_class("
|
|
6684
|
+
_html(`</div><div${_attr_class("_ck")}><div${_attr_class("_do")}><div${_attr_class("_bo")}>`);
|
|
6685
6685
|
_if(() => {
|
|
6686
6686
|
if (backupBusy === "restore") {
|
|
6687
6687
|
const $scope66_id = _scope_id();
|
|
6688
|
-
_html(`<span${_attr_class("
|
|
6688
|
+
_html(`<span${_attr_class("_cB")}><span${_attr_class("_E")}></span><!>${_escape(backupLine || "Restoring…")}${_el_resume($scope66_id, "c")}</span>`);
|
|
6689
6689
|
writeScope($scope66_id, {});
|
|
6690
6690
|
return 0;
|
|
6691
6691
|
} else if (restoreDone) {
|
|
6692
6692
|
const $scope74_id = _scope_id();
|
|
6693
|
-
_html(`<span${_attr_class("
|
|
6693
|
+
_html(`<span${_attr_class("_br")}>${_escape(restoreDone)}${_el_resume($scope74_id, "b")}</span>`);
|
|
6694
6694
|
writeScope($scope74_id, {});
|
|
6695
6695
|
return 1;
|
|
6696
6696
|
} else {
|
|
6697
6697
|
const $scope135_id = _scope_id();
|
|
6698
|
-
_html(`<span${_attr_class("
|
|
6698
|
+
_html(`<span${_attr_class("_br")}>Load a backup file. Repos clone in the background.</span>`);
|
|
6699
6699
|
writeScope($scope135_id, {});
|
|
6700
6700
|
return 2;
|
|
6701
6701
|
}
|
|
@@ -6703,7 +6703,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6703
6703
|
_if(() => {
|
|
6704
6704
|
if (!restorePreview && backupBusy !== "restore") {
|
|
6705
6705
|
const $scope76_id = _scope_id();
|
|
6706
|
-
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("
|
|
6706
|
+
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("_dp")} type=file accept=application/json,.json aria-label="Backup file">${_el_resume($scope76_id, "b")}</label>`);
|
|
6707
6707
|
_script($scope76_id, "x80");
|
|
6708
6708
|
writeScope($scope76_id, {});
|
|
6709
6709
|
return 0;
|
|
@@ -6714,14 +6714,14 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6714
6714
|
if (restorePreview && backupBusy !== "restore") {
|
|
6715
6715
|
const $scope69_id = _scope_id();
|
|
6716
6716
|
const { preview } = restorePreview;
|
|
6717
|
-
_html(`<div${_attr_class("
|
|
6717
|
+
_html(`<div${_attr_class("_dq")}><p${_attr_class("_dr")}>From <!>${_escape(preview.from.host)}${_el_resume($scope69_id, "c")} on <!>${_escape(new Date(preview.from.exportedAt).toLocaleDateString())}${_el_resume($scope69_id, "d")}<!>${preview.from.version ? ` (work ${_escape(`${preview.from.version}`)})` : ""}${_el_resume($scope69_id, "e")}.</p>`);
|
|
6718
6718
|
_if(() => {
|
|
6719
6719
|
if (preview.workspaces.length) {
|
|
6720
6720
|
const $scope70_id = _scope_id();
|
|
6721
6721
|
_html(`<ul${_attr_class(checkList)}>`);
|
|
6722
6722
|
_for_of(preview.workspaces, (w) => {
|
|
6723
6723
|
const $scope71_id = _scope_id();
|
|
6724
|
-
_html(`<li><label${_attr_class(["
|
|
6724
|
+
_html(`<li><label${_attr_class(["_dA", { ["_dC"]: w.exists || !!w.unknownHost }])}><input${_attr_input_checked($scope71_id, "b", restoreWs.has(w.id))}${_attr_class("_dB")} type=checkbox${_attr("disabled", w.exists || !!w.unknownHost)}>${_el_resume($scope71_id, "b")}<span${_attr_class("_bo")}><span${_attr_class("_bq")}><span${_attr_class("_bp")}>${_escape(w.name)}${_el_resume($scope71_id, "f")}</span>`);
|
|
6725
6725
|
_if(() => {
|
|
6726
6726
|
if (w.status === "archived") {
|
|
6727
6727
|
const $scope139_id = _scope_id();
|
|
@@ -6743,7 +6743,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6743
6743
|
return 1;
|
|
6744
6744
|
}
|
|
6745
6745
|
}, $scope71_id, "h", 1, 1, 1, 0, 1);
|
|
6746
|
-
_html(`</span><span${_attr_class("
|
|
6746
|
+
_html(`</span><span${_attr_class("_br")}>${_escape(w.repos.join(", ") || "no repos")}${_el_resume($scope71_id, "j")}</span></span></label>${_el_resume($scope71_id, "a")}</li>`);
|
|
6747
6747
|
_script($scope71_id, "x81");
|
|
6748
6748
|
_subscribe($restoreWs__closures, writeScope($scope71_id, {
|
|
6749
6749
|
n: w?.unknownHost,
|
|
@@ -6754,7 +6754,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6754
6754
|
return 0;
|
|
6755
6755
|
} else {
|
|
6756
6756
|
const $scope137_id = _scope_id();
|
|
6757
|
-
_html(`<p${_attr_class("
|
|
6757
|
+
_html(`<p${_attr_class("_bt")}>No workspaces in this file.</p>`);
|
|
6758
6758
|
writeScope($scope137_id, {});
|
|
6759
6759
|
return 1;
|
|
6760
6760
|
}
|
|
@@ -6794,7 +6794,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6794
6794
|
_if(() => {
|
|
6795
6795
|
if (p.total) {
|
|
6796
6796
|
const $scope73_id = _scope_id();
|
|
6797
|
-
_html(`<li><label${_attr_class(["
|
|
6797
|
+
_html(`<li><label${_attr_class(["_dA", { ["_dC"]: !p.missing.length && p.key !== "settings" }])}><input${_attr_input_checked($scope73_id, "b", restoreParts[p.key])}${_attr_class("_dB")} type=checkbox${_attr("disabled", !p.missing.length && p.key !== "settings")}>${_el_resume($scope73_id, "b")}<span${_attr_class("_bo")}><span${_attr_class("_bp")}>${_escape(p.label)}${_el_resume($scope73_id, "e")}</span><span${_attr_class("_br")}>`);
|
|
6798
6798
|
_if(() => {
|
|
6799
6799
|
if (p.key === "settings") {
|
|
6800
6800
|
const $scope136_id = _scope_id();
|
|
@@ -6841,7 +6841,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6841
6841
|
i: $for_content11__p_total__closures
|
|
6842
6842
|
});
|
|
6843
6843
|
}, "key", $scope69_id, "h");
|
|
6844
|
-
_html(`</ul><div${_attr_class("
|
|
6844
|
+
_html(`</ul><div${_attr_class("_dy")}><button${_attr_class([btnSm, "_p"])}${_attr("disabled", !restoreWs.size && !Object.values(restoreParts).some(Boolean))}>Restore</button>${_el_resume($scope69_id, "j")}<button${_attr_class(btnSm)}>Cancel</button>${_el_resume($scope69_id, "k")}</div></div>`);
|
|
6845
6845
|
_script($scope69_id, "x83");
|
|
6846
6846
|
writeScope($scope69_id, {});
|
|
6847
6847
|
return 0;
|
|
@@ -7027,11 +7027,11 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
7027
7027
|
});
|
|
7028
7028
|
//#endregion
|
|
7029
7029
|
//#region src/tags/new-workspace.css.ts
|
|
7030
|
-
var content$1 = "_bU
|
|
7030
|
+
var content$1 = "_bU _bN";
|
|
7031
7031
|
var curBase = "_b2 _W _V";
|
|
7032
|
-
var archived = "_b7
|
|
7032
|
+
var archived = "_b7 _bi";
|
|
7033
7033
|
var archivedHint = "_b8 _V";
|
|
7034
|
-
var archivedCard = "_b9
|
|
7034
|
+
var archivedCard = "_b9 _bn";
|
|
7035
7035
|
//#endregion
|
|
7036
7036
|
//#region src/tags/icons/icon-group.marko
|
|
7037
7037
|
var icon_group_default = _template("eb", (input) => {
|
|
@@ -7066,8 +7066,8 @@ var icon_branch_default = _template("R", (input) => {
|
|
|
7066
7066
|
});
|
|
7067
7067
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
7068
7068
|
});
|
|
7069
|
-
var resultRow = "
|
|
7070
|
-
var resultBranch = "
|
|
7069
|
+
var resultRow = "_d0 _G";
|
|
7070
|
+
var resultBranch = "_d2 _2 _j";
|
|
7071
7071
|
//#endregion
|
|
7072
7072
|
//#region src/tags/branch-pick.marko
|
|
7073
7073
|
var branch_pick_default = _template("d", (input) => {
|
|
@@ -7080,11 +7080,11 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
7080
7080
|
let branchFilter = "";
|
|
7081
7081
|
let reloadTick = 0;
|
|
7082
7082
|
let refreshing = false;
|
|
7083
|
-
_html(`<div${_attr_class("
|
|
7083
|
+
_html(`<div${_attr_class("_d4")}>`);
|
|
7084
7084
|
_if(() => {
|
|
7085
7085
|
{
|
|
7086
7086
|
const $scope4_id = _scope_id();
|
|
7087
|
-
_html(`<p${_attr_class("
|
|
7087
|
+
_html(`<p${_attr_class("_bt")}><span${_attr_class("_E")}></span> Loading branches…</p>`);
|
|
7088
7088
|
writeScope($scope4_id, {});
|
|
7089
7089
|
return 0;
|
|
7090
7090
|
}
|
|
@@ -7186,18 +7186,18 @@ var repo_picker_default = _template("v", (input$1) => {
|
|
|
7186
7186
|
_resume_branch($scope8_id);
|
|
7187
7187
|
}, $scope0_id) };
|
|
7188
7188
|
const hasBody = !!(pasted || results.length || filter && (!catalog || !pasted) || compact && ssoPending.length);
|
|
7189
|
-
_html(`<div${_attr_class([compact ? "
|
|
7189
|
+
_html(`<div${_attr_class([compact ? "_dD" : "_dU", { ["_dE"]: compact && !input$1.open }])}>`);
|
|
7190
7190
|
_if(() => {
|
|
7191
7191
|
if (!compact && ssoPending.length) {
|
|
7192
7192
|
const $scope10_id = _scope_id();
|
|
7193
|
-
_html(`<div${_attr_class("
|
|
7193
|
+
_html(`<div${_attr_class("_dV")}>`);
|
|
7194
7194
|
ssoBlock.content({});
|
|
7195
7195
|
_html("</div>");
|
|
7196
7196
|
writeScope($scope10_id, {});
|
|
7197
7197
|
return 0;
|
|
7198
7198
|
}
|
|
7199
7199
|
}, $scope0_id, "b", 1, 1, 1, 0, 1);
|
|
7200
|
-
_html(`<label${_attr_class(["_Z", compact && "
|
|
7200
|
+
_html(`<label${_attr_class(["_Z", compact && "_dF"])}>`);
|
|
7201
7201
|
icon_search_default({
|
|
7202
7202
|
size: 14,
|
|
7203
7203
|
class: "_0"
|
|
@@ -7209,12 +7209,12 @@ var repo_picker_default = _template("v", (input$1) => {
|
|
|
7209
7209
|
}, "v0", $scope0_id))}${_attr_class([
|
|
7210
7210
|
compact ? "_X" : inputLg,
|
|
7211
7211
|
"_1",
|
|
7212
|
-
compact && "
|
|
7212
|
+
compact && "_dG"
|
|
7213
7213
|
])} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input$1.disabled)}>${_el_resume($scope0_id, "e")}</label>${_el_resume($scope0_id, "c", $sg__input_compact)}`);
|
|
7214
7214
|
_if(() => {
|
|
7215
7215
|
if (compact) {
|
|
7216
7216
|
const $scope1_id = _scope_id();
|
|
7217
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
7217
|
+
_html(`<button${_attr_class([iconBtnRow, "_dH"])} type=button title="Close search" aria-label="Close search"${_attr("hidden", !input$1.open)}>`);
|
|
7218
7218
|
icon_xmark_default({ size: 12 });
|
|
7219
7219
|
_html(`</button>${_el_resume($scope1_id, "a")}`);
|
|
7220
7220
|
_script($scope1_id, "v14");
|
|
@@ -7222,11 +7222,11 @@ var repo_picker_default = _template("v", (input$1) => {
|
|
|
7222
7222
|
return 0;
|
|
7223
7223
|
}
|
|
7224
7224
|
}, $scope0_id, "f", $sg__input_compact__OR__input_open, $sg__input_compact, 1, 0, 1);
|
|
7225
|
-
_html(`<div${_attr_class([compact ? pop$1 : "
|
|
7225
|
+
_html(`<div${_attr_class([compact ? pop$1 : "_dW"])}${_attr("hidden", !hasBody || compact && !input$1.open)}>`);
|
|
7226
7226
|
_if(() => {
|
|
7227
7227
|
if (compact && ssoPending.length) {
|
|
7228
7228
|
const $scope11_id = _scope_id();
|
|
7229
|
-
_html(`<div${_attr_class("
|
|
7229
|
+
_html(`<div${_attr_class("_dV")}>`);
|
|
7230
7230
|
ssoBlock.content({});
|
|
7231
7231
|
_html("</div>");
|
|
7232
7232
|
writeScope($scope11_id, {});
|
|
@@ -7236,16 +7236,16 @@ var repo_picker_default = _template("v", (input$1) => {
|
|
|
7236
7236
|
_if(() => {
|
|
7237
7237
|
if (pasted) {
|
|
7238
7238
|
const $scope2_id = _scope_id();
|
|
7239
|
-
_html(`<ul${_attr_class("
|
|
7239
|
+
_html(`<ul${_attr_class("_dX")}><li><div${_attr_class(["_dZ", "_dY"])}><button${_attr_class(resultRow)}${pasteWillFork ? _attr("title", `Fork ${pasted} to your account and add the fork`) : _attr("title", `Add ${pasted} as-is (pushes go to that repo)`)}>`);
|
|
7240
7240
|
icon_plus_default({
|
|
7241
7241
|
size: 12,
|
|
7242
|
-
class: "
|
|
7242
|
+
class: "_d6"
|
|
7243
7243
|
});
|
|
7244
|
-
_html(`<span${_attr_class("
|
|
7244
|
+
_html(`<span${_attr_class("_d7")}>${_escape(repoLabel(pasted))}${_el_resume($scope2_id, "f")}</span></button>${_el_resume($scope2_id, "c")}`);
|
|
7245
7245
|
_if(() => {
|
|
7246
7246
|
if (pastedForkable) {
|
|
7247
7247
|
const $scope9_id = _scope_id();
|
|
7248
|
-
_html(`<button${_attr_class(["
|
|
7248
|
+
_html(`<button${_attr_class(["_d3", { ["_d1"]: pasteWillFork }])}${pasteWillFork ? " title=\"Will fork to your account; click to clone as-is instead\"" : _attr("title", `Fork ${pasted} to your account and clone the fork`)} aria-pressed=${pasteWillFork ? "true" : "false"}>`);
|
|
7249
7249
|
_if(() => {
|
|
7250
7250
|
if (pasteWillFork) {
|
|
7251
7251
|
const $scope13_id = _scope_id();
|
|
@@ -7265,7 +7265,7 @@ var repo_picker_default = _template("v", (input$1) => {
|
|
|
7265
7265
|
return 0;
|
|
7266
7266
|
}
|
|
7267
7267
|
}, $scope2_id, "g", 1, 1, 1, 0, 1);
|
|
7268
|
-
_html(`<button${_attr_class([resultBranch, { ["
|
|
7268
|
+
_html(`<button${_attr_class([resultBranch, { ["_d1"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>`);
|
|
7269
7269
|
icon_branch_default({ size: 12 });
|
|
7270
7270
|
_html(`</button>${_el_resume($scope2_id, "h")}</div>`);
|
|
7271
7271
|
_if(() => {
|
|
@@ -7292,7 +7292,7 @@ var repo_picker_default = _template("v", (input$1) => {
|
|
|
7292
7292
|
return 0;
|
|
7293
7293
|
} else if (filter && !catalog) {
|
|
7294
7294
|
const $scope12_id = _scope_id();
|
|
7295
|
-
_html(`<p${_attr_class("
|
|
7295
|
+
_html(`<p${_attr_class("_bt")}>Loading repos…</p>`);
|
|
7296
7296
|
writeScope($scope12_id, {});
|
|
7297
7297
|
return 1;
|
|
7298
7298
|
}
|
|
@@ -7300,15 +7300,15 @@ var repo_picker_default = _template("v", (input$1) => {
|
|
|
7300
7300
|
_if(() => {
|
|
7301
7301
|
if (results.length) {
|
|
7302
7302
|
const $scope4_id = _scope_id();
|
|
7303
|
-
_html(`<ul${_attr_class("
|
|
7303
|
+
_html(`<ul${_attr_class("_dX")}>`);
|
|
7304
7304
|
_for_of(results, (repo, i) => {
|
|
7305
7305
|
const $scope5_id = _scope_id();
|
|
7306
|
-
_html(`<li><div${_attr_class(["
|
|
7306
|
+
_html(`<li><div${_attr_class(["_dZ", { ["_dY"]: i === highlight }])}><button${_attr_class(resultRow)}>`);
|
|
7307
7307
|
icon_plus_default({
|
|
7308
7308
|
size: 12,
|
|
7309
|
-
class: "
|
|
7309
|
+
class: "_d6"
|
|
7310
7310
|
});
|
|
7311
|
-
_html(`<span${_attr_class("
|
|
7311
|
+
_html(`<span${_attr_class("_d7")}>${_escape(repoLabel(repo.nameWithOwner))}${_el_resume($scope5_id, "e")}</span></button>${_el_resume($scope5_id, "b")}<button${_attr_class([resultBranch, { ["_d1"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>`);
|
|
7312
7312
|
icon_branch_default({ size: 12 });
|
|
7313
7313
|
_html(`</button>${_el_resume($scope5_id, "f")}</div>${_el_resume($scope5_id, "a")}`);
|
|
7314
7314
|
_if(() => {
|
|
@@ -7343,7 +7343,7 @@ var repo_picker_default = _template("v", (input$1) => {
|
|
|
7343
7343
|
return 0;
|
|
7344
7344
|
} else if (filter && catalog && !pasted) {
|
|
7345
7345
|
const $scope7_id = _scope_id();
|
|
7346
|
-
_html(`<p${_attr_class("
|
|
7346
|
+
_html(`<p${_attr_class("_bt")}>No repos match "<!>${_escape(filter)}${_el_resume($scope7_id, "b")}". Paste a clone URL to add any repo.</p>`);
|
|
7347
7347
|
writeScope($scope7_id, {});
|
|
7348
7348
|
return 1;
|
|
7349
7349
|
}
|
|
@@ -7508,8 +7508,8 @@ function parseInvite(text) {
|
|
|
7508
7508
|
}
|
|
7509
7509
|
//#endregion
|
|
7510
7510
|
//#region src/tags/join-dialog.css.ts
|
|
7511
|
-
var dlg = "
|
|
7512
|
-
var hint = "
|
|
7511
|
+
var dlg = "_eg _ec";
|
|
7512
|
+
var hint = "_eh _V";
|
|
7513
7513
|
//#endregion
|
|
7514
7514
|
//#region src/tags/join-dialog.marko
|
|
7515
7515
|
var api$4;
|
|
@@ -7642,26 +7642,26 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
7642
7642
|
content: _content("o12", () => {
|
|
7643
7643
|
_scope_reason();
|
|
7644
7644
|
const $scope1_id = _scope_id();
|
|
7645
|
-
_html(`<h2${_attr_class("
|
|
7645
|
+
_html(`<h2${_attr_class("_ed")}${_attr("id", titleId)}>Join a workspace</h2><p${_attr_class(hint)}>Paste an invite: the same repos, on your own lane of their branch.</p><textarea${_attr_class([
|
|
7646
7646
|
"_X",
|
|
7647
7647
|
"_w",
|
|
7648
|
-
"
|
|
7648
|
+
"_ej"
|
|
7649
7649
|
])} placeholder="{ "name": …, "branch": …, "repos": ["owner/name", …] }" aria-label="Workspace invite" rows=6 autocomplete=off spellcheck=false${_attr("disabled", busy)} autofocus>${_attr_textarea_value($scope1_id, "c", invite, setInvite)}</textarea>${_el_resume($scope1_id, "c")}`);
|
|
7650
7650
|
_if(() => {
|
|
7651
7651
|
if (parsed.error) {
|
|
7652
7652
|
const $scope8_id = _scope_id();
|
|
7653
|
-
_html(`<p${_attr_class([hint, "
|
|
7653
|
+
_html(`<p${_attr_class([hint, "_ei"])}>${_escape(parsed.error)}${_el_resume($scope8_id, "b")}</p>`);
|
|
7654
7654
|
_subscribe($parsed_error__closures, writeScope($scope8_id, { Cae: 1 }));
|
|
7655
7655
|
return 0;
|
|
7656
7656
|
} else if (parsed.ok) {
|
|
7657
7657
|
const $scope3_id = _scope_id();
|
|
7658
|
-
_html(`<ul${_attr_class("
|
|
7658
|
+
_html(`<ul${_attr_class("_ek")}>`);
|
|
7659
7659
|
_for_of(parsed.ok.repos, (fullName) => {
|
|
7660
7660
|
const $scope9_id = _scope_id();
|
|
7661
|
-
_html(`<li${_attr_class("
|
|
7661
|
+
_html(`<li${_attr_class("_el")}><span${_attr_class("_em")}>${_escape(repoLabel(fullName))}${_el_resume($scope9_id, "c")}</span></li>`);
|
|
7662
7662
|
writeScope($scope9_id, {});
|
|
7663
7663
|
}, (r) => r, $scope3_id, "a", 1, 1, 1, "</ul>", 1);
|
|
7664
|
-
_html(`<p${_attr_class(hint)}>Your own lane of <span${_attr_class("_w")}>${_escape(parsed.ok.branch)}${_el_resume($scope3_id, "d")}</span> in each; PRs target theirs.</p><label${_attr_class("
|
|
7664
|
+
_html(`<p${_attr_class(hint)}>Your own lane of <span${_attr_class("_w")}>${_escape(parsed.ok.branch)}${_el_resume($scope3_id, "d")}</span> in each; PRs target theirs.</p><label${_attr_class("_en")}><span${_attr_class("_bw")}>Name</span><input${_attr_input_value($scope3_id, "g", name, _resume((_new_name) => {
|
|
7665
7665
|
name = _new_name;
|
|
7666
7666
|
}, "o1", $scope3_id))}${_attr_class("_X")}${_attr("placeholder", parsed.ok.name)}${_attr("disabled", busy)}>${_el_resume($scope3_id, "g")}</label>`);
|
|
7667
7667
|
_script($scope3_id, "o8");
|
|
@@ -7698,10 +7698,10 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
7698
7698
|
_if(() => {
|
|
7699
7699
|
if (busy && steps$2.length) {
|
|
7700
7700
|
const $scope6_id = _scope_id();
|
|
7701
|
-
_html(`<ul${_attr_class("
|
|
7701
|
+
_html(`<ul${_attr_class("_eo")}>`);
|
|
7702
7702
|
_for_of(steps$2, (step$2, i) => {
|
|
7703
7703
|
const $scope7_id = _scope_id();
|
|
7704
|
-
_html(`<li${_attr_class(["
|
|
7704
|
+
_html(`<li${_attr_class(["_eq", { ["_ep"]: i === steps$2.length - 1 }])}>`);
|
|
7705
7705
|
_if(() => {
|
|
7706
7706
|
if (i === steps$2.length - 1) {
|
|
7707
7707
|
const $scope10_id = _scope_id();
|
|
@@ -7710,7 +7710,7 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
7710
7710
|
return 0;
|
|
7711
7711
|
} else {
|
|
7712
7712
|
const $scope11_id = _scope_id();
|
|
7713
|
-
_html(`<span${_attr_class("
|
|
7713
|
+
_html(`<span${_attr_class("_er")}>`);
|
|
7714
7714
|
icon_check_default({ size: 14 });
|
|
7715
7715
|
_html("</span>");
|
|
7716
7716
|
writeScope($scope11_id, {});
|
|
@@ -7865,7 +7865,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
7865
7865
|
}
|
|
7866
7866
|
}, "s6", $scope0_id);
|
|
7867
7867
|
const titleId = _id();
|
|
7868
|
-
_html(`<div${_attr_class("
|
|
7868
|
+
_html(`<div${_attr_class("_bL")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bM")}><div${_attr_class(content$1)}>`);
|
|
7869
7869
|
_set_serialize_reason({
|
|
7870
7870
|
0: _serialize_guard($scope0_reason, 2),
|
|
7871
7871
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -7914,9 +7914,9 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
7914
7914
|
return 0;
|
|
7915
7915
|
}
|
|
7916
7916
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
7917
|
-
_html(`<label${_attr_class("_bX")}><span${_attr_class("
|
|
7917
|
+
_html(`<label${_attr_class("_bX")}><span${_attr_class("_bw")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
|
|
7918
7918
|
name = _new_name;
|
|
7919
|
-
}, "s0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class("
|
|
7919
|
+
}, "s0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class("_bi")}><div${_attr_class("_bY")}><h2${_attr_class("_bw")}>Repos</h2><button${_attr_class(iconBtnRow)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
7920
7920
|
_set_serialize_reason(1);
|
|
7921
7921
|
const $childScope2 = _peek_scope_id();
|
|
7922
7922
|
icon_refresh_default({
|
|
@@ -7989,7 +7989,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
7989
7989
|
_if(() => {
|
|
7990
7990
|
if (!selected.length) {
|
|
7991
7991
|
const $scope16_id = _scope_id();
|
|
7992
|
-
_html(`<li${_attr_class("
|
|
7992
|
+
_html(`<li${_attr_class("_bt")}>No repos yet. Search below to add one, or create it empty.</li>`);
|
|
7993
7993
|
writeScope($scope16_id, {});
|
|
7994
7994
|
return 0;
|
|
7995
7995
|
}
|
|
@@ -8058,10 +8058,10 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
8058
8058
|
_if(() => {
|
|
8059
8059
|
if (archived$1.length) {
|
|
8060
8060
|
const $scope6_id = _scope_id();
|
|
8061
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("_bY")}><h2${_attr_class("
|
|
8061
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_bY")}><h2${_attr_class("_bw")}>Archived</h2><span${_attr_class(sectionCount)}>${_escape(archived$1.length)}${_el_resume($scope6_id, "e", $sg__input_workspaces)}</span></div><p${_attr_class(archivedHint)}>Restore an archived workspace instead of creating a new one.</p><ul${_attr_class("_bl")}>`);
|
|
8062
8062
|
_for_of(archived$1, (ws) => {
|
|
8063
8063
|
const $scope7_id = _scope_id();
|
|
8064
|
-
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("
|
|
8064
|
+
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("_bo")}><span${_attr_class("_bp")}>${_escape(ws.name)}${_el_resume($scope7_id, "d", $sg__input_workspaces)}</span><span${_attr_class([metaTrunc, "_w"])}${_attr("title", ws.display_path || ws.path)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope7_id, "f", $sg__input_workspaces)}</span>${_el_resume($scope7_id, "e", $sg__input_workspaces)}</div><button type=button${_attr_class(btnLg)}${_attr("disabled", busy || !!restoring)}>`);
|
|
8065
8065
|
_if(() => {
|
|
8066
8066
|
if (restoring === ws.id) {
|
|
8067
8067
|
const $scope19_id = _scope_id();
|
|
@@ -8185,9 +8185,9 @@ function vapidKey(base64) {
|
|
|
8185
8185
|
const raw = atob(padded.replace(/-/g, "+").replace(/_/g, "/"));
|
|
8186
8186
|
return Uint8Array.from(raw, (c) => c.charCodeAt(0));
|
|
8187
8187
|
}
|
|
8188
|
-
var iconBtn = "
|
|
8189
|
-
var settingsDot = "
|
|
8190
|
-
var navToggle = "
|
|
8188
|
+
var iconBtn = "_fb _j";
|
|
8189
|
+
var settingsDot = "_fc _ba";
|
|
8190
|
+
var navToggle = "_fg _j";
|
|
8191
8191
|
_template("Q", (input) => {
|
|
8192
8192
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
8193
8193
|
const $scope0_id = _scope_id();
|
|
@@ -8230,12 +8230,12 @@ var ARM_MS = 3500;
|
|
|
8230
8230
|
function disarmLater(fn) {
|
|
8231
8231
|
return setTimeout(fn, ARM_MS);
|
|
8232
8232
|
}
|
|
8233
|
-
var railBtn = "
|
|
8234
|
-
var wsBtn = "
|
|
8235
|
-
var rowIcon = "
|
|
8236
|
-
var close = "
|
|
8237
|
-
var sessRename$1 = "
|
|
8238
|
-
var sessBtn$1 = "
|
|
8233
|
+
var railBtn = "_h1 _j";
|
|
8234
|
+
var wsBtn = "_h6 _G";
|
|
8235
|
+
var rowIcon = "_h9 _2 _j";
|
|
8236
|
+
var close = "_h_ _5 _j _6";
|
|
8237
|
+
var sessRename$1 = "_il _H";
|
|
8238
|
+
var sessBtn$1 = "_in _G";
|
|
8239
8239
|
//#endregion
|
|
8240
8240
|
//#region src/styles/session-pop.css.ts
|
|
8241
8241
|
var sessionPop = "_hq _8";
|
|
@@ -8306,22 +8306,22 @@ var usage_pcts_default = _template("H", (input) => {
|
|
|
8306
8306
|
if (windows.length) {
|
|
8307
8307
|
const $scope1_id = _scope_id();
|
|
8308
8308
|
_html(`<span${_attr_class([
|
|
8309
|
-
"
|
|
8309
|
+
"_g4",
|
|
8310
8310
|
input.class,
|
|
8311
|
-
{ ["
|
|
8311
|
+
{ ["_g5"]: agent.stale_seconds != null }
|
|
8312
8312
|
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
8313
8313
|
_for_of(windows, (win$1, i) => {
|
|
8314
8314
|
const $scope2_id = _scope_id();
|
|
8315
|
-
_html(`<span${_attr_class("
|
|
8315
|
+
_html(`<span${_attr_class("_g6")}>`);
|
|
8316
8316
|
_if(() => {
|
|
8317
8317
|
if (i) {
|
|
8318
8318
|
const $scope3_id = _scope_id();
|
|
8319
|
-
_html(`<span${_attr_class("
|
|
8319
|
+
_html(`<span${_attr_class("_g9")} aria-hidden=true>·</span>`);
|
|
8320
8320
|
$si__input_agent && writeScope($scope3_id, {});
|
|
8321
8321
|
return 0;
|
|
8322
8322
|
}
|
|
8323
8323
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
8324
|
-
_html(`<span${_attr_class("
|
|
8324
|
+
_html(`<span${_attr_class("_g7")}>${_escape(win$1.window)}${_el_resume($scope2_id, "d", $sg__input_agent)}</span><span${_attr_class(["_g8", win$1.used_percent >= 90 ? "_e7" : win$1.used_percent >= 70 ? "_e6" : win$1.used_percent >= 40 ? "_e5" : "_e4"])}>${_escape(pctText(win$1.used_percent))}${_el_resume($scope2_id, "f", $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
8325
8325
|
$si__input_agent && writeScope($scope2_id, {});
|
|
8326
8326
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
8327
8327
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -8586,7 +8586,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8586
8586
|
_if(() => {
|
|
8587
8587
|
if (input.rail) {
|
|
8588
8588
|
const $scope2_id = _scope_id();
|
|
8589
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
8589
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_hZ"]: input.current }])}${ws$1.pending ? _attr("title", `${ws$1.name} — restoring`) : _attr("title", ws$1.name)}>${input.index === void 0 ? "·" : _escape(input.index + 1)}${_el_resume($scope2_id, "b", _serialize_guard($scope0_reason, 26))}<span${_attr_class([
|
|
8590
8590
|
"_y",
|
|
8591
8591
|
phase[dot],
|
|
8592
8592
|
"_ba"
|
|
@@ -8596,30 +8596,30 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8596
8596
|
} else if (ws$1.pending) {
|
|
8597
8597
|
const $scope3_id = _scope_id();
|
|
8598
8598
|
_html(`<section${_attr_class([
|
|
8599
|
-
"
|
|
8600
|
-
"
|
|
8599
|
+
"_h3",
|
|
8600
|
+
"_ip",
|
|
8601
8601
|
{
|
|
8602
|
-
["
|
|
8603
|
-
["
|
|
8602
|
+
["_h4"]: input.railPop,
|
|
8603
|
+
["_h2"]: input.page
|
|
8604
8604
|
}
|
|
8605
|
-
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("
|
|
8605
|
+
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("_h5")}><div${_attr_class(wsBtn)}>`);
|
|
8606
8606
|
_if(() => {
|
|
8607
8607
|
if (ws$1.pending_error) {
|
|
8608
8608
|
const $scope15_id = _scope_id();
|
|
8609
8609
|
icon_warning_default({
|
|
8610
8610
|
size: 12,
|
|
8611
|
-
class: "
|
|
8611
|
+
class: "_ir"
|
|
8612
8612
|
});
|
|
8613
8613
|
$si__input_workspaces__OR__input_workspaceId && writeScope($scope15_id, {});
|
|
8614
8614
|
return 0;
|
|
8615
8615
|
} else {
|
|
8616
8616
|
const $scope16_id = _scope_id();
|
|
8617
|
-
_html(`<span${_attr_class(["_E", "
|
|
8617
|
+
_html(`<span${_attr_class(["_E", "_iq"])}></span>`);
|
|
8618
8618
|
$si__input_workspaces__OR__input_workspaceId && writeScope($scope16_id, {});
|
|
8619
8619
|
return 1;
|
|
8620
8620
|
}
|
|
8621
8621
|
}, $scope3_id, "d", $sg__input_workspaces__OR__input_workspaceId, $sg__input_workspaces__OR__input_workspaceId, $sg__input_workspaces__OR__input_workspaceId, 0, 1);
|
|
8622
|
-
_html(`<span${_attr_class("
|
|
8622
|
+
_html(`<span${_attr_class("_ib")}><span${_attr_class("_ic")}>${_escape(ws$1.name)}${_el_resume($scope3_id, "g", $sg__input_workspaces__OR__input_workspaceId)}</span><span${_attr_class("_is")}${_attr("title", ws$1.pending_error || restoreLine)}>${ws$1.pending_error ? `Restore failed: ${_escape(`${ws$1.pending_error}`)}` : _escape("Restoring…")}${_el_resume($scope3_id, "i")}</span>${_el_resume($scope3_id, "h")}</span></div></div></section>${_el_resume($scope3_id, "a", _serialize_guard($scope0_reason, 10))}`);
|
|
8623
8623
|
_subscribe($restoreLine__closures, _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_pending_error__closures, _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_name__closures, _subscribe($si__input_railPop && $input_railPop__closures, _subscribe($si__input_page && $input_page__closures, writeScope($scope3_id, {
|
|
8624
8624
|
_: _scope_with_id($scope1_id),
|
|
8625
8625
|
Cb0: $si__input_workspaces__OR__input_workspaceId && 1
|
|
@@ -8629,15 +8629,15 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8629
8629
|
const $scope4_id = _scope_id();
|
|
8630
8630
|
const sessions$1 = input.sessions || [];
|
|
8631
8631
|
const phaseLabel = dot === "working" ? "Working" : dot === "waiting" ? "Needs input" : dot === "idle" ? "Idle" : "Not running";
|
|
8632
|
-
_html(`<section${_attr_class(["
|
|
8633
|
-
["
|
|
8632
|
+
_html(`<section${_attr_class(["_h3", {
|
|
8633
|
+
["_hZ"]: input.current,
|
|
8634
8634
|
["_bb"]: input.current,
|
|
8635
|
-
["
|
|
8636
|
-
["
|
|
8637
|
-
}])}><div${_attr_class("
|
|
8635
|
+
["_h4"]: input.railPop,
|
|
8636
|
+
["_h2"]: input.page
|
|
8637
|
+
}])}><div${_attr_class("_h5")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class(wsBtn)}><span${_attr_class([
|
|
8638
8638
|
"_y",
|
|
8639
8639
|
phase[dot],
|
|
8640
|
-
"
|
|
8640
|
+
"_ih"
|
|
8641
8641
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope4_id, "d", $sg__input_workspaceId__OR__input_status)}`);
|
|
8642
8642
|
_if(() => {
|
|
8643
8643
|
if (sessions$1.length === 1) {
|
|
@@ -8650,7 +8650,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8650
8650
|
icon_agent_default({
|
|
8651
8651
|
agent: activeAgent(sessions$1[0]),
|
|
8652
8652
|
size: 12,
|
|
8653
|
-
class: "
|
|
8653
|
+
class: "_ia"
|
|
8654
8654
|
});
|
|
8655
8655
|
$si__input_sessions && writeScope($scope17_id, {
|
|
8656
8656
|
_: _scope_with_id($scope4_id),
|
|
@@ -8660,11 +8660,11 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8660
8660
|
}
|
|
8661
8661
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions);
|
|
8662
8662
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length > 1 ? `${sessions$1.length} sessions` : "";
|
|
8663
|
-
_html(`<span${_attr_class("
|
|
8663
|
+
_html(`<span${_attr_class("_ib")}><span${_attr_class("_ic")}>${_escape(ws$1.name)}${_el_resume($scope4_id, "h", $sg__input_workspaces__OR__input_workspaceId)}</span>`);
|
|
8664
8664
|
_if(() => {
|
|
8665
8665
|
if (input.page && metaText) {
|
|
8666
8666
|
const $scope18_id = _scope_id();
|
|
8667
|
-
_html(`<span${_attr_class("
|
|
8667
|
+
_html(`<span${_attr_class("_if")}>${_escape(metaText)}${_el_resume($scope18_id, "b", _serialize_guard($scope0_reason, 6))}</span>`);
|
|
8668
8668
|
$si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && writeScope($scope18_id, { _: _serialize_if($scope0_reason, 6) && _scope_with_id($scope4_id) });
|
|
8669
8669
|
return 0;
|
|
8670
8670
|
}
|
|
@@ -8677,7 +8677,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8677
8677
|
"_L",
|
|
8678
8678
|
"_U",
|
|
8679
8679
|
"_N",
|
|
8680
|
-
"
|
|
8680
|
+
"_ig"
|
|
8681
8681
|
])}>${input.current ? "Open" : ""}${_el_resume($scope5_id, "b", _serialize_guard($scope0_reason, 21))}</span>`);
|
|
8682
8682
|
$si__input_current__OR__input_page__OR__input_rail__OR__input_workspaces__OR__input_workspaceId && _subscribe($si__input_current && $input_current__closures, writeScope($scope5_id, {
|
|
8683
8683
|
_: _scope_with_id($scope4_id),
|
|
@@ -8690,7 +8690,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8690
8690
|
_if(() => {
|
|
8691
8691
|
if (!input.page) {
|
|
8692
8692
|
const $scope6_id = _scope_id();
|
|
8693
|
-
_html(`<div${_attr_class("
|
|
8693
|
+
_html(`<div${_attr_class("_h7")}>`);
|
|
8694
8694
|
_if(() => {
|
|
8695
8695
|
if (input.onNewSession) {
|
|
8696
8696
|
const $scope7_id = _scope_id();
|
|
@@ -8739,7 +8739,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8739
8739
|
return 0;
|
|
8740
8740
|
}
|
|
8741
8741
|
}, $scope6_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
8742
|
-
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["
|
|
8742
|
+
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_h0"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
|
|
8743
8743
|
icon_manage_default({ size: 12 });
|
|
8744
8744
|
_html(`</a>${_el_resume($scope6_id, "d", _serialize_guard($scope0_reason, 7))}</div>`);
|
|
8745
8745
|
_subscribe($si__input_workspaces__OR__input_workspaceId && $ws_id__closures, _subscribe($si__input_managing && $input_managing__closures, _subscribe($si__input_onReview && $input_onReview__closures, _subscribe($si__input_onNewSession && $input_onNewSession__closures, writeScope($scope6_id, {
|
|
@@ -8749,7 +8749,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8749
8749
|
return 0;
|
|
8750
8750
|
}
|
|
8751
8751
|
}, $scope4_id, "k", $sg__input_page, $sg__input_page, 1, 0, 1);
|
|
8752
|
-
_html(`</div><div${_attr_class("
|
|
8752
|
+
_html(`</div><div${_attr_class("_im")}>`);
|
|
8753
8753
|
_if(() => {
|
|
8754
8754
|
if (sessions$1.length === 1 && openPlan) {
|
|
8755
8755
|
const $scope12_id = _scope_id();
|
|
@@ -8757,7 +8757,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8757
8757
|
const $childScope3 = _peek_scope_id();
|
|
8758
8758
|
usage_pcts_default({
|
|
8759
8759
|
agent: openPlan,
|
|
8760
|
-
class: "
|
|
8760
|
+
class: "_id"
|
|
8761
8761
|
});
|
|
8762
8762
|
_subscribe($openPlan__closures, writeScope($scope12_id, {
|
|
8763
8763
|
a: _existing_scope($childScope3),
|
|
@@ -8768,14 +8768,14 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8768
8768
|
}, $scope4_id, "m");
|
|
8769
8769
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
8770
8770
|
const $scope9_id = _scope_id();
|
|
8771
|
-
_html(`<div${_attr_class(["
|
|
8771
|
+
_html(`<div${_attr_class(["_h8", { ["_hZ"]: s.id === input.currentTab }])}>`);
|
|
8772
8772
|
_if(() => {
|
|
8773
8773
|
if (renamingId === s.id) {
|
|
8774
8774
|
const $scope11_id = _scope_id();
|
|
8775
8775
|
_html(`<span${_attr_class([
|
|
8776
8776
|
"_y",
|
|
8777
8777
|
phase[sessionPhase(s.state)],
|
|
8778
|
-
"
|
|
8778
|
+
"_ik"
|
|
8779
8779
|
])}></span>${_el_resume($scope11_id, "a", $sg__input_sessions)}`);
|
|
8780
8780
|
_set_serialize_reason({
|
|
8781
8781
|
1: $sg__input_sessions,
|
|
@@ -8785,7 +8785,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8785
8785
|
icon_agent_default({
|
|
8786
8786
|
agent: activeAgent(s),
|
|
8787
8787
|
size: 12,
|
|
8788
|
-
class: "
|
|
8788
|
+
class: "_io"
|
|
8789
8789
|
});
|
|
8790
8790
|
_html(`<input${_attr_input_value($scope11_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
8791
8791
|
renameValue = _new_renameValue;
|
|
@@ -8804,9 +8804,9 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8804
8804
|
icon_agent_default({
|
|
8805
8805
|
agent: activeAgent(s),
|
|
8806
8806
|
size: 12,
|
|
8807
|
-
class: "
|
|
8807
|
+
class: "_io"
|
|
8808
8808
|
});
|
|
8809
|
-
_html(`<span${_attr_class("
|
|
8809
|
+
_html(`<span${_attr_class("_ii")}>${_escape(s.title || activeAgent(s))}${_el_resume($scope10_id, "e", $sg__input_sessions)}</span></a>${_el_resume($scope10_id, "a", _serialize_guard($scope0_reason, 5))}<div${_attr_class("_ij")}><button${_attr_class(rowIcon)} title="Rename session">`);
|
|
8810
8810
|
icon_edit_default({ size: 12 });
|
|
8811
8811
|
_html(`</button>${_el_resume($scope10_id, "g")}<button${_attr_class([close, { ["_q"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
|
|
8812
8812
|
icon_xmark_default({ size: 12 });
|
|
@@ -8818,7 +8818,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8818
8818
|
const $childScope6 = _peek_scope_id();
|
|
8819
8819
|
usage_pcts_default({
|
|
8820
8820
|
agent: openPlan,
|
|
8821
|
-
class: "
|
|
8821
|
+
class: "_ie"
|
|
8822
8822
|
});
|
|
8823
8823
|
_subscribe($openPlan__closures, writeScope($scope13_id, {
|
|
8824
8824
|
a: _existing_scope($childScope6),
|
|
@@ -9034,28 +9034,28 @@ var side_nav_default = _template("A", (input) => {
|
|
|
9034
9034
|
const listIds = isPage ? [ws.id, ...otherIds] : itemIds;
|
|
9035
9035
|
_html(`<script${_attr_nonce()}>${_escape_script(`
|
|
9036
9036
|
${_to_text(`if (matchMedia("(max-width: 899px)").matches) document.documentElement.classList.add("work-no-rail");`)};
|
|
9037
|
-
`)}<\/script><aside${_attr_class(["
|
|
9038
|
-
["
|
|
9039
|
-
["
|
|
9037
|
+
`)}<\/script><aside${_attr_class(["_ff", {
|
|
9038
|
+
["_fd"]: !navOpen,
|
|
9039
|
+
["_fe"]: isPage
|
|
9040
9040
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
9041
9041
|
_if(() => {
|
|
9042
9042
|
if (isPage) {
|
|
9043
9043
|
const $scope1_id = _scope_id();
|
|
9044
|
-
_html(`<header${_attr_class("
|
|
9044
|
+
_html(`<header${_attr_class("_fi")}><div${_attr_class("_fr")}>`);
|
|
9045
9045
|
_if(() => {
|
|
9046
9046
|
if (input.instanceName) {
|
|
9047
9047
|
const $scope2_id = _scope_id();
|
|
9048
|
-
_html(`<div${_attr_class("
|
|
9048
|
+
_html(`<div${_attr_class("_fo")} title="This work server (Settings → Appearance)"><img${_attr_class("_fp")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_fq")}>${_escape(input.instanceName)}${_el_resume($scope2_id, "d", $sg__input_instanceName)}</span></div>`);
|
|
9049
9049
|
_subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
|
|
9050
9050
|
return 0;
|
|
9051
9051
|
}
|
|
9052
9052
|
}, $scope1_id, "c", $sg__input_instanceName, $sg__input_instanceName, 1, 0, 1);
|
|
9053
|
-
_html(`<h1${_attr_class("
|
|
9053
|
+
_html(`<h1${_attr_class("_fj")}>Workspaces</h1></div><div${_attr_class("_fk")}>`);
|
|
9054
9054
|
_if(() => {}, $scope1_id, "f", 1, 1, 1, 0, 1);
|
|
9055
9055
|
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
|
|
9056
9056
|
iconBtn,
|
|
9057
|
-
"
|
|
9058
|
-
{ ["
|
|
9057
|
+
"_fl",
|
|
9058
|
+
{ ["_fa"]: view === "settings" }
|
|
9059
9059
|
])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
9060
9060
|
icon_settings_default({ size: 16 });
|
|
9061
9061
|
_if(() => {
|
|
@@ -9074,18 +9074,18 @@ var side_nav_default = _template("A", (input) => {
|
|
|
9074
9074
|
_if(() => {
|
|
9075
9075
|
if (!isPage && input.instanceName) {
|
|
9076
9076
|
const $scope3_id = _scope_id();
|
|
9077
|
-
_html(`<div${_attr_class("
|
|
9077
|
+
_html(`<div${_attr_class("_fo")} title="This work server (Settings → Appearance)"><img${_attr_class("_fp")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope3_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_fq")}>${_escape(input.instanceName)}${_el_resume($scope3_id, "d", $sg__input_instanceName)}</span></div>`);
|
|
9078
9078
|
writeScope($scope3_id, {});
|
|
9079
9079
|
return 0;
|
|
9080
9080
|
}
|
|
9081
9081
|
}, $scope0_id, "d", 1, 1, 1, 0, 1);
|
|
9082
|
-
_html(`<div${_attr_class("
|
|
9082
|
+
_html(`<div${_attr_class("_fs")}>`);
|
|
9083
9083
|
_for_of(listIds, (wsId) => {
|
|
9084
9084
|
const $scope4_id = _scope_id();
|
|
9085
9085
|
_if(() => {
|
|
9086
9086
|
if (isPage && wsId === ws.id) {
|
|
9087
9087
|
const $scope13_id = _scope_id();
|
|
9088
|
-
_html(`<h2${_attr_class(["
|
|
9088
|
+
_html(`<h2${_attr_class(["_bw", "_fm"])}>Current</h2>`);
|
|
9089
9089
|
writeScope($scope13_id, {});
|
|
9090
9090
|
return 0;
|
|
9091
9091
|
}
|
|
@@ -9093,7 +9093,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
9093
9093
|
_if(() => {
|
|
9094
9094
|
if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
|
|
9095
9095
|
const $scope14_id = _scope_id();
|
|
9096
|
-
_html(`<h2${_attr_class(["
|
|
9096
|
+
_html(`<h2${_attr_class(["_bw", "_fm"])}>Other workspaces</h2>`);
|
|
9097
9097
|
writeScope($scope14_id, {});
|
|
9098
9098
|
return 0;
|
|
9099
9099
|
}
|
|
@@ -9177,7 +9177,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
9177
9177
|
railHover = null;
|
|
9178
9178
|
}, 150);
|
|
9179
9179
|
}, "A6", $scope5_id);
|
|
9180
|
-
_html(`<div${_attr_class("
|
|
9180
|
+
_html(`<div${_attr_class("_ft")} data-rail>`);
|
|
9181
9181
|
_for_of(itemIds, (wsId, i) => {
|
|
9182
9182
|
const $scope6_id = _scope_id();
|
|
9183
9183
|
_html("<span>");
|
|
@@ -9231,7 +9231,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
9231
9231
|
if (railHover) {
|
|
9232
9232
|
const $scope7_id = _scope_id();
|
|
9233
9233
|
const hoverId = railHover.id;
|
|
9234
|
-
_html(`<div${_attr_class(["_8", "
|
|
9234
|
+
_html(`<div${_attr_class(["_8", "_fw"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
9235
9235
|
_set_serialize_reason({
|
|
9236
9236
|
0: 1,
|
|
9237
9237
|
1: 1,
|
|
@@ -9316,7 +9316,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
9316
9316
|
return 0;
|
|
9317
9317
|
}
|
|
9318
9318
|
}, $scope0_id, "f");
|
|
9319
|
-
_html(`<div${_attr_class("
|
|
9319
|
+
_html(`<div${_attr_class("_fu")}>`);
|
|
9320
9320
|
_if(() => {
|
|
9321
9321
|
if (isPage) {
|
|
9322
9322
|
const $scope9_id = _scope_id();
|
|
@@ -9324,7 +9324,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
9324
9324
|
"_o",
|
|
9325
9325
|
"_p",
|
|
9326
9326
|
btnLg,
|
|
9327
|
-
"
|
|
9327
|
+
"_fn"
|
|
9328
9328
|
])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
9329
9329
|
icon_folder_plus_default({ size: 16 });
|
|
9330
9330
|
_html(` New workspace</a>${_el_resume($scope9_id, "a")}`);
|
|
@@ -9346,9 +9346,9 @@ var side_nav_default = _template("A", (input) => {
|
|
|
9346
9346
|
return 1;
|
|
9347
9347
|
}
|
|
9348
9348
|
}, $scope8_id, "a", 1, 1, 1, "</button>", 1);
|
|
9349
|
-
_html(`<div${_attr_class(["_x", "
|
|
9349
|
+
_html(`<div${_attr_class(["_x", "_fv"])}></div>`);
|
|
9350
9350
|
_if(() => {}, $scope8_id, "c", 1, 1, 1, 0, 1);
|
|
9351
|
-
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn, { ["
|
|
9351
|
+
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn, { ["_fa"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
9352
9352
|
icon_settings_default({});
|
|
9353
9353
|
_if(() => {
|
|
9354
9354
|
if (input.setupReady === false) {
|
|
@@ -9358,7 +9358,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
9358
9358
|
return 0;
|
|
9359
9359
|
}
|
|
9360
9360
|
}, $scope8_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
9361
|
-
_html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn, { ["
|
|
9361
|
+
_html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn, { ["_fa"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
9362
9362
|
icon_folder_plus_default({ size: 16 });
|
|
9363
9363
|
_html(`</a>${_el_resume($scope8_id, "g")}`);
|
|
9364
9364
|
_script($scope8_id, "A15");
|
|
@@ -9428,9 +9428,9 @@ var side_nav_default = _template("A", (input) => {
|
|
|
9428
9428
|
});
|
|
9429
9429
|
//#endregion
|
|
9430
9430
|
//#region src/tags/manage-workspace.css.ts
|
|
9431
|
-
var content = "
|
|
9432
|
-
var pageMeta = "
|
|
9433
|
-
var pathMeta = "
|
|
9431
|
+
var content = "_fx _bN";
|
|
9432
|
+
var pageMeta = "_fy _bS";
|
|
9433
|
+
var pathMeta = "_fB _w";
|
|
9434
9434
|
//#endregion
|
|
9435
9435
|
//#region src/tags/icons/icon-clipboard.marko
|
|
9436
9436
|
var icon_clipboard_default = _template("V", (input) => {
|
|
@@ -9605,7 +9605,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
9605
9605
|
setTimeout(() => loadProcs(void 0), 500);
|
|
9606
9606
|
}, "q9", $scope0_id);
|
|
9607
9607
|
const titleId = _id();
|
|
9608
|
-
_html(`<div${_attr_class("
|
|
9608
|
+
_html(`<div${_attr_class("_bL")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bM")}><div${_attr_class(content)}>`);
|
|
9609
9609
|
_set_serialize_reason(286);
|
|
9610
9610
|
let $actions;
|
|
9611
9611
|
if (ws.repos.length) $actions = attrTag({ content: _content_resume("q18", () => {
|
|
@@ -9641,7 +9641,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
9641
9641
|
meta: attrTag({ content: _content_resume("q17", () => {
|
|
9642
9642
|
_scope_reason();
|
|
9643
9643
|
const $scope15_id = _scope_id();
|
|
9644
|
-
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
9644
|
+
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_fz")}>${_escape(ws.name)}${_el_resume($scope15_id, "c")}</span>`);
|
|
9645
9645
|
_if(() => {
|
|
9646
9646
|
if (ws.status !== "active") {
|
|
9647
9647
|
const $scope19_id = _scope_id();
|
|
@@ -9650,7 +9650,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
9650
9650
|
return 0;
|
|
9651
9651
|
}
|
|
9652
9652
|
}, $scope15_id, "d", 1, 1, 1, 0, 1);
|
|
9653
|
-
_html(`<span${_attr_class("
|
|
9653
|
+
_html(`<span${_attr_class("_fA")} aria-hidden=true>·</span><span${_attr_class(pathMeta)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope15_id, "g")}</span></span>${_el_resume($scope15_id, "a")}`);
|
|
9654
9654
|
_subscribe($ws_status__closures, _subscribe($ws_path__closures, _subscribe($ws_display_path__closures, _subscribe($ws_name__closures, writeScope($scope15_id, { _: _scope_with_id($scope0_id) })))));
|
|
9655
9655
|
_resume_branch($scope15_id);
|
|
9656
9656
|
}, $scope0_id) })
|
|
@@ -9678,32 +9678,32 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
9678
9678
|
_if(() => {
|
|
9679
9679
|
if (pendingAction && actionStep) {
|
|
9680
9680
|
const $scope11_id = _scope_id();
|
|
9681
|
-
_html(`<p${_attr_class("
|
|
9681
|
+
_html(`<p${_attr_class("_bh")}><span${_attr_class("_E")}></span><!>${_escape(actionStep)}${_el_resume($scope11_id, "c")}</p>`);
|
|
9682
9682
|
writeScope($scope11_id, {});
|
|
9683
9683
|
return 0;
|
|
9684
9684
|
}
|
|
9685
9685
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
9686
|
-
_html(`<section${_attr_class("
|
|
9686
|
+
_html(`<section${_attr_class("_bi")}><div${_attr_class("_bj")}><h2${_attr_class("_bw")}>Workspace</h2></div><div${_attr_class(["_bn", "_cj"])}><div${_attr_class(["_ck", "_cl"])}>`);
|
|
9687
9687
|
_if(() => {
|
|
9688
9688
|
if (ws.status === "active") {
|
|
9689
9689
|
const $scope8_id = _scope_id();
|
|
9690
|
-
_html(`<span${_attr_class("
|
|
9690
|
+
_html(`<span${_attr_class("_cn")}>Hide from the list. Worktrees stay on disk.</span><button type=button${_attr_class(btnSm)}${_attr("disabled", !!pendingAction)}>${pendingAction === "archive" ? "Archiving…" : "Archive"}${_el_resume($scope8_id, "c")}</button>${_el_resume($scope8_id, "b")}`);
|
|
9691
9691
|
_script($scope8_id, "q20");
|
|
9692
9692
|
writeScope($scope8_id, {});
|
|
9693
9693
|
return 0;
|
|
9694
9694
|
} else {
|
|
9695
9695
|
const $scope9_id = _scope_id();
|
|
9696
|
-
_html(`<span${_attr_class("
|
|
9696
|
+
_html(`<span${_attr_class("_cn")}>Archived and hidden from the list.</span><button type=button${_attr_class([btnSm, "_p"])}${_attr("disabled", !!pendingAction)}>${pendingAction === "restore" ? "Restoring…" : "Restore"}${_el_resume($scope9_id, "c")}</button>${_el_resume($scope9_id, "b")}`);
|
|
9697
9697
|
_script($scope9_id, "q21");
|
|
9698
9698
|
writeScope($scope9_id, {});
|
|
9699
9699
|
return 1;
|
|
9700
9700
|
}
|
|
9701
9701
|
}, $scope0_id, "k", 1, 1, 1, "</div>");
|
|
9702
|
-
_html(`<div${_attr_class(["
|
|
9702
|
+
_html(`<div${_attr_class(["_ck", "_cl"])}><span${_attr_class("_cn")}>Remove the workspace and its worktrees. Branches on origin stay.</span><button type=button${_attr_class([
|
|
9703
9703
|
btnSm,
|
|
9704
9704
|
"_r",
|
|
9705
9705
|
{ ["_q"]: confirmingDelete }
|
|
9706
|
-
])}${_attr("disabled", !!pendingAction)}>${pendingAction === "delete" ? "Deleting…" : "Delete"}${_el_resume($scope0_id, "o")}</button>${_el_resume($scope0_id, "n")}</div></div></section><section${_attr_class("
|
|
9706
|
+
])}${_attr("disabled", !!pendingAction)}>${pendingAction === "delete" ? "Deleting…" : "Delete"}${_el_resume($scope0_id, "o")}</button>${_el_resume($scope0_id, "n")}</div></div></section><section${_attr_class("_bi")}><div${_attr_class("_bj")}><h2${_attr_class("_bw")}>Repos</h2><span${_attr_class(sectionCount)}>${_escape(ws.repos.length)}${_el_resume($scope0_id, "t")}</span><div${_attr_class("_x")}></div><button${_attr_class(iconBtnRow)} title="Add repo" aria-label="Add repo"${_attr("hidden", addingRepo)}>`);
|
|
9707
9707
|
icon_plus_default({ size: 16 });
|
|
9708
9708
|
_html(`</button>${_el_resume($scope0_id, "v")}`);
|
|
9709
9709
|
_set_serialize_reason(66);
|
|
@@ -9734,13 +9734,13 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
9734
9734
|
class: catalogRefreshing && "_D"
|
|
9735
9735
|
});
|
|
9736
9736
|
_html(`</button>${_el_resume($scope0_id, "z")}</div><ul${_attr_class([
|
|
9737
|
-
"
|
|
9738
|
-
"
|
|
9739
|
-
"
|
|
9737
|
+
"_bn",
|
|
9738
|
+
"_cj",
|
|
9739
|
+
"_cx"
|
|
9740
9740
|
])}>`);
|
|
9741
9741
|
_for_of(ws.repos, (row) => {
|
|
9742
9742
|
const $scope1_id = _scope_id();
|
|
9743
|
-
_html(`<li${_attr_class(flatCardRow)}><div${_attr_class("
|
|
9743
|
+
_html(`<li${_attr_class(flatCardRow)}><div${_attr_class("_bo")}><span${_attr_class(["_bp", "_w"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_bq")}><a${_attr_class(["_br", "_I"])}${_attr("href", repoWebUrl$1(row.full_name))} target=_blank rel=noopener${_attr("title", `Open ${row.full_name} on GitHub`)}>${_escape(repoLabel(row.full_name))}${_el_resume($scope1_id, "g")}</a>${_el_resume($scope1_id, "f")}`);
|
|
9744
9744
|
_if(() => {
|
|
9745
9745
|
if (row.base_branch !== row.default_branch) {
|
|
9746
9746
|
const $scope22_id = _scope_id();
|
|
@@ -9761,7 +9761,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
9761
9761
|
} else {
|
|
9762
9762
|
const $scope10_id = _scope_id();
|
|
9763
9763
|
_html(`<button${_attr_class([
|
|
9764
|
-
"
|
|
9764
|
+
"_bs",
|
|
9765
9765
|
"_6",
|
|
9766
9766
|
"_7",
|
|
9767
9767
|
{ ["_q"]: confirmingRemove === row.full_name }
|
|
@@ -9794,13 +9794,13 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
9794
9794
|
}, "full_name", $scope0_id, "a2", 1, 1, 1, 0, 1);
|
|
9795
9795
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
9796
9796
|
const $scope26_id = _scope_id();
|
|
9797
|
-
_html(`<li${_attr_class([flatCardRow, "
|
|
9797
|
+
_html(`<li${_attr_class([flatCardRow, "_bm"])}><span${_attr_class("_E")}></span><div${_attr_class("_bo")}><span${_attr_class("_br")}>Adding <!>${_escape(name)}${_el_resume($scope26_id, "e")}…</span></div></li>`);
|
|
9798
9798
|
writeScope($scope26_id, {});
|
|
9799
9799
|
}, (n) => n, $scope0_id, "a3", 1, 1, 1, 0, 1);
|
|
9800
9800
|
_if(() => {
|
|
9801
9801
|
if (!ws.repos.length && !busy.size) {
|
|
9802
9802
|
const $scope27_id = _scope_id();
|
|
9803
|
-
_html(`<li${_attr_class(flatCardRow)}><span${_attr_class("
|
|
9803
|
+
_html(`<li${_attr_class(flatCardRow)}><span${_attr_class("_br")}>No repos yet. Add one to start.</span></li>`);
|
|
9804
9804
|
writeScope($scope27_id, {});
|
|
9805
9805
|
return 0;
|
|
9806
9806
|
}
|
|
@@ -9811,7 +9811,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
9811
9811
|
_if(() => {
|
|
9812
9812
|
if (wsSkills.length || repoSkills.length) {
|
|
9813
9813
|
const $scope2_id = _scope_id();
|
|
9814
|
-
_html(`<section${_attr_class("
|
|
9814
|
+
_html(`<section${_attr_class("_bi")}><div${_attr_class("_bj")}><h2${_attr_class("_bw")}>Skills</h2>`);
|
|
9815
9815
|
_if(() => {
|
|
9816
9816
|
if (wsSkills.length) {
|
|
9817
9817
|
const $scope28_id = _scope_id();
|
|
@@ -9820,7 +9820,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
9820
9820
|
return 0;
|
|
9821
9821
|
}
|
|
9822
9822
|
}, $scope2_id, "d", 1, 1, 1, 0, 1);
|
|
9823
|
-
_html(`</div><ul${_attr_class("
|
|
9823
|
+
_html(`</div><ul${_attr_class("_dM")}>`);
|
|
9824
9824
|
_for_of(wsSkills, (s) => {
|
|
9825
9825
|
const $scope3_id = _scope_id();
|
|
9826
9826
|
const $for_content2__s_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -9928,7 +9928,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
9928
9928
|
_if(() => {
|
|
9929
9929
|
if (repoSkills.length) {
|
|
9930
9930
|
const $scope4_id = _scope_id();
|
|
9931
|
-
_html(`<ul${_attr_class("
|
|
9931
|
+
_html(`<ul${_attr_class("_dM")}>`);
|
|
9932
9932
|
_for_of(repoSkills, (s) => {
|
|
9933
9933
|
const $scope5_id = _scope_id();
|
|
9934
9934
|
const $for_content3__s_shadows__closures = /* @__PURE__ */ new Set();
|
|
@@ -9984,22 +9984,22 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
9984
9984
|
_if(() => {
|
|
9985
9985
|
if (running.length) {
|
|
9986
9986
|
const $scope17_id = _scope_id();
|
|
9987
|
-
_html(`<section${_attr_class("
|
|
9988
|
-
"
|
|
9989
|
-
"
|
|
9990
|
-
"
|
|
9987
|
+
_html(`<section${_attr_class("_bi")}><div${_attr_class("_bj")}><h2${_attr_class("_bw")}>Running</h2><span${_attr_class(sectionCount)}>${_escape(running.length)}${_el_resume($scope17_id, "e")}</span></div><ul${_attr_class([
|
|
9988
|
+
"_bn",
|
|
9989
|
+
"_cj",
|
|
9990
|
+
"_cx"
|
|
9991
9991
|
])}>`);
|
|
9992
9992
|
_for_of(running, (p) => {
|
|
9993
9993
|
const $scope18_id = _scope_id();
|
|
9994
|
-
_html(`<li${_attr_class(flatCardRow)}><div${_attr_class("
|
|
9995
|
-
"
|
|
9994
|
+
_html(`<li${_attr_class(flatCardRow)}><div${_attr_class("_bo")}${_attr("title", p.args)}><span${_attr_class([
|
|
9995
|
+
"_bp",
|
|
9996
9996
|
"_w",
|
|
9997
|
-
"
|
|
9997
|
+
"_fC"
|
|
9998
9998
|
])}>${_escape(p.cmd)}${_el_resume($scope18_id, "d")}</span>`);
|
|
9999
9999
|
_if(() => {
|
|
10000
10000
|
if (p.ports.length) {
|
|
10001
10001
|
const $scope36_id = _scope_id();
|
|
10002
|
-
_html(`<span${_attr_class("
|
|
10002
|
+
_html(`<span${_attr_class("_bq")}>`);
|
|
10003
10003
|
_for_of(p.ports, (port) => {
|
|
10004
10004
|
const $scope37_id = _scope_id();
|
|
10005
10005
|
_html(`<button${_attr_class(["_s", "_I"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope37_id, "b")}</button>${_el_resume($scope37_id, "a")}`);
|
|
@@ -10010,7 +10010,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
10010
10010
|
return 0;
|
|
10011
10011
|
}
|
|
10012
10012
|
}, $scope18_id, "e", 1, 1, 1, 0, 1);
|
|
10013
|
-
_html(`</div>${_el_resume($scope18_id, "b")}<button${_attr_class(["
|
|
10013
|
+
_html(`</div>${_el_resume($scope18_id, "b")}<button${_attr_class(["_bs", "_6"])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
10014
10014
|
icon_xmark_default({ size: 14 });
|
|
10015
10015
|
_html(`</button>${_el_resume($scope18_id, "f")}</li>`);
|
|
10016
10016
|
_script($scope18_id, "q31");
|
|
@@ -10094,12 +10094,12 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
10094
10094
|
});
|
|
10095
10095
|
_resume_branch($scope0_id);
|
|
10096
10096
|
});
|
|
10097
|
-
var kbtn = "
|
|
10098
|
-
var sessOpen = "
|
|
10099
|
-
var sessRename = "
|
|
10100
|
-
var dpadPaste = "
|
|
10101
|
-
var repeat = "
|
|
10102
|
-
var dpadEsc = "
|
|
10097
|
+
var kbtn = "_eA _4 _j";
|
|
10098
|
+
var sessOpen = "_gg _G";
|
|
10099
|
+
var sessRename = "_gk _H";
|
|
10100
|
+
var dpadPaste = "_gr _gq";
|
|
10101
|
+
var repeat = "_gs _gq";
|
|
10102
|
+
var dpadEsc = "_gu _gq";
|
|
10103
10103
|
//#endregion
|
|
10104
10104
|
//#region src/tags/term-find.marko
|
|
10105
10105
|
var term_find_default = _template("D", (input) => {
|
|
@@ -10136,19 +10136,19 @@ var term_find_default = _template("D", (input) => {
|
|
|
10136
10136
|
const canStep = hasQuery && open;
|
|
10137
10137
|
const keybar = input.placement === "keybar";
|
|
10138
10138
|
_html(`<div${_attr_class([
|
|
10139
|
-
"
|
|
10140
|
-
keybar ? "
|
|
10141
|
-
!open && "
|
|
10142
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
10139
|
+
"_gG",
|
|
10140
|
+
keybar ? "_gI" : "_gH",
|
|
10141
|
+
!open && "_gK"
|
|
10142
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_gB", keybar ? "_gJ" : "_gD"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
10143
10143
|
if (!open) return;
|
|
10144
10144
|
query = v;
|
|
10145
10145
|
live.query = v;
|
|
10146
10146
|
run(0);
|
|
10147
|
-
}, "D0", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
10147
|
+
}, "D0", $scope0_id))}${_attr_class([findInput, keybar && "_gL"])} 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 && "_gM"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
10148
10148
|
icon_arrow_up_default({ size: 14 });
|
|
10149
|
-
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
10149
|
+
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_gM"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
10150
10150
|
icon_arrow_down_default({ size: 14 });
|
|
10151
|
-
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
10151
|
+
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "_gM"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
10152
10152
|
icon_xmark_default({ size: 14 });
|
|
10153
10153
|
_html(`</button>${_el_resume($scope0_id, "h")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
10154
10154
|
_script($scope0_id, "D4");
|
|
@@ -10561,7 +10561,7 @@ var term_default = _template("E", (input) => {
|
|
|
10561
10561
|
trapOpen = true;
|
|
10562
10562
|
}
|
|
10563
10563
|
}, "E14", $scope0_id);
|
|
10564
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
10564
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_f3")}><div${_attr_class("_f4")}></div>${_el_resume($scope0_id, "b")}`);
|
|
10565
10565
|
_if(() => {
|
|
10566
10566
|
if (findOpen) {
|
|
10567
10567
|
const $scope12_id = _scope_id();
|
|
@@ -10588,7 +10588,7 @@ var term_default = _template("E", (input) => {
|
|
|
10588
10588
|
_if(() => {
|
|
10589
10589
|
if (uploading) {
|
|
10590
10590
|
const $scope21_id = _scope_id();
|
|
10591
|
-
_html(`<div${_attr_class("
|
|
10591
|
+
_html(`<div${_attr_class("_f_")}>uploading…</div>`);
|
|
10592
10592
|
writeScope($scope21_id, {});
|
|
10593
10593
|
return 0;
|
|
10594
10594
|
}
|
|
@@ -10596,7 +10596,7 @@ var term_default = _template("E", (input) => {
|
|
|
10596
10596
|
_if(() => {
|
|
10597
10597
|
if (copiedFlash) {
|
|
10598
10598
|
const $scope22_id = _scope_id();
|
|
10599
|
-
_html(`<div${_attr_class("
|
|
10599
|
+
_html(`<div${_attr_class("_f9")}>Copied</div>`);
|
|
10600
10600
|
writeScope($scope22_id, {});
|
|
10601
10601
|
return 0;
|
|
10602
10602
|
}
|
|
@@ -10605,7 +10605,7 @@ var term_default = _template("E", (input) => {
|
|
|
10605
10605
|
_if(() => {
|
|
10606
10606
|
if (trapOpen) {
|
|
10607
10607
|
const $scope11_id = _scope_id();
|
|
10608
|
-
_html(`<div${_attr_class("
|
|
10608
|
+
_html(`<div${_attr_class("_ga")}><div${_attr_class("_gb")}><p${_attr_class("_gv")}>Long-press the field below and choose Paste</p><input placeholder="Paste here…">${_el_resume($scope11_id, "d")}<button${_attr_class("_o")}>Cancel</button>${_el_resume($scope11_id, "e")}</div>${_el_resume($scope11_id, "b")}</div>${_el_resume($scope11_id, "a")}`);
|
|
10609
10609
|
_script($scope11_id, "E26");
|
|
10610
10610
|
_script($scope11_id, "E27");
|
|
10611
10611
|
writeScope($scope11_id, {});
|
|
@@ -10680,7 +10680,7 @@ var term_default = _template("E", (input) => {
|
|
|
10680
10680
|
popEl.style.top = `${Math.max(8, btn.top - popEl.offsetHeight - 8)}px`;
|
|
10681
10681
|
popEl.style.left = `${Math.max(8, Math.min(btn.left + btn.width / 2 - popEl.offsetWidth / 2, window.innerWidth - popEl.offsetWidth - 8))}px`;
|
|
10682
10682
|
}, "E20", $scope4_id);
|
|
10683
|
-
_html(`<button${_attr_class([kbtn, "
|
|
10683
|
+
_html(`<button${_attr_class([kbtn, "_gc"])} title=${onTermPage ? "Sessions" : "\"Back to session\""}${onTermPage ? _attr("popovertarget", sessPopId) : ""}>`);
|
|
10684
10684
|
_set_serialize_reason({
|
|
10685
10685
|
1: $sg__input_agent__OR__input_sessionState,
|
|
10686
10686
|
2: $sg__input_agent__OR__input_sessionState
|
|
@@ -10694,7 +10694,7 @@ var term_default = _template("E", (input) => {
|
|
|
10694
10694
|
"_y",
|
|
10695
10695
|
"_ba",
|
|
10696
10696
|
phase[sessionPhase(input.sessionState)]
|
|
10697
|
-
])}></span>${_el_resume($scope4_id, "c", _serialize_guard($scope0_reason, 5))}</button>${_el_resume($scope4_id, "a")}<div${_attr("id", sessPopId)} popover=auto${_attr_class(["_8", "
|
|
10697
|
+
])}></span>${_el_resume($scope4_id, "c", _serialize_guard($scope0_reason, 5))}</button>${_el_resume($scope4_id, "a")}<div${_attr("id", sessPopId)} popover=auto${_attr_class(["_8", "_gd"])}>`);
|
|
10698
10698
|
_if(() => {
|
|
10699
10699
|
if ((input.sessions || []).length > 0) {
|
|
10700
10700
|
const $scope5_id = _scope_id();
|
|
@@ -10710,7 +10710,7 @@ var term_default = _template("E", (input) => {
|
|
|
10710
10710
|
const $scope6_id = _scope_id();
|
|
10711
10711
|
const $for_content__s_agent__closures = /* @__PURE__ */ new Set();
|
|
10712
10712
|
const $for_content__s_id__closures = /* @__PURE__ */ new Set();
|
|
10713
|
-
_html(`<div${_attr_class(["
|
|
10713
|
+
_html(`<div${_attr_class(["_gf", { ["_ge"]: s.id === input.sessionId }])}>`);
|
|
10714
10714
|
_if(() => {
|
|
10715
10715
|
if (renamingId === s.id) {
|
|
10716
10716
|
const $scope24_id = _scope_id();
|
|
@@ -10742,7 +10742,7 @@ var term_default = _template("E", (input) => {
|
|
|
10742
10742
|
agent: activeAgent(s),
|
|
10743
10743
|
size: 14
|
|
10744
10744
|
});
|
|
10745
|
-
_html(`<span${_attr_class("
|
|
10745
|
+
_html(`<span${_attr_class("_gh")}><span${_attr_class("_gj")}>${_escape(s.title || activeAgent(s))}${_el_resume($scope7_id, "f", $sg__input_sessions)}</span>`);
|
|
10746
10746
|
_if(() => {
|
|
10747
10747
|
if (s.id === input.sessionId) {
|
|
10748
10748
|
const $scope23_id = _scope_id();
|
|
@@ -10754,7 +10754,7 @@ var term_default = _template("E", (input) => {
|
|
|
10754
10754
|
const $childScope6 = _peek_scope_id();
|
|
10755
10755
|
usage_pcts_default({
|
|
10756
10756
|
agent: plan,
|
|
10757
|
-
class: "
|
|
10757
|
+
class: "_gi"
|
|
10758
10758
|
});
|
|
10759
10759
|
writeScope($scope26_id, { a: _existing_scope($childScope6) });
|
|
10760
10760
|
return 0;
|
|
@@ -10771,7 +10771,7 @@ var term_default = _template("E", (input) => {
|
|
|
10771
10771
|
_if(() => {
|
|
10772
10772
|
if (input.onRenameSession) {
|
|
10773
10773
|
const $scope25_id = _scope_id();
|
|
10774
|
-
_html(`<button${_attr_class(["
|
|
10774
|
+
_html(`<button${_attr_class(["_gl", "_gm"])} title="Rename session">`);
|
|
10775
10775
|
icon_edit_default({ size: 12 });
|
|
10776
10776
|
_html(`</button>${_el_resume($scope25_id, "a")}`);
|
|
10777
10777
|
_script($scope25_id, "E29");
|
|
@@ -10783,7 +10783,7 @@ var term_default = _template("E", (input) => {
|
|
|
10783
10783
|
if (input.onCloseSession) {
|
|
10784
10784
|
const $scope8_id = _scope_id();
|
|
10785
10785
|
_html(`<button${_attr_class([
|
|
10786
|
-
"
|
|
10786
|
+
"_gl",
|
|
10787
10787
|
"_6",
|
|
10788
10788
|
{ ["_q"]: armedClose === s.id }
|
|
10789
10789
|
])} title=${armedClose === s.id ? "Close?" : "\"Close session\""}>`);
|
|
@@ -10825,7 +10825,7 @@ var term_default = _template("E", (input) => {
|
|
|
10825
10825
|
return 0;
|
|
10826
10826
|
}
|
|
10827
10827
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions, $sg__input_sessions);
|
|
10828
|
-
_html(`<div${_attr_class("
|
|
10828
|
+
_html(`<div${_attr_class("_gn")}><span${_attr_class("_go")}>New session</span>`);
|
|
10829
10829
|
_for_of([...input.agents || [], "shell"], (agent) => {
|
|
10830
10830
|
const $scope9_id = _scope_id();
|
|
10831
10831
|
_html(`<button${_attr_class(iconBtnRow)}${_attr("title", `New ${agent} session`)}>`);
|
|
@@ -10870,9 +10870,9 @@ var term_default = _template("E", (input) => {
|
|
|
10870
10870
|
const dpadOpenBox = { open: false };
|
|
10871
10871
|
_html(`<button${_attr_class(kbtn)} title=${canKeys ? "\"More keys\"" : "\"Keys unavailable on this page\""} aria-haspopup=dialog${_attr("aria-controls", dpadId)}${_attr("disabled", !canKeys)}>`);
|
|
10872
10872
|
icon_dpad_default({ size: 16 });
|
|
10873
|
-
_html(`</button>${_el_resume($scope10_id, "a")}<button${_attr_class([kbtn, { ["
|
|
10873
|
+
_html(`</button>${_el_resume($scope10_id, "a")}<button${_attr_class([kbtn, { ["_ez"]: findLit }])}${findLit ? " title=\"Close find\"" : canKeys ? ` title=${input.mode === "diff" ? "\"Find in review\"" : "\"Find in terminal\""}` : " title=\"Find unavailable on this page\""}${findLit ? " aria-label=\"Close find\"" : canKeys ? ` aria-label=${input.mode === "diff" ? "\"Find in review\"" : "\"Find in terminal\""}` : " aria-label=\"Find unavailable on this page\""} aria-pressed=${findLit ? "true" : "false"}${_attr("disabled", !canKeys)}>`);
|
|
10874
10874
|
icon_search_default({ size: 16 });
|
|
10875
|
-
_html(`</button>${_el_resume($scope10_id, "c")}<button${_attr_class([kbtn, { ["
|
|
10875
|
+
_html(`</button>${_el_resume($scope10_id, "c")}<button${_attr_class([kbtn, { ["_ez"]: kb }])}${canKeys ? ` title=${kb ? "\"Hide keyboard\"" : "\"Show keyboard\""}` : " title=\"Keyboard unavailable on this page\""}${_attr("disabled", !canKeys)}>`);
|
|
10876
10876
|
icon_keyboard_default({ size: 16 });
|
|
10877
10877
|
_html(`</button>${_el_resume($scope10_id, "e")}`);
|
|
10878
10878
|
_script($scope10_id, "E35");
|
|
@@ -10888,7 +10888,7 @@ var term_default = _template("E", (input) => {
|
|
|
10888
10888
|
overlay: attrTag({ content: _content_resume("E46", () => {
|
|
10889
10889
|
_scope_reason();
|
|
10890
10890
|
const $scope15_id = _scope_id();
|
|
10891
|
-
_html(`<div${_attr("id", $dpadId_getter)} popover=auto${_attr_class("
|
|
10891
|
+
_html(`<div${_attr("id", $dpadId_getter)} popover=auto${_attr_class("_gp")}>`);
|
|
10892
10892
|
forOf(DPAD, (row) => {
|
|
10893
10893
|
const $scope16_id = _scope_id();
|
|
10894
10894
|
forOf(row, (cell) => {
|
|
@@ -10908,7 +10908,7 @@ var term_default = _template("E", (input) => {
|
|
|
10908
10908
|
writeScope($scope18_id, { _: _scope_with_id($scope17_id) });
|
|
10909
10909
|
} else {
|
|
10910
10910
|
const $scope19_id = _scope_id();
|
|
10911
|
-
_html(`<button${_attr_class([repeat, { ["
|
|
10911
|
+
_html(`<button${_attr_class([repeat, { ["_gt"]: cell.icon === "enter" }])}${_attr("title", cell.label)}${_attr("aria-label", cell.label)}>`);
|
|
10912
10912
|
if (cell.icon === "arrow-up") {
|
|
10913
10913
|
_scope_id();
|
|
10914
10914
|
icon_arrow_up_default({ size: 18 });
|
|
@@ -11048,7 +11048,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
11048
11048
|
let DiffView = null;
|
|
11049
11049
|
const loadDiffView = _resume(() => {
|
|
11050
11050
|
if (DiffView) return;
|
|
11051
|
-
import("./
|
|
11051
|
+
import("./_jYLlSG8J.js").then((m) => {
|
|
11052
11052
|
DiffView = m.default;
|
|
11053
11053
|
});
|
|
11054
11054
|
}, "I6", $scope0_id);
|
|
@@ -11527,7 +11527,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
11527
11527
|
_if(() => {
|
|
11528
11528
|
if (!shownSessions.length && view === "term") {
|
|
11529
11529
|
const $scope7_id = _scope_id();
|
|
11530
|
-
_html(`<div${_attr_class("
|
|
11530
|
+
_html(`<div${_attr_class("_bu")}><span>No sessions in this workspace.</span><button${_attr_class(["_o", "_p"])}${_attr("disabled", spawning)}>${spawning ? "Starting…" : `Start ${_escape(`${input.preferred || "shell"}`)}`}${_el_resume($scope7_id, "c")}</button>${_el_resume($scope7_id, "b")}</div>`);
|
|
11531
11531
|
_script($scope7_id, "I51");
|
|
11532
11532
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
11533
11533
|
return 0;
|
|
@@ -11537,7 +11537,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
11537
11537
|
return 0;
|
|
11538
11538
|
} else {
|
|
11539
11539
|
const $scope11_id = _scope_id();
|
|
11540
|
-
_html(`<p${_attr_class("
|
|
11540
|
+
_html(`<p${_attr_class("_bu")}>Loading sessions…</p>`);
|
|
11541
11541
|
writeScope($scope11_id, {});
|
|
11542
11542
|
return 1;
|
|
11543
11543
|
}
|
|
@@ -13985,8 +13985,8 @@ function post11(context) {
|
|
|
13985
13985
|
* one that has gone quiet is a turn that ended. Nothing reads what is on
|
|
13986
13986
|
* the screen.
|
|
13987
13987
|
*
|
|
13988
|
-
* Only agents that cannot say it themselves are watched. An
|
|
13989
|
-
* hooks report both starting and stopping is left alone
|
|
13988
|
+
* Only agents that cannot say it themselves are watched for activity. An
|
|
13989
|
+
* agent whose hooks report both starting and stopping is left alone — asking
|
|
13990
13990
|
* two sources about one fact means arbitrating them when they disagree,
|
|
13991
13991
|
* and the screen always disagrees last, because it is still painting the
|
|
13992
13992
|
* reply after the hook has said the turn is over.
|
|
@@ -14030,9 +14030,14 @@ function startScraper() {
|
|
|
14030
14030
|
tick();
|
|
14031
14031
|
}
|
|
14032
14032
|
var started = false;
|
|
14033
|
-
/** Returns whether there was anything to watch (drives the poll cadence).
|
|
14033
|
+
/** Returns whether there was anything to watch (drives the poll cadence).
|
|
14034
|
+
*
|
|
14035
|
+
* Every agent session is checked for a pane, hooked or not: a hook
|
|
14036
|
+
* reports transitions and nothing else, so the pane vanishing is the one
|
|
14037
|
+
* thing only this pass can see. Only the unhooked ones have their
|
|
14038
|
+
* activity read. */
|
|
14034
14039
|
async function scan() {
|
|
14035
|
-
const sessions = all("SELECT id, agent FROM sessions").filter((session) => session.agent !== "shell"
|
|
14040
|
+
const sessions = all("SELECT id, agent FROM sessions").filter((session) => session.agent !== "shell");
|
|
14036
14041
|
if (!sessions.length) return false;
|
|
14037
14042
|
const out = await tmux([
|
|
14038
14043
|
"list-panes",
|
|
@@ -14055,6 +14060,7 @@ async function scan() {
|
|
|
14055
14060
|
attachedAt.delete(session.id);
|
|
14056
14061
|
continue;
|
|
14057
14062
|
}
|
|
14063
|
+
if (reportsWorking(session.agent)) continue;
|
|
14058
14064
|
live++;
|
|
14059
14065
|
const attached = attachedAt.get(session.id);
|
|
14060
14066
|
const busy = !(attached !== void 0 && now - attached < ATTACH_SETTLE_MS && wrote <= attached + ATTACH_GRACE_MS) && Number.isFinite(wrote) && now - wrote < IDLE_AFTER_MS;
|
|
@@ -21047,4 +21053,4 @@ server.listen(port, () => {
|
|
|
21047
21053
|
//#endregion
|
|
21048
21054
|
export {};
|
|
21049
21055
|
|
|
21050
|
-
;var __MARKO_MANIFEST__={"
|
|
21056
|
+
;var __MARKO_MANIFEST__={"ZLT8joi":{"block":[2,"stylesheet#/assets/app-page-B-xb0lEG.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-B-xb0lEG.css\"",">"],"defer":[2,"/assets/new-BMnZANmK.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-BMnZANmK.js\"","></script>",2,"modulepreload#/assets/_DV6VXtzH.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DV6VXtzH.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/app-page-B-xb0lEG.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-B-xb0lEG.css\"",">"],"defer":[2,"/assets/settings-BMnZANmK.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-BMnZANmK.js\"","></script>",2,"modulepreload#/assets/_DV6VXtzH.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DV6VXtzH.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/app-page-B-xb0lEG.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-B-xb0lEG.css\"",">"],"defer":[2,"/assets/w._-BMnZANmK.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-BMnZANmK.js\"","></script>",2,"modulepreload#/assets/_DV6VXtzH.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DV6VXtzH.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/app-page-B-xb0lEG.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-B-xb0lEG.css\"",">"],"defer":[2,"/assets/w-BMnZANmK.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-BMnZANmK.js\"","></script>",2,"modulepreload#/assets/_DV6VXtzH.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DV6VXtzH.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/app-page-B-xb0lEG.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-B-xb0lEG.css\"",">"],"defer":[2,"/assets/w._-C_I4x7J1.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-C_I4x7J1.js\"","></script>",2,"modulepreload#/assets/_DV6VXtzH.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DV6VXtzH.js\"",">"]}};
|