@dylanpiercey/work 0.0.57 → 0.0.59
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/bin/work.mjs +15 -38
- package/dist/{_DFLVEzHW.js → _BejZlkF2.js} +7 -2
- package/dist/{_FtnOihLp.js → _CBPKAw5M.js} +59 -59
- package/dist/_C_Ufy3TH.js +2 -0
- package/dist/{_w176gAgg.js → _DlRAzicn.js} +28 -5
- package/dist/index.mjs +380 -332
- package/dist/public/assets/{_BnarL5fN.js → _4C0UpFVx.js} +1 -1
- package/dist/public/assets/_4C0UpFVx.js.br +0 -0
- package/dist/public/assets/{_D-cnMUsr2.js → _9LzCBhS_2.js} +1 -1
- package/dist/public/assets/_9LzCBhS_2.js.br +0 -0
- package/dist/public/assets/{_D4j2b-Sq.js → _Aq6Y2T0v.js} +1 -1
- package/dist/public/assets/_Aq6Y2T0v.js.br +0 -0
- package/dist/public/assets/{_BtfQL6MC.js → _B01zAY-u.js} +1 -1
- package/dist/public/assets/_B01zAY-u.js.br +0 -0
- package/dist/public/assets/{_GFh_4VnR.js → _B9NTGug5.js} +1 -1
- package/dist/public/assets/_B9NTGug5.js.br +0 -0
- package/dist/public/assets/{_CQppsb6k2.js → _B9hkAC6z2.js} +1 -1
- package/dist/public/assets/_B9hkAC6z2.js.br +0 -0
- package/dist/public/assets/{_BFI_GEk72.js → _BBb3VfqT2.js} +1 -1
- package/dist/public/assets/_BBb3VfqT2.js.br +0 -0
- package/dist/public/assets/{_wc0iQVbg.js → _BEspmXDA.js} +1 -1
- package/dist/public/assets/_BEspmXDA.js.br +0 -0
- package/dist/public/assets/{_JaDTz4Zd.js → _BHVhtRKY.js} +1 -1
- package/dist/public/assets/_BHVhtRKY.js.br +0 -0
- package/dist/public/assets/{_DgPtL3nO2.js → _BJOUijGq2.js} +1 -1
- package/dist/public/assets/_BJOUijGq2.js.br +0 -0
- package/dist/public/assets/{_BeVJhIuF2.js → _BJb-9ysw2.js} +1 -1
- package/dist/public/assets/_BJb-9ysw2.js.br +0 -0
- package/dist/public/assets/{_DdxTeNA9.js → _BKeftndI.js} +1 -1
- package/dist/public/assets/_BKeftndI.js.br +0 -0
- package/dist/public/assets/{_DCOTsdST.js → _BLgHPwA3.js} +1 -1
- package/dist/public/assets/_BLgHPwA3.js.br +0 -0
- package/dist/public/assets/{_eYTm2vWj.js → _BNgrfL8o.js} +1 -1
- package/dist/public/assets/_BNgrfL8o.js.br +0 -0
- package/dist/public/assets/{_DHHUcj7y.js → _BVgS7NCP.js} +1 -1
- package/dist/public/assets/_BVgS7NCP.js.br +0 -0
- package/dist/public/assets/{_PDPd6X9w.js → _BZBtmMSn.js} +1 -1
- package/dist/public/assets/_BZBtmMSn.js.br +0 -0
- package/dist/public/assets/{__KJ088ly.js → _BZXMvrbw.js} +1 -1
- package/dist/public/assets/_BZXMvrbw.js.br +0 -0
- package/dist/public/assets/{_Ch0jJRpF2.js → _Bk7dXsZx2.js} +1 -1
- package/dist/public/assets/_Bk7dXsZx2.js.br +0 -0
- package/dist/public/assets/{_BwLUD1-V.js → _Bk7ftDUt.js} +1 -1
- package/dist/public/assets/_Bk7ftDUt.js.br +0 -0
- package/dist/public/assets/{_HaM1Jlk_.js → _BluNlEZv.js} +1 -1
- package/dist/public/assets/_BluNlEZv.js.br +0 -0
- package/dist/public/assets/{_Cb49FSPc.js → _BuYT8HKk.js} +1 -1
- package/dist/public/assets/_BuYT8HKk.js.br +0 -0
- package/dist/public/assets/{_BTSelz322.js → _Bub7buTu2.js} +1 -1
- package/dist/public/assets/_Bub7buTu2.js.br +0 -0
- package/dist/public/assets/{_CMh1B9b2.js → _ByRG5g91.js} +1 -1
- package/dist/public/assets/_ByRG5g91.js.br +0 -0
- package/dist/public/assets/{_T9SFwu6g.js → _C14R-b_v.js} +1 -1
- package/dist/public/assets/_C14R-b_v.js.br +0 -0
- package/dist/public/assets/{_DSCr8lsq.js → _C6IjtbVg.js} +1 -1
- package/dist/public/assets/_C6IjtbVg.js.br +0 -0
- package/dist/public/assets/{_DtPDIeZK2.js → _C7JJMpo42.js} +1 -1
- package/dist/public/assets/_C7JJMpo42.js.br +0 -0
- package/dist/public/assets/{_D2U5c8OX.js → _CA3tdsQv.js} +1 -1
- package/dist/public/assets/_CA3tdsQv.js.br +0 -0
- package/dist/public/assets/{_CV_YENib.js → _CBPJ4RVr.js} +1 -1
- package/dist/public/assets/_CBPJ4RVr.js.br +0 -0
- package/dist/public/assets/{_DoRfBKHD2.js → _CCafS5sw2.js} +1 -1
- package/dist/public/assets/_CCafS5sw2.js.br +0 -0
- package/dist/public/assets/{_1fi3_epC2.js → _CMvFdyIa2.js} +1 -1
- package/dist/public/assets/_CMvFdyIa2.js.br +0 -0
- package/dist/public/assets/{_DFb-bc2g.js → _CNcDdAH8.js} +1 -1
- package/dist/public/assets/_CNcDdAH8.js.br +0 -0
- package/dist/public/assets/{_fnxdmnrX2.js → _CYMo9MTE2.js} +1 -1
- package/dist/public/assets/_CYMo9MTE2.js.br +0 -0
- package/dist/public/assets/{_ynedISZP.js → _CYXUTd7l.js} +1 -1
- package/dist/public/assets/_CYXUTd7l.js.br +0 -0
- package/dist/public/assets/{_C0G6dH_3.js → _CZEgD1x7.js} +1 -1
- package/dist/public/assets/_CZEgD1x7.js.br +0 -0
- package/dist/public/assets/{_1wDweXVz.js → _CcuGGPVb.js} +1 -1
- package/dist/public/assets/_CcuGGPVb.js.br +0 -0
- package/dist/public/assets/{_C7Sxjw9-2.js → _Cebuufke2.js} +1 -1
- package/dist/public/assets/_Cebuufke2.js.br +0 -0
- package/dist/public/assets/{_CerTd-Ge.js → _CggqBYox.js} +1 -1
- package/dist/public/assets/_CggqBYox.js.br +0 -0
- package/dist/public/assets/{_we6oEKqn.js → _ChcMMi8_.js} +1 -1
- package/dist/public/assets/_ChcMMi8_.js.br +0 -0
- package/dist/public/assets/{_B9I0gYKr.js → _Chrwmafx.js} +1 -1
- package/dist/public/assets/_Chrwmafx.js.br +0 -0
- package/dist/public/assets/{_ChH_lxP0.js → _Cj4m0y5p.js} +1 -1
- package/dist/public/assets/_Cj4m0y5p.js.br +0 -0
- package/dist/public/assets/{_GL3cIFCF.js → _Ct2eXJFw.js} +1 -1
- package/dist/public/assets/_Ct2eXJFw.js.br +0 -0
- package/dist/public/assets/{_CEPbJDCZ2.js → _CufQkVCk2.js} +1 -1
- package/dist/public/assets/_CufQkVCk2.js.br +0 -0
- package/dist/public/assets/{_B_XtpOB4.js → _CuuU2kTd.js} +1 -1
- package/dist/public/assets/_CuuU2kTd.js.br +0 -0
- package/dist/public/assets/{_BqVZXi4B2.js → _CzHu5Yml2.js} +1 -1
- package/dist/public/assets/_CzHu5Yml2.js.br +0 -0
- package/dist/public/assets/{_C5ycl8bH.js → _CzmS5OWM.js} +1 -1
- package/dist/public/assets/_CzmS5OWM.js.br +0 -0
- package/dist/public/assets/{_BE7DCCdk.js → _D13rZRRa.js} +1 -1
- package/dist/public/assets/_D13rZRRa.js.br +0 -0
- package/dist/public/assets/{_BVgN-hoS2.js → _D2Mf1_R32.js} +1 -1
- package/dist/public/assets/_D2Mf1_R32.js.br +0 -0
- package/dist/public/assets/{_5Iu7-7Yu.js → _D2_tGg5T.js} +1 -1
- package/dist/public/assets/_D2_tGg5T.js.br +0 -0
- package/dist/public/assets/{_B2hrD7F7.js → _D2quHHcV.js} +1 -1
- package/dist/public/assets/_D2quHHcV.js.br +0 -0
- package/dist/public/assets/{_B2LynlWb2.js → _D7tlC7QS2.js} +1 -1
- package/dist/public/assets/_D7tlC7QS2.js.br +0 -0
- package/dist/public/assets/{_D6yFaFbX2.js → _DDsJiq8D2.js} +1 -1
- package/dist/public/assets/_DDsJiq8D2.js.br +0 -0
- package/dist/public/assets/{_Bwsljc8D.js → _DFVeM5NA.js} +1 -1
- package/dist/public/assets/_DFVeM5NA.js.br +0 -0
- package/dist/public/assets/{_cNK-MYFz.js → _DFrArZs9.js} +1 -1
- package/dist/public/assets/_DFrArZs9.js.br +0 -0
- package/dist/public/assets/{_MTTPoEES.js → _DGtjfukV.js} +1 -1
- package/dist/public/assets/_DGtjfukV.js.br +0 -0
- package/dist/public/assets/{_Dfp4rDzR.js → _DLfLpiZj.js} +1 -1
- package/dist/public/assets/{_9hZUx9rh2.js → _DN9XEtZz2.js} +1 -1
- package/dist/public/assets/{_BDAJLqcL.js → _DP-17N2s.js} +1 -1
- package/dist/public/assets/_DP-17N2s.js.br +0 -0
- package/dist/public/assets/{_6T4AyNhc.js → _DR0mwaFQ.js} +1 -1
- package/dist/public/assets/_DR0mwaFQ.js.br +0 -0
- package/dist/public/assets/{_CwTH8KQI.js → _DRahWkav.js} +1 -1
- package/dist/public/assets/_DRahWkav.js.br +0 -0
- package/dist/public/assets/{_Cdh1RpOT.js → _DY7iDxoP.js} +1 -1
- package/dist/public/assets/_DY7iDxoP.js.br +7 -0
- package/dist/public/assets/{_9MQkmzyB.js → _Deyb3rSm.js} +1 -1
- package/dist/public/assets/_Deyb3rSm.js.br +0 -0
- package/dist/public/assets/{_Dmu0qP4E2.js → _DgoS2wC12.js} +1 -1
- package/dist/public/assets/_DgoS2wC12.js.br +0 -0
- package/dist/public/assets/{_CFmJjroU.js → _Dj_tOoaj.js} +1 -1
- package/dist/public/assets/_Dj_tOoaj.js.br +0 -0
- package/dist/public/assets/{_DU8wr53F.js → _DtUxmPJy.js} +1 -1
- package/dist/public/assets/_DtUxmPJy.js.br +0 -0
- package/dist/public/assets/{_Cze8y5Dt.js → _Du2rfXEU.js} +1 -1
- package/dist/public/assets/_Du2rfXEU.js.br +0 -0
- package/dist/public/assets/{_jzPvuV0O.js → _DurjFcgk.js} +1 -1
- package/dist/public/assets/_DurjFcgk.js.br +0 -0
- package/dist/public/assets/{_ZYMh934D2.js → _DwFXsHPv2.js} +1 -1
- package/dist/public/assets/_DwFXsHPv2.js.br +0 -0
- package/dist/public/assets/{_CLNzU4Fu2.js → _HUnZTZzC2.js} +1 -1
- package/dist/public/assets/_HUnZTZzC2.js.br +0 -0
- package/dist/public/assets/{_Cyj2M_On2.js → _J2G4VP2o2.js} +1 -1
- package/dist/public/assets/_J2G4VP2o2.js.br +0 -0
- package/dist/public/assets/{_zkD43Znp.js → _J9_cXa3d.js} +44 -44
- package/dist/public/assets/_J9_cXa3d.js.br +0 -0
- package/dist/public/assets/{_Y34IZ-eE.js → _MtHFvhAh.js} +1 -1
- package/dist/public/assets/_MtHFvhAh.js.br +0 -0
- package/dist/public/assets/{_2eNsNaYO2.js → _SACEj-V12.js} +1 -1
- package/dist/public/assets/{_B4kzyFEk2.js → _Z8pHVZX12.js} +1 -1
- package/dist/public/assets/_Z8pHVZX12.js.br +0 -0
- package/dist/public/assets/{_8SEHbP04.js → _rAo0Ovch.js} +1 -1
- package/dist/public/assets/_rAo0Ovch.js.br +0 -0
- package/dist/public/assets/{_DrnyAK_d.js → _t6cd2p_I.js} +1 -1
- package/dist/public/assets/_t6cd2p_I.js.br +0 -0
- package/dist/public/assets/diff-view-Cj44T1y7.css +1 -0
- package/dist/public/assets/diff-view-Cj44T1y7.css.br +0 -0
- package/dist/public/assets/{index-CxFTRVMW.js → index-D9hzDezQ.js} +20 -20
- package/dist/public/assets/index-D9hzDezQ.js.br +0 -0
- package/dist/public/assets/{index-BVwzVz2z.css → index-DdvzAbHa.css} +1 -1
- package/dist/public/assets/index-DdvzAbHa.css.br +0 -0
- package/install.sh +2 -4
- package/lib/setup/install.d.mts +1 -0
- package/lib/setup/install.mjs +6 -0
- package/package.json +1 -1
- package/dist/_CpT5OTA0.js +0 -2
- package/dist/public/assets/_1fi3_epC2.js.br +0 -0
- package/dist/public/assets/_1wDweXVz.js.br +0 -0
- package/dist/public/assets/_5Iu7-7Yu.js.br +0 -0
- package/dist/public/assets/_6T4AyNhc.js.br +0 -0
- package/dist/public/assets/_8SEHbP04.js.br +0 -0
- package/dist/public/assets/_9MQkmzyB.js.br +0 -0
- package/dist/public/assets/_B2LynlWb2.js.br +0 -0
- package/dist/public/assets/_B2hrD7F7.js.br +0 -0
- package/dist/public/assets/_B4kzyFEk2.js.br +0 -0
- package/dist/public/assets/_B9I0gYKr.js.br +0 -0
- package/dist/public/assets/_BDAJLqcL.js.br +0 -0
- package/dist/public/assets/_BE7DCCdk.js.br +0 -0
- package/dist/public/assets/_BFI_GEk72.js.br +0 -0
- package/dist/public/assets/_BTSelz322.js.br +0 -0
- package/dist/public/assets/_BVgN-hoS2.js.br +0 -0
- package/dist/public/assets/_B_XtpOB4.js.br +0 -0
- package/dist/public/assets/_BeVJhIuF2.js.br +0 -0
- package/dist/public/assets/_BnarL5fN.js.br +0 -0
- package/dist/public/assets/_BqVZXi4B2.js.br +0 -0
- package/dist/public/assets/_BtfQL6MC.js.br +0 -0
- package/dist/public/assets/_BwLUD1-V.js.br +0 -0
- package/dist/public/assets/_Bwsljc8D.js.br +0 -0
- package/dist/public/assets/_C0G6dH_3.js.br +0 -0
- package/dist/public/assets/_C5ycl8bH.js.br +0 -0
- package/dist/public/assets/_C7Sxjw9-2.js.br +0 -0
- package/dist/public/assets/_CEPbJDCZ2.js.br +0 -0
- package/dist/public/assets/_CFmJjroU.js.br +0 -0
- package/dist/public/assets/_CLNzU4Fu2.js.br +0 -0
- package/dist/public/assets/_CMh1B9b2.js.br +0 -0
- package/dist/public/assets/_CQppsb6k2.js.br +0 -0
- package/dist/public/assets/_CV_YENib.js.br +0 -0
- package/dist/public/assets/_Cb49FSPc.js.br +0 -0
- package/dist/public/assets/_Cdh1RpOT.js.br +0 -0
- package/dist/public/assets/_CerTd-Ge.js.br +0 -0
- package/dist/public/assets/_Ch0jJRpF2.js.br +0 -0
- package/dist/public/assets/_ChH_lxP0.js.br +0 -0
- package/dist/public/assets/_CwTH8KQI.js.br +0 -0
- package/dist/public/assets/_Cyj2M_On2.js.br +0 -0
- package/dist/public/assets/_Cze8y5Dt.js.br +0 -0
- package/dist/public/assets/_D-cnMUsr2.js.br +0 -0
- package/dist/public/assets/_D2U5c8OX.js.br +0 -0
- package/dist/public/assets/_D4j2b-Sq.js.br +0 -0
- package/dist/public/assets/_D6yFaFbX2.js.br +0 -0
- package/dist/public/assets/_DCOTsdST.js.br +0 -0
- package/dist/public/assets/_DFb-bc2g.js.br +0 -0
- package/dist/public/assets/_DHHUcj7y.js.br +0 -0
- package/dist/public/assets/_DSCr8lsq.js.br +0 -0
- package/dist/public/assets/_DU8wr53F.js.br +0 -0
- package/dist/public/assets/_DdxTeNA9.js.br +0 -0
- package/dist/public/assets/_DgPtL3nO2.js.br +0 -0
- package/dist/public/assets/_Dmu0qP4E2.js.br +0 -0
- package/dist/public/assets/_DoRfBKHD2.js.br +0 -0
- package/dist/public/assets/_DrnyAK_d.js.br +0 -0
- package/dist/public/assets/_DtPDIeZK2.js.br +0 -0
- package/dist/public/assets/_GFh_4VnR.js.br +0 -0
- package/dist/public/assets/_GL3cIFCF.js.br +0 -0
- package/dist/public/assets/_HaM1Jlk_.js.br +0 -0
- package/dist/public/assets/_JaDTz4Zd.js.br +0 -0
- package/dist/public/assets/_MTTPoEES.js.br +0 -0
- package/dist/public/assets/_PDPd6X9w.js.br +0 -0
- package/dist/public/assets/_T9SFwu6g.js.br +0 -0
- package/dist/public/assets/_Y34IZ-eE.js.br +0 -0
- package/dist/public/assets/_ZYMh934D2.js.br +0 -0
- package/dist/public/assets/__KJ088ly.js.br +0 -0
- package/dist/public/assets/_cNK-MYFz.js.br +0 -0
- package/dist/public/assets/_eYTm2vWj.js.br +0 -0
- package/dist/public/assets/_fnxdmnrX2.js.br +0 -0
- package/dist/public/assets/_jzPvuV0O.js.br +0 -0
- package/dist/public/assets/_wc0iQVbg.js.br +0 -0
- package/dist/public/assets/_we6oEKqn.js.br +0 -0
- package/dist/public/assets/_ynedISZP.js.br +0 -0
- package/dist/public/assets/_zkD43Znp.js.br +0 -0
- package/dist/public/assets/diff-view-BmH-xWiy.css +0 -1
- package/dist/public/assets/diff-view-BmH-xWiy.css.br +0 -0
- package/dist/public/assets/index-BVwzVz2z.css.br +0 -0
- package/dist/public/assets/index-CxFTRVMW.js.br +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM, r as __exportAll, t as __commonJSMin } from "./_BMI-E3GI.js";
|
|
2
|
-
import { $ as get, A as subscribe, B as setPref, C as setScrapedPhase, D as pushPublicKey, E as deleteSubscription, F as disabledAgents, G as setupPath, H as doctor, I as enabledAgents, J as TOOLS, K as which, L as getSetting, M as subscriberJoins, N as agentChoices, O as saveSubscription, P as allPrefs, Q as db, R as preferredAgent, S as setAgentPhase, T as summaryFromHookPayload, U as ghKnownHosts, V as setSetting, W as miseVersions, X as toolById, Y as agentById, Z as all, _ as tmuxName, a as ensureTmuxServer, at as tmux, b as clearAgentPhase, c as killWorkspaceSessions, d as newSessionArgs, et as workspacePath, g as sessionStates, h as sendToSession, i as disposeSessions, it as run, j as subscriberCount, k as publish, l as listSessions, m as renameSession, n as clearTmuxStarted, nt as gh, o as getSession, ot as config, p as panePids, q as DEFAULT_GITHUB_HOST, r as createSession, rt as git, s as killSession, t as cleanEnv, tt as TMUX_SOCKET, u as markTmuxStarted, v as tmuxWasStarted, w as setSessionViewers, x as reasonFromHookPayload, y as reportsWorking, z as setDisabledAgents } from "./
|
|
3
|
-
import { $ as
|
|
2
|
+
import { $ as get, A as subscribe, B as setPref, C as setScrapedPhase, D as pushPublicKey, E as deleteSubscription, F as disabledAgents, G as setupPath, H as doctor, I as enabledAgents, J as TOOLS, K as which, L as getSetting, M as subscriberJoins, N as agentChoices, O as saveSubscription, P as allPrefs, Q as db, R as preferredAgent, S as setAgentPhase, T as summaryFromHookPayload, U as ghKnownHosts, V as setSetting, W as miseVersions, X as toolById, Y as agentById, Z as all, _ as tmuxName, a as ensureTmuxServer, at as tmux, b as clearAgentPhase, c as killWorkspaceSessions, d as newSessionArgs, et as workspacePath, g as sessionStates, h as sendToSession, i as disposeSessions, it as run, j as subscriberCount, k as publish, l as listSessions, m as renameSession, n as clearTmuxStarted, nt as gh, o as getSession, ot as config, p as panePids, q as DEFAULT_GITHUB_HOST, r as createSession, rt as git, s as killSession, t as cleanEnv, tt as TMUX_SOCKET, u as markTmuxStarted, v as tmuxWasStarted, w as setSessionViewers, x as reasonFromHookPayload, y as reportsWorking, z as setDisabledAgents } from "./_BejZlkF2.js";
|
|
3
|
+
import { $ as _hoist, A as tone, B as _attrs, C as btnSm, Ct as attrTag, D as inputLg, E as iconBtnXs, F as _attr_input_value, G as _dynamic_tag, H as _await, I as _attr_option_value, J as _el_resume, L as _attr_or, M as _attr, N as _attr_class, O as metaTrunc, Q as _for_of, R as _attr_select_value, S as btnLg, St as _var, T as iconBtnRow, Tt as writeScope, U as _content, V as _attrs_partial, W as _content_resume, X as _existing_scope, Y as _escape, Z as _flush_head, _ as sectionCount$1, _t as _subscribe, at as _resume, b as repoWebUrl$1, bt as _trailers, c as sideNavOpen, ct as _scope_reason, d as rankRepos, dt as _sep, et as _hoist_read_error, f as icon_back_default, ft as _serialize_guard, g as row, gt as _show_start, h as iconBtn$2, ht as _show_end, i as icon_sidebar_default, it as _peek_scope_id, j as $global, k as phase, l as workspaceTab, lt as _scope_with_id, m as icon_base_default, mt as _set_serialize_reason, n as findIconBtn, nt as _id, ot as _resume_branch, p as icon_refresh_default, pt as _serialize_if, q as _el_read_error, r as findInput, rt as _if, s as setWorkspaceTab, st as _scope_id, tt as _html, ut as _script, v as toast_default, vt as _template, wt as withPageAssets, x as setPrimaryHost, xt as _try, y as repoLabel, yt as _to_text, z as _attr_style } from "./_DlRAzicn.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
import path from "node:path";
|
|
@@ -1410,12 +1410,12 @@ function splitRepo(fullName) {
|
|
|
1410
1410
|
function joinRepo(host, name) {
|
|
1411
1411
|
return host === DEFAULT_HOST ? name : `${host}/${name}`;
|
|
1412
1412
|
}
|
|
1413
|
-
function repoWebUrl
|
|
1413
|
+
function repoWebUrl(fullName) {
|
|
1414
1414
|
const { host, name } = splitRepo(fullName);
|
|
1415
1415
|
return `https://${host}/${name}`;
|
|
1416
1416
|
}
|
|
1417
1417
|
function cloneUrl(fullName) {
|
|
1418
|
-
return `${repoWebUrl
|
|
1418
|
+
return `${repoWebUrl(fullName)}.git`;
|
|
1419
1419
|
}
|
|
1420
1420
|
/** Enterprise hosts the user added in Settings (persisted). */
|
|
1421
1421
|
function addedHosts() {
|
|
@@ -1436,14 +1436,31 @@ function configuredHosts() {
|
|
|
1436
1436
|
function isValidHost(host) {
|
|
1437
1437
|
return /^[a-z0-9-]+(\.[a-z0-9-]+)+$/i.test(host);
|
|
1438
1438
|
}
|
|
1439
|
+
/** `https://ghe.corp/anything/` → `ghe.corp`: people paste URLs. */
|
|
1440
|
+
function normalizeHost(input) {
|
|
1441
|
+
return input.trim().toLowerCase().replace(/^[a-z]+:\/\//, "").replace(/[/?#].*$/, "").replace(/:\d+$/, "");
|
|
1442
|
+
}
|
|
1439
1443
|
function addHost(host) {
|
|
1440
|
-
const h = host
|
|
1444
|
+
const h = normalizeHost(host);
|
|
1441
1445
|
if (!isValidHost(h)) throw new Error(`invalid host: ${host}`);
|
|
1442
1446
|
if (h !== DEFAULT_HOST) setSetting("github.hosts", JSON.stringify([.../* @__PURE__ */ new Set([...addedHosts(), h])]));
|
|
1443
1447
|
return h;
|
|
1444
1448
|
}
|
|
1445
1449
|
function removeHost(host) {
|
|
1446
|
-
|
|
1450
|
+
const h = normalizeHost(host);
|
|
1451
|
+
setSetting("github.hosts", JSON.stringify(addedHosts().filter((x) => x !== h)));
|
|
1452
|
+
}
|
|
1453
|
+
/** Point git's credential helper for `host` at gh (`gh auth setup-git`),
|
|
1454
|
+
* so clones/pushes over https use the token gh holds. Idempotent and
|
|
1455
|
+
* cheap; without it git prompts "Username for https://<host>" on a pipe
|
|
1456
|
+
* and the clone hangs. */
|
|
1457
|
+
async function ensureGitCredentials(host) {
|
|
1458
|
+
await run("gh", [
|
|
1459
|
+
"auth",
|
|
1460
|
+
"setup-git",
|
|
1461
|
+
"--hostname",
|
|
1462
|
+
host
|
|
1463
|
+
]).catch(() => {});
|
|
1447
1464
|
}
|
|
1448
1465
|
function graphqlUrl(host) {
|
|
1449
1466
|
return host === DEFAULT_HOST ? "https://api.github.com/graphql" : `https://${host}/api/graphql`;
|
|
@@ -1932,6 +1949,7 @@ async function ensureBare(fullName) {
|
|
|
1932
1949
|
} else {
|
|
1933
1950
|
progress$1(`Cloning ${fullName} (first time, may take a while)…`);
|
|
1934
1951
|
fs.mkdirSync(path.dirname(bare), { recursive: true });
|
|
1952
|
+
await ensureGitCredentials(splitRepo(fullName).host);
|
|
1935
1953
|
await git([
|
|
1936
1954
|
"clone",
|
|
1937
1955
|
"--bare",
|
|
@@ -2777,6 +2795,19 @@ async function authGithub(host, { interactive = false, ...opts } = {}) {
|
|
|
2777
2795
|
}
|
|
2778
2796
|
});
|
|
2779
2797
|
}
|
|
2798
|
+
/** Sign out of a GitHub host (drops gh's token; the host stays listed). */
|
|
2799
|
+
async function logoutGithub(host, opts = {}) {
|
|
2800
|
+
if (!which("gh")) throw new Error("gh is not installed");
|
|
2801
|
+
return runStreaming("gh", [
|
|
2802
|
+
"auth",
|
|
2803
|
+
"logout",
|
|
2804
|
+
"--hostname",
|
|
2805
|
+
host
|
|
2806
|
+
], {
|
|
2807
|
+
...opts,
|
|
2808
|
+
env: { GH_PROMPT_DISABLED: "1" }
|
|
2809
|
+
});
|
|
2810
|
+
}
|
|
2780
2811
|
//#endregion
|
|
2781
2812
|
//#region src/server/setup.ts
|
|
2782
2813
|
/** Server side of machine setup: the shared lib/setup probe + installers,
|
|
@@ -2898,11 +2929,17 @@ function withLock(key, fn) {
|
|
|
2898
2929
|
*/
|
|
2899
2930
|
async function runSetupAction(id, action, opts = {}) {
|
|
2900
2931
|
const log = (line) => progress$1(line);
|
|
2901
|
-
const lockKey = action === "auth" ? `auth:${id}` : "mise";
|
|
2932
|
+
const lockKey = action === "auth" || action === "logout" ? `auth:${id}` : "mise";
|
|
2902
2933
|
await withProgressOp(`setup:${id}`, () => withLock(lockKey, async () => {
|
|
2903
2934
|
if (action === "auth") {
|
|
2904
2935
|
await authGithub(id, { log });
|
|
2905
2936
|
forgetToken(id);
|
|
2937
|
+
await ensureGitCredentials(id);
|
|
2938
|
+
return;
|
|
2939
|
+
}
|
|
2940
|
+
if (action === "logout") {
|
|
2941
|
+
await logoutGithub(id, { log });
|
|
2942
|
+
forgetToken(id);
|
|
2906
2943
|
return;
|
|
2907
2944
|
}
|
|
2908
2945
|
if (id === "mise") {
|
|
@@ -3085,15 +3122,15 @@ function agentFromCommand(command) {
|
|
|
3085
3122
|
}
|
|
3086
3123
|
//#endregion
|
|
3087
3124
|
//#region src/tags/settings-page.css.ts
|
|
3088
|
-
var content$2 = "
|
|
3089
|
-
var agentGrid = "
|
|
3090
|
-
var toolGrid = "
|
|
3125
|
+
var content$2 = "_bZ _bd _be";
|
|
3126
|
+
var agentGrid = "_b3 _bo";
|
|
3127
|
+
var toolGrid = "_cb _bo";
|
|
3091
3128
|
//#endregion
|
|
3092
3129
|
//#region src/tags/page-head.marko
|
|
3093
3130
|
var page_head_default = _template("o", (input) => {
|
|
3094
3131
|
const $scope0_reason = _scope_reason(), $sg__input_onBack__OR__input_meta__OR__input_actions = _serialize_guard($scope0_reason, 1), $sg__input_meta = _serialize_guard($scope0_reason, 5), $sg__input_actions = _serialize_guard($scope0_reason, 6), $si__input_meta = _serialize_if($scope0_reason, 5), $si__input_actions = _serialize_if($scope0_reason, 6);
|
|
3095
3132
|
const $scope0_id = _scope_id();
|
|
3096
|
-
_html(`<header${_attr_class("
|
|
3133
|
+
_html(`<header${_attr_class("_bf")}>`);
|
|
3097
3134
|
_if(() => {
|
|
3098
3135
|
if (input.onBack) {
|
|
3099
3136
|
const $scope1_id = _scope_id();
|
|
@@ -3105,11 +3142,11 @@ var page_head_default = _template("o", (input) => {
|
|
|
3105
3142
|
return 0;
|
|
3106
3143
|
}
|
|
3107
3144
|
}, $scope0_id, "b", _serialize_guard($scope0_reason, 0), _serialize_guard($scope0_reason, 2), $sg__input_onBack__OR__input_meta__OR__input_actions, 0, 1);
|
|
3108
|
-
_html(`<div${_attr_class("
|
|
3145
|
+
_html(`<div${_attr_class("_bh")}><h1${_attr("id", input.titleId)}${_attr_class("_bg")}>${_escape(input.title)}${_el_resume($scope0_id, "e", _serialize_guard($scope0_reason, 4))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 3))}`);
|
|
3109
3146
|
_if(() => {
|
|
3110
3147
|
if (input.meta) {
|
|
3111
3148
|
const $scope2_id = _scope_id();
|
|
3112
|
-
_html(`<p${_attr_class("
|
|
3149
|
+
_html(`<p${_attr_class("_bi")}>`);
|
|
3113
3150
|
_dynamic_tag($scope2_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
3114
3151
|
_html("</p>");
|
|
3115
3152
|
$si__input_meta && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -3120,7 +3157,7 @@ var page_head_default = _template("o", (input) => {
|
|
|
3120
3157
|
_if(() => {
|
|
3121
3158
|
if (input.actions) {
|
|
3122
3159
|
const $scope3_id = _scope_id();
|
|
3123
|
-
_html(`<div${_attr_class("
|
|
3160
|
+
_html(`<div${_attr_class("_bj")}>`);
|
|
3124
3161
|
_dynamic_tag($scope3_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
3125
3162
|
_html("</div>");
|
|
3126
3163
|
$si__input_actions && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -3194,7 +3231,7 @@ var icon_agent_default = _template("A", (input) => {
|
|
|
3194
3231
|
n: $badge__closures
|
|
3195
3232
|
});
|
|
3196
3233
|
});
|
|
3197
|
-
var usageNote = "
|
|
3234
|
+
var usageNote = "_eC _M";
|
|
3198
3235
|
//#endregion
|
|
3199
3236
|
//#region src/tags/usage-meters.marko
|
|
3200
3237
|
function duration(ms) {
|
|
@@ -3218,19 +3255,19 @@ var usage_meters_default = _template("y", (input) => {
|
|
|
3218
3255
|
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);
|
|
3219
3256
|
const $scope0_id = _scope_id();
|
|
3220
3257
|
const agent = input.agent;
|
|
3221
|
-
_html(`<div${_attr_class(["
|
|
3258
|
+
_html(`<div${_attr_class(["_ew", { ["_ex"]: input.hideName }])}><div${_attr_class("_ey")}>`);
|
|
3222
3259
|
_if(() => {
|
|
3223
3260
|
if (!input.hideName) {
|
|
3224
3261
|
const $scope1_id = _scope_id();
|
|
3225
|
-
_html(`<strong${_attr_class("
|
|
3262
|
+
_html(`<strong${_attr_class("_eR")}>${_escape(agent.agent)}${_el_resume($scope1_id, "b", $sg__input_agent)}</strong>`);
|
|
3226
3263
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
3227
3264
|
return 0;
|
|
3228
3265
|
}
|
|
3229
3266
|
}, $scope0_id, "c", $sg__input_agent__OR__input_hideName, $sg__input_hideName, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
3230
3267
|
_if(() => {
|
|
3231
|
-
if (agent.plan) {
|
|
3268
|
+
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
3232
3269
|
const $scope2_id = _scope_id();
|
|
3233
|
-
_html(`<span${_attr_class("
|
|
3270
|
+
_html(`<span${_attr_class("_ez")}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope2_id, "b", $sg__input_agent)}</span>`);
|
|
3234
3271
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
3235
3272
|
return 0;
|
|
3236
3273
|
}
|
|
@@ -3238,19 +3275,19 @@ var usage_meters_default = _template("y", (input) => {
|
|
|
3238
3275
|
_if(() => {
|
|
3239
3276
|
if (agent.stale_seconds != null) {
|
|
3240
3277
|
const $scope3_id = _scope_id();
|
|
3241
|
-
_html(`<span${_attr_class("
|
|
3278
|
+
_html(`<span${_attr_class("_eA")}${_attr("title", `${agent.note || "couldn't reach this provider"} — these are the last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>⚠ ${_sep($sg__input_agent)}${_escape(duration(agent.stale_seconds * 1e3))}${_el_resume($scope3_id, "b", $sg__input_agent)} old</span>${_el_resume($scope3_id, "a", $sg__input_agent)}`);
|
|
3242
3279
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
3243
3280
|
return 0;
|
|
3244
3281
|
}
|
|
3245
3282
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
3246
|
-
_html(`</div><div${_attr_class(["
|
|
3283
|
+
_html(`</div><div${_attr_class(["_eB", { ["_eS"]: agent.stale_seconds != null }])}>`);
|
|
3247
3284
|
_for_of(agent.windows || [], (win) => {
|
|
3248
3285
|
const $scope4_id = _scope_id();
|
|
3249
3286
|
const pct = pctText(win.used_percent);
|
|
3250
3287
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
3251
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
3252
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
3253
|
-
_html(`<div${_attr_class("
|
|
3288
|
+
const fillClass = win.used_percent >= 90 ? "_eK" : win.used_percent >= 70 ? "_eJ" : win.used_percent >= 40 ? "_eI" : "_eH";
|
|
3289
|
+
const pctClass = win.used_percent >= 90 ? "_eP" : win.used_percent >= 70 ? "_eO" : win.used_percent >= 40 ? "_eN" : "_eM";
|
|
3290
|
+
_html(`<div${_attr_class("_eD")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? ` — resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_eE")}>${_escape(win.window)}${_el_resume($scope4_id, "c", $sg__input_agent)}</span><span${_attr_class("_eF")}><span${_attr_class(["_eG", 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(["_eL", pctClass])}>${_escape(pct)}${_el_resume($scope4_id, "g", $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_eQ")}>${label ? `↻ ${_escape(`${_to_text(label)}`)}` : ""}${_el_resume($scope4_id, "i", $sg__input_agent)}</span></div>${_el_resume($scope4_id, "a", $sg__input_agent)}`);
|
|
3254
3291
|
$si__input_agent && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
3255
3292
|
}, "window", $scope0_id, "g", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
3256
3293
|
_if(() => {
|
|
@@ -3292,7 +3329,7 @@ var modal_view_default = _template("l", (input) => {
|
|
|
3292
3329
|
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;
|
|
3293
3330
|
const dismissable = input.dismissable !== false;
|
|
3294
3331
|
let open = input.open;
|
|
3295
|
-
_html(`<dialog${_attr_class(["
|
|
3332
|
+
_html(`<dialog${_attr_class(["_fZ", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
3296
3333
|
...htmlInput,
|
|
3297
3334
|
open: null
|
|
3298
3335
|
}, {
|
|
@@ -3302,20 +3339,20 @@ var modal_view_default = _template("l", (input) => {
|
|
|
3302
3339
|
closedby: 1,
|
|
3303
3340
|
"on-cancel": 1,
|
|
3304
3341
|
"on-close": 1
|
|
3305
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
3342
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_f0")}>`);
|
|
3306
3343
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
3307
3344
|
_html("</div>");
|
|
3308
3345
|
_if(() => {
|
|
3309
3346
|
if (footer) {
|
|
3310
3347
|
const $scope1_id = _scope_id();
|
|
3311
|
-
_html(`<form method=dialog${_attr_class("
|
|
3348
|
+
_html(`<form method=dialog${_attr_class("_f1")}>`);
|
|
3312
3349
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
3313
3350
|
_html("</form>");
|
|
3314
3351
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
3315
3352
|
return 0;
|
|
3316
3353
|
} else if (input.openChange) {
|
|
3317
3354
|
const $scope2_id = _scope_id();
|
|
3318
|
-
_html(`<form method=dialog${_attr_class("
|
|
3355
|
+
_html(`<form method=dialog${_attr_class("_f1")}>`);
|
|
3319
3356
|
dialog_close_default({
|
|
3320
3357
|
class: ["_i", "_j"],
|
|
3321
3358
|
content: _content("l0", () => {
|
|
@@ -3374,7 +3411,7 @@ var prompt_dialog_default = _template("p", (input) => {
|
|
|
3374
3411
|
const $childScope = _peek_scope_id();
|
|
3375
3412
|
modal_view_default({
|
|
3376
3413
|
label: input.label,
|
|
3377
|
-
class: "
|
|
3414
|
+
class: "_eu",
|
|
3378
3415
|
open: input.open,
|
|
3379
3416
|
openChange: input.openChange,
|
|
3380
3417
|
"aria-labelledby": titleId,
|
|
@@ -3397,7 +3434,7 @@ var prompt_dialog_default = _template("p", (input) => {
|
|
|
3397
3434
|
content: _content("p6", () => {
|
|
3398
3435
|
_scope_reason();
|
|
3399
3436
|
const $scope2_id = _scope_id();
|
|
3400
|
-
_html(`<h2${_attr_class("
|
|
3437
|
+
_html(`<h2${_attr_class("_ev")}${_attr("id", titleId)}>${_escape(input.label)}${_el_resume($scope2_id, "b", $sg__input_label)}</h2><input${_attr_input_value($scope2_id, "c", value, _resume((_new_value) => {
|
|
3401
3438
|
value = _new_value;
|
|
3402
3439
|
}, "p0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
3403
3440
|
_script($scope2_id, "p4");
|
|
@@ -3469,6 +3506,7 @@ var settings_page_default = _template("r", (input) => {
|
|
|
3469
3506
|
const applySetup = _resume((s) => {
|
|
3470
3507
|
setup = s;
|
|
3471
3508
|
lastSetup = s;
|
|
3509
|
+
setPrimaryHost(s.github);
|
|
3472
3510
|
input.setupChange?.(s);
|
|
3473
3511
|
}, "r1", $scope0_id);
|
|
3474
3512
|
const syncAgents = _resume(async () => {
|
|
@@ -3632,7 +3670,7 @@ var settings_page_default = _template("r", (input) => {
|
|
|
3632
3670
|
const strayAccountsFor = _resume((f) => (usage?.agents || []).filter((u) => !instanceIds.has(u.agent) && familyOf(u.agent, families) === f.id), "r16", $scope0_id);
|
|
3633
3671
|
const otherUsage = (usage?.agents || []).filter((u) => familyOf(u.agent, families) === null);
|
|
3634
3672
|
const titleId = _id();
|
|
3635
|
-
_html(`<div${_attr_class("
|
|
3673
|
+
_html(`<div${_attr_class("_bb")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bc")}><div${_attr_class(content$2)}>`);
|
|
3636
3674
|
_set_serialize_reason({
|
|
3637
3675
|
0: $sg__input_onExit,
|
|
3638
3676
|
1: $sg__input_onExit,
|
|
@@ -3648,18 +3686,18 @@ var settings_page_default = _template("r", (input) => {
|
|
|
3648
3686
|
const $scope4_id = _scope_id();
|
|
3649
3687
|
_if(() => {
|
|
3650
3688
|
if (!setup) {
|
|
3651
|
-
const $
|
|
3689
|
+
const $scope42_id = _scope_id();
|
|
3652
3690
|
_html("Checking this machine…");
|
|
3653
|
-
writeScope($
|
|
3691
|
+
writeScope($scope42_id, {});
|
|
3654
3692
|
return 0;
|
|
3655
3693
|
} else if (setup.ready) {
|
|
3656
|
-
const $
|
|
3657
|
-
_html(`<span${_attr_class("
|
|
3658
|
-
writeScope($
|
|
3694
|
+
const $scope43_id = _scope_id();
|
|
3695
|
+
_html(`<span${_attr_class("_b1")}>Ready</span> — tools, GitHub, and an agent are all in place.`);
|
|
3696
|
+
writeScope($scope43_id, {});
|
|
3659
3697
|
return 1;
|
|
3660
3698
|
} else {
|
|
3661
3699
|
const $scope5_id = _scope_id();
|
|
3662
|
-
_html(`<span${_attr_class("
|
|
3700
|
+
_html(`<span${_attr_class("_b2")}>Not ready</span> — missing <!>${_escape(setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "))}${_el_resume($scope5_id, "b")}.`);
|
|
3663
3701
|
_subscribe($setup_missing__closures, writeScope($scope5_id, {}));
|
|
3664
3702
|
return 2;
|
|
3665
3703
|
}
|
|
@@ -3706,15 +3744,15 @@ var settings_page_default = _template("r", (input) => {
|
|
|
3706
3744
|
return 0;
|
|
3707
3745
|
}
|
|
3708
3746
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
3709
|
-
_html(`<section${_attr_class("
|
|
3747
|
+
_html(`<section${_attr_class("_bl")} aria-labelledby=settings-agents><div${_attr_class("_bm")}><h2 id=settings-agents${_attr_class("_bA")}>Agents</h2><div${_attr_class("_s")}></div><label${_attr_class("_b5")}><span${_attr_class("_M")}>Default</span><span${_attr_class("_g")}>`);
|
|
3710
3748
|
_attr_select_value($scope0_id, "m", input.preferred, _resume(function(v) {
|
|
3711
3749
|
setPreferred(v);
|
|
3712
3750
|
}, "r0", $scope0_id), () => {
|
|
3713
|
-
_html(`<select${_attr_class(["_h", "
|
|
3751
|
+
_html(`<select${_attr_class(["_h", "_b6"])} aria-label="Default agent — starts when a workspace has no session yet" title="Starts when a workspace has no session yet">`);
|
|
3714
3752
|
_for_of(input.agents.filter((a) => a !== "shell"), (id) => {
|
|
3715
|
-
const $
|
|
3716
|
-
_html(`<option${_attr_option_value(id)}>${_escape(agentLabel(id))}${_el_resume($
|
|
3717
|
-
_serialize_if($scope0_reason, 2) && writeScope($
|
|
3753
|
+
const $scope44_id = _scope_id();
|
|
3754
|
+
_html(`<option${_attr_option_value(id)}>${_escape(agentLabel(id))}${_el_resume($scope44_id, "b", $sg__input_agents)}</option>${_el_resume($scope44_id, "a", $sg__input_agents)}`);
|
|
3755
|
+
_serialize_if($scope0_reason, 2) && writeScope($scope44_id, {});
|
|
3718
3756
|
}, (a) => a, $scope0_id, "m", $sg__input_agents, 1, 1, "</select>", 1);
|
|
3719
3757
|
});
|
|
3720
3758
|
_html(`</span></label><button${_attr_class(iconBtn$2)} title="Refresh usage" aria-label="Refresh usage"${_attr("disabled", usageRefreshing)}>`);
|
|
@@ -3730,20 +3768,20 @@ var settings_page_default = _template("r", (input) => {
|
|
|
3730
3768
|
const lone = a.instances.length === 1 && a.instances[0].id === a.id ? a.instances[0] : null;
|
|
3731
3769
|
const rows = lone ? [] : a.instances;
|
|
3732
3770
|
const loneAccounts = lone && lone.enabled ? accountsFor(lone.id) : [];
|
|
3733
|
-
const extraAccounts = strayAccountsFor(a);
|
|
3734
|
-
_html(`<li${_attr_class(["
|
|
3771
|
+
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
3772
|
+
_html(`<li${_attr_class(["_bq", "_b4"])}><div${_attr_class("_b7")}>`);
|
|
3735
3773
|
_set_serialize_reason(12);
|
|
3736
3774
|
const $childScope4 = _peek_scope_id();
|
|
3737
3775
|
icon_agent_default({
|
|
3738
3776
|
agent: a.id,
|
|
3739
3777
|
size: 18
|
|
3740
3778
|
});
|
|
3741
|
-
_html(`<div${_attr_class("
|
|
3779
|
+
_html(`<div${_attr_class("_br")}><span${_attr_class("_bt")}><span${_attr_class("_bs")}>${_escape(a.label)}${_el_resume($scope1_id, "g")}</span>`);
|
|
3742
3780
|
_if(() => {
|
|
3743
3781
|
if (lone && input.preferred === lone.id) {
|
|
3744
|
-
const $
|
|
3782
|
+
const $scope45_id = _scope_id();
|
|
3745
3783
|
_html(`<span${_attr_class(["_C", tone.accent])}>default</span>`);
|
|
3746
|
-
writeScope($
|
|
3784
|
+
writeScope($scope45_id, {});
|
|
3747
3785
|
return 0;
|
|
3748
3786
|
}
|
|
3749
3787
|
}, $scope1_id, "h", 1, 1, 1, 0, 1);
|
|
@@ -3751,36 +3789,36 @@ var settings_page_default = _template("r", (input) => {
|
|
|
3751
3789
|
_if(() => {
|
|
3752
3790
|
if (active.has(a.id)) {
|
|
3753
3791
|
const $scope10_id = _scope_id();
|
|
3754
|
-
_html(`<span${_attr_class("
|
|
3792
|
+
_html(`<span${_attr_class("_b0")}><span${_attr_class("_z")}></span><!>${_escape(active.get(a.id) || "Starting…")}${_el_resume($scope10_id, "c")}</span>`);
|
|
3755
3793
|
_subscribe($active__closures, writeScope($scope10_id, {}));
|
|
3756
3794
|
return 0;
|
|
3757
3795
|
} else if (!a.installed) {
|
|
3758
|
-
const $
|
|
3759
|
-
_html(`<span${_attr_class("
|
|
3760
|
-
writeScope($
|
|
3796
|
+
const $scope46_id = _scope_id();
|
|
3797
|
+
_html(`<span${_attr_class("_bu")}>Not installed</span>`);
|
|
3798
|
+
writeScope($scope46_id, {});
|
|
3761
3799
|
return 1;
|
|
3762
3800
|
}
|
|
3763
3801
|
}, $scope1_id, "i", 1, 1, 1, 0, 1);
|
|
3764
3802
|
_html("</div>");
|
|
3765
3803
|
_if(() => {
|
|
3766
3804
|
if (!a.installed && !active.has(a.id)) {
|
|
3767
|
-
const $
|
|
3768
|
-
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($
|
|
3769
|
-
_script($
|
|
3770
|
-
writeScope($
|
|
3805
|
+
const $scope35_id = _scope_id();
|
|
3806
|
+
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope35_id, "a")}`);
|
|
3807
|
+
_script($scope35_id, "r25");
|
|
3808
|
+
writeScope($scope35_id, {});
|
|
3771
3809
|
return 0;
|
|
3772
3810
|
}
|
|
3773
3811
|
}, $scope1_id, "j", 1, 1, 1, 0, 1);
|
|
3774
3812
|
_if(() => {
|
|
3775
3813
|
if (lone) {
|
|
3776
|
-
const $
|
|
3814
|
+
const $scope39_id = _scope_id();
|
|
3777
3815
|
_html(`<button${_attr_class([
|
|
3778
3816
|
"_C",
|
|
3779
3817
|
"_E",
|
|
3780
3818
|
{ [tone.ok]: lone.enabled }
|
|
3781
|
-
])} role=switch aria-checked=${lone.enabled ? "true" : "false"} title=${lone.enabled ? "\"Shown in session pickers — click to hide\"" : "\"Hidden from session pickers — click to show\""}>${lone.enabled ? "on" : "off"}${_el_resume($
|
|
3782
|
-
_script($
|
|
3783
|
-
writeScope($
|
|
3819
|
+
])} role=switch aria-checked=${lone.enabled ? "true" : "false"} title=${lone.enabled ? "\"Shown in session pickers — click to hide\"" : "\"Hidden from session pickers — click to show\""}>${lone.enabled ? "on" : "off"}${_el_resume($scope39_id, "b")}</button>${_el_resume($scope39_id, "a")}`);
|
|
3820
|
+
_script($scope39_id, "r26");
|
|
3821
|
+
writeScope($scope39_id, {});
|
|
3784
3822
|
return 0;
|
|
3785
3823
|
}
|
|
3786
3824
|
}, $scope1_id, "k", 1, 1, 1, 0, 1);
|
|
@@ -3788,23 +3826,23 @@ var settings_page_default = _template("r", (input) => {
|
|
|
3788
3826
|
_if(() => {
|
|
3789
3827
|
if (rows.length || loneAccounts.length || extraAccounts.length) {
|
|
3790
3828
|
const $scope2_id = _scope_id();
|
|
3791
|
-
_html(`<ul${_attr_class("
|
|
3829
|
+
_html(`<ul${_attr_class("_ca")}>`);
|
|
3792
3830
|
_for_of(rows, (inst) => {
|
|
3793
3831
|
const $scope3_id = _scope_id();
|
|
3794
3832
|
const accounts = inst.enabled ? accountsFor(inst.id) : [];
|
|
3795
|
-
_html(`<li${_attr_class("
|
|
3833
|
+
_html(`<li${_attr_class("_b8")}><div${_attr_class("_b9")}>`);
|
|
3796
3834
|
_set_serialize_reason(12);
|
|
3797
3835
|
const $childScope5 = _peek_scope_id();
|
|
3798
3836
|
icon_agent_default({
|
|
3799
3837
|
agent: inst.id,
|
|
3800
3838
|
size: 15
|
|
3801
3839
|
});
|
|
3802
|
-
_html(`<span${_attr_class(["
|
|
3840
|
+
_html(`<span${_attr_class(["_b_", "_r"])}>${_escape(inst.command)}${_el_resume($scope3_id, "e")}</span>`);
|
|
3803
3841
|
_if(() => {
|
|
3804
3842
|
if (input.preferred === inst.id) {
|
|
3805
|
-
const $
|
|
3843
|
+
const $scope47_id = _scope_id();
|
|
3806
3844
|
_html(`<span${_attr_class(["_C", tone.accent])}>default</span>`);
|
|
3807
|
-
writeScope($
|
|
3845
|
+
writeScope($scope47_id, {});
|
|
3808
3846
|
return 0;
|
|
3809
3847
|
}
|
|
3810
3848
|
}, $scope3_id, "f", 1, 1, 1, 0, 1);
|
|
@@ -3814,14 +3852,14 @@ var settings_page_default = _template("r", (input) => {
|
|
|
3814
3852
|
{ [tone.ok]: inst.enabled }
|
|
3815
3853
|
])} role=switch aria-checked=${inst.enabled ? "true" : "false"} title=${inst.enabled ? "\"Shown in session pickers — click to hide\"" : "\"Hidden from session pickers — click to show\""}>${inst.enabled ? "on" : "off"}${_el_resume($scope3_id, "i")}</button>${_el_resume($scope3_id, "h")}</div>`);
|
|
3816
3854
|
_for_of(accounts, (u) => {
|
|
3817
|
-
const $
|
|
3855
|
+
const $scope48_id = _scope_id();
|
|
3818
3856
|
_set_serialize_reason(6);
|
|
3819
3857
|
const $childScope6 = _peek_scope_id();
|
|
3820
3858
|
usage_meters_default({
|
|
3821
3859
|
agent: u,
|
|
3822
3860
|
hideName: true
|
|
3823
3861
|
});
|
|
3824
|
-
writeScope($
|
|
3862
|
+
writeScope($scope48_id, { a: _existing_scope($childScope6) });
|
|
3825
3863
|
}, (u) => `${u.agent}-${u.account || ""}`, $scope3_id, "j", 1, 1, 1, 0, 1);
|
|
3826
3864
|
_html("</li>");
|
|
3827
3865
|
_script($scope3_id, "r27");
|
|
@@ -3832,7 +3870,7 @@ var settings_page_default = _template("r", (input) => {
|
|
|
3832
3870
|
})));
|
|
3833
3871
|
}, "id", $scope2_id, "b", 1, 1, 1, 0, 1);
|
|
3834
3872
|
_for_of(loneAccounts, (u) => {
|
|
3835
|
-
const $
|
|
3873
|
+
const $scope49_id = _scope_id();
|
|
3836
3874
|
_html("<li>");
|
|
3837
3875
|
_set_serialize_reason(6);
|
|
3838
3876
|
const $childScope7 = _peek_scope_id();
|
|
@@ -3841,16 +3879,16 @@ var settings_page_default = _template("r", (input) => {
|
|
|
3841
3879
|
hideName: true
|
|
3842
3880
|
});
|
|
3843
3881
|
_html("</li>");
|
|
3844
|
-
writeScope($
|
|
3882
|
+
writeScope($scope49_id, { a: _existing_scope($childScope7) });
|
|
3845
3883
|
}, (u) => `${u.agent}-${u.account || ""}`, $scope2_id, "c", 1, 1, 1, 0, 1);
|
|
3846
3884
|
_for_of(extraAccounts, (u) => {
|
|
3847
|
-
const $
|
|
3885
|
+
const $scope50_id = _scope_id();
|
|
3848
3886
|
_html("<li>");
|
|
3849
3887
|
_set_serialize_reason(6);
|
|
3850
3888
|
const $childScope8 = _peek_scope_id();
|
|
3851
3889
|
usage_meters_default({ agent: u });
|
|
3852
3890
|
_html("</li>");
|
|
3853
|
-
writeScope($
|
|
3891
|
+
writeScope($scope50_id, { a: _existing_scope($childScope8) });
|
|
3854
3892
|
}, (u) => `${u.agent}-${u.account || ""}`, $scope2_id, "d", 1, 1, 1, 0, 1);
|
|
3855
3893
|
_html("</ul>");
|
|
3856
3894
|
writeScope($scope2_id, {});
|
|
@@ -3861,7 +3899,7 @@ var settings_page_default = _template("r", (input) => {
|
|
|
3861
3899
|
writeScope($scope1_id, {
|
|
3862
3900
|
n: a,
|
|
3863
3901
|
s: a?.id,
|
|
3864
|
-
|
|
3902
|
+
u: a?.installed,
|
|
3865
3903
|
x: lone,
|
|
3866
3904
|
a1: lone?.enabled,
|
|
3867
3905
|
a2: lone?.id,
|
|
@@ -3873,38 +3911,38 @@ var settings_page_default = _template("r", (input) => {
|
|
|
3873
3911
|
});
|
|
3874
3912
|
}, "id", $scope0_id, "q", 1, 1, 1, 0, 1);
|
|
3875
3913
|
_for_of(otherUsage, (u) => {
|
|
3876
|
-
const $
|
|
3877
|
-
_html(`<li${_attr_class(["
|
|
3914
|
+
const $scope51_id = _scope_id();
|
|
3915
|
+
_html(`<li${_attr_class(["_bq", "_b4"])}>`);
|
|
3878
3916
|
_set_serialize_reason(6);
|
|
3879
3917
|
const $childScope9 = _peek_scope_id();
|
|
3880
3918
|
usage_meters_default({ agent: u });
|
|
3881
3919
|
_html("</li>");
|
|
3882
|
-
writeScope($
|
|
3920
|
+
writeScope($scope51_id, { b: _existing_scope($childScope9) });
|
|
3883
3921
|
}, (u) => `${u.agent}-${u.account || ""}`, $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
3884
3922
|
_html("</ul>");
|
|
3885
3923
|
_if(() => {
|
|
3886
3924
|
if (!usage && families.length) {
|
|
3887
|
-
const $
|
|
3888
|
-
_html(`<p${_attr_class("
|
|
3889
|
-
writeScope($
|
|
3925
|
+
const $scope52_id = _scope_id();
|
|
3926
|
+
_html(`<p${_attr_class("_bw")}><span${_attr_class("_z")}></span> Loading usage…</p>`);
|
|
3927
|
+
writeScope($scope52_id, {});
|
|
3890
3928
|
return 0;
|
|
3891
3929
|
} else if (usage?.error) {
|
|
3892
3930
|
const $scope6_id = _scope_id();
|
|
3893
|
-
_html(`<p${_attr_class("
|
|
3931
|
+
_html(`<p${_attr_class("_bw")}>${_escape(usage.error)}${_el_resume($scope6_id, "b")}</p>`);
|
|
3894
3932
|
writeScope($scope6_id, {});
|
|
3895
3933
|
return 1;
|
|
3896
3934
|
}
|
|
3897
3935
|
}, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
3898
|
-
_html(`</section><section${_attr_class("
|
|
3936
|
+
_html(`</section><section${_attr_class("_bl")} aria-labelledby=settings-github><div${_attr_class("_bm")}><h2 id=settings-github${_attr_class("_bA")}>GitHub</h2></div><ul${_attr_class("_bo")}>`);
|
|
3899
3937
|
_for_of(setup?.github || [], (h) => {
|
|
3900
3938
|
const $scope11_id = _scope_id();
|
|
3901
3939
|
const $for_content3__h_host__closures = /* @__PURE__ */ new Set();
|
|
3902
|
-
_html(`<li${_attr_class("
|
|
3940
|
+
_html(`<li${_attr_class("_bq")}><div${_attr_class("_br")}><span${_attr_class("_bt")}><span${_attr_class(["_bs", "_r"])}>${_escape(h.host)}${_el_resume($scope11_id, "e")}</span>`);
|
|
3903
3941
|
_if(() => {
|
|
3904
3942
|
if (h.isEnterprise) {
|
|
3905
|
-
const $
|
|
3943
|
+
const $scope55_id = _scope_id();
|
|
3906
3944
|
_html(`<span${_attr_class("_C")}>Enterprise</span>`);
|
|
3907
|
-
writeScope($
|
|
3945
|
+
writeScope($scope55_id, {});
|
|
3908
3946
|
return 0;
|
|
3909
3947
|
}
|
|
3910
3948
|
}, $scope11_id, "f", 1, 1, 1, 0, 1);
|
|
@@ -3912,23 +3950,23 @@ var settings_page_default = _template("r", (input) => {
|
|
|
3912
3950
|
_if(() => {
|
|
3913
3951
|
if (active.has(h.host) && authCodes.has(h.host)) {
|
|
3914
3952
|
const $scope22_id = _scope_id();
|
|
3915
|
-
_html(`<span${_attr_class("
|
|
3953
|
+
_html(`<span${_attr_class("_b0")}><span${_attr_class("_z")}></span> Enter code <strong${_attr_class("_ci")}>${_escape(authCodes.get(h.host))}${_el_resume($scope22_id, "d")}</strong> at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_cj")}>${_escape(h.host)}${_el_resume($scope22_id, "f")}/login/device</a>${_el_resume($scope22_id, "e")}</span>`);
|
|
3916
3954
|
_subscribe($authCodes__closures, writeScope($scope22_id, {}));
|
|
3917
3955
|
return 0;
|
|
3918
3956
|
} else if (active.has(h.host)) {
|
|
3919
3957
|
const $scope12_id = _scope_id();
|
|
3920
|
-
_html(`<span${_attr_class("
|
|
3958
|
+
_html(`<span${_attr_class("_b0")}><span${_attr_class("_z")}></span><!>${_escape(active.get(h.host) || "Starting…")}${_el_resume($scope12_id, "c")}</span>`);
|
|
3921
3959
|
_subscribe($active__closures, writeScope($scope12_id, { Ccg: 1 }));
|
|
3922
3960
|
return 1;
|
|
3923
3961
|
} else if (h.authed) {
|
|
3924
|
-
const $scope52_id = _scope_id();
|
|
3925
|
-
_html(`<span${_attr_class("_bl")}>Signed in<!>${h.user ? ` as ${_escape(`${_to_text(h.user)}`)}` : ""}${_el_resume($scope52_id, "b")}</span>`);
|
|
3926
|
-
writeScope($scope52_id, {});
|
|
3927
|
-
return 2;
|
|
3928
|
-
} else {
|
|
3929
3962
|
const $scope53_id = _scope_id();
|
|
3930
|
-
_html(`<span${_attr_class("
|
|
3963
|
+
_html(`<span${_attr_class("_bu")}>Signed in<!>${h.user ? ` as ${_escape(`${_to_text(h.user)}`)}` : ""}${_el_resume($scope53_id, "b")}</span>`);
|
|
3931
3964
|
writeScope($scope53_id, {});
|
|
3965
|
+
return 2;
|
|
3966
|
+
} else {
|
|
3967
|
+
const $scope54_id = _scope_id();
|
|
3968
|
+
_html(`<span${_attr_class("_bu")}>${_escape(h.error || "Not signed in")}${_el_resume($scope54_id, "b")}</span>`);
|
|
3969
|
+
writeScope($scope54_id, {});
|
|
3932
3970
|
return 3;
|
|
3933
3971
|
}
|
|
3934
3972
|
}, $scope11_id, "g", 1, 1, 1, 0, 1);
|
|
@@ -3938,23 +3976,35 @@ var settings_page_default = _template("r", (input) => {
|
|
|
3938
3976
|
const $scope23_id = _scope_id();
|
|
3939
3977
|
_if(() => {
|
|
3940
3978
|
if (!h.authed) {
|
|
3941
|
-
const $
|
|
3942
|
-
_html(`<button${_attr_class(btnSm)}>Sign in</button>${_el_resume($
|
|
3943
|
-
_script($
|
|
3944
|
-
writeScope($
|
|
3979
|
+
const $scope36_id = _scope_id();
|
|
3980
|
+
_html(`<button${_attr_class(btnSm)}>Sign in</button>${_el_resume($scope36_id, "a")}`);
|
|
3981
|
+
_script($scope36_id, "r28");
|
|
3982
|
+
writeScope($scope36_id, {});
|
|
3945
3983
|
return 0;
|
|
3984
|
+
} else {
|
|
3985
|
+
const $scope24_id = _scope_id();
|
|
3986
|
+
_html(`<button${_attr_class([btnSm, {
|
|
3987
|
+
["_l"]: confirmingRemove === `out:${h.host}`,
|
|
3988
|
+
["_k"]: confirmingRemove === `out:${h.host}`
|
|
3989
|
+
}])}${confirmingRemove === `out:${h.host}` ? _attr("title", `Really sign out of ${h.host}?`) : _attr("title", `Sign out of ${h.host}`)}>${confirmingRemove === `out:${h.host}` ? "Sign out?" : "Sign out"}${_el_resume($scope24_id, "b")}</button>${_el_resume($scope24_id, "a")}`);
|
|
3990
|
+
_script($scope24_id, "r29");
|
|
3991
|
+
_subscribe($for_content3__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope24_id, {})));
|
|
3992
|
+
return 1;
|
|
3946
3993
|
}
|
|
3947
3994
|
}, $scope23_id, "a", 1, 1, 1, 0, 1);
|
|
3948
3995
|
_if(() => {
|
|
3949
3996
|
if (h.isEnterprise) {
|
|
3950
|
-
const $
|
|
3997
|
+
const $scope25_id = _scope_id();
|
|
3951
3998
|
_html(`<button${_attr_class([
|
|
3952
|
-
"
|
|
3999
|
+
"_bv",
|
|
3953
4000
|
"_T",
|
|
3954
4001
|
{ ["_k"]: confirmingRemove === h.host }
|
|
3955
|
-
])}${confirmingRemove === h.host ? _attr("title", `Forget ${h.host}? (gh stays signed in)`) : _attr("title", `Forget ${h.host}`)}>${confirmingRemove === h.host ? "Forget?" : "×"}${_el_resume($
|
|
3956
|
-
_script($
|
|
3957
|
-
_subscribe($for_content3__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($
|
|
4002
|
+
])}${confirmingRemove === h.host ? _attr("title", `Forget ${h.host}? (gh stays signed in)`) : _attr("title", `Forget ${h.host}`)}>${confirmingRemove === h.host ? "Forget?" : "×"}${_el_resume($scope25_id, "b")}</button>${_el_resume($scope25_id, "a")}`);
|
|
4003
|
+
_script($scope25_id, "r30");
|
|
4004
|
+
_subscribe($for_content3__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope25_id, {
|
|
4005
|
+
Ccj: 1,
|
|
4006
|
+
Cr: 1
|
|
4007
|
+
})));
|
|
3958
4008
|
return 0;
|
|
3959
4009
|
}
|
|
3960
4010
|
}, $scope23_id, "b", 1, 1, 1, 0, 1);
|
|
@@ -3974,35 +4024,35 @@ var settings_page_default = _template("r", (input) => {
|
|
|
3974
4024
|
}, "host", $scope0_id, "w", 1, 1, 1, "</ul>", 1);
|
|
3975
4025
|
_if(() => {
|
|
3976
4026
|
if (setup && !setup.github.length) {
|
|
3977
|
-
const $
|
|
3978
|
-
_html(`<p${_attr_class("
|
|
3979
|
-
writeScope($
|
|
4027
|
+
const $scope56_id = _scope_id();
|
|
4028
|
+
_html(`<p${_attr_class("_bw")}>Install the GitHub CLI below to sign in.</p>`);
|
|
4029
|
+
writeScope($scope56_id, {});
|
|
3980
4030
|
return 0;
|
|
3981
4031
|
}
|
|
3982
4032
|
}, $scope0_id, "x", 1, 1, 1, 0, 1);
|
|
3983
4033
|
_if(() => {
|
|
3984
4034
|
if (setup) {
|
|
3985
|
-
const $
|
|
3986
|
-
_html(`<form${_attr_class("
|
|
3987
|
-
_script($
|
|
3988
|
-
writeScope($
|
|
4035
|
+
const $scope33_id = _scope_id();
|
|
4036
|
+
_html(`<form${_attr_class("_ch")}><input${_attr_input_value($scope33_id, "b", hostInput)}${_attr_class(inputLg)} type=text placeholder="Add a GitHub Enterprise host, e.g. github.example.com" aria-label="GitHub Enterprise host" autocomplete=off spellcheck=false>${_el_resume($scope33_id, "b")}<button${_attr_class(btnSm)} type=submit${_attr("disabled", !hostInput.trim() || hostBusy)}>${hostBusy ? "Adding…" : "Add host"}${_el_resume($scope33_id, "d")}</button>${_el_resume($scope33_id, "c")}</form>${_el_resume($scope33_id, "a")}`);
|
|
4037
|
+
_script($scope33_id, "r31");
|
|
4038
|
+
writeScope($scope33_id, {});
|
|
3989
4039
|
return 0;
|
|
3990
4040
|
}
|
|
3991
4041
|
}, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
3992
|
-
_html(`</section><section${_attr_class("
|
|
4042
|
+
_html(`</section><section${_attr_class("_bl")} aria-labelledby=settings-machine><div${_attr_class("_bm")}><h2 id=settings-machine${_attr_class("_bA")}>Machine</h2>`);
|
|
3993
4043
|
_if(() => {
|
|
3994
4044
|
if (missingCount) {
|
|
3995
|
-
const $
|
|
3996
|
-
_html(`<span${_attr_class(sectionCount$1)}>${_escape(missingCount)}${_el_resume($
|
|
3997
|
-
writeScope($
|
|
4045
|
+
const $scope40_id = _scope_id();
|
|
4046
|
+
_html(`<span${_attr_class(sectionCount$1)}>${_escape(missingCount)}${_el_resume($scope40_id, "b")} missing</span>`);
|
|
4047
|
+
writeScope($scope40_id, {});
|
|
3998
4048
|
return 0;
|
|
3999
4049
|
}
|
|
4000
4050
|
}, $scope0_id, "a2", 1, 1, 1, 0, 1);
|
|
4001
4051
|
_if(() => {
|
|
4002
4052
|
if (outdatedIds.length) {
|
|
4003
|
-
const $
|
|
4004
|
-
_html(`<span${_attr_class(sectionCount$1)}>${_escape(outdatedIds.length)}${_el_resume($
|
|
4005
|
-
writeScope($
|
|
4053
|
+
const $scope41_id = _scope_id();
|
|
4054
|
+
_html(`<span${_attr_class(sectionCount$1)}>${_escape(outdatedIds.length)}${_el_resume($scope41_id, "b")} outdated</span>`);
|
|
4055
|
+
writeScope($scope41_id, {});
|
|
4006
4056
|
return 0;
|
|
4007
4057
|
}
|
|
4008
4058
|
}, $scope0_id, "a3", 1, 1, 1, 0, 1);
|
|
@@ -4011,7 +4061,7 @@ var settings_page_default = _template("r", (input) => {
|
|
|
4011
4061
|
if (outdatedIds.length > 1) {
|
|
4012
4062
|
const $scope13_id = _scope_id();
|
|
4013
4063
|
_html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Update all</button>${_el_resume($scope13_id, "a")}`);
|
|
4014
|
-
_script($scope13_id, "
|
|
4064
|
+
_script($scope13_id, "r32");
|
|
4015
4065
|
writeScope($scope13_id, {});
|
|
4016
4066
|
return 0;
|
|
4017
4067
|
}
|
|
@@ -4020,7 +4070,7 @@ var settings_page_default = _template("r", (input) => {
|
|
|
4020
4070
|
if (missingInstallable.length > 1) {
|
|
4021
4071
|
const $scope14_id = _scope_id();
|
|
4022
4072
|
_html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Install missing</button>${_el_resume($scope14_id, "a")}`);
|
|
4023
|
-
_script($scope14_id, "
|
|
4073
|
+
_script($scope14_id, "r33");
|
|
4024
4074
|
writeScope($scope14_id, {});
|
|
4025
4075
|
return 0;
|
|
4026
4076
|
}
|
|
@@ -4029,8 +4079,8 @@ var settings_page_default = _template("r", (input) => {
|
|
|
4029
4079
|
_if(() => {
|
|
4030
4080
|
if (setup && !setup.mise.installed) {
|
|
4031
4081
|
const $scope15_id = _scope_id();
|
|
4032
|
-
_html(`<p${_attr_class("
|
|
4033
|
-
_script($scope15_id, "
|
|
4082
|
+
_html(`<p${_attr_class("_bw")}>mise isn't installed — it provides every tool below. <button${_attr_class(btnSm)}${_attr("disabled", active.has("mise"))}>${active.has("mise") ? "Installing…" : "Install mise"}${_el_resume($scope15_id, "c")}</button>${_el_resume($scope15_id, "b")}</p>`);
|
|
4083
|
+
_script($scope15_id, "r34");
|
|
4034
4084
|
writeScope($scope15_id, {});
|
|
4035
4085
|
return 0;
|
|
4036
4086
|
}
|
|
@@ -4043,84 +4093,84 @@ var settings_page_default = _template("r", (input) => {
|
|
|
4043
4093
|
const $for_content4__t_path__closures = /* @__PURE__ */ new Set();
|
|
4044
4094
|
const $for_content4__t_latest__closures = /* @__PURE__ */ new Set();
|
|
4045
4095
|
const $for_content4__t_id__closures = /* @__PURE__ */ new Set();
|
|
4046
|
-
_html(`<li${_attr_class([row, { ["
|
|
4096
|
+
_html(`<li${_attr_class([row, { ["_cc"]: !t.installed }])}><span${_attr_class(["_cd", "_r"])}>${_escape(t.label)}${_el_resume($scope16_id, "c")}</span>`);
|
|
4047
4097
|
_if(() => {
|
|
4048
4098
|
if (active.has(t.id)) {
|
|
4049
4099
|
const $scope17_id = _scope_id();
|
|
4050
|
-
_html(`<span${_attr_class("
|
|
4100
|
+
_html(`<span${_attr_class("_b0")}><span${_attr_class("_z")}></span><!>${_escape(active.get(t.id) || "Starting…")}${_el_resume($scope17_id, "c")}</span>`);
|
|
4051
4101
|
_subscribe($active__closures, writeScope($scope17_id, { Ccg: 2 }));
|
|
4052
4102
|
return 0;
|
|
4053
4103
|
} else if (t.installed) {
|
|
4054
|
-
const $
|
|
4104
|
+
const $scope29_id = _scope_id();
|
|
4055
4105
|
_if(() => {
|
|
4056
4106
|
if (t.version) {
|
|
4057
|
-
const $
|
|
4058
|
-
_html(`<button${_attr_class(["
|
|
4059
|
-
_script($
|
|
4060
|
-
_subscribe($for_content4__t_path__closures, _subscribe($for_content4__t_version__closures, _subscribe($for_content4__t_label__closures, writeScope($
|
|
4107
|
+
const $scope30_id = _scope_id();
|
|
4108
|
+
_html(`<button${_attr_class(["_ce", "_r"])}${_attr("title", `${t.path || t.label} — pin a version`)}>v<!>${_escape(t.version)}${_el_resume($scope30_id, "b")}</button>${_el_resume($scope30_id, "a")}`);
|
|
4109
|
+
_script($scope30_id, "r35");
|
|
4110
|
+
_subscribe($for_content4__t_path__closures, _subscribe($for_content4__t_version__closures, _subscribe($for_content4__t_label__closures, writeScope($scope30_id, { Cu: 1 }))));
|
|
4061
4111
|
return 0;
|
|
4062
4112
|
} else {
|
|
4063
|
-
const $
|
|
4064
|
-
_html(`<span${_attr_class([metaTrunc, "_r"])}${_attr("title", t.path)}>${_escape(t.path)}${_el_resume($
|
|
4065
|
-
_subscribe($for_content4__t_path__closures, writeScope($
|
|
4113
|
+
const $scope57_id = _scope_id();
|
|
4114
|
+
_html(`<span${_attr_class([metaTrunc, "_r"])}${_attr("title", t.path)}>${_escape(t.path)}${_el_resume($scope57_id, "b")}</span>${_el_resume($scope57_id, "a")}`);
|
|
4115
|
+
_subscribe($for_content4__t_path__closures, writeScope($scope57_id, { Cx: 1 }));
|
|
4066
4116
|
return 1;
|
|
4067
4117
|
}
|
|
4068
|
-
}, $
|
|
4118
|
+
}, $scope29_id, "a", 1, 1, 1, 0, 1);
|
|
4069
4119
|
_if(() => {
|
|
4070
4120
|
if (outdated(t)) {
|
|
4071
|
-
const $
|
|
4072
|
-
_html(`<button${_attr_class([btnSm, "
|
|
4073
|
-
_script($
|
|
4074
|
-
_subscribe($for_content4__t_latest__closures, writeScope($
|
|
4121
|
+
const $scope37_id = _scope_id();
|
|
4122
|
+
_html(`<button${_attr_class([btnSm, "_cf"])}${_attr("title", `Update to v${t.latest}`)}>↑ <!>${_escape(t.latest)}${_el_resume($scope37_id, "b")}</button>${_el_resume($scope37_id, "a")}`);
|
|
4123
|
+
_script($scope37_id, "r36");
|
|
4124
|
+
_subscribe($for_content4__t_latest__closures, writeScope($scope37_id, {}));
|
|
4075
4125
|
return 0;
|
|
4076
4126
|
}
|
|
4077
|
-
}, $
|
|
4078
|
-
writeScope($
|
|
4127
|
+
}, $scope29_id, "b", 1, 1, 1, 0, 1);
|
|
4128
|
+
writeScope($scope29_id, {});
|
|
4079
4129
|
return 1;
|
|
4080
4130
|
} else if (t.installable) {
|
|
4081
|
-
const $
|
|
4131
|
+
const $scope58_id = _scope_id();
|
|
4082
4132
|
_html(`<span${_attr_class(metaTrunc)}>not installed</span>`);
|
|
4083
|
-
writeScope($
|
|
4133
|
+
writeScope($scope58_id, {});
|
|
4084
4134
|
return 2;
|
|
4085
4135
|
} else {
|
|
4086
|
-
const $
|
|
4136
|
+
const $scope59_id = _scope_id();
|
|
4087
4137
|
_html(`<span${_attr_class(metaTrunc)} title="Add it with your package manager">system package</span>`);
|
|
4088
|
-
writeScope($
|
|
4138
|
+
writeScope($scope59_id, {});
|
|
4089
4139
|
return 3;
|
|
4090
4140
|
}
|
|
4091
4141
|
}, $scope16_id, "d");
|
|
4092
4142
|
_html(`<span${_attr_class("_s")}></span>`);
|
|
4093
4143
|
_if(() => {
|
|
4094
4144
|
if (!active.has(t.id)) {
|
|
4095
|
-
const $
|
|
4145
|
+
const $scope26_id = _scope_id();
|
|
4096
4146
|
_if(() => {
|
|
4097
4147
|
if (t.required) {
|
|
4098
|
-
const $
|
|
4148
|
+
const $scope60_id = _scope_id();
|
|
4099
4149
|
_html(`<span${_attr_class("_C")}>required</span>`);
|
|
4100
|
-
writeScope($
|
|
4150
|
+
writeScope($scope60_id, {});
|
|
4101
4151
|
return 0;
|
|
4102
4152
|
}
|
|
4103
|
-
}, $
|
|
4153
|
+
}, $scope26_id, "a", 1, 1, 1, 0, 1);
|
|
4104
4154
|
_if(() => {
|
|
4105
4155
|
if (!t.installed && t.installable) {
|
|
4106
|
-
const $
|
|
4107
|
-
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($
|
|
4108
|
-
_script($
|
|
4109
|
-
writeScope($
|
|
4156
|
+
const $scope38_id = _scope_id();
|
|
4157
|
+
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope38_id, "a")}`);
|
|
4158
|
+
_script($scope38_id, "r37");
|
|
4159
|
+
writeScope($scope38_id, {});
|
|
4110
4160
|
return 0;
|
|
4111
4161
|
} else if (t.installed && t.version && !t.required) {
|
|
4112
|
-
const $
|
|
4162
|
+
const $scope27_id = _scope_id();
|
|
4113
4163
|
_html(`<button${_attr_class([
|
|
4114
4164
|
iconBtnXs,
|
|
4115
4165
|
"_T",
|
|
4116
4166
|
{ ["_k"]: confirmingRemove === t.id }
|
|
4117
|
-
])}${confirmingRemove === t.id ? _attr("title", `Really remove ${t.label}?`) : _attr("title", `Remove ${t.label}`)}>${confirmingRemove === t.id ? "Remove?" : "×"}${_el_resume($
|
|
4118
|
-
_script($
|
|
4119
|
-
_subscribe($for_content4__t_id__closures, _subscribe($for_content4__t_label__closures, _subscribe($confirmingRemove__closures, writeScope($
|
|
4167
|
+
])}${confirmingRemove === t.id ? _attr("title", `Really remove ${t.label}?`) : _attr("title", `Remove ${t.label}`)}>${confirmingRemove === t.id ? "Remove?" : "×"}${_el_resume($scope27_id, "b")}</button>${_el_resume($scope27_id, "a")}`);
|
|
4168
|
+
_script($scope27_id, "r38");
|
|
4169
|
+
_subscribe($for_content4__t_id__closures, _subscribe($for_content4__t_label__closures, _subscribe($confirmingRemove__closures, writeScope($scope27_id, { Ccj: 2 }))));
|
|
4120
4170
|
return 1;
|
|
4121
4171
|
}
|
|
4122
|
-
}, $
|
|
4123
|
-
writeScope($
|
|
4172
|
+
}, $scope26_id, "b", 1, 1, 1, 0, 1);
|
|
4173
|
+
writeScope($scope26_id, {});
|
|
4124
4174
|
return 0;
|
|
4125
4175
|
}
|
|
4126
4176
|
}, $scope16_id, "f");
|
|
@@ -4149,42 +4199,42 @@ var settings_page_default = _template("r", (input) => {
|
|
|
4149
4199
|
_if(() => {
|
|
4150
4200
|
if (hits && hits.length) {
|
|
4151
4201
|
const $scope19_id = _scope_id();
|
|
4152
|
-
_html(`<ul${_attr_class([toolGrid, "
|
|
4202
|
+
_html(`<ul${_attr_class([toolGrid, "_cg"])}>`);
|
|
4153
4203
|
_for_of(hits, (h) => {
|
|
4154
4204
|
const $scope20_id = _scope_id();
|
|
4155
|
-
_html(`<li${_attr_class(row)}><div${_attr_class("
|
|
4205
|
+
_html(`<li${_attr_class(row)}><div${_attr_class("_br")}><span${_attr_class(["_cd", "_r"])}>${_escape(h.name)}${_el_resume($scope20_id, "d")}</span>`);
|
|
4156
4206
|
_if(() => {
|
|
4157
4207
|
if (active.has(h.name)) {
|
|
4158
4208
|
const $scope21_id = _scope_id();
|
|
4159
|
-
_html(`<span${_attr_class("
|
|
4209
|
+
_html(`<span${_attr_class("_b0")}><span${_attr_class("_z")}></span><!>${_escape(active.get(h.name) || "Starting…")}${_el_resume($scope21_id, "c")}</span>`);
|
|
4160
4210
|
_subscribe($active__closures, writeScope($scope21_id, { Ccg: 4 }));
|
|
4161
4211
|
return 0;
|
|
4162
4212
|
} else if (h.description) {
|
|
4163
|
-
const $
|
|
4164
|
-
_html(`<span${_attr_class("
|
|
4165
|
-
writeScope($
|
|
4213
|
+
const $scope61_id = _scope_id();
|
|
4214
|
+
_html(`<span${_attr_class("_bu")}${_attr("title", h.description)}>${_escape(h.description)}${_el_resume($scope61_id, "b")}</span>${_el_resume($scope61_id, "a")}`);
|
|
4215
|
+
writeScope($scope61_id, {});
|
|
4166
4216
|
return 1;
|
|
4167
4217
|
}
|
|
4168
4218
|
}, $scope20_id, "e", 1, 1, 1, 0, 1);
|
|
4169
4219
|
_html("</div>");
|
|
4170
4220
|
_if(() => {
|
|
4171
4221
|
if (!active.has(h.name)) {
|
|
4172
|
-
const $
|
|
4222
|
+
const $scope31_id = _scope_id();
|
|
4173
4223
|
_if(() => {
|
|
4174
4224
|
if (h.installed) {
|
|
4175
|
-
const $
|
|
4225
|
+
const $scope62_id = _scope_id();
|
|
4176
4226
|
_html(`<span${_attr_class("_C")}>installed</span>`);
|
|
4177
|
-
writeScope($
|
|
4227
|
+
writeScope($scope62_id, {});
|
|
4178
4228
|
return 0;
|
|
4179
4229
|
} else {
|
|
4180
|
-
const $
|
|
4181
|
-
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($
|
|
4182
|
-
_script($
|
|
4183
|
-
writeScope($
|
|
4230
|
+
const $scope32_id = _scope_id();
|
|
4231
|
+
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope32_id, "a")}<button${_attr_class(btnSm)} title="Install a specific version">@…</button>${_el_resume($scope32_id, "b")}`);
|
|
4232
|
+
_script($scope32_id, "r39");
|
|
4233
|
+
writeScope($scope32_id, {});
|
|
4184
4234
|
return 1;
|
|
4185
4235
|
}
|
|
4186
|
-
}, $
|
|
4187
|
-
writeScope($
|
|
4236
|
+
}, $scope31_id, "a");
|
|
4237
|
+
writeScope($scope31_id, {});
|
|
4188
4238
|
return 0;
|
|
4189
4239
|
}
|
|
4190
4240
|
}, $scope20_id, "f");
|
|
@@ -4199,14 +4249,14 @@ var settings_page_default = _template("r", (input) => {
|
|
|
4199
4249
|
_subscribe($hits__closures, writeScope($scope19_id, {}));
|
|
4200
4250
|
return 0;
|
|
4201
4251
|
} else if (hits && !searching) {
|
|
4202
|
-
const $
|
|
4203
|
-
_html(`<p${_attr_class("
|
|
4204
|
-
_subscribe($query__closures, writeScope($
|
|
4252
|
+
const $scope34_id = _scope_id();
|
|
4253
|
+
_html(`<p${_attr_class("_bw")}>No tools match “<!>${_escape(query)}${_el_resume($scope34_id, "b")}”.</p>`);
|
|
4254
|
+
_subscribe($query__closures, writeScope($scope34_id, {}));
|
|
4205
4255
|
return 1;
|
|
4206
4256
|
}
|
|
4207
4257
|
}, $scope18_id, "b", 1, 1, 1, 0, 1);
|
|
4208
4258
|
_html("</div>");
|
|
4209
|
-
_script($scope18_id, "
|
|
4259
|
+
_script($scope18_id, "r40");
|
|
4210
4260
|
writeScope($scope18_id, {});
|
|
4211
4261
|
return 0;
|
|
4212
4262
|
}
|
|
@@ -4214,7 +4264,7 @@ var settings_page_default = _template("r", (input) => {
|
|
|
4214
4264
|
_html("</section></div></div></div>");
|
|
4215
4265
|
_if(() => {
|
|
4216
4266
|
if (versionPick) {
|
|
4217
|
-
const $
|
|
4267
|
+
const $scope28_id = _scope_id();
|
|
4218
4268
|
_set_serialize_reason(14);
|
|
4219
4269
|
const $childScope10 = _peek_scope_id();
|
|
4220
4270
|
prompt_dialog_default({
|
|
@@ -4225,19 +4275,19 @@ var settings_page_default = _template("r", (input) => {
|
|
|
4225
4275
|
open: versionPick != null,
|
|
4226
4276
|
openChange: _resume(function(o) {
|
|
4227
4277
|
if (!o) versionPick = null;
|
|
4228
|
-
}, "r19", $
|
|
4278
|
+
}, "r19", $scope28_id),
|
|
4229
4279
|
onSubmit: _resume(function(v) {
|
|
4230
4280
|
const pick = versionPick;
|
|
4231
4281
|
versionPick = null;
|
|
4232
4282
|
run(pick.id, "install", v);
|
|
4233
|
-
}, "r20", $
|
|
4283
|
+
}, "r20", $scope28_id)
|
|
4234
4284
|
});
|
|
4235
|
-
writeScope($
|
|
4285
|
+
writeScope($scope28_id, { a: _existing_scope($childScope10) });
|
|
4236
4286
|
return 0;
|
|
4237
4287
|
}
|
|
4238
4288
|
}, $scope0_id, "aa", 1, 1, 1, 0, 1);
|
|
4239
|
-
_script($scope0_id, "r40");
|
|
4240
4289
|
_script($scope0_id, "r41");
|
|
4290
|
+
_script($scope0_id, "r42");
|
|
4241
4291
|
writeScope($scope0_id, {
|
|
4242
4292
|
ae: input.setupChange,
|
|
4243
4293
|
af: input.agentsChange,
|
|
@@ -4306,12 +4356,12 @@ var settings_page_default = _template("r", (input) => {
|
|
|
4306
4356
|
});
|
|
4307
4357
|
//#endregion
|
|
4308
4358
|
//#region src/tags/new-workspace.css.ts
|
|
4309
|
-
var content$1 = "_bB
|
|
4310
|
-
var section$1 = "_bF
|
|
4359
|
+
var content$1 = "_bB _bd";
|
|
4360
|
+
var section$1 = "_bF _bl";
|
|
4311
4361
|
var curBase = "_bJ _N _M";
|
|
4312
|
-
var archived = "_bN
|
|
4362
|
+
var archived = "_bN _bl";
|
|
4313
4363
|
var archivedHint = "_bO _M";
|
|
4314
|
-
var archivedCard = "_bP
|
|
4364
|
+
var archivedCard = "_bP _bq";
|
|
4315
4365
|
var resultBranch = "_cr _Q _d";
|
|
4316
4366
|
var branchInput = "_cw _P _O";
|
|
4317
4367
|
//#endregion
|
|
@@ -4387,7 +4437,7 @@ var repo_picker_default = _template("q", (input) => {
|
|
|
4387
4437
|
_if(() => {
|
|
4388
4438
|
if (filter && !catalog) {
|
|
4389
4439
|
const $scope8_id = _scope_id();
|
|
4390
|
-
_html(`<p${_attr_class("
|
|
4440
|
+
_html(`<p${_attr_class("_bw")}>Loading repos…</p>`);
|
|
4391
4441
|
writeScope($scope8_id, {});
|
|
4392
4442
|
return 0;
|
|
4393
4443
|
}
|
|
@@ -4403,7 +4453,7 @@ var repo_picker_default = _template("q", (input) => {
|
|
|
4403
4453
|
size: 12,
|
|
4404
4454
|
class: "_cu"
|
|
4405
4455
|
});
|
|
4406
|
-
_html(`<span${_attr_class("_cv")}>${_escape(repo.nameWithOwner)}${_el_resume($scope3_id, "e")}</span></button>${_el_resume($scope3_id, "b")}<button${_attr_class([resultBranch, { ["_cq"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>⎇</button>${_el_resume($scope3_id, "f")}</div>${_el_resume($scope3_id, "a")}`);
|
|
4456
|
+
_html(`<span${_attr_class("_cv")}>${_escape(repoLabel(repo.nameWithOwner))}${_el_resume($scope3_id, "e")}</span></button>${_el_resume($scope3_id, "b")}<button${_attr_class([resultBranch, { ["_cq"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>⎇</button>${_el_resume($scope3_id, "f")}</div>${_el_resume($scope3_id, "a")}`);
|
|
4407
4457
|
_if(() => {
|
|
4408
4458
|
if (branchesFor === repo.nameWithOwner) {
|
|
4409
4459
|
const $scope4_id = _scope_id();
|
|
@@ -4411,7 +4461,7 @@ var repo_picker_default = _template("q", (input) => {
|
|
|
4411
4461
|
_if(() => {
|
|
4412
4462
|
if (!branches) {
|
|
4413
4463
|
const $scope9_id = _scope_id();
|
|
4414
|
-
_html(`<p${_attr_class("
|
|
4464
|
+
_html(`<p${_attr_class("_bw")}><span${_attr_class("_z")}></span> Loading branches…</p>`);
|
|
4415
4465
|
writeScope($scope9_id, {});
|
|
4416
4466
|
return 0;
|
|
4417
4467
|
} else {
|
|
@@ -4438,7 +4488,7 @@ var repo_picker_default = _template("q", (input) => {
|
|
|
4438
4488
|
_if(() => {
|
|
4439
4489
|
if (!shown.length) {
|
|
4440
4490
|
const $scope10_id = _scope_id();
|
|
4441
|
-
_html(`<li><p${_attr_class("
|
|
4491
|
+
_html(`<li><p${_attr_class("_bw")}>No branches match.</p></li>`);
|
|
4442
4492
|
writeScope($scope10_id, {});
|
|
4443
4493
|
return 0;
|
|
4444
4494
|
}
|
|
@@ -4463,7 +4513,7 @@ var repo_picker_default = _template("q", (input) => {
|
|
|
4463
4513
|
return 0;
|
|
4464
4514
|
} else if (filter && catalog) {
|
|
4465
4515
|
const $scope1_id = _scope_id();
|
|
4466
|
-
_html(`<p${_attr_class("
|
|
4516
|
+
_html(`<p${_attr_class("_bw")}>No repos match "<!>${_escape(filter)}${_el_resume($scope1_id, "b")}".</p>`);
|
|
4467
4517
|
writeScope($scope1_id, {});
|
|
4468
4518
|
return 1;
|
|
4469
4519
|
}
|
|
@@ -4547,8 +4597,10 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4547
4597
|
restoring = null;
|
|
4548
4598
|
}
|
|
4549
4599
|
}, "m3", $scope0_id);
|
|
4600
|
+
const createGen = { n: 0 };
|
|
4550
4601
|
const create = _resume(async () => {
|
|
4551
4602
|
if (restoring) return;
|
|
4603
|
+
const gen = ++createGen.n;
|
|
4552
4604
|
busy = true;
|
|
4553
4605
|
error = null;
|
|
4554
4606
|
steps$1 = [];
|
|
@@ -4567,9 +4619,11 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4567
4619
|
opId
|
|
4568
4620
|
})
|
|
4569
4621
|
});
|
|
4622
|
+
if (gen !== createGen.n) return;
|
|
4570
4623
|
busy = false;
|
|
4571
4624
|
input.onCreate?.(ws);
|
|
4572
4625
|
} catch (err) {
|
|
4626
|
+
if (gen !== createGen.n) return;
|
|
4573
4627
|
busy = false;
|
|
4574
4628
|
error = String(err.message || err);
|
|
4575
4629
|
} finally {
|
|
@@ -4577,7 +4631,7 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4577
4631
|
}
|
|
4578
4632
|
}, "m4", $scope0_id);
|
|
4579
4633
|
const titleId = _id();
|
|
4580
|
-
_html(`<div${_attr_class("
|
|
4634
|
+
_html(`<div${_attr_class("_bb")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bc")}><div${_attr_class(content$1)}>`);
|
|
4581
4635
|
_set_serialize_reason({
|
|
4582
4636
|
0: $sg__input_onExit,
|
|
4583
4637
|
1: $sg__input_onExit,
|
|
@@ -4614,9 +4668,9 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4614
4668
|
return 0;
|
|
4615
4669
|
}
|
|
4616
4670
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
4617
|
-
_html(`<label${_attr_class("_bE")}><span${_attr_class("
|
|
4671
|
+
_html(`<label${_attr_class("_bE")}><span${_attr_class("_bA")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
|
|
4618
4672
|
name = _new_name;
|
|
4619
|
-
}, "m0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class(section$1)}><div${_attr_class("_bG")}><h2${_attr_class("
|
|
4673
|
+
}, "m0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class(section$1)}><div${_attr_class("_bG")}><h2${_attr_class("_bA")}>Repos</h2><button${_attr_class(iconBtnRow)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
4620
4674
|
_set_serialize_reason(1);
|
|
4621
4675
|
const $childScope2 = _peek_scope_id();
|
|
4622
4676
|
icon_refresh_default({
|
|
@@ -4626,7 +4680,7 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4626
4680
|
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("_bH")}>`);
|
|
4627
4681
|
_for_of(selected, (repo) => {
|
|
4628
4682
|
const $scope2_id = _scope_id();
|
|
4629
|
-
_html(`<li${_attr_class(row)}><span${_attr_class("_bI")}>${_escape(repo.fullName)}${_el_resume($scope2_id, "c")}</span>`);
|
|
4683
|
+
_html(`<li${_attr_class(row)}><span${_attr_class("_bI")}>${_escape(repoLabel(repo.fullName))}${_el_resume($scope2_id, "c")}</span>`);
|
|
4630
4684
|
_if(() => {
|
|
4631
4685
|
if (repo.baseBranch) {
|
|
4632
4686
|
const $scope10_id = _scope_id();
|
|
@@ -4645,7 +4699,7 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4645
4699
|
_if(() => {
|
|
4646
4700
|
if (!selected.length) {
|
|
4647
4701
|
const $scope11_id = _scope_id();
|
|
4648
|
-
_html(`<li${_attr_class("
|
|
4702
|
+
_html(`<li${_attr_class("_bw")}>No repos yet — search below to add one (or create empty).</li>`);
|
|
4649
4703
|
writeScope($scope11_id, {});
|
|
4650
4704
|
return 0;
|
|
4651
4705
|
}
|
|
@@ -4696,14 +4750,14 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4696
4750
|
}, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
4697
4751
|
_html(`<div${_attr_class("_bC")}>`);
|
|
4698
4752
|
_if(() => {
|
|
4699
|
-
if (input.onExit) {
|
|
4753
|
+
if (input.onExit || busy) {
|
|
4700
4754
|
const $scope1_id = _scope_id();
|
|
4701
|
-
_html(`<button type=button${_attr_class(btnLg)}${_attr("disabled",
|
|
4755
|
+
_html(`<button type=button${_attr_class(btnLg)}${_attr("disabled", !!restoring)}>Cancel</button>${_el_resume($scope1_id, "a")}`);
|
|
4702
4756
|
_script($scope1_id, "m14");
|
|
4703
|
-
writeScope($scope1_id, {
|
|
4757
|
+
writeScope($scope1_id, {});
|
|
4704
4758
|
return 0;
|
|
4705
4759
|
}
|
|
4706
|
-
}, $scope0_id, "u", 1,
|
|
4760
|
+
}, $scope0_id, "u", 1, 1, 1, 0, 1);
|
|
4707
4761
|
_html(`<button type=button${_attr_class([
|
|
4708
4762
|
btnLg,
|
|
4709
4763
|
"_j",
|
|
@@ -4712,10 +4766,10 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4712
4766
|
_if(() => {
|
|
4713
4767
|
if (archived$1.length) {
|
|
4714
4768
|
const $scope3_id = _scope_id();
|
|
4715
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("_bG")}><h2${_attr_class("
|
|
4769
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_bG")}><h2${_attr_class("_bA")}>Archived</h2><span${_attr_class(sectionCount$1)}>${_escape(archived$1.length)}${_el_resume($scope3_id, "e", $sg__input_workspaces)}</span></div><p${_attr_class(archivedHint)}>Restore a parked space instead of creating a new one.</p><ul${_attr_class("_bo")}>`);
|
|
4716
4770
|
_for_of(archived$1, (ws) => {
|
|
4717
4771
|
const $scope4_id = _scope_id();
|
|
4718
|
-
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("
|
|
4772
|
+
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("_br")}><span${_attr_class("_bs")}>${_escape(ws.name)}${_el_resume($scope4_id, "d", $sg__input_workspaces)}</span><span${_attr_class([metaTrunc, "_r"])}${_attr("title", ws.display_path || ws.path)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope4_id, "f", $sg__input_workspaces)}</span>${_el_resume($scope4_id, "e", $sg__input_workspaces)}</div><button type=button${_attr_class(btnLg)}${_attr("disabled", busy || !!restoring)}>`);
|
|
4719
4773
|
_if(() => {
|
|
4720
4774
|
if (restoring === ws.id) {
|
|
4721
4775
|
const $scope14_id = _scope_id();
|
|
@@ -4751,24 +4805,25 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4751
4805
|
a4: name,
|
|
4752
4806
|
a6: selected,
|
|
4753
4807
|
a8: busy,
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4808
|
+
aa: restoring,
|
|
4809
|
+
ad: error,
|
|
4810
|
+
ae: steps$1,
|
|
4757
4811
|
af: steps$1?.length,
|
|
4758
4812
|
ah: $si__input_workspaces && archived$1,
|
|
4759
4813
|
ai: $si__input_workspaces && archived$1?.length,
|
|
4760
4814
|
aj: addRepo,
|
|
4761
4815
|
ak: removeRepo,
|
|
4762
4816
|
al: restore,
|
|
4763
|
-
|
|
4764
|
-
|
|
4817
|
+
an: createGen.n,
|
|
4818
|
+
ap: create,
|
|
4819
|
+
ar: refreshCatalog,
|
|
4765
4820
|
d: _serialize_if($scope0_reason, 1) && _existing_scope($childScope),
|
|
4766
|
-
|
|
4821
|
+
au: $error__closures,
|
|
4767
4822
|
m: _existing_scope($childScope2),
|
|
4768
4823
|
q: _existing_scope($childScope3),
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4824
|
+
aw: $steps_length__closures,
|
|
4825
|
+
as: $busy__closures,
|
|
4826
|
+
at: $restoring__closures
|
|
4772
4827
|
});
|
|
4773
4828
|
_resume_branch($scope0_id);
|
|
4774
4829
|
});
|
|
@@ -4855,8 +4910,8 @@ function activeAgent(session) {
|
|
|
4855
4910
|
const command = session.state?.command?.trim();
|
|
4856
4911
|
return command && agentFromCommand(command) || session.agent;
|
|
4857
4912
|
}
|
|
4858
|
-
var iconBtn$1 = "
|
|
4859
|
-
var navToggle = "
|
|
4913
|
+
var iconBtn$1 = "_cz _d";
|
|
4914
|
+
var navToggle = "_cE _d";
|
|
4860
4915
|
_template("D", (input) => {
|
|
4861
4916
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
4862
4917
|
const $scope0_id = _scope_id();
|
|
@@ -4899,12 +4954,12 @@ var ARM_MS = 3500;
|
|
|
4899
4954
|
function disarmLater(fn) {
|
|
4900
4955
|
return setTimeout(fn, ARM_MS);
|
|
4901
4956
|
}
|
|
4902
|
-
var railBtn = "
|
|
4903
|
-
var rowIcon = "
|
|
4904
|
-
var close = "
|
|
4957
|
+
var railBtn = "_fA _d";
|
|
4958
|
+
var rowIcon = "_fJ _Q _d";
|
|
4959
|
+
var close = "_fK _Q _d _T";
|
|
4905
4960
|
//#endregion
|
|
4906
4961
|
//#region src/styles/session-pop.css.ts
|
|
4907
|
-
var sessionPop = "
|
|
4962
|
+
var sessionPop = "_fm _U";
|
|
4908
4963
|
//#endregion
|
|
4909
4964
|
//#region src/tags/icons/icon-diff.marko
|
|
4910
4965
|
var icon_diff_default = _template("G", (input) => {
|
|
@@ -5020,10 +5075,10 @@ var side_nav_chips_default = _template("s", (input) => {
|
|
|
5020
5075
|
if (repos.some((r) => (r.prs || []).length) || ports.length) {
|
|
5021
5076
|
const $scope1_id = _scope_id();
|
|
5022
5077
|
const $if_content__repoLabel__closures = /* @__PURE__ */ new Set();
|
|
5023
|
-
const repoLabel = _resume((repo) => {
|
|
5078
|
+
const repoLabel$1 = _resume((repo) => {
|
|
5024
5079
|
if (repos.length < 2) return "";
|
|
5025
|
-
const name = repo.full_name.split("/")
|
|
5026
|
-
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/")
|
|
5080
|
+
const name = repo.full_name.split("/").at(-1);
|
|
5081
|
+
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel(repo.full_name) : name;
|
|
5027
5082
|
}, "s2", $scope1_id);
|
|
5028
5083
|
_html(`<div${_attr_class("_f2")}>`);
|
|
5029
5084
|
_for_of(repos, (repo) => {
|
|
@@ -5040,7 +5095,7 @@ var side_nav_chips_default = _template("s", (input) => {
|
|
|
5040
5095
|
[prState.merged]: pr.state === "MERGED",
|
|
5041
5096
|
[prState.closed]: pr.state === "CLOSED"
|
|
5042
5097
|
}
|
|
5043
|
-
])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["_f6", { ["_gc"]: !open }])}${_attr("href", pr.url)} target=_blank rel=noopener>${_escape(repoLabel(repo))}${_el_resume($scope3_id, "c", $sg__input_status_repos)}#${_sep($sg__input_status_repos)}${_escape(pr.number)}${_el_resume($scope3_id, "d", $sg__input_status_repos)}</a>${_el_resume($scope3_id, "b", $sg__input_status_repos)}`);
|
|
5098
|
+
])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["_f6", { ["_gc"]: !open }])}${_attr("href", pr.url)} target=_blank rel=noopener>${_escape(repoLabel$1(repo))}${_el_resume($scope3_id, "c", $sg__input_status_repos)}#${_sep($sg__input_status_repos)}${_escape(pr.number)}${_el_resume($scope3_id, "d", $sg__input_status_repos)}</a>${_el_resume($scope3_id, "b", $sg__input_status_repos)}`);
|
|
5044
5099
|
_if(() => {
|
|
5045
5100
|
if (open) {
|
|
5046
5101
|
const $scope4_id = _scope_id();
|
|
@@ -5097,7 +5152,7 @@ var side_nav_chips_default = _template("s", (input) => {
|
|
|
5097
5152
|
}, "port", $scope1_id, "c", $sg__input_status_ports, $sg__input_status_ports, $sg__input_status_repos__OR__input_status_ports, 0, 1);
|
|
5098
5153
|
_html("</div>");
|
|
5099
5154
|
writeScope($scope1_id, {
|
|
5100
|
-
d: $si__input_status_repos && repoLabel,
|
|
5155
|
+
d: $si__input_status_repos && repoLabel$1,
|
|
5101
5156
|
_: _scope_with_id($scope0_id),
|
|
5102
5157
|
e: $si__input_status_repos && $if_content__repoLabel__closures
|
|
5103
5158
|
});
|
|
@@ -5165,10 +5220,10 @@ var side_nav_item_default = _template("t", (input) => {
|
|
|
5165
5220
|
_if(() => {
|
|
5166
5221
|
if (input.rail) {
|
|
5167
5222
|
const $scope2_id = _scope_id();
|
|
5168
|
-
_html(`<button${_attr_class([railBtn, { ["
|
|
5223
|
+
_html(`<button${_attr_class([railBtn, { ["_fy"]: input.current }])}${_attr("title", ws$1.name)}>${_escape((input.index ?? 0) + 1)}${_el_resume($scope2_id, "b", _serialize_guard($scope0_reason, 17))}<span${_attr_class([
|
|
5169
5224
|
"_t",
|
|
5170
5225
|
phase[dot],
|
|
5171
|
-
"
|
|
5226
|
+
"_fB"
|
|
5172
5227
|
])}></span>${_el_resume($scope2_id, "c", $sg__input_workspaceId__OR__input_status)}</button>${_el_resume($scope2_id, "a")}`);
|
|
5173
5228
|
_script($scope2_id, "t3");
|
|
5174
5229
|
_subscribe($si__input_workspaces__OR__input_workspaceId && $ws_name__closures, _subscribe($si__input_index && $input_index__closures, _subscribe($si__input_current && $input_current__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) }))));
|
|
@@ -5177,15 +5232,15 @@ var side_nav_item_default = _template("t", (input) => {
|
|
|
5177
5232
|
const $scope3_id = _scope_id();
|
|
5178
5233
|
const sessions$1 = input.sessions || [];
|
|
5179
5234
|
const phaseLabel = dot === "working" ? "Working" : dot === "waiting" ? "Needs you" : dot === "idle" ? "Idle" : "Off";
|
|
5180
|
-
_html(`<section${_attr_class(["
|
|
5181
|
-
["
|
|
5235
|
+
_html(`<section${_attr_class(["_fD", {
|
|
5236
|
+
["_fy"]: input.current,
|
|
5182
5237
|
["_V"]: input.current,
|
|
5183
|
-
["
|
|
5184
|
-
["
|
|
5185
|
-
}])}><div${_attr_class("
|
|
5238
|
+
["_fE"]: input.railPop,
|
|
5239
|
+
["_fC"]: input.page
|
|
5240
|
+
}])}><div${_attr_class("_fF")}><button${_attr_class("_fG")}><span${_attr_class([
|
|
5186
5241
|
"_t",
|
|
5187
5242
|
phase[dot],
|
|
5188
|
-
"
|
|
5243
|
+
"_fR"
|
|
5189
5244
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope3_id, "d", $sg__input_workspaceId__OR__input_status)}`);
|
|
5190
5245
|
_if(() => {
|
|
5191
5246
|
if (sessions$1.length === 1) {
|
|
@@ -5198,7 +5253,7 @@ var side_nav_item_default = _template("t", (input) => {
|
|
|
5198
5253
|
icon_agent_default({
|
|
5199
5254
|
agent: activeAgent(sessions$1[0]),
|
|
5200
5255
|
size: 12,
|
|
5201
|
-
class: "
|
|
5256
|
+
class: "_fL"
|
|
5202
5257
|
});
|
|
5203
5258
|
$si__input_sessions && writeScope($scope12_id, {
|
|
5204
5259
|
_: _scope_with_id($scope3_id),
|
|
@@ -5208,16 +5263,16 @@ var side_nav_item_default = _template("t", (input) => {
|
|
|
5208
5263
|
}
|
|
5209
5264
|
}, $scope3_id, "e", $sg__input_sessions, $sg__input_sessions, $sg__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page);
|
|
5210
5265
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length === 1 ? sessions$1[0].title || "" : `${sessions$1.length} sessions`;
|
|
5211
|
-
_html(`<span${_attr_class("
|
|
5266
|
+
_html(`<span${_attr_class("_fM")}><span${_attr_class("_fN")}>${_escape(ws$1.name)}${_el_resume($scope3_id, "h", $sg__input_workspaces__OR__input_workspaceId)}</span>`);
|
|
5212
5267
|
_if(() => {
|
|
5213
5268
|
if (input.page && metaText) {
|
|
5214
5269
|
const $scope14_id = _scope_id();
|
|
5215
|
-
_html(`<span${_attr_class("
|
|
5270
|
+
_html(`<span${_attr_class("_fP")}>${_escape(metaText)}${_el_resume($scope14_id, "b", _serialize_guard($scope0_reason, 5))}</span>`);
|
|
5216
5271
|
$si__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page && writeScope($scope14_id, { _: _serialize_if($scope0_reason, 5) && _scope_with_id($scope3_id) });
|
|
5217
5272
|
return 0;
|
|
5218
5273
|
} else if (sessions$1.length === 1 && sessions$1[0].title) {
|
|
5219
5274
|
const $scope13_id = _scope_id();
|
|
5220
|
-
_html(`<span${_attr_class("
|
|
5275
|
+
_html(`<span${_attr_class("_fO")}>${_escape(sessions$1[0].title)}${_el_resume($scope13_id, "b", $sg__input_sessions)}</span>`);
|
|
5221
5276
|
$si__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page && writeScope($scope13_id, { _: $si__input_sessions && _scope_with_id($scope3_id) });
|
|
5222
5277
|
return 1;
|
|
5223
5278
|
}
|
|
@@ -5230,7 +5285,7 @@ var side_nav_item_default = _template("t", (input) => {
|
|
|
5230
5285
|
"_C",
|
|
5231
5286
|
"_L",
|
|
5232
5287
|
"_E",
|
|
5233
|
-
"
|
|
5288
|
+
"_fQ"
|
|
5234
5289
|
])}>${input.current ? "Open" : ""}${_el_resume($scope4_id, "b", _serialize_guard($scope0_reason, 16))}</span>`);
|
|
5235
5290
|
$si__input_workspaces__OR__input_workspaceId__OR__input_rail__OR__input_current__OR__input_page && _subscribe($si__input_current && $input_current__closures, writeScope($scope4_id, {
|
|
5236
5291
|
_: _scope_with_id($scope3_id),
|
|
@@ -5243,7 +5298,7 @@ var side_nav_item_default = _template("t", (input) => {
|
|
|
5243
5298
|
_if(() => {
|
|
5244
5299
|
if (!input.page) {
|
|
5245
5300
|
const $scope5_id = _scope_id();
|
|
5246
|
-
_html(`<div${_attr_class("
|
|
5301
|
+
_html(`<div${_attr_class("_fH")}>`);
|
|
5247
5302
|
_if(() => {
|
|
5248
5303
|
if (input.onNewSession) {
|
|
5249
5304
|
const $scope6_id = _scope_id();
|
|
@@ -5257,7 +5312,7 @@ var side_nav_item_default = _template("t", (input) => {
|
|
|
5257
5312
|
_html(`</button>${_el_resume($scope6_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class(sessionPop)}>`);
|
|
5258
5313
|
_for_of([], (agent) => {
|
|
5259
5314
|
const $scope7_id = _scope_id();
|
|
5260
|
-
_html(`<button${_attr_class("
|
|
5315
|
+
_html(`<button${_attr_class("_fn")}>`);
|
|
5261
5316
|
_set_serialize_reason(12);
|
|
5262
5317
|
const $childScope2 = _peek_scope_id();
|
|
5263
5318
|
icon_agent_default({
|
|
@@ -5290,7 +5345,7 @@ var side_nav_item_default = _template("t", (input) => {
|
|
|
5290
5345
|
return 0;
|
|
5291
5346
|
}
|
|
5292
5347
|
}, $scope5_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
5293
|
-
_html(`<button${_attr_class([rowIcon, { ["
|
|
5348
|
+
_html(`<button${_attr_class([rowIcon, { ["_fz"]: input.managing }])} title="Manage workspace" aria-pressed=${input.managing ? "true" : "false"}>`);
|
|
5294
5349
|
icon_manage_default({ size: 12 });
|
|
5295
5350
|
_html(`</button>${_el_resume($scope5_id, "d")}</div>`);
|
|
5296
5351
|
_script($scope5_id, "t7");
|
|
@@ -5298,17 +5353,17 @@ var side_nav_item_default = _template("t", (input) => {
|
|
|
5298
5353
|
return 0;
|
|
5299
5354
|
}
|
|
5300
5355
|
}, $scope3_id, "k", $sg__input_page, $sg__input_page, $sg__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page, 0, 1);
|
|
5301
|
-
_html(`</div><div${_attr_class("
|
|
5356
|
+
_html(`</div><div${_attr_class("_fW")}>`);
|
|
5302
5357
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
5303
5358
|
const $scope9_id = _scope_id();
|
|
5304
|
-
_html(`<div${_attr_class(["
|
|
5359
|
+
_html(`<div${_attr_class(["_fI", { ["_fy"]: s.id === input.currentTab }])}>`);
|
|
5305
5360
|
_if(() => {
|
|
5306
5361
|
if (renamingId === s.id) {
|
|
5307
5362
|
const $scope11_id = _scope_id();
|
|
5308
5363
|
_html(`<span${_attr_class([
|
|
5309
5364
|
"_t",
|
|
5310
5365
|
phase[sessionPhase(s.state)],
|
|
5311
|
-
"
|
|
5366
|
+
"_fU"
|
|
5312
5367
|
])}></span>${_el_resume($scope11_id, "a", $sg__input_sessions)}`);
|
|
5313
5368
|
_set_serialize_reason({
|
|
5314
5369
|
1: $sg__input_sessions,
|
|
@@ -5318,17 +5373,17 @@ var side_nav_item_default = _template("t", (input) => {
|
|
|
5318
5373
|
icon_agent_default({
|
|
5319
5374
|
agent: activeAgent(s),
|
|
5320
5375
|
size: 13,
|
|
5321
|
-
class: "
|
|
5376
|
+
class: "_fY"
|
|
5322
5377
|
});
|
|
5323
5378
|
_html(`<input${_attr_input_value($scope11_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
5324
5379
|
renameValue = _new_renameValue;
|
|
5325
|
-
}, "t0", $scope11_id))}${_attr_class(["_O", "
|
|
5380
|
+
}, "t0", $scope11_id))}${_attr_class(["_O", "_fV"])} aria-label="Session name">${_el_resume($scope11_id, "c")}`);
|
|
5326
5381
|
_script($scope11_id, "t8");
|
|
5327
5382
|
_subscribe($renameValue__closures, writeScope($scope11_id, { b: $si__input_sessions && _existing_scope($childScope3) }));
|
|
5328
5383
|
return 0;
|
|
5329
5384
|
} else {
|
|
5330
5385
|
const $scope10_id = _scope_id();
|
|
5331
|
-
_html(`<button${_attr_class("
|
|
5386
|
+
_html(`<button${_attr_class("_fX")}><span${_attr_class(["_t", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope10_id, "b", $sg__input_sessions)}`);
|
|
5332
5387
|
_set_serialize_reason({
|
|
5333
5388
|
1: $sg__input_sessions,
|
|
5334
5389
|
2: $sg__input_sessions
|
|
@@ -5337,9 +5392,9 @@ var side_nav_item_default = _template("t", (input) => {
|
|
|
5337
5392
|
icon_agent_default({
|
|
5338
5393
|
agent: activeAgent(s),
|
|
5339
5394
|
size: 13,
|
|
5340
|
-
class: "
|
|
5395
|
+
class: "_fY"
|
|
5341
5396
|
});
|
|
5342
|
-
_html(`<span${_attr_class("
|
|
5397
|
+
_html(`<span${_attr_class("_fS")}>${_escape(s.title || activeAgent(s))}${_el_resume($scope10_id, "e", $sg__input_sessions)}</span></button>${_el_resume($scope10_id, "a")}<div${_attr_class("_fT")}><button${_attr_class(rowIcon)} title="Rename session">`);
|
|
5343
5398
|
icon_edit_default({ size: 12 });
|
|
5344
5399
|
_html(`</button>${_el_resume($scope10_id, "g")}<button${_attr_class([close, { ["_k"]: armedKill === s.id }])} title=${armedKill === s.id ? "\"Really kill this session?\"" : "\"Kill session\""}>×</button>${_el_resume($scope10_id, "i")}</div>`);
|
|
5345
5400
|
_script($scope10_id, "t9");
|
|
@@ -5521,25 +5576,25 @@ var side_nav_default = _template("u", (input) => {
|
|
|
5521
5576
|
const wsSelected = true;
|
|
5522
5577
|
const otherIds = itemIds.filter((id) => id !== ws.id);
|
|
5523
5578
|
const listIds = isPage ? [ws.id, ...otherIds] : itemIds;
|
|
5524
|
-
_html(`<aside${_attr_class(["
|
|
5525
|
-
["
|
|
5526
|
-
["
|
|
5579
|
+
_html(`<aside${_attr_class(["_cD", {
|
|
5580
|
+
["_cB"]: !navOpen,
|
|
5581
|
+
["_cC"]: isPage
|
|
5527
5582
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
5528
5583
|
_if(() => {
|
|
5529
5584
|
if (isPage) {
|
|
5530
5585
|
const $scope1_id = _scope_id();
|
|
5531
|
-
_html(`<header${_attr_class("
|
|
5586
|
+
_html(`<header${_attr_class("_cG")}><h1${_attr_class("_cH")}>Workspaces</h1><div${_attr_class("_cI")}>`);
|
|
5532
5587
|
_if(() => {}, $scope1_id, "d", 1, 1, 1, 0, 1);
|
|
5533
5588
|
_html(`<button${_attr_class([
|
|
5534
5589
|
iconBtn$1,
|
|
5535
|
-
"
|
|
5536
|
-
{ ["
|
|
5590
|
+
"_cJ",
|
|
5591
|
+
{ ["_cy"]: view === "settings" }
|
|
5537
5592
|
])} title=Settings aria-pressed=${view === "settings" ? "true" : "false"}>`);
|
|
5538
5593
|
icon_settings_default({ size: 16 });
|
|
5539
5594
|
_if(() => {
|
|
5540
5595
|
if (input.setupReady === false) {
|
|
5541
5596
|
const $scope10_id = _scope_id();
|
|
5542
|
-
_html(`<span${_attr_class(["_t", "
|
|
5597
|
+
_html(`<span${_attr_class(["_t", "_cA"])} title="Machine setup incomplete"></span>`);
|
|
5543
5598
|
$si__input_setupReady && writeScope($scope10_id, {});
|
|
5544
5599
|
return 0;
|
|
5545
5600
|
}
|
|
@@ -5550,13 +5605,13 @@ var side_nav_default = _template("u", (input) => {
|
|
|
5550
5605
|
return 0;
|
|
5551
5606
|
}
|
|
5552
5607
|
}, $scope0_id, "b", 1, 1, 1, 0, 1);
|
|
5553
|
-
_html(`<div${_attr_class("
|
|
5608
|
+
_html(`<div${_attr_class("_cM")}>`);
|
|
5554
5609
|
_for_of(listIds, (wsId) => {
|
|
5555
5610
|
const $scope2_id = _scope_id();
|
|
5556
5611
|
_if(() => {
|
|
5557
5612
|
if (isPage && wsId === ws.id) {
|
|
5558
5613
|
const $scope11_id = _scope_id();
|
|
5559
|
-
_html(`<h2${_attr_class(["
|
|
5614
|
+
_html(`<h2${_attr_class(["_bA", "_cK"])}>Current</h2>`);
|
|
5560
5615
|
writeScope($scope11_id, {});
|
|
5561
5616
|
return 0;
|
|
5562
5617
|
}
|
|
@@ -5564,7 +5619,7 @@ var side_nav_default = _template("u", (input) => {
|
|
|
5564
5619
|
_if(() => {
|
|
5565
5620
|
if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
|
|
5566
5621
|
const $scope12_id = _scope_id();
|
|
5567
|
-
_html(`<h2${_attr_class(["
|
|
5622
|
+
_html(`<h2${_attr_class(["_bA", "_cK"])}>Other spaces</h2>`);
|
|
5568
5623
|
writeScope($scope12_id, {});
|
|
5569
5624
|
return 0;
|
|
5570
5625
|
}
|
|
@@ -5662,7 +5717,7 @@ var side_nav_default = _template("u", (input) => {
|
|
|
5662
5717
|
railHover = null;
|
|
5663
5718
|
}, 150);
|
|
5664
5719
|
}, "u9", $scope3_id);
|
|
5665
|
-
_html(`<div${_attr_class("
|
|
5720
|
+
_html(`<div${_attr_class("_cN")}>`);
|
|
5666
5721
|
_for_of(itemIds, (wsId, i) => {
|
|
5667
5722
|
const $scope4_id = _scope_id();
|
|
5668
5723
|
_html("<span>");
|
|
@@ -5709,7 +5764,7 @@ var side_nav_default = _template("u", (input) => {
|
|
|
5709
5764
|
if (railHover) {
|
|
5710
5765
|
const $scope5_id = _scope_id();
|
|
5711
5766
|
const hoverId = railHover.id;
|
|
5712
|
-
_html(`<div${_attr_class(["_U", "
|
|
5767
|
+
_html(`<div${_attr_class(["_U", "_cQ"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
5713
5768
|
_set_serialize_reason({
|
|
5714
5769
|
0: 1,
|
|
5715
5770
|
1: 1,
|
|
@@ -5811,7 +5866,7 @@ var side_nav_default = _template("u", (input) => {
|
|
|
5811
5866
|
return 0;
|
|
5812
5867
|
}
|
|
5813
5868
|
}, $scope0_id, "d");
|
|
5814
|
-
_html(`<div${_attr_class("
|
|
5869
|
+
_html(`<div${_attr_class("_cO")}>`);
|
|
5815
5870
|
_if(() => {
|
|
5816
5871
|
if (isPage) {
|
|
5817
5872
|
const $scope6_id = _scope_id();
|
|
@@ -5819,7 +5874,7 @@ var side_nav_default = _template("u", (input) => {
|
|
|
5819
5874
|
"_i",
|
|
5820
5875
|
"_j",
|
|
5821
5876
|
btnLg,
|
|
5822
|
-
"
|
|
5877
|
+
"_cL"
|
|
5823
5878
|
])} title="New workspace" aria-pressed=${view === "new" ? "true" : "false"}>`);
|
|
5824
5879
|
icon_folder_plus_default({ size: 16 });
|
|
5825
5880
|
_html(` New workspace</button>${_el_resume($scope6_id, "a")}`);
|
|
@@ -5842,19 +5897,19 @@ var side_nav_default = _template("u", (input) => {
|
|
|
5842
5897
|
return 1;
|
|
5843
5898
|
}
|
|
5844
5899
|
}, $scope7_id, "a", 1, 1, 1, "</button>", 1);
|
|
5845
|
-
_html(`<div${_attr_class(["_s", "
|
|
5900
|
+
_html(`<div${_attr_class(["_s", "_cP"])}></div>`);
|
|
5846
5901
|
_if(() => {}, $scope7_id, "c", 1, 1, 1, 0, 1);
|
|
5847
|
-
_html(`<button${_attr_class([iconBtn$1, { ["
|
|
5902
|
+
_html(`<button${_attr_class([iconBtn$1, { ["_cy"]: view === "settings" }])} title=Settings aria-pressed=${view === "settings" ? "true" : "false"}>`);
|
|
5848
5903
|
icon_settings_default({ size: 15 });
|
|
5849
5904
|
_if(() => {
|
|
5850
5905
|
if (input.setupReady === false) {
|
|
5851
5906
|
const $scope15_id = _scope_id();
|
|
5852
|
-
_html(`<span${_attr_class(["_t", "
|
|
5907
|
+
_html(`<span${_attr_class(["_t", "_cA"])} title="Machine setup incomplete"></span>`);
|
|
5853
5908
|
$si__input_setupReady && writeScope($scope15_id, {});
|
|
5854
5909
|
return 0;
|
|
5855
5910
|
}
|
|
5856
5911
|
}, $scope7_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
5857
|
-
_html(`</button>${_el_resume($scope7_id, "d")}<button${_attr_class([iconBtn$1, { ["
|
|
5912
|
+
_html(`</button>${_el_resume($scope7_id, "d")}<button${_attr_class([iconBtn$1, { ["_cy"]: view === "new" }])} title="New workspace" aria-pressed=${view === "new" ? "true" : "false"}>`);
|
|
5858
5913
|
icon_folder_plus_default({ size: 16 });
|
|
5859
5914
|
_html(`</button>${_el_resume($scope7_id, "g")}`);
|
|
5860
5915
|
_script($scope7_id, "u23");
|
|
@@ -5919,21 +5974,12 @@ var side_nav_default = _template("u", (input) => {
|
|
|
5919
5974
|
});
|
|
5920
5975
|
_resume_branch($scope0_id);
|
|
5921
5976
|
});
|
|
5922
|
-
//#endregion
|
|
5923
|
-
//#region src/client/github.ts
|
|
5924
|
-
/** A repo's full name is `[host/]owner/name`; the host segment is present
|
|
5925
|
-
* only for GitHub Enterprise (server mirror: github-hosts.ts `splitRepo`). */
|
|
5926
|
-
function repoWebUrl(fullName) {
|
|
5927
|
-
const parts = fullName.split("/");
|
|
5928
|
-
if (parts.length >= 3 && parts[0].includes(".")) return `https://${parts[0]}/${parts.slice(1).join("/")}`;
|
|
5929
|
-
return `https://github.com/${fullName}`;
|
|
5930
|
-
}
|
|
5931
5977
|
var iconBtn = "_R _d";
|
|
5932
|
-
var sectionCount = "
|
|
5933
|
-
var content = "
|
|
5934
|
-
var pageMeta = "
|
|
5935
|
-
var pathMeta = "
|
|
5936
|
-
var dangerHint = "
|
|
5978
|
+
var sectionCount = "_bn _C _D";
|
|
5979
|
+
var content = "_cR _bd";
|
|
5980
|
+
var pageMeta = "_cS _bi";
|
|
5981
|
+
var pathMeta = "_cV _r";
|
|
5982
|
+
var dangerHint = "_c1 _M";
|
|
5937
5983
|
//#endregion
|
|
5938
5984
|
//#region src/tags/manage-workspace.marko
|
|
5939
5985
|
var api$2;
|
|
@@ -6031,7 +6077,7 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
6031
6077
|
setTimeout(() => loadProcs(void 0), 500);
|
|
6032
6078
|
}, "k5", $scope0_id);
|
|
6033
6079
|
const titleId = _id();
|
|
6034
|
-
_html(`<div${_attr_class("
|
|
6080
|
+
_html(`<div${_attr_class("_bb")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bc")}><div${_attr_class(content)}>`);
|
|
6035
6081
|
_set_serialize_reason({
|
|
6036
6082
|
0: $sg__input_onExit,
|
|
6037
6083
|
1: $sg__input_onExit,
|
|
@@ -6047,7 +6093,7 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
6047
6093
|
meta: attrTag({ content: _content_resume("k11", () => {
|
|
6048
6094
|
_scope_reason();
|
|
6049
6095
|
const $scope8_id = _scope_id();
|
|
6050
|
-
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
6096
|
+
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_cT")}>${_escape(ws.name)}${_el_resume($scope8_id, "c")}</span>`);
|
|
6051
6097
|
_if(() => {
|
|
6052
6098
|
if (ws.status !== "active") {
|
|
6053
6099
|
const $scope11_id = _scope_id();
|
|
@@ -6056,7 +6102,7 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
6056
6102
|
return 0;
|
|
6057
6103
|
}
|
|
6058
6104
|
}, $scope8_id, "d", 1, 1, 1, 0, 1);
|
|
6059
|
-
_html(`<span${_attr_class("
|
|
6105
|
+
_html(`<span${_attr_class("_cU")} 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")}`);
|
|
6060
6106
|
_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) })))));
|
|
6061
6107
|
_resume_branch($scope8_id);
|
|
6062
6108
|
}, $scope0_id) })
|
|
@@ -6084,22 +6130,22 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
6084
6130
|
_if(() => {
|
|
6085
6131
|
if (pendingAction && actionStep) {
|
|
6086
6132
|
const $scope7_id = _scope_id();
|
|
6087
|
-
_html(`<p${_attr_class("
|
|
6133
|
+
_html(`<p${_attr_class("_bk")}><span${_attr_class("_z")}></span><!>${_escape(actionStep)}${_el_resume($scope7_id, "c")}</p>`);
|
|
6088
6134
|
writeScope($scope7_id, {});
|
|
6089
6135
|
return 0;
|
|
6090
6136
|
}
|
|
6091
6137
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
6092
|
-
_html(`<section${_attr_class("
|
|
6138
|
+
_html(`<section${_attr_class("_bl")}><div${_attr_class("_bm")}><h2${_attr_class("_bA")}>Repos</h2><span${_attr_class(sectionCount)}>${_escape(ws.repos.length)}${_el_resume($scope0_id, "k")}</span><div${_attr_class("_s")}></div><button${_attr_class(iconBtn)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
6093
6139
|
_set_serialize_reason(1);
|
|
6094
6140
|
const $childScope2 = _peek_scope_id();
|
|
6095
6141
|
icon_refresh_default({
|
|
6096
6142
|
size: 14,
|
|
6097
6143
|
class: catalogRefreshing && "_y"
|
|
6098
6144
|
});
|
|
6099
|
-
_html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("
|
|
6145
|
+
_html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("_bo")}>`);
|
|
6100
6146
|
_for_of(ws.repos, (row) => {
|
|
6101
6147
|
const $scope1_id = _scope_id();
|
|
6102
|
-
_html(`<li${_attr_class("
|
|
6148
|
+
_html(`<li${_attr_class("_bq")}><div${_attr_class("_br")}><span${_attr_class(["_bs", "_r"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_bt")}><a${_attr_class(["_bu", "_cX"])}${_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")}`);
|
|
6103
6149
|
_if(() => {
|
|
6104
6150
|
if (row.base_branch !== row.default_branch) {
|
|
6105
6151
|
const $scope12_id = _scope_id();
|
|
@@ -6118,7 +6164,7 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
6118
6164
|
} else {
|
|
6119
6165
|
const $scope6_id = _scope_id();
|
|
6120
6166
|
_html(`<button${_attr_class([
|
|
6121
|
-
"
|
|
6167
|
+
"_bv",
|
|
6122
6168
|
"_T",
|
|
6123
6169
|
{ ["_k"]: confirmingRemove === row.full_name }
|
|
6124
6170
|
])}${confirmingRemove === row.full_name ? _attr("title", `Really remove ${row.worktree}/? Uncommitted changes are lost.`) : _attr("title", `Remove ${row.worktree}/`)}>${confirmingRemove === row.full_name ? "Remove?" : "×"}${_el_resume($scope6_id, "b")}</button>${_el_resume($scope6_id, "a")}`);
|
|
@@ -6137,19 +6183,19 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
6137
6183
|
}, "full_name", $scope0_id, "p", 1, 1, 1, 0, 1);
|
|
6138
6184
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
6139
6185
|
const $scope14_id = _scope_id();
|
|
6140
|
-
_html(`<li${_attr_class(["
|
|
6186
|
+
_html(`<li${_attr_class(["_bq", "_bp"])}><span${_attr_class("_z")}></span><div${_attr_class("_br")}><span${_attr_class("_bu")}>Adding <!>${_escape(name)}${_el_resume($scope14_id, "e")}…</span></div></li>`);
|
|
6141
6187
|
writeScope($scope14_id, {});
|
|
6142
6188
|
}, (n) => n, $scope0_id, "q", 1, 1, 1, 0, 1);
|
|
6143
6189
|
_html("</ul>");
|
|
6144
6190
|
_if(() => {
|
|
6145
6191
|
if (!ws.repos.length && !busy.size) {
|
|
6146
6192
|
const $scope15_id = _scope_id();
|
|
6147
|
-
_html(`<p${_attr_class("
|
|
6193
|
+
_html(`<p${_attr_class("_bw")}>No repos yet — search below to add one.</p>`);
|
|
6148
6194
|
writeScope($scope15_id, {});
|
|
6149
6195
|
return 0;
|
|
6150
6196
|
}
|
|
6151
6197
|
}, $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
6152
|
-
_html(`<div${_attr_class("
|
|
6198
|
+
_html(`<div${_attr_class("_cW")}>`);
|
|
6153
6199
|
const $childScope3 = _peek_scope_id();
|
|
6154
6200
|
let refreshCatalog = repo_picker_default({
|
|
6155
6201
|
exclude: inWorkspace,
|
|
@@ -6169,17 +6215,17 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
6169
6215
|
_if(() => {
|
|
6170
6216
|
if (running.length) {
|
|
6171
6217
|
const $scope9_id = _scope_id();
|
|
6172
|
-
_html(`<section${_attr_class("
|
|
6218
|
+
_html(`<section${_attr_class("_bl")}><div${_attr_class("_bm")}><h2${_attr_class("_bA")}>Running</h2><span${_attr_class(sectionCount)}>${_escape(running.length)}${_el_resume($scope9_id, "e")}</span></div><ul${_attr_class("_bo")}>`);
|
|
6173
6219
|
_for_of(running, (p) => {
|
|
6174
6220
|
const $scope10_id = _scope_id();
|
|
6175
|
-
_html(`<li${_attr_class("
|
|
6221
|
+
_html(`<li${_attr_class("_bq")}><div${_attr_class("_br")}${_attr("title", p.args)}><span${_attr_class(["_bs", "_r"])}>${_escape(p.cmd)}${_el_resume($scope10_id, "d")}</span>`);
|
|
6176
6222
|
_if(() => {
|
|
6177
6223
|
if (p.ports.length) {
|
|
6178
6224
|
const $scope16_id = _scope_id();
|
|
6179
|
-
_html(`<span${_attr_class("
|
|
6225
|
+
_html(`<span${_attr_class("_bt")}>`);
|
|
6180
6226
|
_for_of(p.ports, (port) => {
|
|
6181
6227
|
const $scope17_id = _scope_id();
|
|
6182
|
-
_html(`<button${_attr_class(["_m", "
|
|
6228
|
+
_html(`<button${_attr_class(["_m", "_cY"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope17_id, "b")}</button>${_el_resume($scope17_id, "a")}`);
|
|
6183
6229
|
_script($scope17_id, "k15");
|
|
6184
6230
|
writeScope($scope17_id, { d: port });
|
|
6185
6231
|
}, (x) => String(x), $scope16_id, "a", 1, 1, 1, "</span>", 1);
|
|
@@ -6187,7 +6233,7 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
6187
6233
|
return 0;
|
|
6188
6234
|
}
|
|
6189
6235
|
}, $scope10_id, "e", 1, 1, 1, 0, 1);
|
|
6190
|
-
_html(`</div>${_el_resume($scope10_id, "b")}<button${_attr_class(["
|
|
6236
|
+
_html(`</div>${_el_resume($scope10_id, "b")}<button${_attr_class(["_bv", "_T"])} type=button${_attr("title", `Kill ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>×</button>${_el_resume($scope10_id, "f")}</li>`);
|
|
6191
6237
|
_script($scope10_id, "k16");
|
|
6192
6238
|
writeScope($scope10_id, {
|
|
6193
6239
|
k: p?.ports,
|
|
@@ -6199,7 +6245,7 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
6199
6245
|
return 0;
|
|
6200
6246
|
}
|
|
6201
6247
|
}, $scope0_id, "v", 1, 1, 1, 0, 1);
|
|
6202
|
-
_html(`<section${_attr_class(["
|
|
6248
|
+
_html(`<section${_attr_class(["_bl", "_cZ"])}><div${_attr_class("_bm")}><h2${_attr_class("_bA")}>Workspace</h2></div><div${_attr_class("_c0")}>`);
|
|
6203
6249
|
_if(() => {
|
|
6204
6250
|
if (ws.status === "active") {
|
|
6205
6251
|
const $scope4_id = _scope_id();
|
|
@@ -6300,15 +6346,15 @@ var term_find_default = _template("v", (input) => {
|
|
|
6300
6346
|
const canStep = hasQuery && open;
|
|
6301
6347
|
const keybar = input.placement === "keybar";
|
|
6302
6348
|
_html(`<div${_attr_class([
|
|
6303
|
-
"
|
|
6304
|
-
keybar ? "
|
|
6305
|
-
!open && "
|
|
6306
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
6349
|
+
"_e1",
|
|
6350
|
+
keybar ? "_e3" : "_e2",
|
|
6351
|
+
!open && "_e5"
|
|
6352
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_eW", keybar ? "_e4" : "_eY"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
6307
6353
|
if (!open) return;
|
|
6308
6354
|
query = v;
|
|
6309
6355
|
live.query = v;
|
|
6310
6356
|
run(0);
|
|
6311
|
-
}, "v0", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
6357
|
+
}, "v0", $scope0_id))}${_attr_class([findInput, keybar && "_e6"])} 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 && "_e7"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↑</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_e7"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↓</button>${_el_resume($scope0_id, "e")}<button type=button${_attr_class([findIconBtn, keybar && "_e7"])} title="Close find" tabindex=${open ? "0" : "-1"}>×</button>${_el_resume($scope0_id, "f")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
6312
6358
|
_script($scope0_id, "v4");
|
|
6313
6359
|
_script($scope0_id, "v5");
|
|
6314
6360
|
_script($scope0_id, "v6");
|
|
@@ -6578,7 +6624,7 @@ var term_default = _template("w", (input) => {
|
|
|
6578
6624
|
trapOpen = true;
|
|
6579
6625
|
}
|
|
6580
6626
|
}, "w14", $scope0_id);
|
|
6581
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
6627
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_c2")}><div${_attr_class("_c3")}></div>${_el_resume($scope0_id, "b")}`);
|
|
6582
6628
|
_if(() => {
|
|
6583
6629
|
if (findOpen) {
|
|
6584
6630
|
const $scope12_id = _scope_id();
|
|
@@ -6605,7 +6651,7 @@ var term_default = _template("w", (input) => {
|
|
|
6605
6651
|
_if(() => {
|
|
6606
6652
|
if (uploading) {
|
|
6607
6653
|
const $scope19_id = _scope_id();
|
|
6608
|
-
_html(`<div${_attr_class("
|
|
6654
|
+
_html(`<div${_attr_class("_c9")}>uploading…</div>`);
|
|
6609
6655
|
writeScope($scope19_id, {});
|
|
6610
6656
|
return 0;
|
|
6611
6657
|
}
|
|
@@ -6613,7 +6659,7 @@ var term_default = _template("w", (input) => {
|
|
|
6613
6659
|
_if(() => {
|
|
6614
6660
|
if (copiedFlash) {
|
|
6615
6661
|
const $scope20_id = _scope_id();
|
|
6616
|
-
_html(`<div${_attr_class("
|
|
6662
|
+
_html(`<div${_attr_class("_c8")}>Copied</div>`);
|
|
6617
6663
|
writeScope($scope20_id, {});
|
|
6618
6664
|
return 0;
|
|
6619
6665
|
}
|
|
@@ -6622,7 +6668,7 @@ var term_default = _template("w", (input) => {
|
|
|
6622
6668
|
_if(() => {
|
|
6623
6669
|
if (trapOpen) {
|
|
6624
6670
|
const $scope11_id = _scope_id();
|
|
6625
|
-
_html(`<div${_attr_class("
|
|
6671
|
+
_html(`<div${_attr_class("_c_")}><div${_attr_class("_da")}><p${_attr_class("_dD")}>Long-press below and choose Paste</p><input placeholder="Paste here…">${_el_resume($scope11_id, "d")}<button${_attr_class("_i")}>Cancel</button>${_el_resume($scope11_id, "e")}</div>${_el_resume($scope11_id, "b")}</div>${_el_resume($scope11_id, "a")}`);
|
|
6626
6672
|
_script($scope11_id, "w24");
|
|
6627
6673
|
_script($scope11_id, "w25");
|
|
6628
6674
|
writeScope($scope11_id, {});
|
|
@@ -6728,7 +6774,7 @@ var work_view_default = _template("z", (input) => {
|
|
|
6728
6774
|
let DiffView = null;
|
|
6729
6775
|
const loadDiffView = _resume(() => {
|
|
6730
6776
|
if (DiffView) return;
|
|
6731
|
-
import("./
|
|
6777
|
+
import("./_CBPKAw5M.js").then((m) => {
|
|
6732
6778
|
DiffView = m.default;
|
|
6733
6779
|
});
|
|
6734
6780
|
}, "z4", $scope0_id);
|
|
@@ -6898,7 +6944,7 @@ var work_view_default = _template("z", (input) => {
|
|
|
6898
6944
|
toggleDiff();
|
|
6899
6945
|
}
|
|
6900
6946
|
}, "z20", $scope0_id);
|
|
6901
|
-
_html(`<div${_attr_class(["
|
|
6947
|
+
_html(`<div${_attr_class(["_bS", { ["_bR"]: view === "nav" }])}><div${_attr_class("_bT")}>`);
|
|
6902
6948
|
_set_serialize_reason({
|
|
6903
6949
|
0: _serialize_guard($scope0_reason, 0),
|
|
6904
6950
|
1: _serialize_guard($scope0_reason, 1),
|
|
@@ -6971,7 +7017,7 @@ var work_view_default = _template("z", (input) => {
|
|
|
6971
7017
|
openDiff(pr);
|
|
6972
7018
|
}, "z32", $scope0_id)
|
|
6973
7019
|
});
|
|
6974
|
-
_html(`</div><div${_attr_class("
|
|
7020
|
+
_html(`</div><div${_attr_class("_bU")}>`);
|
|
6975
7021
|
_if(() => {
|
|
6976
7022
|
if (error) {
|
|
6977
7023
|
const $scope8_id = _scope_id();
|
|
@@ -7080,13 +7126,13 @@ var work_view_default = _template("z", (input) => {
|
|
|
7080
7126
|
}
|
|
7081
7127
|
}, $scope0_id, "h");
|
|
7082
7128
|
_if(() => {}, $scope0_id, "i");
|
|
7083
|
-
_html(`<div${_attr_class(["
|
|
7129
|
+
_html(`<div${_attr_class(["_bW", { ["_bV"]: view !== "term" }])}>`);
|
|
7084
7130
|
_if(() => {
|
|
7085
7131
|
if (shownSessions) {
|
|
7086
7132
|
const $scope5_id = _scope_id();
|
|
7087
7133
|
_for_of(shownSessions, (s) => {
|
|
7088
7134
|
const $scope6_id = _scope_id();
|
|
7089
|
-
_html(`<div${_attr_class(["
|
|
7135
|
+
_html(`<div${_attr_class(["_bX", { ["_bY"]: s.id === curTab }])}>`);
|
|
7090
7136
|
_set_serialize_reason({
|
|
7091
7137
|
0: 1,
|
|
7092
7138
|
1: 1,
|
|
@@ -7153,7 +7199,7 @@ var work_view_default = _template("z", (input) => {
|
|
|
7153
7199
|
_if(() => {
|
|
7154
7200
|
if (!shownSessions.length && view === "term") {
|
|
7155
7201
|
const $scope7_id = _scope_id();
|
|
7156
|
-
_html(`<div${_attr_class("
|
|
7202
|
+
_html(`<div${_attr_class("_bx")}><span>No sessions in this workspace.</span><button${_attr_class(["_i", "_j"])}${_attr("disabled", spawning)}>${spawning ? "Starting…" : `Start ${_escape(`${input.preferred || "shell"}`)}`}${_el_resume($scope7_id, "c")}</button>${_el_resume($scope7_id, "b")}</div>`);
|
|
7157
7203
|
_script($scope7_id, "z54");
|
|
7158
7204
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
7159
7205
|
return 0;
|
|
@@ -7163,7 +7209,7 @@ var work_view_default = _template("z", (input) => {
|
|
|
7163
7209
|
return 0;
|
|
7164
7210
|
} else {
|
|
7165
7211
|
const $scope10_id = _scope_id();
|
|
7166
|
-
_html(`<p${_attr_class("
|
|
7212
|
+
_html(`<p${_attr_class("_bx")}>Loading sessions…</p>`);
|
|
7167
7213
|
writeScope($scope10_id, {});
|
|
7168
7214
|
return 1;
|
|
7169
7215
|
}
|
|
@@ -7281,6 +7327,7 @@ var page_boot_default = _template("n", (input) => {
|
|
|
7281
7327
|
let openIds = selectedId ? [selectedId] : [];
|
|
7282
7328
|
let creating = false;
|
|
7283
7329
|
let setup = boot.setup;
|
|
7330
|
+
setPrimaryHost(boot.setup?.github);
|
|
7284
7331
|
let showSetup = !!boot.setup && !boot.setup.ready && boot.prefs["setup-later"] !== "1";
|
|
7285
7332
|
let error = null;
|
|
7286
7333
|
const applyWorkspaces = _resume((list) => {
|
|
@@ -7518,31 +7565,31 @@ var page_boot_default = _template("n", (input) => {
|
|
|
7518
7565
|
_script($scope0_id, "n25");
|
|
7519
7566
|
writeScope($scope0_id, {
|
|
7520
7567
|
l: boot?.prefs,
|
|
7521
|
-
|
|
7522
|
-
|
|
7523
|
-
|
|
7524
|
-
|
|
7525
|
-
|
|
7526
|
-
|
|
7527
|
-
|
|
7528
|
-
|
|
7529
|
-
|
|
7530
|
-
|
|
7531
|
-
|
|
7532
|
-
|
|
7533
|
-
|
|
7534
|
-
|
|
7535
|
-
|
|
7536
|
-
|
|
7537
|
-
|
|
7538
|
-
|
|
7539
|
-
|
|
7540
|
-
|
|
7541
|
-
|
|
7542
|
-
|
|
7543
|
-
|
|
7544
|
-
|
|
7545
|
-
|
|
7568
|
+
q: workspaces,
|
|
7569
|
+
r: status,
|
|
7570
|
+
s: settings,
|
|
7571
|
+
v: selectedId,
|
|
7572
|
+
w: openIds,
|
|
7573
|
+
z: creating,
|
|
7574
|
+
a0: setup,
|
|
7575
|
+
a1: showSetup,
|
|
7576
|
+
a3: error,
|
|
7577
|
+
a4: applyWorkspaces,
|
|
7578
|
+
a5: load,
|
|
7579
|
+
a6: patchStatusSessions,
|
|
7580
|
+
a8: statusMem.fresh,
|
|
7581
|
+
a9: statusMem.run,
|
|
7582
|
+
ab: loadStatus,
|
|
7583
|
+
ac: openWorkspace,
|
|
7584
|
+
ak: $error__closures,
|
|
7585
|
+
ae: $workspaces__closures,
|
|
7586
|
+
af: $status__closures,
|
|
7587
|
+
ag: $settings__closures,
|
|
7588
|
+
ah: $selectedId__closures,
|
|
7589
|
+
ai: $creating__closures,
|
|
7590
|
+
aj: $setup2__closures,
|
|
7591
|
+
al: $applyWorkspaces2__closures,
|
|
7592
|
+
am: $openWorkspace2__closures
|
|
7546
7593
|
});
|
|
7547
7594
|
_resume_branch($scope0_id);
|
|
7548
7595
|
});
|
|
@@ -8875,7 +8922,8 @@ var Body = /* @__PURE__ */ object({
|
|
|
8875
8922
|
"install",
|
|
8876
8923
|
"update",
|
|
8877
8924
|
"remove",
|
|
8878
|
-
"auth"
|
|
8925
|
+
"auth",
|
|
8926
|
+
"logout"
|
|
8879
8927
|
]),
|
|
8880
8928
|
version: /* @__PURE__ */ optional(/* @__PURE__ */ string())
|
|
8881
8929
|
});
|
|
@@ -15000,4 +15048,4 @@ server.listen(port, () => {
|
|
|
15000
15048
|
//#endregion
|
|
15001
15049
|
export {};
|
|
15002
15050
|
|
|
15003
|
-
;var __MARKO_MANIFEST__={"esfPH6H":{"block":[2,"stylesheet#/assets/index-
|
|
15051
|
+
;var __MARKO_MANIFEST__={"esfPH6H":{"block":[2,"stylesheet#/assets/index-DdvzAbHa.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/index-DdvzAbHa.css\"",">"],"defer":[2,"/assets/index-D9hzDezQ.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/index-D9hzDezQ.js\"","></script>"]}};
|