@dylanpiercey/work 0.0.109 → 0.0.110
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/{_6msnLFmR.js → _B0yxZ9Td.js} +17 -17
- package/dist/{_Yw-sn_jV.js → _BjC9119e.js} +62 -61
- package/dist/index.mjs +339 -323
- package/dist/public/assets/{_jTGwakSJ.js → _7ckzktli.js} +1 -1
- package/dist/public/assets/_7ckzktli.js.br +0 -0
- package/dist/public/assets/{_BUUWE_0B.js → _B0ltsCEb.js} +1 -1
- package/dist/public/assets/_B0ltsCEb.js.br +0 -0
- package/dist/public/assets/{_CKFHK6Od.js → _B2HSDl-f.js} +1 -1
- package/dist/public/assets/_B2HSDl-f.js.br +0 -0
- package/dist/public/assets/{_DE7-csvr.js → _B9rRct_x.js} +1 -1
- package/dist/public/assets/_B9rRct_x.js.br +0 -0
- package/dist/public/assets/{_COes0C71.js → _BBT6_Y4j.js} +1 -1
- package/dist/public/assets/_BBT6_Y4j.js.br +0 -0
- package/dist/public/assets/{_iO-I1ACQ2.js → _BBWg8weo2.js} +1 -1
- package/dist/public/assets/_BBWg8weo2.js.br +0 -0
- package/dist/public/assets/_BDPhcxem.js +86 -0
- package/dist/public/assets/_BDPhcxem.js.br +0 -0
- package/dist/public/assets/{_B6Zv9ZpR2.js → _BKkGjOfB2.js} +1 -1
- package/dist/public/assets/{_DPGr-S3B2.js → _BOBRRCbH2.js} +1 -1
- package/dist/public/assets/_BOBRRCbH2.js.br +0 -0
- package/dist/public/assets/{_DqYmZUt-.js → _BOsu4gZN.js} +1 -1
- package/dist/public/assets/_BOsu4gZN.js.br +0 -0
- package/dist/public/assets/{_0FFSJe5A.js → _BUJAxhJ5.js} +1 -1
- package/dist/public/assets/_BUJAxhJ5.js.br +0 -0
- package/dist/public/assets/{_K2pawMVE.js → _BVS2lv-F.js} +1 -1
- package/dist/public/assets/_BVS2lv-F.js.br +0 -0
- package/dist/public/assets/{_DxWJ4iTk.js → _BYHfOiRZ.js} +1 -1
- package/dist/public/assets/_BYHfOiRZ.js.br +0 -0
- package/dist/public/assets/{_CGgSqvZi2.js → _B_hyezQp2.js} +1 -1
- package/dist/public/assets/_B_hyezQp2.js.br +0 -0
- package/dist/public/assets/{_C5ORrFTf2.js → _BdJ7_CPB2.js} +1 -1
- package/dist/public/assets/_BdJ7_CPB2.js.br +0 -0
- package/dist/public/assets/{_CTVeoHTA.js → _BitNKwvy.js} +1 -1
- package/dist/public/assets/_BitNKwvy.js.br +0 -0
- package/dist/public/assets/{_Bm_Q3uAQ.js → _BmJYXyvb.js} +1 -1
- package/dist/public/assets/_BmJYXyvb.js.br +0 -0
- package/dist/public/assets/{_vzdD-H3B2.js → _Bq9eJ7e32.js} +1 -1
- package/dist/public/assets/_Bq9eJ7e32.js.br +0 -0
- package/dist/public/assets/{_HHOsHgqe.js → _Bs7mTjc6.js} +1 -1
- package/dist/public/assets/_Bs7mTjc6.js.br +0 -0
- package/dist/public/assets/{_CCVGT8IE.js → _BuZp09LD.js} +1 -1
- package/dist/public/assets/_BuZp09LD.js.br +0 -0
- package/dist/public/assets/{_ZXKvuoyY.js → _BwBKVcvZ.js} +1 -1
- package/dist/public/assets/_BwBKVcvZ.js.br +0 -0
- package/dist/public/assets/{_DwsChWbp.js → _ByOhRaax.js} +1 -1
- package/dist/public/assets/_ByOhRaax.js.br +0 -0
- package/dist/public/assets/{_CMar4Aid.js → _BzGD3bqn.js} +1 -1
- package/dist/public/assets/_BzGD3bqn.js.br +0 -0
- package/dist/public/assets/{_J4AHFNJs.js → _BzbUIOlR.js} +1 -1
- package/dist/public/assets/_BzbUIOlR.js.br +0 -0
- package/dist/public/assets/{_ngBAVsDg.js → _BzfF2AHs.js} +1 -1
- package/dist/public/assets/_BzfF2AHs.js.br +0 -0
- package/dist/public/assets/{_5ogbBeW_2.js → _C4XebexE2.js} +1 -1
- package/dist/public/assets/_C4XebexE2.js.br +0 -0
- package/dist/public/assets/{_BlL7Zd342.js → _C97AD5si2.js} +1 -1
- package/dist/public/assets/_C97AD5si2.js.br +0 -0
- package/dist/public/assets/{_99mNYI3Y2.js → _CEVQ6vp52.js} +1 -1
- package/dist/public/assets/_CEVQ6vp52.js.br +0 -0
- package/dist/public/assets/{_BqmK9JPD.js → _CLav0960.js} +1 -1
- package/dist/public/assets/_CLav0960.js.br +0 -0
- package/dist/public/assets/{_BLLtvbBl2.js → _CMbJwLbg2.js} +1 -1
- package/dist/public/assets/_CMbJwLbg2.js.br +0 -0
- package/dist/public/assets/{_IjRA1iLF.js → _CVC2UZVe.js} +1 -1
- package/dist/public/assets/_CVC2UZVe.js.br +0 -0
- package/dist/public/assets/{_YNkJcdxn.js → _CWOqsgnr.js} +1 -1
- package/dist/public/assets/_CWOqsgnr.js.br +0 -0
- package/dist/public/assets/{_DhAxnhP8.js → _CY491ZBs.js} +1 -1
- package/dist/public/assets/_CY491ZBs.js.br +0 -0
- package/dist/public/assets/{_TqMQBoxi.js → _CZpoitW_.js} +1 -1
- package/dist/public/assets/_CZpoitW_.js.br +0 -0
- package/dist/public/assets/{_CxOwEFB72.js → _CaMXAiQl2.js} +1 -1
- package/dist/public/assets/_CaMXAiQl2.js.br +0 -0
- package/dist/public/assets/{_DYB0wloZ.js → _CbqyR7DJ.js} +1 -1
- package/dist/public/assets/_CbqyR7DJ.js.br +0 -0
- package/dist/public/assets/{_BNVsFTLU.js → _ChXCmWKM.js} +1 -1
- package/dist/public/assets/_ChXCmWKM.js.br +0 -0
- package/dist/public/assets/{_CXVG_Da9.js → _ClVK4eME.js} +1 -1
- package/dist/public/assets/_ClVK4eME.js.br +0 -0
- package/dist/public/assets/{_CSxAQRb8.js → _CnjqeevJ.js} +43 -43
- package/dist/public/assets/_CnjqeevJ.js.br +0 -0
- package/dist/public/assets/{_BZJ-u6G5.js → _CrDPLSY7.js} +1 -1
- package/dist/public/assets/_CrDPLSY7.js.br +0 -0
- package/dist/public/assets/{_DYNsNPrN.js → _CvwhKcer.js} +1 -1
- package/dist/public/assets/_CvwhKcer.js.br +0 -0
- package/dist/public/assets/{_n3_iVV2U.js → _D2e4Sg3s.js} +1 -1
- package/dist/public/assets/_D2e4Sg3s.js.br +0 -0
- package/dist/public/assets/{_9XUvNgxd2.js → _D65ZvCI72.js} +1 -1
- package/dist/public/assets/_D65ZvCI72.js.br +0 -0
- package/dist/public/assets/{_Xqu0H1VD2.js → _DE4v_AsV2.js} +1 -1
- package/dist/public/assets/_DE4v_AsV2.js.br +0 -0
- package/dist/public/assets/{_ClylIj8i.js → _DF2Fogr4.js} +1 -1
- package/dist/public/assets/_DF2Fogr4.js.br +0 -0
- package/dist/public/assets/{_DFevl3R7.js → _DFpXBzq0.js} +1 -1
- package/dist/public/assets/_DFpXBzq0.js.br +0 -0
- package/dist/public/assets/{_aVfSg65P.js → _DKtuwLR0.js} +1 -1
- package/dist/public/assets/_DKtuwLR0.js.br +0 -0
- package/dist/public/assets/{_DQ2eVLOT2.js → _DMUwd9H92.js} +1 -1
- package/dist/public/assets/_DMUwd9H92.js.br +0 -0
- package/dist/public/assets/{_CNU6qKiG2.js → _DMtPvxcV2.js} +1 -1
- package/dist/public/assets/_DMtPvxcV2.js.br +0 -0
- package/dist/public/assets/{_EtJFGopA2.js → _DT-26-wO2.js} +1 -1
- package/dist/public/assets/_DT-26-wO2.js.br +0 -0
- package/dist/public/assets/{_BE7_baGU.js → _DUdV0gz0.js} +1 -1
- package/dist/public/assets/_DUdV0gz0.js.br +0 -0
- package/dist/public/assets/{_D2LPLQ6G.js → _DUzysI8D.js} +1 -1
- package/dist/public/assets/_DUzysI8D.js.br +0 -0
- package/dist/public/assets/{_B1YjiLws.js → _DXHS0gtY.js} +1 -1
- package/dist/public/assets/_DXHS0gtY.js.br +0 -0
- package/dist/public/assets/{_DK5LQ2Pk.js → _D_QBXdt_.js} +1 -1
- package/dist/public/assets/_D_QBXdt_.js.br +0 -0
- package/dist/public/assets/{_Y5X_LL_X2.js → _DcrfU7rG2.js} +1 -1
- package/dist/public/assets/_DcrfU7rG2.js.br +0 -0
- package/dist/public/assets/{_Dk-h5TAI.js → _DeLJUKDo.js} +1 -1
- package/dist/public/assets/_DeLJUKDo.js.br +0 -0
- package/dist/public/assets/{_CGpM2ic7.js → _DhiEZNWQ.js} +1 -1
- package/dist/public/assets/_DhiEZNWQ.js.br +0 -0
- package/dist/public/assets/{_BpCqJWf0.js → _DpxdduiL.js} +1 -1
- package/dist/public/assets/_DpxdduiL.js.br +0 -0
- package/dist/public/assets/{_w88H0Dw6.js → _GHsg-0WN.js} +1 -1
- package/dist/public/assets/_GHsg-0WN.js.br +0 -0
- package/dist/public/assets/{_6aGesTBz.js → _GNS_1-no.js} +1 -1
- package/dist/public/assets/_GNS_1-no.js.br +0 -0
- package/dist/public/assets/{_CP0OUfBv.js → _JnfClY18.js} +1 -1
- package/dist/public/assets/_JnfClY18.js.br +0 -0
- package/dist/public/assets/{_BT1VCIUi2.js → _JpHoXHnG2.js} +1 -1
- package/dist/public/assets/_JpHoXHnG2.js.br +0 -0
- package/dist/public/assets/{_CFQ_2CO9.js → _MvFtViDV.js} +1 -1
- package/dist/public/assets/_MvFtViDV.js.br +0 -0
- package/dist/public/assets/{_BunhQb6w.js → _NsfLTym2.js} +1 -1
- package/dist/public/assets/_NsfLTym2.js.br +0 -0
- package/dist/public/assets/{_C0GVZdlm2.js → _PejqmM9H2.js} +1 -1
- package/dist/public/assets/_PejqmM9H2.js.br +0 -0
- package/dist/public/assets/{_CMmnjpY22.js → _QEWkVGVk2.js} +1 -1
- package/dist/public/assets/_QEWkVGVk2.js.br +0 -0
- package/dist/public/assets/{_lvWH_Mvw2.js → _W-TttWav2.js} +1 -1
- package/dist/public/assets/_W-TttWav2.js.br +0 -0
- package/dist/public/assets/{_D074iR8F2.js → _ZRQ47Ejr2.js} +1 -1
- package/dist/public/assets/{_BkuSFddQ2.js → _g2T-JNXL2.js} +1 -1
- package/dist/public/assets/_g2T-JNXL2.js.br +0 -0
- package/dist/public/assets/{_BOkO9-BE.js → _knKPvKOH.js} +1 -1
- package/dist/public/assets/_knKPvKOH.js.br +0 -0
- package/dist/public/assets/{_DSyki8Vm.js → _oI8LLbVP.js} +1 -1
- package/dist/public/assets/_oI8LLbVP.js.br +0 -0
- package/dist/public/assets/{_CcszNEfP.js → _pXWCzuLS.js} +1 -1
- package/dist/public/assets/_pXWCzuLS.js.br +0 -0
- package/dist/public/assets/{_BRIjaWF5.js → _v0rWp9Cj.js} +1 -1
- package/dist/public/assets/_v0rWp9Cj.js.br +0 -0
- package/dist/public/assets/{_DXfqoBMo.js → _wgT8HlwA.js} +1 -1
- package/dist/public/assets/{_bqE4u0Bd.js → _z-WUeSlu.js} +1 -1
- package/dist/public/assets/_z-WUeSlu.js.br +0 -0
- package/dist/public/assets/{_CGAAhpqg2.js → _zd34gq7E2.js} +1 -1
- package/dist/public/assets/_zd34gq7E2.js.br +0 -0
- package/dist/public/assets/app-page-fA496vCk.css +1 -0
- package/dist/public/assets/app-page-fA496vCk.css.br +0 -0
- package/dist/public/assets/diff-view-DS3JYk7X.css +1 -0
- package/dist/public/assets/diff-view-DS3JYk7X.css.br +0 -0
- package/dist/public/assets/new-C0PsT8Xt.js +1 -0
- package/dist/public/assets/settings-C0PsT8Xt.js +1 -0
- package/dist/public/assets/w-C0PsT8Xt.js +1 -0
- package/dist/public/assets/w._-B71Uf4-5.js +1 -0
- package/dist/public/assets/w._-C0PsT8Xt.js +1 -0
- package/package.json +1 -1
- package/scripts/migrate.mjs +19 -0
- package/dist/public/assets/_0FFSJe5A.js.br +0 -0
- package/dist/public/assets/_5ogbBeW_2.js.br +0 -0
- package/dist/public/assets/_6aGesTBz.js.br +0 -0
- package/dist/public/assets/_99mNYI3Y2.js.br +0 -0
- package/dist/public/assets/_9XUvNgxd2.js.br +0 -0
- package/dist/public/assets/_B1YjiLws.js.br +0 -0
- package/dist/public/assets/_BE7_baGU.js.br +0 -0
- package/dist/public/assets/_BLLtvbBl2.js.br +0 -0
- package/dist/public/assets/_BNVsFTLU.js.br +0 -0
- package/dist/public/assets/_BOkO9-BE.js.br +0 -0
- package/dist/public/assets/_BRIjaWF5.js.br +0 -0
- package/dist/public/assets/_BT1VCIUi2.js.br +0 -0
- package/dist/public/assets/_BUUWE_0B.js.br +0 -0
- package/dist/public/assets/_BZJ-u6G5.js.br +0 -0
- package/dist/public/assets/_BkuSFddQ2.js.br +0 -0
- package/dist/public/assets/_BlL7Zd342.js.br +0 -0
- package/dist/public/assets/_Bm_Q3uAQ.js.br +0 -0
- package/dist/public/assets/_BpCqJWf0.js.br +0 -0
- package/dist/public/assets/_BqmK9JPD.js.br +0 -0
- package/dist/public/assets/_BunhQb6w.js.br +0 -0
- package/dist/public/assets/_C0GVZdlm2.js.br +0 -0
- package/dist/public/assets/_C5ORrFTf2.js.br +0 -0
- package/dist/public/assets/_CCVGT8IE.js.br +0 -0
- package/dist/public/assets/_CFQ_2CO9.js.br +0 -0
- package/dist/public/assets/_CGAAhpqg2.js.br +0 -0
- package/dist/public/assets/_CGgSqvZi2.js.br +0 -0
- package/dist/public/assets/_CGpM2ic7.js.br +0 -0
- package/dist/public/assets/_CKFHK6Od.js.br +0 -0
- package/dist/public/assets/_CMar4Aid.js.br +0 -0
- package/dist/public/assets/_CMmnjpY22.js.br +0 -0
- package/dist/public/assets/_CNU6qKiG2.js.br +0 -0
- package/dist/public/assets/_COes0C71.js.br +0 -0
- package/dist/public/assets/_CP0OUfBv.js.br +0 -0
- package/dist/public/assets/_CSxAQRb8.js.br +0 -0
- package/dist/public/assets/_CTVeoHTA.js.br +0 -0
- package/dist/public/assets/_CXVG_Da9.js.br +0 -0
- package/dist/public/assets/_CcszNEfP.js.br +0 -0
- package/dist/public/assets/_ClylIj8i.js.br +0 -0
- package/dist/public/assets/_CxOwEFB72.js.br +0 -0
- package/dist/public/assets/_D2LPLQ6G.js.br +0 -0
- package/dist/public/assets/_DE7-csvr.js.br +0 -0
- package/dist/public/assets/_DFevl3R7.js.br +0 -0
- package/dist/public/assets/_DK5LQ2Pk.js.br +0 -0
- package/dist/public/assets/_DPGr-S3B2.js.br +0 -0
- package/dist/public/assets/_DQ2eVLOT2.js.br +0 -0
- package/dist/public/assets/_DSyki8Vm.js.br +0 -0
- package/dist/public/assets/_DYB0wloZ.js.br +0 -0
- package/dist/public/assets/_DYNsNPrN.js.br +0 -0
- package/dist/public/assets/_DhAxnhP8.js.br +0 -0
- package/dist/public/assets/_Dk-h5TAI.js.br +0 -0
- package/dist/public/assets/_DqYmZUt-.js.br +0 -0
- package/dist/public/assets/_DwsChWbp.js.br +0 -0
- package/dist/public/assets/_DxWJ4iTk.js.br +0 -0
- package/dist/public/assets/_EtJFGopA2.js.br +0 -0
- package/dist/public/assets/_HHOsHgqe.js.br +0 -0
- package/dist/public/assets/_IjRA1iLF.js.br +0 -0
- package/dist/public/assets/_J4AHFNJs.js.br +0 -0
- package/dist/public/assets/_K2pawMVE.js.br +0 -0
- package/dist/public/assets/_TqMQBoxi.js.br +0 -0
- package/dist/public/assets/_Xqu0H1VD2.js.br +0 -0
- package/dist/public/assets/_Y5X_LL_X2.js.br +0 -0
- package/dist/public/assets/_YNkJcdxn.js.br +0 -0
- package/dist/public/assets/_ZXKvuoyY.js.br +0 -0
- package/dist/public/assets/_aVfSg65P.js.br +0 -0
- package/dist/public/assets/_bqE4u0Bd.js.br +0 -0
- package/dist/public/assets/_g9lhXp6a.js +0 -86
- package/dist/public/assets/_g9lhXp6a.js.br +0 -0
- package/dist/public/assets/_iO-I1ACQ2.js.br +0 -0
- package/dist/public/assets/_jTGwakSJ.js.br +0 -0
- package/dist/public/assets/_lvWH_Mvw2.js.br +0 -0
- package/dist/public/assets/_n3_iVV2U.js.br +0 -0
- package/dist/public/assets/_ngBAVsDg.js.br +0 -0
- package/dist/public/assets/_vzdD-H3B2.js.br +0 -0
- package/dist/public/assets/_w88H0Dw6.js.br +0 -0
- package/dist/public/assets/app-page-BO9uc1Ar.css +0 -1
- package/dist/public/assets/app-page-BO9uc1Ar.css.br +0 -0
- package/dist/public/assets/diff-view-CGCbZuma.css +0 -1
- package/dist/public/assets/diff-view-CGCbZuma.css.br +0 -0
- package/dist/public/assets/new-D4raGU5q.js +0 -1
- package/dist/public/assets/settings-D4raGU5q.js +0 -1
- package/dist/public/assets/w-D4raGU5q.js +0 -1
- package/dist/public/assets/w._-D4raGU5q.js +0 -1
- package/dist/public/assets/w._-DIIfmQC0.js +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM, r as __exportAll, t as __commonJSMin } from "./_BMI-E3GI.js";
|
|
2
2
|
import { $ as setSetting, A as setScrapedPhase, B as saveSubscription, C as agentBadge, D as agentMeta, E as agentLabel, F as manifest, G as agentChoices, H as subscribe, I as normalizeAccent, J as enabledAgents, K as allPrefs, L as setInstance, M as ACCENT_RE, N as getInstance, O as clearAgentPhase, P as iconSvg, Q as setPref, R as deleteSubscription, S as blankRow, T as agentFromCommand, U as subscriberCount, V as publish, W as subscriberJoins, X as preferredAgent, Y as getSetting, Z as setDisabledAgents, _ as tmuxName, _t as tmux, a as ensureTmuxServer, at as DEFAULT_GITHUB_HOST, b as readHookPayload, c as killWorkspaceSessions, ct as toolById, d as newSessionArgs, dt as get, et as doctor, ft as workspacePath, g as sessionStates, gt as run, h as sendToSession, ht as git, i as disposeSessions, it as which, j as setSessionViewers, k as setAgentPhase, l as listSessions, lt as all, m as renameSession, mt as gh, n as clearTmuxStarted, nt as miseVersions, o as getSession, ot as TOOLS, p as panePids, pt as TMUX_SOCKET, q as disabledAgents, r as createSession, rt as setupPath, s as killSession, st as agentById, t as cleanEnv, tt as ghKnownHosts, u as markTmuxStarted, ut as db, v as tmuxWasStarted, vt as config, w as agentFamily, x as reportsWorking, y as AGENTS, z as pushPublicKey } from "./_BYk3MBDh.js";
|
|
3
|
-
import { $ as _await, A as repoLabel, At as _try, B as phase, C as sideNavOpen, Ct as _serialize_guard, D as icon_xmark_default, Dt as _template, E as toast_default, Et as _subscribe, H as $global, I as iconBtnRow, J as _attr_or, K as _attr_input_value, L as iconBtnXs, M as setPrimaryHost, Mt as attrTag, N as btnLg, Nt as
|
|
3
|
+
import { $ as _await, A as repoLabel, At as _try, B as phase, C as sideNavOpen, Ct as _serialize_guard, D as icon_xmark_default, Dt as _template, E as toast_default, Et as _subscribe, Ft as writeScope, H as $global, I as iconBtnRow, J as _attr_or, K as _attr_input_value, L as iconBtnXs, M as setPrimaryHost, Mt as attrTag, N as btnLg, Nt as forOf, O as icon_base_default, Ot as _to_text, P as btnSm, Pt as withPageAssets, Q as _attrs_partial, R as inputLg, S as setWorkspaceTab, St as _sep, T as workspaceTab, Tt as _set_serialize_reason, U as _attr, V as tone, W as _attr_class, X as _attr_style, Y as _attr_select_value, Z as _attrs, _t as _resume_branch, at as _el_resume, bt as _scope_with_id, c as icon_arrow_up_default, ct as _flush_head, d as iconBtn$2, dt as _hoist_read_error, et as _content, f as row, ft as _html, gt as _resume, ht as _peek_scope_id, i as icon_sidebar_default, it as _el_read_error, j as repoWebUrl$1, jt as _var, k as parseRepoUrl, kt as _trailers, l as icon_back_default, lt as _for_of, mt as _if, n as findIconBtn, nt as _dynamic_tag, o as rankRepos, ot as _escape, p as sectionCount$1, pt as _id, q as _attr_option_value, r as findInput, s as icon_search_default, st as _existing_scope, t as icon_arrow_down_default, tt as _content_resume, u as icon_refresh_default, ut as _hoist, v as ignoredSsoOrgs, vt as _scope_id, w as theme, wt as _serialize_if, x as setTheme, xt as _script, yt as _scope_reason, z as metaTrunc } from "./_B0yxZ9Td.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
import path from "node:path";
|
|
@@ -2566,6 +2566,8 @@ it is the required **prefix** for every other branch you create.
|
|
|
2566
2566
|
so a branch named anything else is invisible: never invent one.
|
|
2567
2567
|
- **Repos:**
|
|
2568
2568
|
${repos.map((r) => `- \`${r.worktree}/\`: ${r.full_name} (base: \`${r.base_branch}\`)`).join("\n")}
|
|
2569
|
+
- **Repo agents files:** you **MUST** read a repo's \`AGENTS.md\` (or
|
|
2570
|
+
\`CLAUDE.md\`) before doing any work in it. It is not loaded for you.
|
|
2569
2571
|
- **No \`git stash\`:** every workspace using a repo shares one stash stack, so
|
|
2570
2572
|
a pop can take another workspace's work. Commit as you go; uncommitted
|
|
2571
2573
|
work isn't part of the review.
|
|
@@ -3811,26 +3813,28 @@ function applyInstance(inst) {
|
|
|
3811
3813
|
}
|
|
3812
3814
|
//#endregion
|
|
3813
3815
|
//#region src/tags/settings-page.css.ts
|
|
3814
|
-
var content$2 = "
|
|
3815
|
-
var agentGrid = "
|
|
3816
|
-
var toolGrid = "
|
|
3816
|
+
var content$2 = "_cd _bG _bH";
|
|
3817
|
+
var agentGrid = "_ch _br";
|
|
3818
|
+
var toolGrid = "_cr _br";
|
|
3819
|
+
var themeSeg = "_cG _6";
|
|
3820
|
+
var swatches = "_cO _6";
|
|
3817
3821
|
//#endregion
|
|
3818
3822
|
//#region src/tags/page-head.marko
|
|
3819
3823
|
var page_head_default = _template("r", (input) => {
|
|
3820
3824
|
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);
|
|
3821
3825
|
const $scope0_id = _scope_id();
|
|
3822
|
-
_html(`<header${_attr_class("
|
|
3826
|
+
_html(`<header${_attr_class("_bI")}>`);
|
|
3823
3827
|
_if(() => {
|
|
3824
3828
|
if (input.backHref) {
|
|
3825
3829
|
const $scope1_id = _scope_id();
|
|
3826
|
-
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "
|
|
3830
|
+
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_cU"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
3827
3831
|
icon_back_default({ size: 16 });
|
|
3828
3832
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
3829
3833
|
_serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
|
|
3830
3834
|
return 0;
|
|
3831
3835
|
} else if (input.onBack) {
|
|
3832
3836
|
const $scope2_id = _scope_id();
|
|
3833
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
3837
|
+
_html(`<button${_attr_class([iconBtnRow, "_cU"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
3834
3838
|
icon_back_default({ size: 16 });
|
|
3835
3839
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
3836
3840
|
_script($scope2_id, "r0");
|
|
@@ -3838,11 +3842,11 @@ var page_head_default = _template("r", (input) => {
|
|
|
3838
3842
|
return 1;
|
|
3839
3843
|
}
|
|
3840
3844
|
}, $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);
|
|
3841
|
-
_html(`<div${_attr_class("
|
|
3845
|
+
_html(`<div${_attr_class("_bK")}><h1${_attr("id", input.titleId)}${_attr_class("_bJ")}>${_escape(input.title)}${_el_resume($scope0_id, "e", _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
|
|
3842
3846
|
_if(() => {
|
|
3843
3847
|
if (input.meta) {
|
|
3844
3848
|
const $scope3_id = _scope_id();
|
|
3845
|
-
_html(`<p${_attr_class("
|
|
3849
|
+
_html(`<p${_attr_class("_bL")}>`);
|
|
3846
3850
|
_dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
3847
3851
|
_html("</p>");
|
|
3848
3852
|
$si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -3853,7 +3857,7 @@ var page_head_default = _template("r", (input) => {
|
|
|
3853
3857
|
_if(() => {
|
|
3854
3858
|
if (input.actions) {
|
|
3855
3859
|
const $scope4_id = _scope_id();
|
|
3856
|
-
_html(`<div${_attr_class("
|
|
3860
|
+
_html(`<div${_attr_class("_bM")}>`);
|
|
3857
3861
|
_dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
3858
3862
|
_html("</div>");
|
|
3859
3863
|
$si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -3921,7 +3925,7 @@ var icon_agent_default = _template("G", (input) => {
|
|
|
3921
3925
|
n: $badge__closures
|
|
3922
3926
|
});
|
|
3923
3927
|
});
|
|
3924
|
-
var usageNote = "
|
|
3928
|
+
var usageNote = "_c3 _S";
|
|
3925
3929
|
//#endregion
|
|
3926
3930
|
//#region src/tags/icons/icon-warning.marko
|
|
3927
3931
|
var icon_warning_default = _template("kb", (input) => {
|
|
@@ -3962,11 +3966,11 @@ var usage_meters_default = _template("D", (input) => {
|
|
|
3962
3966
|
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);
|
|
3963
3967
|
const $scope0_id = _scope_id();
|
|
3964
3968
|
const agent = input.agent;
|
|
3965
|
-
_html(`<div${_attr_class(["
|
|
3969
|
+
_html(`<div${_attr_class(["_cX", { ["_cY"]: input.hideName }])}><div${_attr_class("_cZ")}>`);
|
|
3966
3970
|
_if(() => {
|
|
3967
3971
|
if (!input.hideName) {
|
|
3968
3972
|
const $scope1_id = _scope_id();
|
|
3969
|
-
_html(`<strong${_attr_class("
|
|
3973
|
+
_html(`<strong${_attr_class("_dh")}>${_escape(agent.agent)}${_el_resume($scope1_id, "b", $sg__input_agent)}</strong>`);
|
|
3970
3974
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
3971
3975
|
return 0;
|
|
3972
3976
|
}
|
|
@@ -3974,7 +3978,7 @@ var usage_meters_default = _template("D", (input) => {
|
|
|
3974
3978
|
_if(() => {
|
|
3975
3979
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
3976
3980
|
const $scope2_id = _scope_id();
|
|
3977
|
-
_html(`<span${_attr_class("
|
|
3981
|
+
_html(`<span${_attr_class("_c0")}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope2_id, "b", $sg__input_agent)}</span>`);
|
|
3978
3982
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
3979
3983
|
return 0;
|
|
3980
3984
|
}
|
|
@@ -3982,21 +3986,21 @@ var usage_meters_default = _template("D", (input) => {
|
|
|
3982
3986
|
_if(() => {
|
|
3983
3987
|
if (agent.stale_seconds != null) {
|
|
3984
3988
|
const $scope3_id = _scope_id();
|
|
3985
|
-
_html(`<span${_attr_class("
|
|
3989
|
+
_html(`<span${_attr_class("_c1")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
|
|
3986
3990
|
icon_warning_default({ size: 12 });
|
|
3987
3991
|
_html(` ${_sep($sg__input_agent)}${_escape(duration(agent.stale_seconds * 1e3))}${_el_resume($scope3_id, "c", $sg__input_agent)} old</span>${_el_resume($scope3_id, "a", $sg__input_agent)}`);
|
|
3988
3992
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
3989
3993
|
return 0;
|
|
3990
3994
|
}
|
|
3991
3995
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
3992
|
-
_html(`</div><div${_attr_class(["
|
|
3996
|
+
_html(`</div><div${_attr_class(["_c2", { ["_di"]: agent.stale_seconds != null }])}>`);
|
|
3993
3997
|
_for_of(agent.windows || [], (win) => {
|
|
3994
3998
|
const $scope4_id = _scope_id();
|
|
3995
3999
|
const pct = pctText$1(win.used_percent);
|
|
3996
4000
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
3997
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
3998
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
3999
|
-
_html(`<div${_attr_class("
|
|
4001
|
+
const fillClass = win.used_percent >= 90 ? "_da" : win.used_percent >= 70 ? "_c_" : win.used_percent >= 40 ? "_c9" : "_c8";
|
|
4002
|
+
const pctClass = win.used_percent >= 90 ? "_df" : win.used_percent >= 70 ? "_de" : win.used_percent >= 40 ? "_dd" : "_dc";
|
|
4003
|
+
_html(`<div${_attr_class("_c4")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_c5")}>${_escape(win.window)}${_el_resume($scope4_id, "c", $sg__input_agent)}</span><span${_attr_class("_c6")}><span${_attr_class(["_c7", 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(["_db", pctClass])}>${_escape(pct)}${_el_resume($scope4_id, "g", $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_dg")}>`);
|
|
4000
4004
|
_if(() => {
|
|
4001
4005
|
if (label) {
|
|
4002
4006
|
const $scope6_id = _scope_id();
|
|
@@ -4075,14 +4079,14 @@ var sso_auth_default = _template("z", (input) => {
|
|
|
4075
4079
|
localCode = null;
|
|
4076
4080
|
}
|
|
4077
4081
|
}, "z0", $scope0_id);
|
|
4078
|
-
_html(`<div${_attr_class("
|
|
4082
|
+
_html(`<div${_attr_class("_dz")}>`);
|
|
4079
4083
|
_if(() => {
|
|
4080
4084
|
if (input.items.length) {
|
|
4081
4085
|
const $scope1_id = _scope_id();
|
|
4082
|
-
_html(`<p${_attr_class("
|
|
4086
|
+
_html(`<p${_attr_class("_dK")}>GitHub CLI needs org SSO for ${_sep($sg__input_items)}${_escape(input.items.map((s) => s.org).join(", "))}${_el_resume($scope1_id, "b", $sg__input_items)}.</p><ul${_attr_class("_dA")}>`);
|
|
4083
4087
|
_for_of(input.items, (s) => {
|
|
4084
4088
|
const $scope2_id = _scope_id();
|
|
4085
|
-
_html(`<li${_attr_class("
|
|
4089
|
+
_html(`<li${_attr_class("_dB")}>${_escape(s.org)}${_el_resume($scope2_id, "b", $sg__input_items)}<button type=button${_attr_class("_dC")}${_attr("title", `Skip ${s.org}`)}${_attr("aria-label", `Skip ${s.org}`)}${_attr("disabled", busy)}>`);
|
|
4086
4090
|
icon_xmark_default({ size: 11 });
|
|
4087
4091
|
_html(`</button>${_el_resume($scope2_id, "c")}</li>`);
|
|
4088
4092
|
_script($scope2_id, "z1");
|
|
@@ -4091,17 +4095,17 @@ var sso_auth_default = _template("z", (input) => {
|
|
|
4091
4095
|
_: _scope_with_id($scope1_id)
|
|
4092
4096
|
}));
|
|
4093
4097
|
}, "org", $scope1_id, "c", $sg__input_items, $sg__input_items, $sg__input_items, "</ul>", 1);
|
|
4094
|
-
_html(`<div${_attr_class("
|
|
4098
|
+
_html(`<div${_attr_class("_dD")}>`);
|
|
4095
4099
|
_if(() => {
|
|
4096
4100
|
if (busy && authCode$2) {
|
|
4097
4101
|
const $scope5_id = _scope_id();
|
|
4098
|
-
_html(`<span${_attr_class("
|
|
4102
|
+
_html(`<span${_attr_class("_dE")}><span${_attr_class("_F")}></span> Enter code <strong${_attr_class("_dF")}>${_escape(authCode$2)}${_el_resume($scope5_id, "d")}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_dG")}>${_escape(host)}${_el_resume($scope5_id, "f", _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope5_id, "e")}</span>`);
|
|
4099
4103
|
_script($scope5_id, "z2");
|
|
4100
4104
|
_subscribe($authCode__closures, _subscribe($si__input_items_0_host && $host__closures, writeScope($scope5_id, {})));
|
|
4101
4105
|
return 0;
|
|
4102
4106
|
} else if (busy) {
|
|
4103
4107
|
const $scope8_id = _scope_id();
|
|
4104
|
-
_html(`<span${_attr_class("
|
|
4108
|
+
_html(`<span${_attr_class("_dE")}><span${_attr_class("_F")}></span>Starting GitHub re-authorization…</span>`);
|
|
4105
4109
|
writeScope($scope8_id, {});
|
|
4106
4110
|
return 1;
|
|
4107
4111
|
} else {
|
|
@@ -4115,7 +4119,7 @@ var sso_auth_default = _template("z", (input) => {
|
|
|
4115
4119
|
_if(() => {
|
|
4116
4120
|
if (localError) {
|
|
4117
4121
|
const $scope6_id = _scope_id();
|
|
4118
|
-
_html(`<p${_attr_class("
|
|
4122
|
+
_html(`<p${_attr_class("_dK")}>${_escape(localError)}${_el_resume($scope6_id, "b")}</p>`);
|
|
4119
4123
|
_subscribe($localError__closures, writeScope($scope6_id, {}));
|
|
4120
4124
|
return 0;
|
|
4121
4125
|
}
|
|
@@ -4127,10 +4131,10 @@ var sso_auth_default = _template("z", (input) => {
|
|
|
4127
4131
|
_if(() => {
|
|
4128
4132
|
if (skipped$1.length) {
|
|
4129
4133
|
const $scope3_id = _scope_id();
|
|
4130
|
-
_html(`<p${_attr_class("
|
|
4134
|
+
_html(`<p${_attr_class("_dH")}>Skipped SSO for `);
|
|
4131
4135
|
_for_of(skipped$1, (s) => {
|
|
4132
4136
|
const $scope4_id = _scope_id();
|
|
4133
|
-
_html(`<span${_attr_class("
|
|
4137
|
+
_html(`<span${_attr_class("_dI")}>${_escape(s.org)}${_el_resume($scope4_id, "b", $sg__input_skipped)}<button type=button${_attr_class("_dJ")}${_attr("title", `Show ${s.org} again`)}>(undo)</button>${_el_resume($scope4_id, "c")}</span>`);
|
|
4134
4138
|
_script($scope4_id, "z4");
|
|
4135
4139
|
writeScope($scope4_id, {
|
|
4136
4140
|
f: s?.org,
|
|
@@ -4205,7 +4209,7 @@ var modal_view_default = _template("p", (input) => {
|
|
|
4205
4209
|
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;
|
|
4206
4210
|
const dismissable = input.dismissable !== false;
|
|
4207
4211
|
let open = input.open;
|
|
4208
|
-
_html(`<dialog${_attr_class(["
|
|
4212
|
+
_html(`<dialog${_attr_class(["_fw", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
4209
4213
|
...htmlInput,
|
|
4210
4214
|
open: null
|
|
4211
4215
|
}, {
|
|
@@ -4215,20 +4219,20 @@ var modal_view_default = _template("p", (input) => {
|
|
|
4215
4219
|
closedby: 1,
|
|
4216
4220
|
"on-cancel": 1,
|
|
4217
4221
|
"on-close": 1
|
|
4218
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
4222
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_fx")}>`);
|
|
4219
4223
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
4220
4224
|
_html("</div>");
|
|
4221
4225
|
_if(() => {
|
|
4222
4226
|
if (footer) {
|
|
4223
4227
|
const $scope1_id = _scope_id();
|
|
4224
|
-
_html(`<form method=dialog${_attr_class("
|
|
4228
|
+
_html(`<form method=dialog${_attr_class("_fy")}>`);
|
|
4225
4229
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
4226
4230
|
_html("</form>");
|
|
4227
4231
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
4228
4232
|
return 0;
|
|
4229
4233
|
} else if (input.openChange) {
|
|
4230
4234
|
const $scope2_id = _scope_id();
|
|
4231
|
-
_html(`<form method=dialog${_attr_class("
|
|
4235
|
+
_html(`<form method=dialog${_attr_class("_fy")}>`);
|
|
4232
4236
|
dialog_close_default({
|
|
4233
4237
|
class: ["_o", "_p"],
|
|
4234
4238
|
content: _content("p0", () => {
|
|
@@ -4287,7 +4291,7 @@ var prompt_dialog_default = _template("s", (input) => {
|
|
|
4287
4291
|
const $childScope = _peek_scope_id();
|
|
4288
4292
|
modal_view_default({
|
|
4289
4293
|
label: input.label,
|
|
4290
|
-
class: "
|
|
4294
|
+
class: "_cV",
|
|
4291
4295
|
open: input.open,
|
|
4292
4296
|
openChange: input.openChange,
|
|
4293
4297
|
"aria-labelledby": titleId,
|
|
@@ -4310,7 +4314,7 @@ var prompt_dialog_default = _template("s", (input) => {
|
|
|
4310
4314
|
content: _content("s6", () => {
|
|
4311
4315
|
_scope_reason();
|
|
4312
4316
|
const $scope2_id = _scope_id();
|
|
4313
|
-
_html(`<h2${_attr_class("
|
|
4317
|
+
_html(`<h2${_attr_class("_cW")}${_attr("id", titleId)}>${_escape(input.label)}${_el_resume($scope2_id, "b", $sg__input_label)}</h2><input${_attr_input_value($scope2_id, "c", value, _resume((_new_value) => {
|
|
4314
4318
|
value = _new_value;
|
|
4315
4319
|
}, "s0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
4316
4320
|
_script($scope2_id, "s4");
|
|
@@ -4391,35 +4395,35 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4391
4395
|
themeMode = mode;
|
|
4392
4396
|
setTheme(mode);
|
|
4393
4397
|
applyTheme(mode);
|
|
4394
|
-
}, "
|
|
4398
|
+
}, "v6", $scope0_id);
|
|
4395
4399
|
const selfUpdatePending = !!(self && !selfUpdating && self.install !== "source" && self.latest && self.latest !== self.version);
|
|
4396
4400
|
const applySetup = _resume((s) => {
|
|
4397
4401
|
setup = s;
|
|
4398
4402
|
lastSetup = s;
|
|
4399
4403
|
setPrimaryHost(s.github);
|
|
4400
4404
|
input.setupChange?.(s);
|
|
4401
|
-
}, "
|
|
4405
|
+
}, "v7", $scope0_id);
|
|
4402
4406
|
const syncAgents = _resume(async () => {
|
|
4403
4407
|
try {
|
|
4404
4408
|
const snap = await api$5("/api/settings");
|
|
4405
4409
|
input.agentsChange?.(snap.agents);
|
|
4406
4410
|
if (snap.preferredAgent !== input.preferred) input.preferredChange?.(snap.preferredAgent);
|
|
4407
4411
|
} catch {}
|
|
4408
|
-
}, "
|
|
4412
|
+
}, "v8", $scope0_id);
|
|
4409
4413
|
const loadSetup = _resume(async (refresh) => {
|
|
4410
4414
|
try {
|
|
4411
4415
|
applySetup(await api$5(`/api/setup${refresh ? "?refresh" : ""}`));
|
|
4412
4416
|
} catch (err) {
|
|
4413
4417
|
error = String(err.message || err);
|
|
4414
4418
|
}
|
|
4415
|
-
}, "
|
|
4419
|
+
}, "v9", $scope0_id);
|
|
4416
4420
|
const loadSelf = _resume(async (refresh) => {
|
|
4417
4421
|
try {
|
|
4418
4422
|
const info = await api$5(`/api/setup/self${refresh ? "?refresh" : ""}`);
|
|
4419
4423
|
self = info;
|
|
4420
4424
|
if (info.updating) selfUpdating = true;
|
|
4421
4425
|
} catch {}
|
|
4422
|
-
}, "
|
|
4426
|
+
}, "v10", $scope0_id);
|
|
4423
4427
|
const updateSelf = _resume(async () => {
|
|
4424
4428
|
if (!self || selfUpdating) return;
|
|
4425
4429
|
selfUpdating = true;
|
|
@@ -4443,7 +4447,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4443
4447
|
else selfUpdating = false;
|
|
4444
4448
|
};
|
|
4445
4449
|
setTimeout(tick, 4e3);
|
|
4446
|
-
}, "
|
|
4450
|
+
}, "v11", $scope0_id);
|
|
4447
4451
|
const loadUsage = _resume(async (refresh) => {
|
|
4448
4452
|
try {
|
|
4449
4453
|
usage = await api$5(`/api/usage${refresh ? "?refresh" : ""}`);
|
|
@@ -4451,23 +4455,23 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4451
4455
|
usage = { error: String(err.message || err) };
|
|
4452
4456
|
}
|
|
4453
4457
|
lastUsage = usage;
|
|
4454
|
-
}, "
|
|
4458
|
+
}, "v12", $scope0_id);
|
|
4455
4459
|
const refresh = _resume(async () => {
|
|
4456
4460
|
refreshing = true;
|
|
4457
4461
|
await Promise.all([loadSetup(true), loadSelf(true)]);
|
|
4458
4462
|
refreshing = false;
|
|
4459
|
-
}, "
|
|
4463
|
+
}, "v13", $scope0_id);
|
|
4460
4464
|
const refreshUsage = _resume(async () => {
|
|
4461
4465
|
usageRefreshing = true;
|
|
4462
4466
|
await loadUsage(true);
|
|
4463
4467
|
usageRefreshing = false;
|
|
4464
|
-
}, "
|
|
4468
|
+
}, "v14", $scope0_id);
|
|
4465
4469
|
const setActive = _resume((id, line) => {
|
|
4466
4470
|
const next = new Map(active);
|
|
4467
4471
|
if (line === null) next.delete(id);
|
|
4468
4472
|
else next.set(id, line);
|
|
4469
4473
|
active = next;
|
|
4470
|
-
}, "
|
|
4474
|
+
}, "v15", $scope0_id);
|
|
4471
4475
|
const run = _resume(async (id, action, version) => {
|
|
4472
4476
|
if (active.has(id)) return;
|
|
4473
4477
|
error = null;
|
|
@@ -4498,7 +4502,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4498
4502
|
watcher.stop();
|
|
4499
4503
|
setActive(id, null);
|
|
4500
4504
|
}
|
|
4501
|
-
}, "
|
|
4505
|
+
}, "v16", $scope0_id);
|
|
4502
4506
|
const changeHost = _resume(async (host, remove) => {
|
|
4503
4507
|
hostBusy = true;
|
|
4504
4508
|
error = null;
|
|
@@ -4517,10 +4521,10 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4517
4521
|
} finally {
|
|
4518
4522
|
hostBusy = false;
|
|
4519
4523
|
}
|
|
4520
|
-
}, "
|
|
4524
|
+
}, "v17", $scope0_id);
|
|
4521
4525
|
const runEach = _resume(async (ids, action) => {
|
|
4522
4526
|
for (const id of ids) await run(id, action);
|
|
4523
|
-
}, "
|
|
4527
|
+
}, "v18", $scope0_id);
|
|
4524
4528
|
const setPreferred = _resume(async (agent) => {
|
|
4525
4529
|
input.preferredChange?.(agent);
|
|
4526
4530
|
try {
|
|
@@ -4532,7 +4536,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4532
4536
|
} catch (err) {
|
|
4533
4537
|
error = String(err.message || err);
|
|
4534
4538
|
}
|
|
4535
|
-
}, "
|
|
4539
|
+
}, "v19", $scope0_id);
|
|
4536
4540
|
const saveTimer = { id: 0 };
|
|
4537
4541
|
const setInstance = _resume((patch) => {
|
|
4538
4542
|
const next = {
|
|
@@ -4557,7 +4561,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4557
4561
|
error = String(err.message || err);
|
|
4558
4562
|
}
|
|
4559
4563
|
}, 300);
|
|
4560
|
-
}, "
|
|
4564
|
+
}, "v20", $scope0_id);
|
|
4561
4565
|
const setEnabled = _resume(async (id, on) => {
|
|
4562
4566
|
if (!setup) return;
|
|
4563
4567
|
const off = new Set(setup.agents.flatMap((f) => f.instances.filter((i) => !i.enabled).map((i) => i.id)));
|
|
@@ -4584,7 +4588,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4584
4588
|
} catch (err) {
|
|
4585
4589
|
error = String(err.message || err);
|
|
4586
4590
|
}
|
|
4587
|
-
}, "
|
|
4591
|
+
}, "v21", $scope0_id);
|
|
4588
4592
|
const search = _resume((q) => {
|
|
4589
4593
|
query = q;
|
|
4590
4594
|
clearTimeout(searchTimer.id);
|
|
@@ -4605,22 +4609,22 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4605
4609
|
}
|
|
4606
4610
|
}, 250);
|
|
4607
4611
|
}, "v0", $scope0_id);
|
|
4608
|
-
const outdated = _resume((t) => !!(t.installed && t.latest && t.latest !== t.version), "
|
|
4612
|
+
const outdated = _resume((t) => !!(t.installed && t.latest && t.latest !== t.version), "v22");
|
|
4609
4613
|
const tools = setup?.tools || [];
|
|
4610
4614
|
const missingInstallable = tools.filter((t) => t.recommended && !t.installed && t.installable);
|
|
4611
4615
|
const missingCount = tools.filter((t) => t.recommended && !t.installed).length;
|
|
4612
4616
|
const outdatedIds = tools.filter(outdated).map((t) => t.id);
|
|
4613
4617
|
const families = setup?.agents || [];
|
|
4614
4618
|
const instanceIds = new Set(families.flatMap((f) => f.instances.map((i) => i.id)));
|
|
4615
|
-
const accountsFor = _resume((id) => (usage?.agents || []).filter((u) => u.agent === id), "
|
|
4616
|
-
const strayAccountsFor = _resume((f) => (usage?.agents || []).filter((u) => !instanceIds.has(u.agent) && familyOf(u.agent, families) === f.id), "
|
|
4619
|
+
const accountsFor = _resume((id) => (usage?.agents || []).filter((u) => u.agent === id), "v23", $scope0_id);
|
|
4620
|
+
const strayAccountsFor = _resume((f) => (usage?.agents || []).filter((u) => !instanceIds.has(u.agent) && familyOf(u.agent, families) === f.id), "v24", $scope0_id);
|
|
4617
4621
|
const otherUsage = (usage?.agents || []).filter((u) => familyOf(u.agent, families) === null);
|
|
4618
4622
|
const titleId = _id();
|
|
4619
4623
|
const agentsId = _id();
|
|
4620
4624
|
const appearanceId = _id();
|
|
4621
4625
|
const githubId = _id();
|
|
4622
4626
|
const machineId = _id();
|
|
4623
|
-
_html(`<div${_attr_class("
|
|
4627
|
+
_html(`<div${_attr_class("_bE")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bF")}><div${_attr_class(content$2)}>`);
|
|
4624
4628
|
_set_serialize_reason({
|
|
4625
4629
|
0: _serialize_guard($scope0_reason, 4),
|
|
4626
4630
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -4632,8 +4636,8 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4632
4636
|
title: "Settings",
|
|
4633
4637
|
titleId,
|
|
4634
4638
|
backHref: input.backHref,
|
|
4635
|
-
onBack: input.onExit && _resume(() => input.onExit?.(), "
|
|
4636
|
-
meta: attrTag({ content: _content_resume("
|
|
4639
|
+
onBack: input.onExit && _resume(() => input.onExit?.(), "v25", $scope0_id),
|
|
4640
|
+
meta: attrTag({ content: _content_resume("v33", () => {
|
|
4637
4641
|
_scope_reason();
|
|
4638
4642
|
const $scope5_id = _scope_id();
|
|
4639
4643
|
_if(() => {
|
|
@@ -4644,12 +4648,12 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4644
4648
|
return 0;
|
|
4645
4649
|
} else if (setup.ready) {
|
|
4646
4650
|
const $scope52_id = _scope_id();
|
|
4647
|
-
_html(`<span${_attr_class("
|
|
4651
|
+
_html(`<span${_attr_class("_cf")}>Ready</span>. Tools, GitHub, and an agent are all in place.`);
|
|
4648
4652
|
writeScope($scope52_id, {});
|
|
4649
4653
|
return 1;
|
|
4650
4654
|
} else {
|
|
4651
4655
|
const $scope6_id = _scope_id();
|
|
4652
|
-
_html(`<span${_attr_class("
|
|
4656
|
+
_html(`<span${_attr_class("_cg")}>Not ready</span>. Missing <!>${_escape(setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "))}${_el_resume($scope6_id, "b")}.`);
|
|
4653
4657
|
_subscribe($setup_missing__closures, writeScope($scope6_id, {}));
|
|
4654
4658
|
return 2;
|
|
4655
4659
|
}
|
|
@@ -4657,7 +4661,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4657
4661
|
_subscribe($setup2__closures, writeScope($scope5_id, { _: _scope_with_id($scope0_id) }));
|
|
4658
4662
|
_resume_branch($scope5_id);
|
|
4659
4663
|
}, $scope0_id) }),
|
|
4660
|
-
actions: attrTag({ content: _content_resume("
|
|
4664
|
+
actions: attrTag({ content: _content_resume("v34", () => {
|
|
4661
4665
|
_scope_reason();
|
|
4662
4666
|
const $scope10_id = _scope_id();
|
|
4663
4667
|
_html(`<button${_attr_class(iconBtnRow)} title="Re-check this machine" aria-label="Re-check this machine"${_attr("disabled", refreshing)}>`);
|
|
@@ -4668,7 +4672,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4668
4672
|
class: refreshing && "_E"
|
|
4669
4673
|
});
|
|
4670
4674
|
_html(`</button>${_el_resume($scope10_id, "a")}`);
|
|
4671
|
-
_script($scope10_id, "
|
|
4675
|
+
_script($scope10_id, "v32");
|
|
4672
4676
|
_subscribe($refreshing__closures, writeScope($scope10_id, {
|
|
4673
4677
|
_: _scope_with_id($scope0_id),
|
|
4674
4678
|
b: _existing_scope($childScope)
|
|
@@ -4683,8 +4687,8 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4683
4687
|
placement: "inline",
|
|
4684
4688
|
onDismiss: _resume(function() {
|
|
4685
4689
|
error = null;
|
|
4686
|
-
}, "
|
|
4687
|
-
content: _content_resume("
|
|
4690
|
+
}, "v26", $scope8_id),
|
|
4691
|
+
content: _content_resume("v35", () => {
|
|
4688
4692
|
_scope_reason();
|
|
4689
4693
|
const $scope9_id = _scope_id();
|
|
4690
4694
|
_html(`${_escape(error)}${_el_resume($scope9_id, "a")}`);
|
|
@@ -4699,16 +4703,16 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4699
4703
|
_if(() => {
|
|
4700
4704
|
if (selfUpdatePending || selfUpdating) {
|
|
4701
4705
|
const $scope37_id = _scope_id();
|
|
4702
|
-
_html(`<div${_attr_class("
|
|
4706
|
+
_html(`<div${_attr_class("_cK")} role=status><div${_attr_class("_cL")}>`);
|
|
4703
4707
|
_if(() => {
|
|
4704
4708
|
if (selfUpdating) {
|
|
4705
4709
|
const $scope53_id = _scope_id();
|
|
4706
|
-
_html(`<span${_attr_class("
|
|
4710
|
+
_html(`<span${_attr_class("_cM")}><span${_attr_class("_F")}></span> Updating work…</span><span${_attr_class("_cN")}>The app restarts and reloads when it is done.</span>`);
|
|
4707
4711
|
writeScope($scope53_id, {});
|
|
4708
4712
|
return 0;
|
|
4709
4713
|
} else {
|
|
4710
4714
|
const $scope38_id = _scope_id();
|
|
4711
|
-
_html(`<span${_attr_class("
|
|
4715
|
+
_html(`<span${_attr_class("_cM")}>Update available</span><span${_attr_class("_cN")}>v<!>${_escape(self.version)}${_el_resume($scope38_id, "c")} → v<!>${_escape(self.latest)}${_el_resume($scope38_id, "d")}</span>`);
|
|
4712
4716
|
_subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($scope38_id, {})));
|
|
4713
4717
|
return 1;
|
|
4714
4718
|
}
|
|
@@ -4717,8 +4721,8 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4717
4721
|
if (!selfUpdating) {
|
|
4718
4722
|
const $scope39_id = _scope_id();
|
|
4719
4723
|
_html(`<button${_attr_class(["_o", "_p"])}${_attr("title", `Update work to v${self.latest} and restart`)}>Update and restart</button>${_el_resume($scope39_id, "a")}`);
|
|
4720
|
-
_script($scope39_id, "
|
|
4721
|
-
_subscribe($self_latest__closures, writeScope($scope39_id, {
|
|
4724
|
+
_script($scope39_id, "v36");
|
|
4725
|
+
_subscribe($self_latest__closures, writeScope($scope39_id, { Ceb: 1 }));
|
|
4722
4726
|
return 0;
|
|
4723
4727
|
}
|
|
4724
4728
|
}, $scope37_id, "c", 1, 1, 1, 0, 1);
|
|
@@ -4727,11 +4731,11 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4727
4731
|
return 0;
|
|
4728
4732
|
}
|
|
4729
4733
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
4730
|
-
_html(`<section${_attr_class("
|
|
4734
|
+
_html(`<section${_attr_class("_bo")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bp")}><h2${_attr("id", agentsId)}${_attr_class("_bD")}>Agents</h2><div${_attr_class("_y")}></div><label${_attr_class("_cj")}><span${_attr_class("_S")}>Default</span><span${_attr_class("_m")}>`);
|
|
4731
4735
|
_attr_select_value($scope0_id, "n", input.preferred, _resume(function(v) {
|
|
4732
4736
|
setPreferred(v);
|
|
4733
4737
|
}, "v1", $scope0_id), () => {
|
|
4734
|
-
_html(`<select${_attr_class(["_n", "
|
|
4738
|
+
_html(`<select${_attr_class(["_n", "_ck"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
|
|
4735
4739
|
_for_of(input.agents.filter((a) => a !== "shell"), (id) => {
|
|
4736
4740
|
const $scope54_id = _scope_id();
|
|
4737
4741
|
_html(`<option${_attr_option_value(id)}>${_escape(agentLabel(id))}${_el_resume($scope54_id, "b", $sg__input_agents)}</option>${_el_resume($scope54_id, "a", $sg__input_agents)}`);
|
|
@@ -4752,14 +4756,14 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4752
4756
|
const rows = lone ? [] : a.instances;
|
|
4753
4757
|
const loneAccounts = lone && lone.enabled ? accountsFor(lone.id) : [];
|
|
4754
4758
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
4755
|
-
_html(`<li${_attr_class(["
|
|
4759
|
+
_html(`<li${_attr_class(["_bt", "_ci"])}><div${_attr_class(["_cl", { ["_co"]: lone && !lone.enabled }])}>`);
|
|
4756
4760
|
_set_serialize_reason(12);
|
|
4757
4761
|
const $childScope4 = _peek_scope_id();
|
|
4758
4762
|
icon_agent_default({
|
|
4759
4763
|
agent: a.id,
|
|
4760
4764
|
size: 18
|
|
4761
4765
|
});
|
|
4762
|
-
_html(`<div${_attr_class("
|
|
4766
|
+
_html(`<div${_attr_class("_bu")}><span${_attr_class("_bw")}><span${_attr_class("_bv")}>${_escape(a.label)}${_el_resume($scope1_id, "g")}</span>`);
|
|
4763
4767
|
_if(() => {
|
|
4764
4768
|
if (lone && input.preferred === lone.id) {
|
|
4765
4769
|
const $scope55_id = _scope_id();
|
|
@@ -4772,12 +4776,12 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4772
4776
|
_if(() => {
|
|
4773
4777
|
if (active.has(a.id)) {
|
|
4774
4778
|
const $scope11_id = _scope_id();
|
|
4775
|
-
_html(`<span${_attr_class("
|
|
4779
|
+
_html(`<span${_attr_class("_ce")}><span${_attr_class("_F")}></span><!>${_escape(active.get(a.id) || "Starting…")}${_el_resume($scope11_id, "c")}</span>`);
|
|
4776
4780
|
_subscribe($active__closures, writeScope($scope11_id, {}));
|
|
4777
4781
|
return 0;
|
|
4778
4782
|
} else if (!a.installed) {
|
|
4779
4783
|
const $scope56_id = _scope_id();
|
|
4780
|
-
_html(`<span${_attr_class("
|
|
4784
|
+
_html(`<span${_attr_class("_bx")}>Not installed</span>`);
|
|
4781
4785
|
writeScope($scope56_id, {});
|
|
4782
4786
|
return 1;
|
|
4783
4787
|
}
|
|
@@ -4787,7 +4791,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4787
4791
|
if (!a.installed && !active.has(a.id)) {
|
|
4788
4792
|
const $scope44_id = _scope_id();
|
|
4789
4793
|
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope44_id, "a")}`);
|
|
4790
|
-
_script($scope44_id, "
|
|
4794
|
+
_script($scope44_id, "v37");
|
|
4791
4795
|
writeScope($scope44_id, {});
|
|
4792
4796
|
return 0;
|
|
4793
4797
|
}
|
|
@@ -4800,7 +4804,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4800
4804
|
"_K",
|
|
4801
4805
|
{ [tone.ok]: lone.enabled }
|
|
4802
4806
|
])} 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($scope48_id, "b")}</button>${_el_resume($scope48_id, "a")}`);
|
|
4803
|
-
_script($scope48_id, "
|
|
4807
|
+
_script($scope48_id, "v38");
|
|
4804
4808
|
writeScope($scope48_id, {});
|
|
4805
4809
|
return 0;
|
|
4806
4810
|
}
|
|
@@ -4809,18 +4813,18 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4809
4813
|
_if(() => {
|
|
4810
4814
|
if (rows.length || loneAccounts.length || extraAccounts.length) {
|
|
4811
4815
|
const $scope2_id = _scope_id();
|
|
4812
|
-
_html(`<ul${_attr_class("
|
|
4816
|
+
_html(`<ul${_attr_class("_cq")}>`);
|
|
4813
4817
|
_for_of(rows, (inst) => {
|
|
4814
4818
|
const $scope3_id = _scope_id();
|
|
4815
4819
|
const accounts = inst.enabled ? accountsFor(inst.id) : [];
|
|
4816
|
-
_html(`<li${_attr_class("
|
|
4820
|
+
_html(`<li${_attr_class("_cm")}><div${_attr_class(["_cn", { ["_co"]: !inst.enabled }])}>`);
|
|
4817
4821
|
_set_serialize_reason(12);
|
|
4818
4822
|
const $childScope5 = _peek_scope_id();
|
|
4819
4823
|
icon_agent_default({
|
|
4820
4824
|
agent: inst.id,
|
|
4821
4825
|
size: 15
|
|
4822
4826
|
});
|
|
4823
|
-
_html(`<span${_attr_class(["
|
|
4827
|
+
_html(`<span${_attr_class(["_cp", "_x"])}>${_escape(inst.command)}${_el_resume($scope3_id, "e")}</span>`);
|
|
4824
4828
|
_if(() => {
|
|
4825
4829
|
if (input.preferred === inst.id) {
|
|
4826
4830
|
const $scope57_id = _scope_id();
|
|
@@ -4845,7 +4849,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4845
4849
|
writeScope($scope58_id, { a: _existing_scope($childScope6) });
|
|
4846
4850
|
}, (u) => `${u.agent}-${u.account || ""}`, $scope3_id, "j", 1, 1, 1, 0, 1);
|
|
4847
4851
|
_html("</li>");
|
|
4848
|
-
_script($scope3_id, "
|
|
4852
|
+
_script($scope3_id, "v39");
|
|
4849
4853
|
_subscribe($accountsFor2__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope3_id, {
|
|
4850
4854
|
m: inst?.enabled,
|
|
4851
4855
|
n: inst?.id,
|
|
@@ -4895,7 +4899,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4895
4899
|
}, "id", $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
4896
4900
|
_for_of(otherUsage, (u) => {
|
|
4897
4901
|
const $scope61_id = _scope_id();
|
|
4898
|
-
_html(`<li${_attr_class(["
|
|
4902
|
+
_html(`<li${_attr_class(["_bt", "_ci"])}>`);
|
|
4899
4903
|
_set_serialize_reason(6);
|
|
4900
4904
|
const $childScope9 = _peek_scope_id();
|
|
4901
4905
|
usage_meters_default({ agent: u });
|
|
@@ -4906,17 +4910,17 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4906
4910
|
_if(() => {
|
|
4907
4911
|
if (!usage && families.length) {
|
|
4908
4912
|
const $scope62_id = _scope_id();
|
|
4909
|
-
_html(`<p${_attr_class("
|
|
4913
|
+
_html(`<p${_attr_class("_bz")}><span${_attr_class("_F")}></span> Loading usage…</p>`);
|
|
4910
4914
|
writeScope($scope62_id, {});
|
|
4911
4915
|
return 0;
|
|
4912
4916
|
} else if (usage?.error) {
|
|
4913
4917
|
const $scope7_id = _scope_id();
|
|
4914
|
-
_html(`<p${_attr_class("
|
|
4918
|
+
_html(`<p${_attr_class("_bz")}>${_escape(usage.error)}${_el_resume($scope7_id, "b")}</p>`);
|
|
4915
4919
|
writeScope($scope7_id, {});
|
|
4916
4920
|
return 1;
|
|
4917
4921
|
}
|
|
4918
4922
|
}, $scope0_id, "t", 1, 1, 1, 0, 1);
|
|
4919
|
-
_html(`</section><section${_attr_class("
|
|
4923
|
+
_html(`</section><section${_attr_class("_bo")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_bp")}><h2${_attr("id", githubId)}${_attr_class("_bD")}>GitHub</h2></div><ul${_attr_class("_br")}>`);
|
|
4920
4924
|
_for_of(setup?.github || [], (h) => {
|
|
4921
4925
|
const $scope12_id = _scope_id();
|
|
4922
4926
|
const $for_content4__h_host__closures = /* @__PURE__ */ new Set();
|
|
@@ -4930,7 +4934,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4930
4934
|
const skippedSso = (() => {
|
|
4931
4935
|
return (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
4932
4936
|
})();
|
|
4933
|
-
_html(`<li${_attr_class(["
|
|
4937
|
+
_html(`<li${_attr_class(["_bt", "_cA"])}><div${_attr_class("_cB")}><div${_attr_class("_bu")}><span${_attr_class("_bw")}><span${_attr_class(["_bv", "_x"])}>${_escape(h.host)}${_el_resume($scope12_id, "f")}</span>`);
|
|
4934
4938
|
_if(() => {
|
|
4935
4939
|
if (h.isEnterprise) {
|
|
4936
4940
|
const $scope65_id = _scope_id();
|
|
@@ -4943,22 +4947,22 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4943
4947
|
_if(() => {
|
|
4944
4948
|
if (active.has(h.host) && authCodes.has(h.host)) {
|
|
4945
4949
|
const $scope24_id = _scope_id();
|
|
4946
|
-
_html(`<span${_attr_class("
|
|
4947
|
-
_subscribe($authCodes__closures, writeScope($scope24_id, {
|
|
4950
|
+
_html(`<span${_attr_class("_ce")}><span${_attr_class("_F")}></span> Enter code <strong${_attr_class("_cy")}>${_escape(authCodes.get(h.host))}${_el_resume($scope24_id, "d")}</strong> at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_cz")}>${_escape(h.host)}${_el_resume($scope24_id, "f")}/login/device</a>${_el_resume($scope24_id, "e")}</span>`);
|
|
4951
|
+
_subscribe($authCodes__closures, writeScope($scope24_id, { Ce1: 1 }));
|
|
4948
4952
|
return 0;
|
|
4949
4953
|
} else if (active.has(h.host)) {
|
|
4950
4954
|
const $scope13_id = _scope_id();
|
|
4951
|
-
_html(`<span${_attr_class("
|
|
4952
|
-
_subscribe($active__closures, writeScope($scope13_id, {
|
|
4955
|
+
_html(`<span${_attr_class("_ce")}><span${_attr_class("_F")}></span><!>${_escape(active.get(h.host) || "Starting…")}${_el_resume($scope13_id, "c")}</span>`);
|
|
4956
|
+
_subscribe($active__closures, writeScope($scope13_id, { Cdz: 1 }));
|
|
4953
4957
|
return 1;
|
|
4954
4958
|
} else if (h.authed) {
|
|
4955
4959
|
const $scope63_id = _scope_id();
|
|
4956
|
-
_html(`<span${_attr_class("
|
|
4960
|
+
_html(`<span${_attr_class("_bx")}>Signed in<!>${h.user ? ` as ${_escape(`${_to_text(h.user)}`)}` : ""}${_el_resume($scope63_id, "b")}</span>`);
|
|
4957
4961
|
writeScope($scope63_id, {});
|
|
4958
4962
|
return 2;
|
|
4959
4963
|
} else {
|
|
4960
4964
|
const $scope64_id = _scope_id();
|
|
4961
|
-
_html(`<span${_attr_class("
|
|
4965
|
+
_html(`<span${_attr_class("_bx")}>${_escape(h.error || "Not signed in")}${_el_resume($scope64_id, "b")}</span>`);
|
|
4962
4966
|
writeScope($scope64_id, {});
|
|
4963
4967
|
return 3;
|
|
4964
4968
|
}
|
|
@@ -4971,7 +4975,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4971
4975
|
if (!h.authed) {
|
|
4972
4976
|
const $scope45_id = _scope_id();
|
|
4973
4977
|
_html(`<button${_attr_class(btnSm)}>Sign in</button>${_el_resume($scope45_id, "a")}`);
|
|
4974
|
-
_script($scope45_id, "
|
|
4978
|
+
_script($scope45_id, "v40");
|
|
4975
4979
|
writeScope($scope45_id, {});
|
|
4976
4980
|
return 0;
|
|
4977
4981
|
} else {
|
|
@@ -4980,7 +4984,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4980
4984
|
["_r"]: confirmingRemove === `out:${h.host}`,
|
|
4981
4985
|
["_q"]: confirmingRemove === `out:${h.host}`
|
|
4982
4986
|
}])}${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($scope26_id, "b")}</button>${_el_resume($scope26_id, "a")}`);
|
|
4983
|
-
_script($scope26_id, "
|
|
4987
|
+
_script($scope26_id, "v41");
|
|
4984
4988
|
_subscribe($for_content4__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope26_id, {})));
|
|
4985
4989
|
return 1;
|
|
4986
4990
|
}
|
|
@@ -4989,7 +4993,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4989
4993
|
if (h.isEnterprise) {
|
|
4990
4994
|
const $scope27_id = _scope_id();
|
|
4991
4995
|
_html(`<button${_attr_class([
|
|
4992
|
-
"
|
|
4996
|
+
"_by",
|
|
4993
4997
|
"_2",
|
|
4994
4998
|
"_3",
|
|
4995
4999
|
{ ["_q"]: confirmingRemove === h.host }
|
|
@@ -5007,9 +5011,9 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5007
5011
|
return 1;
|
|
5008
5012
|
}
|
|
5009
5013
|
}, $scope27_id, "a", 1, 1, 1, "</button>");
|
|
5010
|
-
_script($scope27_id, "
|
|
5014
|
+
_script($scope27_id, "v42");
|
|
5011
5015
|
_subscribe($for_content4__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope27_id, {
|
|
5012
|
-
|
|
5016
|
+
Ce2: 1,
|
|
5013
5017
|
Ca2: 1
|
|
5014
5018
|
})));
|
|
5015
5019
|
return 0;
|
|
@@ -5032,17 +5036,17 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5032
5036
|
authCode: authCodes.get(h.host),
|
|
5033
5037
|
onChange: _resume(function() {
|
|
5034
5038
|
ssoIgnoreTick++;
|
|
5035
|
-
}, "
|
|
5039
|
+
}, "v27", $scope14_id),
|
|
5036
5040
|
onAuthorize: _resume(function() {
|
|
5037
5041
|
run(h.host, "auth-refresh");
|
|
5038
|
-
}, "
|
|
5042
|
+
}, "v28", $scope14_id),
|
|
5039
5043
|
onDone: _resume(function() {
|
|
5040
5044
|
refresh();
|
|
5041
|
-
}, "
|
|
5045
|
+
}, "v29", $scope14_id)
|
|
5042
5046
|
});
|
|
5043
5047
|
_subscribe($run2__closures, _subscribe($si__input_setupChange && $refresh2__closures, _subscribe($authCodes__closures, _subscribe($active__closures, writeScope($scope14_id, {
|
|
5044
5048
|
a: _existing_scope($childScope10),
|
|
5045
|
-
|
|
5049
|
+
Cdz: 2
|
|
5046
5050
|
})))));
|
|
5047
5051
|
return 0;
|
|
5048
5052
|
}
|
|
@@ -5065,7 +5069,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5065
5069
|
_if(() => {
|
|
5066
5070
|
if (setup && !setup.github.length) {
|
|
5067
5071
|
const $scope68_id = _scope_id();
|
|
5068
|
-
_html(`<p${_attr_class("
|
|
5072
|
+
_html(`<p${_attr_class("_bz")}>Install the GitHub CLI below to sign in.</p>`);
|
|
5069
5073
|
writeScope($scope68_id, {});
|
|
5070
5074
|
return 0;
|
|
5071
5075
|
}
|
|
@@ -5073,7 +5077,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5073
5077
|
_if(() => {
|
|
5074
5078
|
if (setup) {
|
|
5075
5079
|
const $scope35_id = _scope_id();
|
|
5076
|
-
_html(`<form${_attr_class("
|
|
5080
|
+
_html(`<form${_attr_class("_cx")}><label${_attr_class("_W")}>`);
|
|
5077
5081
|
icon_plus_default({
|
|
5078
5082
|
size: 14,
|
|
5079
5083
|
class: "_X"
|
|
@@ -5081,12 +5085,12 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5081
5085
|
_html(`<input${_attr_input_value($scope35_id, "d", hostInput, _resume((_new_hostInput) => {
|
|
5082
5086
|
hostInput = _new_hostInput;
|
|
5083
5087
|
}, "v2", $scope35_id))}${_attr_class([inputLg, "_Y"])} type=text placeholder="Add a GitHub Enterprise host, e.g. github.example.com" aria-label="GitHub Enterprise host" autocomplete=off spellcheck=false>${_el_resume($scope35_id, "d")}</label><button${_attr_class(btnSm)} type=submit${_attr("disabled", !hostInput.trim() || hostBusy)}>${hostBusy ? "Adding…" : "Add host"}${_el_resume($scope35_id, "f")}</button>${_el_resume($scope35_id, "e")}</form>${_el_resume($scope35_id, "a")}`);
|
|
5084
|
-
_script($scope35_id, "
|
|
5088
|
+
_script($scope35_id, "v43");
|
|
5085
5089
|
writeScope($scope35_id, {});
|
|
5086
5090
|
return 0;
|
|
5087
5091
|
}
|
|
5088
5092
|
}, $scope0_id, "z", 1, 1, 1, 0, 1);
|
|
5089
|
-
_html(`</section><section${_attr_class("
|
|
5093
|
+
_html(`</section><section${_attr_class("_bo")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_bp")}><h2${_attr("id", machineId)}${_attr_class("_bD")}>Machine</h2>`);
|
|
5090
5094
|
_if(() => {
|
|
5091
5095
|
if (missingCount) {
|
|
5092
5096
|
const $scope49_id = _scope_id();
|
|
@@ -5108,7 +5112,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5108
5112
|
if (outdatedIds.length > 1) {
|
|
5109
5113
|
const $scope15_id = _scope_id();
|
|
5110
5114
|
_html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Update all</button>${_el_resume($scope15_id, "a")}`);
|
|
5111
|
-
_script($scope15_id, "
|
|
5115
|
+
_script($scope15_id, "v44");
|
|
5112
5116
|
writeScope($scope15_id, {});
|
|
5113
5117
|
return 0;
|
|
5114
5118
|
}
|
|
@@ -5117,7 +5121,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5117
5121
|
if (missingInstallable.length > 1) {
|
|
5118
5122
|
const $scope16_id = _scope_id();
|
|
5119
5123
|
_html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Install missing</button>${_el_resume($scope16_id, "a")}`);
|
|
5120
|
-
_script($scope16_id, "
|
|
5124
|
+
_script($scope16_id, "v45");
|
|
5121
5125
|
writeScope($scope16_id, {});
|
|
5122
5126
|
return 0;
|
|
5123
5127
|
}
|
|
@@ -5126,8 +5130,8 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5126
5130
|
_if(() => {
|
|
5127
5131
|
if (setup && !setup.mise.installed) {
|
|
5128
5132
|
const $scope17_id = _scope_id();
|
|
5129
|
-
_html(`<p${_attr_class("
|
|
5130
|
-
_script($scope17_id, "
|
|
5133
|
+
_html(`<p${_attr_class("_bz")}>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($scope17_id, "c")}</button>${_el_resume($scope17_id, "b")}</p>`);
|
|
5134
|
+
_script($scope17_id, "v46");
|
|
5131
5135
|
writeScope($scope17_id, {});
|
|
5132
5136
|
return 0;
|
|
5133
5137
|
}
|
|
@@ -5136,11 +5140,11 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5136
5140
|
_if(() => {
|
|
5137
5141
|
if (self) {
|
|
5138
5142
|
const $scope40_id = _scope_id();
|
|
5139
|
-
_html(`<li${_attr_class(row)}><span${_attr_class(["
|
|
5143
|
+
_html(`<li${_attr_class(row)}><span${_attr_class(["_ct", "_x"])}>work</span>`);
|
|
5140
5144
|
_if(() => {
|
|
5141
5145
|
if (selfUpdating) {
|
|
5142
5146
|
const $scope69_id = _scope_id();
|
|
5143
|
-
_html(`<span${_attr_class("
|
|
5147
|
+
_html(`<span${_attr_class("_ce")}><span${_attr_class("_F")}></span>Updating — the app restarts and reloads when it is done…</span>`);
|
|
5144
5148
|
writeScope($scope69_id, {});
|
|
5145
5149
|
return 0;
|
|
5146
5150
|
} else {
|
|
@@ -5154,11 +5158,11 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5154
5158
|
return 0;
|
|
5155
5159
|
} else if (self.latest && self.latest !== self.version) {
|
|
5156
5160
|
const $scope42_id = _scope_id();
|
|
5157
|
-
_html(`<button${_attr_class([btnSm, "
|
|
5161
|
+
_html(`<button${_attr_class([btnSm, "_cv"])}${_attr("title", `Update work to v${self.latest} and restart`)}>`);
|
|
5158
5162
|
icon_arrow_up_default({ size: 12 });
|
|
5159
5163
|
_html(` <!>${_escape(self.latest)}${_el_resume($scope42_id, "c")}</button>${_el_resume($scope42_id, "a")}`);
|
|
5160
|
-
_script($scope42_id, "
|
|
5161
|
-
_subscribe($self_latest__closures, writeScope($scope42_id, {
|
|
5164
|
+
_script($scope42_id, "v47");
|
|
5165
|
+
_subscribe($self_latest__closures, writeScope($scope42_id, { Ceb: 3 }));
|
|
5162
5166
|
return 1;
|
|
5163
5167
|
} else if (self.latest) {
|
|
5164
5168
|
const $scope71_id = _scope_id();
|
|
@@ -5168,8 +5172,8 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5168
5172
|
}
|
|
5169
5173
|
}, $scope41_id, "c", 1, 1, 1, 0, 1);
|
|
5170
5174
|
_subscribe($self_version__closures, _subscribe($self_latest__closures, _subscribe($self_install__closures, writeScope($scope41_id, {
|
|
5171
|
-
|
|
5172
|
-
|
|
5175
|
+
Ceb: 2,
|
|
5176
|
+
Cec: 1
|
|
5173
5177
|
}))));
|
|
5174
5178
|
return 1;
|
|
5175
5179
|
}
|
|
@@ -5195,20 +5199,20 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5195
5199
|
const $for_content5__t_path__closures = /* @__PURE__ */ new Set();
|
|
5196
5200
|
const $for_content5__t_latest__closures = /* @__PURE__ */ new Set();
|
|
5197
5201
|
const $for_content5__t_id__closures = /* @__PURE__ */ new Set();
|
|
5198
|
-
_html(`<li${_attr_class([row, { ["
|
|
5202
|
+
_html(`<li${_attr_class([row, { ["_cs"]: !t.installed }])}><span${_attr_class(["_ct", "_x"])}>${_escape(t.label)}${_el_resume($scope18_id, "c")}</span>`);
|
|
5199
5203
|
_if(() => {
|
|
5200
5204
|
if (active.has(t.id)) {
|
|
5201
5205
|
const $scope19_id = _scope_id();
|
|
5202
|
-
_html(`<span${_attr_class("
|
|
5203
|
-
_subscribe($active__closures, writeScope($scope19_id, {
|
|
5206
|
+
_html(`<span${_attr_class("_ce")}><span${_attr_class("_F")}></span><!>${_escape(active.get(t.id) || "Starting…")}${_el_resume($scope19_id, "c")}</span>`);
|
|
5207
|
+
_subscribe($active__closures, writeScope($scope19_id, { Cdz: 3 }));
|
|
5204
5208
|
return 0;
|
|
5205
5209
|
} else if (t.installed) {
|
|
5206
5210
|
const $scope31_id = _scope_id();
|
|
5207
5211
|
_if(() => {
|
|
5208
5212
|
if (t.version) {
|
|
5209
5213
|
const $scope32_id = _scope_id();
|
|
5210
|
-
_html(`<button${_attr_class(["
|
|
5211
|
-
_script($scope32_id, "
|
|
5214
|
+
_html(`<button${_attr_class(["_cu", "_x"])}${_attr("title", `${t.path || t.label}. Pin a version`)}>v<!>${_escape(t.version)}${_el_resume($scope32_id, "b")}</button>${_el_resume($scope32_id, "a")}`);
|
|
5215
|
+
_script($scope32_id, "v48");
|
|
5212
5216
|
_subscribe($for_content5__t_path__closures, _subscribe($for_content5__t_version__closures, _subscribe($for_content5__t_label__closures, writeScope($scope32_id, { Cu: 1 }))));
|
|
5213
5217
|
return 0;
|
|
5214
5218
|
} else {
|
|
@@ -5221,10 +5225,10 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5221
5225
|
_if(() => {
|
|
5222
5226
|
if (outdated(t)) {
|
|
5223
5227
|
const $scope46_id = _scope_id();
|
|
5224
|
-
_html(`<button${_attr_class([btnSm, "
|
|
5228
|
+
_html(`<button${_attr_class([btnSm, "_cv"])}${_attr("title", `Update to v${t.latest}`)}>`);
|
|
5225
5229
|
icon_arrow_up_default({ size: 12 });
|
|
5226
5230
|
_html(` <!>${_escape(t.latest)}${_el_resume($scope46_id, "c")}</button>${_el_resume($scope46_id, "a")}`);
|
|
5227
|
-
_script($scope46_id, "
|
|
5231
|
+
_script($scope46_id, "v49");
|
|
5228
5232
|
_subscribe($for_content5__t_latest__closures, writeScope($scope46_id, {}));
|
|
5229
5233
|
return 0;
|
|
5230
5234
|
}
|
|
@@ -5259,7 +5263,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5259
5263
|
if (!t.installed && t.installable) {
|
|
5260
5264
|
const $scope47_id = _scope_id();
|
|
5261
5265
|
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope47_id, "a")}`);
|
|
5262
|
-
_script($scope47_id, "
|
|
5266
|
+
_script($scope47_id, "v50");
|
|
5263
5267
|
writeScope($scope47_id, {});
|
|
5264
5268
|
return 0;
|
|
5265
5269
|
} else if (t.installed && t.version && !t.required) {
|
|
@@ -5283,8 +5287,8 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5283
5287
|
return 1;
|
|
5284
5288
|
}
|
|
5285
5289
|
}, $scope29_id, "a", 1, 1, 1, "</button>");
|
|
5286
|
-
_script($scope29_id, "
|
|
5287
|
-
_subscribe($for_content5__t_id__closures, _subscribe($for_content5__t_label__closures, _subscribe($confirmingRemove__closures, writeScope($scope29_id, {
|
|
5290
|
+
_script($scope29_id, "v51");
|
|
5291
|
+
_subscribe($for_content5__t_id__closures, _subscribe($for_content5__t_label__closures, _subscribe($confirmingRemove__closures, writeScope($scope29_id, { Ce2: 2 }))));
|
|
5288
5292
|
return 1;
|
|
5289
5293
|
}
|
|
5290
5294
|
}, $scope28_id, "b", 1, 1, 1, 0, 1);
|
|
@@ -5323,19 +5327,19 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5323
5327
|
_if(() => {
|
|
5324
5328
|
if (hits && hits.length) {
|
|
5325
5329
|
const $scope21_id = _scope_id();
|
|
5326
|
-
_html(`<ul${_attr_class([toolGrid, "
|
|
5330
|
+
_html(`<ul${_attr_class([toolGrid, "_cw"])}>`);
|
|
5327
5331
|
_for_of(hits, (h) => {
|
|
5328
5332
|
const $scope22_id = _scope_id();
|
|
5329
|
-
_html(`<li${_attr_class(row)}><div${_attr_class("
|
|
5333
|
+
_html(`<li${_attr_class(row)}><div${_attr_class("_bu")}><span${_attr_class(["_ct", "_x"])}>${_escape(h.name)}${_el_resume($scope22_id, "d")}</span>`);
|
|
5330
5334
|
_if(() => {
|
|
5331
5335
|
if (active.has(h.name)) {
|
|
5332
5336
|
const $scope23_id = _scope_id();
|
|
5333
|
-
_html(`<span${_attr_class("
|
|
5334
|
-
_subscribe($active__closures, writeScope($scope23_id, {
|
|
5337
|
+
_html(`<span${_attr_class("_ce")}><span${_attr_class("_F")}></span><!>${_escape(active.get(h.name) || "Starting…")}${_el_resume($scope23_id, "c")}</span>`);
|
|
5338
|
+
_subscribe($active__closures, writeScope($scope23_id, { Cdz: 5 }));
|
|
5335
5339
|
return 0;
|
|
5336
5340
|
} else if (h.description) {
|
|
5337
5341
|
const $scope79_id = _scope_id();
|
|
5338
|
-
_html(`<span${_attr_class("
|
|
5342
|
+
_html(`<span${_attr_class("_bx")}${_attr("title", h.description)}>${_escape(h.description)}${_el_resume($scope79_id, "b")}</span>${_el_resume($scope79_id, "a")}`);
|
|
5339
5343
|
writeScope($scope79_id, {});
|
|
5340
5344
|
return 1;
|
|
5341
5345
|
}
|
|
@@ -5353,7 +5357,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5353
5357
|
} else {
|
|
5354
5358
|
const $scope34_id = _scope_id();
|
|
5355
5359
|
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope34_id, "a")}<button${_attr_class(btnSm)} title="Install a specific version">@…</button>${_el_resume($scope34_id, "b")}`);
|
|
5356
|
-
_script($scope34_id, "
|
|
5360
|
+
_script($scope34_id, "v52");
|
|
5357
5361
|
writeScope($scope34_id, {});
|
|
5358
5362
|
return 1;
|
|
5359
5363
|
}
|
|
@@ -5367,28 +5371,25 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5367
5371
|
i: h?.name,
|
|
5368
5372
|
k: h?.description,
|
|
5369
5373
|
m: h?.installed,
|
|
5370
|
-
|
|
5374
|
+
Cdz: 4
|
|
5371
5375
|
}));
|
|
5372
5376
|
}, "name", $scope21_id, "a", 1, 1, 1, "</ul>", 1);
|
|
5373
5377
|
_subscribe($hits__closures, writeScope($scope21_id, {}));
|
|
5374
5378
|
return 0;
|
|
5375
5379
|
} else if (hits && !searching) {
|
|
5376
5380
|
const $scope36_id = _scope_id();
|
|
5377
|
-
_html(`<p${_attr_class("
|
|
5381
|
+
_html(`<p${_attr_class("_bz")}>No tools match "<!>${_escape(query)}${_el_resume($scope36_id, "b")}".</p>`);
|
|
5378
5382
|
_subscribe($query__closures, writeScope($scope36_id, {}));
|
|
5379
5383
|
return 1;
|
|
5380
5384
|
}
|
|
5381
5385
|
}, $scope20_id, "d", 1, 1, 1, 0, 1);
|
|
5382
5386
|
_html("</div>");
|
|
5383
|
-
_script($scope20_id, "
|
|
5387
|
+
_script($scope20_id, "v53");
|
|
5384
5388
|
writeScope($scope20_id, {});
|
|
5385
5389
|
return 0;
|
|
5386
5390
|
}
|
|
5387
5391
|
}, $scope0_id, "ac", 1, 1, 1, 0, 1);
|
|
5388
|
-
|
|
5389
|
-
setInstance({ name: v });
|
|
5390
|
-
}, "v3", $scope0_id))}${_attr_class(["_U", "_ct"])} type=text placeholder=work maxlength=32 autocomplete=off spellcheck=false aria-describedby=look-name-hint>${_el_resume($scope0_id, "aj")}<span id=look-name-hint${_attr_class(["_S", "_cu"])}>Tab title, home-screen icon, and notifications.</span></label><div${_attr_class("_cr")} role=radiogroup aria-label="Color theme"><span${_attr_class("_cs")}>Theme</span><span${_attr_class("_cv")}>`);
|
|
5391
|
-
_for_of([
|
|
5392
|
+
const themeOpts = [
|
|
5392
5393
|
{
|
|
5393
5394
|
id: "system",
|
|
5394
5395
|
label: "System"
|
|
@@ -5401,37 +5402,52 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5401
5402
|
id: "dark",
|
|
5402
5403
|
label: "Dark"
|
|
5403
5404
|
}
|
|
5404
|
-
]
|
|
5405
|
+
];
|
|
5406
|
+
_html(`</section><section${_attr_class("_bo")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_bp")}><h2${_attr("id", appearanceId)}${_attr_class("_bD")}>Appearance</h2></div><div${_attr_class(["_bt", "_cC"])}><label${_attr_class("_cD")}><span${_attr_class("_cE")}>Name</span><input${_attr_input_value($scope0_id, "aj", input.instance.name, _resume(function(v) {
|
|
5407
|
+
setInstance({ name: v });
|
|
5408
|
+
}, "v3", $scope0_id))}${_attr_class(["_U", "_cF"])} type=text placeholder="Tab title" maxlength=32 autocomplete=off spellcheck=false>${_el_resume($scope0_id, "aj")}</label><div${_attr_class("_cD")}><span${_attr_class("_cE")}>Theme</span><span${_attr_class("_cH")}><span${_attr_class(themeSeg)} role=radiogroup aria-label="Color theme">`);
|
|
5409
|
+
_for_of(themeOpts, (opt) => {
|
|
5405
5410
|
const $scope43_id = _scope_id();
|
|
5406
|
-
_html(`<button type=button${_attr_class(["
|
|
5407
|
-
_script($scope43_id, "
|
|
5411
|
+
_html(`<button type=button${_attr_class(["_8", { ["_7"]: themeMode === opt.id }])} role=radio aria-checked=${themeMode === opt.id ? "true" : "false"}>${_escape(opt.label)}</button>${_el_resume($scope43_id, "a")}`);
|
|
5412
|
+
_script($scope43_id, "v54");
|
|
5408
5413
|
writeScope($scope43_id, {
|
|
5409
5414
|
e: opt?.id,
|
|
5410
5415
|
_: _scope_with_id($scope0_id)
|
|
5411
5416
|
});
|
|
5412
5417
|
}, "id", $scope0_id, "an", 1, 0, 1, 0, 1);
|
|
5413
|
-
_html(`</span><span${_attr_class(["
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
+
_html(`</span><span${_attr_class(["_m", "_cI"])}>`);
|
|
5419
|
+
_attr_select_value($scope0_id, "ap", themeMode, _resume(function(v) {
|
|
5420
|
+
setThemeMode(v);
|
|
5421
|
+
}, "v4", $scope0_id), () => {
|
|
5422
|
+
_html(`<select${_attr_class(["_n", "_cJ"])} aria-label="Color theme">`);
|
|
5423
|
+
forOf(themeOpts, (opt) => {
|
|
5424
|
+
_scope_id();
|
|
5425
|
+
_html(`<option${_attr_option_value(opt.id)}>${_escape(opt.label)}</option>`);
|
|
5426
|
+
});
|
|
5427
|
+
_html("</select>");
|
|
5428
|
+
});
|
|
5429
|
+
_html(`${_el_resume($scope0_id, "ap")}</span></span></div><div${_attr_class("_cD")}><span${_attr_class("_cE")}>Accent</span><span${_attr_class(swatches)} role=radiogroup aria-label="Accent colour"><button type=button${_attr_class([
|
|
5430
|
+
"_cP",
|
|
5431
|
+
"_cR",
|
|
5432
|
+
{ ["_cQ"]: !input.instance.accent }
|
|
5433
|
+
])} role=radio aria-checked=${!input.instance.accent ? "true" : "false"} title="Default (blue)" aria-label="Default (blue)"></button>${_el_resume($scope0_id, "at")}`);
|
|
5418
5434
|
_for_of(ACCENT_PRESETS, (p) => {
|
|
5419
5435
|
const $scope4_id = _scope_id();
|
|
5420
|
-
_html(`<button type=button${_attr_class(["
|
|
5421
|
-
_script($scope4_id, "
|
|
5436
|
+
_html(`<button type=button${_attr_class(["_cP", { ["_cQ"]: input.instance.accent === p.value }])}${_attr_style(`--swatch:${p.value}`)} role=radio aria-checked=${input.instance.accent === p.value ? "true" : "false"}${_attr("title", p.name)}${_attr("aria-label", p.name)}></button>${_el_resume($scope4_id, "a")}`);
|
|
5437
|
+
_script($scope4_id, "v55");
|
|
5422
5438
|
writeScope($scope4_id, {
|
|
5423
5439
|
d: p?.value,
|
|
5424
5440
|
_: _scope_with_id($scope0_id)
|
|
5425
5441
|
});
|
|
5426
|
-
}, "value", $scope0_id, "
|
|
5442
|
+
}, "value", $scope0_id, "au", $sg__input_instance_accent, 0, 1, 0, 1);
|
|
5427
5443
|
const customOn = !!input.instance.accent && !ACCENT_PRESETS.some((p) => p.value === input.instance.accent);
|
|
5428
5444
|
_html(`<label${_attr_class([
|
|
5429
|
-
"
|
|
5430
|
-
"
|
|
5431
|
-
{ ["
|
|
5432
|
-
])}${customOn ? _attr_style(`--swatch:${input.instance.accent}`) : ""} title="Custom colour"><input${_attr_input_value($scope0_id, "
|
|
5445
|
+
"_cP",
|
|
5446
|
+
"_cS",
|
|
5447
|
+
{ ["_cQ"]: customOn }
|
|
5448
|
+
])}${customOn ? _attr_style(`--swatch:${input.instance.accent}`) : ""} title="Custom colour"><input${_attr_input_value($scope0_id, "aw", input.instance.accent || "#3556d8", _resume(function(v) {
|
|
5433
5449
|
setInstance({ accent: v });
|
|
5434
|
-
}, "
|
|
5450
|
+
}, "v5", $scope0_id))}${_attr_class("_cT")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "aw")}<span aria-hidden=true>+</span></label>${_el_resume($scope0_id, "av", $sg__input_instance_accent)}</span></div></div></section></div></div></div>`);
|
|
5435
5451
|
_if(() => {
|
|
5436
5452
|
if (versionPick) {
|
|
5437
5453
|
const $scope30_id = _scope_id();
|
|
@@ -5445,19 +5461,19 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5445
5461
|
open: versionPick != null,
|
|
5446
5462
|
openChange: _resume(function(o) {
|
|
5447
5463
|
if (!o) versionPick = null;
|
|
5448
|
-
}, "
|
|
5464
|
+
}, "v30", $scope30_id),
|
|
5449
5465
|
onSubmit: _resume(function(v) {
|
|
5450
5466
|
const pick = versionPick;
|
|
5451
5467
|
versionPick = null;
|
|
5452
5468
|
run(pick.id, "install", v);
|
|
5453
|
-
}, "
|
|
5469
|
+
}, "v31", $scope30_id)
|
|
5454
5470
|
});
|
|
5455
5471
|
writeScope($scope30_id, { a: _existing_scope($childScope11) });
|
|
5456
5472
|
return 0;
|
|
5457
5473
|
}
|
|
5458
5474
|
}, $scope0_id, "ax", 1, 1, 1, 0, 1);
|
|
5459
|
-
_script($scope0_id, "v55");
|
|
5460
5475
|
_script($scope0_id, "v56");
|
|
5476
|
+
_script($scope0_id, "v57");
|
|
5461
5477
|
writeScope($scope0_id, {
|
|
5462
5478
|
b1: input.setupChange,
|
|
5463
5479
|
b2: input.agentsChange,
|
|
@@ -5495,62 +5511,62 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5495
5511
|
c6: searching,
|
|
5496
5512
|
c8: searchTimer.id,
|
|
5497
5513
|
ca: setThemeMode,
|
|
5498
|
-
|
|
5499
|
-
|
|
5500
|
-
|
|
5501
|
-
|
|
5502
|
-
|
|
5503
|
-
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
|
|
5523
|
-
|
|
5524
|
-
|
|
5525
|
-
|
|
5526
|
-
|
|
5527
|
-
|
|
5514
|
+
ce: applySetup,
|
|
5515
|
+
cg: syncAgents,
|
|
5516
|
+
ch: loadSetup,
|
|
5517
|
+
ci: loadSelf,
|
|
5518
|
+
ck: updateSelf,
|
|
5519
|
+
cl: loadUsage,
|
|
5520
|
+
cn: refresh,
|
|
5521
|
+
co: refreshUsage,
|
|
5522
|
+
cp: setActive,
|
|
5523
|
+
cr: run,
|
|
5524
|
+
cs: changeHost,
|
|
5525
|
+
ct: runEach,
|
|
5526
|
+
cu: setPreferred,
|
|
5527
|
+
cx: saveTimer.id,
|
|
5528
|
+
cz: setInstance,
|
|
5529
|
+
d2: setEnabled,
|
|
5530
|
+
d3: search,
|
|
5531
|
+
d4: outdated,
|
|
5532
|
+
d7: missingInstallable,
|
|
5533
|
+
d9: missingCount,
|
|
5534
|
+
da: outdatedIds,
|
|
5535
|
+
db: outdatedIds?.length,
|
|
5536
|
+
dc: families,
|
|
5537
|
+
de: families.length,
|
|
5538
|
+
dg: instanceIds,
|
|
5539
|
+
di: accountsFor,
|
|
5540
|
+
dj: strayAccountsFor,
|
|
5541
|
+
dv: $setup_missing__closures,
|
|
5542
|
+
du: $setup2__closures,
|
|
5543
|
+
dy: $refreshing__closures,
|
|
5528
5544
|
d: _serialize_if($scope0_reason, 1) && _existing_scope($childScope2),
|
|
5529
|
-
|
|
5530
|
-
|
|
5531
|
-
|
|
5545
|
+
dx: $error__closures,
|
|
5546
|
+
eb: $self_latest__closures,
|
|
5547
|
+
ec: $self_version__closures,
|
|
5532
5548
|
p: _existing_scope($childScope3),
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
|
|
5539
|
-
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
|
|
5549
|
+
dz: $active__closures,
|
|
5550
|
+
ds: $si__input_preferred && $input_preferred__closures,
|
|
5551
|
+
em: $accountsFor2__closures,
|
|
5552
|
+
e1: $authCodes__closures,
|
|
5553
|
+
e2: $confirmingRemove__closures,
|
|
5554
|
+
eg: $si__input_setupChange && $refresh2__closures,
|
|
5555
|
+
eh: $run2__closures,
|
|
5556
|
+
ea: $self_install__closures,
|
|
5557
|
+
e9: $hits__closures,
|
|
5558
|
+
e8: $query__closures
|
|
5543
5559
|
});
|
|
5544
5560
|
_resume_branch($scope0_id);
|
|
5545
5561
|
});
|
|
5546
5562
|
//#endregion
|
|
5547
5563
|
//#region src/tags/new-workspace.css.ts
|
|
5548
|
-
var content$1 = "
|
|
5549
|
-
var section$1 = "
|
|
5550
|
-
var curBase = "
|
|
5551
|
-
var archived = "
|
|
5552
|
-
var archivedHint = "
|
|
5553
|
-
var archivedCard = "
|
|
5564
|
+
var content$1 = "_bN _bG";
|
|
5565
|
+
var section$1 = "_bR _bo";
|
|
5566
|
+
var curBase = "_bW _T _S";
|
|
5567
|
+
var archived = "_b1 _bo";
|
|
5568
|
+
var archivedHint = "_b2 _S";
|
|
5569
|
+
var archivedCard = "_b3 _bt";
|
|
5554
5570
|
//#endregion
|
|
5555
5571
|
//#region src/tags/icons/icon-check.marko
|
|
5556
5572
|
var icon_check_default = _template("P", (input) => {
|
|
@@ -5585,7 +5601,7 @@ var icon_branch_default = _template("O", (input) => {
|
|
|
5585
5601
|
});
|
|
5586
5602
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
5587
5603
|
});
|
|
5588
|
-
var resultBranch = "
|
|
5604
|
+
var resultBranch = "_dq _Z _j";
|
|
5589
5605
|
//#endregion
|
|
5590
5606
|
//#region src/tags/branch-pick.marko
|
|
5591
5607
|
var branch_pick_default = _template("d", (input) => {
|
|
@@ -5596,11 +5612,11 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
5596
5612
|
let branches = null;
|
|
5597
5613
|
let defaultBranch = null;
|
|
5598
5614
|
let branchFilter = "";
|
|
5599
|
-
_html(`<div${_attr_class("
|
|
5615
|
+
_html(`<div${_attr_class("_ds")}>`);
|
|
5600
5616
|
_if(() => {
|
|
5601
5617
|
{
|
|
5602
5618
|
const $scope4_id = _scope_id();
|
|
5603
|
-
_html(`<p${_attr_class("
|
|
5619
|
+
_html(`<p${_attr_class("_bz")}><span${_attr_class("_F")}></span> Loading branches…</p>`);
|
|
5604
5620
|
writeScope($scope4_id, {});
|
|
5605
5621
|
return 0;
|
|
5606
5622
|
}
|
|
@@ -5676,11 +5692,11 @@ var repo_picker_default = _template("t", (input) => {
|
|
|
5676
5692
|
const ignored = new Set(prefs$1?.ignoredSsoOrgs?.() ?? []);
|
|
5677
5693
|
return (catalog?.sso || []).filter((s) => !ignored.has(s.org));
|
|
5678
5694
|
})();
|
|
5679
|
-
_html(`<div${_attr_class("
|
|
5695
|
+
_html(`<div${_attr_class("_dj")}>`);
|
|
5680
5696
|
_if(() => {
|
|
5681
5697
|
if (ssoPending.length) {
|
|
5682
5698
|
const $scope7_id = _scope_id();
|
|
5683
|
-
_html(`<div${_attr_class("
|
|
5699
|
+
_html(`<div${_attr_class("_dk")}>`);
|
|
5684
5700
|
_set_serialize_reason(154);
|
|
5685
5701
|
const $childScope = _peek_scope_id();
|
|
5686
5702
|
sso_auth_default({
|
|
@@ -5710,16 +5726,16 @@ var repo_picker_default = _template("t", (input) => {
|
|
|
5710
5726
|
_if(() => {
|
|
5711
5727
|
if (pasted) {
|
|
5712
5728
|
const $scope1_id = _scope_id();
|
|
5713
|
-
_html(`<ul${_attr_class("
|
|
5729
|
+
_html(`<ul${_attr_class("_dl")}><li><div${_attr_class(["_dn", "_dm"])}><button${_attr_class("_do")}${pasteWillFork ? _attr("title", `Fork ${pasted} to your account and add the fork`) : _attr("title", `Add ${pasted} as-is (pushes go to that repo)`)}>`);
|
|
5714
5730
|
icon_plus_default({
|
|
5715
5731
|
size: 12,
|
|
5716
|
-
class: "
|
|
5732
|
+
class: "_du"
|
|
5717
5733
|
});
|
|
5718
|
-
_html(`<span${_attr_class("
|
|
5734
|
+
_html(`<span${_attr_class("_dv")}>${_escape(repoLabel(pasted))}${_el_resume($scope1_id, "f")}</span></button>${_el_resume($scope1_id, "c")}`);
|
|
5719
5735
|
_if(() => {
|
|
5720
5736
|
if (pastedForkable) {
|
|
5721
5737
|
const $scope8_id = _scope_id();
|
|
5722
|
-
_html(`<button${_attr_class(["
|
|
5738
|
+
_html(`<button${_attr_class(["_dr", { ["_dp"]: pasteWillFork }])}${pasteWillFork ? " title=\"Will fork to your account; click to clone as-is instead\"" : _attr("title", `Fork ${pasted} to your account and clone the fork`)} aria-pressed=${pasteWillFork ? "true" : "false"}>`);
|
|
5723
5739
|
_if(() => {
|
|
5724
5740
|
if (pasteWillFork) {
|
|
5725
5741
|
const $scope10_id = _scope_id();
|
|
@@ -5739,7 +5755,7 @@ var repo_picker_default = _template("t", (input) => {
|
|
|
5739
5755
|
return 0;
|
|
5740
5756
|
}
|
|
5741
5757
|
}, $scope1_id, "g", 1, 1, 1, 0, 1);
|
|
5742
|
-
_html(`<button${_attr_class([resultBranch, { ["
|
|
5758
|
+
_html(`<button${_attr_class([resultBranch, { ["_dp"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>`);
|
|
5743
5759
|
icon_branch_default({ size: 12 });
|
|
5744
5760
|
_html(`</button>${_el_resume($scope1_id, "h")}</div>`);
|
|
5745
5761
|
_if(() => {
|
|
@@ -5766,7 +5782,7 @@ var repo_picker_default = _template("t", (input) => {
|
|
|
5766
5782
|
return 0;
|
|
5767
5783
|
} else if (filter && !catalog) {
|
|
5768
5784
|
const $scope9_id = _scope_id();
|
|
5769
|
-
_html(`<p${_attr_class("
|
|
5785
|
+
_html(`<p${_attr_class("_bz")}>Loading repos…</p>`);
|
|
5770
5786
|
writeScope($scope9_id, {});
|
|
5771
5787
|
return 1;
|
|
5772
5788
|
}
|
|
@@ -5774,15 +5790,15 @@ var repo_picker_default = _template("t", (input) => {
|
|
|
5774
5790
|
_if(() => {
|
|
5775
5791
|
if (results.length) {
|
|
5776
5792
|
const $scope3_id = _scope_id();
|
|
5777
|
-
_html(`<ul${_attr_class("
|
|
5793
|
+
_html(`<ul${_attr_class("_dl")}>`);
|
|
5778
5794
|
_for_of(results, (repo, i) => {
|
|
5779
5795
|
const $scope4_id = _scope_id();
|
|
5780
|
-
_html(`<li><div${_attr_class(["
|
|
5796
|
+
_html(`<li><div${_attr_class(["_dn", { ["_dm"]: i === highlight }])}><button${_attr_class("_do")}>`);
|
|
5781
5797
|
icon_plus_default({
|
|
5782
5798
|
size: 12,
|
|
5783
|
-
class: "
|
|
5799
|
+
class: "_du"
|
|
5784
5800
|
});
|
|
5785
|
-
_html(`<span${_attr_class("
|
|
5801
|
+
_html(`<span${_attr_class("_dv")}>${_escape(repoLabel(repo.nameWithOwner))}${_el_resume($scope4_id, "e")}</span></button>${_el_resume($scope4_id, "b")}<button${_attr_class([resultBranch, { ["_dp"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>`);
|
|
5786
5802
|
icon_branch_default({ size: 12 });
|
|
5787
5803
|
_html(`</button>${_el_resume($scope4_id, "f")}</div>${_el_resume($scope4_id, "a")}`);
|
|
5788
5804
|
_if(() => {
|
|
@@ -5817,7 +5833,7 @@ var repo_picker_default = _template("t", (input) => {
|
|
|
5817
5833
|
return 0;
|
|
5818
5834
|
} else if (filter && catalog && !pasted) {
|
|
5819
5835
|
const $scope6_id = _scope_id();
|
|
5820
|
-
_html(`<p${_attr_class("
|
|
5836
|
+
_html(`<p${_attr_class("_bz")}>No repos match "<!>${_escape(filter)}${_el_resume($scope6_id, "b")}". Paste a clone URL to add any repo.</p>`);
|
|
5821
5837
|
writeScope($scope6_id, {});
|
|
5822
5838
|
return 1;
|
|
5823
5839
|
}
|
|
@@ -5958,7 +5974,7 @@ var new_workspace_default = _template("q", (input) => {
|
|
|
5958
5974
|
}
|
|
5959
5975
|
}, "q6", $scope0_id);
|
|
5960
5976
|
const titleId = _id();
|
|
5961
|
-
_html(`<div${_attr_class("
|
|
5977
|
+
_html(`<div${_attr_class("_bE")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bF")}><div${_attr_class(content$1)}>`);
|
|
5962
5978
|
_set_serialize_reason({
|
|
5963
5979
|
0: _serialize_guard($scope0_reason, 2),
|
|
5964
5980
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -5997,23 +6013,23 @@ var new_workspace_default = _template("q", (input) => {
|
|
|
5997
6013
|
return 0;
|
|
5998
6014
|
}
|
|
5999
6015
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
6000
|
-
_html(`<label${_attr_class("
|
|
6016
|
+
_html(`<label${_attr_class("_bQ")}><span${_attr_class("_bD")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
|
|
6001
6017
|
name = _new_name;
|
|
6002
|
-
}, "q0", $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("
|
|
6018
|
+
}, "q0", $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("_bS")}><h2${_attr_class("_bD")}>Repos</h2><button${_attr_class(iconBtnRow)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
6003
6019
|
_set_serialize_reason(1);
|
|
6004
6020
|
const $childScope2 = _peek_scope_id();
|
|
6005
6021
|
icon_refresh_default({
|
|
6006
6022
|
size: 14,
|
|
6007
6023
|
class: catalogRefreshing && "_E"
|
|
6008
6024
|
});
|
|
6009
|
-
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("
|
|
6025
|
+
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("_bT")}>`);
|
|
6010
6026
|
_for_of(selected, (repo) => {
|
|
6011
6027
|
const $scope2_id = _scope_id();
|
|
6012
|
-
_html(`<li><div${_attr_class(row)}><span${_attr_class("
|
|
6028
|
+
_html(`<li><div${_attr_class(row)}><span${_attr_class("_bU")}>${_escape(repoLabel(repo.fullName))}${_el_resume($scope2_id, "c")}</span>`);
|
|
6013
6029
|
_if(() => {
|
|
6014
6030
|
if (repo.fork !== void 0) {
|
|
6015
6031
|
const $scope3_id = _scope_id();
|
|
6016
|
-
_html(`<button${_attr_class(["
|
|
6032
|
+
_html(`<button${_attr_class(["_bX", { ["_bV"]: repo.fork }])}${repo.fork ? _attr("title", `${repo.fullName} will be forked to your account; click to clone as-is instead`) : _attr("title", `Fork ${repo.fullName} to your account and clone the fork`)} aria-pressed=${repo.fork ? "true" : "false"}${_attr("disabled", busy)}>`);
|
|
6017
6033
|
_if(() => {
|
|
6018
6034
|
if (repo.fork) {
|
|
6019
6035
|
const $scope12_id = _scope_id();
|
|
@@ -6036,7 +6052,7 @@ var new_workspace_default = _template("q", (input) => {
|
|
|
6036
6052
|
_html(`<button${_attr_class([
|
|
6037
6053
|
curBase,
|
|
6038
6054
|
"_x",
|
|
6039
|
-
{ ["
|
|
6055
|
+
{ ["_bV"]: branchesFor === repo.fullName }
|
|
6040
6056
|
])}${_attr("title", `Change base branch for ${repo.fullName}`)}${_attr("aria-label", `Change base branch for ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
6041
6057
|
icon_branch_default({ size: 12 });
|
|
6042
6058
|
_html(`<!>${repo.baseBranch ? ` ${_escape(`${_to_text(repo.baseBranch)}`)}` : ""}${_el_resume($scope2_id, "g")}</button>${_el_resume($scope2_id, "e")}<button${_attr_class([iconBtnXs, "_2"])}${_attr("title", `Remove ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
@@ -6072,7 +6088,7 @@ var new_workspace_default = _template("q", (input) => {
|
|
|
6072
6088
|
_if(() => {
|
|
6073
6089
|
if (!selected.length) {
|
|
6074
6090
|
const $scope14_id = _scope_id();
|
|
6075
|
-
_html(`<li${_attr_class("
|
|
6091
|
+
_html(`<li${_attr_class("_bz")}>No repos yet. Search below to add one, or create it empty.</li>`);
|
|
6076
6092
|
writeScope($scope14_id, {});
|
|
6077
6093
|
return 0;
|
|
6078
6094
|
}
|
|
@@ -6097,10 +6113,10 @@ var new_workspace_default = _template("q", (input) => {
|
|
|
6097
6113
|
_if(() => {
|
|
6098
6114
|
if (busy && steps$1.length) {
|
|
6099
6115
|
const $scope9_id = _scope_id();
|
|
6100
|
-
_html(`<ul${_attr_class("
|
|
6116
|
+
_html(`<ul${_attr_class("_bY")}>`);
|
|
6101
6117
|
_for_of(steps$1, (step$1, i) => {
|
|
6102
6118
|
const $scope10_id = _scope_id();
|
|
6103
|
-
_html(`<li${_attr_class(["
|
|
6119
|
+
_html(`<li${_attr_class(["_b4", { ["_bZ"]: i === steps$1.length - 1 }])}>`);
|
|
6104
6120
|
_if(() => {
|
|
6105
6121
|
if (i === steps$1.length - 1) {
|
|
6106
6122
|
const $scope15_id = _scope_id();
|
|
@@ -6109,7 +6125,7 @@ var new_workspace_default = _template("q", (input) => {
|
|
|
6109
6125
|
return 0;
|
|
6110
6126
|
} else {
|
|
6111
6127
|
const $scope16_id = _scope_id();
|
|
6112
|
-
_html(`<span${_attr_class("
|
|
6128
|
+
_html(`<span${_attr_class("_b0")}>`);
|
|
6113
6129
|
icon_check_default({ size: 14 });
|
|
6114
6130
|
_html("</span>");
|
|
6115
6131
|
writeScope($scope16_id, {});
|
|
@@ -6123,7 +6139,7 @@ var new_workspace_default = _template("q", (input) => {
|
|
|
6123
6139
|
return 0;
|
|
6124
6140
|
}
|
|
6125
6141
|
}, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
6126
|
-
_html(`<div${_attr_class("
|
|
6142
|
+
_html(`<div${_attr_class("_bO")}>`);
|
|
6127
6143
|
_if(() => {
|
|
6128
6144
|
if (input.onExit || busy) {
|
|
6129
6145
|
const $scope1_id = _scope_id();
|
|
@@ -6136,15 +6152,15 @@ var new_workspace_default = _template("q", (input) => {
|
|
|
6136
6152
|
_html(`<button type=button${_attr_class([
|
|
6137
6153
|
btnLg,
|
|
6138
6154
|
"_p",
|
|
6139
|
-
"
|
|
6155
|
+
"_bP"
|
|
6140
6156
|
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${busy ? "Creating…" : "Create workspace"}${_el_resume($scope0_id, "w")}</button>${_el_resume($scope0_id, "v")}</div>`);
|
|
6141
6157
|
_if(() => {
|
|
6142
6158
|
if (archived$1.length) {
|
|
6143
6159
|
const $scope4_id = _scope_id();
|
|
6144
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("
|
|
6160
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_bS")}><h2${_attr_class("_bD")}>Archived</h2><span${_attr_class(sectionCount$1)}>${_escape(archived$1.length)}${_el_resume($scope4_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("_br")}>`);
|
|
6145
6161
|
_for_of(archived$1, (ws) => {
|
|
6146
6162
|
const $scope5_id = _scope_id();
|
|
6147
|
-
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("
|
|
6163
|
+
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("_bu")}><span${_attr_class("_bv")}>${_escape(ws.name)}${_el_resume($scope5_id, "d", $sg__input_workspaces)}</span><span${_attr_class([metaTrunc, "_x"])}${_attr("title", ws.display_path || ws.path)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope5_id, "f", $sg__input_workspaces)}</span>${_el_resume($scope5_id, "e", $sg__input_workspaces)}</div><button type=button${_attr_class(btnLg)}${_attr("disabled", busy || !!restoring)}>`);
|
|
6148
6164
|
_if(() => {
|
|
6149
6165
|
if (restoring === ws.id) {
|
|
6150
6166
|
const $scope17_id = _scope_id();
|
|
@@ -6315,12 +6331,12 @@ var ARM_MS = 3500;
|
|
|
6315
6331
|
function disarmLater(fn) {
|
|
6316
6332
|
return setTimeout(fn, ARM_MS);
|
|
6317
6333
|
}
|
|
6318
|
-
var railBtn = "
|
|
6319
|
-
var rowIcon = "
|
|
6320
|
-
var close = "
|
|
6334
|
+
var railBtn = "_gp _j";
|
|
6335
|
+
var rowIcon = "_gy _Z _j";
|
|
6336
|
+
var close = "_gz _Z _j _2";
|
|
6321
6337
|
//#endregion
|
|
6322
6338
|
//#region src/styles/session-pop.css.ts
|
|
6323
|
-
var sessionPop = "
|
|
6339
|
+
var sessionPop = "_gl _4";
|
|
6324
6340
|
//#endregion
|
|
6325
6341
|
//#region src/tags/icons/icon-diff.marko
|
|
6326
6342
|
var icon_diff_default = _template("V", (input) => {
|
|
@@ -6370,22 +6386,22 @@ var usage_pcts_default = _template("E", (input) => {
|
|
|
6370
6386
|
if (windows.length) {
|
|
6371
6387
|
const $scope1_id = _scope_id();
|
|
6372
6388
|
_html(`<span${_attr_class([
|
|
6373
|
-
"
|
|
6389
|
+
"_fm",
|
|
6374
6390
|
input.class,
|
|
6375
|
-
{ ["
|
|
6391
|
+
{ ["_fn"]: agent.stale_seconds != null }
|
|
6376
6392
|
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
6377
6393
|
_for_of(windows, (win$1, i) => {
|
|
6378
6394
|
const $scope2_id = _scope_id();
|
|
6379
|
-
_html(`<span${_attr_class("
|
|
6395
|
+
_html(`<span${_attr_class("_fo")}>`);
|
|
6380
6396
|
_if(() => {
|
|
6381
6397
|
if (i) {
|
|
6382
6398
|
const $scope3_id = _scope_id();
|
|
6383
|
-
_html(`<span${_attr_class("
|
|
6399
|
+
_html(`<span${_attr_class("_fr")} aria-hidden=true>·</span>`);
|
|
6384
6400
|
$si__input_agent && writeScope($scope3_id, {});
|
|
6385
6401
|
return 0;
|
|
6386
6402
|
}
|
|
6387
6403
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
6388
|
-
_html(`<span${_attr_class("
|
|
6404
|
+
_html(`<span${_attr_class("_fp")}>${_escape(win$1.window)}${_el_resume($scope2_id, "d", $sg__input_agent)}</span><span${_attr_class(["_fq", win$1.used_percent >= 90 ? "_df" : win$1.used_percent >= 70 ? "_de" : win$1.used_percent >= 40 ? "_dd" : "_dc"])}>${_escape(pctText(win$1.used_percent))}${_el_resume($scope2_id, "f", $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
6389
6405
|
$si__input_agent && writeScope($scope2_id, {});
|
|
6390
6406
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
6391
6407
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -6416,12 +6432,12 @@ var icon_edit_default = _template("X", (input) => {
|
|
|
6416
6432
|
});
|
|
6417
6433
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
6418
6434
|
});
|
|
6419
|
-
var prChip = "
|
|
6420
|
-
var portChip = "
|
|
6435
|
+
var prChip = "_hr _s _hq";
|
|
6436
|
+
var portChip = "_hs _s _hq";
|
|
6421
6437
|
var prState = {
|
|
6422
|
-
open: "
|
|
6423
|
-
merged: "
|
|
6424
|
-
closed: "
|
|
6438
|
+
open: "_hw",
|
|
6439
|
+
merged: "_hx",
|
|
6440
|
+
closed: "_hy"
|
|
6425
6441
|
};
|
|
6426
6442
|
//#endregion
|
|
6427
6443
|
//#region src/tags/side-nav-chips.marko
|
|
@@ -6493,7 +6509,7 @@ var side_nav_chips_default = _template("w", (input) => {
|
|
|
6493
6509
|
const name = repo.full_name.split("/").at(-1);
|
|
6494
6510
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel(repo.full_name) : name;
|
|
6495
6511
|
}, "w4", $scope1_id);
|
|
6496
|
-
_html(`<div${_attr_class("
|
|
6512
|
+
_html(`<div${_attr_class("_hp")}>`);
|
|
6497
6513
|
_for_of(repos, (repo) => {
|
|
6498
6514
|
const $scope2_id = _scope_id();
|
|
6499
6515
|
const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -6509,11 +6525,11 @@ var side_nav_chips_default = _template("w", (input) => {
|
|
|
6509
6525
|
[prState.merged]: pr.state === "MERGED",
|
|
6510
6526
|
[prState.closed]: pr.state === "CLOSED"
|
|
6511
6527
|
}
|
|
6512
|
-
])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["
|
|
6528
|
+
])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["_ht", { ["_hA"]: !open }])}${_attr("href", pr.url)} target=_blank rel=noopener>${_escape(repoLabel$1(repo))}${_el_resume($scope3_id, "c")}#<!>${_escape(pr.number)}${_el_resume($scope3_id, "d")}</a>${_el_resume($scope3_id, "b")}`);
|
|
6513
6529
|
_if(() => {
|
|
6514
6530
|
if (open) {
|
|
6515
6531
|
const $scope4_id = _scope_id();
|
|
6516
|
-
_html(`<a${_attr_class(["
|
|
6532
|
+
_html(`<a${_attr_class(["_ht", "_hu"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr.number}`)}`)}${_attr("title", `Review #${pr.number} changes`)}>`);
|
|
6517
6533
|
icon_diff_default({ size: 12 });
|
|
6518
6534
|
_html(`</a>${_el_resume($scope4_id, "a")}`);
|
|
6519
6535
|
_subscribe($for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, {})));
|
|
@@ -6521,9 +6537,9 @@ var side_nav_chips_default = _template("w", (input) => {
|
|
|
6521
6537
|
} else {
|
|
6522
6538
|
const $scope6_id = _scope_id();
|
|
6523
6539
|
_html(`<button type=button${_attr_class([
|
|
6524
|
-
"_hs",
|
|
6525
6540
|
"_ht",
|
|
6526
|
-
"_hu"
|
|
6541
|
+
"_hu",
|
|
6542
|
+
"_hv"
|
|
6527
6543
|
])}${_attr("title", `Dismiss #${pr.number}`)}>`);
|
|
6528
6544
|
icon_xmark_default({ size: 12 });
|
|
6529
6545
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
@@ -6544,10 +6560,10 @@ var side_nav_chips_default = _template("w", (input) => {
|
|
|
6544
6560
|
}, "full_name", $scope1_id, "b");
|
|
6545
6561
|
_for_of(ports, (p) => {
|
|
6546
6562
|
const $scope5_id = _scope_id();
|
|
6547
|
-
_html(`<span${_attr_class(["_s", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["
|
|
6548
|
-
"_hs",
|
|
6563
|
+
_html(`<span${_attr_class(["_s", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["_ht", "_hz"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${p.port}`)}>:<!>${_escape(p.port)}${_el_resume($scope5_id, "c")}</button>${_el_resume($scope5_id, "b")}<button type=button${_attr_class([
|
|
6549
6564
|
"_ht",
|
|
6550
6565
|
"_hu",
|
|
6566
|
+
"_hv",
|
|
6551
6567
|
{ ["_q"]: armedPid === p.pid }
|
|
6552
6568
|
])}${armedPid === p.pid ? " title=Kill?" : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
|
|
6553
6569
|
icon_xmark_default({ size: 12 });
|
|
@@ -6643,10 +6659,10 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6643
6659
|
_if(() => {
|
|
6644
6660
|
if (input.rail) {
|
|
6645
6661
|
const $scope2_id = _scope_id();
|
|
6646
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
6662
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_gn"]: 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([
|
|
6647
6663
|
"_z",
|
|
6648
6664
|
phase[dot],
|
|
6649
|
-
"
|
|
6665
|
+
"_gq"
|
|
6650
6666
|
])}></span>${_el_resume($scope2_id, "c", $sg__input_workspaceId__OR__input_status)}</a>${_el_resume($scope2_id, "a", _serialize_guard($scope0_reason, 3))}`);
|
|
6651
6667
|
_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) })))));
|
|
6652
6668
|
return 0;
|
|
@@ -6654,15 +6670,15 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6654
6670
|
const $scope3_id = _scope_id();
|
|
6655
6671
|
const sessions$1 = input.sessions || [];
|
|
6656
6672
|
const phaseLabel = dot === "working" ? "Working" : dot === "waiting" ? "Needs input" : dot === "idle" ? "Idle" : "Not running";
|
|
6657
|
-
_html(`<section${_attr_class(["
|
|
6658
|
-
["
|
|
6673
|
+
_html(`<section${_attr_class(["_gs", {
|
|
6674
|
+
["_gn"]: input.current,
|
|
6659
6675
|
["_5"]: input.current,
|
|
6660
|
-
["
|
|
6661
|
-
["
|
|
6662
|
-
}])}><div${_attr_class("
|
|
6676
|
+
["_gt"]: input.railPop,
|
|
6677
|
+
["_gr"]: input.page
|
|
6678
|
+
}])}><div${_attr_class("_gu")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class("_gv")}><span${_attr_class([
|
|
6663
6679
|
"_z",
|
|
6664
6680
|
phase[dot],
|
|
6665
|
-
"
|
|
6681
|
+
"_gI"
|
|
6666
6682
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope3_id, "d", $sg__input_workspaceId__OR__input_status)}`);
|
|
6667
6683
|
_if(() => {
|
|
6668
6684
|
if (sessions$1.length === 1) {
|
|
@@ -6675,7 +6691,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6675
6691
|
icon_agent_default({
|
|
6676
6692
|
agent: activeAgent(sessions$1[0]),
|
|
6677
6693
|
size: 12,
|
|
6678
|
-
class: "
|
|
6694
|
+
class: "_gA"
|
|
6679
6695
|
});
|
|
6680
6696
|
$si__input_sessions && writeScope($scope14_id, {
|
|
6681
6697
|
_: _scope_with_id($scope3_id),
|
|
@@ -6685,16 +6701,16 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6685
6701
|
}
|
|
6686
6702
|
}, $scope3_id, "e", $sg__input_sessions, $sg__input_sessions);
|
|
6687
6703
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length === 1 ? sessions$1[0].title || "" : `${sessions$1.length} sessions`;
|
|
6688
|
-
_html(`<span${_attr_class("
|
|
6704
|
+
_html(`<span${_attr_class("_gB")}><span${_attr_class("_gC")}>${_escape(ws$1.name)}${_el_resume($scope3_id, "h", $sg__input_workspaces__OR__input_workspaceId)}</span>`);
|
|
6689
6705
|
_if(() => {
|
|
6690
6706
|
if (input.page && metaText) {
|
|
6691
6707
|
const $scope16_id = _scope_id();
|
|
6692
|
-
_html(`<span${_attr_class("
|
|
6708
|
+
_html(`<span${_attr_class("_gG")}>${_escape(metaText)}${_el_resume($scope16_id, "b", _serialize_guard($scope0_reason, 7))}</span>`);
|
|
6693
6709
|
$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) });
|
|
6694
6710
|
return 0;
|
|
6695
6711
|
} else if (sessions$1.length === 1 && sessions$1[0].title) {
|
|
6696
6712
|
const $scope15_id = _scope_id();
|
|
6697
|
-
_html(`<span${_attr_class("
|
|
6713
|
+
_html(`<span${_attr_class("_gD")}>${_escape(sessions$1[0].title)}${_el_resume($scope15_id, "b", $sg__input_sessions)}</span>`);
|
|
6698
6714
|
$si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && writeScope($scope15_id, { _: $si__input_sessions && _scope_with_id($scope3_id) });
|
|
6699
6715
|
return 1;
|
|
6700
6716
|
}
|
|
@@ -6707,7 +6723,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6707
6723
|
"_I",
|
|
6708
6724
|
"_R",
|
|
6709
6725
|
"_K",
|
|
6710
|
-
"
|
|
6726
|
+
"_gH"
|
|
6711
6727
|
])}>${input.current ? "Open" : ""}${_el_resume($scope4_id, "b", _serialize_guard($scope0_reason, 21))}</span>`);
|
|
6712
6728
|
$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, {
|
|
6713
6729
|
_: _scope_with_id($scope3_id),
|
|
@@ -6720,7 +6736,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6720
6736
|
_if(() => {
|
|
6721
6737
|
if (!input.page) {
|
|
6722
6738
|
const $scope5_id = _scope_id();
|
|
6723
|
-
_html(`<div${_attr_class("
|
|
6739
|
+
_html(`<div${_attr_class("_gw")}>`);
|
|
6724
6740
|
_if(() => {
|
|
6725
6741
|
if (input.onNewSession) {
|
|
6726
6742
|
const $scope6_id = _scope_id();
|
|
@@ -6734,7 +6750,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6734
6750
|
_html(`</button>${_el_resume($scope6_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class(sessionPop)}>`);
|
|
6735
6751
|
_for_of([], (agent) => {
|
|
6736
6752
|
const $scope7_id = _scope_id();
|
|
6737
|
-
_html(`<button${_attr_class("
|
|
6753
|
+
_html(`<button${_attr_class("_gm")}>`);
|
|
6738
6754
|
_set_serialize_reason(12);
|
|
6739
6755
|
const $childScope2 = _peek_scope_id();
|
|
6740
6756
|
icon_agent_default({
|
|
@@ -6769,7 +6785,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6769
6785
|
return 0;
|
|
6770
6786
|
}
|
|
6771
6787
|
}, $scope5_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
6772
|
-
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["
|
|
6788
|
+
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_go"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
|
|
6773
6789
|
icon_manage_default({ size: 12 });
|
|
6774
6790
|
_html(`</a>${_el_resume($scope5_id, "d", _serialize_guard($scope0_reason, 8))}</div>`);
|
|
6775
6791
|
_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, {
|
|
@@ -6779,7 +6795,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6779
6795
|
return 0;
|
|
6780
6796
|
}
|
|
6781
6797
|
}, $scope3_id, "k", $sg__input_page, $sg__input_page, 1, 0, 1);
|
|
6782
|
-
_html(`</div><div${_attr_class("
|
|
6798
|
+
_html(`</div><div${_attr_class("_gN")}>`);
|
|
6783
6799
|
_if(() => {
|
|
6784
6800
|
if (sessions$1.length === 1 && openPlan) {
|
|
6785
6801
|
const $scope11_id = _scope_id();
|
|
@@ -6787,7 +6803,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6787
6803
|
const $childScope3 = _peek_scope_id();
|
|
6788
6804
|
usage_pcts_default({
|
|
6789
6805
|
agent: openPlan,
|
|
6790
|
-
class: "
|
|
6806
|
+
class: "_gE"
|
|
6791
6807
|
});
|
|
6792
6808
|
_subscribe($openPlan__closures, writeScope($scope11_id, {
|
|
6793
6809
|
a: _existing_scope($childScope3),
|
|
@@ -6798,14 +6814,14 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6798
6814
|
}, $scope3_id, "m");
|
|
6799
6815
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
6800
6816
|
const $scope8_id = _scope_id();
|
|
6801
|
-
_html(`<div${_attr_class(["
|
|
6817
|
+
_html(`<div${_attr_class(["_gx", { ["_gn"]: s.id === input.currentTab }])}>`);
|
|
6802
6818
|
_if(() => {
|
|
6803
6819
|
if (renamingId === s.id) {
|
|
6804
6820
|
const $scope10_id = _scope_id();
|
|
6805
6821
|
_html(`<span${_attr_class([
|
|
6806
6822
|
"_z",
|
|
6807
6823
|
phase[sessionPhase(s.state)],
|
|
6808
|
-
"
|
|
6824
|
+
"_gL"
|
|
6809
6825
|
])}></span>${_el_resume($scope10_id, "a", $sg__input_sessions)}`);
|
|
6810
6826
|
_set_serialize_reason({
|
|
6811
6827
|
1: $sg__input_sessions,
|
|
@@ -6815,17 +6831,17 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6815
6831
|
icon_agent_default({
|
|
6816
6832
|
agent: activeAgent(s),
|
|
6817
6833
|
size: 13,
|
|
6818
|
-
class: "
|
|
6834
|
+
class: "_gP"
|
|
6819
6835
|
});
|
|
6820
6836
|
_html(`<input${_attr_input_value($scope10_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
6821
6837
|
renameValue = _new_renameValue;
|
|
6822
|
-
}, "x0", $scope10_id))}${_attr_class(["_U", "
|
|
6838
|
+
}, "x0", $scope10_id))}${_attr_class(["_U", "_gM"])} aria-label="Session name">${_el_resume($scope10_id, "c")}`);
|
|
6823
6839
|
_script($scope10_id, "x5");
|
|
6824
6840
|
_subscribe($renameValue__closures, writeScope($scope10_id, { b: $si__input_sessions && _existing_scope($childScope4) }));
|
|
6825
6841
|
return 0;
|
|
6826
6842
|
} else {
|
|
6827
6843
|
const $scope9_id = _scope_id();
|
|
6828
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("
|
|
6844
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("_gO")}><span${_attr_class(["_z", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope9_id, "b", $sg__input_sessions)}`);
|
|
6829
6845
|
_set_serialize_reason({
|
|
6830
6846
|
1: $sg__input_sessions,
|
|
6831
6847
|
2: $sg__input_sessions
|
|
@@ -6834,9 +6850,9 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6834
6850
|
icon_agent_default({
|
|
6835
6851
|
agent: activeAgent(s),
|
|
6836
6852
|
size: 13,
|
|
6837
|
-
class: "
|
|
6853
|
+
class: "_gP"
|
|
6838
6854
|
});
|
|
6839
|
-
_html(`<span${_attr_class("
|
|
6855
|
+
_html(`<span${_attr_class("_gJ")}>${_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("_gK")}><button${_attr_class(rowIcon)} title="Rename session">`);
|
|
6840
6856
|
icon_edit_default({ size: 12 });
|
|
6841
6857
|
_html(`</button>${_el_resume($scope9_id, "g")}<button${_attr_class([close, { ["_q"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
|
|
6842
6858
|
icon_xmark_default({ size: 12 });
|
|
@@ -6848,7 +6864,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6848
6864
|
const $childScope6 = _peek_scope_id();
|
|
6849
6865
|
usage_pcts_default({
|
|
6850
6866
|
agent: openPlan,
|
|
6851
|
-
class: "
|
|
6867
|
+
class: "_gF"
|
|
6852
6868
|
});
|
|
6853
6869
|
_subscribe($openPlan__closures, writeScope($scope12_id, {
|
|
6854
6870
|
a: _existing_scope($childScope6),
|
|
@@ -7095,7 +7111,7 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7095
7111
|
_if(() => {
|
|
7096
7112
|
if (isPage && wsId === ws.id) {
|
|
7097
7113
|
const $scope13_id = _scope_id();
|
|
7098
|
-
_html(`<h2${_attr_class(["
|
|
7114
|
+
_html(`<h2${_attr_class(["_bD", "_d8"])}>Current</h2>`);
|
|
7099
7115
|
writeScope($scope13_id, {});
|
|
7100
7116
|
return 0;
|
|
7101
7117
|
}
|
|
@@ -7103,7 +7119,7 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7103
7119
|
_if(() => {
|
|
7104
7120
|
if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
|
|
7105
7121
|
const $scope14_id = _scope_id();
|
|
7106
|
-
_html(`<h2${_attr_class(["
|
|
7122
|
+
_html(`<h2${_attr_class(["_bD", "_d8"])}>Other workspaces</h2>`);
|
|
7107
7123
|
writeScope($scope14_id, {});
|
|
7108
7124
|
return 0;
|
|
7109
7125
|
}
|
|
@@ -7434,9 +7450,9 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7434
7450
|
_resume_branch($scope0_id);
|
|
7435
7451
|
});
|
|
7436
7452
|
var iconBtn = "_0 _j";
|
|
7437
|
-
var sectionCount = "
|
|
7438
|
-
var content = "_dL
|
|
7439
|
-
var pageMeta = "_dM
|
|
7453
|
+
var sectionCount = "_bq _I _J";
|
|
7454
|
+
var content = "_dL _bG";
|
|
7455
|
+
var pageMeta = "_dM _bL";
|
|
7440
7456
|
var pathMeta = "_dP _x";
|
|
7441
7457
|
var dangerHint = "_dV _S";
|
|
7442
7458
|
//#endregion
|
|
@@ -7537,7 +7553,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
7537
7553
|
setTimeout(() => loadProcs(void 0), 500);
|
|
7538
7554
|
}, "o5", $scope0_id);
|
|
7539
7555
|
const titleId = _id();
|
|
7540
|
-
_html(`<div${_attr_class("
|
|
7556
|
+
_html(`<div${_attr_class("_bE")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bF")}><div${_attr_class(content)}>`);
|
|
7541
7557
|
_set_serialize_reason(30);
|
|
7542
7558
|
const $childScope = _peek_scope_id();
|
|
7543
7559
|
page_head_default({
|
|
@@ -7587,22 +7603,22 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
7587
7603
|
_if(() => {
|
|
7588
7604
|
if (pendingAction && actionStep) {
|
|
7589
7605
|
const $scope7_id = _scope_id();
|
|
7590
|
-
_html(`<p${_attr_class("
|
|
7606
|
+
_html(`<p${_attr_class("_bn")}><span${_attr_class("_F")}></span><!>${_escape(actionStep)}${_el_resume($scope7_id, "c")}</p>`);
|
|
7591
7607
|
writeScope($scope7_id, {});
|
|
7592
7608
|
return 0;
|
|
7593
7609
|
}
|
|
7594
7610
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
7595
|
-
_html(`<section${_attr_class("
|
|
7611
|
+
_html(`<section${_attr_class("_bo")}><div${_attr_class("_bp")}><h2${_attr_class("_bD")}>Repos</h2><span${_attr_class(sectionCount)}>${_escape(ws.repos.length)}${_el_resume($scope0_id, "k")}</span><div${_attr_class("_y")}></div><button${_attr_class(iconBtn)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
7596
7612
|
_set_serialize_reason(1);
|
|
7597
7613
|
const $childScope2 = _peek_scope_id();
|
|
7598
7614
|
icon_refresh_default({
|
|
7599
7615
|
size: 14,
|
|
7600
7616
|
class: catalogRefreshing && "_E"
|
|
7601
7617
|
});
|
|
7602
|
-
_html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("
|
|
7618
|
+
_html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("_br")}>`);
|
|
7603
7619
|
_for_of(ws.repos, (row) => {
|
|
7604
7620
|
const $scope1_id = _scope_id();
|
|
7605
|
-
_html(`<li${_attr_class("
|
|
7621
|
+
_html(`<li${_attr_class("_bt")}><div${_attr_class("_bu")}><span${_attr_class(["_bv", "_x"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_bw")}><a${_attr_class(["_bx", "_dR"])}${_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")}`);
|
|
7606
7622
|
_if(() => {
|
|
7607
7623
|
if (row.base_branch !== row.default_branch) {
|
|
7608
7624
|
const $scope12_id = _scope_id();
|
|
@@ -7623,7 +7639,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
7623
7639
|
} else {
|
|
7624
7640
|
const $scope6_id = _scope_id();
|
|
7625
7641
|
_html(`<button${_attr_class([
|
|
7626
|
-
"
|
|
7642
|
+
"_by",
|
|
7627
7643
|
"_2",
|
|
7628
7644
|
"_3",
|
|
7629
7645
|
{ ["_q"]: confirmingRemove === row.full_name }
|
|
@@ -7656,14 +7672,14 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
7656
7672
|
}, "full_name", $scope0_id, "p", 1, 1, 1, 0, 1);
|
|
7657
7673
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
7658
7674
|
const $scope16_id = _scope_id();
|
|
7659
|
-
_html(`<li${_attr_class(["
|
|
7675
|
+
_html(`<li${_attr_class(["_bt", "_bs"])}><span${_attr_class("_F")}></span><div${_attr_class("_bu")}><span${_attr_class("_bx")}>Adding <!>${_escape(name)}${_el_resume($scope16_id, "e")}…</span></div></li>`);
|
|
7660
7676
|
writeScope($scope16_id, {});
|
|
7661
7677
|
}, (n) => n, $scope0_id, "q", 1, 1, 1, 0, 1);
|
|
7662
7678
|
_html("</ul>");
|
|
7663
7679
|
_if(() => {
|
|
7664
7680
|
if (!ws.repos.length && !busy.size) {
|
|
7665
7681
|
const $scope17_id = _scope_id();
|
|
7666
|
-
_html(`<p${_attr_class("
|
|
7682
|
+
_html(`<p${_attr_class("_bz")}>No repos yet. Search below to add one.</p>`);
|
|
7667
7683
|
writeScope($scope17_id, {});
|
|
7668
7684
|
return 0;
|
|
7669
7685
|
}
|
|
@@ -7688,14 +7704,14 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
7688
7704
|
_if(() => {
|
|
7689
7705
|
if (running.length) {
|
|
7690
7706
|
const $scope9_id = _scope_id();
|
|
7691
|
-
_html(`<section${_attr_class("
|
|
7707
|
+
_html(`<section${_attr_class("_bo")}><div${_attr_class("_bp")}><h2${_attr_class("_bD")}>Running</h2><span${_attr_class(sectionCount)}>${_escape(running.length)}${_el_resume($scope9_id, "e")}</span></div><ul${_attr_class("_br")}>`);
|
|
7692
7708
|
_for_of(running, (p) => {
|
|
7693
7709
|
const $scope10_id = _scope_id();
|
|
7694
|
-
_html(`<li${_attr_class("
|
|
7710
|
+
_html(`<li${_attr_class("_bt")}><div${_attr_class("_bu")}${_attr("title", p.args)}><span${_attr_class(["_bv", "_x"])}>${_escape(p.cmd)}${_el_resume($scope10_id, "d")}</span>`);
|
|
7695
7711
|
_if(() => {
|
|
7696
7712
|
if (p.ports.length) {
|
|
7697
7713
|
const $scope18_id = _scope_id();
|
|
7698
|
-
_html(`<span${_attr_class("
|
|
7714
|
+
_html(`<span${_attr_class("_bw")}>`);
|
|
7699
7715
|
_for_of(p.ports, (port) => {
|
|
7700
7716
|
const $scope19_id = _scope_id();
|
|
7701
7717
|
_html(`<button${_attr_class(["_s", "_dS"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope19_id, "b")}</button>${_el_resume($scope19_id, "a")}`);
|
|
@@ -7706,7 +7722,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
7706
7722
|
return 0;
|
|
7707
7723
|
}
|
|
7708
7724
|
}, $scope10_id, "e", 1, 1, 1, 0, 1);
|
|
7709
|
-
_html(`</div>${_el_resume($scope10_id, "b")}<button${_attr_class(["
|
|
7725
|
+
_html(`</div>${_el_resume($scope10_id, "b")}<button${_attr_class(["_by", "_2"])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
7710
7726
|
icon_xmark_default({ size: 14 });
|
|
7711
7727
|
_html(`</button>${_el_resume($scope10_id, "f")}</li>`);
|
|
7712
7728
|
_script($scope10_id, "o16");
|
|
@@ -7720,7 +7736,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
7720
7736
|
return 0;
|
|
7721
7737
|
}
|
|
7722
7738
|
}, $scope0_id, "v", 1, 1, 1, 0, 1);
|
|
7723
|
-
_html(`<section${_attr_class(["
|
|
7739
|
+
_html(`<section${_attr_class(["_bo", "_dT"])}><div${_attr_class("_bp")}><h2${_attr_class("_bD")}>Workspace</h2></div><div${_attr_class("_dU")}>`);
|
|
7724
7740
|
_if(() => {
|
|
7725
7741
|
if (ws.status === "active") {
|
|
7726
7742
|
const $scope4_id = _scope_id();
|
|
@@ -7821,19 +7837,19 @@ var term_find_default = _template("A", (input) => {
|
|
|
7821
7837
|
const canStep = hasQuery && open;
|
|
7822
7838
|
const keybar = input.placement === "keybar";
|
|
7823
7839
|
_html(`<div${_attr_class([
|
|
7824
|
-
"
|
|
7825
|
-
keybar ? "
|
|
7826
|
-
!open && "
|
|
7827
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
7840
|
+
"_fF",
|
|
7841
|
+
keybar ? "_fH" : "_fG",
|
|
7842
|
+
!open && "_fJ"
|
|
7843
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_fA", keybar ? "_fI" : "_fC"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
7828
7844
|
if (!open) return;
|
|
7829
7845
|
query = v;
|
|
7830
7846
|
live.query = v;
|
|
7831
7847
|
run(0);
|
|
7832
|
-
}, "A0", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
7848
|
+
}, "A0", $scope0_id))}${_attr_class([findInput, keybar && "_fK"])} 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 && "_fL"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
7833
7849
|
icon_arrow_up_default({ size: 14 });
|
|
7834
|
-
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
7850
|
+
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_fL"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
7835
7851
|
icon_arrow_down_default({ size: 14 });
|
|
7836
|
-
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
7852
|
+
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "_fL"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
7837
7853
|
icon_xmark_default({ size: 14 });
|
|
7838
7854
|
_html(`</button>${_el_resume($scope0_id, "h")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
7839
7855
|
_script($scope0_id, "A4");
|
|
@@ -8314,7 +8330,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
8314
8330
|
let DiffView = null;
|
|
8315
8331
|
const loadDiffView = _resume(() => {
|
|
8316
8332
|
if (DiffView) return;
|
|
8317
|
-
import("./
|
|
8333
|
+
import("./_BjC9119e.js").then((m) => {
|
|
8318
8334
|
DiffView = m.default;
|
|
8319
8335
|
});
|
|
8320
8336
|
}, "F6", $scope0_id);
|
|
@@ -8502,10 +8518,10 @@ var work_view_default = _template("F", (input) => {
|
|
|
8502
8518
|
toggleDiff();
|
|
8503
8519
|
}
|
|
8504
8520
|
}, "F21", $scope0_id);
|
|
8505
|
-
_html(`<div${_attr_class(["
|
|
8506
|
-
["
|
|
8507
|
-
["
|
|
8508
|
-
}])}><div${_attr_class("
|
|
8521
|
+
_html(`<div${_attr_class(["_b7", {
|
|
8522
|
+
["_b5"]: view === "nav",
|
|
8523
|
+
["_b6"]: !input.active
|
|
8524
|
+
}])}><div${_attr_class("_b8")}>`);
|
|
8509
8525
|
_set_serialize_reason({
|
|
8510
8526
|
0: _serialize_guard($scope0_reason, 0),
|
|
8511
8527
|
1: 1,
|
|
@@ -8574,7 +8590,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
8574
8590
|
});
|
|
8575
8591
|
}, "F30", $scope0_id)
|
|
8576
8592
|
});
|
|
8577
|
-
_html(`</div><div${_attr_class("
|
|
8593
|
+
_html(`</div><div${_attr_class("_b9")}>`);
|
|
8578
8594
|
_if(() => {
|
|
8579
8595
|
if (error) {
|
|
8580
8596
|
const $scope8_id = _scope_id();
|
|
@@ -8597,7 +8613,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
8597
8613
|
_if(() => {
|
|
8598
8614
|
if (diffMounted && DiffView) {
|
|
8599
8615
|
const $scope1_id = _scope_id();
|
|
8600
|
-
_html(`<div${_attr_class("
|
|
8616
|
+
_html(`<div${_attr_class("_b_")}${_attr_or("data-live", view === "diff", "")}${_attr("inert", view !== "diff")}>`);
|
|
8601
8617
|
_dynamic_tag($scope1_id, "b", DiffView, {
|
|
8602
8618
|
workspaceId: ws.id,
|
|
8603
8619
|
workspaceBranch: ws.branch,
|
|
@@ -8637,7 +8653,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
8637
8653
|
_if(() => {
|
|
8638
8654
|
if (manageMounted) {
|
|
8639
8655
|
const $scope2_id = _scope_id();
|
|
8640
|
-
_html(`<div${_attr_class("
|
|
8656
|
+
_html(`<div${_attr_class("_b_")}${_attr_or("data-live", view === "manage", "")}${_attr("inert", view !== "manage")}>`);
|
|
8641
8657
|
_set_serialize_reason(_serialize_guard($scope0_reason, 16));
|
|
8642
8658
|
const $childScope2 = _peek_scope_id();
|
|
8643
8659
|
manage_workspace_default({
|
|
@@ -8660,7 +8676,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
8660
8676
|
_if(() => {
|
|
8661
8677
|
if (settingsMounted) {
|
|
8662
8678
|
const $scope3_id = _scope_id();
|
|
8663
|
-
_html(`<div${_attr_class("
|
|
8679
|
+
_html(`<div${_attr_class("_b_")}${_attr_or("data-live", view === "settings", "")}${_attr("inert", view !== "settings")}>`);
|
|
8664
8680
|
_set_serialize_reason({
|
|
8665
8681
|
0: _serialize_guard($scope0_reason, 1),
|
|
8666
8682
|
1: $sg__input_workspace,
|
|
@@ -8701,7 +8717,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
8701
8717
|
_if(() => {
|
|
8702
8718
|
if (newMounted) {
|
|
8703
8719
|
const $scope4_id = _scope_id();
|
|
8704
|
-
_html(`<div${_attr_class("
|
|
8720
|
+
_html(`<div${_attr_class("_b_")}${_attr_or("data-live", view === "new", "")}${_attr("inert", view !== "new")}>`);
|
|
8705
8721
|
_set_serialize_reason({
|
|
8706
8722
|
0: 1,
|
|
8707
8723
|
1: $sg__input_allWorkspaces,
|
|
@@ -8728,13 +8744,13 @@ var work_view_default = _template("F", (input) => {
|
|
|
8728
8744
|
return 0;
|
|
8729
8745
|
}
|
|
8730
8746
|
}, $scope0_id, "i", 1, 1, 1, 0, 1);
|
|
8731
|
-
_html(`<div${_attr_class(["
|
|
8747
|
+
_html(`<div${_attr_class(["_cb", { ["_ca"]: view !== "term" }])}>`);
|
|
8732
8748
|
_if(() => {
|
|
8733
8749
|
if (shownSessions) {
|
|
8734
8750
|
const $scope5_id = _scope_id();
|
|
8735
8751
|
_for_of(input.active ? shownSessions : shownSessions.filter((x) => x.id === curTab), (s) => {
|
|
8736
8752
|
const $scope6_id = _scope_id();
|
|
8737
|
-
_html(`<div${_attr_class("
|
|
8753
|
+
_html(`<div${_attr_class("_cc")}${_attr_or("data-live", s.id === curTab, "")}${_attr("inert", s.id !== curTab)}>`);
|
|
8738
8754
|
_set_serialize_reason({
|
|
8739
8755
|
0: 1,
|
|
8740
8756
|
1: 1,
|
|
@@ -8793,7 +8809,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
8793
8809
|
_if(() => {
|
|
8794
8810
|
if (!shownSessions.length && view === "term") {
|
|
8795
8811
|
const $scope7_id = _scope_id();
|
|
8796
|
-
_html(`<div${_attr_class("
|
|
8812
|
+
_html(`<div${_attr_class("_bA")}><span>No sessions in this workspace.</span><button${_attr_class(["_o", "_p"])}${_attr("disabled", spawning)}>${spawning ? "Starting…" : `Start ${_escape(`${input.preferred || "shell"}`)}`}${_el_resume($scope7_id, "c")}</button>${_el_resume($scope7_id, "b")}</div>`);
|
|
8797
8813
|
_script($scope7_id, "F50");
|
|
8798
8814
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
8799
8815
|
return 0;
|
|
@@ -8803,7 +8819,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
8803
8819
|
return 0;
|
|
8804
8820
|
} else {
|
|
8805
8821
|
const $scope10_id = _scope_id();
|
|
8806
|
-
_html(`<p${_attr_class("
|
|
8822
|
+
_html(`<p${_attr_class("_bA")}>Loading sessions…</p>`);
|
|
8807
8823
|
writeScope($scope10_id, {});
|
|
8808
8824
|
return 1;
|
|
8809
8825
|
}
|
|
@@ -16799,4 +16815,4 @@ server.listen(port, () => {
|
|
|
16799
16815
|
//#endregion
|
|
16800
16816
|
export {};
|
|
16801
16817
|
|
|
16802
|
-
;var __MARKO_MANIFEST__={"
|
|
16818
|
+
;var __MARKO_MANIFEST__={"AA0T2xt":{"block":[2,"stylesheet#/assets/app-page-fA496vCk.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-fA496vCk.css\"",">"],"defer":[2,"/assets/settings-C0PsT8Xt.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-C0PsT8Xt.js\"","></script>",2,"modulepreload#/assets/_BDPhcxem.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BDPhcxem.js\"",">"]},"ZLT8joi":{"block":[2,"stylesheet#/assets/app-page-fA496vCk.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-fA496vCk.css\"",">"],"defer":[2,"/assets/new-C0PsT8Xt.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-C0PsT8Xt.js\"","></script>",2,"modulepreload#/assets/_BDPhcxem.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BDPhcxem.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/app-page-fA496vCk.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-fA496vCk.css\"",">"],"defer":[2,"/assets/w-C0PsT8Xt.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-C0PsT8Xt.js\"","></script>",2,"modulepreload#/assets/_BDPhcxem.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BDPhcxem.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/app-page-fA496vCk.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-fA496vCk.css\"",">"],"defer":[2,"/assets/w._-C0PsT8Xt.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-C0PsT8Xt.js\"","></script>",2,"modulepreload#/assets/_BDPhcxem.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BDPhcxem.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/app-page-fA496vCk.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-fA496vCk.css\"",">"],"defer":[2,"/assets/w._-B71Uf4-5.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-B71Uf4-5.js\"","></script>",2,"modulepreload#/assets/_BDPhcxem.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BDPhcxem.js\"",">"]}};
|