@dylanpiercey/work 0.0.118 → 0.0.120
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/{_CeVZfkIY.js → _BZhGz-eY.js} +76 -93
- package/dist/{_EzN3zMKL.js → _DEBFGwto.js} +35 -18
- package/dist/index.mjs +868 -978
- package/dist/public/assets/{_DkxpDwXy.js → _-3OmHyNU.js} +1 -1
- package/dist/public/assets/_-3OmHyNU.js.br +0 -0
- package/dist/public/assets/{_DLBE7zID.js → _0_ngOEbL.js} +1 -1
- package/dist/public/assets/_0_ngOEbL.js.br +0 -0
- package/dist/public/assets/{_BO_BKeKC.js → _8hF31A2G.js} +1 -1
- package/dist/public/assets/_8hF31A2G.js.br +0 -0
- package/dist/public/assets/{_CoGdSkvu.js → _B6bSumz1.js} +1 -1
- package/dist/public/assets/_B6bSumz1.js.br +0 -0
- package/dist/public/assets/{_B0HJN5ud2.js → _BCKhXQct2.js} +1 -1
- package/dist/public/assets/_BCKhXQct2.js.br +0 -0
- package/dist/public/assets/{_D5qcTAVE2.js → _BDRc66NB2.js} +1 -1
- package/dist/public/assets/_BDRc66NB2.js.br +0 -0
- package/dist/public/assets/{_Bk7GDGa82.js → _BEOZghNJ2.js} +1 -1
- package/dist/public/assets/_BEOZghNJ2.js.br +0 -0
- package/dist/public/assets/{_akTAmktB.js → _BEPt7EWk.js} +1 -1
- package/dist/public/assets/_BEPt7EWk.js.br +0 -0
- package/dist/public/assets/{_CHWTX_c6.js → _BFgJoTOo.js} +1 -1
- package/dist/public/assets/_BFgJoTOo.js.br +0 -0
- package/dist/public/assets/{_DJEzPcA82.js → _BGHYY00K2.js} +1 -1
- package/dist/public/assets/_BGHYY00K2.js.br +0 -0
- package/dist/public/assets/{_BYPDDEEO2.js → _BHgE7f-_2.js} +1 -1
- package/dist/public/assets/_BHgE7f-_2.js.br +0 -0
- package/dist/public/assets/{_BLeHC7zC2.js → _BIsQjQ872.js} +1 -1
- package/dist/public/assets/_BIsQjQ872.js.br +0 -0
- package/dist/public/assets/{_BVhnP3T6.js → _BLgtdDQm.js} +1 -1
- package/dist/public/assets/_BLgtdDQm.js.br +0 -0
- package/dist/public/assets/{_j9TQP7q5.js → _BPcKgx9L.js} +1 -1
- package/dist/public/assets/_BPcKgx9L.js.br +0 -0
- package/dist/public/assets/{_DAGSDF8g2.js → _BUmLRB7c2.js} +1 -1
- package/dist/public/assets/_BUmLRB7c2.js.br +0 -0
- package/dist/public/assets/{_BbB3wFGa.js → _B_MP9UES.js} +1 -1
- package/dist/public/assets/_B_MP9UES.js.br +0 -0
- package/dist/public/assets/{_BjVuWYXf.js → _BaiP7ogH.js} +1 -1
- package/dist/public/assets/_BaiP7ogH.js.br +0 -0
- package/dist/public/assets/{_BJz-Y1HI.js → _BbE6iGBd.js} +1 -1
- package/dist/public/assets/_BbE6iGBd.js.br +0 -0
- package/dist/public/assets/{_B-wISkbs.js → _BfZMmKaW.js} +1 -1
- package/dist/public/assets/_BfZMmKaW.js.br +0 -0
- package/dist/public/assets/{_BjeXgSse.js → _BilqQTfw.js} +1 -1
- package/dist/public/assets/_BilqQTfw.js.br +0 -0
- package/dist/public/assets/{_C7wuWtJ1.js → _BoXfCUcF.js} +1 -1
- package/dist/public/assets/{_6nWMLOH4.js → _BqNoqWIY.js} +1 -1
- package/dist/public/assets/_BqNoqWIY.js.br +0 -0
- package/dist/public/assets/{_6hN6Ymx42.js → _BrTLGsp82.js} +1 -1
- package/dist/public/assets/_BrTLGsp82.js.br +0 -0
- package/dist/public/assets/_Brws7C1N.js +1536 -0
- package/dist/public/assets/_Brws7C1N.js.br +0 -0
- package/dist/public/assets/{_CYemOBLN.js → _BtmFYBHk.js} +1 -1
- package/dist/public/assets/_BtmFYBHk.js.br +0 -0
- package/dist/public/assets/{_TbUx96Br.js → _BuF6uiIm.js} +1 -1
- package/dist/public/assets/_BuF6uiIm.js.br +0 -0
- package/dist/public/assets/{_J22ldpof.js → _BzULaZGs.js} +1 -1
- package/dist/public/assets/_BzULaZGs.js.br +0 -0
- package/dist/public/assets/{_BBPUNQgX.js → _CG2uZvAG.js} +1 -1
- package/dist/public/assets/_CG2uZvAG.js.br +0 -0
- package/dist/public/assets/{_CUgERK7S.js → _CIio55Q2.js} +1 -1
- package/dist/public/assets/_CIio55Q2.js.br +0 -0
- package/dist/public/assets/{_CQRIuNJi.js → _CJ_9Hl5d.js} +1 -1
- package/dist/public/assets/_CJ_9Hl5d.js.br +0 -0
- package/dist/public/assets/{_CdAkLhxG.js → _CQ-tqbUq.js} +1 -1
- package/dist/public/assets/_CQ-tqbUq.js.br +0 -0
- package/dist/public/assets/{_BicOIlC8.js → _CYLlpjQc.js} +1 -1
- package/dist/public/assets/_CYLlpjQc.js.br +0 -0
- package/dist/public/assets/{_C4B_GVHB.js → _Ca811EeR.js} +1 -1
- package/dist/public/assets/_Ca811EeR.js.br +0 -0
- package/dist/public/assets/{_J98Rxkdb2.js → _CeECfdVo2.js} +1 -1
- package/dist/public/assets/_CeECfdVo2.js.br +0 -0
- package/dist/public/assets/{_dFDJ9A9g2.js → _CeVHIZWy2.js} +1 -1
- package/dist/public/assets/_CeVHIZWy2.js.br +0 -0
- package/dist/public/assets/{_HSgzwAmZ.js → _Ces5jihM.js} +1 -1
- package/dist/public/assets/_Ces5jihM.js.br +7 -0
- package/dist/public/assets/{_DP-5FfqK2.js → _CihMY3_B2.js} +1 -1
- package/dist/public/assets/_CihMY3_B2.js.br +0 -0
- package/dist/public/assets/{_CV5RGu5i.js → _CkBv_F0f.js} +1 -1
- package/dist/public/assets/_CkBv_F0f.js.br +0 -0
- package/dist/public/assets/{_BXK6LHvo2.js → _CrPK-ZOH2.js} +1 -1
- package/dist/public/assets/_CrPK-ZOH2.js.br +0 -0
- package/dist/public/assets/{_C4tiWhG4.js → _Cv-4N4xQ.js} +1 -1
- package/dist/public/assets/_Cv-4N4xQ.js.br +0 -0
- package/dist/public/assets/{_A2tLqg9y2.js → _Cvly93xo2.js} +1 -1
- package/dist/public/assets/_Cvly93xo2.js.br +0 -0
- package/dist/public/assets/{_CYUpTPHg2.js → _CwZCc-fE2.js} +1 -1
- package/dist/public/assets/_CwZCc-fE2.js.br +0 -0
- package/dist/public/assets/{_CsM5ftwz2.js → _CwtAB8Ju2.js} +1 -1
- package/dist/public/assets/_CwtAB8Ju2.js.br +0 -0
- package/dist/public/assets/{_tshHvoEk.js → _CzMjLSTK.js} +1 -1
- package/dist/public/assets/_CzMjLSTK.js.br +0 -0
- package/dist/public/assets/{_x_T0NsDl.js → _D11ZFURg.js} +1 -1
- package/dist/public/assets/_D11ZFURg.js.br +0 -0
- package/dist/public/assets/{_CK9tV5oJ.js → _D2be5yUI.js} +1 -1
- package/dist/public/assets/_D2be5yUI.js.br +0 -0
- package/dist/public/assets/{_DoWF8ByT2.js → _D2xWjoK-2.js} +1 -1
- package/dist/public/assets/_D2xWjoK-2.js.br +0 -0
- package/dist/public/assets/{_CE6eJWkd.js → _D4V7vTBe.js} +1 -1
- package/dist/public/assets/_D4V7vTBe.js.br +0 -0
- package/dist/public/assets/{_DglnXAKo.js → _D8lg2J6H.js} +1 -1
- package/dist/public/assets/_D8lg2J6H.js.br +0 -0
- package/dist/public/assets/{_Ar4UEz40.js → _DBXfsrRd.js} +1 -1
- package/dist/public/assets/_DBXfsrRd.js.br +0 -0
- package/dist/public/assets/{_DIBThzVN.js → _DDag_nXJ.js} +1 -1
- package/dist/public/assets/_DDag_nXJ.js.br +0 -0
- package/dist/public/assets/{_Cpm5RoWi.js → _DRKLaQtq.js} +1 -1
- package/dist/public/assets/_DRKLaQtq.js.br +0 -0
- package/dist/public/assets/{_BmJ9IUv4.js → _DWctbEWg.js} +1 -1
- package/dist/public/assets/_DWctbEWg.js.br +3 -0
- package/dist/public/assets/{_CyDfS08K.js → _DZgx_rAt.js} +1 -1
- package/dist/public/assets/_DZgx_rAt.js.br +0 -0
- package/dist/public/assets/{_xVSWwNNy.js → _DdYfAoJz.js} +1 -1
- package/dist/public/assets/_DdYfAoJz.js.br +0 -0
- package/dist/public/assets/{_BzIW49zC.js → _DdnCyOPs.js} +1 -1
- package/dist/public/assets/_DdnCyOPs.js.br +0 -0
- package/dist/public/assets/{_CtcH3ZyQ2.js → _DfpMH3So2.js} +1 -1
- package/dist/public/assets/_DfpMH3So2.js.br +0 -0
- package/dist/public/assets/{_5MxjuuKr.js → _DhLWIgCs.js} +1 -1
- package/dist/public/assets/_DhLWIgCs.js.br +0 -0
- package/dist/public/assets/{_gHuYn_71.js → _DiaYv9e1.js} +1 -1
- package/dist/public/assets/_DiaYv9e1.js.br +0 -0
- package/dist/public/assets/{_B7n-BASn2.js → _DkYHMy0q2.js} +1 -1
- package/dist/public/assets/_Du-i6H8r.js +86 -0
- package/dist/public/assets/_Du-i6H8r.js.br +0 -0
- package/dist/public/assets/{_BJjI-m6s2.js → _F8phZWNM2.js} +1 -1
- package/dist/public/assets/_F8phZWNM2.js.br +0 -0
- package/dist/public/assets/{_C1oox0_T.js → _FEbRnVo7.js} +1 -1
- package/dist/public/assets/_FEbRnVo7.js.br +0 -0
- package/dist/public/assets/{_Cf4M5kpG.js → _GdcmEEuJ.js} +1 -1
- package/dist/public/assets/_GdcmEEuJ.js.br +0 -0
- package/dist/public/assets/{_JoWlQVpX.js → _N0Ea8Q_R.js} +1 -1
- package/dist/public/assets/_N0Ea8Q_R.js.br +0 -0
- package/dist/public/assets/{_JVw8w_7p2.js → _QuFTKxMO2.js} +1 -1
- package/dist/public/assets/_QuFTKxMO2.js.br +0 -0
- package/dist/public/assets/{_C_mUeGVh2.js → _cS3NYZ_K2.js} +1 -1
- package/dist/public/assets/_cS3NYZ_K2.js.br +0 -0
- package/dist/public/assets/{_Dh3HoKhq.js → _cdbANa0O.js} +1 -1
- package/dist/public/assets/_cdbANa0O.js.br +0 -0
- package/dist/public/assets/{_CpuBCvd6.js → _dBVoJwVC.js} +1 -1
- package/dist/public/assets/_dBVoJwVC.js.br +0 -0
- package/dist/public/assets/{_Cb-dgrCB.js → _fR2ilomn.js} +1 -1
- package/dist/public/assets/_fR2ilomn.js.br +0 -0
- package/dist/public/assets/{_BtxdHY0V2.js → _h6HS-Zb_2.js} +1 -1
- package/dist/public/assets/_h6HS-Zb_2.js.br +0 -0
- package/dist/public/assets/{_Bu7Rb2KV.js → _p1VLQxPw.js} +1 -1
- package/dist/public/assets/_p1VLQxPw.js.br +0 -0
- package/dist/public/assets/{_BHhGmIxX2.js → _uJTU0UZd2.js} +1 -1
- package/dist/public/assets/_uJTU0UZd2.js.br +0 -0
- package/dist/public/assets/{_B7cCygGe.js → _wc-pkVQS.js} +1 -1
- package/dist/public/assets/_wc-pkVQS.js.br +0 -0
- package/dist/public/assets/{_CZ0_xhSs2.js → _z3QzE4ht2.js} +1 -1
- package/dist/public/assets/{_B6RbG5-A.js → _zJkCtRhb.js} +1 -1
- package/dist/public/assets/_zJkCtRhb.js.br +0 -0
- package/dist/public/assets/app-page-DgsAA8Om.css +1 -0
- package/dist/public/assets/app-page-DgsAA8Om.css.br +0 -0
- package/dist/public/assets/diff-view-BqwTpf5k.css +1 -0
- package/dist/public/assets/diff-view-BqwTpf5k.css.br +0 -0
- package/dist/public/assets/new-cBa61wMi.js +1 -0
- package/dist/public/assets/settings-cBa61wMi.js +1 -0
- package/dist/public/assets/w-cBa61wMi.js +1 -0
- package/dist/public/assets/w._-B9llVTHr.js +1 -0
- package/dist/public/assets/w._-cBa61wMi.js +1 -0
- package/package.json +1 -1
- package/dist/public/assets/_5MxjuuKr.js.br +0 -0
- package/dist/public/assets/_6hN6Ymx42.js.br +0 -0
- package/dist/public/assets/_6nWMLOH4.js.br +0 -0
- package/dist/public/assets/_A2tLqg9y2.js.br +0 -0
- package/dist/public/assets/_Ar4UEz40.js.br +0 -0
- package/dist/public/assets/_B-wISkbs.js.br +0 -0
- package/dist/public/assets/_B0HJN5ud2.js.br +0 -0
- package/dist/public/assets/_B6RbG5-A.js.br +0 -0
- package/dist/public/assets/_B7cCygGe.js.br +0 -0
- package/dist/public/assets/_BBPUNQgX.js.br +0 -0
- package/dist/public/assets/_BHhGmIxX2.js.br +0 -0
- package/dist/public/assets/_BJjI-m6s2.js.br +0 -0
- package/dist/public/assets/_BJz-Y1HI.js.br +0 -0
- package/dist/public/assets/_BLeHC7zC2.js.br +0 -0
- package/dist/public/assets/_BO_BKeKC.js.br +0 -0
- package/dist/public/assets/_BVhnP3T6.js.br +0 -0
- package/dist/public/assets/_BXK6LHvo2.js.br +0 -0
- package/dist/public/assets/_BYPDDEEO2.js.br +0 -0
- package/dist/public/assets/_BbB3wFGa.js.br +0 -0
- package/dist/public/assets/_BicOIlC8.js.br +0 -0
- package/dist/public/assets/_BjVuWYXf.js.br +0 -0
- package/dist/public/assets/_BjeXgSse.js.br +0 -0
- package/dist/public/assets/_Bk7GDGa82.js.br +0 -0
- package/dist/public/assets/_BmJ9IUv4.js.br +0 -0
- package/dist/public/assets/_BtxdHY0V2.js.br +0 -0
- package/dist/public/assets/_Bu7Rb2KV.js.br +0 -0
- package/dist/public/assets/_BzIW49zC.js.br +0 -0
- package/dist/public/assets/_C1oox0_T.js.br +0 -0
- package/dist/public/assets/_C45kLCWD.js +0 -1536
- package/dist/public/assets/_C45kLCWD.js.br +0 -0
- package/dist/public/assets/_C4B_GVHB.js.br +0 -0
- package/dist/public/assets/_C4tiWhG4.js.br +0 -0
- package/dist/public/assets/_CE6eJWkd.js.br +0 -0
- package/dist/public/assets/_CHWTX_c6.js.br +0 -0
- package/dist/public/assets/_CK9tV5oJ.js.br +0 -0
- package/dist/public/assets/_CQRIuNJi.js.br +0 -0
- package/dist/public/assets/_CUgERK7S.js.br +0 -0
- package/dist/public/assets/_CV5RGu5i.js.br +0 -0
- package/dist/public/assets/_CVtWHYIm.js +0 -86
- package/dist/public/assets/_CVtWHYIm.js.br +0 -0
- package/dist/public/assets/_CYUpTPHg2.js.br +0 -0
- package/dist/public/assets/_CYemOBLN.js.br +0 -0
- package/dist/public/assets/_C_mUeGVh2.js.br +0 -0
- package/dist/public/assets/_Cb-dgrCB.js.br +0 -0
- package/dist/public/assets/_CdAkLhxG.js.br +0 -0
- package/dist/public/assets/_Cf4M5kpG.js.br +0 -0
- package/dist/public/assets/_CoGdSkvu.js.br +0 -0
- package/dist/public/assets/_Cpm5RoWi.js.br +0 -0
- package/dist/public/assets/_CpuBCvd6.js.br +0 -0
- package/dist/public/assets/_CsM5ftwz2.js.br +0 -0
- package/dist/public/assets/_CtcH3ZyQ2.js.br +0 -0
- package/dist/public/assets/_CyDfS08K.js.br +0 -0
- package/dist/public/assets/_D5qcTAVE2.js.br +0 -0
- package/dist/public/assets/_DAGSDF8g2.js.br +0 -0
- package/dist/public/assets/_DIBThzVN.js.br +0 -0
- package/dist/public/assets/_DJEzPcA82.js.br +0 -0
- package/dist/public/assets/_DLBE7zID.js.br +0 -0
- package/dist/public/assets/_DP-5FfqK2.js.br +0 -0
- package/dist/public/assets/_DglnXAKo.js.br +0 -0
- package/dist/public/assets/_Dh3HoKhq.js.br +0 -0
- package/dist/public/assets/_DkxpDwXy.js.br +0 -0
- package/dist/public/assets/_DoWF8ByT2.js.br +0 -0
- package/dist/public/assets/_HSgzwAmZ.js.br +0 -0
- package/dist/public/assets/_J22ldpof.js.br +0 -0
- package/dist/public/assets/_J98Rxkdb2.js.br +0 -0
- package/dist/public/assets/_JVw8w_7p2.js.br +0 -0
- package/dist/public/assets/_JoWlQVpX.js.br +0 -0
- package/dist/public/assets/_TbUx96Br.js.br +0 -0
- package/dist/public/assets/_akTAmktB.js.br +0 -0
- package/dist/public/assets/_dFDJ9A9g2.js.br +0 -0
- package/dist/public/assets/_gHuYn_71.js.br +0 -0
- package/dist/public/assets/_j9TQP7q5.js.br +0 -0
- package/dist/public/assets/_tshHvoEk.js.br +0 -0
- package/dist/public/assets/_xVSWwNNy.js.br +0 -0
- package/dist/public/assets/_x_T0NsDl.js.br +0 -0
- package/dist/public/assets/app-page-LDZ2KXKs.css +0 -1
- package/dist/public/assets/app-page-LDZ2KXKs.css.br +0 -0
- package/dist/public/assets/diff-view-0Uofj0Dv.css +0 -1
- package/dist/public/assets/diff-view-0Uofj0Dv.css.br +0 -0
- package/dist/public/assets/new-CwlftYMt.js +0 -1
- package/dist/public/assets/settings-CwlftYMt.js +0 -1
- package/dist/public/assets/w-CwlftYMt.js +0 -1
- package/dist/public/assets/w._-BGFF38Oe.js +0 -1
- package/dist/public/assets/w._-CwlftYMt.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
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 run, a as ensureTmuxServer, at as which, b as readHookPayload, c as killWorkspaceSessions, ct as agentById, d as newSessionArgs, dt as db, et as discoverAgents, ft as get, g as sessionStates, gt as git, h as sendToSession, ht as gh, i as disposeSessions, it as setupPath, j as setSessionViewers, k as setAgentPhase, l as listSessions, lt as toolById, m as renameSession, mt as TMUX_SOCKET, n as clearTmuxStarted, nt as ghKnownHosts, o as getSession, ot as DEFAULT_GITHUB_HOST, p as panePids, pt as workspacePath, 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 all, v as tmuxWasStarted, vt as tmux, w as agentFamily, x as reportsWorking, y as AGENTS, yt as config, z as pushPublicKey } from "./_DE2RUdbF.js";
|
|
3
|
-
import { $ as
|
|
3
|
+
import { $ as _attrs_partial, A as parseRepoUrl, At as _var, B as metaTrunc, C as setWorkspaceTab, Ct as _serialize_guard, D as toast_default, Dt as _template, E as workspaceTab, Et as _subscribe, F as btnSm, G as _attr_class, H as tone, J as _attr_option_value, L as iconBtnRow, M as repoWebUrl$1, Mt as forOf, N as setPrimaryHost, Nt as withPageAssets, O as icon_xmark_default, Ot as _to_text, P as btnLg, Pt as writeScope, Q as _attrs, R as iconBtnXs, S as setTheme, St as _sep, T as theme, Tt as _set_serialize_reason, U as $global, V as phase, W as _attr, X as _attr_select_value, Y as _attr_or, Z as _attr_style, _t as _resume_branch, at as _el_resume, bt as _scope_with_id, c as icon_arrow_up_default, ct as _flush_head, d as icon_refresh_default, dt as _hoist_read_error, et as _content, f as iconBtn$2, ft as _html, gt as _resume, ht as _peek_scope_id, i as icon_sidebar_default, it as _el_read_error, j as repoLabel, jt as attrTag, k as icon_base_default, kt as _trailers, l as icon_chevron_right_default, lt as _for_of, m as sectionCount$1, mt as _if, n as findIconBtn, nt as _dynamic_tag, o as rankRepos, ot as _escape, p as row, pt as _id, q as _attr_input_value, r as findInput, s as icon_search_default, st as _existing_scope, t as icon_arrow_down_default, tt as _content_resume, u as icon_back_default, ut as _hoist, vt as _scope_id, w as sideNavOpen, wt as _serialize_if, xt as _script, y as ignoredSsoOrgs, yt as _scope_reason, z as inputLg } from "./_DEBFGwto.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
import path from "node:path";
|
|
@@ -1619,7 +1619,7 @@ function swr(ttlMs, load, seed) {
|
|
|
1619
1619
|
}
|
|
1620
1620
|
//#endregion
|
|
1621
1621
|
//#region src/server/github.ts
|
|
1622
|
-
var TTL_MS$
|
|
1622
|
+
var TTL_MS$4 = 9e5;
|
|
1623
1623
|
/** github.com keeps the historical file name; Enterprise hosts get their own. */
|
|
1624
1624
|
var cachePath = (host) => path.join(config.dataDir, host === DEFAULT_HOST ? "repos.json" : `repos.${host}.json`);
|
|
1625
1625
|
/**
|
|
@@ -1644,7 +1644,7 @@ async function repoCatalog(refresh = false) {
|
|
|
1644
1644
|
...sso.length ? { sso } : {}
|
|
1645
1645
|
};
|
|
1646
1646
|
}
|
|
1647
|
-
var catalog = swr(TTL_MS$
|
|
1647
|
+
var catalog = swr(TTL_MS$4, fetchCatalog, readDiskCache);
|
|
1648
1648
|
function readDiskCache(host) {
|
|
1649
1649
|
try {
|
|
1650
1650
|
const cached = JSON.parse(fs.readFileSync(cachePath(host), "utf8"));
|
|
@@ -3119,7 +3119,7 @@ function head1(context) {
|
|
|
3119
3119
|
}
|
|
3120
3120
|
//#endregion
|
|
3121
3121
|
//#region src/server/usage/index.ts
|
|
3122
|
-
var TTL_MS$
|
|
3122
|
+
var TTL_MS$3 = 6e4;
|
|
3123
3123
|
/** Plan/quota usage across every agent account this machine is signed into.
|
|
3124
3124
|
*
|
|
3125
3125
|
* Each provider is one blocking HTTPS round trip against the same endpoint its
|
|
@@ -3138,7 +3138,7 @@ function staleSeconds(source) {
|
|
|
3138
3138
|
const match = /^stale-cache\s+(\d+)s/.exec(source);
|
|
3139
3139
|
return match ? Number(match[1]) : void 0;
|
|
3140
3140
|
}
|
|
3141
|
-
var cached$2 = swr(TTL_MS$
|
|
3141
|
+
var cached$2 = swr(TTL_MS$3, (_key, _refresh) => collect());
|
|
3142
3142
|
function shape(rows) {
|
|
3143
3143
|
return { agents: rows.map((row) => ({
|
|
3144
3144
|
agent: row.agent,
|
|
@@ -3202,7 +3202,7 @@ async function graphql(query, host = DEFAULT_HOST) {
|
|
|
3202
3202
|
}
|
|
3203
3203
|
//#endregion
|
|
3204
3204
|
//#region src/server/prs.ts
|
|
3205
|
-
var TTL_MS$
|
|
3205
|
+
var TTL_MS$2 = 12e4;
|
|
3206
3206
|
/** PRs whose head is the workspace branch or one of its `-topic` lanes.
|
|
3207
3207
|
* `exclude` lists other workspaces' branches — slugs are user-chosen, so
|
|
3208
3208
|
* another workspace's branch can extend this prefix and its PRs must not
|
|
@@ -3219,7 +3219,7 @@ var branchKey = (fullName, branch) => `${fullName}#${branch}`;
|
|
|
3219
3219
|
* a recency window over all of a repo's PRs, fetched roughly twice what it
|
|
3220
3220
|
* kept here and still aged a quiet workspace out on a busy repo.
|
|
3221
3221
|
* Key: `fullName#branch`. */
|
|
3222
|
-
var branchPrs = swr(TTL_MS$
|
|
3222
|
+
var branchPrs = swr(TTL_MS$2, async (key, refresh) => {
|
|
3223
3223
|
const sep = key.indexOf("#");
|
|
3224
3224
|
const fullName = key.slice(0, sep);
|
|
3225
3225
|
const { host, name } = splitRepo(fullName);
|
|
@@ -3449,20 +3449,20 @@ var exists = (file) => fsp.stat(file).then(() => true, () => false);
|
|
|
3449
3449
|
var isDir = (file) => fsp.stat(file).then((s) => s.isDirectory(), () => false);
|
|
3450
3450
|
//#endregion
|
|
3451
3451
|
//#region src/server/status.ts
|
|
3452
|
-
var TTL_MS = 2e3;
|
|
3452
|
+
var TTL_MS$1 = 2e3;
|
|
3453
3453
|
var snapshot$2 = null;
|
|
3454
|
-
var inflight = null;
|
|
3454
|
+
var inflight$1 = null;
|
|
3455
3455
|
var snapshotGen = 0;
|
|
3456
3456
|
/** Drop the cached snapshot AND detach any in-flight compute — callers
|
|
3457
3457
|
* after an invalidation get a computation that starts from fresh state. */
|
|
3458
3458
|
function invalidateSnapshot() {
|
|
3459
3459
|
snapshot$2 = null;
|
|
3460
3460
|
snapshotGen++;
|
|
3461
|
-
inflight = null;
|
|
3461
|
+
inflight$1 = null;
|
|
3462
3462
|
}
|
|
3463
3463
|
function statusForAll() {
|
|
3464
|
-
if (snapshot$2 && Date.now() - snapshot$2.at < TTL_MS) return Promise.resolve(snapshot$2.value);
|
|
3465
|
-
if (!inflight) {
|
|
3464
|
+
if (snapshot$2 && Date.now() - snapshot$2.at < TTL_MS$1) return Promise.resolve(snapshot$2.value);
|
|
3465
|
+
if (!inflight$1) {
|
|
3466
3466
|
const gen = snapshotGen;
|
|
3467
3467
|
const run = computeStatus().then((value) => {
|
|
3468
3468
|
if (gen === snapshotGen) snapshot$2 = {
|
|
@@ -3471,11 +3471,11 @@ function statusForAll() {
|
|
|
3471
3471
|
};
|
|
3472
3472
|
return value;
|
|
3473
3473
|
}).finally(() => {
|
|
3474
|
-
if (inflight === run) inflight = null;
|
|
3474
|
+
if (inflight$1 === run) inflight$1 = null;
|
|
3475
3475
|
});
|
|
3476
|
-
inflight = run;
|
|
3476
|
+
inflight$1 = run;
|
|
3477
3477
|
}
|
|
3478
|
-
return inflight;
|
|
3478
|
+
return inflight$1;
|
|
3479
3479
|
}
|
|
3480
3480
|
/** Push-based freshness: while any events-bus client is connected,
|
|
3481
3481
|
* recompute the (shared, deduped) snapshot on a slow tick and publish it
|
|
@@ -3844,18 +3844,48 @@ function duration(ms) {
|
|
|
3844
3844
|
}
|
|
3845
3845
|
//#endregion
|
|
3846
3846
|
//#region src/client/usage.ts
|
|
3847
|
+
/** One client-side copy of /api/usage, shared by Settings and the session
|
|
3848
|
+
* switcher. The server already caches per minute and revalidates in the
|
|
3849
|
+
* background; this only stops two surfaces on one page from asking twice
|
|
3850
|
+
* within that minute. A forced refresh bypasses both. */
|
|
3851
|
+
var TTL_MS = 6e4;
|
|
3847
3852
|
var cached$1 = null;
|
|
3848
|
-
|
|
3853
|
+
var inflight = null;
|
|
3854
|
+
var subscribers = /* @__PURE__ */ new Set();
|
|
3855
|
+
function setCached(value) {
|
|
3856
|
+
cached$1 = {
|
|
3857
|
+
at: Date.now(),
|
|
3858
|
+
value
|
|
3859
|
+
};
|
|
3860
|
+
for (const listener of subscribers) listener(value);
|
|
3861
|
+
}
|
|
3862
|
+
function lastUsage() {
|
|
3849
3863
|
return cached$1?.value ?? null;
|
|
3850
3864
|
}
|
|
3851
3865
|
/** Prime the store with the server's cached snapshot (SSR and resume), so
|
|
3852
3866
|
* the first render has numbers. Stamped as fresh: the server already
|
|
3853
3867
|
* revalidates its own copy in the background. */
|
|
3854
3868
|
function seedUsage(value) {
|
|
3855
|
-
if (value && !cached$1)
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3869
|
+
if (value && !cached$1) setCached(value);
|
|
3870
|
+
}
|
|
3871
|
+
function getUsage(refresh = false) {
|
|
3872
|
+
if (!refresh) {
|
|
3873
|
+
if (cached$1 && Date.now() - cached$1.at < TTL_MS) return Promise.resolve(cached$1.value);
|
|
3874
|
+
if (inflight) return inflight;
|
|
3875
|
+
}
|
|
3876
|
+
inflight = api$7(`/api/usage${refresh ? "?refresh" : ""}`).then((value) => {
|
|
3877
|
+
setCached(value);
|
|
3878
|
+
return value;
|
|
3879
|
+
}).catch((err) => {
|
|
3880
|
+
const error = String(err.message || err);
|
|
3881
|
+
return {
|
|
3882
|
+
...cached$1?.value,
|
|
3883
|
+
error
|
|
3884
|
+
};
|
|
3885
|
+
}).finally(() => {
|
|
3886
|
+
inflight = null;
|
|
3887
|
+
});
|
|
3888
|
+
return inflight;
|
|
3859
3889
|
}
|
|
3860
3890
|
/** The plan row an agent instance draws on: its own account (`claude2`)
|
|
3861
3891
|
* when the provider reports per account, else the family's (`codex`). */
|
|
@@ -3986,28 +4016,28 @@ function applyInstance(inst) {
|
|
|
3986
4016
|
}
|
|
3987
4017
|
//#endregion
|
|
3988
4018
|
//#region src/tags/settings-page.css.ts
|
|
3989
|
-
var content$2 = "
|
|
3990
|
-
var agentGrid = "
|
|
3991
|
-
var toolGrid = "
|
|
3992
|
-
var themeSeg = "
|
|
3993
|
-
var swatches = "
|
|
4019
|
+
var content$2 = "_cc _bp _bq";
|
|
4020
|
+
var agentGrid = "_ci _bA";
|
|
4021
|
+
var toolGrid = "_cs _bA";
|
|
4022
|
+
var themeSeg = "_cH _6";
|
|
4023
|
+
var swatches = "_cP _6";
|
|
3994
4024
|
//#endregion
|
|
3995
4025
|
//#region src/tags/page-head.marko
|
|
3996
4026
|
var page_head_default = _template("r", (input) => {
|
|
3997
4027
|
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);
|
|
3998
4028
|
const $scope0_id = _scope_id();
|
|
3999
|
-
_html(`<header${_attr_class("
|
|
4029
|
+
_html(`<header${_attr_class("_br")}>`);
|
|
4000
4030
|
_if(() => {
|
|
4001
4031
|
if (input.backHref) {
|
|
4002
4032
|
const $scope1_id = _scope_id();
|
|
4003
|
-
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "
|
|
4033
|
+
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_c2"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
4004
4034
|
icon_back_default({ size: 16 });
|
|
4005
4035
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
4006
4036
|
_serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
|
|
4007
4037
|
return 0;
|
|
4008
4038
|
} else if (input.onBack) {
|
|
4009
4039
|
const $scope2_id = _scope_id();
|
|
4010
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
4040
|
+
_html(`<button${_attr_class([iconBtnRow, "_c2"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
4011
4041
|
icon_back_default({ size: 16 });
|
|
4012
4042
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
4013
4043
|
_script($scope2_id, "r0");
|
|
@@ -4015,11 +4045,11 @@ var page_head_default = _template("r", (input) => {
|
|
|
4015
4045
|
return 1;
|
|
4016
4046
|
}
|
|
4017
4047
|
}, $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);
|
|
4018
|
-
_html(`<div${_attr_class("
|
|
4048
|
+
_html(`<div${_attr_class("_bt")}><h1${_attr("id", input.titleId)}${_attr_class("_bs")}>${_escape(input.title)}${_el_resume($scope0_id, "e", _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
|
|
4019
4049
|
_if(() => {
|
|
4020
4050
|
if (input.meta) {
|
|
4021
4051
|
const $scope3_id = _scope_id();
|
|
4022
|
-
_html(`<p${_attr_class("
|
|
4052
|
+
_html(`<p${_attr_class("_bu")}>`);
|
|
4023
4053
|
_dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
4024
4054
|
_html("</p>");
|
|
4025
4055
|
$si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -4030,7 +4060,7 @@ var page_head_default = _template("r", (input) => {
|
|
|
4030
4060
|
_if(() => {
|
|
4031
4061
|
if (input.actions) {
|
|
4032
4062
|
const $scope4_id = _scope_id();
|
|
4033
|
-
_html(`<div${_attr_class("
|
|
4063
|
+
_html(`<div${_attr_class("_bv")}>`);
|
|
4034
4064
|
_dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
4035
4065
|
_html("</div>");
|
|
4036
4066
|
$si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -4098,7 +4128,7 @@ var icon_agent_default = _template("G", (input) => {
|
|
|
4098
4128
|
n: $badge__closures
|
|
4099
4129
|
});
|
|
4100
4130
|
});
|
|
4101
|
-
var usageNote = "
|
|
4131
|
+
var usageNote = "_fd _R";
|
|
4102
4132
|
//#endregion
|
|
4103
4133
|
//#region src/tags/icons/icon-warning.marko
|
|
4104
4134
|
var icon_warning_default = _template("jb", (input) => {
|
|
@@ -4128,11 +4158,11 @@ var usage_meters_default = _template("D", (input) => {
|
|
|
4128
4158
|
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);
|
|
4129
4159
|
const $scope0_id = _scope_id();
|
|
4130
4160
|
const agent = input.agent;
|
|
4131
|
-
_html(`<div${_attr_class(["
|
|
4161
|
+
_html(`<div${_attr_class(["_e8", { ["_e9"]: input.hideName }])}><div${_attr_class("_e_")}>`);
|
|
4132
4162
|
_if(() => {
|
|
4133
4163
|
if (!input.hideName) {
|
|
4134
4164
|
const $scope1_id = _scope_id();
|
|
4135
|
-
_html(`<strong${_attr_class("
|
|
4165
|
+
_html(`<strong${_attr_class("_fs")}>${_escape(agent.agent)}${_el_resume($scope1_id, "b", $sg__input_agent)}</strong>`);
|
|
4136
4166
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
4137
4167
|
return 0;
|
|
4138
4168
|
}
|
|
@@ -4140,7 +4170,7 @@ var usage_meters_default = _template("D", (input) => {
|
|
|
4140
4170
|
_if(() => {
|
|
4141
4171
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
4142
4172
|
const $scope2_id = _scope_id();
|
|
4143
|
-
_html(`<span${_attr_class("
|
|
4173
|
+
_html(`<span${_attr_class("_fa")}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope2_id, "b", $sg__input_agent)}</span>`);
|
|
4144
4174
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
4145
4175
|
return 0;
|
|
4146
4176
|
}
|
|
@@ -4148,21 +4178,21 @@ var usage_meters_default = _template("D", (input) => {
|
|
|
4148
4178
|
_if(() => {
|
|
4149
4179
|
if (agent.stale_seconds != null) {
|
|
4150
4180
|
const $scope3_id = _scope_id();
|
|
4151
|
-
_html(`<span${_attr_class("
|
|
4181
|
+
_html(`<span${_attr_class("_fb")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
|
|
4152
4182
|
icon_warning_default({ size: 12 });
|
|
4153
4183
|
_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)}`);
|
|
4154
4184
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
4155
4185
|
return 0;
|
|
4156
4186
|
}
|
|
4157
4187
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
4158
|
-
_html(`</div><div${_attr_class(["
|
|
4188
|
+
_html(`</div><div${_attr_class(["_fc", { ["_ft"]: agent.stale_seconds != null }])}>`);
|
|
4159
4189
|
_for_of(agent.windows || [], (win) => {
|
|
4160
4190
|
const $scope4_id = _scope_id();
|
|
4161
4191
|
const pct = pctText(win.used_percent);
|
|
4162
4192
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
4163
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
4164
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
4165
|
-
_html(`<div${_attr_class("
|
|
4193
|
+
const fillClass = win.used_percent >= 90 ? "_fl" : win.used_percent >= 70 ? "_fk" : win.used_percent >= 40 ? "_fj" : "_fi";
|
|
4194
|
+
const pctClass = win.used_percent >= 90 ? "_fq" : win.used_percent >= 70 ? "_fp" : win.used_percent >= 40 ? "_fo" : "_fn";
|
|
4195
|
+
_html(`<div${_attr_class("_fe")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_ff")}>${_escape(win.window)}${_el_resume($scope4_id, "c", $sg__input_agent)}</span><span${_attr_class("_fg")}><span${_attr_class(["_fh", 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(["_fm", pctClass])}>${_escape(pct)}${_el_resume($scope4_id, "g", $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_fr")}>`);
|
|
4166
4196
|
_if(() => {
|
|
4167
4197
|
if (label) {
|
|
4168
4198
|
const $scope6_id = _scope_id();
|
|
@@ -4194,6 +4224,7 @@ var usage_meters_default = _template("D", (input) => {
|
|
|
4194
4224
|
q: $si__input_agent && agent?.note
|
|
4195
4225
|
});
|
|
4196
4226
|
});
|
|
4227
|
+
var orgSkip = "_eZ _1 _j";
|
|
4197
4228
|
//#endregion
|
|
4198
4229
|
//#region src/tags/sso-auth.marko
|
|
4199
4230
|
var api$6;
|
|
@@ -4241,14 +4272,14 @@ var sso_auth_default = _template("z", (input) => {
|
|
|
4241
4272
|
localCode = null;
|
|
4242
4273
|
}
|
|
4243
4274
|
}, "z0", $scope0_id);
|
|
4244
|
-
_html(`<div${_attr_class("
|
|
4275
|
+
_html(`<div${_attr_class("_eW")}>`);
|
|
4245
4276
|
_if(() => {
|
|
4246
4277
|
if (input.items.length) {
|
|
4247
4278
|
const $scope1_id = _scope_id();
|
|
4248
|
-
_html(`<p${_attr_class("
|
|
4279
|
+
_html(`<p${_attr_class("_e7")}>GitHub CLI needs org SSO for ${_sep($sg__input_items)}${_escape(input.items.map((s) => s.org).join(", "))}${_el_resume($scope1_id, "b", $sg__input_items)}.</p><ul${_attr_class("_eX")}>`);
|
|
4249
4280
|
_for_of(input.items, (s) => {
|
|
4250
4281
|
const $scope2_id = _scope_id();
|
|
4251
|
-
_html(`<li${_attr_class("
|
|
4282
|
+
_html(`<li${_attr_class("_eY")}>${_escape(s.org)}${_el_resume($scope2_id, "b", $sg__input_items)}<button type=button${_attr_class(orgSkip)}${_attr("title", `Skip ${s.org}`)}${_attr("aria-label", `Skip ${s.org}`)}${_attr("disabled", busy)}>`);
|
|
4252
4283
|
icon_xmark_default({ size: 11 });
|
|
4253
4284
|
_html(`</button>${_el_resume($scope2_id, "c")}</li>`);
|
|
4254
4285
|
_script($scope2_id, "z1");
|
|
@@ -4257,17 +4288,17 @@ var sso_auth_default = _template("z", (input) => {
|
|
|
4257
4288
|
_: _scope_with_id($scope1_id)
|
|
4258
4289
|
}));
|
|
4259
4290
|
}, "org", $scope1_id, "c", $sg__input_items, $sg__input_items, $sg__input_items, "</ul>", 1);
|
|
4260
|
-
_html(`<div${_attr_class("
|
|
4291
|
+
_html(`<div${_attr_class("_e0")}>`);
|
|
4261
4292
|
_if(() => {
|
|
4262
4293
|
if (busy && authCode$2) {
|
|
4263
4294
|
const $scope5_id = _scope_id();
|
|
4264
|
-
_html(`<span${_attr_class("
|
|
4295
|
+
_html(`<span${_attr_class("_e1")}><span${_attr_class("_E")}></span> Enter code <strong${_attr_class("_e2")}>${_escape(authCode$2)}${_el_resume($scope5_id, "d")}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_e3")}>${_escape(host)}${_el_resume($scope5_id, "f", _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope5_id, "e")}</span>`);
|
|
4265
4296
|
_script($scope5_id, "z2");
|
|
4266
4297
|
_subscribe($authCode__closures, _subscribe($si__input_items_0_host && $host__closures, writeScope($scope5_id, {})));
|
|
4267
4298
|
return 0;
|
|
4268
4299
|
} else if (busy) {
|
|
4269
4300
|
const $scope8_id = _scope_id();
|
|
4270
|
-
_html(`<span${_attr_class("
|
|
4301
|
+
_html(`<span${_attr_class("_e1")}><span${_attr_class("_E")}></span>Starting GitHub re-authorization…</span>`);
|
|
4271
4302
|
writeScope($scope8_id, {});
|
|
4272
4303
|
return 1;
|
|
4273
4304
|
} else {
|
|
@@ -4281,7 +4312,7 @@ var sso_auth_default = _template("z", (input) => {
|
|
|
4281
4312
|
_if(() => {
|
|
4282
4313
|
if (localError) {
|
|
4283
4314
|
const $scope6_id = _scope_id();
|
|
4284
|
-
_html(`<p${_attr_class("
|
|
4315
|
+
_html(`<p${_attr_class("_e7")}>${_escape(localError)}${_el_resume($scope6_id, "b")}</p>`);
|
|
4285
4316
|
_subscribe($localError__closures, writeScope($scope6_id, {}));
|
|
4286
4317
|
return 0;
|
|
4287
4318
|
}
|
|
@@ -4293,10 +4324,10 @@ var sso_auth_default = _template("z", (input) => {
|
|
|
4293
4324
|
_if(() => {
|
|
4294
4325
|
if (skipped$1.length) {
|
|
4295
4326
|
const $scope3_id = _scope_id();
|
|
4296
|
-
_html(`<p${_attr_class("
|
|
4327
|
+
_html(`<p${_attr_class("_e4")}>Skipped SSO for `);
|
|
4297
4328
|
_for_of(skipped$1, (s) => {
|
|
4298
4329
|
const $scope4_id = _scope_id();
|
|
4299
|
-
_html(`<span${_attr_class("
|
|
4330
|
+
_html(`<span${_attr_class("_e5")}>${_escape(s.org)}${_el_resume($scope4_id, "b", $sg__input_skipped)}<button type=button${_attr_class("_e6")}${_attr("title", `Show ${s.org} again`)}>(undo)</button>${_el_resume($scope4_id, "c")}</span>`);
|
|
4300
4331
|
_script($scope4_id, "z4");
|
|
4301
4332
|
writeScope($scope4_id, {
|
|
4302
4333
|
f: s?.org,
|
|
@@ -4371,7 +4402,7 @@ var modal_view_default = _template("p", (input) => {
|
|
|
4371
4402
|
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;
|
|
4372
4403
|
const dismissable = input.dismissable !== false;
|
|
4373
4404
|
let open = input.open;
|
|
4374
|
-
_html(`<dialog${_attr_class(["
|
|
4405
|
+
_html(`<dialog${_attr_class(["_hq", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
4375
4406
|
...htmlInput,
|
|
4376
4407
|
open: null
|
|
4377
4408
|
}, {
|
|
@@ -4381,20 +4412,20 @@ var modal_view_default = _template("p", (input) => {
|
|
|
4381
4412
|
closedby: 1,
|
|
4382
4413
|
"on-cancel": 1,
|
|
4383
4414
|
"on-close": 1
|
|
4384
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
4415
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_hr")}>`);
|
|
4385
4416
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
4386
4417
|
_html("</div>");
|
|
4387
4418
|
_if(() => {
|
|
4388
4419
|
if (footer) {
|
|
4389
4420
|
const $scope1_id = _scope_id();
|
|
4390
|
-
_html(`<form method=dialog${_attr_class("
|
|
4421
|
+
_html(`<form method=dialog${_attr_class("_hs")}>`);
|
|
4391
4422
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
4392
4423
|
_html("</form>");
|
|
4393
4424
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
4394
4425
|
return 0;
|
|
4395
4426
|
} else if (input.openChange) {
|
|
4396
4427
|
const $scope2_id = _scope_id();
|
|
4397
|
-
_html(`<form method=dialog${_attr_class("
|
|
4428
|
+
_html(`<form method=dialog${_attr_class("_hs")}>`);
|
|
4398
4429
|
dialog_close_default({
|
|
4399
4430
|
class: ["_o", "_p"],
|
|
4400
4431
|
content: _content("p0", () => {
|
|
@@ -4453,7 +4484,7 @@ var prompt_dialog_default = _template("s", (input) => {
|
|
|
4453
4484
|
const $childScope = _peek_scope_id();
|
|
4454
4485
|
modal_view_default({
|
|
4455
4486
|
label: input.label,
|
|
4456
|
-
class: "
|
|
4487
|
+
class: "_eU",
|
|
4457
4488
|
open: input.open,
|
|
4458
4489
|
openChange: input.openChange,
|
|
4459
4490
|
"aria-labelledby": titleId,
|
|
@@ -4476,7 +4507,7 @@ var prompt_dialog_default = _template("s", (input) => {
|
|
|
4476
4507
|
content: _content("s6", () => {
|
|
4477
4508
|
_scope_reason();
|
|
4478
4509
|
const $scope2_id = _scope_id();
|
|
4479
|
-
_html(`<h2${_attr_class("
|
|
4510
|
+
_html(`<h2${_attr_class("_eV")}${_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) => {
|
|
4480
4511
|
value = _new_value;
|
|
4481
4512
|
}, "s0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
4482
4513
|
_script($scope2_id, "s4");
|
|
@@ -4515,22 +4546,11 @@ function familyOf(usageAgent, families) {
|
|
|
4515
4546
|
return families.find((f) => new RegExp(`^${f.id}\\d*$`).test(usageAgent))?.id ?? null;
|
|
4516
4547
|
}
|
|
4517
4548
|
var lastSetup = null;
|
|
4518
|
-
var lastUsage = null;
|
|
4519
4549
|
var lastSkills = null;
|
|
4520
|
-
function skillInstalls(n) {
|
|
4521
|
-
if (n >= 1e6) return `${(n / 1e6).toFixed(1)}M`;
|
|
4522
|
-
if (n >= 1e3) return `${Math.round(n / 1e3)}k`;
|
|
4523
|
-
return String(n);
|
|
4524
|
-
}
|
|
4525
|
-
function looksLikeSource(q) {
|
|
4526
|
-
const s = q.trim();
|
|
4527
|
-
return s.includes("/") && !/\s/.test(s);
|
|
4528
|
-
}
|
|
4529
4550
|
var settings_page_default = _template("v", (input) => {
|
|
4530
4551
|
const $scope0_reason = _scope_reason(), $sg__input_backHref__OR__input_onExit = _serialize_guard($scope0_reason, 1), $sg__input_agents = _serialize_guard($scope0_reason, 5), $sg__input_instance_accent = _serialize_guard($scope0_reason, 6), $si__input_instance__OR__input_instanceChange = _serialize_if($scope0_reason, 0), $si__input_preferred = _serialize_if($scope0_reason, 3), $si__input_setupChange = _serialize_if($scope0_reason, 2);
|
|
4531
4552
|
const $scope0_id = _scope_id();
|
|
4532
4553
|
const $setup_missing__closures = /* @__PURE__ */ new Set();
|
|
4533
|
-
const $setup2__closures = /* @__PURE__ */ new Set();
|
|
4534
4554
|
const $refreshing__closures = /* @__PURE__ */ new Set();
|
|
4535
4555
|
const $error__closures = /* @__PURE__ */ new Set();
|
|
4536
4556
|
const $self_latest__closures = /* @__PURE__ */ new Set();
|
|
@@ -4543,12 +4563,20 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4543
4563
|
const $refresh2__closures = /* @__PURE__ */ new Set();
|
|
4544
4564
|
const $run2__closures = /* @__PURE__ */ new Set();
|
|
4545
4565
|
const $self_install__closures = /* @__PURE__ */ new Set();
|
|
4566
|
+
const $selfUpdating__closures = /* @__PURE__ */ new Set();
|
|
4546
4567
|
const $hits__closures = /* @__PURE__ */ new Set();
|
|
4547
4568
|
const $query__closures = /* @__PURE__ */ new Set();
|
|
4569
|
+
const $searching__closures = /* @__PURE__ */ new Set();
|
|
4570
|
+
const $search2__closures = /* @__PURE__ */ new Set();
|
|
4548
4571
|
const $confirmingSkill__closures = /* @__PURE__ */ new Set();
|
|
4572
|
+
const $skills__closures = /* @__PURE__ */ new Set();
|
|
4573
|
+
const $skills_available__closures = /* @__PURE__ */ new Set();
|
|
4549
4574
|
const $skillQuery__closures = /* @__PURE__ */ new Set();
|
|
4575
|
+
const $skillHits__closures = /* @__PURE__ */ new Set();
|
|
4576
|
+
const $skillSearching__closures = /* @__PURE__ */ new Set();
|
|
4577
|
+
const $searchSkills2__closures = /* @__PURE__ */ new Set();
|
|
4550
4578
|
let setup = input.setup || lastSetup;
|
|
4551
|
-
let usage = lastUsage;
|
|
4579
|
+
let usage = lastUsage();
|
|
4552
4580
|
let error = null;
|
|
4553
4581
|
let refreshing = false;
|
|
4554
4582
|
let usageRefreshing = false;
|
|
@@ -4571,6 +4599,8 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4571
4599
|
let skillSearching = false;
|
|
4572
4600
|
let confirmingSkill = null;
|
|
4573
4601
|
const skillTimer = { id: 0 };
|
|
4602
|
+
let machineOpen = false;
|
|
4603
|
+
let skillsOpen = false;
|
|
4574
4604
|
const setThemeMode = _resume((mode) => {
|
|
4575
4605
|
themeMode = mode;
|
|
4576
4606
|
setTheme(mode);
|
|
@@ -4580,6 +4610,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4580
4610
|
const applySetup = _resume((s) => {
|
|
4581
4611
|
setup = s;
|
|
4582
4612
|
lastSetup = s;
|
|
4613
|
+
if (!s.ready) machineOpen = true;
|
|
4583
4614
|
setPrimaryHost(s.github);
|
|
4584
4615
|
input.setupChange?.(s);
|
|
4585
4616
|
}, "v8", $scope0_id);
|
|
@@ -4628,14 +4659,9 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4628
4659
|
};
|
|
4629
4660
|
setTimeout(tick, 4e3);
|
|
4630
4661
|
}, "v12", $scope0_id);
|
|
4631
|
-
const loadUsage = _resume(
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
} catch (err) {
|
|
4635
|
-
usage = { error: String(err.message || err) };
|
|
4636
|
-
}
|
|
4637
|
-
lastUsage = usage;
|
|
4638
|
-
}, "v13", $scope0_id);
|
|
4662
|
+
const loadUsage = _resume((refresh) => getUsage(refresh).then((u) => {
|
|
4663
|
+
usage = u;
|
|
4664
|
+
}), "v13", $scope0_id);
|
|
4639
4665
|
const refresh = _resume(async () => {
|
|
4640
4666
|
refreshing = true;
|
|
4641
4667
|
await Promise.all([loadSetup(true), loadSelf(true)]);
|
|
@@ -4858,43 +4884,29 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4858
4884
|
const githubId = _id();
|
|
4859
4885
|
const machineId = _id();
|
|
4860
4886
|
const skillsId = _id();
|
|
4861
|
-
_html(`<div${_attr_class("
|
|
4887
|
+
_html(`<div${_attr_class("_bn")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bo")}><div${_attr_class(content$2)}>`);
|
|
4862
4888
|
_set_serialize_reason({
|
|
4863
4889
|
0: _serialize_guard($scope0_reason, 4),
|
|
4864
4890
|
1: $sg__input_backHref__OR__input_onExit,
|
|
4865
4891
|
2: $sg__input_backHref__OR__input_onExit,
|
|
4866
|
-
3:
|
|
4892
|
+
3: 1,
|
|
4893
|
+
6: 1
|
|
4867
4894
|
});
|
|
4895
|
+
let $meta;
|
|
4896
|
+
if (setup && !setup.ready) $meta = attrTag({ content: _content_resume("v37", () => {
|
|
4897
|
+
_scope_reason();
|
|
4898
|
+
const $scope5_id = _scope_id();
|
|
4899
|
+
_html(`<span${_attr_class("_ce")}>Not ready</span>. Missing <!>${_escape(setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "))}${_el_resume($scope5_id, "b")}.`);
|
|
4900
|
+
_subscribe($setup_missing__closures, writeScope($scope5_id, { _: _scope_with_id($scope0_id) }));
|
|
4901
|
+
_resume_branch($scope5_id);
|
|
4902
|
+
}, $scope0_id) });
|
|
4868
4903
|
const $childScope2 = _peek_scope_id();
|
|
4869
4904
|
page_head_default({
|
|
4870
4905
|
title: "Settings",
|
|
4871
4906
|
titleId,
|
|
4872
4907
|
backHref: input.backHref,
|
|
4873
4908
|
onBack: input.onExit && _resume(() => input.onExit?.(), "v29", $scope0_id),
|
|
4874
|
-
meta:
|
|
4875
|
-
_scope_reason();
|
|
4876
|
-
const $scope5_id = _scope_id();
|
|
4877
|
-
_if(() => {
|
|
4878
|
-
if (!setup) {
|
|
4879
|
-
const $scope66_id = _scope_id();
|
|
4880
|
-
_html("Checking this machine…");
|
|
4881
|
-
writeScope($scope66_id, {});
|
|
4882
|
-
return 0;
|
|
4883
|
-
} else if (setup.ready) {
|
|
4884
|
-
const $scope67_id = _scope_id();
|
|
4885
|
-
_html(`<span${_attr_class("_cd")}>Ready</span>. Tools, GitHub, and an agent are all in place.`);
|
|
4886
|
-
writeScope($scope67_id, {});
|
|
4887
|
-
return 1;
|
|
4888
|
-
} else {
|
|
4889
|
-
const $scope6_id = _scope_id();
|
|
4890
|
-
_html(`<span${_attr_class("_ce")}>Not ready</span>. Missing <!>${_escape(setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "))}${_el_resume($scope6_id, "b")}.`);
|
|
4891
|
-
_subscribe($setup_missing__closures, writeScope($scope6_id, {}));
|
|
4892
|
-
return 2;
|
|
4893
|
-
}
|
|
4894
|
-
}, $scope5_id, "a");
|
|
4895
|
-
_subscribe($setup2__closures, writeScope($scope5_id, { _: _scope_with_id($scope0_id) }));
|
|
4896
|
-
_resume_branch($scope5_id);
|
|
4897
|
-
}, $scope0_id) }),
|
|
4909
|
+
meta: $meta,
|
|
4898
4910
|
actions: attrTag({ content: _content_resume("v38", () => {
|
|
4899
4911
|
_scope_reason();
|
|
4900
4912
|
const $scope10_id = _scope_id();
|
|
@@ -4936,40 +4948,40 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4936
4948
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
4937
4949
|
_if(() => {
|
|
4938
4950
|
if (selfUpdatePending || selfUpdating) {
|
|
4939
|
-
const $
|
|
4940
|
-
_html(`<div${_attr_class("
|
|
4951
|
+
const $scope46_id = _scope_id();
|
|
4952
|
+
_html(`<div${_attr_class("_cL")} role=status><div${_attr_class("_cM")}>`);
|
|
4941
4953
|
_if(() => {
|
|
4942
4954
|
if (selfUpdating) {
|
|
4943
4955
|
const $scope68_id = _scope_id();
|
|
4944
|
-
_html(`<span${_attr_class("
|
|
4956
|
+
_html(`<span${_attr_class("_cN")}><span${_attr_class("_E")}></span> Updating work…</span><span${_attr_class("_cO")}>The app restarts and reloads when it is done.</span>`);
|
|
4945
4957
|
writeScope($scope68_id, {});
|
|
4946
4958
|
return 0;
|
|
4947
4959
|
} else {
|
|
4948
|
-
const $
|
|
4949
|
-
_html(`<span${_attr_class("
|
|
4950
|
-
_subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($
|
|
4960
|
+
const $scope47_id = _scope_id();
|
|
4961
|
+
_html(`<span${_attr_class("_cN")}>Update available</span><span${_attr_class("_cO")}>v<!>${_escape(self.version)}${_el_resume($scope47_id, "c")} → v<!>${_escape(self.latest)}${_el_resume($scope47_id, "d")}</span>`);
|
|
4962
|
+
_subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($scope47_id, {})));
|
|
4951
4963
|
return 1;
|
|
4952
4964
|
}
|
|
4953
|
-
}, $
|
|
4965
|
+
}, $scope46_id, "b", 1, 1, 1, "</div>");
|
|
4954
4966
|
_if(() => {
|
|
4955
4967
|
if (!selfUpdating) {
|
|
4956
|
-
const $
|
|
4957
|
-
_html(`<button${_attr_class(["_o", "_p"])}${_attr("title", `Update work to v${self.latest} and restart`)}>Update and restart</button>${_el_resume($
|
|
4958
|
-
_script($
|
|
4959
|
-
_subscribe($self_latest__closures, writeScope($
|
|
4968
|
+
const $scope48_id = _scope_id();
|
|
4969
|
+
_html(`<button${_attr_class(["_o", "_p"])}${_attr("title", `Update work to v${self.latest} and restart`)}>Update and restart</button>${_el_resume($scope48_id, "a")}`);
|
|
4970
|
+
_script($scope48_id, "v40");
|
|
4971
|
+
_subscribe($self_latest__closures, writeScope($scope48_id, { Cf4: 1 }));
|
|
4960
4972
|
return 0;
|
|
4961
4973
|
}
|
|
4962
|
-
}, $
|
|
4974
|
+
}, $scope46_id, "c", 1, 1, 1, 0, 1);
|
|
4963
4975
|
_html("</div>");
|
|
4964
|
-
writeScope($
|
|
4976
|
+
writeScope($scope46_id, {});
|
|
4965
4977
|
return 0;
|
|
4966
4978
|
}
|
|
4967
4979
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
4968
|
-
_html(`<section${_attr_class("
|
|
4980
|
+
_html(`<section${_attr_class("_bx")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_by")}><h2${_attr("id", agentsId)}${_attr_class("_bL")}>Agents</h2><div${_attr_class("_x")}></div><label${_attr_class("_ck")}><span${_attr_class("_R")}>Default</span><span${_attr_class("_m")}>`);
|
|
4969
4981
|
_attr_select_value($scope0_id, "n", input.preferred, _resume(function(v) {
|
|
4970
4982
|
setPreferred(v);
|
|
4971
4983
|
}, "v2", $scope0_id), () => {
|
|
4972
|
-
_html(`<select${_attr_class(["_n", "
|
|
4984
|
+
_html(`<select${_attr_class(["_n", "_cl"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
|
|
4973
4985
|
_for_of(input.agents.filter((a) => a !== "shell"), (id) => {
|
|
4974
4986
|
const $scope69_id = _scope_id();
|
|
4975
4987
|
_html(`<option${_attr_option_value(id)}>${_escape(agentLabel(id))}${_el_resume($scope69_id, "b", $sg__input_agents)}</option>${_el_resume($scope69_id, "a", $sg__input_agents)}`);
|
|
@@ -4990,14 +5002,14 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4990
5002
|
const rows = lone ? [] : a.instances;
|
|
4991
5003
|
const loneAccounts = lone && lone.enabled ? accountsFor(lone.id) : [];
|
|
4992
5004
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
4993
|
-
_html(`<li${_attr_class(["
|
|
5005
|
+
_html(`<li${_attr_class(["_bC", "_cj"])}><div${_attr_class(["_cm", { ["_cp"]: lone && !lone.enabled }])}>`);
|
|
4994
5006
|
_set_serialize_reason(12);
|
|
4995
5007
|
const $childScope4 = _peek_scope_id();
|
|
4996
5008
|
icon_agent_default({
|
|
4997
5009
|
agent: a.id,
|
|
4998
5010
|
size: 18
|
|
4999
5011
|
});
|
|
5000
|
-
_html(`<div${_attr_class("
|
|
5012
|
+
_html(`<div${_attr_class("_bD")}><span${_attr_class("_bF")}><span${_attr_class("_bE")}>${_escape(a.label)}${_el_resume($scope1_id, "g")}</span>`);
|
|
5001
5013
|
_if(() => {
|
|
5002
5014
|
if (lone && input.preferred === lone.id) {
|
|
5003
5015
|
const $scope70_id = _scope_id();
|
|
@@ -5010,12 +5022,12 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5010
5022
|
_if(() => {
|
|
5011
5023
|
if (active.has(a.id)) {
|
|
5012
5024
|
const $scope11_id = _scope_id();
|
|
5013
|
-
_html(`<span${_attr_class("
|
|
5025
|
+
_html(`<span${_attr_class("_cd")}><span${_attr_class("_E")}></span><!>${_escape(active.get(a.id) || "Starting…")}${_el_resume($scope11_id, "c")}</span>`);
|
|
5014
5026
|
_subscribe($active__closures, writeScope($scope11_id, {}));
|
|
5015
5027
|
return 0;
|
|
5016
5028
|
} else if (!a.installed) {
|
|
5017
5029
|
const $scope71_id = _scope_id();
|
|
5018
|
-
_html(`<span${_attr_class("
|
|
5030
|
+
_html(`<span${_attr_class("_bG")}>Not installed</span>`);
|
|
5019
5031
|
writeScope($scope71_id, {});
|
|
5020
5032
|
return 1;
|
|
5021
5033
|
}
|
|
@@ -5023,23 +5035,23 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5023
5035
|
_html("</div>");
|
|
5024
5036
|
_if(() => {
|
|
5025
5037
|
if (!a.installed && !active.has(a.id)) {
|
|
5026
|
-
const $
|
|
5027
|
-
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($
|
|
5028
|
-
_script($
|
|
5029
|
-
writeScope($
|
|
5038
|
+
const $scope58_id = _scope_id();
|
|
5039
|
+
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope58_id, "a")}`);
|
|
5040
|
+
_script($scope58_id, "v41");
|
|
5041
|
+
writeScope($scope58_id, {});
|
|
5030
5042
|
return 0;
|
|
5031
5043
|
}
|
|
5032
5044
|
}, $scope1_id, "j", 1, 1, 1, 0, 1);
|
|
5033
5045
|
_if(() => {
|
|
5034
5046
|
if (lone) {
|
|
5035
|
-
const $
|
|
5047
|
+
const $scope65_id = _scope_id();
|
|
5036
5048
|
_html(`<button${_attr_class([
|
|
5037
5049
|
"_H",
|
|
5038
5050
|
"_J",
|
|
5039
5051
|
{ [tone.ok]: lone.enabled }
|
|
5040
|
-
])} role=switch aria-checked=${lone.enabled ? "true" : "false"} title=${lone.enabled ? "\"Shown in session pickers. Hide it\"" : "\"Hidden from session pickers. Show it\""}>${lone.enabled ? "on" : "off"}${_el_resume($
|
|
5041
|
-
_script($
|
|
5042
|
-
writeScope($
|
|
5052
|
+
])} role=switch aria-checked=${lone.enabled ? "true" : "false"} title=${lone.enabled ? "\"Shown in session pickers. Hide it\"" : "\"Hidden from session pickers. Show it\""}>${lone.enabled ? "on" : "off"}${_el_resume($scope65_id, "b")}</button>${_el_resume($scope65_id, "a")}`);
|
|
5053
|
+
_script($scope65_id, "v42");
|
|
5054
|
+
writeScope($scope65_id, {});
|
|
5043
5055
|
return 0;
|
|
5044
5056
|
}
|
|
5045
5057
|
}, $scope1_id, "k", 1, 1, 1, 0, 1);
|
|
@@ -5047,18 +5059,18 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5047
5059
|
_if(() => {
|
|
5048
5060
|
if (rows.length || loneAccounts.length || extraAccounts.length) {
|
|
5049
5061
|
const $scope2_id = _scope_id();
|
|
5050
|
-
_html(`<ul${_attr_class("
|
|
5062
|
+
_html(`<ul${_attr_class("_cr")}>`);
|
|
5051
5063
|
_for_of(rows, (inst) => {
|
|
5052
5064
|
const $scope3_id = _scope_id();
|
|
5053
5065
|
const accounts = inst.enabled ? accountsFor(inst.id) : [];
|
|
5054
|
-
_html(`<li${_attr_class("
|
|
5066
|
+
_html(`<li${_attr_class("_cn")}><div${_attr_class(["_co", { ["_cp"]: !inst.enabled }])}>`);
|
|
5055
5067
|
_set_serialize_reason(12);
|
|
5056
5068
|
const $childScope5 = _peek_scope_id();
|
|
5057
5069
|
icon_agent_default({
|
|
5058
5070
|
agent: inst.id,
|
|
5059
5071
|
size: 15
|
|
5060
5072
|
});
|
|
5061
|
-
_html(`<span${_attr_class(["
|
|
5073
|
+
_html(`<span${_attr_class(["_cq", "_w"])}>${_escape(inst.command)}${_el_resume($scope3_id, "e")}</span>`);
|
|
5062
5074
|
_if(() => {
|
|
5063
5075
|
if (input.preferred === inst.id) {
|
|
5064
5076
|
const $scope72_id = _scope_id();
|
|
@@ -5133,7 +5145,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5133
5145
|
}, "id", $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
5134
5146
|
_for_of(otherUsage, (u) => {
|
|
5135
5147
|
const $scope76_id = _scope_id();
|
|
5136
|
-
_html(`<li${_attr_class(["
|
|
5148
|
+
_html(`<li${_attr_class(["_bC", "_cj"])}>`);
|
|
5137
5149
|
_set_serialize_reason(6);
|
|
5138
5150
|
const $childScope9 = _peek_scope_id();
|
|
5139
5151
|
usage_meters_default({ agent: u });
|
|
@@ -5144,17 +5156,17 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5144
5156
|
_if(() => {
|
|
5145
5157
|
if (!usage && families.length) {
|
|
5146
5158
|
const $scope77_id = _scope_id();
|
|
5147
|
-
_html(`<p${_attr_class("
|
|
5159
|
+
_html(`<p${_attr_class("_bI")}><span${_attr_class("_E")}></span> Loading usage…</p>`);
|
|
5148
5160
|
writeScope($scope77_id, {});
|
|
5149
5161
|
return 0;
|
|
5150
5162
|
} else if (usage?.error) {
|
|
5151
5163
|
const $scope7_id = _scope_id();
|
|
5152
|
-
_html(`<p${_attr_class("
|
|
5164
|
+
_html(`<p${_attr_class("_bI")}>${_escape(usage.error)}${_el_resume($scope7_id, "b")}</p>`);
|
|
5153
5165
|
writeScope($scope7_id, {});
|
|
5154
5166
|
return 1;
|
|
5155
5167
|
}
|
|
5156
5168
|
}, $scope0_id, "t", 1, 1, 1, 0, 1);
|
|
5157
|
-
_html(`</section><section${_attr_class("
|
|
5169
|
+
_html(`</section><section${_attr_class("_bx")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_by")}><h2${_attr("id", githubId)}${_attr_class("_bL")}>GitHub</h2></div><ul${_attr_class("_bA")}>`);
|
|
5158
5170
|
_for_of(setup?.github || [], (h) => {
|
|
5159
5171
|
const $scope12_id = _scope_id();
|
|
5160
5172
|
const $for_content4__h_host__closures = /* @__PURE__ */ new Set();
|
|
@@ -5168,7 +5180,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5168
5180
|
const skippedSso = (() => {
|
|
5169
5181
|
return (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
5170
5182
|
})();
|
|
5171
|
-
_html(`<li${_attr_class(["
|
|
5183
|
+
_html(`<li${_attr_class(["_bC", "_cB"])}><div${_attr_class("_cC")}><div${_attr_class("_bD")}><span${_attr_class("_bF")}><span${_attr_class(["_bE", "_w"])}>${_escape(h.host)}${_el_resume($scope12_id, "f")}</span>`);
|
|
5172
5184
|
_if(() => {
|
|
5173
5185
|
if (h.isEnterprise) {
|
|
5174
5186
|
const $scope80_id = _scope_id();
|
|
@@ -5180,23 +5192,23 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5180
5192
|
_html("</span>");
|
|
5181
5193
|
_if(() => {
|
|
5182
5194
|
if (active.has(h.host) && authCodes.has(h.host)) {
|
|
5183
|
-
const $
|
|
5184
|
-
_html(`<span${_attr_class("
|
|
5185
|
-
_subscribe($authCodes__closures, writeScope($
|
|
5195
|
+
const $scope33_id = _scope_id();
|
|
5196
|
+
_html(`<span${_attr_class("_cd")}><span${_attr_class("_E")}></span> Enter code <strong${_attr_class("_cz")}>${_escape(authCodes.get(h.host))}${_el_resume($scope33_id, "d")}</strong> at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_cA")}>${_escape(h.host)}${_el_resume($scope33_id, "f")}/login/device</a>${_el_resume($scope33_id, "e")}</span>`);
|
|
5197
|
+
_subscribe($authCodes__closures, writeScope($scope33_id, { Cet: 1 }));
|
|
5186
5198
|
return 0;
|
|
5187
5199
|
} else if (active.has(h.host)) {
|
|
5188
5200
|
const $scope13_id = _scope_id();
|
|
5189
|
-
_html(`<span${_attr_class("
|
|
5190
|
-
_subscribe($active__closures, writeScope($scope13_id, {
|
|
5201
|
+
_html(`<span${_attr_class("_cd")}><span${_attr_class("_E")}></span><!>${_escape(active.get(h.host) || "Starting…")}${_el_resume($scope13_id, "c")}</span>`);
|
|
5202
|
+
_subscribe($active__closures, writeScope($scope13_id, { Cer: 1 }));
|
|
5191
5203
|
return 1;
|
|
5192
5204
|
} else if (h.authed) {
|
|
5193
5205
|
const $scope78_id = _scope_id();
|
|
5194
|
-
_html(`<span${_attr_class("
|
|
5206
|
+
_html(`<span${_attr_class("_bG")}>Signed in<!>${h.user ? ` as ${_escape(`${_to_text(h.user)}`)}` : ""}${_el_resume($scope78_id, "b")}</span>`);
|
|
5195
5207
|
writeScope($scope78_id, {});
|
|
5196
5208
|
return 2;
|
|
5197
5209
|
} else {
|
|
5198
5210
|
const $scope79_id = _scope_id();
|
|
5199
|
-
_html(`<span${_attr_class("
|
|
5211
|
+
_html(`<span${_attr_class("_bG")}>${_escape(h.error || "Not signed in")}${_el_resume($scope79_id, "b")}</span>`);
|
|
5200
5212
|
writeScope($scope79_id, {});
|
|
5201
5213
|
return 3;
|
|
5202
5214
|
}
|
|
@@ -5204,32 +5216,32 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5204
5216
|
_html("</div>");
|
|
5205
5217
|
_if(() => {
|
|
5206
5218
|
if (!active.has(h.host)) {
|
|
5207
|
-
const $
|
|
5219
|
+
const $scope34_id = _scope_id();
|
|
5208
5220
|
_if(() => {
|
|
5209
5221
|
if (!h.authed) {
|
|
5210
|
-
const $
|
|
5211
|
-
_html(`<button${_attr_class(btnSm)}>Sign in</button>${_el_resume($
|
|
5212
|
-
_script($
|
|
5213
|
-
writeScope($
|
|
5222
|
+
const $scope59_id = _scope_id();
|
|
5223
|
+
_html(`<button${_attr_class(btnSm)}>Sign in</button>${_el_resume($scope59_id, "a")}`);
|
|
5224
|
+
_script($scope59_id, "v44");
|
|
5225
|
+
writeScope($scope59_id, {});
|
|
5214
5226
|
return 0;
|
|
5215
5227
|
} else {
|
|
5216
|
-
const $
|
|
5228
|
+
const $scope35_id = _scope_id();
|
|
5217
5229
|
_html(`<button${_attr_class([btnSm, {
|
|
5218
5230
|
["_r"]: confirmingRemove === `out:${h.host}`,
|
|
5219
5231
|
["_q"]: confirmingRemove === `out:${h.host}`
|
|
5220
|
-
}])}${confirmingRemove === `out:${h.host}` ? _attr("title", `Sign out of ${h.host}?`) : _attr("title", `Sign out of ${h.host}`)}>${confirmingRemove === `out:${h.host}` ? "Sign out?" : "Sign out"}${_el_resume($
|
|
5221
|
-
_script($
|
|
5222
|
-
_subscribe($for_content4__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($
|
|
5232
|
+
}])}${confirmingRemove === `out:${h.host}` ? _attr("title", `Sign out of ${h.host}?`) : _attr("title", `Sign out of ${h.host}`)}>${confirmingRemove === `out:${h.host}` ? "Sign out?" : "Sign out"}${_el_resume($scope35_id, "b")}</button>${_el_resume($scope35_id, "a")}`);
|
|
5233
|
+
_script($scope35_id, "v45");
|
|
5234
|
+
_subscribe($for_content4__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope35_id, {})));
|
|
5223
5235
|
return 1;
|
|
5224
5236
|
}
|
|
5225
|
-
}, $
|
|
5237
|
+
}, $scope34_id, "a", 1, 1, 1, 0, 1);
|
|
5226
5238
|
_if(() => {
|
|
5227
5239
|
if (h.isEnterprise) {
|
|
5228
|
-
const $
|
|
5240
|
+
const $scope36_id = _scope_id();
|
|
5229
5241
|
_html(`<button${_attr_class([
|
|
5230
|
-
"
|
|
5231
|
-
"_1",
|
|
5242
|
+
"_bH",
|
|
5232
5243
|
"_2",
|
|
5244
|
+
"_3",
|
|
5233
5245
|
{ ["_q"]: confirmingRemove === h.host }
|
|
5234
5246
|
])}${confirmingRemove === h.host ? _attr("title", `Forget ${h.host}? (gh stays signed in)`) : _attr("title", `Forget ${h.host}`)}>`);
|
|
5235
5247
|
_if(() => {
|
|
@@ -5244,16 +5256,16 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5244
5256
|
writeScope($scope82_id, {});
|
|
5245
5257
|
return 1;
|
|
5246
5258
|
}
|
|
5247
|
-
}, $
|
|
5248
|
-
_script($
|
|
5249
|
-
_subscribe($for_content4__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($
|
|
5250
|
-
|
|
5259
|
+
}, $scope36_id, "a", 1, 1, 1, "</button>");
|
|
5260
|
+
_script($scope36_id, "v46");
|
|
5261
|
+
_subscribe($for_content4__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope36_id, {
|
|
5262
|
+
Ceu: 1,
|
|
5251
5263
|
Ca2: 1
|
|
5252
5264
|
})));
|
|
5253
5265
|
return 0;
|
|
5254
5266
|
}
|
|
5255
|
-
}, $
|
|
5256
|
-
writeScope($
|
|
5267
|
+
}, $scope34_id, "b", 1, 1, 1, 0, 1);
|
|
5268
|
+
writeScope($scope34_id, {});
|
|
5257
5269
|
return 0;
|
|
5258
5270
|
}
|
|
5259
5271
|
}, $scope12_id, "i");
|
|
@@ -5280,7 +5292,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5280
5292
|
});
|
|
5281
5293
|
_subscribe($run2__closures, _subscribe($si__input_setupChange && $refresh2__closures, _subscribe($authCodes__closures, _subscribe($active__closures, writeScope($scope14_id, {
|
|
5282
5294
|
a: _existing_scope($childScope10),
|
|
5283
|
-
|
|
5295
|
+
Cer: 2
|
|
5284
5296
|
})))));
|
|
5285
5297
|
return 0;
|
|
5286
5298
|
}
|
|
@@ -5303,564 +5315,359 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5303
5315
|
_if(() => {
|
|
5304
5316
|
if (setup && !setup.github.length) {
|
|
5305
5317
|
const $scope83_id = _scope_id();
|
|
5306
|
-
_html(`<p${_attr_class("
|
|
5318
|
+
_html(`<p${_attr_class("_bI")}>Install the GitHub CLI below to sign in.</p>`);
|
|
5307
5319
|
writeScope($scope83_id, {});
|
|
5308
5320
|
return 0;
|
|
5309
5321
|
}
|
|
5310
5322
|
}, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
5311
5323
|
_if(() => {
|
|
5312
5324
|
if (setup) {
|
|
5313
|
-
const $
|
|
5314
|
-
_html(`<form${_attr_class("
|
|
5325
|
+
const $scope44_id = _scope_id();
|
|
5326
|
+
_html(`<form${_attr_class("_cy")}><label${_attr_class("_V")}>`);
|
|
5315
5327
|
icon_plus_default({
|
|
5316
5328
|
size: 14,
|
|
5317
5329
|
class: "_W"
|
|
5318
5330
|
});
|
|
5319
|
-
_html(`<input${_attr_input_value($
|
|
5331
|
+
_html(`<input${_attr_input_value($scope44_id, "d", hostInput, _resume((_new_hostInput) => {
|
|
5320
5332
|
hostInput = _new_hostInput;
|
|
5321
|
-
}, "v3", $
|
|
5322
|
-
_script($
|
|
5323
|
-
writeScope($
|
|
5333
|
+
}, "v3", $scope44_id))}${_attr_class([inputLg, "_X"])} type=text placeholder="Add a GitHub Enterprise host, e.g. github.example.com" aria-label="GitHub Enterprise host" autocomplete=off spellcheck=false>${_el_resume($scope44_id, "d")}</label><button${_attr_class(btnSm)} type=submit${_attr("disabled", !hostInput.trim() || hostBusy)}>${hostBusy ? "Adding…" : "Add host"}${_el_resume($scope44_id, "f")}</button>${_el_resume($scope44_id, "e")}</form>${_el_resume($scope44_id, "a")}`);
|
|
5334
|
+
_script($scope44_id, "v47");
|
|
5335
|
+
writeScope($scope44_id, {});
|
|
5324
5336
|
return 0;
|
|
5325
5337
|
}
|
|
5326
5338
|
}, $scope0_id, "z", 1, 1, 1, 0, 1);
|
|
5327
|
-
_html(`</section><section${_attr_class("
|
|
5339
|
+
_html(`</section><section${_attr_class("_bx")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_by")}><h2${_attr("id", machineId)}${_attr_class("_bL")}><button${_attr_class("_cf")} aria-expanded=${machineOpen ? "true" : "false"}>`);
|
|
5340
|
+
_set_serialize_reason(1);
|
|
5341
|
+
const $childScope11 = _peek_scope_id();
|
|
5342
|
+
icon_chevron_right_default({
|
|
5343
|
+
size: 11,
|
|
5344
|
+
class: ["_cg", { ["_ch"]: machineOpen }]
|
|
5345
|
+
});
|
|
5346
|
+
_html(` Machine</button>${_el_resume($scope0_id, "a3")}</h2>`);
|
|
5328
5347
|
_if(() => {
|
|
5329
5348
|
if (missingCount) {
|
|
5330
|
-
const $
|
|
5331
|
-
_html(`<span${_attr_class(sectionCount$1)}>${_escape(missingCount)}${_el_resume($
|
|
5332
|
-
writeScope($
|
|
5349
|
+
const $scope66_id = _scope_id();
|
|
5350
|
+
_html(`<span${_attr_class(sectionCount$1)}>${_escape(missingCount)}${_el_resume($scope66_id, "b")} missing</span>`);
|
|
5351
|
+
writeScope($scope66_id, {});
|
|
5333
5352
|
return 0;
|
|
5334
5353
|
}
|
|
5335
|
-
}, $scope0_id, "
|
|
5354
|
+
}, $scope0_id, "a5", 1, 1, 1, 0, 1);
|
|
5336
5355
|
_if(() => {
|
|
5337
5356
|
if (outdatedIds.length) {
|
|
5338
|
-
const $
|
|
5339
|
-
_html(`<span${_attr_class(sectionCount$1)}>${_escape(outdatedIds.length)}${_el_resume($
|
|
5340
|
-
writeScope($
|
|
5357
|
+
const $scope67_id = _scope_id();
|
|
5358
|
+
_html(`<span${_attr_class(sectionCount$1)}>${_escape(outdatedIds.length)}${_el_resume($scope67_id, "b")} outdated</span>`);
|
|
5359
|
+
writeScope($scope67_id, {});
|
|
5341
5360
|
return 0;
|
|
5342
5361
|
}
|
|
5343
|
-
}, $scope0_id, "
|
|
5362
|
+
}, $scope0_id, "a6", 1, 1, 1, 0, 1);
|
|
5344
5363
|
_html(`<div${_attr_class("_x")}></div>`);
|
|
5345
5364
|
_if(() => {
|
|
5346
|
-
if (outdatedIds.length > 1) {
|
|
5365
|
+
if (machineOpen && outdatedIds.length > 1) {
|
|
5347
5366
|
const $scope15_id = _scope_id();
|
|
5348
5367
|
_html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Update all</button>${_el_resume($scope15_id, "a")}`);
|
|
5349
5368
|
_script($scope15_id, "v48");
|
|
5350
5369
|
writeScope($scope15_id, {});
|
|
5351
5370
|
return 0;
|
|
5352
5371
|
}
|
|
5353
|
-
}, $scope0_id, "
|
|
5372
|
+
}, $scope0_id, "a8", 1, 1, 1, 0, 1);
|
|
5354
5373
|
_if(() => {
|
|
5355
|
-
if (missingInstallable.length > 1) {
|
|
5374
|
+
if (machineOpen && missingInstallable.length > 1) {
|
|
5356
5375
|
const $scope16_id = _scope_id();
|
|
5357
5376
|
_html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Install missing</button>${_el_resume($scope16_id, "a")}`);
|
|
5358
5377
|
_script($scope16_id, "v49");
|
|
5359
5378
|
writeScope($scope16_id, {});
|
|
5360
5379
|
return 0;
|
|
5361
5380
|
}
|
|
5362
|
-
}, $scope0_id, "
|
|
5381
|
+
}, $scope0_id, "a9", 1, 1, 1, 0, 1);
|
|
5363
5382
|
_html("</div>");
|
|
5364
5383
|
_if(() => {
|
|
5365
|
-
if (
|
|
5366
|
-
const $
|
|
5367
|
-
_html(`<p${_attr_class("_by")}>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($scope17_id, "c")}</button>${_el_resume($scope17_id, "b")}</p>`);
|
|
5368
|
-
_script($scope17_id, "v50");
|
|
5369
|
-
writeScope($scope17_id, {});
|
|
5370
|
-
return 0;
|
|
5371
|
-
}
|
|
5372
|
-
}, $scope0_id, "a8", 1, 1, 1, 0, 1);
|
|
5373
|
-
_html(`<ul${_attr_class(toolGrid)}>`);
|
|
5374
|
-
_if(() => {
|
|
5375
|
-
if (self) {
|
|
5376
|
-
const $scope48_id = _scope_id();
|
|
5377
|
-
_html(`<li${_attr_class(row)}><span${_attr_class(["_cr", "_w"])}>work</span>`);
|
|
5384
|
+
if (machineOpen) {
|
|
5385
|
+
const $scope6_id = _scope_id();
|
|
5378
5386
|
_if(() => {
|
|
5379
|
-
if (
|
|
5380
|
-
const $
|
|
5381
|
-
_html(`<
|
|
5382
|
-
|
|
5387
|
+
if (setup && !setup.mise.installed) {
|
|
5388
|
+
const $scope17_id = _scope_id();
|
|
5389
|
+
_html(`<p${_attr_class("_bI")}>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($scope17_id, "c")}</button>${_el_resume($scope17_id, "b")}</p>`);
|
|
5390
|
+
_script($scope17_id, "v50");
|
|
5391
|
+
_subscribe($active__closures, writeScope($scope17_id, { Cer: 3 }));
|
|
5383
5392
|
return 0;
|
|
5384
|
-
}
|
|
5393
|
+
}
|
|
5394
|
+
}, $scope6_id, "a", 1, 1, 1, 0, 1);
|
|
5395
|
+
_html(`<ul${_attr_class(toolGrid)}>`);
|
|
5396
|
+
_if(() => {
|
|
5397
|
+
if (self) {
|
|
5385
5398
|
const $scope49_id = _scope_id();
|
|
5386
|
-
_html(`<
|
|
5399
|
+
_html(`<li${_attr_class(row)}><span${_attr_class(["_cu", "_w"])}>work</span>`);
|
|
5387
5400
|
_if(() => {
|
|
5388
|
-
if (
|
|
5389
|
-
const $
|
|
5390
|
-
_html(`<span${_attr_class(
|
|
5391
|
-
writeScope($
|
|
5401
|
+
if (selfUpdating) {
|
|
5402
|
+
const $scope84_id = _scope_id();
|
|
5403
|
+
_html(`<span${_attr_class("_cd")}><span${_attr_class("_E")}></span>Updating — the app restarts and reloads when it is done…</span>`);
|
|
5404
|
+
writeScope($scope84_id, {});
|
|
5392
5405
|
return 0;
|
|
5393
|
-
} else
|
|
5406
|
+
} else {
|
|
5394
5407
|
const $scope50_id = _scope_id();
|
|
5395
|
-
_html(`<
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5408
|
+
_html(`<span${_attr_class(["_w", metaTrunc])} title="Running version">v<!>${_escape(self.version)}${_el_resume($scope50_id, "b")}</span>`);
|
|
5409
|
+
_if(() => {
|
|
5410
|
+
if (self.install === "source") {
|
|
5411
|
+
const $scope85_id = _scope_id();
|
|
5412
|
+
_html(`<span${_attr_class(metaTrunc)} title="Started from a checkout, not the published package">source checkout — update with git</span>`);
|
|
5413
|
+
writeScope($scope85_id, {});
|
|
5414
|
+
return 0;
|
|
5415
|
+
} else if (self.latest && self.latest !== self.version) {
|
|
5416
|
+
const $scope51_id = _scope_id();
|
|
5417
|
+
_html(`<button${_attr_class([btnSm, "_cw"])}${_attr("title", `Update work to v${self.latest} and restart`)}>`);
|
|
5418
|
+
icon_arrow_up_default({ size: 12 });
|
|
5419
|
+
_html(` <!>${_escape(self.latest)}${_el_resume($scope51_id, "c")}</button>${_el_resume($scope51_id, "a")}`);
|
|
5420
|
+
_script($scope51_id, "v51");
|
|
5421
|
+
_subscribe($self_latest__closures, writeScope($scope51_id, { Cf4: 3 }));
|
|
5422
|
+
return 1;
|
|
5423
|
+
} else if (self.latest) {
|
|
5424
|
+
const $scope86_id = _scope_id();
|
|
5425
|
+
_html(`<span${_attr_class(metaTrunc)}>up to date</span>`);
|
|
5426
|
+
writeScope($scope86_id, {});
|
|
5427
|
+
return 2;
|
|
5428
|
+
}
|
|
5429
|
+
}, $scope50_id, "c", 1, 1, 1, 0, 1);
|
|
5430
|
+
_subscribe($self_version__closures, _subscribe($self_latest__closures, _subscribe($self_install__closures, writeScope($scope50_id, {
|
|
5431
|
+
Cf4: 2,
|
|
5432
|
+
Cf5: 1
|
|
5433
|
+
}))));
|
|
5400
5434
|
return 1;
|
|
5401
|
-
} else if (self.latest) {
|
|
5402
|
-
const $scope86_id = _scope_id();
|
|
5403
|
-
_html(`<span${_attr_class(metaTrunc)}>up to date</span>`);
|
|
5404
|
-
writeScope($scope86_id, {});
|
|
5405
|
-
return 2;
|
|
5406
5435
|
}
|
|
5407
|
-
}, $scope49_id, "c"
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
_html(`<span${_attr_class("_H")}>app</span>`);
|
|
5420
|
-
writeScope($scope87_id, {});
|
|
5436
|
+
}, $scope49_id, "c");
|
|
5437
|
+
_html(`<span${_attr_class("_x")}></span>`);
|
|
5438
|
+
_if(() => {
|
|
5439
|
+
if (!selfUpdating) {
|
|
5440
|
+
const $scope87_id = _scope_id();
|
|
5441
|
+
_html(`<span${_attr_class("_H")}>app</span>`);
|
|
5442
|
+
writeScope($scope87_id, {});
|
|
5443
|
+
return 0;
|
|
5444
|
+
}
|
|
5445
|
+
}, $scope49_id, "e", 1, 1, 1, 0, 1);
|
|
5446
|
+
_html("</li>");
|
|
5447
|
+
_subscribe($selfUpdating__closures, writeScope($scope49_id, {}));
|
|
5421
5448
|
return 0;
|
|
5422
5449
|
}
|
|
5423
|
-
}, $
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
const $for_content5__t_version__closures = /* @__PURE__ */ new Set();
|
|
5433
|
-
const $for_content5__t_path__closures = /* @__PURE__ */ new Set();
|
|
5434
|
-
const $for_content5__t_latest__closures = /* @__PURE__ */ new Set();
|
|
5435
|
-
const $for_content5__t_id__closures = /* @__PURE__ */ new Set();
|
|
5436
|
-
_html(`<li${_attr_class([row, { ["_cq"]: !t.installed }])}><span${_attr_class(["_cr", "_w"])}>${_escape(t.label)}${_el_resume($scope18_id, "c")}</span>`);
|
|
5437
|
-
_if(() => {
|
|
5438
|
-
if (active.has(t.id)) {
|
|
5439
|
-
const $scope19_id = _scope_id();
|
|
5440
|
-
_html(`<span${_attr_class("_cc")}><span${_attr_class("_E")}></span><!>${_escape(active.get(t.id) || "Starting…")}${_el_resume($scope19_id, "c")}</span>`);
|
|
5441
|
-
_subscribe($active__closures, writeScope($scope19_id, { Ceq: 3 }));
|
|
5442
|
-
return 0;
|
|
5443
|
-
} else if (t.installed) {
|
|
5444
|
-
const $scope39_id = _scope_id();
|
|
5445
|
-
_if(() => {
|
|
5446
|
-
if (t.version) {
|
|
5447
|
-
const $scope40_id = _scope_id();
|
|
5448
|
-
_html(`<button${_attr_class(["_cs", "_w"])}${_attr("title", `${t.path || t.label}. Pin a version`)}>v<!>${_escape(t.version)}${_el_resume($scope40_id, "b")}</button>${_el_resume($scope40_id, "a")}`);
|
|
5449
|
-
_script($scope40_id, "v52");
|
|
5450
|
-
_subscribe($for_content5__t_path__closures, _subscribe($for_content5__t_version__closures, _subscribe($for_content5__t_label__closures, writeScope($scope40_id, { Cu: 1 }))));
|
|
5451
|
-
return 0;
|
|
5452
|
-
} else {
|
|
5453
|
-
const $scope88_id = _scope_id();
|
|
5454
|
-
_html(`<span${_attr_class([metaTrunc, "_w"])}${_attr("title", t.path)}>${_escape(t.path)}${_el_resume($scope88_id, "b")}</span>${_el_resume($scope88_id, "a")}`);
|
|
5455
|
-
_subscribe($for_content5__t_path__closures, writeScope($scope88_id, { Cx: 1 }));
|
|
5456
|
-
return 1;
|
|
5457
|
-
}
|
|
5458
|
-
}, $scope39_id, "a", 1, 1, 1, 0, 1);
|
|
5459
|
-
_if(() => {
|
|
5460
|
-
if (outdated(t)) {
|
|
5461
|
-
const $scope58_id = _scope_id();
|
|
5462
|
-
_html(`<button${_attr_class([btnSm, "_ct"])}${_attr("title", `Update to v${t.latest}`)}>`);
|
|
5463
|
-
icon_arrow_up_default({ size: 12 });
|
|
5464
|
-
_html(` <!>${_escape(t.latest)}${_el_resume($scope58_id, "c")}</button>${_el_resume($scope58_id, "a")}`);
|
|
5465
|
-
_script($scope58_id, "v53");
|
|
5466
|
-
_subscribe($for_content5__t_latest__closures, writeScope($scope58_id, {}));
|
|
5467
|
-
return 0;
|
|
5468
|
-
}
|
|
5469
|
-
}, $scope39_id, "b", 1, 1, 1, 0, 1);
|
|
5470
|
-
writeScope($scope39_id, {});
|
|
5471
|
-
return 1;
|
|
5472
|
-
} else if (t.installable) {
|
|
5473
|
-
const $scope89_id = _scope_id();
|
|
5474
|
-
_html(`<span${_attr_class(metaTrunc)}>not installed</span>`);
|
|
5475
|
-
writeScope($scope89_id, {});
|
|
5476
|
-
return 2;
|
|
5477
|
-
} else {
|
|
5478
|
-
const $scope90_id = _scope_id();
|
|
5479
|
-
_html(`<span${_attr_class(metaTrunc)} title="Installed with the system package manager">system package</span>`);
|
|
5480
|
-
writeScope($scope90_id, {});
|
|
5481
|
-
return 3;
|
|
5482
|
-
}
|
|
5483
|
-
}, $scope18_id, "d");
|
|
5484
|
-
_html(`<span${_attr_class("_x")}></span>`);
|
|
5485
|
-
_if(() => {
|
|
5486
|
-
if (!active.has(t.id)) {
|
|
5487
|
-
const $scope36_id = _scope_id();
|
|
5488
|
-
_if(() => {
|
|
5489
|
-
if (t.required) {
|
|
5490
|
-
const $scope91_id = _scope_id();
|
|
5491
|
-
_html(`<span${_attr_class("_H")}>required</span>`);
|
|
5492
|
-
writeScope($scope91_id, {});
|
|
5493
|
-
return 0;
|
|
5494
|
-
}
|
|
5495
|
-
}, $scope36_id, "a", 1, 1, 1, 0, 1);
|
|
5450
|
+
}, $scope6_id, "c", 1, 1, 1, 0, 1);
|
|
5451
|
+
_for_of(tools, (t) => {
|
|
5452
|
+
const $scope18_id = _scope_id();
|
|
5453
|
+
const $for_content5__t_label__closures = /* @__PURE__ */ new Set();
|
|
5454
|
+
const $for_content5__t_version__closures = /* @__PURE__ */ new Set();
|
|
5455
|
+
const $for_content5__t_path__closures = /* @__PURE__ */ new Set();
|
|
5456
|
+
const $for_content5__t_latest__closures = /* @__PURE__ */ new Set();
|
|
5457
|
+
const $for_content5__t_id__closures = /* @__PURE__ */ new Set();
|
|
5458
|
+
_html(`<li${_attr_class([row, { ["_ct"]: !t.installed }])}><span${_attr_class(["_cu", "_w"])}>${_escape(t.label)}${_el_resume($scope18_id, "c")}</span>`);
|
|
5496
5459
|
_if(() => {
|
|
5497
|
-
if (
|
|
5498
|
-
const $
|
|
5499
|
-
_html(`<
|
|
5500
|
-
|
|
5501
|
-
writeScope($scope59_id, {});
|
|
5460
|
+
if (active.has(t.id)) {
|
|
5461
|
+
const $scope19_id = _scope_id();
|
|
5462
|
+
_html(`<span${_attr_class("_cd")}><span${_attr_class("_E")}></span><!>${_escape(active.get(t.id) || "Starting…")}${_el_resume($scope19_id, "c")}</span>`);
|
|
5463
|
+
_subscribe($active__closures, writeScope($scope19_id, { Cer: 5 }));
|
|
5502
5464
|
return 0;
|
|
5503
|
-
} else if (t.installed
|
|
5504
|
-
const $
|
|
5505
|
-
_html(`<button${_attr_class([
|
|
5506
|
-
iconBtnXs,
|
|
5507
|
-
"_1",
|
|
5508
|
-
"_2",
|
|
5509
|
-
{ ["_q"]: confirmingRemove === t.id }
|
|
5510
|
-
])}${confirmingRemove === t.id ? _attr("title", `Remove ${t.label}?`) : _attr("title", `Remove ${t.label}`)}>`);
|
|
5465
|
+
} else if (t.installed) {
|
|
5466
|
+
const $scope40_id = _scope_id();
|
|
5511
5467
|
_if(() => {
|
|
5512
|
-
if (
|
|
5513
|
-
const $
|
|
5514
|
-
_html("
|
|
5515
|
-
|
|
5468
|
+
if (t.version) {
|
|
5469
|
+
const $scope41_id = _scope_id();
|
|
5470
|
+
_html(`<button${_attr_class(["_cv", "_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")}`);
|
|
5471
|
+
_script($scope41_id, "v52");
|
|
5472
|
+
_subscribe($for_content5__t_path__closures, _subscribe($for_content5__t_version__closures, _subscribe($for_content5__t_label__closures, writeScope($scope41_id, { Cu: 1 }))));
|
|
5516
5473
|
return 0;
|
|
5517
5474
|
} else {
|
|
5518
|
-
const $
|
|
5519
|
-
|
|
5520
|
-
writeScope($
|
|
5475
|
+
const $scope88_id = _scope_id();
|
|
5476
|
+
_html(`<span${_attr_class([metaTrunc, "_w"])}${_attr("title", t.path)}>${_escape(t.path)}${_el_resume($scope88_id, "b")}</span>${_el_resume($scope88_id, "a")}`);
|
|
5477
|
+
_subscribe($for_content5__t_path__closures, writeScope($scope88_id, { Cx: 1 }));
|
|
5521
5478
|
return 1;
|
|
5522
5479
|
}
|
|
5523
|
-
}, $
|
|
5524
|
-
|
|
5525
|
-
|
|
5480
|
+
}, $scope40_id, "a", 1, 1, 1, 0, 1);
|
|
5481
|
+
_if(() => {
|
|
5482
|
+
if (outdated(t)) {
|
|
5483
|
+
const $scope60_id = _scope_id();
|
|
5484
|
+
_html(`<button${_attr_class([btnSm, "_cw"])}${_attr("title", `Update to v${t.latest}`)}>`);
|
|
5485
|
+
icon_arrow_up_default({ size: 12 });
|
|
5486
|
+
_html(` <!>${_escape(t.latest)}${_el_resume($scope60_id, "c")}</button>${_el_resume($scope60_id, "a")}`);
|
|
5487
|
+
_script($scope60_id, "v53");
|
|
5488
|
+
_subscribe($for_content5__t_latest__closures, writeScope($scope60_id, {}));
|
|
5489
|
+
return 0;
|
|
5490
|
+
}
|
|
5491
|
+
}, $scope40_id, "b", 1, 1, 1, 0, 1);
|
|
5492
|
+
writeScope($scope40_id, {});
|
|
5526
5493
|
return 1;
|
|
5494
|
+
} else if (t.installable) {
|
|
5495
|
+
const $scope89_id = _scope_id();
|
|
5496
|
+
_html(`<span${_attr_class(metaTrunc)}>not installed</span>`);
|
|
5497
|
+
writeScope($scope89_id, {});
|
|
5498
|
+
return 2;
|
|
5499
|
+
} else {
|
|
5500
|
+
const $scope90_id = _scope_id();
|
|
5501
|
+
_html(`<span${_attr_class(metaTrunc)} title="Installed with the system package manager">system package</span>`);
|
|
5502
|
+
writeScope($scope90_id, {});
|
|
5503
|
+
return 3;
|
|
5527
5504
|
}
|
|
5528
|
-
}, $
|
|
5529
|
-
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
_html(`</li>${_el_resume($scope18_id, "a")}`);
|
|
5534
|
-
writeScope($scope18_id, {
|
|
5535
|
-
h: t,
|
|
5536
|
-
i: t?.installed,
|
|
5537
|
-
j: t?.label,
|
|
5538
|
-
k: t?.id,
|
|
5539
|
-
m: t?.version,
|
|
5540
|
-
n: t?.path,
|
|
5541
|
-
o: t?.latest,
|
|
5542
|
-
p: t?.installable,
|
|
5543
|
-
r: t?.required,
|
|
5544
|
-
u: $for_content5__t_label__closures,
|
|
5545
|
-
w: $for_content5__t_version__closures,
|
|
5546
|
-
x: $for_content5__t_path__closures,
|
|
5547
|
-
y: $for_content5__t_latest__closures,
|
|
5548
|
-
v: $for_content5__t_id__closures
|
|
5549
|
-
});
|
|
5550
|
-
}, "id", $scope0_id, "ab", 1, 1, 1, 0, 1);
|
|
5551
|
-
_html("</ul>");
|
|
5552
|
-
_if(() => {
|
|
5553
|
-
if (setup && setup.mise.installed) {
|
|
5554
|
-
const $scope20_id = _scope_id();
|
|
5555
|
-
_html(`<div><label${_attr_class("_V")}>`);
|
|
5556
|
-
icon_search_default({
|
|
5557
|
-
size: 14,
|
|
5558
|
-
class: "_W"
|
|
5559
|
-
});
|
|
5560
|
-
_html(`<input${_attr_input_value($scope20_id, "c", query, search)}${_attr_class([inputLg, "_X"])} type=text placeholder="Add a tool from the mise registry…" aria-label="Search the mise registry" autocomplete=off>${_el_resume($scope20_id, "c")}</label>`);
|
|
5561
|
-
_if(() => {
|
|
5562
|
-
if (hits && hits.length) {
|
|
5563
|
-
const $scope21_id = _scope_id();
|
|
5564
|
-
_html(`<ul${_attr_class([toolGrid, "_cu"])}>`);
|
|
5565
|
-
_for_of(hits, (h) => {
|
|
5566
|
-
const $scope22_id = _scope_id();
|
|
5567
|
-
_html(`<li${_attr_class(row)}><div${_attr_class("_bt")}><span${_attr_class(["_cr", "_w"])}>${_escape(h.name)}${_el_resume($scope22_id, "d")}</span>`);
|
|
5505
|
+
}, $scope18_id, "d");
|
|
5506
|
+
_html(`<span${_attr_class("_x")}></span>`);
|
|
5507
|
+
_if(() => {
|
|
5508
|
+
if (!active.has(t.id)) {
|
|
5509
|
+
const $scope37_id = _scope_id();
|
|
5568
5510
|
_if(() => {
|
|
5569
|
-
if (
|
|
5570
|
-
const $
|
|
5571
|
-
_html(`<span${_attr_class("
|
|
5572
|
-
|
|
5511
|
+
if (t.required) {
|
|
5512
|
+
const $scope91_id = _scope_id();
|
|
5513
|
+
_html(`<span${_attr_class("_H")}>required</span>`);
|
|
5514
|
+
writeScope($scope91_id, {});
|
|
5573
5515
|
return 0;
|
|
5574
|
-
} else if (h.description) {
|
|
5575
|
-
const $scope94_id = _scope_id();
|
|
5576
|
-
_html(`<span${_attr_class("_bw")}${_attr("title", h.description)}>${_escape(h.description)}${_el_resume($scope94_id, "b")}</span>${_el_resume($scope94_id, "a")}`);
|
|
5577
|
-
writeScope($scope94_id, {});
|
|
5578
|
-
return 1;
|
|
5579
5516
|
}
|
|
5580
|
-
}, $
|
|
5581
|
-
_html("</div>");
|
|
5517
|
+
}, $scope37_id, "a", 1, 1, 1, 0, 1);
|
|
5582
5518
|
_if(() => {
|
|
5583
|
-
if (!
|
|
5584
|
-
const $
|
|
5519
|
+
if (!t.installed && t.installable) {
|
|
5520
|
+
const $scope61_id = _scope_id();
|
|
5521
|
+
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope61_id, "a")}`);
|
|
5522
|
+
_script($scope61_id, "v54");
|
|
5523
|
+
writeScope($scope61_id, {});
|
|
5524
|
+
return 0;
|
|
5525
|
+
} else if (t.installed && t.version && !t.required) {
|
|
5526
|
+
const $scope38_id = _scope_id();
|
|
5527
|
+
_html(`<button${_attr_class([
|
|
5528
|
+
iconBtnXs,
|
|
5529
|
+
"_2",
|
|
5530
|
+
"_3",
|
|
5531
|
+
{ ["_q"]: confirmingRemove === t.id }
|
|
5532
|
+
])}${confirmingRemove === t.id ? _attr("title", `Remove ${t.label}?`) : _attr("title", `Remove ${t.label}`)}>`);
|
|
5585
5533
|
_if(() => {
|
|
5586
|
-
if (
|
|
5587
|
-
const $
|
|
5588
|
-
_html(
|
|
5589
|
-
writeScope($
|
|
5534
|
+
if (confirmingRemove === t.id) {
|
|
5535
|
+
const $scope92_id = _scope_id();
|
|
5536
|
+
_html("Remove?");
|
|
5537
|
+
writeScope($scope92_id, {});
|
|
5590
5538
|
return 0;
|
|
5591
5539
|
} else {
|
|
5592
|
-
const $
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
writeScope($scope42_id, {});
|
|
5540
|
+
const $scope93_id = _scope_id();
|
|
5541
|
+
icon_xmark_default({ size: 13 });
|
|
5542
|
+
writeScope($scope93_id, {});
|
|
5596
5543
|
return 1;
|
|
5597
5544
|
}
|
|
5598
|
-
}, $
|
|
5599
|
-
|
|
5600
|
-
|
|
5545
|
+
}, $scope38_id, "a", 1, 1, 1, "</button>");
|
|
5546
|
+
_script($scope38_id, "v55");
|
|
5547
|
+
_subscribe($for_content5__t_id__closures, _subscribe($for_content5__t_label__closures, _subscribe($confirmingRemove__closures, writeScope($scope38_id, { Ceu: 2 }))));
|
|
5548
|
+
return 1;
|
|
5601
5549
|
}
|
|
5602
|
-
}, $
|
|
5603
|
-
|
|
5604
|
-
_subscribe($active__closures, writeScope($scope22_id, {
|
|
5605
|
-
i: h?.name,
|
|
5606
|
-
k: h?.description,
|
|
5607
|
-
m: h?.installed,
|
|
5608
|
-
Ceq: 4
|
|
5609
|
-
}));
|
|
5610
|
-
}, "name", $scope21_id, "a", 1, 1, 1, "</ul>", 1);
|
|
5611
|
-
_subscribe($hits__closures, writeScope($scope21_id, {}));
|
|
5612
|
-
return 0;
|
|
5613
|
-
} else if (hits && !searching) {
|
|
5614
|
-
const $scope44_id = _scope_id();
|
|
5615
|
-
_html(`<p${_attr_class("_by")}>No tools match "<!>${_escape(query)}${_el_resume($scope44_id, "b")}".</p>`);
|
|
5616
|
-
_subscribe($query__closures, writeScope($scope44_id, {}));
|
|
5617
|
-
return 1;
|
|
5618
|
-
}
|
|
5619
|
-
}, $scope20_id, "d", 1, 1, 1, 0, 1);
|
|
5620
|
-
_html("</div>");
|
|
5621
|
-
_script($scope20_id, "v57");
|
|
5622
|
-
writeScope($scope20_id, {});
|
|
5623
|
-
return 0;
|
|
5624
|
-
}
|
|
5625
|
-
}, $scope0_id, "ac", 1, 1, 1, 0, 1);
|
|
5626
|
-
_html(`</section><section${_attr_class("_bn")}${_attr("aria-labelledby", skillsId)}><div${_attr_class("_bo")}><h2${_attr("id", skillsId)}${_attr_class("_bB")}>Skills</h2>`);
|
|
5627
|
-
_if(() => {
|
|
5628
|
-
if (skills?.global.length) {
|
|
5629
|
-
const $scope52_id = _scope_id();
|
|
5630
|
-
_html(`<span${_attr_class(sectionCount$1)}>${_escape(skills.global.length)}${_el_resume($scope52_id, "b")}</span>`);
|
|
5631
|
-
writeScope($scope52_id, {});
|
|
5632
|
-
return 0;
|
|
5633
|
-
}
|
|
5634
|
-
}, $scope0_id, "ag", 1, 1, 1, 0, 1);
|
|
5635
|
-
_html("</div>");
|
|
5636
|
-
_if(() => {
|
|
5637
|
-
if (skills && !skills.agents.length) {
|
|
5638
|
-
const $scope96_id = _scope_id();
|
|
5639
|
-
_html(`<p${_attr_class("_by")}>No agent CLIs are installed, so a skill would have nowhere to go.</p>`);
|
|
5640
|
-
writeScope($scope96_id, {});
|
|
5641
|
-
return 0;
|
|
5642
|
-
} else if (skills && !skills.available) {
|
|
5643
|
-
const $scope24_id = _scope_id();
|
|
5644
|
-
_html(`<p${_attr_class("_by")}>The skills CLI is not installed, so these can be listed but not changed. <button${_attr_class(btnSm)}${_attr("disabled", active.has("skills"))}>${active.has("skills") ? "Installing…" : "Install it"}${_el_resume($scope24_id, "c")}</button>${_el_resume($scope24_id, "b")}</p>`);
|
|
5645
|
-
_script($scope24_id, "v58");
|
|
5646
|
-
writeScope($scope24_id, {});
|
|
5647
|
-
return 1;
|
|
5648
|
-
}
|
|
5649
|
-
}, $scope0_id, "ah", 1, 1, 1, 0, 1);
|
|
5650
|
-
_html(`<ul${_attr_class("_bq")}>`);
|
|
5651
|
-
_for_of(skills?.global || [], (s) => {
|
|
5652
|
-
const $scope25_id = _scope_id();
|
|
5653
|
-
_html(`<li${_attr_class("_bs")}><div${_attr_class("_bt")}><span${_attr_class(["_bu", "_w"])}>${_escape(s.name)}${_el_resume($scope25_id, "d")}</span>`);
|
|
5654
|
-
_if(() => {
|
|
5655
|
-
if (active.has(s.id)) {
|
|
5656
|
-
const $scope26_id = _scope_id();
|
|
5657
|
-
_html(`<span${_attr_class("_cc")}><span${_attr_class("_E")}></span><!>${_escape(active.get(s.id) || "Starting…")}${_el_resume($scope26_id, "c")}</span>`);
|
|
5658
|
-
_subscribe($active__closures, writeScope($scope26_id, { Ceq: 6 }));
|
|
5659
|
-
return 0;
|
|
5660
|
-
} else if (s.description) {
|
|
5661
|
-
const $scope97_id = _scope_id();
|
|
5662
|
-
_html(`<span${_attr_class("_bw")}${_attr("title", s.description)}>${_escape(s.description)}${_el_resume($scope97_id, "b")}</span>${_el_resume($scope97_id, "a")}`);
|
|
5663
|
-
writeScope($scope97_id, {});
|
|
5664
|
-
return 1;
|
|
5665
|
-
}
|
|
5666
|
-
}, $scope25_id, "e", 1, 1, 1, 0, 1);
|
|
5667
|
-
_if(() => {
|
|
5668
|
-
if (s.sourceUrl) {
|
|
5669
|
-
const $scope98_id = _scope_id();
|
|
5670
|
-
_html(`<a${_attr_class(["_bw", "_cS"])}${_attr("href", s.sourceUrl)} target=_blank rel=noopener${_attr("title", `Open ${s.source} on GitHub`)}>${_escape(s.source)}${_el_resume($scope98_id, "b")}</a>${_el_resume($scope98_id, "a")}`);
|
|
5671
|
-
writeScope($scope98_id, {});
|
|
5672
|
-
return 0;
|
|
5673
|
-
} else if (s.source) {
|
|
5674
|
-
const $scope99_id = _scope_id();
|
|
5675
|
-
_html(`<span${_attr_class("_bw")}>${_escape(s.source)}${_el_resume($scope99_id, "b")}</span>`);
|
|
5676
|
-
writeScope($scope99_id, {});
|
|
5677
|
-
return 1;
|
|
5678
|
-
} else {
|
|
5679
|
-
const $scope101_id = _scope_id();
|
|
5680
|
-
_html(`<span${_attr_class(["_bw", "_v"])} title="Not installed from a source, so it cannot be updated">local only</span>`);
|
|
5681
|
-
writeScope($scope101_id, {});
|
|
5682
|
-
return 2;
|
|
5683
|
-
}
|
|
5684
|
-
}, $scope25_id, "f", 1, 1, 1, 0, 1);
|
|
5685
|
-
_html("</div>");
|
|
5686
|
-
_if(() => {
|
|
5687
|
-
if (skills && s.agents.length < skills.agents.length) {
|
|
5688
|
-
const $scope100_id = _scope_id();
|
|
5689
|
-
_html(`<span${_attr_class("_bv")}><span${_attr_class("_H")}${_attr("title", `Only installed for ${s.agents.map(agentLabel).join(", ")}`)}>${_escape(s.agents.map(agentLabel).join(", "))}${_el_resume($scope100_id, "c")} only</span>${_el_resume($scope100_id, "b")}</span>`);
|
|
5690
|
-
writeScope($scope100_id, {});
|
|
5691
|
-
return 0;
|
|
5692
|
-
}
|
|
5693
|
-
}, $scope25_id, "g", 1, 1, 1, 0, 1);
|
|
5694
|
-
_if(() => {
|
|
5695
|
-
if (!active.has(s.id) && skills?.available) {
|
|
5696
|
-
const $scope55_id = _scope_id();
|
|
5697
|
-
_if(() => {
|
|
5698
|
-
if (s.source) {
|
|
5699
|
-
const $scope60_id = _scope_id();
|
|
5700
|
-
_html(`<button${_attr_class(btnSm)}>Update</button>${_el_resume($scope60_id, "a")}`);
|
|
5701
|
-
_script($scope60_id, "v59");
|
|
5702
|
-
writeScope($scope60_id, {});
|
|
5703
|
-
return 0;
|
|
5704
|
-
}
|
|
5705
|
-
}, $scope55_id, "a", 1, 1, 1, 0, 1);
|
|
5706
|
-
_html(`<button${_attr_class([
|
|
5707
|
-
iconBtnXs,
|
|
5708
|
-
"_1",
|
|
5709
|
-
"_2",
|
|
5710
|
-
{ ["_q"]: confirmingSkill === s.id }
|
|
5711
|
-
])}${confirmingSkill === s.id ? _attr("title", `Remove ${s.name}?`) : _attr("title", `Remove ${s.name}`)}>`);
|
|
5712
|
-
_if(() => {
|
|
5713
|
-
if (confirmingSkill === s.id) {
|
|
5714
|
-
const $scope102_id = _scope_id();
|
|
5715
|
-
_html("Remove?");
|
|
5716
|
-
writeScope($scope102_id, {});
|
|
5550
|
+
}, $scope37_id, "b", 1, 1, 1, 0, 1);
|
|
5551
|
+
writeScope($scope37_id, {});
|
|
5717
5552
|
return 0;
|
|
5718
|
-
} else {
|
|
5719
|
-
const $scope103_id = _scope_id();
|
|
5720
|
-
icon_xmark_default({ size: 13 });
|
|
5721
|
-
writeScope($scope103_id, {});
|
|
5722
|
-
return 1;
|
|
5723
5553
|
}
|
|
5724
|
-
}, $
|
|
5725
|
-
|
|
5726
|
-
_subscribe($
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
|
|
5745
|
-
return 0;
|
|
5746
|
-
}
|
|
5747
|
-
}, $scope0_id, "aj", 1, 1, 1, 0, 1);
|
|
5748
|
-
_if(() => {
|
|
5749
|
-
if (skills?.available && skills.agents.length) {
|
|
5750
|
-
const $scope27_id = _scope_id();
|
|
5751
|
-
_html(`<div><label${_attr_class("_V")}>`);
|
|
5752
|
-
icon_search_default({
|
|
5753
|
-
size: 14,
|
|
5754
|
-
class: "_W"
|
|
5755
|
-
});
|
|
5756
|
-
_html(`<input${_attr_input_value($scope27_id, "c", skillQuery, searchSkills)}${_attr_class([inputLg, "_X"])} type=text placeholder="Search skills, or paste owner/repo…" aria-label="Search for a skill" autocomplete=off spellcheck=false>${_el_resume($scope27_id, "c")}</label><ul${_attr_class([toolGrid, "_cu"])}${_attr("hidden", !skillQuery.trim())}>`);
|
|
5554
|
+
}, $scope18_id, "f");
|
|
5555
|
+
_html(`</li>${_el_resume($scope18_id, "a")}`);
|
|
5556
|
+
_subscribe($active__closures, writeScope($scope18_id, {
|
|
5557
|
+
h: t,
|
|
5558
|
+
i: t?.installed,
|
|
5559
|
+
j: t?.label,
|
|
5560
|
+
k: t?.id,
|
|
5561
|
+
m: t?.version,
|
|
5562
|
+
n: t?.path,
|
|
5563
|
+
o: t?.latest,
|
|
5564
|
+
p: t?.installable,
|
|
5565
|
+
r: t?.required,
|
|
5566
|
+
u: $for_content5__t_label__closures,
|
|
5567
|
+
w: $for_content5__t_version__closures,
|
|
5568
|
+
x: $for_content5__t_path__closures,
|
|
5569
|
+
y: $for_content5__t_latest__closures,
|
|
5570
|
+
v: $for_content5__t_id__closures,
|
|
5571
|
+
Cer: 4
|
|
5572
|
+
}));
|
|
5573
|
+
}, "id", $scope6_id, "d", 1, 1, 1, 0, 1);
|
|
5574
|
+
_html("</ul>");
|
|
5757
5575
|
_if(() => {
|
|
5758
|
-
if (
|
|
5759
|
-
const $
|
|
5760
|
-
_html(`<
|
|
5576
|
+
if (setup && setup.mise.installed) {
|
|
5577
|
+
const $scope20_id = _scope_id();
|
|
5578
|
+
_html(`<div><label${_attr_class("_V")}>`);
|
|
5579
|
+
icon_search_default({
|
|
5580
|
+
size: 14,
|
|
5581
|
+
class: "_W"
|
|
5582
|
+
});
|
|
5583
|
+
_html(`<input${_attr_input_value($scope20_id, "c", query, search)}${_attr_class([inputLg, "_X"])} type=text placeholder="Add a tool from the mise registry…" aria-label="Search the mise registry" autocomplete=off>${_el_resume($scope20_id, "c")}</label>`);
|
|
5761
5584
|
_if(() => {
|
|
5762
|
-
if (
|
|
5763
|
-
const $
|
|
5764
|
-
_html(`<
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5585
|
+
if (hits && hits.length) {
|
|
5586
|
+
const $scope21_id = _scope_id();
|
|
5587
|
+
_html(`<ul${_attr_class([toolGrid, "_cx"])}>`);
|
|
5588
|
+
_for_of(hits, (h) => {
|
|
5589
|
+
const $scope22_id = _scope_id();
|
|
5590
|
+
_html(`<li${_attr_class(row)}><div${_attr_class("_bD")}><span${_attr_class(["_cu", "_w"])}>${_escape(h.name)}${_el_resume($scope22_id, "d")}</span>`);
|
|
5591
|
+
_if(() => {
|
|
5592
|
+
if (active.has(h.name)) {
|
|
5593
|
+
const $scope23_id = _scope_id();
|
|
5594
|
+
_html(`<span${_attr_class("_cd")}><span${_attr_class("_E")}></span><!>${_escape(active.get(h.name) || "Starting…")}${_el_resume($scope23_id, "c")}</span>`);
|
|
5595
|
+
_subscribe($active__closures, writeScope($scope23_id, { Cer: 7 }));
|
|
5596
|
+
return 0;
|
|
5597
|
+
} else if (h.description) {
|
|
5598
|
+
const $scope94_id = _scope_id();
|
|
5599
|
+
_html(`<span${_attr_class("_bG")}${_attr("title", h.description)}>${_escape(h.description)}${_el_resume($scope94_id, "b")}</span>${_el_resume($scope94_id, "a")}`);
|
|
5600
|
+
writeScope($scope94_id, {});
|
|
5601
|
+
return 1;
|
|
5602
|
+
}
|
|
5603
|
+
}, $scope22_id, "e", 1, 1, 1, 0, 1);
|
|
5604
|
+
_html("</div>");
|
|
5605
|
+
_if(() => {
|
|
5606
|
+
if (!active.has(h.name)) {
|
|
5607
|
+
const $scope42_id = _scope_id();
|
|
5608
|
+
_if(() => {
|
|
5609
|
+
if (h.installed) {
|
|
5610
|
+
const $scope95_id = _scope_id();
|
|
5611
|
+
_html(`<span${_attr_class("_H")}>installed</span>`);
|
|
5612
|
+
writeScope($scope95_id, {});
|
|
5613
|
+
return 0;
|
|
5614
|
+
} else {
|
|
5615
|
+
const $scope43_id = _scope_id();
|
|
5616
|
+
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope43_id, "a")}<button${_attr_class(btnSm)} title="Install a specific version">@…</button>${_el_resume($scope43_id, "b")}`);
|
|
5617
|
+
_script($scope43_id, "v56");
|
|
5618
|
+
writeScope($scope43_id, {});
|
|
5619
|
+
return 1;
|
|
5620
|
+
}
|
|
5621
|
+
}, $scope42_id, "a");
|
|
5622
|
+
writeScope($scope42_id, {});
|
|
5623
|
+
return 0;
|
|
5624
|
+
}
|
|
5625
|
+
}, $scope22_id, "f");
|
|
5626
|
+
_html("</li>");
|
|
5627
|
+
_subscribe($active__closures, writeScope($scope22_id, {
|
|
5628
|
+
i: h?.name,
|
|
5629
|
+
k: h?.description,
|
|
5630
|
+
m: h?.installed,
|
|
5631
|
+
Cer: 6
|
|
5632
|
+
}));
|
|
5633
|
+
}, "name", $scope21_id, "a", 1, 1, 1, "</ul>", 1);
|
|
5634
|
+
_subscribe($hits__closures, writeScope($scope21_id, { Cf1: 1 }));
|
|
5769
5635
|
return 0;
|
|
5770
|
-
} else {
|
|
5771
|
-
const $
|
|
5772
|
-
_html(`<
|
|
5773
|
-
writeScope($
|
|
5636
|
+
} else if (hits && !searching) {
|
|
5637
|
+
const $scope45_id = _scope_id();
|
|
5638
|
+
_html(`<p${_attr_class("_bI")}>No tools match "<!>${_escape(query)}${_el_resume($scope45_id, "b")}".</p>`);
|
|
5639
|
+
_subscribe($query__closures, writeScope($scope45_id, { Cf0: 1 }));
|
|
5774
5640
|
return 1;
|
|
5775
5641
|
}
|
|
5776
|
-
}, $
|
|
5642
|
+
}, $scope20_id, "d", 1, 1, 1, 0, 1);
|
|
5777
5643
|
_html("</div>");
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
const $scope53_id = _scope_id();
|
|
5781
|
-
_html(`<button${_attr_class(btnSm)}>Add</button>${_el_resume($scope53_id, "a")}`);
|
|
5782
|
-
_script($scope53_id, "v61");
|
|
5783
|
-
writeScope($scope53_id, {});
|
|
5784
|
-
return 0;
|
|
5785
|
-
}
|
|
5786
|
-
}, $scope28_id, "f", 1, 1, 1, 0, 1);
|
|
5787
|
-
_html("</li>");
|
|
5788
|
-
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($scope28_id, { Ceq: 7 })));
|
|
5789
|
-
return 0;
|
|
5790
|
-
}
|
|
5791
|
-
}, $scope27_id, "e", 1, 1, 1, 0, 1);
|
|
5792
|
-
_for_of(skillHits || [], (h) => {
|
|
5793
|
-
const $scope30_id = _scope_id();
|
|
5794
|
-
const $for_content8__h_installs__closures = /* @__PURE__ */ new Set();
|
|
5795
|
-
_html(`<li${_attr_class(row)}><div${_attr_class("_bt")}><span${_attr_class(["_cr", "_w"])}>${_escape(h.name)}${_el_resume($scope30_id, "d")}</span>`);
|
|
5796
|
-
_if(() => {
|
|
5797
|
-
if (active.has(h.skillId)) {
|
|
5798
|
-
const $scope31_id = _scope_id();
|
|
5799
|
-
_html(`<span${_attr_class("_cc")}><span${_attr_class("_E")}></span><!>${_escape(active.get(h.skillId) || "Starting…")}${_el_resume($scope31_id, "c")}</span>`);
|
|
5800
|
-
_subscribe($active__closures, writeScope($scope31_id, { Ceq: 10 }));
|
|
5801
|
-
return 0;
|
|
5802
|
-
} else {
|
|
5803
|
-
const $scope106_id = _scope_id();
|
|
5804
|
-
_html(`<span${_attr_class("_bw")}${_attr("title", h.source)}>${_escape(h.source)}${_el_resume($scope106_id, "b")}</span>${_el_resume($scope106_id, "a")}`);
|
|
5805
|
-
writeScope($scope106_id, {});
|
|
5806
|
-
return 1;
|
|
5807
|
-
}
|
|
5808
|
-
}, $scope30_id, "e", 1, 1, 1, 0, 1);
|
|
5809
|
-
_html("</div>");
|
|
5810
|
-
_if(() => {
|
|
5811
|
-
if (!active.has(h.skillId)) {
|
|
5812
|
-
const $scope61_id = _scope_id();
|
|
5813
|
-
_if(() => {
|
|
5814
|
-
if (h.installs) {
|
|
5815
|
-
const $scope107_id = _scope_id();
|
|
5816
|
-
_html(`<span${_attr_class(["_H", "_I"])}${_attr("title", `${h.installs} installs`)}>${_escape(skillInstalls(h.installs))}${_el_resume($scope107_id, "b")}</span>${_el_resume($scope107_id, "a")}`);
|
|
5817
|
-
_subscribe($for_content8__h_installs__closures, writeScope($scope107_id, {}));
|
|
5818
|
-
return 0;
|
|
5819
|
-
}
|
|
5820
|
-
}, $scope61_id, "a", 1, 1, 1, 0, 1);
|
|
5821
|
-
_if(() => {
|
|
5822
|
-
if (h.installed) {
|
|
5823
|
-
const $scope108_id = _scope_id();
|
|
5824
|
-
_html(`<span${_attr_class("_H")}>installed</span>`);
|
|
5825
|
-
writeScope($scope108_id, {});
|
|
5826
|
-
return 0;
|
|
5827
|
-
} else {
|
|
5828
|
-
const $scope62_id = _scope_id();
|
|
5829
|
-
_html(`<button${_attr_class(btnSm)}>Add</button>${_el_resume($scope62_id, "a")}`);
|
|
5830
|
-
_script($scope62_id, "v62");
|
|
5831
|
-
writeScope($scope62_id, {});
|
|
5832
|
-
return 1;
|
|
5833
|
-
}
|
|
5834
|
-
}, $scope61_id, "b", 1, 1, 1, 0, 1);
|
|
5835
|
-
writeScope($scope61_id, {});
|
|
5836
|
-
return 0;
|
|
5837
|
-
}
|
|
5838
|
-
}, $scope30_id, "f");
|
|
5839
|
-
_html("</li>");
|
|
5840
|
-
_subscribe($active__closures, writeScope($scope30_id, {
|
|
5841
|
-
j: h?.skillId,
|
|
5842
|
-
l: h?.source,
|
|
5843
|
-
m: h?.installs,
|
|
5844
|
-
n: h?.installed,
|
|
5845
|
-
q: $for_content8__h_installs__closures,
|
|
5846
|
-
Ceq: 9
|
|
5847
|
-
}));
|
|
5848
|
-
}, "skillId", $scope27_id, "f", 1, 1, 1, 0, 1);
|
|
5849
|
-
_html(`</ul>${_el_resume($scope27_id, "d")}`);
|
|
5850
|
-
_if(() => {
|
|
5851
|
-
if (skillHits && !skillHits.length && !skillSearching && !looksLikeSource(skillQuery)) {
|
|
5852
|
-
const $scope54_id = _scope_id();
|
|
5853
|
-
_html(`<p${_attr_class("_by")}>No skills match "<!>${_escape(skillQuery)}${_el_resume($scope54_id, "b")}".</p>`);
|
|
5854
|
-
_subscribe($skillQuery__closures, writeScope($scope54_id, { Cfa: 2 }));
|
|
5644
|
+
_script($scope20_id, "v57");
|
|
5645
|
+
_subscribe($search2__closures, _subscribe($searching__closures, _subscribe($hits__closures, _subscribe($query__closures, writeScope($scope20_id, {})))));
|
|
5855
5646
|
return 0;
|
|
5856
5647
|
}
|
|
5857
|
-
}, $
|
|
5858
|
-
|
|
5859
|
-
_script($scope27_id, "v63");
|
|
5860
|
-
writeScope($scope27_id, {});
|
|
5648
|
+
}, $scope6_id, "e", 1, 1, 1, 0, 1);
|
|
5649
|
+
writeScope($scope6_id, {});
|
|
5861
5650
|
return 0;
|
|
5862
5651
|
}
|
|
5863
|
-
}, $scope0_id, "
|
|
5652
|
+
}, $scope0_id, "aa");
|
|
5653
|
+
_html(`</section><section${_attr_class("_bx")}${_attr("aria-labelledby", skillsId)}><div${_attr_class("_by")}><h2${_attr("id", skillsId)}${_attr_class("_bL")}><button${_attr_class("_cf")} aria-expanded=false>`);
|
|
5654
|
+
_set_serialize_reason(1);
|
|
5655
|
+
const $childScope12 = _peek_scope_id();
|
|
5656
|
+
icon_chevron_right_default({
|
|
5657
|
+
size: 11,
|
|
5658
|
+
class: ["_cg", { ["_ch"]: skillsOpen }]
|
|
5659
|
+
});
|
|
5660
|
+
_html(` Skills</button>${_el_resume($scope0_id, "ae")}</h2>`);
|
|
5661
|
+
_if(() => {
|
|
5662
|
+
if (skills?.global.length) {
|
|
5663
|
+
const $scope53_id = _scope_id();
|
|
5664
|
+
_html(`<span${_attr_class(sectionCount$1)}>${_escape(skills.global.length)}${_el_resume($scope53_id, "b")}</span>`);
|
|
5665
|
+
writeScope($scope53_id, {});
|
|
5666
|
+
return 0;
|
|
5667
|
+
}
|
|
5668
|
+
}, $scope0_id, "ag", 1, 1, 1, 0, 1);
|
|
5669
|
+
_html("</div>");
|
|
5670
|
+
_if(() => {}, $scope0_id, "ah");
|
|
5864
5671
|
const themeOpts = [
|
|
5865
5672
|
{
|
|
5866
5673
|
id: "system",
|
|
@@ -5875,56 +5682,56 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5875
5682
|
label: "Dark"
|
|
5876
5683
|
}
|
|
5877
5684
|
];
|
|
5878
|
-
_html(`</section><section${_attr_class("
|
|
5685
|
+
_html(`</section><section${_attr_class("_bx")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_by")}><h2${_attr("id", appearanceId)}${_attr_class("_bL")}>Appearance</h2></div><div${_attr_class(["_bC", "_cD"])}><label${_attr_class("_cE")}><span${_attr_class("_cF")}>Name</span><input${_attr_input_value($scope0_id, "ao", input.instance.name, _resume(function(v) {
|
|
5879
5686
|
setInstance({ name: v });
|
|
5880
|
-
}, "v4", $scope0_id))}${_attr_class(["_T", "
|
|
5687
|
+
}, "v4", $scope0_id))}${_attr_class(["_T", "_cG"])} type=text placeholder="Tab title" maxlength=32 autocomplete=off spellcheck=false>${_el_resume($scope0_id, "ao")}</label><div${_attr_class("_cE")}><span${_attr_class("_cF")}>Theme</span><span${_attr_class("_cI")}><span${_attr_class(themeSeg)} role=radiogroup aria-label="Color theme">`);
|
|
5881
5688
|
_for_of(themeOpts, (opt) => {
|
|
5882
|
-
const $
|
|
5883
|
-
_html(`<button type=button${_attr_class(["
|
|
5884
|
-
_script($
|
|
5885
|
-
writeScope($
|
|
5689
|
+
const $scope52_id = _scope_id();
|
|
5690
|
+
_html(`<button type=button${_attr_class(["_8", { ["_7"]: themeMode === opt.id }])} role=radio aria-checked=${themeMode === opt.id ? "true" : "false"}>${_escape(opt.label)}</button>${_el_resume($scope52_id, "a")}`);
|
|
5691
|
+
_script($scope52_id, "v65");
|
|
5692
|
+
writeScope($scope52_id, {
|
|
5886
5693
|
e: opt?.id,
|
|
5887
5694
|
_: _scope_with_id($scope0_id)
|
|
5888
5695
|
});
|
|
5889
|
-
}, "id", $scope0_id, "
|
|
5890
|
-
_html(`</span><span${_attr_class(["_m", "
|
|
5891
|
-
_attr_select_value($scope0_id, "
|
|
5696
|
+
}, "id", $scope0_id, "as", 1, 0, 1, 0, 1);
|
|
5697
|
+
_html(`</span><span${_attr_class(["_m", "_cJ"])}>`);
|
|
5698
|
+
_attr_select_value($scope0_id, "au", themeMode, _resume(function(v) {
|
|
5892
5699
|
setThemeMode(v);
|
|
5893
5700
|
}, "v5", $scope0_id), () => {
|
|
5894
|
-
_html(`<select${_attr_class(["_n", "
|
|
5701
|
+
_html(`<select${_attr_class(["_n", "_cK"])} aria-label="Color theme">`);
|
|
5895
5702
|
forOf(themeOpts, (opt) => {
|
|
5896
5703
|
_scope_id();
|
|
5897
5704
|
_html(`<option${_attr_option_value(opt.id)}>${_escape(opt.label)}</option>`);
|
|
5898
5705
|
});
|
|
5899
5706
|
_html("</select>");
|
|
5900
5707
|
});
|
|
5901
|
-
_html(`${_el_resume($scope0_id, "
|
|
5902
|
-
"
|
|
5903
|
-
"
|
|
5904
|
-
{ ["
|
|
5905
|
-
])} role=radio aria-checked=${!input.instance.accent ? "true" : "false"} title="Default (blue)" aria-label="Default (blue)"></button>${_el_resume($scope0_id, "
|
|
5708
|
+
_html(`${_el_resume($scope0_id, "au")}</span></span></div><div${_attr_class("_cE")}><span${_attr_class("_cF")}>Accent</span><span${_attr_class(swatches)} role=radiogroup aria-label="Accent colour"><button type=button${_attr_class([
|
|
5709
|
+
"_cQ",
|
|
5710
|
+
"_cS",
|
|
5711
|
+
{ ["_cR"]: !input.instance.accent }
|
|
5712
|
+
])} role=radio aria-checked=${!input.instance.accent ? "true" : "false"} title="Default (blue)" aria-label="Default (blue)"></button>${_el_resume($scope0_id, "ay")}`);
|
|
5906
5713
|
_for_of(ACCENT_PRESETS, (p) => {
|
|
5907
5714
|
const $scope4_id = _scope_id();
|
|
5908
|
-
_html(`<button type=button${_attr_class(["
|
|
5909
|
-
_script($scope4_id, "
|
|
5715
|
+
_html(`<button type=button${_attr_class(["_cQ", { ["_cR"]: input.instance.accent === p.value }])}${_attr_style(`--swatch:${p.value}`)} role=radio aria-checked=${input.instance.accent === p.value ? "true" : "false"}${_attr("title", p.name)}${_attr("aria-label", p.name)}></button>${_el_resume($scope4_id, "a")}`);
|
|
5716
|
+
_script($scope4_id, "v66");
|
|
5910
5717
|
writeScope($scope4_id, {
|
|
5911
5718
|
d: p?.value,
|
|
5912
5719
|
_: _scope_with_id($scope0_id)
|
|
5913
5720
|
});
|
|
5914
|
-
}, "value", $scope0_id, "
|
|
5721
|
+
}, "value", $scope0_id, "az", $sg__input_instance_accent, 0, 1, 0, 1);
|
|
5915
5722
|
const customOn = !!input.instance.accent && !ACCENT_PRESETS.some((p) => p.value === input.instance.accent);
|
|
5916
5723
|
_html(`<label${_attr_class([
|
|
5917
|
-
"_cN",
|
|
5918
5724
|
"_cQ",
|
|
5919
|
-
|
|
5920
|
-
|
|
5725
|
+
"_cT",
|
|
5726
|
+
{ ["_cR"]: customOn }
|
|
5727
|
+
])}${customOn ? _attr_style(`--swatch:${input.instance.accent}`) : ""} title="Custom colour"><input${_attr_input_value($scope0_id, "b1", input.instance.accent || "#3556d8", _resume(function(v) {
|
|
5921
5728
|
setInstance({ accent: v });
|
|
5922
|
-
}, "v6", $scope0_id))}${_attr_class("
|
|
5729
|
+
}, "v6", $scope0_id))}${_attr_class("_cU")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "b1")}<span aria-hidden=true>+</span></label>${_el_resume($scope0_id, "b0", $sg__input_instance_accent)}</span></div></div></section></div></div></div>`);
|
|
5923
5730
|
_if(() => {
|
|
5924
5731
|
if (versionPick) {
|
|
5925
|
-
const $
|
|
5732
|
+
const $scope39_id = _scope_id();
|
|
5926
5733
|
_set_serialize_reason(14);
|
|
5927
|
-
const $
|
|
5734
|
+
const $childScope13 = _peek_scope_id();
|
|
5928
5735
|
prompt_dialog_default({
|
|
5929
5736
|
label: `Pin ${versionPick.label}: latest, lts, a prefix (22), or exact (22.11.0)`,
|
|
5930
5737
|
placeholder: "latest",
|
|
@@ -5933,126 +5740,141 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5933
5740
|
open: versionPick != null,
|
|
5934
5741
|
openChange: _resume(function(o) {
|
|
5935
5742
|
if (!o) versionPick = null;
|
|
5936
|
-
}, "v34", $
|
|
5743
|
+
}, "v34", $scope39_id),
|
|
5937
5744
|
onSubmit: _resume(function(v) {
|
|
5938
5745
|
const pick = versionPick;
|
|
5939
5746
|
versionPick = null;
|
|
5940
5747
|
run(pick.id, "install", v);
|
|
5941
|
-
}, "v35", $
|
|
5748
|
+
}, "v35", $scope39_id)
|
|
5942
5749
|
});
|
|
5943
|
-
writeScope($
|
|
5750
|
+
writeScope($scope39_id, { a: _existing_scope($childScope13) });
|
|
5944
5751
|
return 0;
|
|
5945
5752
|
}
|
|
5946
|
-
}, $scope0_id, "
|
|
5947
|
-
_script($scope0_id, "v66");
|
|
5753
|
+
}, $scope0_id, "b2", 1, 1, 1, 0, 1);
|
|
5948
5754
|
_script($scope0_id, "v67");
|
|
5755
|
+
_script($scope0_id, "v68");
|
|
5949
5756
|
writeScope($scope0_id, {
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
|
|
5965
|
-
|
|
5966
|
-
|
|
5967
|
-
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
|
|
5757
|
+
b6: input.setupChange,
|
|
5758
|
+
b7: input.agentsChange,
|
|
5759
|
+
b8: input.preferred,
|
|
5760
|
+
b9: input.preferredChange,
|
|
5761
|
+
bb: input.instance,
|
|
5762
|
+
bc: input.instanceChange,
|
|
5763
|
+
be: input.onExit,
|
|
5764
|
+
bg: $si__input_instance__OR__input_instanceChange && input.instance?.name,
|
|
5765
|
+
bh: $si__input_instance__OR__input_instanceChange && input.instance?.accent,
|
|
5766
|
+
bi: setup,
|
|
5767
|
+
bj: setup?.agents,
|
|
5768
|
+
bl: setup?.missing,
|
|
5769
|
+
bn: usage,
|
|
5770
|
+
bo: usage?.agents,
|
|
5771
|
+
bp: usage?.error,
|
|
5772
|
+
bq: error,
|
|
5773
|
+
br: refreshing,
|
|
5774
|
+
bt: active,
|
|
5775
|
+
bu: active?.size,
|
|
5776
|
+
bv: authCodes,
|
|
5777
|
+
bw: confirmingRemove,
|
|
5778
|
+
bx: versionPick,
|
|
5779
|
+
by: versionPick?.label,
|
|
5780
|
+
bz: versionPick?.current,
|
|
5781
|
+
c0: hostInput,
|
|
5782
|
+
c1: hostBusy,
|
|
5783
|
+
c2: query,
|
|
5784
|
+
c3: hits,
|
|
5785
|
+
c4: self,
|
|
5786
|
+
c5: self?.install,
|
|
5787
|
+
c6: self?.latest,
|
|
5788
|
+
c7: self?.version,
|
|
5789
|
+
c8: selfUpdating,
|
|
5790
|
+
cb: searching,
|
|
5791
|
+
cd: searchTimer.id,
|
|
5792
|
+
cf: skills,
|
|
5793
|
+
cg: skills?.global,
|
|
5794
|
+
ch: skills?.global?.length,
|
|
5795
|
+
cj: skills?.agents?.length,
|
|
5796
|
+
ck: skills?.available,
|
|
5797
|
+
cl: skillQuery,
|
|
5798
|
+
cm: skillHits,
|
|
5799
|
+
cn: skillSearching,
|
|
5800
|
+
co: confirmingSkill,
|
|
5801
|
+
cq: skillTimer.id,
|
|
5802
|
+
cs: machineOpen,
|
|
5803
|
+
ct: skillsOpen,
|
|
5804
|
+
cu: setThemeMode,
|
|
5805
|
+
cy: applySetup,
|
|
5806
|
+
d0: syncAgents,
|
|
5807
|
+
d1: loadSetup,
|
|
5808
|
+
d2: loadSelf,
|
|
5809
|
+
d4: updateSelf,
|
|
5810
|
+
d5: loadUsage,
|
|
5811
|
+
d7: refresh,
|
|
5812
|
+
d8: refreshUsage,
|
|
5813
|
+
d9: setActive,
|
|
5814
|
+
db: run,
|
|
5815
|
+
dc: applySkills,
|
|
5816
|
+
de: loadSkills,
|
|
5817
|
+
df: runSkill,
|
|
5818
|
+
dg: searchSkills,
|
|
5819
|
+
dh: changeHost,
|
|
5820
|
+
di: runEach,
|
|
5821
|
+
dj: setPreferred,
|
|
5822
|
+
dm: saveTimer.id,
|
|
5823
|
+
do: setInstance,
|
|
5824
|
+
dr: setEnabled,
|
|
5825
|
+
ds: search,
|
|
5826
|
+
dt: outdated,
|
|
5827
|
+
du: tools,
|
|
5828
|
+
dw: missingInstallable,
|
|
5829
|
+
dx: missingInstallable?.length,
|
|
6017
5830
|
dz: missingCount,
|
|
6018
5831
|
e0: outdatedIds,
|
|
6019
5832
|
e1: outdatedIds?.length,
|
|
6020
|
-
|
|
6021
|
-
|
|
6022
|
-
|
|
6023
|
-
|
|
6024
|
-
|
|
6025
|
-
|
|
6026
|
-
|
|
6027
|
-
|
|
6028
|
-
|
|
6029
|
-
|
|
6030
|
-
|
|
6031
|
-
f3: $self_version__closures,
|
|
5833
|
+
e3: families,
|
|
5834
|
+
e5: families.length,
|
|
5835
|
+
e7: instanceIds,
|
|
5836
|
+
e9: accountsFor,
|
|
5837
|
+
ea: strayAccountsFor,
|
|
5838
|
+
en: $setup_missing__closures,
|
|
5839
|
+
eq: $refreshing__closures,
|
|
5840
|
+
d: _existing_scope($childScope2),
|
|
5841
|
+
ep: $error__closures,
|
|
5842
|
+
f4: $self_latest__closures,
|
|
5843
|
+
f5: $self_version__closures,
|
|
6032
5844
|
p: _existing_scope($childScope3),
|
|
6033
|
-
|
|
6034
|
-
|
|
6035
|
-
|
|
6036
|
-
|
|
6037
|
-
|
|
6038
|
-
|
|
6039
|
-
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
|
|
6044
|
-
|
|
5845
|
+
er: $active__closures,
|
|
5846
|
+
ek: $si__input_preferred && $input_preferred__closures,
|
|
5847
|
+
fq: $accountsFor2__closures,
|
|
5848
|
+
et: $authCodes__closures,
|
|
5849
|
+
eu: $confirmingRemove__closures,
|
|
5850
|
+
fi: $si__input_setupChange && $refresh2__closures,
|
|
5851
|
+
fj: $run2__closures,
|
|
5852
|
+
a4: _existing_scope($childScope11),
|
|
5853
|
+
f3: $self_install__closures,
|
|
5854
|
+
f6: $selfUpdating__closures,
|
|
5855
|
+
f1: $hits__closures,
|
|
5856
|
+
f0: $query__closures,
|
|
5857
|
+
f8: $searching__closures,
|
|
5858
|
+
fl: $search2__closures,
|
|
5859
|
+
af: _existing_scope($childScope12),
|
|
5860
|
+
fh: $confirmingSkill__closures,
|
|
5861
|
+
f9: $skills__closures,
|
|
5862
|
+
fd: $skills_available__closures,
|
|
5863
|
+
fe: $skillQuery__closures,
|
|
5864
|
+
ff: $skillHits__closures,
|
|
5865
|
+
fg: $skillSearching__closures,
|
|
5866
|
+
fk: $searchSkills2__closures
|
|
6045
5867
|
});
|
|
6046
5868
|
_resume_branch($scope0_id);
|
|
6047
5869
|
});
|
|
6048
5870
|
//#endregion
|
|
6049
5871
|
//#region src/tags/new-workspace.css.ts
|
|
6050
|
-
var content$1 = "
|
|
6051
|
-
var section$1 = "
|
|
6052
|
-
var curBase = "
|
|
6053
|
-
var archived = "
|
|
6054
|
-
var archivedHint = "
|
|
6055
|
-
var archivedCard = "
|
|
5872
|
+
var content$1 = "_bM _bp";
|
|
5873
|
+
var section$1 = "_bQ _bx";
|
|
5874
|
+
var curBase = "_bV _S _R";
|
|
5875
|
+
var archived = "_b0 _bx";
|
|
5876
|
+
var archivedHint = "_b1 _R";
|
|
5877
|
+
var archivedCard = "_b2 _bC";
|
|
6056
5878
|
//#endregion
|
|
6057
5879
|
//#region src/tags/icons/icon-check.marko
|
|
6058
5880
|
var icon_check_default = _template("P", (input) => {
|
|
@@ -6087,7 +5909,7 @@ var icon_branch_default = _template("O", (input) => {
|
|
|
6087
5909
|
});
|
|
6088
5910
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
6089
5911
|
});
|
|
6090
|
-
var resultBranch = "
|
|
5912
|
+
var resultBranch = "_c_ _Y _j";
|
|
6091
5913
|
//#endregion
|
|
6092
5914
|
//#region src/tags/branch-pick.marko
|
|
6093
5915
|
var branch_pick_default = _template("d", (input) => {
|
|
@@ -6100,11 +5922,11 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
6100
5922
|
let branchFilter = "";
|
|
6101
5923
|
let reloadTick = 0;
|
|
6102
5924
|
let refreshing = false;
|
|
6103
|
-
_html(`<div${_attr_class("
|
|
5925
|
+
_html(`<div${_attr_class("_db")}>`);
|
|
6104
5926
|
_if(() => {
|
|
6105
5927
|
{
|
|
6106
5928
|
const $scope4_id = _scope_id();
|
|
6107
|
-
_html(`<p${_attr_class("
|
|
5929
|
+
_html(`<p${_attr_class("_bI")}><span${_attr_class("_E")}></span> Loading branches…</p>`);
|
|
6108
5930
|
writeScope($scope4_id, {});
|
|
6109
5931
|
return 0;
|
|
6110
5932
|
}
|
|
@@ -6182,11 +6004,11 @@ var repo_picker_default = _template("t", (input) => {
|
|
|
6182
6004
|
const ignored = new Set(prefs$1?.ignoredSsoOrgs?.() ?? []);
|
|
6183
6005
|
return (catalog?.sso || []).filter((s) => !ignored.has(s.org));
|
|
6184
6006
|
})();
|
|
6185
|
-
_html(`<div${_attr_class("
|
|
6007
|
+
_html(`<div${_attr_class("_c3")}>`);
|
|
6186
6008
|
_if(() => {
|
|
6187
6009
|
if (ssoPending.length) {
|
|
6188
6010
|
const $scope7_id = _scope_id();
|
|
6189
|
-
_html(`<div${_attr_class("
|
|
6011
|
+
_html(`<div${_attr_class("_c4")}>`);
|
|
6190
6012
|
_set_serialize_reason(154);
|
|
6191
6013
|
const $childScope = _peek_scope_id();
|
|
6192
6014
|
sso_auth_default({
|
|
@@ -6216,16 +6038,16 @@ var repo_picker_default = _template("t", (input) => {
|
|
|
6216
6038
|
_if(() => {
|
|
6217
6039
|
if (pasted) {
|
|
6218
6040
|
const $scope1_id = _scope_id();
|
|
6219
|
-
_html(`<ul${_attr_class("
|
|
6041
|
+
_html(`<ul${_attr_class("_c5")}><li><div${_attr_class(["_c7", "_c6"])}><button${_attr_class("_c8")}${pasteWillFork ? _attr("title", `Fork ${pasted} to your account and add the fork`) : _attr("title", `Add ${pasted} as-is (pushes go to that repo)`)}>`);
|
|
6220
6042
|
icon_plus_default({
|
|
6221
6043
|
size: 12,
|
|
6222
|
-
class: "
|
|
6044
|
+
class: "_dd"
|
|
6223
6045
|
});
|
|
6224
|
-
_html(`<span${_attr_class("
|
|
6046
|
+
_html(`<span${_attr_class("_de")}>${_escape(repoLabel(pasted))}${_el_resume($scope1_id, "f")}</span></button>${_el_resume($scope1_id, "c")}`);
|
|
6225
6047
|
_if(() => {
|
|
6226
6048
|
if (pastedForkable) {
|
|
6227
6049
|
const $scope8_id = _scope_id();
|
|
6228
|
-
_html(`<button${_attr_class(["
|
|
6050
|
+
_html(`<button${_attr_class(["_da", { ["_c9"]: 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"}>`);
|
|
6229
6051
|
_if(() => {
|
|
6230
6052
|
if (pasteWillFork) {
|
|
6231
6053
|
const $scope10_id = _scope_id();
|
|
@@ -6245,7 +6067,7 @@ var repo_picker_default = _template("t", (input) => {
|
|
|
6245
6067
|
return 0;
|
|
6246
6068
|
}
|
|
6247
6069
|
}, $scope1_id, "g", 1, 1, 1, 0, 1);
|
|
6248
|
-
_html(`<button${_attr_class([resultBranch, { ["
|
|
6070
|
+
_html(`<button${_attr_class([resultBranch, { ["_c9"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>`);
|
|
6249
6071
|
icon_branch_default({ size: 12 });
|
|
6250
6072
|
_html(`</button>${_el_resume($scope1_id, "h")}</div>`);
|
|
6251
6073
|
_if(() => {
|
|
@@ -6272,7 +6094,7 @@ var repo_picker_default = _template("t", (input) => {
|
|
|
6272
6094
|
return 0;
|
|
6273
6095
|
} else if (filter && !catalog) {
|
|
6274
6096
|
const $scope9_id = _scope_id();
|
|
6275
|
-
_html(`<p${_attr_class("
|
|
6097
|
+
_html(`<p${_attr_class("_bI")}>Loading repos…</p>`);
|
|
6276
6098
|
writeScope($scope9_id, {});
|
|
6277
6099
|
return 1;
|
|
6278
6100
|
}
|
|
@@ -6280,15 +6102,15 @@ var repo_picker_default = _template("t", (input) => {
|
|
|
6280
6102
|
_if(() => {
|
|
6281
6103
|
if (results.length) {
|
|
6282
6104
|
const $scope3_id = _scope_id();
|
|
6283
|
-
_html(`<ul${_attr_class("
|
|
6105
|
+
_html(`<ul${_attr_class("_c5")}>`);
|
|
6284
6106
|
_for_of(results, (repo, i) => {
|
|
6285
6107
|
const $scope4_id = _scope_id();
|
|
6286
|
-
_html(`<li><div${_attr_class(["
|
|
6108
|
+
_html(`<li><div${_attr_class(["_c7", { ["_c6"]: i === highlight }])}><button${_attr_class("_c8")}>`);
|
|
6287
6109
|
icon_plus_default({
|
|
6288
6110
|
size: 12,
|
|
6289
|
-
class: "
|
|
6111
|
+
class: "_dd"
|
|
6290
6112
|
});
|
|
6291
|
-
_html(`<span${_attr_class("
|
|
6113
|
+
_html(`<span${_attr_class("_de")}>${_escape(repoLabel(repo.nameWithOwner))}${_el_resume($scope4_id, "e")}</span></button>${_el_resume($scope4_id, "b")}<button${_attr_class([resultBranch, { ["_c9"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>`);
|
|
6292
6114
|
icon_branch_default({ size: 12 });
|
|
6293
6115
|
_html(`</button>${_el_resume($scope4_id, "f")}</div>${_el_resume($scope4_id, "a")}`);
|
|
6294
6116
|
_if(() => {
|
|
@@ -6323,7 +6145,7 @@ var repo_picker_default = _template("t", (input) => {
|
|
|
6323
6145
|
return 0;
|
|
6324
6146
|
} else if (filter && catalog && !pasted) {
|
|
6325
6147
|
const $scope6_id = _scope_id();
|
|
6326
|
-
_html(`<p${_attr_class("
|
|
6148
|
+
_html(`<p${_attr_class("_bI")}>No repos match "<!>${_escape(filter)}${_el_resume($scope6_id, "b")}". Paste a clone URL to add any repo.</p>`);
|
|
6327
6149
|
writeScope($scope6_id, {});
|
|
6328
6150
|
return 1;
|
|
6329
6151
|
}
|
|
@@ -6464,7 +6286,7 @@ var new_workspace_default = _template("q", (input) => {
|
|
|
6464
6286
|
}
|
|
6465
6287
|
}, "q6", $scope0_id);
|
|
6466
6288
|
const titleId = _id();
|
|
6467
|
-
_html(`<div${_attr_class("
|
|
6289
|
+
_html(`<div${_attr_class("_bn")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bo")}><div${_attr_class(content$1)}>`);
|
|
6468
6290
|
_set_serialize_reason({
|
|
6469
6291
|
0: _serialize_guard($scope0_reason, 2),
|
|
6470
6292
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -6503,23 +6325,23 @@ var new_workspace_default = _template("q", (input) => {
|
|
|
6503
6325
|
return 0;
|
|
6504
6326
|
}
|
|
6505
6327
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
6506
|
-
_html(`<label${_attr_class("
|
|
6328
|
+
_html(`<label${_attr_class("_bP")}><span${_attr_class("_bL")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
|
|
6507
6329
|
name = _new_name;
|
|
6508
|
-
}, "q0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class(section$1)}><div${_attr_class("
|
|
6330
|
+
}, "q0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class(section$1)}><div${_attr_class("_bR")}><h2${_attr_class("_bL")}>Repos</h2><button${_attr_class(iconBtnRow)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
6509
6331
|
_set_serialize_reason(1);
|
|
6510
6332
|
const $childScope2 = _peek_scope_id();
|
|
6511
6333
|
icon_refresh_default({
|
|
6512
6334
|
size: 14,
|
|
6513
6335
|
class: catalogRefreshing && "_D"
|
|
6514
6336
|
});
|
|
6515
|
-
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("
|
|
6337
|
+
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("_bS")}>`);
|
|
6516
6338
|
_for_of(selected, (repo) => {
|
|
6517
6339
|
const $scope2_id = _scope_id();
|
|
6518
|
-
_html(`<li><div${_attr_class(row)}><span${_attr_class("
|
|
6340
|
+
_html(`<li><div${_attr_class(row)}><span${_attr_class("_bT")}>${_escape(repoLabel(repo.fullName))}${_el_resume($scope2_id, "c")}</span>`);
|
|
6519
6341
|
_if(() => {
|
|
6520
6342
|
if (repo.fork !== void 0) {
|
|
6521
6343
|
const $scope3_id = _scope_id();
|
|
6522
|
-
_html(`<button${_attr_class(["
|
|
6344
|
+
_html(`<button${_attr_class(["_bW", { ["_bU"]: repo.fork }])}${repo.fork ? _attr("title", `${repo.fullName} will be forked to your account; click to clone as-is instead`) : _attr("title", `Fork ${repo.fullName} to your account and clone the fork`)} aria-pressed=${repo.fork ? "true" : "false"}${_attr("disabled", busy)}>`);
|
|
6523
6345
|
_if(() => {
|
|
6524
6346
|
if (repo.fork) {
|
|
6525
6347
|
const $scope12_id = _scope_id();
|
|
@@ -6542,10 +6364,10 @@ var new_workspace_default = _template("q", (input) => {
|
|
|
6542
6364
|
_html(`<button${_attr_class([
|
|
6543
6365
|
curBase,
|
|
6544
6366
|
"_w",
|
|
6545
|
-
{ ["
|
|
6367
|
+
{ ["_bU"]: branchesFor === repo.fullName }
|
|
6546
6368
|
])}${_attr("title", `Change base branch for ${repo.fullName}`)}${_attr("aria-label", `Change base branch for ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
6547
6369
|
icon_branch_default({ size: 12 });
|
|
6548
|
-
_html(`<!>${repo.baseBranch ? ` ${_escape(`${_to_text(repo.baseBranch)}`)}` : ""}${_el_resume($scope2_id, "g")}</button>${_el_resume($scope2_id, "e")}<button${_attr_class([iconBtnXs, "
|
|
6370
|
+
_html(`<!>${repo.baseBranch ? ` ${_escape(`${_to_text(repo.baseBranch)}`)}` : ""}${_el_resume($scope2_id, "g")}</button>${_el_resume($scope2_id, "e")}<button${_attr_class([iconBtnXs, "_2"])}${_attr("title", `Remove ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
6549
6371
|
icon_xmark_default({ size: 12 });
|
|
6550
6372
|
_html(`</button>${_el_resume($scope2_id, "h")}</div>`);
|
|
6551
6373
|
_if(() => {
|
|
@@ -6578,7 +6400,7 @@ var new_workspace_default = _template("q", (input) => {
|
|
|
6578
6400
|
_if(() => {
|
|
6579
6401
|
if (!selected.length) {
|
|
6580
6402
|
const $scope14_id = _scope_id();
|
|
6581
|
-
_html(`<li${_attr_class("
|
|
6403
|
+
_html(`<li${_attr_class("_bI")}>No repos yet. Search below to add one, or create it empty.</li>`);
|
|
6582
6404
|
writeScope($scope14_id, {});
|
|
6583
6405
|
return 0;
|
|
6584
6406
|
}
|
|
@@ -6603,10 +6425,10 @@ var new_workspace_default = _template("q", (input) => {
|
|
|
6603
6425
|
_if(() => {
|
|
6604
6426
|
if (busy && steps$1.length) {
|
|
6605
6427
|
const $scope9_id = _scope_id();
|
|
6606
|
-
_html(`<ul${_attr_class("
|
|
6428
|
+
_html(`<ul${_attr_class("_bX")}>`);
|
|
6607
6429
|
_for_of(steps$1, (step$1, i) => {
|
|
6608
6430
|
const $scope10_id = _scope_id();
|
|
6609
|
-
_html(`<li${_attr_class(["
|
|
6431
|
+
_html(`<li${_attr_class(["_b3", { ["_bY"]: i === steps$1.length - 1 }])}>`);
|
|
6610
6432
|
_if(() => {
|
|
6611
6433
|
if (i === steps$1.length - 1) {
|
|
6612
6434
|
const $scope15_id = _scope_id();
|
|
@@ -6615,7 +6437,7 @@ var new_workspace_default = _template("q", (input) => {
|
|
|
6615
6437
|
return 0;
|
|
6616
6438
|
} else {
|
|
6617
6439
|
const $scope16_id = _scope_id();
|
|
6618
|
-
_html(`<span${_attr_class("
|
|
6440
|
+
_html(`<span${_attr_class("_bZ")}>`);
|
|
6619
6441
|
icon_check_default({ size: 14 });
|
|
6620
6442
|
_html("</span>");
|
|
6621
6443
|
writeScope($scope16_id, {});
|
|
@@ -6629,7 +6451,7 @@ var new_workspace_default = _template("q", (input) => {
|
|
|
6629
6451
|
return 0;
|
|
6630
6452
|
}
|
|
6631
6453
|
}, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
6632
|
-
_html(`<div${_attr_class("
|
|
6454
|
+
_html(`<div${_attr_class("_bN")}>`);
|
|
6633
6455
|
_if(() => {
|
|
6634
6456
|
if (input.onExit || busy) {
|
|
6635
6457
|
const $scope1_id = _scope_id();
|
|
@@ -6642,15 +6464,15 @@ var new_workspace_default = _template("q", (input) => {
|
|
|
6642
6464
|
_html(`<button type=button${_attr_class([
|
|
6643
6465
|
btnLg,
|
|
6644
6466
|
"_p",
|
|
6645
|
-
"
|
|
6467
|
+
"_bO"
|
|
6646
6468
|
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${busy ? "Creating…" : "Create workspace"}${_el_resume($scope0_id, "w")}</button>${_el_resume($scope0_id, "v")}</div>`);
|
|
6647
6469
|
_if(() => {
|
|
6648
6470
|
if (archived$1.length) {
|
|
6649
6471
|
const $scope4_id = _scope_id();
|
|
6650
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("
|
|
6472
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_bR")}><h2${_attr_class("_bL")}>Archived</h2><span${_attr_class(sectionCount$1)}>${_escape(archived$1.length)}${_el_resume($scope4_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("_bA")}>`);
|
|
6651
6473
|
_for_of(archived$1, (ws) => {
|
|
6652
6474
|
const $scope5_id = _scope_id();
|
|
6653
|
-
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("
|
|
6475
|
+
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("_bD")}><span${_attr_class("_bE")}>${_escape(ws.name)}${_el_resume($scope5_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($scope5_id, "f", $sg__input_workspaces)}</span>${_el_resume($scope5_id, "e", $sg__input_workspaces)}</div><button type=button${_attr_class(btnLg)}${_attr("disabled", busy || !!restoring)}>`);
|
|
6654
6476
|
_if(() => {
|
|
6655
6477
|
if (restoring === ws.id) {
|
|
6656
6478
|
const $scope17_id = _scope_id();
|
|
@@ -6756,8 +6578,8 @@ function vapidKey(base64) {
|
|
|
6756
6578
|
const raw = atob(padded.replace(/-/g, "+").replace(/_/g, "/"));
|
|
6757
6579
|
return Uint8Array.from(raw, (c) => c.charCodeAt(0));
|
|
6758
6580
|
}
|
|
6759
|
-
var iconBtn$1 = "
|
|
6760
|
-
var navToggle = "
|
|
6581
|
+
var iconBtn$1 = "_dk _j";
|
|
6582
|
+
var navToggle = "_dp _j";
|
|
6761
6583
|
_template("N", (input) => {
|
|
6762
6584
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6763
6585
|
const $scope0_id = _scope_id();
|
|
@@ -6800,12 +6622,12 @@ var ARM_MS = 3500;
|
|
|
6800
6622
|
function disarmLater(fn) {
|
|
6801
6623
|
return setTimeout(fn, ARM_MS);
|
|
6802
6624
|
}
|
|
6803
|
-
var railBtn = "
|
|
6804
|
-
var rowIcon = "
|
|
6805
|
-
var close = "
|
|
6625
|
+
var railBtn = "_gu _j";
|
|
6626
|
+
var rowIcon = "_gD _Y _j";
|
|
6627
|
+
var close = "_gE _1 _j _2";
|
|
6806
6628
|
//#endregion
|
|
6807
6629
|
//#region src/styles/session-pop.css.ts
|
|
6808
|
-
var sessionPop = "
|
|
6630
|
+
var sessionPop = "_gq _4";
|
|
6809
6631
|
//#endregion
|
|
6810
6632
|
//#region src/client/status.ts
|
|
6811
6633
|
/** Workspace activity dot from its polled status counts. */
|
|
@@ -6872,22 +6694,22 @@ var usage_pcts_default = _template("E", (input) => {
|
|
|
6872
6694
|
if (windows.length) {
|
|
6873
6695
|
const $scope1_id = _scope_id();
|
|
6874
6696
|
_html(`<span${_attr_class([
|
|
6875
|
-
"
|
|
6697
|
+
"_fu",
|
|
6876
6698
|
input.class,
|
|
6877
|
-
{ ["
|
|
6699
|
+
{ ["_fv"]: agent.stale_seconds != null }
|
|
6878
6700
|
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
6879
6701
|
_for_of(windows, (win$1, i) => {
|
|
6880
6702
|
const $scope2_id = _scope_id();
|
|
6881
|
-
_html(`<span${_attr_class("
|
|
6703
|
+
_html(`<span${_attr_class("_fw")}>`);
|
|
6882
6704
|
_if(() => {
|
|
6883
6705
|
if (i) {
|
|
6884
6706
|
const $scope3_id = _scope_id();
|
|
6885
|
-
_html(`<span${_attr_class("
|
|
6707
|
+
_html(`<span${_attr_class("_fz")} aria-hidden=true>·</span>`);
|
|
6886
6708
|
$si__input_agent && writeScope($scope3_id, {});
|
|
6887
6709
|
return 0;
|
|
6888
6710
|
}
|
|
6889
6711
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
6890
|
-
_html(`<span${_attr_class("
|
|
6712
|
+
_html(`<span${_attr_class("_fx")}>${_escape(win$1.window)}${_el_resume($scope2_id, "d", $sg__input_agent)}</span><span${_attr_class(["_fy", win$1.used_percent >= 90 ? "_fq" : win$1.used_percent >= 70 ? "_fp" : win$1.used_percent >= 40 ? "_fo" : "_fn"])}>${_escape(pctText(win$1.used_percent))}${_el_resume($scope2_id, "f", $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
6891
6713
|
$si__input_agent && writeScope($scope2_id, {});
|
|
6892
6714
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
6893
6715
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -6918,12 +6740,12 @@ var icon_edit_default = _template("X", (input) => {
|
|
|
6918
6740
|
});
|
|
6919
6741
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
6920
6742
|
});
|
|
6921
|
-
var prChip = "
|
|
6922
|
-
var portChip = "
|
|
6743
|
+
var prChip = "_hy _s _hx";
|
|
6744
|
+
var portChip = "_hz _s _hx";
|
|
6923
6745
|
var prState = {
|
|
6924
|
-
open: "
|
|
6925
|
-
merged: "
|
|
6926
|
-
closed: "
|
|
6746
|
+
open: "_hD",
|
|
6747
|
+
merged: "_hE",
|
|
6748
|
+
closed: "_hF"
|
|
6927
6749
|
};
|
|
6928
6750
|
//#endregion
|
|
6929
6751
|
//#region src/tags/side-nav-chips.marko
|
|
@@ -6995,7 +6817,7 @@ var side_nav_chips_default = _template("w", (input) => {
|
|
|
6995
6817
|
const name = repo.full_name.split("/").at(-1);
|
|
6996
6818
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel(repo.full_name) : name;
|
|
6997
6819
|
}, "w4", $scope1_id);
|
|
6998
|
-
_html(`<div${_attr_class("
|
|
6820
|
+
_html(`<div${_attr_class("_hw")}>`);
|
|
6999
6821
|
_for_of(repos, (repo) => {
|
|
7000
6822
|
const $scope2_id = _scope_id();
|
|
7001
6823
|
const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -7011,11 +6833,11 @@ var side_nav_chips_default = _template("w", (input) => {
|
|
|
7011
6833
|
[prState.merged]: pr.state === "MERGED",
|
|
7012
6834
|
[prState.closed]: pr.state === "CLOSED"
|
|
7013
6835
|
}
|
|
7014
|
-
])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["
|
|
6836
|
+
])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["_hA", { ["_hH"]: !open }])}${_attr("href", pr.url)} target=_blank rel=noopener>${_escape(repoLabel$1(repo))}${_el_resume($scope3_id, "c")}#<!>${_escape(pr.number)}${_el_resume($scope3_id, "d")}</a>${_el_resume($scope3_id, "b")}`);
|
|
7015
6837
|
_if(() => {
|
|
7016
6838
|
if (open) {
|
|
7017
6839
|
const $scope4_id = _scope_id();
|
|
7018
|
-
_html(`<a${_attr_class(["
|
|
6840
|
+
_html(`<a${_attr_class(["_hA", "_hB"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr.number}`)}`)}${_attr("title", `Review #${pr.number} changes`)}>`);
|
|
7019
6841
|
icon_diff_default({ size: 12 });
|
|
7020
6842
|
_html(`</a>${_el_resume($scope4_id, "a")}`);
|
|
7021
6843
|
_subscribe($for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, {})));
|
|
@@ -7023,9 +6845,9 @@ var side_nav_chips_default = _template("w", (input) => {
|
|
|
7023
6845
|
} else {
|
|
7024
6846
|
const $scope6_id = _scope_id();
|
|
7025
6847
|
_html(`<button type=button${_attr_class([
|
|
7026
|
-
"
|
|
7027
|
-
"
|
|
7028
|
-
"
|
|
6848
|
+
"_hA",
|
|
6849
|
+
"_hB",
|
|
6850
|
+
"_hC"
|
|
7029
6851
|
])}${_attr("title", `Dismiss #${pr.number}`)}>`);
|
|
7030
6852
|
icon_xmark_default({ size: 12 });
|
|
7031
6853
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
@@ -7046,10 +6868,10 @@ var side_nav_chips_default = _template("w", (input) => {
|
|
|
7046
6868
|
}, "full_name", $scope1_id, "b");
|
|
7047
6869
|
_for_of(ports, (p) => {
|
|
7048
6870
|
const $scope5_id = _scope_id();
|
|
7049
|
-
_html(`<span${_attr_class(["_s", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["
|
|
7050
|
-
"
|
|
7051
|
-
"
|
|
7052
|
-
"
|
|
6871
|
+
_html(`<span${_attr_class(["_s", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["_hA", "_hG"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${p.port}`)}>:<!>${_escape(p.port)}${_el_resume($scope5_id, "c")}</button>${_el_resume($scope5_id, "b")}<button type=button${_attr_class([
|
|
6872
|
+
"_hA",
|
|
6873
|
+
"_hB",
|
|
6874
|
+
"_hC",
|
|
7053
6875
|
{ ["_q"]: armedPid === p.pid }
|
|
7054
6876
|
])}${armedPid === p.pid ? " title=Kill?" : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
|
|
7055
6877
|
icon_xmark_default({ size: 12 });
|
|
@@ -7092,7 +6914,7 @@ var side_nav_chips_default = _template("w", (input) => {
|
|
|
7092
6914
|
//#endregion
|
|
7093
6915
|
//#region src/tags/side-nav-item.marko
|
|
7094
6916
|
var side_nav_item_default = _template("x", (input) => {
|
|
7095
|
-
const $scope0_reason = _scope_reason(), $si__input_workspaces__OR__input_workspaceId = _serialize_if($scope0_reason, 0), $sg__input_workspaceId__OR__input_status = _serialize_guard($scope0_reason, 1), $sg__input_sessions = _serialize_guard($scope0_reason, 24), $
|
|
6917
|
+
const $scope0_reason = _scope_reason(), $si__input_workspaces__OR__input_workspaceId = _serialize_if($scope0_reason, 0), $sg__input_workspaceId__OR__input_status = _serialize_guard($scope0_reason, 1), $sg__input_sessions = _serialize_guard($scope0_reason, 24), $sg__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status = _serialize_guard($scope0_reason, 10), $si__input_current = _serialize_if($scope0_reason, 21), $sg__input_page = _serialize_guard($scope0_reason, 22), $sg__input_workspaces__OR__input_workspaceId = _serialize_guard($scope0_reason, 0), $si__input_agents = _serialize_if($scope0_reason, 30), $sg__input_onNewSession = _serialize_guard($scope0_reason, 29), $sg__input_onNewSession__OR__input_onReview = _serialize_guard($scope0_reason, 2), $sg__input_onReview = _serialize_guard($scope0_reason, 31), $si__input_sessions = _serialize_if($scope0_reason, 24), $si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status = _serialize_if($scope0_reason, 10), $sg__input_rail = _serialize_guard($scope0_reason, 23), $si__input_rail = _serialize_if($scope0_reason, 23), $si__input_workspaceId = _serialize_if($scope0_reason, 26), $si__input_current__OR__input_page__OR__input_rail__OR__input_workspaces__OR__input_workspaceId = _serialize_if($scope0_reason, 13), $si__input_page__OR__input_rail__OR__input_workspaces__OR__input_workspaceId = _serialize_if($scope0_reason, 9), $si__input_current__OR__input_page__OR__input_rail__OR__input_sessions__OR__input_currentTab = _serialize_if($scope0_reason, 12), $si__input_rail__OR__input_workspaces__OR__input_workspaceId = _serialize_if($scope0_reason, 4), $si__input_index = _serialize_if($scope0_reason, 27), $si__input_onNewSession = _serialize_if($scope0_reason, 29), $si__input_onReview = _serialize_if($scope0_reason, 31), $si__input_managing = _serialize_if($scope0_reason, 32), $si__input_currentTab = _serialize_if($scope0_reason, 25), $si__input_page = _serialize_if($scope0_reason, 22), $si__input_railPop = _serialize_if($scope0_reason, 28);
|
|
7096
6918
|
const $scope0_id = _scope_id();
|
|
7097
6919
|
const $input_current__closures = /* @__PURE__ */ new Set();
|
|
7098
6920
|
const $input_index__closures = /* @__PURE__ */ new Set();
|
|
@@ -7128,7 +6950,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
7128
6950
|
renamingId = null;
|
|
7129
6951
|
input.onRenameSession?.(s, renameValue.trim());
|
|
7130
6952
|
}, "x2", $scope0_id);
|
|
7131
|
-
let usage = lastUsage
|
|
6953
|
+
let usage = lastUsage();
|
|
7132
6954
|
const openSess = (() => {
|
|
7133
6955
|
if (!input.current || input.page || input.rail) return null;
|
|
7134
6956
|
const list = input.sessions || [];
|
|
@@ -7145,10 +6967,10 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
7145
6967
|
_if(() => {
|
|
7146
6968
|
if (input.rail) {
|
|
7147
6969
|
const $scope2_id = _scope_id();
|
|
7148
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
6970
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_gs"]: input.current }])}${_attr("title", ws$1.name)}>${_escape((input.index ?? 0) + 1)}${_el_resume($scope2_id, "b", _serialize_guard($scope0_reason, 27))}<span${_attr_class([
|
|
7149
6971
|
"_y",
|
|
7150
6972
|
phase[dot],
|
|
7151
|
-
"
|
|
6973
|
+
"_gv"
|
|
7152
6974
|
])}></span>${_el_resume($scope2_id, "c", $sg__input_workspaceId__OR__input_status)}</a>${_el_resume($scope2_id, "a", _serialize_guard($scope0_reason, 3))}`);
|
|
7153
6975
|
_serialize_if($scope0_reason, 18) && _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_name__closures, _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_id__closures, _subscribe($si__input_index && $input_index__closures, _subscribe($si__input_current && $input_current__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })))));
|
|
7154
6976
|
return 0;
|
|
@@ -7156,15 +6978,15 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
7156
6978
|
const $scope3_id = _scope_id();
|
|
7157
6979
|
const sessions$1 = input.sessions || [];
|
|
7158
6980
|
const phaseLabel = dot === "working" ? "Working" : dot === "waiting" ? "Needs input" : dot === "idle" ? "Idle" : "Not running";
|
|
7159
|
-
_html(`<section${_attr_class(["
|
|
7160
|
-
["
|
|
7161
|
-
["
|
|
7162
|
-
["
|
|
7163
|
-
["
|
|
7164
|
-
}])}><div${_attr_class("
|
|
6981
|
+
_html(`<section${_attr_class(["_gx", {
|
|
6982
|
+
["_gs"]: input.current,
|
|
6983
|
+
["_5"]: input.current,
|
|
6984
|
+
["_gy"]: input.railPop,
|
|
6985
|
+
["_gw"]: input.page
|
|
6986
|
+
}])}><div${_attr_class("_gz")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class("_gA")}><span${_attr_class([
|
|
7165
6987
|
"_y",
|
|
7166
6988
|
phase[dot],
|
|
7167
|
-
"
|
|
6989
|
+
"_gM"
|
|
7168
6990
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope3_id, "d", $sg__input_workspaceId__OR__input_status)}`);
|
|
7169
6991
|
_if(() => {
|
|
7170
6992
|
if (sessions$1.length === 1) {
|
|
@@ -7177,7 +6999,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
7177
6999
|
icon_agent_default({
|
|
7178
7000
|
agent: activeAgent(sessions$1[0]),
|
|
7179
7001
|
size: 12,
|
|
7180
|
-
class: "
|
|
7002
|
+
class: "_gF"
|
|
7181
7003
|
});
|
|
7182
7004
|
$si__input_sessions && writeScope($scope14_id, {
|
|
7183
7005
|
_: _scope_with_id($scope3_id),
|
|
@@ -7186,19 +7008,14 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
7186
7008
|
return 0;
|
|
7187
7009
|
}
|
|
7188
7010
|
}, $scope3_id, "e", $sg__input_sessions, $sg__input_sessions);
|
|
7189
|
-
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length
|
|
7190
|
-
_html(`<span${_attr_class("
|
|
7011
|
+
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length > 1 ? `${sessions$1.length} sessions` : "";
|
|
7012
|
+
_html(`<span${_attr_class("_gG")}><span${_attr_class("_gH")}>${_escape(ws$1.name)}${_el_resume($scope3_id, "h", $sg__input_workspaces__OR__input_workspaceId)}</span>`);
|
|
7191
7013
|
_if(() => {
|
|
7192
7014
|
if (input.page && metaText) {
|
|
7193
|
-
const $scope16_id = _scope_id();
|
|
7194
|
-
_html(`<span${_attr_class("_gG")}>${_escape(metaText)}${_el_resume($scope16_id, "b", _serialize_guard($scope0_reason, 7))}</span>`);
|
|
7195
|
-
$si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && writeScope($scope16_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope3_id) });
|
|
7196
|
-
return 0;
|
|
7197
|
-
} else if (sessions$1.length === 1 && sessions$1[0].title) {
|
|
7198
7015
|
const $scope15_id = _scope_id();
|
|
7199
|
-
_html(`<span${_attr_class("
|
|
7200
|
-
$si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && writeScope($scope15_id, { _: $
|
|
7201
|
-
return
|
|
7016
|
+
_html(`<span${_attr_class("_gK")}>${_escape(metaText)}${_el_resume($scope15_id, "b", _serialize_guard($scope0_reason, 7))}</span>`);
|
|
7017
|
+
$si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && writeScope($scope15_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope3_id) });
|
|
7018
|
+
return 0;
|
|
7202
7019
|
}
|
|
7203
7020
|
}, $scope3_id, "i", $sg__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status, $sg__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status, 1, 0, 1);
|
|
7204
7021
|
_html("</span>");
|
|
@@ -7209,7 +7026,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
7209
7026
|
"_H",
|
|
7210
7027
|
"_Q",
|
|
7211
7028
|
"_J",
|
|
7212
|
-
"
|
|
7029
|
+
"_gL"
|
|
7213
7030
|
])}>${input.current ? "Open" : ""}${_el_resume($scope4_id, "b", _serialize_guard($scope0_reason, 21))}</span>`);
|
|
7214
7031
|
$si__input_current__OR__input_page__OR__input_rail__OR__input_workspaces__OR__input_workspaceId && _subscribe($si__input_current && $input_current__closures, writeScope($scope4_id, {
|
|
7215
7032
|
_: _scope_with_id($scope3_id),
|
|
@@ -7222,7 +7039,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
7222
7039
|
_if(() => {
|
|
7223
7040
|
if (!input.page) {
|
|
7224
7041
|
const $scope5_id = _scope_id();
|
|
7225
|
-
_html(`<div${_attr_class("
|
|
7042
|
+
_html(`<div${_attr_class("_gB")}>`);
|
|
7226
7043
|
_if(() => {
|
|
7227
7044
|
if (input.onNewSession) {
|
|
7228
7045
|
const $scope6_id = _scope_id();
|
|
@@ -7236,7 +7053,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
7236
7053
|
_html(`</button>${_el_resume($scope6_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class(sessionPop)}>`);
|
|
7237
7054
|
_for_of([], (agent) => {
|
|
7238
7055
|
const $scope7_id = _scope_id();
|
|
7239
|
-
_html(`<button${_attr_class("
|
|
7056
|
+
_html(`<button${_attr_class("_gr")}>`);
|
|
7240
7057
|
_set_serialize_reason(12);
|
|
7241
7058
|
const $childScope2 = _peek_scope_id();
|
|
7242
7059
|
icon_agent_default({
|
|
@@ -7271,7 +7088,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
7271
7088
|
return 0;
|
|
7272
7089
|
}
|
|
7273
7090
|
}, $scope5_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
7274
|
-
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["
|
|
7091
|
+
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_gt"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
|
|
7275
7092
|
icon_manage_default({ size: 12 });
|
|
7276
7093
|
_html(`</a>${_el_resume($scope5_id, "d", _serialize_guard($scope0_reason, 8))}</div>`);
|
|
7277
7094
|
_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($scope5_id, {
|
|
@@ -7281,7 +7098,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
7281
7098
|
return 0;
|
|
7282
7099
|
}
|
|
7283
7100
|
}, $scope3_id, "k", $sg__input_page, $sg__input_page, 1, 0, 1);
|
|
7284
|
-
_html(`</div><div${_attr_class("
|
|
7101
|
+
_html(`</div><div${_attr_class("_gR")}>`);
|
|
7285
7102
|
_if(() => {
|
|
7286
7103
|
if (sessions$1.length === 1 && openPlan) {
|
|
7287
7104
|
const $scope11_id = _scope_id();
|
|
@@ -7289,7 +7106,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
7289
7106
|
const $childScope3 = _peek_scope_id();
|
|
7290
7107
|
usage_pcts_default({
|
|
7291
7108
|
agent: openPlan,
|
|
7292
|
-
class: "
|
|
7109
|
+
class: "_gI"
|
|
7293
7110
|
});
|
|
7294
7111
|
_subscribe($openPlan__closures, writeScope($scope11_id, {
|
|
7295
7112
|
a: _existing_scope($childScope3),
|
|
@@ -7300,14 +7117,14 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
7300
7117
|
}, $scope3_id, "m");
|
|
7301
7118
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
7302
7119
|
const $scope8_id = _scope_id();
|
|
7303
|
-
_html(`<div${_attr_class(["
|
|
7120
|
+
_html(`<div${_attr_class(["_gC", { ["_gs"]: s.id === input.currentTab }])}>`);
|
|
7304
7121
|
_if(() => {
|
|
7305
7122
|
if (renamingId === s.id) {
|
|
7306
7123
|
const $scope10_id = _scope_id();
|
|
7307
7124
|
_html(`<span${_attr_class([
|
|
7308
7125
|
"_y",
|
|
7309
7126
|
phase[sessionPhase(s.state)],
|
|
7310
|
-
"
|
|
7127
|
+
"_gP"
|
|
7311
7128
|
])}></span>${_el_resume($scope10_id, "a", $sg__input_sessions)}`);
|
|
7312
7129
|
_set_serialize_reason({
|
|
7313
7130
|
1: $sg__input_sessions,
|
|
@@ -7317,17 +7134,17 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
7317
7134
|
icon_agent_default({
|
|
7318
7135
|
agent: activeAgent(s),
|
|
7319
7136
|
size: 13,
|
|
7320
|
-
class: "
|
|
7137
|
+
class: "_gT"
|
|
7321
7138
|
});
|
|
7322
7139
|
_html(`<input${_attr_input_value($scope10_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
7323
7140
|
renameValue = _new_renameValue;
|
|
7324
|
-
}, "x0", $scope10_id))}${_attr_class(["_T", "
|
|
7141
|
+
}, "x0", $scope10_id))}${_attr_class(["_T", "_gQ"])} aria-label="Session name">${_el_resume($scope10_id, "c")}`);
|
|
7325
7142
|
_script($scope10_id, "x5");
|
|
7326
7143
|
_subscribe($renameValue__closures, writeScope($scope10_id, { b: $si__input_sessions && _existing_scope($childScope4) }));
|
|
7327
7144
|
return 0;
|
|
7328
7145
|
} else {
|
|
7329
7146
|
const $scope9_id = _scope_id();
|
|
7330
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("
|
|
7147
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("_gS")}><span${_attr_class(["_y", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope9_id, "b", $sg__input_sessions)}`);
|
|
7331
7148
|
_set_serialize_reason({
|
|
7332
7149
|
1: $sg__input_sessions,
|
|
7333
7150
|
2: $sg__input_sessions
|
|
@@ -7336,9 +7153,9 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
7336
7153
|
icon_agent_default({
|
|
7337
7154
|
agent: activeAgent(s),
|
|
7338
7155
|
size: 13,
|
|
7339
|
-
class: "
|
|
7156
|
+
class: "_gT"
|
|
7340
7157
|
});
|
|
7341
|
-
_html(`<span${_attr_class("
|
|
7158
|
+
_html(`<span${_attr_class("_gN")}>${_escape(s.title || activeAgent(s))}${_el_resume($scope9_id, "e", $sg__input_sessions)}</span></a>${_el_resume($scope9_id, "a", _serialize_guard($scope0_reason, 6))}<div${_attr_class("_gO")}><button${_attr_class(rowIcon)} title="Rename session">`);
|
|
7342
7159
|
icon_edit_default({ size: 12 });
|
|
7343
7160
|
_html(`</button>${_el_resume($scope9_id, "g")}<button${_attr_class([close, { ["_q"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
|
|
7344
7161
|
icon_xmark_default({ size: 12 });
|
|
@@ -7350,7 +7167,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
7350
7167
|
const $childScope6 = _peek_scope_id();
|
|
7351
7168
|
usage_pcts_default({
|
|
7352
7169
|
agent: openPlan,
|
|
7353
|
-
class: "
|
|
7170
|
+
class: "_gJ"
|
|
7354
7171
|
});
|
|
7355
7172
|
_subscribe($openPlan__closures, writeScope($scope12_id, {
|
|
7356
7173
|
a: _existing_scope($childScope6),
|
|
@@ -7388,9 +7205,8 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
7388
7205
|
_subscribe($si__input_workspaces__OR__input_workspaceId && $ws_name__closures, _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_id__closures, _subscribe($openPlan__closures, _subscribe($si__input_railPop && $input_railPop__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, _subscribe($si__input_sessions && $input_sessions__closures, _subscribe($si__input_page && $input_page__closures, _subscribe($si__input_current && $input_current__closures, writeScope($scope3_id, {
|
|
7389
7206
|
r: sessions$1.length,
|
|
7390
7207
|
t: $si__input_sessions && sessions$1[0],
|
|
7391
|
-
u: $
|
|
7392
|
-
|
|
7393
|
-
x: $si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && metaText,
|
|
7208
|
+
u: $si__input_sessions && phaseLabel,
|
|
7209
|
+
w: $si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && metaText,
|
|
7394
7210
|
_: _scope_with_id($scope1_id),
|
|
7395
7211
|
o: _serialize_if($scope0_reason, 1) && _existing_scope($childScope7),
|
|
7396
7212
|
Cac: $si__input_current && 1,
|
|
@@ -7409,6 +7225,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
7409
7225
|
}
|
|
7410
7226
|
}, $scope0_id, "a", _serialize_guard($scope0_reason, 11), $sg__input_workspaces__OR__input_workspaceId, $sg__input_workspaces__OR__input_workspaceId);
|
|
7411
7227
|
_script($scope0_id, "x8");
|
|
7228
|
+
_script($scope0_id, "x9");
|
|
7412
7229
|
writeScope($scope0_id, {
|
|
7413
7230
|
d: input.onRenameSession,
|
|
7414
7231
|
e: _serialize_if($scope0_reason, 19) && input.current,
|
|
@@ -7545,34 +7362,34 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7545
7362
|
const iconSrc = `/api/instance/icon${input.instanceAccent ? `?v=${input.instanceAccent.slice(1)}` : ""}`;
|
|
7546
7363
|
const otherIds = itemIds.filter((id) => id !== ws.id);
|
|
7547
7364
|
const listIds = isPage ? [ws.id, ...otherIds] : itemIds;
|
|
7548
|
-
_html(`<aside${_attr_class(["
|
|
7549
|
-
["
|
|
7550
|
-
["
|
|
7365
|
+
_html(`<aside${_attr_class(["_do", {
|
|
7366
|
+
["_dm"]: !navOpen,
|
|
7367
|
+
["_dn"]: isPage
|
|
7551
7368
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
7552
7369
|
_if(() => {
|
|
7553
7370
|
if (isPage) {
|
|
7554
7371
|
const $scope1_id = _scope_id();
|
|
7555
|
-
_html(`<header${_attr_class("
|
|
7372
|
+
_html(`<header${_attr_class("_dr")}><div${_attr_class("_dA")}>`);
|
|
7556
7373
|
_if(() => {
|
|
7557
7374
|
if (input.instanceName) {
|
|
7558
7375
|
const $scope2_id = _scope_id();
|
|
7559
|
-
_html(`<div${_attr_class("
|
|
7376
|
+
_html(`<div${_attr_class("_dx")} title="This work server (Settings → Appearance)"><img${_attr_class("_dy")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_dz")}>${_escape(input.instanceName)}${_el_resume($scope2_id, "d", $sg__input_instanceName)}</span></div>`);
|
|
7560
7377
|
_subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
|
|
7561
7378
|
return 0;
|
|
7562
7379
|
}
|
|
7563
7380
|
}, $scope1_id, "c", $sg__input_instanceName, $sg__input_instanceName, 1, 0, 1);
|
|
7564
|
-
_html(`<h1${_attr_class("
|
|
7381
|
+
_html(`<h1${_attr_class("_ds")}>Workspaces</h1></div><div${_attr_class("_dt")}>`);
|
|
7565
7382
|
_if(() => {}, $scope1_id, "f", 1, 1, 1, 0, 1);
|
|
7566
7383
|
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
|
|
7567
7384
|
iconBtn$1,
|
|
7568
|
-
"
|
|
7569
|
-
{ ["
|
|
7385
|
+
"_du",
|
|
7386
|
+
{ ["_dj"]: view === "settings" }
|
|
7570
7387
|
])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
7571
7388
|
icon_settings_default({ size: 16 });
|
|
7572
7389
|
_if(() => {
|
|
7573
7390
|
if (input.setupReady === false) {
|
|
7574
7391
|
const $scope12_id = _scope_id();
|
|
7575
|
-
_html(`<span${_attr_class(["_y", "
|
|
7392
|
+
_html(`<span${_attr_class(["_y", "_dl"])} title="Machine setup incomplete"></span>`);
|
|
7576
7393
|
$si__input_setupReady && writeScope($scope12_id, {});
|
|
7577
7394
|
return 0;
|
|
7578
7395
|
}
|
|
@@ -7585,18 +7402,18 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7585
7402
|
_if(() => {
|
|
7586
7403
|
if (!isPage && input.instanceName) {
|
|
7587
7404
|
const $scope3_id = _scope_id();
|
|
7588
|
-
_html(`<div${_attr_class("
|
|
7405
|
+
_html(`<div${_attr_class("_dx")} title="This work server (Settings → Appearance)"><img${_attr_class("_dy")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope3_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_dz")}>${_escape(input.instanceName)}${_el_resume($scope3_id, "d", $sg__input_instanceName)}</span></div>`);
|
|
7589
7406
|
writeScope($scope3_id, {});
|
|
7590
7407
|
return 0;
|
|
7591
7408
|
}
|
|
7592
7409
|
}, $scope0_id, "c", 1, 1, 1, 0, 1);
|
|
7593
|
-
_html(`<div${_attr_class("
|
|
7410
|
+
_html(`<div${_attr_class("_dB")}>`);
|
|
7594
7411
|
_for_of(listIds, (wsId) => {
|
|
7595
7412
|
const $scope4_id = _scope_id();
|
|
7596
7413
|
_if(() => {
|
|
7597
7414
|
if (isPage && wsId === ws.id) {
|
|
7598
7415
|
const $scope13_id = _scope_id();
|
|
7599
|
-
_html(`<h2${_attr_class(["
|
|
7416
|
+
_html(`<h2${_attr_class(["_bL", "_dv"])}>Current</h2>`);
|
|
7600
7417
|
writeScope($scope13_id, {});
|
|
7601
7418
|
return 0;
|
|
7602
7419
|
}
|
|
@@ -7604,7 +7421,7 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7604
7421
|
_if(() => {
|
|
7605
7422
|
if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
|
|
7606
7423
|
const $scope14_id = _scope_id();
|
|
7607
|
-
_html(`<h2${_attr_class(["
|
|
7424
|
+
_html(`<h2${_attr_class(["_bL", "_dv"])}>Other workspaces</h2>`);
|
|
7608
7425
|
writeScope($scope14_id, {});
|
|
7609
7426
|
return 0;
|
|
7610
7427
|
}
|
|
@@ -7688,7 +7505,7 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7688
7505
|
railHover = null;
|
|
7689
7506
|
}, 150);
|
|
7690
7507
|
}, "y6", $scope5_id);
|
|
7691
|
-
_html(`<div${_attr_class("
|
|
7508
|
+
_html(`<div${_attr_class("_dC")}>`);
|
|
7692
7509
|
_for_of(itemIds, (wsId, i) => {
|
|
7693
7510
|
const $scope6_id = _scope_id();
|
|
7694
7511
|
_html("<span>");
|
|
@@ -7742,7 +7559,7 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7742
7559
|
if (railHover) {
|
|
7743
7560
|
const $scope7_id = _scope_id();
|
|
7744
7561
|
const hoverId = railHover.id;
|
|
7745
|
-
_html(`<div${_attr_class(["
|
|
7562
|
+
_html(`<div${_attr_class(["_4", "_dF"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
7746
7563
|
_set_serialize_reason({
|
|
7747
7564
|
0: 1,
|
|
7748
7565
|
1: 1,
|
|
@@ -7827,7 +7644,7 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7827
7644
|
return 0;
|
|
7828
7645
|
}
|
|
7829
7646
|
}, $scope0_id, "e");
|
|
7830
|
-
_html(`<div${_attr_class("
|
|
7647
|
+
_html(`<div${_attr_class("_dD")}>`);
|
|
7831
7648
|
_if(() => {
|
|
7832
7649
|
if (isPage) {
|
|
7833
7650
|
const $scope9_id = _scope_id();
|
|
@@ -7835,7 +7652,7 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7835
7652
|
"_o",
|
|
7836
7653
|
"_p",
|
|
7837
7654
|
btnLg,
|
|
7838
|
-
"
|
|
7655
|
+
"_dw"
|
|
7839
7656
|
])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
7840
7657
|
icon_folder_plus_default({ size: 16 });
|
|
7841
7658
|
_html(` New workspace</a>${_el_resume($scope9_id, "a")}`);
|
|
@@ -7857,19 +7674,19 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7857
7674
|
return 1;
|
|
7858
7675
|
}
|
|
7859
7676
|
}, $scope8_id, "a", 1, 1, 1, "</button>", 1);
|
|
7860
|
-
_html(`<div${_attr_class(["_x", "
|
|
7677
|
+
_html(`<div${_attr_class(["_x", "_dE"])}></div>`);
|
|
7861
7678
|
_if(() => {}, $scope8_id, "c", 1, 1, 1, 0, 1);
|
|
7862
|
-
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["
|
|
7679
|
+
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["_dj"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
7863
7680
|
icon_settings_default({ size: 15 });
|
|
7864
7681
|
_if(() => {
|
|
7865
7682
|
if (input.setupReady === false) {
|
|
7866
7683
|
const $scope17_id = _scope_id();
|
|
7867
|
-
_html(`<span${_attr_class(["_y", "
|
|
7684
|
+
_html(`<span${_attr_class(["_y", "_dl"])} title="Machine setup incomplete"></span>`);
|
|
7868
7685
|
$si__input_setupReady && writeScope($scope17_id, {});
|
|
7869
7686
|
return 0;
|
|
7870
7687
|
}
|
|
7871
7688
|
}, $scope8_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
7872
|
-
_html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn$1, { ["
|
|
7689
|
+
_html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn$1, { ["_dj"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
7873
7690
|
icon_folder_plus_default({ size: 16 });
|
|
7874
7691
|
_html(`</a>${_el_resume($scope8_id, "g")}`);
|
|
7875
7692
|
_script($scope8_id, "y15");
|
|
@@ -7935,11 +7752,11 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7935
7752
|
_resume_branch($scope0_id);
|
|
7936
7753
|
});
|
|
7937
7754
|
var iconBtn = "_Z _j";
|
|
7938
|
-
var sectionCount = "
|
|
7939
|
-
var content = "
|
|
7940
|
-
var pageMeta = "
|
|
7941
|
-
var pathMeta = "
|
|
7942
|
-
var dangerHint = "
|
|
7755
|
+
var sectionCount = "_bz _H _I";
|
|
7756
|
+
var content = "_dG _bp";
|
|
7757
|
+
var pageMeta = "_dH _bu";
|
|
7758
|
+
var pathMeta = "_dK _w";
|
|
7759
|
+
var dangerHint = "_dP _R";
|
|
7943
7760
|
//#endregion
|
|
7944
7761
|
//#region src/tags/manage-workspace.marko
|
|
7945
7762
|
var api$2;
|
|
@@ -8070,7 +7887,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8070
7887
|
setTimeout(() => loadProcs(void 0), 500);
|
|
8071
7888
|
}, "o7", $scope0_id);
|
|
8072
7889
|
const titleId = _id();
|
|
8073
|
-
_html(`<div${_attr_class("
|
|
7890
|
+
_html(`<div${_attr_class("_bn")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bo")}><div${_attr_class(content)}>`);
|
|
8074
7891
|
_set_serialize_reason(30);
|
|
8075
7892
|
const $childScope = _peek_scope_id();
|
|
8076
7893
|
page_head_default({
|
|
@@ -8083,7 +7900,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8083
7900
|
meta: attrTag({ content: _content_resume("o13", () => {
|
|
8084
7901
|
_scope_reason();
|
|
8085
7902
|
const $scope13_id = _scope_id();
|
|
8086
|
-
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
7903
|
+
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_dI")}>${_escape(ws.name)}${_el_resume($scope13_id, "c")}</span>`);
|
|
8087
7904
|
_if(() => {
|
|
8088
7905
|
if (ws.status !== "active") {
|
|
8089
7906
|
const $scope17_id = _scope_id();
|
|
@@ -8092,7 +7909,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8092
7909
|
return 0;
|
|
8093
7910
|
}
|
|
8094
7911
|
}, $scope13_id, "d", 1, 1, 1, 0, 1);
|
|
8095
|
-
_html(`<span${_attr_class("
|
|
7912
|
+
_html(`<span${_attr_class("_dJ")} aria-hidden=true>·</span><span${_attr_class(pathMeta)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope13_id, "g")}</span></span>${_el_resume($scope13_id, "a")}`);
|
|
8096
7913
|
_subscribe($ws_status__closures, _subscribe($ws_name__closures, _subscribe($ws_path__closures, _subscribe($ws_display_path__closures, writeScope($scope13_id, { _: _scope_with_id($scope0_id) })))));
|
|
8097
7914
|
_resume_branch($scope13_id);
|
|
8098
7915
|
}, $scope0_id) })
|
|
@@ -8120,22 +7937,42 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8120
7937
|
_if(() => {
|
|
8121
7938
|
if (pendingAction && actionStep) {
|
|
8122
7939
|
const $scope11_id = _scope_id();
|
|
8123
|
-
_html(`<p${_attr_class("
|
|
7940
|
+
_html(`<p${_attr_class("_bw")}><span${_attr_class("_E")}></span><!>${_escape(actionStep)}${_el_resume($scope11_id, "c")}</p>`);
|
|
8124
7941
|
writeScope($scope11_id, {});
|
|
8125
7942
|
return 0;
|
|
8126
7943
|
}
|
|
8127
7944
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
8128
|
-
_html(`<section${_attr_class("
|
|
7945
|
+
_html(`<section${_attr_class("_bx")}><div${_attr_class("_by")}><h2${_attr_class("_bL")}>Workspace</h2></div><div${_attr_class("_dO")}>`);
|
|
7946
|
+
_if(() => {
|
|
7947
|
+
if (ws.status === "active") {
|
|
7948
|
+
const $scope8_id = _scope_id();
|
|
7949
|
+
_html(`<button type=button${_attr_class(btnLg)}${_attr("disabled", !!pendingAction)}>${pendingAction === "archive" ? "Archiving…" : "Archive"}${_el_resume($scope8_id, "b")}</button>${_el_resume($scope8_id, "a")}`);
|
|
7950
|
+
_script($scope8_id, "o15");
|
|
7951
|
+
writeScope($scope8_id, {});
|
|
7952
|
+
return 0;
|
|
7953
|
+
} else {
|
|
7954
|
+
const $scope9_id = _scope_id();
|
|
7955
|
+
_html(`<button type=button${_attr_class(btnLg)}${_attr("disabled", !!pendingAction)}>Restore</button>${_el_resume($scope9_id, "a")}`);
|
|
7956
|
+
_script($scope9_id, "o16");
|
|
7957
|
+
writeScope($scope9_id, {});
|
|
7958
|
+
return 1;
|
|
7959
|
+
}
|
|
7960
|
+
}, $scope0_id, "k", 1, 1, 1, 0, 1);
|
|
7961
|
+
_html(`<button type=button${_attr_class([
|
|
7962
|
+
btnLg,
|
|
7963
|
+
"_r",
|
|
7964
|
+
{ ["_q"]: confirmingDelete }
|
|
7965
|
+
])}${_attr("disabled", !!pendingAction)}>${pendingAction === "delete" ? "Deleting…" : "Delete"}${_el_resume($scope0_id, "m")}</button>${_el_resume($scope0_id, "l")}</div><p${_attr_class(dangerHint)}>Archive hides the workspace from the list. Delete removes it and its worktrees.</p></section><section${_attr_class("_bx")}><div${_attr_class("_by")}><h2${_attr_class("_bL")}>Repos</h2><span${_attr_class(sectionCount)}>${_escape(ws.repos.length)}${_el_resume($scope0_id, "s")}</span><div${_attr_class("_x")}></div><button${_attr_class(iconBtn)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
8129
7966
|
_set_serialize_reason(1);
|
|
8130
7967
|
const $childScope2 = _peek_scope_id();
|
|
8131
7968
|
icon_refresh_default({
|
|
8132
7969
|
size: 14,
|
|
8133
7970
|
class: catalogRefreshing && "_D"
|
|
8134
7971
|
});
|
|
8135
|
-
_html(`</button>${_el_resume($scope0_id, "
|
|
7972
|
+
_html(`</button>${_el_resume($scope0_id, "u")}</div><ul${_attr_class("_bA")}>`);
|
|
8136
7973
|
_for_of(ws.repos, (row) => {
|
|
8137
7974
|
const $scope1_id = _scope_id();
|
|
8138
|
-
_html(`<li${_attr_class("
|
|
7975
|
+
_html(`<li${_attr_class("_bC")}><div${_attr_class("_bD")}><span${_attr_class(["_bE", "_w"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_bF")}><a${_attr_class(["_bG", "_dM"])}${_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")}`);
|
|
8139
7976
|
_if(() => {
|
|
8140
7977
|
if (row.base_branch !== row.default_branch) {
|
|
8141
7978
|
const $scope18_id = _scope_id();
|
|
@@ -8156,9 +7993,9 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8156
7993
|
} else {
|
|
8157
7994
|
const $scope10_id = _scope_id();
|
|
8158
7995
|
_html(`<button${_attr_class([
|
|
8159
|
-
"
|
|
8160
|
-
"_1",
|
|
7996
|
+
"_bH",
|
|
8161
7997
|
"_2",
|
|
7998
|
+
"_3",
|
|
8162
7999
|
{ ["_q"]: confirmingRemove === row.full_name }
|
|
8163
8000
|
])}${confirmingRemove === row.full_name ? _attr("title", `Remove ${row.worktree}/? Uncommitted changes are lost.`) : _attr("title", `Remove ${row.worktree}/`)}>`);
|
|
8164
8001
|
_if(() => {
|
|
@@ -8174,7 +8011,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8174
8011
|
return 1;
|
|
8175
8012
|
}
|
|
8176
8013
|
}, $scope10_id, "a", 1, 1, 1, "</button>");
|
|
8177
|
-
_script($scope10_id, "
|
|
8014
|
+
_script($scope10_id, "o17");
|
|
8178
8015
|
_subscribe($confirmingRemove__closures, writeScope($scope10_id, {}));
|
|
8179
8016
|
return 1;
|
|
8180
8017
|
}
|
|
@@ -8186,22 +8023,22 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8186
8023
|
m: row?.full_name,
|
|
8187
8024
|
o: row?.base_branch
|
|
8188
8025
|
});
|
|
8189
|
-
}, "full_name", $scope0_id, "
|
|
8026
|
+
}, "full_name", $scope0_id, "x", 1, 1, 1, 0, 1);
|
|
8190
8027
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
8191
8028
|
const $scope22_id = _scope_id();
|
|
8192
|
-
_html(`<li${_attr_class(["
|
|
8029
|
+
_html(`<li${_attr_class(["_bC", "_bB"])}><span${_attr_class("_E")}></span><div${_attr_class("_bD")}><span${_attr_class("_bG")}>Adding <!>${_escape(name)}${_el_resume($scope22_id, "e")}…</span></div></li>`);
|
|
8193
8030
|
writeScope($scope22_id, {});
|
|
8194
|
-
}, (n) => n, $scope0_id, "
|
|
8031
|
+
}, (n) => n, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
8195
8032
|
_html("</ul>");
|
|
8196
8033
|
_if(() => {
|
|
8197
8034
|
if (!ws.repos.length && !busy.size) {
|
|
8198
8035
|
const $scope23_id = _scope_id();
|
|
8199
|
-
_html(`<p${_attr_class("
|
|
8036
|
+
_html(`<p${_attr_class("_bI")}>No repos yet. Search below to add one.</p>`);
|
|
8200
8037
|
writeScope($scope23_id, {});
|
|
8201
8038
|
return 0;
|
|
8202
8039
|
}
|
|
8203
|
-
}, $scope0_id, "
|
|
8204
|
-
_html(`<div${_attr_class("
|
|
8040
|
+
}, $scope0_id, "z", 1, 1, 1, 0, 1);
|
|
8041
|
+
_html(`<div${_attr_class("_dL")}>`);
|
|
8205
8042
|
const $childScope3 = _peek_scope_id();
|
|
8206
8043
|
let refreshCatalog = repo_picker_default({
|
|
8207
8044
|
exclude: inWorkspace,
|
|
@@ -8215,14 +8052,14 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8215
8052
|
catalogRefreshing = busy;
|
|
8216
8053
|
}, "o12", $scope0_id)
|
|
8217
8054
|
});
|
|
8218
|
-
_var($scope0_id, "
|
|
8055
|
+
_var($scope0_id, "a2", $childScope3, "o18");
|
|
8219
8056
|
const wsSkills = skills?.workspace || [];
|
|
8220
8057
|
const repoSkills = (skills?.repo || []).filter((s) => !wsSkills.some((w) => w.id === s.id));
|
|
8221
8058
|
_html("</div></section>");
|
|
8222
8059
|
_if(() => {
|
|
8223
8060
|
if (wsSkills.length || repoSkills.length) {
|
|
8224
8061
|
const $scope2_id = _scope_id();
|
|
8225
|
-
_html(`<section${_attr_class("
|
|
8062
|
+
_html(`<section${_attr_class("_bx")}><div${_attr_class("_by")}><h2${_attr_class("_bL")}>Skills</h2>`);
|
|
8226
8063
|
_if(() => {
|
|
8227
8064
|
if (wsSkills.length) {
|
|
8228
8065
|
const $scope24_id = _scope_id();
|
|
@@ -8231,10 +8068,10 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8231
8068
|
return 0;
|
|
8232
8069
|
}
|
|
8233
8070
|
}, $scope2_id, "d", 1, 1, 1, 0, 1);
|
|
8234
|
-
_html(`</div><ul${_attr_class("
|
|
8071
|
+
_html(`</div><ul${_attr_class("_bA")}>`);
|
|
8235
8072
|
_for_of(wsSkills, (s) => {
|
|
8236
8073
|
const $scope3_id = _scope_id();
|
|
8237
|
-
_html(`<li${_attr_class("
|
|
8074
|
+
_html(`<li${_attr_class("_bC")}><div${_attr_class("_bD")}><span${_attr_class(["_bE", "_w"])}>${_escape(s.name)}${_el_resume($scope3_id, "d")}</span><span${_attr_class("_bF")}>`);
|
|
8238
8075
|
_if(() => {
|
|
8239
8076
|
if (s.broken) {
|
|
8240
8077
|
const $scope25_id = _scope_id();
|
|
@@ -8272,7 +8109,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8272
8109
|
_if(() => {
|
|
8273
8110
|
if (s.description) {
|
|
8274
8111
|
const $scope28_id = _scope_id();
|
|
8275
|
-
_html(`<span${_attr_class("
|
|
8112
|
+
_html(`<span${_attr_class("_bG")}${_attr("title", s.description)}>${_escape(s.description)}${_el_resume($scope28_id, "b")}</span>${_el_resume($scope28_id, "a")}`);
|
|
8276
8113
|
writeScope($scope28_id, {});
|
|
8277
8114
|
return 0;
|
|
8278
8115
|
}
|
|
@@ -8280,7 +8117,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8280
8117
|
_if(() => {
|
|
8281
8118
|
if (s.sourceUrl) {
|
|
8282
8119
|
const $scope29_id = _scope_id();
|
|
8283
|
-
_html(`<a${_attr_class(["
|
|
8120
|
+
_html(`<a${_attr_class(["_bG", "_dM"])}${_attr("href", s.sourceUrl)} target=_blank rel=noopener${_attr("title", `Open ${s.source} on GitHub`)}>${_escape(s.source)}${_el_resume($scope29_id, "b")}</a>${_el_resume($scope29_id, "a")}`);
|
|
8284
8121
|
writeScope($scope29_id, {});
|
|
8285
8122
|
return 0;
|
|
8286
8123
|
}
|
|
@@ -8295,9 +8132,9 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8295
8132
|
} else {
|
|
8296
8133
|
const $scope12_id = _scope_id();
|
|
8297
8134
|
_html(`<button${_attr_class([
|
|
8298
|
-
"
|
|
8299
|
-
"_1",
|
|
8135
|
+
"_bH",
|
|
8300
8136
|
"_2",
|
|
8137
|
+
"_3",
|
|
8301
8138
|
{ ["_q"]: confirmingSkill === s.id }
|
|
8302
8139
|
])}${confirmingSkill === s.id ? _attr("title", `Remove ${s.name} from this workspace?`) : s.linked ? _attr("title", `Stop using ${s.name} here`) : _attr("title", `Remove ${s.name}`)}>`);
|
|
8303
8140
|
_if(() => {
|
|
@@ -8313,7 +8150,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8313
8150
|
return 1;
|
|
8314
8151
|
}
|
|
8315
8152
|
}, $scope12_id, "a", 1, 1, 1, "</button>");
|
|
8316
|
-
_script($scope12_id, "
|
|
8153
|
+
_script($scope12_id, "o19");
|
|
8317
8154
|
_subscribe($confirmingSkill__closures, writeScope($scope12_id, {}));
|
|
8318
8155
|
return 1;
|
|
8319
8156
|
}
|
|
@@ -8333,10 +8170,10 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8333
8170
|
_if(() => {
|
|
8334
8171
|
if (repoSkills.length) {
|
|
8335
8172
|
const $scope4_id = _scope_id();
|
|
8336
|
-
_html(`<ul${_attr_class("
|
|
8173
|
+
_html(`<ul${_attr_class("_bA")}>`);
|
|
8337
8174
|
_for_of(repoSkills, (s) => {
|
|
8338
8175
|
const $scope5_id = _scope_id();
|
|
8339
|
-
_html(`<li${_attr_class("
|
|
8176
|
+
_html(`<li${_attr_class("_bC")}><div${_attr_class("_bD")}><span${_attr_class(["_bE", "_w"])}>${_escape(s.name)}${_el_resume($scope5_id, "d")}</span><span${_attr_class("_bF")}><span${_attr_class(["_bG", "_w"])}>${_escape(s.worktree)}${_el_resume($scope5_id, "g")}/</span>`);
|
|
8340
8177
|
_if(() => {
|
|
8341
8178
|
if (s.shadows) {
|
|
8342
8179
|
const $scope34_id = _scope_id();
|
|
@@ -8349,7 +8186,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8349
8186
|
_if(() => {
|
|
8350
8187
|
if (s.description) {
|
|
8351
8188
|
const $scope35_id = _scope_id();
|
|
8352
|
-
_html(`<span${_attr_class("
|
|
8189
|
+
_html(`<span${_attr_class("_bG")}${_attr("title", s.description)}>${_escape(s.description)}${_el_resume($scope35_id, "b")}</span>${_el_resume($scope35_id, "a")}`);
|
|
8353
8190
|
writeScope($scope35_id, {});
|
|
8354
8191
|
return 0;
|
|
8355
8192
|
}
|
|
@@ -8364,7 +8201,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8364
8201
|
} else if (!s.shadows) {
|
|
8365
8202
|
const $scope14_id = _scope_id();
|
|
8366
8203
|
_html(`<button${_attr_class(btnSm)}${_attr("title", `Link ${s.name} into this workspace`)}>Use here</button>${_el_resume($scope14_id, "a")}`);
|
|
8367
|
-
_script($scope14_id, "
|
|
8204
|
+
_script($scope14_id, "o20");
|
|
8368
8205
|
writeScope($scope14_id, {});
|
|
8369
8206
|
return 1;
|
|
8370
8207
|
}
|
|
@@ -8387,33 +8224,33 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8387
8224
|
writeScope($scope2_id, {});
|
|
8388
8225
|
return 0;
|
|
8389
8226
|
}
|
|
8390
|
-
}, $scope0_id, "
|
|
8227
|
+
}, $scope0_id, "a3", 1, 1, 1, 0, 1);
|
|
8391
8228
|
const running = procs || [];
|
|
8392
8229
|
_if(() => {
|
|
8393
8230
|
if (running.length) {
|
|
8394
8231
|
const $scope15_id = _scope_id();
|
|
8395
|
-
_html(`<section${_attr_class("
|
|
8232
|
+
_html(`<section${_attr_class("_bx")}><div${_attr_class("_by")}><h2${_attr_class("_bL")}>Running</h2><span${_attr_class(sectionCount)}>${_escape(running.length)}${_el_resume($scope15_id, "e")}</span></div><ul${_attr_class("_bA")}>`);
|
|
8396
8233
|
_for_of(running, (p) => {
|
|
8397
8234
|
const $scope16_id = _scope_id();
|
|
8398
|
-
_html(`<li${_attr_class("
|
|
8235
|
+
_html(`<li${_attr_class("_bC")}><div${_attr_class("_bD")}${_attr("title", p.args)}><span${_attr_class(["_bE", "_w"])}>${_escape(p.cmd)}${_el_resume($scope16_id, "d")}</span>`);
|
|
8399
8236
|
_if(() => {
|
|
8400
8237
|
if (p.ports.length) {
|
|
8401
8238
|
const $scope37_id = _scope_id();
|
|
8402
|
-
_html(`<span${_attr_class("
|
|
8239
|
+
_html(`<span${_attr_class("_bF")}>`);
|
|
8403
8240
|
_for_of(p.ports, (port) => {
|
|
8404
8241
|
const $scope38_id = _scope_id();
|
|
8405
|
-
_html(`<button${_attr_class(["_s", "
|
|
8406
|
-
_script($scope38_id, "
|
|
8242
|
+
_html(`<button${_attr_class(["_s", "_dN"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope38_id, "b")}</button>${_el_resume($scope38_id, "a")}`);
|
|
8243
|
+
_script($scope38_id, "o21");
|
|
8407
8244
|
writeScope($scope38_id, { d: port });
|
|
8408
8245
|
}, (x) => String(x), $scope37_id, "a", 1, 1, 1, "</span>", 1);
|
|
8409
8246
|
writeScope($scope37_id, {});
|
|
8410
8247
|
return 0;
|
|
8411
8248
|
}
|
|
8412
8249
|
}, $scope16_id, "e", 1, 1, 1, 0, 1);
|
|
8413
|
-
_html(`</div>${_el_resume($scope16_id, "b")}<button${_attr_class(["
|
|
8250
|
+
_html(`</div>${_el_resume($scope16_id, "b")}<button${_attr_class(["_bH", "_2"])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
8414
8251
|
icon_xmark_default({ size: 14 });
|
|
8415
8252
|
_html(`</button>${_el_resume($scope16_id, "f")}</li>`);
|
|
8416
|
-
_script($scope16_id, "
|
|
8253
|
+
_script($scope16_id, "o22");
|
|
8417
8254
|
writeScope($scope16_id, {
|
|
8418
8255
|
l: p?.ports,
|
|
8419
8256
|
n: p?.pid
|
|
@@ -8423,28 +8260,8 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8423
8260
|
writeScope($scope15_id, {});
|
|
8424
8261
|
return 0;
|
|
8425
8262
|
}
|
|
8426
|
-
}, $scope0_id, "
|
|
8427
|
-
_html(
|
|
8428
|
-
_if(() => {
|
|
8429
|
-
if (ws.status === "active") {
|
|
8430
|
-
const $scope8_id = _scope_id();
|
|
8431
|
-
_html(`<button type=button${_attr_class(btnLg)}${_attr("disabled", !!pendingAction)}>${pendingAction === "archive" ? "Archiving…" : "Archive"}${_el_resume($scope8_id, "b")}</button>${_el_resume($scope8_id, "a")}`);
|
|
8432
|
-
_script($scope8_id, "o21");
|
|
8433
|
-
writeScope($scope8_id, {});
|
|
8434
|
-
return 0;
|
|
8435
|
-
} else {
|
|
8436
|
-
const $scope9_id = _scope_id();
|
|
8437
|
-
_html(`<button type=button${_attr_class(btnLg)}${_attr("disabled", !!pendingAction)}>Restore</button>${_el_resume($scope9_id, "a")}`);
|
|
8438
|
-
_script($scope9_id, "o22");
|
|
8439
|
-
writeScope($scope9_id, {});
|
|
8440
|
-
return 1;
|
|
8441
|
-
}
|
|
8442
|
-
}, $scope0_id, "a1", 1, 1, 1, 0, 1);
|
|
8443
|
-
_html(`<button type=button${_attr_class([
|
|
8444
|
-
btnLg,
|
|
8445
|
-
"_r",
|
|
8446
|
-
{ ["_q"]: confirmingDelete }
|
|
8447
|
-
])}${_attr("disabled", !!pendingAction)}>${pendingAction === "delete" ? "Deleting…" : "Delete"}${_el_resume($scope0_id, "a3")}</button>${_el_resume($scope0_id, "a2")}</div><p${_attr_class(dangerHint)}>Archive hides the workspace from the list. Delete removes it and its worktrees.</p></section></div></div></div>`);
|
|
8263
|
+
}, $scope0_id, "a4", 1, 1, 1, 0, 1);
|
|
8264
|
+
_html("</div></div></div>");
|
|
8448
8265
|
_script($scope0_id, "o23");
|
|
8449
8266
|
_script($scope0_id, "o24");
|
|
8450
8267
|
writeScope($scope0_id, {
|
|
@@ -8491,9 +8308,9 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8491
8308
|
by: $ws_status__closures,
|
|
8492
8309
|
d: _existing_scope($childScope),
|
|
8493
8310
|
bp: $error__closures,
|
|
8494
|
-
|
|
8311
|
+
v: _existing_scope($childScope2),
|
|
8495
8312
|
br: $confirmingRemove__closures,
|
|
8496
|
-
|
|
8313
|
+
a1: _existing_scope($childScope3),
|
|
8497
8314
|
c0: $wsSkills_length__closures,
|
|
8498
8315
|
bu: $confirmingSkill__closures,
|
|
8499
8316
|
bo: $busy__closures,
|
|
@@ -8538,19 +8355,19 @@ var term_find_default = _template("A", (input) => {
|
|
|
8538
8355
|
const canStep = hasQuery && open;
|
|
8539
8356
|
const keybar = input.placement === "keybar";
|
|
8540
8357
|
_html(`<div${_attr_class([
|
|
8541
|
-
"
|
|
8542
|
-
keybar ? "
|
|
8543
|
-
!open && "
|
|
8544
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
8358
|
+
"_fK",
|
|
8359
|
+
keybar ? "_fM" : "_fL",
|
|
8360
|
+
!open && "_fO"
|
|
8361
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_fF", keybar ? "_fN" : "_fH"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
8545
8362
|
if (!open) return;
|
|
8546
8363
|
query = v;
|
|
8547
8364
|
live.query = v;
|
|
8548
8365
|
run(0);
|
|
8549
|
-
}, "A0", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
8366
|
+
}, "A0", $scope0_id))}${_attr_class([findInput, keybar && "_fP"])} 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 && "_fQ"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
8550
8367
|
icon_arrow_up_default({ size: 14 });
|
|
8551
|
-
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
8368
|
+
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_fQ"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
8552
8369
|
icon_arrow_down_default({ size: 14 });
|
|
8553
|
-
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
8370
|
+
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "_fQ"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
8554
8371
|
icon_xmark_default({ size: 14 });
|
|
8555
8372
|
_html(`</button>${_el_resume($scope0_id, "h")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
8556
8373
|
_script($scope0_id, "A4");
|
|
@@ -8884,7 +8701,7 @@ var term_default = _template("B", (input) => {
|
|
|
8884
8701
|
trapOpen = true;
|
|
8885
8702
|
}
|
|
8886
8703
|
}, "B14", $scope0_id);
|
|
8887
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
8704
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_dQ")}><div${_attr_class("_dR")}></div>${_el_resume($scope0_id, "b")}`);
|
|
8888
8705
|
_if(() => {
|
|
8889
8706
|
if (findOpen) {
|
|
8890
8707
|
const $scope12_id = _scope_id();
|
|
@@ -8911,7 +8728,7 @@ var term_default = _template("B", (input) => {
|
|
|
8911
8728
|
_if(() => {
|
|
8912
8729
|
if (uploading) {
|
|
8913
8730
|
const $scope19_id = _scope_id();
|
|
8914
|
-
_html(`<div${_attr_class("
|
|
8731
|
+
_html(`<div${_attr_class("_dX")}>uploading…</div>`);
|
|
8915
8732
|
writeScope($scope19_id, {});
|
|
8916
8733
|
return 0;
|
|
8917
8734
|
}
|
|
@@ -8919,7 +8736,7 @@ var term_default = _template("B", (input) => {
|
|
|
8919
8736
|
_if(() => {
|
|
8920
8737
|
if (copiedFlash) {
|
|
8921
8738
|
const $scope20_id = _scope_id();
|
|
8922
|
-
_html(`<div${_attr_class("
|
|
8739
|
+
_html(`<div${_attr_class("_dW")}>Copied</div>`);
|
|
8923
8740
|
writeScope($scope20_id, {});
|
|
8924
8741
|
return 0;
|
|
8925
8742
|
}
|
|
@@ -8928,7 +8745,7 @@ var term_default = _template("B", (input) => {
|
|
|
8928
8745
|
_if(() => {
|
|
8929
8746
|
if (trapOpen) {
|
|
8930
8747
|
const $scope11_id = _scope_id();
|
|
8931
|
-
_html(`<div${_attr_class("
|
|
8748
|
+
_html(`<div${_attr_class("_dY")}><div${_attr_class("_dZ")}><p${_attr_class("_es")}>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")}`);
|
|
8932
8749
|
_script($scope11_id, "B25");
|
|
8933
8750
|
_script($scope11_id, "B26");
|
|
8934
8751
|
writeScope($scope11_id, {});
|
|
@@ -9032,7 +8849,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
9032
8849
|
let DiffView = null;
|
|
9033
8850
|
const loadDiffView = _resume(() => {
|
|
9034
8851
|
if (DiffView) return;
|
|
9035
|
-
import("./
|
|
8852
|
+
import("./_BZhGz-eY.js").then((m) => {
|
|
9036
8853
|
DiffView = m.default;
|
|
9037
8854
|
});
|
|
9038
8855
|
}, "F6", $scope0_id);
|
|
@@ -9220,10 +9037,10 @@ var work_view_default = _template("F", (input) => {
|
|
|
9220
9037
|
toggleDiff();
|
|
9221
9038
|
}
|
|
9222
9039
|
}, "F21", $scope0_id);
|
|
9223
|
-
_html(`<div${_attr_class(["
|
|
9224
|
-
["
|
|
9225
|
-
["
|
|
9226
|
-
}])}><div${_attr_class("
|
|
9040
|
+
_html(`<div${_attr_class(["_b6", {
|
|
9041
|
+
["_b4"]: view === "nav",
|
|
9042
|
+
["_b5"]: !input.active
|
|
9043
|
+
}])}><div${_attr_class("_b7")}>`);
|
|
9227
9044
|
_set_serialize_reason({
|
|
9228
9045
|
0: _serialize_guard($scope0_reason, 0),
|
|
9229
9046
|
1: 1,
|
|
@@ -9292,7 +9109,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
9292
9109
|
});
|
|
9293
9110
|
}, "F30", $scope0_id)
|
|
9294
9111
|
});
|
|
9295
|
-
_html(`</div><div${_attr_class("
|
|
9112
|
+
_html(`</div><div${_attr_class("_b8")}>`);
|
|
9296
9113
|
_if(() => {
|
|
9297
9114
|
if (error) {
|
|
9298
9115
|
const $scope8_id = _scope_id();
|
|
@@ -9315,7 +9132,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
9315
9132
|
_if(() => {
|
|
9316
9133
|
if (diffMounted && DiffView) {
|
|
9317
9134
|
const $scope1_id = _scope_id();
|
|
9318
|
-
_html(`<div${_attr_class("
|
|
9135
|
+
_html(`<div${_attr_class("_b9")}${_attr_or("data-live", view === "diff", "")}${_attr("inert", view !== "diff")}>`);
|
|
9319
9136
|
_dynamic_tag($scope1_id, "b", DiffView, {
|
|
9320
9137
|
workspaceId: ws.id,
|
|
9321
9138
|
workspaceBranch: ws.branch,
|
|
@@ -9355,7 +9172,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
9355
9172
|
_if(() => {
|
|
9356
9173
|
if (manageMounted) {
|
|
9357
9174
|
const $scope2_id = _scope_id();
|
|
9358
|
-
_html(`<div${_attr_class("
|
|
9175
|
+
_html(`<div${_attr_class("_b9")}${_attr_or("data-live", view === "manage", "")}${_attr("inert", view !== "manage")}>`);
|
|
9359
9176
|
_set_serialize_reason(_serialize_guard($scope0_reason, 16));
|
|
9360
9177
|
const $childScope2 = _peek_scope_id();
|
|
9361
9178
|
manage_workspace_default({
|
|
@@ -9378,7 +9195,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
9378
9195
|
_if(() => {
|
|
9379
9196
|
if (settingsMounted) {
|
|
9380
9197
|
const $scope3_id = _scope_id();
|
|
9381
|
-
_html(`<div${_attr_class("
|
|
9198
|
+
_html(`<div${_attr_class("_b9")}${_attr_or("data-live", view === "settings", "")}${_attr("inert", view !== "settings")}>`);
|
|
9382
9199
|
_set_serialize_reason({
|
|
9383
9200
|
0: _serialize_guard($scope0_reason, 1),
|
|
9384
9201
|
1: $sg__input_workspace,
|
|
@@ -9419,7 +9236,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
9419
9236
|
_if(() => {
|
|
9420
9237
|
if (newMounted) {
|
|
9421
9238
|
const $scope4_id = _scope_id();
|
|
9422
|
-
_html(`<div${_attr_class("
|
|
9239
|
+
_html(`<div${_attr_class("_b9")}${_attr_or("data-live", view === "new", "")}${_attr("inert", view !== "new")}>`);
|
|
9423
9240
|
_set_serialize_reason({
|
|
9424
9241
|
0: 1,
|
|
9425
9242
|
1: $sg__input_allWorkspaces,
|
|
@@ -9446,13 +9263,13 @@ var work_view_default = _template("F", (input) => {
|
|
|
9446
9263
|
return 0;
|
|
9447
9264
|
}
|
|
9448
9265
|
}, $scope0_id, "i", 1, 1, 1, 0, 1);
|
|
9449
|
-
_html(`<div${_attr_class(["
|
|
9266
|
+
_html(`<div${_attr_class(["_ca", { ["_b_"]: view !== "term" }])}>`);
|
|
9450
9267
|
_if(() => {
|
|
9451
9268
|
if (shownSessions) {
|
|
9452
9269
|
const $scope5_id = _scope_id();
|
|
9453
9270
|
_for_of(input.active ? shownSessions : shownSessions.filter((x) => x.id === curTab), (s) => {
|
|
9454
9271
|
const $scope6_id = _scope_id();
|
|
9455
|
-
_html(`<div${_attr_class("
|
|
9272
|
+
_html(`<div${_attr_class("_cb")}${_attr_or("data-live", s.id === curTab, "")}${_attr("inert", s.id !== curTab)}>`);
|
|
9456
9273
|
_set_serialize_reason({
|
|
9457
9274
|
0: 1,
|
|
9458
9275
|
1: 1,
|
|
@@ -9512,7 +9329,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
9512
9329
|
_if(() => {
|
|
9513
9330
|
if (!shownSessions.length && view === "term") {
|
|
9514
9331
|
const $scope7_id = _scope_id();
|
|
9515
|
-
_html(`<div${_attr_class("
|
|
9332
|
+
_html(`<div${_attr_class("_bJ")}><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>`);
|
|
9516
9333
|
_script($scope7_id, "F50");
|
|
9517
9334
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
9518
9335
|
return 0;
|
|
@@ -9522,7 +9339,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
9522
9339
|
return 0;
|
|
9523
9340
|
} else {
|
|
9524
9341
|
const $scope10_id = _scope_id();
|
|
9525
|
-
_html(`<p${_attr_class("
|
|
9342
|
+
_html(`<p${_attr_class("_bJ")}>Loading sessions…</p>`);
|
|
9526
9343
|
writeScope($scope10_id, {});
|
|
9527
9344
|
return 1;
|
|
9528
9345
|
}
|
|
@@ -17596,6 +17413,63 @@ require_subprotocol();
|
|
|
17596
17413
|
require_websocket();
|
|
17597
17414
|
var import_websocket_server = /* @__PURE__ */ __toESM(require_websocket_server(), 1);
|
|
17598
17415
|
//#endregion
|
|
17416
|
+
//#region src/server/terminal-replies.ts
|
|
17417
|
+
var queries = [
|
|
17418
|
+
["\x1B[>0c", "\x1B[>0;276;0c"],
|
|
17419
|
+
["\x1B[>c", "\x1B[>0;276;0c"],
|
|
17420
|
+
["\x1B[0c", "\x1B[?1;2c"],
|
|
17421
|
+
["\x1B[c", "\x1B[?1;2c"]
|
|
17422
|
+
];
|
|
17423
|
+
/**
|
|
17424
|
+
* Answer terminal identity probes beside the PTY instead of making them
|
|
17425
|
+
* cross the browser websocket. A short-lived TUI can otherwise exit before
|
|
17426
|
+
* xterm's answer returns, leaving the answer as editable text at the shell
|
|
17427
|
+
* prompt. The carry handles an escape sequence split between PTY reads.
|
|
17428
|
+
*/
|
|
17429
|
+
var TerminalReplies = class {
|
|
17430
|
+
carry = "";
|
|
17431
|
+
get pending() {
|
|
17432
|
+
return !!this.carry;
|
|
17433
|
+
}
|
|
17434
|
+
push(chunk) {
|
|
17435
|
+
const input = this.carry + chunk;
|
|
17436
|
+
this.carry = "";
|
|
17437
|
+
const replies = [];
|
|
17438
|
+
let output = "";
|
|
17439
|
+
let offset = 0;
|
|
17440
|
+
while (offset < input.length) {
|
|
17441
|
+
const esc = input.indexOf("\x1B", offset);
|
|
17442
|
+
if (esc < 0) {
|
|
17443
|
+
output += input.slice(offset);
|
|
17444
|
+
break;
|
|
17445
|
+
}
|
|
17446
|
+
output += input.slice(offset, esc);
|
|
17447
|
+
const rest = input.slice(esc);
|
|
17448
|
+
const match = queries.find(([query]) => rest.startsWith(query));
|
|
17449
|
+
if (match) {
|
|
17450
|
+
replies.push(match[1]);
|
|
17451
|
+
offset = esc + match[0].length;
|
|
17452
|
+
continue;
|
|
17453
|
+
}
|
|
17454
|
+
if (queries.some(([query]) => query.startsWith(rest))) {
|
|
17455
|
+
this.carry = rest;
|
|
17456
|
+
break;
|
|
17457
|
+
}
|
|
17458
|
+
output += "\x1B";
|
|
17459
|
+
offset = esc + 1;
|
|
17460
|
+
}
|
|
17461
|
+
return {
|
|
17462
|
+
output,
|
|
17463
|
+
replies
|
|
17464
|
+
};
|
|
17465
|
+
}
|
|
17466
|
+
flush() {
|
|
17467
|
+
const value = this.carry;
|
|
17468
|
+
this.carry = "";
|
|
17469
|
+
return value;
|
|
17470
|
+
}
|
|
17471
|
+
};
|
|
17472
|
+
//#endregion
|
|
17599
17473
|
//#region src/server/term-ws.ts
|
|
17600
17474
|
/**
|
|
17601
17475
|
* Terminal endpoint: ws://host/term/<sessionId>?cols=&rows=
|
|
@@ -17767,13 +17641,29 @@ async function handleTermConnection(ws, req) {
|
|
|
17767
17641
|
}
|
|
17768
17642
|
};
|
|
17769
17643
|
let exited = false;
|
|
17770
|
-
|
|
17644
|
+
const terminalReplies = new TerminalReplies();
|
|
17645
|
+
let replyCarryTimer;
|
|
17646
|
+
const queueOutput = (data) => {
|
|
17647
|
+
if (!data) return;
|
|
17771
17648
|
pending.push(data);
|
|
17772
17649
|
if (flushTimer) return;
|
|
17773
17650
|
flushTimer = setTimeout(flush, Date.now() - lastSend >= FLUSH_MS ? 1 : FLUSH_MS);
|
|
17651
|
+
};
|
|
17652
|
+
proc.onData((data) => {
|
|
17653
|
+
clearTimeout(replyCarryTimer);
|
|
17654
|
+
replyCarryTimer = void 0;
|
|
17655
|
+
const handled = terminalReplies.push(data);
|
|
17656
|
+
for (const reply of handled.replies) if (!exited) proc.write(reply);
|
|
17657
|
+
queueOutput(handled.output);
|
|
17658
|
+
if (terminalReplies.pending) replyCarryTimer = setTimeout(() => {
|
|
17659
|
+
replyCarryTimer = void 0;
|
|
17660
|
+
queueOutput(terminalReplies.flush());
|
|
17661
|
+
}, 4);
|
|
17774
17662
|
});
|
|
17775
17663
|
proc.onExit(() => {
|
|
17776
17664
|
exited = true;
|
|
17665
|
+
clearTimeout(replyCarryTimer);
|
|
17666
|
+
queueOutput(terminalReplies.flush());
|
|
17777
17667
|
tmux([
|
|
17778
17668
|
"has-session",
|
|
17779
17669
|
"-t",
|
|
@@ -18023,4 +17913,4 @@ server.listen(port, () => {
|
|
|
18023
17913
|
//#endregion
|
|
18024
17914
|
export {};
|
|
18025
17915
|
|
|
18026
|
-
;var __MARKO_MANIFEST__={"
|
|
17916
|
+
;var __MARKO_MANIFEST__={"AA0T2xt":{"block":[2,"stylesheet#/assets/app-page-DgsAA8Om.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DgsAA8Om.css\"",">"],"defer":[2,"/assets/settings-cBa61wMi.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-cBa61wMi.js\"","></script>",2,"modulepreload#/assets/_Du-i6H8r.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Du-i6H8r.js\"",">"]},"ZLT8joi":{"block":[2,"stylesheet#/assets/app-page-DgsAA8Om.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DgsAA8Om.css\"",">"],"defer":[2,"/assets/new-cBa61wMi.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-cBa61wMi.js\"","></script>",2,"modulepreload#/assets/_Du-i6H8r.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Du-i6H8r.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/app-page-DgsAA8Om.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DgsAA8Om.css\"",">"],"defer":[2,"/assets/w-cBa61wMi.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-cBa61wMi.js\"","></script>",2,"modulepreload#/assets/_Du-i6H8r.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Du-i6H8r.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/app-page-DgsAA8Om.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DgsAA8Om.css\"",">"],"defer":[2,"/assets/w._-cBa61wMi.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-cBa61wMi.js\"","></script>",2,"modulepreload#/assets/_Du-i6H8r.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Du-i6H8r.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/app-page-DgsAA8Om.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DgsAA8Om.css\"",">"],"defer":[2,"/assets/w._-B9llVTHr.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-B9llVTHr.js\"","></script>",2,"modulepreload#/assets/_Du-i6H8r.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Du-i6H8r.js\"",">"]}};
|