@dylanpiercey/work 0.0.94 → 0.0.95
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/{_tpJju-55.js → _-9SN7lhj.js} +4 -4
- package/dist/{_DILbc8yV.js → _D13gIzTc.js} +69 -69
- package/dist/index.mjs +176 -169
- package/dist/public/assets/{_BQzt8gQO.js → _19yjqtuP.js} +1 -1
- package/dist/public/assets/_19yjqtuP.js.br +0 -0
- package/dist/public/assets/{_9CNGJ9vT.js → _6wZbjEqF.js} +1 -1
- package/dist/public/assets/_6wZbjEqF.js.br +0 -0
- package/dist/public/assets/{_CbLNY8O12.js → _7HSHWkd02.js} +1 -1
- package/dist/public/assets/_7HSHWkd02.js.br +0 -0
- package/dist/public/assets/{_tJnEccOk2.js → _9Cb6PnoF2.js} +1 -1
- package/dist/public/assets/_9Cb6PnoF2.js.br +0 -0
- package/dist/public/assets/{_CJuXw-yU.js → _B0hS9ikc.js} +1 -1
- package/dist/public/assets/_B0hS9ikc.js.br +0 -0
- package/dist/public/assets/{_MuSMLCM3.js → _B1jHOqZH.js} +1 -1
- package/dist/public/assets/_B1jHOqZH.js.br +0 -0
- package/dist/public/assets/{_aUMNXFec.js → _B1tDI_nQ.js} +1 -1
- package/dist/public/assets/_B1tDI_nQ.js.br +0 -0
- package/dist/public/assets/{_4QTn6pgM.js → _B8wWQ620.js} +6 -6
- package/dist/public/assets/_B8wWQ620.js.br +0 -0
- package/dist/public/assets/{_gJJKIoXJ.js → _BAC_-o69.js} +1 -1
- package/dist/public/assets/_BAC_-o69.js.br +0 -0
- package/dist/public/assets/{_D_SSjw-p2.js → _BC2fmz4Y2.js} +1 -1
- package/dist/public/assets/_BC2fmz4Y2.js.br +0 -0
- package/dist/public/assets/{_BeMdtqMm2.js → _BCKtabuZ2.js} +1 -1
- package/dist/public/assets/_BCKtabuZ2.js.br +0 -0
- package/dist/public/assets/{_3-QozS0i.js → _BCw4FOz1.js} +1 -1
- package/dist/public/assets/_BCw4FOz1.js.br +0 -0
- package/dist/public/assets/{_Cn__Rzhw.js → _BFDKvdah.js} +1 -1
- package/dist/public/assets/_BFDKvdah.js.br +0 -0
- package/dist/public/assets/{_DxdpRnU9.js → _BGtYhUy5.js} +1 -1
- package/dist/public/assets/_BGtYhUy5.js.br +0 -0
- package/dist/public/assets/{_CAXDYTcU.js → _BS7qhSY6.js} +1 -1
- package/dist/public/assets/_BS7qhSY6.js.br +0 -0
- package/dist/public/assets/{_6sn0vJvZ.js → _BZ5oh9fs.js} +1 -1
- package/dist/public/assets/_BZ5oh9fs.js.br +0 -0
- package/dist/public/assets/{_B2p-Gk_h2.js → _B_0nqTdg2.js} +1 -1
- package/dist/public/assets/_B_0nqTdg2.js.br +0 -0
- package/dist/public/assets/{_DGJJBFwy.js → _BavnyJ90.js} +1 -1
- package/dist/public/assets/_BavnyJ90.js.br +0 -0
- package/dist/public/assets/{_DdnViDFP.js → _BfXdOIFL.js} +1 -1
- package/dist/public/assets/_BfXdOIFL.js.br +0 -0
- package/dist/public/assets/{_D37AXv7r.js → _BlMjgG5a.js} +1 -1
- package/dist/public/assets/_BlMjgG5a.js.br +0 -0
- package/dist/public/assets/{_C7EUXi77.js → _BpdeumzG.js} +4 -4
- package/dist/public/assets/_BpdeumzG.js.br +0 -0
- package/dist/public/assets/{_Bv7d26Fi2.js → _Bt5xnL2D2.js} +1 -1
- package/dist/public/assets/_Bt5xnL2D2.js.br +0 -0
- package/dist/public/assets/{_FtJI7TqL2.js → _C12MnCJE2.js} +1 -1
- package/dist/public/assets/_C12MnCJE2.js.br +0 -0
- package/dist/public/assets/{_lRXSQmR6.js → _C6R_qpkO.js} +1 -1
- package/dist/public/assets/_C6R_qpkO.js.br +0 -0
- package/dist/public/assets/{_DDwgXS0M.js → _C8Iu43Ry.js} +1 -1
- package/dist/public/assets/_C8Iu43Ry.js.br +0 -0
- package/dist/public/assets/{_reVR5VkG.js → _CAx_6lfv.js} +1 -1
- package/dist/public/assets/_CAx_6lfv.js.br +0 -0
- package/dist/public/assets/{_ChXihsr_2.js → _CBZeUUWn2.js} +1 -1
- package/dist/public/assets/{_DcSYeYey.js → _CN7YZ9Jt.js} +1 -1
- package/dist/public/assets/_CN7YZ9Jt.js.br +0 -0
- package/dist/public/assets/{__OFelAWw.js → _CP5BtWSQ.js} +1 -1
- package/dist/public/assets/_CP5BtWSQ.js.br +0 -0
- package/dist/public/assets/{_CS7v5Ou6.js → _CPP_bPjn.js} +1 -1
- package/dist/public/assets/_CPP_bPjn.js.br +0 -0
- package/dist/public/assets/{_CSMs4NeF.js → _CQsoywcI.js} +1 -1
- package/dist/public/assets/_CQsoywcI.js.br +0 -0
- package/dist/public/assets/{_bRfUNPeG.js → _CeELTPQl.js} +1 -1
- package/dist/public/assets/_CeELTPQl.js.br +0 -0
- package/dist/public/assets/{_BQgBjW_z.js → _Cl1qk0QM.js} +1 -1
- package/dist/public/assets/_Cl1qk0QM.js.br +0 -0
- package/dist/public/assets/{_BojsTanh2.js → _CsPn7vMJ2.js} +1 -1
- package/dist/public/assets/_CsPn7vMJ2.js.br +0 -0
- package/dist/public/assets/{_CnHoenY3.js → _D2inRKMJ.js} +1 -1
- package/dist/public/assets/_D2inRKMJ.js.br +0 -0
- package/dist/public/assets/{_BWPWFQVh.js → _D3DCFNQ9.js} +1 -1
- package/dist/public/assets/_D3DCFNQ9.js.br +0 -0
- package/dist/public/assets/{_-4uLyFkk2.js → _D4Uyoa0g2.js} +1 -1
- package/dist/public/assets/_D4Uyoa0g2.js.br +0 -0
- package/dist/public/assets/{_Do2X8dol.js → _D6aLEWL7.js} +1 -1
- package/dist/public/assets/_D6aLEWL7.js.br +0 -0
- package/dist/public/assets/{_add36kcw.js → _D8yYAlmO.js} +1 -1
- package/dist/public/assets/_D8yYAlmO.js.br +0 -0
- package/dist/public/assets/{_bzyyofyd2.js → _DFmhG3rm2.js} +1 -1
- package/dist/public/assets/_DFmhG3rm2.js.br +0 -0
- package/dist/public/assets/{_C4TNH2ZM.js → _DFoZ_gHS.js} +1 -1
- package/dist/public/assets/_DFoZ_gHS.js.br +0 -0
- package/dist/public/assets/{_DuibtMJh.js → _DGKIFykf.js} +1 -1
- package/dist/public/assets/_DGKIFykf.js.br +0 -0
- package/dist/public/assets/{_By8sbq8t.js → _DHIGTTg6.js} +1 -1
- package/dist/public/assets/_DHIGTTg6.js.br +0 -0
- package/dist/public/assets/{_BB6JnGn8.js → _DIhnt-RM.js} +1 -1
- package/dist/public/assets/_DIhnt-RM.js.br +0 -0
- package/dist/public/assets/{_DfnV6slB.js → _DJWz5IwD.js} +1 -1
- package/dist/public/assets/_DJWz5IwD.js.br +0 -0
- package/dist/public/assets/{_CK8_JQ-J.js → _DK0lys0m.js} +1 -1
- package/dist/public/assets/_DK0lys0m.js.br +0 -0
- package/dist/public/assets/{_CM1DnGXf2.js → _DKFPQ1582.js} +1 -1
- package/dist/public/assets/_DKFPQ1582.js.br +0 -0
- package/dist/public/assets/{_bKDAmi-82.js → _DMqW9uIi2.js} +1 -1
- package/dist/public/assets/_DMqW9uIi2.js.br +0 -0
- package/dist/public/assets/{_BTjvprBB2.js → _DXC_JO9C2.js} +1 -1
- package/dist/public/assets/_DXC_JO9C2.js.br +0 -0
- package/dist/public/assets/{_Bh18hLqm2.js → _DcNus2Vf2.js} +1 -1
- package/dist/public/assets/_DcNus2Vf2.js.br +0 -0
- package/dist/public/assets/{_0ap9drti.js → _DcqgsKkp.js} +1 -1
- package/dist/public/assets/_DcqgsKkp.js.br +0 -0
- package/dist/public/assets/{_Da02h1aJ2.js → _DgfTg0IW2.js} +1 -1
- package/dist/public/assets/_DgfTg0IW2.js.br +0 -0
- package/dist/public/assets/{_BiLvO1DD2.js → _Drn3lXQP2.js} +1 -1
- package/dist/public/assets/{_EoqXooxT2.js → _DxP9fuIM2.js} +1 -1
- package/dist/public/assets/_DxP9fuIM2.js.br +0 -0
- package/dist/public/assets/{_CBDLBvL52.js → _MMZVDI0Q2.js} +1 -1
- package/dist/public/assets/_MMZVDI0Q2.js.br +0 -0
- package/dist/public/assets/{_7EZIn6_b2.js → _QZPTxSDf2.js} +1 -1
- package/dist/public/assets/_QZPTxSDf2.js.br +0 -0
- package/dist/public/assets/{_BdwOi-GZ.js → _Txji4y3b.js} +1 -1
- package/dist/public/assets/_Txji4y3b.js.br +0 -0
- package/dist/public/assets/{_FhaXp6fC2.js → _VXhkFKrd2.js} +1 -1
- package/dist/public/assets/_VXhkFKrd2.js.br +0 -0
- package/dist/public/assets/{_CmDw7YCz.js → _YHDsSm6D.js} +1 -1
- package/dist/public/assets/_YHDsSm6D.js.br +0 -0
- package/dist/public/assets/{_RcUvSExn.js → _YyV-EVam.js} +1 -1
- package/dist/public/assets/_YyV-EVam.js.br +0 -0
- package/dist/public/assets/{_DOTpO7fW.js → __T5qbsZi.js} +1 -1
- package/dist/public/assets/__T5qbsZi.js.br +0 -0
- package/dist/public/assets/{_VHLalE0r.js → _amMU20AI.js} +1 -1
- package/dist/public/assets/_amMU20AI.js.br +0 -0
- package/dist/public/assets/{_Dmct9TiM.js → _bRvxXZbS.js} +1 -1
- package/dist/public/assets/_bRvxXZbS.js.br +0 -0
- package/dist/public/assets/{_DuQe1JMh.js → _dfU2imZ4.js} +1 -1
- package/dist/public/assets/_dfU2imZ4.js.br +0 -0
- package/dist/public/assets/{_DbbH1iIb2.js → _fxHb-KbN2.js} +1 -1
- package/dist/public/assets/_fxHb-KbN2.js.br +0 -0
- package/dist/public/assets/{_ZZxaDa4e.js → _hyQI5FsG.js} +1 -1
- package/dist/public/assets/_hyQI5FsG.js.br +0 -0
- package/dist/public/assets/{_Dz0jY0m42.js → _i50DwB9Z2.js} +1 -1
- package/dist/public/assets/_i50DwB9Z2.js.br +0 -0
- package/dist/public/assets/{_BwV0gWNS.js → _lX7nytmW.js} +1 -1
- package/dist/public/assets/{_CWWMMUQ2.js → _loA_xJ2W.js} +1 -1
- package/dist/public/assets/_loA_xJ2W.js.br +0 -0
- package/dist/public/assets/{_DBqph3js.js → _o-goWiqn.js} +1 -1
- package/dist/public/assets/_o-goWiqn.js.br +0 -0
- package/dist/public/assets/{_CUPEXKrl.js → _vC8X4_FF.js} +1 -1
- package/dist/public/assets/_vC8X4_FF.js.br +0 -0
- package/dist/public/assets/{_xROUdW2l.js → _vGqkGb_u.js} +1 -1
- package/dist/public/assets/_vGqkGb_u.js.br +0 -0
- package/dist/public/assets/{_B1WdcSZg.js → _wbLaii1_.js} +1 -1
- package/dist/public/assets/_wbLaii1_.js.br +0 -0
- package/dist/public/assets/{_D0KXsxOT.js → _x7q187z1.js} +1 -1
- package/dist/public/assets/_x7q187z1.js.br +0 -0
- package/dist/public/assets/{_DTu7x41J.js → _xMSqf4Dz.js} +1 -1
- package/dist/public/assets/_xMSqf4Dz.js.br +0 -0
- package/dist/public/assets/{_CK6Y_nu02.js → _zIcbcxRV2.js} +1 -1
- package/dist/public/assets/_zIcbcxRV2.js.br +0 -0
- package/dist/public/assets/{app-page-Br2mpp1y.css → app-page-BB6oW8H9.css} +1 -1
- package/dist/public/assets/app-page-BB6oW8H9.css.br +0 -0
- package/dist/public/assets/diff-view-DU-XDz7X.css +1 -0
- package/dist/public/assets/diff-view-DU-XDz7X.css.br +0 -0
- package/dist/public/assets/new-BmwwujAD.js +1 -0
- package/dist/public/assets/settings-BmwwujAD.js +1 -0
- package/dist/public/assets/w-BmwwujAD.js +1 -0
- package/dist/public/assets/w._-BmwwujAD.js +1 -0
- package/dist/public/assets/w._-DQmoJHNi.js +1 -0
- package/package.json +1 -1
- package/dist/public/assets/_-4uLyFkk2.js.br +0 -0
- package/dist/public/assets/_0ap9drti.js.br +0 -0
- package/dist/public/assets/_3-QozS0i.js.br +0 -0
- package/dist/public/assets/_4QTn6pgM.js.br +0 -0
- package/dist/public/assets/_6sn0vJvZ.js.br +0 -0
- package/dist/public/assets/_7EZIn6_b2.js.br +0 -0
- package/dist/public/assets/_9CNGJ9vT.js.br +0 -0
- package/dist/public/assets/_B1WdcSZg.js.br +0 -0
- package/dist/public/assets/_B2p-Gk_h2.js.br +0 -0
- package/dist/public/assets/_BB6JnGn8.js.br +0 -0
- package/dist/public/assets/_BQgBjW_z.js.br +0 -0
- package/dist/public/assets/_BQzt8gQO.js.br +0 -0
- package/dist/public/assets/_BTjvprBB2.js.br +0 -0
- package/dist/public/assets/_BWPWFQVh.js.br +0 -0
- package/dist/public/assets/_BdwOi-GZ.js.br +0 -0
- package/dist/public/assets/_BeMdtqMm2.js.br +0 -0
- package/dist/public/assets/_Bh18hLqm2.js.br +0 -0
- package/dist/public/assets/_BojsTanh2.js.br +0 -0
- package/dist/public/assets/_Bv7d26Fi2.js.br +0 -0
- package/dist/public/assets/_By8sbq8t.js.br +0 -0
- package/dist/public/assets/_C4TNH2ZM.js.br +0 -0
- package/dist/public/assets/_C7EUXi77.js.br +0 -0
- package/dist/public/assets/_CAXDYTcU.js.br +0 -0
- package/dist/public/assets/_CBDLBvL52.js.br +0 -0
- package/dist/public/assets/_CJuXw-yU.js.br +0 -0
- package/dist/public/assets/_CK6Y_nu02.js.br +0 -0
- package/dist/public/assets/_CK8_JQ-J.js.br +0 -0
- package/dist/public/assets/_CM1DnGXf2.js.br +0 -0
- package/dist/public/assets/_CS7v5Ou6.js.br +0 -0
- package/dist/public/assets/_CSMs4NeF.js.br +0 -0
- package/dist/public/assets/_CUPEXKrl.js.br +0 -0
- package/dist/public/assets/_CWWMMUQ2.js.br +0 -0
- package/dist/public/assets/_CbLNY8O12.js.br +0 -0
- package/dist/public/assets/_CmDw7YCz.js.br +0 -0
- package/dist/public/assets/_CnHoenY3.js.br +0 -0
- package/dist/public/assets/_Cn__Rzhw.js.br +0 -0
- package/dist/public/assets/_D0KXsxOT.js.br +0 -0
- package/dist/public/assets/_D37AXv7r.js.br +0 -0
- package/dist/public/assets/_DBqph3js.js.br +0 -0
- package/dist/public/assets/_DDwgXS0M.js.br +0 -0
- package/dist/public/assets/_DGJJBFwy.js.br +0 -0
- package/dist/public/assets/_DOTpO7fW.js.br +0 -0
- package/dist/public/assets/_DTu7x41J.js.br +0 -0
- package/dist/public/assets/_D_SSjw-p2.js.br +0 -0
- package/dist/public/assets/_Da02h1aJ2.js.br +0 -0
- package/dist/public/assets/_DbbH1iIb2.js.br +0 -0
- package/dist/public/assets/_DcSYeYey.js.br +0 -0
- package/dist/public/assets/_DdnViDFP.js.br +0 -0
- package/dist/public/assets/_DfnV6slB.js.br +0 -0
- package/dist/public/assets/_Dmct9TiM.js.br +0 -0
- package/dist/public/assets/_Do2X8dol.js.br +0 -0
- package/dist/public/assets/_DuQe1JMh.js.br +0 -0
- package/dist/public/assets/_DuibtMJh.js.br +0 -0
- package/dist/public/assets/_DxdpRnU9.js.br +0 -0
- package/dist/public/assets/_Dz0jY0m42.js.br +0 -0
- package/dist/public/assets/_EoqXooxT2.js.br +0 -0
- package/dist/public/assets/_FhaXp6fC2.js.br +0 -0
- package/dist/public/assets/_FtJI7TqL2.js.br +0 -0
- package/dist/public/assets/_MuSMLCM3.js.br +0 -0
- package/dist/public/assets/_RcUvSExn.js.br +0 -0
- package/dist/public/assets/_VHLalE0r.js.br +0 -0
- package/dist/public/assets/_ZZxaDa4e.js.br +0 -0
- package/dist/public/assets/__OFelAWw.js.br +0 -0
- package/dist/public/assets/_aUMNXFec.js.br +0 -0
- package/dist/public/assets/_add36kcw.js.br +0 -0
- package/dist/public/assets/_bKDAmi-82.js.br +0 -0
- package/dist/public/assets/_bRfUNPeG.js.br +0 -0
- package/dist/public/assets/_bzyyofyd2.js.br +0 -0
- package/dist/public/assets/_gJJKIoXJ.js.br +0 -0
- package/dist/public/assets/_lRXSQmR6.js.br +0 -0
- package/dist/public/assets/_reVR5VkG.js.br +0 -0
- package/dist/public/assets/_tJnEccOk2.js.br +0 -0
- package/dist/public/assets/_xROUdW2l.js.br +0 -0
- package/dist/public/assets/app-page-Br2mpp1y.css.br +0 -0
- package/dist/public/assets/diff-view-l__lAr2d.css +0 -1
- package/dist/public/assets/diff-view-l__lAr2d.css.br +0 -0
- package/dist/public/assets/new-CwwrA15U.js +0 -1
- package/dist/public/assets/settings-CwwrA15U.js +0 -1
- package/dist/public/assets/w-CwwrA15U.js +0 -1
- package/dist/public/assets/w._-CwwrA15U.js +0 -1
- package/dist/public/assets/w._-CyPkgfCF.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 _content_resume, A as setPrimaryHost, At as attrTag, B as $global, C as workspaceTab, Ct as _set_serialize_reason, D as parseRepoUrl, Dt as _trailers, E as icon_base_default, Et as _to_text, F as iconBtnXs, G as _attr_option_value, H as _attr_class, I as inputLg, J as _attr_style, K as _attr_or, L as metaTrunc, M as btnSm, Mt as writeScope, O as repoLabel, Ot as _try, P as iconBtnRow, Q as _content, R as phase, S as theme, St as _serialize_if, T as icon_xmark_default, Tt as _template, V as _attr, W as _attr_input_value, X as _attrs_partial, Y as _attrs, Z as _await, _t as _scope_reason, a as rankRepos, at as _existing_scope, b as setWorkspaceTab, bt as _sep, c as icon_refresh_default, ct as _hoist, d as sectionCount$1, dt as _id, et as _dynamic_tag, ft as _if, g as ignoredSsoOrgs, gt as _scope_id, ht as _resume_branch, it as _escape, j as btnLg, jt as withPageAssets, k as repoWebUrl$1, kt as _var, l as iconBtn$2, lt as _hoist_read_error, mt as _resume, n as findInput, nt as _el_read_error, o as icon_search_default, ot as _flush_head, pt as _peek_scope_id, q as _attr_select_value, r as icon_sidebar_default, rt as _el_resume, s as icon_back_default, st as _for_of, t as findIconBtn, u as row, ut as _html, vt as _scope_with_id, w as toast_default, wt as _subscribe, x as sideNavOpen, xt as _serialize_guard, y as setTheme, yt as _script, z as tone } from "./
|
|
3
|
+
import { $ as _content_resume, A as setPrimaryHost, At as attrTag, B as $global, C as workspaceTab, Ct as _set_serialize_reason, D as parseRepoUrl, Dt as _trailers, E as icon_base_default, Et as _to_text, F as iconBtnXs, G as _attr_option_value, H as _attr_class, I as inputLg, J as _attr_style, K as _attr_or, L as metaTrunc, M as btnSm, Mt as writeScope, O as repoLabel, Ot as _try, P as iconBtnRow, Q as _content, R as phase, S as theme, St as _serialize_if, T as icon_xmark_default, Tt as _template, V as _attr, W as _attr_input_value, X as _attrs_partial, Y as _attrs, Z as _await, _t as _scope_reason, a as rankRepos, at as _existing_scope, b as setWorkspaceTab, bt as _sep, c as icon_refresh_default, ct as _hoist, d as sectionCount$1, dt as _id, et as _dynamic_tag, ft as _if, g as ignoredSsoOrgs, gt as _scope_id, ht as _resume_branch, it as _escape, j as btnLg, jt as withPageAssets, k as repoWebUrl$1, kt as _var, l as iconBtn$2, lt as _hoist_read_error, mt as _resume, n as findInput, nt as _el_read_error, o as icon_search_default, ot as _flush_head, pt as _peek_scope_id, q as _attr_select_value, r as icon_sidebar_default, rt as _el_resume, s as icon_back_default, st as _for_of, t as findIconBtn, u as row, ut as _html, vt as _scope_with_id, w as toast_default, wt as _subscribe, x as sideNavOpen, xt as _serialize_guard, y as setTheme, yt as _script, z as tone } from "./_-9SN7lhj.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
import path from "node:path";
|
|
@@ -3694,26 +3694,26 @@ function applyInstance(inst) {
|
|
|
3694
3694
|
}
|
|
3695
3695
|
//#endregion
|
|
3696
3696
|
//#region src/tags/settings-page.css.ts
|
|
3697
|
-
var content$2 = "_ca
|
|
3698
|
-
var agentGrid = "_ce
|
|
3699
|
-
var toolGrid = "_co
|
|
3697
|
+
var content$2 = "_ca _bB _bC";
|
|
3698
|
+
var agentGrid = "_ce _bm";
|
|
3699
|
+
var toolGrid = "_co _bm";
|
|
3700
3700
|
//#endregion
|
|
3701
3701
|
//#region src/tags/page-head.marko
|
|
3702
3702
|
var page_head_default = _template("q", (input) => {
|
|
3703
3703
|
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);
|
|
3704
3704
|
const $scope0_id = _scope_id();
|
|
3705
|
-
_html(`<header${_attr_class("
|
|
3705
|
+
_html(`<header${_attr_class("_bD")}>`);
|
|
3706
3706
|
_if(() => {
|
|
3707
3707
|
if (input.backHref) {
|
|
3708
3708
|
const $scope1_id = _scope_id();
|
|
3709
|
-
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "
|
|
3709
|
+
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_cR"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
3710
3710
|
icon_back_default({ size: 16 });
|
|
3711
3711
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
3712
3712
|
_serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
|
|
3713
3713
|
return 0;
|
|
3714
3714
|
} else if (input.onBack) {
|
|
3715
3715
|
const $scope2_id = _scope_id();
|
|
3716
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
3716
|
+
_html(`<button${_attr_class([iconBtnRow, "_cR"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
3717
3717
|
icon_back_default({ size: 16 });
|
|
3718
3718
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
3719
3719
|
_script($scope2_id, "q0");
|
|
@@ -3721,11 +3721,11 @@ var page_head_default = _template("q", (input) => {
|
|
|
3721
3721
|
return 1;
|
|
3722
3722
|
}
|
|
3723
3723
|
}, $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);
|
|
3724
|
-
_html(`<div${_attr_class("
|
|
3724
|
+
_html(`<div${_attr_class("_bF")}><h1${_attr("id", input.titleId)}${_attr_class("_bE")}>${_escape(input.title)}${_el_resume($scope0_id, "e", _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
|
|
3725
3725
|
_if(() => {
|
|
3726
3726
|
if (input.meta) {
|
|
3727
3727
|
const $scope3_id = _scope_id();
|
|
3728
|
-
_html(`<p${_attr_class("
|
|
3728
|
+
_html(`<p${_attr_class("_bG")}>`);
|
|
3729
3729
|
_dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
3730
3730
|
_html("</p>");
|
|
3731
3731
|
$si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -3736,7 +3736,7 @@ var page_head_default = _template("q", (input) => {
|
|
|
3736
3736
|
_if(() => {
|
|
3737
3737
|
if (input.actions) {
|
|
3738
3738
|
const $scope4_id = _scope_id();
|
|
3739
|
-
_html(`<div${_attr_class("
|
|
3739
|
+
_html(`<div${_attr_class("_bH")}>`);
|
|
3740
3740
|
_dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
3741
3741
|
_html("</div>");
|
|
3742
3742
|
$si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -3804,7 +3804,7 @@ var icon_agent_default = _template("F", (input) => {
|
|
|
3804
3804
|
n: $badge__closures
|
|
3805
3805
|
});
|
|
3806
3806
|
});
|
|
3807
|
-
var usageNote = "
|
|
3807
|
+
var usageNote = "_e6 _S";
|
|
3808
3808
|
//#endregion
|
|
3809
3809
|
//#region src/tags/usage-meters.marko
|
|
3810
3810
|
function duration(ms) {
|
|
@@ -3828,11 +3828,11 @@ var usage_meters_default = _template("C", (input) => {
|
|
|
3828
3828
|
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);
|
|
3829
3829
|
const $scope0_id = _scope_id();
|
|
3830
3830
|
const agent = input.agent;
|
|
3831
|
-
_html(`<div${_attr_class(["
|
|
3831
|
+
_html(`<div${_attr_class(["_e0", { ["_e1"]: input.hideName }])}><div${_attr_class("_e2")}>`);
|
|
3832
3832
|
_if(() => {
|
|
3833
3833
|
if (!input.hideName) {
|
|
3834
3834
|
const $scope1_id = _scope_id();
|
|
3835
|
-
_html(`<strong${_attr_class("
|
|
3835
|
+
_html(`<strong${_attr_class("_fk")}>${_escape(agent.agent)}${_el_resume($scope1_id, "b", $sg__input_agent)}</strong>`);
|
|
3836
3836
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
3837
3837
|
return 0;
|
|
3838
3838
|
}
|
|
@@ -3840,7 +3840,7 @@ var usage_meters_default = _template("C", (input) => {
|
|
|
3840
3840
|
_if(() => {
|
|
3841
3841
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
3842
3842
|
const $scope2_id = _scope_id();
|
|
3843
|
-
_html(`<span${_attr_class("
|
|
3843
|
+
_html(`<span${_attr_class("_e3")}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope2_id, "b", $sg__input_agent)}</span>`);
|
|
3844
3844
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
3845
3845
|
return 0;
|
|
3846
3846
|
}
|
|
@@ -3848,19 +3848,19 @@ var usage_meters_default = _template("C", (input) => {
|
|
|
3848
3848
|
_if(() => {
|
|
3849
3849
|
if (agent.stale_seconds != null) {
|
|
3850
3850
|
const $scope3_id = _scope_id();
|
|
3851
|
-
_html(`<span${_attr_class("
|
|
3851
|
+
_html(`<span${_attr_class("_e4")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>⚠ ${_sep($sg__input_agent)}${_escape(duration(agent.stale_seconds * 1e3))}${_el_resume($scope3_id, "b", $sg__input_agent)} old</span>${_el_resume($scope3_id, "a", $sg__input_agent)}`);
|
|
3852
3852
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
3853
3853
|
return 0;
|
|
3854
3854
|
}
|
|
3855
3855
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
3856
|
-
_html(`</div><div${_attr_class(["
|
|
3856
|
+
_html(`</div><div${_attr_class(["_e5", { ["_fl"]: agent.stale_seconds != null }])}>`);
|
|
3857
3857
|
_for_of(agent.windows || [], (win) => {
|
|
3858
3858
|
const $scope4_id = _scope_id();
|
|
3859
3859
|
const pct = pctText$1(win.used_percent);
|
|
3860
3860
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
3861
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
3862
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
3863
|
-
_html(`<div${_attr_class("
|
|
3861
|
+
const fillClass = win.used_percent >= 90 ? "_fd" : win.used_percent >= 70 ? "_fc" : win.used_percent >= 40 ? "_fb" : "_fa";
|
|
3862
|
+
const pctClass = win.used_percent >= 90 ? "_fi" : win.used_percent >= 70 ? "_fh" : win.used_percent >= 40 ? "_fg" : "_ff";
|
|
3863
|
+
_html(`<div${_attr_class("_e7")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_e8")}>${_escape(win.window)}${_el_resume($scope4_id, "c", $sg__input_agent)}</span><span${_attr_class("_e9")}><span${_attr_class(["_e_", 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(["_fe", pctClass])}>${_escape(pct)}${_el_resume($scope4_id, "g", $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_fj")}>${label ? `↻ ${_escape(`${_to_text(label)}`)}` : ""}${_el_resume($scope4_id, "i", $sg__input_agent)}</span></div>${_el_resume($scope4_id, "a", $sg__input_agent)}`);
|
|
3864
3864
|
$si__input_agent && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
3865
3865
|
}, "window", $scope0_id, "g", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
3866
3866
|
_if(() => {
|
|
@@ -3926,14 +3926,14 @@ var sso_auth_default = _template("y", (input) => {
|
|
|
3926
3926
|
localCode = null;
|
|
3927
3927
|
}
|
|
3928
3928
|
}, "y0", $scope0_id);
|
|
3929
|
-
_html(`<div${_attr_class("
|
|
3929
|
+
_html(`<div${_attr_class("_eO")}>`);
|
|
3930
3930
|
_if(() => {
|
|
3931
3931
|
if (input.items.length) {
|
|
3932
3932
|
const $scope1_id = _scope_id();
|
|
3933
|
-
_html(`<p${_attr_class("
|
|
3933
|
+
_html(`<p${_attr_class("_eZ")}>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("_eP")}>`);
|
|
3934
3934
|
_for_of(input.items, (s) => {
|
|
3935
3935
|
const $scope2_id = _scope_id();
|
|
3936
|
-
_html(`<li${_attr_class("
|
|
3936
|
+
_html(`<li${_attr_class("_eQ")}>${_escape(s.org)}${_el_resume($scope2_id, "b", $sg__input_items)}<button type=button${_attr_class("_eR")}${_attr("title", `Skip ${s.org}`)}${_attr("aria-label", `Skip ${s.org}`)}${_attr("disabled", busy)}>`);
|
|
3937
3937
|
icon_xmark_default({ size: 11 });
|
|
3938
3938
|
_html(`</button>${_el_resume($scope2_id, "c")}</li>`);
|
|
3939
3939
|
_script($scope2_id, "y1");
|
|
@@ -3942,17 +3942,17 @@ var sso_auth_default = _template("y", (input) => {
|
|
|
3942
3942
|
_: _scope_with_id($scope1_id)
|
|
3943
3943
|
}));
|
|
3944
3944
|
}, "org", $scope1_id, "c", $sg__input_items, $sg__input_items, $sg__input_items, "</ul>", 1);
|
|
3945
|
-
_html(`<div${_attr_class("
|
|
3945
|
+
_html(`<div${_attr_class("_eS")}>`);
|
|
3946
3946
|
_if(() => {
|
|
3947
3947
|
if (busy && authCode$2) {
|
|
3948
3948
|
const $scope5_id = _scope_id();
|
|
3949
|
-
_html(`<span${_attr_class("
|
|
3949
|
+
_html(`<span${_attr_class("_eT")}><span${_attr_class("_F")}></span> Enter code <strong${_attr_class("_eU")}>${_escape(authCode$2)}${_el_resume($scope5_id, "d")}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_eV")}>${_escape(host)}${_el_resume($scope5_id, "f", _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope5_id, "e")}</span>`);
|
|
3950
3950
|
_script($scope5_id, "y2");
|
|
3951
3951
|
_subscribe($authCode__closures, _subscribe($si__input_items_0_host && $host__closures, writeScope($scope5_id, {})));
|
|
3952
3952
|
return 0;
|
|
3953
3953
|
} else if (busy) {
|
|
3954
3954
|
const $scope8_id = _scope_id();
|
|
3955
|
-
_html(`<span${_attr_class("
|
|
3955
|
+
_html(`<span${_attr_class("_eT")}><span${_attr_class("_F")}></span>Starting GitHub re-authorization…</span>`);
|
|
3956
3956
|
writeScope($scope8_id, {});
|
|
3957
3957
|
return 1;
|
|
3958
3958
|
} else {
|
|
@@ -3966,7 +3966,7 @@ var sso_auth_default = _template("y", (input) => {
|
|
|
3966
3966
|
_if(() => {
|
|
3967
3967
|
if (localError) {
|
|
3968
3968
|
const $scope6_id = _scope_id();
|
|
3969
|
-
_html(`<p${_attr_class("
|
|
3969
|
+
_html(`<p${_attr_class("_eZ")}>${_escape(localError)}${_el_resume($scope6_id, "b")}</p>`);
|
|
3970
3970
|
_subscribe($localError__closures, writeScope($scope6_id, {}));
|
|
3971
3971
|
return 0;
|
|
3972
3972
|
}
|
|
@@ -3978,10 +3978,10 @@ var sso_auth_default = _template("y", (input) => {
|
|
|
3978
3978
|
_if(() => {
|
|
3979
3979
|
if (skipped$1.length) {
|
|
3980
3980
|
const $scope3_id = _scope_id();
|
|
3981
|
-
_html(`<p${_attr_class("
|
|
3981
|
+
_html(`<p${_attr_class("_eW")}>Skipped SSO for `);
|
|
3982
3982
|
_for_of(skipped$1, (s) => {
|
|
3983
3983
|
const $scope4_id = _scope_id();
|
|
3984
|
-
_html(`<span${_attr_class("
|
|
3984
|
+
_html(`<span${_attr_class("_eX")}>${_escape(s.org)}${_el_resume($scope4_id, "b", $sg__input_skipped)}<button type=button${_attr_class("_eY")}${_attr("title", `Show ${s.org} again`)}>(undo)</button>${_el_resume($scope4_id, "c")}</span>`);
|
|
3985
3985
|
_script($scope4_id, "y4");
|
|
3986
3986
|
writeScope($scope4_id, {
|
|
3987
3987
|
f: s?.org,
|
|
@@ -4056,7 +4056,7 @@ var modal_view_default = _template("o", (input) => {
|
|
|
4056
4056
|
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;
|
|
4057
4057
|
const dismissable = input.dismissable !== false;
|
|
4058
4058
|
let open = input.open;
|
|
4059
|
-
_html(`<dialog${_attr_class(["
|
|
4059
|
+
_html(`<dialog${_attr_class(["_hi", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
4060
4060
|
...htmlInput,
|
|
4061
4061
|
open: null
|
|
4062
4062
|
}, {
|
|
@@ -4066,20 +4066,20 @@ var modal_view_default = _template("o", (input) => {
|
|
|
4066
4066
|
closedby: 1,
|
|
4067
4067
|
"on-cancel": 1,
|
|
4068
4068
|
"on-close": 1
|
|
4069
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
4069
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_hj")}>`);
|
|
4070
4070
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
4071
4071
|
_html("</div>");
|
|
4072
4072
|
_if(() => {
|
|
4073
4073
|
if (footer) {
|
|
4074
4074
|
const $scope1_id = _scope_id();
|
|
4075
|
-
_html(`<form method=dialog${_attr_class("
|
|
4075
|
+
_html(`<form method=dialog${_attr_class("_hk")}>`);
|
|
4076
4076
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
4077
4077
|
_html("</form>");
|
|
4078
4078
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
4079
4079
|
return 0;
|
|
4080
4080
|
} else if (input.openChange) {
|
|
4081
4081
|
const $scope2_id = _scope_id();
|
|
4082
|
-
_html(`<form method=dialog${_attr_class("
|
|
4082
|
+
_html(`<form method=dialog${_attr_class("_hk")}>`);
|
|
4083
4083
|
dialog_close_default({
|
|
4084
4084
|
class: ["_o", "_p"],
|
|
4085
4085
|
content: _content("o0", () => {
|
|
@@ -4138,7 +4138,7 @@ var prompt_dialog_default = _template("r", (input) => {
|
|
|
4138
4138
|
const $childScope = _peek_scope_id();
|
|
4139
4139
|
modal_view_default({
|
|
4140
4140
|
label: input.label,
|
|
4141
|
-
class: "
|
|
4141
|
+
class: "_eM",
|
|
4142
4142
|
open: input.open,
|
|
4143
4143
|
openChange: input.openChange,
|
|
4144
4144
|
"aria-labelledby": titleId,
|
|
@@ -4161,7 +4161,7 @@ var prompt_dialog_default = _template("r", (input) => {
|
|
|
4161
4161
|
content: _content("r6", () => {
|
|
4162
4162
|
_scope_reason();
|
|
4163
4163
|
const $scope2_id = _scope_id();
|
|
4164
|
-
_html(`<h2${_attr_class("
|
|
4164
|
+
_html(`<h2${_attr_class("_eN")}${_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) => {
|
|
4165
4165
|
value = _new_value;
|
|
4166
4166
|
}, "r0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
4167
4167
|
_script($scope2_id, "r4");
|
|
@@ -4471,7 +4471,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4471
4471
|
const appearanceId = _id();
|
|
4472
4472
|
const githubId = _id();
|
|
4473
4473
|
const machineId = _id();
|
|
4474
|
-
_html(`<div${_attr_class("
|
|
4474
|
+
_html(`<div${_attr_class("_bz")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bA")}><div${_attr_class(content$2)}>`);
|
|
4475
4475
|
_set_serialize_reason({
|
|
4476
4476
|
0: _serialize_guard($scope0_reason, 4),
|
|
4477
4477
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -4578,7 +4578,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4578
4578
|
return 0;
|
|
4579
4579
|
}
|
|
4580
4580
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
4581
|
-
_html(`<section${_attr_class("
|
|
4581
|
+
_html(`<section${_attr_class("_bj")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bk")}><h2${_attr("id", agentsId)}${_attr_class("_by")}>Agents</h2><div${_attr_class("_y")}></div><label${_attr_class("_cg")}><span${_attr_class("_S")}>Default</span><span${_attr_class("_m")}>`);
|
|
4582
4582
|
_attr_select_value($scope0_id, "n", input.preferred, _resume(function(v) {
|
|
4583
4583
|
setPreferred(v);
|
|
4584
4584
|
}, "u1", $scope0_id), () => {
|
|
@@ -4603,14 +4603,14 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4603
4603
|
const rows = lone ? [] : a.instances;
|
|
4604
4604
|
const loneAccounts = lone && lone.enabled ? accountsFor(lone.id) : [];
|
|
4605
4605
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
4606
|
-
_html(`<li${_attr_class(["
|
|
4606
|
+
_html(`<li${_attr_class(["_bo", "_cf"])}><div${_attr_class(["_ci", { ["_cl"]: lone && !lone.enabled }])}>`);
|
|
4607
4607
|
_set_serialize_reason(12);
|
|
4608
4608
|
const $childScope4 = _peek_scope_id();
|
|
4609
4609
|
icon_agent_default({
|
|
4610
4610
|
agent: a.id,
|
|
4611
4611
|
size: 18
|
|
4612
4612
|
});
|
|
4613
|
-
_html(`<div${_attr_class("
|
|
4613
|
+
_html(`<div${_attr_class("_bp")}><span${_attr_class("_br")}><span${_attr_class("_bq")}>${_escape(a.label)}${_el_resume($scope1_id, "g")}</span>`);
|
|
4614
4614
|
_if(() => {
|
|
4615
4615
|
if (lone && input.preferred === lone.id) {
|
|
4616
4616
|
const $scope55_id = _scope_id();
|
|
@@ -4628,7 +4628,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4628
4628
|
return 0;
|
|
4629
4629
|
} else if (!a.installed) {
|
|
4630
4630
|
const $scope56_id = _scope_id();
|
|
4631
|
-
_html(`<span${_attr_class("
|
|
4631
|
+
_html(`<span${_attr_class("_bs")}>Not installed</span>`);
|
|
4632
4632
|
writeScope($scope56_id, {});
|
|
4633
4633
|
return 1;
|
|
4634
4634
|
}
|
|
@@ -4746,7 +4746,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4746
4746
|
}, "id", $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
4747
4747
|
_for_of(otherUsage, (u) => {
|
|
4748
4748
|
const $scope61_id = _scope_id();
|
|
4749
|
-
_html(`<li${_attr_class(["
|
|
4749
|
+
_html(`<li${_attr_class(["_bo", "_cf"])}>`);
|
|
4750
4750
|
_set_serialize_reason(6);
|
|
4751
4751
|
const $childScope9 = _peek_scope_id();
|
|
4752
4752
|
usage_meters_default({ agent: u });
|
|
@@ -4757,17 +4757,17 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4757
4757
|
_if(() => {
|
|
4758
4758
|
if (!usage && families.length) {
|
|
4759
4759
|
const $scope62_id = _scope_id();
|
|
4760
|
-
_html(`<p${_attr_class("
|
|
4760
|
+
_html(`<p${_attr_class("_bu")}><span${_attr_class("_F")}></span> Loading usage…</p>`);
|
|
4761
4761
|
writeScope($scope62_id, {});
|
|
4762
4762
|
return 0;
|
|
4763
4763
|
} else if (usage?.error) {
|
|
4764
4764
|
const $scope7_id = _scope_id();
|
|
4765
|
-
_html(`<p${_attr_class("
|
|
4765
|
+
_html(`<p${_attr_class("_bu")}>${_escape(usage.error)}${_el_resume($scope7_id, "b")}</p>`);
|
|
4766
4766
|
writeScope($scope7_id, {});
|
|
4767
4767
|
return 1;
|
|
4768
4768
|
}
|
|
4769
4769
|
}, $scope0_id, "t", 1, 1, 1, 0, 1);
|
|
4770
|
-
_html(`</section><section${_attr_class("
|
|
4770
|
+
_html(`</section><section${_attr_class("_bj")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_bk")}><h2${_attr("id", githubId)}${_attr_class("_by")}>GitHub</h2></div><ul${_attr_class("_bm")}>`);
|
|
4771
4771
|
_for_of(setup?.github || [], (h) => {
|
|
4772
4772
|
const $scope12_id = _scope_id();
|
|
4773
4773
|
const $for_content4__h_host__closures = /* @__PURE__ */ new Set();
|
|
@@ -4781,7 +4781,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4781
4781
|
const skippedSso = (() => {
|
|
4782
4782
|
return (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
4783
4783
|
})();
|
|
4784
|
-
_html(`<li${_attr_class(["
|
|
4784
|
+
_html(`<li${_attr_class(["_bo", "_cx"])}><div${_attr_class("_cy")}><div${_attr_class("_bp")}><span${_attr_class("_br")}><span${_attr_class(["_bq", "_x"])}>${_escape(h.host)}${_el_resume($scope12_id, "f")}</span>`);
|
|
4785
4785
|
_if(() => {
|
|
4786
4786
|
if (h.isEnterprise) {
|
|
4787
4787
|
const $scope65_id = _scope_id();
|
|
@@ -4804,12 +4804,12 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4804
4804
|
return 1;
|
|
4805
4805
|
} else if (h.authed) {
|
|
4806
4806
|
const $scope63_id = _scope_id();
|
|
4807
|
-
_html(`<span${_attr_class("
|
|
4807
|
+
_html(`<span${_attr_class("_bs")}>Signed in<!>${h.user ? ` as ${_escape(`${_to_text(h.user)}`)}` : ""}${_el_resume($scope63_id, "b")}</span>`);
|
|
4808
4808
|
writeScope($scope63_id, {});
|
|
4809
4809
|
return 2;
|
|
4810
4810
|
} else {
|
|
4811
4811
|
const $scope64_id = _scope_id();
|
|
4812
|
-
_html(`<span${_attr_class("
|
|
4812
|
+
_html(`<span${_attr_class("_bs")}>${_escape(h.error || "Not signed in")}${_el_resume($scope64_id, "b")}</span>`);
|
|
4813
4813
|
writeScope($scope64_id, {});
|
|
4814
4814
|
return 3;
|
|
4815
4815
|
}
|
|
@@ -4840,7 +4840,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4840
4840
|
if (h.isEnterprise) {
|
|
4841
4841
|
const $scope27_id = _scope_id();
|
|
4842
4842
|
_html(`<button${_attr_class([
|
|
4843
|
-
"
|
|
4843
|
+
"_bt",
|
|
4844
4844
|
"_2",
|
|
4845
4845
|
"_3",
|
|
4846
4846
|
{ ["_q"]: confirmingRemove === h.host }
|
|
@@ -4916,7 +4916,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4916
4916
|
_if(() => {
|
|
4917
4917
|
if (setup && !setup.github.length) {
|
|
4918
4918
|
const $scope68_id = _scope_id();
|
|
4919
|
-
_html(`<p${_attr_class("
|
|
4919
|
+
_html(`<p${_attr_class("_bu")}>Install the GitHub CLI below to sign in.</p>`);
|
|
4920
4920
|
writeScope($scope68_id, {});
|
|
4921
4921
|
return 0;
|
|
4922
4922
|
}
|
|
@@ -4937,7 +4937,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4937
4937
|
return 0;
|
|
4938
4938
|
}
|
|
4939
4939
|
}, $scope0_id, "z", 1, 1, 1, 0, 1);
|
|
4940
|
-
_html(`</section><section${_attr_class("
|
|
4940
|
+
_html(`</section><section${_attr_class("_bj")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_bk")}><h2${_attr("id", machineId)}${_attr_class("_by")}>Machine</h2>`);
|
|
4941
4941
|
_if(() => {
|
|
4942
4942
|
if (missingCount) {
|
|
4943
4943
|
const $scope49_id = _scope_id();
|
|
@@ -4977,7 +4977,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4977
4977
|
_if(() => {
|
|
4978
4978
|
if (setup && !setup.mise.installed) {
|
|
4979
4979
|
const $scope17_id = _scope_id();
|
|
4980
|
-
_html(`<p${_attr_class("
|
|
4980
|
+
_html(`<p${_attr_class("_bu")}>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>`);
|
|
4981
4981
|
_script($scope17_id, "u45");
|
|
4982
4982
|
writeScope($scope17_id, {});
|
|
4983
4983
|
return 0;
|
|
@@ -5173,7 +5173,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5173
5173
|
_html(`<ul${_attr_class([toolGrid, "_ct"])}>`);
|
|
5174
5174
|
_for_of(hits, (h) => {
|
|
5175
5175
|
const $scope22_id = _scope_id();
|
|
5176
|
-
_html(`<li${_attr_class(row)}><div${_attr_class("
|
|
5176
|
+
_html(`<li${_attr_class(row)}><div${_attr_class("_bp")}><span${_attr_class(["_cq", "_x"])}>${_escape(h.name)}${_el_resume($scope22_id, "d")}</span>`);
|
|
5177
5177
|
_if(() => {
|
|
5178
5178
|
if (active.has(h.name)) {
|
|
5179
5179
|
const $scope23_id = _scope_id();
|
|
@@ -5182,7 +5182,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5182
5182
|
return 0;
|
|
5183
5183
|
} else if (h.description) {
|
|
5184
5184
|
const $scope79_id = _scope_id();
|
|
5185
|
-
_html(`<span${_attr_class("
|
|
5185
|
+
_html(`<span${_attr_class("_bs")}${_attr("title", h.description)}>${_escape(h.description)}${_el_resume($scope79_id, "b")}</span>${_el_resume($scope79_id, "a")}`);
|
|
5186
5186
|
writeScope($scope79_id, {});
|
|
5187
5187
|
return 1;
|
|
5188
5188
|
}
|
|
@@ -5221,7 +5221,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5221
5221
|
return 0;
|
|
5222
5222
|
} else if (hits && !searching) {
|
|
5223
5223
|
const $scope36_id = _scope_id();
|
|
5224
|
-
_html(`<p${_attr_class("
|
|
5224
|
+
_html(`<p${_attr_class("_bu")}>No tools match "<!>${_escape(query)}${_el_resume($scope36_id, "b")}".</p>`);
|
|
5225
5225
|
_subscribe($query__closures, writeScope($scope36_id, {}));
|
|
5226
5226
|
return 1;
|
|
5227
5227
|
}
|
|
@@ -5232,7 +5232,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5232
5232
|
return 0;
|
|
5233
5233
|
}
|
|
5234
5234
|
}, $scope0_id, "ac", 1, 1, 1, 0, 1);
|
|
5235
|
-
_html(`</section><section${_attr_class("
|
|
5235
|
+
_html(`</section><section${_attr_class("_bj")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_bk")}><h2${_attr("id", appearanceId)}${_attr_class("_by")}>Appearance</h2></div><div${_attr_class(["_bo", "_cz"])}><label${_attr_class("_cA")}><span${_attr_class("_cB")}>Name</span><input${_attr_input_value($scope0_id, "aj", input.instance.name, _resume(function(v) {
|
|
5236
5236
|
setInstance({ name: v });
|
|
5237
5237
|
}, "u3", $scope0_id))}${_attr_class(["_U", "_cC"])} 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", "_cD"])}>Tab title, home-screen icon, and notifications.</span></label><div${_attr_class("_cA")} role=radiogroup aria-label="Color theme"><span${_attr_class("_cB")}>Theme</span><span${_attr_class("_cE")}>`);
|
|
5238
5238
|
_for_of([
|
|
@@ -5392,13 +5392,13 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5392
5392
|
});
|
|
5393
5393
|
//#endregion
|
|
5394
5394
|
//#region src/tags/new-workspace.css.ts
|
|
5395
|
-
var content$1 = "_bI
|
|
5396
|
-
var section$1 = "_bM
|
|
5395
|
+
var content$1 = "_bI _bB";
|
|
5396
|
+
var section$1 = "_bM _bj";
|
|
5397
5397
|
var curBase = "_bR _T _S";
|
|
5398
|
-
var archived = "_bW
|
|
5398
|
+
var archived = "_bW _bj";
|
|
5399
5399
|
var archivedHint = "_bX _S";
|
|
5400
|
-
var archivedCard = "_bY
|
|
5401
|
-
var resultBranch = "
|
|
5400
|
+
var archivedCard = "_bY _bo";
|
|
5401
|
+
var resultBranch = "_cZ _Z _j";
|
|
5402
5402
|
//#endregion
|
|
5403
5403
|
//#region src/tags/branch-pick.marko
|
|
5404
5404
|
var branch_pick_default = _template("d", (input) => {
|
|
@@ -5409,11 +5409,11 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
5409
5409
|
let branches = null;
|
|
5410
5410
|
let defaultBranch = null;
|
|
5411
5411
|
let branchFilter = "";
|
|
5412
|
-
_html(`<div${_attr_class("
|
|
5412
|
+
_html(`<div${_attr_class("_c1")}>`);
|
|
5413
5413
|
_if(() => {
|
|
5414
5414
|
{
|
|
5415
5415
|
const $scope4_id = _scope_id();
|
|
5416
|
-
_html(`<p${_attr_class("
|
|
5416
|
+
_html(`<p${_attr_class("_bu")}><span${_attr_class("_F")}></span> Loading branches…</p>`);
|
|
5417
5417
|
writeScope($scope4_id, {});
|
|
5418
5418
|
return 0;
|
|
5419
5419
|
}
|
|
@@ -5489,11 +5489,11 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
5489
5489
|
const ignored = new Set(prefs$1?.ignoredSsoOrgs?.() ?? []);
|
|
5490
5490
|
return (catalog?.sso || []).filter((s) => !ignored.has(s.org));
|
|
5491
5491
|
})();
|
|
5492
|
-
_html(`<div${_attr_class("
|
|
5492
|
+
_html(`<div${_attr_class("_cS")}>`);
|
|
5493
5493
|
_if(() => {
|
|
5494
5494
|
if (ssoPending.length) {
|
|
5495
5495
|
const $scope7_id = _scope_id();
|
|
5496
|
-
_html(`<div${_attr_class("
|
|
5496
|
+
_html(`<div${_attr_class("_cT")}>`);
|
|
5497
5497
|
_set_serialize_reason(154);
|
|
5498
5498
|
const $childScope = _peek_scope_id();
|
|
5499
5499
|
sso_auth_default({
|
|
@@ -5523,22 +5523,22 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
5523
5523
|
_if(() => {
|
|
5524
5524
|
if (pasted) {
|
|
5525
5525
|
const $scope1_id = _scope_id();
|
|
5526
|
-
_html(`<ul${_attr_class("
|
|
5526
|
+
_html(`<ul${_attr_class("_cU")}><li><div${_attr_class(["_cW", "_cV"])}><button${_attr_class("_cX")}${pasteWillFork ? _attr("title", `Fork ${pasted} to your account and add the fork`) : _attr("title", `Add ${pasted} as-is (pushes go to that repo)`)}>`);
|
|
5527
5527
|
icon_plus_default({
|
|
5528
5528
|
size: 12,
|
|
5529
|
-
class: "
|
|
5529
|
+
class: "_c3"
|
|
5530
5530
|
});
|
|
5531
|
-
_html(`<span${_attr_class("
|
|
5531
|
+
_html(`<span${_attr_class("_c4")}>${_escape(repoLabel(pasted))}${_el_resume($scope1_id, "f")}</span></button>${_el_resume($scope1_id, "c")}`);
|
|
5532
5532
|
_if(() => {
|
|
5533
5533
|
if (pastedForkable) {
|
|
5534
5534
|
const $scope8_id = _scope_id();
|
|
5535
|
-
_html(`<button${_attr_class(["
|
|
5535
|
+
_html(`<button${_attr_class(["_c0", { ["_cY"]: 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"}>${pasteWillFork ? "✓ fork" : "Fork"}${_el_resume($scope8_id, "b")}</button>${_el_resume($scope8_id, "a")}`);
|
|
5536
5536
|
_script($scope8_id, "s13");
|
|
5537
5537
|
_subscribe($pasteWillFork__closures, _subscribe($pasted__closures, writeScope($scope8_id, { Cao: 1 })));
|
|
5538
5538
|
return 0;
|
|
5539
5539
|
}
|
|
5540
5540
|
}, $scope1_id, "g", 1, 1, 1, 0, 1);
|
|
5541
|
-
_html(`<button${_attr_class([resultBranch, { ["
|
|
5541
|
+
_html(`<button${_attr_class([resultBranch, { ["_cY"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>⎇</button>${_el_resume($scope1_id, "h")}</div>`);
|
|
5542
5542
|
_if(() => {
|
|
5543
5543
|
if (branchesFor === pasted) {
|
|
5544
5544
|
const $scope2_id = _scope_id();
|
|
@@ -5563,7 +5563,7 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
5563
5563
|
return 0;
|
|
5564
5564
|
} else if (filter && !catalog) {
|
|
5565
5565
|
const $scope9_id = _scope_id();
|
|
5566
|
-
_html(`<p${_attr_class("
|
|
5566
|
+
_html(`<p${_attr_class("_bu")}>Loading repos…</p>`);
|
|
5567
5567
|
writeScope($scope9_id, {});
|
|
5568
5568
|
return 1;
|
|
5569
5569
|
}
|
|
@@ -5571,15 +5571,15 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
5571
5571
|
_if(() => {
|
|
5572
5572
|
if (results.length) {
|
|
5573
5573
|
const $scope3_id = _scope_id();
|
|
5574
|
-
_html(`<ul${_attr_class("
|
|
5574
|
+
_html(`<ul${_attr_class("_cU")}>`);
|
|
5575
5575
|
_for_of(results, (repo, i) => {
|
|
5576
5576
|
const $scope4_id = _scope_id();
|
|
5577
|
-
_html(`<li><div${_attr_class(["
|
|
5577
|
+
_html(`<li><div${_attr_class(["_cW", { ["_cV"]: i === highlight }])}><button${_attr_class("_cX")}>`);
|
|
5578
5578
|
icon_plus_default({
|
|
5579
5579
|
size: 12,
|
|
5580
|
-
class: "
|
|
5580
|
+
class: "_c3"
|
|
5581
5581
|
});
|
|
5582
|
-
_html(`<span${_attr_class("
|
|
5582
|
+
_html(`<span${_attr_class("_c4")}>${_escape(repoLabel(repo.nameWithOwner))}${_el_resume($scope4_id, "e")}</span></button>${_el_resume($scope4_id, "b")}<button${_attr_class([resultBranch, { ["_cY"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>⎇</button>${_el_resume($scope4_id, "f")}</div>${_el_resume($scope4_id, "a")}`);
|
|
5583
5583
|
_if(() => {
|
|
5584
5584
|
if (branchesFor === repo.nameWithOwner) {
|
|
5585
5585
|
const $scope5_id = _scope_id();
|
|
@@ -5612,7 +5612,7 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
5612
5612
|
return 0;
|
|
5613
5613
|
} else if (filter && catalog && !pasted) {
|
|
5614
5614
|
const $scope6_id = _scope_id();
|
|
5615
|
-
_html(`<p${_attr_class("
|
|
5615
|
+
_html(`<p${_attr_class("_bu")}>No repos match "<!>${_escape(filter)}${_el_resume($scope6_id, "b")}". Paste a clone URL to add any repo.</p>`);
|
|
5616
5616
|
writeScope($scope6_id, {});
|
|
5617
5617
|
return 1;
|
|
5618
5618
|
}
|
|
@@ -5753,7 +5753,7 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5753
5753
|
}
|
|
5754
5754
|
}, "p6", $scope0_id);
|
|
5755
5755
|
const titleId = _id();
|
|
5756
|
-
_html(`<div${_attr_class("
|
|
5756
|
+
_html(`<div${_attr_class("_bz")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bA")}><div${_attr_class(content$1)}>`);
|
|
5757
5757
|
_set_serialize_reason({
|
|
5758
5758
|
0: _serialize_guard($scope0_reason, 2),
|
|
5759
5759
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -5792,9 +5792,9 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5792
5792
|
return 0;
|
|
5793
5793
|
}
|
|
5794
5794
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
5795
|
-
_html(`<label${_attr_class("_bL")}><span${_attr_class("
|
|
5795
|
+
_html(`<label${_attr_class("_bL")}><span${_attr_class("_by")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
|
|
5796
5796
|
name = _new_name;
|
|
5797
|
-
}, "p0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class(section$1)}><div${_attr_class("_bN")}><h2${_attr_class("
|
|
5797
|
+
}, "p0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class(section$1)}><div${_attr_class("_bN")}><h2${_attr_class("_by")}>Repos</h2><button${_attr_class(iconBtnRow)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
5798
5798
|
_set_serialize_reason(1);
|
|
5799
5799
|
const $childScope2 = _peek_scope_id();
|
|
5800
5800
|
icon_refresh_default({
|
|
@@ -5851,7 +5851,7 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5851
5851
|
_if(() => {
|
|
5852
5852
|
if (!selected.length) {
|
|
5853
5853
|
const $scope12_id = _scope_id();
|
|
5854
|
-
_html(`<li${_attr_class("
|
|
5854
|
+
_html(`<li${_attr_class("_bu")}>No repos yet. Search below to add one, or create it empty.</li>`);
|
|
5855
5855
|
writeScope($scope12_id, {});
|
|
5856
5856
|
return 0;
|
|
5857
5857
|
}
|
|
@@ -5918,10 +5918,10 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5918
5918
|
_if(() => {
|
|
5919
5919
|
if (archived$1.length) {
|
|
5920
5920
|
const $scope4_id = _scope_id();
|
|
5921
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("_bN")}><h2${_attr_class("
|
|
5921
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_bN")}><h2${_attr_class("_by")}>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("_bm")}>`);
|
|
5922
5922
|
_for_of(archived$1, (ws) => {
|
|
5923
5923
|
const $scope5_id = _scope_id();
|
|
5924
|
-
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("
|
|
5924
|
+
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("_bp")}><span${_attr_class("_bq")}>${_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)}>`);
|
|
5925
5925
|
_if(() => {
|
|
5926
5926
|
if (restoring === ws.id) {
|
|
5927
5927
|
const $scope15_id = _scope_id();
|
|
@@ -6078,8 +6078,8 @@ function activeAgent(session) {
|
|
|
6078
6078
|
const command = session.state?.command?.trim();
|
|
6079
6079
|
return command && agentFromCommand(command) || session.agent;
|
|
6080
6080
|
}
|
|
6081
|
-
var iconBtn$1 = "
|
|
6082
|
-
var navToggle = "
|
|
6081
|
+
var iconBtn$1 = "_dj _j";
|
|
6082
|
+
var navToggle = "_do _j";
|
|
6083
6083
|
_template("I", (input) => {
|
|
6084
6084
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6085
6085
|
const $scope0_id = _scope_id();
|
|
@@ -6122,12 +6122,12 @@ var ARM_MS = 3500;
|
|
|
6122
6122
|
function disarmLater(fn) {
|
|
6123
6123
|
return setTimeout(fn, ARM_MS);
|
|
6124
6124
|
}
|
|
6125
|
-
var railBtn = "
|
|
6126
|
-
var rowIcon = "
|
|
6127
|
-
var close = "
|
|
6125
|
+
var railBtn = "_gl _j";
|
|
6126
|
+
var rowIcon = "_gu _Z _j";
|
|
6127
|
+
var close = "_gv _Z _j _2";
|
|
6128
6128
|
//#endregion
|
|
6129
6129
|
//#region src/styles/session-pop.css.ts
|
|
6130
|
-
var sessionPop = "
|
|
6130
|
+
var sessionPop = "_f0 _4";
|
|
6131
6131
|
//#endregion
|
|
6132
6132
|
//#region src/client/usage.ts
|
|
6133
6133
|
/** The plan row an agent instance draws on: its own account (`claude2`)
|
|
@@ -6203,7 +6203,7 @@ var usage_pcts_default = _template("D", (input) => {
|
|
|
6203
6203
|
return 0;
|
|
6204
6204
|
}
|
|
6205
6205
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
6206
|
-
_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 ? "
|
|
6206
|
+
_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 ? "_fi" : win$1.used_percent >= 70 ? "_fh" : win$1.used_percent >= 40 ? "_fg" : "_ff"])}>${_escape(pctText(win$1.used_percent))}${_el_resume($scope2_id, "f", $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
6207
6207
|
$si__input_agent && writeScope($scope2_id, {});
|
|
6208
6208
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
6209
6209
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -6437,10 +6437,10 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6437
6437
|
_if(() => {
|
|
6438
6438
|
if (input.rail) {
|
|
6439
6439
|
const $scope2_id = _scope_id();
|
|
6440
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
6440
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_gj"]: 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([
|
|
6441
6441
|
"_z",
|
|
6442
6442
|
phase[dot],
|
|
6443
|
-
"
|
|
6443
|
+
"_gm"
|
|
6444
6444
|
])}></span>${_el_resume($scope2_id, "c", $sg__input_workspaceId__OR__input_status)}</a>${_el_resume($scope2_id, "a", _serialize_guard($scope0_reason, 3))}`);
|
|
6445
6445
|
_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) })))));
|
|
6446
6446
|
return 0;
|
|
@@ -6448,15 +6448,15 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6448
6448
|
const $scope3_id = _scope_id();
|
|
6449
6449
|
const sessions$1 = input.sessions || [];
|
|
6450
6450
|
const phaseLabel = dot === "working" ? "Working" : dot === "waiting" ? "Needs input" : dot === "idle" ? "Idle" : "Not running";
|
|
6451
|
-
_html(`<section${_attr_class(["
|
|
6452
|
-
["
|
|
6451
|
+
_html(`<section${_attr_class(["_go", {
|
|
6452
|
+
["_gj"]: input.current,
|
|
6453
6453
|
["_5"]: input.current,
|
|
6454
|
-
["
|
|
6455
|
-
["
|
|
6456
|
-
}])}><div${_attr_class("
|
|
6454
|
+
["_gp"]: input.railPop,
|
|
6455
|
+
["_gn"]: input.page
|
|
6456
|
+
}])}><div${_attr_class("_gq")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class("_gr")}><span${_attr_class([
|
|
6457
6457
|
"_z",
|
|
6458
6458
|
phase[dot],
|
|
6459
|
-
"
|
|
6459
|
+
"_gE"
|
|
6460
6460
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope3_id, "d", $sg__input_workspaceId__OR__input_status)}`);
|
|
6461
6461
|
_if(() => {
|
|
6462
6462
|
if (sessions$1.length === 1) {
|
|
@@ -6469,7 +6469,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6469
6469
|
icon_agent_default({
|
|
6470
6470
|
agent: activeAgent(sessions$1[0]),
|
|
6471
6471
|
size: 12,
|
|
6472
|
-
class: "
|
|
6472
|
+
class: "_gw"
|
|
6473
6473
|
});
|
|
6474
6474
|
$si__input_sessions && writeScope($scope14_id, {
|
|
6475
6475
|
_: _scope_with_id($scope3_id),
|
|
@@ -6479,16 +6479,16 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6479
6479
|
}
|
|
6480
6480
|
}, $scope3_id, "e", $sg__input_sessions, $sg__input_sessions);
|
|
6481
6481
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length === 1 ? sessions$1[0].title || "" : `${sessions$1.length} sessions`;
|
|
6482
|
-
_html(`<span${_attr_class("
|
|
6482
|
+
_html(`<span${_attr_class("_gx")}><span${_attr_class("_gy")}>${_escape(ws$1.name)}${_el_resume($scope3_id, "h", $sg__input_workspaces__OR__input_workspaceId)}</span>`);
|
|
6483
6483
|
_if(() => {
|
|
6484
6484
|
if (input.page && metaText) {
|
|
6485
6485
|
const $scope16_id = _scope_id();
|
|
6486
|
-
_html(`<span${_attr_class("
|
|
6486
|
+
_html(`<span${_attr_class("_gC")}>${_escape(metaText)}${_el_resume($scope16_id, "b", _serialize_guard($scope0_reason, 7))}</span>`);
|
|
6487
6487
|
$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) });
|
|
6488
6488
|
return 0;
|
|
6489
6489
|
} else if (sessions$1.length === 1 && sessions$1[0].title) {
|
|
6490
6490
|
const $scope15_id = _scope_id();
|
|
6491
|
-
_html(`<span${_attr_class("
|
|
6491
|
+
_html(`<span${_attr_class("_gz")}>${_escape(sessions$1[0].title)}${_el_resume($scope15_id, "b", $sg__input_sessions)}</span>`);
|
|
6492
6492
|
$si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && writeScope($scope15_id, { _: $si__input_sessions && _scope_with_id($scope3_id) });
|
|
6493
6493
|
return 1;
|
|
6494
6494
|
}
|
|
@@ -6501,7 +6501,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6501
6501
|
"_I",
|
|
6502
6502
|
"_R",
|
|
6503
6503
|
"_K",
|
|
6504
|
-
"
|
|
6504
|
+
"_gD"
|
|
6505
6505
|
])}>${input.current ? "Open" : ""}${_el_resume($scope4_id, "b", _serialize_guard($scope0_reason, 21))}</span>`);
|
|
6506
6506
|
$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, {
|
|
6507
6507
|
_: _scope_with_id($scope3_id),
|
|
@@ -6514,7 +6514,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6514
6514
|
_if(() => {
|
|
6515
6515
|
if (!input.page) {
|
|
6516
6516
|
const $scope5_id = _scope_id();
|
|
6517
|
-
_html(`<div${_attr_class("
|
|
6517
|
+
_html(`<div${_attr_class("_gs")}>`);
|
|
6518
6518
|
_if(() => {
|
|
6519
6519
|
if (input.onNewSession) {
|
|
6520
6520
|
const $scope6_id = _scope_id();
|
|
@@ -6528,7 +6528,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6528
6528
|
_html(`</button>${_el_resume($scope6_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class(sessionPop)}>`);
|
|
6529
6529
|
_for_of([], (agent) => {
|
|
6530
6530
|
const $scope7_id = _scope_id();
|
|
6531
|
-
_html(`<button${_attr_class("
|
|
6531
|
+
_html(`<button${_attr_class("_f1")}>`);
|
|
6532
6532
|
_set_serialize_reason(12);
|
|
6533
6533
|
const $childScope2 = _peek_scope_id();
|
|
6534
6534
|
icon_agent_default({
|
|
@@ -6563,7 +6563,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6563
6563
|
return 0;
|
|
6564
6564
|
}
|
|
6565
6565
|
}, $scope5_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
6566
|
-
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["
|
|
6566
|
+
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_gk"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
|
|
6567
6567
|
icon_manage_default({ size: 12 });
|
|
6568
6568
|
_html(`</a>${_el_resume($scope5_id, "d", _serialize_guard($scope0_reason, 8))}</div>`);
|
|
6569
6569
|
_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, {
|
|
@@ -6573,7 +6573,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6573
6573
|
return 0;
|
|
6574
6574
|
}
|
|
6575
6575
|
}, $scope3_id, "k", $sg__input_page, $sg__input_page, 1, 0, 1);
|
|
6576
|
-
_html(`</div><div${_attr_class("
|
|
6576
|
+
_html(`</div><div${_attr_class("_gJ")}>`);
|
|
6577
6577
|
_if(() => {
|
|
6578
6578
|
if (sessions$1.length === 1 && openPlan) {
|
|
6579
6579
|
const $scope11_id = _scope_id();
|
|
@@ -6581,7 +6581,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6581
6581
|
const $childScope3 = _peek_scope_id();
|
|
6582
6582
|
usage_pcts_default({
|
|
6583
6583
|
agent: openPlan,
|
|
6584
|
-
class: "
|
|
6584
|
+
class: "_gA"
|
|
6585
6585
|
});
|
|
6586
6586
|
_subscribe($openPlan__closures, writeScope($scope11_id, {
|
|
6587
6587
|
a: _existing_scope($childScope3),
|
|
@@ -6592,14 +6592,14 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6592
6592
|
}, $scope3_id, "m");
|
|
6593
6593
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
6594
6594
|
const $scope8_id = _scope_id();
|
|
6595
|
-
_html(`<div${_attr_class(["
|
|
6595
|
+
_html(`<div${_attr_class(["_gt", { ["_gj"]: s.id === input.currentTab }])}>`);
|
|
6596
6596
|
_if(() => {
|
|
6597
6597
|
if (renamingId === s.id) {
|
|
6598
6598
|
const $scope10_id = _scope_id();
|
|
6599
6599
|
_html(`<span${_attr_class([
|
|
6600
6600
|
"_z",
|
|
6601
6601
|
phase[sessionPhase(s.state)],
|
|
6602
|
-
"
|
|
6602
|
+
"_gH"
|
|
6603
6603
|
])}></span>${_el_resume($scope10_id, "a", $sg__input_sessions)}`);
|
|
6604
6604
|
_set_serialize_reason({
|
|
6605
6605
|
1: $sg__input_sessions,
|
|
@@ -6609,17 +6609,17 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6609
6609
|
icon_agent_default({
|
|
6610
6610
|
agent: activeAgent(s),
|
|
6611
6611
|
size: 13,
|
|
6612
|
-
class: "
|
|
6612
|
+
class: "_gL"
|
|
6613
6613
|
});
|
|
6614
6614
|
_html(`<input${_attr_input_value($scope10_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
6615
6615
|
renameValue = _new_renameValue;
|
|
6616
|
-
}, "w0", $scope10_id))}${_attr_class(["_U", "
|
|
6616
|
+
}, "w0", $scope10_id))}${_attr_class(["_U", "_gI"])} aria-label="Session name">${_el_resume($scope10_id, "c")}`);
|
|
6617
6617
|
_script($scope10_id, "w5");
|
|
6618
6618
|
_subscribe($renameValue__closures, writeScope($scope10_id, { b: $si__input_sessions && _existing_scope($childScope4) }));
|
|
6619
6619
|
return 0;
|
|
6620
6620
|
} else {
|
|
6621
6621
|
const $scope9_id = _scope_id();
|
|
6622
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("
|
|
6622
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("_gK")}><span${_attr_class(["_z", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope9_id, "b", $sg__input_sessions)}`);
|
|
6623
6623
|
_set_serialize_reason({
|
|
6624
6624
|
1: $sg__input_sessions,
|
|
6625
6625
|
2: $sg__input_sessions
|
|
@@ -6628,9 +6628,9 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6628
6628
|
icon_agent_default({
|
|
6629
6629
|
agent: activeAgent(s),
|
|
6630
6630
|
size: 13,
|
|
6631
|
-
class: "
|
|
6631
|
+
class: "_gL"
|
|
6632
6632
|
});
|
|
6633
|
-
_html(`<span${_attr_class("
|
|
6633
|
+
_html(`<span${_attr_class("_gF")}>${_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("_gG")}><button${_attr_class(rowIcon)} title="Rename session">`);
|
|
6634
6634
|
icon_edit_default({ size: 12 });
|
|
6635
6635
|
_html(`</button>${_el_resume($scope9_id, "g")}<button${_attr_class([close, { ["_q"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
|
|
6636
6636
|
icon_xmark_default({ size: 12 });
|
|
@@ -6642,7 +6642,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6642
6642
|
const $childScope6 = _peek_scope_id();
|
|
6643
6643
|
usage_pcts_default({
|
|
6644
6644
|
agent: openPlan,
|
|
6645
|
-
class: "
|
|
6645
|
+
class: "_gB"
|
|
6646
6646
|
});
|
|
6647
6647
|
_subscribe($openPlan__closures, writeScope($scope12_id, {
|
|
6648
6648
|
a: _existing_scope($childScope6),
|
|
@@ -6845,34 +6845,34 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6845
6845
|
const iconSrc = `/api/instance/icon${input.instanceAccent ? `?v=${input.instanceAccent.slice(1)}` : ""}`;
|
|
6846
6846
|
const otherIds = itemIds.filter((id) => id !== ws.id);
|
|
6847
6847
|
const listIds = isPage ? [ws.id, ...otherIds] : itemIds;
|
|
6848
|
-
_html(`<aside${_attr_class(["
|
|
6849
|
-
["
|
|
6850
|
-
["
|
|
6848
|
+
_html(`<aside${_attr_class(["_dn", {
|
|
6849
|
+
["_dl"]: !navOpen,
|
|
6850
|
+
["_dm"]: isPage
|
|
6851
6851
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
6852
6852
|
_if(() => {
|
|
6853
6853
|
if (isPage) {
|
|
6854
6854
|
const $scope1_id = _scope_id();
|
|
6855
|
-
_html(`<header${_attr_class("
|
|
6855
|
+
_html(`<header${_attr_class("_dq")}><div${_attr_class("_dz")}>`);
|
|
6856
6856
|
_if(() => {
|
|
6857
6857
|
if (input.instanceName) {
|
|
6858
6858
|
const $scope2_id = _scope_id();
|
|
6859
|
-
_html(`<div${_attr_class("
|
|
6859
|
+
_html(`<div${_attr_class("_dw")} title="This work server (Settings → Appearance)"><img${_attr_class("_dx")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_dy")}>${_escape(input.instanceName)}${_el_resume($scope2_id, "d", $sg__input_instanceName)}</span></div>`);
|
|
6860
6860
|
_subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
|
|
6861
6861
|
return 0;
|
|
6862
6862
|
}
|
|
6863
6863
|
}, $scope1_id, "c", $sg__input_instanceName, $sg__input_instanceName, 1, 0, 1);
|
|
6864
|
-
_html(`<h1${_attr_class("
|
|
6864
|
+
_html(`<h1${_attr_class("_dr")}>Workspaces</h1></div><div${_attr_class("_ds")}>`);
|
|
6865
6865
|
_if(() => {}, $scope1_id, "f", 1, 1, 1, 0, 1);
|
|
6866
6866
|
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
|
|
6867
6867
|
iconBtn$1,
|
|
6868
|
-
"
|
|
6869
|
-
{ ["
|
|
6868
|
+
"_dt",
|
|
6869
|
+
{ ["_di"]: view === "settings" }
|
|
6870
6870
|
])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
6871
6871
|
icon_settings_default({ size: 16 });
|
|
6872
6872
|
_if(() => {
|
|
6873
6873
|
if (input.setupReady === false) {
|
|
6874
6874
|
const $scope12_id = _scope_id();
|
|
6875
|
-
_html(`<span${_attr_class(["_z", "
|
|
6875
|
+
_html(`<span${_attr_class(["_z", "_dk"])} title="Machine setup incomplete"></span>`);
|
|
6876
6876
|
$si__input_setupReady && writeScope($scope12_id, {});
|
|
6877
6877
|
return 0;
|
|
6878
6878
|
}
|
|
@@ -6885,18 +6885,18 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6885
6885
|
_if(() => {
|
|
6886
6886
|
if (!isPage && input.instanceName) {
|
|
6887
6887
|
const $scope3_id = _scope_id();
|
|
6888
|
-
_html(`<div${_attr_class("
|
|
6888
|
+
_html(`<div${_attr_class("_dw")} title="This work server (Settings → Appearance)"><img${_attr_class("_dx")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope3_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_dy")}>${_escape(input.instanceName)}${_el_resume($scope3_id, "d", $sg__input_instanceName)}</span></div>`);
|
|
6889
6889
|
writeScope($scope3_id, {});
|
|
6890
6890
|
return 0;
|
|
6891
6891
|
}
|
|
6892
6892
|
}, $scope0_id, "c", 1, 1, 1, 0, 1);
|
|
6893
|
-
_html(`<div${_attr_class("
|
|
6893
|
+
_html(`<div${_attr_class("_dA")}>`);
|
|
6894
6894
|
_for_of(listIds, (wsId) => {
|
|
6895
6895
|
const $scope4_id = _scope_id();
|
|
6896
6896
|
_if(() => {
|
|
6897
6897
|
if (isPage && wsId === ws.id) {
|
|
6898
6898
|
const $scope13_id = _scope_id();
|
|
6899
|
-
_html(`<h2${_attr_class(["
|
|
6899
|
+
_html(`<h2${_attr_class(["_by", "_du"])}>Current</h2>`);
|
|
6900
6900
|
writeScope($scope13_id, {});
|
|
6901
6901
|
return 0;
|
|
6902
6902
|
}
|
|
@@ -6904,7 +6904,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6904
6904
|
_if(() => {
|
|
6905
6905
|
if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
|
|
6906
6906
|
const $scope14_id = _scope_id();
|
|
6907
|
-
_html(`<h2${_attr_class(["
|
|
6907
|
+
_html(`<h2${_attr_class(["_by", "_du"])}>Other workspaces</h2>`);
|
|
6908
6908
|
writeScope($scope14_id, {});
|
|
6909
6909
|
return 0;
|
|
6910
6910
|
}
|
|
@@ -6991,7 +6991,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6991
6991
|
railHover = null;
|
|
6992
6992
|
}, 150);
|
|
6993
6993
|
}, "x6", $scope5_id);
|
|
6994
|
-
_html(`<div${_attr_class("
|
|
6994
|
+
_html(`<div${_attr_class("_dB")}>`);
|
|
6995
6995
|
_for_of(itemIds, (wsId, i) => {
|
|
6996
6996
|
const $scope6_id = _scope_id();
|
|
6997
6997
|
_html("<span>");
|
|
@@ -7045,7 +7045,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
7045
7045
|
if (railHover) {
|
|
7046
7046
|
const $scope7_id = _scope_id();
|
|
7047
7047
|
const hoverId = railHover.id;
|
|
7048
|
-
_html(`<div${_attr_class(["_4", "
|
|
7048
|
+
_html(`<div${_attr_class(["_4", "_dE"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
7049
7049
|
_set_serialize_reason({
|
|
7050
7050
|
0: 1,
|
|
7051
7051
|
1: 1,
|
|
@@ -7133,7 +7133,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
7133
7133
|
return 0;
|
|
7134
7134
|
}
|
|
7135
7135
|
}, $scope0_id, "e");
|
|
7136
|
-
_html(`<div${_attr_class("
|
|
7136
|
+
_html(`<div${_attr_class("_dC")}>`);
|
|
7137
7137
|
_if(() => {
|
|
7138
7138
|
if (isPage) {
|
|
7139
7139
|
const $scope9_id = _scope_id();
|
|
@@ -7141,7 +7141,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
7141
7141
|
"_o",
|
|
7142
7142
|
"_p",
|
|
7143
7143
|
btnLg,
|
|
7144
|
-
"
|
|
7144
|
+
"_dv"
|
|
7145
7145
|
])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
7146
7146
|
icon_folder_plus_default({ size: 16 });
|
|
7147
7147
|
_html(` New workspace</a>${_el_resume($scope9_id, "a")}`);
|
|
@@ -7163,19 +7163,19 @@ var side_nav_default = _template("x", (input) => {
|
|
|
7163
7163
|
return 1;
|
|
7164
7164
|
}
|
|
7165
7165
|
}, $scope8_id, "a", 1, 1, 1, "</button>", 1);
|
|
7166
|
-
_html(`<div${_attr_class(["_y", "
|
|
7166
|
+
_html(`<div${_attr_class(["_y", "_dD"])}></div>`);
|
|
7167
7167
|
_if(() => {}, $scope8_id, "c", 1, 1, 1, 0, 1);
|
|
7168
|
-
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["
|
|
7168
|
+
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["_di"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
7169
7169
|
icon_settings_default({ size: 15 });
|
|
7170
7170
|
_if(() => {
|
|
7171
7171
|
if (input.setupReady === false) {
|
|
7172
7172
|
const $scope17_id = _scope_id();
|
|
7173
|
-
_html(`<span${_attr_class(["_z", "
|
|
7173
|
+
_html(`<span${_attr_class(["_z", "_dk"])} title="Machine setup incomplete"></span>`);
|
|
7174
7174
|
$si__input_setupReady && writeScope($scope17_id, {});
|
|
7175
7175
|
return 0;
|
|
7176
7176
|
}
|
|
7177
7177
|
}, $scope8_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
7178
|
-
_html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn$1, { ["
|
|
7178
|
+
_html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn$1, { ["_di"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
7179
7179
|
icon_folder_plus_default({ size: 16 });
|
|
7180
7180
|
_html(`</a>${_el_resume($scope8_id, "g")}`);
|
|
7181
7181
|
_script($scope8_id, "x15");
|
|
@@ -7240,11 +7240,11 @@ var side_nav_default = _template("x", (input) => {
|
|
|
7240
7240
|
_resume_branch($scope0_id);
|
|
7241
7241
|
});
|
|
7242
7242
|
var iconBtn = "_0 _j";
|
|
7243
|
-
var sectionCount = "
|
|
7244
|
-
var content = "
|
|
7245
|
-
var pageMeta = "
|
|
7246
|
-
var pathMeta = "
|
|
7247
|
-
var dangerHint = "
|
|
7243
|
+
var sectionCount = "_bl _I _J";
|
|
7244
|
+
var content = "_c8 _bB";
|
|
7245
|
+
var pageMeta = "_c9 _bG";
|
|
7246
|
+
var pathMeta = "_db _x";
|
|
7247
|
+
var dangerHint = "_dh _S";
|
|
7248
7248
|
//#endregion
|
|
7249
7249
|
//#region src/tags/manage-workspace.marko
|
|
7250
7250
|
var api$2;
|
|
@@ -7343,7 +7343,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7343
7343
|
setTimeout(() => loadProcs(void 0), 500);
|
|
7344
7344
|
}, "n5", $scope0_id);
|
|
7345
7345
|
const titleId = _id();
|
|
7346
|
-
_html(`<div${_attr_class("
|
|
7346
|
+
_html(`<div${_attr_class("_bz")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bA")}><div${_attr_class(content)}>`);
|
|
7347
7347
|
_set_serialize_reason(30);
|
|
7348
7348
|
const $childScope = _peek_scope_id();
|
|
7349
7349
|
page_head_default({
|
|
@@ -7356,7 +7356,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7356
7356
|
meta: attrTag({ content: _content_resume("n11", () => {
|
|
7357
7357
|
_scope_reason();
|
|
7358
7358
|
const $scope8_id = _scope_id();
|
|
7359
|
-
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
7359
|
+
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_c_")}>${_escape(ws.name)}${_el_resume($scope8_id, "c")}</span>`);
|
|
7360
7360
|
_if(() => {
|
|
7361
7361
|
if (ws.status !== "active") {
|
|
7362
7362
|
const $scope11_id = _scope_id();
|
|
@@ -7365,7 +7365,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7365
7365
|
return 0;
|
|
7366
7366
|
}
|
|
7367
7367
|
}, $scope8_id, "d", 1, 1, 1, 0, 1);
|
|
7368
|
-
_html(`<span${_attr_class("
|
|
7368
|
+
_html(`<span${_attr_class("_da")} aria-hidden=true>·</span><span${_attr_class(pathMeta)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope8_id, "g")}</span></span>${_el_resume($scope8_id, "a")}`);
|
|
7369
7369
|
_subscribe($ws_status__closures, _subscribe($ws_name__closures, _subscribe($ws_path__closures, _subscribe($ws_display_path__closures, writeScope($scope8_id, { _: _scope_with_id($scope0_id) })))));
|
|
7370
7370
|
_resume_branch($scope8_id);
|
|
7371
7371
|
}, $scope0_id) })
|
|
@@ -7393,22 +7393,22 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7393
7393
|
_if(() => {
|
|
7394
7394
|
if (pendingAction && actionStep) {
|
|
7395
7395
|
const $scope7_id = _scope_id();
|
|
7396
|
-
_html(`<p${_attr_class("
|
|
7396
|
+
_html(`<p${_attr_class("_bi")}><span${_attr_class("_F")}></span><!>${_escape(actionStep)}${_el_resume($scope7_id, "c")}</p>`);
|
|
7397
7397
|
writeScope($scope7_id, {});
|
|
7398
7398
|
return 0;
|
|
7399
7399
|
}
|
|
7400
7400
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
7401
|
-
_html(`<section${_attr_class("
|
|
7401
|
+
_html(`<section${_attr_class("_bj")}><div${_attr_class("_bk")}><h2${_attr_class("_by")}>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)}>`);
|
|
7402
7402
|
_set_serialize_reason(1);
|
|
7403
7403
|
const $childScope2 = _peek_scope_id();
|
|
7404
7404
|
icon_refresh_default({
|
|
7405
7405
|
size: 14,
|
|
7406
7406
|
class: catalogRefreshing && "_E"
|
|
7407
7407
|
});
|
|
7408
|
-
_html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("
|
|
7408
|
+
_html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("_bm")}>`);
|
|
7409
7409
|
_for_of(ws.repos, (row) => {
|
|
7410
7410
|
const $scope1_id = _scope_id();
|
|
7411
|
-
_html(`<li${_attr_class("
|
|
7411
|
+
_html(`<li${_attr_class("_bo")}><div${_attr_class("_bp")}><span${_attr_class(["_bq", "_x"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_br")}><a${_attr_class(["_bs", "_dd"])}${_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")}`);
|
|
7412
7412
|
_if(() => {
|
|
7413
7413
|
if (row.base_branch !== row.default_branch) {
|
|
7414
7414
|
const $scope12_id = _scope_id();
|
|
@@ -7427,7 +7427,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7427
7427
|
} else {
|
|
7428
7428
|
const $scope6_id = _scope_id();
|
|
7429
7429
|
_html(`<button${_attr_class([
|
|
7430
|
-
"
|
|
7430
|
+
"_bt",
|
|
7431
7431
|
"_2",
|
|
7432
7432
|
"_3",
|
|
7433
7433
|
{ ["_q"]: confirmingRemove === row.full_name }
|
|
@@ -7460,19 +7460,19 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7460
7460
|
}, "full_name", $scope0_id, "p", 1, 1, 1, 0, 1);
|
|
7461
7461
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
7462
7462
|
const $scope16_id = _scope_id();
|
|
7463
|
-
_html(`<li${_attr_class(["
|
|
7463
|
+
_html(`<li${_attr_class(["_bo", "_bn"])}><span${_attr_class("_F")}></span><div${_attr_class("_bp")}><span${_attr_class("_bs")}>Adding <!>${_escape(name)}${_el_resume($scope16_id, "e")}…</span></div></li>`);
|
|
7464
7464
|
writeScope($scope16_id, {});
|
|
7465
7465
|
}, (n) => n, $scope0_id, "q", 1, 1, 1, 0, 1);
|
|
7466
7466
|
_html("</ul>");
|
|
7467
7467
|
_if(() => {
|
|
7468
7468
|
if (!ws.repos.length && !busy.size) {
|
|
7469
7469
|
const $scope17_id = _scope_id();
|
|
7470
|
-
_html(`<p${_attr_class("
|
|
7470
|
+
_html(`<p${_attr_class("_bu")}>No repos yet. Search below to add one.</p>`);
|
|
7471
7471
|
writeScope($scope17_id, {});
|
|
7472
7472
|
return 0;
|
|
7473
7473
|
}
|
|
7474
7474
|
}, $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
7475
|
-
_html(`<div${_attr_class("
|
|
7475
|
+
_html(`<div${_attr_class("_dc")}>`);
|
|
7476
7476
|
const $childScope3 = _peek_scope_id();
|
|
7477
7477
|
let refreshCatalog = repo_picker_default({
|
|
7478
7478
|
exclude: inWorkspace,
|
|
@@ -7492,17 +7492,17 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7492
7492
|
_if(() => {
|
|
7493
7493
|
if (running.length) {
|
|
7494
7494
|
const $scope9_id = _scope_id();
|
|
7495
|
-
_html(`<section${_attr_class("
|
|
7495
|
+
_html(`<section${_attr_class("_bj")}><div${_attr_class("_bk")}><h2${_attr_class("_by")}>Running</h2><span${_attr_class(sectionCount)}>${_escape(running.length)}${_el_resume($scope9_id, "e")}</span></div><ul${_attr_class("_bm")}>`);
|
|
7496
7496
|
_for_of(running, (p) => {
|
|
7497
7497
|
const $scope10_id = _scope_id();
|
|
7498
|
-
_html(`<li${_attr_class("
|
|
7498
|
+
_html(`<li${_attr_class("_bo")}><div${_attr_class("_bp")}${_attr("title", p.args)}><span${_attr_class(["_bq", "_x"])}>${_escape(p.cmd)}${_el_resume($scope10_id, "d")}</span>`);
|
|
7499
7499
|
_if(() => {
|
|
7500
7500
|
if (p.ports.length) {
|
|
7501
7501
|
const $scope18_id = _scope_id();
|
|
7502
|
-
_html(`<span${_attr_class("
|
|
7502
|
+
_html(`<span${_attr_class("_br")}>`);
|
|
7503
7503
|
_for_of(p.ports, (port) => {
|
|
7504
7504
|
const $scope19_id = _scope_id();
|
|
7505
|
-
_html(`<button${_attr_class(["_s", "
|
|
7505
|
+
_html(`<button${_attr_class(["_s", "_de"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope19_id, "b")}</button>${_el_resume($scope19_id, "a")}`);
|
|
7506
7506
|
_script($scope19_id, "n15");
|
|
7507
7507
|
writeScope($scope19_id, { d: port });
|
|
7508
7508
|
}, (x) => String(x), $scope18_id, "a", 1, 1, 1, "</span>", 1);
|
|
@@ -7510,7 +7510,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7510
7510
|
return 0;
|
|
7511
7511
|
}
|
|
7512
7512
|
}, $scope10_id, "e", 1, 1, 1, 0, 1);
|
|
7513
|
-
_html(`</div>${_el_resume($scope10_id, "b")}<button${_attr_class(["
|
|
7513
|
+
_html(`</div>${_el_resume($scope10_id, "b")}<button${_attr_class(["_bt", "_2"])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
7514
7514
|
icon_xmark_default({ size: 14 });
|
|
7515
7515
|
_html(`</button>${_el_resume($scope10_id, "f")}</li>`);
|
|
7516
7516
|
_script($scope10_id, "n16");
|
|
@@ -7524,7 +7524,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7524
7524
|
return 0;
|
|
7525
7525
|
}
|
|
7526
7526
|
}, $scope0_id, "v", 1, 1, 1, 0, 1);
|
|
7527
|
-
_html(`<section${_attr_class(["
|
|
7527
|
+
_html(`<section${_attr_class(["_bj", "_df"])}><div${_attr_class("_bk")}><h2${_attr_class("_by")}>Workspace</h2></div><div${_attr_class("_dg")}>`);
|
|
7528
7528
|
_if(() => {
|
|
7529
7529
|
if (ws.status === "active") {
|
|
7530
7530
|
const $scope4_id = _scope_id();
|
|
@@ -7625,15 +7625,15 @@ var term_find_default = _template("z", (input) => {
|
|
|
7625
7625
|
const canStep = hasQuery && open;
|
|
7626
7626
|
const keybar = input.placement === "keybar";
|
|
7627
7627
|
_html(`<div${_attr_class([
|
|
7628
|
-
"
|
|
7629
|
-
keybar ? "
|
|
7630
|
-
!open && "
|
|
7631
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
7628
|
+
"_fy",
|
|
7629
|
+
keybar ? "_fA" : "_fz",
|
|
7630
|
+
!open && "_fC"
|
|
7631
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_ft", keybar ? "_fB" : "_fv"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
7632
7632
|
if (!open) return;
|
|
7633
7633
|
query = v;
|
|
7634
7634
|
live.query = v;
|
|
7635
7635
|
run(0);
|
|
7636
|
-
}, "z0", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
7636
|
+
}, "z0", $scope0_id))}${_attr_class([findInput, keybar && "_fD"])} 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 && "_fE"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↑</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_fE"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↓</button>${_el_resume($scope0_id, "e")}<button type=button${_attr_class([findIconBtn, keybar && "_fE"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
7637
7637
|
icon_xmark_default({ size: 14 });
|
|
7638
7638
|
_html(`</button>${_el_resume($scope0_id, "f")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
7639
7639
|
_script($scope0_id, "z4");
|
|
@@ -7907,7 +7907,7 @@ var term_default = _template("A", (input) => {
|
|
|
7907
7907
|
trapOpen = true;
|
|
7908
7908
|
}
|
|
7909
7909
|
}, "A14", $scope0_id);
|
|
7910
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
7910
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_dF")}><div${_attr_class("_dG")}></div>${_el_resume($scope0_id, "b")}`);
|
|
7911
7911
|
_if(() => {
|
|
7912
7912
|
if (findOpen) {
|
|
7913
7913
|
const $scope12_id = _scope_id();
|
|
@@ -7934,7 +7934,7 @@ var term_default = _template("A", (input) => {
|
|
|
7934
7934
|
_if(() => {
|
|
7935
7935
|
if (uploading) {
|
|
7936
7936
|
const $scope19_id = _scope_id();
|
|
7937
|
-
_html(`<div${_attr_class("
|
|
7937
|
+
_html(`<div${_attr_class("_dM")}>uploading…</div>`);
|
|
7938
7938
|
writeScope($scope19_id, {});
|
|
7939
7939
|
return 0;
|
|
7940
7940
|
}
|
|
@@ -7942,7 +7942,7 @@ var term_default = _template("A", (input) => {
|
|
|
7942
7942
|
_if(() => {
|
|
7943
7943
|
if (copiedFlash) {
|
|
7944
7944
|
const $scope20_id = _scope_id();
|
|
7945
|
-
_html(`<div${_attr_class("
|
|
7945
|
+
_html(`<div${_attr_class("_dL")}>Copied</div>`);
|
|
7946
7946
|
writeScope($scope20_id, {});
|
|
7947
7947
|
return 0;
|
|
7948
7948
|
}
|
|
@@ -7951,7 +7951,7 @@ var term_default = _template("A", (input) => {
|
|
|
7951
7951
|
_if(() => {
|
|
7952
7952
|
if (trapOpen) {
|
|
7953
7953
|
const $scope11_id = _scope_id();
|
|
7954
|
-
_html(`<div${_attr_class("
|
|
7954
|
+
_html(`<div${_attr_class("_dN")}><div${_attr_class("_dO")}><p${_attr_class("_ei")}>Long-press the field below and choose Paste</p><input placeholder="Paste here…">${_el_resume($scope11_id, "d")}<button${_attr_class("_o")}>Cancel</button>${_el_resume($scope11_id, "e")}</div>${_el_resume($scope11_id, "b")}</div>${_el_resume($scope11_id, "a")}`);
|
|
7955
7955
|
_script($scope11_id, "A25");
|
|
7956
7956
|
_script($scope11_id, "A26");
|
|
7957
7957
|
writeScope($scope11_id, {});
|
|
@@ -8054,7 +8054,7 @@ var work_view_default = _template("E", (input) => {
|
|
|
8054
8054
|
let DiffView = null;
|
|
8055
8055
|
const loadDiffView = _resume(() => {
|
|
8056
8056
|
if (DiffView) return;
|
|
8057
|
-
import("./
|
|
8057
|
+
import("./_D13gIzTc.js").then((m) => {
|
|
8058
8058
|
DiffView = m.default;
|
|
8059
8059
|
});
|
|
8060
8060
|
}, "E6", $scope0_id);
|
|
@@ -8524,7 +8524,7 @@ var work_view_default = _template("E", (input) => {
|
|
|
8524
8524
|
_if(() => {
|
|
8525
8525
|
if (!shownSessions.length && view === "term") {
|
|
8526
8526
|
const $scope7_id = _scope_id();
|
|
8527
|
-
_html(`<div${_attr_class("
|
|
8527
|
+
_html(`<div${_attr_class("_bv")}><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>`);
|
|
8528
8528
|
_script($scope7_id, "E49");
|
|
8529
8529
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
8530
8530
|
return 0;
|
|
@@ -8534,7 +8534,7 @@ var work_view_default = _template("E", (input) => {
|
|
|
8534
8534
|
return 0;
|
|
8535
8535
|
} else {
|
|
8536
8536
|
const $scope10_id = _scope_id();
|
|
8537
|
-
_html(`<p${_attr_class("
|
|
8537
|
+
_html(`<p${_attr_class("_bv")}>Loading sessions…</p>`);
|
|
8538
8538
|
writeScope($scope10_id, {});
|
|
8539
8539
|
return 1;
|
|
8540
8540
|
}
|
|
@@ -16344,6 +16344,7 @@ async function handleTermConnection(ws, req) {
|
|
|
16344
16344
|
} catch {}
|
|
16345
16345
|
forceWindowSize();
|
|
16346
16346
|
}
|
|
16347
|
+
if (parseClaim(text)) forceWindowSize();
|
|
16347
16348
|
const vis = parseVisible(text);
|
|
16348
16349
|
if (vis !== void 0 && vis !== visible) {
|
|
16349
16350
|
visible = vis;
|
|
@@ -16369,6 +16370,12 @@ async function handleTermConnection(ws, req) {
|
|
|
16369
16370
|
proc.kill();
|
|
16370
16371
|
});
|
|
16371
16372
|
}
|
|
16373
|
+
function parseClaim(text) {
|
|
16374
|
+
try {
|
|
16375
|
+
return JSON.parse(text)?.claim === true;
|
|
16376
|
+
} catch {}
|
|
16377
|
+
return false;
|
|
16378
|
+
}
|
|
16372
16379
|
function parseVisible(text) {
|
|
16373
16380
|
try {
|
|
16374
16381
|
const visible = JSON.parse(text)?.visible;
|
|
@@ -16527,4 +16534,4 @@ server.listen(port, () => {
|
|
|
16527
16534
|
//#endregion
|
|
16528
16535
|
export {};
|
|
16529
16536
|
|
|
16530
|
-
;var __MARKO_MANIFEST__={"ZLT8joi":{"block":[2,"stylesheet#/assets/app-page-
|
|
16537
|
+
;var __MARKO_MANIFEST__={"ZLT8joi":{"block":[2,"stylesheet#/assets/app-page-BB6oW8H9.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BB6oW8H9.css\"",">"],"defer":[2,"/assets/new-BmwwujAD.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-BmwwujAD.js\"","></script>",2,"modulepreload#/assets/_BpdeumzG.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BpdeumzG.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/app-page-BB6oW8H9.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BB6oW8H9.css\"",">"],"defer":[2,"/assets/w._-BmwwujAD.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-BmwwujAD.js\"","></script>",2,"modulepreload#/assets/_BpdeumzG.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BpdeumzG.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/app-page-BB6oW8H9.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BB6oW8H9.css\"",">"],"defer":[2,"/assets/w-BmwwujAD.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-BmwwujAD.js\"","></script>",2,"modulepreload#/assets/_BpdeumzG.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BpdeumzG.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/app-page-BB6oW8H9.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BB6oW8H9.css\"",">"],"defer":[2,"/assets/settings-BmwwujAD.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-BmwwujAD.js\"","></script>",2,"modulepreload#/assets/_BpdeumzG.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BpdeumzG.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/app-page-BB6oW8H9.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BB6oW8H9.css\"",">"],"defer":[2,"/assets/w._-DQmoJHNi.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-DQmoJHNi.js\"","></script>",2,"modulepreload#/assets/_BpdeumzG.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BpdeumzG.js\"",">"]}};
|