@dylanpiercey/work 0.0.137 → 0.0.138
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{_DyqUd25V.js → _BU4viilP.js} +50 -50
- package/dist/{_q2QGXODx.js → _NJRrlQSH.js} +7 -7
- package/dist/index.mjs +695 -709
- package/dist/public/assets/{_5Rj2gra4.js → _3OKw54FH.js} +1 -1
- package/dist/public/assets/_3OKw54FH.js.br +0 -0
- package/dist/public/assets/{_BcrQbEVL.js → _AiXBpuzB.js} +1 -1
- package/dist/public/assets/_AiXBpuzB.js.br +0 -0
- package/dist/public/assets/{_CGhMIkoU.js → _B3XWXwYh.js} +1 -1
- package/dist/public/assets/_B3XWXwYh.js.br +0 -0
- package/dist/public/assets/{_BxoHll4S2.js → _B6Kqixfk2.js} +1 -1
- package/dist/public/assets/{_C8aavgS-2.js → _B7PLqair2.js} +1 -1
- package/dist/public/assets/_B7PLqair2.js.br +0 -0
- package/dist/public/assets/{_SqANV0GA.js → _B9-bF7w4.js} +1 -1
- package/dist/public/assets/_B9-bF7w4.js.br +0 -0
- package/dist/public/assets/{_B2_tmvdP2.js → _B9xv7qS42.js} +1 -1
- package/dist/public/assets/_B9xv7qS42.js.br +0 -0
- package/dist/public/assets/{_BT12g7le2.js → _BEQN3C3b2.js} +1 -1
- package/dist/public/assets/_BEQN3C3b2.js.br +0 -0
- package/dist/public/assets/{_Ddy1aeKP.js → _BEzGQSOa.js} +1 -1
- package/dist/public/assets/_BEzGQSOa.js.br +0 -0
- package/dist/public/assets/{_CXSLJgQu.js → _BIwmkApM.js} +1 -1
- package/dist/public/assets/_BIwmkApM.js.br +0 -0
- package/dist/public/assets/{_CnT3pmYB2.js → _BSISAs7U2.js} +1 -1
- package/dist/public/assets/_BSISAs7U2.js.br +0 -0
- package/dist/public/assets/{_NUYSH0pf.js → _BTXpXWX_.js} +1 -1
- package/dist/public/assets/_BTXpXWX_.js.br +0 -0
- package/dist/public/assets/{_BXLeSgTE.js → _BWxRtsYe.js} +1 -1
- package/dist/public/assets/_BWxRtsYe.js.br +0 -0
- package/dist/public/assets/{_BVBmzGqS.js → _Ba_fRTxl.js} +1 -1
- package/dist/public/assets/_Ba_fRTxl.js.br +0 -0
- package/dist/public/assets/{_kVkzX9EO.js → _BcpUdCHG.js} +1 -1
- package/dist/public/assets/_BcpUdCHG.js.br +0 -0
- package/dist/public/assets/{_CDnysN3S.js → _Bd-KABgY.js} +1 -1
- package/dist/public/assets/_Bd-KABgY.js.br +0 -0
- package/dist/public/assets/{_48TVbcsA.js → _BmbR7-Sm.js} +1 -1
- package/dist/public/assets/_BmbR7-Sm.js.br +0 -0
- package/dist/public/assets/{_CPNeNXSQ2.js → _BnB3kxXv2.js} +1 -1
- package/dist/public/assets/_BnB3kxXv2.js.br +0 -0
- package/dist/public/assets/{_D9gN-c2a.js → _Bo25KMr2.js} +1 -1
- package/dist/public/assets/_Bo25KMr2.js.br +0 -0
- package/dist/public/assets/{_CNX3tzOp.js → _Bpbf18vi.js} +1 -1
- package/dist/public/assets/_Bpbf18vi.js.br +0 -0
- package/dist/public/assets/{_InihcsUB.js → _BpidOAFS.js} +1 -1
- package/dist/public/assets/_BpidOAFS.js.br +0 -0
- package/dist/public/assets/{_BktPzARb2.js → _BrvuWmpM2.js} +1 -1
- package/dist/public/assets/_BrvuWmpM2.js.br +0 -0
- package/dist/public/assets/{_BptlJm4g.js → _BvJf61W8.js} +1 -1
- package/dist/public/assets/_BvJf61W8.js.br +0 -0
- package/dist/public/assets/{_BBsyBPY_2.js → _BysVGK9V2.js} +1 -1
- package/dist/public/assets/_BysVGK9V2.js.br +0 -0
- package/dist/public/assets/{_DXAKHniZ2.js → _C4-Fa9cE2.js} +1 -1
- package/dist/public/assets/_C4-Fa9cE2.js.br +0 -0
- package/dist/public/assets/{_wo4arGtx.js → _C5TRZT17.js} +1 -1
- package/dist/public/assets/{_xXKz88pr.js → _C8z0AqL9.js} +1 -1
- package/dist/public/assets/_C8z0AqL9.js.br +0 -0
- package/dist/public/assets/{_D4dVNJDB.js → _CDd7pldP.js} +1 -1
- package/dist/public/assets/_CDd7pldP.js.br +0 -0
- package/dist/public/assets/{_DrbgVNDi.js → _CIL_tvto.js} +1 -1
- package/dist/public/assets/_CIL_tvto.js.br +0 -0
- package/dist/public/assets/{_rtNfq8SS.js → _CMWNil0b.js} +1 -1
- package/dist/public/assets/_CMWNil0b.js.br +0 -0
- package/dist/public/assets/{_D74yUpFR.js → _CPQ8yLEU.js} +1 -1
- package/dist/public/assets/_CPQ8yLEU.js.br +0 -0
- package/dist/public/assets/{_OFWvFH2G2.js → _CPTI4WQL2.js} +1 -1
- package/dist/public/assets/_CPTI4WQL2.js.br +0 -0
- package/dist/public/assets/{_BUhJRZkY2.js → _CU93C2BH2.js} +1 -1
- package/dist/public/assets/_CU93C2BH2.js.br +0 -0
- package/dist/public/assets/{_BsPfAMjd.js → _CUgh4Geb.js} +1 -1
- package/dist/public/assets/_CUgh4Geb.js.br +0 -0
- package/dist/public/assets/{_B4svQeA62.js → _CUiuEswY2.js} +1 -1
- package/dist/public/assets/_CYNQgKbT.js +89 -0
- package/dist/public/assets/_CYNQgKbT.js.br +0 -0
- package/dist/public/assets/{_BZFvk6oF.js → _CaX7kwGj.js} +1 -1
- package/dist/public/assets/_CaX7kwGj.js.br +0 -0
- package/dist/public/assets/{_RPQFtSoa.js → _CanSxUih.js} +1 -1
- package/dist/public/assets/_CanSxUih.js.br +0 -0
- package/dist/public/assets/{_f_jhUV9E2.js → _Cl4_PEdC2.js} +1 -1
- package/dist/public/assets/_Cl4_PEdC2.js.br +0 -0
- package/dist/public/assets/{_BhJpS1j5.js → _CtoSA4u9.js} +1 -1
- package/dist/public/assets/_CtoSA4u9.js.br +0 -0
- package/dist/public/assets/{_BBZERnMF.js → _Cv1rmZqs.js} +1 -1
- package/dist/public/assets/_Cv1rmZqs.js.br +0 -0
- package/dist/public/assets/{_Dbs1ola1.js → _CvFrnNxs.js} +1 -1
- package/dist/public/assets/_CvFrnNxs.js.br +0 -0
- package/dist/public/assets/{_BgiBAuH-.js → _CxuGj9Kh.js} +1 -1
- package/dist/public/assets/_CxuGj9Kh.js.br +0 -0
- package/dist/public/assets/{_CIigx59b.js → _CyUsS-Ew.js} +1 -1
- package/dist/public/assets/_CyUsS-Ew.js.br +0 -0
- package/dist/public/assets/{_zvkt6Dg_.js → _D0T5xgdm.js} +1 -1
- package/dist/public/assets/_D0T5xgdm.js.br +0 -0
- package/dist/public/assets/{_DR1dHtu1.js → _D8uW-24S.js} +1 -1
- package/dist/public/assets/_D8uW-24S.js.br +0 -0
- package/dist/public/assets/{_CZjXErwu2.js → _DClX-kzp2.js} +1 -1
- package/dist/public/assets/_DClX-kzp2.js.br +0 -0
- package/dist/public/assets/{_BRZcUxwW.js → _DE6OIuaj.js} +1 -1
- package/dist/public/assets/_DE6OIuaj.js.br +0 -0
- package/dist/public/assets/{_Bxt0CEQr2.js → _DReNRAce2.js} +1 -1
- package/dist/public/assets/_DReNRAce2.js.br +0 -0
- package/dist/public/assets/{_BRBoguWB.js → _DSR5YMpz.js} +1 -1
- package/dist/public/assets/_DSR5YMpz.js.br +0 -0
- package/dist/public/assets/{_bG9QrB36.js → _DXu4guU2.js} +1 -1
- package/dist/public/assets/_DXu4guU2.js.br +0 -0
- package/dist/public/assets/{_CZik1U89.js → _DaXvCDxA.js} +1 -1
- package/dist/public/assets/_DaXvCDxA.js.br +0 -0
- package/dist/public/assets/{_ClwjGc8M2.js → _DaiUj3cu2.js} +1 -1
- package/dist/public/assets/_DaiUj3cu2.js.br +0 -0
- package/dist/public/assets/{_BB5wTQEd.js → _Dd1-18Hp.js} +1 -1
- package/dist/public/assets/_Dd1-18Hp.js.br +0 -0
- package/dist/public/assets/{_A0q7Ooua2.js → _DffLVIPj2.js} +1 -1
- package/dist/public/assets/_DffLVIPj2.js.br +0 -0
- package/dist/public/assets/{_BLuzQrZB2.js → _Dhua8ybj2.js} +1 -1
- package/dist/public/assets/_Dhua8ybj2.js.br +0 -0
- package/dist/public/assets/{_BRs7wrJ2.js → _DmgOfIwN.js} +1 -1
- package/dist/public/assets/_DmgOfIwN.js.br +0 -0
- package/dist/public/assets/{_DjNLicto.js → _Dml9mocl.js} +1 -1
- package/dist/public/assets/_Dml9mocl.js.br +0 -0
- package/dist/public/assets/{_C0oMCmKy.js → _DnuQIvTk.js} +1 -1
- package/dist/public/assets/_DnuQIvTk.js.br +0 -0
- package/dist/public/assets/{_D-JURl4r.js → _Dt9ju-f-.js} +1 -1
- package/dist/public/assets/_Dt9ju-f-.js.br +0 -0
- package/dist/public/assets/{_mrxNqpY62.js → _Dtcj4Vdb2.js} +1 -1
- package/dist/public/assets/_Dtcj4Vdb2.js.br +0 -0
- package/dist/public/assets/{_C37o6tKr.js → _DwNwW4jm.js} +6 -6
- package/dist/public/assets/_DwNwW4jm.js.br +0 -0
- package/dist/public/assets/{_Bzah2rSU.js → _DwsYmrLF.js} +1 -1
- package/dist/public/assets/_DwsYmrLF.js.br +0 -0
- package/dist/public/assets/{_D4SxCtr7.js → _OIJzbHVo.js} +1 -1
- package/dist/public/assets/_OIJzbHVo.js.br +0 -0
- package/dist/public/assets/{_jITNZyKr2.js → _PcBwrdGV2.js} +1 -1
- package/dist/public/assets/_PcBwrdGV2.js.br +0 -0
- package/dist/public/assets/{_BE8aZ_UF.js → _SSrroa0Z.js} +1 -1
- package/dist/public/assets/_SSrroa0Z.js.br +0 -0
- package/dist/public/assets/{_Dp4WK_Ux2.js → _T8YOpcQj2.js} +1 -1
- package/dist/public/assets/_T8YOpcQj2.js.br +0 -0
- package/dist/public/assets/{_D7FM8A3g.js → _Z4atEQ98.js} +1 -1
- package/dist/public/assets/_Z4atEQ98.js.br +0 -0
- package/dist/public/assets/{_DAc4ydLU2.js → _cvUAeKFs2.js} +1 -1
- package/dist/public/assets/_cvUAeKFs2.js.br +0 -0
- package/dist/public/assets/{_XQI2rM-72.js → _jOkJ6aek2.js} +1 -1
- package/dist/public/assets/_jOkJ6aek2.js.br +0 -0
- package/dist/public/assets/{_B7GZ8Nzq.js → _kDA0ZntT.js} +1 -1
- package/dist/public/assets/_kDA0ZntT.js.br +0 -0
- package/dist/public/assets/{_CFty7QOX2.js → _n5HhfX_m2.js} +1 -1
- package/dist/public/assets/_n5HhfX_m2.js.br +0 -0
- package/dist/public/assets/{_aOU3qQZB.js → _pq7cZIB5.js} +1 -1
- package/dist/public/assets/_pq7cZIB5.js.br +0 -0
- package/dist/public/assets/{_cq7Zuamy.js → _quIdZaH6.js} +1 -1
- package/dist/public/assets/_quIdZaH6.js.br +0 -0
- package/dist/public/assets/{_mlus7Zvc.js → _vbrsGoKV.js} +1 -1
- package/dist/public/assets/_vbrsGoKV.js.br +0 -0
- package/dist/public/assets/{_CIh-AkC9.js → _xEbKAoEJ.js} +1 -1
- package/dist/public/assets/_xEbKAoEJ.js.br +0 -0
- package/dist/public/assets/app-page-D0e78Fao.css +1 -0
- package/dist/public/assets/app-page-D0e78Fao.css.br +0 -0
- package/dist/public/assets/diff-view-Csph_Zzt.css +1 -0
- package/dist/public/assets/diff-view-Csph_Zzt.css.br +0 -0
- package/dist/public/assets/new-5LeFVg_7.js +1 -0
- package/dist/public/assets/settings-5LeFVg_7.js +1 -0
- package/dist/public/assets/w-5LeFVg_7.js +1 -0
- package/dist/public/assets/w._-5LeFVg_7.js +1 -0
- package/dist/public/assets/w._-CYXtcUyN.js +1 -0
- package/package.json +1 -1
- package/dist/public/assets/_48TVbcsA.js.br +0 -0
- package/dist/public/assets/_5Rj2gra4.js.br +0 -0
- package/dist/public/assets/_A0q7Ooua2.js.br +0 -0
- package/dist/public/assets/_B2_tmvdP2.js.br +0 -0
- package/dist/public/assets/_B7GZ8Nzq.js.br +0 -0
- package/dist/public/assets/_BB5wTQEd.js.br +0 -0
- package/dist/public/assets/_BBZERnMF.js.br +0 -0
- package/dist/public/assets/_BBsyBPY_2.js.br +0 -0
- package/dist/public/assets/_BE8aZ_UF.js.br +0 -0
- package/dist/public/assets/_BLuzQrZB2.js.br +0 -0
- package/dist/public/assets/_BRBoguWB.js.br +0 -0
- package/dist/public/assets/_BRZcUxwW.js.br +0 -0
- package/dist/public/assets/_BRs7wrJ2.js.br +0 -0
- package/dist/public/assets/_BT12g7le2.js.br +0 -0
- package/dist/public/assets/_BUhJRZkY2.js.br +0 -0
- package/dist/public/assets/_BVBmzGqS.js.br +0 -0
- package/dist/public/assets/_BXLeSgTE.js.br +0 -0
- package/dist/public/assets/_BZFvk6oF.js.br +0 -0
- package/dist/public/assets/_BcrQbEVL.js.br +0 -0
- package/dist/public/assets/_BgiBAuH-.js.br +0 -0
- package/dist/public/assets/_BhJpS1j5.js.br +0 -0
- package/dist/public/assets/_BktPzARb2.js.br +0 -0
- package/dist/public/assets/_BptlJm4g.js.br +0 -0
- package/dist/public/assets/_BsPfAMjd.js.br +0 -0
- package/dist/public/assets/_Bxt0CEQr2.js.br +0 -0
- package/dist/public/assets/_Bzah2rSU.js.br +0 -0
- package/dist/public/assets/_C0oMCmKy.js.br +0 -0
- package/dist/public/assets/_C37o6tKr.js.br +0 -0
- package/dist/public/assets/_C8aavgS-2.js.br +0 -0
- package/dist/public/assets/_CDnysN3S.js.br +0 -0
- package/dist/public/assets/_CFty7QOX2.js.br +0 -0
- package/dist/public/assets/_CGhMIkoU.js.br +0 -0
- package/dist/public/assets/_CIh-AkC9.js.br +0 -0
- package/dist/public/assets/_CIigx59b.js.br +0 -0
- package/dist/public/assets/_CLWE-Z1K.js +0 -89
- package/dist/public/assets/_CLWE-Z1K.js.br +0 -0
- package/dist/public/assets/_CNX3tzOp.js.br +0 -0
- package/dist/public/assets/_CPNeNXSQ2.js.br +0 -0
- package/dist/public/assets/_CXSLJgQu.js.br +0 -0
- package/dist/public/assets/_CZik1U89.js.br +0 -0
- package/dist/public/assets/_CZjXErwu2.js.br +0 -0
- package/dist/public/assets/_ClwjGc8M2.js.br +0 -0
- package/dist/public/assets/_CnT3pmYB2.js.br +0 -0
- package/dist/public/assets/_D-JURl4r.js.br +0 -0
- package/dist/public/assets/_D4SxCtr7.js.br +0 -0
- package/dist/public/assets/_D4dVNJDB.js.br +0 -0
- package/dist/public/assets/_D74yUpFR.js.br +0 -0
- package/dist/public/assets/_D7FM8A3g.js.br +0 -0
- package/dist/public/assets/_D9gN-c2a.js.br +0 -0
- package/dist/public/assets/_DAc4ydLU2.js.br +0 -0
- package/dist/public/assets/_DR1dHtu1.js.br +0 -0
- package/dist/public/assets/_DXAKHniZ2.js.br +0 -0
- package/dist/public/assets/_Dbs1ola1.js.br +0 -0
- package/dist/public/assets/_Ddy1aeKP.js.br +0 -0
- package/dist/public/assets/_DjNLicto.js.br +0 -0
- package/dist/public/assets/_Dp4WK_Ux2.js.br +0 -0
- package/dist/public/assets/_DrbgVNDi.js.br +0 -0
- package/dist/public/assets/_InihcsUB.js.br +0 -0
- package/dist/public/assets/_NUYSH0pf.js.br +0 -0
- package/dist/public/assets/_OFWvFH2G2.js.br +0 -0
- package/dist/public/assets/_RPQFtSoa.js.br +0 -0
- package/dist/public/assets/_SqANV0GA.js.br +0 -0
- package/dist/public/assets/_XQI2rM-72.js.br +0 -0
- package/dist/public/assets/_aOU3qQZB.js.br +0 -0
- package/dist/public/assets/_bG9QrB36.js.br +0 -0
- package/dist/public/assets/_cq7Zuamy.js.br +0 -0
- package/dist/public/assets/_f_jhUV9E2.js.br +0 -0
- package/dist/public/assets/_jITNZyKr2.js.br +0 -0
- package/dist/public/assets/_kVkzX9EO.js.br +0 -0
- package/dist/public/assets/_mlus7Zvc.js.br +0 -0
- package/dist/public/assets/_mrxNqpY62.js.br +0 -0
- package/dist/public/assets/_rtNfq8SS.js.br +0 -0
- package/dist/public/assets/_xXKz88pr.js.br +0 -0
- package/dist/public/assets/_zvkt6Dg_.js.br +0 -0
- package/dist/public/assets/app-page-D93IyHzW.css +0 -1
- package/dist/public/assets/app-page-D93IyHzW.css.br +0 -0
- package/dist/public/assets/diff-view-BU-rwlH-.css +0 -1
- package/dist/public/assets/diff-view-BU-rwlH-.css.br +0 -0
- package/dist/public/assets/new-D-2OVF74.js +0 -1
- package/dist/public/assets/settings-D-2OVF74.js +0 -1
- package/dist/public/assets/w-D-2OVF74.js +0 -1
- package/dist/public/assets/w._-BprceT9I.js +0 -1
- package/dist/public/assets/w._-D-2OVF74.js +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM, r as __exportAll, t as __commonJSMin } from "./_BMI-E3GI.js";
|
|
2
2
|
import { $ as setSetting, A as setScrapedPhase, B as saveSubscription, C as agentBadge, D as agentMeta, E as agentLabel, F as manifest, G as agentChoices, H as subscribe, I as normalizeAccent, J as enabledAgents, K as allPrefs, L as setInstance, M as ACCENT_RE, N as getInstance, O as clearAgentPhase, P as iconSvg, Q as setPref, R as deleteSubscription, S as blankRow, T as agentFromCommand, U as subscriberCount, V as publish, W as subscriberJoins, X as preferredAgent, Y as getSetting, Z as setDisabledAgents, _ as tmuxName, _t as git, a as ensureTmuxServer, at as which, b as readHookPayload, bt as config, c as killWorkspaceSessions, ct as agentById, d as newSessionArgs, dt as all, et as discoverAgents, ft as db, g as sessionStates, gt as gh, h as sendToSession, ht as TMUX_SOCKET, i as disposeSessions, it as setupPath, j as setSessionViewers, k as setAgentPhase, l as listSessions, lt as agentLabel$1, m as renameSession, mt as workspacePath, n as clearTmuxStarted, nt as ghKnownHosts, o as getSession, ot as DEFAULT_GITHUB_HOST, p as panePids, pt as get, q as disabledAgents, r as createSession, rt as miseVersions, s as killSession, st as TOOLS, t as cleanEnv, tt as doctor, u as markTmuxStarted, ut as toolById, v as tmuxWasStarted, vt as run, w as agentFamily, x as reportsWorking, y as AGENTS, yt as tmux, z as pushPublicKey } from "./_BJg54Xa1.js";
|
|
3
|
-
import { $ as _attr_or, A as iconSize, At as _serialize_if, B as iconBtnXs, Bt as writeScope, C as setWorkspaceTab, Ct as _resume_branch, D as toast_default, Dt as _script, E as workspaceTab, Et as _scope_with_id, F as btnLg, Ft as _trailers, G as $global, H as metaTrunc, I as btnSm, It as _var, K as _attr, L as chipBtn, Lt as attrTag, M as repoLabel, Mt as _subscribe, N as repoWebUrl$1, Nt as _template, O as icon_xmark_default, Ot as _sep, P as setPrimaryHost, Pt as _to_text, Q as _attr_option_value, Rt as forOf, S as setTheme, St as _resume, T as theme, Tt as _scope_reason, U as phase, V as inputLg, W as tone, X as _attr_input_value, Y as _attr_input_checked, Z as _attr_nonce, _t as _hoist_read_error, at as _content, bt as _if, c as icon_search_default, d as icon_refresh_default, dt as _escape, et as _attr_select_value, f as iconBtn$1, ft as _escape_script, gt as _hoist, ht as _for_of, i as icon_sidebar_default, it as _attrs_partial, j as parseRepoUrl, jt as _set_serialize_reason, k as icon_base_default, kt as _serialize_guard, l as icon_chevron_right_default, lt as _el_read_error, m as sectionCount, mt as _flush_head, n as findIconBtn, nt as _attr_textarea_value, o as rankRepos, ot as _content_resume, p as row, pt as _existing_scope, q as _attr_class, r as findInput, rt as _attrs, s as icon_arrow_up_default, st as _dynamic_tag, t as icon_arrow_down_default, tt as _attr_style, u as icon_back_default, ut as _el_resume, vt as _html, w as sideNavOpen, wt as _scope_id, xt as _peek_scope_id, y as ignoredSsoOrgs, yt as _id, z as iconBtnRow, zt as withPageAssets } from "./
|
|
3
|
+
import { $ as _attr_or, A as iconSize, At as _serialize_if, B as iconBtnXs, Bt as writeScope, C as setWorkspaceTab, Ct as _resume_branch, D as toast_default, Dt as _script, E as workspaceTab, Et as _scope_with_id, F as btnLg, Ft as _trailers, G as $global, H as metaTrunc, I as btnSm, It as _var, K as _attr, L as chipBtn, Lt as attrTag, M as repoLabel, Mt as _subscribe, N as repoWebUrl$1, Nt as _template, O as icon_xmark_default, Ot as _sep, P as setPrimaryHost, Pt as _to_text, Q as _attr_option_value, Rt as forOf, S as setTheme, St as _resume, T as theme, Tt as _scope_reason, U as phase, V as inputLg, W as tone, X as _attr_input_value, Y as _attr_input_checked, Z as _attr_nonce, _t as _hoist_read_error, at as _content, bt as _if, c as icon_search_default, d as icon_refresh_default, dt as _escape, et as _attr_select_value, f as iconBtn$1, ft as _escape_script, gt as _hoist, ht as _for_of, i as icon_sidebar_default, it as _attrs_partial, j as parseRepoUrl, jt as _set_serialize_reason, k as icon_base_default, kt as _serialize_guard, l as icon_chevron_right_default, lt as _el_read_error, m as sectionCount, mt as _flush_head, n as findIconBtn, nt as _attr_textarea_value, o as rankRepos, ot as _content_resume, p as row, pt as _existing_scope, q as _attr_class, r as findInput, rt as _attrs, s as icon_arrow_up_default, st as _dynamic_tag, t as icon_arrow_down_default, tt as _attr_style, u as icon_back_default, ut as _el_resume, vt as _html, w as sideNavOpen, wt as _scope_id, xt as _peek_scope_id, y as ignoredSsoOrgs, yt as _id, z as iconBtnRow, zt as withPageAssets } from "./_NJRrlQSH.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
import path from "node:path";
|
|
@@ -4249,24 +4249,24 @@ function applyInstance(inst) {
|
|
|
4249
4249
|
}
|
|
4250
4250
|
//#endregion
|
|
4251
4251
|
//#region src/tags/settings-page.css.ts
|
|
4252
|
-
var content$2 = "
|
|
4253
|
-
var agentGrid = "
|
|
4254
|
-
var toolGrid = "
|
|
4255
|
-
var toolRow = "
|
|
4256
|
-
var themeSeg = "
|
|
4257
|
-
var swatches = "
|
|
4258
|
-
var checkList = "
|
|
4259
|
-
var flatCardRow = "
|
|
4260
|
-
var pop$1 = "
|
|
4261
|
-
var spinner = "
|
|
4262
|
-
var busy = "
|
|
4263
|
-
var pop = "
|
|
4252
|
+
var content$2 = "_cA _bN _bO";
|
|
4253
|
+
var agentGrid = "_cD _bz";
|
|
4254
|
+
var toolGrid = "_cN _cx";
|
|
4255
|
+
var toolRow = "_cO _cy";
|
|
4256
|
+
var themeSeg = "_da _bc";
|
|
4257
|
+
var swatches = "_di _bc";
|
|
4258
|
+
var checkList = "_dz _bz";
|
|
4259
|
+
var flatCardRow = "_cz _cy";
|
|
4260
|
+
var pop$1 = "_dP _8";
|
|
4261
|
+
var spinner = "_dS _0 _E";
|
|
4262
|
+
var busy = "_dG _dF";
|
|
4263
|
+
var pop = "_dI _8";
|
|
4264
4264
|
//#endregion
|
|
4265
4265
|
//#region src/tags/page-head.marko
|
|
4266
4266
|
var page_head_default = _template("t", (input) => {
|
|
4267
4267
|
const $scope0_reason = _scope_reason(), $sg__input_backHref__OR__input_onBack__OR__input_meta__OR__input_actions = _serialize_guard($scope0_reason, 3), $sg__input_meta = _serialize_guard($scope0_reason, 6), $sg__input_actions = _serialize_guard($scope0_reason, 7), $si__input_backHref__OR__input_onBack = _serialize_if($scope0_reason, 1), $si__input_meta = _serialize_if($scope0_reason, 6), $si__input_actions = _serialize_if($scope0_reason, 7);
|
|
4268
4268
|
const $scope0_id = _scope_id();
|
|
4269
|
-
_html(`<header${_attr_class("
|
|
4269
|
+
_html(`<header${_attr_class("_bP")}>`);
|
|
4270
4270
|
_if(() => {
|
|
4271
4271
|
if (input.backHref) {
|
|
4272
4272
|
const $scope1_id = _scope_id();
|
|
@@ -4285,11 +4285,11 @@ var page_head_default = _template("t", (input) => {
|
|
|
4285
4285
|
return 1;
|
|
4286
4286
|
}
|
|
4287
4287
|
}, $scope0_id, "b", _serialize_guard($scope0_reason, 2), _serialize_guard($scope0_reason, 1), $sg__input_backHref__OR__input_onBack__OR__input_meta__OR__input_actions, 0, 1);
|
|
4288
|
-
_html(`<div${_attr_class("
|
|
4288
|
+
_html(`<div${_attr_class("_bR")}><h1${_attr("id", input.titleId)}${_attr_class("_bQ")}>${_escape(input.title)}${_el_resume($scope0_id, "e", _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
|
|
4289
4289
|
_if(() => {
|
|
4290
4290
|
if (input.meta) {
|
|
4291
4291
|
const $scope3_id = _scope_id();
|
|
4292
|
-
_html(`<p${_attr_class("
|
|
4292
|
+
_html(`<p${_attr_class("_bS")}>`);
|
|
4293
4293
|
_dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
4294
4294
|
_html("</p>");
|
|
4295
4295
|
$si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -4300,7 +4300,7 @@ var page_head_default = _template("t", (input) => {
|
|
|
4300
4300
|
_if(() => {
|
|
4301
4301
|
if (input.actions) {
|
|
4302
4302
|
const $scope4_id = _scope_id();
|
|
4303
|
-
_html(`<div${_attr_class("
|
|
4303
|
+
_html(`<div${_attr_class("_bT")}>`);
|
|
4304
4304
|
_dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
4305
4305
|
_html("</div>");
|
|
4306
4306
|
$si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -4368,7 +4368,7 @@ var icon_agent_default = _template("J", (input) => {
|
|
|
4368
4368
|
n: $badge__closures
|
|
4369
4369
|
});
|
|
4370
4370
|
});
|
|
4371
|
-
var usageNote = "
|
|
4371
|
+
var usageNote = "_eU _V";
|
|
4372
4372
|
//#endregion
|
|
4373
4373
|
//#region src/tags/icons/icon-warning.marko
|
|
4374
4374
|
var icon_warning_default = _template("ob", (input) => {
|
|
@@ -4398,11 +4398,11 @@ var usage_meters_default = _template("G", (input) => {
|
|
|
4398
4398
|
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);
|
|
4399
4399
|
const $scope0_id = _scope_id();
|
|
4400
4400
|
const agent = input.agent;
|
|
4401
|
-
_html(`<div${_attr_class(["
|
|
4401
|
+
_html(`<div${_attr_class(["_eO", { ["_eP"]: input.hideName }])}><div${_attr_class("_eQ")}>`);
|
|
4402
4402
|
_if(() => {
|
|
4403
4403
|
if (!input.hideName) {
|
|
4404
4404
|
const $scope1_id = _scope_id();
|
|
4405
|
-
_html(`<strong${_attr_class("
|
|
4405
|
+
_html(`<strong${_attr_class("_e9")}>${_escape(agent.agent)}${_el_resume($scope1_id, "b", $sg__input_agent)}</strong>`);
|
|
4406
4406
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
4407
4407
|
return 0;
|
|
4408
4408
|
}
|
|
@@ -4410,7 +4410,7 @@ var usage_meters_default = _template("G", (input) => {
|
|
|
4410
4410
|
_if(() => {
|
|
4411
4411
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
4412
4412
|
const $scope2_id = _scope_id();
|
|
4413
|
-
_html(`<span${_attr_class("
|
|
4413
|
+
_html(`<span${_attr_class("_eR")}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope2_id, "b", $sg__input_agent)}</span>`);
|
|
4414
4414
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
4415
4415
|
return 0;
|
|
4416
4416
|
}
|
|
@@ -4418,21 +4418,21 @@ var usage_meters_default = _template("G", (input) => {
|
|
|
4418
4418
|
_if(() => {
|
|
4419
4419
|
if (agent.stale_seconds != null) {
|
|
4420
4420
|
const $scope3_id = _scope_id();
|
|
4421
|
-
_html(`<span${_attr_class("
|
|
4421
|
+
_html(`<span${_attr_class("_eS")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
|
|
4422
4422
|
icon_warning_default({ size: 12 });
|
|
4423
4423
|
_html(` ${_sep($sg__input_agent)}${_escape(duration(agent.stale_seconds * 1e3))}${_el_resume($scope3_id, "c", $sg__input_agent)} old</span>${_el_resume($scope3_id, "a", $sg__input_agent)}`);
|
|
4424
4424
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
4425
4425
|
return 0;
|
|
4426
4426
|
}
|
|
4427
4427
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
4428
|
-
_html(`</div><div${_attr_class(["
|
|
4428
|
+
_html(`</div><div${_attr_class(["_eT", { ["_e_"]: agent.stale_seconds != null }])}>`);
|
|
4429
4429
|
_for_of(agent.windows || [], (win) => {
|
|
4430
4430
|
const $scope4_id = _scope_id();
|
|
4431
4431
|
const pct = pctText(win.used_percent);
|
|
4432
4432
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
4433
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
4434
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
4435
|
-
_html(`<div${_attr_class("
|
|
4433
|
+
const fillClass = win.used_percent >= 90 ? "_e2" : win.used_percent >= 70 ? "_e1" : win.used_percent >= 40 ? "_e0" : "_eZ";
|
|
4434
|
+
const pctClass = win.used_percent >= 90 ? "_e7" : win.used_percent >= 70 ? "_e6" : win.used_percent >= 40 ? "_e5" : "_e4";
|
|
4435
|
+
_html(`<div${_attr_class("_eV")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_eW")}>${_escape(win.window)}${_el_resume($scope4_id, "c", $sg__input_agent)}</span><span${_attr_class("_eX")}><span${_attr_class(["_eY", fillClass])}${_attr_style(`width:${Math.min(100, Math.max(2, win.used_percent))}%`)}></span>${_el_resume($scope4_id, "e", $sg__input_agent)}</span><span${_attr_class(["_e3", pctClass])}>${_escape(pct)}${_el_resume($scope4_id, "g", $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_e8")}>`);
|
|
4436
4436
|
_if(() => {
|
|
4437
4437
|
if (label) {
|
|
4438
4438
|
const $scope6_id = _scope_id();
|
|
@@ -4512,12 +4512,8 @@ var icon_check_default = _template("S", (input) => {
|
|
|
4512
4512
|
var api$7;
|
|
4513
4513
|
var watchProgress$3;
|
|
4514
4514
|
var sso_auth_default = _template("C", (input) => {
|
|
4515
|
-
const $scope0_reason = _scope_reason(), $sg__input_items = _serialize_guard($scope0_reason, 2), $
|
|
4515
|
+
const $scope0_reason = _scope_reason(), $sg__input_items = _serialize_guard($scope0_reason, 2), $sg__input_skipped__OR__input_items = _serialize_guard($scope0_reason, 0), $sg__input_skipped = _serialize_guard($scope0_reason, 1);
|
|
4516
4516
|
const $scope0_id = _scope_id();
|
|
4517
|
-
const $host__closures = /* @__PURE__ */ new Set();
|
|
4518
|
-
const $localCode__closures = /* @__PURE__ */ new Set();
|
|
4519
|
-
const $busy__closures = /* @__PURE__ */ new Set();
|
|
4520
|
-
const $localError__closures = /* @__PURE__ */ new Set();
|
|
4521
4517
|
const skipped = input.skipped || [];
|
|
4522
4518
|
const host = input.items[0]?.host || "github.com";
|
|
4523
4519
|
let localBusy = false;
|
|
@@ -4553,93 +4549,68 @@ var sso_auth_default = _template("C", (input) => {
|
|
|
4553
4549
|
localCode = null;
|
|
4554
4550
|
}
|
|
4555
4551
|
}, "C0", $scope0_id);
|
|
4556
|
-
_html(`<div${_attr_class("
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
size: 12,
|
|
4563
|
-
class: "_gn"
|
|
4564
|
-
});
|
|
4565
|
-
_html(` Organization SSO</span><span${_attr_class("_gx")}>Repos and PRs in these orgs stay hidden until the GitHub CLI is authorized for them.</span><span${_attr_class("_x")}></span>`);
|
|
4566
|
-
_if(() => {
|
|
4567
|
-
if (localBusy && localCode) {
|
|
4568
|
-
const $scope5_id = _scope_id();
|
|
4569
|
-
_html(`<span${_attr_class("_gu")}><span${_attr_class("_E")}></span> Enter code <strong${_attr_class("_gv")}>${_escape(localCode)}${_el_resume($scope5_id, "d")}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_gw")}>${_escape(host)}${_el_resume($scope5_id, "f", _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope5_id, "e")}</span>`);
|
|
4570
|
-
_script($scope5_id, "C1");
|
|
4571
|
-
_subscribe($localCode__closures, _subscribe($si__input_items_0_host && $host__closures, writeScope($scope5_id, {})));
|
|
4572
|
-
return 0;
|
|
4573
|
-
} else if (localBusy) {
|
|
4574
|
-
const $scope8_id = _scope_id();
|
|
4575
|
-
_html(`<span${_attr_class("_gu")}><span${_attr_class("_E")}></span>Starting GitHub re-authorization…</span>`);
|
|
4576
|
-
writeScope($scope8_id, {});
|
|
4577
|
-
return 1;
|
|
4578
|
-
} else if (!busy) {
|
|
4579
|
-
const $scope7_id = _scope_id();
|
|
4580
|
-
_html(`<button type=button${_attr_class([btnSm, "_p"])} title="Re-authorize GitHub CLI (same device flow as Sign in)">Authorize</button>${_el_resume($scope7_id, "a")}`);
|
|
4581
|
-
_script($scope7_id, "C2");
|
|
4582
|
-
writeScope($scope7_id, {});
|
|
4583
|
-
return 2;
|
|
4584
|
-
}
|
|
4585
|
-
}, $scope1_id, "f", 1, 1, 1, 0, 1);
|
|
4586
|
-
_html(`</div><ul${_attr_class("_go")}>`);
|
|
4587
|
-
_for_of(input.items, (s) => {
|
|
4552
|
+
_html(`<div${_attr_class(["_eB", input.class])}>`);
|
|
4553
|
+
_for_of(input.items, (s) => {
|
|
4554
|
+
const $scope1_id = _scope_id();
|
|
4555
|
+
_html(`<div${_attr_class("_eC")}><span${_attr_class("_eE")}><span${_attr_class("_eF")}>${_escape(s.org)}${_el_resume($scope1_id, "d", $sg__input_items)}</span><span${_attr_class(["_eG", "_eH"])} title="Repos and PRs in this org stay hidden until the GitHub CLI is authorized for it.">SSO not authorized</span></span>`);
|
|
4556
|
+
_if(() => {
|
|
4557
|
+
if (!busy) {
|
|
4588
4558
|
const $scope2_id = _scope_id();
|
|
4589
|
-
_html(`<
|
|
4590
|
-
_script($scope2_id, "
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4559
|
+
_html(`<button type=button${_attr_class([btnSm, "_p"])} title="Re-authorize GitHub CLI (same device flow as Sign in)">Authorize</button>${_el_resume($scope2_id, "a")}<button type=button${_attr_class([btnSm, "_eI"])}${_attr("title", `Ignore ${s.org} — stop asking about it`)}>Ignore</button>${_el_resume($scope2_id, "b")}`);
|
|
4560
|
+
_script($scope2_id, "C1");
|
|
4561
|
+
writeScope($scope2_id, {});
|
|
4562
|
+
return 0;
|
|
4563
|
+
}
|
|
4564
|
+
}, $scope1_id, "f");
|
|
4565
|
+
_html("</div>");
|
|
4566
|
+
writeScope($scope1_id, {
|
|
4567
|
+
i: s?.org,
|
|
4568
|
+
_: _scope_with_id($scope0_id)
|
|
4569
|
+
});
|
|
4570
|
+
}, "org", $scope0_id, "b", 1, $sg__input_items, $sg__input_skipped__OR__input_items, 0, 1);
|
|
4571
|
+
_if(() => {
|
|
4572
|
+
if (localBusy && localCode) {
|
|
4573
|
+
const $scope4_id = _scope_id();
|
|
4574
|
+
_html(`<div${_attr_class(["_eC", "_eJ"])}><span${_attr_class("_E")}></span> Enter code <strong${_attr_class("_eK")}>${_escape(localCode)}${_el_resume($scope4_id, "d")}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_eL")}>${_escape(host)}${_el_resume($scope4_id, "f", _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope4_id, "e")}</div>`);
|
|
4575
|
+
_script($scope4_id, "C2");
|
|
4576
|
+
writeScope($scope4_id, {});
|
|
4605
4577
|
return 0;
|
|
4578
|
+
} else if (localBusy) {
|
|
4579
|
+
const $scope6_id = _scope_id();
|
|
4580
|
+
_html(`<div${_attr_class(["_eC", "_eJ"])}><span${_attr_class("_E")}></span>Starting GitHub re-authorization…</div>`);
|
|
4581
|
+
writeScope($scope6_id, {});
|
|
4582
|
+
return 1;
|
|
4606
4583
|
}
|
|
4607
|
-
}, $scope0_id, "
|
|
4584
|
+
}, $scope0_id, "c", 1, 1, 1, 0, 1);
|
|
4608
4585
|
_if(() => {
|
|
4609
|
-
if (
|
|
4610
|
-
const $
|
|
4611
|
-
_html(`<
|
|
4612
|
-
|
|
4613
|
-
const $scope4_id = _scope_id();
|
|
4614
|
-
_html(`<li${_attr_class(["_gp", "_gq"])}><span${_attr_class("_gr")}>${_escape(s.org)}${_el_resume($scope4_id, "c", $sg__input_skipped)}</span><span${_attr_class("_gs")}>skipped</span><button type=button${_attr_class([chipBtn, "_gt"])}${_attr("title", `Ask about ${s.org} again`)}>Undo</button>${_el_resume($scope4_id, "e")}</li>`);
|
|
4615
|
-
_script($scope4_id, "C4");
|
|
4616
|
-
writeScope($scope4_id, {
|
|
4617
|
-
h: s?.org,
|
|
4618
|
-
_: _scope_with_id($scope3_id)
|
|
4619
|
-
});
|
|
4620
|
-
}, "org", $scope3_id, "a", $sg__input_skipped, $sg__input_skipped, $sg__input_skipped, "</ul>", 1);
|
|
4621
|
-
writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
4586
|
+
if (localError) {
|
|
4587
|
+
const $scope5_id = _scope_id();
|
|
4588
|
+
_html(`<p${_attr_class(["_eC", "_eM"])}>${_escape(localError)}${_el_resume($scope5_id, "b")}</p>`);
|
|
4589
|
+
writeScope($scope5_id, {});
|
|
4622
4590
|
return 0;
|
|
4623
4591
|
}
|
|
4624
|
-
}, $scope0_id, "
|
|
4625
|
-
|
|
4592
|
+
}, $scope0_id, "d", 1, 1, 1, 0, 1);
|
|
4593
|
+
_for_of(skipped, (s) => {
|
|
4594
|
+
const $scope3_id = _scope_id();
|
|
4595
|
+
_html(`<div${_attr_class(["_eC", "_eD"])}><span${_attr_class("_eE")}><span${_attr_class("_eF")}>${_escape(s.org)}${_el_resume($scope3_id, "d", $sg__input_skipped)}</span><span${_attr_class("_eG")}>Ignored</span></span><button type=button${_attr_class([btnSm, "_eI"])}${_attr("title", `Ask about ${s.org} again`)}>Undo</button>${_el_resume($scope3_id, "f")}</div>`);
|
|
4596
|
+
_script($scope3_id, "C3");
|
|
4597
|
+
writeScope($scope3_id, {
|
|
4598
|
+
i: s?.org,
|
|
4599
|
+
_: _scope_with_id($scope0_id)
|
|
4600
|
+
});
|
|
4601
|
+
}, "org", $scope0_id, "e", $sg__input_skipped, $sg__input_skipped, $sg__input_skipped__OR__input_items, 0, 1);
|
|
4602
|
+
_html(`</div>${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 4))}`);
|
|
4626
4603
|
writeScope($scope0_id, {
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
v: busy,
|
|
4638
|
-
x: authorize,
|
|
4639
|
-
a0: $si__input_items_0_host && $host__closures,
|
|
4640
|
-
a2: $localCode__closures,
|
|
4641
|
-
a4: $busy__closures,
|
|
4642
|
-
a3: $localError__closures
|
|
4604
|
+
l: input.busy,
|
|
4605
|
+
m: input.onAuthorize,
|
|
4606
|
+
n: input.onDone,
|
|
4607
|
+
p: input.onChange,
|
|
4608
|
+
r: host,
|
|
4609
|
+
s: localBusy,
|
|
4610
|
+
u: localCode,
|
|
4611
|
+
w: localError,
|
|
4612
|
+
x: busy,
|
|
4613
|
+
z: authorize
|
|
4643
4614
|
});
|
|
4644
4615
|
_resume_branch($scope0_id);
|
|
4645
4616
|
});
|
|
@@ -4655,7 +4626,7 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
4655
4626
|
const $input_tags__closures = /* @__PURE__ */ new Set();
|
|
4656
4627
|
const $input_actions__closures = /* @__PURE__ */ new Set();
|
|
4657
4628
|
const $input_trailing__closures = /* @__PURE__ */ new Set();
|
|
4658
|
-
_html(`<li${_attr_class("
|
|
4629
|
+
_html(`<li${_attr_class("_dE")}>`);
|
|
4659
4630
|
_if(() => {
|
|
4660
4631
|
if (input.busy != null) {
|
|
4661
4632
|
const $scope1_id = _scope_id();
|
|
@@ -4665,20 +4636,20 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
4665
4636
|
} else {
|
|
4666
4637
|
const $scope2_id = _scope_id();
|
|
4667
4638
|
const popId = _id();
|
|
4668
|
-
_html(`<button${_attr_class("
|
|
4639
|
+
_html(`<button${_attr_class("_dF")}${_attr("popovertarget", popId)}${_attr("title", `About ${input.name}`)}>${_escape(input.name)}${_el_resume($scope2_id, "b", $sg__input_name)}`);
|
|
4669
4640
|
_if(() => {
|
|
4670
4641
|
if (input.hint) {
|
|
4671
4642
|
const $scope3_id = _scope_id();
|
|
4672
|
-
_html(`<span${_attr_class("
|
|
4643
|
+
_html(`<span${_attr_class("_dH")}>${_escape(input.hint)}${_el_resume($scope3_id, "b", $sg__input_hint)}</span>`);
|
|
4673
4644
|
$si__input_busy__OR__input_hint && _subscribe($si__input_hint && $input_hint__closures, writeScope($scope3_id, { _: _scope_with_id($scope2_id) }));
|
|
4674
4645
|
return 0;
|
|
4675
4646
|
}
|
|
4676
4647
|
}, $scope2_id, "c", $sg__input_hint, $sg__input_hint, $sg__input_hint__OR__input_description__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal__OR__input_tags__OR__input_actions__OR__input_trailing, 0, 1);
|
|
4677
|
-
_html(`</button>${_el_resume($scope2_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(pop)}><span${_attr_class(["
|
|
4648
|
+
_html(`</button>${_el_resume($scope2_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(pop)}><span${_attr_class(["_bD", "_w"])}>${_escape(input.name)}${_el_resume($scope2_id, "f", $sg__input_name)}</span>`);
|
|
4678
4649
|
_if(() => {
|
|
4679
4650
|
if (input.description) {
|
|
4680
4651
|
const $scope4_id = _scope_id();
|
|
4681
|
-
_html(`<span${_attr_class("
|
|
4652
|
+
_html(`<span${_attr_class("_bF")}${_attr("title", input.description)}>${_escape(input.description)}${_el_resume($scope4_id, "b", $sg__input_description)}</span>${_el_resume($scope4_id, "a", $sg__input_description)}`);
|
|
4682
4653
|
$si__input_busy__OR__input_description && _subscribe($si__input_description && $input_description__closures, writeScope($scope4_id, { _: _scope_with_id($scope2_id) }));
|
|
4683
4654
|
return 0;
|
|
4684
4655
|
}
|
|
@@ -4686,12 +4657,12 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
4686
4657
|
_if(() => {
|
|
4687
4658
|
if (input.sourceUrl) {
|
|
4688
4659
|
const $scope5_id = _scope_id();
|
|
4689
|
-
_html(`<a${_attr_class(["
|
|
4660
|
+
_html(`<a${_attr_class(["_bF", "_I"])}${_attr("href", input.sourceUrl)} target=_blank rel=noopener${_attr("title", `Open ${input.source} on GitHub`)}>${_escape(input.source)}${_el_resume($scope5_id, "b", $sg__input_source)}</a>${_el_resume($scope5_id, "a", _serialize_guard($scope0_reason, 6))}`);
|
|
4690
4661
|
$si__input_busy__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal && _subscribe($si__input_source && $input_source__closures, _subscribe($si__input_sourceUrl && $input_sourceUrl__closures, writeScope($scope5_id, { _: _scope_with_id($scope2_id) })));
|
|
4691
4662
|
return 0;
|
|
4692
4663
|
} else if (input.source) {
|
|
4693
4664
|
const $scope6_id = _scope_id();
|
|
4694
|
-
_html(`<span${_attr_class("
|
|
4665
|
+
_html(`<span${_attr_class("_bF")}>${_escape(input.source)}${_el_resume($scope6_id, "b", $sg__input_source)}</span>`);
|
|
4695
4666
|
$si__input_busy__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal && _subscribe($si__input_source && $input_source__closures, writeScope($scope6_id, {
|
|
4696
4667
|
_: _scope_with_id($scope2_id),
|
|
4697
4668
|
Cs: $si__input_source && 1
|
|
@@ -4699,7 +4670,7 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
4699
4670
|
return 1;
|
|
4700
4671
|
} else if (input.noteLocal) {
|
|
4701
4672
|
const $scope10_id = _scope_id();
|
|
4702
|
-
_html(`<span${_attr_class(["
|
|
4673
|
+
_html(`<span${_attr_class(["_bF", "_v"])} title="Not installed from a source, so it cannot be updated">local only</span>`);
|
|
4703
4674
|
_serialize_if($scope0_reason, 9) && writeScope($scope10_id, {});
|
|
4704
4675
|
return 2;
|
|
4705
4676
|
}
|
|
@@ -4707,7 +4678,7 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
4707
4678
|
_if(() => {
|
|
4708
4679
|
if (input.tags) {
|
|
4709
4680
|
const $scope7_id = _scope_id();
|
|
4710
|
-
_html(`<span${_attr_class("
|
|
4681
|
+
_html(`<span${_attr_class("_bE")}>`);
|
|
4711
4682
|
_dynamic_tag($scope7_id, "b", input.tags, {}, 0, 0, $sg__input_tags);
|
|
4712
4683
|
_html("</span>");
|
|
4713
4684
|
$si__input_busy__OR__input_tags && _subscribe($si__input_tags && $input_tags__closures, writeScope($scope7_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -4717,7 +4688,7 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
4717
4688
|
_if(() => {
|
|
4718
4689
|
if (input.actions) {
|
|
4719
4690
|
const $scope8_id = _scope_id();
|
|
4720
|
-
_html(`<div${_attr_class("
|
|
4691
|
+
_html(`<div${_attr_class("_dJ")}>`);
|
|
4721
4692
|
_dynamic_tag($scope8_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
4722
4693
|
_html("</div>");
|
|
4723
4694
|
$si__input_busy__OR__input_actions && _subscribe($si__input_actions && $input_actions__closures, writeScope($scope8_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -4760,7 +4731,7 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
4760
4731
|
});
|
|
4761
4732
|
//#endregion
|
|
4762
4733
|
//#region src/tags/prompt-dialog.css.ts
|
|
4763
|
-
var promptDlg = "
|
|
4734
|
+
var promptDlg = "_eN _ec";
|
|
4764
4735
|
//#endregion
|
|
4765
4736
|
//#region src/tags/dialog-close.marko
|
|
4766
4737
|
var dialog_close_default = _template("f", (input) => {
|
|
@@ -4784,7 +4755,7 @@ var modal_view_default = _template("r", (input) => {
|
|
|
4784
4755
|
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;
|
|
4785
4756
|
const dismissable = input.dismissable !== false;
|
|
4786
4757
|
let open = input.open;
|
|
4787
|
-
_html(`<dialog${_attr_class(["
|
|
4758
|
+
_html(`<dialog${_attr_class(["_eb", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
4788
4759
|
...htmlInput,
|
|
4789
4760
|
open: null
|
|
4790
4761
|
}, {
|
|
@@ -4794,20 +4765,20 @@ var modal_view_default = _template("r", (input) => {
|
|
|
4794
4765
|
closedby: 1,
|
|
4795
4766
|
"on-cancel": 1,
|
|
4796
4767
|
"on-close": 1
|
|
4797
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
4768
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_ee")}>`);
|
|
4798
4769
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
4799
4770
|
_html("</div>");
|
|
4800
4771
|
_if(() => {
|
|
4801
4772
|
if (footer) {
|
|
4802
4773
|
const $scope1_id = _scope_id();
|
|
4803
|
-
_html(`<form method=dialog${_attr_class("
|
|
4774
|
+
_html(`<form method=dialog${_attr_class("_ef")}>`);
|
|
4804
4775
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
4805
4776
|
_html("</form>");
|
|
4806
4777
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
4807
4778
|
return 0;
|
|
4808
4779
|
} else if (input.openChange) {
|
|
4809
4780
|
const $scope2_id = _scope_id();
|
|
4810
|
-
_html(`<form method=dialog${_attr_class("
|
|
4781
|
+
_html(`<form method=dialog${_attr_class("_ef")}>`);
|
|
4811
4782
|
dialog_close_default({
|
|
4812
4783
|
class: ["_o", "_p"],
|
|
4813
4784
|
content: _content("r0", () => {
|
|
@@ -4890,7 +4861,7 @@ var prompt_dialog_default = _template("u", (input) => {
|
|
|
4890
4861
|
content: _content("u6", () => {
|
|
4891
4862
|
_scope_reason();
|
|
4892
4863
|
const $scope2_id = _scope_id();
|
|
4893
|
-
_html(`<h2${_attr_class("
|
|
4864
|
+
_html(`<h2${_attr_class("_ed")}${_attr("id", titleId)}>${_escape(input.label)}${_el_resume($scope2_id, "b", $sg__input_label)}</h2><input${_attr_input_value($scope2_id, "c", value, _resume((_new_value) => {
|
|
4894
4865
|
value = _new_value;
|
|
4895
4866
|
}, "u0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
4896
4867
|
_script($scope2_id, "u4");
|
|
@@ -4920,6 +4891,7 @@ var prompt_dialog_default = _template("u", (input) => {
|
|
|
4920
4891
|
//#endregion
|
|
4921
4892
|
//#region src/tags/settings-page.marko
|
|
4922
4893
|
var api$6;
|
|
4894
|
+
var isTransientApiError$2;
|
|
4923
4895
|
var watchProgress$2;
|
|
4924
4896
|
var MISSING_LABEL = {
|
|
4925
4897
|
"github-auth": "GitHub sign-in",
|
|
@@ -5019,11 +4991,14 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5019
4991
|
if (snap.preferredAgent !== input$2.preferred) input$2.preferredChange?.(snap.preferredAgent);
|
|
5020
4992
|
} catch {}
|
|
5021
4993
|
}, "x10", $scope0_id);
|
|
4994
|
+
let retryWhenBack = false;
|
|
5022
4995
|
const loadSetup = _resume(async (refresh) => {
|
|
5023
4996
|
try {
|
|
5024
4997
|
applySetup(await api$6(`/api/setup${refresh ? "?refresh" : ""}`));
|
|
4998
|
+
retryWhenBack = false;
|
|
5025
4999
|
} catch (err) {
|
|
5026
|
-
|
|
5000
|
+
if (isTransientApiError$2(err)) retryWhenBack = true;
|
|
5001
|
+
else error = String(err.message || err);
|
|
5027
5002
|
}
|
|
5028
5003
|
}, "x11", $scope0_id);
|
|
5029
5004
|
const loadSelf = _resume(async (refresh) => {
|
|
@@ -5406,7 +5381,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5406
5381
|
const githubId = _id();
|
|
5407
5382
|
const backupId = _id();
|
|
5408
5383
|
const machineId = _id();
|
|
5409
|
-
_html(`<div${_attr_class("
|
|
5384
|
+
_html(`<div${_attr_class("_bL")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bM")}><div${_attr_class(content$2)}>`);
|
|
5410
5385
|
_set_serialize_reason({
|
|
5411
5386
|
0: _serialize_guard($scope0_reason, 4),
|
|
5412
5387
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -5418,7 +5393,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5418
5393
|
if (setup && !setup.ready) $meta = attrTag({ content: _content_resume("x43", () => {
|
|
5419
5394
|
_scope_reason();
|
|
5420
5395
|
const $scope5_id = _scope_id();
|
|
5421
|
-
_html(`<span${_attr_class("
|
|
5396
|
+
_html(`<span${_attr_class("_cC")}>Not ready</span>. Missing <!>${_escape(setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "))}${_el_resume($scope5_id, "b")}.`);
|
|
5422
5397
|
_subscribe($setup_missing__closures, writeScope($scope5_id, { _: _scope_with_id($scope0_id) }));
|
|
5423
5398
|
_resume_branch($scope5_id);
|
|
5424
5399
|
}, $scope0_id) });
|
|
@@ -5471,16 +5446,16 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5471
5446
|
_if(() => {
|
|
5472
5447
|
if (selfUpdatePending || selfUpdating) {
|
|
5473
5448
|
const $scope45_id = _scope_id();
|
|
5474
|
-
_html(`<div${_attr_class("
|
|
5449
|
+
_html(`<div${_attr_class("_de")} role=status><div${_attr_class("_df")}>`);
|
|
5475
5450
|
_if(() => {
|
|
5476
5451
|
if (selfUpdating) {
|
|
5477
5452
|
const $scope78_id = _scope_id();
|
|
5478
|
-
_html(`<span${_attr_class("
|
|
5453
|
+
_html(`<span${_attr_class("_dg")}><span${_attr_class("_E")}></span> Updating work…</span><span${_attr_class("_dh")}>The app restarts and reloads when it is done.</span>`);
|
|
5479
5454
|
writeScope($scope78_id, {});
|
|
5480
5455
|
return 0;
|
|
5481
5456
|
} else {
|
|
5482
5457
|
const $scope46_id = _scope_id();
|
|
5483
|
-
_html(`<span${_attr_class("
|
|
5458
|
+
_html(`<span${_attr_class("_dg")}>Update available</span><span${_attr_class("_dh")}>v<!>${_escape(self.version)}${_el_resume($scope46_id, "c")} → v<!>${_escape(self.latest)}${_el_resume($scope46_id, "d")}</span>`);
|
|
5484
5459
|
_subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($scope46_id, {})));
|
|
5485
5460
|
return 1;
|
|
5486
5461
|
}
|
|
@@ -5490,7 +5465,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5490
5465
|
const $scope47_id = _scope_id();
|
|
5491
5466
|
_html(`<button${_attr_class(["_o", "_p"])}${_attr("title", `Update work to v${self.latest} and restart`)}>Update and restart</button>${_el_resume($scope47_id, "a")}`);
|
|
5492
5467
|
_script($scope47_id, "x46");
|
|
5493
|
-
_subscribe($self_latest__closures, writeScope($scope47_id, {
|
|
5468
|
+
_subscribe($self_latest__closures, writeScope($scope47_id, { Ch8: 1 }));
|
|
5494
5469
|
return 0;
|
|
5495
5470
|
}
|
|
5496
5471
|
}, $scope45_id, "c", 1, 1, 1, 0, 1);
|
|
@@ -5499,11 +5474,11 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5499
5474
|
return 0;
|
|
5500
5475
|
}
|
|
5501
5476
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
5502
|
-
_html(`<section${_attr_class("
|
|
5477
|
+
_html(`<section${_attr_class("_bw")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bx")}><h2${_attr("id", agentsId)}${_attr_class("_bK")}>Agents</h2><div${_attr_class("_x")}></div><label${_attr_class("_cF")}><span${_attr_class("_V")}>Default</span><span${_attr_class("_m")}>`);
|
|
5503
5478
|
_attr_select_value($scope0_id, "n", input$2.preferred, _resume(function(v) {
|
|
5504
5479
|
setPreferred(v);
|
|
5505
5480
|
}, "x2", $scope0_id), () => {
|
|
5506
|
-
_html(`<select${_attr_class(["_n", "
|
|
5481
|
+
_html(`<select${_attr_class(["_n", "_cG"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
|
|
5507
5482
|
_for_of(input$2.agents.filter((a) => a !== "shell"), (id) => {
|
|
5508
5483
|
const $scope79_id = _scope_id();
|
|
5509
5484
|
_html(`<option${_attr_option_value(id)}>${_escape(agentLabel(id))}${_el_resume($scope79_id, "b", $sg__input_agents)}</option>${_el_resume($scope79_id, "a", $sg__input_agents)}`);
|
|
@@ -5517,14 +5492,14 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5517
5492
|
const rows = lone ? [] : a.instances;
|
|
5518
5493
|
const loneAccounts = lone ? accountsFor(lone.id) : [];
|
|
5519
5494
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
5520
|
-
_html(`<li${_attr_class(["
|
|
5495
|
+
_html(`<li${_attr_class(["_bB", "_cE"])}><div${_attr_class(["_cH", { ["_cK"]: lone && !lone.enabled }])}>`);
|
|
5521
5496
|
_set_serialize_reason(12);
|
|
5522
5497
|
const $childScope3 = _peek_scope_id();
|
|
5523
5498
|
icon_agent_default({
|
|
5524
5499
|
agent: a.id,
|
|
5525
5500
|
size: 18
|
|
5526
5501
|
});
|
|
5527
|
-
_html(`<div${_attr_class("
|
|
5502
|
+
_html(`<div${_attr_class("_bC")}><span${_attr_class("_bE")}><span${_attr_class("_bD")}>${_escape(a.label)}${_el_resume($scope1_id, "g")}</span>`);
|
|
5528
5503
|
_if(() => {
|
|
5529
5504
|
if (lone && input$2.preferred === lone.id) {
|
|
5530
5505
|
const $scope80_id = _scope_id();
|
|
@@ -5537,12 +5512,12 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5537
5512
|
_if(() => {
|
|
5538
5513
|
if (active.has(a.id)) {
|
|
5539
5514
|
const $scope13_id = _scope_id();
|
|
5540
|
-
_html(`<span${_attr_class("
|
|
5515
|
+
_html(`<span${_attr_class("_cB")}><span${_attr_class("_E")}></span><!>${_escape(active.get(a.id) || "Starting…")}${_el_resume($scope13_id, "c")}</span>`);
|
|
5541
5516
|
_subscribe($active__closures, writeScope($scope13_id, {}));
|
|
5542
5517
|
return 0;
|
|
5543
5518
|
} else if (!a.installed) {
|
|
5544
5519
|
const $scope81_id = _scope_id();
|
|
5545
|
-
_html(`<span${_attr_class("
|
|
5520
|
+
_html(`<span${_attr_class("_bF")}>Not installed</span>`);
|
|
5546
5521
|
writeScope($scope81_id, {});
|
|
5547
5522
|
return 1;
|
|
5548
5523
|
}
|
|
@@ -5570,15 +5545,15 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5570
5545
|
_if(() => {
|
|
5571
5546
|
if (rows.length || loneAccounts.length || extraAccounts.length) {
|
|
5572
5547
|
const $scope2_id = _scope_id();
|
|
5573
|
-
_html(`<ul${_attr_class(["
|
|
5548
|
+
_html(`<ul${_attr_class(["_cM", { ["_cK"]: lone && !lone.enabled }])}>`);
|
|
5574
5549
|
_for_of(rows, (inst) => {
|
|
5575
5550
|
const $scope3_id = _scope_id();
|
|
5576
5551
|
const accounts = accountsFor(inst.id);
|
|
5577
|
-
_html(`<li${_attr_class(["
|
|
5552
|
+
_html(`<li${_attr_class(["_cI", { ["_cK"]: !inst.enabled }])}><div${_attr_class("_cJ")}>`);
|
|
5578
5553
|
_set_serialize_reason(12);
|
|
5579
5554
|
const $childScope4 = _peek_scope_id();
|
|
5580
5555
|
icon_agent_default({ agent: inst.id });
|
|
5581
|
-
_html(`<span${_attr_class(["
|
|
5556
|
+
_html(`<span${_attr_class(["_cL", "_w"])}>${_escape(inst.command)}${_el_resume($scope3_id, "e")}</span>`);
|
|
5582
5557
|
_if(() => {
|
|
5583
5558
|
if (input$2.preferred === inst.id) {
|
|
5584
5559
|
const $scope82_id = _scope_id();
|
|
@@ -5649,7 +5624,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5649
5624
|
}, "id", $scope0_id, "p", 1, 1, 1, 0, 1);
|
|
5650
5625
|
_for_of(otherUsage, (u) => {
|
|
5651
5626
|
const $scope86_id = _scope_id();
|
|
5652
|
-
_html(`<li${_attr_class(["
|
|
5627
|
+
_html(`<li${_attr_class(["_bB", "_cE"])}>`);
|
|
5653
5628
|
_set_serialize_reason(6);
|
|
5654
5629
|
const $childScope8 = _peek_scope_id();
|
|
5655
5630
|
usage_meters_default({ agent: u });
|
|
@@ -5660,58 +5635,71 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5660
5635
|
_if(() => {
|
|
5661
5636
|
if (!usage && families.length) {
|
|
5662
5637
|
const $scope87_id = _scope_id();
|
|
5663
|
-
_html(`<p${_attr_class("
|
|
5638
|
+
_html(`<p${_attr_class("_bH")}><span${_attr_class("_E")}></span> Loading usage…</p>`);
|
|
5664
5639
|
writeScope($scope87_id, {});
|
|
5665
5640
|
return 0;
|
|
5666
5641
|
} else if (usage?.error) {
|
|
5667
5642
|
const $scope9_id = _scope_id();
|
|
5668
|
-
_html(`<p${_attr_class("
|
|
5643
|
+
_html(`<p${_attr_class("_bH")}>${_escape(usage.error)}${_el_resume($scope9_id, "b")}</p>`);
|
|
5669
5644
|
writeScope($scope9_id, {});
|
|
5670
5645
|
return 1;
|
|
5671
5646
|
}
|
|
5672
5647
|
}, $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
5673
|
-
_html(`</section><section${_attr_class("
|
|
5648
|
+
_html(`</section><section${_attr_class("_bw")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_bx")}><h2${_attr("id", githubId)}${_attr_class("_bK")}>GitHub</h2>`);
|
|
5674
5649
|
_if(() => {
|
|
5675
5650
|
if (setup && !addingHost) {
|
|
5676
5651
|
const $scope43_id = _scope_id();
|
|
5677
|
-
_html(`<button${_attr_class([
|
|
5678
|
-
icon_plus_default({ size:
|
|
5679
|
-
_html(
|
|
5652
|
+
_html(`<button${_attr_class([iconBtnRow, "_cU"])} title="Add Enterprise host" aria-label="Add Enterprise host">`);
|
|
5653
|
+
icon_plus_default({ size: 16 });
|
|
5654
|
+
_html(`</button>${_el_resume($scope43_id, "a")}`);
|
|
5680
5655
|
_script($scope43_id, "x50");
|
|
5681
5656
|
writeScope($scope43_id, {});
|
|
5682
5657
|
return 0;
|
|
5683
5658
|
}
|
|
5684
5659
|
}, $scope0_id, "v", 1, 1, 1, 0, 1);
|
|
5685
|
-
_html("</div>");
|
|
5686
5660
|
_if(() => {
|
|
5687
|
-
if (
|
|
5661
|
+
if (setup) {
|
|
5688
5662
|
const $scope42_id = _scope_id();
|
|
5689
|
-
_html(`<form${_attr_class(
|
|
5663
|
+
_html(`<form${_attr_class([
|
|
5664
|
+
"_dK",
|
|
5665
|
+
"_cU",
|
|
5666
|
+
{ ["_dL"]: !addingHost }
|
|
5667
|
+
])}><label${_attr_class(["_Z", "_dM"])}>`);
|
|
5690
5668
|
icon_github_default({
|
|
5691
5669
|
size: 14,
|
|
5692
5670
|
class: "_0"
|
|
5693
5671
|
});
|
|
5694
5672
|
_html(`<input${_attr_input_value($scope42_id, "d", hostInput, _resume((_new_hostInput) => {
|
|
5695
5673
|
hostInput = _new_hostInput;
|
|
5696
|
-
}, "x3", $scope42_id))}${_attr_class([
|
|
5674
|
+
}, "x3", $scope42_id))}${_attr_class([
|
|
5675
|
+
"_X",
|
|
5676
|
+
"_1",
|
|
5677
|
+
"_dN"
|
|
5678
|
+
])} type=text placeholder=github.example.com aria-label="GitHub Enterprise host" autocomplete=off spellcheck=false>${_el_resume($scope42_id, "d")}</label><button${_attr_class([
|
|
5679
|
+
btnSm,
|
|
5680
|
+
"_p",
|
|
5681
|
+
"_cT"
|
|
5682
|
+
])} type=submit${_attr("hidden", !addingHost)}${_attr("disabled", !hostInput.trim() || hostBusy)}>${hostBusy ? "Adding…" : "Add"}${_el_resume($scope42_id, "f")}</button>${_el_resume($scope42_id, "e")}<button${_attr_class([iconBtnRow, "_dO"])} type=button${_attr("hidden", !addingHost)} title=Cancel aria-label=Cancel${_attr("disabled", hostBusy)}>`);
|
|
5683
|
+
icon_xmark_default({ size: 12 });
|
|
5684
|
+
_html(`</button>${_el_resume($scope42_id, "g")}</form>${_el_resume($scope42_id, "a")}`);
|
|
5697
5685
|
_script($scope42_id, "x51");
|
|
5698
5686
|
writeScope($scope42_id, {});
|
|
5699
5687
|
return 0;
|
|
5700
5688
|
}
|
|
5701
5689
|
}, $scope0_id, "w", 1, 1, 1, 0, 1);
|
|
5702
|
-
_html(
|
|
5690
|
+
_html(`</div><div${_attr_class(["_bB", "_cj"])}>`);
|
|
5703
5691
|
_for_of(setup?.github || [], (h) => {
|
|
5704
5692
|
const $scope7_id = _scope_id();
|
|
5705
5693
|
const $for_content4__h_host__closures = /* @__PURE__ */ new Set();
|
|
5706
5694
|
const hostSso$1 = (h.sso || []).filter((s) => !ignoredSso.has(s.org));
|
|
5707
5695
|
const skippedSso = (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
5708
5696
|
const busy = active.has(h.host);
|
|
5709
|
-
_html(`<div${_attr_class(["
|
|
5697
|
+
_html(`<div${_attr_class(["_ck", "_cV"])}><div${_attr_class("_cW")}>`);
|
|
5710
5698
|
icon_github_default({
|
|
5711
5699
|
size: 18,
|
|
5712
|
-
class: "
|
|
5700
|
+
class: "_cX"
|
|
5713
5701
|
});
|
|
5714
|
-
_html(`<div${_attr_class("
|
|
5702
|
+
_html(`<div${_attr_class("_bC")}><span${_attr_class("_bE")}><span${_attr_class("_bD")}>${_escape(h.host)}${_el_resume($scope7_id, "g")}</span>`);
|
|
5715
5703
|
_if(() => {
|
|
5716
5704
|
if (h.isEnterprise) {
|
|
5717
5705
|
const $scope90_id = _scope_id();
|
|
@@ -5724,25 +5712,25 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5724
5712
|
_if(() => {
|
|
5725
5713
|
if (busy) {
|
|
5726
5714
|
const $scope14_id = _scope_id();
|
|
5727
|
-
_html(`<span${_attr_class(["
|
|
5728
|
-
_subscribe($authCodes__closures, _subscribe($active__closures, writeScope($scope14_id, {
|
|
5715
|
+
_html(`<span${_attr_class(["_bF", "_cY"])}><span${_attr_class("_E")}></span><!>${authCodes.has(h.host) ? "Waiting for the browser…" : _escape(active.get(h.host) || "Starting…")}${_el_resume($scope14_id, "c")}</span>`);
|
|
5716
|
+
_subscribe($authCodes__closures, _subscribe($active__closures, writeScope($scope14_id, { Cgt: 1 })));
|
|
5729
5717
|
return 0;
|
|
5730
5718
|
} else if (h.authed) {
|
|
5731
5719
|
const $scope88_id = _scope_id();
|
|
5732
|
-
_html(`<span${_attr_class(["
|
|
5720
|
+
_html(`<span${_attr_class(["_bF", "_cY"])}>`);
|
|
5733
5721
|
icon_check_default({
|
|
5734
5722
|
size: 12,
|
|
5735
|
-
class: "
|
|
5723
|
+
class: "_cZ"
|
|
5736
5724
|
});
|
|
5737
|
-
_html(` Signed in as <strong${_attr_class("
|
|
5725
|
+
_html(` Signed in as <strong${_attr_class("_c1")}>${_escape(h.user || "?")}${_el_resume($scope88_id, "d")}</strong></span>`);
|
|
5738
5726
|
writeScope($scope88_id, {});
|
|
5739
5727
|
return 1;
|
|
5740
5728
|
} else if (h.error) {
|
|
5741
5729
|
const $scope89_id = _scope_id();
|
|
5742
5730
|
_html(`<span${_attr_class([
|
|
5743
|
-
"
|
|
5744
|
-
"
|
|
5745
|
-
"
|
|
5731
|
+
"_bF",
|
|
5732
|
+
"_cY",
|
|
5733
|
+
"_c0"
|
|
5746
5734
|
])}>`);
|
|
5747
5735
|
icon_warning_default({ size: 12 });
|
|
5748
5736
|
_html(`<!>${_escape(h.error)}${_el_resume($scope89_id, "c")}</span>`);
|
|
@@ -5750,7 +5738,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5750
5738
|
return 2;
|
|
5751
5739
|
} else {
|
|
5752
5740
|
const $scope91_id = _scope_id();
|
|
5753
|
-
_html(`<span${_attr_class(["
|
|
5741
|
+
_html(`<span${_attr_class(["_bF", "_cY"])}>Not signed in</span>`);
|
|
5754
5742
|
writeScope($scope91_id, {});
|
|
5755
5743
|
return 3;
|
|
5756
5744
|
}
|
|
@@ -5781,7 +5769,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5781
5769
|
if (h.isEnterprise) {
|
|
5782
5770
|
const $scope34_id = _scope_id();
|
|
5783
5771
|
_html(`<button${_attr_class([
|
|
5784
|
-
"
|
|
5772
|
+
"_bG",
|
|
5785
5773
|
"_6",
|
|
5786
5774
|
"_7",
|
|
5787
5775
|
{ ["_q"]: confirmingRemove === h.host }
|
|
@@ -5801,7 +5789,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5801
5789
|
}, $scope34_id, "a", 1, 1, 1, "</button>");
|
|
5802
5790
|
_script($scope34_id, "x54");
|
|
5803
5791
|
_subscribe($for_content4__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope34_id, {
|
|
5804
|
-
|
|
5792
|
+
Cgw: 1,
|
|
5805
5793
|
Ca4: 1
|
|
5806
5794
|
})));
|
|
5807
5795
|
return 0;
|
|
@@ -5815,18 +5803,19 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5815
5803
|
_if(() => {
|
|
5816
5804
|
if (busy && authCodes.has(h.host)) {
|
|
5817
5805
|
const $scope31_id = _scope_id();
|
|
5818
|
-
_html(`<div${_attr_class("
|
|
5819
|
-
_subscribe($authCodes__closures, writeScope($scope31_id, {
|
|
5806
|
+
_html(`<div${_attr_class("_c2")}><span${_attr_class("_c3")}>Enter this code at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_c5")}>${_escape(h.host)}${_el_resume($scope31_id, "d")}/login/device</a>${_el_resume($scope31_id, "c")}</span><code${_attr_class("_c4")}>${_escape(authCodes.get(h.host))}${_el_resume($scope31_id, "f")}</code></div>`);
|
|
5807
|
+
_subscribe($authCodes__closures, writeScope($scope31_id, { Cgv: 1 }));
|
|
5820
5808
|
return 0;
|
|
5821
5809
|
}
|
|
5822
5810
|
}, $scope7_id, "k", 1, 1, 1, 0, 1);
|
|
5811
|
+
_html("</div>");
|
|
5823
5812
|
_if(() => {
|
|
5824
5813
|
if (hostSso$1.length || skippedSso.length) {
|
|
5825
5814
|
const $scope8_id = _scope_id();
|
|
5826
|
-
|
|
5827
|
-
_set_serialize_reason(1);
|
|
5815
|
+
_set_serialize_reason(30);
|
|
5828
5816
|
const $childScope9 = _peek_scope_id();
|
|
5829
5817
|
sso_auth_default({
|
|
5818
|
+
class: ["_ck", "_c6"],
|
|
5830
5819
|
items: hostSso$1,
|
|
5831
5820
|
skipped: skippedSso,
|
|
5832
5821
|
busy,
|
|
@@ -5840,12 +5829,10 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5840
5829
|
refresh();
|
|
5841
5830
|
}, "x39", $scope8_id)
|
|
5842
5831
|
});
|
|
5843
|
-
|
|
5844
|
-
_subscribe($run2__closures, _subscribe($si__input_setupChange && $refresh2__closures, writeScope($scope8_id, { b: _existing_scope($childScope9) })));
|
|
5832
|
+
_subscribe($run2__closures, _subscribe($si__input_setupChange && $refresh2__closures, writeScope($scope8_id, { a: _existing_scope($childScope9) })));
|
|
5845
5833
|
return 0;
|
|
5846
5834
|
}
|
|
5847
5835
|
}, $scope7_id, "l", 1, 1, 1, 0, 1);
|
|
5848
|
-
_html("</div>");
|
|
5849
5836
|
writeScope($scope7_id, {
|
|
5850
5837
|
o: h?.sso,
|
|
5851
5838
|
q: h?.host,
|
|
@@ -5858,47 +5845,47 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5858
5845
|
a1: busy,
|
|
5859
5846
|
a4: $for_content4__h_host__closures
|
|
5860
5847
|
});
|
|
5861
|
-
}, "host", $scope0_id, "x", 1, 1, 1, "</div>"
|
|
5848
|
+
}, "host", $scope0_id, "x", 1, 1, 1, "</div>");
|
|
5862
5849
|
_if(() => {
|
|
5863
5850
|
if (setup && !setup.github.length) {
|
|
5864
5851
|
const $scope94_id = _scope_id();
|
|
5865
|
-
_html(`<p${_attr_class("
|
|
5852
|
+
_html(`<p${_attr_class("_bH")}>Install the GitHub CLI below to sign in.</p>`);
|
|
5866
5853
|
writeScope($scope94_id, {});
|
|
5867
5854
|
return 0;
|
|
5868
5855
|
}
|
|
5869
5856
|
}, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
5870
|
-
_html(`</section><section${_attr_class("
|
|
5857
|
+
_html(`</section><section${_attr_class("_bw")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_bx")}><h2${_attr("id", machineId)}${_attr_class("_bK")}>Machine</h2></div><div${_attr_class(["_bB", "_cj"])}><div${_attr_class(["_ck", "_co"])}><div${_attr_class(["_cp", { ["_cq"]: skillsOpen }])}><button${_attr_class("_cr")} aria-expanded=true>`);
|
|
5871
5858
|
_set_serialize_reason(1);
|
|
5872
5859
|
const $childScope10 = _peek_scope_id();
|
|
5873
5860
|
icon_chevron_right_default({
|
|
5874
5861
|
size: 12,
|
|
5875
|
-
class: ["
|
|
5862
|
+
class: ["_cv", { ["_cw"]: skillsOpen }]
|
|
5876
5863
|
});
|
|
5877
|
-
_html(`<span${_attr_class("
|
|
5864
|
+
_html(`<span${_attr_class("_cs")}>Skills</span>`);
|
|
5878
5865
|
_if(() => {
|
|
5879
5866
|
if (skills?.global.length) {
|
|
5880
5867
|
const $scope52_id = _scope_id();
|
|
5881
|
-
_html(`<span${_attr_class("
|
|
5868
|
+
_html(`<span${_attr_class("_ct")}>${_escape(skills.global.length)}${_el_resume($scope52_id, "b")} installed</span>`);
|
|
5882
5869
|
writeScope($scope52_id, {});
|
|
5883
5870
|
return 0;
|
|
5884
5871
|
}
|
|
5885
5872
|
}, $scope0_id, "a8", 1, 1, 1, 0, 1);
|
|
5886
|
-
_html(`</button>${_el_resume($scope0_id, "a5")}
|
|
5873
|
+
_html(`</button>${_el_resume($scope0_id, "a5")}`);
|
|
5887
5874
|
_if(() => {
|
|
5888
5875
|
if (skills?.available && skills.agents.length && true) {
|
|
5889
5876
|
const $scope56_id = _scope_id();
|
|
5890
|
-
_html(`<button${_attr_class(
|
|
5891
|
-
icon_plus_default({ size:
|
|
5892
|
-
_html(
|
|
5877
|
+
_html(`<button${_attr_class(iconBtnRow)} title="Add skill" aria-label="Add skill">`);
|
|
5878
|
+
icon_plus_default({ size: 16 });
|
|
5879
|
+
_html(`</button>${_el_resume($scope56_id, "a")}`);
|
|
5893
5880
|
_script($scope56_id, "x55");
|
|
5894
5881
|
writeScope($scope56_id, {});
|
|
5895
5882
|
return 0;
|
|
5896
5883
|
}
|
|
5897
|
-
}, $scope0_id, "
|
|
5884
|
+
}, $scope0_id, "a9", 1, 1, 1, 0, 1);
|
|
5898
5885
|
_if(() => {
|
|
5899
5886
|
if (skills?.available && skills.agents.length) {
|
|
5900
5887
|
const $scope15_id = _scope_id();
|
|
5901
|
-
_html(`<div${_attr_class(["
|
|
5888
|
+
_html(`<div${_attr_class(["_dK", { ["_dL"]: true }])}><label${_attr_class(["_Z", "_dM"])}>`);
|
|
5902
5889
|
_if(() => {
|
|
5903
5890
|
if (skillSearching) {
|
|
5904
5891
|
const $scope95_id = _scope_id();
|
|
@@ -5918,14 +5905,14 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5918
5905
|
_html(`<input${_attr_input_value($scope15_id, "d", skillQuery, searchSkills)}${_attr_class([
|
|
5919
5906
|
"_X",
|
|
5920
5907
|
"_1",
|
|
5921
|
-
"
|
|
5922
|
-
])} type=text placeholder="Search skills, or paste owner/repo…" aria-label="Search for a skill" autocomplete=off spellcheck=false>${_el_resume($scope15_id, "d")}</label><button${_attr_class([iconBtnRow, "
|
|
5908
|
+
"_dN"
|
|
5909
|
+
])} type=text placeholder="Search skills, or paste owner/repo…" aria-label="Search for a skill" autocomplete=off spellcheck=false>${_el_resume($scope15_id, "d")}</label><button${_attr_class([iconBtnRow, "_dO"])} type=button${_attr("hidden", true)} title="Close search" aria-label="Close search">`);
|
|
5923
5910
|
icon_xmark_default({ size: 12 });
|
|
5924
|
-
_html(`</button>${_el_resume($scope15_id, "e")}<ul${_attr_class([pop$1, "
|
|
5911
|
+
_html(`</button>${_el_resume($scope15_id, "e")}<ul${_attr_class([pop$1, "_dQ"])}${_attr("hidden", true)}>`);
|
|
5925
5912
|
_if(() => {
|
|
5926
5913
|
if (skillSearching && !skillHits?.length && !looksLikeSource(skillQuery)) {
|
|
5927
5914
|
const $scope97_id = _scope_id();
|
|
5928
|
-
_html(`<li${_attr_class("
|
|
5915
|
+
_html(`<li${_attr_class("_dR")}>Searching skills.sh…</li>`);
|
|
5929
5916
|
writeScope($scope97_id, {});
|
|
5930
5917
|
return 0;
|
|
5931
5918
|
}
|
|
@@ -5933,19 +5920,19 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5933
5920
|
_if(() => {
|
|
5934
5921
|
if (looksLikeSource(skillQuery)) {
|
|
5935
5922
|
const $scope16_id = _scope_id();
|
|
5936
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
5923
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_bC")}><span${_attr_class(["_cQ", "_w"])}>${_escape(skillQuery.trim())}${_el_resume($scope16_id, "d")}</span>`);
|
|
5937
5924
|
_if(() => {
|
|
5938
5925
|
if (active.has(skillQuery.trim())) {
|
|
5939
5926
|
const $scope17_id = _scope_id();
|
|
5940
|
-
_html(`<span${_attr_class("
|
|
5927
|
+
_html(`<span${_attr_class("_cB")}><span${_attr_class("_E")}></span><!>${_escape(active.get(skillQuery.trim()) || "Starting…")}${_el_resume($scope17_id, "c")}</span>`);
|
|
5941
5928
|
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($scope17_id, {
|
|
5942
|
-
|
|
5943
|
-
|
|
5929
|
+
Cgt: 3,
|
|
5930
|
+
Chh: 1
|
|
5944
5931
|
})));
|
|
5945
5932
|
return 0;
|
|
5946
5933
|
} else {
|
|
5947
5934
|
const $scope98_id = _scope_id();
|
|
5948
|
-
_html(`<span${_attr_class("
|
|
5935
|
+
_html(`<span${_attr_class("_bF")}>Add straight from this source</span>`);
|
|
5949
5936
|
writeScope($scope98_id, {});
|
|
5950
5937
|
return 1;
|
|
5951
5938
|
}
|
|
@@ -5961,23 +5948,23 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5961
5948
|
}
|
|
5962
5949
|
}, $scope16_id, "f", 1, 1, 1, 0, 1);
|
|
5963
5950
|
_html("</li>");
|
|
5964
|
-
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($scope16_id, {
|
|
5951
|
+
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($scope16_id, { Cgt: 2 })));
|
|
5965
5952
|
return 0;
|
|
5966
5953
|
}
|
|
5967
5954
|
}, $scope15_id, "i", 1, 1, 1, 0, 1);
|
|
5968
5955
|
_for_of(skillHits || [], (h) => {
|
|
5969
5956
|
const $scope18_id = _scope_id();
|
|
5970
5957
|
const $for_content5__h_installs__closures = /* @__PURE__ */ new Set();
|
|
5971
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
5958
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_bC")}><span${_attr_class(["_cQ", "_w"])}>${_escape(h.name)}${_el_resume($scope18_id, "d")}</span>`);
|
|
5972
5959
|
_if(() => {
|
|
5973
5960
|
if (active.has(h.skillId)) {
|
|
5974
5961
|
const $scope19_id = _scope_id();
|
|
5975
|
-
_html(`<span${_attr_class("
|
|
5976
|
-
_subscribe($active__closures, writeScope($scope19_id, {
|
|
5962
|
+
_html(`<span${_attr_class("_cB")}><span${_attr_class("_E")}></span><!>${_escape(active.get(h.skillId) || "Starting…")}${_el_resume($scope19_id, "c")}</span>`);
|
|
5963
|
+
_subscribe($active__closures, writeScope($scope19_id, { Cgt: 5 }));
|
|
5977
5964
|
return 0;
|
|
5978
5965
|
} else {
|
|
5979
5966
|
const $scope99_id = _scope_id();
|
|
5980
|
-
_html(`<span${_attr_class("
|
|
5967
|
+
_html(`<span${_attr_class("_bF")}${_attr("title", h.source)}>${_escape(h.source)}${_el_resume($scope99_id, "b")}</span>${_el_resume($scope99_id, "a")}`);
|
|
5981
5968
|
writeScope($scope99_id, {});
|
|
5982
5969
|
return 1;
|
|
5983
5970
|
}
|
|
@@ -6019,14 +6006,14 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6019
6006
|
m: h?.installs,
|
|
6020
6007
|
n: h?.installed,
|
|
6021
6008
|
q: $for_content5__h_installs__closures,
|
|
6022
|
-
|
|
6009
|
+
Cgt: 4
|
|
6023
6010
|
}));
|
|
6024
6011
|
}, "skillId", $scope15_id, "j", 1, 1, 1, 0, 1);
|
|
6025
6012
|
_if(() => {
|
|
6026
6013
|
if (skillHits && !skillHits.length && !skillSearching && !looksLikeSource(skillQuery)) {
|
|
6027
6014
|
const $scope54_id = _scope_id();
|
|
6028
|
-
_html(`<li${_attr_class("
|
|
6029
|
-
_subscribe($skillQuery__closures, writeScope($scope54_id, {
|
|
6015
|
+
_html(`<li${_attr_class("_dR")}>No skills match "<!>${_escape(skillQuery)}${_el_resume($scope54_id, "b")}".</li>`);
|
|
6016
|
+
_subscribe($skillQuery__closures, writeScope($scope54_id, { Chh: 2 }));
|
|
6030
6017
|
return 0;
|
|
6031
6018
|
}
|
|
6032
6019
|
}, $scope15_id, "k", 1, 1, 1, 0, 1);
|
|
@@ -6035,27 +6022,27 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6035
6022
|
writeScope($scope15_id, {});
|
|
6036
6023
|
return 0;
|
|
6037
6024
|
}
|
|
6038
|
-
}, $scope0_id, "
|
|
6025
|
+
}, $scope0_id, "aa", 1, 1, 1, 0, 1);
|
|
6039
6026
|
_html(`</div>${_el_resume($scope0_id, "a4")}`);
|
|
6040
6027
|
_if(() => {
|
|
6041
6028
|
{
|
|
6042
6029
|
const $scope20_id = _scope_id();
|
|
6043
|
-
_html(`<div${_attr_class("
|
|
6030
|
+
_html(`<div${_attr_class("_cu")}>`);
|
|
6044
6031
|
_if(() => {
|
|
6045
6032
|
if (skills && !skills.agents.length) {
|
|
6046
6033
|
const $scope102_id = _scope_id();
|
|
6047
|
-
_html(`<p${_attr_class("
|
|
6034
|
+
_html(`<p${_attr_class("_bH")}>No agent CLIs are installed, so a skill would have nowhere to go. Install one from Agents above.</p>`);
|
|
6048
6035
|
writeScope($scope102_id, {});
|
|
6049
6036
|
return 0;
|
|
6050
6037
|
} else if (skills && !skills.available) {
|
|
6051
6038
|
const $scope21_id = _scope_id();
|
|
6052
|
-
_html(`<p${_attr_class("
|
|
6039
|
+
_html(`<p${_attr_class("_bH")}>The skills CLI is not installed, so skills can be listed but not added or removed. <button${_attr_class(btnSm)}${_attr("disabled", active.has("skills"))}>${active.has("skills") ? "Installing…" : "Install it"}${_el_resume($scope21_id, "c")}</button>${_el_resume($scope21_id, "b")}</p>`);
|
|
6053
6040
|
_script($scope21_id, "x59");
|
|
6054
|
-
_subscribe($active__closures, writeScope($scope21_id, {
|
|
6041
|
+
_subscribe($active__closures, writeScope($scope21_id, { Cgt: 6 }));
|
|
6055
6042
|
return 1;
|
|
6056
6043
|
}
|
|
6057
6044
|
}, $scope20_id, "b", 1, 1, 1, 0, 1);
|
|
6058
|
-
_html(`<ul${_attr_class("
|
|
6045
|
+
_html(`<ul${_attr_class("_dD")}>`);
|
|
6059
6046
|
_for_of(skills?.global || [], (s) => {
|
|
6060
6047
|
const $scope22_id = _scope_id();
|
|
6061
6048
|
const $for_content6__s_agents__closures = /* @__PURE__ */ new Set();
|
|
@@ -6125,13 +6112,13 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6125
6112
|
n: $for_content6__s_name__closures,
|
|
6126
6113
|
o: $for_content6__s_id__closures,
|
|
6127
6114
|
a: _existing_scope($childScope11),
|
|
6128
|
-
|
|
6115
|
+
Cgt: 7
|
|
6129
6116
|
}))));
|
|
6130
6117
|
}, "id", $scope20_id, "c", 1, 1, 1, "</ul>", 1);
|
|
6131
6118
|
_if(() => {
|
|
6132
6119
|
if (skills && !skills.global.length && skills.available && skills.agents.length) {
|
|
6133
6120
|
const $scope107_id = _scope_id();
|
|
6134
|
-
_html(`<p${_attr_class("
|
|
6121
|
+
_html(`<p${_attr_class("_bH")}>No skills installed. Search below, or paste an owner/repo.</p>`);
|
|
6135
6122
|
writeScope($scope107_id, {});
|
|
6136
6123
|
return 0;
|
|
6137
6124
|
}
|
|
@@ -6140,15 +6127,15 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6140
6127
|
writeScope($scope20_id, {});
|
|
6141
6128
|
return 0;
|
|
6142
6129
|
}
|
|
6143
|
-
}, $scope0_id, "
|
|
6144
|
-
_html(`</div><div${_attr_class(["
|
|
6130
|
+
}, $scope0_id, "ab", 1, 1, 1, 0, 1);
|
|
6131
|
+
_html(`</div><div${_attr_class(["_ck", "_co"])}><div${_attr_class(["_cp", { ["_cq"]: machineOpen }])}><button${_attr_class("_cr")} aria-expanded=${machineOpen ? "true" : "false"}>`);
|
|
6145
6132
|
_set_serialize_reason(1);
|
|
6146
6133
|
const $childScope12 = _peek_scope_id();
|
|
6147
6134
|
icon_chevron_right_default({
|
|
6148
6135
|
size: 12,
|
|
6149
|
-
class: ["
|
|
6136
|
+
class: ["_cv", { ["_cw"]: machineOpen }]
|
|
6150
6137
|
});
|
|
6151
|
-
_html(`<span${_attr_class("
|
|
6138
|
+
_html(`<span${_attr_class("_cs")}>Tools</span><span${_attr_class("_ct")}>${_escape(tools.filter((t) => t.installed).length)}${_el_resume($scope0_id, "ai")} installed <!>${missingCount ? `${_escape(`${_to_text(" · ")}`)}${_escape(`${_to_text(missingCount)}`)} missing` : ""}${_el_resume($scope0_id, "aj")}<!>${outdatedIds.length ? `${_escape(`${_to_text(" · ")}`)}${_escape(`${_to_text(outdatedIds.length)}`)} outdated` : ""}${_el_resume($scope0_id, "ak")}</span></button>${_el_resume($scope0_id, "ae")}`);
|
|
6152
6139
|
_if(() => {
|
|
6153
6140
|
if (outdatedIds.length > 1) {
|
|
6154
6141
|
const $scope23_id = _scope_id();
|
|
@@ -6157,7 +6144,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6157
6144
|
writeScope($scope23_id, {});
|
|
6158
6145
|
return 0;
|
|
6159
6146
|
}
|
|
6160
|
-
}, $scope0_id, "
|
|
6147
|
+
}, $scope0_id, "al", 1, 1, 1, 0, 1);
|
|
6161
6148
|
_if(() => {
|
|
6162
6149
|
if (missingInstallable.length > 1) {
|
|
6163
6150
|
const $scope24_id = _scope_id();
|
|
@@ -6166,22 +6153,22 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6166
6153
|
writeScope($scope24_id, {});
|
|
6167
6154
|
return 0;
|
|
6168
6155
|
}
|
|
6169
|
-
}, $scope0_id, "
|
|
6156
|
+
}, $scope0_id, "am", 1, 1, 1, 0, 1);
|
|
6170
6157
|
_if(() => {
|
|
6171
6158
|
if (setup && setup.mise.installed && true) {
|
|
6172
6159
|
const $scope57_id = _scope_id();
|
|
6173
|
-
_html(`<button${_attr_class(
|
|
6174
|
-
icon_plus_default({ size:
|
|
6175
|
-
_html(
|
|
6160
|
+
_html(`<button${_attr_class(iconBtnRow)} title="Add tool" aria-label="Add tool">`);
|
|
6161
|
+
icon_plus_default({ size: 16 });
|
|
6162
|
+
_html(`</button>${_el_resume($scope57_id, "a")}`);
|
|
6176
6163
|
_script($scope57_id, "x67");
|
|
6177
6164
|
writeScope($scope57_id, {});
|
|
6178
6165
|
return 0;
|
|
6179
6166
|
}
|
|
6180
|
-
}, $scope0_id, "
|
|
6167
|
+
}, $scope0_id, "an", 1, 1, 1, 0, 1);
|
|
6181
6168
|
_if(() => {
|
|
6182
6169
|
if (setup && setup.mise.installed) {
|
|
6183
6170
|
const $scope25_id = _scope_id();
|
|
6184
|
-
_html(`<div${_attr_class(["
|
|
6171
|
+
_html(`<div${_attr_class(["_dK", { ["_dL"]: true }])}><label${_attr_class(["_Z", "_dM"])}>`);
|
|
6185
6172
|
_if(() => {
|
|
6186
6173
|
if (searching) {
|
|
6187
6174
|
const $scope108_id = _scope_id();
|
|
@@ -6201,14 +6188,14 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6201
6188
|
_html(`<input${_attr_input_value($scope25_id, "d", query, search)}${_attr_class([
|
|
6202
6189
|
"_X",
|
|
6203
6190
|
"_1",
|
|
6204
|
-
"
|
|
6205
|
-
])} type=text placeholder="Search the mise registry…" aria-label="Search the mise registry" autocomplete=off>${_el_resume($scope25_id, "d")}</label><button${_attr_class([iconBtnRow, "
|
|
6191
|
+
"_dN"
|
|
6192
|
+
])} type=text placeholder="Search the mise registry…" aria-label="Search the mise registry" autocomplete=off>${_el_resume($scope25_id, "d")}</label><button${_attr_class([iconBtnRow, "_dO"])} type=button${_attr("hidden", true)} title="Close search" aria-label="Close search">`);
|
|
6206
6193
|
icon_xmark_default({ size: 12 });
|
|
6207
|
-
_html(`</button>${_el_resume($scope25_id, "e")}<ul${_attr_class([pop$1, "
|
|
6194
|
+
_html(`</button>${_el_resume($scope25_id, "e")}<ul${_attr_class([pop$1, "_dQ"])}${_attr("hidden", true)}>`);
|
|
6208
6195
|
_if(() => {
|
|
6209
6196
|
if (searching && !hits?.length) {
|
|
6210
6197
|
const $scope110_id = _scope_id();
|
|
6211
|
-
_html(`<li${_attr_class("
|
|
6198
|
+
_html(`<li${_attr_class("_dR")}>Searching the mise registry…</li>`);
|
|
6212
6199
|
writeScope($scope110_id, {});
|
|
6213
6200
|
return 0;
|
|
6214
6201
|
}
|
|
@@ -6216,23 +6203,23 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6216
6203
|
_if(() => {
|
|
6217
6204
|
if (hits && !hits.length && !searching) {
|
|
6218
6205
|
const $scope44_id = _scope_id();
|
|
6219
|
-
_html(`<li${_attr_class("
|
|
6206
|
+
_html(`<li${_attr_class("_dR")}>No tools match "<!>${_escape(query)}${_el_resume($scope44_id, "b")}".</li>`);
|
|
6220
6207
|
_subscribe($query__closures, writeScope($scope44_id, {}));
|
|
6221
6208
|
return 0;
|
|
6222
6209
|
}
|
|
6223
6210
|
}, $scope25_id, "i", 1, 1, 1, 0, 1);
|
|
6224
6211
|
_for_of(hits || [], (h) => {
|
|
6225
6212
|
const $scope26_id = _scope_id();
|
|
6226
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
6213
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_bC")}><span${_attr_class(["_cQ", "_w"])}>${_escape(h.name)}${_el_resume($scope26_id, "d")}</span>`);
|
|
6227
6214
|
_if(() => {
|
|
6228
6215
|
if (active.has(h.name)) {
|
|
6229
6216
|
const $scope27_id = _scope_id();
|
|
6230
|
-
_html(`<span${_attr_class("
|
|
6231
|
-
_subscribe($active__closures, writeScope($scope27_id, {
|
|
6217
|
+
_html(`<span${_attr_class("_cB")}><span${_attr_class("_E")}></span><!>${_escape(active.get(h.name) || "Starting…")}${_el_resume($scope27_id, "c")}</span>`);
|
|
6218
|
+
_subscribe($active__closures, writeScope($scope27_id, { Cgt: 9 }));
|
|
6232
6219
|
return 0;
|
|
6233
6220
|
} else if (h.description) {
|
|
6234
6221
|
const $scope111_id = _scope_id();
|
|
6235
|
-
_html(`<span${_attr_class("
|
|
6222
|
+
_html(`<span${_attr_class("_bF")}${_attr("title", h.description)}>${_escape(h.description)}${_el_resume($scope111_id, "b")}</span>${_el_resume($scope111_id, "a")}`);
|
|
6236
6223
|
writeScope($scope111_id, {});
|
|
6237
6224
|
return 1;
|
|
6238
6225
|
}
|
|
@@ -6264,7 +6251,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6264
6251
|
i: h?.name,
|
|
6265
6252
|
k: h?.description,
|
|
6266
6253
|
m: h?.installed,
|
|
6267
|
-
|
|
6254
|
+
Cgt: 8
|
|
6268
6255
|
}));
|
|
6269
6256
|
}, "name", $scope25_id, "j", 1, 1, 1, 0, 1);
|
|
6270
6257
|
_html(`</ul>${_el_resume($scope25_id, "g")}</div>${_el_resume($scope25_id, "a")}`);
|
|
@@ -6272,18 +6259,18 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6272
6259
|
writeScope($scope25_id, {});
|
|
6273
6260
|
return 0;
|
|
6274
6261
|
}
|
|
6275
|
-
}, $scope0_id, "
|
|
6276
|
-
_html(`</div>${_el_resume($scope0_id, "
|
|
6262
|
+
}, $scope0_id, "ao", 1, 1, 1, 0, 1);
|
|
6263
|
+
_html(`</div>${_el_resume($scope0_id, "ad")}`);
|
|
6277
6264
|
_if(() => {
|
|
6278
6265
|
if (machineOpen) {
|
|
6279
6266
|
const $scope6_id = _scope_id();
|
|
6280
|
-
_html(`<div${_attr_class("
|
|
6267
|
+
_html(`<div${_attr_class("_cu")}>`);
|
|
6281
6268
|
_if(() => {
|
|
6282
6269
|
if (setup && !setup.mise.installed) {
|
|
6283
6270
|
const $scope28_id = _scope_id();
|
|
6284
|
-
_html(`<p${_attr_class("
|
|
6271
|
+
_html(`<p${_attr_class("_bH")}>mise is not installed. It provides every tool below. <button${_attr_class(btnSm)}${_attr("disabled", active.has("mise"))}>${active.has("mise") ? "Installing…" : "Install mise"}${_el_resume($scope28_id, "c")}</button>${_el_resume($scope28_id, "b")}</p>`);
|
|
6285
6272
|
_script($scope28_id, "x70");
|
|
6286
|
-
_subscribe($active__closures, writeScope($scope28_id, {
|
|
6273
|
+
_subscribe($active__closures, writeScope($scope28_id, { Cgt: 10 }));
|
|
6287
6274
|
return 0;
|
|
6288
6275
|
}
|
|
6289
6276
|
}, $scope6_id, "b", 1, 1, 1, 0, 1);
|
|
@@ -6291,11 +6278,11 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6291
6278
|
_if(() => {
|
|
6292
6279
|
if (self) {
|
|
6293
6280
|
const $scope48_id = _scope_id();
|
|
6294
|
-
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["
|
|
6281
|
+
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["_cQ", "_w"])}>work</span>`);
|
|
6295
6282
|
_if(() => {
|
|
6296
6283
|
if (selfUpdating) {
|
|
6297
6284
|
const $scope113_id = _scope_id();
|
|
6298
|
-
_html(`<span${_attr_class("
|
|
6285
|
+
_html(`<span${_attr_class("_cB")}><span${_attr_class("_E")}></span>Updating — the app restarts and reloads when it is done…</span>`);
|
|
6299
6286
|
writeScope($scope113_id, {});
|
|
6300
6287
|
return 0;
|
|
6301
6288
|
} else {
|
|
@@ -6309,11 +6296,11 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6309
6296
|
return 0;
|
|
6310
6297
|
} else if (self.latest && self.latest !== self.version) {
|
|
6311
6298
|
const $scope50_id = _scope_id();
|
|
6312
|
-
_html(`<button${_attr_class([btnSm, "
|
|
6299
|
+
_html(`<button${_attr_class([btnSm, "_cS"])}${_attr("title", `Update work to v${self.latest} and restart`)}>`);
|
|
6313
6300
|
icon_arrow_up_default({ size: 12 });
|
|
6314
6301
|
_html(` <!>${_escape(self.latest)}${_el_resume($scope50_id, "c")}</button>${_el_resume($scope50_id, "a")}`);
|
|
6315
6302
|
_script($scope50_id, "x71");
|
|
6316
|
-
_subscribe($self_latest__closures, writeScope($scope50_id, {
|
|
6303
|
+
_subscribe($self_latest__closures, writeScope($scope50_id, { Ch8: 3 }));
|
|
6317
6304
|
return 1;
|
|
6318
6305
|
} else if (self.latest) {
|
|
6319
6306
|
const $scope115_id = _scope_id();
|
|
@@ -6323,8 +6310,8 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6323
6310
|
}
|
|
6324
6311
|
}, $scope49_id, "c", 1, 1, 1, 0, 1);
|
|
6325
6312
|
_subscribe($self_version__closures, _subscribe($self_latest__closures, _subscribe($self_install__closures, writeScope($scope49_id, {
|
|
6326
|
-
|
|
6327
|
-
|
|
6313
|
+
Ch8: 2,
|
|
6314
|
+
Ch9: 1
|
|
6328
6315
|
}))));
|
|
6329
6316
|
return 1;
|
|
6330
6317
|
}
|
|
@@ -6350,19 +6337,19 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6350
6337
|
const $for_content8__t_path__closures = /* @__PURE__ */ new Set();
|
|
6351
6338
|
const $for_content8__t_latest__closures = /* @__PURE__ */ new Set();
|
|
6352
6339
|
const $for_content8__t_id__closures = /* @__PURE__ */ new Set();
|
|
6353
|
-
_html(`<li${_attr_class([toolRow, { ["
|
|
6340
|
+
_html(`<li${_attr_class([toolRow, { ["_cP"]: !t.installed }])}><span${_attr_class(["_cQ", "_w"])}>${_escape(t.label)}${_el_resume($scope29_id, "c")}</span>`);
|
|
6354
6341
|
_if(() => {
|
|
6355
6342
|
if (active.has(t.id)) {
|
|
6356
6343
|
const $scope30_id = _scope_id();
|
|
6357
|
-
_html(`<span${_attr_class("
|
|
6358
|
-
_subscribe($active__closures, writeScope($scope30_id, {
|
|
6344
|
+
_html(`<span${_attr_class("_cB")}><span${_attr_class("_E")}></span><!>${_escape(active.get(t.id) || "Starting…")}${_el_resume($scope30_id, "c")}</span>`);
|
|
6345
|
+
_subscribe($active__closures, writeScope($scope30_id, { Cgt: 12 }));
|
|
6359
6346
|
return 0;
|
|
6360
6347
|
} else if (t.installed) {
|
|
6361
6348
|
const $scope40_id = _scope_id();
|
|
6362
6349
|
_if(() => {
|
|
6363
6350
|
if (t.version) {
|
|
6364
6351
|
const $scope41_id = _scope_id();
|
|
6365
|
-
_html(`<button${_attr_class(["
|
|
6352
|
+
_html(`<button${_attr_class(["_cR", "_w"])}${_attr("title", `${t.path || t.label}. Pin a version`)}>v<!>${_escape(t.version)}${_el_resume($scope41_id, "b")}</button>${_el_resume($scope41_id, "a")}`);
|
|
6366
6353
|
_script($scope41_id, "x72");
|
|
6367
6354
|
_subscribe($for_content8__t_path__closures, _subscribe($for_content8__t_version__closures, _subscribe($for_content8__t_label__closures, writeScope($scope41_id, { Cu: 1 }))));
|
|
6368
6355
|
return 0;
|
|
@@ -6376,7 +6363,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6376
6363
|
_if(() => {
|
|
6377
6364
|
if (outdated(t)) {
|
|
6378
6365
|
const $scope60_id = _scope_id();
|
|
6379
|
-
_html(`<button${_attr_class([btnSm, "
|
|
6366
|
+
_html(`<button${_attr_class([btnSm, "_cS"])}${_attr("title", `Update to v${t.latest}`)}>`);
|
|
6380
6367
|
icon_arrow_up_default({ size: 12 });
|
|
6381
6368
|
_html(` <!>${_escape(t.latest)}${_el_resume($scope60_id, "c")}</button>${_el_resume($scope60_id, "a")}`);
|
|
6382
6369
|
_script($scope60_id, "x73");
|
|
@@ -6439,7 +6426,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6439
6426
|
}
|
|
6440
6427
|
}, $scope36_id, "a", 1, 1, 1, "</button>");
|
|
6441
6428
|
_script($scope36_id, "x75");
|
|
6442
|
-
_subscribe($for_content8__t_id__closures, _subscribe($for_content8__t_label__closures, _subscribe($confirmingRemove__closures, writeScope($scope36_id, {
|
|
6429
|
+
_subscribe($for_content8__t_id__closures, _subscribe($for_content8__t_label__closures, _subscribe($confirmingRemove__closures, writeScope($scope36_id, { Cgw: 2 }))));
|
|
6443
6430
|
return 1;
|
|
6444
6431
|
}
|
|
6445
6432
|
}, $scope35_id, "b", 1, 1, 1, 0, 1);
|
|
@@ -6463,14 +6450,14 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6463
6450
|
x: $for_content8__t_path__closures,
|
|
6464
6451
|
y: $for_content8__t_latest__closures,
|
|
6465
6452
|
v: $for_content8__t_id__closures,
|
|
6466
|
-
|
|
6453
|
+
Cgt: 11
|
|
6467
6454
|
}));
|
|
6468
6455
|
}, "id", $scope6_id, "e", 1, 1, 1, 0, 1);
|
|
6469
6456
|
_html("</ul></div>");
|
|
6470
6457
|
writeScope($scope6_id, {});
|
|
6471
6458
|
return 0;
|
|
6472
6459
|
}
|
|
6473
|
-
}, $scope0_id, "
|
|
6460
|
+
}, $scope0_id, "ap", 1, 1, 1, 0, 1);
|
|
6474
6461
|
const themeOpts = [
|
|
6475
6462
|
{
|
|
6476
6463
|
id: "system",
|
|
@@ -6485,9 +6472,9 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6485
6472
|
label: "Dark"
|
|
6486
6473
|
}
|
|
6487
6474
|
];
|
|
6488
|
-
_html(`</div></div></section><section${_attr_class("
|
|
6475
|
+
_html(`</div></div></section><section${_attr_class("_bw")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_bx")}><h2${_attr("id", appearanceId)}${_attr_class("_bK")}>Appearance</h2></div><div${_attr_class(["_bB", "_c7"])}><label${_attr_class("_c8")}><span${_attr_class("_c9")}>Name</span><input${_attr_input_value($scope0_id, "aw", input$2.instance.name, _resume(function(v) {
|
|
6489
6476
|
setInstance({ name: v });
|
|
6490
|
-
}, "x4", $scope0_id))}${_attr_class(["_X", "
|
|
6477
|
+
}, "x4", $scope0_id))}${_attr_class(["_X", "_c_"])} type=text placeholder="Tab title" maxlength=32 autocomplete=off spellcheck=false>${_el_resume($scope0_id, "aw")}</label><div${_attr_class("_c8")}><span${_attr_class("_c9")}>Theme</span><span${_attr_class("_db")}><span${_attr_class(themeSeg)} role=radiogroup aria-label="Color theme">`);
|
|
6491
6478
|
_for_of(themeOpts, (opt) => {
|
|
6492
6479
|
const $scope51_id = _scope_id();
|
|
6493
6480
|
_html(`<button type=button${_attr_class(["_be", { ["_bd"]: themeMode === opt.id }])} role=radio aria-checked=${themeMode === opt.id ? "true" : "false"}>${_escape(opt.label)}</button>${_el_resume($scope51_id, "a")}`);
|
|
@@ -6496,54 +6483,53 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6496
6483
|
e: opt?.id,
|
|
6497
6484
|
_: _scope_with_id($scope0_id)
|
|
6498
6485
|
});
|
|
6499
|
-
}, "id", $scope0_id, "
|
|
6500
|
-
_html(`</span><span${_attr_class(["_m", "
|
|
6501
|
-
_attr_select_value($scope0_id, "
|
|
6486
|
+
}, "id", $scope0_id, "b0", 1, 0, 1, 0, 1);
|
|
6487
|
+
_html(`</span><span${_attr_class(["_m", "_dc"])}>`);
|
|
6488
|
+
_attr_select_value($scope0_id, "b2", themeMode, _resume(function(v) {
|
|
6502
6489
|
setThemeMode(v);
|
|
6503
6490
|
}, "x5", $scope0_id), () => {
|
|
6504
|
-
_html(`<select${_attr_class(["_n", "
|
|
6491
|
+
_html(`<select${_attr_class(["_n", "_dd"])} aria-label="Color theme">`);
|
|
6505
6492
|
forOf(themeOpts, (opt) => {
|
|
6506
6493
|
_scope_id();
|
|
6507
6494
|
_html(`<option${_attr_option_value(opt.id)}>${_escape(opt.label)}</option>`);
|
|
6508
6495
|
});
|
|
6509
6496
|
_html("</select>");
|
|
6510
6497
|
});
|
|
6511
|
-
_html(`${_el_resume($scope0_id, "
|
|
6512
|
-
"
|
|
6513
|
-
"
|
|
6514
|
-
{ ["
|
|
6515
|
-
])} role=radio aria-checked=${!input$2.instance.accent ? "true" : "false"} title="Default (blue)" aria-label="Default (blue)"></button>${_el_resume($scope0_id, "
|
|
6498
|
+
_html(`${_el_resume($scope0_id, "b2")}</span></span></div><div${_attr_class("_c8")}><span${_attr_class("_c9")}>Accent</span><span${_attr_class(swatches)} role=radiogroup aria-label="Accent colour"><button type=button${_attr_class([
|
|
6499
|
+
"_dj",
|
|
6500
|
+
"_dl",
|
|
6501
|
+
{ ["_dk"]: !input$2.instance.accent }
|
|
6502
|
+
])} role=radio aria-checked=${!input$2.instance.accent ? "true" : "false"} title="Default (blue)" aria-label="Default (blue)"></button>${_el_resume($scope0_id, "b6")}`);
|
|
6516
6503
|
_for_of(ACCENT_PRESETS, (p) => {
|
|
6517
6504
|
const $scope4_id = _scope_id();
|
|
6518
|
-
_html(`<button type=button${_attr_class(["
|
|
6505
|
+
_html(`<button type=button${_attr_class(["_dj", { ["_dk"]: input$2.instance.accent === p.value }])}${_attr_style(`--swatch:${p.value}`)} role=radio aria-checked=${input$2.instance.accent === p.value ? "true" : "false"}${_attr("title", p.name)}${_attr("aria-label", p.name)}></button>${_el_resume($scope4_id, "a")}`);
|
|
6519
6506
|
_script($scope4_id, "x77");
|
|
6520
6507
|
writeScope($scope4_id, {
|
|
6521
6508
|
d: p?.value,
|
|
6522
6509
|
_: _scope_with_id($scope0_id)
|
|
6523
6510
|
});
|
|
6524
|
-
}, "value", $scope0_id, "
|
|
6511
|
+
}, "value", $scope0_id, "b7", $sg__input_instance_accent, 0, 1, 0, 1);
|
|
6525
6512
|
const customOn = !!input$2.instance.accent && !ACCENT_PRESETS.some((p) => p.value === input$2.instance.accent);
|
|
6526
6513
|
_html(`<label${_attr_class([
|
|
6527
|
-
"
|
|
6528
|
-
"
|
|
6529
|
-
{ ["
|
|
6530
|
-
])}${customOn ? _attr_style(`--swatch:${input$2.instance.accent}`) : ""} title="Custom colour"><input${_attr_input_value($scope0_id, "
|
|
6514
|
+
"_dj",
|
|
6515
|
+
"_dm",
|
|
6516
|
+
{ ["_dk"]: customOn }
|
|
6517
|
+
])}${customOn ? _attr_style(`--swatch:${input$2.instance.accent}`) : ""} title="Custom colour"><input${_attr_input_value($scope0_id, "b9", input$2.instance.accent || "#3556d8", _resume(function(v) {
|
|
6531
6518
|
setInstance({ accent: v });
|
|
6532
|
-
}, "x6", $scope0_id))}${_attr_class("
|
|
6519
|
+
}, "x6", $scope0_id))}${_attr_class("_dn")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "b9")}<span aria-hidden=true>+</span></label>${_el_resume($scope0_id, "b8", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("_bw")}${_attr("aria-labelledby", backupId)}><div${_attr_class("_bx")}><h2${_attr("id", backupId)}${_attr_class("_bK")}>Backup</h2></div><div${_attr_class(["_bB", "_cj"])}><div${_attr_class("_ck")}><div${_attr_class("_do")}><div${_attr_class("_bC")}>`);
|
|
6533
6520
|
_if(() => {
|
|
6534
6521
|
if (backupBusy === "preflight") {
|
|
6535
6522
|
const $scope65_id = _scope_id();
|
|
6536
|
-
_html(`<span${_attr_class("
|
|
6523
|
+
_html(`<span${_attr_class("_cB")}><span${_attr_class("_E")}></span><!>${_escape(backupLine || "Checking workspaces…")}${_el_resume($scope65_id, "c")}</span>`);
|
|
6537
6524
|
writeScope($scope65_id, {});
|
|
6538
6525
|
return 0;
|
|
6539
6526
|
} else {
|
|
6540
6527
|
const $scope124_id = _scope_id();
|
|
6541
|
-
_html(`<span${_attr_class("
|
|
6528
|
+
_html(`<span${_attr_class("_bF")}>Save workspaces, settings, skills and tool pins to a file. Code stays on GitHub.</span>`);
|
|
6542
6529
|
writeScope($scope124_id, {});
|
|
6543
6530
|
return 1;
|
|
6544
6531
|
}
|
|
6545
|
-
}, $scope0_id, "
|
|
6546
|
-
_html("</div>");
|
|
6532
|
+
}, $scope0_id, "bg", 1, 1, 1, "</div>", 1);
|
|
6547
6533
|
_if(() => {
|
|
6548
6534
|
if (!backupBusy && !preflight) {
|
|
6549
6535
|
const $scope75_id = _scope_id();
|
|
@@ -6552,12 +6538,12 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6552
6538
|
writeScope($scope75_id, {});
|
|
6553
6539
|
return 0;
|
|
6554
6540
|
}
|
|
6555
|
-
}, $scope0_id, "
|
|
6541
|
+
}, $scope0_id, "bh", 1, 1, 1, 0, 1);
|
|
6556
6542
|
_html("</div>");
|
|
6557
6543
|
_if(() => {
|
|
6558
6544
|
if (preflight && !backupBusy) {
|
|
6559
6545
|
const $scope67_id = _scope_id();
|
|
6560
|
-
_html(`<div${_attr_class("
|
|
6546
|
+
_html(`<div${_attr_class("_dq")}><p${_attr_class("_dr")}>In the file: <!>${_escape(preflight.contents.workspaces)}${_el_resume($scope67_id, "c")} workspace<!>${preflight.contents.workspaces === 1 ? "" : "s"}${_el_resume($scope67_id, "d")}<!>${preflight.contents.archived ? `${_escape(`${_to_text(" ")}`)}(${_escape(`${_to_text(preflight.contents.archived)}`)} archived)` : ""}${_el_resume($scope67_id, "e")} , <!>${_escape(preflight.contents.tools)}${_el_resume($scope67_id, "f")} tool pin<!>${preflight.contents.tools === 1 ? "" : "s"}${_el_resume($scope67_id, "g")}, <!>${_escape(preflight.contents.skills)}${_el_resume($scope67_id, "h")} skill<!>${preflight.contents.skills === 1 ? "" : "s"}${_el_resume($scope67_id, "i")}, <!>${_escape(preflight.contents.agents)}${_el_resume($scope67_id, "j")} agent<!>${preflight.contents.agents === 1 ? "" : "s"}${_el_resume($scope67_id, "k")}.</p><p${_attr_class("_dr")}>Not in the file: `);
|
|
6561
6547
|
_if(() => {
|
|
6562
6548
|
if (preflight.unpushed) {
|
|
6563
6549
|
const $scope68_id = _scope_id();
|
|
@@ -6574,15 +6560,15 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6574
6560
|
return 0;
|
|
6575
6561
|
}
|
|
6576
6562
|
}, $scope67_id, "m");
|
|
6577
|
-
_html(`<!>${preflight.files ? `${_escape(`${_to_text(" ")}`)}${_escape(`${_to_text(preflight.files)}`)} uncommitted file${_escape(`${_to_text(preflight.files === 1 ? "" : "s")}`)}` : ""}${_el_resume($scope67_id, "n")} .</p><ul${_attr_class("
|
|
6563
|
+
_html(`<!>${preflight.files ? `${_escape(`${_to_text(" ")}`)}${_escape(`${_to_text(preflight.files)}`)} uncommitted file${_escape(`${_to_text(preflight.files === 1 ? "" : "s")}`)}` : ""}${_el_resume($scope67_id, "n")} .</p><ul${_attr_class("_ds")}>`);
|
|
6578
6564
|
_for_of(preflight.workspaces, (w) => {
|
|
6579
6565
|
const $scope126_id = _scope_id();
|
|
6580
6566
|
const $for_content18__w_name__closures = /* @__PURE__ */ new Set();
|
|
6581
|
-
_html(`<li${_attr_class("
|
|
6567
|
+
_html(`<li${_attr_class("_dt")}><span${_attr_class("_bD")}>${_escape(w.name)}${_el_resume($scope126_id, "c")}</span><ul${_attr_class("_ds")}>`);
|
|
6582
6568
|
_for_of(w.repos, (r) => {
|
|
6583
6569
|
const $scope127_id = _scope_id();
|
|
6584
6570
|
const $for_content19__r_more__closures = /* @__PURE__ */ new Set();
|
|
6585
|
-
_html(`<li${_attr_class("
|
|
6571
|
+
_html(`<li${_attr_class("_du")}><span${_attr_class("_dv")}><span${_attr_class("_w")}>${_escape(r.worktree)}${_el_resume($scope127_id, "d")}/</span>`);
|
|
6586
6572
|
_for_of(r.unpushed, (b) => {
|
|
6587
6573
|
const $scope128_id = _scope_id();
|
|
6588
6574
|
_html(`<span${_attr_class(["_L", tone.warn])}${_attr("title", `${b.branch}: ${b.count} commit${b.count === 1 ? "" : "s"} origin does not have`)}>${_escape(b.count)}${_el_resume($scope128_id, "b")} unpushed `);
|
|
@@ -6601,10 +6587,10 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6601
6587
|
_if(() => {
|
|
6602
6588
|
if (r.modified.length || r.untracked.length || r.ignored.length) {
|
|
6603
6589
|
const $scope129_id = _scope_id();
|
|
6604
|
-
_html(`<ul${_attr_class("
|
|
6590
|
+
_html(`<ul${_attr_class("_dw")}>`);
|
|
6605
6591
|
_for_of(r.modified, (f) => {
|
|
6606
6592
|
const $scope132_id = _scope_id();
|
|
6607
|
-
_html(`<li${_attr_class("
|
|
6593
|
+
_html(`<li${_attr_class("_dx")}><span${_attr_class([
|
|
6608
6594
|
"_L",
|
|
6609
6595
|
"_N",
|
|
6610
6596
|
tone.warn
|
|
@@ -6613,18 +6599,18 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6613
6599
|
}, (f) => f, $scope129_id, "b", 1, 1, 1, 0, 1);
|
|
6614
6600
|
_for_of(r.untracked, (f) => {
|
|
6615
6601
|
const $scope133_id = _scope_id();
|
|
6616
|
-
_html(`<li${_attr_class("
|
|
6602
|
+
_html(`<li${_attr_class("_dx")}><span${_attr_class(["_L", "_N"])} title=Untracked>?</span><span${_attr_class(["_w", "__"])}>${_escape(f)}${_el_resume($scope133_id, "d")}</span></li>`);
|
|
6617
6603
|
writeScope($scope133_id, {});
|
|
6618
6604
|
}, (f) => f, $scope129_id, "c", 1, 1, 1, 0, 1);
|
|
6619
6605
|
_for_of(r.ignored, (f) => {
|
|
6620
6606
|
const $scope134_id = _scope_id();
|
|
6621
|
-
_html(`<li${_attr_class("
|
|
6607
|
+
_html(`<li${_attr_class("_dx")}><span${_attr_class(["_L", "_N"])} title="Ignored by git — a restore cannot bring it back">ignored</span><span${_attr_class(["_w", "__"])}>${_escape(f)}${_el_resume($scope134_id, "d")}</span></li>`);
|
|
6622
6608
|
writeScope($scope134_id, {});
|
|
6623
6609
|
}, (f) => f, $scope129_id, "d", 1, 1, 1, 0, 1);
|
|
6624
6610
|
_if(() => {
|
|
6625
6611
|
if (r.more) {
|
|
6626
6612
|
const $scope130_id = _scope_id();
|
|
6627
|
-
_html(`<li${_attr_class(["
|
|
6613
|
+
_html(`<li${_attr_class(["_dx", "_v"])}>+<!>${_escape(r.more)}${_el_resume($scope130_id, "b")} more</li>`);
|
|
6628
6614
|
_subscribe($for_content19__r_more__closures, writeScope($scope130_id, {}));
|
|
6629
6615
|
return 0;
|
|
6630
6616
|
}
|
|
@@ -6649,54 +6635,53 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6649
6635
|
i: $for_content18__w_name__closures
|
|
6650
6636
|
});
|
|
6651
6637
|
}, "id", $scope67_id, "o", 1, 1, 1, "</ul>", 1);
|
|
6652
|
-
_html(`<div${_attr_class("
|
|
6638
|
+
_html(`<div${_attr_class("_dy")}><button${_attr_class([btnSm, { ["_p"]: !preflight.unpushed }])}>${preflight.unpushed ? "Export anyway" : "Export"}${_el_resume($scope67_id, "r")}</button>${_el_resume($scope67_id, "q")}<button${_attr_class(btnSm)}>Cancel</button>${_el_resume($scope67_id, "s")}</div></div>`);
|
|
6653
6639
|
_script($scope67_id, "x79");
|
|
6654
6640
|
writeScope($scope67_id, {});
|
|
6655
6641
|
return 0;
|
|
6656
6642
|
}
|
|
6657
|
-
}, $scope0_id, "
|
|
6658
|
-
_html(`</div><div${_attr_class("
|
|
6643
|
+
}, $scope0_id, "bi", 1, 1, 1, 0, 1);
|
|
6644
|
+
_html(`</div><div${_attr_class("_ck")}><div${_attr_class("_do")}><div${_attr_class("_bC")}>`);
|
|
6659
6645
|
_if(() => {
|
|
6660
6646
|
if (backupBusy === "restore") {
|
|
6661
6647
|
const $scope66_id = _scope_id();
|
|
6662
|
-
_html(`<span${_attr_class("
|
|
6648
|
+
_html(`<span${_attr_class("_cB")}><span${_attr_class("_E")}></span><!>${_escape(backupLine || "Restoring…")}${_el_resume($scope66_id, "c")}</span>`);
|
|
6663
6649
|
writeScope($scope66_id, {});
|
|
6664
6650
|
return 0;
|
|
6665
6651
|
} else if (restoreDone) {
|
|
6666
6652
|
const $scope74_id = _scope_id();
|
|
6667
|
-
_html(`<span${_attr_class("
|
|
6653
|
+
_html(`<span${_attr_class("_bF")}>${_escape(restoreDone)}${_el_resume($scope74_id, "b")}</span>`);
|
|
6668
6654
|
writeScope($scope74_id, {});
|
|
6669
6655
|
return 1;
|
|
6670
6656
|
} else {
|
|
6671
6657
|
const $scope135_id = _scope_id();
|
|
6672
|
-
_html(`<span${_attr_class("
|
|
6658
|
+
_html(`<span${_attr_class("_bF")}>Load a backup file. Repos clone in the background.</span>`);
|
|
6673
6659
|
writeScope($scope135_id, {});
|
|
6674
6660
|
return 2;
|
|
6675
6661
|
}
|
|
6676
|
-
}, $scope0_id, "
|
|
6677
|
-
_html("</div>");
|
|
6662
|
+
}, $scope0_id, "bl", 1, 1, 1, "</div>", 1);
|
|
6678
6663
|
_if(() => {
|
|
6679
6664
|
if (!restorePreview && backupBusy !== "restore") {
|
|
6680
6665
|
const $scope76_id = _scope_id();
|
|
6681
|
-
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("
|
|
6666
|
+
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("_dp")} type=file accept=application/json,.json aria-label="Backup file">${_el_resume($scope76_id, "b")}</label>`);
|
|
6682
6667
|
_script($scope76_id, "x80");
|
|
6683
6668
|
writeScope($scope76_id, {});
|
|
6684
6669
|
return 0;
|
|
6685
6670
|
}
|
|
6686
|
-
}, $scope0_id, "
|
|
6671
|
+
}, $scope0_id, "bm", 1, 1, 1, 0, 1);
|
|
6687
6672
|
_html("</div>");
|
|
6688
6673
|
_if(() => {
|
|
6689
6674
|
if (restorePreview && backupBusy !== "restore") {
|
|
6690
6675
|
const $scope69_id = _scope_id();
|
|
6691
6676
|
const { preview } = restorePreview;
|
|
6692
|
-
_html(`<div${_attr_class("
|
|
6677
|
+
_html(`<div${_attr_class("_dq")}><p${_attr_class("_dr")}>From <!>${_escape(preview.from.host)}${_el_resume($scope69_id, "c")} on <!>${_escape(new Date(preview.from.exportedAt).toLocaleDateString())}${_el_resume($scope69_id, "d")}<!>${preview.from.version ? ` (work ${_escape(`${preview.from.version}`)})` : ""}${_el_resume($scope69_id, "e")}.</p>`);
|
|
6693
6678
|
_if(() => {
|
|
6694
6679
|
if (preview.workspaces.length) {
|
|
6695
6680
|
const $scope70_id = _scope_id();
|
|
6696
6681
|
_html(`<ul${_attr_class(checkList)}>`);
|
|
6697
6682
|
_for_of(preview.workspaces, (w) => {
|
|
6698
6683
|
const $scope71_id = _scope_id();
|
|
6699
|
-
_html(`<li><label${_attr_class(["
|
|
6684
|
+
_html(`<li><label${_attr_class(["_dA", { ["_dC"]: w.exists || !!w.unknownHost }])}><input${_attr_input_checked($scope71_id, "b", restoreWs.has(w.id))}${_attr_class("_dB")} type=checkbox${_attr("disabled", w.exists || !!w.unknownHost)}>${_el_resume($scope71_id, "b")}<span${_attr_class("_bC")}><span${_attr_class("_bE")}><span${_attr_class("_bD")}>${_escape(w.name)}${_el_resume($scope71_id, "f")}</span>`);
|
|
6700
6685
|
_if(() => {
|
|
6701
6686
|
if (w.status === "archived") {
|
|
6702
6687
|
const $scope139_id = _scope_id();
|
|
@@ -6718,7 +6703,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6718
6703
|
return 1;
|
|
6719
6704
|
}
|
|
6720
6705
|
}, $scope71_id, "h", 1, 1, 1, 0, 1);
|
|
6721
|
-
_html(`</span><span${_attr_class("
|
|
6706
|
+
_html(`</span><span${_attr_class("_bF")}>${_escape(w.repos.join(", ") || "no repos")}${_el_resume($scope71_id, "j")}</span></span></label>${_el_resume($scope71_id, "a")}</li>`);
|
|
6722
6707
|
_script($scope71_id, "x81");
|
|
6723
6708
|
_subscribe($restoreWs__closures, writeScope($scope71_id, {
|
|
6724
6709
|
n: w?.unknownHost,
|
|
@@ -6729,7 +6714,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6729
6714
|
return 0;
|
|
6730
6715
|
} else {
|
|
6731
6716
|
const $scope137_id = _scope_id();
|
|
6732
|
-
_html(`<p${_attr_class("
|
|
6717
|
+
_html(`<p${_attr_class("_bH")}>No workspaces in this file.</p>`);
|
|
6733
6718
|
writeScope($scope137_id, {});
|
|
6734
6719
|
return 1;
|
|
6735
6720
|
}
|
|
@@ -6769,7 +6754,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6769
6754
|
_if(() => {
|
|
6770
6755
|
if (p.total) {
|
|
6771
6756
|
const $scope73_id = _scope_id();
|
|
6772
|
-
_html(`<li><label${_attr_class(["
|
|
6757
|
+
_html(`<li><label${_attr_class(["_dA", { ["_dC"]: !p.missing.length && p.key !== "settings" }])}><input${_attr_input_checked($scope73_id, "b", restoreParts[p.key])}${_attr_class("_dB")} type=checkbox${_attr("disabled", !p.missing.length && p.key !== "settings")}>${_el_resume($scope73_id, "b")}<span${_attr_class("_bC")}><span${_attr_class("_bD")}>${_escape(p.label)}${_el_resume($scope73_id, "e")}</span><span${_attr_class("_bF")}>`);
|
|
6773
6758
|
_if(() => {
|
|
6774
6759
|
if (p.key === "settings") {
|
|
6775
6760
|
const $scope136_id = _scope_id();
|
|
@@ -6816,12 +6801,12 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6816
6801
|
i: $for_content11__p_total__closures
|
|
6817
6802
|
});
|
|
6818
6803
|
}, "key", $scope69_id, "h");
|
|
6819
|
-
_html(`</ul><div${_attr_class("
|
|
6804
|
+
_html(`</ul><div${_attr_class("_dy")}><button${_attr_class([btnSm, "_p"])}${_attr("disabled", !restoreWs.size && !Object.values(restoreParts).some(Boolean))}>Restore</button>${_el_resume($scope69_id, "j")}<button${_attr_class(btnSm)}>Cancel</button>${_el_resume($scope69_id, "k")}</div></div>`);
|
|
6820
6805
|
_script($scope69_id, "x83");
|
|
6821
6806
|
writeScope($scope69_id, {});
|
|
6822
6807
|
return 0;
|
|
6823
6808
|
}
|
|
6824
|
-
}, $scope0_id, "
|
|
6809
|
+
}, $scope0_id, "bn", 1, 1, 1, 0, 1);
|
|
6825
6810
|
_html("</div></div></section></div></div></div>");
|
|
6826
6811
|
_if(() => {
|
|
6827
6812
|
if (versionPick) {
|
|
@@ -6846,166 +6831,167 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6846
6831
|
writeScope($scope37_id, { a: _existing_scope($childScope13) });
|
|
6847
6832
|
return 0;
|
|
6848
6833
|
}
|
|
6849
|
-
}, $scope0_id, "
|
|
6834
|
+
}, $scope0_id, "bo", 1, 1, 1, 0, 1);
|
|
6850
6835
|
_script($scope0_id, "x84");
|
|
6851
6836
|
_script($scope0_id, "x85");
|
|
6852
6837
|
writeScope($scope0_id, {
|
|
6853
|
-
|
|
6854
|
-
|
|
6855
|
-
|
|
6856
|
-
|
|
6857
|
-
|
|
6858
|
-
|
|
6859
|
-
|
|
6860
|
-
|
|
6861
|
-
|
|
6862
|
-
|
|
6863
|
-
|
|
6864
|
-
|
|
6865
|
-
|
|
6866
|
-
|
|
6867
|
-
|
|
6868
|
-
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
|
|
6872
|
-
|
|
6873
|
-
|
|
6874
|
-
|
|
6875
|
-
|
|
6876
|
-
|
|
6877
|
-
|
|
6878
|
-
|
|
6879
|
-
|
|
6880
|
-
|
|
6881
|
-
|
|
6882
|
-
|
|
6883
|
-
|
|
6884
|
-
|
|
6885
|
-
|
|
6886
|
-
|
|
6887
|
-
|
|
6888
|
-
|
|
6889
|
-
|
|
6890
|
-
|
|
6891
|
-
|
|
6892
|
-
|
|
6893
|
-
|
|
6894
|
-
|
|
6895
|
-
|
|
6896
|
-
|
|
6897
|
-
|
|
6898
|
-
|
|
6899
|
-
|
|
6900
|
-
|
|
6901
|
-
|
|
6902
|
-
|
|
6903
|
-
|
|
6904
|
-
|
|
6905
|
-
|
|
6906
|
-
|
|
6907
|
-
|
|
6908
|
-
|
|
6909
|
-
|
|
6910
|
-
|
|
6911
|
-
|
|
6912
|
-
|
|
6913
|
-
|
|
6914
|
-
|
|
6915
|
-
|
|
6916
|
-
|
|
6917
|
-
|
|
6918
|
-
|
|
6919
|
-
|
|
6920
|
-
|
|
6921
|
-
|
|
6922
|
-
|
|
6923
|
-
|
|
6924
|
-
|
|
6925
|
-
|
|
6926
|
-
|
|
6927
|
-
|
|
6928
|
-
|
|
6929
|
-
|
|
6930
|
-
|
|
6931
|
-
|
|
6932
|
-
|
|
6933
|
-
|
|
6934
|
-
|
|
6935
|
-
|
|
6936
|
-
|
|
6937
|
-
|
|
6938
|
-
|
|
6939
|
-
|
|
6940
|
-
|
|
6941
|
-
|
|
6942
|
-
|
|
6943
|
-
|
|
6944
|
-
|
|
6945
|
-
|
|
6946
|
-
|
|
6947
|
-
|
|
6948
|
-
|
|
6949
|
-
|
|
6950
|
-
|
|
6951
|
-
|
|
6952
|
-
|
|
6953
|
-
|
|
6954
|
-
|
|
6955
|
-
|
|
6956
|
-
|
|
6957
|
-
|
|
6958
|
-
|
|
6959
|
-
|
|
6960
|
-
|
|
6961
|
-
|
|
6962
|
-
|
|
6963
|
-
|
|
6964
|
-
|
|
6965
|
-
|
|
6966
|
-
|
|
6967
|
-
|
|
6968
|
-
|
|
6969
|
-
|
|
6970
|
-
|
|
6971
|
-
|
|
6972
|
-
|
|
6838
|
+
bs: input$2.setupChange,
|
|
6839
|
+
bt: input$2.agentsChange,
|
|
6840
|
+
bu: input$2.preferred,
|
|
6841
|
+
bv: input$2.preferredChange,
|
|
6842
|
+
bx: input$2.instance,
|
|
6843
|
+
by: input$2.instanceChange,
|
|
6844
|
+
c0: input$2.onExit,
|
|
6845
|
+
c2: $si__input_instance__OR__input_instanceChange && input$2.instance?.name,
|
|
6846
|
+
c3: $si__input_instance__OR__input_instanceChange && input$2.instance?.accent,
|
|
6847
|
+
c4: setup,
|
|
6848
|
+
c5: setup?.agents,
|
|
6849
|
+
c7: setup?.missing,
|
|
6850
|
+
c9: ignoredSso,
|
|
6851
|
+
ca: readIgnoredSso,
|
|
6852
|
+
cb: usage,
|
|
6853
|
+
cc: usage?.agents,
|
|
6854
|
+
cd: usage?.error,
|
|
6855
|
+
ce: error,
|
|
6856
|
+
cf: refreshing,
|
|
6857
|
+
cg: active,
|
|
6858
|
+
ch: active?.size,
|
|
6859
|
+
ci: authCodes,
|
|
6860
|
+
cj: confirmingRemove,
|
|
6861
|
+
ck: versionPick,
|
|
6862
|
+
cl: versionPick?.label,
|
|
6863
|
+
cm: versionPick?.current,
|
|
6864
|
+
cn: hostInput,
|
|
6865
|
+
co: addingHost,
|
|
6866
|
+
cq: hostBusy,
|
|
6867
|
+
cr: query,
|
|
6868
|
+
cs: hits,
|
|
6869
|
+
ct: hits?.length,
|
|
6870
|
+
cu: self,
|
|
6871
|
+
cv: self?.install,
|
|
6872
|
+
cw: self?.latest,
|
|
6873
|
+
cx: self?.version,
|
|
6874
|
+
cy: selfUpdating,
|
|
6875
|
+
d1: searching,
|
|
6876
|
+
d3: searchTimer.id,
|
|
6877
|
+
d5: skills,
|
|
6878
|
+
d6: skills?.global,
|
|
6879
|
+
d7: skills?.global?.length,
|
|
6880
|
+
d8: skills?.available,
|
|
6881
|
+
da: skills?.agents?.length,
|
|
6882
|
+
db: skillQuery,
|
|
6883
|
+
dc: skillHits,
|
|
6884
|
+
dd: skillHits?.length,
|
|
6885
|
+
de: skillSearching,
|
|
6886
|
+
df: confirmingSkill,
|
|
6887
|
+
dh: skillTimer.id,
|
|
6888
|
+
dj: machineOpen,
|
|
6889
|
+
dk: skillsOpen,
|
|
6890
|
+
dl: addingSkill,
|
|
6891
|
+
dn: addingTool,
|
|
6892
|
+
dp: setThemeMode,
|
|
6893
|
+
dt: applySetup,
|
|
6894
|
+
dv: syncAgents,
|
|
6895
|
+
dw: retryWhenBack,
|
|
6896
|
+
dx: loadSetup,
|
|
6897
|
+
dy: loadSelf,
|
|
6898
|
+
e0: updateSelf,
|
|
6899
|
+
e1: loadUsage,
|
|
6900
|
+
e3: refresh,
|
|
6901
|
+
e4: refreshUsage,
|
|
6902
|
+
e5: setActive,
|
|
6903
|
+
e7: run,
|
|
6904
|
+
e9: skillSeq.applied,
|
|
6905
|
+
ea: skillSeq.issued,
|
|
6906
|
+
eb: applySkills,
|
|
6907
|
+
ee: loadSkills,
|
|
6908
|
+
ef: runSkill,
|
|
6909
|
+
eg: backupBusy,
|
|
6910
|
+
eh: backupLine,
|
|
6911
|
+
ei: preflight,
|
|
6912
|
+
el: preflight?.contents?.workspaces,
|
|
6913
|
+
em: preflight?.contents?.archived,
|
|
6914
|
+
en: preflight?.contents?.tools,
|
|
6915
|
+
eo: preflight?.contents?.skills,
|
|
6916
|
+
ep: preflight?.contents?.agents,
|
|
6917
|
+
eq: preflight?.unpushed,
|
|
6918
|
+
er: preflight?.files,
|
|
6919
|
+
es: preflight?.workspaces,
|
|
6920
|
+
et: restorePreview,
|
|
6921
|
+
ev: restoreWs,
|
|
6922
|
+
ew: restoreWs?.size,
|
|
6923
|
+
ex: restoreParts,
|
|
6924
|
+
ez: restoreDone,
|
|
6925
|
+
f1: downloadManifest,
|
|
6926
|
+
f3: startExport,
|
|
6927
|
+
f4: pickRestoreFile,
|
|
6928
|
+
f5: toggleRestoreWs,
|
|
6929
|
+
f6: runRestore,
|
|
6930
|
+
f7: searchSkills,
|
|
6931
|
+
f8: changeHost,
|
|
6932
|
+
f9: runEach,
|
|
6933
|
+
fa: setPreferred,
|
|
6934
|
+
fd: saveTimer.id,
|
|
6935
|
+
ff: setInstance,
|
|
6936
|
+
fi: setEnabled,
|
|
6937
|
+
fj: search,
|
|
6938
|
+
fk: outdated,
|
|
6939
|
+
fl: tools,
|
|
6940
|
+
fn: missingInstallable,
|
|
6941
|
+
fq: outdatedIds,
|
|
6942
|
+
fs: families,
|
|
6943
|
+
fu: families.length,
|
|
6944
|
+
fw: instanceIds,
|
|
6945
|
+
fy: accountsFor,
|
|
6946
|
+
fz: strayAccountsFor,
|
|
6947
|
+
gb: restorePreview?.preview?.from?.host,
|
|
6948
|
+
gc: restorePreview?.preview?.from?.exportedAt,
|
|
6949
|
+
gd: restorePreview?.preview?.from?.version,
|
|
6950
|
+
ge: restorePreview?.preview?.workspaces,
|
|
6951
|
+
gf: restorePreview?.preview?.workspaces?.length,
|
|
6952
|
+
gg: restorePreview?.preview?.tools,
|
|
6953
|
+
gh: restorePreview?.preview?.skills,
|
|
6954
|
+
gi: restorePreview?.preview?.agents,
|
|
6955
|
+
gj: restorePreview?.preview?.hosts,
|
|
6956
|
+
gk: restorePreview?.preview?.settings,
|
|
6957
|
+
go: $setup_missing__closures,
|
|
6958
|
+
gs: $refreshing__closures,
|
|
6973
6959
|
d: _existing_scope($childScope2),
|
|
6974
|
-
|
|
6975
|
-
|
|
6976
|
-
|
|
6977
|
-
|
|
6978
|
-
|
|
6979
|
-
|
|
6980
|
-
|
|
6981
|
-
|
|
6982
|
-
|
|
6983
|
-
|
|
6960
|
+
gr: $error__closures,
|
|
6961
|
+
h8: $self_latest__closures,
|
|
6962
|
+
h9: $self_version__closures,
|
|
6963
|
+
gt: $active__closures,
|
|
6964
|
+
gl: $si__input_preferred && $input_preferred__closures,
|
|
6965
|
+
i7: $accountsFor2__closures,
|
|
6966
|
+
gv: $authCodes__closures,
|
|
6967
|
+
gw: $confirmingRemove__closures,
|
|
6968
|
+
ho: $si__input_setupChange && $refresh2__closures,
|
|
6969
|
+
hp: $run2__closures,
|
|
6984
6970
|
a6: _existing_scope($childScope10),
|
|
6985
|
-
|
|
6986
|
-
|
|
6987
|
-
|
|
6988
|
-
|
|
6989
|
-
|
|
6990
|
-
|
|
6991
|
-
|
|
6992
|
-
|
|
6993
|
-
|
|
6994
|
-
|
|
6995
|
-
|
|
6996
|
-
|
|
6997
|
-
|
|
6998
|
-
|
|
6971
|
+
hh: $skillQuery__closures,
|
|
6972
|
+
hl: $confirmingSkill__closures,
|
|
6973
|
+
hd: $skills__closures,
|
|
6974
|
+
hg: $skills_available__closures,
|
|
6975
|
+
af: _existing_scope($childScope12),
|
|
6976
|
+
h3: $query__closures,
|
|
6977
|
+
h7: $self_install__closures,
|
|
6978
|
+
ha: $selfUpdating__closures,
|
|
6979
|
+
hw: $preflight_unpushed__closures,
|
|
6980
|
+
hx: $preflight_files__closures,
|
|
6981
|
+
hz: $restoreWs__closures,
|
|
6982
|
+
ic: $preview_workspaces__closures,
|
|
6983
|
+
ii: $preview_settings__closures,
|
|
6984
|
+
i1: $restoreParts__closures
|
|
6999
6985
|
});
|
|
7000
6986
|
_resume_branch($scope0_id);
|
|
7001
6987
|
});
|
|
7002
6988
|
//#endregion
|
|
7003
6989
|
//#region src/tags/new-workspace.css.ts
|
|
7004
|
-
var content$1 = "
|
|
7005
|
-
var curBase = "
|
|
7006
|
-
var archived = "
|
|
7007
|
-
var archivedHint = "
|
|
7008
|
-
var archivedCard = "
|
|
6990
|
+
var content$1 = "_bU _bN";
|
|
6991
|
+
var curBase = "_b2 _W _V";
|
|
6992
|
+
var archived = "_b7 _bw";
|
|
6993
|
+
var archivedHint = "_b8 _V";
|
|
6994
|
+
var archivedCard = "_b9 _bB";
|
|
7009
6995
|
//#endregion
|
|
7010
6996
|
//#region src/tags/icons/icon-group.marko
|
|
7011
6997
|
var icon_group_default = _template("eb", (input) => {
|
|
@@ -7058,7 +7044,7 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
7058
7044
|
_if(() => {
|
|
7059
7045
|
{
|
|
7060
7046
|
const $scope4_id = _scope_id();
|
|
7061
|
-
_html(`<p${_attr_class("
|
|
7047
|
+
_html(`<p${_attr_class("_bH")}><span${_attr_class("_E")}></span> Loading branches…</p>`);
|
|
7062
7048
|
writeScope($scope4_id, {});
|
|
7063
7049
|
return 0;
|
|
7064
7050
|
}
|
|
@@ -7142,7 +7128,7 @@ var repo_picker_default = _template("v", (input$1) => {
|
|
|
7142
7128
|
const ssoBlock = { content: _content("v13", () => {
|
|
7143
7129
|
const $scope8_id = _scope_id();
|
|
7144
7130
|
_scope_reason();
|
|
7145
|
-
_set_serialize_reason(
|
|
7131
|
+
_set_serialize_reason(26);
|
|
7146
7132
|
const $childScope = _peek_scope_id();
|
|
7147
7133
|
sso_auth_default({
|
|
7148
7134
|
items: ssoPending,
|
|
@@ -7160,7 +7146,7 @@ var repo_picker_default = _template("v", (input$1) => {
|
|
|
7160
7146
|
_resume_branch($scope8_id);
|
|
7161
7147
|
}, $scope0_id) };
|
|
7162
7148
|
const hasBody = !!(pasted || results.length || filter && (!catalog || !pasted) || compact && ssoPending.length);
|
|
7163
|
-
_html(`<div${_attr_class([compact ? "
|
|
7149
|
+
_html(`<div${_attr_class([compact ? "_dK" : "_dU", { ["_dL"]: compact && !input$1.open }])}>`);
|
|
7164
7150
|
_if(() => {
|
|
7165
7151
|
if (!compact && ssoPending.length) {
|
|
7166
7152
|
const $scope10_id = _scope_id();
|
|
@@ -7171,7 +7157,7 @@ var repo_picker_default = _template("v", (input$1) => {
|
|
|
7171
7157
|
return 0;
|
|
7172
7158
|
}
|
|
7173
7159
|
}, $scope0_id, "b", 1, 1, 1, 0, 1);
|
|
7174
|
-
_html(`<label${_attr_class(["_Z", compact && "
|
|
7160
|
+
_html(`<label${_attr_class(["_Z", compact && "_dM"])}>`);
|
|
7175
7161
|
icon_search_default({
|
|
7176
7162
|
size: 14,
|
|
7177
7163
|
class: "_0"
|
|
@@ -7183,12 +7169,12 @@ var repo_picker_default = _template("v", (input$1) => {
|
|
|
7183
7169
|
}, "v0", $scope0_id))}${_attr_class([
|
|
7184
7170
|
compact ? "_X" : inputLg,
|
|
7185
7171
|
"_1",
|
|
7186
|
-
compact && "
|
|
7172
|
+
compact && "_dN"
|
|
7187
7173
|
])} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input$1.disabled)}>${_el_resume($scope0_id, "e")}</label>${_el_resume($scope0_id, "c", $sg__input_compact)}`);
|
|
7188
7174
|
_if(() => {
|
|
7189
7175
|
if (compact) {
|
|
7190
7176
|
const $scope1_id = _scope_id();
|
|
7191
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
7177
|
+
_html(`<button${_attr_class([iconBtnRow, "_dO"])} type=button title="Close search" aria-label="Close search"${_attr("hidden", !input$1.open)}>`);
|
|
7192
7178
|
icon_xmark_default({ size: 12 });
|
|
7193
7179
|
_html(`</button>${_el_resume($scope1_id, "a")}`);
|
|
7194
7180
|
_script($scope1_id, "v14");
|
|
@@ -7266,7 +7252,7 @@ var repo_picker_default = _template("v", (input$1) => {
|
|
|
7266
7252
|
return 0;
|
|
7267
7253
|
} else if (filter && !catalog) {
|
|
7268
7254
|
const $scope12_id = _scope_id();
|
|
7269
|
-
_html(`<p${_attr_class("
|
|
7255
|
+
_html(`<p${_attr_class("_bH")}>Loading repos…</p>`);
|
|
7270
7256
|
writeScope($scope12_id, {});
|
|
7271
7257
|
return 1;
|
|
7272
7258
|
}
|
|
@@ -7317,7 +7303,7 @@ var repo_picker_default = _template("v", (input$1) => {
|
|
|
7317
7303
|
return 0;
|
|
7318
7304
|
} else if (filter && catalog && !pasted) {
|
|
7319
7305
|
const $scope7_id = _scope_id();
|
|
7320
|
-
_html(`<p${_attr_class("
|
|
7306
|
+
_html(`<p${_attr_class("_bH")}>No repos match "<!>${_escape(filter)}${_el_resume($scope7_id, "b")}". Paste a clone URL to add any repo.</p>`);
|
|
7321
7307
|
writeScope($scope7_id, {});
|
|
7322
7308
|
return 1;
|
|
7323
7309
|
}
|
|
@@ -7482,8 +7468,8 @@ function parseInvite(text) {
|
|
|
7482
7468
|
}
|
|
7483
7469
|
//#endregion
|
|
7484
7470
|
//#region src/tags/join-dialog.css.ts
|
|
7485
|
-
var dlg = "
|
|
7486
|
-
var hint = "
|
|
7471
|
+
var dlg = "_eg _ec";
|
|
7472
|
+
var hint = "_eh _V";
|
|
7487
7473
|
//#endregion
|
|
7488
7474
|
//#region src/tags/join-dialog.marko
|
|
7489
7475
|
var api$4;
|
|
@@ -7616,26 +7602,26 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
7616
7602
|
content: _content("o12", () => {
|
|
7617
7603
|
_scope_reason();
|
|
7618
7604
|
const $scope1_id = _scope_id();
|
|
7619
|
-
_html(`<h2${_attr_class("
|
|
7605
|
+
_html(`<h2${_attr_class("_ed")}${_attr("id", titleId)}>Join a workspace</h2><p${_attr_class(hint)}>Paste an invite: the same repos, on your own lane of their branch.</p><textarea${_attr_class([
|
|
7620
7606
|
"_X",
|
|
7621
7607
|
"_w",
|
|
7622
|
-
"
|
|
7608
|
+
"_ej"
|
|
7623
7609
|
])} placeholder="{ "name": …, "branch": …, "repos": ["owner/name", …] }" aria-label="Workspace invite" rows=6 autocomplete=off spellcheck=false${_attr("disabled", busy)} autofocus>${_attr_textarea_value($scope1_id, "c", invite, setInvite)}</textarea>${_el_resume($scope1_id, "c")}`);
|
|
7624
7610
|
_if(() => {
|
|
7625
7611
|
if (parsed.error) {
|
|
7626
7612
|
const $scope8_id = _scope_id();
|
|
7627
|
-
_html(`<p${_attr_class([hint, "
|
|
7613
|
+
_html(`<p${_attr_class([hint, "_ei"])}>${_escape(parsed.error)}${_el_resume($scope8_id, "b")}</p>`);
|
|
7628
7614
|
_subscribe($parsed_error__closures, writeScope($scope8_id, { Cae: 1 }));
|
|
7629
7615
|
return 0;
|
|
7630
7616
|
} else if (parsed.ok) {
|
|
7631
7617
|
const $scope3_id = _scope_id();
|
|
7632
|
-
_html(`<ul${_attr_class("
|
|
7618
|
+
_html(`<ul${_attr_class("_ek")}>`);
|
|
7633
7619
|
_for_of(parsed.ok.repos, (fullName) => {
|
|
7634
7620
|
const $scope9_id = _scope_id();
|
|
7635
|
-
_html(`<li${_attr_class("
|
|
7621
|
+
_html(`<li${_attr_class("_el")}><span${_attr_class("_em")}>${_escape(repoLabel(fullName))}${_el_resume($scope9_id, "c")}</span></li>`);
|
|
7636
7622
|
writeScope($scope9_id, {});
|
|
7637
7623
|
}, (r) => r, $scope3_id, "a", 1, 1, 1, "</ul>", 1);
|
|
7638
|
-
_html(`<p${_attr_class(hint)}>Your own lane of <span${_attr_class("_w")}>${_escape(parsed.ok.branch)}${_el_resume($scope3_id, "d")}</span> in each; PRs target theirs.</p><label${_attr_class("
|
|
7624
|
+
_html(`<p${_attr_class(hint)}>Your own lane of <span${_attr_class("_w")}>${_escape(parsed.ok.branch)}${_el_resume($scope3_id, "d")}</span> in each; PRs target theirs.</p><label${_attr_class("_en")}><span${_attr_class("_bK")}>Name</span><input${_attr_input_value($scope3_id, "g", name, _resume((_new_name) => {
|
|
7639
7625
|
name = _new_name;
|
|
7640
7626
|
}, "o1", $scope3_id))}${_attr_class("_X")}${_attr("placeholder", parsed.ok.name)}${_attr("disabled", busy)}>${_el_resume($scope3_id, "g")}</label>`);
|
|
7641
7627
|
_script($scope3_id, "o8");
|
|
@@ -7672,10 +7658,10 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
7672
7658
|
_if(() => {
|
|
7673
7659
|
if (busy && steps$2.length) {
|
|
7674
7660
|
const $scope6_id = _scope_id();
|
|
7675
|
-
_html(`<ul${_attr_class("
|
|
7661
|
+
_html(`<ul${_attr_class("_eo")}>`);
|
|
7676
7662
|
_for_of(steps$2, (step$2, i) => {
|
|
7677
7663
|
const $scope7_id = _scope_id();
|
|
7678
|
-
_html(`<li${_attr_class(["
|
|
7664
|
+
_html(`<li${_attr_class(["_eq", { ["_ep"]: i === steps$2.length - 1 }])}>`);
|
|
7679
7665
|
_if(() => {
|
|
7680
7666
|
if (i === steps$2.length - 1) {
|
|
7681
7667
|
const $scope10_id = _scope_id();
|
|
@@ -7684,7 +7670,7 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
7684
7670
|
return 0;
|
|
7685
7671
|
} else {
|
|
7686
7672
|
const $scope11_id = _scope_id();
|
|
7687
|
-
_html(`<span${_attr_class("
|
|
7673
|
+
_html(`<span${_attr_class("_er")}>`);
|
|
7688
7674
|
icon_check_default({ size: 14 });
|
|
7689
7675
|
_html("</span>");
|
|
7690
7676
|
writeScope($scope11_id, {});
|
|
@@ -7839,7 +7825,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
7839
7825
|
}
|
|
7840
7826
|
}, "s6", $scope0_id);
|
|
7841
7827
|
const titleId = _id();
|
|
7842
|
-
_html(`<div${_attr_class("
|
|
7828
|
+
_html(`<div${_attr_class("_bL")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bM")}><div${_attr_class(content$1)}>`);
|
|
7843
7829
|
_set_serialize_reason({
|
|
7844
7830
|
0: _serialize_guard($scope0_reason, 2),
|
|
7845
7831
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -7888,23 +7874,23 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
7888
7874
|
return 0;
|
|
7889
7875
|
}
|
|
7890
7876
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
7891
|
-
_html(`<label${_attr_class("
|
|
7877
|
+
_html(`<label${_attr_class("_bX")}><span${_attr_class("_bK")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
|
|
7892
7878
|
name = _new_name;
|
|
7893
|
-
}, "s0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class("
|
|
7879
|
+
}, "s0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class("_bw")}><div${_attr_class("_bY")}><h2${_attr_class("_bK")}>Repos</h2><button${_attr_class(iconBtnRow)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
7894
7880
|
_set_serialize_reason(1);
|
|
7895
7881
|
const $childScope2 = _peek_scope_id();
|
|
7896
7882
|
icon_refresh_default({
|
|
7897
7883
|
size: 14,
|
|
7898
7884
|
class: catalogRefreshing && "_D"
|
|
7899
7885
|
});
|
|
7900
|
-
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("
|
|
7886
|
+
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("_bZ")}>`);
|
|
7901
7887
|
_for_of(selected, (repo) => {
|
|
7902
7888
|
const $scope4_id = _scope_id();
|
|
7903
|
-
_html(`<li><div${_attr_class(row)}><span${_attr_class("
|
|
7889
|
+
_html(`<li><div${_attr_class(row)}><span${_attr_class("_b0")}>${_escape(repoLabel(repo.fullName))}${_el_resume($scope4_id, "c")}</span>`);
|
|
7904
7890
|
_if(() => {
|
|
7905
7891
|
if (repo.fork !== void 0) {
|
|
7906
7892
|
const $scope5_id = _scope_id();
|
|
7907
|
-
_html(`<button${_attr_class(["
|
|
7893
|
+
_html(`<button${_attr_class(["_b3", { ["_b1"]: repo.fork }])}${repo.fork ? _attr("title", `${repo.fullName} will be forked to your account; click to clone as-is instead`) : _attr("title", `Fork ${repo.fullName} to your account and clone the fork`)} aria-pressed=${repo.fork ? "true" : "false"}${_attr("disabled", busy)}>`);
|
|
7908
7894
|
_if(() => {
|
|
7909
7895
|
if (repo.fork) {
|
|
7910
7896
|
const $scope14_id = _scope_id();
|
|
@@ -7927,7 +7913,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
7927
7913
|
_html(`<button${_attr_class([
|
|
7928
7914
|
curBase,
|
|
7929
7915
|
"_w",
|
|
7930
|
-
{ ["
|
|
7916
|
+
{ ["_b1"]: branchesFor === repo.fullName }
|
|
7931
7917
|
])}${_attr("title", `Change base branch for ${repo.fullName}`)}${_attr("aria-label", `Change base branch for ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
7932
7918
|
icon_branch_default({ size: 12 });
|
|
7933
7919
|
_html(`<!>${repo.baseBranch ? `${_escape(`${_to_text(" ")}`)}${_escape(`${_to_text(repo.baseBranch)}`)}` : ""}${_el_resume($scope4_id, "g")}</button>${_el_resume($scope4_id, "e")}<button${_attr_class([iconBtnXs, "_6"])}${_attr("title", `Remove ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
@@ -7963,7 +7949,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
7963
7949
|
_if(() => {
|
|
7964
7950
|
if (!selected.length) {
|
|
7965
7951
|
const $scope16_id = _scope_id();
|
|
7966
|
-
_html(`<li${_attr_class("
|
|
7952
|
+
_html(`<li${_attr_class("_bH")}>No repos yet. Search below to add one, or create it empty.</li>`);
|
|
7967
7953
|
writeScope($scope16_id, {});
|
|
7968
7954
|
return 0;
|
|
7969
7955
|
}
|
|
@@ -7988,10 +7974,10 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
7988
7974
|
_if(() => {
|
|
7989
7975
|
if (busy && steps.length) {
|
|
7990
7976
|
const $scope11_id = _scope_id();
|
|
7991
|
-
_html(`<ul${_attr_class("
|
|
7977
|
+
_html(`<ul${_attr_class("_b4")}>`);
|
|
7992
7978
|
_for_of(steps, (step, i) => {
|
|
7993
7979
|
const $scope12_id = _scope_id();
|
|
7994
|
-
_html(`<li${_attr_class(["
|
|
7980
|
+
_html(`<li${_attr_class(["_b_", { ["_b5"]: i === steps.length - 1 }])}>`);
|
|
7995
7981
|
_if(() => {
|
|
7996
7982
|
if (i === steps.length - 1) {
|
|
7997
7983
|
const $scope17_id = _scope_id();
|
|
@@ -8000,7 +7986,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
8000
7986
|
return 0;
|
|
8001
7987
|
} else {
|
|
8002
7988
|
const $scope18_id = _scope_id();
|
|
8003
|
-
_html(`<span${_attr_class("
|
|
7989
|
+
_html(`<span${_attr_class("_b6")}>`);
|
|
8004
7990
|
icon_check_default({ size: 14 });
|
|
8005
7991
|
_html("</span>");
|
|
8006
7992
|
writeScope($scope18_id, {});
|
|
@@ -8014,7 +8000,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
8014
8000
|
return 0;
|
|
8015
8001
|
}
|
|
8016
8002
|
}, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
8017
|
-
_html(`<div${_attr_class("
|
|
8003
|
+
_html(`<div${_attr_class("_bV")}>`);
|
|
8018
8004
|
_if(() => {
|
|
8019
8005
|
if (input.onExit || busy) {
|
|
8020
8006
|
const $scope1_id = _scope_id();
|
|
@@ -8027,15 +8013,15 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
8027
8013
|
_html(`<button type=button${_attr_class([
|
|
8028
8014
|
btnLg,
|
|
8029
8015
|
"_p",
|
|
8030
|
-
"
|
|
8016
|
+
"_bW"
|
|
8031
8017
|
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${busy ? "Creating…" : "Create workspace"}${_el_resume($scope0_id, "w")}</button>${_el_resume($scope0_id, "v")}</div>`);
|
|
8032
8018
|
_if(() => {
|
|
8033
8019
|
if (archived$1.length) {
|
|
8034
8020
|
const $scope6_id = _scope_id();
|
|
8035
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("
|
|
8021
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_bY")}><h2${_attr_class("_bK")}>Archived</h2><span${_attr_class(sectionCount)}>${_escape(archived$1.length)}${_el_resume($scope6_id, "e", $sg__input_workspaces)}</span></div><p${_attr_class(archivedHint)}>Restore an archived workspace instead of creating a new one.</p><ul${_attr_class("_bz")}>`);
|
|
8036
8022
|
_for_of(archived$1, (ws) => {
|
|
8037
8023
|
const $scope7_id = _scope_id();
|
|
8038
|
-
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("
|
|
8024
|
+
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("_bC")}><span${_attr_class("_bD")}>${_escape(ws.name)}${_el_resume($scope7_id, "d", $sg__input_workspaces)}</span><span${_attr_class([metaTrunc, "_w"])}${_attr("title", ws.display_path || ws.path)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope7_id, "f", $sg__input_workspaces)}</span>${_el_resume($scope7_id, "e", $sg__input_workspaces)}</div><button type=button${_attr_class(btnLg)}${_attr("disabled", busy || !!restoring)}>`);
|
|
8039
8025
|
_if(() => {
|
|
8040
8026
|
if (restoring === ws.id) {
|
|
8041
8027
|
const $scope19_id = _scope_id();
|
|
@@ -8159,9 +8145,9 @@ function vapidKey(base64) {
|
|
|
8159
8145
|
const raw = atob(padded.replace(/-/g, "+").replace(/_/g, "/"));
|
|
8160
8146
|
return Uint8Array.from(raw, (c) => c.charCodeAt(0));
|
|
8161
8147
|
}
|
|
8162
|
-
var iconBtn = "
|
|
8163
|
-
var settingsDot = "
|
|
8164
|
-
var navToggle = "
|
|
8148
|
+
var iconBtn = "_fh _j";
|
|
8149
|
+
var settingsDot = "_fi _ba";
|
|
8150
|
+
var navToggle = "_fm _j";
|
|
8165
8151
|
_template("Q", (input) => {
|
|
8166
8152
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
8167
8153
|
const $scope0_id = _scope_id();
|
|
@@ -8204,16 +8190,16 @@ var ARM_MS = 3500;
|
|
|
8204
8190
|
function disarmLater(fn) {
|
|
8205
8191
|
return setTimeout(fn, ARM_MS);
|
|
8206
8192
|
}
|
|
8207
|
-
var railBtn = "
|
|
8208
|
-
var wsBtn = "
|
|
8209
|
-
var rowIcon = "
|
|
8210
|
-
var close = "
|
|
8211
|
-
var sessRename$1 = "
|
|
8212
|
-
var sessBtn$1 = "
|
|
8193
|
+
var railBtn = "_h1 _j";
|
|
8194
|
+
var wsBtn = "_h6 _G";
|
|
8195
|
+
var rowIcon = "_h9 _2 _j";
|
|
8196
|
+
var close = "_h_ _5 _j _6";
|
|
8197
|
+
var sessRename$1 = "_il _H";
|
|
8198
|
+
var sessBtn$1 = "_in _G";
|
|
8213
8199
|
//#endregion
|
|
8214
8200
|
//#region src/styles/session-pop.css.ts
|
|
8215
|
-
var sessionPop = "
|
|
8216
|
-
var sessionPopBtn = "
|
|
8201
|
+
var sessionPop = "_hq _8";
|
|
8202
|
+
var sessionPopBtn = "_hr _G";
|
|
8217
8203
|
//#endregion
|
|
8218
8204
|
//#region src/client/status.ts
|
|
8219
8205
|
/** Workspace activity dot from its polled status counts. */
|
|
@@ -8280,22 +8266,22 @@ var usage_pcts_default = _template("H", (input) => {
|
|
|
8280
8266
|
if (windows.length) {
|
|
8281
8267
|
const $scope1_id = _scope_id();
|
|
8282
8268
|
_html(`<span${_attr_class([
|
|
8283
|
-
"
|
|
8269
|
+
"_gw",
|
|
8284
8270
|
input.class,
|
|
8285
|
-
{ ["
|
|
8271
|
+
{ ["_gx"]: agent.stale_seconds != null }
|
|
8286
8272
|
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
8287
8273
|
_for_of(windows, (win$1, i) => {
|
|
8288
8274
|
const $scope2_id = _scope_id();
|
|
8289
|
-
_html(`<span${_attr_class("
|
|
8275
|
+
_html(`<span${_attr_class("_gy")}>`);
|
|
8290
8276
|
_if(() => {
|
|
8291
8277
|
if (i) {
|
|
8292
8278
|
const $scope3_id = _scope_id();
|
|
8293
|
-
_html(`<span${_attr_class("
|
|
8279
|
+
_html(`<span${_attr_class("_gB")} aria-hidden=true>·</span>`);
|
|
8294
8280
|
$si__input_agent && writeScope($scope3_id, {});
|
|
8295
8281
|
return 0;
|
|
8296
8282
|
}
|
|
8297
8283
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
8298
|
-
_html(`<span${_attr_class("
|
|
8284
|
+
_html(`<span${_attr_class("_gz")}>${_escape(win$1.window)}${_el_resume($scope2_id, "d", $sg__input_agent)}</span><span${_attr_class(["_gA", win$1.used_percent >= 90 ? "_e7" : win$1.used_percent >= 70 ? "_e6" : win$1.used_percent >= 40 ? "_e5" : "_e4"])}>${_escape(pctText(win$1.used_percent))}${_el_resume($scope2_id, "f", $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
8299
8285
|
$si__input_agent && writeScope($scope2_id, {});
|
|
8300
8286
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
8301
8287
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -8326,12 +8312,12 @@ var icon_edit_default = _template("$", (input) => {
|
|
|
8326
8312
|
});
|
|
8327
8313
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
8328
8314
|
});
|
|
8329
|
-
var prChip = "
|
|
8330
|
-
var portChip = "
|
|
8315
|
+
var prChip = "_iy _s _ix";
|
|
8316
|
+
var portChip = "_iz _s _ix";
|
|
8331
8317
|
var prState = {
|
|
8332
|
-
open: "
|
|
8333
|
-
merged: "
|
|
8334
|
-
closed: "
|
|
8318
|
+
open: "_iD",
|
|
8319
|
+
merged: "_iE",
|
|
8320
|
+
closed: "_iF"
|
|
8335
8321
|
};
|
|
8336
8322
|
//#endregion
|
|
8337
8323
|
//#region src/tags/side-nav-chips.marko
|
|
@@ -8403,7 +8389,7 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
8403
8389
|
const name = repo.full_name.split("/").at(-1);
|
|
8404
8390
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel(repo.full_name) : name;
|
|
8405
8391
|
}, "y4", $scope1_id);
|
|
8406
|
-
_html(`<div${_attr_class("
|
|
8392
|
+
_html(`<div${_attr_class("_iw")}>`);
|
|
8407
8393
|
_for_of(repos, (repo) => {
|
|
8408
8394
|
const $scope2_id = _scope_id();
|
|
8409
8395
|
const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -8419,11 +8405,11 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
8419
8405
|
[prState.merged]: pr.state === "MERGED",
|
|
8420
8406
|
[prState.closed]: pr.state === "CLOSED"
|
|
8421
8407
|
}
|
|
8422
|
-
])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["
|
|
8408
|
+
])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["_iA", { ["_iH"]: !open }])}${_attr("href", pr.url)} target=_blank rel=noopener>${_escape(repoLabel$1(repo))}${_el_resume($scope3_id, "c")}#<!>${_escape(pr.number)}${_el_resume($scope3_id, "d")}</a>${_el_resume($scope3_id, "b")}`);
|
|
8423
8409
|
_if(() => {
|
|
8424
8410
|
if (open) {
|
|
8425
8411
|
const $scope4_id = _scope_id();
|
|
8426
|
-
_html(`<a${_attr_class(["
|
|
8412
|
+
_html(`<a${_attr_class(["_iA", "_iB"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr.number}`)}`)}${_attr("title", `Review #${pr.number} changes`)}>`);
|
|
8427
8413
|
icon_diff_default({ size: 12 });
|
|
8428
8414
|
_html(`</a>${_el_resume($scope4_id, "a")}`);
|
|
8429
8415
|
_subscribe($for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, {})));
|
|
@@ -8431,9 +8417,9 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
8431
8417
|
} else {
|
|
8432
8418
|
const $scope6_id = _scope_id();
|
|
8433
8419
|
_html(`<button type=button${_attr_class([
|
|
8420
|
+
"_iA",
|
|
8434
8421
|
"_iB",
|
|
8435
|
-
"_iC"
|
|
8436
|
-
"_iD"
|
|
8422
|
+
"_iC"
|
|
8437
8423
|
])}${_attr("title", `Dismiss #${pr.number}`)}>`);
|
|
8438
8424
|
icon_xmark_default({ size: 12 });
|
|
8439
8425
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
@@ -8457,10 +8443,10 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
8457
8443
|
}, "full_name", $scope1_id, "b");
|
|
8458
8444
|
_for_of(ports, (p) => {
|
|
8459
8445
|
const $scope5_id = _scope_id();
|
|
8460
|
-
_html(`<span${_attr_class(["_s", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["
|
|
8446
|
+
_html(`<span${_attr_class(["_s", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["_iA", "_iG"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${p.port}`)}>:<!>${_escape(p.port)}${_el_resume($scope5_id, "c")}</button>${_el_resume($scope5_id, "b")}<button type=button${_attr_class([
|
|
8447
|
+
"_iA",
|
|
8461
8448
|
"_iB",
|
|
8462
8449
|
"_iC",
|
|
8463
|
-
"_iD",
|
|
8464
8450
|
{ ["_q"]: armedPid === p.pid }
|
|
8465
8451
|
])}${armedPid === p.pid ? " title=Kill?" : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
|
|
8466
8452
|
icon_xmark_default({ size: 12 });
|
|
@@ -8560,7 +8546,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8560
8546
|
_if(() => {
|
|
8561
8547
|
if (input.rail) {
|
|
8562
8548
|
const $scope2_id = _scope_id();
|
|
8563
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
8549
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_hZ"]: input.current }])}${ws$1.pending ? _attr("title", `${ws$1.name} — restoring`) : _attr("title", ws$1.name)}>${input.index === void 0 ? "·" : _escape(input.index + 1)}${_el_resume($scope2_id, "b", _serialize_guard($scope0_reason, 26))}<span${_attr_class([
|
|
8564
8550
|
"_y",
|
|
8565
8551
|
phase[dot],
|
|
8566
8552
|
"_ba"
|
|
@@ -8570,30 +8556,30 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8570
8556
|
} else if (ws$1.pending) {
|
|
8571
8557
|
const $scope3_id = _scope_id();
|
|
8572
8558
|
_html(`<section${_attr_class([
|
|
8573
|
-
"
|
|
8574
|
-
"
|
|
8559
|
+
"_h3",
|
|
8560
|
+
"_ip",
|
|
8575
8561
|
{
|
|
8576
|
-
["
|
|
8577
|
-
["
|
|
8562
|
+
["_h4"]: input.railPop,
|
|
8563
|
+
["_h2"]: input.page
|
|
8578
8564
|
}
|
|
8579
|
-
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("
|
|
8565
|
+
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("_h5")}><div${_attr_class(wsBtn)}>`);
|
|
8580
8566
|
_if(() => {
|
|
8581
8567
|
if (ws$1.pending_error) {
|
|
8582
8568
|
const $scope15_id = _scope_id();
|
|
8583
8569
|
icon_warning_default({
|
|
8584
8570
|
size: 12,
|
|
8585
|
-
class: "
|
|
8571
|
+
class: "_ir"
|
|
8586
8572
|
});
|
|
8587
8573
|
$si__input_workspaces__OR__input_workspaceId && writeScope($scope15_id, {});
|
|
8588
8574
|
return 0;
|
|
8589
8575
|
} else {
|
|
8590
8576
|
const $scope16_id = _scope_id();
|
|
8591
|
-
_html(`<span${_attr_class(["_E", "
|
|
8577
|
+
_html(`<span${_attr_class(["_E", "_iq"])}></span>`);
|
|
8592
8578
|
$si__input_workspaces__OR__input_workspaceId && writeScope($scope16_id, {});
|
|
8593
8579
|
return 1;
|
|
8594
8580
|
}
|
|
8595
8581
|
}, $scope3_id, "d", $sg__input_workspaces__OR__input_workspaceId, $sg__input_workspaces__OR__input_workspaceId, $sg__input_workspaces__OR__input_workspaceId, 0, 1);
|
|
8596
|
-
_html(`<span${_attr_class("
|
|
8582
|
+
_html(`<span${_attr_class("_ib")}><span${_attr_class("_ic")}>${_escape(ws$1.name)}${_el_resume($scope3_id, "g", $sg__input_workspaces__OR__input_workspaceId)}</span><span${_attr_class("_is")}${_attr("title", ws$1.pending_error || restoreLine)}>${ws$1.pending_error ? `Restore failed: ${_escape(`${ws$1.pending_error}`)}` : _escape("Restoring…")}${_el_resume($scope3_id, "i")}</span>${_el_resume($scope3_id, "h")}</span></div></div></section>${_el_resume($scope3_id, "a", _serialize_guard($scope0_reason, 10))}`);
|
|
8597
8583
|
_subscribe($restoreLine__closures, _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_pending_error__closures, _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_name__closures, _subscribe($si__input_railPop && $input_railPop__closures, _subscribe($si__input_page && $input_page__closures, writeScope($scope3_id, {
|
|
8598
8584
|
_: _scope_with_id($scope1_id),
|
|
8599
8585
|
Cb0: $si__input_workspaces__OR__input_workspaceId && 1
|
|
@@ -8603,15 +8589,15 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8603
8589
|
const $scope4_id = _scope_id();
|
|
8604
8590
|
const sessions$1 = input.sessions || [];
|
|
8605
8591
|
const phaseLabel = dot === "working" ? "Working" : dot === "waiting" ? "Needs input" : dot === "idle" ? "Idle" : "Not running";
|
|
8606
|
-
_html(`<section${_attr_class(["
|
|
8607
|
-
["
|
|
8592
|
+
_html(`<section${_attr_class(["_h3", {
|
|
8593
|
+
["_hZ"]: input.current,
|
|
8608
8594
|
["_bb"]: input.current,
|
|
8609
|
-
["
|
|
8610
|
-
["
|
|
8611
|
-
}])}><div${_attr_class("
|
|
8595
|
+
["_h4"]: input.railPop,
|
|
8596
|
+
["_h2"]: input.page
|
|
8597
|
+
}])}><div${_attr_class("_h5")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class(wsBtn)}><span${_attr_class([
|
|
8612
8598
|
"_y",
|
|
8613
8599
|
phase[dot],
|
|
8614
|
-
"
|
|
8600
|
+
"_ih"
|
|
8615
8601
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope4_id, "d", $sg__input_workspaceId__OR__input_status)}`);
|
|
8616
8602
|
_if(() => {
|
|
8617
8603
|
if (sessions$1.length === 1) {
|
|
@@ -8624,7 +8610,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8624
8610
|
icon_agent_default({
|
|
8625
8611
|
agent: activeAgent(sessions$1[0]),
|
|
8626
8612
|
size: 12,
|
|
8627
|
-
class: "
|
|
8613
|
+
class: "_ia"
|
|
8628
8614
|
});
|
|
8629
8615
|
$si__input_sessions && writeScope($scope17_id, {
|
|
8630
8616
|
_: _scope_with_id($scope4_id),
|
|
@@ -8634,11 +8620,11 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8634
8620
|
}
|
|
8635
8621
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions);
|
|
8636
8622
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length > 1 ? `${sessions$1.length} sessions` : "";
|
|
8637
|
-
_html(`<span${_attr_class("
|
|
8623
|
+
_html(`<span${_attr_class("_ib")}><span${_attr_class("_ic")}>${_escape(ws$1.name)}${_el_resume($scope4_id, "h", $sg__input_workspaces__OR__input_workspaceId)}</span>`);
|
|
8638
8624
|
_if(() => {
|
|
8639
8625
|
if (input.page && metaText) {
|
|
8640
8626
|
const $scope18_id = _scope_id();
|
|
8641
|
-
_html(`<span${_attr_class("
|
|
8627
|
+
_html(`<span${_attr_class("_if")}>${_escape(metaText)}${_el_resume($scope18_id, "b", _serialize_guard($scope0_reason, 6))}</span>`);
|
|
8642
8628
|
$si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && writeScope($scope18_id, { _: _serialize_if($scope0_reason, 6) && _scope_with_id($scope4_id) });
|
|
8643
8629
|
return 0;
|
|
8644
8630
|
}
|
|
@@ -8651,7 +8637,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8651
8637
|
"_L",
|
|
8652
8638
|
"_U",
|
|
8653
8639
|
"_N",
|
|
8654
|
-
"
|
|
8640
|
+
"_ig"
|
|
8655
8641
|
])}>${input.current ? "Open" : ""}${_el_resume($scope5_id, "b", _serialize_guard($scope0_reason, 21))}</span>`);
|
|
8656
8642
|
$si__input_current__OR__input_page__OR__input_rail__OR__input_workspaces__OR__input_workspaceId && _subscribe($si__input_current && $input_current__closures, writeScope($scope5_id, {
|
|
8657
8643
|
_: _scope_with_id($scope4_id),
|
|
@@ -8664,7 +8650,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8664
8650
|
_if(() => {
|
|
8665
8651
|
if (!input.page) {
|
|
8666
8652
|
const $scope6_id = _scope_id();
|
|
8667
|
-
_html(`<div${_attr_class("
|
|
8653
|
+
_html(`<div${_attr_class("_h7")}>`);
|
|
8668
8654
|
_if(() => {
|
|
8669
8655
|
if (input.onNewSession) {
|
|
8670
8656
|
const $scope7_id = _scope_id();
|
|
@@ -8713,7 +8699,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8713
8699
|
return 0;
|
|
8714
8700
|
}
|
|
8715
8701
|
}, $scope6_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
8716
|
-
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["
|
|
8702
|
+
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_h0"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
|
|
8717
8703
|
icon_manage_default({ size: 12 });
|
|
8718
8704
|
_html(`</a>${_el_resume($scope6_id, "d", _serialize_guard($scope0_reason, 7))}</div>`);
|
|
8719
8705
|
_subscribe($si__input_workspaces__OR__input_workspaceId && $ws_id__closures, _subscribe($si__input_managing && $input_managing__closures, _subscribe($si__input_onReview && $input_onReview__closures, _subscribe($si__input_onNewSession && $input_onNewSession__closures, writeScope($scope6_id, {
|
|
@@ -8723,7 +8709,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8723
8709
|
return 0;
|
|
8724
8710
|
}
|
|
8725
8711
|
}, $scope4_id, "k", $sg__input_page, $sg__input_page, 1, 0, 1);
|
|
8726
|
-
_html(`</div><div${_attr_class("
|
|
8712
|
+
_html(`</div><div${_attr_class("_im")}>`);
|
|
8727
8713
|
_if(() => {
|
|
8728
8714
|
if (sessions$1.length === 1 && openPlan) {
|
|
8729
8715
|
const $scope12_id = _scope_id();
|
|
@@ -8731,7 +8717,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8731
8717
|
const $childScope3 = _peek_scope_id();
|
|
8732
8718
|
usage_pcts_default({
|
|
8733
8719
|
agent: openPlan,
|
|
8734
|
-
class: "
|
|
8720
|
+
class: "_id"
|
|
8735
8721
|
});
|
|
8736
8722
|
_subscribe($openPlan__closures, writeScope($scope12_id, {
|
|
8737
8723
|
a: _existing_scope($childScope3),
|
|
@@ -8742,14 +8728,14 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8742
8728
|
}, $scope4_id, "m");
|
|
8743
8729
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
8744
8730
|
const $scope9_id = _scope_id();
|
|
8745
|
-
_html(`<div${_attr_class(["
|
|
8731
|
+
_html(`<div${_attr_class(["_h8", { ["_hZ"]: s.id === input.currentTab }])}>`);
|
|
8746
8732
|
_if(() => {
|
|
8747
8733
|
if (renamingId === s.id) {
|
|
8748
8734
|
const $scope11_id = _scope_id();
|
|
8749
8735
|
_html(`<span${_attr_class([
|
|
8750
8736
|
"_y",
|
|
8751
8737
|
phase[sessionPhase(s.state)],
|
|
8752
|
-
"
|
|
8738
|
+
"_ik"
|
|
8753
8739
|
])}></span>${_el_resume($scope11_id, "a", $sg__input_sessions)}`);
|
|
8754
8740
|
_set_serialize_reason({
|
|
8755
8741
|
1: $sg__input_sessions,
|
|
@@ -8759,7 +8745,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8759
8745
|
icon_agent_default({
|
|
8760
8746
|
agent: activeAgent(s),
|
|
8761
8747
|
size: 12,
|
|
8762
|
-
class: "
|
|
8748
|
+
class: "_io"
|
|
8763
8749
|
});
|
|
8764
8750
|
_html(`<input${_attr_input_value($scope11_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
8765
8751
|
renameValue = _new_renameValue;
|
|
@@ -8778,9 +8764,9 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8778
8764
|
icon_agent_default({
|
|
8779
8765
|
agent: activeAgent(s),
|
|
8780
8766
|
size: 12,
|
|
8781
|
-
class: "
|
|
8767
|
+
class: "_io"
|
|
8782
8768
|
});
|
|
8783
|
-
_html(`<span${_attr_class("
|
|
8769
|
+
_html(`<span${_attr_class("_ii")}>${_escape(s.title || activeAgent(s))}${_el_resume($scope10_id, "e", $sg__input_sessions)}</span></a>${_el_resume($scope10_id, "a", _serialize_guard($scope0_reason, 5))}<div${_attr_class("_ij")}><button${_attr_class(rowIcon)} title="Rename session">`);
|
|
8784
8770
|
icon_edit_default({ size: 12 });
|
|
8785
8771
|
_html(`</button>${_el_resume($scope10_id, "g")}<button${_attr_class([close, { ["_q"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
|
|
8786
8772
|
icon_xmark_default({ size: 12 });
|
|
@@ -8792,7 +8778,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8792
8778
|
const $childScope6 = _peek_scope_id();
|
|
8793
8779
|
usage_pcts_default({
|
|
8794
8780
|
agent: openPlan,
|
|
8795
|
-
class: "
|
|
8781
|
+
class: "_ie"
|
|
8796
8782
|
});
|
|
8797
8783
|
_subscribe($openPlan__closures, writeScope($scope13_id, {
|
|
8798
8784
|
a: _existing_scope($childScope6),
|
|
@@ -9008,28 +8994,28 @@ var side_nav_default = _template("A", (input) => {
|
|
|
9008
8994
|
const listIds = isPage ? [ws.id, ...otherIds] : itemIds;
|
|
9009
8995
|
_html(`<script${_attr_nonce()}>${_escape_script(`
|
|
9010
8996
|
${_to_text(`if (matchMedia("(max-width: 899px)").matches) document.documentElement.classList.add("work-no-rail");`)};
|
|
9011
|
-
`)}<\/script><aside${_attr_class(["
|
|
9012
|
-
["
|
|
9013
|
-
["
|
|
8997
|
+
`)}<\/script><aside${_attr_class(["_fl", {
|
|
8998
|
+
["_fj"]: !navOpen,
|
|
8999
|
+
["_fk"]: isPage
|
|
9014
9000
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
9015
9001
|
_if(() => {
|
|
9016
9002
|
if (isPage) {
|
|
9017
9003
|
const $scope1_id = _scope_id();
|
|
9018
|
-
_html(`<header${_attr_class("
|
|
9004
|
+
_html(`<header${_attr_class("_fo")}><div${_attr_class("_fx")}>`);
|
|
9019
9005
|
_if(() => {
|
|
9020
9006
|
if (input.instanceName) {
|
|
9021
9007
|
const $scope2_id = _scope_id();
|
|
9022
|
-
_html(`<div${_attr_class("
|
|
9008
|
+
_html(`<div${_attr_class("_fu")} title="This work server (Settings → Appearance)"><img${_attr_class("_fv")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_fw")}>${_escape(input.instanceName)}${_el_resume($scope2_id, "d", $sg__input_instanceName)}</span></div>`);
|
|
9023
9009
|
_subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
|
|
9024
9010
|
return 0;
|
|
9025
9011
|
}
|
|
9026
9012
|
}, $scope1_id, "c", $sg__input_instanceName, $sg__input_instanceName, 1, 0, 1);
|
|
9027
|
-
_html(`<h1${_attr_class("
|
|
9013
|
+
_html(`<h1${_attr_class("_fp")}>Workspaces</h1></div><div${_attr_class("_fq")}>`);
|
|
9028
9014
|
_if(() => {}, $scope1_id, "f", 1, 1, 1, 0, 1);
|
|
9029
9015
|
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
|
|
9030
9016
|
iconBtn,
|
|
9031
|
-
"
|
|
9032
|
-
{ ["
|
|
9017
|
+
"_fr",
|
|
9018
|
+
{ ["_fg"]: view === "settings" }
|
|
9033
9019
|
])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
9034
9020
|
icon_settings_default({ size: 16 });
|
|
9035
9021
|
_if(() => {
|
|
@@ -9048,18 +9034,18 @@ var side_nav_default = _template("A", (input) => {
|
|
|
9048
9034
|
_if(() => {
|
|
9049
9035
|
if (!isPage && input.instanceName) {
|
|
9050
9036
|
const $scope3_id = _scope_id();
|
|
9051
|
-
_html(`<div${_attr_class("
|
|
9037
|
+
_html(`<div${_attr_class("_fu")} title="This work server (Settings → Appearance)"><img${_attr_class("_fv")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope3_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_fw")}>${_escape(input.instanceName)}${_el_resume($scope3_id, "d", $sg__input_instanceName)}</span></div>`);
|
|
9052
9038
|
writeScope($scope3_id, {});
|
|
9053
9039
|
return 0;
|
|
9054
9040
|
}
|
|
9055
9041
|
}, $scope0_id, "d", 1, 1, 1, 0, 1);
|
|
9056
|
-
_html(`<div${_attr_class("
|
|
9042
|
+
_html(`<div${_attr_class("_fy")}>`);
|
|
9057
9043
|
_for_of(listIds, (wsId) => {
|
|
9058
9044
|
const $scope4_id = _scope_id();
|
|
9059
9045
|
_if(() => {
|
|
9060
9046
|
if (isPage && wsId === ws.id) {
|
|
9061
9047
|
const $scope13_id = _scope_id();
|
|
9062
|
-
_html(`<h2${_attr_class(["
|
|
9048
|
+
_html(`<h2${_attr_class(["_bK", "_fs"])}>Current</h2>`);
|
|
9063
9049
|
writeScope($scope13_id, {});
|
|
9064
9050
|
return 0;
|
|
9065
9051
|
}
|
|
@@ -9067,7 +9053,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
9067
9053
|
_if(() => {
|
|
9068
9054
|
if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
|
|
9069
9055
|
const $scope14_id = _scope_id();
|
|
9070
|
-
_html(`<h2${_attr_class(["
|
|
9056
|
+
_html(`<h2${_attr_class(["_bK", "_fs"])}>Other workspaces</h2>`);
|
|
9071
9057
|
writeScope($scope14_id, {});
|
|
9072
9058
|
return 0;
|
|
9073
9059
|
}
|
|
@@ -9151,7 +9137,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
9151
9137
|
railHover = null;
|
|
9152
9138
|
}, 150);
|
|
9153
9139
|
}, "A6", $scope5_id);
|
|
9154
|
-
_html(`<div${_attr_class("
|
|
9140
|
+
_html(`<div${_attr_class("_fz")} data-rail>`);
|
|
9155
9141
|
_for_of(itemIds, (wsId, i) => {
|
|
9156
9142
|
const $scope6_id = _scope_id();
|
|
9157
9143
|
_html("<span>");
|
|
@@ -9205,7 +9191,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
9205
9191
|
if (railHover) {
|
|
9206
9192
|
const $scope7_id = _scope_id();
|
|
9207
9193
|
const hoverId = railHover.id;
|
|
9208
|
-
_html(`<div${_attr_class(["_8", "
|
|
9194
|
+
_html(`<div${_attr_class(["_8", "_fC"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
9209
9195
|
_set_serialize_reason({
|
|
9210
9196
|
0: 1,
|
|
9211
9197
|
1: 1,
|
|
@@ -9290,7 +9276,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
9290
9276
|
return 0;
|
|
9291
9277
|
}
|
|
9292
9278
|
}, $scope0_id, "f");
|
|
9293
|
-
_html(`<div${_attr_class("
|
|
9279
|
+
_html(`<div${_attr_class("_fA")}>`);
|
|
9294
9280
|
_if(() => {
|
|
9295
9281
|
if (isPage) {
|
|
9296
9282
|
const $scope9_id = _scope_id();
|
|
@@ -9298,7 +9284,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
9298
9284
|
"_o",
|
|
9299
9285
|
"_p",
|
|
9300
9286
|
btnLg,
|
|
9301
|
-
"
|
|
9287
|
+
"_ft"
|
|
9302
9288
|
])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
9303
9289
|
icon_folder_plus_default({ size: 16 });
|
|
9304
9290
|
_html(` New workspace</a>${_el_resume($scope9_id, "a")}`);
|
|
@@ -9320,9 +9306,9 @@ var side_nav_default = _template("A", (input) => {
|
|
|
9320
9306
|
return 1;
|
|
9321
9307
|
}
|
|
9322
9308
|
}, $scope8_id, "a", 1, 1, 1, "</button>", 1);
|
|
9323
|
-
_html(`<div${_attr_class(["_x", "
|
|
9309
|
+
_html(`<div${_attr_class(["_x", "_fB"])}></div>`);
|
|
9324
9310
|
_if(() => {}, $scope8_id, "c", 1, 1, 1, 0, 1);
|
|
9325
|
-
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn, { ["
|
|
9311
|
+
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn, { ["_fg"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
9326
9312
|
icon_settings_default({});
|
|
9327
9313
|
_if(() => {
|
|
9328
9314
|
if (input.setupReady === false) {
|
|
@@ -9332,7 +9318,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
9332
9318
|
return 0;
|
|
9333
9319
|
}
|
|
9334
9320
|
}, $scope8_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
9335
|
-
_html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn, { ["
|
|
9321
|
+
_html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn, { ["_fg"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
9336
9322
|
icon_folder_plus_default({ size: 16 });
|
|
9337
9323
|
_html(`</a>${_el_resume($scope8_id, "g")}`);
|
|
9338
9324
|
_script($scope8_id, "A15");
|
|
@@ -9402,9 +9388,9 @@ var side_nav_default = _template("A", (input) => {
|
|
|
9402
9388
|
});
|
|
9403
9389
|
//#endregion
|
|
9404
9390
|
//#region src/tags/manage-workspace.css.ts
|
|
9405
|
-
var content = "
|
|
9406
|
-
var pageMeta = "
|
|
9407
|
-
var pathMeta = "
|
|
9391
|
+
var content = "_fa _bN";
|
|
9392
|
+
var pageMeta = "_fb _bS";
|
|
9393
|
+
var pathMeta = "_fe _w";
|
|
9408
9394
|
//#endregion
|
|
9409
9395
|
//#region src/tags/icons/icon-clipboard.marko
|
|
9410
9396
|
var icon_clipboard_default = _template("V", (input) => {
|
|
@@ -9579,7 +9565,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
9579
9565
|
setTimeout(() => loadProcs(void 0), 500);
|
|
9580
9566
|
}, "q9", $scope0_id);
|
|
9581
9567
|
const titleId = _id();
|
|
9582
|
-
_html(`<div${_attr_class("
|
|
9568
|
+
_html(`<div${_attr_class("_bL")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bM")}><div${_attr_class(content)}>`);
|
|
9583
9569
|
_set_serialize_reason(286);
|
|
9584
9570
|
let $actions;
|
|
9585
9571
|
if (ws.repos.length) $actions = attrTag({ content: _content_resume("q18", () => {
|
|
@@ -9615,7 +9601,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
9615
9601
|
meta: attrTag({ content: _content_resume("q17", () => {
|
|
9616
9602
|
_scope_reason();
|
|
9617
9603
|
const $scope15_id = _scope_id();
|
|
9618
|
-
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
9604
|
+
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_fc")}>${_escape(ws.name)}${_el_resume($scope15_id, "c")}</span>`);
|
|
9619
9605
|
_if(() => {
|
|
9620
9606
|
if (ws.status !== "active") {
|
|
9621
9607
|
const $scope19_id = _scope_id();
|
|
@@ -9624,7 +9610,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
9624
9610
|
return 0;
|
|
9625
9611
|
}
|
|
9626
9612
|
}, $scope15_id, "d", 1, 1, 1, 0, 1);
|
|
9627
|
-
_html(`<span${_attr_class("
|
|
9613
|
+
_html(`<span${_attr_class("_fd")} aria-hidden=true>·</span><span${_attr_class(pathMeta)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope15_id, "g")}</span></span>${_el_resume($scope15_id, "a")}`);
|
|
9628
9614
|
_subscribe($ws_status__closures, _subscribe($ws_path__closures, _subscribe($ws_display_path__closures, _subscribe($ws_name__closures, writeScope($scope15_id, { _: _scope_with_id($scope0_id) })))));
|
|
9629
9615
|
_resume_branch($scope15_id);
|
|
9630
9616
|
}, $scope0_id) })
|
|
@@ -9652,34 +9638,34 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
9652
9638
|
_if(() => {
|
|
9653
9639
|
if (pendingAction && actionStep) {
|
|
9654
9640
|
const $scope11_id = _scope_id();
|
|
9655
|
-
_html(`<p${_attr_class("
|
|
9641
|
+
_html(`<p${_attr_class("_bv")}><span${_attr_class("_E")}></span><!>${_escape(actionStep)}${_el_resume($scope11_id, "c")}</p>`);
|
|
9656
9642
|
writeScope($scope11_id, {});
|
|
9657
9643
|
return 0;
|
|
9658
9644
|
}
|
|
9659
9645
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
9660
|
-
_html(`<section${_attr_class("
|
|
9646
|
+
_html(`<section${_attr_class("_bw")}><div${_attr_class("_bx")}><h2${_attr_class("_bK")}>Workspace</h2></div><div${_attr_class(["_bB", "_cj"])}><div${_attr_class(["_ck", "_cl"])}>`);
|
|
9661
9647
|
_if(() => {
|
|
9662
9648
|
if (ws.status === "active") {
|
|
9663
9649
|
const $scope8_id = _scope_id();
|
|
9664
|
-
_html(`<span${_attr_class("
|
|
9650
|
+
_html(`<span${_attr_class("_cn")}>Hide from the list. Worktrees stay on disk.</span><button type=button${_attr_class(btnSm)}${_attr("disabled", !!pendingAction)}>${pendingAction === "archive" ? "Archiving…" : "Archive"}${_el_resume($scope8_id, "c")}</button>${_el_resume($scope8_id, "b")}`);
|
|
9665
9651
|
_script($scope8_id, "q20");
|
|
9666
9652
|
writeScope($scope8_id, {});
|
|
9667
9653
|
return 0;
|
|
9668
9654
|
} else {
|
|
9669
9655
|
const $scope9_id = _scope_id();
|
|
9670
|
-
_html(`<span${_attr_class("
|
|
9656
|
+
_html(`<span${_attr_class("_cn")}>Archived and hidden from the list.</span><button type=button${_attr_class([btnSm, "_p"])}${_attr("disabled", !!pendingAction)}>${pendingAction === "restore" ? "Restoring…" : "Restore"}${_el_resume($scope9_id, "c")}</button>${_el_resume($scope9_id, "b")}`);
|
|
9671
9657
|
_script($scope9_id, "q21");
|
|
9672
9658
|
writeScope($scope9_id, {});
|
|
9673
9659
|
return 1;
|
|
9674
9660
|
}
|
|
9675
9661
|
}, $scope0_id, "k", 1, 1, 1, "</div>");
|
|
9676
|
-
_html(`<div${_attr_class(["
|
|
9662
|
+
_html(`<div${_attr_class(["_ck", "_cl"])}><span${_attr_class("_cn")}>Remove the workspace and its worktrees. Branches on origin stay.</span><button type=button${_attr_class([
|
|
9677
9663
|
btnSm,
|
|
9678
9664
|
"_r",
|
|
9679
9665
|
{ ["_q"]: confirmingDelete }
|
|
9680
|
-
])}${_attr("disabled", !!pendingAction)}>${pendingAction === "delete" ? "Deleting…" : "Delete"}${_el_resume($scope0_id, "
|
|
9681
|
-
icon_plus_default({ size:
|
|
9682
|
-
_html(
|
|
9666
|
+
])}${_attr("disabled", !!pendingAction)}>${pendingAction === "delete" ? "Deleting…" : "Delete"}${_el_resume($scope0_id, "o")}</button>${_el_resume($scope0_id, "n")}</div></div></section><section${_attr_class("_bw")}><div${_attr_class("_bx")}><h2${_attr_class("_bK")}>Repos</h2><span${_attr_class(sectionCount)}>${_escape(ws.repos.length)}${_el_resume($scope0_id, "t")}</span><div${_attr_class("_x")}></div><button${_attr_class(iconBtnRow)} title="Add repo" aria-label="Add repo"${_attr("hidden", addingRepo)}>`);
|
|
9667
|
+
icon_plus_default({ size: 16 });
|
|
9668
|
+
_html(`</button>${_el_resume($scope0_id, "v")}`);
|
|
9683
9669
|
_set_serialize_reason(66);
|
|
9684
9670
|
const $childScope2 = _peek_scope_id();
|
|
9685
9671
|
let refreshCatalog = repo_picker_default({
|
|
@@ -9699,7 +9685,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
9699
9685
|
catalogRefreshing = busy;
|
|
9700
9686
|
}, "q15", $scope0_id)
|
|
9701
9687
|
});
|
|
9702
|
-
_var($scope0_id, "
|
|
9688
|
+
_var($scope0_id, "y", $childScope2, "q22");
|
|
9703
9689
|
_html(`<button${_attr_class(iconBtn$1)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
9704
9690
|
_set_serialize_reason(1);
|
|
9705
9691
|
const $childScope3 = _peek_scope_id();
|
|
@@ -9707,14 +9693,14 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
9707
9693
|
size: 14,
|
|
9708
9694
|
class: catalogRefreshing && "_D"
|
|
9709
9695
|
});
|
|
9710
|
-
_html(`</button>${_el_resume($scope0_id, "
|
|
9711
|
-
"
|
|
9712
|
-
"
|
|
9713
|
-
"
|
|
9696
|
+
_html(`</button>${_el_resume($scope0_id, "z")}</div><ul${_attr_class([
|
|
9697
|
+
"_bB",
|
|
9698
|
+
"_cj",
|
|
9699
|
+
"_cx"
|
|
9714
9700
|
])}>`);
|
|
9715
9701
|
_for_of(ws.repos, (row) => {
|
|
9716
9702
|
const $scope1_id = _scope_id();
|
|
9717
|
-
_html(`<li${_attr_class(flatCardRow)}><div${_attr_class("
|
|
9703
|
+
_html(`<li${_attr_class(flatCardRow)}><div${_attr_class("_bC")}><span${_attr_class(["_bD", "_w"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_bE")}><a${_attr_class(["_bF", "_I"])}${_attr("href", repoWebUrl$1(row.full_name))} target=_blank rel=noopener${_attr("title", `Open ${row.full_name} on GitHub`)}>${_escape(repoLabel(row.full_name))}${_el_resume($scope1_id, "g")}</a>${_el_resume($scope1_id, "f")}`);
|
|
9718
9704
|
_if(() => {
|
|
9719
9705
|
if (row.base_branch !== row.default_branch) {
|
|
9720
9706
|
const $scope22_id = _scope_id();
|
|
@@ -9735,7 +9721,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
9735
9721
|
} else {
|
|
9736
9722
|
const $scope10_id = _scope_id();
|
|
9737
9723
|
_html(`<button${_attr_class([
|
|
9738
|
-
"
|
|
9724
|
+
"_bG",
|
|
9739
9725
|
"_6",
|
|
9740
9726
|
"_7",
|
|
9741
9727
|
{ ["_q"]: confirmingRemove === row.full_name }
|
|
@@ -9765,27 +9751,27 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
9765
9751
|
m: row?.full_name,
|
|
9766
9752
|
o: row?.base_branch
|
|
9767
9753
|
});
|
|
9768
|
-
}, "full_name", $scope0_id, "
|
|
9754
|
+
}, "full_name", $scope0_id, "a2", 1, 1, 1, 0, 1);
|
|
9769
9755
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
9770
9756
|
const $scope26_id = _scope_id();
|
|
9771
|
-
_html(`<li${_attr_class([flatCardRow, "
|
|
9757
|
+
_html(`<li${_attr_class([flatCardRow, "_bA"])}><span${_attr_class("_E")}></span><div${_attr_class("_bC")}><span${_attr_class("_bF")}>Adding <!>${_escape(name)}${_el_resume($scope26_id, "e")}…</span></div></li>`);
|
|
9772
9758
|
writeScope($scope26_id, {});
|
|
9773
|
-
}, (n) => n, $scope0_id, "
|
|
9759
|
+
}, (n) => n, $scope0_id, "a3", 1, 1, 1, 0, 1);
|
|
9774
9760
|
_if(() => {
|
|
9775
9761
|
if (!ws.repos.length && !busy.size) {
|
|
9776
9762
|
const $scope27_id = _scope_id();
|
|
9777
|
-
_html(`<li${_attr_class(flatCardRow)}><span${_attr_class("
|
|
9763
|
+
_html(`<li${_attr_class(flatCardRow)}><span${_attr_class("_bF")}>No repos yet. Add one to start.</span></li>`);
|
|
9778
9764
|
writeScope($scope27_id, {});
|
|
9779
9765
|
return 0;
|
|
9780
9766
|
}
|
|
9781
|
-
}, $scope0_id, "
|
|
9767
|
+
}, $scope0_id, "a4", 1, 1, 1, 0, 1);
|
|
9782
9768
|
const wsSkills = skills?.workspace || [];
|
|
9783
9769
|
const repoSkills = (skills?.repo || []).filter((s) => !wsSkills.some((w) => w.id === s.id));
|
|
9784
9770
|
_html("</ul></section>");
|
|
9785
9771
|
_if(() => {
|
|
9786
9772
|
if (wsSkills.length || repoSkills.length) {
|
|
9787
9773
|
const $scope2_id = _scope_id();
|
|
9788
|
-
_html(`<section${_attr_class("
|
|
9774
|
+
_html(`<section${_attr_class("_bw")}><div${_attr_class("_bx")}><h2${_attr_class("_bK")}>Skills</h2>`);
|
|
9789
9775
|
_if(() => {
|
|
9790
9776
|
if (wsSkills.length) {
|
|
9791
9777
|
const $scope28_id = _scope_id();
|
|
@@ -9794,7 +9780,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
9794
9780
|
return 0;
|
|
9795
9781
|
}
|
|
9796
9782
|
}, $scope2_id, "d", 1, 1, 1, 0, 1);
|
|
9797
|
-
_html(`</div><ul${_attr_class("
|
|
9783
|
+
_html(`</div><ul${_attr_class("_dD")}>`);
|
|
9798
9784
|
_for_of(wsSkills, (s) => {
|
|
9799
9785
|
const $scope3_id = _scope_id();
|
|
9800
9786
|
const $for_content2__s_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -9902,7 +9888,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
9902
9888
|
_if(() => {
|
|
9903
9889
|
if (repoSkills.length) {
|
|
9904
9890
|
const $scope4_id = _scope_id();
|
|
9905
|
-
_html(`<ul${_attr_class("
|
|
9891
|
+
_html(`<ul${_attr_class("_dD")}>`);
|
|
9906
9892
|
_for_of(repoSkills, (s) => {
|
|
9907
9893
|
const $scope5_id = _scope_id();
|
|
9908
9894
|
const $for_content3__s_shadows__closures = /* @__PURE__ */ new Set();
|
|
@@ -9942,7 +9928,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
9942
9928
|
k: $for_content3__s_shadows__closures,
|
|
9943
9929
|
j: $for_content3__s_name__closures,
|
|
9944
9930
|
a: _existing_scope($childScope5),
|
|
9945
|
-
|
|
9931
|
+
Cc6: 1
|
|
9946
9932
|
}));
|
|
9947
9933
|
}, (s) => `${s.worktree}/${s.id}`, $scope4_id, "a", 1, 1, 1, "</ul>", 1);
|
|
9948
9934
|
_subscribe($repoSkills__closures, writeScope($scope4_id, {}));
|
|
@@ -9953,27 +9939,27 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
9953
9939
|
writeScope($scope2_id, {});
|
|
9954
9940
|
return 0;
|
|
9955
9941
|
}
|
|
9956
|
-
}, $scope0_id, "
|
|
9942
|
+
}, $scope0_id, "a5", 1, 1, 1, 0, 1);
|
|
9957
9943
|
const running = procs || [];
|
|
9958
9944
|
_if(() => {
|
|
9959
9945
|
if (running.length) {
|
|
9960
9946
|
const $scope17_id = _scope_id();
|
|
9961
|
-
_html(`<section${_attr_class("
|
|
9962
|
-
"
|
|
9963
|
-
"
|
|
9964
|
-
"
|
|
9947
|
+
_html(`<section${_attr_class("_bw")}><div${_attr_class("_bx")}><h2${_attr_class("_bK")}>Running</h2><span${_attr_class(sectionCount)}>${_escape(running.length)}${_el_resume($scope17_id, "e")}</span></div><ul${_attr_class([
|
|
9948
|
+
"_bB",
|
|
9949
|
+
"_cj",
|
|
9950
|
+
"_cx"
|
|
9965
9951
|
])}>`);
|
|
9966
9952
|
_for_of(running, (p) => {
|
|
9967
9953
|
const $scope18_id = _scope_id();
|
|
9968
|
-
_html(`<li${_attr_class(flatCardRow)}><div${_attr_class("
|
|
9969
|
-
"
|
|
9954
|
+
_html(`<li${_attr_class(flatCardRow)}><div${_attr_class("_bC")}${_attr("title", p.args)}><span${_attr_class([
|
|
9955
|
+
"_bD",
|
|
9970
9956
|
"_w",
|
|
9971
|
-
"
|
|
9957
|
+
"_ff"
|
|
9972
9958
|
])}>${_escape(p.cmd)}${_el_resume($scope18_id, "d")}</span>`);
|
|
9973
9959
|
_if(() => {
|
|
9974
9960
|
if (p.ports.length) {
|
|
9975
9961
|
const $scope36_id = _scope_id();
|
|
9976
|
-
_html(`<span${_attr_class("
|
|
9962
|
+
_html(`<span${_attr_class("_bE")}>`);
|
|
9977
9963
|
_for_of(p.ports, (port) => {
|
|
9978
9964
|
const $scope37_id = _scope_id();
|
|
9979
9965
|
_html(`<button${_attr_class(["_s", "_I"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope37_id, "b")}</button>${_el_resume($scope37_id, "a")}`);
|
|
@@ -9984,7 +9970,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
9984
9970
|
return 0;
|
|
9985
9971
|
}
|
|
9986
9972
|
}, $scope18_id, "e", 1, 1, 1, 0, 1);
|
|
9987
|
-
_html(`</div>${_el_resume($scope18_id, "b")}<button${_attr_class(["
|
|
9973
|
+
_html(`</div>${_el_resume($scope18_id, "b")}<button${_attr_class(["_bG", "_6"])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
9988
9974
|
icon_xmark_default({ size: 14 });
|
|
9989
9975
|
_html(`</button>${_el_resume($scope18_id, "f")}</li>`);
|
|
9990
9976
|
_script($scope18_id, "q31");
|
|
@@ -9997,83 +9983,83 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
9997
9983
|
writeScope($scope17_id, {});
|
|
9998
9984
|
return 0;
|
|
9999
9985
|
}
|
|
10000
|
-
}, $scope0_id, "
|
|
9986
|
+
}, $scope0_id, "a6", 1, 1, 1, 0, 1);
|
|
10001
9987
|
_html("</div></div></div>");
|
|
10002
9988
|
_script($scope0_id, "q32");
|
|
10003
9989
|
_script($scope0_id, "q33");
|
|
10004
9990
|
writeScope($scope0_id, {
|
|
10005
|
-
|
|
10006
|
-
|
|
10007
|
-
|
|
10008
|
-
|
|
10009
|
-
|
|
10010
|
-
|
|
10011
|
-
|
|
10012
|
-
|
|
10013
|
-
|
|
10014
|
-
|
|
10015
|
-
|
|
10016
|
-
|
|
10017
|
-
|
|
10018
|
-
|
|
10019
|
-
|
|
10020
|
-
|
|
10021
|
-
|
|
10022
|
-
|
|
10023
|
-
|
|
10024
|
-
|
|
10025
|
-
|
|
10026
|
-
|
|
10027
|
-
|
|
10028
|
-
|
|
10029
|
-
|
|
10030
|
-
|
|
10031
|
-
|
|
10032
|
-
|
|
10033
|
-
|
|
10034
|
-
|
|
10035
|
-
|
|
10036
|
-
|
|
10037
|
-
|
|
10038
|
-
|
|
10039
|
-
|
|
10040
|
-
|
|
10041
|
-
|
|
10042
|
-
|
|
10043
|
-
|
|
10044
|
-
|
|
10045
|
-
|
|
10046
|
-
|
|
10047
|
-
|
|
10048
|
-
|
|
10049
|
-
|
|
10050
|
-
|
|
10051
|
-
|
|
10052
|
-
|
|
10053
|
-
|
|
10054
|
-
|
|
10055
|
-
|
|
10056
|
-
|
|
10057
|
-
|
|
9991
|
+
a9: _serialize_if($scope0_reason, 0) && input.workspace,
|
|
9992
|
+
ab: input.workspaceChange,
|
|
9993
|
+
ad: input.onDeleted,
|
|
9994
|
+
ae: input.onExit,
|
|
9995
|
+
ah: busy,
|
|
9996
|
+
ai: busy?.size,
|
|
9997
|
+
aj: error,
|
|
9998
|
+
ak: pendingAction,
|
|
9999
|
+
al: confirmingDelete,
|
|
10000
|
+
ao: confirmingRemove,
|
|
10001
|
+
ap: actionStep,
|
|
10002
|
+
ar: skills,
|
|
10003
|
+
au: confirmingSkill,
|
|
10004
|
+
av: copied,
|
|
10005
|
+
ax: copyTimer.id,
|
|
10006
|
+
ay: workspace,
|
|
10007
|
+
b0: workspace?.name,
|
|
10008
|
+
b1: workspace?.origin_branch,
|
|
10009
|
+
b2: workspace?.branch,
|
|
10010
|
+
b4: workspace?.id,
|
|
10011
|
+
b5: workspace?.display_path,
|
|
10012
|
+
b6: workspace?.path,
|
|
10013
|
+
b7: workspace?.status,
|
|
10014
|
+
b8: workspace?.repos?.length,
|
|
10015
|
+
b9: invite,
|
|
10016
|
+
ba: copyInvite,
|
|
10017
|
+
bc: skillSeq.applied,
|
|
10018
|
+
bd: skillSeq.issued,
|
|
10019
|
+
be: applySkills,
|
|
10020
|
+
bf: loadSkills,
|
|
10021
|
+
bg: loadProcs,
|
|
10022
|
+
bh: inWorkspace,
|
|
10023
|
+
bi: setBusy,
|
|
10024
|
+
bj: runSkill,
|
|
10025
|
+
bk: addRepo,
|
|
10026
|
+
bl: removeRepo,
|
|
10027
|
+
bm: runAction,
|
|
10028
|
+
bn: killProc,
|
|
10029
|
+
bp: refreshCatalog,
|
|
10030
|
+
bq: wsSkills,
|
|
10031
|
+
br: wsSkills.length,
|
|
10032
|
+
bs: repoSkills,
|
|
10033
|
+
bt: repoSkills?.length,
|
|
10034
|
+
bu: running,
|
|
10035
|
+
bv: running.length,
|
|
10036
|
+
az: input.workspaceChange || void 0,
|
|
10037
|
+
ce: $ws_name__closures,
|
|
10038
|
+
ch: $ws_display_path__closures,
|
|
10039
|
+
ci: $ws_path__closures,
|
|
10040
|
+
cj: $ws_status__closures,
|
|
10041
|
+
cd: $copied__closures,
|
|
10042
|
+
cf: $ws_origin_branch__closures,
|
|
10043
|
+
cg: $ws_branch__closures,
|
|
10058
10044
|
d: _existing_scope($childScope),
|
|
10059
|
-
|
|
10060
|
-
|
|
10061
|
-
|
|
10062
|
-
|
|
10063
|
-
|
|
10064
|
-
|
|
10065
|
-
|
|
10066
|
-
|
|
10067
|
-
|
|
10045
|
+
c7: $error__closures,
|
|
10046
|
+
x: _existing_scope($childScope2),
|
|
10047
|
+
a0: _existing_scope($childScope3),
|
|
10048
|
+
c9: $confirmingRemove__closures,
|
|
10049
|
+
cl: $wsSkills_length__closures,
|
|
10050
|
+
cb: $skills__closures,
|
|
10051
|
+
cc: $confirmingSkill__closures,
|
|
10052
|
+
c6: $busy__closures,
|
|
10053
|
+
cm: $repoSkills__closures
|
|
10068
10054
|
});
|
|
10069
10055
|
_resume_branch($scope0_id);
|
|
10070
10056
|
});
|
|
10071
|
-
var kbtn = "
|
|
10072
|
-
var sessOpen = "
|
|
10073
|
-
var sessRename = "
|
|
10074
|
-
var dpadPaste = "
|
|
10075
|
-
var repeat = "
|
|
10076
|
-
var dpadEsc = "
|
|
10057
|
+
var kbtn = "_eA _4 _j";
|
|
10058
|
+
var sessOpen = "_fR _G";
|
|
10059
|
+
var sessRename = "_fV _H";
|
|
10060
|
+
var dpadPaste = "_f2 _f1";
|
|
10061
|
+
var repeat = "_f3 _f1";
|
|
10062
|
+
var dpadEsc = "_f5 _f1";
|
|
10077
10063
|
//#endregion
|
|
10078
10064
|
//#region src/tags/term-find.marko
|
|
10079
10065
|
var term_find_default = _template("D", (input) => {
|
|
@@ -10110,19 +10096,19 @@ var term_find_default = _template("D", (input) => {
|
|
|
10110
10096
|
const canStep = hasQuery && open;
|
|
10111
10097
|
const keybar = input.placement === "keybar";
|
|
10112
10098
|
_html(`<div${_attr_class([
|
|
10113
|
-
"
|
|
10114
|
-
keybar ? "
|
|
10115
|
-
!open && "
|
|
10116
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
10099
|
+
"_gI",
|
|
10100
|
+
keybar ? "_gK" : "_gJ",
|
|
10101
|
+
!open && "_gM"
|
|
10102
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_gD", keybar ? "_gL" : "_gF"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
10117
10103
|
if (!open) return;
|
|
10118
10104
|
query = v;
|
|
10119
10105
|
live.query = v;
|
|
10120
10106
|
run(0);
|
|
10121
|
-
}, "D0", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
10107
|
+
}, "D0", $scope0_id))}${_attr_class([findInput, keybar && "_gN"])} 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 && "_gO"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
10122
10108
|
icon_arrow_up_default({ size: 14 });
|
|
10123
|
-
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
10109
|
+
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_gO"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
10124
10110
|
icon_arrow_down_default({ size: 14 });
|
|
10125
|
-
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
10111
|
+
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "_gO"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
10126
10112
|
icon_xmark_default({ size: 14 });
|
|
10127
10113
|
_html(`</button>${_el_resume($scope0_id, "h")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
10128
10114
|
_script($scope0_id, "D4");
|
|
@@ -10535,7 +10521,7 @@ var term_default = _template("E", (input) => {
|
|
|
10535
10521
|
trapOpen = true;
|
|
10536
10522
|
}
|
|
10537
10523
|
}, "E14", $scope0_id);
|
|
10538
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
10524
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_fD")}><div${_attr_class("_fE")}></div>${_el_resume($scope0_id, "b")}`);
|
|
10539
10525
|
_if(() => {
|
|
10540
10526
|
if (findOpen) {
|
|
10541
10527
|
const $scope12_id = _scope_id();
|
|
@@ -10562,7 +10548,7 @@ var term_default = _template("E", (input) => {
|
|
|
10562
10548
|
_if(() => {
|
|
10563
10549
|
if (uploading) {
|
|
10564
10550
|
const $scope21_id = _scope_id();
|
|
10565
|
-
_html(`<div${_attr_class("
|
|
10551
|
+
_html(`<div${_attr_class("_fK")}>uploading…</div>`);
|
|
10566
10552
|
writeScope($scope21_id, {});
|
|
10567
10553
|
return 0;
|
|
10568
10554
|
}
|
|
@@ -10570,7 +10556,7 @@ var term_default = _template("E", (input) => {
|
|
|
10570
10556
|
_if(() => {
|
|
10571
10557
|
if (copiedFlash) {
|
|
10572
10558
|
const $scope22_id = _scope_id();
|
|
10573
|
-
_html(`<div${_attr_class("
|
|
10559
|
+
_html(`<div${_attr_class("_fJ")}>Copied</div>`);
|
|
10574
10560
|
writeScope($scope22_id, {});
|
|
10575
10561
|
return 0;
|
|
10576
10562
|
}
|
|
@@ -10579,7 +10565,7 @@ var term_default = _template("E", (input) => {
|
|
|
10579
10565
|
_if(() => {
|
|
10580
10566
|
if (trapOpen) {
|
|
10581
10567
|
const $scope11_id = _scope_id();
|
|
10582
|
-
_html(`<div${_attr_class("
|
|
10568
|
+
_html(`<div${_attr_class("_fL")}><div${_attr_class("_fM")}><p${_attr_class("_f6")}>Long-press the field below and choose Paste</p><input placeholder="Paste here…">${_el_resume($scope11_id, "d")}<button${_attr_class("_o")}>Cancel</button>${_el_resume($scope11_id, "e")}</div>${_el_resume($scope11_id, "b")}</div>${_el_resume($scope11_id, "a")}`);
|
|
10583
10569
|
_script($scope11_id, "E26");
|
|
10584
10570
|
_script($scope11_id, "E27");
|
|
10585
10571
|
writeScope($scope11_id, {});
|
|
@@ -10654,7 +10640,7 @@ var term_default = _template("E", (input) => {
|
|
|
10654
10640
|
popEl.style.top = `${Math.max(8, btn.top - popEl.offsetHeight - 8)}px`;
|
|
10655
10641
|
popEl.style.left = `${Math.max(8, Math.min(btn.left + btn.width / 2 - popEl.offsetWidth / 2, window.innerWidth - popEl.offsetWidth - 8))}px`;
|
|
10656
10642
|
}, "E20", $scope4_id);
|
|
10657
|
-
_html(`<button${_attr_class([kbtn, "
|
|
10643
|
+
_html(`<button${_attr_class([kbtn, "_fN"])} title=${onTermPage ? "Sessions" : "\"Back to session\""}${onTermPage ? _attr("popovertarget", sessPopId) : ""}>`);
|
|
10658
10644
|
_set_serialize_reason({
|
|
10659
10645
|
1: $sg__input_agent__OR__input_sessionState,
|
|
10660
10646
|
2: $sg__input_agent__OR__input_sessionState
|
|
@@ -10668,7 +10654,7 @@ var term_default = _template("E", (input) => {
|
|
|
10668
10654
|
"_y",
|
|
10669
10655
|
"_ba",
|
|
10670
10656
|
phase[sessionPhase(input.sessionState)]
|
|
10671
|
-
])}></span>${_el_resume($scope4_id, "c", _serialize_guard($scope0_reason, 5))}</button>${_el_resume($scope4_id, "a")}<div${_attr("id", sessPopId)} popover=auto${_attr_class(["_8", "
|
|
10657
|
+
])}></span>${_el_resume($scope4_id, "c", _serialize_guard($scope0_reason, 5))}</button>${_el_resume($scope4_id, "a")}<div${_attr("id", sessPopId)} popover=auto${_attr_class(["_8", "_fO"])}>`);
|
|
10672
10658
|
_if(() => {
|
|
10673
10659
|
if ((input.sessions || []).length > 0) {
|
|
10674
10660
|
const $scope5_id = _scope_id();
|
|
@@ -10684,7 +10670,7 @@ var term_default = _template("E", (input) => {
|
|
|
10684
10670
|
const $scope6_id = _scope_id();
|
|
10685
10671
|
const $for_content__s_agent__closures = /* @__PURE__ */ new Set();
|
|
10686
10672
|
const $for_content__s_id__closures = /* @__PURE__ */ new Set();
|
|
10687
|
-
_html(`<div${_attr_class(["
|
|
10673
|
+
_html(`<div${_attr_class(["_fQ", { ["_fP"]: s.id === input.sessionId }])}>`);
|
|
10688
10674
|
_if(() => {
|
|
10689
10675
|
if (renamingId === s.id) {
|
|
10690
10676
|
const $scope24_id = _scope_id();
|
|
@@ -10716,7 +10702,7 @@ var term_default = _template("E", (input) => {
|
|
|
10716
10702
|
agent: activeAgent(s),
|
|
10717
10703
|
size: 14
|
|
10718
10704
|
});
|
|
10719
|
-
_html(`<span${_attr_class("
|
|
10705
|
+
_html(`<span${_attr_class("_fS")}><span${_attr_class("_fU")}>${_escape(s.title || activeAgent(s))}${_el_resume($scope7_id, "f", $sg__input_sessions)}</span>`);
|
|
10720
10706
|
_if(() => {
|
|
10721
10707
|
if (s.id === input.sessionId) {
|
|
10722
10708
|
const $scope23_id = _scope_id();
|
|
@@ -10728,7 +10714,7 @@ var term_default = _template("E", (input) => {
|
|
|
10728
10714
|
const $childScope6 = _peek_scope_id();
|
|
10729
10715
|
usage_pcts_default({
|
|
10730
10716
|
agent: plan,
|
|
10731
|
-
class: "
|
|
10717
|
+
class: "_fT"
|
|
10732
10718
|
});
|
|
10733
10719
|
writeScope($scope26_id, { a: _existing_scope($childScope6) });
|
|
10734
10720
|
return 0;
|
|
@@ -10745,7 +10731,7 @@ var term_default = _template("E", (input) => {
|
|
|
10745
10731
|
_if(() => {
|
|
10746
10732
|
if (input.onRenameSession) {
|
|
10747
10733
|
const $scope25_id = _scope_id();
|
|
10748
|
-
_html(`<button${_attr_class(["
|
|
10734
|
+
_html(`<button${_attr_class(["_fW", "_fX"])} title="Rename session">`);
|
|
10749
10735
|
icon_edit_default({ size: 12 });
|
|
10750
10736
|
_html(`</button>${_el_resume($scope25_id, "a")}`);
|
|
10751
10737
|
_script($scope25_id, "E29");
|
|
@@ -10757,7 +10743,7 @@ var term_default = _template("E", (input) => {
|
|
|
10757
10743
|
if (input.onCloseSession) {
|
|
10758
10744
|
const $scope8_id = _scope_id();
|
|
10759
10745
|
_html(`<button${_attr_class([
|
|
10760
|
-
"
|
|
10746
|
+
"_fW",
|
|
10761
10747
|
"_6",
|
|
10762
10748
|
{ ["_q"]: armedClose === s.id }
|
|
10763
10749
|
])} title=${armedClose === s.id ? "Close?" : "\"Close session\""}>`);
|
|
@@ -10799,7 +10785,7 @@ var term_default = _template("E", (input) => {
|
|
|
10799
10785
|
return 0;
|
|
10800
10786
|
}
|
|
10801
10787
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions, $sg__input_sessions);
|
|
10802
|
-
_html(`<div${_attr_class("
|
|
10788
|
+
_html(`<div${_attr_class("_fY")}><span${_attr_class("_fZ")}>New session</span>`);
|
|
10803
10789
|
_for_of([...input.agents || [], "shell"], (agent) => {
|
|
10804
10790
|
const $scope9_id = _scope_id();
|
|
10805
10791
|
_html(`<button${_attr_class(iconBtnRow)}${_attr("title", `New ${agent} session`)}>`);
|
|
@@ -10844,9 +10830,9 @@ var term_default = _template("E", (input) => {
|
|
|
10844
10830
|
const dpadOpenBox = { open: false };
|
|
10845
10831
|
_html(`<button${_attr_class(kbtn)} title=${canKeys ? "\"More keys\"" : "\"Keys unavailable on this page\""} aria-haspopup=dialog${_attr("aria-controls", dpadId)}${_attr("disabled", !canKeys)}>`);
|
|
10846
10832
|
icon_dpad_default({ size: 16 });
|
|
10847
|
-
_html(`</button>${_el_resume($scope10_id, "a")}<button${_attr_class([kbtn, { ["
|
|
10833
|
+
_html(`</button>${_el_resume($scope10_id, "a")}<button${_attr_class([kbtn, { ["_ez"]: findLit }])}${findLit ? " title=\"Close find\"" : canKeys ? ` title=${input.mode === "diff" ? "\"Find in review\"" : "\"Find in terminal\""}` : " title=\"Find unavailable on this page\""}${findLit ? " aria-label=\"Close find\"" : canKeys ? ` aria-label=${input.mode === "diff" ? "\"Find in review\"" : "\"Find in terminal\""}` : " aria-label=\"Find unavailable on this page\""} aria-pressed=${findLit ? "true" : "false"}${_attr("disabled", !canKeys)}>`);
|
|
10848
10834
|
icon_search_default({ size: 16 });
|
|
10849
|
-
_html(`</button>${_el_resume($scope10_id, "c")}<button${_attr_class([kbtn, { ["
|
|
10835
|
+
_html(`</button>${_el_resume($scope10_id, "c")}<button${_attr_class([kbtn, { ["_ez"]: kb }])}${canKeys ? ` title=${kb ? "\"Hide keyboard\"" : "\"Show keyboard\""}` : " title=\"Keyboard unavailable on this page\""}${_attr("disabled", !canKeys)}>`);
|
|
10850
10836
|
icon_keyboard_default({ size: 16 });
|
|
10851
10837
|
_html(`</button>${_el_resume($scope10_id, "e")}`);
|
|
10852
10838
|
_script($scope10_id, "E35");
|
|
@@ -10862,7 +10848,7 @@ var term_default = _template("E", (input) => {
|
|
|
10862
10848
|
overlay: attrTag({ content: _content_resume("E46", () => {
|
|
10863
10849
|
_scope_reason();
|
|
10864
10850
|
const $scope15_id = _scope_id();
|
|
10865
|
-
_html(`<div${_attr("id", $dpadId_getter)} popover=auto${_attr_class("
|
|
10851
|
+
_html(`<div${_attr("id", $dpadId_getter)} popover=auto${_attr_class("_f0")}>`);
|
|
10866
10852
|
forOf(DPAD, (row) => {
|
|
10867
10853
|
const $scope16_id = _scope_id();
|
|
10868
10854
|
forOf(row, (cell) => {
|
|
@@ -10882,7 +10868,7 @@ var term_default = _template("E", (input) => {
|
|
|
10882
10868
|
writeScope($scope18_id, { _: _scope_with_id($scope17_id) });
|
|
10883
10869
|
} else {
|
|
10884
10870
|
const $scope19_id = _scope_id();
|
|
10885
|
-
_html(`<button${_attr_class([repeat, { ["
|
|
10871
|
+
_html(`<button${_attr_class([repeat, { ["_f4"]: cell.icon === "enter" }])}${_attr("title", cell.label)}${_attr("aria-label", cell.label)}>`);
|
|
10886
10872
|
if (cell.icon === "arrow-up") {
|
|
10887
10873
|
_scope_id();
|
|
10888
10874
|
icon_arrow_up_default({ size: 18 });
|
|
@@ -11022,7 +11008,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
11022
11008
|
let DiffView = null;
|
|
11023
11009
|
const loadDiffView = _resume(() => {
|
|
11024
11010
|
if (DiffView) return;
|
|
11025
|
-
import("./
|
|
11011
|
+
import("./_BU4viilP.js").then((m) => {
|
|
11026
11012
|
DiffView = m.default;
|
|
11027
11013
|
});
|
|
11028
11014
|
}, "I6", $scope0_id);
|
|
@@ -11210,10 +11196,10 @@ var work_view_default = _template("I", (input) => {
|
|
|
11210
11196
|
toggleDiff();
|
|
11211
11197
|
}
|
|
11212
11198
|
}, "I21", $scope0_id);
|
|
11213
|
-
_html(`<div${_attr_class(["
|
|
11214
|
-
["
|
|
11215
|
-
["
|
|
11216
|
-
}])}><div${_attr_class("
|
|
11199
|
+
_html(`<div${_attr_class(["_cc", {
|
|
11200
|
+
["_ca"]: view === "nav",
|
|
11201
|
+
["_cb"]: !input.active
|
|
11202
|
+
}])}><div${_attr_class("_cd")}>`);
|
|
11217
11203
|
_set_serialize_reason({
|
|
11218
11204
|
0: _serialize_guard($scope0_reason, 0),
|
|
11219
11205
|
1: 1,
|
|
@@ -11282,7 +11268,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
11282
11268
|
});
|
|
11283
11269
|
}, "I30", $scope0_id)
|
|
11284
11270
|
});
|
|
11285
|
-
_html(`</div><div${_attr_class("
|
|
11271
|
+
_html(`</div><div${_attr_class("_ce")}>`);
|
|
11286
11272
|
_if(() => {
|
|
11287
11273
|
if (error) {
|
|
11288
11274
|
const $scope9_id = _scope_id();
|
|
@@ -11305,7 +11291,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
11305
11291
|
_if(() => {
|
|
11306
11292
|
if (diffMounted && DiffView) {
|
|
11307
11293
|
const $scope1_id = _scope_id();
|
|
11308
|
-
_html(`<div${_attr_class("
|
|
11294
|
+
_html(`<div${_attr_class("_cf")}${_attr_or("data-live", view === "diff", "")}${_attr("inert", view !== "diff")}>`);
|
|
11309
11295
|
_dynamic_tag($scope1_id, "b", DiffView, {
|
|
11310
11296
|
workspaceId: ws.id,
|
|
11311
11297
|
workspaceBranch: ws.branch,
|
|
@@ -11345,7 +11331,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
11345
11331
|
_if(() => {
|
|
11346
11332
|
if (manageMounted) {
|
|
11347
11333
|
const $scope2_id = _scope_id();
|
|
11348
|
-
_html(`<div${_attr_class("
|
|
11334
|
+
_html(`<div${_attr_class("_cf")}${_attr_or("data-live", view === "manage", "")}${_attr("inert", view !== "manage")}>`);
|
|
11349
11335
|
_set_serialize_reason(_serialize_guard($scope0_reason, 16));
|
|
11350
11336
|
const $childScope2 = _peek_scope_id();
|
|
11351
11337
|
manage_workspace_default({
|
|
@@ -11368,7 +11354,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
11368
11354
|
_if(() => {
|
|
11369
11355
|
if (settingsMounted) {
|
|
11370
11356
|
const $scope3_id = _scope_id();
|
|
11371
|
-
_html(`<div${_attr_class("
|
|
11357
|
+
_html(`<div${_attr_class("_cf")}${_attr_or("data-live", view === "settings", "")}${_attr("inert", view !== "settings")}>`);
|
|
11372
11358
|
_set_serialize_reason({
|
|
11373
11359
|
0: _serialize_guard($scope0_reason, 1),
|
|
11374
11360
|
1: $sg__input_workspace,
|
|
@@ -11409,7 +11395,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
11409
11395
|
_if(() => {
|
|
11410
11396
|
if (newMounted) {
|
|
11411
11397
|
const $scope4_id = _scope_id();
|
|
11412
|
-
_html(`<div${_attr_class("
|
|
11398
|
+
_html(`<div${_attr_class("_cf")}${_attr_or("data-live", view === "new", "")}${_attr("inert", view !== "new")}>`);
|
|
11413
11399
|
_set_serialize_reason({
|
|
11414
11400
|
0: 1,
|
|
11415
11401
|
1: $sg__input_allWorkspaces,
|
|
@@ -11436,13 +11422,13 @@ var work_view_default = _template("I", (input) => {
|
|
|
11436
11422
|
return 0;
|
|
11437
11423
|
}
|
|
11438
11424
|
}, $scope0_id, "i", 1, 1, 1, 0, 1);
|
|
11439
|
-
_html(`<div${_attr_class(["
|
|
11425
|
+
_html(`<div${_attr_class(["_ch", { ["_cg"]: view !== "term" }])}>`);
|
|
11440
11426
|
_if(() => {
|
|
11441
11427
|
if (shownSessions) {
|
|
11442
11428
|
const $scope5_id = _scope_id();
|
|
11443
11429
|
_for_of(input.active ? shownSessions : shownSessions.filter((x) => x.id === curTab), (s) => {
|
|
11444
11430
|
const $scope6_id = _scope_id();
|
|
11445
|
-
_html(`<div${_attr_class("
|
|
11431
|
+
_html(`<div${_attr_class("_ci")}${_attr_or("data-live", s.id === curTab, "")}${_attr("inert", s.id !== curTab)}>`);
|
|
11446
11432
|
_set_serialize_reason({
|
|
11447
11433
|
0: 1,
|
|
11448
11434
|
1: 1,
|
|
@@ -11501,7 +11487,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
11501
11487
|
_if(() => {
|
|
11502
11488
|
if (!shownSessions.length && view === "term") {
|
|
11503
11489
|
const $scope7_id = _scope_id();
|
|
11504
|
-
_html(`<div${_attr_class("
|
|
11490
|
+
_html(`<div${_attr_class("_bI")}><span>No sessions in this workspace.</span><button${_attr_class(["_o", "_p"])}${_attr("disabled", spawning)}>${spawning ? "Starting…" : `Start ${_escape(`${input.preferred || "shell"}`)}`}${_el_resume($scope7_id, "c")}</button>${_el_resume($scope7_id, "b")}</div>`);
|
|
11505
11491
|
_script($scope7_id, "I51");
|
|
11506
11492
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
11507
11493
|
return 0;
|
|
@@ -11511,7 +11497,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
11511
11497
|
return 0;
|
|
11512
11498
|
} else {
|
|
11513
11499
|
const $scope11_id = _scope_id();
|
|
11514
|
-
_html(`<p${_attr_class("
|
|
11500
|
+
_html(`<p${_attr_class("_bI")}>Loading sessions…</p>`);
|
|
11515
11501
|
writeScope($scope11_id, {});
|
|
11516
11502
|
return 1;
|
|
11517
11503
|
}
|
|
@@ -20937,4 +20923,4 @@ server.listen(port, () => {
|
|
|
20937
20923
|
//#endregion
|
|
20938
20924
|
export {};
|
|
20939
20925
|
|
|
20940
|
-
;var __MARKO_MANIFEST__={"
|
|
20926
|
+
;var __MARKO_MANIFEST__={"LH2lXAg":{"block":[2,"stylesheet#/assets/app-page-D0e78Fao.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-D0e78Fao.css\"",">"],"defer":[2,"/assets/w-5LeFVg_7.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-5LeFVg_7.js\"","></script>",2,"modulepreload#/assets/_CYNQgKbT.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CYNQgKbT.js\"",">"]},"ZLT8joi":{"block":[2,"stylesheet#/assets/app-page-D0e78Fao.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-D0e78Fao.css\"",">"],"defer":[2,"/assets/new-5LeFVg_7.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-5LeFVg_7.js\"","></script>",2,"modulepreload#/assets/_CYNQgKbT.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CYNQgKbT.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/app-page-D0e78Fao.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-D0e78Fao.css\"",">"],"defer":[2,"/assets/settings-5LeFVg_7.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-5LeFVg_7.js\"","></script>",2,"modulepreload#/assets/_CYNQgKbT.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CYNQgKbT.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/app-page-D0e78Fao.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-D0e78Fao.css\"",">"],"defer":[2,"/assets/w._-5LeFVg_7.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-5LeFVg_7.js\"","></script>",2,"modulepreload#/assets/_CYNQgKbT.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CYNQgKbT.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/app-page-D0e78Fao.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-D0e78Fao.css\"",">"],"defer":[2,"/assets/w._-CYXtcUyN.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-CYXtcUyN.js\"","></script>",2,"modulepreload#/assets/_CYNQgKbT.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CYNQgKbT.js\"",">"]}};
|