@dylanpiercey/work 0.0.84 → 0.0.85
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/{_BOcMB3Se.js → _D30X7Qrj.js} +74 -74
- package/dist/{_DGA7IvGR.js → _mv7NEfX0.js} +23 -23
- package/dist/index.mjs +278 -248
- package/dist/public/assets/{_uzKsqP2S2.js → _-WmXU-Ck2.js} +1 -1
- package/dist/public/assets/_-WmXU-Ck2.js.br +0 -0
- package/dist/public/assets/{_C1SKpO2F.js → _-ru5vl7a.js} +1 -1
- package/dist/public/assets/_-ru5vl7a.js.br +0 -0
- package/dist/public/assets/{_BdBy6LnA2.js → _8c-uHmeW2.js} +1 -1
- package/dist/public/assets/_8c-uHmeW2.js.br +0 -0
- package/dist/public/assets/{_CvjWGuVM2.js → _B1Z1hJGn2.js} +1 -1
- package/dist/public/assets/_B1Z1hJGn2.js.br +0 -0
- package/dist/public/assets/{_B92U8Tp7.js → _B21IMSvY.js} +1 -1
- package/dist/public/assets/_B21IMSvY.js.br +0 -0
- package/dist/public/assets/{_BlLM6G-3.js → _BCV01fYS.js} +1 -1
- package/dist/public/assets/_BCV01fYS.js.br +0 -0
- package/dist/public/assets/{_BdaKuAyS.js → _BD8O2K_O.js} +1 -1
- package/dist/public/assets/_BD8O2K_O.js.br +0 -0
- package/dist/public/assets/{_B1ymgFfj2.js → _BFNm4iX52.js} +1 -1
- package/dist/public/assets/_BFNm4iX52.js.br +0 -0
- package/dist/public/assets/{_3kMh5IhJ.js → _BJcu7zuL.js} +1 -1
- package/dist/public/assets/_BJcu7zuL.js.br +0 -0
- package/dist/public/assets/{_CD5Q8H_32.js → _BPLDg25T2.js} +1 -1
- package/dist/public/assets/{_D0gTvz1g.js → _BUXWMqIU.js} +1 -1
- package/dist/public/assets/_BUXWMqIU.js.br +0 -0
- package/dist/public/assets/{_Xj2rl27Z.js → _BXsHAtou.js} +1 -1
- package/dist/public/assets/_BXsHAtou.js.br +0 -0
- package/dist/public/assets/{_BhhKcsqX2.js → _BbigvT1q2.js} +1 -1
- package/dist/public/assets/_BbigvT1q2.js.br +0 -0
- package/dist/public/assets/{_CZj6esI3.js → _BdsfdexS.js} +1 -1
- package/dist/public/assets/_BdsfdexS.js.br +0 -0
- package/dist/public/assets/{_n0XIu-yS.js → _BiTayVh0.js} +1 -1
- package/dist/public/assets/_BiTayVh0.js.br +0 -0
- package/dist/public/assets/{_XEFXK4VK.js → _BjEsAKXh.js} +1 -1
- package/dist/public/assets/_BjEsAKXh.js.br +0 -0
- package/dist/public/assets/{_3yN1Y5sV.js → _BjVUCdYI.js} +1 -1
- package/dist/public/assets/_BjVUCdYI.js.br +0 -0
- package/dist/public/assets/{_BiTLx2mY.js → _BlE98RWB.js} +1 -1
- package/dist/public/assets/_BlE98RWB.js.br +0 -0
- package/dist/public/assets/{_DnIiwZSa.js → _Bpg_ooRv.js} +1 -1
- package/dist/public/assets/_Bpg_ooRv.js.br +0 -0
- package/dist/public/assets/{_CUp_5V1i.js → _BrNrnCdj.js} +1 -1
- package/dist/public/assets/_BrNrnCdj.js.br +0 -0
- package/dist/public/assets/{_B3sLEuiV.js → _BvAqq5m6.js} +1 -1
- package/dist/public/assets/_BvAqq5m6.js.br +0 -0
- package/dist/public/assets/{_DJ1uACXP.js → _BvUZ8h-x.js} +1 -1
- package/dist/public/assets/_BvUZ8h-x.js.br +0 -0
- package/dist/public/assets/{_oEMyCm1C2.js → _ByxTzbwH2.js} +1 -1
- package/dist/public/assets/_ByxTzbwH2.js.br +0 -0
- package/dist/public/assets/{_DuUhapU_.js → _Bz5O3Mrq.js} +1 -1
- package/dist/public/assets/_Bz5O3Mrq.js.br +0 -0
- package/dist/public/assets/{_Bt5o0Oko.js → _C-BzebGR.js} +1 -1
- package/dist/public/assets/_C-BzebGR.js.br +0 -0
- package/dist/public/assets/{_C5BsOZCP.js → _C07OAOG6.js} +1 -1
- package/dist/public/assets/_C07OAOG6.js.br +0 -0
- package/dist/public/assets/{_BvA3FZCL2.js → _C1a8yKxf2.js} +1 -1
- package/dist/public/assets/_C1a8yKxf2.js.br +0 -0
- package/dist/public/assets/{_D4duKQCj.js → _C8oyUxT6.js} +1 -1
- package/dist/public/assets/_C8oyUxT6.js.br +0 -0
- package/dist/public/assets/{_zW6Zb3Bx.js → _CEV-O2hk.js} +1 -1
- package/dist/public/assets/_CEV-O2hk.js.br +0 -0
- package/dist/public/assets/{_D8InHq1c2.js → _CFvnHEVa2.js} +1 -1
- package/dist/public/assets/_CFvnHEVa2.js.br +0 -0
- package/dist/public/assets/{_BMJ4v2Ht.js → _CUFjqbZE.js} +1 -1
- package/dist/public/assets/_CUFjqbZE.js.br +0 -0
- package/dist/public/assets/{_yYMx9Q8s.js → _CV-6gAkw.js} +1 -1
- package/dist/public/assets/_CV-6gAkw.js.br +0 -0
- package/dist/public/assets/{_S4hEqend2.js → _CeI4faG12.js} +1 -1
- package/dist/public/assets/_CeI4faG12.js.br +0 -0
- package/dist/public/assets/{_y1iudyIK2.js → _CeiupuAL2.js} +1 -1
- package/dist/public/assets/_CeiupuAL2.js.br +0 -0
- package/dist/public/assets/{_DV9JOmEU2.js → _CgkfHUqc2.js} +1 -1
- package/dist/public/assets/_CgkfHUqc2.js.br +0 -0
- package/dist/public/assets/{_Dt7xdACi.js → _Chrp8y2F.js} +1 -1
- package/dist/public/assets/_Chrp8y2F.js.br +0 -0
- package/dist/public/assets/{_DtSPvS1_.js → _CtCr-bK2.js} +1 -1
- package/dist/public/assets/_CtCr-bK2.js.br +0 -0
- package/dist/public/assets/{_BOvrqKm-.js → _Cv3WsmqQ.js} +1 -1
- package/dist/public/assets/_Cv3WsmqQ.js.br +0 -0
- package/dist/public/assets/{_ioGYI7CA.js → _Cvt5BAln.js} +1 -1
- package/dist/public/assets/_Cvt5BAln.js.br +0 -0
- package/dist/public/assets/{_UTtFNJ9B.js → _CwZZbyL7.js} +1 -1
- package/dist/public/assets/_CwZZbyL7.js.br +0 -0
- package/dist/public/assets/{_Dzwcxo-e.js → _D88tqCHV.js} +1 -1
- package/dist/public/assets/_D88tqCHV.js.br +0 -0
- package/dist/public/assets/{_DakHZxm1.js → _D8FrQTdt.js} +1 -1
- package/dist/public/assets/_D8FrQTdt.js.br +0 -0
- package/dist/public/assets/{_DH6Nupnh.js → _DDpSvFlC.js} +1 -1
- package/dist/public/assets/_DDpSvFlC.js.br +0 -0
- package/dist/public/assets/{_BEq8K9u02.js → _DDphf7Gv2.js} +1 -1
- package/dist/public/assets/_DDphf7Gv2.js.br +0 -0
- package/dist/public/assets/{_BMrwgW0t2.js → _DEY6fLoS2.js} +1 -1
- package/dist/public/assets/_DEY6fLoS2.js.br +0 -0
- package/dist/public/assets/{_ClUj4A8Z2.js → _DGyPz6VI2.js} +1 -1
- package/dist/public/assets/_DGyPz6VI2.js.br +0 -0
- package/dist/public/assets/{_MLaNsogz.js → _DK9AAOZp.js} +6 -6
- package/dist/public/assets/_DK9AAOZp.js.br +0 -0
- package/dist/public/assets/{_CwBy4cn2.js → _DMz1MwaQ.js} +1 -1
- package/dist/public/assets/_DMz1MwaQ.js.br +0 -0
- package/dist/public/assets/{_CSx-L5pW.js → _DOav6UsU.js} +1 -1
- package/dist/public/assets/_DOav6UsU.js.br +0 -0
- package/dist/public/assets/{_CQFpufIG2.js → _DPz8SQGB2.js} +1 -1
- package/dist/public/assets/_DPz8SQGB2.js.br +0 -0
- package/dist/public/assets/{_DifhWd0-.js → _DQDkXhCW.js} +1 -1
- package/dist/public/assets/{_C5ejgRIo2.js → _DSS7F-KT2.js} +1 -1
- package/dist/public/assets/_DSS7F-KT2.js.br +0 -0
- package/dist/public/assets/{_DnW0vqlP2.js → _DUXtjYQn2.js} +1 -1
- package/dist/public/assets/_DUXtjYQn2.js.br +0 -0
- package/dist/public/assets/{_D2Y6bDDO2.js → _DUko1Sy92.js} +1 -1
- package/dist/public/assets/_DUko1Sy92.js.br +0 -0
- package/dist/public/assets/{_C3n-9E2u.js → _DWhr2Wyd.js} +3 -3
- package/dist/public/assets/_DWhr2Wyd.js.br +0 -0
- package/dist/public/assets/{_DXhrQRPb.js → _DZY5Isxk.js} +1 -1
- package/dist/public/assets/_DZY5Isxk.js.br +0 -0
- package/dist/public/assets/{_BS6XCeVG.js → _D_LErC4-.js} +1 -1
- package/dist/public/assets/_D_LErC4-.js.br +0 -0
- package/dist/public/assets/{_DwFCzFi1.js → _DbfrRxLt.js} +1 -1
- package/dist/public/assets/_DbfrRxLt.js.br +0 -0
- package/dist/public/assets/{_Db0N45S4.js → _DiGtUP0z.js} +1 -1
- package/dist/public/assets/_DiGtUP0z.js.br +0 -0
- package/dist/public/assets/{_Csm5k9KV.js → _DjQpfByq.js} +1 -1
- package/dist/public/assets/_DjQpfByq.js.br +0 -0
- package/dist/public/assets/{_CH8XY8lN2.js → _Djp7iq652.js} +1 -1
- package/dist/public/assets/{_uMuEpH_b.js → _DlNb-fYu.js} +1 -1
- package/dist/public/assets/_DlNb-fYu.js.br +0 -0
- package/dist/public/assets/{_Bwkk6aAB2.js → _Dm07KeQi2.js} +1 -1
- package/dist/public/assets/_Dm07KeQi2.js.br +0 -0
- package/dist/public/assets/{_Cjh4-NxA.js → _Drj40pVX.js} +1 -1
- package/dist/public/assets/_Drj40pVX.js.br +0 -0
- package/dist/public/assets/{_DbgCLxo5.js → _DunIU1gI.js} +1 -1
- package/dist/public/assets/_DunIU1gI.js.br +0 -0
- package/dist/public/assets/{_DXfvbY_Q.js → _DwWcfMba.js} +1 -1
- package/dist/public/assets/_DwWcfMba.js.br +0 -0
- package/dist/public/assets/{_C3iOEbHo.js → _Dxxi3lS5.js} +1 -1
- package/dist/public/assets/_Dxxi3lS5.js.br +0 -0
- package/dist/public/assets/{_DMRTqLA-2.js → _JSFtvHrr2.js} +1 -1
- package/dist/public/assets/_JSFtvHrr2.js.br +0 -0
- package/dist/public/assets/{_DfSfBcFs.js → _SR9h4Okl.js} +1 -1
- package/dist/public/assets/_SR9h4Okl.js.br +0 -0
- package/dist/public/assets/{_Cwjsu6Gg.js → _T9z-lYxT.js} +1 -1
- package/dist/public/assets/_T9z-lYxT.js.br +0 -0
- package/dist/public/assets/{_tdNHQwFq.js → _bAY6mkrH.js} +1 -1
- package/dist/public/assets/_bAY6mkrH.js.br +0 -0
- package/dist/public/assets/{_CbR0Q18b2.js → _igERlCUJ2.js} +1 -1
- package/dist/public/assets/_igERlCUJ2.js.br +0 -0
- package/dist/public/assets/{_CIXAEhbw.js → _nz3ixzI3.js} +1 -1
- package/dist/public/assets/_nz3ixzI3.js.br +0 -0
- package/dist/public/assets/{_CDMbYkZp.js → _tX_6AA9a.js} +1 -1
- package/dist/public/assets/_tX_6AA9a.js.br +0 -0
- package/dist/public/assets/{_BB6pEFnc2.js → _tng7Ctl52.js} +1 -1
- package/dist/public/assets/_tng7Ctl52.js.br +0 -0
- package/dist/public/assets/{_BkmZvC5V.js → _uI46O0Ad.js} +1 -1
- package/dist/public/assets/_uI46O0Ad.js.br +0 -0
- package/dist/public/assets/{app-page-CdVETHL-.css → app-page-CBOLkS3u.css} +1 -1
- package/dist/public/assets/app-page-CBOLkS3u.css.br +0 -0
- package/dist/public/assets/diff-view-Baatv3LB.css +1 -0
- package/dist/public/assets/diff-view-Baatv3LB.css.br +0 -0
- package/dist/public/assets/new-Btf-ladG.js +1 -0
- package/dist/public/assets/settings-Btf-ladG.js +1 -0
- package/dist/public/assets/w-Btf-ladG.js +1 -0
- package/dist/public/assets/w._-Btf-ladG.js +1 -0
- package/dist/public/assets/w._-ihiSObwS.js +1 -0
- package/package.json +1 -1
- package/dist/public/assets/_3kMh5IhJ.js.br +0 -0
- package/dist/public/assets/_3yN1Y5sV.js.br +0 -0
- package/dist/public/assets/_B1ymgFfj2.js.br +0 -0
- package/dist/public/assets/_B3sLEuiV.js.br +0 -0
- package/dist/public/assets/_B92U8Tp7.js.br +0 -0
- package/dist/public/assets/_BB6pEFnc2.js.br +0 -0
- package/dist/public/assets/_BEq8K9u02.js.br +0 -0
- package/dist/public/assets/_BMJ4v2Ht.js.br +0 -0
- package/dist/public/assets/_BMrwgW0t2.js.br +0 -0
- package/dist/public/assets/_BOvrqKm-.js.br +0 -0
- package/dist/public/assets/_BS6XCeVG.js.br +0 -0
- package/dist/public/assets/_BdBy6LnA2.js.br +0 -0
- package/dist/public/assets/_BdaKuAyS.js.br +0 -0
- package/dist/public/assets/_BhhKcsqX2.js.br +0 -0
- package/dist/public/assets/_BiTLx2mY.js.br +0 -0
- package/dist/public/assets/_BkmZvC5V.js.br +0 -0
- package/dist/public/assets/_BlLM6G-3.js.br +0 -0
- package/dist/public/assets/_Bt5o0Oko.js.br +0 -0
- package/dist/public/assets/_BvA3FZCL2.js.br +0 -0
- package/dist/public/assets/_Bwkk6aAB2.js.br +0 -0
- package/dist/public/assets/_C1SKpO2F.js.br +0 -0
- package/dist/public/assets/_C3iOEbHo.js.br +0 -0
- package/dist/public/assets/_C3n-9E2u.js.br +0 -0
- package/dist/public/assets/_C5BsOZCP.js.br +0 -0
- package/dist/public/assets/_C5ejgRIo2.js.br +0 -0
- package/dist/public/assets/_CDMbYkZp.js.br +0 -0
- package/dist/public/assets/_CIXAEhbw.js.br +0 -0
- package/dist/public/assets/_CQFpufIG2.js.br +0 -0
- package/dist/public/assets/_CSx-L5pW.js.br +0 -0
- package/dist/public/assets/_CUp_5V1i.js.br +0 -0
- package/dist/public/assets/_CZj6esI3.js.br +0 -0
- package/dist/public/assets/_CbR0Q18b2.js.br +0 -0
- package/dist/public/assets/_Cjh4-NxA.js.br +0 -0
- package/dist/public/assets/_ClUj4A8Z2.js.br +0 -0
- package/dist/public/assets/_Csm5k9KV.js.br +0 -0
- package/dist/public/assets/_CvjWGuVM2.js.br +0 -0
- package/dist/public/assets/_CwBy4cn2.js.br +0 -0
- package/dist/public/assets/_Cwjsu6Gg.js.br +0 -0
- package/dist/public/assets/_D0gTvz1g.js.br +0 -0
- package/dist/public/assets/_D2Y6bDDO2.js.br +0 -0
- package/dist/public/assets/_D4duKQCj.js.br +0 -0
- package/dist/public/assets/_D8InHq1c2.js.br +0 -0
- package/dist/public/assets/_DH6Nupnh.js.br +0 -0
- package/dist/public/assets/_DJ1uACXP.js.br +0 -0
- package/dist/public/assets/_DMRTqLA-2.js.br +0 -0
- package/dist/public/assets/_DV9JOmEU2.js.br +0 -0
- package/dist/public/assets/_DXfvbY_Q.js.br +0 -0
- package/dist/public/assets/_DXhrQRPb.js.br +0 -0
- package/dist/public/assets/_DakHZxm1.js.br +0 -0
- package/dist/public/assets/_Db0N45S4.js.br +0 -0
- package/dist/public/assets/_DbgCLxo5.js.br +0 -0
- package/dist/public/assets/_DfSfBcFs.js.br +0 -0
- package/dist/public/assets/_DnIiwZSa.js.br +0 -0
- package/dist/public/assets/_DnW0vqlP2.js.br +0 -0
- package/dist/public/assets/_Dt7xdACi.js.br +0 -0
- package/dist/public/assets/_DtSPvS1_.js.br +0 -0
- package/dist/public/assets/_DuUhapU_.js.br +0 -0
- package/dist/public/assets/_DwFCzFi1.js.br +0 -0
- package/dist/public/assets/_Dzwcxo-e.js.br +0 -0
- package/dist/public/assets/_MLaNsogz.js.br +0 -0
- package/dist/public/assets/_S4hEqend2.js.br +0 -0
- package/dist/public/assets/_UTtFNJ9B.js.br +0 -0
- package/dist/public/assets/_XEFXK4VK.js.br +0 -0
- package/dist/public/assets/_Xj2rl27Z.js.br +0 -0
- package/dist/public/assets/_ioGYI7CA.js.br +0 -0
- package/dist/public/assets/_n0XIu-yS.js.br +0 -0
- package/dist/public/assets/_oEMyCm1C2.js.br +0 -0
- package/dist/public/assets/_tdNHQwFq.js.br +0 -0
- package/dist/public/assets/_uMuEpH_b.js.br +0 -0
- package/dist/public/assets/_uzKsqP2S2.js.br +0 -0
- package/dist/public/assets/_y1iudyIK2.js.br +0 -0
- package/dist/public/assets/_yYMx9Q8s.js.br +0 -0
- package/dist/public/assets/_zW6Zb3Bx.js.br +0 -0
- package/dist/public/assets/app-page-CdVETHL-.css.br +0 -0
- package/dist/public/assets/diff-view-DAwAub6l.css +0 -1
- package/dist/public/assets/diff-view-DAwAub6l.css.br +0 -0
- package/dist/public/assets/new-mX2iXBHC.js +0 -1
- package/dist/public/assets/settings-mX2iXBHC.js +0 -1
- package/dist/public/assets/w-mX2iXBHC.js +0 -1
- package/dist/public/assets/w._-DelVj4P_.js +0 -1
- package/dist/public/assets/w._-mX2iXBHC.js +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM, r as __exportAll, t as __commonJSMin } from "./_BMI-E3GI.js";
|
|
2
2
|
import { $ as setSetting, A as setScrapedPhase, B as saveSubscription, C as agentBadge, D as agentMeta, E as agentLabel, F as manifest, G as agentChoices, H as subscribe, I as normalizeAccent, J as enabledAgents, K as allPrefs, L as setInstance, M as ACCENT_RE, N as getInstance, O as clearAgentPhase, P as iconSvg, Q as setPref, R as deleteSubscription, S as blankRow, T as agentFromCommand, U as subscriberCount, V as publish, W as subscriberJoins, X as preferredAgent, Y as getSetting, Z as setDisabledAgents, _ as tmuxName, _t as tmux, a as ensureTmuxServer, at as DEFAULT_GITHUB_HOST, b as readHookPayload, c as killWorkspaceSessions, ct as toolById, d as newSessionArgs, dt as get, et as doctor, ft as workspacePath, g as sessionStates, gt as run, h as sendToSession, ht as git, i as disposeSessions, it as which, j as setSessionViewers, k as setAgentPhase, l as listSessions, lt as all, m as renameSession, mt as gh, n as clearTmuxStarted, nt as miseVersions, o as getSession, ot as TOOLS, p as panePids, pt as TMUX_SOCKET, q as disabledAgents, r as createSession, rt as setupPath, s as killSession, st as agentById, t as cleanEnv, tt as ghKnownHosts, u as markTmuxStarted, ut as db, v as tmuxWasStarted, vt as config, w as agentFamily, x as reportsWorking, y as AGENTS, z as pushPublicKey } from "./_CExzMbX7.js";
|
|
3
|
-
import { $ as _el_resume, A as iconBtnRow, B as _attr_input_value, C as icon_base_default, Ct as _trailers, D as btnLg, Dt as withPageAssets, E as setPrimaryHost, Et as attrTag, F as tone, G as _attrs, H as _attr_or, I as $global, J as _content, K as _attrs_partial, L as _attr, M as inputLg, N as metaTrunc, O as btnSm, Ot as writeScope, P as phase, Q as _el_read_error, R as _attr_class, S as icon_xmark_default, St as _to_text, T as repoWebUrl$1, Tt as _var, U as _attr_select_value, V as _attr_option_value, W as _attr_style, X as _dynamic_tag, Y as _content_resume, _ as icon_refresh_default, _t as _serialize_guard, at as _hoist_read_error, b as sectionCount$1, bt as _subscribe, ct as _if, d as sideNavOpen, dt as _resume_branch, et as _escape, f as workspaceTab, ft as _scope_id, g as icon_back_default, gt as _sep, h as icon_search_default, ht as _script, it as _hoist, j as iconBtnXs, lt as _peek_scope_id, m as rankRepos, mt as _scope_with_id, n as findInput, nt as _flush_head, ot as _html, pt as _scope_reason, q as _await, r as icon_sidebar_default, rt as _for_of, st as _id, t as findIconBtn, tt as _existing_scope, u as setWorkspaceTab, ut as _resume, v as iconBtn$2, vt as _serialize_if, w as repoLabel, wt as _try, x as toast_default, xt as _template, y as row, yt as _set_serialize_reason } from "./
|
|
3
|
+
import { $ as _el_resume, A as iconBtnRow, B as _attr_input_value, C as icon_base_default, Ct as _trailers, D as btnLg, Dt as withPageAssets, E as setPrimaryHost, Et as attrTag, F as tone, G as _attrs, H as _attr_or, I as $global, J as _content, K as _attrs_partial, L as _attr, M as inputLg, N as metaTrunc, O as btnSm, Ot as writeScope, P as phase, Q as _el_read_error, R as _attr_class, S as icon_xmark_default, St as _to_text, T as repoWebUrl$1, Tt as _var, U as _attr_select_value, V as _attr_option_value, W as _attr_style, X as _dynamic_tag, Y as _content_resume, _ as icon_refresh_default, _t as _serialize_guard, at as _hoist_read_error, b as sectionCount$1, bt as _subscribe, ct as _if, d as sideNavOpen, dt as _resume_branch, et as _escape, f as workspaceTab, ft as _scope_id, g as icon_back_default, gt as _sep, h as icon_search_default, ht as _script, it as _hoist, j as iconBtnXs, lt as _peek_scope_id, m as rankRepos, mt as _scope_with_id, n as findInput, nt as _flush_head, ot as _html, pt as _scope_reason, q as _await, r as icon_sidebar_default, rt as _for_of, st as _id, t as findIconBtn, tt as _existing_scope, u as setWorkspaceTab, ut as _resume, v as iconBtn$2, vt as _serialize_if, w as repoLabel, wt as _try, x as toast_default, xt as _template, y as row, yt as _set_serialize_reason } from "./_mv7NEfX0.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
import path from "node:path";
|
|
@@ -3349,26 +3349,26 @@ function applyInstance(inst) {
|
|
|
3349
3349
|
}
|
|
3350
3350
|
//#endregion
|
|
3351
3351
|
//#region src/tags/settings-page.css.ts
|
|
3352
|
-
var content$2 = "_b_
|
|
3353
|
-
var agentGrid = "_cd
|
|
3354
|
-
var toolGrid = "_cn
|
|
3352
|
+
var content$2 = "_b_ _bk _bl";
|
|
3353
|
+
var agentGrid = "_cd _bv";
|
|
3354
|
+
var toolGrid = "_cn _bv";
|
|
3355
3355
|
//#endregion
|
|
3356
3356
|
//#region src/tags/page-head.marko
|
|
3357
3357
|
var page_head_default = _template("q", (input) => {
|
|
3358
3358
|
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);
|
|
3359
3359
|
const $scope0_id = _scope_id();
|
|
3360
|
-
_html(`<header${_attr_class("
|
|
3360
|
+
_html(`<header${_attr_class("_bm")}>`);
|
|
3361
3361
|
_if(() => {
|
|
3362
3362
|
if (input.backHref) {
|
|
3363
3363
|
const $scope1_id = _scope_id();
|
|
3364
|
-
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "
|
|
3364
|
+
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_cV"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
3365
3365
|
icon_back_default({ size: 16 });
|
|
3366
3366
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
3367
3367
|
_serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
|
|
3368
3368
|
return 0;
|
|
3369
3369
|
} else if (input.onBack) {
|
|
3370
3370
|
const $scope2_id = _scope_id();
|
|
3371
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
3371
|
+
_html(`<button${_attr_class([iconBtnRow, "_cV"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
3372
3372
|
icon_back_default({ size: 16 });
|
|
3373
3373
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
3374
3374
|
_script($scope2_id, "q0");
|
|
@@ -3376,11 +3376,11 @@ var page_head_default = _template("q", (input) => {
|
|
|
3376
3376
|
return 1;
|
|
3377
3377
|
}
|
|
3378
3378
|
}, $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);
|
|
3379
|
-
_html(`<div${_attr_class("
|
|
3379
|
+
_html(`<div${_attr_class("_bo")}><h1${_attr("id", input.titleId)}${_attr_class("_bn")}>${_escape(input.title)}${_el_resume($scope0_id, "e", _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
|
|
3380
3380
|
_if(() => {
|
|
3381
3381
|
if (input.meta) {
|
|
3382
3382
|
const $scope3_id = _scope_id();
|
|
3383
|
-
_html(`<p${_attr_class("
|
|
3383
|
+
_html(`<p${_attr_class("_bp")}>`);
|
|
3384
3384
|
_dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
3385
3385
|
_html("</p>");
|
|
3386
3386
|
$si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -3391,7 +3391,7 @@ var page_head_default = _template("q", (input) => {
|
|
|
3391
3391
|
_if(() => {
|
|
3392
3392
|
if (input.actions) {
|
|
3393
3393
|
const $scope4_id = _scope_id();
|
|
3394
|
-
_html(`<div${_attr_class("
|
|
3394
|
+
_html(`<div${_attr_class("_bq")}>`);
|
|
3395
3395
|
_dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
3396
3396
|
_html("</div>");
|
|
3397
3397
|
$si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -3419,7 +3419,7 @@ var icon_agent_default = _template("E", (input) => {
|
|
|
3419
3419
|
_if(() => {
|
|
3420
3420
|
if (d) {
|
|
3421
3421
|
const $scope1_id = _scope_id();
|
|
3422
|
-
_html(`<svg${_attr_class(["
|
|
3422
|
+
_html(`<svg${_attr_class(["_e", input.class])}${_attr("width", size)}${_attr("height", size)} viewBox="0 0 24 24" fill=currentColor fill-rule=evenodd aria-hidden=true><path${_attr("d", d)}></path>${_el_resume($scope1_id, "b", $sg__input_agent)}`);
|
|
3423
3423
|
_if(() => {
|
|
3424
3424
|
if (badge) {
|
|
3425
3425
|
const $scope3_id = _scope_id();
|
|
@@ -3459,7 +3459,7 @@ var icon_agent_default = _template("E", (input) => {
|
|
|
3459
3459
|
n: $badge__closures
|
|
3460
3460
|
});
|
|
3461
3461
|
});
|
|
3462
|
-
var usageNote = "
|
|
3462
|
+
var usageNote = "_de _M";
|
|
3463
3463
|
//#endregion
|
|
3464
3464
|
//#region src/tags/usage-meters.marko
|
|
3465
3465
|
function duration(ms) {
|
|
@@ -3483,11 +3483,11 @@ var usage_meters_default = _template("B", (input) => {
|
|
|
3483
3483
|
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);
|
|
3484
3484
|
const $scope0_id = _scope_id();
|
|
3485
3485
|
const agent = input.agent;
|
|
3486
|
-
_html(`<div${_attr_class(["
|
|
3486
|
+
_html(`<div${_attr_class(["_c9", { ["_c_"]: input.hideName }])}><div${_attr_class("_da")}>`);
|
|
3487
3487
|
_if(() => {
|
|
3488
3488
|
if (!input.hideName) {
|
|
3489
3489
|
const $scope1_id = _scope_id();
|
|
3490
|
-
_html(`<strong${_attr_class("
|
|
3490
|
+
_html(`<strong${_attr_class("_dt")}>${_escape(agent.agent)}${_el_resume($scope1_id, "b", $sg__input_agent)}</strong>`);
|
|
3491
3491
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
3492
3492
|
return 0;
|
|
3493
3493
|
}
|
|
@@ -3495,7 +3495,7 @@ var usage_meters_default = _template("B", (input) => {
|
|
|
3495
3495
|
_if(() => {
|
|
3496
3496
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
3497
3497
|
const $scope2_id = _scope_id();
|
|
3498
|
-
_html(`<span${_attr_class("
|
|
3498
|
+
_html(`<span${_attr_class("_db")}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope2_id, "b", $sg__input_agent)}</span>`);
|
|
3499
3499
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
3500
3500
|
return 0;
|
|
3501
3501
|
}
|
|
@@ -3503,19 +3503,19 @@ var usage_meters_default = _template("B", (input) => {
|
|
|
3503
3503
|
_if(() => {
|
|
3504
3504
|
if (agent.stale_seconds != null) {
|
|
3505
3505
|
const $scope3_id = _scope_id();
|
|
3506
|
-
_html(`<span${_attr_class("
|
|
3506
|
+
_html(`<span${_attr_class("_dc")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>⚠ ${_sep($sg__input_agent)}${_escape(duration(agent.stale_seconds * 1e3))}${_el_resume($scope3_id, "b", $sg__input_agent)} old</span>${_el_resume($scope3_id, "a", $sg__input_agent)}`);
|
|
3507
3507
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
3508
3508
|
return 0;
|
|
3509
3509
|
}
|
|
3510
3510
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
3511
|
-
_html(`</div><div${_attr_class(["
|
|
3511
|
+
_html(`</div><div${_attr_class(["_dd", { ["_du"]: agent.stale_seconds != null }])}>`);
|
|
3512
3512
|
_for_of(agent.windows || [], (win) => {
|
|
3513
3513
|
const $scope4_id = _scope_id();
|
|
3514
3514
|
const pct = pctText$1(win.used_percent);
|
|
3515
3515
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
3516
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
3517
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
3518
|
-
_html(`<div${_attr_class("
|
|
3516
|
+
const fillClass = win.used_percent >= 90 ? "_dm" : win.used_percent >= 70 ? "_dl" : win.used_percent >= 40 ? "_dk" : "_dj";
|
|
3517
|
+
const pctClass = win.used_percent >= 90 ? "_dr" : win.used_percent >= 70 ? "_dq" : win.used_percent >= 40 ? "_dp" : "_do";
|
|
3518
|
+
_html(`<div${_attr_class("_df")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_dg")}>${_escape(win.window)}${_el_resume($scope4_id, "c", $sg__input_agent)}</span><span${_attr_class("_dh")}><span${_attr_class(["_di", 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(["_dn", pctClass])}>${_escape(pct)}${_el_resume($scope4_id, "g", $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_ds")}>${label ? `↻ ${_escape(`${_to_text(label)}`)}` : ""}${_el_resume($scope4_id, "i", $sg__input_agent)}</span></div>${_el_resume($scope4_id, "a", $sg__input_agent)}`);
|
|
3519
3519
|
$si__input_agent && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
3520
3520
|
}, "window", $scope0_id, "g", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
3521
3521
|
_if(() => {
|
|
@@ -3574,7 +3574,7 @@ var modal_view_default = _template("o", (input) => {
|
|
|
3574
3574
|
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;
|
|
3575
3575
|
const dismissable = input.dismissable !== false;
|
|
3576
3576
|
let open = input.open;
|
|
3577
|
-
_html(`<dialog${_attr_class(["
|
|
3577
|
+
_html(`<dialog${_attr_class(["_eZ", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
3578
3578
|
...htmlInput,
|
|
3579
3579
|
open: null
|
|
3580
3580
|
}, {
|
|
@@ -3584,22 +3584,22 @@ var modal_view_default = _template("o", (input) => {
|
|
|
3584
3584
|
closedby: 1,
|
|
3585
3585
|
"on-cancel": 1,
|
|
3586
3586
|
"on-close": 1
|
|
3587
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
3587
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_e0")}>`);
|
|
3588
3588
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
3589
3589
|
_html("</div>");
|
|
3590
3590
|
_if(() => {
|
|
3591
3591
|
if (footer) {
|
|
3592
3592
|
const $scope1_id = _scope_id();
|
|
3593
|
-
_html(`<form method=dialog${_attr_class("
|
|
3593
|
+
_html(`<form method=dialog${_attr_class("_e1")}>`);
|
|
3594
3594
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
3595
3595
|
_html("</form>");
|
|
3596
3596
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
3597
3597
|
return 0;
|
|
3598
3598
|
} else if (input.openChange) {
|
|
3599
3599
|
const $scope2_id = _scope_id();
|
|
3600
|
-
_html(`<form method=dialog${_attr_class("
|
|
3600
|
+
_html(`<form method=dialog${_attr_class("_e1")}>`);
|
|
3601
3601
|
dialog_close_default({
|
|
3602
|
-
class: ["
|
|
3602
|
+
class: ["_i", "_j"],
|
|
3603
3603
|
content: _content("o0", () => {
|
|
3604
3604
|
_scope_reason();
|
|
3605
3605
|
_scope_id();
|
|
@@ -3663,9 +3663,9 @@ var prompt_dialog_default = _template("r", (input) => {
|
|
|
3663
3663
|
footer: attrTag({ content: _content_resume("r5", () => {
|
|
3664
3664
|
_scope_reason();
|
|
3665
3665
|
const $scope1_id = _scope_id();
|
|
3666
|
-
_html(`<button type=button${_attr_class(["
|
|
3666
|
+
_html(`<button type=button${_attr_class(["_i", "_j"])}${_attr("disabled", !value.trim())}>${_escape(input.submitLabel || "OK")}${_el_resume($scope1_id, "b", _serialize_guard($scope0_reason, 4))}</button>${_el_resume($scope1_id, "a")}<div${_attr_class("_s")}></div>`);
|
|
3667
3667
|
dialog_close_default({
|
|
3668
|
-
class: "
|
|
3668
|
+
class: "_i",
|
|
3669
3669
|
content: _content("r2", () => {
|
|
3670
3670
|
_scope_reason();
|
|
3671
3671
|
_scope_id();
|
|
@@ -3980,7 +3980,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
3980
3980
|
const appearanceId = _id();
|
|
3981
3981
|
const githubId = _id();
|
|
3982
3982
|
const machineId = _id();
|
|
3983
|
-
_html(`<div${_attr_class("
|
|
3983
|
+
_html(`<div${_attr_class("_bi")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bj")}><div${_attr_class(content$2)}>`);
|
|
3984
3984
|
_set_serialize_reason({
|
|
3985
3985
|
0: _serialize_guard($scope0_reason, 3),
|
|
3986
3986
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -4025,7 +4025,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4025
4025
|
const $childScope = _peek_scope_id();
|
|
4026
4026
|
icon_refresh_default({
|
|
4027
4027
|
size: 14,
|
|
4028
|
-
class: refreshing && "
|
|
4028
|
+
class: refreshing && "_y"
|
|
4029
4029
|
});
|
|
4030
4030
|
_html(`</button>${_el_resume($scope10_id, "a")}`);
|
|
4031
4031
|
_script($scope10_id, "u27");
|
|
@@ -4056,11 +4056,11 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4056
4056
|
return 0;
|
|
4057
4057
|
}
|
|
4058
4058
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
4059
|
-
_html(`<section${_attr_class("
|
|
4059
|
+
_html(`<section${_attr_class("_bs")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bt")}><h2${_attr("id", agentsId)}${_attr_class("_bH")}>Agents</h2><div${_attr_class("_s")}></div><label${_attr_class("_cf")}><span${_attr_class("_M")}>Default</span><span${_attr_class("_g")}>`);
|
|
4060
4060
|
_attr_select_value($scope0_id, "m", input.preferred, _resume(function(v) {
|
|
4061
4061
|
setPreferred(v);
|
|
4062
4062
|
}, "u1", $scope0_id), () => {
|
|
4063
|
-
_html(`<select${_attr_class(["
|
|
4063
|
+
_html(`<select${_attr_class(["_h", "_cg"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
|
|
4064
4064
|
_for_of(input.agents.filter((a) => a !== "shell"), (id) => {
|
|
4065
4065
|
const $scope48_id = _scope_id();
|
|
4066
4066
|
_html(`<option${_attr_option_value(id)}>${_escape(agentLabel(id))}${_el_resume($scope48_id, "b", $sg__input_agents)}</option>${_el_resume($scope48_id, "a", $sg__input_agents)}`);
|
|
@@ -4072,7 +4072,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4072
4072
|
const $childScope3 = _peek_scope_id();
|
|
4073
4073
|
icon_refresh_default({
|
|
4074
4074
|
size: 14,
|
|
4075
|
-
class: usageRefreshing && "
|
|
4075
|
+
class: usageRefreshing && "_y"
|
|
4076
4076
|
});
|
|
4077
4077
|
_html(`</button>${_el_resume($scope0_id, "n")}</div><ul${_attr_class(agentGrid)}>`);
|
|
4078
4078
|
_for_of(families, (a) => {
|
|
@@ -4081,18 +4081,18 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4081
4081
|
const rows = lone ? [] : a.instances;
|
|
4082
4082
|
const loneAccounts = lone && lone.enabled ? accountsFor(lone.id) : [];
|
|
4083
4083
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
4084
|
-
_html(`<li${_attr_class(["
|
|
4084
|
+
_html(`<li${_attr_class(["_bx", "_ce"])}><div${_attr_class(["_ch", { ["_ck"]: lone && !lone.enabled }])}>`);
|
|
4085
4085
|
_set_serialize_reason(12);
|
|
4086
4086
|
const $childScope4 = _peek_scope_id();
|
|
4087
4087
|
icon_agent_default({
|
|
4088
4088
|
agent: a.id,
|
|
4089
4089
|
size: 18
|
|
4090
4090
|
});
|
|
4091
|
-
_html(`<div${_attr_class("
|
|
4091
|
+
_html(`<div${_attr_class("_by")}><span${_attr_class("_bA")}><span${_attr_class("_bz")}>${_escape(a.label)}${_el_resume($scope1_id, "g")}</span>`);
|
|
4092
4092
|
_if(() => {
|
|
4093
4093
|
if (lone && input.preferred === lone.id) {
|
|
4094
4094
|
const $scope49_id = _scope_id();
|
|
4095
|
-
_html(`<span${_attr_class(["
|
|
4095
|
+
_html(`<span${_attr_class(["_C", tone.accent])}>default</span>`);
|
|
4096
4096
|
writeScope($scope49_id, {});
|
|
4097
4097
|
return 0;
|
|
4098
4098
|
}
|
|
@@ -4101,12 +4101,12 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4101
4101
|
_if(() => {
|
|
4102
4102
|
if (active.has(a.id)) {
|
|
4103
4103
|
const $scope11_id = _scope_id();
|
|
4104
|
-
_html(`<span${_attr_class("_ca")}><span${_attr_class("
|
|
4104
|
+
_html(`<span${_attr_class("_ca")}><span${_attr_class("_z")}></span><!>${_escape(active.get(a.id) || "Starting…")}${_el_resume($scope11_id, "c")}</span>`);
|
|
4105
4105
|
_subscribe($active__closures, writeScope($scope11_id, {}));
|
|
4106
4106
|
return 0;
|
|
4107
4107
|
} else if (!a.installed) {
|
|
4108
4108
|
const $scope50_id = _scope_id();
|
|
4109
|
-
_html(`<span${_attr_class("
|
|
4109
|
+
_html(`<span${_attr_class("_bB")}>Not installed</span>`);
|
|
4110
4110
|
writeScope($scope50_id, {});
|
|
4111
4111
|
return 1;
|
|
4112
4112
|
}
|
|
@@ -4125,8 +4125,8 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4125
4125
|
if (lone) {
|
|
4126
4126
|
const $scope43_id = _scope_id();
|
|
4127
4127
|
_html(`<button${_attr_class([
|
|
4128
|
-
"
|
|
4129
|
-
"
|
|
4128
|
+
"_C",
|
|
4129
|
+
"_E",
|
|
4130
4130
|
{ [tone.ok]: lone.enabled }
|
|
4131
4131
|
])} role=switch aria-checked=${lone.enabled ? "true" : "false"} title=${lone.enabled ? "\"Shown in session pickers. Hide it\"" : "\"Hidden from session pickers. Show it\""}>${lone.enabled ? "on" : "off"}${_el_resume($scope43_id, "b")}</button>${_el_resume($scope43_id, "a")}`);
|
|
4132
4132
|
_script($scope43_id, "u32");
|
|
@@ -4149,18 +4149,18 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4149
4149
|
agent: inst.id,
|
|
4150
4150
|
size: 15
|
|
4151
4151
|
});
|
|
4152
|
-
_html(`<span${_attr_class(["_cl", "
|
|
4152
|
+
_html(`<span${_attr_class(["_cl", "_r"])}>${_escape(inst.command)}${_el_resume($scope3_id, "e")}</span>`);
|
|
4153
4153
|
_if(() => {
|
|
4154
4154
|
if (input.preferred === inst.id) {
|
|
4155
4155
|
const $scope51_id = _scope_id();
|
|
4156
|
-
_html(`<span${_attr_class(["
|
|
4156
|
+
_html(`<span${_attr_class(["_C", tone.accent])}>default</span>`);
|
|
4157
4157
|
writeScope($scope51_id, {});
|
|
4158
4158
|
return 0;
|
|
4159
4159
|
}
|
|
4160
4160
|
}, $scope3_id, "f", 1, 1, 1, 0, 1);
|
|
4161
|
-
_html(`<span${_attr_class("
|
|
4162
|
-
"
|
|
4163
|
-
"
|
|
4161
|
+
_html(`<span${_attr_class("_s")}></span><button${_attr_class([
|
|
4162
|
+
"_C",
|
|
4163
|
+
"_E",
|
|
4164
4164
|
{ [tone.ok]: inst.enabled }
|
|
4165
4165
|
])} role=switch aria-checked=${inst.enabled ? "true" : "false"} title=${inst.enabled ? "\"Shown in session pickers. Hide it\"" : "\"Hidden from session pickers. Show it\""}>${inst.enabled ? "on" : "off"}${_el_resume($scope3_id, "i")}</button>${_el_resume($scope3_id, "h")}</div>${_el_resume($scope3_id, "b")}`);
|
|
4166
4166
|
_for_of(accounts, (u) => {
|
|
@@ -4224,7 +4224,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4224
4224
|
}, "id", $scope0_id, "q", 1, 1, 1, 0, 1);
|
|
4225
4225
|
_for_of(otherUsage, (u) => {
|
|
4226
4226
|
const $scope55_id = _scope_id();
|
|
4227
|
-
_html(`<li${_attr_class(["
|
|
4227
|
+
_html(`<li${_attr_class(["_bx", "_ce"])}>`);
|
|
4228
4228
|
_set_serialize_reason(6);
|
|
4229
4229
|
const $childScope9 = _peek_scope_id();
|
|
4230
4230
|
usage_meters_default({ agent: u });
|
|
@@ -4235,25 +4235,25 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4235
4235
|
_if(() => {
|
|
4236
4236
|
if (!usage && families.length) {
|
|
4237
4237
|
const $scope56_id = _scope_id();
|
|
4238
|
-
_html(`<p${_attr_class("
|
|
4238
|
+
_html(`<p${_attr_class("_bD")}><span${_attr_class("_z")}></span> Loading usage…</p>`);
|
|
4239
4239
|
writeScope($scope56_id, {});
|
|
4240
4240
|
return 0;
|
|
4241
4241
|
} else if (usage?.error) {
|
|
4242
4242
|
const $scope7_id = _scope_id();
|
|
4243
|
-
_html(`<p${_attr_class("
|
|
4243
|
+
_html(`<p${_attr_class("_bD")}>${_escape(usage.error)}${_el_resume($scope7_id, "b")}</p>`);
|
|
4244
4244
|
writeScope($scope7_id, {});
|
|
4245
4245
|
return 1;
|
|
4246
4246
|
}
|
|
4247
4247
|
}, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
4248
|
-
_html(`</section><section${_attr_class("
|
|
4248
|
+
_html(`</section><section${_attr_class("_bs")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_bt")}><h2${_attr("id", githubId)}${_attr_class("_bH")}>GitHub</h2></div><ul${_attr_class("_bv")}>`);
|
|
4249
4249
|
_for_of(setup?.github || [], (h) => {
|
|
4250
4250
|
const $scope12_id = _scope_id();
|
|
4251
4251
|
const $for_content4__h_host__closures = /* @__PURE__ */ new Set();
|
|
4252
|
-
_html(`<li${_attr_class("
|
|
4252
|
+
_html(`<li${_attr_class("_bx")}><div${_attr_class("_by")}><span${_attr_class("_bA")}><span${_attr_class(["_bz", "_r"])}>${_escape(h.host)}${_el_resume($scope12_id, "e")}</span>`);
|
|
4253
4253
|
_if(() => {
|
|
4254
4254
|
if (h.isEnterprise) {
|
|
4255
4255
|
const $scope59_id = _scope_id();
|
|
4256
|
-
_html(`<span${_attr_class("
|
|
4256
|
+
_html(`<span${_attr_class("_C")}>Enterprise</span>`);
|
|
4257
4257
|
writeScope($scope59_id, {});
|
|
4258
4258
|
return 0;
|
|
4259
4259
|
}
|
|
@@ -4262,22 +4262,22 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4262
4262
|
_if(() => {
|
|
4263
4263
|
if (active.has(h.host) && authCodes.has(h.host)) {
|
|
4264
4264
|
const $scope23_id = _scope_id();
|
|
4265
|
-
_html(`<span${_attr_class("_ca")}><span${_attr_class("
|
|
4265
|
+
_html(`<span${_attr_class("_ca")}><span${_attr_class("_z")}></span> Enter code <strong${_attr_class("_cu")}>${_escape(authCodes.get(h.host))}${_el_resume($scope23_id, "d")}</strong> at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_cv")}>${_escape(h.host)}${_el_resume($scope23_id, "f")}/login/device</a>${_el_resume($scope23_id, "e")}</span>`);
|
|
4266
4266
|
_subscribe($authCodes__closures, writeScope($scope23_id, {}));
|
|
4267
4267
|
return 0;
|
|
4268
4268
|
} else if (active.has(h.host)) {
|
|
4269
4269
|
const $scope13_id = _scope_id();
|
|
4270
|
-
_html(`<span${_attr_class("_ca")}><span${_attr_class("
|
|
4270
|
+
_html(`<span${_attr_class("_ca")}><span${_attr_class("_z")}></span><!>${_escape(active.get(h.host) || "Starting…")}${_el_resume($scope13_id, "c")}</span>`);
|
|
4271
4271
|
_subscribe($active__closures, writeScope($scope13_id, { Cdo: 1 }));
|
|
4272
4272
|
return 1;
|
|
4273
4273
|
} else if (h.authed) {
|
|
4274
4274
|
const $scope57_id = _scope_id();
|
|
4275
|
-
_html(`<span${_attr_class("
|
|
4275
|
+
_html(`<span${_attr_class("_bB")}>Signed in<!>${h.user ? ` as ${_escape(`${_to_text(h.user)}`)}` : ""}${_el_resume($scope57_id, "b")}</span>`);
|
|
4276
4276
|
writeScope($scope57_id, {});
|
|
4277
4277
|
return 2;
|
|
4278
4278
|
} else {
|
|
4279
4279
|
const $scope58_id = _scope_id();
|
|
4280
|
-
_html(`<span${_attr_class("
|
|
4280
|
+
_html(`<span${_attr_class("_bB")}>${_escape(h.error || "Not signed in")}${_el_resume($scope58_id, "b")}</span>`);
|
|
4281
4281
|
writeScope($scope58_id, {});
|
|
4282
4282
|
return 3;
|
|
4283
4283
|
}
|
|
@@ -4296,8 +4296,8 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4296
4296
|
} else {
|
|
4297
4297
|
const $scope25_id = _scope_id();
|
|
4298
4298
|
_html(`<button${_attr_class([btnSm, {
|
|
4299
|
-
["
|
|
4300
|
-
["
|
|
4299
|
+
["_l"]: confirmingRemove === `out:${h.host}`,
|
|
4300
|
+
["_k"]: confirmingRemove === `out:${h.host}`
|
|
4301
4301
|
}])}${confirmingRemove === `out:${h.host}` ? _attr("title", `Sign out of ${h.host}?`) : _attr("title", `Sign out of ${h.host}`)}>${confirmingRemove === `out:${h.host}` ? "Sign out?" : "Sign out"}${_el_resume($scope25_id, "b")}</button>${_el_resume($scope25_id, "a")}`);
|
|
4302
4302
|
_script($scope25_id, "u35");
|
|
4303
4303
|
_subscribe($for_content4__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope25_id, {})));
|
|
@@ -4308,10 +4308,10 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4308
4308
|
if (h.isEnterprise) {
|
|
4309
4309
|
const $scope26_id = _scope_id();
|
|
4310
4310
|
_html(`<button${_attr_class([
|
|
4311
|
-
"
|
|
4312
|
-
"
|
|
4313
|
-
"
|
|
4314
|
-
{ ["
|
|
4311
|
+
"_bC",
|
|
4312
|
+
"_W",
|
|
4313
|
+
"_X",
|
|
4314
|
+
{ ["_k"]: confirmingRemove === h.host }
|
|
4315
4315
|
])}${confirmingRemove === h.host ? _attr("title", `Forget ${h.host}? (gh stays signed in)`) : _attr("title", `Forget ${h.host}`)}>`);
|
|
4316
4316
|
_if(() => {
|
|
4317
4317
|
if (confirmingRemove === h.host) {
|
|
@@ -4351,7 +4351,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4351
4351
|
_if(() => {
|
|
4352
4352
|
if (setup && !setup.github.length) {
|
|
4353
4353
|
const $scope62_id = _scope_id();
|
|
4354
|
-
_html(`<p${_attr_class("
|
|
4354
|
+
_html(`<p${_attr_class("_bD")}>Install the GitHub CLI below to sign in.</p>`);
|
|
4355
4355
|
writeScope($scope62_id, {});
|
|
4356
4356
|
return 0;
|
|
4357
4357
|
}
|
|
@@ -4359,20 +4359,20 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4359
4359
|
_if(() => {
|
|
4360
4360
|
if (setup) {
|
|
4361
4361
|
const $scope34_id = _scope_id();
|
|
4362
|
-
_html(`<form${_attr_class("_ct")}><label${_attr_class("
|
|
4362
|
+
_html(`<form${_attr_class("_ct")}><label${_attr_class("_Q")}>`);
|
|
4363
4363
|
icon_plus_default({
|
|
4364
4364
|
size: 14,
|
|
4365
|
-
class: "
|
|
4365
|
+
class: "_R"
|
|
4366
4366
|
});
|
|
4367
4367
|
_html(`<input${_attr_input_value($scope34_id, "d", hostInput, _resume((_new_hostInput) => {
|
|
4368
4368
|
hostInput = _new_hostInput;
|
|
4369
|
-
}, "u2", $scope34_id))}${_attr_class([inputLg, "
|
|
4369
|
+
}, "u2", $scope34_id))}${_attr_class([inputLg, "_S"])} type=text placeholder="Add a GitHub Enterprise host, e.g. github.example.com" aria-label="GitHub Enterprise host" autocomplete=off spellcheck=false>${_el_resume($scope34_id, "d")}</label><button${_attr_class(btnSm)} type=submit${_attr("disabled", !hostInput.trim() || hostBusy)}>${hostBusy ? "Adding…" : "Add host"}${_el_resume($scope34_id, "f")}</button>${_el_resume($scope34_id, "e")}</form>${_el_resume($scope34_id, "a")}`);
|
|
4370
4370
|
_script($scope34_id, "u37");
|
|
4371
4371
|
writeScope($scope34_id, {});
|
|
4372
4372
|
return 0;
|
|
4373
4373
|
}
|
|
4374
4374
|
}, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
4375
|
-
_html(`</section><section${_attr_class("
|
|
4375
|
+
_html(`</section><section${_attr_class("_bs")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_bt")}><h2${_attr("id", machineId)}${_attr_class("_bH")}>Machine</h2>`);
|
|
4376
4376
|
_if(() => {
|
|
4377
4377
|
if (missingCount) {
|
|
4378
4378
|
const $scope44_id = _scope_id();
|
|
@@ -4389,7 +4389,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4389
4389
|
return 0;
|
|
4390
4390
|
}
|
|
4391
4391
|
}, $scope0_id, "a3", 1, 1, 1, 0, 1);
|
|
4392
|
-
_html(`<div${_attr_class("
|
|
4392
|
+
_html(`<div${_attr_class("_s")}></div>`);
|
|
4393
4393
|
_if(() => {
|
|
4394
4394
|
if (outdatedIds.length > 1) {
|
|
4395
4395
|
const $scope14_id = _scope_id();
|
|
@@ -4412,7 +4412,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4412
4412
|
_if(() => {
|
|
4413
4413
|
if (setup && !setup.mise.installed) {
|
|
4414
4414
|
const $scope16_id = _scope_id();
|
|
4415
|
-
_html(`<p${_attr_class("
|
|
4415
|
+
_html(`<p${_attr_class("_bD")}>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($scope16_id, "c")}</button>${_el_resume($scope16_id, "b")}</p>`);
|
|
4416
4416
|
_script($scope16_id, "u40");
|
|
4417
4417
|
writeScope($scope16_id, {});
|
|
4418
4418
|
return 0;
|
|
@@ -4422,16 +4422,16 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4422
4422
|
_if(() => {
|
|
4423
4423
|
if (self) {
|
|
4424
4424
|
const $scope36_id = _scope_id();
|
|
4425
|
-
_html(`<li${_attr_class(row)}><span${_attr_class(["_cp", "
|
|
4425
|
+
_html(`<li${_attr_class(row)}><span${_attr_class(["_cp", "_r"])}>work</span>`);
|
|
4426
4426
|
_if(() => {
|
|
4427
4427
|
if (selfUpdating) {
|
|
4428
4428
|
const $scope63_id = _scope_id();
|
|
4429
|
-
_html(`<span${_attr_class("_ca")}><span${_attr_class("
|
|
4429
|
+
_html(`<span${_attr_class("_ca")}><span${_attr_class("_z")}></span>Updating — the app restarts and reloads when it is done…</span>`);
|
|
4430
4430
|
writeScope($scope63_id, {});
|
|
4431
4431
|
return 0;
|
|
4432
4432
|
} else {
|
|
4433
4433
|
const $scope37_id = _scope_id();
|
|
4434
|
-
_html(`<span${_attr_class(["
|
|
4434
|
+
_html(`<span${_attr_class(["_r", metaTrunc])} title="Running version">v<!>${_escape(self.version)}${_el_resume($scope37_id, "b")}</span>`);
|
|
4435
4435
|
_if(() => {
|
|
4436
4436
|
if (self.install === "source") {
|
|
4437
4437
|
const $scope64_id = _scope_id();
|
|
@@ -4455,11 +4455,11 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4455
4455
|
return 1;
|
|
4456
4456
|
}
|
|
4457
4457
|
}, $scope36_id, "c");
|
|
4458
|
-
_html(`<span${_attr_class("
|
|
4458
|
+
_html(`<span${_attr_class("_s")}></span>`);
|
|
4459
4459
|
_if(() => {
|
|
4460
4460
|
if (!selfUpdating) {
|
|
4461
4461
|
const $scope66_id = _scope_id();
|
|
4462
|
-
_html(`<span${_attr_class("
|
|
4462
|
+
_html(`<span${_attr_class("_C")}>app</span>`);
|
|
4463
4463
|
writeScope($scope66_id, {});
|
|
4464
4464
|
return 0;
|
|
4465
4465
|
}
|
|
@@ -4476,11 +4476,11 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4476
4476
|
const $for_content5__t_path__closures = /* @__PURE__ */ new Set();
|
|
4477
4477
|
const $for_content5__t_latest__closures = /* @__PURE__ */ new Set();
|
|
4478
4478
|
const $for_content5__t_id__closures = /* @__PURE__ */ new Set();
|
|
4479
|
-
_html(`<li${_attr_class([row, { ["_co"]: !t.installed }])}><span${_attr_class(["_cp", "
|
|
4479
|
+
_html(`<li${_attr_class([row, { ["_co"]: !t.installed }])}><span${_attr_class(["_cp", "_r"])}>${_escape(t.label)}${_el_resume($scope17_id, "c")}</span>`);
|
|
4480
4480
|
_if(() => {
|
|
4481
4481
|
if (active.has(t.id)) {
|
|
4482
4482
|
const $scope18_id = _scope_id();
|
|
4483
|
-
_html(`<span${_attr_class("_ca")}><span${_attr_class("
|
|
4483
|
+
_html(`<span${_attr_class("_ca")}><span${_attr_class("_z")}></span><!>${_escape(active.get(t.id) || "Starting…")}${_el_resume($scope18_id, "c")}</span>`);
|
|
4484
4484
|
_subscribe($active__closures, writeScope($scope18_id, { Cdo: 2 }));
|
|
4485
4485
|
return 0;
|
|
4486
4486
|
} else if (t.installed) {
|
|
@@ -4488,13 +4488,13 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4488
4488
|
_if(() => {
|
|
4489
4489
|
if (t.version) {
|
|
4490
4490
|
const $scope31_id = _scope_id();
|
|
4491
|
-
_html(`<button${_attr_class(["_cq", "
|
|
4491
|
+
_html(`<button${_attr_class(["_cq", "_r"])}${_attr("title", `${t.path || t.label}. Pin a version`)}>v<!>${_escape(t.version)}${_el_resume($scope31_id, "b")}</button>${_el_resume($scope31_id, "a")}`);
|
|
4492
4492
|
_script($scope31_id, "u42");
|
|
4493
4493
|
_subscribe($for_content5__t_path__closures, _subscribe($for_content5__t_version__closures, _subscribe($for_content5__t_label__closures, writeScope($scope31_id, { Cu: 1 }))));
|
|
4494
4494
|
return 0;
|
|
4495
4495
|
} else {
|
|
4496
4496
|
const $scope67_id = _scope_id();
|
|
4497
|
-
_html(`<span${_attr_class([metaTrunc, "
|
|
4497
|
+
_html(`<span${_attr_class([metaTrunc, "_r"])}${_attr("title", t.path)}>${_escape(t.path)}${_el_resume($scope67_id, "b")}</span>${_el_resume($scope67_id, "a")}`);
|
|
4498
4498
|
_subscribe($for_content5__t_path__closures, writeScope($scope67_id, { Cx: 1 }));
|
|
4499
4499
|
return 1;
|
|
4500
4500
|
}
|
|
@@ -4522,14 +4522,14 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4522
4522
|
return 3;
|
|
4523
4523
|
}
|
|
4524
4524
|
}, $scope17_id, "d");
|
|
4525
|
-
_html(`<span${_attr_class("
|
|
4525
|
+
_html(`<span${_attr_class("_s")}></span>`);
|
|
4526
4526
|
_if(() => {
|
|
4527
4527
|
if (!active.has(t.id)) {
|
|
4528
4528
|
const $scope27_id = _scope_id();
|
|
4529
4529
|
_if(() => {
|
|
4530
4530
|
if (t.required) {
|
|
4531
4531
|
const $scope70_id = _scope_id();
|
|
4532
|
-
_html(`<span${_attr_class("
|
|
4532
|
+
_html(`<span${_attr_class("_C")}>required</span>`);
|
|
4533
4533
|
writeScope($scope70_id, {});
|
|
4534
4534
|
return 0;
|
|
4535
4535
|
}
|
|
@@ -4545,9 +4545,9 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4545
4545
|
const $scope28_id = _scope_id();
|
|
4546
4546
|
_html(`<button${_attr_class([
|
|
4547
4547
|
iconBtnXs,
|
|
4548
|
-
"
|
|
4549
|
-
"
|
|
4550
|
-
{ ["
|
|
4548
|
+
"_W",
|
|
4549
|
+
"_X",
|
|
4550
|
+
{ ["_k"]: confirmingRemove === t.id }
|
|
4551
4551
|
])}${confirmingRemove === t.id ? _attr("title", `Remove ${t.label}?`) : _attr("title", `Remove ${t.label}`)}>`);
|
|
4552
4552
|
_if(() => {
|
|
4553
4553
|
if (confirmingRemove === t.id) {
|
|
@@ -4593,28 +4593,28 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4593
4593
|
_if(() => {
|
|
4594
4594
|
if (setup && setup.mise.installed) {
|
|
4595
4595
|
const $scope19_id = _scope_id();
|
|
4596
|
-
_html(`<div><label${_attr_class("
|
|
4596
|
+
_html(`<div><label${_attr_class("_Q")}>`);
|
|
4597
4597
|
icon_search_default({
|
|
4598
4598
|
size: 14,
|
|
4599
|
-
class: "
|
|
4599
|
+
class: "_R"
|
|
4600
4600
|
});
|
|
4601
|
-
_html(`<input${_attr_input_value($scope19_id, "c", query, search)}${_attr_class([inputLg, "
|
|
4601
|
+
_html(`<input${_attr_input_value($scope19_id, "c", query, search)}${_attr_class([inputLg, "_S"])} type=text placeholder="Add a tool from the mise registry…" aria-label="Search the mise registry" autocomplete=off>${_el_resume($scope19_id, "c")}</label>`);
|
|
4602
4602
|
_if(() => {
|
|
4603
4603
|
if (hits && hits.length) {
|
|
4604
4604
|
const $scope20_id = _scope_id();
|
|
4605
4605
|
_html(`<ul${_attr_class([toolGrid, "_cs"])}>`);
|
|
4606
4606
|
_for_of(hits, (h) => {
|
|
4607
4607
|
const $scope21_id = _scope_id();
|
|
4608
|
-
_html(`<li${_attr_class(row)}><div${_attr_class("
|
|
4608
|
+
_html(`<li${_attr_class(row)}><div${_attr_class("_by")}><span${_attr_class(["_cp", "_r"])}>${_escape(h.name)}${_el_resume($scope21_id, "d")}</span>`);
|
|
4609
4609
|
_if(() => {
|
|
4610
4610
|
if (active.has(h.name)) {
|
|
4611
4611
|
const $scope22_id = _scope_id();
|
|
4612
|
-
_html(`<span${_attr_class("_ca")}><span${_attr_class("
|
|
4612
|
+
_html(`<span${_attr_class("_ca")}><span${_attr_class("_z")}></span><!>${_escape(active.get(h.name) || "Starting…")}${_el_resume($scope22_id, "c")}</span>`);
|
|
4613
4613
|
_subscribe($active__closures, writeScope($scope22_id, { Cdo: 4 }));
|
|
4614
4614
|
return 0;
|
|
4615
4615
|
} else if (h.description) {
|
|
4616
4616
|
const $scope73_id = _scope_id();
|
|
4617
|
-
_html(`<span${_attr_class("
|
|
4617
|
+
_html(`<span${_attr_class("_bB")}${_attr("title", h.description)}>${_escape(h.description)}${_el_resume($scope73_id, "b")}</span>${_el_resume($scope73_id, "a")}`);
|
|
4618
4618
|
writeScope($scope73_id, {});
|
|
4619
4619
|
return 1;
|
|
4620
4620
|
}
|
|
@@ -4626,7 +4626,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4626
4626
|
_if(() => {
|
|
4627
4627
|
if (h.installed) {
|
|
4628
4628
|
const $scope74_id = _scope_id();
|
|
4629
|
-
_html(`<span${_attr_class("
|
|
4629
|
+
_html(`<span${_attr_class("_C")}>installed</span>`);
|
|
4630
4630
|
writeScope($scope74_id, {});
|
|
4631
4631
|
return 0;
|
|
4632
4632
|
} else {
|
|
@@ -4653,7 +4653,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4653
4653
|
return 0;
|
|
4654
4654
|
} else if (hits && !searching) {
|
|
4655
4655
|
const $scope35_id = _scope_id();
|
|
4656
|
-
_html(`<p${_attr_class("
|
|
4656
|
+
_html(`<p${_attr_class("_bD")}>No tools match "<!>${_escape(query)}${_el_resume($scope35_id, "b")}".</p>`);
|
|
4657
4657
|
_subscribe($query__closures, writeScope($scope35_id, {}));
|
|
4658
4658
|
return 1;
|
|
4659
4659
|
}
|
|
@@ -4664,9 +4664,9 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4664
4664
|
return 0;
|
|
4665
4665
|
}
|
|
4666
4666
|
}, $scope0_id, "ab", 1, 1, 1, 0, 1);
|
|
4667
|
-
_html(`</section><section${_attr_class("
|
|
4667
|
+
_html(`</section><section${_attr_class("_bs")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_bt")}><h2${_attr("id", appearanceId)}${_attr_class("_bH")}>Appearance</h2></div><div${_attr_class(["_bx", "_cw"])}><label${_attr_class("_cx")}><span${_attr_class("_cy")}>Name</span><input${_attr_input_value($scope0_id, "ai", input.instance.name, _resume(function(v) {
|
|
4668
4668
|
setInstance({ name: v });
|
|
4669
|
-
}, "u3", $scope0_id))}${_attr_class(["
|
|
4669
|
+
}, "u3", $scope0_id))}${_attr_class(["_O", "_cz"])} type=text placeholder=work maxlength=32 autocomplete=off spellcheck=false aria-describedby=look-name-hint>${_el_resume($scope0_id, "ai")}<span id=look-name-hint${_attr_class(["_M", "_cA"])}>Tab title, home-screen icon, and notifications.</span></label><div${_attr_class("_cx")} role=radiogroup aria-label="Accent colour"><span${_attr_class("_cy")}>Accent</span><span${_attr_class("_cB")}><button type=button${_attr_class([
|
|
4670
4670
|
"_cC",
|
|
4671
4671
|
"_cE",
|
|
4672
4672
|
{ ["_cD"]: !input.instance.accent }
|
|
@@ -4687,7 +4687,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4687
4687
|
{ ["_cD"]: customOn }
|
|
4688
4688
|
])}${customOn ? _attr_style(`--swatch:${input.instance.accent}`) : ""} title="Custom colour"><input${_attr_input_value($scope0_id, "aq", input.instance.accent || "#3556d8", _resume(function(v) {
|
|
4689
4689
|
setInstance({ accent: v });
|
|
4690
|
-
}, "u4", $scope0_id))}${_attr_class("_cG")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "aq")}<span aria-hidden=true>+</span></label>${_el_resume($scope0_id, "ap", $sg__input_instance_accent)}</span><span${_attr_class(["
|
|
4690
|
+
}, "u4", $scope0_id))}${_attr_class("_cG")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "aq")}<span aria-hidden=true>+</span></label>${_el_resume($scope0_id, "ap", $sg__input_instance_accent)}</span><span${_attr_class(["_M", "_cA"])}>Selected rows, buttons, and the icon.</span></div></div></section></div></div></div>`);
|
|
4691
4691
|
_if(() => {
|
|
4692
4692
|
if (versionPick) {
|
|
4693
4693
|
const $scope29_id = _scope_id();
|
|
@@ -4798,13 +4798,13 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4798
4798
|
});
|
|
4799
4799
|
//#endregion
|
|
4800
4800
|
//#region src/tags/new-workspace.css.ts
|
|
4801
|
-
var content$1 = "_bI
|
|
4802
|
-
var section$1 = "_bM
|
|
4803
|
-
var curBase = "_bR
|
|
4804
|
-
var archived = "_bV
|
|
4805
|
-
var archivedHint = "_bW
|
|
4806
|
-
var archivedCard = "_bX
|
|
4807
|
-
var resultBranch = "
|
|
4801
|
+
var content$1 = "_bI _bk";
|
|
4802
|
+
var section$1 = "_bM _bs";
|
|
4803
|
+
var curBase = "_bR _N _M";
|
|
4804
|
+
var archived = "_bV _bs";
|
|
4805
|
+
var archivedHint = "_bW _M";
|
|
4806
|
+
var archivedCard = "_bX _bx";
|
|
4807
|
+
var resultBranch = "_cN _T _d";
|
|
4808
4808
|
//#endregion
|
|
4809
4809
|
//#region src/tags/branch-pick.marko
|
|
4810
4810
|
var branch_pick_default = _template("d", (input) => {
|
|
@@ -4815,11 +4815,11 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
4815
4815
|
let branches = null;
|
|
4816
4816
|
let defaultBranch = null;
|
|
4817
4817
|
let branchFilter = "";
|
|
4818
|
-
_html(`<div${_attr_class("
|
|
4818
|
+
_html(`<div${_attr_class("_cO")}>`);
|
|
4819
4819
|
_if(() => {
|
|
4820
4820
|
{
|
|
4821
4821
|
const $scope4_id = _scope_id();
|
|
4822
|
-
_html(`<p${_attr_class("
|
|
4822
|
+
_html(`<p${_attr_class("_bD")}><span${_attr_class("_z")}></span> Loading branches…</p>`);
|
|
4823
4823
|
writeScope($scope4_id, {});
|
|
4824
4824
|
return 0;
|
|
4825
4825
|
}
|
|
@@ -4871,19 +4871,19 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
4871
4871
|
const toggleBranches = _resume((fullName) => {
|
|
4872
4872
|
branchesFor = branchesFor === fullName ? null : fullName;
|
|
4873
4873
|
}, "s4", $scope0_id);
|
|
4874
|
-
_html(`<div${_attr_class("
|
|
4874
|
+
_html(`<div${_attr_class("_cH")}><label${_attr_class("_Q")}>`);
|
|
4875
4875
|
icon_search_default({
|
|
4876
4876
|
size: 14,
|
|
4877
|
-
class: "
|
|
4877
|
+
class: "_R"
|
|
4878
4878
|
});
|
|
4879
4879
|
_html(`<input${_attr_input_value($scope0_id, "d", filter, _resume(function(v) {
|
|
4880
4880
|
filter = v;
|
|
4881
4881
|
highlight = 0;
|
|
4882
|
-
}, "s0", $scope0_id))}${_attr_class([inputLg, "
|
|
4882
|
+
}, "s0", $scope0_id))}${_attr_class([inputLg, "_S"])} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input.disabled)}>${_el_resume($scope0_id, "d")}</label>`);
|
|
4883
4883
|
_if(() => {
|
|
4884
4884
|
if (filter && !catalog) {
|
|
4885
4885
|
const $scope5_id = _scope_id();
|
|
4886
|
-
_html(`<p${_attr_class("
|
|
4886
|
+
_html(`<p${_attr_class("_bD")}>Loading repos…</p>`);
|
|
4887
4887
|
writeScope($scope5_id, {});
|
|
4888
4888
|
return 0;
|
|
4889
4889
|
}
|
|
@@ -4891,15 +4891,15 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
4891
4891
|
_if(() => {
|
|
4892
4892
|
if (results.length) {
|
|
4893
4893
|
const $scope1_id = _scope_id();
|
|
4894
|
-
_html(`<ul${_attr_class("
|
|
4894
|
+
_html(`<ul${_attr_class("_cI")}>`);
|
|
4895
4895
|
_for_of(results, (repo, i) => {
|
|
4896
4896
|
const $scope2_id = _scope_id();
|
|
4897
|
-
_html(`<li><div${_attr_class(["
|
|
4897
|
+
_html(`<li><div${_attr_class(["_cK", { ["_cJ"]: i === highlight }])}><button${_attr_class("_cL")}>`);
|
|
4898
4898
|
icon_plus_default({
|
|
4899
4899
|
size: 12,
|
|
4900
|
-
class: "
|
|
4900
|
+
class: "_cQ"
|
|
4901
4901
|
});
|
|
4902
|
-
_html(`<span${_attr_class("
|
|
4902
|
+
_html(`<span${_attr_class("_cR")}>${_escape(repoLabel(repo.nameWithOwner))}${_el_resume($scope2_id, "e")}</span></button>${_el_resume($scope2_id, "b")}<button${_attr_class([resultBranch, { ["_cM"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>⎇</button>${_el_resume($scope2_id, "f")}</div>${_el_resume($scope2_id, "a")}`);
|
|
4903
4903
|
_if(() => {
|
|
4904
4904
|
if (branchesFor === repo.nameWithOwner) {
|
|
4905
4905
|
const $scope3_id = _scope_id();
|
|
@@ -4929,7 +4929,7 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
4929
4929
|
return 0;
|
|
4930
4930
|
} else if (filter && catalog) {
|
|
4931
4931
|
const $scope4_id = _scope_id();
|
|
4932
|
-
_html(`<p${_attr_class("
|
|
4932
|
+
_html(`<p${_attr_class("_bD")}>No repos match "<!>${_escape(filter)}${_el_resume($scope4_id, "b")}".</p>`);
|
|
4933
4933
|
writeScope($scope4_id, {});
|
|
4934
4934
|
return 1;
|
|
4935
4935
|
}
|
|
@@ -5052,7 +5052,7 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5052
5052
|
}
|
|
5053
5053
|
}, "p5", $scope0_id);
|
|
5054
5054
|
const titleId = _id();
|
|
5055
|
-
_html(`<div${_attr_class("
|
|
5055
|
+
_html(`<div${_attr_class("_bi")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bj")}><div${_attr_class(content$1)}>`);
|
|
5056
5056
|
_set_serialize_reason({
|
|
5057
5057
|
0: _serialize_guard($scope0_reason, 2),
|
|
5058
5058
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -5091,23 +5091,23 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5091
5091
|
return 0;
|
|
5092
5092
|
}
|
|
5093
5093
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
5094
|
-
_html(`<label${_attr_class("_bL")}><span${_attr_class("
|
|
5094
|
+
_html(`<label${_attr_class("_bL")}><span${_attr_class("_bH")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
|
|
5095
5095
|
name = _new_name;
|
|
5096
|
-
}, "p0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class(section$1)}><div${_attr_class("_bN")}><h2${_attr_class("
|
|
5096
|
+
}, "p0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class(section$1)}><div${_attr_class("_bN")}><h2${_attr_class("_bH")}>Repos</h2><button${_attr_class(iconBtnRow)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
5097
5097
|
_set_serialize_reason(1);
|
|
5098
5098
|
const $childScope2 = _peek_scope_id();
|
|
5099
5099
|
icon_refresh_default({
|
|
5100
5100
|
size: 14,
|
|
5101
|
-
class: catalogRefreshing && "
|
|
5101
|
+
class: catalogRefreshing && "_y"
|
|
5102
5102
|
});
|
|
5103
5103
|
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("_bO")}>`);
|
|
5104
5104
|
_for_of(selected, (repo) => {
|
|
5105
5105
|
const $scope2_id = _scope_id();
|
|
5106
5106
|
_html(`<li><div${_attr_class(row)}><span${_attr_class("_bP")}>${_escape(repoLabel(repo.fullName))}${_el_resume($scope2_id, "c")}</span><button${_attr_class([
|
|
5107
5107
|
curBase,
|
|
5108
|
-
"
|
|
5108
|
+
"_r",
|
|
5109
5109
|
{ ["_bQ"]: branchesFor === repo.fullName }
|
|
5110
|
-
])}${_attr("title", `Change base branch for ${repo.fullName}`)}${_attr("aria-label", `Change base branch for ${repo.fullName}`)}${_attr("disabled", busy)}>${repo.baseBranch ? `⎇ ${_escape(`${repo.baseBranch}`)}` : "⎇"}${_el_resume($scope2_id, "e")}</button>${_el_resume($scope2_id, "d")}<button${_attr_class([iconBtnXs, "
|
|
5110
|
+
])}${_attr("title", `Change base branch for ${repo.fullName}`)}${_attr("aria-label", `Change base branch for ${repo.fullName}`)}${_attr("disabled", busy)}>${repo.baseBranch ? `⎇ ${_escape(`${repo.baseBranch}`)}` : "⎇"}${_el_resume($scope2_id, "e")}</button>${_el_resume($scope2_id, "d")}<button${_attr_class([iconBtnXs, "_W"])}${_attr("title", `Remove ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
5111
5111
|
icon_xmark_default({ size: 12 });
|
|
5112
5112
|
_html(`</button>${_el_resume($scope2_id, "f")}</div>`);
|
|
5113
5113
|
_if(() => {
|
|
@@ -5139,7 +5139,7 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5139
5139
|
_if(() => {
|
|
5140
5140
|
if (!selected.length) {
|
|
5141
5141
|
const $scope11_id = _scope_id();
|
|
5142
|
-
_html(`<li${_attr_class("
|
|
5142
|
+
_html(`<li${_attr_class("_bD")}>No repos yet. Search below to add one, or create it empty.</li>`);
|
|
5143
5143
|
writeScope($scope11_id, {});
|
|
5144
5144
|
return 0;
|
|
5145
5145
|
}
|
|
@@ -5171,7 +5171,7 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5171
5171
|
_if(() => {
|
|
5172
5172
|
if (i === steps$1.length - 1) {
|
|
5173
5173
|
const $scope12_id = _scope_id();
|
|
5174
|
-
_html(`<span${_attr_class("
|
|
5174
|
+
_html(`<span${_attr_class("_z")}></span>`);
|
|
5175
5175
|
writeScope($scope12_id, {});
|
|
5176
5176
|
return 0;
|
|
5177
5177
|
} else {
|
|
@@ -5200,20 +5200,20 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5200
5200
|
}, $scope0_id, "u", 1, 1, 1, 0, 1);
|
|
5201
5201
|
_html(`<button type=button${_attr_class([
|
|
5202
5202
|
btnLg,
|
|
5203
|
-
"
|
|
5203
|
+
"_j",
|
|
5204
5204
|
"_bK"
|
|
5205
5205
|
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${busy ? "Creating…" : "Create workspace"}${_el_resume($scope0_id, "w")}</button>${_el_resume($scope0_id, "v")}</div>`);
|
|
5206
5206
|
_if(() => {
|
|
5207
5207
|
if (archived$1.length) {
|
|
5208
5208
|
const $scope3_id = _scope_id();
|
|
5209
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("_bN")}><h2${_attr_class("
|
|
5209
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_bN")}><h2${_attr_class("_bH")}>Archived</h2><span${_attr_class(sectionCount$1)}>${_escape(archived$1.length)}${_el_resume($scope3_id, "e", $sg__input_workspaces)}</span></div><p${_attr_class(archivedHint)}>Restore an archived workspace instead of creating a new one.</p><ul${_attr_class("_bv")}>`);
|
|
5210
5210
|
_for_of(archived$1, (ws) => {
|
|
5211
5211
|
const $scope4_id = _scope_id();
|
|
5212
|
-
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("
|
|
5212
|
+
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("_by")}><span${_attr_class("_bz")}>${_escape(ws.name)}${_el_resume($scope4_id, "d", $sg__input_workspaces)}</span><span${_attr_class([metaTrunc, "_r"])}${_attr("title", ws.display_path || ws.path)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope4_id, "f", $sg__input_workspaces)}</span>${_el_resume($scope4_id, "e", $sg__input_workspaces)}</div><button type=button${_attr_class(btnLg)}${_attr("disabled", busy || !!restoring)}>`);
|
|
5213
5213
|
_if(() => {
|
|
5214
5214
|
if (restoring === ws.id) {
|
|
5215
5215
|
const $scope14_id = _scope_id();
|
|
5216
|
-
_html(`<span${_attr_class("
|
|
5216
|
+
_html(`<span${_attr_class("_z")}></span> Restoring…`);
|
|
5217
5217
|
writeScope($scope14_id, {});
|
|
5218
5218
|
return 0;
|
|
5219
5219
|
} else {
|
|
@@ -5352,8 +5352,8 @@ function activeAgent(session) {
|
|
|
5352
5352
|
const command = session.state?.command?.trim();
|
|
5353
5353
|
return command && agentFromCommand(command) || session.agent;
|
|
5354
5354
|
}
|
|
5355
|
-
var iconBtn$1 = "
|
|
5356
|
-
var navToggle = "
|
|
5355
|
+
var iconBtn$1 = "_dZ _d";
|
|
5356
|
+
var navToggle = "_d4 _d";
|
|
5357
5357
|
_template("H", (input) => {
|
|
5358
5358
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
5359
5359
|
const $scope0_id = _scope_id();
|
|
@@ -5396,12 +5396,12 @@ var ARM_MS = 3500;
|
|
|
5396
5396
|
function disarmLater(fn) {
|
|
5397
5397
|
return setTimeout(fn, ARM_MS);
|
|
5398
5398
|
}
|
|
5399
|
-
var railBtn = "
|
|
5400
|
-
var rowIcon = "
|
|
5401
|
-
var close = "
|
|
5399
|
+
var railBtn = "_gv _d";
|
|
5400
|
+
var rowIcon = "_gE _T _d";
|
|
5401
|
+
var close = "_gF _T _d _W";
|
|
5402
5402
|
//#endregion
|
|
5403
5403
|
//#region src/styles/session-pop.css.ts
|
|
5404
|
-
var sessionPop = "
|
|
5404
|
+
var sessionPop = "_fe _Y";
|
|
5405
5405
|
//#endregion
|
|
5406
5406
|
//#region src/client/usage.ts
|
|
5407
5407
|
/** The plan row an agent instance draws on: its own account (`claude2`)
|
|
@@ -5462,22 +5462,22 @@ var usage_pcts_default = _template("C", (input) => {
|
|
|
5462
5462
|
if (windows.length) {
|
|
5463
5463
|
const $scope1_id = _scope_id();
|
|
5464
5464
|
_html(`<span${_attr_class([
|
|
5465
|
-
"
|
|
5465
|
+
"_fg",
|
|
5466
5466
|
input.class,
|
|
5467
|
-
{ ["
|
|
5467
|
+
{ ["_fh"]: agent.stale_seconds != null }
|
|
5468
5468
|
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
5469
5469
|
_for_of(windows, (win$1, i) => {
|
|
5470
5470
|
const $scope2_id = _scope_id();
|
|
5471
|
-
_html(`<span${_attr_class("
|
|
5471
|
+
_html(`<span${_attr_class("_fi")}>`);
|
|
5472
5472
|
_if(() => {
|
|
5473
5473
|
if (i) {
|
|
5474
5474
|
const $scope3_id = _scope_id();
|
|
5475
|
-
_html(`<span${_attr_class("
|
|
5475
|
+
_html(`<span${_attr_class("_fl")} aria-hidden=true>·</span>`);
|
|
5476
5476
|
$si__input_agent && writeScope($scope3_id, {});
|
|
5477
5477
|
return 0;
|
|
5478
5478
|
}
|
|
5479
5479
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
5480
|
-
_html(`<span${_attr_class("
|
|
5480
|
+
_html(`<span${_attr_class("_fj")}>${_escape(win$1.window)}${_el_resume($scope2_id, "d", $sg__input_agent)}</span><span${_attr_class(["_fk", win$1.used_percent >= 90 ? "_dr" : win$1.used_percent >= 70 ? "_dq" : win$1.used_percent >= 40 ? "_dp" : "_do"])}>${_escape(pctText(win$1.used_percent))}${_el_resume($scope2_id, "f", $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
5481
5481
|
$si__input_agent && writeScope($scope2_id, {});
|
|
5482
5482
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
5483
5483
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -5508,8 +5508,8 @@ var icon_edit_default = _template("M", (input) => {
|
|
|
5508
5508
|
});
|
|
5509
5509
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
5510
5510
|
});
|
|
5511
|
-
var prChip = "_g1
|
|
5512
|
-
var portChip = "_g2
|
|
5511
|
+
var prChip = "_g1 _m _g0";
|
|
5512
|
+
var portChip = "_g2 _m _g0";
|
|
5513
5513
|
var prState = {
|
|
5514
5514
|
open: "_g6",
|
|
5515
5515
|
merged: "_g7",
|
|
@@ -5569,11 +5569,11 @@ var side_nav_chips_default = _template("v", (input) => {
|
|
|
5569
5569
|
const $scope3_id = _scope_id();
|
|
5570
5570
|
const open = isOpen(pr);
|
|
5571
5571
|
_html(`<span${_attr_class([
|
|
5572
|
-
"
|
|
5572
|
+
"_m",
|
|
5573
5573
|
prChip,
|
|
5574
5574
|
{
|
|
5575
|
-
["
|
|
5576
|
-
["
|
|
5575
|
+
["_o"]: open && !pr.isDraft,
|
|
5576
|
+
["_p"]: open && pr.isDraft,
|
|
5577
5577
|
[prState.merged]: pr.state === "MERGED",
|
|
5578
5578
|
[prState.closed]: pr.state === "CLOSED"
|
|
5579
5579
|
}
|
|
@@ -5616,11 +5616,11 @@ var side_nav_chips_default = _template("v", (input) => {
|
|
|
5616
5616
|
}, "full_name", $scope1_id, "b", $sg__input_status_repos, $sg__input_status_repos, $sg__input_status_repos__OR__input_status_ports);
|
|
5617
5617
|
_for_of(ports, (p) => {
|
|
5618
5618
|
const $scope5_id = _scope_id();
|
|
5619
|
-
_html(`<span${_attr_class(["
|
|
5619
|
+
_html(`<span${_attr_class(["_m", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["_g3", "_g9"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${p.port}`)}>:${_sep($sg__input_status_ports)}${_escape(p.port)}${_el_resume($scope5_id, "c", $sg__input_status_ports)}</button>${_el_resume($scope5_id, "b")}<button type=button${_attr_class([
|
|
5620
5620
|
"_g3",
|
|
5621
5621
|
"_g4",
|
|
5622
5622
|
"_g5",
|
|
5623
|
-
{ ["
|
|
5623
|
+
{ ["_k"]: armedPid === p.pid }
|
|
5624
5624
|
])}${armedPid === p.pid ? " title=Kill?" : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
|
|
5625
5625
|
icon_xmark_default({ size: 12 });
|
|
5626
5626
|
_html(`</button>${_el_resume($scope5_id, "d")}</span>${_el_resume($scope5_id, "a", $sg__input_status_ports)}`);
|
|
@@ -5711,10 +5711,10 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
5711
5711
|
_if(() => {
|
|
5712
5712
|
if (input.rail) {
|
|
5713
5713
|
const $scope2_id = _scope_id();
|
|
5714
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
5715
|
-
"
|
|
5714
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_gt"]: input.current }])}${_attr("title", ws$1.name)}>${_escape((input.index ?? 0) + 1)}${_el_resume($scope2_id, "b", _serialize_guard($scope0_reason, 27))}<span${_attr_class([
|
|
5715
|
+
"_t",
|
|
5716
5716
|
phase[dot],
|
|
5717
|
-
"
|
|
5717
|
+
"_gw"
|
|
5718
5718
|
])}></span>${_el_resume($scope2_id, "c", $sg__input_workspaceId__OR__input_status)}</a>${_el_resume($scope2_id, "a", _serialize_guard($scope0_reason, 3))}`);
|
|
5719
5719
|
_serialize_if($scope0_reason, 18) && _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_name__closures, _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_id__closures, _subscribe($si__input_index && $input_index__closures, _subscribe($si__input_current && $input_current__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })))));
|
|
5720
5720
|
return 0;
|
|
@@ -5722,15 +5722,15 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
5722
5722
|
const $scope3_id = _scope_id();
|
|
5723
5723
|
const sessions$1 = input.sessions || [];
|
|
5724
5724
|
const phaseLabel = dot === "working" ? "Working" : dot === "waiting" ? "Needs input" : dot === "idle" ? "Idle" : "Not running";
|
|
5725
|
-
_html(`<section${_attr_class(["
|
|
5726
|
-
["
|
|
5727
|
-
["
|
|
5728
|
-
["
|
|
5729
|
-
["
|
|
5730
|
-
}])}><div${_attr_class("
|
|
5731
|
-
"
|
|
5725
|
+
_html(`<section${_attr_class(["_gy", {
|
|
5726
|
+
["_gt"]: input.current,
|
|
5727
|
+
["_Z"]: input.current,
|
|
5728
|
+
["_gz"]: input.railPop,
|
|
5729
|
+
["_gx"]: input.page
|
|
5730
|
+
}])}><div${_attr_class("_gA")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class("_gB")}><span${_attr_class([
|
|
5731
|
+
"_t",
|
|
5732
5732
|
phase[dot],
|
|
5733
|
-
"
|
|
5733
|
+
"_gO"
|
|
5734
5734
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope3_id, "d", $sg__input_workspaceId__OR__input_status)}`);
|
|
5735
5735
|
_if(() => {
|
|
5736
5736
|
if (sessions$1.length === 1) {
|
|
@@ -5743,7 +5743,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
5743
5743
|
icon_agent_default({
|
|
5744
5744
|
agent: activeAgent(sessions$1[0]),
|
|
5745
5745
|
size: 12,
|
|
5746
|
-
class: "
|
|
5746
|
+
class: "_gG"
|
|
5747
5747
|
});
|
|
5748
5748
|
$si__input_sessions && writeScope($scope14_id, {
|
|
5749
5749
|
_: _scope_with_id($scope3_id),
|
|
@@ -5753,16 +5753,16 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
5753
5753
|
}
|
|
5754
5754
|
}, $scope3_id, "e", $sg__input_sessions, $sg__input_sessions);
|
|
5755
5755
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length === 1 ? sessions$1[0].title || "" : `${sessions$1.length} sessions`;
|
|
5756
|
-
_html(`<span${_attr_class("
|
|
5756
|
+
_html(`<span${_attr_class("_gH")}><span${_attr_class("_gI")}>${_escape(ws$1.name)}${_el_resume($scope3_id, "h", $sg__input_workspaces__OR__input_workspaceId)}</span>`);
|
|
5757
5757
|
_if(() => {
|
|
5758
5758
|
if (input.page && metaText) {
|
|
5759
5759
|
const $scope16_id = _scope_id();
|
|
5760
|
-
_html(`<span${_attr_class("
|
|
5760
|
+
_html(`<span${_attr_class("_gM")}>${_escape(metaText)}${_el_resume($scope16_id, "b", _serialize_guard($scope0_reason, 7))}</span>`);
|
|
5761
5761
|
$si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && writeScope($scope16_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope3_id) });
|
|
5762
5762
|
return 0;
|
|
5763
5763
|
} else if (sessions$1.length === 1 && sessions$1[0].title) {
|
|
5764
5764
|
const $scope15_id = _scope_id();
|
|
5765
|
-
_html(`<span${_attr_class("
|
|
5765
|
+
_html(`<span${_attr_class("_gJ")}>${_escape(sessions$1[0].title)}${_el_resume($scope15_id, "b", $sg__input_sessions)}</span>`);
|
|
5766
5766
|
$si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && writeScope($scope15_id, { _: $si__input_sessions && _scope_with_id($scope3_id) });
|
|
5767
5767
|
return 1;
|
|
5768
5768
|
}
|
|
@@ -5772,10 +5772,10 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
5772
5772
|
if (input.page) {
|
|
5773
5773
|
const $scope4_id = _scope_id();
|
|
5774
5774
|
_html(`<span${_attr_class([
|
|
5775
|
-
"
|
|
5776
|
-
"
|
|
5777
|
-
"
|
|
5778
|
-
"
|
|
5775
|
+
"_C",
|
|
5776
|
+
"_L",
|
|
5777
|
+
"_E",
|
|
5778
|
+
"_gN"
|
|
5779
5779
|
])}>${input.current ? "Open" : ""}${_el_resume($scope4_id, "b", _serialize_guard($scope0_reason, 21))}</span>`);
|
|
5780
5780
|
$si__input_current__OR__input_page__OR__input_rail__OR__input_workspaces__OR__input_workspaceId && _subscribe($si__input_current && $input_current__closures, writeScope($scope4_id, {
|
|
5781
5781
|
_: _scope_with_id($scope3_id),
|
|
@@ -5788,7 +5788,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
5788
5788
|
_if(() => {
|
|
5789
5789
|
if (!input.page) {
|
|
5790
5790
|
const $scope5_id = _scope_id();
|
|
5791
|
-
_html(`<div${_attr_class("
|
|
5791
|
+
_html(`<div${_attr_class("_gC")}>`);
|
|
5792
5792
|
_if(() => {
|
|
5793
5793
|
if (input.onNewSession) {
|
|
5794
5794
|
const $scope6_id = _scope_id();
|
|
@@ -5802,7 +5802,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
5802
5802
|
_html(`</button>${_el_resume($scope6_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class(sessionPop)}>`);
|
|
5803
5803
|
_for_of([], (agent) => {
|
|
5804
5804
|
const $scope7_id = _scope_id();
|
|
5805
|
-
_html(`<button${_attr_class("
|
|
5805
|
+
_html(`<button${_attr_class("_ff")}>`);
|
|
5806
5806
|
_set_serialize_reason(12);
|
|
5807
5807
|
const $childScope2 = _peek_scope_id();
|
|
5808
5808
|
icon_agent_default({
|
|
@@ -5837,7 +5837,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
5837
5837
|
return 0;
|
|
5838
5838
|
}
|
|
5839
5839
|
}, $scope5_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
5840
|
-
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["
|
|
5840
|
+
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_gu"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
|
|
5841
5841
|
icon_manage_default({ size: 12 });
|
|
5842
5842
|
_html(`</a>${_el_resume($scope5_id, "d", _serialize_guard($scope0_reason, 8))}</div>`);
|
|
5843
5843
|
_subscribe($si__input_workspaces__OR__input_workspaceId && $ws_id__closures, _subscribe($si__input_managing && $input_managing__closures, _subscribe($si__input_onReview && $input_onReview__closures, _subscribe($si__input_onNewSession && $input_onNewSession__closures, writeScope($scope5_id, {
|
|
@@ -5847,7 +5847,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
5847
5847
|
return 0;
|
|
5848
5848
|
}
|
|
5849
5849
|
}, $scope3_id, "k", $sg__input_page, $sg__input_page, 1, 0, 1);
|
|
5850
|
-
_html(`</div><div${_attr_class("
|
|
5850
|
+
_html(`</div><div${_attr_class("_gT")}>`);
|
|
5851
5851
|
_if(() => {
|
|
5852
5852
|
if (sessions$1.length === 1 && openPlan) {
|
|
5853
5853
|
const $scope11_id = _scope_id();
|
|
@@ -5855,7 +5855,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
5855
5855
|
const $childScope3 = _peek_scope_id();
|
|
5856
5856
|
usage_pcts_default({
|
|
5857
5857
|
agent: openPlan,
|
|
5858
|
-
class: "
|
|
5858
|
+
class: "_gK"
|
|
5859
5859
|
});
|
|
5860
5860
|
_subscribe($openPlan__closures, writeScope($scope11_id, {
|
|
5861
5861
|
a: _existing_scope($childScope3),
|
|
@@ -5866,14 +5866,14 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
5866
5866
|
}, $scope3_id, "m");
|
|
5867
5867
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
5868
5868
|
const $scope8_id = _scope_id();
|
|
5869
|
-
_html(`<div${_attr_class(["
|
|
5869
|
+
_html(`<div${_attr_class(["_gD", { ["_gt"]: s.id === input.currentTab }])}>`);
|
|
5870
5870
|
_if(() => {
|
|
5871
5871
|
if (renamingId === s.id) {
|
|
5872
5872
|
const $scope10_id = _scope_id();
|
|
5873
5873
|
_html(`<span${_attr_class([
|
|
5874
|
-
"
|
|
5874
|
+
"_t",
|
|
5875
5875
|
phase[sessionPhase(s.state)],
|
|
5876
|
-
"
|
|
5876
|
+
"_gR"
|
|
5877
5877
|
])}></span>${_el_resume($scope10_id, "a", $sg__input_sessions)}`);
|
|
5878
5878
|
_set_serialize_reason({
|
|
5879
5879
|
1: $sg__input_sessions,
|
|
@@ -5883,17 +5883,17 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
5883
5883
|
icon_agent_default({
|
|
5884
5884
|
agent: activeAgent(s),
|
|
5885
5885
|
size: 13,
|
|
5886
|
-
class: "
|
|
5886
|
+
class: "_gV"
|
|
5887
5887
|
});
|
|
5888
5888
|
_html(`<input${_attr_input_value($scope10_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
5889
5889
|
renameValue = _new_renameValue;
|
|
5890
|
-
}, "w0", $scope10_id))}${_attr_class(["
|
|
5890
|
+
}, "w0", $scope10_id))}${_attr_class(["_O", "_gS"])} aria-label="Session name">${_el_resume($scope10_id, "c")}`);
|
|
5891
5891
|
_script($scope10_id, "w5");
|
|
5892
5892
|
_subscribe($renameValue__closures, writeScope($scope10_id, { b: $si__input_sessions && _existing_scope($childScope4) }));
|
|
5893
5893
|
return 0;
|
|
5894
5894
|
} else {
|
|
5895
5895
|
const $scope9_id = _scope_id();
|
|
5896
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("
|
|
5896
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("_gU")}><span${_attr_class(["_t", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope9_id, "b", $sg__input_sessions)}`);
|
|
5897
5897
|
_set_serialize_reason({
|
|
5898
5898
|
1: $sg__input_sessions,
|
|
5899
5899
|
2: $sg__input_sessions
|
|
@@ -5902,11 +5902,11 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
5902
5902
|
icon_agent_default({
|
|
5903
5903
|
agent: activeAgent(s),
|
|
5904
5904
|
size: 13,
|
|
5905
|
-
class: "
|
|
5905
|
+
class: "_gV"
|
|
5906
5906
|
});
|
|
5907
|
-
_html(`<span${_attr_class("
|
|
5907
|
+
_html(`<span${_attr_class("_gP")}>${_escape(s.title || activeAgent(s))}${_el_resume($scope9_id, "e", $sg__input_sessions)}</span></a>${_el_resume($scope9_id, "a", _serialize_guard($scope0_reason, 6))}<div${_attr_class("_gQ")}><button${_attr_class(rowIcon)} title="Rename session">`);
|
|
5908
5908
|
icon_edit_default({ size: 12 });
|
|
5909
|
-
_html(`</button>${_el_resume($scope9_id, "g")}<button${_attr_class([close, { ["
|
|
5909
|
+
_html(`</button>${_el_resume($scope9_id, "g")}<button${_attr_class([close, { ["_k"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
|
|
5910
5910
|
icon_xmark_default({ size: 12 });
|
|
5911
5911
|
_html(`</button>${_el_resume($scope9_id, "i")}</div>`);
|
|
5912
5912
|
_if(() => {
|
|
@@ -5916,7 +5916,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
5916
5916
|
const $childScope6 = _peek_scope_id();
|
|
5917
5917
|
usage_pcts_default({
|
|
5918
5918
|
agent: openPlan,
|
|
5919
|
-
class: "
|
|
5919
|
+
class: "_gL"
|
|
5920
5920
|
});
|
|
5921
5921
|
_subscribe($openPlan__closures, writeScope($scope12_id, {
|
|
5922
5922
|
a: _existing_scope($childScope6),
|
|
@@ -6119,34 +6119,34 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6119
6119
|
const iconSrc = `/api/instance/icon${input.instanceAccent ? `?v=${input.instanceAccent.slice(1)}` : ""}`;
|
|
6120
6120
|
const otherIds = itemIds.filter((id) => id !== ws.id);
|
|
6121
6121
|
const listIds = isPage ? [ws.id, ...otherIds] : itemIds;
|
|
6122
|
-
_html(`<aside${_attr_class(["
|
|
6123
|
-
["
|
|
6124
|
-
["
|
|
6122
|
+
_html(`<aside${_attr_class(["_d3", {
|
|
6123
|
+
["_d1"]: !navOpen,
|
|
6124
|
+
["_d2"]: isPage
|
|
6125
6125
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
6126
6126
|
_if(() => {
|
|
6127
6127
|
if (isPage) {
|
|
6128
6128
|
const $scope1_id = _scope_id();
|
|
6129
|
-
_html(`<header${_attr_class("
|
|
6129
|
+
_html(`<header${_attr_class("_d6")}><div${_attr_class("_ee")}>`);
|
|
6130
6130
|
_if(() => {
|
|
6131
6131
|
if (input.instanceName) {
|
|
6132
6132
|
const $scope2_id = _scope_id();
|
|
6133
|
-
_html(`<div${_attr_class("
|
|
6133
|
+
_html(`<div${_attr_class("_eb")} title="This work server (Settings → Appearance)"><img${_attr_class("_ec")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_ed")}>${_escape(input.instanceName)}${_el_resume($scope2_id, "d", $sg__input_instanceName)}</span></div>`);
|
|
6134
6134
|
_subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
|
|
6135
6135
|
return 0;
|
|
6136
6136
|
}
|
|
6137
6137
|
}, $scope1_id, "c", $sg__input_instanceName, $sg__input_instanceName, 1, 0, 1);
|
|
6138
|
-
_html(`<h1${_attr_class("
|
|
6138
|
+
_html(`<h1${_attr_class("_d7")}>Workspaces</h1></div><div${_attr_class("_d8")}>`);
|
|
6139
6139
|
_if(() => {}, $scope1_id, "f", 1, 1, 1, 0, 1);
|
|
6140
6140
|
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
|
|
6141
6141
|
iconBtn$1,
|
|
6142
|
-
"
|
|
6143
|
-
{ ["
|
|
6142
|
+
"_d9",
|
|
6143
|
+
{ ["_dY"]: view === "settings" }
|
|
6144
6144
|
])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
6145
6145
|
icon_settings_default({ size: 16 });
|
|
6146
6146
|
_if(() => {
|
|
6147
6147
|
if (input.setupReady === false) {
|
|
6148
6148
|
const $scope12_id = _scope_id();
|
|
6149
|
-
_html(`<span${_attr_class(["
|
|
6149
|
+
_html(`<span${_attr_class(["_t", "_d0"])} title="Machine setup incomplete"></span>`);
|
|
6150
6150
|
$si__input_setupReady && writeScope($scope12_id, {});
|
|
6151
6151
|
return 0;
|
|
6152
6152
|
}
|
|
@@ -6159,18 +6159,18 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6159
6159
|
_if(() => {
|
|
6160
6160
|
if (!isPage && input.instanceName) {
|
|
6161
6161
|
const $scope3_id = _scope_id();
|
|
6162
|
-
_html(`<div${_attr_class("
|
|
6162
|
+
_html(`<div${_attr_class("_eb")} title="This work server (Settings → Appearance)"><img${_attr_class("_ec")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope3_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_ed")}>${_escape(input.instanceName)}${_el_resume($scope3_id, "d", $sg__input_instanceName)}</span></div>`);
|
|
6163
6163
|
writeScope($scope3_id, {});
|
|
6164
6164
|
return 0;
|
|
6165
6165
|
}
|
|
6166
6166
|
}, $scope0_id, "c", 1, 1, 1, 0, 1);
|
|
6167
|
-
_html(`<div${_attr_class("
|
|
6167
|
+
_html(`<div${_attr_class("_ef")}>`);
|
|
6168
6168
|
_for_of(listIds, (wsId) => {
|
|
6169
6169
|
const $scope4_id = _scope_id();
|
|
6170
6170
|
_if(() => {
|
|
6171
6171
|
if (isPage && wsId === ws.id) {
|
|
6172
6172
|
const $scope13_id = _scope_id();
|
|
6173
|
-
_html(`<h2${_attr_class(["
|
|
6173
|
+
_html(`<h2${_attr_class(["_bH", "_d_"])}>Current</h2>`);
|
|
6174
6174
|
writeScope($scope13_id, {});
|
|
6175
6175
|
return 0;
|
|
6176
6176
|
}
|
|
@@ -6178,7 +6178,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6178
6178
|
_if(() => {
|
|
6179
6179
|
if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
|
|
6180
6180
|
const $scope14_id = _scope_id();
|
|
6181
|
-
_html(`<h2${_attr_class(["
|
|
6181
|
+
_html(`<h2${_attr_class(["_bH", "_d_"])}>Other workspaces</h2>`);
|
|
6182
6182
|
writeScope($scope14_id, {});
|
|
6183
6183
|
return 0;
|
|
6184
6184
|
}
|
|
@@ -6265,7 +6265,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6265
6265
|
railHover = null;
|
|
6266
6266
|
}, 150);
|
|
6267
6267
|
}, "x6", $scope5_id);
|
|
6268
|
-
_html(`<div${_attr_class("
|
|
6268
|
+
_html(`<div${_attr_class("_eg")}>`);
|
|
6269
6269
|
_for_of(itemIds, (wsId, i) => {
|
|
6270
6270
|
const $scope6_id = _scope_id();
|
|
6271
6271
|
_html("<span>");
|
|
@@ -6319,7 +6319,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6319
6319
|
if (railHover) {
|
|
6320
6320
|
const $scope7_id = _scope_id();
|
|
6321
6321
|
const hoverId = railHover.id;
|
|
6322
|
-
_html(`<div${_attr_class(["
|
|
6322
|
+
_html(`<div${_attr_class(["_Y", "_ej"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
6323
6323
|
_set_serialize_reason({
|
|
6324
6324
|
0: 1,
|
|
6325
6325
|
1: 1,
|
|
@@ -6407,15 +6407,15 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6407
6407
|
return 0;
|
|
6408
6408
|
}
|
|
6409
6409
|
}, $scope0_id, "e");
|
|
6410
|
-
_html(`<div${_attr_class("
|
|
6410
|
+
_html(`<div${_attr_class("_eh")}>`);
|
|
6411
6411
|
_if(() => {
|
|
6412
6412
|
if (isPage) {
|
|
6413
6413
|
const $scope9_id = _scope_id();
|
|
6414
6414
|
_html(`<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([
|
|
6415
|
-
"
|
|
6416
|
-
"
|
|
6415
|
+
"_i",
|
|
6416
|
+
"_j",
|
|
6417
6417
|
btnLg,
|
|
6418
|
-
"
|
|
6418
|
+
"_ea"
|
|
6419
6419
|
])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
6420
6420
|
icon_folder_plus_default({ size: 16 });
|
|
6421
6421
|
_html(` New workspace</a>${_el_resume($scope9_id, "a")}`);
|
|
@@ -6437,19 +6437,19 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6437
6437
|
return 1;
|
|
6438
6438
|
}
|
|
6439
6439
|
}, $scope8_id, "a", 1, 1, 1, "</button>", 1);
|
|
6440
|
-
_html(`<div${_attr_class(["
|
|
6440
|
+
_html(`<div${_attr_class(["_s", "_ei"])}></div>`);
|
|
6441
6441
|
_if(() => {}, $scope8_id, "c", 1, 1, 1, 0, 1);
|
|
6442
|
-
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["
|
|
6442
|
+
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["_dY"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
6443
6443
|
icon_settings_default({ size: 15 });
|
|
6444
6444
|
_if(() => {
|
|
6445
6445
|
if (input.setupReady === false) {
|
|
6446
6446
|
const $scope17_id = _scope_id();
|
|
6447
|
-
_html(`<span${_attr_class(["
|
|
6447
|
+
_html(`<span${_attr_class(["_t", "_d0"])} title="Machine setup incomplete"></span>`);
|
|
6448
6448
|
$si__input_setupReady && writeScope($scope17_id, {});
|
|
6449
6449
|
return 0;
|
|
6450
6450
|
}
|
|
6451
6451
|
}, $scope8_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
6452
|
-
_html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn$1, { ["
|
|
6452
|
+
_html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn$1, { ["_dY"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
6453
6453
|
icon_folder_plus_default({ size: 16 });
|
|
6454
6454
|
_html(`</a>${_el_resume($scope8_id, "g")}`);
|
|
6455
6455
|
_script($scope8_id, "x15");
|
|
@@ -6514,12 +6514,12 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6514
6514
|
});
|
|
6515
6515
|
_resume_branch($scope0_id);
|
|
6516
6516
|
});
|
|
6517
|
-
var iconBtn = "
|
|
6518
|
-
var sectionCount = "
|
|
6519
|
-
var content = "
|
|
6520
|
-
var pageMeta = "
|
|
6521
|
-
var pathMeta = "
|
|
6522
|
-
var dangerHint = "
|
|
6517
|
+
var iconBtn = "_U _d";
|
|
6518
|
+
var sectionCount = "_bu _C _D";
|
|
6519
|
+
var content = "_cY _bk";
|
|
6520
|
+
var pageMeta = "_cZ _bp";
|
|
6521
|
+
var pathMeta = "_c2 _r";
|
|
6522
|
+
var dangerHint = "_c8 _M";
|
|
6523
6523
|
//#endregion
|
|
6524
6524
|
//#region src/tags/manage-workspace.marko
|
|
6525
6525
|
var api$2;
|
|
@@ -6617,7 +6617,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
6617
6617
|
setTimeout(() => loadProcs(void 0), 500);
|
|
6618
6618
|
}, "n5", $scope0_id);
|
|
6619
6619
|
const titleId = _id();
|
|
6620
|
-
_html(`<div${_attr_class("
|
|
6620
|
+
_html(`<div${_attr_class("_bi")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bj")}><div${_attr_class(content)}>`);
|
|
6621
6621
|
_set_serialize_reason(30);
|
|
6622
6622
|
const $childScope = _peek_scope_id();
|
|
6623
6623
|
page_head_default({
|
|
@@ -6630,16 +6630,16 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
6630
6630
|
meta: attrTag({ content: _content_resume("n11", () => {
|
|
6631
6631
|
_scope_reason();
|
|
6632
6632
|
const $scope8_id = _scope_id();
|
|
6633
|
-
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
6633
|
+
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_c0")}>${_escape(ws.name)}${_el_resume($scope8_id, "c")}</span>`);
|
|
6634
6634
|
_if(() => {
|
|
6635
6635
|
if (ws.status !== "active") {
|
|
6636
6636
|
const $scope11_id = _scope_id();
|
|
6637
|
-
_html(`<span${_attr_class(["
|
|
6637
|
+
_html(`<span${_attr_class(["_C", "_E"])}>Archived</span>`);
|
|
6638
6638
|
writeScope($scope11_id, {});
|
|
6639
6639
|
return 0;
|
|
6640
6640
|
}
|
|
6641
6641
|
}, $scope8_id, "d", 1, 1, 1, 0, 1);
|
|
6642
|
-
_html(`<span${_attr_class("
|
|
6642
|
+
_html(`<span${_attr_class("_c1")} aria-hidden=true>·</span><span${_attr_class(pathMeta)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope8_id, "g")}</span></span>${_el_resume($scope8_id, "a")}`);
|
|
6643
6643
|
_subscribe($ws_status__closures, _subscribe($ws_name__closures, _subscribe($ws_path__closures, _subscribe($ws_display_path__closures, writeScope($scope8_id, { _: _scope_with_id($scope0_id) })))));
|
|
6644
6644
|
_resume_branch($scope8_id);
|
|
6645
6645
|
}, $scope0_id) })
|
|
@@ -6667,26 +6667,26 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
6667
6667
|
_if(() => {
|
|
6668
6668
|
if (pendingAction && actionStep) {
|
|
6669
6669
|
const $scope7_id = _scope_id();
|
|
6670
|
-
_html(`<p${_attr_class("
|
|
6670
|
+
_html(`<p${_attr_class("_br")}><span${_attr_class("_z")}></span><!>${_escape(actionStep)}${_el_resume($scope7_id, "c")}</p>`);
|
|
6671
6671
|
writeScope($scope7_id, {});
|
|
6672
6672
|
return 0;
|
|
6673
6673
|
}
|
|
6674
6674
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
6675
|
-
_html(`<section${_attr_class("
|
|
6675
|
+
_html(`<section${_attr_class("_bs")}><div${_attr_class("_bt")}><h2${_attr_class("_bH")}>Repos</h2><span${_attr_class(sectionCount)}>${_escape(ws.repos.length)}${_el_resume($scope0_id, "k")}</span><div${_attr_class("_s")}></div><button${_attr_class(iconBtn)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
6676
6676
|
_set_serialize_reason(1);
|
|
6677
6677
|
const $childScope2 = _peek_scope_id();
|
|
6678
6678
|
icon_refresh_default({
|
|
6679
6679
|
size: 14,
|
|
6680
|
-
class: catalogRefreshing && "
|
|
6680
|
+
class: catalogRefreshing && "_y"
|
|
6681
6681
|
});
|
|
6682
|
-
_html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("
|
|
6682
|
+
_html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("_bv")}>`);
|
|
6683
6683
|
_for_of(ws.repos, (row) => {
|
|
6684
6684
|
const $scope1_id = _scope_id();
|
|
6685
|
-
_html(`<li${_attr_class("
|
|
6685
|
+
_html(`<li${_attr_class("_bx")}><div${_attr_class("_by")}><span${_attr_class(["_bz", "_r"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_bA")}><a${_attr_class(["_bB", "_c4"])}${_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")}`);
|
|
6686
6686
|
_if(() => {
|
|
6687
6687
|
if (row.base_branch !== row.default_branch) {
|
|
6688
6688
|
const $scope12_id = _scope_id();
|
|
6689
|
-
_html(`<span${_attr_class(["
|
|
6689
|
+
_html(`<span${_attr_class(["_C", "_r"])} title="Base branch">⎇ <!>${_escape(row.base_branch)}${_el_resume($scope12_id, "b")}</span>`);
|
|
6690
6690
|
writeScope($scope12_id, {});
|
|
6691
6691
|
return 0;
|
|
6692
6692
|
}
|
|
@@ -6695,16 +6695,16 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
6695
6695
|
_if(() => {
|
|
6696
6696
|
if (busy.has(row.full_name)) {
|
|
6697
6697
|
const $scope13_id = _scope_id();
|
|
6698
|
-
_html(`<span${_attr_class("
|
|
6698
|
+
_html(`<span${_attr_class("_z")}></span>`);
|
|
6699
6699
|
writeScope($scope13_id, {});
|
|
6700
6700
|
return 0;
|
|
6701
6701
|
} else {
|
|
6702
6702
|
const $scope6_id = _scope_id();
|
|
6703
6703
|
_html(`<button${_attr_class([
|
|
6704
|
-
"
|
|
6705
|
-
"
|
|
6706
|
-
"
|
|
6707
|
-
{ ["
|
|
6704
|
+
"_bC",
|
|
6705
|
+
"_W",
|
|
6706
|
+
"_X",
|
|
6707
|
+
{ ["_k"]: confirmingRemove === row.full_name }
|
|
6708
6708
|
])}${confirmingRemove === row.full_name ? _attr("title", `Remove ${row.worktree}/? Uncommitted changes are lost.`) : _attr("title", `Remove ${row.worktree}/`)}>`);
|
|
6709
6709
|
_if(() => {
|
|
6710
6710
|
if (confirmingRemove === row.full_name) {
|
|
@@ -6734,19 +6734,19 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
6734
6734
|
}, "full_name", $scope0_id, "p", 1, 1, 1, 0, 1);
|
|
6735
6735
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
6736
6736
|
const $scope16_id = _scope_id();
|
|
6737
|
-
_html(`<li${_attr_class(["
|
|
6737
|
+
_html(`<li${_attr_class(["_bx", "_bw"])}><span${_attr_class("_z")}></span><div${_attr_class("_by")}><span${_attr_class("_bB")}>Adding <!>${_escape(name)}${_el_resume($scope16_id, "e")}…</span></div></li>`);
|
|
6738
6738
|
writeScope($scope16_id, {});
|
|
6739
6739
|
}, (n) => n, $scope0_id, "q", 1, 1, 1, 0, 1);
|
|
6740
6740
|
_html("</ul>");
|
|
6741
6741
|
_if(() => {
|
|
6742
6742
|
if (!ws.repos.length && !busy.size) {
|
|
6743
6743
|
const $scope17_id = _scope_id();
|
|
6744
|
-
_html(`<p${_attr_class("
|
|
6744
|
+
_html(`<p${_attr_class("_bD")}>No repos yet. Search below to add one.</p>`);
|
|
6745
6745
|
writeScope($scope17_id, {});
|
|
6746
6746
|
return 0;
|
|
6747
6747
|
}
|
|
6748
6748
|
}, $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
6749
|
-
_html(`<div${_attr_class("
|
|
6749
|
+
_html(`<div${_attr_class("_c3")}>`);
|
|
6750
6750
|
const $childScope3 = _peek_scope_id();
|
|
6751
6751
|
let refreshCatalog = repo_picker_default({
|
|
6752
6752
|
exclude: inWorkspace,
|
|
@@ -6766,17 +6766,17 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
6766
6766
|
_if(() => {
|
|
6767
6767
|
if (running.length) {
|
|
6768
6768
|
const $scope9_id = _scope_id();
|
|
6769
|
-
_html(`<section${_attr_class("
|
|
6769
|
+
_html(`<section${_attr_class("_bs")}><div${_attr_class("_bt")}><h2${_attr_class("_bH")}>Running</h2><span${_attr_class(sectionCount)}>${_escape(running.length)}${_el_resume($scope9_id, "e")}</span></div><ul${_attr_class("_bv")}>`);
|
|
6770
6770
|
_for_of(running, (p) => {
|
|
6771
6771
|
const $scope10_id = _scope_id();
|
|
6772
|
-
_html(`<li${_attr_class("
|
|
6772
|
+
_html(`<li${_attr_class("_bx")}><div${_attr_class("_by")}${_attr("title", p.args)}><span${_attr_class(["_bz", "_r"])}>${_escape(p.cmd)}${_el_resume($scope10_id, "d")}</span>`);
|
|
6773
6773
|
_if(() => {
|
|
6774
6774
|
if (p.ports.length) {
|
|
6775
6775
|
const $scope18_id = _scope_id();
|
|
6776
|
-
_html(`<span${_attr_class("
|
|
6776
|
+
_html(`<span${_attr_class("_bA")}>`);
|
|
6777
6777
|
_for_of(p.ports, (port) => {
|
|
6778
6778
|
const $scope19_id = _scope_id();
|
|
6779
|
-
_html(`<button${_attr_class(["
|
|
6779
|
+
_html(`<button${_attr_class(["_m", "_c5"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope19_id, "b")}</button>${_el_resume($scope19_id, "a")}`);
|
|
6780
6780
|
_script($scope19_id, "n15");
|
|
6781
6781
|
writeScope($scope19_id, { d: port });
|
|
6782
6782
|
}, (x) => String(x), $scope18_id, "a", 1, 1, 1, "</span>", 1);
|
|
@@ -6784,7 +6784,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
6784
6784
|
return 0;
|
|
6785
6785
|
}
|
|
6786
6786
|
}, $scope10_id, "e", 1, 1, 1, 0, 1);
|
|
6787
|
-
_html(`</div>${_el_resume($scope10_id, "b")}<button${_attr_class(["
|
|
6787
|
+
_html(`</div>${_el_resume($scope10_id, "b")}<button${_attr_class(["_bC", "_W"])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
6788
6788
|
icon_xmark_default({ size: 14 });
|
|
6789
6789
|
_html(`</button>${_el_resume($scope10_id, "f")}</li>`);
|
|
6790
6790
|
_script($scope10_id, "n16");
|
|
@@ -6798,7 +6798,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
6798
6798
|
return 0;
|
|
6799
6799
|
}
|
|
6800
6800
|
}, $scope0_id, "v", 1, 1, 1, 0, 1);
|
|
6801
|
-
_html(`<section${_attr_class(["
|
|
6801
|
+
_html(`<section${_attr_class(["_bs", "_c6"])}><div${_attr_class("_bt")}><h2${_attr_class("_bH")}>Workspace</h2></div><div${_attr_class("_c7")}>`);
|
|
6802
6802
|
_if(() => {
|
|
6803
6803
|
if (ws.status === "active") {
|
|
6804
6804
|
const $scope4_id = _scope_id();
|
|
@@ -6816,8 +6816,8 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
6816
6816
|
}, $scope0_id, "a0", 1, 1, 1, 0, 1);
|
|
6817
6817
|
_html(`<button type=button${_attr_class([
|
|
6818
6818
|
btnLg,
|
|
6819
|
-
"
|
|
6820
|
-
{ ["
|
|
6819
|
+
"_l",
|
|
6820
|
+
{ ["_k"]: confirmingDelete }
|
|
6821
6821
|
])}${_attr("disabled", !!pendingAction)}>${pendingAction === "delete" ? "Deleting…" : "Delete"}${_el_resume($scope0_id, "a2")}</button>${_el_resume($scope0_id, "a1")}</div><p${_attr_class(dangerHint)}>Archive hides the workspace from the list. Delete removes it and its worktrees.</p></section></div></div></div>`);
|
|
6822
6822
|
_script($scope0_id, "n19");
|
|
6823
6823
|
_script($scope0_id, "n20");
|
|
@@ -6899,15 +6899,15 @@ var term_find_default = _template("y", (input) => {
|
|
|
6899
6899
|
const canStep = hasQuery && open;
|
|
6900
6900
|
const keybar = input.placement === "keybar";
|
|
6901
6901
|
_html(`<div${_attr_class([
|
|
6902
|
-
"
|
|
6903
|
-
keybar ? "
|
|
6904
|
-
!open && "
|
|
6905
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
6902
|
+
"_e8",
|
|
6903
|
+
keybar ? "_e_" : "_e9",
|
|
6904
|
+
!open && "_fb"
|
|
6905
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_e3", keybar ? "_fa" : "_e5"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
6906
6906
|
if (!open) return;
|
|
6907
6907
|
query = v;
|
|
6908
6908
|
live.query = v;
|
|
6909
6909
|
run(0);
|
|
6910
|
-
}, "y0", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
6910
|
+
}, "y0", $scope0_id))}${_attr_class([findInput, keybar && "_fc"])} 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 && "_fd"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↑</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_fd"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↓</button>${_el_resume($scope0_id, "e")}<button type=button${_attr_class([findIconBtn, keybar && "_fd"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
6911
6911
|
icon_xmark_default({ size: 14 });
|
|
6912
6912
|
_html(`</button>${_el_resume($scope0_id, "f")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
6913
6913
|
_script($scope0_id, "y4");
|
|
@@ -7181,7 +7181,7 @@ var term_default = _template("z", (input) => {
|
|
|
7181
7181
|
trapOpen = true;
|
|
7182
7182
|
}
|
|
7183
7183
|
}, "z14", $scope0_id);
|
|
7184
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
7184
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_ek")}><div${_attr_class("_el")}></div>${_el_resume($scope0_id, "b")}`);
|
|
7185
7185
|
_if(() => {
|
|
7186
7186
|
if (findOpen) {
|
|
7187
7187
|
const $scope12_id = _scope_id();
|
|
@@ -7208,7 +7208,7 @@ var term_default = _template("z", (input) => {
|
|
|
7208
7208
|
_if(() => {
|
|
7209
7209
|
if (uploading) {
|
|
7210
7210
|
const $scope19_id = _scope_id();
|
|
7211
|
-
_html(`<div${_attr_class("
|
|
7211
|
+
_html(`<div${_attr_class("_er")}>uploading…</div>`);
|
|
7212
7212
|
writeScope($scope19_id, {});
|
|
7213
7213
|
return 0;
|
|
7214
7214
|
}
|
|
@@ -7216,7 +7216,7 @@ var term_default = _template("z", (input) => {
|
|
|
7216
7216
|
_if(() => {
|
|
7217
7217
|
if (copiedFlash) {
|
|
7218
7218
|
const $scope20_id = _scope_id();
|
|
7219
|
-
_html(`<div${_attr_class("
|
|
7219
|
+
_html(`<div${_attr_class("_eq")}>Copied</div>`);
|
|
7220
7220
|
writeScope($scope20_id, {});
|
|
7221
7221
|
return 0;
|
|
7222
7222
|
}
|
|
@@ -7225,7 +7225,7 @@ var term_default = _template("z", (input) => {
|
|
|
7225
7225
|
_if(() => {
|
|
7226
7226
|
if (trapOpen) {
|
|
7227
7227
|
const $scope11_id = _scope_id();
|
|
7228
|
-
_html(`<div${_attr_class("
|
|
7228
|
+
_html(`<div${_attr_class("_es")}><div${_attr_class("_et")}><p${_attr_class("_eY")}>Long-press the field below and choose Paste</p><input placeholder="Paste here…">${_el_resume($scope11_id, "d")}<button${_attr_class("_i")}>Cancel</button>${_el_resume($scope11_id, "e")}</div>${_el_resume($scope11_id, "b")}</div>${_el_resume($scope11_id, "a")}`);
|
|
7229
7229
|
_script($scope11_id, "z25");
|
|
7230
7230
|
_script($scope11_id, "z26");
|
|
7231
7231
|
writeScope($scope11_id, {});
|
|
@@ -7328,7 +7328,7 @@ var work_view_default = _template("D", (input) => {
|
|
|
7328
7328
|
let DiffView = null;
|
|
7329
7329
|
const loadDiffView = _resume(() => {
|
|
7330
7330
|
if (DiffView) return;
|
|
7331
|
-
import("./
|
|
7331
|
+
import("./_D30X7Qrj.js").then((m) => {
|
|
7332
7332
|
DiffView = m.default;
|
|
7333
7333
|
});
|
|
7334
7334
|
}, "D6", $scope0_id);
|
|
@@ -7796,7 +7796,7 @@ var work_view_default = _template("D", (input) => {
|
|
|
7796
7796
|
_if(() => {
|
|
7797
7797
|
if (!shownSessions.length && view === "term") {
|
|
7798
7798
|
const $scope7_id = _scope_id();
|
|
7799
|
-
_html(`<div${_attr_class("
|
|
7799
|
+
_html(`<div${_attr_class("_bE")}><span>No sessions in this workspace.</span><button${_attr_class(["_i", "_j"])}${_attr("disabled", spawning)}>${spawning ? "Starting…" : `Start ${_escape(`${input.preferred || "shell"}`)}`}${_el_resume($scope7_id, "c")}</button>${_el_resume($scope7_id, "b")}</div>`);
|
|
7800
7800
|
_script($scope7_id, "D49");
|
|
7801
7801
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
7802
7802
|
return 0;
|
|
@@ -7806,7 +7806,7 @@ var work_view_default = _template("D", (input) => {
|
|
|
7806
7806
|
return 0;
|
|
7807
7807
|
} else {
|
|
7808
7808
|
const $scope10_id = _scope_id();
|
|
7809
|
-
_html(`<p${_attr_class("
|
|
7809
|
+
_html(`<p${_attr_class("_bE")}>Loading sessions…</p>`);
|
|
7810
7810
|
writeScope($scope10_id, {});
|
|
7811
7811
|
return 1;
|
|
7812
7812
|
}
|
|
@@ -8029,7 +8029,7 @@ var app_shell_default = _template("c", (input) => {
|
|
|
8029
8029
|
if (!openIds.includes(id)) openIds = openIds.concat(id);
|
|
8030
8030
|
prefs.setLastWorkspace(id);
|
|
8031
8031
|
}, "c4", $scope0_id);
|
|
8032
|
-
_html(`<div${_attr_class("
|
|
8032
|
+
_html(`<div${_attr_class("_0")}>`);
|
|
8033
8033
|
_if(() => {
|
|
8034
8034
|
if (error) {
|
|
8035
8035
|
const $scope5_id = _scope_id();
|
|
@@ -8052,7 +8052,7 @@ var app_shell_default = _template("c", (input) => {
|
|
|
8052
8052
|
_if(() => {
|
|
8053
8053
|
if (!selectedId && showSetup) {
|
|
8054
8054
|
const $scope4_id = _scope_id();
|
|
8055
|
-
_html(`<div${_attr_class("
|
|
8055
|
+
_html(`<div${_attr_class("_4")}>`);
|
|
8056
8056
|
_set_serialize_reason(106);
|
|
8057
8057
|
const $childScope = _peek_scope_id();
|
|
8058
8058
|
settings_page_default({
|
|
@@ -8086,7 +8086,7 @@ var app_shell_default = _template("c", (input) => {
|
|
|
8086
8086
|
};
|
|
8087
8087
|
}, "c9", $scope4_id)
|
|
8088
8088
|
});
|
|
8089
|
-
_html(`<div${_attr_class("
|
|
8089
|
+
_html(`<div${_attr_class("_5")}><button type=button${_attr_class("_i")}>Later, go to workspaces</button>${_el_resume($scope4_id, "d")}</div></div>`);
|
|
8090
8090
|
_script($scope4_id, "c24");
|
|
8091
8091
|
writeScope($scope4_id, { b: _existing_scope($childScope) });
|
|
8092
8092
|
return 0;
|
|
@@ -8111,14 +8111,14 @@ var app_shell_default = _template("c", (input) => {
|
|
|
8111
8111
|
return 1;
|
|
8112
8112
|
}
|
|
8113
8113
|
}, $scope0_id, "c", 1, 1, 1, 0, 1);
|
|
8114
|
-
_html(`<div${_attr_class(["
|
|
8114
|
+
_html(`<div${_attr_class(["_1", { ["_2"]: !selectedId }])}>`);
|
|
8115
8115
|
_for_of(openIds, (id) => {
|
|
8116
8116
|
const $scope1_id = _scope_id();
|
|
8117
8117
|
const ws = workspaces.find((w) => w.id === id);
|
|
8118
8118
|
_if(() => {
|
|
8119
8119
|
if (ws) {
|
|
8120
8120
|
const $scope2_id = _scope_id();
|
|
8121
|
-
_html(`<div${_attr_class("
|
|
8121
|
+
_html(`<div${_attr_class("_3")}>`);
|
|
8122
8122
|
_set_serialize_reason(1);
|
|
8123
8123
|
const $childScope3 = _peek_scope_id();
|
|
8124
8124
|
work_view_default({
|
|
@@ -15302,6 +15302,22 @@ var FLUSH_MS = 16;
|
|
|
15302
15302
|
/** Unacked websocket bytes beyond which the pty is paused instead of
|
|
15303
15303
|
* buffering more output for a client that isn't draining. */
|
|
15304
15304
|
var SEND_HIGH_WATER = 1 << 20;
|
|
15305
|
+
/** Protocol-level ping cadence. A quiet pane (agent idle, nobody typing)
|
|
15306
|
+
* sends nothing for minutes, and a tunnel / NAT / proxy idle timeout then
|
|
15307
|
+
* drops the socket half-open: the next keystrokes vanish into a dead TCP
|
|
15308
|
+
* connection until the browser notices and reconnects — felt as "typing
|
|
15309
|
+
* went laggy, then fixed itself". Pings are traffic to every intermediary
|
|
15310
|
+
* and the browser answers them without involving the page; a missed pong
|
|
15311
|
+
* terminates here so the client's onclose fires and it reconnects at once
|
|
15312
|
+
* instead of waiting out the half-open socket. The events bus does the same
|
|
15313
|
+
* at the app level (events-ws.ts). */
|
|
15314
|
+
var PING_MS$1 = 15e3;
|
|
15315
|
+
/** Frames at least this large are deflated. Small frames — keystroke echo,
|
|
15316
|
+
* a copy-mode scroll line (~0.4 KB) — skip zlib so their latency is
|
|
15317
|
+
* untouched; the win is agent TUI repaints of several KB, which shrink
|
|
15318
|
+
* 5–20× on the wire. Few sockets live at once, so per-socket zlib state is
|
|
15319
|
+
* not the concern ws's docs raise for large fleets. */
|
|
15320
|
+
var DEFLATE_THRESHOLD = 512;
|
|
15305
15321
|
/** Which dims each session's tmux window was last forced to — lets the
|
|
15306
15322
|
* input path skip the tmux exec when this client already holds the size.
|
|
15307
15323
|
* A memo, not the truth: the window can move under it (another client, a
|
|
@@ -15338,7 +15354,10 @@ function trackViewer(sessionId, delta) {
|
|
|
15338
15354
|
function attachTermServer(server) {
|
|
15339
15355
|
ensureTmuxServer();
|
|
15340
15356
|
detachStaleClients();
|
|
15341
|
-
const wss = new import_websocket_server.default({
|
|
15357
|
+
const wss = new import_websocket_server.default({
|
|
15358
|
+
noServer: true,
|
|
15359
|
+
perMessageDeflate: { threshold: DEFLATE_THRESHOLD }
|
|
15360
|
+
});
|
|
15342
15361
|
server.on("upgrade", (req, socket, head) => {
|
|
15343
15362
|
if (!(req.url || "").startsWith("/term/")) return;
|
|
15344
15363
|
wss.handleUpgrade(req, socket, head, (ws) => wss.emit("connection", ws, req));
|
|
@@ -15498,8 +15517,19 @@ async function handleTermConnection(ws, req) {
|
|
|
15498
15517
|
}
|
|
15499
15518
|
}
|
|
15500
15519
|
});
|
|
15520
|
+
let pongSeen = true;
|
|
15521
|
+
ws.on("pong", () => {
|
|
15522
|
+
pongSeen = true;
|
|
15523
|
+
});
|
|
15524
|
+
const ping = setInterval(() => {
|
|
15525
|
+
if (ws.readyState !== ws.OPEN) return;
|
|
15526
|
+
if (!pongSeen) return ws.terminate();
|
|
15527
|
+
pongSeen = false;
|
|
15528
|
+
ws.ping();
|
|
15529
|
+
}, PING_MS$1);
|
|
15501
15530
|
ws.on("close", () => {
|
|
15502
15531
|
if (visible) trackViewer(session.id, -1);
|
|
15532
|
+
clearInterval(ping);
|
|
15503
15533
|
clearTimeout(flushTimer);
|
|
15504
15534
|
proc.kill();
|
|
15505
15535
|
});
|
|
@@ -15662,4 +15692,4 @@ server.listen(port, () => {
|
|
|
15662
15692
|
//#endregion
|
|
15663
15693
|
export {};
|
|
15664
15694
|
|
|
15665
|
-
;var __MARKO_MANIFEST__={"ibphXY4":{"block":[2,"stylesheet#/assets/app-page-
|
|
15695
|
+
;var __MARKO_MANIFEST__={"ibphXY4":{"block":[2,"stylesheet#/assets/app-page-CBOLkS3u.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CBOLkS3u.css\"",">"],"defer":[2,"/assets/w._-Btf-ladG.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-Btf-ladG.js\"","></script>",2,"modulepreload#/assets/_DWhr2Wyd.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DWhr2Wyd.js\"",">"]},"ZLT8joi":{"block":[2,"stylesheet#/assets/app-page-CBOLkS3u.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CBOLkS3u.css\"",">"],"defer":[2,"/assets/new-Btf-ladG.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-Btf-ladG.js\"","></script>",2,"modulepreload#/assets/_DWhr2Wyd.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DWhr2Wyd.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/app-page-CBOLkS3u.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CBOLkS3u.css\"",">"],"defer":[2,"/assets/settings-Btf-ladG.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-Btf-ladG.js\"","></script>",2,"modulepreload#/assets/_DWhr2Wyd.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DWhr2Wyd.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/app-page-CBOLkS3u.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CBOLkS3u.css\"",">"],"defer":[2,"/assets/w._-ihiSObwS.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-ihiSObwS.js\"","></script>",2,"modulepreload#/assets/_DWhr2Wyd.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DWhr2Wyd.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/app-page-CBOLkS3u.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CBOLkS3u.css\"",">"],"defer":[2,"/assets/w-Btf-ladG.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-Btf-ladG.js\"","></script>",2,"modulepreload#/assets/_DWhr2Wyd.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DWhr2Wyd.js\"",">"]}};
|