@dylanpiercey/work 0.0.57 → 0.0.58
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 +8 -13
- package/dist/{_DFLVEzHW.js → _BejZlkF2.js} +7 -2
- package/dist/_C_Ufy3TH.js +2 -0
- package/dist/{_w176gAgg.js → _Cb3KjoHw.js} +4 -4
- package/dist/{_FtnOihLp.js → _DvTZBSt5.js} +58 -58
- package/dist/index.mjs +181 -162
- package/dist/public/assets/{_DHHUcj7y.js → _2eGBqq7u.js} +1 -1
- package/dist/public/assets/_2eGBqq7u.js.br +0 -0
- package/dist/public/assets/{_DCOTsdST.js → _2enE2mXk.js} +1 -1
- package/dist/public/assets/_2enE2mXk.js.br +0 -0
- package/dist/public/assets/{_5Iu7-7Yu.js → _4nL2uQpg.js} +1 -1
- package/dist/public/assets/_4nL2uQpg.js.br +0 -0
- package/dist/public/assets/{_C0G6dH_3.js → _B1vDwe3h.js} +1 -1
- package/dist/public/assets/_B1vDwe3h.js.br +0 -0
- package/dist/public/assets/{_Cb49FSPc.js → _BDLl6zCb.js} +1 -1
- package/dist/public/assets/_BDLl6zCb.js.br +0 -0
- package/dist/public/assets/{_1fi3_epC2.js → _BEiHICL92.js} +1 -1
- package/dist/public/assets/_BEiHICL92.js.br +0 -0
- package/dist/public/assets/{_DdxTeNA9.js → _BJsj50u-.js} +1 -1
- package/dist/public/assets/_BJsj50u-.js.br +0 -0
- package/dist/public/assets/{_2eNsNaYO2.js → _BPUzMj1d2.js} +1 -1
- package/dist/public/assets/{_DrnyAK_d.js → _BROdi7Gp.js} +1 -1
- package/dist/public/assets/_BROdi7Gp.js.br +0 -0
- package/dist/public/assets/{_D4j2b-Sq.js → _BUbGUBWq.js} +1 -1
- package/dist/public/assets/_BUbGUBWq.js.br +0 -0
- package/dist/public/assets/{_BE7DCCdk.js → _BWEYGWEd.js} +1 -1
- package/dist/public/assets/_BWEYGWEd.js.br +0 -0
- package/dist/public/assets/{_Y34IZ-eE.js → _BWZ5PUEV.js} +1 -1
- package/dist/public/assets/_BWZ5PUEV.js.br +0 -0
- package/dist/public/assets/{_9MQkmzyB.js → _BX-7KyDA.js} +1 -1
- package/dist/public/assets/_BX-7KyDA.js.br +0 -0
- package/dist/public/assets/{_DtPDIeZK2.js → _BXMs216Y2.js} +1 -1
- package/dist/public/assets/_BXMs216Y2.js.br +0 -0
- package/dist/public/assets/{_MTTPoEES.js → _BX_wL0YE.js} +1 -1
- package/dist/public/assets/_BX_wL0YE.js.br +0 -0
- package/dist/public/assets/{_GL3cIFCF.js → _Bb3yoWYL.js} +1 -1
- package/dist/public/assets/_Bb3yoWYL.js.br +0 -0
- package/dist/public/assets/{_fnxdmnrX2.js → _BbqCJvNQ2.js} +1 -1
- package/dist/public/assets/_BbqCJvNQ2.js.br +0 -0
- package/dist/public/assets/{_9hZUx9rh2.js → _Bcfy36362.js} +1 -1
- package/dist/public/assets/{_BwLUD1-V.js → _BcxfZRD_.js} +1 -1
- package/dist/public/assets/_BcxfZRD_.js.br +0 -0
- package/dist/public/assets/{_CerTd-Ge.js → _BsIllTK-.js} +1 -1
- package/dist/public/assets/_BsIllTK-.js.br +0 -0
- package/dist/public/assets/{_DU8wr53F.js → _BsqNUn4o.js} +1 -1
- package/dist/public/assets/_BsqNUn4o.js.br +0 -0
- package/dist/public/assets/{_CEPbJDCZ2.js → _C16-D_Ch2.js} +1 -1
- package/dist/public/assets/_C16-D_Ch2.js.br +0 -0
- package/dist/public/assets/{_Dfp4rDzR.js → _C5UB-NsT.js} +1 -1
- package/dist/public/assets/{_DgPtL3nO2.js → _C7rg8vAk2.js} +1 -1
- package/dist/public/assets/_C7rg8vAk2.js.br +0 -0
- package/dist/public/assets/{_BTSelz322.js → _CABt3f9f2.js} +1 -1
- package/dist/public/assets/_CABt3f9f2.js.br +0 -0
- package/dist/public/assets/{_8SEHbP04.js → _CR2XV8hm.js} +1 -1
- package/dist/public/assets/_CR2XV8hm.js.br +0 -0
- package/dist/public/assets/{_cNK-MYFz.js → _CTObmQlY.js} +1 -1
- package/dist/public/assets/_CTObmQlY.js.br +0 -0
- package/dist/public/assets/{_BFI_GEk72.js → _CUrj0V6l2.js} +1 -1
- package/dist/public/assets/_CUrj0V6l2.js.br +0 -0
- package/dist/public/assets/{_ChH_lxP0.js → _CV_Ae5Rk.js} +1 -1
- package/dist/public/assets/_CV_Ae5Rk.js.br +0 -0
- package/dist/public/assets/{_Ch0jJRpF2.js → _CkGun6pW2.js} +1 -1
- package/dist/public/assets/_CkGun6pW2.js.br +0 -0
- package/dist/public/assets/{_PDPd6X9w.js → _CnQ1qTVp.js} +1 -1
- package/dist/public/assets/_CnQ1qTVp.js.br +0 -0
- package/dist/public/assets/{_BVgN-hoS2.js → _CoSL1kZW2.js} +1 -1
- package/dist/public/assets/_CoSL1kZW2.js.br +0 -0
- package/dist/public/assets/{_ynedISZP.js → _CogE7pQW.js} +1 -1
- package/dist/public/assets/_CogE7pQW.js.br +0 -0
- package/dist/public/assets/{_D6yFaFbX2.js → _Cs_cvN1j2.js} +1 -1
- package/dist/public/assets/_Cs_cvN1j2.js.br +0 -0
- package/dist/public/assets/{_Dmu0qP4E2.js → _Cw2Yp_cn2.js} +1 -1
- package/dist/public/assets/_Cw2Yp_cn2.js.br +0 -0
- package/dist/public/assets/{_GFh_4VnR.js → _CwmnUEmm.js} +1 -1
- package/dist/public/assets/_CwmnUEmm.js.br +0 -0
- package/dist/public/assets/{_wc0iQVbg.js → _CxKhvkgU.js} +1 -1
- package/dist/public/assets/_CxKhvkgU.js.br +0 -0
- package/dist/public/assets/{_B_XtpOB4.js → _D3ekmaa_.js} +1 -1
- package/dist/public/assets/_D3ekmaa_.js.br +0 -0
- package/dist/public/assets/{_ZYMh934D2.js → _D5QR-lwA2.js} +1 -1
- package/dist/public/assets/_D5QR-lwA2.js.br +0 -0
- package/dist/public/assets/{_B4kzyFEk2.js → _D67E_AcU2.js} +1 -1
- package/dist/public/assets/_D67E_AcU2.js.br +0 -0
- package/dist/public/assets/{_BDAJLqcL.js → _DEBVsO__.js} +1 -1
- package/dist/public/assets/_DEBVsO__.js.br +0 -0
- package/dist/public/assets/{_we6oEKqn.js → _DGChusXS.js} +1 -1
- package/dist/public/assets/_DGChusXS.js.br +0 -0
- package/dist/public/assets/{_C7Sxjw9-2.js → _DHQA_xFp2.js} +1 -1
- package/dist/public/assets/_DHQA_xFp2.js.br +0 -0
- package/dist/public/assets/{_B2LynlWb2.js → _DSCzozlR2.js} +1 -1
- package/dist/public/assets/_DSCzozlR2.js.br +0 -0
- package/dist/public/assets/{_DFb-bc2g.js → _DTQJWxJ3.js} +1 -1
- package/dist/public/assets/_DTQJWxJ3.js.br +0 -0
- package/dist/public/assets/{_zkD43Znp.js → _DW30hPqj.js} +5 -5
- package/dist/public/assets/_DW30hPqj.js.br +0 -0
- package/dist/public/assets/{_CLNzU4Fu2.js → _DYoRFUu32.js} +1 -1
- package/dist/public/assets/_DYoRFUu32.js.br +0 -0
- package/dist/public/assets/{_B2hrD7F7.js → _D_Ht0sHB.js} +1 -1
- package/dist/public/assets/_D_Ht0sHB.js.br +0 -0
- package/dist/public/assets/{_JaDTz4Zd.js → _DbAtKX6v.js} +1 -1
- package/dist/public/assets/_DbAtKX6v.js.br +0 -0
- package/dist/public/assets/{_Cyj2M_On2.js → _Dcepauhq2.js} +1 -1
- package/dist/public/assets/_Dcepauhq2.js.br +0 -0
- package/dist/public/assets/{_CV_YENib.js → _DdkVC_L3.js} +1 -1
- package/dist/public/assets/_DdkVC_L3.js.br +0 -0
- package/dist/public/assets/{_CFmJjroU.js → _De-u8h72.js} +1 -1
- package/dist/public/assets/_De-u8h72.js.br +0 -0
- package/dist/public/assets/{_CwTH8KQI.js → _DgowXRep.js} +1 -1
- package/dist/public/assets/_DgowXRep.js.br +0 -0
- package/dist/public/assets/{_eYTm2vWj.js → _Donn4ZV3.js} +1 -1
- package/dist/public/assets/_Donn4ZV3.js.br +0 -0
- package/dist/public/assets/{_T9SFwu6g.js → _DuBgsDGT.js} +1 -1
- package/dist/public/assets/_DuBgsDGT.js.br +0 -0
- package/dist/public/assets/{_1wDweXVz.js → _Dylxmxf9.js} +1 -1
- package/dist/public/assets/_Dylxmxf9.js.br +0 -0
- package/dist/public/assets/{_Cze8y5Dt.js → _DyraSGWg.js} +1 -1
- package/dist/public/assets/_DyraSGWg.js.br +0 -0
- package/dist/public/assets/{_HaM1Jlk_.js → _FcsxOYFa.js} +1 -1
- package/dist/public/assets/_FcsxOYFa.js.br +0 -0
- package/dist/public/assets/{_CQppsb6k2.js → _FrhVGlkX2.js} +1 -1
- package/dist/public/assets/_FrhVGlkX2.js.br +0 -0
- package/dist/public/assets/{_6T4AyNhc.js → _GT3_DJs7.js} +1 -1
- package/dist/public/assets/_GT3_DJs7.js.br +0 -0
- package/dist/public/assets/{__KJ088ly.js → _Gc8cRUIR.js} +1 -1
- package/dist/public/assets/_Gc8cRUIR.js.br +0 -0
- package/dist/public/assets/{_B9I0gYKr.js → _TYzcqd7s.js} +1 -1
- package/dist/public/assets/_TYzcqd7s.js.br +0 -0
- package/dist/public/assets/{_DoRfBKHD2.js → _Vhemgosw2.js} +1 -1
- package/dist/public/assets/_Vhemgosw2.js.br +0 -0
- package/dist/public/assets/{_D-cnMUsr2.js → _WO60AwgK2.js} +1 -1
- package/dist/public/assets/_WO60AwgK2.js.br +0 -0
- package/dist/public/assets/{_C5ycl8bH.js → __dsfQUPl.js} +1 -1
- package/dist/public/assets/__dsfQUPl.js.br +0 -0
- package/dist/public/assets/{_BeVJhIuF2.js → _aTBAqWUi2.js} +1 -1
- package/dist/public/assets/_aTBAqWUi2.js.br +0 -0
- package/dist/public/assets/{_DSCr8lsq.js → _eHliiA8e.js} +1 -1
- package/dist/public/assets/_eHliiA8e.js.br +0 -0
- package/dist/public/assets/{_D2U5c8OX.js → _h97mmeY5.js} +1 -1
- package/dist/public/assets/_h97mmeY5.js.br +0 -0
- package/dist/public/assets/{_Cdh1RpOT.js → _ok38vxPs.js} +1 -1
- package/dist/public/assets/_ok38vxPs.js.br +0 -0
- package/dist/public/assets/{_BnarL5fN.js → _rYS8Jg7q.js} +1 -1
- package/dist/public/assets/_rYS8Jg7q.js.br +0 -0
- package/dist/public/assets/{_CMh1B9b2.js → _rz4NzBjK.js} +1 -1
- package/dist/public/assets/_rz4NzBjK.js.br +0 -0
- package/dist/public/assets/{_Bwsljc8D.js → _sMuZrVfM.js} +1 -1
- package/dist/public/assets/_sMuZrVfM.js.br +3 -0
- package/dist/public/assets/{_jzPvuV0O.js → _uKbtpQux.js} +1 -1
- package/dist/public/assets/_uKbtpQux.js.br +0 -0
- package/dist/public/assets/{_BtfQL6MC.js → _vooPnW75.js} +1 -1
- package/dist/public/assets/_vooPnW75.js.br +0 -0
- package/dist/public/assets/{_BqVZXi4B2.js → _xriTRTEq2.js} +1 -1
- package/dist/public/assets/_xriTRTEq2.js.br +0 -0
- package/dist/public/assets/diff-view-C1EWWWXL.css +1 -0
- package/dist/public/assets/diff-view-C1EWWWXL.css.br +0 -0
- package/dist/public/assets/{index-CxFTRVMW.js → index-CMhO9RSz.js} +3 -3
- package/dist/public/assets/index-CMhO9RSz.js.br +0 -0
- package/dist/public/assets/{index-BVwzVz2z.css → index-I2jhJMJc.css} +1 -1
- package/dist/public/assets/index-I2jhJMJc.css.br +0 -0
- package/install.sh +3 -3
- 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 _id, A as _attr_class, B as _content, C as iconBtnXs, D as tone, E as phase, F as _attr_select_value, G as _el_resume, H as _dynamic_tag, I as _attr_style, J as _flush_head, K as _escape, L as _attrs, M as _attr_input_value, N as _attr_option_value, O as $global, P as _attr_or, Q as _html, R as _attrs_partial, S as iconBtnRow, St as writeScope, T as metaTrunc, V as _content_resume, W as _el_read_error, X as _hoist, Y as _for_of, Z as _hoist_read_error, _ as sectionCount$1, _t as _trailers, at as _scope_reason, b as btnSm, bt as attrTag, c as sideNavOpen, ct as _sep, d as rankRepos, dt as _set_serialize_reason, et as _if, f as icon_back_default, ft as _show_end, g as row, gt as _to_text, h as iconBtn$2, ht as _template, i as icon_sidebar_default, it as _scope_id, k as _attr, l as workspaceTab, lt as _serialize_guard, m as icon_base_default, mt as _subscribe, n as findIconBtn, nt as _resume, ot as _scope_with_id, p as icon_refresh_default, pt as _show_start, q as _existing_scope, r as findInput, rt as _resume_branch, s as setWorkspaceTab, st as _script, tt as _peek_scope_id, ut as _serialize_if, v as toast_default, vt as _try, w as inputLg, xt as withPageAssets, y as btnLg, yt as _var, z as _await } from "./
|
|
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 _id, A as _attr_class, B as _content, C as iconBtnXs, D as tone, E as phase, F as _attr_select_value, G as _el_resume, H as _dynamic_tag, I as _attr_style, J as _flush_head, K as _escape, L as _attrs, M as _attr_input_value, N as _attr_option_value, O as $global, P as _attr_or, Q as _html, R as _attrs_partial, S as iconBtnRow, St as writeScope, T as metaTrunc, V as _content_resume, W as _el_read_error, X as _hoist, Y as _for_of, Z as _hoist_read_error, _ as sectionCount$1, _t as _trailers, at as _scope_reason, b as btnSm, bt as attrTag, c as sideNavOpen, ct as _sep, d as rankRepos, dt as _set_serialize_reason, et as _if, f as icon_back_default, ft as _show_end, g as row, gt as _to_text, h as iconBtn$2, ht as _template, i as icon_sidebar_default, it as _scope_id, k as _attr, l as workspaceTab, lt as _serialize_guard, m as icon_base_default, mt as _subscribe, n as findIconBtn, nt as _resume, ot as _scope_with_id, p as icon_refresh_default, pt as _show_start, q as _existing_scope, r as findInput, rt as _resume_branch, s as setWorkspaceTab, st as _script, tt as _peek_scope_id, ut as _serialize_if, v as toast_default, vt as _try, w as inputLg, xt as withPageAssets, y as btnLg, yt as _var, z as _await } from "./_Cb3KjoHw.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
import path from "node:path";
|
|
@@ -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",
|
|
@@ -2903,6 +2921,7 @@ async function runSetupAction(id, action, opts = {}) {
|
|
|
2903
2921
|
if (action === "auth") {
|
|
2904
2922
|
await authGithub(id, { log });
|
|
2905
2923
|
forgetToken(id);
|
|
2924
|
+
await ensureGitCredentials(id);
|
|
2906
2925
|
return;
|
|
2907
2926
|
}
|
|
2908
2927
|
if (id === "mise") {
|
|
@@ -3085,15 +3104,15 @@ function agentFromCommand(command) {
|
|
|
3085
3104
|
}
|
|
3086
3105
|
//#endregion
|
|
3087
3106
|
//#region src/tags/settings-page.css.ts
|
|
3088
|
-
var content$2 = "
|
|
3089
|
-
var agentGrid = "
|
|
3090
|
-
var toolGrid = "
|
|
3107
|
+
var content$2 = "_bZ _bd _be";
|
|
3108
|
+
var agentGrid = "_b3 _bo";
|
|
3109
|
+
var toolGrid = "_cb _bo";
|
|
3091
3110
|
//#endregion
|
|
3092
3111
|
//#region src/tags/page-head.marko
|
|
3093
3112
|
var page_head_default = _template("o", (input) => {
|
|
3094
3113
|
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
3114
|
const $scope0_id = _scope_id();
|
|
3096
|
-
_html(`<header${_attr_class("
|
|
3115
|
+
_html(`<header${_attr_class("_bf")}>`);
|
|
3097
3116
|
_if(() => {
|
|
3098
3117
|
if (input.onBack) {
|
|
3099
3118
|
const $scope1_id = _scope_id();
|
|
@@ -3105,11 +3124,11 @@ var page_head_default = _template("o", (input) => {
|
|
|
3105
3124
|
return 0;
|
|
3106
3125
|
}
|
|
3107
3126
|
}, $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("
|
|
3127
|
+
_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
3128
|
_if(() => {
|
|
3110
3129
|
if (input.meta) {
|
|
3111
3130
|
const $scope2_id = _scope_id();
|
|
3112
|
-
_html(`<p${_attr_class("
|
|
3131
|
+
_html(`<p${_attr_class("_bi")}>`);
|
|
3113
3132
|
_dynamic_tag($scope2_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
3114
3133
|
_html("</p>");
|
|
3115
3134
|
$si__input_meta && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -3120,7 +3139,7 @@ var page_head_default = _template("o", (input) => {
|
|
|
3120
3139
|
_if(() => {
|
|
3121
3140
|
if (input.actions) {
|
|
3122
3141
|
const $scope3_id = _scope_id();
|
|
3123
|
-
_html(`<div${_attr_class("
|
|
3142
|
+
_html(`<div${_attr_class("_bj")}>`);
|
|
3124
3143
|
_dynamic_tag($scope3_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
3125
3144
|
_html("</div>");
|
|
3126
3145
|
$si__input_actions && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -3194,7 +3213,7 @@ var icon_agent_default = _template("A", (input) => {
|
|
|
3194
3213
|
n: $badge__closures
|
|
3195
3214
|
});
|
|
3196
3215
|
});
|
|
3197
|
-
var usageNote = "
|
|
3216
|
+
var usageNote = "_eC _M";
|
|
3198
3217
|
//#endregion
|
|
3199
3218
|
//#region src/tags/usage-meters.marko
|
|
3200
3219
|
function duration(ms) {
|
|
@@ -3218,11 +3237,11 @@ var usage_meters_default = _template("y", (input) => {
|
|
|
3218
3237
|
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
3238
|
const $scope0_id = _scope_id();
|
|
3220
3239
|
const agent = input.agent;
|
|
3221
|
-
_html(`<div${_attr_class(["
|
|
3240
|
+
_html(`<div${_attr_class(["_ew", { ["_ex"]: input.hideName }])}><div${_attr_class("_ey")}>`);
|
|
3222
3241
|
_if(() => {
|
|
3223
3242
|
if (!input.hideName) {
|
|
3224
3243
|
const $scope1_id = _scope_id();
|
|
3225
|
-
_html(`<strong${_attr_class("
|
|
3244
|
+
_html(`<strong${_attr_class("_eR")}>${_escape(agent.agent)}${_el_resume($scope1_id, "b", $sg__input_agent)}</strong>`);
|
|
3226
3245
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
3227
3246
|
return 0;
|
|
3228
3247
|
}
|
|
@@ -3230,7 +3249,7 @@ var usage_meters_default = _template("y", (input) => {
|
|
|
3230
3249
|
_if(() => {
|
|
3231
3250
|
if (agent.plan) {
|
|
3232
3251
|
const $scope2_id = _scope_id();
|
|
3233
|
-
_html(`<span${_attr_class("
|
|
3252
|
+
_html(`<span${_attr_class("_ez")}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope2_id, "b", $sg__input_agent)}</span>`);
|
|
3234
3253
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
3235
3254
|
return 0;
|
|
3236
3255
|
}
|
|
@@ -3238,19 +3257,19 @@ var usage_meters_default = _template("y", (input) => {
|
|
|
3238
3257
|
_if(() => {
|
|
3239
3258
|
if (agent.stale_seconds != null) {
|
|
3240
3259
|
const $scope3_id = _scope_id();
|
|
3241
|
-
_html(`<span${_attr_class("
|
|
3260
|
+
_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
3261
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
3243
3262
|
return 0;
|
|
3244
3263
|
}
|
|
3245
3264
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
3246
|
-
_html(`</div><div${_attr_class(["
|
|
3265
|
+
_html(`</div><div${_attr_class(["_eB", { ["_eS"]: agent.stale_seconds != null }])}>`);
|
|
3247
3266
|
_for_of(agent.windows || [], (win) => {
|
|
3248
3267
|
const $scope4_id = _scope_id();
|
|
3249
3268
|
const pct = pctText(win.used_percent);
|
|
3250
3269
|
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("
|
|
3270
|
+
const fillClass = win.used_percent >= 90 ? "_eK" : win.used_percent >= 70 ? "_eJ" : win.used_percent >= 40 ? "_eI" : "_eH";
|
|
3271
|
+
const pctClass = win.used_percent >= 90 ? "_eP" : win.used_percent >= 70 ? "_eO" : win.used_percent >= 40 ? "_eN" : "_eM";
|
|
3272
|
+
_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
3273
|
$si__input_agent && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
3255
3274
|
}, "window", $scope0_id, "g", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
3256
3275
|
_if(() => {
|
|
@@ -3292,7 +3311,7 @@ var modal_view_default = _template("l", (input) => {
|
|
|
3292
3311
|
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
3312
|
const dismissable = input.dismissable !== false;
|
|
3294
3313
|
let open = input.open;
|
|
3295
|
-
_html(`<dialog${_attr_class(["
|
|
3314
|
+
_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
3315
|
...htmlInput,
|
|
3297
3316
|
open: null
|
|
3298
3317
|
}, {
|
|
@@ -3302,20 +3321,20 @@ var modal_view_default = _template("l", (input) => {
|
|
|
3302
3321
|
closedby: 1,
|
|
3303
3322
|
"on-cancel": 1,
|
|
3304
3323
|
"on-close": 1
|
|
3305
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
3324
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_f0")}>`);
|
|
3306
3325
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
3307
3326
|
_html("</div>");
|
|
3308
3327
|
_if(() => {
|
|
3309
3328
|
if (footer) {
|
|
3310
3329
|
const $scope1_id = _scope_id();
|
|
3311
|
-
_html(`<form method=dialog${_attr_class("
|
|
3330
|
+
_html(`<form method=dialog${_attr_class("_f1")}>`);
|
|
3312
3331
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
3313
3332
|
_html("</form>");
|
|
3314
3333
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
3315
3334
|
return 0;
|
|
3316
3335
|
} else if (input.openChange) {
|
|
3317
3336
|
const $scope2_id = _scope_id();
|
|
3318
|
-
_html(`<form method=dialog${_attr_class("
|
|
3337
|
+
_html(`<form method=dialog${_attr_class("_f1")}>`);
|
|
3319
3338
|
dialog_close_default({
|
|
3320
3339
|
class: ["_i", "_j"],
|
|
3321
3340
|
content: _content("l0", () => {
|
|
@@ -3374,7 +3393,7 @@ var prompt_dialog_default = _template("p", (input) => {
|
|
|
3374
3393
|
const $childScope = _peek_scope_id();
|
|
3375
3394
|
modal_view_default({
|
|
3376
3395
|
label: input.label,
|
|
3377
|
-
class: "
|
|
3396
|
+
class: "_eu",
|
|
3378
3397
|
open: input.open,
|
|
3379
3398
|
openChange: input.openChange,
|
|
3380
3399
|
"aria-labelledby": titleId,
|
|
@@ -3397,7 +3416,7 @@ var prompt_dialog_default = _template("p", (input) => {
|
|
|
3397
3416
|
content: _content("p6", () => {
|
|
3398
3417
|
_scope_reason();
|
|
3399
3418
|
const $scope2_id = _scope_id();
|
|
3400
|
-
_html(`<h2${_attr_class("
|
|
3419
|
+
_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
3420
|
value = _new_value;
|
|
3402
3421
|
}, "p0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
3403
3422
|
_script($scope2_id, "p4");
|
|
@@ -3632,7 +3651,7 @@ var settings_page_default = _template("r", (input) => {
|
|
|
3632
3651
|
const strayAccountsFor = _resume((f) => (usage?.agents || []).filter((u) => !instanceIds.has(u.agent) && familyOf(u.agent, families) === f.id), "r16", $scope0_id);
|
|
3633
3652
|
const otherUsage = (usage?.agents || []).filter((u) => familyOf(u.agent, families) === null);
|
|
3634
3653
|
const titleId = _id();
|
|
3635
|
-
_html(`<div${_attr_class("
|
|
3654
|
+
_html(`<div${_attr_class("_bb")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bc")}><div${_attr_class(content$2)}>`);
|
|
3636
3655
|
_set_serialize_reason({
|
|
3637
3656
|
0: $sg__input_onExit,
|
|
3638
3657
|
1: $sg__input_onExit,
|
|
@@ -3654,12 +3673,12 @@ var settings_page_default = _template("r", (input) => {
|
|
|
3654
3673
|
return 0;
|
|
3655
3674
|
} else if (setup.ready) {
|
|
3656
3675
|
const $scope42_id = _scope_id();
|
|
3657
|
-
_html(`<span${_attr_class("
|
|
3676
|
+
_html(`<span${_attr_class("_b1")}>Ready</span> — tools, GitHub, and an agent are all in place.`);
|
|
3658
3677
|
writeScope($scope42_id, {});
|
|
3659
3678
|
return 1;
|
|
3660
3679
|
} else {
|
|
3661
3680
|
const $scope5_id = _scope_id();
|
|
3662
|
-
_html(`<span${_attr_class("
|
|
3681
|
+
_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
3682
|
_subscribe($setup_missing__closures, writeScope($scope5_id, {}));
|
|
3664
3683
|
return 2;
|
|
3665
3684
|
}
|
|
@@ -3706,11 +3725,11 @@ var settings_page_default = _template("r", (input) => {
|
|
|
3706
3725
|
return 0;
|
|
3707
3726
|
}
|
|
3708
3727
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
3709
|
-
_html(`<section${_attr_class("
|
|
3728
|
+
_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
3729
|
_attr_select_value($scope0_id, "m", input.preferred, _resume(function(v) {
|
|
3711
3730
|
setPreferred(v);
|
|
3712
3731
|
}, "r0", $scope0_id), () => {
|
|
3713
|
-
_html(`<select${_attr_class(["_h", "
|
|
3732
|
+
_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
3733
|
_for_of(input.agents.filter((a) => a !== "shell"), (id) => {
|
|
3715
3734
|
const $scope43_id = _scope_id();
|
|
3716
3735
|
_html(`<option${_attr_option_value(id)}>${_escape(agentLabel(id))}${_el_resume($scope43_id, "b", $sg__input_agents)}</option>${_el_resume($scope43_id, "a", $sg__input_agents)}`);
|
|
@@ -3731,14 +3750,14 @@ var settings_page_default = _template("r", (input) => {
|
|
|
3731
3750
|
const rows = lone ? [] : a.instances;
|
|
3732
3751
|
const loneAccounts = lone && lone.enabled ? accountsFor(lone.id) : [];
|
|
3733
3752
|
const extraAccounts = strayAccountsFor(a);
|
|
3734
|
-
_html(`<li${_attr_class(["
|
|
3753
|
+
_html(`<li${_attr_class(["_bq", "_b4"])}><div${_attr_class("_b7")}>`);
|
|
3735
3754
|
_set_serialize_reason(12);
|
|
3736
3755
|
const $childScope4 = _peek_scope_id();
|
|
3737
3756
|
icon_agent_default({
|
|
3738
3757
|
agent: a.id,
|
|
3739
3758
|
size: 18
|
|
3740
3759
|
});
|
|
3741
|
-
_html(`<div${_attr_class("
|
|
3760
|
+
_html(`<div${_attr_class("_br")}><span${_attr_class("_bt")}><span${_attr_class("_bs")}>${_escape(a.label)}${_el_resume($scope1_id, "g")}</span>`);
|
|
3742
3761
|
_if(() => {
|
|
3743
3762
|
if (lone && input.preferred === lone.id) {
|
|
3744
3763
|
const $scope44_id = _scope_id();
|
|
@@ -3751,12 +3770,12 @@ var settings_page_default = _template("r", (input) => {
|
|
|
3751
3770
|
_if(() => {
|
|
3752
3771
|
if (active.has(a.id)) {
|
|
3753
3772
|
const $scope10_id = _scope_id();
|
|
3754
|
-
_html(`<span${_attr_class("
|
|
3773
|
+
_html(`<span${_attr_class("_b0")}><span${_attr_class("_z")}></span><!>${_escape(active.get(a.id) || "Starting…")}${_el_resume($scope10_id, "c")}</span>`);
|
|
3755
3774
|
_subscribe($active__closures, writeScope($scope10_id, {}));
|
|
3756
3775
|
return 0;
|
|
3757
3776
|
} else if (!a.installed) {
|
|
3758
3777
|
const $scope45_id = _scope_id();
|
|
3759
|
-
_html(`<span${_attr_class("
|
|
3778
|
+
_html(`<span${_attr_class("_bu")}>Not installed</span>`);
|
|
3760
3779
|
writeScope($scope45_id, {});
|
|
3761
3780
|
return 1;
|
|
3762
3781
|
}
|
|
@@ -3788,18 +3807,18 @@ var settings_page_default = _template("r", (input) => {
|
|
|
3788
3807
|
_if(() => {
|
|
3789
3808
|
if (rows.length || loneAccounts.length || extraAccounts.length) {
|
|
3790
3809
|
const $scope2_id = _scope_id();
|
|
3791
|
-
_html(`<ul${_attr_class("
|
|
3810
|
+
_html(`<ul${_attr_class("_ca")}>`);
|
|
3792
3811
|
_for_of(rows, (inst) => {
|
|
3793
3812
|
const $scope3_id = _scope_id();
|
|
3794
3813
|
const accounts = inst.enabled ? accountsFor(inst.id) : [];
|
|
3795
|
-
_html(`<li${_attr_class("
|
|
3814
|
+
_html(`<li${_attr_class("_b8")}><div${_attr_class("_b9")}>`);
|
|
3796
3815
|
_set_serialize_reason(12);
|
|
3797
3816
|
const $childScope5 = _peek_scope_id();
|
|
3798
3817
|
icon_agent_default({
|
|
3799
3818
|
agent: inst.id,
|
|
3800
3819
|
size: 15
|
|
3801
3820
|
});
|
|
3802
|
-
_html(`<span${_attr_class(["
|
|
3821
|
+
_html(`<span${_attr_class(["_b_", "_r"])}>${_escape(inst.command)}${_el_resume($scope3_id, "e")}</span>`);
|
|
3803
3822
|
_if(() => {
|
|
3804
3823
|
if (input.preferred === inst.id) {
|
|
3805
3824
|
const $scope46_id = _scope_id();
|
|
@@ -3874,7 +3893,7 @@ var settings_page_default = _template("r", (input) => {
|
|
|
3874
3893
|
}, "id", $scope0_id, "q", 1, 1, 1, 0, 1);
|
|
3875
3894
|
_for_of(otherUsage, (u) => {
|
|
3876
3895
|
const $scope50_id = _scope_id();
|
|
3877
|
-
_html(`<li${_attr_class(["
|
|
3896
|
+
_html(`<li${_attr_class(["_bq", "_b4"])}>`);
|
|
3878
3897
|
_set_serialize_reason(6);
|
|
3879
3898
|
const $childScope9 = _peek_scope_id();
|
|
3880
3899
|
usage_meters_default({ agent: u });
|
|
@@ -3885,21 +3904,21 @@ var settings_page_default = _template("r", (input) => {
|
|
|
3885
3904
|
_if(() => {
|
|
3886
3905
|
if (!usage && families.length) {
|
|
3887
3906
|
const $scope51_id = _scope_id();
|
|
3888
|
-
_html(`<p${_attr_class("
|
|
3907
|
+
_html(`<p${_attr_class("_bw")}><span${_attr_class("_z")}></span> Loading usage…</p>`);
|
|
3889
3908
|
writeScope($scope51_id, {});
|
|
3890
3909
|
return 0;
|
|
3891
3910
|
} else if (usage?.error) {
|
|
3892
3911
|
const $scope6_id = _scope_id();
|
|
3893
|
-
_html(`<p${_attr_class("
|
|
3912
|
+
_html(`<p${_attr_class("_bw")}>${_escape(usage.error)}${_el_resume($scope6_id, "b")}</p>`);
|
|
3894
3913
|
writeScope($scope6_id, {});
|
|
3895
3914
|
return 1;
|
|
3896
3915
|
}
|
|
3897
3916
|
}, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
3898
|
-
_html(`</section><section${_attr_class("
|
|
3917
|
+
_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
3918
|
_for_of(setup?.github || [], (h) => {
|
|
3900
3919
|
const $scope11_id = _scope_id();
|
|
3901
3920
|
const $for_content3__h_host__closures = /* @__PURE__ */ new Set();
|
|
3902
|
-
_html(`<li${_attr_class("
|
|
3921
|
+
_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
3922
|
_if(() => {
|
|
3904
3923
|
if (h.isEnterprise) {
|
|
3905
3924
|
const $scope54_id = _scope_id();
|
|
@@ -3912,22 +3931,22 @@ var settings_page_default = _template("r", (input) => {
|
|
|
3912
3931
|
_if(() => {
|
|
3913
3932
|
if (active.has(h.host) && authCodes.has(h.host)) {
|
|
3914
3933
|
const $scope22_id = _scope_id();
|
|
3915
|
-
_html(`<span${_attr_class("
|
|
3934
|
+
_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
3935
|
_subscribe($authCodes__closures, writeScope($scope22_id, {}));
|
|
3917
3936
|
return 0;
|
|
3918
3937
|
} else if (active.has(h.host)) {
|
|
3919
3938
|
const $scope12_id = _scope_id();
|
|
3920
|
-
_html(`<span${_attr_class("
|
|
3939
|
+
_html(`<span${_attr_class("_b0")}><span${_attr_class("_z")}></span><!>${_escape(active.get(h.host) || "Starting…")}${_el_resume($scope12_id, "c")}</span>`);
|
|
3921
3940
|
_subscribe($active__closures, writeScope($scope12_id, { Ccg: 1 }));
|
|
3922
3941
|
return 1;
|
|
3923
3942
|
} else if (h.authed) {
|
|
3924
3943
|
const $scope52_id = _scope_id();
|
|
3925
|
-
_html(`<span${_attr_class("
|
|
3944
|
+
_html(`<span${_attr_class("_bu")}>Signed in<!>${h.user ? ` as ${_escape(`${_to_text(h.user)}`)}` : ""}${_el_resume($scope52_id, "b")}</span>`);
|
|
3926
3945
|
writeScope($scope52_id, {});
|
|
3927
3946
|
return 2;
|
|
3928
3947
|
} else {
|
|
3929
3948
|
const $scope53_id = _scope_id();
|
|
3930
|
-
_html(`<span${_attr_class("
|
|
3949
|
+
_html(`<span${_attr_class("_bu")}>${_escape(h.error || "Not signed in")}${_el_resume($scope53_id, "b")}</span>`);
|
|
3931
3950
|
writeScope($scope53_id, {});
|
|
3932
3951
|
return 3;
|
|
3933
3952
|
}
|
|
@@ -3949,7 +3968,7 @@ var settings_page_default = _template("r", (input) => {
|
|
|
3949
3968
|
if (h.isEnterprise) {
|
|
3950
3969
|
const $scope24_id = _scope_id();
|
|
3951
3970
|
_html(`<button${_attr_class([
|
|
3952
|
-
"
|
|
3971
|
+
"_bv",
|
|
3953
3972
|
"_T",
|
|
3954
3973
|
{ ["_k"]: confirmingRemove === h.host }
|
|
3955
3974
|
])}${confirmingRemove === h.host ? _attr("title", `Forget ${h.host}? (gh stays signed in)`) : _attr("title", `Forget ${h.host}`)}>${confirmingRemove === h.host ? "Forget?" : "×"}${_el_resume($scope24_id, "b")}</button>${_el_resume($scope24_id, "a")}`);
|
|
@@ -3975,7 +3994,7 @@ var settings_page_default = _template("r", (input) => {
|
|
|
3975
3994
|
_if(() => {
|
|
3976
3995
|
if (setup && !setup.github.length) {
|
|
3977
3996
|
const $scope55_id = _scope_id();
|
|
3978
|
-
_html(`<p${_attr_class("
|
|
3997
|
+
_html(`<p${_attr_class("_bw")}>Install the GitHub CLI below to sign in.</p>`);
|
|
3979
3998
|
writeScope($scope55_id, {});
|
|
3980
3999
|
return 0;
|
|
3981
4000
|
}
|
|
@@ -3983,13 +4002,13 @@ var settings_page_default = _template("r", (input) => {
|
|
|
3983
4002
|
_if(() => {
|
|
3984
4003
|
if (setup) {
|
|
3985
4004
|
const $scope32_id = _scope_id();
|
|
3986
|
-
_html(`<form${_attr_class("
|
|
4005
|
+
_html(`<form${_attr_class("_ch")}><input${_attr_input_value($scope32_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($scope32_id, "b")}<button${_attr_class(btnSm)} type=submit${_attr("disabled", !hostInput.trim() || hostBusy)}>${hostBusy ? "Adding…" : "Add host"}${_el_resume($scope32_id, "d")}</button>${_el_resume($scope32_id, "c")}</form>${_el_resume($scope32_id, "a")}`);
|
|
3987
4006
|
_script($scope32_id, "r30");
|
|
3988
4007
|
writeScope($scope32_id, {});
|
|
3989
4008
|
return 0;
|
|
3990
4009
|
}
|
|
3991
4010
|
}, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
3992
|
-
_html(`</section><section${_attr_class("
|
|
4011
|
+
_html(`</section><section${_attr_class("_bl")} aria-labelledby=settings-machine><div${_attr_class("_bm")}><h2 id=settings-machine${_attr_class("_bA")}>Machine</h2>`);
|
|
3993
4012
|
_if(() => {
|
|
3994
4013
|
if (missingCount) {
|
|
3995
4014
|
const $scope39_id = _scope_id();
|
|
@@ -4029,7 +4048,7 @@ var settings_page_default = _template("r", (input) => {
|
|
|
4029
4048
|
_if(() => {
|
|
4030
4049
|
if (setup && !setup.mise.installed) {
|
|
4031
4050
|
const $scope15_id = _scope_id();
|
|
4032
|
-
_html(`<p${_attr_class("
|
|
4051
|
+
_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>`);
|
|
4033
4052
|
_script($scope15_id, "r33");
|
|
4034
4053
|
writeScope($scope15_id, {});
|
|
4035
4054
|
return 0;
|
|
@@ -4043,11 +4062,11 @@ var settings_page_default = _template("r", (input) => {
|
|
|
4043
4062
|
const $for_content4__t_path__closures = /* @__PURE__ */ new Set();
|
|
4044
4063
|
const $for_content4__t_latest__closures = /* @__PURE__ */ new Set();
|
|
4045
4064
|
const $for_content4__t_id__closures = /* @__PURE__ */ new Set();
|
|
4046
|
-
_html(`<li${_attr_class([row, { ["
|
|
4065
|
+
_html(`<li${_attr_class([row, { ["_cc"]: !t.installed }])}><span${_attr_class(["_cd", "_r"])}>${_escape(t.label)}${_el_resume($scope16_id, "c")}</span>`);
|
|
4047
4066
|
_if(() => {
|
|
4048
4067
|
if (active.has(t.id)) {
|
|
4049
4068
|
const $scope17_id = _scope_id();
|
|
4050
|
-
_html(`<span${_attr_class("
|
|
4069
|
+
_html(`<span${_attr_class("_b0")}><span${_attr_class("_z")}></span><!>${_escape(active.get(t.id) || "Starting…")}${_el_resume($scope17_id, "c")}</span>`);
|
|
4051
4070
|
_subscribe($active__closures, writeScope($scope17_id, { Ccg: 2 }));
|
|
4052
4071
|
return 0;
|
|
4053
4072
|
} else if (t.installed) {
|
|
@@ -4055,7 +4074,7 @@ var settings_page_default = _template("r", (input) => {
|
|
|
4055
4074
|
_if(() => {
|
|
4056
4075
|
if (t.version) {
|
|
4057
4076
|
const $scope29_id = _scope_id();
|
|
4058
|
-
_html(`<button${_attr_class(["
|
|
4077
|
+
_html(`<button${_attr_class(["_ce", "_r"])}${_attr("title", `${t.path || t.label} — pin a version`)}>v<!>${_escape(t.version)}${_el_resume($scope29_id, "b")}</button>${_el_resume($scope29_id, "a")}`);
|
|
4059
4078
|
_script($scope29_id, "r34");
|
|
4060
4079
|
_subscribe($for_content4__t_path__closures, _subscribe($for_content4__t_version__closures, _subscribe($for_content4__t_label__closures, writeScope($scope29_id, { Cu: 1 }))));
|
|
4061
4080
|
return 0;
|
|
@@ -4069,7 +4088,7 @@ var settings_page_default = _template("r", (input) => {
|
|
|
4069
4088
|
_if(() => {
|
|
4070
4089
|
if (outdated(t)) {
|
|
4071
4090
|
const $scope36_id = _scope_id();
|
|
4072
|
-
_html(`<button${_attr_class([btnSm, "
|
|
4091
|
+
_html(`<button${_attr_class([btnSm, "_cf"])}${_attr("title", `Update to v${t.latest}`)}>↑ <!>${_escape(t.latest)}${_el_resume($scope36_id, "b")}</button>${_el_resume($scope36_id, "a")}`);
|
|
4073
4092
|
_script($scope36_id, "r35");
|
|
4074
4093
|
_subscribe($for_content4__t_latest__closures, writeScope($scope36_id, {}));
|
|
4075
4094
|
return 0;
|
|
@@ -4149,19 +4168,19 @@ var settings_page_default = _template("r", (input) => {
|
|
|
4149
4168
|
_if(() => {
|
|
4150
4169
|
if (hits && hits.length) {
|
|
4151
4170
|
const $scope19_id = _scope_id();
|
|
4152
|
-
_html(`<ul${_attr_class([toolGrid, "
|
|
4171
|
+
_html(`<ul${_attr_class([toolGrid, "_cg"])}>`);
|
|
4153
4172
|
_for_of(hits, (h) => {
|
|
4154
4173
|
const $scope20_id = _scope_id();
|
|
4155
|
-
_html(`<li${_attr_class(row)}><div${_attr_class("
|
|
4174
|
+
_html(`<li${_attr_class(row)}><div${_attr_class("_br")}><span${_attr_class(["_cd", "_r"])}>${_escape(h.name)}${_el_resume($scope20_id, "d")}</span>`);
|
|
4156
4175
|
_if(() => {
|
|
4157
4176
|
if (active.has(h.name)) {
|
|
4158
4177
|
const $scope21_id = _scope_id();
|
|
4159
|
-
_html(`<span${_attr_class("
|
|
4178
|
+
_html(`<span${_attr_class("_b0")}><span${_attr_class("_z")}></span><!>${_escape(active.get(h.name) || "Starting…")}${_el_resume($scope21_id, "c")}</span>`);
|
|
4160
4179
|
_subscribe($active__closures, writeScope($scope21_id, { Ccg: 4 }));
|
|
4161
4180
|
return 0;
|
|
4162
4181
|
} else if (h.description) {
|
|
4163
4182
|
const $scope60_id = _scope_id();
|
|
4164
|
-
_html(`<span${_attr_class("
|
|
4183
|
+
_html(`<span${_attr_class("_bu")}${_attr("title", h.description)}>${_escape(h.description)}${_el_resume($scope60_id, "b")}</span>${_el_resume($scope60_id, "a")}`);
|
|
4165
4184
|
writeScope($scope60_id, {});
|
|
4166
4185
|
return 1;
|
|
4167
4186
|
}
|
|
@@ -4200,7 +4219,7 @@ var settings_page_default = _template("r", (input) => {
|
|
|
4200
4219
|
return 0;
|
|
4201
4220
|
} else if (hits && !searching) {
|
|
4202
4221
|
const $scope33_id = _scope_id();
|
|
4203
|
-
_html(`<p${_attr_class("
|
|
4222
|
+
_html(`<p${_attr_class("_bw")}>No tools match “<!>${_escape(query)}${_el_resume($scope33_id, "b")}”.</p>`);
|
|
4204
4223
|
_subscribe($query__closures, writeScope($scope33_id, {}));
|
|
4205
4224
|
return 1;
|
|
4206
4225
|
}
|
|
@@ -4306,12 +4325,12 @@ var settings_page_default = _template("r", (input) => {
|
|
|
4306
4325
|
});
|
|
4307
4326
|
//#endregion
|
|
4308
4327
|
//#region src/tags/new-workspace.css.ts
|
|
4309
|
-
var content$1 = "_bB
|
|
4310
|
-
var section$1 = "_bF
|
|
4328
|
+
var content$1 = "_bB _bd";
|
|
4329
|
+
var section$1 = "_bF _bl";
|
|
4311
4330
|
var curBase = "_bJ _N _M";
|
|
4312
|
-
var archived = "_bN
|
|
4331
|
+
var archived = "_bN _bl";
|
|
4313
4332
|
var archivedHint = "_bO _M";
|
|
4314
|
-
var archivedCard = "_bP
|
|
4333
|
+
var archivedCard = "_bP _bq";
|
|
4315
4334
|
var resultBranch = "_cr _Q _d";
|
|
4316
4335
|
var branchInput = "_cw _P _O";
|
|
4317
4336
|
//#endregion
|
|
@@ -4387,7 +4406,7 @@ var repo_picker_default = _template("q", (input) => {
|
|
|
4387
4406
|
_if(() => {
|
|
4388
4407
|
if (filter && !catalog) {
|
|
4389
4408
|
const $scope8_id = _scope_id();
|
|
4390
|
-
_html(`<p${_attr_class("
|
|
4409
|
+
_html(`<p${_attr_class("_bw")}>Loading repos…</p>`);
|
|
4391
4410
|
writeScope($scope8_id, {});
|
|
4392
4411
|
return 0;
|
|
4393
4412
|
}
|
|
@@ -4411,7 +4430,7 @@ var repo_picker_default = _template("q", (input) => {
|
|
|
4411
4430
|
_if(() => {
|
|
4412
4431
|
if (!branches) {
|
|
4413
4432
|
const $scope9_id = _scope_id();
|
|
4414
|
-
_html(`<p${_attr_class("
|
|
4433
|
+
_html(`<p${_attr_class("_bw")}><span${_attr_class("_z")}></span> Loading branches…</p>`);
|
|
4415
4434
|
writeScope($scope9_id, {});
|
|
4416
4435
|
return 0;
|
|
4417
4436
|
} else {
|
|
@@ -4438,7 +4457,7 @@ var repo_picker_default = _template("q", (input) => {
|
|
|
4438
4457
|
_if(() => {
|
|
4439
4458
|
if (!shown.length) {
|
|
4440
4459
|
const $scope10_id = _scope_id();
|
|
4441
|
-
_html(`<li><p${_attr_class("
|
|
4460
|
+
_html(`<li><p${_attr_class("_bw")}>No branches match.</p></li>`);
|
|
4442
4461
|
writeScope($scope10_id, {});
|
|
4443
4462
|
return 0;
|
|
4444
4463
|
}
|
|
@@ -4463,7 +4482,7 @@ var repo_picker_default = _template("q", (input) => {
|
|
|
4463
4482
|
return 0;
|
|
4464
4483
|
} else if (filter && catalog) {
|
|
4465
4484
|
const $scope1_id = _scope_id();
|
|
4466
|
-
_html(`<p${_attr_class("
|
|
4485
|
+
_html(`<p${_attr_class("_bw")}>No repos match "<!>${_escape(filter)}${_el_resume($scope1_id, "b")}".</p>`);
|
|
4467
4486
|
writeScope($scope1_id, {});
|
|
4468
4487
|
return 1;
|
|
4469
4488
|
}
|
|
@@ -4577,7 +4596,7 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4577
4596
|
}
|
|
4578
4597
|
}, "m4", $scope0_id);
|
|
4579
4598
|
const titleId = _id();
|
|
4580
|
-
_html(`<div${_attr_class("
|
|
4599
|
+
_html(`<div${_attr_class("_bb")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bc")}><div${_attr_class(content$1)}>`);
|
|
4581
4600
|
_set_serialize_reason({
|
|
4582
4601
|
0: $sg__input_onExit,
|
|
4583
4602
|
1: $sg__input_onExit,
|
|
@@ -4614,9 +4633,9 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4614
4633
|
return 0;
|
|
4615
4634
|
}
|
|
4616
4635
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
4617
|
-
_html(`<label${_attr_class("_bE")}><span${_attr_class("
|
|
4636
|
+
_html(`<label${_attr_class("_bE")}><span${_attr_class("_bA")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
|
|
4618
4637
|
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("
|
|
4638
|
+
}, "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
4639
|
_set_serialize_reason(1);
|
|
4621
4640
|
const $childScope2 = _peek_scope_id();
|
|
4622
4641
|
icon_refresh_default({
|
|
@@ -4645,7 +4664,7 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4645
4664
|
_if(() => {
|
|
4646
4665
|
if (!selected.length) {
|
|
4647
4666
|
const $scope11_id = _scope_id();
|
|
4648
|
-
_html(`<li${_attr_class("
|
|
4667
|
+
_html(`<li${_attr_class("_bw")}>No repos yet — search below to add one (or create empty).</li>`);
|
|
4649
4668
|
writeScope($scope11_id, {});
|
|
4650
4669
|
return 0;
|
|
4651
4670
|
}
|
|
@@ -4712,10 +4731,10 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4712
4731
|
_if(() => {
|
|
4713
4732
|
if (archived$1.length) {
|
|
4714
4733
|
const $scope3_id = _scope_id();
|
|
4715
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("_bG")}><h2${_attr_class("
|
|
4734
|
+
_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
4735
|
_for_of(archived$1, (ws) => {
|
|
4717
4736
|
const $scope4_id = _scope_id();
|
|
4718
|
-
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("
|
|
4737
|
+
_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
4738
|
_if(() => {
|
|
4720
4739
|
if (restoring === ws.id) {
|
|
4721
4740
|
const $scope14_id = _scope_id();
|
|
@@ -4855,8 +4874,8 @@ function activeAgent(session) {
|
|
|
4855
4874
|
const command = session.state?.command?.trim();
|
|
4856
4875
|
return command && agentFromCommand(command) || session.agent;
|
|
4857
4876
|
}
|
|
4858
|
-
var iconBtn$1 = "
|
|
4859
|
-
var navToggle = "
|
|
4877
|
+
var iconBtn$1 = "_cK _d";
|
|
4878
|
+
var navToggle = "_cP _d";
|
|
4860
4879
|
_template("D", (input) => {
|
|
4861
4880
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
4862
4881
|
const $scope0_id = _scope_id();
|
|
@@ -4899,12 +4918,12 @@ var ARM_MS = 3500;
|
|
|
4899
4918
|
function disarmLater(fn) {
|
|
4900
4919
|
return setTimeout(fn, ARM_MS);
|
|
4901
4920
|
}
|
|
4902
|
-
var railBtn = "
|
|
4903
|
-
var rowIcon = "
|
|
4904
|
-
var close = "
|
|
4921
|
+
var railBtn = "_fA _d";
|
|
4922
|
+
var rowIcon = "_fJ _Q _d";
|
|
4923
|
+
var close = "_fK _Q _d _T";
|
|
4905
4924
|
//#endregion
|
|
4906
4925
|
//#region src/styles/session-pop.css.ts
|
|
4907
|
-
var sessionPop = "
|
|
4926
|
+
var sessionPop = "_fw _U";
|
|
4908
4927
|
//#endregion
|
|
4909
4928
|
//#region src/tags/icons/icon-diff.marko
|
|
4910
4929
|
var icon_diff_default = _template("G", (input) => {
|
|
@@ -5165,10 +5184,10 @@ var side_nav_item_default = _template("t", (input) => {
|
|
|
5165
5184
|
_if(() => {
|
|
5166
5185
|
if (input.rail) {
|
|
5167
5186
|
const $scope2_id = _scope_id();
|
|
5168
|
-
_html(`<button${_attr_class([railBtn, { ["
|
|
5187
|
+
_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
5188
|
"_t",
|
|
5170
5189
|
phase[dot],
|
|
5171
|
-
"
|
|
5190
|
+
"_fB"
|
|
5172
5191
|
])}></span>${_el_resume($scope2_id, "c", $sg__input_workspaceId__OR__input_status)}</button>${_el_resume($scope2_id, "a")}`);
|
|
5173
5192
|
_script($scope2_id, "t3");
|
|
5174
5193
|
_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 +5196,15 @@ var side_nav_item_default = _template("t", (input) => {
|
|
|
5177
5196
|
const $scope3_id = _scope_id();
|
|
5178
5197
|
const sessions$1 = input.sessions || [];
|
|
5179
5198
|
const phaseLabel = dot === "working" ? "Working" : dot === "waiting" ? "Needs you" : dot === "idle" ? "Idle" : "Off";
|
|
5180
|
-
_html(`<section${_attr_class(["
|
|
5181
|
-
["
|
|
5199
|
+
_html(`<section${_attr_class(["_fD", {
|
|
5200
|
+
["_fy"]: input.current,
|
|
5182
5201
|
["_V"]: input.current,
|
|
5183
|
-
["
|
|
5184
|
-
["
|
|
5185
|
-
}])}><div${_attr_class("
|
|
5202
|
+
["_fE"]: input.railPop,
|
|
5203
|
+
["_fC"]: input.page
|
|
5204
|
+
}])}><div${_attr_class("_fF")}><button${_attr_class("_fG")}><span${_attr_class([
|
|
5186
5205
|
"_t",
|
|
5187
5206
|
phase[dot],
|
|
5188
|
-
"
|
|
5207
|
+
"_fR"
|
|
5189
5208
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope3_id, "d", $sg__input_workspaceId__OR__input_status)}`);
|
|
5190
5209
|
_if(() => {
|
|
5191
5210
|
if (sessions$1.length === 1) {
|
|
@@ -5198,7 +5217,7 @@ var side_nav_item_default = _template("t", (input) => {
|
|
|
5198
5217
|
icon_agent_default({
|
|
5199
5218
|
agent: activeAgent(sessions$1[0]),
|
|
5200
5219
|
size: 12,
|
|
5201
|
-
class: "
|
|
5220
|
+
class: "_fL"
|
|
5202
5221
|
});
|
|
5203
5222
|
$si__input_sessions && writeScope($scope12_id, {
|
|
5204
5223
|
_: _scope_with_id($scope3_id),
|
|
@@ -5208,16 +5227,16 @@ var side_nav_item_default = _template("t", (input) => {
|
|
|
5208
5227
|
}
|
|
5209
5228
|
}, $scope3_id, "e", $sg__input_sessions, $sg__input_sessions, $sg__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page);
|
|
5210
5229
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length === 1 ? sessions$1[0].title || "" : `${sessions$1.length} sessions`;
|
|
5211
|
-
_html(`<span${_attr_class("
|
|
5230
|
+
_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
5231
|
_if(() => {
|
|
5213
5232
|
if (input.page && metaText) {
|
|
5214
5233
|
const $scope14_id = _scope_id();
|
|
5215
|
-
_html(`<span${_attr_class("
|
|
5234
|
+
_html(`<span${_attr_class("_fP")}>${_escape(metaText)}${_el_resume($scope14_id, "b", _serialize_guard($scope0_reason, 5))}</span>`);
|
|
5216
5235
|
$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
5236
|
return 0;
|
|
5218
5237
|
} else if (sessions$1.length === 1 && sessions$1[0].title) {
|
|
5219
5238
|
const $scope13_id = _scope_id();
|
|
5220
|
-
_html(`<span${_attr_class("
|
|
5239
|
+
_html(`<span${_attr_class("_fO")}>${_escape(sessions$1[0].title)}${_el_resume($scope13_id, "b", $sg__input_sessions)}</span>`);
|
|
5221
5240
|
$si__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page && writeScope($scope13_id, { _: $si__input_sessions && _scope_with_id($scope3_id) });
|
|
5222
5241
|
return 1;
|
|
5223
5242
|
}
|
|
@@ -5230,7 +5249,7 @@ var side_nav_item_default = _template("t", (input) => {
|
|
|
5230
5249
|
"_C",
|
|
5231
5250
|
"_L",
|
|
5232
5251
|
"_E",
|
|
5233
|
-
"
|
|
5252
|
+
"_fQ"
|
|
5234
5253
|
])}>${input.current ? "Open" : ""}${_el_resume($scope4_id, "b", _serialize_guard($scope0_reason, 16))}</span>`);
|
|
5235
5254
|
$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
5255
|
_: _scope_with_id($scope3_id),
|
|
@@ -5243,7 +5262,7 @@ var side_nav_item_default = _template("t", (input) => {
|
|
|
5243
5262
|
_if(() => {
|
|
5244
5263
|
if (!input.page) {
|
|
5245
5264
|
const $scope5_id = _scope_id();
|
|
5246
|
-
_html(`<div${_attr_class("
|
|
5265
|
+
_html(`<div${_attr_class("_fH")}>`);
|
|
5247
5266
|
_if(() => {
|
|
5248
5267
|
if (input.onNewSession) {
|
|
5249
5268
|
const $scope6_id = _scope_id();
|
|
@@ -5257,7 +5276,7 @@ var side_nav_item_default = _template("t", (input) => {
|
|
|
5257
5276
|
_html(`</button>${_el_resume($scope6_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class(sessionPop)}>`);
|
|
5258
5277
|
_for_of([], (agent) => {
|
|
5259
5278
|
const $scope7_id = _scope_id();
|
|
5260
|
-
_html(`<button${_attr_class("
|
|
5279
|
+
_html(`<button${_attr_class("_fx")}>`);
|
|
5261
5280
|
_set_serialize_reason(12);
|
|
5262
5281
|
const $childScope2 = _peek_scope_id();
|
|
5263
5282
|
icon_agent_default({
|
|
@@ -5290,7 +5309,7 @@ var side_nav_item_default = _template("t", (input) => {
|
|
|
5290
5309
|
return 0;
|
|
5291
5310
|
}
|
|
5292
5311
|
}, $scope5_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
5293
|
-
_html(`<button${_attr_class([rowIcon, { ["
|
|
5312
|
+
_html(`<button${_attr_class([rowIcon, { ["_fz"]: input.managing }])} title="Manage workspace" aria-pressed=${input.managing ? "true" : "false"}>`);
|
|
5294
5313
|
icon_manage_default({ size: 12 });
|
|
5295
5314
|
_html(`</button>${_el_resume($scope5_id, "d")}</div>`);
|
|
5296
5315
|
_script($scope5_id, "t7");
|
|
@@ -5298,17 +5317,17 @@ var side_nav_item_default = _template("t", (input) => {
|
|
|
5298
5317
|
return 0;
|
|
5299
5318
|
}
|
|
5300
5319
|
}, $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("
|
|
5320
|
+
_html(`</div><div${_attr_class("_fW")}>`);
|
|
5302
5321
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
5303
5322
|
const $scope9_id = _scope_id();
|
|
5304
|
-
_html(`<div${_attr_class(["
|
|
5323
|
+
_html(`<div${_attr_class(["_fI", { ["_fy"]: s.id === input.currentTab }])}>`);
|
|
5305
5324
|
_if(() => {
|
|
5306
5325
|
if (renamingId === s.id) {
|
|
5307
5326
|
const $scope11_id = _scope_id();
|
|
5308
5327
|
_html(`<span${_attr_class([
|
|
5309
5328
|
"_t",
|
|
5310
5329
|
phase[sessionPhase(s.state)],
|
|
5311
|
-
"
|
|
5330
|
+
"_fU"
|
|
5312
5331
|
])}></span>${_el_resume($scope11_id, "a", $sg__input_sessions)}`);
|
|
5313
5332
|
_set_serialize_reason({
|
|
5314
5333
|
1: $sg__input_sessions,
|
|
@@ -5318,17 +5337,17 @@ var side_nav_item_default = _template("t", (input) => {
|
|
|
5318
5337
|
icon_agent_default({
|
|
5319
5338
|
agent: activeAgent(s),
|
|
5320
5339
|
size: 13,
|
|
5321
|
-
class: "
|
|
5340
|
+
class: "_fY"
|
|
5322
5341
|
});
|
|
5323
5342
|
_html(`<input${_attr_input_value($scope11_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
5324
5343
|
renameValue = _new_renameValue;
|
|
5325
|
-
}, "t0", $scope11_id))}${_attr_class(["_O", "
|
|
5344
|
+
}, "t0", $scope11_id))}${_attr_class(["_O", "_fV"])} aria-label="Session name">${_el_resume($scope11_id, "c")}`);
|
|
5326
5345
|
_script($scope11_id, "t8");
|
|
5327
5346
|
_subscribe($renameValue__closures, writeScope($scope11_id, { b: $si__input_sessions && _existing_scope($childScope3) }));
|
|
5328
5347
|
return 0;
|
|
5329
5348
|
} else {
|
|
5330
5349
|
const $scope10_id = _scope_id();
|
|
5331
|
-
_html(`<button${_attr_class("
|
|
5350
|
+
_html(`<button${_attr_class("_fX")}><span${_attr_class(["_t", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope10_id, "b", $sg__input_sessions)}`);
|
|
5332
5351
|
_set_serialize_reason({
|
|
5333
5352
|
1: $sg__input_sessions,
|
|
5334
5353
|
2: $sg__input_sessions
|
|
@@ -5337,9 +5356,9 @@ var side_nav_item_default = _template("t", (input) => {
|
|
|
5337
5356
|
icon_agent_default({
|
|
5338
5357
|
agent: activeAgent(s),
|
|
5339
5358
|
size: 13,
|
|
5340
|
-
class: "
|
|
5359
|
+
class: "_fY"
|
|
5341
5360
|
});
|
|
5342
|
-
_html(`<span${_attr_class("
|
|
5361
|
+
_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
5362
|
icon_edit_default({ size: 12 });
|
|
5344
5363
|
_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
5364
|
_script($scope10_id, "t9");
|
|
@@ -5521,25 +5540,25 @@ var side_nav_default = _template("u", (input) => {
|
|
|
5521
5540
|
const wsSelected = true;
|
|
5522
5541
|
const otherIds = itemIds.filter((id) => id !== ws.id);
|
|
5523
5542
|
const listIds = isPage ? [ws.id, ...otherIds] : itemIds;
|
|
5524
|
-
_html(`<aside${_attr_class(["
|
|
5525
|
-
["
|
|
5526
|
-
["
|
|
5543
|
+
_html(`<aside${_attr_class(["_cO", {
|
|
5544
|
+
["_cM"]: !navOpen,
|
|
5545
|
+
["_cN"]: isPage
|
|
5527
5546
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
5528
5547
|
_if(() => {
|
|
5529
5548
|
if (isPage) {
|
|
5530
5549
|
const $scope1_id = _scope_id();
|
|
5531
|
-
_html(`<header${_attr_class("
|
|
5550
|
+
_html(`<header${_attr_class("_cR")}><h1${_attr_class("_cS")}>Workspaces</h1><div${_attr_class("_cT")}>`);
|
|
5532
5551
|
_if(() => {}, $scope1_id, "d", 1, 1, 1, 0, 1);
|
|
5533
5552
|
_html(`<button${_attr_class([
|
|
5534
5553
|
iconBtn$1,
|
|
5535
|
-
"
|
|
5536
|
-
{ ["
|
|
5554
|
+
"_cU",
|
|
5555
|
+
{ ["_cJ"]: view === "settings" }
|
|
5537
5556
|
])} title=Settings aria-pressed=${view === "settings" ? "true" : "false"}>`);
|
|
5538
5557
|
icon_settings_default({ size: 16 });
|
|
5539
5558
|
_if(() => {
|
|
5540
5559
|
if (input.setupReady === false) {
|
|
5541
5560
|
const $scope10_id = _scope_id();
|
|
5542
|
-
_html(`<span${_attr_class(["_t", "
|
|
5561
|
+
_html(`<span${_attr_class(["_t", "_cL"])} title="Machine setup incomplete"></span>`);
|
|
5543
5562
|
$si__input_setupReady && writeScope($scope10_id, {});
|
|
5544
5563
|
return 0;
|
|
5545
5564
|
}
|
|
@@ -5550,13 +5569,13 @@ var side_nav_default = _template("u", (input) => {
|
|
|
5550
5569
|
return 0;
|
|
5551
5570
|
}
|
|
5552
5571
|
}, $scope0_id, "b", 1, 1, 1, 0, 1);
|
|
5553
|
-
_html(`<div${_attr_class("
|
|
5572
|
+
_html(`<div${_attr_class("_cX")}>`);
|
|
5554
5573
|
_for_of(listIds, (wsId) => {
|
|
5555
5574
|
const $scope2_id = _scope_id();
|
|
5556
5575
|
_if(() => {
|
|
5557
5576
|
if (isPage && wsId === ws.id) {
|
|
5558
5577
|
const $scope11_id = _scope_id();
|
|
5559
|
-
_html(`<h2${_attr_class(["
|
|
5578
|
+
_html(`<h2${_attr_class(["_bA", "_cV"])}>Current</h2>`);
|
|
5560
5579
|
writeScope($scope11_id, {});
|
|
5561
5580
|
return 0;
|
|
5562
5581
|
}
|
|
@@ -5564,7 +5583,7 @@ var side_nav_default = _template("u", (input) => {
|
|
|
5564
5583
|
_if(() => {
|
|
5565
5584
|
if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
|
|
5566
5585
|
const $scope12_id = _scope_id();
|
|
5567
|
-
_html(`<h2${_attr_class(["
|
|
5586
|
+
_html(`<h2${_attr_class(["_bA", "_cV"])}>Other spaces</h2>`);
|
|
5568
5587
|
writeScope($scope12_id, {});
|
|
5569
5588
|
return 0;
|
|
5570
5589
|
}
|
|
@@ -5662,7 +5681,7 @@ var side_nav_default = _template("u", (input) => {
|
|
|
5662
5681
|
railHover = null;
|
|
5663
5682
|
}, 150);
|
|
5664
5683
|
}, "u9", $scope3_id);
|
|
5665
|
-
_html(`<div${_attr_class("
|
|
5684
|
+
_html(`<div${_attr_class("_cY")}>`);
|
|
5666
5685
|
_for_of(itemIds, (wsId, i) => {
|
|
5667
5686
|
const $scope4_id = _scope_id();
|
|
5668
5687
|
_html("<span>");
|
|
@@ -5709,7 +5728,7 @@ var side_nav_default = _template("u", (input) => {
|
|
|
5709
5728
|
if (railHover) {
|
|
5710
5729
|
const $scope5_id = _scope_id();
|
|
5711
5730
|
const hoverId = railHover.id;
|
|
5712
|
-
_html(`<div${_attr_class(["_U", "
|
|
5731
|
+
_html(`<div${_attr_class(["_U", "_c1"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
5713
5732
|
_set_serialize_reason({
|
|
5714
5733
|
0: 1,
|
|
5715
5734
|
1: 1,
|
|
@@ -5811,7 +5830,7 @@ var side_nav_default = _template("u", (input) => {
|
|
|
5811
5830
|
return 0;
|
|
5812
5831
|
}
|
|
5813
5832
|
}, $scope0_id, "d");
|
|
5814
|
-
_html(`<div${_attr_class("
|
|
5833
|
+
_html(`<div${_attr_class("_cZ")}>`);
|
|
5815
5834
|
_if(() => {
|
|
5816
5835
|
if (isPage) {
|
|
5817
5836
|
const $scope6_id = _scope_id();
|
|
@@ -5819,7 +5838,7 @@ var side_nav_default = _template("u", (input) => {
|
|
|
5819
5838
|
"_i",
|
|
5820
5839
|
"_j",
|
|
5821
5840
|
btnLg,
|
|
5822
|
-
"
|
|
5841
|
+
"_cW"
|
|
5823
5842
|
])} title="New workspace" aria-pressed=${view === "new" ? "true" : "false"}>`);
|
|
5824
5843
|
icon_folder_plus_default({ size: 16 });
|
|
5825
5844
|
_html(` New workspace</button>${_el_resume($scope6_id, "a")}`);
|
|
@@ -5842,19 +5861,19 @@ var side_nav_default = _template("u", (input) => {
|
|
|
5842
5861
|
return 1;
|
|
5843
5862
|
}
|
|
5844
5863
|
}, $scope7_id, "a", 1, 1, 1, "</button>", 1);
|
|
5845
|
-
_html(`<div${_attr_class(["_s", "
|
|
5864
|
+
_html(`<div${_attr_class(["_s", "_c0"])}></div>`);
|
|
5846
5865
|
_if(() => {}, $scope7_id, "c", 1, 1, 1, 0, 1);
|
|
5847
|
-
_html(`<button${_attr_class([iconBtn$1, { ["
|
|
5866
|
+
_html(`<button${_attr_class([iconBtn$1, { ["_cJ"]: view === "settings" }])} title=Settings aria-pressed=${view === "settings" ? "true" : "false"}>`);
|
|
5848
5867
|
icon_settings_default({ size: 15 });
|
|
5849
5868
|
_if(() => {
|
|
5850
5869
|
if (input.setupReady === false) {
|
|
5851
5870
|
const $scope15_id = _scope_id();
|
|
5852
|
-
_html(`<span${_attr_class(["_t", "
|
|
5871
|
+
_html(`<span${_attr_class(["_t", "_cL"])} title="Machine setup incomplete"></span>`);
|
|
5853
5872
|
$si__input_setupReady && writeScope($scope15_id, {});
|
|
5854
5873
|
return 0;
|
|
5855
5874
|
}
|
|
5856
5875
|
}, $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, { ["
|
|
5876
|
+
_html(`</button>${_el_resume($scope7_id, "d")}<button${_attr_class([iconBtn$1, { ["_cJ"]: view === "new" }])} title="New workspace" aria-pressed=${view === "new" ? "true" : "false"}>`);
|
|
5858
5877
|
icon_folder_plus_default({ size: 16 });
|
|
5859
5878
|
_html(`</button>${_el_resume($scope7_id, "g")}`);
|
|
5860
5879
|
_script($scope7_id, "u23");
|
|
@@ -5929,11 +5948,11 @@ function repoWebUrl(fullName) {
|
|
|
5929
5948
|
return `https://github.com/${fullName}`;
|
|
5930
5949
|
}
|
|
5931
5950
|
var iconBtn = "_R _d";
|
|
5932
|
-
var sectionCount = "
|
|
5933
|
-
var content = "
|
|
5934
|
-
var pageMeta = "
|
|
5935
|
-
var pathMeta = "
|
|
5936
|
-
var dangerHint = "
|
|
5951
|
+
var sectionCount = "_bn _C _D";
|
|
5952
|
+
var content = "_cy _bd";
|
|
5953
|
+
var pageMeta = "_cz _bi";
|
|
5954
|
+
var pathMeta = "_cC _r";
|
|
5955
|
+
var dangerHint = "_cI _M";
|
|
5937
5956
|
//#endregion
|
|
5938
5957
|
//#region src/tags/manage-workspace.marko
|
|
5939
5958
|
var api$2;
|
|
@@ -6031,7 +6050,7 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
6031
6050
|
setTimeout(() => loadProcs(void 0), 500);
|
|
6032
6051
|
}, "k5", $scope0_id);
|
|
6033
6052
|
const titleId = _id();
|
|
6034
|
-
_html(`<div${_attr_class("
|
|
6053
|
+
_html(`<div${_attr_class("_bb")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bc")}><div${_attr_class(content)}>`);
|
|
6035
6054
|
_set_serialize_reason({
|
|
6036
6055
|
0: $sg__input_onExit,
|
|
6037
6056
|
1: $sg__input_onExit,
|
|
@@ -6047,7 +6066,7 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
6047
6066
|
meta: attrTag({ content: _content_resume("k11", () => {
|
|
6048
6067
|
_scope_reason();
|
|
6049
6068
|
const $scope8_id = _scope_id();
|
|
6050
|
-
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
6069
|
+
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_cA")}>${_escape(ws.name)}${_el_resume($scope8_id, "c")}</span>`);
|
|
6051
6070
|
_if(() => {
|
|
6052
6071
|
if (ws.status !== "active") {
|
|
6053
6072
|
const $scope11_id = _scope_id();
|
|
@@ -6056,7 +6075,7 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
6056
6075
|
return 0;
|
|
6057
6076
|
}
|
|
6058
6077
|
}, $scope8_id, "d", 1, 1, 1, 0, 1);
|
|
6059
|
-
_html(`<span${_attr_class("
|
|
6078
|
+
_html(`<span${_attr_class("_cB")} 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
6079
|
_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
6080
|
_resume_branch($scope8_id);
|
|
6062
6081
|
}, $scope0_id) })
|
|
@@ -6084,22 +6103,22 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
6084
6103
|
_if(() => {
|
|
6085
6104
|
if (pendingAction && actionStep) {
|
|
6086
6105
|
const $scope7_id = _scope_id();
|
|
6087
|
-
_html(`<p${_attr_class("
|
|
6106
|
+
_html(`<p${_attr_class("_bk")}><span${_attr_class("_z")}></span><!>${_escape(actionStep)}${_el_resume($scope7_id, "c")}</p>`);
|
|
6088
6107
|
writeScope($scope7_id, {});
|
|
6089
6108
|
return 0;
|
|
6090
6109
|
}
|
|
6091
6110
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
6092
|
-
_html(`<section${_attr_class("
|
|
6111
|
+
_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
6112
|
_set_serialize_reason(1);
|
|
6094
6113
|
const $childScope2 = _peek_scope_id();
|
|
6095
6114
|
icon_refresh_default({
|
|
6096
6115
|
size: 14,
|
|
6097
6116
|
class: catalogRefreshing && "_y"
|
|
6098
6117
|
});
|
|
6099
|
-
_html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("
|
|
6118
|
+
_html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("_bo")}>`);
|
|
6100
6119
|
_for_of(ws.repos, (row) => {
|
|
6101
6120
|
const $scope1_id = _scope_id();
|
|
6102
|
-
_html(`<li${_attr_class("
|
|
6121
|
+
_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", "_cE"])}${_attr("href", repoWebUrl(row.full_name))} target=_blank rel=noopener${_attr("title", `Open ${row.full_name} on GitHub`)}>${_escape(row.full_name)}${_el_resume($scope1_id, "g")}</a>${_el_resume($scope1_id, "f")}`);
|
|
6103
6122
|
_if(() => {
|
|
6104
6123
|
if (row.base_branch !== row.default_branch) {
|
|
6105
6124
|
const $scope12_id = _scope_id();
|
|
@@ -6118,7 +6137,7 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
6118
6137
|
} else {
|
|
6119
6138
|
const $scope6_id = _scope_id();
|
|
6120
6139
|
_html(`<button${_attr_class([
|
|
6121
|
-
"
|
|
6140
|
+
"_bv",
|
|
6122
6141
|
"_T",
|
|
6123
6142
|
{ ["_k"]: confirmingRemove === row.full_name }
|
|
6124
6143
|
])}${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 +6156,19 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
6137
6156
|
}, "full_name", $scope0_id, "p", 1, 1, 1, 0, 1);
|
|
6138
6157
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
6139
6158
|
const $scope14_id = _scope_id();
|
|
6140
|
-
_html(`<li${_attr_class(["
|
|
6159
|
+
_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
6160
|
writeScope($scope14_id, {});
|
|
6142
6161
|
}, (n) => n, $scope0_id, "q", 1, 1, 1, 0, 1);
|
|
6143
6162
|
_html("</ul>");
|
|
6144
6163
|
_if(() => {
|
|
6145
6164
|
if (!ws.repos.length && !busy.size) {
|
|
6146
6165
|
const $scope15_id = _scope_id();
|
|
6147
|
-
_html(`<p${_attr_class("
|
|
6166
|
+
_html(`<p${_attr_class("_bw")}>No repos yet — search below to add one.</p>`);
|
|
6148
6167
|
writeScope($scope15_id, {});
|
|
6149
6168
|
return 0;
|
|
6150
6169
|
}
|
|
6151
6170
|
}, $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
6152
|
-
_html(`<div${_attr_class("
|
|
6171
|
+
_html(`<div${_attr_class("_cD")}>`);
|
|
6153
6172
|
const $childScope3 = _peek_scope_id();
|
|
6154
6173
|
let refreshCatalog = repo_picker_default({
|
|
6155
6174
|
exclude: inWorkspace,
|
|
@@ -6169,17 +6188,17 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
6169
6188
|
_if(() => {
|
|
6170
6189
|
if (running.length) {
|
|
6171
6190
|
const $scope9_id = _scope_id();
|
|
6172
|
-
_html(`<section${_attr_class("
|
|
6191
|
+
_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
6192
|
_for_of(running, (p) => {
|
|
6174
6193
|
const $scope10_id = _scope_id();
|
|
6175
|
-
_html(`<li${_attr_class("
|
|
6194
|
+
_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
6195
|
_if(() => {
|
|
6177
6196
|
if (p.ports.length) {
|
|
6178
6197
|
const $scope16_id = _scope_id();
|
|
6179
|
-
_html(`<span${_attr_class("
|
|
6198
|
+
_html(`<span${_attr_class("_bt")}>`);
|
|
6180
6199
|
_for_of(p.ports, (port) => {
|
|
6181
6200
|
const $scope17_id = _scope_id();
|
|
6182
|
-
_html(`<button${_attr_class(["_m", "
|
|
6201
|
+
_html(`<button${_attr_class(["_m", "_cF"])}${_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
6202
|
_script($scope17_id, "k15");
|
|
6184
6203
|
writeScope($scope17_id, { d: port });
|
|
6185
6204
|
}, (x) => String(x), $scope16_id, "a", 1, 1, 1, "</span>", 1);
|
|
@@ -6187,7 +6206,7 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
6187
6206
|
return 0;
|
|
6188
6207
|
}
|
|
6189
6208
|
}, $scope10_id, "e", 1, 1, 1, 0, 1);
|
|
6190
|
-
_html(`</div>${_el_resume($scope10_id, "b")}<button${_attr_class(["
|
|
6209
|
+
_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
6210
|
_script($scope10_id, "k16");
|
|
6192
6211
|
writeScope($scope10_id, {
|
|
6193
6212
|
k: p?.ports,
|
|
@@ -6199,7 +6218,7 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
6199
6218
|
return 0;
|
|
6200
6219
|
}
|
|
6201
6220
|
}, $scope0_id, "v", 1, 1, 1, 0, 1);
|
|
6202
|
-
_html(`<section${_attr_class(["
|
|
6221
|
+
_html(`<section${_attr_class(["_bl", "_cG"])}><div${_attr_class("_bm")}><h2${_attr_class("_bA")}>Workspace</h2></div><div${_attr_class("_cH")}>`);
|
|
6203
6222
|
_if(() => {
|
|
6204
6223
|
if (ws.status === "active") {
|
|
6205
6224
|
const $scope4_id = _scope_id();
|
|
@@ -6300,15 +6319,15 @@ var term_find_default = _template("v", (input) => {
|
|
|
6300
6319
|
const canStep = hasQuery && open;
|
|
6301
6320
|
const keybar = input.placement === "keybar";
|
|
6302
6321
|
_html(`<div${_attr_class([
|
|
6303
|
-
"
|
|
6304
|
-
keybar ? "
|
|
6305
|
-
!open && "
|
|
6306
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
6322
|
+
"_e2",
|
|
6323
|
+
keybar ? "_e4" : "_e3",
|
|
6324
|
+
!open && "_e6"
|
|
6325
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_eX", keybar ? "_e5" : "_eZ"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
6307
6326
|
if (!open) return;
|
|
6308
6327
|
query = v;
|
|
6309
6328
|
live.query = v;
|
|
6310
6329
|
run(0);
|
|
6311
|
-
}, "v0", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
6330
|
+
}, "v0", $scope0_id))}${_attr_class([findInput, keybar && "_e7"])} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in terminal" aria-label="Find in terminal">${_el_resume($scope0_id, "c")}<button type=button${_attr_class([findIconBtn, keybar && "_e8"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↑</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_e8"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↓</button>${_el_resume($scope0_id, "e")}<button type=button${_attr_class([findIconBtn, keybar && "_e8"])} title="Close find" tabindex=${open ? "0" : "-1"}>×</button>${_el_resume($scope0_id, "f")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
6312
6331
|
_script($scope0_id, "v4");
|
|
6313
6332
|
_script($scope0_id, "v5");
|
|
6314
6333
|
_script($scope0_id, "v6");
|
|
@@ -6578,7 +6597,7 @@ var term_default = _template("w", (input) => {
|
|
|
6578
6597
|
trapOpen = true;
|
|
6579
6598
|
}
|
|
6580
6599
|
}, "w14", $scope0_id);
|
|
6581
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
6600
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_c2")}><div${_attr_class("_c3")}></div>${_el_resume($scope0_id, "b")}`);
|
|
6582
6601
|
_if(() => {
|
|
6583
6602
|
if (findOpen) {
|
|
6584
6603
|
const $scope12_id = _scope_id();
|
|
@@ -6605,7 +6624,7 @@ var term_default = _template("w", (input) => {
|
|
|
6605
6624
|
_if(() => {
|
|
6606
6625
|
if (uploading) {
|
|
6607
6626
|
const $scope19_id = _scope_id();
|
|
6608
|
-
_html(`<div${_attr_class("
|
|
6627
|
+
_html(`<div${_attr_class("_c9")}>uploading…</div>`);
|
|
6609
6628
|
writeScope($scope19_id, {});
|
|
6610
6629
|
return 0;
|
|
6611
6630
|
}
|
|
@@ -6613,7 +6632,7 @@ var term_default = _template("w", (input) => {
|
|
|
6613
6632
|
_if(() => {
|
|
6614
6633
|
if (copiedFlash) {
|
|
6615
6634
|
const $scope20_id = _scope_id();
|
|
6616
|
-
_html(`<div${_attr_class("
|
|
6635
|
+
_html(`<div${_attr_class("_c8")}>Copied</div>`);
|
|
6617
6636
|
writeScope($scope20_id, {});
|
|
6618
6637
|
return 0;
|
|
6619
6638
|
}
|
|
@@ -6622,7 +6641,7 @@ var term_default = _template("w", (input) => {
|
|
|
6622
6641
|
_if(() => {
|
|
6623
6642
|
if (trapOpen) {
|
|
6624
6643
|
const $scope11_id = _scope_id();
|
|
6625
|
-
_html(`<div${_attr_class("
|
|
6644
|
+
_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
6645
|
_script($scope11_id, "w24");
|
|
6627
6646
|
_script($scope11_id, "w25");
|
|
6628
6647
|
writeScope($scope11_id, {});
|
|
@@ -6728,7 +6747,7 @@ var work_view_default = _template("z", (input) => {
|
|
|
6728
6747
|
let DiffView = null;
|
|
6729
6748
|
const loadDiffView = _resume(() => {
|
|
6730
6749
|
if (DiffView) return;
|
|
6731
|
-
import("./
|
|
6750
|
+
import("./_DvTZBSt5.js").then((m) => {
|
|
6732
6751
|
DiffView = m.default;
|
|
6733
6752
|
});
|
|
6734
6753
|
}, "z4", $scope0_id);
|
|
@@ -6898,7 +6917,7 @@ var work_view_default = _template("z", (input) => {
|
|
|
6898
6917
|
toggleDiff();
|
|
6899
6918
|
}
|
|
6900
6919
|
}, "z20", $scope0_id);
|
|
6901
|
-
_html(`<div${_attr_class(["
|
|
6920
|
+
_html(`<div${_attr_class(["_bS", { ["_bR"]: view === "nav" }])}><div${_attr_class("_bT")}>`);
|
|
6902
6921
|
_set_serialize_reason({
|
|
6903
6922
|
0: _serialize_guard($scope0_reason, 0),
|
|
6904
6923
|
1: _serialize_guard($scope0_reason, 1),
|
|
@@ -6971,7 +6990,7 @@ var work_view_default = _template("z", (input) => {
|
|
|
6971
6990
|
openDiff(pr);
|
|
6972
6991
|
}, "z32", $scope0_id)
|
|
6973
6992
|
});
|
|
6974
|
-
_html(`</div><div${_attr_class("
|
|
6993
|
+
_html(`</div><div${_attr_class("_bU")}>`);
|
|
6975
6994
|
_if(() => {
|
|
6976
6995
|
if (error) {
|
|
6977
6996
|
const $scope8_id = _scope_id();
|
|
@@ -7080,13 +7099,13 @@ var work_view_default = _template("z", (input) => {
|
|
|
7080
7099
|
}
|
|
7081
7100
|
}, $scope0_id, "h");
|
|
7082
7101
|
_if(() => {}, $scope0_id, "i");
|
|
7083
|
-
_html(`<div${_attr_class(["
|
|
7102
|
+
_html(`<div${_attr_class(["_bW", { ["_bV"]: view !== "term" }])}>`);
|
|
7084
7103
|
_if(() => {
|
|
7085
7104
|
if (shownSessions) {
|
|
7086
7105
|
const $scope5_id = _scope_id();
|
|
7087
7106
|
_for_of(shownSessions, (s) => {
|
|
7088
7107
|
const $scope6_id = _scope_id();
|
|
7089
|
-
_html(`<div${_attr_class(["
|
|
7108
|
+
_html(`<div${_attr_class(["_bX", { ["_bY"]: s.id === curTab }])}>`);
|
|
7090
7109
|
_set_serialize_reason({
|
|
7091
7110
|
0: 1,
|
|
7092
7111
|
1: 1,
|
|
@@ -7153,7 +7172,7 @@ var work_view_default = _template("z", (input) => {
|
|
|
7153
7172
|
_if(() => {
|
|
7154
7173
|
if (!shownSessions.length && view === "term") {
|
|
7155
7174
|
const $scope7_id = _scope_id();
|
|
7156
|
-
_html(`<div${_attr_class("
|
|
7175
|
+
_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
7176
|
_script($scope7_id, "z54");
|
|
7158
7177
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
7159
7178
|
return 0;
|
|
@@ -7163,7 +7182,7 @@ var work_view_default = _template("z", (input) => {
|
|
|
7163
7182
|
return 0;
|
|
7164
7183
|
} else {
|
|
7165
7184
|
const $scope10_id = _scope_id();
|
|
7166
|
-
_html(`<p${_attr_class("
|
|
7185
|
+
_html(`<p${_attr_class("_bx")}>Loading sessions…</p>`);
|
|
7167
7186
|
writeScope($scope10_id, {});
|
|
7168
7187
|
return 1;
|
|
7169
7188
|
}
|
|
@@ -15000,4 +15019,4 @@ server.listen(port, () => {
|
|
|
15000
15019
|
//#endregion
|
|
15001
15020
|
export {};
|
|
15002
15021
|
|
|
15003
|
-
;var __MARKO_MANIFEST__={"esfPH6H":{"block":[2,"stylesheet#/assets/index-
|
|
15022
|
+
;var __MARKO_MANIFEST__={"esfPH6H":{"block":[2,"stylesheet#/assets/index-I2jhJMJc.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/index-I2jhJMJc.css\"",">"],"defer":[2,"/assets/index-CMhO9RSz.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/index-CMhO9RSz.js\"","></script>"]}};
|