@dylanpiercey/work 0.0.100 → 0.0.101
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/{_BnNe_TAa.js → _C9U528Q2.js} +73 -73
- package/dist/{_DVf2Lehy.js → _lr2o-rr5.js} +2 -2
- package/dist/index.mjs +238 -221
- package/dist/public/assets/{_DtYI4Ebp2.js → _1MJqUqOI2.js} +1 -1
- package/dist/public/assets/_1MJqUqOI2.js.br +0 -0
- package/dist/public/assets/{_CojZGr1S.js → _5UrK1Gae.js} +1 -1
- package/dist/public/assets/_5UrK1Gae.js.br +0 -0
- package/dist/public/assets/{_C7LXz_1K.js → _B66NRRGW.js} +1 -1
- package/dist/public/assets/_B66NRRGW.js.br +0 -0
- package/dist/public/assets/{_CnDO62SL2.js → _B7hIurfm2.js} +1 -1
- package/dist/public/assets/_B7hIurfm2.js.br +0 -0
- package/dist/public/assets/{_CBw7PseI2.js → _BEfv3ksb2.js} +1 -1
- package/dist/public/assets/_BEfv3ksb2.js.br +0 -0
- package/dist/public/assets/{_BP97w36S.js → _BM-nzDMv.js} +1 -1
- package/dist/public/assets/_BM-nzDMv.js.br +0 -0
- package/dist/public/assets/{_DnVmU4U9.js → _BRTuw0y2.js} +1 -1
- package/dist/public/assets/_BRTuw0y2.js.br +0 -0
- package/dist/public/assets/{_YgS17S8f.js → _BSjOc7Up.js} +1 -1
- package/dist/public/assets/_BSjOc7Up.js.br +0 -0
- package/dist/public/assets/{_FAon3ON3.js → _BT0f2wC8.js} +1 -1
- package/dist/public/assets/_BT0f2wC8.js.br +0 -0
- package/dist/public/assets/{__4F3yJx7.js → _BXCbOoF5.js} +1 -1
- package/dist/public/assets/_BXCbOoF5.js.br +0 -0
- package/dist/public/assets/{_B4Qi_Bfb.js → _BZAipdM7.js} +1 -1
- package/dist/public/assets/_BZAipdM7.js.br +0 -0
- package/dist/public/assets/{_2J4ww4Qn2.js → _B_LuROGk2.js} +1 -1
- package/dist/public/assets/_B_LuROGk2.js.br +0 -0
- package/dist/public/assets/{_BuS-9N_V2.js → _B_RA114t2.js} +1 -1
- package/dist/public/assets/{_D1IxjGRX.js → _BfTSF-sS.js} +6 -6
- package/dist/public/assets/_BfTSF-sS.js.br +0 -0
- package/dist/public/assets/{_BGbGMcDm.js → _BgJpK6SY.js} +1 -1
- package/dist/public/assets/_BgJpK6SY.js.br +0 -0
- package/dist/public/assets/{_Bgn7rr2G.js → _BnPOy0sL.js} +1 -1
- package/dist/public/assets/_BnPOy0sL.js.br +0 -0
- package/dist/public/assets/{_OAU_Bl7B.js → _BujUk9BV.js} +1 -1
- package/dist/public/assets/_BujUk9BV.js.br +0 -0
- package/dist/public/assets/{_B9I1_SaT.js → _Bvx5rwch.js} +1 -1
- package/dist/public/assets/_Bvx5rwch.js.br +0 -0
- package/dist/public/assets/{_CJ6xgeMI2.js → _BwHayvS_2.js} +1 -1
- package/dist/public/assets/_BwHayvS_2.js.br +0 -0
- package/dist/public/assets/{_DoNleubg.js → _C62kEFJK.js} +1 -1
- package/dist/public/assets/_C62kEFJK.js.br +0 -0
- package/dist/public/assets/{_BfujwFin2.js → _C9TVhqHm2.js} +1 -1
- package/dist/public/assets/_C9TVhqHm2.js.br +0 -0
- package/dist/public/assets/{_CXQ9mpTU2.js → _CDP9hDYj2.js} +1 -1
- package/dist/public/assets/_CDP9hDYj2.js.br +0 -0
- package/dist/public/assets/{_CUktmz1t.js → _CGSIYaIY.js} +1 -1
- package/dist/public/assets/_CGSIYaIY.js.br +0 -0
- package/dist/public/assets/{_BOkjgn6w2.js → _CK13ss0J2.js} +1 -1
- package/dist/public/assets/_CK13ss0J2.js.br +0 -0
- package/dist/public/assets/{_Bt6Jp-cA.js → _CMEEFG0d.js} +1 -1
- package/dist/public/assets/_CMEEFG0d.js.br +0 -0
- package/dist/public/assets/{_CP2JKCbB.js → _CNjnlZZI.js} +1 -1
- package/dist/public/assets/_CNjnlZZI.js.br +0 -0
- package/dist/public/assets/{_BzpHEUfF.js → _CRHlZrXf.js} +1 -1
- package/dist/public/assets/_CRHlZrXf.js.br +0 -0
- package/dist/public/assets/{_CEN9vPk4.js → _CSnGkyxN.js} +1 -1
- package/dist/public/assets/_CSnGkyxN.js.br +0 -0
- package/dist/public/assets/{__iie5tOd.js → _Cb-LhnD_.js} +1 -1
- package/dist/public/assets/{_LxpCkQdo.js → _Ce0QiPCc.js} +1 -1
- package/dist/public/assets/_Ce0QiPCc.js.br +0 -0
- package/dist/public/assets/{_D3wIspDO.js → _CeBHb4h4.js} +1 -1
- package/dist/public/assets/_CeBHb4h4.js.br +0 -0
- package/dist/public/assets/{_BSHWy3p9.js → _Cfb5r_yI.js} +1 -1
- package/dist/public/assets/_Cfb5r_yI.js.br +0 -0
- package/dist/public/assets/{_D4KSBoRs2.js → _CgfGGRFU2.js} +1 -1
- package/dist/public/assets/_CgfGGRFU2.js.br +0 -0
- package/dist/public/assets/{_BCCK98BE2.js → _Cgm4Gvn42.js} +1 -1
- package/dist/public/assets/_Cgm4Gvn42.js.br +0 -0
- package/dist/public/assets/{_B05hePOS.js → _Cgvy7y9x.js} +1 -1
- package/dist/public/assets/_Cgvy7y9x.js.br +0 -0
- package/dist/public/assets/{_CqsP6wYD.js → _ChSZ5wVz.js} +1 -1
- package/dist/public/assets/_ChSZ5wVz.js.br +0 -0
- package/dist/public/assets/{_BD-92M7C.js → _CmoeMYLd.js} +1 -1
- package/dist/public/assets/_CmoeMYLd.js.br +0 -0
- package/dist/public/assets/{_DI_KrsIj2.js → _CnqCu1vf2.js} +1 -1
- package/dist/public/assets/_CnqCu1vf2.js.br +0 -0
- package/dist/public/assets/{_unaJ78bK2.js → _Co8vdhXM2.js} +1 -1
- package/dist/public/assets/_Co8vdhXM2.js.br +0 -0
- package/dist/public/assets/{_BRyD_zjB.js → _CulUEzgh.js} +1 -1
- package/dist/public/assets/_CulUEzgh.js.br +0 -0
- package/dist/public/assets/{_DM4ePqHL.js → _CvkIY-13.js} +1 -1
- package/dist/public/assets/_CvkIY-13.js.br +0 -0
- package/dist/public/assets/{_VPjrwJ082.js → _D-PfsAxH2.js} +1 -1
- package/dist/public/assets/_D-PfsAxH2.js.br +0 -0
- package/dist/public/assets/{_P14kZByy.js → _D2wQQn8Y.js} +1 -1
- package/dist/public/assets/_D2wQQn8Y.js.br +0 -0
- package/dist/public/assets/{_Ys5EnXIH.js → _D6uEcaRm.js} +1 -1
- package/dist/public/assets/_D6uEcaRm.js.br +0 -0
- package/dist/public/assets/{_tC3ryTPj2.js → _DAQkvCTh2.js} +1 -1
- package/dist/public/assets/_DAQkvCTh2.js.br +0 -0
- package/dist/public/assets/{_E4unezbF.js → _DHEFf5UU.js} +1 -1
- package/dist/public/assets/_DHEFf5UU.js.br +0 -0
- package/dist/public/assets/{_Dv5SIRFt.js → _DIS8F-hu.js} +1 -1
- package/dist/public/assets/_DIS8F-hu.js.br +0 -0
- package/dist/public/assets/{_DMkz7AkJ.js → _DR5tQEsX.js} +1 -1
- package/dist/public/assets/_DR5tQEsX.js.br +0 -0
- package/dist/public/assets/{_C4QRQwDZ2.js → _DTDnNs0t2.js} +1 -1
- package/dist/public/assets/_DTDnNs0t2.js.br +0 -0
- package/dist/public/assets/{_C_Kwl3n5.js → _DWjQDJrY.js} +1 -1
- package/dist/public/assets/_DWjQDJrY.js.br +0 -0
- package/dist/public/assets/{_7JzebJSL.js → _DYExYX11.js} +1 -1
- package/dist/public/assets/_DYExYX11.js.br +0 -0
- package/dist/public/assets/{_D6QidaZK2.js → _DkX1azQH2.js} +1 -1
- package/dist/public/assets/_DkX1azQH2.js.br +0 -0
- package/dist/public/assets/{_Lcp-nKKi.js → _DlvZFb_0.js} +1 -1
- package/dist/public/assets/_DlvZFb_0.js.br +0 -0
- package/dist/public/assets/{_BuXQupiR.js → _Dmj64h0k.js} +1 -1
- package/dist/public/assets/_Dmj64h0k.js.br +0 -0
- package/dist/public/assets/{_CC6LjDxM.js → _Dqt6TDfA.js} +1 -1
- package/dist/public/assets/_Dqt6TDfA.js.br +0 -0
- package/dist/public/assets/{_DLP-u8mJ.js → _DuT_vVfz.js} +1 -1
- package/dist/public/assets/_DuT_vVfz.js.br +0 -0
- package/dist/public/assets/{_CrVBLy682.js → _DuzG_pqN2.js} +1 -1
- package/dist/public/assets/_DuzG_pqN2.js.br +0 -0
- package/dist/public/assets/{_T3j38swv2.js → _Dw9k0aBI2.js} +1 -1
- package/dist/public/assets/_Dw9k0aBI2.js.br +0 -0
- package/dist/public/assets/{_CqbViTNY2.js → _DyQY__ch2.js} +1 -1
- package/dist/public/assets/_DyQY__ch2.js.br +0 -0
- package/dist/public/assets/{_RBZoavyv.js → _Dyw9Lswc.js} +1 -1
- package/dist/public/assets/_Dyw9Lswc.js.br +0 -0
- package/dist/public/assets/{_B8fhfEUO.js → _Dz3GWQZ7.js} +1 -1
- package/dist/public/assets/_Dz3GWQZ7.js.br +0 -0
- package/dist/public/assets/{_DGvpVJCY2.js → _Dz4ETDE52.js} +1 -1
- package/dist/public/assets/_E_7xyird.js +86 -0
- package/dist/public/assets/_E_7xyird.js.br +0 -0
- package/dist/public/assets/{_BCL_Muhz.js → _JOUm6ZfP.js} +1 -1
- package/dist/public/assets/_JOUm6ZfP.js.br +0 -0
- package/dist/public/assets/{_DNedZ2-1.js → _MlR7sjDJ.js} +1 -1
- package/dist/public/assets/_MlR7sjDJ.js.br +0 -0
- package/dist/public/assets/{_CGNPNjED.js → _Qb6AP-o_.js} +1 -1
- package/dist/public/assets/_Qb6AP-o_.js.br +0 -0
- package/dist/public/assets/{_BHhHofCY.js → _VlR0V-Er.js} +1 -1
- package/dist/public/assets/_VlR0V-Er.js.br +0 -0
- package/dist/public/assets/{_BiXwkw3G2.js → _cyN7mcIf2.js} +1 -1
- package/dist/public/assets/_cyN7mcIf2.js.br +0 -0
- package/dist/public/assets/{_HWsqeafv.js → _e6t60hQt.js} +1 -1
- package/dist/public/assets/_e6t60hQt.js.br +0 -0
- package/dist/public/assets/{_EXjuP3vE2.js → _hB2Lpc2Q2.js} +1 -1
- package/dist/public/assets/_hB2Lpc2Q2.js.br +0 -0
- package/dist/public/assets/{_DtLvOqG4.js → _hpHHgffe.js} +1 -1
- package/dist/public/assets/_hpHHgffe.js.br +0 -0
- package/dist/public/assets/{_CpSEKSYS.js → _jT5mWrGg.js} +1 -1
- package/dist/public/assets/_jT5mWrGg.js.br +0 -0
- package/dist/public/assets/{_3QoIUDdg.js → _khM9jtPq.js} +1 -1
- package/dist/public/assets/_khM9jtPq.js.br +0 -0
- package/dist/public/assets/{_DcONcTZ4.js → _m4G1u5-f.js} +1 -1
- package/dist/public/assets/_m4G1u5-f.js.br +0 -0
- package/dist/public/assets/{_BzdEefci.js → _nOTfnzLU.js} +1 -1
- package/dist/public/assets/_nOTfnzLU.js.br +0 -0
- package/dist/public/assets/{_qp9yuKfB2.js → _v-0Teo0b2.js} +1 -1
- package/dist/public/assets/_v-0Teo0b2.js.br +0 -0
- package/dist/public/assets/{app-page-BzoiT4YH.css → app-page-k9kDVKzR.css} +1 -1
- package/dist/public/assets/app-page-k9kDVKzR.css.br +0 -0
- package/dist/public/assets/diff-view-DlAqU9Qg.css +1 -0
- package/dist/public/assets/diff-view-DlAqU9Qg.css.br +0 -0
- package/dist/public/assets/new-e7ao7GV2.js +1 -0
- package/dist/public/assets/settings-e7ao7GV2.js +1 -0
- package/dist/public/assets/w-e7ao7GV2.js +1 -0
- package/dist/public/assets/w._-Cm2oV69g.js +1 -0
- package/dist/public/assets/w._-e7ao7GV2.js +1 -0
- package/package.json +1 -1
- package/dist/public/assets/_2J4ww4Qn2.js.br +0 -0
- package/dist/public/assets/_3QoIUDdg.js.br +0 -0
- package/dist/public/assets/_7JzebJSL.js.br +0 -0
- package/dist/public/assets/_B05hePOS.js.br +0 -0
- package/dist/public/assets/_B4Qi_Bfb.js.br +0 -0
- package/dist/public/assets/_B8fhfEUO.js.br +0 -0
- package/dist/public/assets/_B9I1_SaT.js.br +0 -0
- package/dist/public/assets/_BCCK98BE2.js.br +0 -0
- package/dist/public/assets/_BCL_Muhz.js.br +0 -0
- package/dist/public/assets/_BD-92M7C.js.br +0 -0
- package/dist/public/assets/_BGbGMcDm.js.br +0 -0
- package/dist/public/assets/_BHhHofCY.js.br +0 -0
- package/dist/public/assets/_BOkjgn6w2.js.br +0 -0
- package/dist/public/assets/_BP97w36S.js.br +0 -0
- package/dist/public/assets/_BRyD_zjB.js.br +0 -0
- package/dist/public/assets/_BSHWy3p9.js.br +0 -0
- package/dist/public/assets/_BfujwFin2.js.br +0 -0
- package/dist/public/assets/_Bgn7rr2G.js.br +0 -0
- package/dist/public/assets/_BiXwkw3G2.js.br +0 -0
- package/dist/public/assets/_Bt6Jp-cA.js.br +0 -0
- package/dist/public/assets/_BuXQupiR.js.br +0 -0
- package/dist/public/assets/_BzdEefci.js.br +0 -0
- package/dist/public/assets/_BzpHEUfF.js.br +0 -0
- package/dist/public/assets/_C4QRQwDZ2.js.br +0 -0
- package/dist/public/assets/_C7LXz_1K.js.br +0 -0
- package/dist/public/assets/_C8cRJFQv.js +0 -86
- package/dist/public/assets/_C8cRJFQv.js.br +0 -0
- package/dist/public/assets/_CBw7PseI2.js.br +0 -0
- package/dist/public/assets/_CC6LjDxM.js.br +0 -0
- package/dist/public/assets/_CEN9vPk4.js.br +0 -0
- package/dist/public/assets/_CGNPNjED.js.br +0 -0
- package/dist/public/assets/_CJ6xgeMI2.js.br +0 -0
- package/dist/public/assets/_CP2JKCbB.js.br +0 -0
- package/dist/public/assets/_CUktmz1t.js.br +0 -0
- package/dist/public/assets/_CXQ9mpTU2.js.br +0 -0
- package/dist/public/assets/_C_Kwl3n5.js.br +0 -0
- package/dist/public/assets/_CnDO62SL2.js.br +0 -0
- package/dist/public/assets/_CojZGr1S.js.br +0 -0
- package/dist/public/assets/_CpSEKSYS.js.br +0 -0
- package/dist/public/assets/_CqbViTNY2.js.br +0 -0
- package/dist/public/assets/_CqsP6wYD.js.br +0 -0
- package/dist/public/assets/_CrVBLy682.js.br +0 -0
- package/dist/public/assets/_D1IxjGRX.js.br +0 -0
- package/dist/public/assets/_D3wIspDO.js.br +0 -0
- package/dist/public/assets/_D4KSBoRs2.js.br +0 -0
- package/dist/public/assets/_D6QidaZK2.js.br +0 -0
- package/dist/public/assets/_DI_KrsIj2.js.br +0 -0
- package/dist/public/assets/_DLP-u8mJ.js.br +0 -0
- package/dist/public/assets/_DM4ePqHL.js.br +0 -0
- package/dist/public/assets/_DMkz7AkJ.js.br +0 -0
- package/dist/public/assets/_DNedZ2-1.js.br +0 -0
- package/dist/public/assets/_DcONcTZ4.js.br +0 -0
- package/dist/public/assets/_DnVmU4U9.js.br +0 -0
- package/dist/public/assets/_DoNleubg.js.br +0 -0
- package/dist/public/assets/_DtLvOqG4.js.br +0 -0
- package/dist/public/assets/_DtYI4Ebp2.js.br +0 -0
- package/dist/public/assets/_Dv5SIRFt.js.br +0 -0
- package/dist/public/assets/_E4unezbF.js.br +0 -0
- package/dist/public/assets/_EXjuP3vE2.js.br +0 -0
- package/dist/public/assets/_FAon3ON3.js.br +0 -0
- package/dist/public/assets/_HWsqeafv.js.br +0 -0
- package/dist/public/assets/_Lcp-nKKi.js.br +0 -0
- package/dist/public/assets/_LxpCkQdo.js.br +0 -0
- package/dist/public/assets/_OAU_Bl7B.js.br +0 -0
- package/dist/public/assets/_P14kZByy.js.br +0 -0
- package/dist/public/assets/_RBZoavyv.js.br +0 -0
- package/dist/public/assets/_T3j38swv2.js.br +0 -0
- package/dist/public/assets/_VPjrwJ082.js.br +0 -0
- package/dist/public/assets/_YgS17S8f.js.br +0 -0
- package/dist/public/assets/_Ys5EnXIH.js.br +0 -0
- package/dist/public/assets/__4F3yJx7.js.br +0 -0
- package/dist/public/assets/_qp9yuKfB2.js.br +0 -0
- package/dist/public/assets/_tC3ryTPj2.js.br +0 -0
- package/dist/public/assets/_unaJ78bK2.js.br +0 -0
- package/dist/public/assets/app-page-BzoiT4YH.css.br +0 -0
- package/dist/public/assets/diff-view-DD-iMvHQ.css +0 -1
- package/dist/public/assets/diff-view-DD-iMvHQ.css.br +0 -0
- package/dist/public/assets/new-C8BHrsP4.js +0 -1
- package/dist/public/assets/settings-C8BHrsP4.js +0 -1
- package/dist/public/assets/w-C8BHrsP4.js +0 -1
- package/dist/public/assets/w._-C8BHrsP4.js +0 -1
- package/dist/public/assets/w._-pSdeUlIC.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 tmux, a as ensureTmuxServer, at as DEFAULT_GITHUB_HOST, b as readHookPayload, c as killWorkspaceSessions, ct as toolById, d as newSessionArgs, dt as get, et as doctor, ft as workspacePath, g as sessionStates, gt as run, h as sendToSession, ht as git, i as disposeSessions, it as which, j as setSessionViewers, k as setAgentPhase, l as listSessions, lt as all, m as renameSession, mt as gh, n as clearTmuxStarted, nt as miseVersions, o as getSession, ot as TOOLS, p as panePids, pt as TMUX_SOCKET, q as disabledAgents, r as createSession, rt as setupPath, s as killSession, st as agentById, t as cleanEnv, tt as ghKnownHosts, u as markTmuxStarted, ut as db, v as tmuxWasStarted, vt as config, w as agentFamily, x as reportsWorking, y as AGENTS, z as pushPublicKey } from "./_BYk3MBDh.js";
|
|
3
|
-
import { $ as _await, A as repoLabel, At as _try, B as phase, C as sideNavOpen, Ct as _serialize_guard, D as icon_xmark_default, Dt as _template, E as toast_default, Et as _subscribe, H as $global, I as iconBtnRow, J as _attr_or, K as _attr_input_value, L as iconBtnXs, M as setPrimaryHost, Mt as attrTag, N as btnLg, Nt as withPageAssets, O as icon_base_default, Ot as _to_text, P as btnSm, Pt as writeScope, Q as _attrs_partial, R as inputLg, S as setWorkspaceTab, St as _sep, T as workspaceTab, Tt as _set_serialize_reason, U as _attr, V as tone, W as _attr_class, X as _attr_style, Y as _attr_select_value, Z as _attrs, _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 iconBtn$2, dt as _hoist_read_error, et as _content, f as row, ft as _html, gt as _resume, ht as _peek_scope_id, i as icon_sidebar_default, it as _el_read_error, j as repoWebUrl$1, jt as _var, k as parseRepoUrl, kt as _trailers, l as icon_back_default, lt as _for_of, mt as _if, n as findIconBtn, nt as _dynamic_tag, o as rankRepos, ot as _escape, p as sectionCount$1, pt as _id, q as _attr_option_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_refresh_default, ut as _hoist, v as ignoredSsoOrgs, vt as _scope_id, w as theme, wt as _serialize_if, x as setTheme, xt as _script, yt as _scope_reason, z as metaTrunc } from "./
|
|
3
|
+
import { $ as _await, A as repoLabel, At as _try, B as phase, C as sideNavOpen, Ct as _serialize_guard, D as icon_xmark_default, Dt as _template, E as toast_default, Et as _subscribe, H as $global, I as iconBtnRow, J as _attr_or, K as _attr_input_value, L as iconBtnXs, M as setPrimaryHost, Mt as attrTag, N as btnLg, Nt as withPageAssets, O as icon_base_default, Ot as _to_text, P as btnSm, Pt as writeScope, Q as _attrs_partial, R as inputLg, S as setWorkspaceTab, St as _sep, T as workspaceTab, Tt as _set_serialize_reason, U as _attr, V as tone, W as _attr_class, X as _attr_style, Y as _attr_select_value, Z as _attrs, _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 iconBtn$2, dt as _hoist_read_error, et as _content, f as row, ft as _html, gt as _resume, ht as _peek_scope_id, i as icon_sidebar_default, it as _el_read_error, j as repoWebUrl$1, jt as _var, k as parseRepoUrl, kt as _trailers, l as icon_back_default, lt as _for_of, mt as _if, n as findIconBtn, nt as _dynamic_tag, o as rankRepos, ot as _escape, p as sectionCount$1, pt as _id, q as _attr_option_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_refresh_default, ut as _hoist, v as ignoredSsoOrgs, vt as _scope_id, w as theme, wt as _serialize_if, x as setTheme, xt as _script, yt as _scope_reason, z as metaTrunc } from "./_lr2o-rr5.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
import path from "node:path";
|
|
@@ -3704,9 +3704,9 @@ function applyInstance(inst) {
|
|
|
3704
3704
|
}
|
|
3705
3705
|
//#endregion
|
|
3706
3706
|
//#region src/tags/settings-page.css.ts
|
|
3707
|
-
var content$2 = "
|
|
3708
|
-
var agentGrid = "
|
|
3709
|
-
var toolGrid = "
|
|
3707
|
+
var content$2 = "_cc _bm _bn";
|
|
3708
|
+
var agentGrid = "_cg _bx";
|
|
3709
|
+
var toolGrid = "_cq _bx";
|
|
3710
3710
|
//#endregion
|
|
3711
3711
|
//#region src/tags/page-head.marko
|
|
3712
3712
|
var page_head_default = _template("r", (input) => {
|
|
@@ -3716,14 +3716,14 @@ var page_head_default = _template("r", (input) => {
|
|
|
3716
3716
|
_if(() => {
|
|
3717
3717
|
if (input.backHref) {
|
|
3718
3718
|
const $scope1_id = _scope_id();
|
|
3719
|
-
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "
|
|
3719
|
+
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_cT"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
3720
3720
|
icon_back_default({ size: 16 });
|
|
3721
3721
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
3722
3722
|
_serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
|
|
3723
3723
|
return 0;
|
|
3724
3724
|
} else if (input.onBack) {
|
|
3725
3725
|
const $scope2_id = _scope_id();
|
|
3726
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
3726
|
+
_html(`<button${_attr_class([iconBtnRow, "_cT"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
3727
3727
|
icon_back_default({ size: 16 });
|
|
3728
3728
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
3729
3729
|
_script($scope2_id, "r0");
|
|
@@ -3814,7 +3814,7 @@ var icon_agent_default = _template("G", (input) => {
|
|
|
3814
3814
|
n: $badge__closures
|
|
3815
3815
|
});
|
|
3816
3816
|
});
|
|
3817
|
-
var usageNote = "
|
|
3817
|
+
var usageNote = "_eV _S";
|
|
3818
3818
|
//#endregion
|
|
3819
3819
|
//#region src/tags/icons/icon-warning.marko
|
|
3820
3820
|
var icon_warning_default = _template("kb", (input) => {
|
|
@@ -3855,11 +3855,11 @@ var usage_meters_default = _template("D", (input) => {
|
|
|
3855
3855
|
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);
|
|
3856
3856
|
const $scope0_id = _scope_id();
|
|
3857
3857
|
const agent = input.agent;
|
|
3858
|
-
_html(`<div${_attr_class(["
|
|
3858
|
+
_html(`<div${_attr_class(["_eP", { ["_eQ"]: input.hideName }])}><div${_attr_class("_eR")}>`);
|
|
3859
3859
|
_if(() => {
|
|
3860
3860
|
if (!input.hideName) {
|
|
3861
3861
|
const $scope1_id = _scope_id();
|
|
3862
|
-
_html(`<strong${_attr_class("
|
|
3862
|
+
_html(`<strong${_attr_class("_e_")}>${_escape(agent.agent)}${_el_resume($scope1_id, "b", $sg__input_agent)}</strong>`);
|
|
3863
3863
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
3864
3864
|
return 0;
|
|
3865
3865
|
}
|
|
@@ -3867,7 +3867,7 @@ var usage_meters_default = _template("D", (input) => {
|
|
|
3867
3867
|
_if(() => {
|
|
3868
3868
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
3869
3869
|
const $scope2_id = _scope_id();
|
|
3870
|
-
_html(`<span${_attr_class("
|
|
3870
|
+
_html(`<span${_attr_class("_eS")}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope2_id, "b", $sg__input_agent)}</span>`);
|
|
3871
3871
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
3872
3872
|
return 0;
|
|
3873
3873
|
}
|
|
@@ -3875,21 +3875,21 @@ var usage_meters_default = _template("D", (input) => {
|
|
|
3875
3875
|
_if(() => {
|
|
3876
3876
|
if (agent.stale_seconds != null) {
|
|
3877
3877
|
const $scope3_id = _scope_id();
|
|
3878
|
-
_html(`<span${_attr_class("
|
|
3878
|
+
_html(`<span${_attr_class("_eT")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
|
|
3879
3879
|
icon_warning_default({ size: 12 });
|
|
3880
3880
|
_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)}`);
|
|
3881
3881
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
3882
3882
|
return 0;
|
|
3883
3883
|
}
|
|
3884
3884
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
3885
|
-
_html(`</div><div${_attr_class(["
|
|
3885
|
+
_html(`</div><div${_attr_class(["_eU", { ["_fa"]: agent.stale_seconds != null }])}>`);
|
|
3886
3886
|
_for_of(agent.windows || [], (win) => {
|
|
3887
3887
|
const $scope4_id = _scope_id();
|
|
3888
3888
|
const pct = pctText$1(win.used_percent);
|
|
3889
3889
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
3890
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
3891
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
3892
|
-
_html(`<div${_attr_class("
|
|
3890
|
+
const fillClass = win.used_percent >= 90 ? "_e3" : win.used_percent >= 70 ? "_e2" : win.used_percent >= 40 ? "_e1" : "_e0";
|
|
3891
|
+
const pctClass = win.used_percent >= 90 ? "_e8" : win.used_percent >= 70 ? "_e7" : win.used_percent >= 40 ? "_e6" : "_e5";
|
|
3892
|
+
_html(`<div${_attr_class("_eW")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_eX")}>${_escape(win.window)}${_el_resume($scope4_id, "c", $sg__input_agent)}</span><span${_attr_class("_eY")}><span${_attr_class(["_eZ", 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(["_e4", pctClass])}>${_escape(pct)}${_el_resume($scope4_id, "g", $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_e9")}>`);
|
|
3893
3893
|
_if(() => {
|
|
3894
3894
|
if (label) {
|
|
3895
3895
|
const $scope6_id = _scope_id();
|
|
@@ -3968,14 +3968,14 @@ var sso_auth_default = _template("z", (input) => {
|
|
|
3968
3968
|
localCode = null;
|
|
3969
3969
|
}
|
|
3970
3970
|
}, "z0", $scope0_id);
|
|
3971
|
-
_html(`<div${_attr_class("
|
|
3971
|
+
_html(`<div${_attr_class("_fb")}>`);
|
|
3972
3972
|
_if(() => {
|
|
3973
3973
|
if (input.items.length) {
|
|
3974
3974
|
const $scope1_id = _scope_id();
|
|
3975
|
-
_html(`<p${_attr_class("
|
|
3975
|
+
_html(`<p${_attr_class("_fm")}>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("_fc")}>`);
|
|
3976
3976
|
_for_of(input.items, (s) => {
|
|
3977
3977
|
const $scope2_id = _scope_id();
|
|
3978
|
-
_html(`<li${_attr_class("
|
|
3978
|
+
_html(`<li${_attr_class("_fd")}>${_escape(s.org)}${_el_resume($scope2_id, "b", $sg__input_items)}<button type=button${_attr_class("_fe")}${_attr("title", `Skip ${s.org}`)}${_attr("aria-label", `Skip ${s.org}`)}${_attr("disabled", busy)}>`);
|
|
3979
3979
|
icon_xmark_default({ size: 11 });
|
|
3980
3980
|
_html(`</button>${_el_resume($scope2_id, "c")}</li>`);
|
|
3981
3981
|
_script($scope2_id, "z1");
|
|
@@ -3984,17 +3984,17 @@ var sso_auth_default = _template("z", (input) => {
|
|
|
3984
3984
|
_: _scope_with_id($scope1_id)
|
|
3985
3985
|
}));
|
|
3986
3986
|
}, "org", $scope1_id, "c", $sg__input_items, $sg__input_items, $sg__input_items, "</ul>", 1);
|
|
3987
|
-
_html(`<div${_attr_class("
|
|
3987
|
+
_html(`<div${_attr_class("_ff")}>`);
|
|
3988
3988
|
_if(() => {
|
|
3989
3989
|
if (busy && authCode$2) {
|
|
3990
3990
|
const $scope5_id = _scope_id();
|
|
3991
|
-
_html(`<span${_attr_class("
|
|
3991
|
+
_html(`<span${_attr_class("_fg")}><span${_attr_class("_F")}></span> Enter code <strong${_attr_class("_fh")}>${_escape(authCode$2)}${_el_resume($scope5_id, "d")}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_fi")}>${_escape(host)}${_el_resume($scope5_id, "f", _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope5_id, "e")}</span>`);
|
|
3992
3992
|
_script($scope5_id, "z2");
|
|
3993
3993
|
_subscribe($authCode__closures, _subscribe($si__input_items_0_host && $host__closures, writeScope($scope5_id, {})));
|
|
3994
3994
|
return 0;
|
|
3995
3995
|
} else if (busy) {
|
|
3996
3996
|
const $scope8_id = _scope_id();
|
|
3997
|
-
_html(`<span${_attr_class("
|
|
3997
|
+
_html(`<span${_attr_class("_fg")}><span${_attr_class("_F")}></span>Starting GitHub re-authorization…</span>`);
|
|
3998
3998
|
writeScope($scope8_id, {});
|
|
3999
3999
|
return 1;
|
|
4000
4000
|
} else {
|
|
@@ -4008,7 +4008,7 @@ var sso_auth_default = _template("z", (input) => {
|
|
|
4008
4008
|
_if(() => {
|
|
4009
4009
|
if (localError) {
|
|
4010
4010
|
const $scope6_id = _scope_id();
|
|
4011
|
-
_html(`<p${_attr_class("
|
|
4011
|
+
_html(`<p${_attr_class("_fm")}>${_escape(localError)}${_el_resume($scope6_id, "b")}</p>`);
|
|
4012
4012
|
_subscribe($localError__closures, writeScope($scope6_id, {}));
|
|
4013
4013
|
return 0;
|
|
4014
4014
|
}
|
|
@@ -4020,10 +4020,10 @@ var sso_auth_default = _template("z", (input) => {
|
|
|
4020
4020
|
_if(() => {
|
|
4021
4021
|
if (skipped$1.length) {
|
|
4022
4022
|
const $scope3_id = _scope_id();
|
|
4023
|
-
_html(`<p${_attr_class("
|
|
4023
|
+
_html(`<p${_attr_class("_fj")}>Skipped SSO for `);
|
|
4024
4024
|
_for_of(skipped$1, (s) => {
|
|
4025
4025
|
const $scope4_id = _scope_id();
|
|
4026
|
-
_html(`<span${_attr_class("
|
|
4026
|
+
_html(`<span${_attr_class("_fk")}>${_escape(s.org)}${_el_resume($scope4_id, "b", $sg__input_skipped)}<button type=button${_attr_class("_fl")}${_attr("title", `Show ${s.org} again`)}>(undo)</button>${_el_resume($scope4_id, "c")}</span>`);
|
|
4027
4027
|
_script($scope4_id, "z4");
|
|
4028
4028
|
writeScope($scope4_id, {
|
|
4029
4029
|
f: s?.org,
|
|
@@ -4098,7 +4098,7 @@ var modal_view_default = _template("p", (input) => {
|
|
|
4098
4098
|
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;
|
|
4099
4099
|
const dismissable = input.dismissable !== false;
|
|
4100
4100
|
let open = input.open;
|
|
4101
|
-
_html(`<dialog${_attr_class(["
|
|
4101
|
+
_html(`<dialog${_attr_class(["_hn", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
4102
4102
|
...htmlInput,
|
|
4103
4103
|
open: null
|
|
4104
4104
|
}, {
|
|
@@ -4108,20 +4108,20 @@ var modal_view_default = _template("p", (input) => {
|
|
|
4108
4108
|
closedby: 1,
|
|
4109
4109
|
"on-cancel": 1,
|
|
4110
4110
|
"on-close": 1
|
|
4111
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
4111
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_ho")}>`);
|
|
4112
4112
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
4113
4113
|
_html("</div>");
|
|
4114
4114
|
_if(() => {
|
|
4115
4115
|
if (footer) {
|
|
4116
4116
|
const $scope1_id = _scope_id();
|
|
4117
|
-
_html(`<form method=dialog${_attr_class("
|
|
4117
|
+
_html(`<form method=dialog${_attr_class("_hp")}>`);
|
|
4118
4118
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
4119
4119
|
_html("</form>");
|
|
4120
4120
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
4121
4121
|
return 0;
|
|
4122
4122
|
} else if (input.openChange) {
|
|
4123
4123
|
const $scope2_id = _scope_id();
|
|
4124
|
-
_html(`<form method=dialog${_attr_class("
|
|
4124
|
+
_html(`<form method=dialog${_attr_class("_hp")}>`);
|
|
4125
4125
|
dialog_close_default({
|
|
4126
4126
|
class: ["_o", "_p"],
|
|
4127
4127
|
content: _content("p0", () => {
|
|
@@ -4180,7 +4180,7 @@ var prompt_dialog_default = _template("s", (input) => {
|
|
|
4180
4180
|
const $childScope = _peek_scope_id();
|
|
4181
4181
|
modal_view_default({
|
|
4182
4182
|
label: input.label,
|
|
4183
|
-
class: "
|
|
4183
|
+
class: "_eN",
|
|
4184
4184
|
open: input.open,
|
|
4185
4185
|
openChange: input.openChange,
|
|
4186
4186
|
"aria-labelledby": titleId,
|
|
@@ -4203,7 +4203,7 @@ var prompt_dialog_default = _template("s", (input) => {
|
|
|
4203
4203
|
content: _content("s6", () => {
|
|
4204
4204
|
_scope_reason();
|
|
4205
4205
|
const $scope2_id = _scope_id();
|
|
4206
|
-
_html(`<h2${_attr_class("
|
|
4206
|
+
_html(`<h2${_attr_class("_eO")}${_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) => {
|
|
4207
4207
|
value = _new_value;
|
|
4208
4208
|
}, "s0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
4209
4209
|
_script($scope2_id, "s4");
|
|
@@ -4537,12 +4537,12 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4537
4537
|
return 0;
|
|
4538
4538
|
} else if (setup.ready) {
|
|
4539
4539
|
const $scope52_id = _scope_id();
|
|
4540
|
-
_html(`<span${_attr_class("
|
|
4540
|
+
_html(`<span${_attr_class("_ce")}>Ready</span>. Tools, GitHub, and an agent are all in place.`);
|
|
4541
4541
|
writeScope($scope52_id, {});
|
|
4542
4542
|
return 1;
|
|
4543
4543
|
} else {
|
|
4544
4544
|
const $scope6_id = _scope_id();
|
|
4545
|
-
_html(`<span${_attr_class("
|
|
4545
|
+
_html(`<span${_attr_class("_cf")}>Not ready</span>. Missing <!>${_escape(setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "))}${_el_resume($scope6_id, "b")}.`);
|
|
4546
4546
|
_subscribe($setup_missing__closures, writeScope($scope6_id, {}));
|
|
4547
4547
|
return 2;
|
|
4548
4548
|
}
|
|
@@ -4592,16 +4592,16 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4592
4592
|
_if(() => {
|
|
4593
4593
|
if (selfUpdatePending || selfUpdating) {
|
|
4594
4594
|
const $scope37_id = _scope_id();
|
|
4595
|
-
_html(`<div${_attr_class("
|
|
4595
|
+
_html(`<div${_attr_class("_cJ")} role=status><div${_attr_class("_cK")}>`);
|
|
4596
4596
|
_if(() => {
|
|
4597
4597
|
if (selfUpdating) {
|
|
4598
4598
|
const $scope53_id = _scope_id();
|
|
4599
|
-
_html(`<span${_attr_class("
|
|
4599
|
+
_html(`<span${_attr_class("_cL")}><span${_attr_class("_F")}></span> Updating work…</span><span${_attr_class("_cM")}>The app restarts and reloads when it is done.</span>`);
|
|
4600
4600
|
writeScope($scope53_id, {});
|
|
4601
4601
|
return 0;
|
|
4602
4602
|
} else {
|
|
4603
4603
|
const $scope38_id = _scope_id();
|
|
4604
|
-
_html(`<span${_attr_class("
|
|
4604
|
+
_html(`<span${_attr_class("_cL")}>Update available</span><span${_attr_class("_cM")}>v<!>${_escape(self.version)}${_el_resume($scope38_id, "c")} → v<!>${_escape(self.latest)}${_el_resume($scope38_id, "d")}</span>`);
|
|
4605
4605
|
_subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($scope38_id, {})));
|
|
4606
4606
|
return 1;
|
|
4607
4607
|
}
|
|
@@ -4620,11 +4620,11 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4620
4620
|
return 0;
|
|
4621
4621
|
}
|
|
4622
4622
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
4623
|
-
_html(`<section${_attr_class("_bu")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bv")}><h2${_attr("id", agentsId)}${_attr_class("_bJ")}>Agents</h2><div${_attr_class("_y")}></div><label${_attr_class("
|
|
4623
|
+
_html(`<section${_attr_class("_bu")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bv")}><h2${_attr("id", agentsId)}${_attr_class("_bJ")}>Agents</h2><div${_attr_class("_y")}></div><label${_attr_class("_ci")}><span${_attr_class("_S")}>Default</span><span${_attr_class("_m")}>`);
|
|
4624
4624
|
_attr_select_value($scope0_id, "n", input.preferred, _resume(function(v) {
|
|
4625
4625
|
setPreferred(v);
|
|
4626
4626
|
}, "v1", $scope0_id), () => {
|
|
4627
|
-
_html(`<select${_attr_class(["_n", "
|
|
4627
|
+
_html(`<select${_attr_class(["_n", "_cj"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
|
|
4628
4628
|
_for_of(input.agents.filter((a) => a !== "shell"), (id) => {
|
|
4629
4629
|
const $scope54_id = _scope_id();
|
|
4630
4630
|
_html(`<option${_attr_option_value(id)}>${_escape(agentLabel(id))}${_el_resume($scope54_id, "b", $sg__input_agents)}</option>${_el_resume($scope54_id, "a", $sg__input_agents)}`);
|
|
@@ -4645,7 +4645,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4645
4645
|
const rows = lone ? [] : a.instances;
|
|
4646
4646
|
const loneAccounts = lone && lone.enabled ? accountsFor(lone.id) : [];
|
|
4647
4647
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
4648
|
-
_html(`<li${_attr_class(["_bz", "
|
|
4648
|
+
_html(`<li${_attr_class(["_bz", "_ch"])}><div${_attr_class(["_ck", { ["_cn"]: lone && !lone.enabled }])}>`);
|
|
4649
4649
|
_set_serialize_reason(12);
|
|
4650
4650
|
const $childScope4 = _peek_scope_id();
|
|
4651
4651
|
icon_agent_default({
|
|
@@ -4665,7 +4665,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4665
4665
|
_if(() => {
|
|
4666
4666
|
if (active.has(a.id)) {
|
|
4667
4667
|
const $scope11_id = _scope_id();
|
|
4668
|
-
_html(`<span${_attr_class("
|
|
4668
|
+
_html(`<span${_attr_class("_cd")}><span${_attr_class("_F")}></span><!>${_escape(active.get(a.id) || "Starting…")}${_el_resume($scope11_id, "c")}</span>`);
|
|
4669
4669
|
_subscribe($active__closures, writeScope($scope11_id, {}));
|
|
4670
4670
|
return 0;
|
|
4671
4671
|
} else if (!a.installed) {
|
|
@@ -4702,18 +4702,18 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4702
4702
|
_if(() => {
|
|
4703
4703
|
if (rows.length || loneAccounts.length || extraAccounts.length) {
|
|
4704
4704
|
const $scope2_id = _scope_id();
|
|
4705
|
-
_html(`<ul${_attr_class("
|
|
4705
|
+
_html(`<ul${_attr_class("_cp")}>`);
|
|
4706
4706
|
_for_of(rows, (inst) => {
|
|
4707
4707
|
const $scope3_id = _scope_id();
|
|
4708
4708
|
const accounts = inst.enabled ? accountsFor(inst.id) : [];
|
|
4709
|
-
_html(`<li${_attr_class("
|
|
4709
|
+
_html(`<li${_attr_class("_cl")}><div${_attr_class(["_cm", { ["_cn"]: !inst.enabled }])}>`);
|
|
4710
4710
|
_set_serialize_reason(12);
|
|
4711
4711
|
const $childScope5 = _peek_scope_id();
|
|
4712
4712
|
icon_agent_default({
|
|
4713
4713
|
agent: inst.id,
|
|
4714
4714
|
size: 15
|
|
4715
4715
|
});
|
|
4716
|
-
_html(`<span${_attr_class(["
|
|
4716
|
+
_html(`<span${_attr_class(["_co", "_x"])}>${_escape(inst.command)}${_el_resume($scope3_id, "e")}</span>`);
|
|
4717
4717
|
_if(() => {
|
|
4718
4718
|
if (input.preferred === inst.id) {
|
|
4719
4719
|
const $scope57_id = _scope_id();
|
|
@@ -4788,7 +4788,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4788
4788
|
}, "id", $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
4789
4789
|
_for_of(otherUsage, (u) => {
|
|
4790
4790
|
const $scope61_id = _scope_id();
|
|
4791
|
-
_html(`<li${_attr_class(["_bz", "
|
|
4791
|
+
_html(`<li${_attr_class(["_bz", "_ch"])}>`);
|
|
4792
4792
|
_set_serialize_reason(6);
|
|
4793
4793
|
const $childScope9 = _peek_scope_id();
|
|
4794
4794
|
usage_meters_default({ agent: u });
|
|
@@ -4823,7 +4823,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4823
4823
|
const skippedSso = (() => {
|
|
4824
4824
|
return (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
4825
4825
|
})();
|
|
4826
|
-
_html(`<li${_attr_class(["_bz", "
|
|
4826
|
+
_html(`<li${_attr_class(["_bz", "_cz"])}><div${_attr_class("_cA")}><div${_attr_class("_bA")}><span${_attr_class("_bC")}><span${_attr_class(["_bB", "_x"])}>${_escape(h.host)}${_el_resume($scope12_id, "f")}</span>`);
|
|
4827
4827
|
_if(() => {
|
|
4828
4828
|
if (h.isEnterprise) {
|
|
4829
4829
|
const $scope65_id = _scope_id();
|
|
@@ -4836,12 +4836,12 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4836
4836
|
_if(() => {
|
|
4837
4837
|
if (active.has(h.host) && authCodes.has(h.host)) {
|
|
4838
4838
|
const $scope24_id = _scope_id();
|
|
4839
|
-
_html(`<span${_attr_class("
|
|
4839
|
+
_html(`<span${_attr_class("_cd")}><span${_attr_class("_F")}></span> Enter code <strong${_attr_class("_cx")}>${_escape(authCodes.get(h.host))}${_el_resume($scope24_id, "d")}</strong> at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_cy")}>${_escape(h.host)}${_el_resume($scope24_id, "f")}/login/device</a>${_el_resume($scope24_id, "e")}</span>`);
|
|
4840
4840
|
_subscribe($authCodes__closures, writeScope($scope24_id, { Cdz: 1 }));
|
|
4841
4841
|
return 0;
|
|
4842
4842
|
} else if (active.has(h.host)) {
|
|
4843
4843
|
const $scope13_id = _scope_id();
|
|
4844
|
-
_html(`<span${_attr_class("
|
|
4844
|
+
_html(`<span${_attr_class("_cd")}><span${_attr_class("_F")}></span><!>${_escape(active.get(h.host) || "Starting…")}${_el_resume($scope13_id, "c")}</span>`);
|
|
4845
4845
|
_subscribe($active__closures, writeScope($scope13_id, { Cdx: 1 }));
|
|
4846
4846
|
return 1;
|
|
4847
4847
|
} else if (h.authed) {
|
|
@@ -4966,7 +4966,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4966
4966
|
_if(() => {
|
|
4967
4967
|
if (setup) {
|
|
4968
4968
|
const $scope35_id = _scope_id();
|
|
4969
|
-
_html(`<form${_attr_class("
|
|
4969
|
+
_html(`<form${_attr_class("_cw")}><label${_attr_class("_W")}>`);
|
|
4970
4970
|
icon_plus_default({
|
|
4971
4971
|
size: 14,
|
|
4972
4972
|
class: "_X"
|
|
@@ -5029,11 +5029,11 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5029
5029
|
_if(() => {
|
|
5030
5030
|
if (self) {
|
|
5031
5031
|
const $scope40_id = _scope_id();
|
|
5032
|
-
_html(`<li${_attr_class(row)}><span${_attr_class(["
|
|
5032
|
+
_html(`<li${_attr_class(row)}><span${_attr_class(["_cs", "_x"])}>work</span>`);
|
|
5033
5033
|
_if(() => {
|
|
5034
5034
|
if (selfUpdating) {
|
|
5035
5035
|
const $scope69_id = _scope_id();
|
|
5036
|
-
_html(`<span${_attr_class("
|
|
5036
|
+
_html(`<span${_attr_class("_cd")}><span${_attr_class("_F")}></span>Updating — the app restarts and reloads when it is done…</span>`);
|
|
5037
5037
|
writeScope($scope69_id, {});
|
|
5038
5038
|
return 0;
|
|
5039
5039
|
} else {
|
|
@@ -5047,7 +5047,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5047
5047
|
return 0;
|
|
5048
5048
|
} else if (self.latest && self.latest !== self.version) {
|
|
5049
5049
|
const $scope42_id = _scope_id();
|
|
5050
|
-
_html(`<button${_attr_class([btnSm, "
|
|
5050
|
+
_html(`<button${_attr_class([btnSm, "_cu"])}${_attr("title", `Update work to v${self.latest} and restart`)}>`);
|
|
5051
5051
|
icon_arrow_up_default({ size: 12 });
|
|
5052
5052
|
_html(` <!>${_escape(self.latest)}${_el_resume($scope42_id, "c")}</button>${_el_resume($scope42_id, "a")}`);
|
|
5053
5053
|
_script($scope42_id, "v46");
|
|
@@ -5088,11 +5088,11 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5088
5088
|
const $for_content5__t_path__closures = /* @__PURE__ */ new Set();
|
|
5089
5089
|
const $for_content5__t_latest__closures = /* @__PURE__ */ new Set();
|
|
5090
5090
|
const $for_content5__t_id__closures = /* @__PURE__ */ new Set();
|
|
5091
|
-
_html(`<li${_attr_class([row, { ["
|
|
5091
|
+
_html(`<li${_attr_class([row, { ["_cr"]: !t.installed }])}><span${_attr_class(["_cs", "_x"])}>${_escape(t.label)}${_el_resume($scope18_id, "c")}</span>`);
|
|
5092
5092
|
_if(() => {
|
|
5093
5093
|
if (active.has(t.id)) {
|
|
5094
5094
|
const $scope19_id = _scope_id();
|
|
5095
|
-
_html(`<span${_attr_class("
|
|
5095
|
+
_html(`<span${_attr_class("_cd")}><span${_attr_class("_F")}></span><!>${_escape(active.get(t.id) || "Starting…")}${_el_resume($scope19_id, "c")}</span>`);
|
|
5096
5096
|
_subscribe($active__closures, writeScope($scope19_id, { Cdx: 3 }));
|
|
5097
5097
|
return 0;
|
|
5098
5098
|
} else if (t.installed) {
|
|
@@ -5100,7 +5100,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5100
5100
|
_if(() => {
|
|
5101
5101
|
if (t.version) {
|
|
5102
5102
|
const $scope32_id = _scope_id();
|
|
5103
|
-
_html(`<button${_attr_class(["
|
|
5103
|
+
_html(`<button${_attr_class(["_ct", "_x"])}${_attr("title", `${t.path || t.label}. Pin a version`)}>v<!>${_escape(t.version)}${_el_resume($scope32_id, "b")}</button>${_el_resume($scope32_id, "a")}`);
|
|
5104
5104
|
_script($scope32_id, "v47");
|
|
5105
5105
|
_subscribe($for_content5__t_path__closures, _subscribe($for_content5__t_version__closures, _subscribe($for_content5__t_label__closures, writeScope($scope32_id, { Cu: 1 }))));
|
|
5106
5106
|
return 0;
|
|
@@ -5114,7 +5114,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5114
5114
|
_if(() => {
|
|
5115
5115
|
if (outdated(t)) {
|
|
5116
5116
|
const $scope46_id = _scope_id();
|
|
5117
|
-
_html(`<button${_attr_class([btnSm, "
|
|
5117
|
+
_html(`<button${_attr_class([btnSm, "_cu"])}${_attr("title", `Update to v${t.latest}`)}>`);
|
|
5118
5118
|
icon_arrow_up_default({ size: 12 });
|
|
5119
5119
|
_html(` <!>${_escape(t.latest)}${_el_resume($scope46_id, "c")}</button>${_el_resume($scope46_id, "a")}`);
|
|
5120
5120
|
_script($scope46_id, "v48");
|
|
@@ -5216,14 +5216,14 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5216
5216
|
_if(() => {
|
|
5217
5217
|
if (hits && hits.length) {
|
|
5218
5218
|
const $scope21_id = _scope_id();
|
|
5219
|
-
_html(`<ul${_attr_class([toolGrid, "
|
|
5219
|
+
_html(`<ul${_attr_class([toolGrid, "_cv"])}>`);
|
|
5220
5220
|
_for_of(hits, (h) => {
|
|
5221
5221
|
const $scope22_id = _scope_id();
|
|
5222
|
-
_html(`<li${_attr_class(row)}><div${_attr_class("_bA")}><span${_attr_class(["
|
|
5222
|
+
_html(`<li${_attr_class(row)}><div${_attr_class("_bA")}><span${_attr_class(["_cs", "_x"])}>${_escape(h.name)}${_el_resume($scope22_id, "d")}</span>`);
|
|
5223
5223
|
_if(() => {
|
|
5224
5224
|
if (active.has(h.name)) {
|
|
5225
5225
|
const $scope23_id = _scope_id();
|
|
5226
|
-
_html(`<span${_attr_class("
|
|
5226
|
+
_html(`<span${_attr_class("_cd")}><span${_attr_class("_F")}></span><!>${_escape(active.get(h.name) || "Starting…")}${_el_resume($scope23_id, "c")}</span>`);
|
|
5227
5227
|
_subscribe($active__closures, writeScope($scope23_id, { Cdx: 5 }));
|
|
5228
5228
|
return 0;
|
|
5229
5229
|
} else if (h.description) {
|
|
@@ -5278,9 +5278,9 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5278
5278
|
return 0;
|
|
5279
5279
|
}
|
|
5280
5280
|
}, $scope0_id, "ac", 1, 1, 1, 0, 1);
|
|
5281
|
-
_html(`</section><section${_attr_class("_bu")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_bv")}><h2${_attr("id", appearanceId)}${_attr_class("_bJ")}>Appearance</h2></div><div${_attr_class(["_bz", "
|
|
5281
|
+
_html(`</section><section${_attr_class("_bu")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_bv")}><h2${_attr("id", appearanceId)}${_attr_class("_bJ")}>Appearance</h2></div><div${_attr_class(["_bz", "_cB"])}><label${_attr_class("_cC")}><span${_attr_class("_cD")}>Name</span><input${_attr_input_value($scope0_id, "aj", input.instance.name, _resume(function(v) {
|
|
5282
5282
|
setInstance({ name: v });
|
|
5283
|
-
}, "v3", $scope0_id))}${_attr_class(["_U", "
|
|
5283
|
+
}, "v3", $scope0_id))}${_attr_class(["_U", "_cE"])} type=text placeholder=work maxlength=32 autocomplete=off spellcheck=false aria-describedby=look-name-hint>${_el_resume($scope0_id, "aj")}<span id=look-name-hint${_attr_class(["_S", "_cF"])}>Tab title, home-screen icon, and notifications.</span></label><div${_attr_class("_cC")} role=radiogroup aria-label="Color theme"><span${_attr_class("_cD")}>Theme</span><span${_attr_class("_cG")}>`);
|
|
5284
5284
|
_for_of([
|
|
5285
5285
|
{
|
|
5286
5286
|
id: "system",
|
|
@@ -5296,21 +5296,21 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5296
5296
|
}
|
|
5297
5297
|
], (opt) => {
|
|
5298
5298
|
const $scope43_id = _scope_id();
|
|
5299
|
-
_html(`<button type=button${_attr_class(["
|
|
5299
|
+
_html(`<button type=button${_attr_class(["_cH", { ["_cI"]: themeMode === opt.id }])} role=radio aria-checked=${themeMode === opt.id ? "true" : "false"}>${_escape(opt.label)}</button>${_el_resume($scope43_id, "a")}`);
|
|
5300
5300
|
_script($scope43_id, "v53");
|
|
5301
5301
|
writeScope($scope43_id, {
|
|
5302
5302
|
e: opt?.id,
|
|
5303
5303
|
_: _scope_with_id($scope0_id)
|
|
5304
5304
|
});
|
|
5305
5305
|
}, "id", $scope0_id, "an", 1, 0, 1, 0, 1);
|
|
5306
|
-
_html(`</span><span${_attr_class(["_S", "
|
|
5307
|
-
"
|
|
5308
|
-
"
|
|
5309
|
-
{ ["
|
|
5306
|
+
_html(`</span><span${_attr_class(["_S", "_cF"])}>Follow the OS, or force light or dark.</span></div><div${_attr_class("_cC")} role=radiogroup aria-label="Accent colour"><span${_attr_class("_cD")}>Accent</span><span${_attr_class("_cN")}><button type=button${_attr_class([
|
|
5307
|
+
"_cO",
|
|
5308
|
+
"_cQ",
|
|
5309
|
+
{ ["_cP"]: !input.instance.accent }
|
|
5310
5310
|
])} role=radio aria-checked=${!input.instance.accent ? "true" : "false"} title="Default (blue)" aria-label="Default (blue)"></button>${_el_resume($scope0_id, "as")}`);
|
|
5311
5311
|
_for_of(ACCENT_PRESETS, (p) => {
|
|
5312
5312
|
const $scope4_id = _scope_id();
|
|
5313
|
-
_html(`<button type=button${_attr_class(["
|
|
5313
|
+
_html(`<button type=button${_attr_class(["_cO", { ["_cP"]: 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")}`);
|
|
5314
5314
|
_script($scope4_id, "v54");
|
|
5315
5315
|
writeScope($scope4_id, {
|
|
5316
5316
|
d: p?.value,
|
|
@@ -5319,12 +5319,12 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5319
5319
|
}, "value", $scope0_id, "at", $sg__input_instance_accent, 0, 1, 0, 1);
|
|
5320
5320
|
const customOn = !!input.instance.accent && !ACCENT_PRESETS.some((p) => p.value === input.instance.accent);
|
|
5321
5321
|
_html(`<label${_attr_class([
|
|
5322
|
-
"
|
|
5323
|
-
"
|
|
5324
|
-
{ ["
|
|
5322
|
+
"_cO",
|
|
5323
|
+
"_cR",
|
|
5324
|
+
{ ["_cP"]: customOn }
|
|
5325
5325
|
])}${customOn ? _attr_style(`--swatch:${input.instance.accent}`) : ""} title="Custom colour"><input${_attr_input_value($scope0_id, "av", input.instance.accent || "#3556d8", _resume(function(v) {
|
|
5326
5326
|
setInstance({ accent: v });
|
|
5327
|
-
}, "v4", $scope0_id))}${_attr_class("
|
|
5327
|
+
}, "v4", $scope0_id))}${_attr_class("_cS")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "av")}<span aria-hidden=true>+</span></label>${_el_resume($scope0_id, "au", $sg__input_instance_accent)}</span><span${_attr_class(["_S", "_cF"])}>Selected rows, buttons, and the icon.</span></div></div></section></div></div></div>`);
|
|
5328
5328
|
_if(() => {
|
|
5329
5329
|
if (versionPick) {
|
|
5330
5330
|
const $scope30_id = _scope_id();
|
|
@@ -5478,7 +5478,7 @@ var icon_branch_default = _template("O", (input) => {
|
|
|
5478
5478
|
});
|
|
5479
5479
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
5480
5480
|
});
|
|
5481
|
-
var resultBranch = "
|
|
5481
|
+
var resultBranch = "_c1 _Z _j";
|
|
5482
5482
|
//#endregion
|
|
5483
5483
|
//#region src/tags/branch-pick.marko
|
|
5484
5484
|
var branch_pick_default = _template("d", (input) => {
|
|
@@ -5489,7 +5489,7 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
5489
5489
|
let branches = null;
|
|
5490
5490
|
let defaultBranch = null;
|
|
5491
5491
|
let branchFilter = "";
|
|
5492
|
-
_html(`<div${_attr_class("
|
|
5492
|
+
_html(`<div${_attr_class("_c3")}>`);
|
|
5493
5493
|
_if(() => {
|
|
5494
5494
|
{
|
|
5495
5495
|
const $scope4_id = _scope_id();
|
|
@@ -5569,11 +5569,11 @@ var repo_picker_default = _template("t", (input) => {
|
|
|
5569
5569
|
const ignored = new Set(prefs$1?.ignoredSsoOrgs?.() ?? []);
|
|
5570
5570
|
return (catalog?.sso || []).filter((s) => !ignored.has(s.org));
|
|
5571
5571
|
})();
|
|
5572
|
-
_html(`<div${_attr_class("
|
|
5572
|
+
_html(`<div${_attr_class("_cU")}>`);
|
|
5573
5573
|
_if(() => {
|
|
5574
5574
|
if (ssoPending.length) {
|
|
5575
5575
|
const $scope7_id = _scope_id();
|
|
5576
|
-
_html(`<div${_attr_class("
|
|
5576
|
+
_html(`<div${_attr_class("_cV")}>`);
|
|
5577
5577
|
_set_serialize_reason(154);
|
|
5578
5578
|
const $childScope = _peek_scope_id();
|
|
5579
5579
|
sso_auth_default({
|
|
@@ -5603,16 +5603,16 @@ var repo_picker_default = _template("t", (input) => {
|
|
|
5603
5603
|
_if(() => {
|
|
5604
5604
|
if (pasted) {
|
|
5605
5605
|
const $scope1_id = _scope_id();
|
|
5606
|
-
_html(`<ul${_attr_class("
|
|
5606
|
+
_html(`<ul${_attr_class("_cW")}><li><div${_attr_class(["_cY", "_cX"])}><button${_attr_class("_cZ")}${pasteWillFork ? _attr("title", `Fork ${pasted} to your account and add the fork`) : _attr("title", `Add ${pasted} as-is (pushes go to that repo)`)}>`);
|
|
5607
5607
|
icon_plus_default({
|
|
5608
5608
|
size: 12,
|
|
5609
|
-
class: "
|
|
5609
|
+
class: "_c5"
|
|
5610
5610
|
});
|
|
5611
|
-
_html(`<span${_attr_class("
|
|
5611
|
+
_html(`<span${_attr_class("_c6")}>${_escape(repoLabel(pasted))}${_el_resume($scope1_id, "f")}</span></button>${_el_resume($scope1_id, "c")}`);
|
|
5612
5612
|
_if(() => {
|
|
5613
5613
|
if (pastedForkable) {
|
|
5614
5614
|
const $scope8_id = _scope_id();
|
|
5615
|
-
_html(`<button${_attr_class(["
|
|
5615
|
+
_html(`<button${_attr_class(["_c2", { ["_c0"]: 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"}>`);
|
|
5616
5616
|
_if(() => {
|
|
5617
5617
|
if (pasteWillFork) {
|
|
5618
5618
|
const $scope10_id = _scope_id();
|
|
@@ -5632,7 +5632,7 @@ var repo_picker_default = _template("t", (input) => {
|
|
|
5632
5632
|
return 0;
|
|
5633
5633
|
}
|
|
5634
5634
|
}, $scope1_id, "g", 1, 1, 1, 0, 1);
|
|
5635
|
-
_html(`<button${_attr_class([resultBranch, { ["
|
|
5635
|
+
_html(`<button${_attr_class([resultBranch, { ["_c0"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>`);
|
|
5636
5636
|
icon_branch_default({ size: 12 });
|
|
5637
5637
|
_html(`</button>${_el_resume($scope1_id, "h")}</div>`);
|
|
5638
5638
|
_if(() => {
|
|
@@ -5667,15 +5667,15 @@ var repo_picker_default = _template("t", (input) => {
|
|
|
5667
5667
|
_if(() => {
|
|
5668
5668
|
if (results.length) {
|
|
5669
5669
|
const $scope3_id = _scope_id();
|
|
5670
|
-
_html(`<ul${_attr_class("
|
|
5670
|
+
_html(`<ul${_attr_class("_cW")}>`);
|
|
5671
5671
|
_for_of(results, (repo, i) => {
|
|
5672
5672
|
const $scope4_id = _scope_id();
|
|
5673
|
-
_html(`<li><div${_attr_class(["
|
|
5673
|
+
_html(`<li><div${_attr_class(["_cY", { ["_cX"]: i === highlight }])}><button${_attr_class("_cZ")}>`);
|
|
5674
5674
|
icon_plus_default({
|
|
5675
5675
|
size: 12,
|
|
5676
|
-
class: "
|
|
5676
|
+
class: "_c5"
|
|
5677
5677
|
});
|
|
5678
|
-
_html(`<span${_attr_class("
|
|
5678
|
+
_html(`<span${_attr_class("_c6")}>${_escape(repoLabel(repo.nameWithOwner))}${_el_resume($scope4_id, "e")}</span></button>${_el_resume($scope4_id, "b")}<button${_attr_class([resultBranch, { ["_c0"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>`);
|
|
5679
5679
|
icon_branch_default({ size: 12 });
|
|
5680
5680
|
_html(`</button>${_el_resume($scope4_id, "f")}</div>${_el_resume($scope4_id, "a")}`);
|
|
5681
5681
|
_if(() => {
|
|
@@ -6194,8 +6194,8 @@ function activeAgent(session) {
|
|
|
6194
6194
|
const command = session.state?.command?.trim();
|
|
6195
6195
|
return command && agentFromCommand(command) || session.agent;
|
|
6196
6196
|
}
|
|
6197
|
-
var iconBtn$1 = "
|
|
6198
|
-
var navToggle = "
|
|
6197
|
+
var iconBtn$1 = "_da _j";
|
|
6198
|
+
var navToggle = "_df _j";
|
|
6199
6199
|
_template("N", (input) => {
|
|
6200
6200
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6201
6201
|
const $scope0_id = _scope_id();
|
|
@@ -6238,12 +6238,12 @@ var ARM_MS = 3500;
|
|
|
6238
6238
|
function disarmLater(fn) {
|
|
6239
6239
|
return setTimeout(fn, ARM_MS);
|
|
6240
6240
|
}
|
|
6241
|
-
var railBtn = "
|
|
6242
|
-
var rowIcon = "
|
|
6243
|
-
var close = "
|
|
6241
|
+
var railBtn = "_gn _j";
|
|
6242
|
+
var rowIcon = "_gw _Z _j";
|
|
6243
|
+
var close = "_gx _Z _j _2";
|
|
6244
6244
|
//#endregion
|
|
6245
6245
|
//#region src/styles/session-pop.css.ts
|
|
6246
|
-
var sessionPop = "
|
|
6246
|
+
var sessionPop = "_gj _4";
|
|
6247
6247
|
//#endregion
|
|
6248
6248
|
//#region src/client/usage.ts
|
|
6249
6249
|
/** The plan row an agent instance draws on: its own account (`claude2`)
|
|
@@ -6304,22 +6304,22 @@ var usage_pcts_default = _template("E", (input) => {
|
|
|
6304
6304
|
if (windows.length) {
|
|
6305
6305
|
const $scope1_id = _scope_id();
|
|
6306
6306
|
_html(`<span${_attr_class([
|
|
6307
|
-
"
|
|
6307
|
+
"_fn",
|
|
6308
6308
|
input.class,
|
|
6309
|
-
{ ["
|
|
6309
|
+
{ ["_fo"]: agent.stale_seconds != null }
|
|
6310
6310
|
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
6311
6311
|
_for_of(windows, (win$1, i) => {
|
|
6312
6312
|
const $scope2_id = _scope_id();
|
|
6313
|
-
_html(`<span${_attr_class("
|
|
6313
|
+
_html(`<span${_attr_class("_fp")}>`);
|
|
6314
6314
|
_if(() => {
|
|
6315
6315
|
if (i) {
|
|
6316
6316
|
const $scope3_id = _scope_id();
|
|
6317
|
-
_html(`<span${_attr_class("
|
|
6317
|
+
_html(`<span${_attr_class("_fs")} aria-hidden=true>·</span>`);
|
|
6318
6318
|
$si__input_agent && writeScope($scope3_id, {});
|
|
6319
6319
|
return 0;
|
|
6320
6320
|
}
|
|
6321
6321
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
6322
|
-
_html(`<span${_attr_class("
|
|
6322
|
+
_html(`<span${_attr_class("_fq")}>${_escape(win$1.window)}${_el_resume($scope2_id, "d", $sg__input_agent)}</span><span${_attr_class(["_fr", win$1.used_percent >= 90 ? "_e8" : win$1.used_percent >= 70 ? "_e7" : win$1.used_percent >= 40 ? "_e6" : "_e5"])}>${_escape(pctText(win$1.used_percent))}${_el_resume($scope2_id, "f", $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
6323
6323
|
$si__input_agent && writeScope($scope2_id, {});
|
|
6324
6324
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
6325
6325
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -6369,7 +6369,7 @@ var prTitle = (repo, pr) => {
|
|
|
6369
6369
|
};
|
|
6370
6370
|
var isOpen = (pr) => !pr.state || pr.state === "OPEN";
|
|
6371
6371
|
var side_nav_chips_default = _template("w", (input) => {
|
|
6372
|
-
const $scope0_reason = _scope_reason(), $
|
|
6372
|
+
const $scope0_reason = _scope_reason(), $si__input_workspaceId = _serialize_if($scope0_reason, 0);
|
|
6373
6373
|
const $scope0_id = _scope_id();
|
|
6374
6374
|
const $input_workspaceId__closures = /* @__PURE__ */ new Set();
|
|
6375
6375
|
const $armedPid__closures = /* @__PURE__ */ new Set();
|
|
@@ -6382,7 +6382,11 @@ var side_nav_chips_default = _template("w", (input) => {
|
|
|
6382
6382
|
armedPid = null;
|
|
6383
6383
|
});
|
|
6384
6384
|
}, "w0", $scope0_id);
|
|
6385
|
+
let dismissed = /* @__PURE__ */ new Set();
|
|
6386
|
+
const prKey = _resume((fullName, number) => `${fullName}#${number}`, "w1");
|
|
6385
6387
|
const dismissPr = _resume((fullName, number) => {
|
|
6388
|
+
const key = prKey(fullName, number);
|
|
6389
|
+
dismissed = new Set(dismissed).add(key);
|
|
6386
6390
|
fetch(`/api/workspaces/${input.workspaceId}/prs`, {
|
|
6387
6391
|
method: "POST",
|
|
6388
6392
|
headers: { "content-type": "application/json" },
|
|
@@ -6390,10 +6394,30 @@ var side_nav_chips_default = _template("w", (input) => {
|
|
|
6390
6394
|
fullName,
|
|
6391
6395
|
number
|
|
6392
6396
|
})
|
|
6393
|
-
}).
|
|
6394
|
-
|
|
6395
|
-
|
|
6396
|
-
|
|
6397
|
+
}).then((res) => {
|
|
6398
|
+
if (!res.ok) throw new Error(`HTTP ${res.status}`);
|
|
6399
|
+
}).catch(() => {
|
|
6400
|
+
const next = new Set(dismissed);
|
|
6401
|
+
next.delete(key);
|
|
6402
|
+
dismissed = next;
|
|
6403
|
+
});
|
|
6404
|
+
}, "w2", $scope0_id);
|
|
6405
|
+
let killed = /* @__PURE__ */ new Set();
|
|
6406
|
+
const killPort = _resume((pid) => {
|
|
6407
|
+
killed = new Set(killed).add(pid);
|
|
6408
|
+
fetch(`/api/procs/${pid}`, { method: "DELETE" }).then((res) => {
|
|
6409
|
+
if (!res.ok) throw new Error(`HTTP ${res.status}`);
|
|
6410
|
+
}).catch(() => {
|
|
6411
|
+
const next = new Set(killed);
|
|
6412
|
+
next.delete(pid);
|
|
6413
|
+
killed = next;
|
|
6414
|
+
});
|
|
6415
|
+
}, "w3", $scope0_id);
|
|
6416
|
+
const repos = (input.status?.repos || []).map((r) => ({
|
|
6417
|
+
...r,
|
|
6418
|
+
prs: (r.prs || []).filter((pr) => !dismissed.has(prKey(r.full_name, pr.number)))
|
|
6419
|
+
}));
|
|
6420
|
+
const ports = (input.status?.ports || []).filter((p) => !killed.has(p.pid));
|
|
6397
6421
|
_if(() => {
|
|
6398
6422
|
if (repos.some((r) => (r.prs || []).length) || ports.length) {
|
|
6399
6423
|
const $scope1_id = _scope_id();
|
|
@@ -6402,7 +6426,7 @@ var side_nav_chips_default = _template("w", (input) => {
|
|
|
6402
6426
|
if (repos.length < 2) return "";
|
|
6403
6427
|
const name = repo.full_name.split("/").at(-1);
|
|
6404
6428
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel(repo.full_name) : name;
|
|
6405
|
-
}, "
|
|
6429
|
+
}, "w4", $scope1_id);
|
|
6406
6430
|
_html(`<div${_attr_class("_hq")}>`);
|
|
6407
6431
|
_for_of(repos, (repo) => {
|
|
6408
6432
|
const $scope2_id = _scope_id();
|
|
@@ -6419,14 +6443,14 @@ var side_nav_chips_default = _template("w", (input) => {
|
|
|
6419
6443
|
[prState.merged]: pr.state === "MERGED",
|
|
6420
6444
|
[prState.closed]: pr.state === "CLOSED"
|
|
6421
6445
|
}
|
|
6422
|
-
])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["_hu", { ["_hB"]: !open }])}${_attr("href", pr.url)} target=_blank rel=noopener>${_escape(repoLabel$1(repo))}${_el_resume($scope3_id, "c"
|
|
6446
|
+
])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["_hu", { ["_hB"]: !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")}`);
|
|
6423
6447
|
_if(() => {
|
|
6424
6448
|
if (open) {
|
|
6425
6449
|
const $scope4_id = _scope_id();
|
|
6426
6450
|
_html(`<a${_attr_class(["_hu", "_hv"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr.number}`)}`)}${_attr("title", `Review #${pr.number} changes`)}>`);
|
|
6427
6451
|
icon_diff_default({ size: 12 });
|
|
6428
|
-
_html(`</a>${_el_resume($scope4_id, "a"
|
|
6429
|
-
|
|
6452
|
+
_html(`</a>${_el_resume($scope4_id, "a")}`);
|
|
6453
|
+
_subscribe($for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, {})));
|
|
6430
6454
|
return 0;
|
|
6431
6455
|
} else {
|
|
6432
6456
|
const $scope6_id = _scope_id();
|
|
@@ -6437,63 +6461,63 @@ var side_nav_chips_default = _template("w", (input) => {
|
|
|
6437
6461
|
])}${_attr("title", `Dismiss #${pr.number}`)}>`);
|
|
6438
6462
|
icon_xmark_default({ size: 12 });
|
|
6439
6463
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
6440
|
-
_script($scope6_id, "
|
|
6441
|
-
writeScope($scope6_id, {
|
|
6464
|
+
_script($scope6_id, "w5");
|
|
6465
|
+
writeScope($scope6_id, {});
|
|
6442
6466
|
return 1;
|
|
6443
6467
|
}
|
|
6444
|
-
}, $scope3_id, "e",
|
|
6445
|
-
_html(`</span>${_el_resume($scope3_id, "a"
|
|
6446
|
-
_subscribe($
|
|
6447
|
-
|
|
6448
|
-
_: _scope_with_id($scope2_id)
|
|
6449
|
-
}));
|
|
6450
|
-
}, "number", $scope2_id, "a", $sg__input_status_repos, $sg__input_status_repos, $sg__input_status_repos, 0, 1);
|
|
6468
|
+
}, $scope3_id, "e", 1, 1, 1, 0, 1);
|
|
6469
|
+
_html(`</span>${_el_resume($scope3_id, "a")}`);
|
|
6470
|
+
_subscribe($if_content__repoLabel__closures, writeScope($scope3_id, { m: pr?.number }));
|
|
6471
|
+
}, "number", $scope2_id, "a", 1, 1, 1, 0, 1);
|
|
6451
6472
|
writeScope($scope2_id, {
|
|
6452
|
-
c:
|
|
6453
|
-
e:
|
|
6473
|
+
c: repo,
|
|
6474
|
+
e: repo?.worktree,
|
|
6454
6475
|
f: repo?.full_name,
|
|
6455
|
-
|
|
6456
|
-
h: $si__input_status_repos && $for_content__repo_worktree__closures
|
|
6476
|
+
h: $for_content__repo_worktree__closures
|
|
6457
6477
|
});
|
|
6458
|
-
}, "full_name", $scope1_id, "b"
|
|
6478
|
+
}, "full_name", $scope1_id, "b");
|
|
6459
6479
|
_for_of(ports, (p) => {
|
|
6460
6480
|
const $scope5_id = _scope_id();
|
|
6461
|
-
_html(`<span${_attr_class(["_s", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["_hu", "_hA"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${p.port}`)}
|
|
6481
|
+
_html(`<span${_attr_class(["_s", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["_hu", "_hA"])}${_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([
|
|
6462
6482
|
"_hu",
|
|
6463
6483
|
"_hv",
|
|
6464
6484
|
"_hw",
|
|
6465
6485
|
{ ["_q"]: armedPid === p.pid }
|
|
6466
6486
|
])}${armedPid === p.pid ? " title=Kill?" : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
|
|
6467
6487
|
icon_xmark_default({ size: 12 });
|
|
6468
|
-
_html(`</button>${_el_resume($scope5_id, "d")}</span>${_el_resume($scope5_id, "a"
|
|
6469
|
-
_script($scope5_id, "
|
|
6488
|
+
_html(`</button>${_el_resume($scope5_id, "d")}</span>${_el_resume($scope5_id, "a")}`);
|
|
6489
|
+
_script($scope5_id, "w6");
|
|
6470
6490
|
_subscribe($armedPid__closures, writeScope($scope5_id, {
|
|
6471
6491
|
h: p?.cmd,
|
|
6472
6492
|
i: p?.port,
|
|
6473
|
-
j: p?.pid
|
|
6474
|
-
_: _scope_with_id($scope1_id)
|
|
6493
|
+
j: p?.pid
|
|
6475
6494
|
}));
|
|
6476
|
-
}, "port", $scope1_id, "c",
|
|
6495
|
+
}, "port", $scope1_id, "c", 1, 1, 1, 0, 1);
|
|
6477
6496
|
_html("</div>");
|
|
6478
6497
|
writeScope($scope1_id, {
|
|
6479
|
-
d:
|
|
6480
|
-
|
|
6481
|
-
e: $si__input_status_repos && $if_content__repoLabel__closures
|
|
6498
|
+
d: repoLabel$1,
|
|
6499
|
+
e: $if_content__repoLabel__closures
|
|
6482
6500
|
});
|
|
6483
6501
|
return 0;
|
|
6484
6502
|
}
|
|
6485
|
-
}, $scope0_id, "a",
|
|
6503
|
+
}, $scope0_id, "a", 1, 1, 1, 0, 1);
|
|
6486
6504
|
writeScope($scope0_id, {
|
|
6487
6505
|
d: input.workspaceId,
|
|
6506
|
+
f: input.status?.repos,
|
|
6507
|
+
g: input.status?.ports,
|
|
6488
6508
|
h: armedPid,
|
|
6489
6509
|
j: armBox.timer,
|
|
6490
6510
|
k: armPid,
|
|
6491
|
-
l:
|
|
6492
|
-
m:
|
|
6493
|
-
|
|
6494
|
-
|
|
6495
|
-
|
|
6496
|
-
|
|
6511
|
+
l: dismissed,
|
|
6512
|
+
m: prKey,
|
|
6513
|
+
p: dismissPr,
|
|
6514
|
+
q: killed,
|
|
6515
|
+
s: killPort,
|
|
6516
|
+
t: repos,
|
|
6517
|
+
u: ports,
|
|
6518
|
+
v: ports?.length,
|
|
6519
|
+
x: $si__input_workspaceId && $input_workspaceId__closures,
|
|
6520
|
+
y: $armedPid__closures
|
|
6497
6521
|
});
|
|
6498
6522
|
_resume_branch($scope0_id);
|
|
6499
6523
|
});
|
|
@@ -6553,10 +6577,10 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6553
6577
|
_if(() => {
|
|
6554
6578
|
if (input.rail) {
|
|
6555
6579
|
const $scope2_id = _scope_id();
|
|
6556
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
6580
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_gl"]: 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([
|
|
6557
6581
|
"_z",
|
|
6558
6582
|
phase[dot],
|
|
6559
|
-
"
|
|
6583
|
+
"_go"
|
|
6560
6584
|
])}></span>${_el_resume($scope2_id, "c", $sg__input_workspaceId__OR__input_status)}</a>${_el_resume($scope2_id, "a", _serialize_guard($scope0_reason, 3))}`);
|
|
6561
6585
|
_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) })))));
|
|
6562
6586
|
return 0;
|
|
@@ -6564,15 +6588,15 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6564
6588
|
const $scope3_id = _scope_id();
|
|
6565
6589
|
const sessions$1 = input.sessions || [];
|
|
6566
6590
|
const phaseLabel = dot === "working" ? "Working" : dot === "waiting" ? "Needs input" : dot === "idle" ? "Idle" : "Not running";
|
|
6567
|
-
_html(`<section${_attr_class(["
|
|
6568
|
-
["
|
|
6591
|
+
_html(`<section${_attr_class(["_gq", {
|
|
6592
|
+
["_gl"]: input.current,
|
|
6569
6593
|
["_5"]: input.current,
|
|
6570
|
-
["
|
|
6571
|
-
["
|
|
6572
|
-
}])}><div${_attr_class("
|
|
6594
|
+
["_gr"]: input.railPop,
|
|
6595
|
+
["_gp"]: input.page
|
|
6596
|
+
}])}><div${_attr_class("_gs")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class("_gt")}><span${_attr_class([
|
|
6573
6597
|
"_z",
|
|
6574
6598
|
phase[dot],
|
|
6575
|
-
"
|
|
6599
|
+
"_gG"
|
|
6576
6600
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope3_id, "d", $sg__input_workspaceId__OR__input_status)}`);
|
|
6577
6601
|
_if(() => {
|
|
6578
6602
|
if (sessions$1.length === 1) {
|
|
@@ -6585,7 +6609,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6585
6609
|
icon_agent_default({
|
|
6586
6610
|
agent: activeAgent(sessions$1[0]),
|
|
6587
6611
|
size: 12,
|
|
6588
|
-
class: "
|
|
6612
|
+
class: "_gy"
|
|
6589
6613
|
});
|
|
6590
6614
|
$si__input_sessions && writeScope($scope14_id, {
|
|
6591
6615
|
_: _scope_with_id($scope3_id),
|
|
@@ -6595,16 +6619,16 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6595
6619
|
}
|
|
6596
6620
|
}, $scope3_id, "e", $sg__input_sessions, $sg__input_sessions);
|
|
6597
6621
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length === 1 ? sessions$1[0].title || "" : `${sessions$1.length} sessions`;
|
|
6598
|
-
_html(`<span${_attr_class("
|
|
6622
|
+
_html(`<span${_attr_class("_gz")}><span${_attr_class("_gA")}>${_escape(ws$1.name)}${_el_resume($scope3_id, "h", $sg__input_workspaces__OR__input_workspaceId)}</span>`);
|
|
6599
6623
|
_if(() => {
|
|
6600
6624
|
if (input.page && metaText) {
|
|
6601
6625
|
const $scope16_id = _scope_id();
|
|
6602
|
-
_html(`<span${_attr_class("
|
|
6626
|
+
_html(`<span${_attr_class("_gE")}>${_escape(metaText)}${_el_resume($scope16_id, "b", _serialize_guard($scope0_reason, 7))}</span>`);
|
|
6603
6627
|
$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) });
|
|
6604
6628
|
return 0;
|
|
6605
6629
|
} else if (sessions$1.length === 1 && sessions$1[0].title) {
|
|
6606
6630
|
const $scope15_id = _scope_id();
|
|
6607
|
-
_html(`<span${_attr_class("
|
|
6631
|
+
_html(`<span${_attr_class("_gB")}>${_escape(sessions$1[0].title)}${_el_resume($scope15_id, "b", $sg__input_sessions)}</span>`);
|
|
6608
6632
|
$si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && writeScope($scope15_id, { _: $si__input_sessions && _scope_with_id($scope3_id) });
|
|
6609
6633
|
return 1;
|
|
6610
6634
|
}
|
|
@@ -6617,7 +6641,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6617
6641
|
"_I",
|
|
6618
6642
|
"_R",
|
|
6619
6643
|
"_K",
|
|
6620
|
-
"
|
|
6644
|
+
"_gF"
|
|
6621
6645
|
])}>${input.current ? "Open" : ""}${_el_resume($scope4_id, "b", _serialize_guard($scope0_reason, 21))}</span>`);
|
|
6622
6646
|
$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, {
|
|
6623
6647
|
_: _scope_with_id($scope3_id),
|
|
@@ -6630,7 +6654,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6630
6654
|
_if(() => {
|
|
6631
6655
|
if (!input.page) {
|
|
6632
6656
|
const $scope5_id = _scope_id();
|
|
6633
|
-
_html(`<div${_attr_class("
|
|
6657
|
+
_html(`<div${_attr_class("_gu")}>`);
|
|
6634
6658
|
_if(() => {
|
|
6635
6659
|
if (input.onNewSession) {
|
|
6636
6660
|
const $scope6_id = _scope_id();
|
|
@@ -6644,7 +6668,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6644
6668
|
_html(`</button>${_el_resume($scope6_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class(sessionPop)}>`);
|
|
6645
6669
|
_for_of([], (agent) => {
|
|
6646
6670
|
const $scope7_id = _scope_id();
|
|
6647
|
-
_html(`<button${_attr_class("
|
|
6671
|
+
_html(`<button${_attr_class("_gk")}>`);
|
|
6648
6672
|
_set_serialize_reason(12);
|
|
6649
6673
|
const $childScope2 = _peek_scope_id();
|
|
6650
6674
|
icon_agent_default({
|
|
@@ -6679,7 +6703,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6679
6703
|
return 0;
|
|
6680
6704
|
}
|
|
6681
6705
|
}, $scope5_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
6682
|
-
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["
|
|
6706
|
+
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_gm"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
|
|
6683
6707
|
icon_manage_default({ size: 12 });
|
|
6684
6708
|
_html(`</a>${_el_resume($scope5_id, "d", _serialize_guard($scope0_reason, 8))}</div>`);
|
|
6685
6709
|
_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, {
|
|
@@ -6689,7 +6713,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6689
6713
|
return 0;
|
|
6690
6714
|
}
|
|
6691
6715
|
}, $scope3_id, "k", $sg__input_page, $sg__input_page, 1, 0, 1);
|
|
6692
|
-
_html(`</div><div${_attr_class("
|
|
6716
|
+
_html(`</div><div${_attr_class("_gL")}>`);
|
|
6693
6717
|
_if(() => {
|
|
6694
6718
|
if (sessions$1.length === 1 && openPlan) {
|
|
6695
6719
|
const $scope11_id = _scope_id();
|
|
@@ -6697,7 +6721,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6697
6721
|
const $childScope3 = _peek_scope_id();
|
|
6698
6722
|
usage_pcts_default({
|
|
6699
6723
|
agent: openPlan,
|
|
6700
|
-
class: "
|
|
6724
|
+
class: "_gC"
|
|
6701
6725
|
});
|
|
6702
6726
|
_subscribe($openPlan__closures, writeScope($scope11_id, {
|
|
6703
6727
|
a: _existing_scope($childScope3),
|
|
@@ -6708,14 +6732,14 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6708
6732
|
}, $scope3_id, "m");
|
|
6709
6733
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
6710
6734
|
const $scope8_id = _scope_id();
|
|
6711
|
-
_html(`<div${_attr_class(["
|
|
6735
|
+
_html(`<div${_attr_class(["_gv", { ["_gl"]: s.id === input.currentTab }])}>`);
|
|
6712
6736
|
_if(() => {
|
|
6713
6737
|
if (renamingId === s.id) {
|
|
6714
6738
|
const $scope10_id = _scope_id();
|
|
6715
6739
|
_html(`<span${_attr_class([
|
|
6716
6740
|
"_z",
|
|
6717
6741
|
phase[sessionPhase(s.state)],
|
|
6718
|
-
"
|
|
6742
|
+
"_gJ"
|
|
6719
6743
|
])}></span>${_el_resume($scope10_id, "a", $sg__input_sessions)}`);
|
|
6720
6744
|
_set_serialize_reason({
|
|
6721
6745
|
1: $sg__input_sessions,
|
|
@@ -6725,17 +6749,17 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6725
6749
|
icon_agent_default({
|
|
6726
6750
|
agent: activeAgent(s),
|
|
6727
6751
|
size: 13,
|
|
6728
|
-
class: "
|
|
6752
|
+
class: "_gN"
|
|
6729
6753
|
});
|
|
6730
6754
|
_html(`<input${_attr_input_value($scope10_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
6731
6755
|
renameValue = _new_renameValue;
|
|
6732
|
-
}, "x0", $scope10_id))}${_attr_class(["_U", "
|
|
6756
|
+
}, "x0", $scope10_id))}${_attr_class(["_U", "_gK"])} aria-label="Session name">${_el_resume($scope10_id, "c")}`);
|
|
6733
6757
|
_script($scope10_id, "x5");
|
|
6734
6758
|
_subscribe($renameValue__closures, writeScope($scope10_id, { b: $si__input_sessions && _existing_scope($childScope4) }));
|
|
6735
6759
|
return 0;
|
|
6736
6760
|
} else {
|
|
6737
6761
|
const $scope9_id = _scope_id();
|
|
6738
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("
|
|
6762
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("_gM")}><span${_attr_class(["_z", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope9_id, "b", $sg__input_sessions)}`);
|
|
6739
6763
|
_set_serialize_reason({
|
|
6740
6764
|
1: $sg__input_sessions,
|
|
6741
6765
|
2: $sg__input_sessions
|
|
@@ -6744,9 +6768,9 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6744
6768
|
icon_agent_default({
|
|
6745
6769
|
agent: activeAgent(s),
|
|
6746
6770
|
size: 13,
|
|
6747
|
-
class: "
|
|
6771
|
+
class: "_gN"
|
|
6748
6772
|
});
|
|
6749
|
-
_html(`<span${_attr_class("
|
|
6773
|
+
_html(`<span${_attr_class("_gH")}>${_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("_gI")}><button${_attr_class(rowIcon)} title="Rename session">`);
|
|
6750
6774
|
icon_edit_default({ size: 12 });
|
|
6751
6775
|
_html(`</button>${_el_resume($scope9_id, "g")}<button${_attr_class([close, { ["_q"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
|
|
6752
6776
|
icon_xmark_default({ size: 12 });
|
|
@@ -6758,7 +6782,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6758
6782
|
const $childScope6 = _peek_scope_id();
|
|
6759
6783
|
usage_pcts_default({
|
|
6760
6784
|
agent: openPlan,
|
|
6761
|
-
class: "
|
|
6785
|
+
class: "_gD"
|
|
6762
6786
|
});
|
|
6763
6787
|
_subscribe($openPlan__closures, writeScope($scope12_id, {
|
|
6764
6788
|
a: _existing_scope($childScope6),
|
|
@@ -6785,14 +6809,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6785
6809
|
_: _scope_with_id($scope3_id)
|
|
6786
6810
|
})));
|
|
6787
6811
|
}, "id", $scope3_id, "n", $sg__input_sessions, $sg__input_sessions, $sg__input_sessions, 0, 1);
|
|
6788
|
-
_set_serialize_reason(
|
|
6789
|
-
0: $sg__input_workspaceId__OR__input_status,
|
|
6790
|
-
1: $sg__input_workspaceId__OR__input_status,
|
|
6791
|
-
2: $sg__input_workspaceId__OR__input_status,
|
|
6792
|
-
3: _serialize_guard($scope0_reason, 26),
|
|
6793
|
-
4: $sg__input_workspaceId__OR__input_status,
|
|
6794
|
-
5: $sg__input_workspaceId__OR__input_status
|
|
6795
|
-
});
|
|
6812
|
+
_set_serialize_reason(_serialize_guard($scope0_reason, 26));
|
|
6796
6813
|
const $childScope7 = _peek_scope_id();
|
|
6797
6814
|
side_nav_chips_default({
|
|
6798
6815
|
workspaceId: input.workspaceId,
|
|
@@ -6961,34 +6978,34 @@ var side_nav_default = _template("y", (input) => {
|
|
|
6961
6978
|
const iconSrc = `/api/instance/icon${input.instanceAccent ? `?v=${input.instanceAccent.slice(1)}` : ""}`;
|
|
6962
6979
|
const otherIds = itemIds.filter((id) => id !== ws.id);
|
|
6963
6980
|
const listIds = isPage ? [ws.id, ...otherIds] : itemIds;
|
|
6964
|
-
_html(`<aside${_attr_class(["
|
|
6965
|
-
["
|
|
6966
|
-
["
|
|
6981
|
+
_html(`<aside${_attr_class(["_de", {
|
|
6982
|
+
["_dc"]: !navOpen,
|
|
6983
|
+
["_dd"]: isPage
|
|
6967
6984
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
6968
6985
|
_if(() => {
|
|
6969
6986
|
if (isPage) {
|
|
6970
6987
|
const $scope1_id = _scope_id();
|
|
6971
|
-
_html(`<header${_attr_class("
|
|
6988
|
+
_html(`<header${_attr_class("_dh")}><div${_attr_class("_dq")}>`);
|
|
6972
6989
|
_if(() => {
|
|
6973
6990
|
if (input.instanceName) {
|
|
6974
6991
|
const $scope2_id = _scope_id();
|
|
6975
|
-
_html(`<div${_attr_class("
|
|
6992
|
+
_html(`<div${_attr_class("_dn")} title="This work server (Settings → Appearance)"><img${_attr_class("_do")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_dp")}>${_escape(input.instanceName)}${_el_resume($scope2_id, "d", $sg__input_instanceName)}</span></div>`);
|
|
6976
6993
|
_subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
|
|
6977
6994
|
return 0;
|
|
6978
6995
|
}
|
|
6979
6996
|
}, $scope1_id, "c", $sg__input_instanceName, $sg__input_instanceName, 1, 0, 1);
|
|
6980
|
-
_html(`<h1${_attr_class("
|
|
6997
|
+
_html(`<h1${_attr_class("_di")}>Workspaces</h1></div><div${_attr_class("_dj")}>`);
|
|
6981
6998
|
_if(() => {}, $scope1_id, "f", 1, 1, 1, 0, 1);
|
|
6982
6999
|
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
|
|
6983
7000
|
iconBtn$1,
|
|
6984
|
-
"
|
|
6985
|
-
{ ["
|
|
7001
|
+
"_dk",
|
|
7002
|
+
{ ["_c_"]: view === "settings" }
|
|
6986
7003
|
])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
6987
7004
|
icon_settings_default({ size: 16 });
|
|
6988
7005
|
_if(() => {
|
|
6989
7006
|
if (input.setupReady === false) {
|
|
6990
7007
|
const $scope12_id = _scope_id();
|
|
6991
|
-
_html(`<span${_attr_class(["_z", "
|
|
7008
|
+
_html(`<span${_attr_class(["_z", "_db"])} title="Machine setup incomplete"></span>`);
|
|
6992
7009
|
$si__input_setupReady && writeScope($scope12_id, {});
|
|
6993
7010
|
return 0;
|
|
6994
7011
|
}
|
|
@@ -7001,18 +7018,18 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7001
7018
|
_if(() => {
|
|
7002
7019
|
if (!isPage && input.instanceName) {
|
|
7003
7020
|
const $scope3_id = _scope_id();
|
|
7004
|
-
_html(`<div${_attr_class("
|
|
7021
|
+
_html(`<div${_attr_class("_dn")} title="This work server (Settings → Appearance)"><img${_attr_class("_do")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope3_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_dp")}>${_escape(input.instanceName)}${_el_resume($scope3_id, "d", $sg__input_instanceName)}</span></div>`);
|
|
7005
7022
|
writeScope($scope3_id, {});
|
|
7006
7023
|
return 0;
|
|
7007
7024
|
}
|
|
7008
7025
|
}, $scope0_id, "c", 1, 1, 1, 0, 1);
|
|
7009
|
-
_html(`<div${_attr_class("
|
|
7026
|
+
_html(`<div${_attr_class("_dr")}>`);
|
|
7010
7027
|
_for_of(listIds, (wsId) => {
|
|
7011
7028
|
const $scope4_id = _scope_id();
|
|
7012
7029
|
_if(() => {
|
|
7013
7030
|
if (isPage && wsId === ws.id) {
|
|
7014
7031
|
const $scope13_id = _scope_id();
|
|
7015
|
-
_html(`<h2${_attr_class(["_bJ", "
|
|
7032
|
+
_html(`<h2${_attr_class(["_bJ", "_dl"])}>Current</h2>`);
|
|
7016
7033
|
writeScope($scope13_id, {});
|
|
7017
7034
|
return 0;
|
|
7018
7035
|
}
|
|
@@ -7020,7 +7037,7 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7020
7037
|
_if(() => {
|
|
7021
7038
|
if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
|
|
7022
7039
|
const $scope14_id = _scope_id();
|
|
7023
|
-
_html(`<h2${_attr_class(["_bJ", "
|
|
7040
|
+
_html(`<h2${_attr_class(["_bJ", "_dl"])}>Other workspaces</h2>`);
|
|
7024
7041
|
writeScope($scope14_id, {});
|
|
7025
7042
|
return 0;
|
|
7026
7043
|
}
|
|
@@ -7107,7 +7124,7 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7107
7124
|
railHover = null;
|
|
7108
7125
|
}, 150);
|
|
7109
7126
|
}, "y6", $scope5_id);
|
|
7110
|
-
_html(`<div${_attr_class("
|
|
7127
|
+
_html(`<div${_attr_class("_ds")}>`);
|
|
7111
7128
|
_for_of(itemIds, (wsId, i) => {
|
|
7112
7129
|
const $scope6_id = _scope_id();
|
|
7113
7130
|
_html("<span>");
|
|
@@ -7161,7 +7178,7 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7161
7178
|
if (railHover) {
|
|
7162
7179
|
const $scope7_id = _scope_id();
|
|
7163
7180
|
const hoverId = railHover.id;
|
|
7164
|
-
_html(`<div${_attr_class(["_4", "
|
|
7181
|
+
_html(`<div${_attr_class(["_4", "_dv"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
7165
7182
|
_set_serialize_reason({
|
|
7166
7183
|
0: 1,
|
|
7167
7184
|
1: 1,
|
|
@@ -7249,7 +7266,7 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7249
7266
|
return 0;
|
|
7250
7267
|
}
|
|
7251
7268
|
}, $scope0_id, "e");
|
|
7252
|
-
_html(`<div${_attr_class("
|
|
7269
|
+
_html(`<div${_attr_class("_dt")}>`);
|
|
7253
7270
|
_if(() => {
|
|
7254
7271
|
if (isPage) {
|
|
7255
7272
|
const $scope9_id = _scope_id();
|
|
@@ -7257,7 +7274,7 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7257
7274
|
"_o",
|
|
7258
7275
|
"_p",
|
|
7259
7276
|
btnLg,
|
|
7260
|
-
"
|
|
7277
|
+
"_dm"
|
|
7261
7278
|
])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
7262
7279
|
icon_folder_plus_default({ size: 16 });
|
|
7263
7280
|
_html(` New workspace</a>${_el_resume($scope9_id, "a")}`);
|
|
@@ -7279,19 +7296,19 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7279
7296
|
return 1;
|
|
7280
7297
|
}
|
|
7281
7298
|
}, $scope8_id, "a", 1, 1, 1, "</button>", 1);
|
|
7282
|
-
_html(`<div${_attr_class(["_y", "
|
|
7299
|
+
_html(`<div${_attr_class(["_y", "_du"])}></div>`);
|
|
7283
7300
|
_if(() => {}, $scope8_id, "c", 1, 1, 1, 0, 1);
|
|
7284
|
-
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["
|
|
7301
|
+
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["_c_"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
7285
7302
|
icon_settings_default({ size: 15 });
|
|
7286
7303
|
_if(() => {
|
|
7287
7304
|
if (input.setupReady === false) {
|
|
7288
7305
|
const $scope17_id = _scope_id();
|
|
7289
|
-
_html(`<span${_attr_class(["_z", "
|
|
7306
|
+
_html(`<span${_attr_class(["_z", "_db"])} title="Machine setup incomplete"></span>`);
|
|
7290
7307
|
$si__input_setupReady && writeScope($scope17_id, {});
|
|
7291
7308
|
return 0;
|
|
7292
7309
|
}
|
|
7293
7310
|
}, $scope8_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
7294
|
-
_html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn$1, { ["
|
|
7311
|
+
_html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn$1, { ["_c_"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
7295
7312
|
icon_folder_plus_default({ size: 16 });
|
|
7296
7313
|
_html(`</a>${_el_resume($scope8_id, "g")}`);
|
|
7297
7314
|
_script($scope8_id, "y15");
|
|
@@ -7357,10 +7374,10 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7357
7374
|
});
|
|
7358
7375
|
var iconBtn = "_0 _j";
|
|
7359
7376
|
var sectionCount = "_bw _I _J";
|
|
7360
|
-
var content = "
|
|
7361
|
-
var pageMeta = "
|
|
7362
|
-
var pathMeta = "
|
|
7363
|
-
var dangerHint = "
|
|
7377
|
+
var content = "_dw _bm";
|
|
7378
|
+
var pageMeta = "_dx _br";
|
|
7379
|
+
var pathMeta = "_dA _x";
|
|
7380
|
+
var dangerHint = "_dG _S";
|
|
7364
7381
|
//#endregion
|
|
7365
7382
|
//#region src/tags/manage-workspace.marko
|
|
7366
7383
|
var api$2;
|
|
@@ -7472,7 +7489,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
7472
7489
|
meta: attrTag({ content: _content_resume("o11", () => {
|
|
7473
7490
|
_scope_reason();
|
|
7474
7491
|
const $scope8_id = _scope_id();
|
|
7475
|
-
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
7492
|
+
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_dy")}>${_escape(ws.name)}${_el_resume($scope8_id, "c")}</span>`);
|
|
7476
7493
|
_if(() => {
|
|
7477
7494
|
if (ws.status !== "active") {
|
|
7478
7495
|
const $scope11_id = _scope_id();
|
|
@@ -7481,7 +7498,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
7481
7498
|
return 0;
|
|
7482
7499
|
}
|
|
7483
7500
|
}, $scope8_id, "d", 1, 1, 1, 0, 1);
|
|
7484
|
-
_html(`<span${_attr_class("
|
|
7501
|
+
_html(`<span${_attr_class("_dz")} aria-hidden=true>·</span><span${_attr_class(pathMeta)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope8_id, "g")}</span></span>${_el_resume($scope8_id, "a")}`);
|
|
7485
7502
|
_subscribe($ws_status__closures, _subscribe($ws_name__closures, _subscribe($ws_path__closures, _subscribe($ws_display_path__closures, writeScope($scope8_id, { _: _scope_with_id($scope0_id) })))));
|
|
7486
7503
|
_resume_branch($scope8_id);
|
|
7487
7504
|
}, $scope0_id) })
|
|
@@ -7524,7 +7541,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
7524
7541
|
_html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("_bx")}>`);
|
|
7525
7542
|
_for_of(ws.repos, (row) => {
|
|
7526
7543
|
const $scope1_id = _scope_id();
|
|
7527
|
-
_html(`<li${_attr_class("_bz")}><div${_attr_class("_bA")}><span${_attr_class(["_bB", "_x"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_bC")}><a${_attr_class(["_bD", "
|
|
7544
|
+
_html(`<li${_attr_class("_bz")}><div${_attr_class("_bA")}><span${_attr_class(["_bB", "_x"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_bC")}><a${_attr_class(["_bD", "_dC"])}${_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")}`);
|
|
7528
7545
|
_if(() => {
|
|
7529
7546
|
if (row.base_branch !== row.default_branch) {
|
|
7530
7547
|
const $scope12_id = _scope_id();
|
|
@@ -7590,7 +7607,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
7590
7607
|
return 0;
|
|
7591
7608
|
}
|
|
7592
7609
|
}, $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
7593
|
-
_html(`<div${_attr_class("
|
|
7610
|
+
_html(`<div${_attr_class("_dB")}>`);
|
|
7594
7611
|
const $childScope3 = _peek_scope_id();
|
|
7595
7612
|
let refreshCatalog = repo_picker_default({
|
|
7596
7613
|
exclude: inWorkspace,
|
|
@@ -7620,7 +7637,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
7620
7637
|
_html(`<span${_attr_class("_bC")}>`);
|
|
7621
7638
|
_for_of(p.ports, (port) => {
|
|
7622
7639
|
const $scope19_id = _scope_id();
|
|
7623
|
-
_html(`<button${_attr_class(["_s", "
|
|
7640
|
+
_html(`<button${_attr_class(["_s", "_dD"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope19_id, "b")}</button>${_el_resume($scope19_id, "a")}`);
|
|
7624
7641
|
_script($scope19_id, "o15");
|
|
7625
7642
|
writeScope($scope19_id, { d: port });
|
|
7626
7643
|
}, (x) => String(x), $scope18_id, "a", 1, 1, 1, "</span>", 1);
|
|
@@ -7642,7 +7659,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
7642
7659
|
return 0;
|
|
7643
7660
|
}
|
|
7644
7661
|
}, $scope0_id, "v", 1, 1, 1, 0, 1);
|
|
7645
|
-
_html(`<section${_attr_class(["_bu", "
|
|
7662
|
+
_html(`<section${_attr_class(["_bu", "_dE"])}><div${_attr_class("_bv")}><h2${_attr_class("_bJ")}>Workspace</h2></div><div${_attr_class("_dF")}>`);
|
|
7646
7663
|
_if(() => {
|
|
7647
7664
|
if (ws.status === "active") {
|
|
7648
7665
|
const $scope4_id = _scope_id();
|
|
@@ -7743,19 +7760,19 @@ var term_find_default = _template("A", (input) => {
|
|
|
7743
7760
|
const canStep = hasQuery && open;
|
|
7744
7761
|
const keybar = input.placement === "keybar";
|
|
7745
7762
|
_html(`<div${_attr_class([
|
|
7746
|
-
"
|
|
7747
|
-
keybar ? "
|
|
7748
|
-
!open && "
|
|
7749
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
7763
|
+
"_fD",
|
|
7764
|
+
keybar ? "_fF" : "_fE",
|
|
7765
|
+
!open && "_fH"
|
|
7766
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_fy", keybar ? "_fG" : "_fA"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
7750
7767
|
if (!open) return;
|
|
7751
7768
|
query = v;
|
|
7752
7769
|
live.query = v;
|
|
7753
7770
|
run(0);
|
|
7754
|
-
}, "A0", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
7771
|
+
}, "A0", $scope0_id))}${_attr_class([findInput, keybar && "_fI"])} 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 && "_fJ"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
7755
7772
|
icon_arrow_up_default({ size: 14 });
|
|
7756
|
-
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
7773
|
+
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_fJ"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
7757
7774
|
icon_arrow_down_default({ size: 14 });
|
|
7758
|
-
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
7775
|
+
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "_fJ"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
7759
7776
|
icon_xmark_default({ size: 14 });
|
|
7760
7777
|
_html(`</button>${_el_resume($scope0_id, "h")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
7761
7778
|
_script($scope0_id, "A4");
|
|
@@ -8089,7 +8106,7 @@ var term_default = _template("B", (input) => {
|
|
|
8089
8106
|
trapOpen = true;
|
|
8090
8107
|
}
|
|
8091
8108
|
}, "B14", $scope0_id);
|
|
8092
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
8109
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_dH")}><div${_attr_class("_dI")}></div>${_el_resume($scope0_id, "b")}`);
|
|
8093
8110
|
_if(() => {
|
|
8094
8111
|
if (findOpen) {
|
|
8095
8112
|
const $scope12_id = _scope_id();
|
|
@@ -8116,7 +8133,7 @@ var term_default = _template("B", (input) => {
|
|
|
8116
8133
|
_if(() => {
|
|
8117
8134
|
if (uploading) {
|
|
8118
8135
|
const $scope19_id = _scope_id();
|
|
8119
|
-
_html(`<div${_attr_class("
|
|
8136
|
+
_html(`<div${_attr_class("_dO")}>uploading…</div>`);
|
|
8120
8137
|
writeScope($scope19_id, {});
|
|
8121
8138
|
return 0;
|
|
8122
8139
|
}
|
|
@@ -8124,7 +8141,7 @@ var term_default = _template("B", (input) => {
|
|
|
8124
8141
|
_if(() => {
|
|
8125
8142
|
if (copiedFlash) {
|
|
8126
8143
|
const $scope20_id = _scope_id();
|
|
8127
|
-
_html(`<div${_attr_class("
|
|
8144
|
+
_html(`<div${_attr_class("_dN")}>Copied</div>`);
|
|
8128
8145
|
writeScope($scope20_id, {});
|
|
8129
8146
|
return 0;
|
|
8130
8147
|
}
|
|
@@ -8133,7 +8150,7 @@ var term_default = _template("B", (input) => {
|
|
|
8133
8150
|
_if(() => {
|
|
8134
8151
|
if (trapOpen) {
|
|
8135
8152
|
const $scope11_id = _scope_id();
|
|
8136
|
-
_html(`<div${_attr_class("
|
|
8153
|
+
_html(`<div${_attr_class("_dP")}><div${_attr_class("_dQ")}><p${_attr_class("_ej")}>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")}`);
|
|
8137
8154
|
_script($scope11_id, "B25");
|
|
8138
8155
|
_script($scope11_id, "B26");
|
|
8139
8156
|
writeScope($scope11_id, {});
|
|
@@ -8236,7 +8253,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
8236
8253
|
let DiffView = null;
|
|
8237
8254
|
const loadDiffView = _resume(() => {
|
|
8238
8255
|
if (DiffView) return;
|
|
8239
|
-
import("./
|
|
8256
|
+
import("./_C9U528Q2.js").then((m) => {
|
|
8240
8257
|
DiffView = m.default;
|
|
8241
8258
|
});
|
|
8242
8259
|
}, "F6", $scope0_id);
|
|
@@ -8422,10 +8439,10 @@ var work_view_default = _template("F", (input) => {
|
|
|
8422
8439
|
toggleDiff();
|
|
8423
8440
|
}
|
|
8424
8441
|
}, "F21", $scope0_id);
|
|
8425
|
-
_html(`<div${_attr_class(["
|
|
8426
|
-
["
|
|
8427
|
-
["
|
|
8428
|
-
}])}><div${_attr_class("
|
|
8442
|
+
_html(`<div${_attr_class(["_b4", {
|
|
8443
|
+
["_b2"]: view === "nav",
|
|
8444
|
+
["_b3"]: !input.active
|
|
8445
|
+
}])}><div${_attr_class("_b5")}>`);
|
|
8429
8446
|
_set_serialize_reason({
|
|
8430
8447
|
0: _serialize_guard($scope0_reason, 0),
|
|
8431
8448
|
1: 1,
|
|
@@ -8487,7 +8504,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
8487
8504
|
openDiff(pr);
|
|
8488
8505
|
}, "F29", $scope0_id)
|
|
8489
8506
|
});
|
|
8490
|
-
_html(`</div><div${_attr_class("
|
|
8507
|
+
_html(`</div><div${_attr_class("_b6")}>`);
|
|
8491
8508
|
_if(() => {
|
|
8492
8509
|
if (error) {
|
|
8493
8510
|
const $scope8_id = _scope_id();
|
|
@@ -8510,7 +8527,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
8510
8527
|
_if(() => {
|
|
8511
8528
|
if (diffMounted && DiffView) {
|
|
8512
8529
|
const $scope1_id = _scope_id();
|
|
8513
|
-
_html(`<div${_attr_class(["
|
|
8530
|
+
_html(`<div${_attr_class(["_b7", { ["_b8"]: view === "diff" }])}>`);
|
|
8514
8531
|
_dynamic_tag($scope1_id, "b", DiffView, {
|
|
8515
8532
|
workspaceId: ws.id,
|
|
8516
8533
|
workspaceBranch: ws.branch,
|
|
@@ -8550,7 +8567,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
8550
8567
|
_if(() => {
|
|
8551
8568
|
if (manageMounted) {
|
|
8552
8569
|
const $scope2_id = _scope_id();
|
|
8553
|
-
_html(`<div${_attr_class(["
|
|
8570
|
+
_html(`<div${_attr_class(["_b7", { ["_b8"]: view === "manage" }])}>`);
|
|
8554
8571
|
_set_serialize_reason(_serialize_guard($scope0_reason, 16));
|
|
8555
8572
|
const $childScope2 = _peek_scope_id();
|
|
8556
8573
|
manage_workspace_default({
|
|
@@ -8573,7 +8590,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
8573
8590
|
_if(() => {
|
|
8574
8591
|
if (settingsMounted) {
|
|
8575
8592
|
const $scope3_id = _scope_id();
|
|
8576
|
-
_html(`<div${_attr_class(["
|
|
8593
|
+
_html(`<div${_attr_class(["_b7", { ["_b8"]: view === "settings" }])}>`);
|
|
8577
8594
|
_set_serialize_reason({
|
|
8578
8595
|
0: _serialize_guard($scope0_reason, 1),
|
|
8579
8596
|
1: $sg__input_workspace,
|
|
@@ -8614,7 +8631,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
8614
8631
|
_if(() => {
|
|
8615
8632
|
if (newMounted) {
|
|
8616
8633
|
const $scope4_id = _scope_id();
|
|
8617
|
-
_html(`<div${_attr_class(["
|
|
8634
|
+
_html(`<div${_attr_class(["_b7", { ["_b8"]: view === "new" }])}>`);
|
|
8618
8635
|
_set_serialize_reason({
|
|
8619
8636
|
0: 1,
|
|
8620
8637
|
1: $sg__input_allWorkspaces,
|
|
@@ -8641,13 +8658,13 @@ var work_view_default = _template("F", (input) => {
|
|
|
8641
8658
|
return 0;
|
|
8642
8659
|
}
|
|
8643
8660
|
}, $scope0_id, "i", 1, 1, 1, 0, 1);
|
|
8644
|
-
_html(`<div${_attr_class(["
|
|
8661
|
+
_html(`<div${_attr_class(["_b_", { ["_b9"]: view !== "term" }])}>`);
|
|
8645
8662
|
_if(() => {
|
|
8646
8663
|
if (shownSessions) {
|
|
8647
8664
|
const $scope5_id = _scope_id();
|
|
8648
8665
|
_for_of(shownSessions, (s) => {
|
|
8649
8666
|
const $scope6_id = _scope_id();
|
|
8650
|
-
_html(`<div${_attr_class(["
|
|
8667
|
+
_html(`<div${_attr_class(["_ca", { ["_cb"]: s.id === curTab }])}>`);
|
|
8651
8668
|
_set_serialize_reason({
|
|
8652
8669
|
0: 1,
|
|
8653
8670
|
1: 1,
|
|
@@ -16720,4 +16737,4 @@ server.listen(port, () => {
|
|
|
16720
16737
|
//#endregion
|
|
16721
16738
|
export {};
|
|
16722
16739
|
|
|
16723
|
-
;var __MARKO_MANIFEST__={"
|
|
16740
|
+
;var __MARKO_MANIFEST__={"AA0T2xt":{"block":[2,"stylesheet#/assets/app-page-k9kDVKzR.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-k9kDVKzR.css\"",">"],"defer":[2,"/assets/settings-e7ao7GV2.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-e7ao7GV2.js\"","></script>",2,"modulepreload#/assets/_E_7xyird.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_E_7xyird.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/app-page-k9kDVKzR.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-k9kDVKzR.css\"",">"],"defer":[2,"/assets/w._-e7ao7GV2.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-e7ao7GV2.js\"","></script>",2,"modulepreload#/assets/_E_7xyird.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_E_7xyird.js\"",">"]},"ZLT8joi":{"block":[2,"stylesheet#/assets/app-page-k9kDVKzR.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-k9kDVKzR.css\"",">"],"defer":[2,"/assets/new-e7ao7GV2.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-e7ao7GV2.js\"","></script>",2,"modulepreload#/assets/_E_7xyird.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_E_7xyird.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/app-page-k9kDVKzR.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-k9kDVKzR.css\"",">"],"defer":[2,"/assets/w._-Cm2oV69g.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-Cm2oV69g.js\"","></script>",2,"modulepreload#/assets/_E_7xyird.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_E_7xyird.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/app-page-k9kDVKzR.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-k9kDVKzR.css\"",">"],"defer":[2,"/assets/w-e7ao7GV2.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-e7ao7GV2.js\"","></script>",2,"modulepreload#/assets/_E_7xyird.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_E_7xyird.js\"",">"]}};
|