@dylanpiercey/work 0.0.95 → 0.0.97
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/{_-9SN7lhj.js → _CRHCebx8.js} +62 -28
- package/dist/{_D13gIzTc.js → _DPT3XRV0.js} +339 -235
- package/dist/index.mjs +799 -613
- package/dist/public/assets/{_YHDsSm6D.js → _-b51A6U7.js} +1 -1
- package/dist/public/assets/_-b51A6U7.js.br +0 -0
- package/dist/public/assets/{_DIhnt-RM.js → _0KWxGbZw.js} +1 -1
- package/dist/public/assets/_0KWxGbZw.js.br +0 -0
- package/dist/public/assets/{_o-goWiqn.js → _8GNWgmjH.js} +1 -1
- package/dist/public/assets/_8GNWgmjH.js.br +0 -0
- package/dist/public/assets/{_BGtYhUy5.js → _8tiEU3RO.js} +1 -1
- package/dist/public/assets/_8tiEU3RO.js.br +0 -0
- package/dist/public/assets/{_DJWz5IwD.js → _B2AC3SUA.js} +1 -1
- package/dist/public/assets/_B2AC3SUA.js.br +0 -0
- package/dist/public/assets/{_DK0lys0m.js → _B8-V5BF5.js} +1 -1
- package/dist/public/assets/_B8-V5BF5.js.br +0 -0
- package/dist/public/assets/{_bRvxXZbS.js → _B80qXOTR.js} +1 -1
- package/dist/public/assets/_B80qXOTR.js.br +0 -0
- package/dist/public/assets/{_Txji4y3b.js → _B9D12lOA.js} +1 -1
- package/dist/public/assets/_B9D12lOA.js.br +0 -0
- package/dist/public/assets/{_9Cb6PnoF2.js → _BBS5zv8C2.js} +1 -1
- package/dist/public/assets/_BBS5zv8C2.js.br +0 -0
- package/dist/public/assets/{_amMU20AI.js → _BCovSJRb.js} +1 -1
- package/dist/public/assets/_BCovSJRb.js.br +0 -0
- package/dist/public/assets/{_D8yYAlmO.js → _BE3R8mFE.js} +1 -1
- package/dist/public/assets/_BE3R8mFE.js.br +0 -0
- package/dist/public/assets/{_DcNus2Vf2.js → _BGvyA4oE2.js} +1 -1
- package/dist/public/assets/_BGvyA4oE2.js.br +0 -0
- package/dist/public/assets/{_B_0nqTdg2.js → _BIOtkDha2.js} +1 -1
- package/dist/public/assets/_BIOtkDha2.js.br +0 -0
- package/dist/public/assets/{_BC2fmz4Y2.js → _BLcb3Cg42.js} +1 -1
- package/dist/public/assets/_BLcb3Cg42.js.br +0 -0
- package/dist/public/assets/{_BS7qhSY6.js → _BP_u4OL-.js} +1 -1
- package/dist/public/assets/_BP_u4OL-.js.br +0 -0
- package/dist/public/assets/{_6wZbjEqF.js → _BPfQaxTd.js} +1 -1
- package/dist/public/assets/_BPfQaxTd.js.br +0 -0
- package/dist/public/assets/{_C6R_qpkO.js → _BTsrDfH-.js} +1 -1
- package/dist/public/assets/_BTsrDfH-.js.br +0 -0
- package/dist/public/assets/{_dfU2imZ4.js → _BZsn-7u1.js} +1 -1
- package/dist/public/assets/_BZsn-7u1.js.br +0 -0
- package/dist/public/assets/{_BCKtabuZ2.js → _BaY0h2ec2.js} +1 -1
- package/dist/public/assets/_BaY0h2ec2.js.br +0 -0
- package/dist/public/assets/{_CQsoywcI.js → _Bc4j5n7x.js} +1 -1
- package/dist/public/assets/_Bc4j5n7x.js.br +0 -0
- package/dist/public/assets/{_Bt5xnL2D2.js → _BgPTyoAr2.js} +1 -1
- package/dist/public/assets/_BgPTyoAr2.js.br +0 -0
- package/dist/public/assets/{_zIcbcxRV2.js → _BiDyvSOO2.js} +1 -1
- package/dist/public/assets/_BiDyvSOO2.js.br +0 -0
- package/dist/public/assets/{_lX7nytmW.js → _BkjyxJ0i.js} +1 -1
- package/dist/public/assets/{_BZ5oh9fs.js → _Bl512FoL.js} +1 -1
- package/dist/public/assets/_Bl512FoL.js.br +0 -0
- package/dist/public/assets/{_CP5BtWSQ.js → _Bw9jvu1-.js} +1 -1
- package/dist/public/assets/_Bw9jvu1-.js.br +0 -0
- package/dist/public/assets/{_B1jHOqZH.js → _BwFRjBOz.js} +1 -1
- package/dist/public/assets/_BwFRjBOz.js.br +0 -0
- package/dist/public/assets/{_MMZVDI0Q2.js → _BzGLDIBO2.js} +1 -1
- package/dist/public/assets/_BzGLDIBO2.js.br +0 -0
- package/dist/public/assets/{_fxHb-KbN2.js → _BzfCLxV82.js} +1 -1
- package/dist/public/assets/_BzfCLxV82.js.br +0 -0
- package/dist/public/assets/{_7HSHWkd02.js → _Bzp9X35S2.js} +1 -1
- package/dist/public/assets/_Bzp9X35S2.js.br +0 -0
- package/dist/public/assets/{_QZPTxSDf2.js → _C-KXAuRh2.js} +1 -1
- package/dist/public/assets/_C-KXAuRh2.js.br +0 -0
- package/dist/public/assets/{_Drn3lXQP2.js → _C2SDF9Yg2.js} +1 -1
- package/dist/public/assets/{_YyV-EVam.js → _C4nOqeMD.js} +1 -1
- package/dist/public/assets/_C4nOqeMD.js.br +0 -0
- package/dist/public/assets/{_DxP9fuIM2.js → _C5xrDvQI2.js} +1 -1
- package/dist/public/assets/_C5xrDvQI2.js.br +0 -0
- package/dist/public/assets/{_vGqkGb_u.js → _CMYGsqdf.js} +1 -1
- package/dist/public/assets/_CMYGsqdf.js.br +0 -0
- package/dist/public/assets/{_loA_xJ2W.js → _COSXS0J8.js} +1 -1
- package/dist/public/assets/_COSXS0J8.js.br +0 -0
- package/dist/public/assets/{_BavnyJ90.js → _CPeBESzl.js} +1 -1
- package/dist/public/assets/_CPeBESzl.js.br +0 -0
- package/dist/public/assets/{_D4Uyoa0g2.js → _CRbRTfeP2.js} +1 -1
- package/dist/public/assets/_CRbRTfeP2.js.br +0 -0
- package/dist/public/assets/{_19yjqtuP.js → _Cn1q8R2G.js} +1 -1
- package/dist/public/assets/_Cn1q8R2G.js.br +0 -0
- package/dist/public/assets/{_BfXdOIFL.js → _Ct6qquOF.js} +1 -1
- package/dist/public/assets/_Ct6qquOF.js.br +0 -0
- package/dist/public/assets/{_CeELTPQl.js → _CyQMVS2T.js} +1 -1
- package/dist/public/assets/_CyQMVS2T.js.br +0 -0
- package/dist/public/assets/{_CPP_bPjn.js → _Cyhh59cC.js} +1 -1
- package/dist/public/assets/_Cyhh59cC.js.br +0 -0
- package/dist/public/assets/{_DXC_JO9C2.js → _Cyl9FKNU2.js} +1 -1
- package/dist/public/assets/_Cyl9FKNU2.js.br +0 -0
- package/dist/public/assets/{_DHIGTTg6.js → _D4cKCypW.js} +1 -1
- package/dist/public/assets/_D4cKCypW.js.br +0 -0
- package/dist/public/assets/{_D2inRKMJ.js → _D5o1QAvJ.js} +1 -1
- package/dist/public/assets/_D5o1QAvJ.js.br +0 -0
- package/dist/public/assets/{_C8Iu43Ry.js → _DA_USHEu.js} +1 -1
- package/dist/public/assets/_DA_USHEu.js.br +0 -0
- package/dist/public/assets/{_C12MnCJE2.js → _DFpIp88l2.js} +1 -1
- package/dist/public/assets/_DFpIp88l2.js.br +0 -0
- package/dist/public/assets/{_VXhkFKrd2.js → _DJ0uAfUp2.js} +1 -1
- package/dist/public/assets/_DJ0uAfUp2.js.br +0 -0
- package/dist/public/assets/{_wbLaii1_.js → _DJ6cJzuI.js} +1 -1
- package/dist/public/assets/_DJ6cJzuI.js.br +0 -0
- package/dist/public/assets/{_CBZeUUWn2.js → _DLSsOTkW2.js} +1 -1
- package/dist/public/assets/{_hyQI5FsG.js → _DSX5dMw5.js} +1 -1
- package/dist/public/assets/_DSX5dMw5.js.br +0 -0
- package/dist/public/assets/{_CN7YZ9Jt.js → _DYCJZ-Iu.js} +1 -1
- package/dist/public/assets/_DYCJZ-Iu.js.br +0 -0
- package/dist/public/assets/{_DGKIFykf.js → _DaH2ZbUV.js} +1 -1
- package/dist/public/assets/_DaH2ZbUV.js.br +0 -0
- package/dist/public/assets/{_Cl1qk0QM.js → _DcTJxua3.js} +1 -1
- package/dist/public/assets/_DcTJxua3.js.br +0 -0
- package/dist/public/assets/{_DFmhG3rm2.js → _DwVknvPD2.js} +1 -1
- package/dist/public/assets/_DwVknvPD2.js.br +0 -0
- package/dist/public/assets/{_B0hS9ikc.js → _Dx_iq98R.js} +1 -1
- package/dist/public/assets/_Dx_iq98R.js.br +0 -0
- package/dist/public/assets/{_BCw4FOz1.js → _DyjSeFv1.js} +1 -1
- package/dist/public/assets/_DyjSeFv1.js.br +0 -0
- package/dist/public/assets/{_vC8X4_FF.js → _ERnhNh-Y.js} +1 -1
- package/dist/public/assets/_ERnhNh-Y.js.br +0 -0
- package/dist/public/assets/{_BFDKvdah.js → _I8D7wiZO.js} +1 -1
- package/dist/public/assets/_I8D7wiZO.js.br +0 -0
- package/dist/public/assets/{_CAx_6lfv.js → _Is38l22C.js} +1 -1
- package/dist/public/assets/_Is38l22C.js.br +0 -0
- package/dist/public/assets/{_B8wWQ620.js → _J13dOJAl.js} +46 -46
- package/dist/public/assets/_J13dOJAl.js.br +0 -0
- package/dist/public/assets/{_DFoZ_gHS.js → _Ka1PvLiD.js} +1 -1
- package/dist/public/assets/_Ka1PvLiD.js.br +0 -0
- package/dist/public/assets/{_i50DwB9Z2.js → _Skj5Z76l2.js} +1 -1
- package/dist/public/assets/_Skj5Z76l2.js.br +0 -0
- package/dist/public/assets/{_B1tDI_nQ.js → _VJa0VTCn.js} +1 -1
- package/dist/public/assets/_VJa0VTCn.js.br +0 -0
- package/dist/public/assets/{_x7q187z1.js → _XQjM1w_8.js} +1 -1
- package/dist/public/assets/_XQjM1w_8.js.br +0 -0
- package/dist/public/assets/{_DMqW9uIi2.js → _YOqlhSHw2.js} +1 -1
- package/dist/public/assets/_YOqlhSHw2.js.br +0 -0
- package/dist/public/assets/{_DcqgsKkp.js → _a_oWV3XM.js} +1 -1
- package/dist/public/assets/_a_oWV3XM.js.br +0 -0
- package/dist/public/assets/{_CsPn7vMJ2.js → _cd0Dn5oM2.js} +1 -1
- package/dist/public/assets/_cd0Dn5oM2.js.br +0 -0
- package/dist/public/assets/{_DKFPQ1582.js → _e3oDddUx2.js} +1 -1
- package/dist/public/assets/_e3oDddUx2.js.br +0 -0
- package/dist/public/assets/{_D6aLEWL7.js → _gu9YaOjx.js} +1 -1
- package/dist/public/assets/_gu9YaOjx.js.br +0 -0
- package/dist/public/assets/{_BlMjgG5a.js → _jK_yh8X8.js} +1 -1
- package/dist/public/assets/_jK_yh8X8.js.br +0 -0
- package/dist/public/assets/{__T5qbsZi.js → _mU_JkZbV.js} +1 -1
- package/dist/public/assets/_mU_JkZbV.js.br +0 -0
- package/dist/public/assets/{_DgfTg0IW2.js → _pImBOEXD2.js} +1 -1
- package/dist/public/assets/_pImBOEXD2.js.br +0 -0
- package/dist/public/assets/{_D3DCFNQ9.js → _t5tGr2D1.js} +1 -1
- package/dist/public/assets/_t5tGr2D1.js.br +0 -0
- package/dist/public/assets/_tzwJRvKK.js +85 -0
- package/dist/public/assets/_tzwJRvKK.js.br +0 -0
- package/dist/public/assets/{_xMSqf4Dz.js → _zWXmuT9S.js} +1 -1
- package/dist/public/assets/_zWXmuT9S.js.br +0 -0
- package/dist/public/assets/{_BAC_-o69.js → _zZovbli0.js} +1 -1
- package/dist/public/assets/_zZovbli0.js.br +0 -0
- package/dist/public/assets/app-page-D30JmXcA.css +1 -0
- package/dist/public/assets/app-page-D30JmXcA.css.br +0 -0
- package/dist/public/assets/diff-view-WfajAxvs.css +1 -0
- package/dist/public/assets/diff-view-WfajAxvs.css.br +0 -0
- package/dist/public/assets/new-BiAv3en2.js +1 -0
- package/dist/public/assets/settings-BiAv3en2.js +1 -0
- package/dist/public/assets/w-BiAv3en2.js +1 -0
- package/dist/public/assets/w._-BiAv3en2.js +1 -0
- package/dist/public/assets/w._-DoR9D5Ku.js +1 -0
- package/package.json +1 -1
- package/dist/public/assets/_19yjqtuP.js.br +0 -0
- package/dist/public/assets/_6wZbjEqF.js.br +0 -0
- package/dist/public/assets/_7HSHWkd02.js.br +0 -0
- package/dist/public/assets/_9Cb6PnoF2.js.br +0 -0
- package/dist/public/assets/_B0hS9ikc.js.br +0 -0
- package/dist/public/assets/_B1jHOqZH.js.br +0 -0
- package/dist/public/assets/_B1tDI_nQ.js.br +0 -0
- package/dist/public/assets/_B8wWQ620.js.br +0 -0
- package/dist/public/assets/_BAC_-o69.js.br +0 -0
- package/dist/public/assets/_BC2fmz4Y2.js.br +0 -0
- package/dist/public/assets/_BCKtabuZ2.js.br +0 -0
- package/dist/public/assets/_BCw4FOz1.js.br +0 -0
- package/dist/public/assets/_BFDKvdah.js.br +0 -0
- package/dist/public/assets/_BGtYhUy5.js.br +0 -0
- package/dist/public/assets/_BS7qhSY6.js.br +0 -0
- package/dist/public/assets/_BZ5oh9fs.js.br +0 -0
- package/dist/public/assets/_B_0nqTdg2.js.br +0 -0
- package/dist/public/assets/_BavnyJ90.js.br +0 -0
- package/dist/public/assets/_BfXdOIFL.js.br +0 -0
- package/dist/public/assets/_BlMjgG5a.js.br +0 -0
- package/dist/public/assets/_BpdeumzG.js +0 -85
- package/dist/public/assets/_BpdeumzG.js.br +0 -0
- package/dist/public/assets/_Bt5xnL2D2.js.br +0 -0
- package/dist/public/assets/_C12MnCJE2.js.br +0 -0
- package/dist/public/assets/_C6R_qpkO.js.br +0 -0
- package/dist/public/assets/_C8Iu43Ry.js.br +0 -0
- package/dist/public/assets/_CAx_6lfv.js.br +0 -0
- package/dist/public/assets/_CN7YZ9Jt.js.br +0 -0
- package/dist/public/assets/_CP5BtWSQ.js.br +0 -0
- package/dist/public/assets/_CPP_bPjn.js.br +0 -0
- package/dist/public/assets/_CQsoywcI.js.br +0 -0
- package/dist/public/assets/_CeELTPQl.js.br +0 -0
- package/dist/public/assets/_Cl1qk0QM.js.br +0 -0
- package/dist/public/assets/_CsPn7vMJ2.js.br +0 -0
- package/dist/public/assets/_D2inRKMJ.js.br +0 -0
- package/dist/public/assets/_D3DCFNQ9.js.br +0 -0
- package/dist/public/assets/_D4Uyoa0g2.js.br +0 -0
- package/dist/public/assets/_D6aLEWL7.js.br +0 -0
- package/dist/public/assets/_D8yYAlmO.js.br +0 -0
- package/dist/public/assets/_DFmhG3rm2.js.br +0 -0
- package/dist/public/assets/_DFoZ_gHS.js.br +0 -0
- package/dist/public/assets/_DGKIFykf.js.br +0 -0
- package/dist/public/assets/_DHIGTTg6.js.br +0 -0
- package/dist/public/assets/_DIhnt-RM.js.br +0 -0
- package/dist/public/assets/_DJWz5IwD.js.br +0 -0
- package/dist/public/assets/_DK0lys0m.js.br +0 -0
- package/dist/public/assets/_DKFPQ1582.js.br +0 -0
- package/dist/public/assets/_DMqW9uIi2.js.br +0 -0
- package/dist/public/assets/_DXC_JO9C2.js.br +0 -0
- package/dist/public/assets/_DcNus2Vf2.js.br +0 -0
- package/dist/public/assets/_DcqgsKkp.js.br +0 -0
- package/dist/public/assets/_DgfTg0IW2.js.br +0 -0
- package/dist/public/assets/_DxP9fuIM2.js.br +0 -0
- package/dist/public/assets/_MMZVDI0Q2.js.br +0 -0
- package/dist/public/assets/_QZPTxSDf2.js.br +0 -0
- package/dist/public/assets/_Txji4y3b.js.br +0 -0
- package/dist/public/assets/_VXhkFKrd2.js.br +0 -0
- package/dist/public/assets/_YHDsSm6D.js.br +0 -0
- package/dist/public/assets/_YyV-EVam.js.br +0 -0
- package/dist/public/assets/__T5qbsZi.js.br +0 -0
- package/dist/public/assets/_amMU20AI.js.br +0 -0
- package/dist/public/assets/_bRvxXZbS.js.br +0 -0
- package/dist/public/assets/_dfU2imZ4.js.br +0 -0
- package/dist/public/assets/_fxHb-KbN2.js.br +0 -0
- package/dist/public/assets/_hyQI5FsG.js.br +0 -0
- package/dist/public/assets/_i50DwB9Z2.js.br +0 -0
- package/dist/public/assets/_loA_xJ2W.js.br +0 -0
- package/dist/public/assets/_o-goWiqn.js.br +0 -0
- package/dist/public/assets/_vC8X4_FF.js.br +0 -0
- package/dist/public/assets/_vGqkGb_u.js.br +0 -0
- package/dist/public/assets/_wbLaii1_.js.br +0 -0
- package/dist/public/assets/_x7q187z1.js.br +0 -0
- package/dist/public/assets/_xMSqf4Dz.js.br +0 -0
- package/dist/public/assets/_zIcbcxRV2.js.br +0 -0
- package/dist/public/assets/app-page-BB6oW8H9.css +0 -1
- package/dist/public/assets/app-page-BB6oW8H9.css.br +0 -0
- package/dist/public/assets/diff-view-DU-XDz7X.css +0 -1
- package/dist/public/assets/diff-view-DU-XDz7X.css.br +0 -0
- package/dist/public/assets/new-BmwwujAD.js +0 -1
- package/dist/public/assets/settings-BmwwujAD.js +0 -1
- package/dist/public/assets/w-BmwwujAD.js +0 -1
- package/dist/public/assets/w._-BmwwujAD.js +0 -1
- package/dist/public/assets/w._-DQmoJHNi.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
|
|
3
|
+
import { $ as _await, A as repoLabel, At as _try, B as phase, C as sideNavOpen, Ct as _serialize_guard, D as icon_xmark_default, Dt as _template, E as toast_default, Et as _subscribe, H as $global, I as iconBtnRow, J as _attr_or, K as _attr_input_value, L as iconBtnXs, M as setPrimaryHost, Mt as attrTag, N as btnLg, Nt as withPageAssets, O as icon_base_default, Ot as _to_text, P as btnSm, Pt as writeScope, Q as _attrs_partial, R as inputLg, S as setWorkspaceTab, St as _sep, T as workspaceTab, Tt as _set_serialize_reason, U as _attr, V as tone, W as _attr_class, X as _attr_style, Y as _attr_select_value, Z as _attrs, _t as _resume_branch, at as _el_resume, bt as _scope_with_id, c as icon_arrow_up_default, ct as _flush_head, d as iconBtn$2, dt as _hoist_read_error, et as _content, f as row, ft as _html, gt as _resume, ht as _peek_scope_id, i as icon_sidebar_default, it as _el_read_error, j as repoWebUrl$1, jt as _var, k as parseRepoUrl, kt as _trailers, l as icon_back_default, lt as _for_of, mt as _if, n as findIconBtn, nt as _dynamic_tag, o as rankRepos, ot as _escape, p as sectionCount$1, pt as _id, q as _attr_option_value, r as findInput, s as icon_search_default, st as _existing_scope, t as icon_arrow_down_default, tt as _content_resume, u as icon_refresh_default, ut as _hoist, v as ignoredSsoOrgs, vt as _scope_id, w as theme, wt as _serialize_if, x as setTheme, xt as _script, yt as _scope_reason, z as metaTrunc } from "./_CRHCebx8.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
import path from "node:path";
|
|
@@ -3576,6 +3576,16 @@ function coalesce(fn) {
|
|
|
3576
3576
|
};
|
|
3577
3577
|
}
|
|
3578
3578
|
//#endregion
|
|
3579
|
+
//#region src/tags/connection-pill.marko
|
|
3580
|
+
var connection_pill_default = _template("e", (input) => {
|
|
3581
|
+
_scope_reason();
|
|
3582
|
+
const $scope0_id = _scope_id();
|
|
3583
|
+
_if(() => {}, $scope0_id, "a", 1, 1, 1, 0, 1);
|
|
3584
|
+
_script($scope0_id, "e0");
|
|
3585
|
+
writeScope($scope0_id, {});
|
|
3586
|
+
_resume_branch($scope0_id);
|
|
3587
|
+
});
|
|
3588
|
+
//#endregion
|
|
3579
3589
|
//#region src/client/session.ts
|
|
3580
3590
|
/** When an edge auth proxy (oauth2-proxy, Cloudflare Access, …) drops the
|
|
3581
3591
|
* session, API fetches turn into login HTML and websocket upgrades fail.
|
|
@@ -3694,38 +3704,38 @@ function applyInstance(inst) {
|
|
|
3694
3704
|
}
|
|
3695
3705
|
//#endregion
|
|
3696
3706
|
//#region src/tags/settings-page.css.ts
|
|
3697
|
-
var content$2 = "
|
|
3698
|
-
var agentGrid = "
|
|
3699
|
-
var toolGrid = "
|
|
3707
|
+
var content$2 = "_cc _bm _bn";
|
|
3708
|
+
var agentGrid = "_cg _bx";
|
|
3709
|
+
var toolGrid = "_cq _bx";
|
|
3700
3710
|
//#endregion
|
|
3701
3711
|
//#region src/tags/page-head.marko
|
|
3702
|
-
var page_head_default = _template("
|
|
3712
|
+
var page_head_default = _template("r", (input) => {
|
|
3703
3713
|
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
3714
|
const $scope0_id = _scope_id();
|
|
3705
|
-
_html(`<header${_attr_class("
|
|
3715
|
+
_html(`<header${_attr_class("_bo")}>`);
|
|
3706
3716
|
_if(() => {
|
|
3707
3717
|
if (input.backHref) {
|
|
3708
3718
|
const $scope1_id = _scope_id();
|
|
3709
|
-
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "
|
|
3719
|
+
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_cT"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
3710
3720
|
icon_back_default({ size: 16 });
|
|
3711
3721
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
3712
3722
|
_serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
|
|
3713
3723
|
return 0;
|
|
3714
3724
|
} else if (input.onBack) {
|
|
3715
3725
|
const $scope2_id = _scope_id();
|
|
3716
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
3726
|
+
_html(`<button${_attr_class([iconBtnRow, "_cT"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
3717
3727
|
icon_back_default({ size: 16 });
|
|
3718
3728
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
3719
|
-
_script($scope2_id, "
|
|
3729
|
+
_script($scope2_id, "r0");
|
|
3720
3730
|
writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
3721
3731
|
return 1;
|
|
3722
3732
|
}
|
|
3723
3733
|
}, $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("
|
|
3734
|
+
_html(`<div${_attr_class("_bq")}><h1${_attr("id", input.titleId)}${_attr_class("_bp")}>${_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
3735
|
_if(() => {
|
|
3726
3736
|
if (input.meta) {
|
|
3727
3737
|
const $scope3_id = _scope_id();
|
|
3728
|
-
_html(`<p${_attr_class("
|
|
3738
|
+
_html(`<p${_attr_class("_br")}>`);
|
|
3729
3739
|
_dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
3730
3740
|
_html("</p>");
|
|
3731
3741
|
$si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -3736,7 +3746,7 @@ var page_head_default = _template("q", (input) => {
|
|
|
3736
3746
|
_if(() => {
|
|
3737
3747
|
if (input.actions) {
|
|
3738
3748
|
const $scope4_id = _scope_id();
|
|
3739
|
-
_html(`<div${_attr_class("
|
|
3749
|
+
_html(`<div${_attr_class("_bs")}>`);
|
|
3740
3750
|
_dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
3741
3751
|
_html("</div>");
|
|
3742
3752
|
$si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -3754,7 +3764,7 @@ var page_head_default = _template("q", (input) => {
|
|
|
3754
3764
|
});
|
|
3755
3765
|
//#endregion
|
|
3756
3766
|
//#region src/tags/icons/icon-agent.marko
|
|
3757
|
-
var icon_agent_default = _template("
|
|
3767
|
+
var icon_agent_default = _template("G", (input) => {
|
|
3758
3768
|
const $scope0_reason = _scope_reason(), $sg__input_agent = _serialize_guard($scope0_reason, 2), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0), $si__input_size__OR__input_class = _serialize_if($scope0_reason, 0), $si__input_size__OR__input_agent__OR__input_class = _serialize_if($scope0_reason, 1), $si__input_agent = _serialize_if($scope0_reason, 2);
|
|
3759
3769
|
const $scope0_id = _scope_id();
|
|
3760
3770
|
const $badge__closures = /* @__PURE__ */ new Set();
|
|
@@ -3804,7 +3814,24 @@ var icon_agent_default = _template("F", (input) => {
|
|
|
3804
3814
|
n: $badge__closures
|
|
3805
3815
|
});
|
|
3806
3816
|
});
|
|
3807
|
-
var usageNote = "
|
|
3817
|
+
var usageNote = "_dt _S";
|
|
3818
|
+
//#endregion
|
|
3819
|
+
//#region src/tags/icons/icon-warning.marko
|
|
3820
|
+
var icon_warning_default = _template("ib", (input) => {
|
|
3821
|
+
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
3822
|
+
const $scope0_id = _scope_id();
|
|
3823
|
+
_set_serialize_reason({
|
|
3824
|
+
0: $sg__input_size__OR__input_class,
|
|
3825
|
+
1: $sg__input_size__OR__input_class
|
|
3826
|
+
});
|
|
3827
|
+
const $childScope = _peek_scope_id();
|
|
3828
|
+
icon_base_default({
|
|
3829
|
+
d: "M20.0429 21H3.95705C2.41902 21 1.45658 19.3364 2.22324 18.0031L10.2662 4.01533C11.0352 2.67792 12.9648 2.67791 13.7338 4.01532L21.7768 18.0031C22.5434 19.3364 21.581 21 20.0429 21Z M12 9V13 M12 17.01L12.01 16.9989",
|
|
3830
|
+
size: input.size,
|
|
3831
|
+
class: input.class
|
|
3832
|
+
});
|
|
3833
|
+
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
3834
|
+
});
|
|
3808
3835
|
//#endregion
|
|
3809
3836
|
//#region src/tags/usage-meters.marko
|
|
3810
3837
|
function duration(ms) {
|
|
@@ -3824,15 +3851,15 @@ function resetLabel(iso, stale) {
|
|
|
3824
3851
|
if (ms <= 0) return stale ? null : "now";
|
|
3825
3852
|
return duration(ms);
|
|
3826
3853
|
}
|
|
3827
|
-
var usage_meters_default = _template("
|
|
3854
|
+
var usage_meters_default = _template("D", (input) => {
|
|
3828
3855
|
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
3856
|
const $scope0_id = _scope_id();
|
|
3830
3857
|
const agent = input.agent;
|
|
3831
|
-
_html(`<div${_attr_class(["
|
|
3858
|
+
_html(`<div${_attr_class(["_dn", { ["_do"]: input.hideName }])}><div${_attr_class("_dp")}>`);
|
|
3832
3859
|
_if(() => {
|
|
3833
3860
|
if (!input.hideName) {
|
|
3834
3861
|
const $scope1_id = _scope_id();
|
|
3835
|
-
_html(`<strong${_attr_class("
|
|
3862
|
+
_html(`<strong${_attr_class("_dI")}>${_escape(agent.agent)}${_el_resume($scope1_id, "b", $sg__input_agent)}</strong>`);
|
|
3836
3863
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
3837
3864
|
return 0;
|
|
3838
3865
|
}
|
|
@@ -3840,7 +3867,7 @@ var usage_meters_default = _template("C", (input) => {
|
|
|
3840
3867
|
_if(() => {
|
|
3841
3868
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
3842
3869
|
const $scope2_id = _scope_id();
|
|
3843
|
-
_html(`<span${_attr_class("
|
|
3870
|
+
_html(`<span${_attr_class("_dq")}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope2_id, "b", $sg__input_agent)}</span>`);
|
|
3844
3871
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
3845
3872
|
return 0;
|
|
3846
3873
|
}
|
|
@@ -3848,20 +3875,35 @@ var usage_meters_default = _template("C", (input) => {
|
|
|
3848
3875
|
_if(() => {
|
|
3849
3876
|
if (agent.stale_seconds != null) {
|
|
3850
3877
|
const $scope3_id = _scope_id();
|
|
3851
|
-
_html(`<span${_attr_class("
|
|
3878
|
+
_html(`<span${_attr_class("_dr")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
|
|
3879
|
+
icon_warning_default({ size: 12 });
|
|
3880
|
+
_html(` ${_sep($sg__input_agent)}${_escape(duration(agent.stale_seconds * 1e3))}${_el_resume($scope3_id, "c", $sg__input_agent)} old</span>${_el_resume($scope3_id, "a", $sg__input_agent)}`);
|
|
3852
3881
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
3853
3882
|
return 0;
|
|
3854
3883
|
}
|
|
3855
3884
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
3856
|
-
_html(`</div><div${_attr_class(["
|
|
3885
|
+
_html(`</div><div${_attr_class(["_ds", { ["_dJ"]: agent.stale_seconds != null }])}>`);
|
|
3857
3886
|
_for_of(agent.windows || [], (win) => {
|
|
3858
3887
|
const $scope4_id = _scope_id();
|
|
3859
3888
|
const pct = pctText$1(win.used_percent);
|
|
3860
3889
|
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("
|
|
3864
|
-
|
|
3890
|
+
const fillClass = win.used_percent >= 90 ? "_dB" : win.used_percent >= 70 ? "_dA" : win.used_percent >= 40 ? "_dz" : "_dy";
|
|
3891
|
+
const pctClass = win.used_percent >= 90 ? "_dG" : win.used_percent >= 70 ? "_dF" : win.used_percent >= 40 ? "_dE" : "_dD";
|
|
3892
|
+
_html(`<div${_attr_class("_du")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_dv")}>${_escape(win.window)}${_el_resume($scope4_id, "c", $sg__input_agent)}</span><span${_attr_class("_dw")}><span${_attr_class(["_dx", 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(["_dC", pctClass])}>${_escape(pct)}${_el_resume($scope4_id, "g", $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_dH")}>`);
|
|
3893
|
+
_if(() => {
|
|
3894
|
+
if (label) {
|
|
3895
|
+
const $scope6_id = _scope_id();
|
|
3896
|
+
icon_refresh_default({ size: 12 });
|
|
3897
|
+
_html(` ${_sep($sg__input_agent)}${_escape(label)}${_el_resume($scope6_id, "b", $sg__input_agent)}`);
|
|
3898
|
+
$si__input_agent && writeScope($scope6_id, { _: _scope_with_id($scope4_id) });
|
|
3899
|
+
return 0;
|
|
3900
|
+
}
|
|
3901
|
+
}, $scope4_id, "h", $sg__input_agent, $sg__input_agent, $sg__input_agent, "</span>");
|
|
3902
|
+
_html(`</div>${_el_resume($scope4_id, "a", $sg__input_agent)}`);
|
|
3903
|
+
$si__input_agent && writeScope($scope4_id, {
|
|
3904
|
+
q: label,
|
|
3905
|
+
_: _scope_with_id($scope0_id)
|
|
3906
|
+
});
|
|
3865
3907
|
}, "window", $scope0_id, "g", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
3866
3908
|
_if(() => {
|
|
3867
3909
|
if (agent.note) {
|
|
@@ -3883,7 +3925,7 @@ var usage_meters_default = _template("C", (input) => {
|
|
|
3883
3925
|
//#region src/tags/sso-auth.marko
|
|
3884
3926
|
var api$7;
|
|
3885
3927
|
var watchProgress$2;
|
|
3886
|
-
var sso_auth_default = _template("
|
|
3928
|
+
var sso_auth_default = _template("z", (input) => {
|
|
3887
3929
|
const $scope0_reason = _scope_reason(), $sg__input_items = _serialize_guard($scope0_reason, 2), $sg__input_skipped = _serialize_guard($scope0_reason, 1), $sg__input_skipped__OR__input_items_length = _serialize_guard($scope0_reason, 0), $si__input_items_0_host = _serialize_if($scope0_reason, 3);
|
|
3888
3930
|
const $scope0_id = _scope_id();
|
|
3889
3931
|
const $busy__closures = /* @__PURE__ */ new Set();
|
|
@@ -3925,40 +3967,40 @@ var sso_auth_default = _template("y", (input) => {
|
|
|
3925
3967
|
localBusy = false;
|
|
3926
3968
|
localCode = null;
|
|
3927
3969
|
}
|
|
3928
|
-
}, "
|
|
3929
|
-
_html(`<div${_attr_class("
|
|
3970
|
+
}, "z0", $scope0_id);
|
|
3971
|
+
_html(`<div${_attr_class("_c_")}>`);
|
|
3930
3972
|
_if(() => {
|
|
3931
3973
|
if (input.items.length) {
|
|
3932
3974
|
const $scope1_id = _scope_id();
|
|
3933
|
-
_html(`<p${_attr_class("
|
|
3975
|
+
_html(`<p${_attr_class("_dk")}>GitHub CLI needs org SSO for ${_sep($sg__input_items)}${_escape(input.items.map((s) => s.org).join(", "))}${_el_resume($scope1_id, "b", $sg__input_items)}.</p><ul${_attr_class("_da")}>`);
|
|
3934
3976
|
_for_of(input.items, (s) => {
|
|
3935
3977
|
const $scope2_id = _scope_id();
|
|
3936
|
-
_html(`<li${_attr_class("
|
|
3978
|
+
_html(`<li${_attr_class("_db")}>${_escape(s.org)}${_el_resume($scope2_id, "b", $sg__input_items)}<button type=button${_attr_class("_dc")}${_attr("title", `Skip ${s.org}`)}${_attr("aria-label", `Skip ${s.org}`)}${_attr("disabled", busy)}>`);
|
|
3937
3979
|
icon_xmark_default({ size: 11 });
|
|
3938
3980
|
_html(`</button>${_el_resume($scope2_id, "c")}</li>`);
|
|
3939
|
-
_script($scope2_id, "
|
|
3981
|
+
_script($scope2_id, "z1");
|
|
3940
3982
|
_subscribe($busy__closures, writeScope($scope2_id, {
|
|
3941
3983
|
g: s?.org,
|
|
3942
3984
|
_: _scope_with_id($scope1_id)
|
|
3943
3985
|
}));
|
|
3944
3986
|
}, "org", $scope1_id, "c", $sg__input_items, $sg__input_items, $sg__input_items, "</ul>", 1);
|
|
3945
|
-
_html(`<div${_attr_class("
|
|
3987
|
+
_html(`<div${_attr_class("_dd")}>`);
|
|
3946
3988
|
_if(() => {
|
|
3947
3989
|
if (busy && authCode$2) {
|
|
3948
3990
|
const $scope5_id = _scope_id();
|
|
3949
|
-
_html(`<span${_attr_class("
|
|
3950
|
-
_script($scope5_id, "
|
|
3991
|
+
_html(`<span${_attr_class("_de")}><span${_attr_class("_F")}></span> Enter code <strong${_attr_class("_df")}>${_escape(authCode$2)}${_el_resume($scope5_id, "d")}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_dg")}>${_escape(host)}${_el_resume($scope5_id, "f", _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope5_id, "e")}</span>`);
|
|
3992
|
+
_script($scope5_id, "z2");
|
|
3951
3993
|
_subscribe($authCode__closures, _subscribe($si__input_items_0_host && $host__closures, writeScope($scope5_id, {})));
|
|
3952
3994
|
return 0;
|
|
3953
3995
|
} else if (busy) {
|
|
3954
3996
|
const $scope8_id = _scope_id();
|
|
3955
|
-
_html(`<span${_attr_class("
|
|
3997
|
+
_html(`<span${_attr_class("_de")}><span${_attr_class("_F")}></span>Starting GitHub re-authorization…</span>`);
|
|
3956
3998
|
writeScope($scope8_id, {});
|
|
3957
3999
|
return 1;
|
|
3958
4000
|
} else {
|
|
3959
4001
|
const $scope7_id = _scope_id();
|
|
3960
4002
|
_html(`<button type=button${_attr_class(btnSm)} title="Re-authorize GitHub CLI (same device flow as Sign in)">Authorize SSO</button>${_el_resume($scope7_id, "a")}`);
|
|
3961
|
-
_script($scope7_id, "
|
|
4003
|
+
_script($scope7_id, "z3");
|
|
3962
4004
|
writeScope($scope7_id, {});
|
|
3963
4005
|
return 2;
|
|
3964
4006
|
}
|
|
@@ -3966,7 +4008,7 @@ var sso_auth_default = _template("y", (input) => {
|
|
|
3966
4008
|
_if(() => {
|
|
3967
4009
|
if (localError) {
|
|
3968
4010
|
const $scope6_id = _scope_id();
|
|
3969
|
-
_html(`<p${_attr_class("
|
|
4011
|
+
_html(`<p${_attr_class("_dk")}>${_escape(localError)}${_el_resume($scope6_id, "b")}</p>`);
|
|
3970
4012
|
_subscribe($localError__closures, writeScope($scope6_id, {}));
|
|
3971
4013
|
return 0;
|
|
3972
4014
|
}
|
|
@@ -3978,11 +4020,11 @@ var sso_auth_default = _template("y", (input) => {
|
|
|
3978
4020
|
_if(() => {
|
|
3979
4021
|
if (skipped$1.length) {
|
|
3980
4022
|
const $scope3_id = _scope_id();
|
|
3981
|
-
_html(`<p${_attr_class("
|
|
4023
|
+
_html(`<p${_attr_class("_dh")}>Skipped SSO for `);
|
|
3982
4024
|
_for_of(skipped$1, (s) => {
|
|
3983
4025
|
const $scope4_id = _scope_id();
|
|
3984
|
-
_html(`<span${_attr_class("
|
|
3985
|
-
_script($scope4_id, "
|
|
4026
|
+
_html(`<span${_attr_class("_di")}>${_escape(s.org)}${_el_resume($scope4_id, "b", $sg__input_skipped)}<button type=button${_attr_class("_dj")}${_attr("title", `Show ${s.org} again`)}>(undo)</button>${_el_resume($scope4_id, "c")}</span>`);
|
|
4027
|
+
_script($scope4_id, "z4");
|
|
3986
4028
|
writeScope($scope4_id, {
|
|
3987
4029
|
f: s?.org,
|
|
3988
4030
|
_: _scope_with_id($scope3_id)
|
|
@@ -4018,7 +4060,7 @@ var sso_auth_default = _template("y", (input) => {
|
|
|
4018
4060
|
});
|
|
4019
4061
|
//#endregion
|
|
4020
4062
|
//#region src/tags/icons/icon-plus.marko
|
|
4021
|
-
var icon_plus_default = _template("
|
|
4063
|
+
var icon_plus_default = _template("bb", (input) => {
|
|
4022
4064
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
4023
4065
|
const $scope0_id = _scope_id();
|
|
4024
4066
|
_set_serialize_reason({
|
|
@@ -4035,7 +4077,7 @@ var icon_plus_default = _template("S", (input) => {
|
|
|
4035
4077
|
});
|
|
4036
4078
|
//#endregion
|
|
4037
4079
|
//#region src/tags/dialog-close.marko
|
|
4038
|
-
var dialog_close_default = _template("
|
|
4080
|
+
var dialog_close_default = _template("f", (input) => {
|
|
4039
4081
|
const $scope0_reason = _scope_reason();
|
|
4040
4082
|
const $scope0_id = _scope_id();
|
|
4041
4083
|
const { content, ...htmlInput } = input;
|
|
@@ -4045,18 +4087,18 @@ var dialog_close_default = _template("e", (input) => {
|
|
|
4045
4087
|
}, "a", $scope0_id, "button")}>`);
|
|
4046
4088
|
_dynamic_tag($scope0_id, "b", content, {}, 0, 0, _serialize_guard($scope0_reason, 0));
|
|
4047
4089
|
_html(`</button>${_el_resume($scope0_id, "a")}`);
|
|
4048
|
-
_script($scope0_id, "
|
|
4090
|
+
_script($scope0_id, "f0");
|
|
4049
4091
|
writeScope($scope0_id, {});
|
|
4050
4092
|
});
|
|
4051
4093
|
//#endregion
|
|
4052
4094
|
//#region src/tags/modal-view.marko
|
|
4053
|
-
var modal_view_default = _template("
|
|
4095
|
+
var modal_view_default = _template("p", (input) => {
|
|
4054
4096
|
const $scope0_reason = _scope_reason(), $si__input_openChange__OR__input_footer = _serialize_if($scope0_reason, 1), $sg__input_openChange__OR__input_footer = _serialize_guard($scope0_reason, 1), $si__input_openChange = _serialize_if($scope0_reason, 5);
|
|
4055
4097
|
const $scope0_id = _scope_id();
|
|
4056
4098
|
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
4099
|
const dismissable = input.dismissable !== false;
|
|
4058
4100
|
let open = input.open;
|
|
4059
|
-
_html(`<dialog${_attr_class(["
|
|
4101
|
+
_html(`<dialog${_attr_class(["_fn", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
4060
4102
|
...htmlInput,
|
|
4061
4103
|
open: null
|
|
4062
4104
|
}, {
|
|
@@ -4066,23 +4108,23 @@ var modal_view_default = _template("o", (input) => {
|
|
|
4066
4108
|
closedby: 1,
|
|
4067
4109
|
"on-cancel": 1,
|
|
4068
4110
|
"on-close": 1
|
|
4069
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
4111
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_fo")}>`);
|
|
4070
4112
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
4071
4113
|
_html("</div>");
|
|
4072
4114
|
_if(() => {
|
|
4073
4115
|
if (footer) {
|
|
4074
4116
|
const $scope1_id = _scope_id();
|
|
4075
|
-
_html(`<form method=dialog${_attr_class("
|
|
4117
|
+
_html(`<form method=dialog${_attr_class("_fp")}>`);
|
|
4076
4118
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
4077
4119
|
_html("</form>");
|
|
4078
4120
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
4079
4121
|
return 0;
|
|
4080
4122
|
} else if (input.openChange) {
|
|
4081
4123
|
const $scope2_id = _scope_id();
|
|
4082
|
-
_html(`<form method=dialog${_attr_class("
|
|
4124
|
+
_html(`<form method=dialog${_attr_class("_fp")}>`);
|
|
4083
4125
|
dialog_close_default({
|
|
4084
4126
|
class: ["_o", "_p"],
|
|
4085
|
-
content: _content("
|
|
4127
|
+
content: _content("p0", () => {
|
|
4086
4128
|
_scope_reason();
|
|
4087
4129
|
_scope_id();
|
|
4088
4130
|
_html("Done");
|
|
@@ -4094,9 +4136,9 @@ var modal_view_default = _template("o", (input) => {
|
|
|
4094
4136
|
}
|
|
4095
4137
|
}, $scope0_id, "d", $sg__input_openChange__OR__input_footer, $sg__input_openChange__OR__input_footer, $sg__input_openChange__OR__input_footer, 0, 1);
|
|
4096
4138
|
_html(`</dialog>${_el_resume($scope0_id, "a")}`);
|
|
4097
|
-
_script($scope0_id, "
|
|
4098
|
-
_script($scope0_id, "
|
|
4099
|
-
_script($scope0_id, "
|
|
4139
|
+
_script($scope0_id, "p1");
|
|
4140
|
+
_script($scope0_id, "p2");
|
|
4141
|
+
_script($scope0_id, "p3");
|
|
4100
4142
|
writeScope($scope0_id, {
|
|
4101
4143
|
h: $si__input_openChange && input.open,
|
|
4102
4144
|
i: _serialize_if($scope0_reason, 0) && input.openChange,
|
|
@@ -4114,7 +4156,7 @@ var modal_view_default = _template("o", (input) => {
|
|
|
4114
4156
|
});
|
|
4115
4157
|
//#endregion
|
|
4116
4158
|
//#region src/tags/prompt-dialog.marko
|
|
4117
|
-
var prompt_dialog_default = _template("
|
|
4159
|
+
var prompt_dialog_default = _template("s", (input) => {
|
|
4118
4160
|
const $scope0_reason = _scope_reason(), $sg__input_label = _serialize_guard($scope0_reason, 1), $sg__input_openChange = _serialize_guard($scope0_reason, 3), $si__input_submitLabel = _serialize_if($scope0_reason, 4), $si__input_label = _serialize_if($scope0_reason, 1), $si__input_placeholder = _serialize_if($scope0_reason, 5);
|
|
4119
4161
|
const $scope0_id = _scope_id();
|
|
4120
4162
|
const $modalview_content__subscribers = /* @__PURE__ */ new Set();
|
|
@@ -4126,7 +4168,7 @@ var prompt_dialog_default = _template("r", (input) => {
|
|
|
4126
4168
|
const submit = _resume(() => {
|
|
4127
4169
|
const v = value.trim();
|
|
4128
4170
|
if (v) input.onSubmit(v);
|
|
4129
|
-
}, "
|
|
4171
|
+
}, "s1", $scope0_id);
|
|
4130
4172
|
const titleId = _id();
|
|
4131
4173
|
_set_serialize_reason({
|
|
4132
4174
|
0: _serialize_guard($scope0_reason, 2),
|
|
@@ -4138,33 +4180,33 @@ var prompt_dialog_default = _template("r", (input) => {
|
|
|
4138
4180
|
const $childScope = _peek_scope_id();
|
|
4139
4181
|
modal_view_default({
|
|
4140
4182
|
label: input.label,
|
|
4141
|
-
class: "
|
|
4183
|
+
class: "_dl",
|
|
4142
4184
|
open: input.open,
|
|
4143
4185
|
openChange: input.openChange,
|
|
4144
4186
|
"aria-labelledby": titleId,
|
|
4145
|
-
footer: attrTag({ content: _content_resume("
|
|
4187
|
+
footer: attrTag({ content: _content_resume("s5", () => {
|
|
4146
4188
|
_scope_reason();
|
|
4147
4189
|
const $scope1_id = _scope_id();
|
|
4148
4190
|
_html(`<button type=button${_attr_class(["_o", "_p"])}${_attr("disabled", !value.trim())}>${_escape(input.submitLabel || "OK")}${_el_resume($scope1_id, "b", _serialize_guard($scope0_reason, 4))}</button>${_el_resume($scope1_id, "a")}<div${_attr_class("_y")}></div>`);
|
|
4149
4191
|
dialog_close_default({
|
|
4150
4192
|
class: "_o",
|
|
4151
|
-
content: _content("
|
|
4193
|
+
content: _content("s2", () => {
|
|
4152
4194
|
_scope_reason();
|
|
4153
4195
|
_scope_id();
|
|
4154
4196
|
_html("Cancel");
|
|
4155
4197
|
}, $scope1_id)
|
|
4156
4198
|
});
|
|
4157
|
-
_script($scope1_id, "
|
|
4199
|
+
_script($scope1_id, "s3");
|
|
4158
4200
|
_subscribe($value__closures, _subscribe($si__input_submitLabel && $input_submitLabel__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })));
|
|
4159
4201
|
_resume_branch($scope1_id);
|
|
4160
4202
|
}, $scope0_id) }),
|
|
4161
|
-
content: _content("
|
|
4203
|
+
content: _content("s6", () => {
|
|
4162
4204
|
_scope_reason();
|
|
4163
4205
|
const $scope2_id = _scope_id();
|
|
4164
|
-
_html(`<h2${_attr_class("
|
|
4206
|
+
_html(`<h2${_attr_class("_dm")}${_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
4207
|
value = _new_value;
|
|
4166
|
-
}, "
|
|
4167
|
-
_script($scope2_id, "
|
|
4208
|
+
}, "s0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
4209
|
+
_script($scope2_id, "s4");
|
|
4168
4210
|
_subscribe($value__closures, _subscribe($si__input_placeholder && $input_placeholder__closures, _subscribe($si__input_label && $input_label__closures, _subscribe($modalview_content__subscribers, writeScope($scope2_id, {
|
|
4169
4211
|
_: _scope_with_id($scope0_id),
|
|
4170
4212
|
Cr: 1
|
|
@@ -4172,7 +4214,7 @@ var prompt_dialog_default = _template("r", (input) => {
|
|
|
4172
4214
|
_resume_branch($scope2_id);
|
|
4173
4215
|
}, $scope0_id)
|
|
4174
4216
|
});
|
|
4175
|
-
_script($scope0_id, "
|
|
4217
|
+
_script($scope0_id, "s7");
|
|
4176
4218
|
writeScope($scope0_id, {
|
|
4177
4219
|
e: input.onSubmit,
|
|
4178
4220
|
h: input.openChange,
|
|
@@ -4201,7 +4243,7 @@ function familyOf(usageAgent, families) {
|
|
|
4201
4243
|
}
|
|
4202
4244
|
var lastSetup = null;
|
|
4203
4245
|
var lastUsage = null;
|
|
4204
|
-
var settings_page_default = _template("
|
|
4246
|
+
var settings_page_default = _template("v", (input) => {
|
|
4205
4247
|
const $scope0_reason = _scope_reason(), $sg__input_backHref__OR__input_onExit = _serialize_guard($scope0_reason, 1), $sg__input_agents = _serialize_guard($scope0_reason, 5), $sg__input_instance_accent = _serialize_guard($scope0_reason, 6), $si__input_instance__OR__input_instanceChange = _serialize_if($scope0_reason, 0), $si__input_preferred = _serialize_if($scope0_reason, 3), $si__input_setupChange = _serialize_if($scope0_reason, 2);
|
|
4206
4248
|
const $scope0_id = _scope_id();
|
|
4207
4249
|
const $setup_missing__closures = /* @__PURE__ */ new Set();
|
|
@@ -4242,35 +4284,35 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4242
4284
|
themeMode = mode;
|
|
4243
4285
|
setTheme(mode);
|
|
4244
4286
|
applyTheme(mode);
|
|
4245
|
-
}, "
|
|
4287
|
+
}, "v5", $scope0_id);
|
|
4246
4288
|
const selfUpdatePending = !!(self && !selfUpdating && self.install !== "source" && self.latest && self.latest !== self.version);
|
|
4247
4289
|
const applySetup = _resume((s) => {
|
|
4248
4290
|
setup = s;
|
|
4249
4291
|
lastSetup = s;
|
|
4250
4292
|
setPrimaryHost(s.github);
|
|
4251
4293
|
input.setupChange?.(s);
|
|
4252
|
-
}, "
|
|
4294
|
+
}, "v6", $scope0_id);
|
|
4253
4295
|
const syncAgents = _resume(async () => {
|
|
4254
4296
|
try {
|
|
4255
4297
|
const snap = await api$6("/api/settings");
|
|
4256
4298
|
input.agentsChange?.(snap.agents);
|
|
4257
4299
|
if (snap.preferredAgent !== input.preferred) input.preferredChange?.(snap.preferredAgent);
|
|
4258
4300
|
} catch {}
|
|
4259
|
-
}, "
|
|
4301
|
+
}, "v7", $scope0_id);
|
|
4260
4302
|
const loadSetup = _resume(async (refresh) => {
|
|
4261
4303
|
try {
|
|
4262
4304
|
applySetup(await api$6(`/api/setup${refresh ? "?refresh" : ""}`));
|
|
4263
4305
|
} catch (err) {
|
|
4264
4306
|
error = String(err.message || err);
|
|
4265
4307
|
}
|
|
4266
|
-
}, "
|
|
4308
|
+
}, "v8", $scope0_id);
|
|
4267
4309
|
const loadSelf = _resume(async (refresh) => {
|
|
4268
4310
|
try {
|
|
4269
4311
|
const info = await api$6(`/api/setup/self${refresh ? "?refresh" : ""}`);
|
|
4270
4312
|
self = info;
|
|
4271
4313
|
if (info.updating) selfUpdating = true;
|
|
4272
4314
|
} catch {}
|
|
4273
|
-
}, "
|
|
4315
|
+
}, "v9", $scope0_id);
|
|
4274
4316
|
const updateSelf = _resume(async () => {
|
|
4275
4317
|
if (!self || selfUpdating) return;
|
|
4276
4318
|
selfUpdating = true;
|
|
@@ -4294,7 +4336,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4294
4336
|
else selfUpdating = false;
|
|
4295
4337
|
};
|
|
4296
4338
|
setTimeout(tick, 4e3);
|
|
4297
|
-
}, "
|
|
4339
|
+
}, "v10", $scope0_id);
|
|
4298
4340
|
const loadUsage = _resume(async (refresh) => {
|
|
4299
4341
|
try {
|
|
4300
4342
|
usage = await api$6(`/api/usage${refresh ? "?refresh" : ""}`);
|
|
@@ -4302,23 +4344,23 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4302
4344
|
usage = { error: String(err.message || err) };
|
|
4303
4345
|
}
|
|
4304
4346
|
lastUsage = usage;
|
|
4305
|
-
}, "
|
|
4347
|
+
}, "v11", $scope0_id);
|
|
4306
4348
|
const refresh = _resume(async () => {
|
|
4307
4349
|
refreshing = true;
|
|
4308
4350
|
await Promise.all([loadSetup(true), loadSelf(true)]);
|
|
4309
4351
|
refreshing = false;
|
|
4310
|
-
}, "
|
|
4352
|
+
}, "v12", $scope0_id);
|
|
4311
4353
|
const refreshUsage = _resume(async () => {
|
|
4312
4354
|
usageRefreshing = true;
|
|
4313
4355
|
await loadUsage(true);
|
|
4314
4356
|
usageRefreshing = false;
|
|
4315
|
-
}, "
|
|
4357
|
+
}, "v13", $scope0_id);
|
|
4316
4358
|
const setActive = _resume((id, line) => {
|
|
4317
4359
|
const next = new Map(active);
|
|
4318
4360
|
if (line === null) next.delete(id);
|
|
4319
4361
|
else next.set(id, line);
|
|
4320
4362
|
active = next;
|
|
4321
|
-
}, "
|
|
4363
|
+
}, "v14", $scope0_id);
|
|
4322
4364
|
const run = _resume(async (id, action, version) => {
|
|
4323
4365
|
if (active.has(id)) return;
|
|
4324
4366
|
error = null;
|
|
@@ -4349,7 +4391,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4349
4391
|
watcher.stop();
|
|
4350
4392
|
setActive(id, null);
|
|
4351
4393
|
}
|
|
4352
|
-
}, "
|
|
4394
|
+
}, "v15", $scope0_id);
|
|
4353
4395
|
const changeHost = _resume(async (host, remove) => {
|
|
4354
4396
|
hostBusy = true;
|
|
4355
4397
|
error = null;
|
|
@@ -4368,10 +4410,10 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4368
4410
|
} finally {
|
|
4369
4411
|
hostBusy = false;
|
|
4370
4412
|
}
|
|
4371
|
-
}, "
|
|
4413
|
+
}, "v16", $scope0_id);
|
|
4372
4414
|
const runEach = _resume(async (ids, action) => {
|
|
4373
4415
|
for (const id of ids) await run(id, action);
|
|
4374
|
-
}, "
|
|
4416
|
+
}, "v17", $scope0_id);
|
|
4375
4417
|
const setPreferred = _resume(async (agent) => {
|
|
4376
4418
|
input.preferredChange?.(agent);
|
|
4377
4419
|
try {
|
|
@@ -4383,7 +4425,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4383
4425
|
} catch (err) {
|
|
4384
4426
|
error = String(err.message || err);
|
|
4385
4427
|
}
|
|
4386
|
-
}, "
|
|
4428
|
+
}, "v18", $scope0_id);
|
|
4387
4429
|
const saveTimer = { id: 0 };
|
|
4388
4430
|
const setInstance = _resume((patch) => {
|
|
4389
4431
|
const next = {
|
|
@@ -4408,7 +4450,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4408
4450
|
error = String(err.message || err);
|
|
4409
4451
|
}
|
|
4410
4452
|
}, 300);
|
|
4411
|
-
}, "
|
|
4453
|
+
}, "v19", $scope0_id);
|
|
4412
4454
|
const setEnabled = _resume(async (id, on) => {
|
|
4413
4455
|
if (!setup) return;
|
|
4414
4456
|
const off = new Set(setup.agents.flatMap((f) => f.instances.filter((i) => !i.enabled).map((i) => i.id)));
|
|
@@ -4435,7 +4477,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4435
4477
|
} catch (err) {
|
|
4436
4478
|
error = String(err.message || err);
|
|
4437
4479
|
}
|
|
4438
|
-
}, "
|
|
4480
|
+
}, "v20", $scope0_id);
|
|
4439
4481
|
const search = _resume((q) => {
|
|
4440
4482
|
query = q;
|
|
4441
4483
|
clearTimeout(searchTimer.id);
|
|
@@ -4455,23 +4497,23 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4455
4497
|
if (query === q) searching = false;
|
|
4456
4498
|
}
|
|
4457
4499
|
}, 250);
|
|
4458
|
-
}, "
|
|
4459
|
-
const outdated = _resume((t) => !!(t.installed && t.latest && t.latest !== t.version), "
|
|
4500
|
+
}, "v0", $scope0_id);
|
|
4501
|
+
const outdated = _resume((t) => !!(t.installed && t.latest && t.latest !== t.version), "v21");
|
|
4460
4502
|
const tools = setup?.tools || [];
|
|
4461
4503
|
const missingInstallable = tools.filter((t) => t.recommended && !t.installed && t.installable);
|
|
4462
4504
|
const missingCount = tools.filter((t) => t.recommended && !t.installed).length;
|
|
4463
4505
|
const outdatedIds = tools.filter(outdated).map((t) => t.id);
|
|
4464
4506
|
const families = setup?.agents || [];
|
|
4465
4507
|
const instanceIds = new Set(families.flatMap((f) => f.instances.map((i) => i.id)));
|
|
4466
|
-
const accountsFor = _resume((id) => (usage?.agents || []).filter((u) => u.agent === id), "
|
|
4467
|
-
const strayAccountsFor = _resume((f) => (usage?.agents || []).filter((u) => !instanceIds.has(u.agent) && familyOf(u.agent, families) === f.id), "
|
|
4508
|
+
const accountsFor = _resume((id) => (usage?.agents || []).filter((u) => u.agent === id), "v22", $scope0_id);
|
|
4509
|
+
const strayAccountsFor = _resume((f) => (usage?.agents || []).filter((u) => !instanceIds.has(u.agent) && familyOf(u.agent, families) === f.id), "v23", $scope0_id);
|
|
4468
4510
|
const otherUsage = (usage?.agents || []).filter((u) => familyOf(u.agent, families) === null);
|
|
4469
4511
|
const titleId = _id();
|
|
4470
4512
|
const agentsId = _id();
|
|
4471
4513
|
const appearanceId = _id();
|
|
4472
4514
|
const githubId = _id();
|
|
4473
4515
|
const machineId = _id();
|
|
4474
|
-
_html(`<div${_attr_class("
|
|
4516
|
+
_html(`<div${_attr_class("_bk")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bl")}><div${_attr_class(content$2)}>`);
|
|
4475
4517
|
_set_serialize_reason({
|
|
4476
4518
|
0: _serialize_guard($scope0_reason, 4),
|
|
4477
4519
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -4483,8 +4525,8 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4483
4525
|
title: "Settings",
|
|
4484
4526
|
titleId,
|
|
4485
4527
|
backHref: input.backHref,
|
|
4486
|
-
onBack: input.onExit && _resume(() => input.onExit?.(), "
|
|
4487
|
-
meta: attrTag({ content: _content_resume("
|
|
4528
|
+
onBack: input.onExit && _resume(() => input.onExit?.(), "v24", $scope0_id),
|
|
4529
|
+
meta: attrTag({ content: _content_resume("v32", () => {
|
|
4488
4530
|
_scope_reason();
|
|
4489
4531
|
const $scope5_id = _scope_id();
|
|
4490
4532
|
_if(() => {
|
|
@@ -4495,12 +4537,12 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4495
4537
|
return 0;
|
|
4496
4538
|
} else if (setup.ready) {
|
|
4497
4539
|
const $scope52_id = _scope_id();
|
|
4498
|
-
_html(`<span${_attr_class("
|
|
4540
|
+
_html(`<span${_attr_class("_ce")}>Ready</span>. Tools, GitHub, and an agent are all in place.`);
|
|
4499
4541
|
writeScope($scope52_id, {});
|
|
4500
4542
|
return 1;
|
|
4501
4543
|
} else {
|
|
4502
4544
|
const $scope6_id = _scope_id();
|
|
4503
|
-
_html(`<span${_attr_class("
|
|
4545
|
+
_html(`<span${_attr_class("_cf")}>Not ready</span>. Missing <!>${_escape(setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "))}${_el_resume($scope6_id, "b")}.`);
|
|
4504
4546
|
_subscribe($setup_missing__closures, writeScope($scope6_id, {}));
|
|
4505
4547
|
return 2;
|
|
4506
4548
|
}
|
|
@@ -4508,7 +4550,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4508
4550
|
_subscribe($setup2__closures, writeScope($scope5_id, { _: _scope_with_id($scope0_id) }));
|
|
4509
4551
|
_resume_branch($scope5_id);
|
|
4510
4552
|
}, $scope0_id) }),
|
|
4511
|
-
actions: attrTag({ content: _content_resume("
|
|
4553
|
+
actions: attrTag({ content: _content_resume("v33", () => {
|
|
4512
4554
|
_scope_reason();
|
|
4513
4555
|
const $scope10_id = _scope_id();
|
|
4514
4556
|
_html(`<button${_attr_class(iconBtnRow)} title="Re-check this machine" aria-label="Re-check this machine"${_attr("disabled", refreshing)}>`);
|
|
@@ -4519,7 +4561,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4519
4561
|
class: refreshing && "_E"
|
|
4520
4562
|
});
|
|
4521
4563
|
_html(`</button>${_el_resume($scope10_id, "a")}`);
|
|
4522
|
-
_script($scope10_id, "
|
|
4564
|
+
_script($scope10_id, "v31");
|
|
4523
4565
|
_subscribe($refreshing__closures, writeScope($scope10_id, {
|
|
4524
4566
|
_: _scope_with_id($scope0_id),
|
|
4525
4567
|
b: _existing_scope($childScope)
|
|
@@ -4534,8 +4576,8 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4534
4576
|
placement: "inline",
|
|
4535
4577
|
onDismiss: _resume(function() {
|
|
4536
4578
|
error = null;
|
|
4537
|
-
}, "
|
|
4538
|
-
content: _content_resume("
|
|
4579
|
+
}, "v25", $scope8_id),
|
|
4580
|
+
content: _content_resume("v34", () => {
|
|
4539
4581
|
_scope_reason();
|
|
4540
4582
|
const $scope9_id = _scope_id();
|
|
4541
4583
|
_html(`${_escape(error)}${_el_resume($scope9_id, "a")}`);
|
|
@@ -4550,16 +4592,16 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4550
4592
|
_if(() => {
|
|
4551
4593
|
if (selfUpdatePending || selfUpdating) {
|
|
4552
4594
|
const $scope37_id = _scope_id();
|
|
4553
|
-
_html(`<div${_attr_class("
|
|
4595
|
+
_html(`<div${_attr_class("_cJ")} role=status><div${_attr_class("_cK")}>`);
|
|
4554
4596
|
_if(() => {
|
|
4555
4597
|
if (selfUpdating) {
|
|
4556
4598
|
const $scope53_id = _scope_id();
|
|
4557
|
-
_html(`<span${_attr_class("
|
|
4599
|
+
_html(`<span${_attr_class("_cL")}><span${_attr_class("_F")}></span> Updating work…</span><span${_attr_class("_cM")}>The app restarts and reloads when it is done.</span>`);
|
|
4558
4600
|
writeScope($scope53_id, {});
|
|
4559
4601
|
return 0;
|
|
4560
4602
|
} else {
|
|
4561
4603
|
const $scope38_id = _scope_id();
|
|
4562
|
-
_html(`<span${_attr_class("
|
|
4604
|
+
_html(`<span${_attr_class("_cL")}>Update available</span><span${_attr_class("_cM")}>v<!>${_escape(self.version)}${_el_resume($scope38_id, "c")} → v<!>${_escape(self.latest)}${_el_resume($scope38_id, "d")}</span>`);
|
|
4563
4605
|
_subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($scope38_id, {})));
|
|
4564
4606
|
return 1;
|
|
4565
4607
|
}
|
|
@@ -4568,7 +4610,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4568
4610
|
if (!selfUpdating) {
|
|
4569
4611
|
const $scope39_id = _scope_id();
|
|
4570
4612
|
_html(`<button${_attr_class(["_o", "_p"])}${_attr("title", `Update work to v${self.latest} and restart`)}>Update and restart</button>${_el_resume($scope39_id, "a")}`);
|
|
4571
|
-
_script($scope39_id, "
|
|
4613
|
+
_script($scope39_id, "v35");
|
|
4572
4614
|
_subscribe($self_latest__closures, writeScope($scope39_id, { Ce9: 1 }));
|
|
4573
4615
|
return 0;
|
|
4574
4616
|
}
|
|
@@ -4578,11 +4620,11 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4578
4620
|
return 0;
|
|
4579
4621
|
}
|
|
4580
4622
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
4581
|
-
_html(`<section${_attr_class("
|
|
4623
|
+
_html(`<section${_attr_class("_bu")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bv")}><h2${_attr("id", agentsId)}${_attr_class("_bJ")}>Agents</h2><div${_attr_class("_y")}></div><label${_attr_class("_ci")}><span${_attr_class("_S")}>Default</span><span${_attr_class("_m")}>`);
|
|
4582
4624
|
_attr_select_value($scope0_id, "n", input.preferred, _resume(function(v) {
|
|
4583
4625
|
setPreferred(v);
|
|
4584
|
-
}, "
|
|
4585
|
-
_html(`<select${_attr_class(["_n", "
|
|
4626
|
+
}, "v1", $scope0_id), () => {
|
|
4627
|
+
_html(`<select${_attr_class(["_n", "_cj"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
|
|
4586
4628
|
_for_of(input.agents.filter((a) => a !== "shell"), (id) => {
|
|
4587
4629
|
const $scope54_id = _scope_id();
|
|
4588
4630
|
_html(`<option${_attr_option_value(id)}>${_escape(agentLabel(id))}${_el_resume($scope54_id, "b", $sg__input_agents)}</option>${_el_resume($scope54_id, "a", $sg__input_agents)}`);
|
|
@@ -4603,14 +4645,14 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4603
4645
|
const rows = lone ? [] : a.instances;
|
|
4604
4646
|
const loneAccounts = lone && lone.enabled ? accountsFor(lone.id) : [];
|
|
4605
4647
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
4606
|
-
_html(`<li${_attr_class(["
|
|
4648
|
+
_html(`<li${_attr_class(["_bz", "_ch"])}><div${_attr_class(["_ck", { ["_cn"]: lone && !lone.enabled }])}>`);
|
|
4607
4649
|
_set_serialize_reason(12);
|
|
4608
4650
|
const $childScope4 = _peek_scope_id();
|
|
4609
4651
|
icon_agent_default({
|
|
4610
4652
|
agent: a.id,
|
|
4611
4653
|
size: 18
|
|
4612
4654
|
});
|
|
4613
|
-
_html(`<div${_attr_class("
|
|
4655
|
+
_html(`<div${_attr_class("_bA")}><span${_attr_class("_bC")}><span${_attr_class("_bB")}>${_escape(a.label)}${_el_resume($scope1_id, "g")}</span>`);
|
|
4614
4656
|
_if(() => {
|
|
4615
4657
|
if (lone && input.preferred === lone.id) {
|
|
4616
4658
|
const $scope55_id = _scope_id();
|
|
@@ -4623,12 +4665,12 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4623
4665
|
_if(() => {
|
|
4624
4666
|
if (active.has(a.id)) {
|
|
4625
4667
|
const $scope11_id = _scope_id();
|
|
4626
|
-
_html(`<span${_attr_class("
|
|
4668
|
+
_html(`<span${_attr_class("_cd")}><span${_attr_class("_F")}></span><!>${_escape(active.get(a.id) || "Starting…")}${_el_resume($scope11_id, "c")}</span>`);
|
|
4627
4669
|
_subscribe($active__closures, writeScope($scope11_id, {}));
|
|
4628
4670
|
return 0;
|
|
4629
4671
|
} else if (!a.installed) {
|
|
4630
4672
|
const $scope56_id = _scope_id();
|
|
4631
|
-
_html(`<span${_attr_class("
|
|
4673
|
+
_html(`<span${_attr_class("_bD")}>Not installed</span>`);
|
|
4632
4674
|
writeScope($scope56_id, {});
|
|
4633
4675
|
return 1;
|
|
4634
4676
|
}
|
|
@@ -4638,7 +4680,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4638
4680
|
if (!a.installed && !active.has(a.id)) {
|
|
4639
4681
|
const $scope44_id = _scope_id();
|
|
4640
4682
|
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope44_id, "a")}`);
|
|
4641
|
-
_script($scope44_id, "
|
|
4683
|
+
_script($scope44_id, "v36");
|
|
4642
4684
|
writeScope($scope44_id, {});
|
|
4643
4685
|
return 0;
|
|
4644
4686
|
}
|
|
@@ -4651,7 +4693,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4651
4693
|
"_K",
|
|
4652
4694
|
{ [tone.ok]: lone.enabled }
|
|
4653
4695
|
])} role=switch aria-checked=${lone.enabled ? "true" : "false"} title=${lone.enabled ? "\"Shown in session pickers. Hide it\"" : "\"Hidden from session pickers. Show it\""}>${lone.enabled ? "on" : "off"}${_el_resume($scope48_id, "b")}</button>${_el_resume($scope48_id, "a")}`);
|
|
4654
|
-
_script($scope48_id, "
|
|
4696
|
+
_script($scope48_id, "v37");
|
|
4655
4697
|
writeScope($scope48_id, {});
|
|
4656
4698
|
return 0;
|
|
4657
4699
|
}
|
|
@@ -4660,18 +4702,18 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4660
4702
|
_if(() => {
|
|
4661
4703
|
if (rows.length || loneAccounts.length || extraAccounts.length) {
|
|
4662
4704
|
const $scope2_id = _scope_id();
|
|
4663
|
-
_html(`<ul${_attr_class("
|
|
4705
|
+
_html(`<ul${_attr_class("_cp")}>`);
|
|
4664
4706
|
_for_of(rows, (inst) => {
|
|
4665
4707
|
const $scope3_id = _scope_id();
|
|
4666
4708
|
const accounts = inst.enabled ? accountsFor(inst.id) : [];
|
|
4667
|
-
_html(`<li${_attr_class("
|
|
4709
|
+
_html(`<li${_attr_class("_cl")}><div${_attr_class(["_cm", { ["_cn"]: !inst.enabled }])}>`);
|
|
4668
4710
|
_set_serialize_reason(12);
|
|
4669
4711
|
const $childScope5 = _peek_scope_id();
|
|
4670
4712
|
icon_agent_default({
|
|
4671
4713
|
agent: inst.id,
|
|
4672
4714
|
size: 15
|
|
4673
4715
|
});
|
|
4674
|
-
_html(`<span${_attr_class(["
|
|
4716
|
+
_html(`<span${_attr_class(["_co", "_x"])}>${_escape(inst.command)}${_el_resume($scope3_id, "e")}</span>`);
|
|
4675
4717
|
_if(() => {
|
|
4676
4718
|
if (input.preferred === inst.id) {
|
|
4677
4719
|
const $scope57_id = _scope_id();
|
|
@@ -4696,7 +4738,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4696
4738
|
writeScope($scope58_id, { a: _existing_scope($childScope6) });
|
|
4697
4739
|
}, (u) => `${u.agent}-${u.account || ""}`, $scope3_id, "j", 1, 1, 1, 0, 1);
|
|
4698
4740
|
_html("</li>");
|
|
4699
|
-
_script($scope3_id, "
|
|
4741
|
+
_script($scope3_id, "v38");
|
|
4700
4742
|
_subscribe($accountsFor2__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope3_id, {
|
|
4701
4743
|
m: inst?.enabled,
|
|
4702
4744
|
n: inst?.id,
|
|
@@ -4746,7 +4788,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4746
4788
|
}, "id", $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
4747
4789
|
_for_of(otherUsage, (u) => {
|
|
4748
4790
|
const $scope61_id = _scope_id();
|
|
4749
|
-
_html(`<li${_attr_class(["
|
|
4791
|
+
_html(`<li${_attr_class(["_bz", "_ch"])}>`);
|
|
4750
4792
|
_set_serialize_reason(6);
|
|
4751
4793
|
const $childScope9 = _peek_scope_id();
|
|
4752
4794
|
usage_meters_default({ agent: u });
|
|
@@ -4757,17 +4799,17 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4757
4799
|
_if(() => {
|
|
4758
4800
|
if (!usage && families.length) {
|
|
4759
4801
|
const $scope62_id = _scope_id();
|
|
4760
|
-
_html(`<p${_attr_class("
|
|
4802
|
+
_html(`<p${_attr_class("_bF")}><span${_attr_class("_F")}></span> Loading usage…</p>`);
|
|
4761
4803
|
writeScope($scope62_id, {});
|
|
4762
4804
|
return 0;
|
|
4763
4805
|
} else if (usage?.error) {
|
|
4764
4806
|
const $scope7_id = _scope_id();
|
|
4765
|
-
_html(`<p${_attr_class("
|
|
4807
|
+
_html(`<p${_attr_class("_bF")}>${_escape(usage.error)}${_el_resume($scope7_id, "b")}</p>`);
|
|
4766
4808
|
writeScope($scope7_id, {});
|
|
4767
4809
|
return 1;
|
|
4768
4810
|
}
|
|
4769
4811
|
}, $scope0_id, "t", 1, 1, 1, 0, 1);
|
|
4770
|
-
_html(`</section><section${_attr_class("
|
|
4812
|
+
_html(`</section><section${_attr_class("_bu")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_bv")}><h2${_attr("id", githubId)}${_attr_class("_bJ")}>GitHub</h2></div><ul${_attr_class("_bx")}>`);
|
|
4771
4813
|
_for_of(setup?.github || [], (h) => {
|
|
4772
4814
|
const $scope12_id = _scope_id();
|
|
4773
4815
|
const $for_content4__h_host__closures = /* @__PURE__ */ new Set();
|
|
@@ -4781,7 +4823,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4781
4823
|
const skippedSso = (() => {
|
|
4782
4824
|
return (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
4783
4825
|
})();
|
|
4784
|
-
_html(`<li${_attr_class(["
|
|
4826
|
+
_html(`<li${_attr_class(["_bz", "_cz"])}><div${_attr_class("_cA")}><div${_attr_class("_bA")}><span${_attr_class("_bC")}><span${_attr_class(["_bB", "_x"])}>${_escape(h.host)}${_el_resume($scope12_id, "f")}</span>`);
|
|
4785
4827
|
_if(() => {
|
|
4786
4828
|
if (h.isEnterprise) {
|
|
4787
4829
|
const $scope65_id = _scope_id();
|
|
@@ -4794,22 +4836,22 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4794
4836
|
_if(() => {
|
|
4795
4837
|
if (active.has(h.host) && authCodes.has(h.host)) {
|
|
4796
4838
|
const $scope24_id = _scope_id();
|
|
4797
|
-
_html(`<span${_attr_class("
|
|
4839
|
+
_html(`<span${_attr_class("_cd")}><span${_attr_class("_F")}></span> Enter code <strong${_attr_class("_cx")}>${_escape(authCodes.get(h.host))}${_el_resume($scope24_id, "d")}</strong> at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_cy")}>${_escape(h.host)}${_el_resume($scope24_id, "f")}/login/device</a>${_el_resume($scope24_id, "e")}</span>`);
|
|
4798
4840
|
_subscribe($authCodes__closures, writeScope($scope24_id, { Cdz: 1 }));
|
|
4799
4841
|
return 0;
|
|
4800
4842
|
} else if (active.has(h.host)) {
|
|
4801
4843
|
const $scope13_id = _scope_id();
|
|
4802
|
-
_html(`<span${_attr_class("
|
|
4844
|
+
_html(`<span${_attr_class("_cd")}><span${_attr_class("_F")}></span><!>${_escape(active.get(h.host) || "Starting…")}${_el_resume($scope13_id, "c")}</span>`);
|
|
4803
4845
|
_subscribe($active__closures, writeScope($scope13_id, { Cdx: 1 }));
|
|
4804
4846
|
return 1;
|
|
4805
4847
|
} else if (h.authed) {
|
|
4806
4848
|
const $scope63_id = _scope_id();
|
|
4807
|
-
_html(`<span${_attr_class("
|
|
4849
|
+
_html(`<span${_attr_class("_bD")}>Signed in<!>${h.user ? ` as ${_escape(`${_to_text(h.user)}`)}` : ""}${_el_resume($scope63_id, "b")}</span>`);
|
|
4808
4850
|
writeScope($scope63_id, {});
|
|
4809
4851
|
return 2;
|
|
4810
4852
|
} else {
|
|
4811
4853
|
const $scope64_id = _scope_id();
|
|
4812
|
-
_html(`<span${_attr_class("
|
|
4854
|
+
_html(`<span${_attr_class("_bD")}>${_escape(h.error || "Not signed in")}${_el_resume($scope64_id, "b")}</span>`);
|
|
4813
4855
|
writeScope($scope64_id, {});
|
|
4814
4856
|
return 3;
|
|
4815
4857
|
}
|
|
@@ -4822,7 +4864,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4822
4864
|
if (!h.authed) {
|
|
4823
4865
|
const $scope45_id = _scope_id();
|
|
4824
4866
|
_html(`<button${_attr_class(btnSm)}>Sign in</button>${_el_resume($scope45_id, "a")}`);
|
|
4825
|
-
_script($scope45_id, "
|
|
4867
|
+
_script($scope45_id, "v39");
|
|
4826
4868
|
writeScope($scope45_id, {});
|
|
4827
4869
|
return 0;
|
|
4828
4870
|
} else {
|
|
@@ -4831,7 +4873,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4831
4873
|
["_r"]: confirmingRemove === `out:${h.host}`,
|
|
4832
4874
|
["_q"]: confirmingRemove === `out:${h.host}`
|
|
4833
4875
|
}])}${confirmingRemove === `out:${h.host}` ? _attr("title", `Sign out of ${h.host}?`) : _attr("title", `Sign out of ${h.host}`)}>${confirmingRemove === `out:${h.host}` ? "Sign out?" : "Sign out"}${_el_resume($scope26_id, "b")}</button>${_el_resume($scope26_id, "a")}`);
|
|
4834
|
-
_script($scope26_id, "
|
|
4876
|
+
_script($scope26_id, "v40");
|
|
4835
4877
|
_subscribe($for_content4__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope26_id, {})));
|
|
4836
4878
|
return 1;
|
|
4837
4879
|
}
|
|
@@ -4840,7 +4882,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4840
4882
|
if (h.isEnterprise) {
|
|
4841
4883
|
const $scope27_id = _scope_id();
|
|
4842
4884
|
_html(`<button${_attr_class([
|
|
4843
|
-
"
|
|
4885
|
+
"_bE",
|
|
4844
4886
|
"_2",
|
|
4845
4887
|
"_3",
|
|
4846
4888
|
{ ["_q"]: confirmingRemove === h.host }
|
|
@@ -4858,7 +4900,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4858
4900
|
return 1;
|
|
4859
4901
|
}
|
|
4860
4902
|
}, $scope27_id, "a", 1, 1, 1, "</button>");
|
|
4861
|
-
_script($scope27_id, "
|
|
4903
|
+
_script($scope27_id, "v41");
|
|
4862
4904
|
_subscribe($for_content4__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope27_id, {
|
|
4863
4905
|
Ce0: 1,
|
|
4864
4906
|
Ca2: 1
|
|
@@ -4883,13 +4925,13 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4883
4925
|
authCode: authCodes.get(h.host),
|
|
4884
4926
|
onChange: _resume(function() {
|
|
4885
4927
|
ssoIgnoreTick++;
|
|
4886
|
-
}, "
|
|
4928
|
+
}, "v26", $scope14_id),
|
|
4887
4929
|
onAuthorize: _resume(function() {
|
|
4888
4930
|
run(h.host, "auth-refresh");
|
|
4889
|
-
}, "
|
|
4931
|
+
}, "v27", $scope14_id),
|
|
4890
4932
|
onDone: _resume(function() {
|
|
4891
4933
|
refresh();
|
|
4892
|
-
}, "
|
|
4934
|
+
}, "v28", $scope14_id)
|
|
4893
4935
|
});
|
|
4894
4936
|
_subscribe($run2__closures, _subscribe($si__input_setupChange && $refresh2__closures, _subscribe($authCodes__closures, _subscribe($active__closures, writeScope($scope14_id, {
|
|
4895
4937
|
a: _existing_scope($childScope10),
|
|
@@ -4916,7 +4958,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4916
4958
|
_if(() => {
|
|
4917
4959
|
if (setup && !setup.github.length) {
|
|
4918
4960
|
const $scope68_id = _scope_id();
|
|
4919
|
-
_html(`<p${_attr_class("
|
|
4961
|
+
_html(`<p${_attr_class("_bF")}>Install the GitHub CLI below to sign in.</p>`);
|
|
4920
4962
|
writeScope($scope68_id, {});
|
|
4921
4963
|
return 0;
|
|
4922
4964
|
}
|
|
@@ -4924,20 +4966,20 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4924
4966
|
_if(() => {
|
|
4925
4967
|
if (setup) {
|
|
4926
4968
|
const $scope35_id = _scope_id();
|
|
4927
|
-
_html(`<form${_attr_class("
|
|
4969
|
+
_html(`<form${_attr_class("_cw")}><label${_attr_class("_W")}>`);
|
|
4928
4970
|
icon_plus_default({
|
|
4929
4971
|
size: 14,
|
|
4930
4972
|
class: "_X"
|
|
4931
4973
|
});
|
|
4932
4974
|
_html(`<input${_attr_input_value($scope35_id, "d", hostInput, _resume((_new_hostInput) => {
|
|
4933
4975
|
hostInput = _new_hostInput;
|
|
4934
|
-
}, "
|
|
4935
|
-
_script($scope35_id, "
|
|
4976
|
+
}, "v2", $scope35_id))}${_attr_class([inputLg, "_Y"])} type=text placeholder="Add a GitHub Enterprise host, e.g. github.example.com" aria-label="GitHub Enterprise host" autocomplete=off spellcheck=false>${_el_resume($scope35_id, "d")}</label><button${_attr_class(btnSm)} type=submit${_attr("disabled", !hostInput.trim() || hostBusy)}>${hostBusy ? "Adding…" : "Add host"}${_el_resume($scope35_id, "f")}</button>${_el_resume($scope35_id, "e")}</form>${_el_resume($scope35_id, "a")}`);
|
|
4977
|
+
_script($scope35_id, "v42");
|
|
4936
4978
|
writeScope($scope35_id, {});
|
|
4937
4979
|
return 0;
|
|
4938
4980
|
}
|
|
4939
4981
|
}, $scope0_id, "z", 1, 1, 1, 0, 1);
|
|
4940
|
-
_html(`</section><section${_attr_class("
|
|
4982
|
+
_html(`</section><section${_attr_class("_bu")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_bv")}><h2${_attr("id", machineId)}${_attr_class("_bJ")}>Machine</h2>`);
|
|
4941
4983
|
_if(() => {
|
|
4942
4984
|
if (missingCount) {
|
|
4943
4985
|
const $scope49_id = _scope_id();
|
|
@@ -4959,7 +5001,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4959
5001
|
if (outdatedIds.length > 1) {
|
|
4960
5002
|
const $scope15_id = _scope_id();
|
|
4961
5003
|
_html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Update all</button>${_el_resume($scope15_id, "a")}`);
|
|
4962
|
-
_script($scope15_id, "
|
|
5004
|
+
_script($scope15_id, "v43");
|
|
4963
5005
|
writeScope($scope15_id, {});
|
|
4964
5006
|
return 0;
|
|
4965
5007
|
}
|
|
@@ -4968,7 +5010,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4968
5010
|
if (missingInstallable.length > 1) {
|
|
4969
5011
|
const $scope16_id = _scope_id();
|
|
4970
5012
|
_html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Install missing</button>${_el_resume($scope16_id, "a")}`);
|
|
4971
|
-
_script($scope16_id, "
|
|
5013
|
+
_script($scope16_id, "v44");
|
|
4972
5014
|
writeScope($scope16_id, {});
|
|
4973
5015
|
return 0;
|
|
4974
5016
|
}
|
|
@@ -4977,8 +5019,8 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4977
5019
|
_if(() => {
|
|
4978
5020
|
if (setup && !setup.mise.installed) {
|
|
4979
5021
|
const $scope17_id = _scope_id();
|
|
4980
|
-
_html(`<p${_attr_class("
|
|
4981
|
-
_script($scope17_id, "
|
|
5022
|
+
_html(`<p${_attr_class("_bF")}>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>`);
|
|
5023
|
+
_script($scope17_id, "v45");
|
|
4982
5024
|
writeScope($scope17_id, {});
|
|
4983
5025
|
return 0;
|
|
4984
5026
|
}
|
|
@@ -4987,11 +5029,11 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4987
5029
|
_if(() => {
|
|
4988
5030
|
if (self) {
|
|
4989
5031
|
const $scope40_id = _scope_id();
|
|
4990
|
-
_html(`<li${_attr_class(row)}><span${_attr_class(["
|
|
5032
|
+
_html(`<li${_attr_class(row)}><span${_attr_class(["_cs", "_x"])}>work</span>`);
|
|
4991
5033
|
_if(() => {
|
|
4992
5034
|
if (selfUpdating) {
|
|
4993
5035
|
const $scope69_id = _scope_id();
|
|
4994
|
-
_html(`<span${_attr_class("
|
|
5036
|
+
_html(`<span${_attr_class("_cd")}><span${_attr_class("_F")}></span>Updating — the app restarts and reloads when it is done…</span>`);
|
|
4995
5037
|
writeScope($scope69_id, {});
|
|
4996
5038
|
return 0;
|
|
4997
5039
|
} else {
|
|
@@ -5005,8 +5047,10 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5005
5047
|
return 0;
|
|
5006
5048
|
} else if (self.latest && self.latest !== self.version) {
|
|
5007
5049
|
const $scope42_id = _scope_id();
|
|
5008
|
-
_html(`<button${_attr_class([btnSm, "
|
|
5009
|
-
|
|
5050
|
+
_html(`<button${_attr_class([btnSm, "_cu"])}${_attr("title", `Update work to v${self.latest} and restart`)}>`);
|
|
5051
|
+
icon_arrow_up_default({ size: 12 });
|
|
5052
|
+
_html(` <!>${_escape(self.latest)}${_el_resume($scope42_id, "c")}</button>${_el_resume($scope42_id, "a")}`);
|
|
5053
|
+
_script($scope42_id, "v46");
|
|
5010
5054
|
_subscribe($self_latest__closures, writeScope($scope42_id, { Ce9: 3 }));
|
|
5011
5055
|
return 1;
|
|
5012
5056
|
} else if (self.latest) {
|
|
@@ -5044,11 +5088,11 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5044
5088
|
const $for_content5__t_path__closures = /* @__PURE__ */ new Set();
|
|
5045
5089
|
const $for_content5__t_latest__closures = /* @__PURE__ */ new Set();
|
|
5046
5090
|
const $for_content5__t_id__closures = /* @__PURE__ */ new Set();
|
|
5047
|
-
_html(`<li${_attr_class([row, { ["
|
|
5091
|
+
_html(`<li${_attr_class([row, { ["_cr"]: !t.installed }])}><span${_attr_class(["_cs", "_x"])}>${_escape(t.label)}${_el_resume($scope18_id, "c")}</span>`);
|
|
5048
5092
|
_if(() => {
|
|
5049
5093
|
if (active.has(t.id)) {
|
|
5050
5094
|
const $scope19_id = _scope_id();
|
|
5051
|
-
_html(`<span${_attr_class("
|
|
5095
|
+
_html(`<span${_attr_class("_cd")}><span${_attr_class("_F")}></span><!>${_escape(active.get(t.id) || "Starting…")}${_el_resume($scope19_id, "c")}</span>`);
|
|
5052
5096
|
_subscribe($active__closures, writeScope($scope19_id, { Cdx: 3 }));
|
|
5053
5097
|
return 0;
|
|
5054
5098
|
} else if (t.installed) {
|
|
@@ -5056,8 +5100,8 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5056
5100
|
_if(() => {
|
|
5057
5101
|
if (t.version) {
|
|
5058
5102
|
const $scope32_id = _scope_id();
|
|
5059
|
-
_html(`<button${_attr_class(["
|
|
5060
|
-
_script($scope32_id, "
|
|
5103
|
+
_html(`<button${_attr_class(["_ct", "_x"])}${_attr("title", `${t.path || t.label}. Pin a version`)}>v<!>${_escape(t.version)}${_el_resume($scope32_id, "b")}</button>${_el_resume($scope32_id, "a")}`);
|
|
5104
|
+
_script($scope32_id, "v47");
|
|
5061
5105
|
_subscribe($for_content5__t_path__closures, _subscribe($for_content5__t_version__closures, _subscribe($for_content5__t_label__closures, writeScope($scope32_id, { Cu: 1 }))));
|
|
5062
5106
|
return 0;
|
|
5063
5107
|
} else {
|
|
@@ -5070,8 +5114,10 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5070
5114
|
_if(() => {
|
|
5071
5115
|
if (outdated(t)) {
|
|
5072
5116
|
const $scope46_id = _scope_id();
|
|
5073
|
-
_html(`<button${_attr_class([btnSm, "
|
|
5074
|
-
|
|
5117
|
+
_html(`<button${_attr_class([btnSm, "_cu"])}${_attr("title", `Update to v${t.latest}`)}>`);
|
|
5118
|
+
icon_arrow_up_default({ size: 12 });
|
|
5119
|
+
_html(` <!>${_escape(t.latest)}${_el_resume($scope46_id, "c")}</button>${_el_resume($scope46_id, "a")}`);
|
|
5120
|
+
_script($scope46_id, "v48");
|
|
5075
5121
|
_subscribe($for_content5__t_latest__closures, writeScope($scope46_id, {}));
|
|
5076
5122
|
return 0;
|
|
5077
5123
|
}
|
|
@@ -5106,7 +5152,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5106
5152
|
if (!t.installed && t.installable) {
|
|
5107
5153
|
const $scope47_id = _scope_id();
|
|
5108
5154
|
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope47_id, "a")}`);
|
|
5109
|
-
_script($scope47_id, "
|
|
5155
|
+
_script($scope47_id, "v49");
|
|
5110
5156
|
writeScope($scope47_id, {});
|
|
5111
5157
|
return 0;
|
|
5112
5158
|
} else if (t.installed && t.version && !t.required) {
|
|
@@ -5130,7 +5176,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5130
5176
|
return 1;
|
|
5131
5177
|
}
|
|
5132
5178
|
}, $scope29_id, "a", 1, 1, 1, "</button>");
|
|
5133
|
-
_script($scope29_id, "
|
|
5179
|
+
_script($scope29_id, "v50");
|
|
5134
5180
|
_subscribe($for_content5__t_id__closures, _subscribe($for_content5__t_label__closures, _subscribe($confirmingRemove__closures, writeScope($scope29_id, { Ce0: 2 }))));
|
|
5135
5181
|
return 1;
|
|
5136
5182
|
}
|
|
@@ -5170,19 +5216,19 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5170
5216
|
_if(() => {
|
|
5171
5217
|
if (hits && hits.length) {
|
|
5172
5218
|
const $scope21_id = _scope_id();
|
|
5173
|
-
_html(`<ul${_attr_class([toolGrid, "
|
|
5219
|
+
_html(`<ul${_attr_class([toolGrid, "_cv"])}>`);
|
|
5174
5220
|
_for_of(hits, (h) => {
|
|
5175
5221
|
const $scope22_id = _scope_id();
|
|
5176
|
-
_html(`<li${_attr_class(row)}><div${_attr_class("
|
|
5222
|
+
_html(`<li${_attr_class(row)}><div${_attr_class("_bA")}><span${_attr_class(["_cs", "_x"])}>${_escape(h.name)}${_el_resume($scope22_id, "d")}</span>`);
|
|
5177
5223
|
_if(() => {
|
|
5178
5224
|
if (active.has(h.name)) {
|
|
5179
5225
|
const $scope23_id = _scope_id();
|
|
5180
|
-
_html(`<span${_attr_class("
|
|
5226
|
+
_html(`<span${_attr_class("_cd")}><span${_attr_class("_F")}></span><!>${_escape(active.get(h.name) || "Starting…")}${_el_resume($scope23_id, "c")}</span>`);
|
|
5181
5227
|
_subscribe($active__closures, writeScope($scope23_id, { Cdx: 5 }));
|
|
5182
5228
|
return 0;
|
|
5183
5229
|
} else if (h.description) {
|
|
5184
5230
|
const $scope79_id = _scope_id();
|
|
5185
|
-
_html(`<span${_attr_class("
|
|
5231
|
+
_html(`<span${_attr_class("_bD")}${_attr("title", h.description)}>${_escape(h.description)}${_el_resume($scope79_id, "b")}</span>${_el_resume($scope79_id, "a")}`);
|
|
5186
5232
|
writeScope($scope79_id, {});
|
|
5187
5233
|
return 1;
|
|
5188
5234
|
}
|
|
@@ -5200,7 +5246,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5200
5246
|
} else {
|
|
5201
5247
|
const $scope34_id = _scope_id();
|
|
5202
5248
|
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope34_id, "a")}<button${_attr_class(btnSm)} title="Install a specific version">@…</button>${_el_resume($scope34_id, "b")}`);
|
|
5203
|
-
_script($scope34_id, "
|
|
5249
|
+
_script($scope34_id, "v51");
|
|
5204
5250
|
writeScope($scope34_id, {});
|
|
5205
5251
|
return 1;
|
|
5206
5252
|
}
|
|
@@ -5221,20 +5267,20 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5221
5267
|
return 0;
|
|
5222
5268
|
} else if (hits && !searching) {
|
|
5223
5269
|
const $scope36_id = _scope_id();
|
|
5224
|
-
_html(`<p${_attr_class("
|
|
5270
|
+
_html(`<p${_attr_class("_bF")}>No tools match "<!>${_escape(query)}${_el_resume($scope36_id, "b")}".</p>`);
|
|
5225
5271
|
_subscribe($query__closures, writeScope($scope36_id, {}));
|
|
5226
5272
|
return 1;
|
|
5227
5273
|
}
|
|
5228
5274
|
}, $scope20_id, "d", 1, 1, 1, 0, 1);
|
|
5229
5275
|
_html("</div>");
|
|
5230
|
-
_script($scope20_id, "
|
|
5276
|
+
_script($scope20_id, "v52");
|
|
5231
5277
|
writeScope($scope20_id, {});
|
|
5232
5278
|
return 0;
|
|
5233
5279
|
}
|
|
5234
5280
|
}, $scope0_id, "ac", 1, 1, 1, 0, 1);
|
|
5235
|
-
_html(`</section><section${_attr_class("
|
|
5281
|
+
_html(`</section><section${_attr_class("_bu")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_bv")}><h2${_attr("id", appearanceId)}${_attr_class("_bJ")}>Appearance</h2></div><div${_attr_class(["_bz", "_cB"])}><label${_attr_class("_cC")}><span${_attr_class("_cD")}>Name</span><input${_attr_input_value($scope0_id, "aj", input.instance.name, _resume(function(v) {
|
|
5236
5282
|
setInstance({ name: v });
|
|
5237
|
-
}, "
|
|
5283
|
+
}, "v3", $scope0_id))}${_attr_class(["_U", "_cE"])} 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", "_cF"])}>Tab title, home-screen icon, and notifications.</span></label><div${_attr_class("_cC")} role=radiogroup aria-label="Color theme"><span${_attr_class("_cD")}>Theme</span><span${_attr_class("_cG")}>`);
|
|
5238
5284
|
_for_of([
|
|
5239
5285
|
{
|
|
5240
5286
|
id: "system",
|
|
@@ -5250,22 +5296,22 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5250
5296
|
}
|
|
5251
5297
|
], (opt) => {
|
|
5252
5298
|
const $scope43_id = _scope_id();
|
|
5253
|
-
_html(`<button type=button${_attr_class(["
|
|
5254
|
-
_script($scope43_id, "
|
|
5299
|
+
_html(`<button type=button${_attr_class(["_cH", { ["_cI"]: themeMode === opt.id }])} role=radio aria-checked=${themeMode === opt.id ? "true" : "false"}>${_escape(opt.label)}</button>${_el_resume($scope43_id, "a")}`);
|
|
5300
|
+
_script($scope43_id, "v53");
|
|
5255
5301
|
writeScope($scope43_id, {
|
|
5256
5302
|
e: opt?.id,
|
|
5257
5303
|
_: _scope_with_id($scope0_id)
|
|
5258
5304
|
});
|
|
5259
5305
|
}, "id", $scope0_id, "an", 1, 0, 1, 0, 1);
|
|
5260
|
-
_html(`</span><span${_attr_class(["_S", "
|
|
5261
|
-
"_cM",
|
|
5306
|
+
_html(`</span><span${_attr_class(["_S", "_cF"])}>Follow the OS, or force light or dark.</span></div><div${_attr_class("_cC")} role=radiogroup aria-label="Accent colour"><span${_attr_class("_cD")}>Accent</span><span${_attr_class("_cN")}><button type=button${_attr_class([
|
|
5262
5307
|
"_cO",
|
|
5263
|
-
|
|
5308
|
+
"_cQ",
|
|
5309
|
+
{ ["_cP"]: !input.instance.accent }
|
|
5264
5310
|
])} role=radio aria-checked=${!input.instance.accent ? "true" : "false"} title="Default (blue)" aria-label="Default (blue)"></button>${_el_resume($scope0_id, "as")}`);
|
|
5265
5311
|
_for_of(ACCENT_PRESETS, (p) => {
|
|
5266
5312
|
const $scope4_id = _scope_id();
|
|
5267
|
-
_html(`<button type=button${_attr_class(["
|
|
5268
|
-
_script($scope4_id, "
|
|
5313
|
+
_html(`<button type=button${_attr_class(["_cO", { ["_cP"]: input.instance.accent === p.value }])}${_attr_style(`--swatch:${p.value}`)} role=radio aria-checked=${input.instance.accent === p.value ? "true" : "false"}${_attr("title", p.name)}${_attr("aria-label", p.name)}></button>${_el_resume($scope4_id, "a")}`);
|
|
5314
|
+
_script($scope4_id, "v54");
|
|
5269
5315
|
writeScope($scope4_id, {
|
|
5270
5316
|
d: p?.value,
|
|
5271
5317
|
_: _scope_with_id($scope0_id)
|
|
@@ -5273,12 +5319,12 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5273
5319
|
}, "value", $scope0_id, "at", $sg__input_instance_accent, 0, 1, 0, 1);
|
|
5274
5320
|
const customOn = !!input.instance.accent && !ACCENT_PRESETS.some((p) => p.value === input.instance.accent);
|
|
5275
5321
|
_html(`<label${_attr_class([
|
|
5276
|
-
"
|
|
5277
|
-
"
|
|
5278
|
-
{ ["
|
|
5322
|
+
"_cO",
|
|
5323
|
+
"_cR",
|
|
5324
|
+
{ ["_cP"]: customOn }
|
|
5279
5325
|
])}${customOn ? _attr_style(`--swatch:${input.instance.accent}`) : ""} title="Custom colour"><input${_attr_input_value($scope0_id, "av", input.instance.accent || "#3556d8", _resume(function(v) {
|
|
5280
5326
|
setInstance({ accent: v });
|
|
5281
|
-
}, "
|
|
5327
|
+
}, "v4", $scope0_id))}${_attr_class("_cS")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "av")}<span aria-hidden=true>+</span></label>${_el_resume($scope0_id, "au", $sg__input_instance_accent)}</span><span${_attr_class(["_S", "_cF"])}>Selected rows, buttons, and the icon.</span></div></div></section></div></div></div>`);
|
|
5282
5328
|
_if(() => {
|
|
5283
5329
|
if (versionPick) {
|
|
5284
5330
|
const $scope30_id = _scope_id();
|
|
@@ -5292,19 +5338,19 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5292
5338
|
open: versionPick != null,
|
|
5293
5339
|
openChange: _resume(function(o) {
|
|
5294
5340
|
if (!o) versionPick = null;
|
|
5295
|
-
}, "
|
|
5341
|
+
}, "v29", $scope30_id),
|
|
5296
5342
|
onSubmit: _resume(function(v) {
|
|
5297
5343
|
const pick = versionPick;
|
|
5298
5344
|
versionPick = null;
|
|
5299
5345
|
run(pick.id, "install", v);
|
|
5300
|
-
}, "
|
|
5346
|
+
}, "v30", $scope30_id)
|
|
5301
5347
|
});
|
|
5302
5348
|
writeScope($scope30_id, { a: _existing_scope($childScope11) });
|
|
5303
5349
|
return 0;
|
|
5304
5350
|
}
|
|
5305
5351
|
}, $scope0_id, "ax", 1, 1, 1, 0, 1);
|
|
5306
|
-
_script($scope0_id, "
|
|
5307
|
-
_script($scope0_id, "
|
|
5352
|
+
_script($scope0_id, "v55");
|
|
5353
|
+
_script($scope0_id, "v56");
|
|
5308
5354
|
writeScope($scope0_id, {
|
|
5309
5355
|
b1: input.setupChange,
|
|
5310
5356
|
b2: input.agentsChange,
|
|
@@ -5392,13 +5438,47 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5392
5438
|
});
|
|
5393
5439
|
//#endregion
|
|
5394
5440
|
//#region src/tags/new-workspace.css.ts
|
|
5395
|
-
var content$1 = "
|
|
5396
|
-
var section$1 = "
|
|
5397
|
-
var curBase = "
|
|
5398
|
-
var archived = "
|
|
5399
|
-
var archivedHint = "
|
|
5400
|
-
var archivedCard = "
|
|
5401
|
-
|
|
5441
|
+
var content$1 = "_bK _bm";
|
|
5442
|
+
var section$1 = "_bO _bu";
|
|
5443
|
+
var curBase = "_bT _T _S";
|
|
5444
|
+
var archived = "_bY _bu";
|
|
5445
|
+
var archivedHint = "_bZ _S";
|
|
5446
|
+
var archivedCard = "_b0 _bz";
|
|
5447
|
+
//#endregion
|
|
5448
|
+
//#region src/tags/icons/icon-check.marko
|
|
5449
|
+
var icon_check_default = _template("P", (input) => {
|
|
5450
|
+
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
5451
|
+
const $scope0_id = _scope_id();
|
|
5452
|
+
_set_serialize_reason({
|
|
5453
|
+
0: $sg__input_size__OR__input_class,
|
|
5454
|
+
1: $sg__input_size__OR__input_class
|
|
5455
|
+
});
|
|
5456
|
+
const $childScope = _peek_scope_id();
|
|
5457
|
+
icon_base_default({
|
|
5458
|
+
d: "M5 13L9 17L19 7",
|
|
5459
|
+
size: input.size,
|
|
5460
|
+
class: input.class
|
|
5461
|
+
});
|
|
5462
|
+
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
5463
|
+
});
|
|
5464
|
+
//#endregion
|
|
5465
|
+
//#region src/tags/icons/icon-branch.marko
|
|
5466
|
+
var icon_branch_default = _template("O", (input) => {
|
|
5467
|
+
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
5468
|
+
const $scope0_id = _scope_id();
|
|
5469
|
+
_set_serialize_reason({
|
|
5470
|
+
0: $sg__input_size__OR__input_class,
|
|
5471
|
+
1: $sg__input_size__OR__input_class
|
|
5472
|
+
});
|
|
5473
|
+
const $childScope = _peek_scope_id();
|
|
5474
|
+
icon_base_default({
|
|
5475
|
+
d: "M18 8C19.1046 8 20 7.10457 20 6C20 4.89543 19.1046 4 18 4C16.8954 4 16 4.89543 16 6C16 7.10457 16.8954 8 18 8Z M6 20C7.10457 20 8 19.1046 8 18C8 16.8954 7.10457 16 6 16C4.89543 16 4 16.8954 4 18C4 19.1046 4.89543 20 6 20Z M6 16V3 M8 18H9C12.5 18 18 15.9 18 9.5V8",
|
|
5476
|
+
size: input.size,
|
|
5477
|
+
class: input.class
|
|
5478
|
+
});
|
|
5479
|
+
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
5480
|
+
});
|
|
5481
|
+
var resultBranch = "_c1 _Z _j";
|
|
5402
5482
|
//#endregion
|
|
5403
5483
|
//#region src/tags/branch-pick.marko
|
|
5404
5484
|
var branch_pick_default = _template("d", (input) => {
|
|
@@ -5409,11 +5489,11 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
5409
5489
|
let branches = null;
|
|
5410
5490
|
let defaultBranch = null;
|
|
5411
5491
|
let branchFilter = "";
|
|
5412
|
-
_html(`<div${_attr_class("
|
|
5492
|
+
_html(`<div${_attr_class("_c3")}>`);
|
|
5413
5493
|
_if(() => {
|
|
5414
5494
|
{
|
|
5415
5495
|
const $scope4_id = _scope_id();
|
|
5416
|
-
_html(`<p${_attr_class("
|
|
5496
|
+
_html(`<p${_attr_class("_bF")}><span${_attr_class("_F")}></span> Loading branches…</p>`);
|
|
5417
5497
|
writeScope($scope4_id, {});
|
|
5418
5498
|
return 0;
|
|
5419
5499
|
}
|
|
@@ -5437,7 +5517,7 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
5437
5517
|
//#region src/tags/repo-picker.marko
|
|
5438
5518
|
var api$5;
|
|
5439
5519
|
var prefs$1;
|
|
5440
|
-
var repo_picker_default = _template("
|
|
5520
|
+
var repo_picker_default = _template("t", (input) => {
|
|
5441
5521
|
const $scope0_reason = _scope_reason(), $si__input_onError = _serialize_if($scope0_reason, 2);
|
|
5442
5522
|
const $scope0_id = _scope_id();
|
|
5443
5523
|
const $pasted__closures = /* @__PURE__ */ new Set();
|
|
@@ -5457,14 +5537,14 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
5457
5537
|
input.onError?.(String(err.message || err));
|
|
5458
5538
|
}
|
|
5459
5539
|
if (refresh);
|
|
5460
|
-
}, "
|
|
5540
|
+
}, "t2", $scope0_id);
|
|
5461
5541
|
const excluded = _resume((name) => {
|
|
5462
5542
|
if (input.exclude.has(name)) return true;
|
|
5463
5543
|
const repos = catalog?.repos || [];
|
|
5464
5544
|
if (repos.some((r) => input.exclude.has(r.nameWithOwner) && r.parent === name)) return true;
|
|
5465
5545
|
const entry = repos.find((r) => r.nameWithOwner === name);
|
|
5466
5546
|
return !!(entry?.parent && input.exclude.has(entry.parent));
|
|
5467
|
-
}, "
|
|
5547
|
+
}, "t3", $scope0_id);
|
|
5468
5548
|
const results = catalog && filter ? rankRepos(filter, catalog.repos, (name) => excluded(name)) : [];
|
|
5469
5549
|
const pasted = (() => {
|
|
5470
5550
|
const name = parseRepoUrl(filter);
|
|
@@ -5478,32 +5558,32 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
5478
5558
|
branchesFor = null;
|
|
5479
5559
|
pasteWillFork = false;
|
|
5480
5560
|
input.onPick(fullName, baseBranch, fork);
|
|
5481
|
-
}, "
|
|
5482
|
-
const pastedFork = _resume((fork) => pastedForkable ? fork : void 0, "
|
|
5561
|
+
}, "t4", $scope0_id);
|
|
5562
|
+
const pastedFork = _resume((fork) => pastedForkable ? fork : void 0, "t5", $scope0_id);
|
|
5483
5563
|
const toggleBranches = _resume((fullName) => {
|
|
5484
5564
|
branchesFor = branchesFor === fullName ? null : fullName;
|
|
5485
5565
|
if (fullName !== pasted) pasteWillFork = false;
|
|
5486
|
-
}, "
|
|
5566
|
+
}, "t6", $scope0_id);
|
|
5487
5567
|
let ssoIgnoreTick = 0;
|
|
5488
5568
|
const ssoPending = (() => {
|
|
5489
5569
|
const ignored = new Set(prefs$1?.ignoredSsoOrgs?.() ?? []);
|
|
5490
5570
|
return (catalog?.sso || []).filter((s) => !ignored.has(s.org));
|
|
5491
5571
|
})();
|
|
5492
|
-
_html(`<div${_attr_class("
|
|
5572
|
+
_html(`<div${_attr_class("_cU")}>`);
|
|
5493
5573
|
_if(() => {
|
|
5494
5574
|
if (ssoPending.length) {
|
|
5495
5575
|
const $scope7_id = _scope_id();
|
|
5496
|
-
_html(`<div${_attr_class("
|
|
5576
|
+
_html(`<div${_attr_class("_cV")}>`);
|
|
5497
5577
|
_set_serialize_reason(154);
|
|
5498
5578
|
const $childScope = _peek_scope_id();
|
|
5499
5579
|
sso_auth_default({
|
|
5500
5580
|
items: ssoPending,
|
|
5501
5581
|
onChange: _resume(function() {
|
|
5502
5582
|
ssoIgnoreTick++;
|
|
5503
|
-
}, "
|
|
5583
|
+
}, "t7", $scope7_id),
|
|
5504
5584
|
onDone: _resume(function() {
|
|
5505
5585
|
loadCatalog(true);
|
|
5506
|
-
}, "
|
|
5586
|
+
}, "t8", $scope7_id)
|
|
5507
5587
|
});
|
|
5508
5588
|
_html("</div>");
|
|
5509
5589
|
writeScope($scope7_id, { b: _existing_scope($childScope) });
|
|
@@ -5519,26 +5599,42 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
5519
5599
|
filter = v;
|
|
5520
5600
|
highlight = 0;
|
|
5521
5601
|
pasteWillFork = false;
|
|
5522
|
-
}, "
|
|
5602
|
+
}, "t0", $scope0_id))}${_attr_class([inputLg, "_Y"])} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input.disabled)}>${_el_resume($scope0_id, "e")}</label>`);
|
|
5523
5603
|
_if(() => {
|
|
5524
5604
|
if (pasted) {
|
|
5525
5605
|
const $scope1_id = _scope_id();
|
|
5526
|
-
_html(`<ul${_attr_class("
|
|
5606
|
+
_html(`<ul${_attr_class("_cW")}><li><div${_attr_class(["_cY", "_cX"])}><button${_attr_class("_cZ")}${pasteWillFork ? _attr("title", `Fork ${pasted} to your account and add the fork`) : _attr("title", `Add ${pasted} as-is (pushes go to that repo)`)}>`);
|
|
5527
5607
|
icon_plus_default({
|
|
5528
5608
|
size: 12,
|
|
5529
|
-
class: "
|
|
5609
|
+
class: "_c5"
|
|
5530
5610
|
});
|
|
5531
|
-
_html(`<span${_attr_class("
|
|
5611
|
+
_html(`<span${_attr_class("_c6")}>${_escape(repoLabel(pasted))}${_el_resume($scope1_id, "f")}</span></button>${_el_resume($scope1_id, "c")}`);
|
|
5532
5612
|
_if(() => {
|
|
5533
5613
|
if (pastedForkable) {
|
|
5534
5614
|
const $scope8_id = _scope_id();
|
|
5535
|
-
_html(`<button${_attr_class(["
|
|
5536
|
-
|
|
5615
|
+
_html(`<button${_attr_class(["_c2", { ["_c0"]: 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"}>`);
|
|
5616
|
+
_if(() => {
|
|
5617
|
+
if (pasteWillFork) {
|
|
5618
|
+
const $scope10_id = _scope_id();
|
|
5619
|
+
icon_check_default({ size: 12 });
|
|
5620
|
+
_html(" fork");
|
|
5621
|
+
writeScope($scope10_id, {});
|
|
5622
|
+
return 0;
|
|
5623
|
+
} else {
|
|
5624
|
+
const $scope11_id = _scope_id();
|
|
5625
|
+
_html("Fork");
|
|
5626
|
+
writeScope($scope11_id, {});
|
|
5627
|
+
return 1;
|
|
5628
|
+
}
|
|
5629
|
+
}, $scope8_id, "a", 1, 1, 1, "</button>");
|
|
5630
|
+
_script($scope8_id, "t13");
|
|
5537
5631
|
_subscribe($pasteWillFork__closures, _subscribe($pasted__closures, writeScope($scope8_id, { Cao: 1 })));
|
|
5538
5632
|
return 0;
|
|
5539
5633
|
}
|
|
5540
5634
|
}, $scope1_id, "g", 1, 1, 1, 0, 1);
|
|
5541
|
-
_html(`<button${_attr_class([resultBranch, { ["
|
|
5635
|
+
_html(`<button${_attr_class([resultBranch, { ["_c0"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>`);
|
|
5636
|
+
icon_branch_default({ size: 12 });
|
|
5637
|
+
_html(`</button>${_el_resume($scope1_id, "h")}</div>`);
|
|
5542
5638
|
_if(() => {
|
|
5543
5639
|
if (branchesFor === pasted) {
|
|
5544
5640
|
const $scope2_id = _scope_id();
|
|
@@ -5547,23 +5643,23 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
5547
5643
|
repo: pasted,
|
|
5548
5644
|
onPick: _resume(function(branch, isDefault) {
|
|
5549
5645
|
pick(pasted, isDefault ? void 0 : branch, pastedFork(pasteWillFork));
|
|
5550
|
-
}, "
|
|
5646
|
+
}, "t9", $scope2_id),
|
|
5551
5647
|
onError: _resume(function(message) {
|
|
5552
5648
|
branchesFor = null;
|
|
5553
5649
|
input.onError?.(message);
|
|
5554
|
-
}, "
|
|
5650
|
+
}, "t10", $scope2_id)
|
|
5555
5651
|
});
|
|
5556
5652
|
_subscribe($pasted__closures, _subscribe($si__input_onError && $input_onError__closures, writeScope($scope2_id, { a: _existing_scope($childScope2) })));
|
|
5557
5653
|
return 0;
|
|
5558
5654
|
}
|
|
5559
|
-
}, $scope1_id, "
|
|
5655
|
+
}, $scope1_id, "j", 1, 1, 1, 0, 1);
|
|
5560
5656
|
_html("</li></ul>");
|
|
5561
|
-
_script($scope1_id, "
|
|
5657
|
+
_script($scope1_id, "t14");
|
|
5562
5658
|
writeScope($scope1_id, {});
|
|
5563
5659
|
return 0;
|
|
5564
5660
|
} else if (filter && !catalog) {
|
|
5565
5661
|
const $scope9_id = _scope_id();
|
|
5566
|
-
_html(`<p${_attr_class("
|
|
5662
|
+
_html(`<p${_attr_class("_bF")}>Loading repos…</p>`);
|
|
5567
5663
|
writeScope($scope9_id, {});
|
|
5568
5664
|
return 1;
|
|
5569
5665
|
}
|
|
@@ -5571,15 +5667,17 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
5571
5667
|
_if(() => {
|
|
5572
5668
|
if (results.length) {
|
|
5573
5669
|
const $scope3_id = _scope_id();
|
|
5574
|
-
_html(`<ul${_attr_class("
|
|
5670
|
+
_html(`<ul${_attr_class("_cW")}>`);
|
|
5575
5671
|
_for_of(results, (repo, i) => {
|
|
5576
5672
|
const $scope4_id = _scope_id();
|
|
5577
|
-
_html(`<li><div${_attr_class(["
|
|
5673
|
+
_html(`<li><div${_attr_class(["_cY", { ["_cX"]: i === highlight }])}><button${_attr_class("_cZ")}>`);
|
|
5578
5674
|
icon_plus_default({
|
|
5579
5675
|
size: 12,
|
|
5580
|
-
class: "
|
|
5676
|
+
class: "_c5"
|
|
5581
5677
|
});
|
|
5582
|
-
_html(`<span${_attr_class("
|
|
5678
|
+
_html(`<span${_attr_class("_c6")}>${_escape(repoLabel(repo.nameWithOwner))}${_el_resume($scope4_id, "e")}</span></button>${_el_resume($scope4_id, "b")}<button${_attr_class([resultBranch, { ["_c0"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>`);
|
|
5679
|
+
icon_branch_default({ size: 12 });
|
|
5680
|
+
_html(`</button>${_el_resume($scope4_id, "f")}</div>${_el_resume($scope4_id, "a")}`);
|
|
5583
5681
|
_if(() => {
|
|
5584
5682
|
if (branchesFor === repo.nameWithOwner) {
|
|
5585
5683
|
const $scope5_id = _scope_id();
|
|
@@ -5588,11 +5686,11 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
5588
5686
|
repo: repo.nameWithOwner,
|
|
5589
5687
|
onPick: _resume(function(branch, isDefault) {
|
|
5590
5688
|
pick(repo.nameWithOwner, isDefault ? void 0 : branch);
|
|
5591
|
-
}, "
|
|
5689
|
+
}, "t11", $scope5_id),
|
|
5592
5690
|
onError: _resume(function(message) {
|
|
5593
5691
|
branchesFor = null;
|
|
5594
5692
|
input.onError?.(message);
|
|
5595
|
-
}, "
|
|
5693
|
+
}, "t12", $scope5_id)
|
|
5596
5694
|
});
|
|
5597
5695
|
_subscribe($si__input_onError && $input_onError__closures, writeScope($scope5_id, {
|
|
5598
5696
|
a: _existing_scope($childScope3),
|
|
@@ -5600,27 +5698,27 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
5600
5698
|
}));
|
|
5601
5699
|
return 0;
|
|
5602
5700
|
}
|
|
5603
|
-
}, $scope4_id, "
|
|
5701
|
+
}, $scope4_id, "h", 1, 1, 1, 0, 1);
|
|
5604
5702
|
_html("</li>");
|
|
5605
|
-
_script($scope4_id, "
|
|
5703
|
+
_script($scope4_id, "t15");
|
|
5606
5704
|
_subscribe($branchesFor__closures, _subscribe($highlight__closures, writeScope($scope4_id, {
|
|
5607
|
-
|
|
5608
|
-
|
|
5705
|
+
k: repo?.nameWithOwner,
|
|
5706
|
+
m: i
|
|
5609
5707
|
})));
|
|
5610
5708
|
}, "nameWithOwner", $scope3_id, "a", 1, 1, 1, "</ul>", 1);
|
|
5611
5709
|
writeScope($scope3_id, {});
|
|
5612
5710
|
return 0;
|
|
5613
5711
|
} else if (filter && catalog && !pasted) {
|
|
5614
5712
|
const $scope6_id = _scope_id();
|
|
5615
|
-
_html(`<p${_attr_class("
|
|
5713
|
+
_html(`<p${_attr_class("_bF")}>No repos match "<!>${_escape(filter)}${_el_resume($scope6_id, "b")}". Paste a clone URL to add any repo.</p>`);
|
|
5616
5714
|
writeScope($scope6_id, {});
|
|
5617
5715
|
return 1;
|
|
5618
5716
|
}
|
|
5619
5717
|
}, $scope0_id, "g", 1, 1, 1, 0, 1);
|
|
5620
5718
|
_html("</div>");
|
|
5621
|
-
const $return = _resume(() => loadCatalog(true), "
|
|
5622
|
-
_script($scope0_id, "
|
|
5623
|
-
_script($scope0_id, "
|
|
5719
|
+
const $return = _resume(() => loadCatalog(true), "t1", $scope0_id);
|
|
5720
|
+
_script($scope0_id, "t16");
|
|
5721
|
+
_script($scope0_id, "t17");
|
|
5624
5722
|
writeScope($scope0_id, {
|
|
5625
5723
|
j: _serialize_if($scope0_reason, 1) && input.refreshing,
|
|
5626
5724
|
k: _serialize_if($scope0_reason, 0) && input.refreshingChange,
|
|
@@ -5658,7 +5756,7 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
5658
5756
|
//#region src/tags/new-workspace.marko
|
|
5659
5757
|
var api$4;
|
|
5660
5758
|
var watchProgress;
|
|
5661
|
-
var new_workspace_default = _template("
|
|
5759
|
+
var new_workspace_default = _template("q", (input) => {
|
|
5662
5760
|
const $scope0_reason = _scope_reason(), $sg__input_backHref__OR__input_onExit = _serialize_guard($scope0_reason, 0), $sg__input_workspaces = _serialize_guard($scope0_reason, 1), $si__input_workspaces = _serialize_if($scope0_reason, 1);
|
|
5663
5761
|
const $scope0_id = _scope_id();
|
|
5664
5762
|
const $error__closures = /* @__PURE__ */ new Set();
|
|
@@ -5680,25 +5778,25 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5680
5778
|
baseBranch,
|
|
5681
5779
|
fork
|
|
5682
5780
|
});
|
|
5683
|
-
}, "
|
|
5781
|
+
}, "q1", $scope0_id);
|
|
5684
5782
|
let branchesFor = null;
|
|
5685
5783
|
const removeRepo = _resume((fullName) => {
|
|
5686
5784
|
selected = selected.filter((r) => r.fullName !== fullName);
|
|
5687
5785
|
if (branchesFor === fullName) branchesFor = null;
|
|
5688
|
-
}, "
|
|
5786
|
+
}, "q2", $scope0_id);
|
|
5689
5787
|
const toggleFork = _resume((fullName) => {
|
|
5690
5788
|
selected = selected.map((r) => r.fullName === fullName ? {
|
|
5691
5789
|
...r,
|
|
5692
5790
|
fork: !r.fork
|
|
5693
5791
|
} : r);
|
|
5694
|
-
}, "
|
|
5792
|
+
}, "q3", $scope0_id);
|
|
5695
5793
|
const setBranch = _resume((fullName, baseBranch) => {
|
|
5696
5794
|
selected = selected.map((r) => r.fullName === fullName ? {
|
|
5697
5795
|
...r,
|
|
5698
5796
|
baseBranch
|
|
5699
5797
|
} : r);
|
|
5700
5798
|
branchesFor = null;
|
|
5701
|
-
}, "
|
|
5799
|
+
}, "q4", $scope0_id);
|
|
5702
5800
|
const restore = _resume(async (ws) => {
|
|
5703
5801
|
if (busy || restoring) return;
|
|
5704
5802
|
error = null;
|
|
@@ -5718,7 +5816,7 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5718
5816
|
} finally {
|
|
5719
5817
|
restoring = null;
|
|
5720
5818
|
}
|
|
5721
|
-
}, "
|
|
5819
|
+
}, "q5", $scope0_id);
|
|
5722
5820
|
const createGen = { n: 0 };
|
|
5723
5821
|
const create = _resume(async () => {
|
|
5724
5822
|
if (restoring) return;
|
|
@@ -5751,9 +5849,9 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5751
5849
|
} finally {
|
|
5752
5850
|
watcher.stop();
|
|
5753
5851
|
}
|
|
5754
|
-
}, "
|
|
5852
|
+
}, "q6", $scope0_id);
|
|
5755
5853
|
const titleId = _id();
|
|
5756
|
-
_html(`<div${_attr_class("
|
|
5854
|
+
_html(`<div${_attr_class("_bk")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bl")}><div${_attr_class(content$1)}>`);
|
|
5757
5855
|
_set_serialize_reason({
|
|
5758
5856
|
0: _serialize_guard($scope0_reason, 2),
|
|
5759
5857
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -5765,8 +5863,8 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5765
5863
|
title: "New workspace",
|
|
5766
5864
|
titleId,
|
|
5767
5865
|
backHref: input.backHref,
|
|
5768
|
-
onBack: input.onExit && _resume(() => input.onExit?.(), "
|
|
5769
|
-
meta: attrTag({ content: _content_resume("
|
|
5866
|
+
onBack: input.onExit && _resume(() => input.onExit?.(), "q7", $scope0_id),
|
|
5867
|
+
meta: attrTag({ content: _content_resume("q14", () => {
|
|
5770
5868
|
_scope_reason();
|
|
5771
5869
|
_scope_id();
|
|
5772
5870
|
_html("Name the workspace and pick repos, or restore an archived one below.");
|
|
@@ -5779,8 +5877,8 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5779
5877
|
placement: "inline",
|
|
5780
5878
|
onDismiss: _resume(function() {
|
|
5781
5879
|
error = null;
|
|
5782
|
-
}, "
|
|
5783
|
-
content: _content_resume("
|
|
5880
|
+
}, "q8", $scope6_id),
|
|
5881
|
+
content: _content_resume("q15", () => {
|
|
5784
5882
|
_scope_reason();
|
|
5785
5883
|
const $scope7_id = _scope_id();
|
|
5786
5884
|
_html(`${_escape(error)}${_el_resume($scope7_id, "a")}`);
|
|
@@ -5792,24 +5890,38 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5792
5890
|
return 0;
|
|
5793
5891
|
}
|
|
5794
5892
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
5795
|
-
_html(`<label${_attr_class("
|
|
5893
|
+
_html(`<label${_attr_class("_bN")}><span${_attr_class("_bJ")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
|
|
5796
5894
|
name = _new_name;
|
|
5797
|
-
}, "
|
|
5895
|
+
}, "q0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class(section$1)}><div${_attr_class("_bP")}><h2${_attr_class("_bJ")}>Repos</h2><button${_attr_class(iconBtnRow)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
5798
5896
|
_set_serialize_reason(1);
|
|
5799
5897
|
const $childScope2 = _peek_scope_id();
|
|
5800
5898
|
icon_refresh_default({
|
|
5801
5899
|
size: 14,
|
|
5802
5900
|
class: catalogRefreshing && "_E"
|
|
5803
5901
|
});
|
|
5804
|
-
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("
|
|
5902
|
+
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("_bQ")}>`);
|
|
5805
5903
|
_for_of(selected, (repo) => {
|
|
5806
5904
|
const $scope2_id = _scope_id();
|
|
5807
|
-
_html(`<li><div${_attr_class(row)}><span${_attr_class("
|
|
5905
|
+
_html(`<li><div${_attr_class(row)}><span${_attr_class("_bR")}>${_escape(repoLabel(repo.fullName))}${_el_resume($scope2_id, "c")}</span>`);
|
|
5808
5906
|
_if(() => {
|
|
5809
5907
|
if (repo.fork !== void 0) {
|
|
5810
5908
|
const $scope3_id = _scope_id();
|
|
5811
|
-
_html(`<button${_attr_class(["
|
|
5812
|
-
|
|
5909
|
+
_html(`<button${_attr_class(["_bU", { ["_bS"]: repo.fork }])}${repo.fork ? _attr("title", `${repo.fullName} will be forked to your account; click to clone as-is instead`) : _attr("title", `Fork ${repo.fullName} to your account and clone the fork`)} aria-pressed=${repo.fork ? "true" : "false"}${_attr("disabled", busy)}>`);
|
|
5910
|
+
_if(() => {
|
|
5911
|
+
if (repo.fork) {
|
|
5912
|
+
const $scope12_id = _scope_id();
|
|
5913
|
+
icon_check_default({ size: 12 });
|
|
5914
|
+
_html(" fork");
|
|
5915
|
+
writeScope($scope12_id, {});
|
|
5916
|
+
return 0;
|
|
5917
|
+
} else {
|
|
5918
|
+
const $scope13_id = _scope_id();
|
|
5919
|
+
_html("fork");
|
|
5920
|
+
writeScope($scope13_id, {});
|
|
5921
|
+
return 1;
|
|
5922
|
+
}
|
|
5923
|
+
}, $scope3_id, "a", 1, 1, 1, "</button>");
|
|
5924
|
+
_script($scope3_id, "q16");
|
|
5813
5925
|
_subscribe($busy__closures, writeScope($scope3_id, {}));
|
|
5814
5926
|
return 0;
|
|
5815
5927
|
}
|
|
@@ -5817,10 +5929,12 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5817
5929
|
_html(`<button${_attr_class([
|
|
5818
5930
|
curBase,
|
|
5819
5931
|
"_x",
|
|
5820
|
-
{ ["
|
|
5821
|
-
])}${_attr("title", `Change base branch for ${repo.fullName}`)}${_attr("aria-label", `Change base branch for ${repo.fullName}`)}${_attr("disabled", busy)}
|
|
5932
|
+
{ ["_bS"]: branchesFor === repo.fullName }
|
|
5933
|
+
])}${_attr("title", `Change base branch for ${repo.fullName}`)}${_attr("aria-label", `Change base branch for ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
5934
|
+
icon_branch_default({ size: 12 });
|
|
5935
|
+
_html(`<!>${repo.baseBranch ? ` ${_escape(`${_to_text(repo.baseBranch)}`)}` : ""}${_el_resume($scope2_id, "g")}</button>${_el_resume($scope2_id, "e")}<button${_attr_class([iconBtnXs, "_2"])}${_attr("title", `Remove ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
5822
5936
|
icon_xmark_default({ size: 12 });
|
|
5823
|
-
_html(`</button>${_el_resume($scope2_id, "
|
|
5937
|
+
_html(`</button>${_el_resume($scope2_id, "h")}</div>`);
|
|
5824
5938
|
_if(() => {
|
|
5825
5939
|
if (branchesFor === repo.fullName) {
|
|
5826
5940
|
const $scope8_id = _scope_id();
|
|
@@ -5830,29 +5944,29 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5830
5944
|
current: repo.baseBranch,
|
|
5831
5945
|
onPick: _resume(function(branch, isDefault) {
|
|
5832
5946
|
setBranch(repo.fullName, isDefault ? void 0 : branch);
|
|
5833
|
-
}, "
|
|
5947
|
+
}, "q9", $scope8_id),
|
|
5834
5948
|
onError: _resume(function(message) {
|
|
5835
5949
|
branchesFor = null;
|
|
5836
5950
|
error = message;
|
|
5837
|
-
}, "
|
|
5951
|
+
}, "q10", $scope8_id)
|
|
5838
5952
|
});
|
|
5839
5953
|
writeScope($scope8_id, { a: _existing_scope($childScope3) });
|
|
5840
5954
|
return 0;
|
|
5841
5955
|
}
|
|
5842
|
-
}, $scope2_id, "
|
|
5956
|
+
}, $scope2_id, "j", 1, 1, 1, 0, 1);
|
|
5843
5957
|
_html("</li>");
|
|
5844
|
-
_script($scope2_id, "
|
|
5958
|
+
_script($scope2_id, "q17");
|
|
5845
5959
|
writeScope($scope2_id, {
|
|
5846
|
-
|
|
5847
|
-
|
|
5848
|
-
|
|
5960
|
+
m: repo?.fullName,
|
|
5961
|
+
o: repo?.fork,
|
|
5962
|
+
p: repo?.baseBranch
|
|
5849
5963
|
});
|
|
5850
5964
|
}, "fullName", $scope0_id, "o", 1, 1, 1, 0, 1);
|
|
5851
5965
|
_if(() => {
|
|
5852
5966
|
if (!selected.length) {
|
|
5853
|
-
const $
|
|
5854
|
-
_html(`<li${_attr_class("
|
|
5855
|
-
writeScope($
|
|
5967
|
+
const $scope14_id = _scope_id();
|
|
5968
|
+
_html(`<li${_attr_class("_bF")}>No repos yet. Search below to add one, or create it empty.</li>`);
|
|
5969
|
+
writeScope($scope14_id, {});
|
|
5856
5970
|
return 0;
|
|
5857
5971
|
}
|
|
5858
5972
|
}, $scope0_id, "p", 1, 1, 1, 0, 1);
|
|
@@ -5863,33 +5977,35 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5863
5977
|
disabled: busy,
|
|
5864
5978
|
onPick: _resume(function(fullName, baseBranch, fork) {
|
|
5865
5979
|
addRepo(fullName, baseBranch, fork);
|
|
5866
|
-
}, "
|
|
5980
|
+
}, "q11", $scope0_id),
|
|
5867
5981
|
onError: _resume(function(message) {
|
|
5868
5982
|
error = message;
|
|
5869
|
-
}, "
|
|
5983
|
+
}, "q12", $scope0_id),
|
|
5870
5984
|
refreshingChange: _resume(function(v) {
|
|
5871
5985
|
catalogRefreshing = v;
|
|
5872
|
-
}, "
|
|
5986
|
+
}, "q13", $scope0_id)
|
|
5873
5987
|
});
|
|
5874
|
-
_var($scope0_id, "r", $childScope4, "
|
|
5988
|
+
_var($scope0_id, "r", $childScope4, "q18");
|
|
5875
5989
|
_html("</section>");
|
|
5876
5990
|
_if(() => {
|
|
5877
5991
|
if (busy && steps$1.length) {
|
|
5878
5992
|
const $scope9_id = _scope_id();
|
|
5879
|
-
_html(`<ul${_attr_class("
|
|
5993
|
+
_html(`<ul${_attr_class("_bV")}>`);
|
|
5880
5994
|
_for_of(steps$1, (step$1, i) => {
|
|
5881
5995
|
const $scope10_id = _scope_id();
|
|
5882
|
-
_html(`<li${_attr_class(["
|
|
5996
|
+
_html(`<li${_attr_class(["_b1", { ["_bW"]: i === steps$1.length - 1 }])}>`);
|
|
5883
5997
|
_if(() => {
|
|
5884
5998
|
if (i === steps$1.length - 1) {
|
|
5885
|
-
const $
|
|
5999
|
+
const $scope15_id = _scope_id();
|
|
5886
6000
|
_html(`<span${_attr_class("_F")}></span>`);
|
|
5887
|
-
writeScope($
|
|
6001
|
+
writeScope($scope15_id, {});
|
|
5888
6002
|
return 0;
|
|
5889
6003
|
} else {
|
|
5890
|
-
const $
|
|
5891
|
-
_html(`<span${_attr_class("
|
|
5892
|
-
|
|
6004
|
+
const $scope16_id = _scope_id();
|
|
6005
|
+
_html(`<span${_attr_class("_bX")}>`);
|
|
6006
|
+
icon_check_default({ size: 14 });
|
|
6007
|
+
_html("</span>");
|
|
6008
|
+
writeScope($scope16_id, {});
|
|
5893
6009
|
return 1;
|
|
5894
6010
|
}
|
|
5895
6011
|
}, $scope10_id, "b", 1, 1, 1, 0, 1);
|
|
@@ -5900,12 +6016,12 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5900
6016
|
return 0;
|
|
5901
6017
|
}
|
|
5902
6018
|
}, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
5903
|
-
_html(`<div${_attr_class("
|
|
6019
|
+
_html(`<div${_attr_class("_bL")}>`);
|
|
5904
6020
|
_if(() => {
|
|
5905
6021
|
if (input.onExit || busy) {
|
|
5906
6022
|
const $scope1_id = _scope_id();
|
|
5907
6023
|
_html(`<button type=button${_attr_class(btnLg)}${_attr("disabled", !!restoring)}>Cancel</button>${_el_resume($scope1_id, "a")}`);
|
|
5908
|
-
_script($scope1_id, "
|
|
6024
|
+
_script($scope1_id, "q19");
|
|
5909
6025
|
writeScope($scope1_id, {});
|
|
5910
6026
|
return 0;
|
|
5911
6027
|
}
|
|
@@ -5913,30 +6029,30 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5913
6029
|
_html(`<button type=button${_attr_class([
|
|
5914
6030
|
btnLg,
|
|
5915
6031
|
"_p",
|
|
5916
|
-
"
|
|
6032
|
+
"_bM"
|
|
5917
6033
|
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${busy ? "Creating…" : "Create workspace"}${_el_resume($scope0_id, "w")}</button>${_el_resume($scope0_id, "v")}</div>`);
|
|
5918
6034
|
_if(() => {
|
|
5919
6035
|
if (archived$1.length) {
|
|
5920
6036
|
const $scope4_id = _scope_id();
|
|
5921
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("
|
|
6037
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_bP")}><h2${_attr_class("_bJ")}>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("_bx")}>`);
|
|
5922
6038
|
_for_of(archived$1, (ws) => {
|
|
5923
6039
|
const $scope5_id = _scope_id();
|
|
5924
|
-
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("
|
|
6040
|
+
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("_bA")}><span${_attr_class("_bB")}>${_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
6041
|
_if(() => {
|
|
5926
6042
|
if (restoring === ws.id) {
|
|
5927
|
-
const $
|
|
6043
|
+
const $scope17_id = _scope_id();
|
|
5928
6044
|
_html(`<span${_attr_class("_F")}></span> Restoring…`);
|
|
5929
|
-
writeScope($
|
|
6045
|
+
writeScope($scope17_id, {});
|
|
5930
6046
|
return 0;
|
|
5931
6047
|
} else {
|
|
5932
|
-
const $
|
|
6048
|
+
const $scope18_id = _scope_id();
|
|
5933
6049
|
_html("Restore");
|
|
5934
|
-
writeScope($
|
|
6050
|
+
writeScope($scope18_id, {});
|
|
5935
6051
|
return 1;
|
|
5936
6052
|
}
|
|
5937
6053
|
}, $scope5_id, "g", 1, 1, 1, "</button>");
|
|
5938
6054
|
_html("</li>");
|
|
5939
|
-
_script($scope5_id, "
|
|
6055
|
+
_script($scope5_id, "q20");
|
|
5940
6056
|
_subscribe($restoring__closures, _subscribe($busy__closures, writeScope($scope5_id, {
|
|
5941
6057
|
j: ws,
|
|
5942
6058
|
o: ws?.id,
|
|
@@ -5950,7 +6066,7 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5950
6066
|
}
|
|
5951
6067
|
}, $scope0_id, "x", $sg__input_workspaces, $sg__input_workspaces, 1, 0, 1);
|
|
5952
6068
|
_html("</div></div></div>");
|
|
5953
|
-
_script($scope0_id, "
|
|
6069
|
+
_script($scope0_id, "q21");
|
|
5954
6070
|
writeScope($scope0_id, {
|
|
5955
6071
|
a1: input.onRestore,
|
|
5956
6072
|
a2: input.onCreate,
|
|
@@ -6078,9 +6194,9 @@ function activeAgent(session) {
|
|
|
6078
6194
|
const command = session.state?.command?.trim();
|
|
6079
6195
|
return command && agentFromCommand(command) || session.agent;
|
|
6080
6196
|
}
|
|
6081
|
-
var iconBtn$1 = "
|
|
6082
|
-
var navToggle = "
|
|
6083
|
-
_template("
|
|
6197
|
+
var iconBtn$1 = "_dW _j";
|
|
6198
|
+
var navToggle = "_d1 _j";
|
|
6199
|
+
_template("N", (input) => {
|
|
6084
6200
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6085
6201
|
const $scope0_id = _scope_id();
|
|
6086
6202
|
_set_serialize_reason({
|
|
@@ -6097,7 +6213,7 @@ _template("I", (input) => {
|
|
|
6097
6213
|
});
|
|
6098
6214
|
//#endregion
|
|
6099
6215
|
//#region src/tags/icons/icon-settings.marko
|
|
6100
|
-
var icon_settings_default = _template("
|
|
6216
|
+
var icon_settings_default = _template("eb", (input) => {
|
|
6101
6217
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6102
6218
|
const $scope0_id = _scope_id();
|
|
6103
6219
|
_set_serialize_reason({
|
|
@@ -6122,12 +6238,12 @@ var ARM_MS = 3500;
|
|
|
6122
6238
|
function disarmLater(fn) {
|
|
6123
6239
|
return setTimeout(fn, ARM_MS);
|
|
6124
6240
|
}
|
|
6125
|
-
var railBtn = "
|
|
6126
|
-
var rowIcon = "
|
|
6127
|
-
var close = "
|
|
6241
|
+
var railBtn = "_gV _j";
|
|
6242
|
+
var rowIcon = "_g4 _Z _j";
|
|
6243
|
+
var close = "_g5 _Z _j _2";
|
|
6128
6244
|
//#endregion
|
|
6129
6245
|
//#region src/styles/session-pop.css.ts
|
|
6130
|
-
var sessionPop = "
|
|
6246
|
+
var sessionPop = "_gR _4";
|
|
6131
6247
|
//#endregion
|
|
6132
6248
|
//#region src/client/usage.ts
|
|
6133
6249
|
/** The plan row an agent instance draws on: its own account (`claude2`)
|
|
@@ -6141,7 +6257,7 @@ function usageFor(agentId, usage) {
|
|
|
6141
6257
|
}
|
|
6142
6258
|
//#endregion
|
|
6143
6259
|
//#region src/tags/icons/icon-diff.marko
|
|
6144
|
-
var icon_diff_default = _template("
|
|
6260
|
+
var icon_diff_default = _template("U", (input) => {
|
|
6145
6261
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6146
6262
|
const $scope0_id = _scope_id();
|
|
6147
6263
|
_set_serialize_reason({
|
|
@@ -6158,7 +6274,7 @@ var icon_diff_default = _template("L", (input) => {
|
|
|
6158
6274
|
});
|
|
6159
6275
|
//#endregion
|
|
6160
6276
|
//#region src/tags/icons/icon-manage.marko
|
|
6161
|
-
var icon_manage_default = _template("
|
|
6277
|
+
var icon_manage_default = _template("ab", (input) => {
|
|
6162
6278
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6163
6279
|
const $scope0_id = _scope_id();
|
|
6164
6280
|
_set_serialize_reason({
|
|
@@ -6179,7 +6295,7 @@ function pctText(pct) {
|
|
|
6179
6295
|
const rounded = Math.round(pct);
|
|
6180
6296
|
return rounded !== pct && (rounded === 100 || rounded === 0) ? `${pct.toFixed(1)}%` : `${rounded}%`;
|
|
6181
6297
|
}
|
|
6182
|
-
var usage_pcts_default = _template("
|
|
6298
|
+
var usage_pcts_default = _template("E", (input) => {
|
|
6183
6299
|
const $scope0_reason = _scope_reason(), $sg__input_agent = _serialize_guard($scope0_reason, 1), $si__input_agent = _serialize_if($scope0_reason, 1), $sg__input_agent__OR__input_class = _serialize_guard($scope0_reason, 0), $si__input_agent__OR__input_class = _serialize_if($scope0_reason, 0);
|
|
6184
6300
|
const $scope0_id = _scope_id();
|
|
6185
6301
|
const agent = input.agent;
|
|
@@ -6188,22 +6304,22 @@ var usage_pcts_default = _template("D", (input) => {
|
|
|
6188
6304
|
if (windows.length) {
|
|
6189
6305
|
const $scope1_id = _scope_id();
|
|
6190
6306
|
_html(`<span${_attr_class([
|
|
6191
|
-
"
|
|
6307
|
+
"_fq",
|
|
6192
6308
|
input.class,
|
|
6193
|
-
{ ["
|
|
6309
|
+
{ ["_fr"]: agent.stale_seconds != null }
|
|
6194
6310
|
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
6195
6311
|
_for_of(windows, (win$1, i) => {
|
|
6196
6312
|
const $scope2_id = _scope_id();
|
|
6197
|
-
_html(`<span${_attr_class("
|
|
6313
|
+
_html(`<span${_attr_class("_fs")}>`);
|
|
6198
6314
|
_if(() => {
|
|
6199
6315
|
if (i) {
|
|
6200
6316
|
const $scope3_id = _scope_id();
|
|
6201
|
-
_html(`<span${_attr_class("
|
|
6317
|
+
_html(`<span${_attr_class("_fv")} aria-hidden=true>·</span>`);
|
|
6202
6318
|
$si__input_agent && writeScope($scope3_id, {});
|
|
6203
6319
|
return 0;
|
|
6204
6320
|
}
|
|
6205
6321
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
6206
|
-
_html(`<span${_attr_class("
|
|
6322
|
+
_html(`<span${_attr_class("_ft")}>${_escape(win$1.window)}${_el_resume($scope2_id, "d", $sg__input_agent)}</span><span${_attr_class(["_fu", win$1.used_percent >= 90 ? "_dG" : win$1.used_percent >= 70 ? "_dF" : win$1.used_percent >= 40 ? "_dE" : "_dD"])}>${_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
6323
|
$si__input_agent && writeScope($scope2_id, {});
|
|
6208
6324
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
6209
6325
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -6219,7 +6335,7 @@ var usage_pcts_default = _template("D", (input) => {
|
|
|
6219
6335
|
});
|
|
6220
6336
|
//#endregion
|
|
6221
6337
|
//#region src/tags/icons/icon-edit.marko
|
|
6222
|
-
var icon_edit_default = _template("
|
|
6338
|
+
var icon_edit_default = _template("W", (input) => {
|
|
6223
6339
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6224
6340
|
const $scope0_id = _scope_id();
|
|
6225
6341
|
_set_serialize_reason({
|
|
@@ -6234,12 +6350,12 @@ var icon_edit_default = _template("N", (input) => {
|
|
|
6234
6350
|
});
|
|
6235
6351
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
6236
6352
|
});
|
|
6237
|
-
var prChip = "
|
|
6238
|
-
var portChip = "
|
|
6353
|
+
var prChip = "_hq _s _hp";
|
|
6354
|
+
var portChip = "_hr _s _hp";
|
|
6239
6355
|
var prState = {
|
|
6240
|
-
open: "
|
|
6241
|
-
merged: "
|
|
6242
|
-
closed: "
|
|
6356
|
+
open: "_hv",
|
|
6357
|
+
merged: "_hw",
|
|
6358
|
+
closed: "_hx"
|
|
6243
6359
|
};
|
|
6244
6360
|
//#endregion
|
|
6245
6361
|
//#region src/tags/side-nav-chips.marko
|
|
@@ -6252,7 +6368,7 @@ var prTitle = (repo, pr) => {
|
|
|
6252
6368
|
return parts.join(" · ");
|
|
6253
6369
|
};
|
|
6254
6370
|
var isOpen = (pr) => !pr.state || pr.state === "OPEN";
|
|
6255
|
-
var side_nav_chips_default = _template("
|
|
6371
|
+
var side_nav_chips_default = _template("w", (input) => {
|
|
6256
6372
|
const $scope0_reason = _scope_reason(), $sg__input_status_repos = _serialize_guard($scope0_reason, 4), $si__input_status_repos = _serialize_if($scope0_reason, 4), $sg__input_status_ports = _serialize_guard($scope0_reason, 5), $sg__input_status_repos__OR__input_status_ports = _serialize_guard($scope0_reason, 1), $si__input_status_repos__OR__input_status_ports = _serialize_if($scope0_reason, 1), $si__input_workspaceId = _serialize_if($scope0_reason, 3);
|
|
6257
6373
|
const $scope0_id = _scope_id();
|
|
6258
6374
|
const $input_workspaceId__closures = /* @__PURE__ */ new Set();
|
|
@@ -6265,7 +6381,7 @@ var side_nav_chips_default = _template("v", (input) => {
|
|
|
6265
6381
|
armBox.timer = disarmLater(() => {
|
|
6266
6382
|
armedPid = null;
|
|
6267
6383
|
});
|
|
6268
|
-
}, "
|
|
6384
|
+
}, "w0", $scope0_id);
|
|
6269
6385
|
const dismissPr = _resume((fullName, number) => {
|
|
6270
6386
|
fetch(`/api/workspaces/${input.workspaceId}/prs`, {
|
|
6271
6387
|
method: "POST",
|
|
@@ -6275,7 +6391,7 @@ var side_nav_chips_default = _template("v", (input) => {
|
|
|
6275
6391
|
number
|
|
6276
6392
|
})
|
|
6277
6393
|
}).catch(() => {});
|
|
6278
|
-
}, "
|
|
6394
|
+
}, "w1", $scope0_id);
|
|
6279
6395
|
const repos = input.status?.repos || [];
|
|
6280
6396
|
const ports = input.status?.ports || [];
|
|
6281
6397
|
_if(() => {
|
|
@@ -6286,8 +6402,8 @@ var side_nav_chips_default = _template("v", (input) => {
|
|
|
6286
6402
|
if (repos.length < 2) return "";
|
|
6287
6403
|
const name = repo.full_name.split("/").at(-1);
|
|
6288
6404
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel(repo.full_name) : name;
|
|
6289
|
-
}, "
|
|
6290
|
-
_html(`<div${_attr_class("
|
|
6405
|
+
}, "w2", $scope1_id);
|
|
6406
|
+
_html(`<div${_attr_class("_ho")}>`);
|
|
6291
6407
|
_for_of(repos, (repo) => {
|
|
6292
6408
|
const $scope2_id = _scope_id();
|
|
6293
6409
|
const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -6303,11 +6419,11 @@ var side_nav_chips_default = _template("v", (input) => {
|
|
|
6303
6419
|
[prState.merged]: pr.state === "MERGED",
|
|
6304
6420
|
[prState.closed]: pr.state === "CLOSED"
|
|
6305
6421
|
}
|
|
6306
|
-
])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["
|
|
6422
|
+
])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["_hs", { ["_hz"]: !open }])}${_attr("href", pr.url)} target=_blank rel=noopener>${_escape(repoLabel$1(repo))}${_el_resume($scope3_id, "c", $sg__input_status_repos)}#${_sep($sg__input_status_repos)}${_escape(pr.number)}${_el_resume($scope3_id, "d", $sg__input_status_repos)}</a>${_el_resume($scope3_id, "b", $sg__input_status_repos)}`);
|
|
6307
6423
|
_if(() => {
|
|
6308
6424
|
if (open) {
|
|
6309
6425
|
const $scope4_id = _scope_id();
|
|
6310
|
-
_html(`<a${_attr_class(["
|
|
6426
|
+
_html(`<a${_attr_class(["_hs", "_ht"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr.number}`)}`)}${_attr("title", `Review #${pr.number} changes`)}>`);
|
|
6311
6427
|
icon_diff_default({ size: 12 });
|
|
6312
6428
|
_html(`</a>${_el_resume($scope4_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
6313
6429
|
_serialize_if($scope0_reason, 2) && _subscribe($si__input_status_repos && $for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, { _: _scope_with_id($scope3_id) })));
|
|
@@ -6315,13 +6431,13 @@ var side_nav_chips_default = _template("v", (input) => {
|
|
|
6315
6431
|
} else {
|
|
6316
6432
|
const $scope6_id = _scope_id();
|
|
6317
6433
|
_html(`<button type=button${_attr_class([
|
|
6318
|
-
"
|
|
6319
|
-
"
|
|
6320
|
-
"
|
|
6434
|
+
"_hs",
|
|
6435
|
+
"_ht",
|
|
6436
|
+
"_hu"
|
|
6321
6437
|
])}${_attr("title", `Dismiss #${pr.number}`)}>`);
|
|
6322
6438
|
icon_xmark_default({ size: 12 });
|
|
6323
6439
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
6324
|
-
_script($scope6_id, "
|
|
6440
|
+
_script($scope6_id, "w3");
|
|
6325
6441
|
writeScope($scope6_id, { _: _scope_with_id($scope3_id) });
|
|
6326
6442
|
return 1;
|
|
6327
6443
|
}
|
|
@@ -6342,15 +6458,15 @@ var side_nav_chips_default = _template("v", (input) => {
|
|
|
6342
6458
|
}, "full_name", $scope1_id, "b", $sg__input_status_repos, $sg__input_status_repos, $sg__input_status_repos__OR__input_status_ports);
|
|
6343
6459
|
_for_of(ports, (p) => {
|
|
6344
6460
|
const $scope5_id = _scope_id();
|
|
6345
|
-
_html(`<span${_attr_class(["_s", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["
|
|
6346
|
-
"_hq",
|
|
6347
|
-
"_hr",
|
|
6461
|
+
_html(`<span${_attr_class(["_s", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["_hs", "_hy"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${p.port}`)}>:${_sep($sg__input_status_ports)}${_escape(p.port)}${_el_resume($scope5_id, "c", $sg__input_status_ports)}</button>${_el_resume($scope5_id, "b")}<button type=button${_attr_class([
|
|
6348
6462
|
"_hs",
|
|
6463
|
+
"_ht",
|
|
6464
|
+
"_hu",
|
|
6349
6465
|
{ ["_q"]: armedPid === p.pid }
|
|
6350
6466
|
])}${armedPid === p.pid ? " title=Kill?" : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
|
|
6351
6467
|
icon_xmark_default({ size: 12 });
|
|
6352
6468
|
_html(`</button>${_el_resume($scope5_id, "d")}</span>${_el_resume($scope5_id, "a", $sg__input_status_ports)}`);
|
|
6353
|
-
_script($scope5_id, "
|
|
6469
|
+
_script($scope5_id, "w4");
|
|
6354
6470
|
_subscribe($armedPid__closures, writeScope($scope5_id, {
|
|
6355
6471
|
h: p?.cmd,
|
|
6356
6472
|
i: p?.port,
|
|
@@ -6383,7 +6499,7 @@ var side_nav_chips_default = _template("v", (input) => {
|
|
|
6383
6499
|
});
|
|
6384
6500
|
//#endregion
|
|
6385
6501
|
//#region src/tags/side-nav-item.marko
|
|
6386
|
-
var side_nav_item_default = _template("
|
|
6502
|
+
var side_nav_item_default = _template("x", (input) => {
|
|
6387
6503
|
const $scope0_reason = _scope_reason(), $si__input_workspaces__OR__input_workspaceId = _serialize_if($scope0_reason, 0), $sg__input_workspaceId__OR__input_status = _serialize_guard($scope0_reason, 1), $sg__input_sessions = _serialize_guard($scope0_reason, 24), $si__input_sessions = _serialize_if($scope0_reason, 24), $si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status = _serialize_if($scope0_reason, 10), $sg__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status = _serialize_guard($scope0_reason, 10), $si__input_current = _serialize_if($scope0_reason, 21), $sg__input_page = _serialize_guard($scope0_reason, 22), $sg__input_workspaces__OR__input_workspaceId = _serialize_guard($scope0_reason, 0), $si__input_agents = _serialize_if($scope0_reason, 30), $sg__input_onNewSession = _serialize_guard($scope0_reason, 29), $sg__input_onNewSession__OR__input_onReview = _serialize_guard($scope0_reason, 2), $sg__input_onReview = _serialize_guard($scope0_reason, 31), $sg__input_rail = _serialize_guard($scope0_reason, 23), $si__input_rail = _serialize_if($scope0_reason, 23), $si__input_workspaceId = _serialize_if($scope0_reason, 26), $si__input_current__OR__input_page__OR__input_rail__OR__input_workspaces__OR__input_workspaceId = _serialize_if($scope0_reason, 13), $si__input_page__OR__input_rail__OR__input_workspaces__OR__input_workspaceId = _serialize_if($scope0_reason, 9), $si__input_current__OR__input_page__OR__input_rail__OR__input_sessions__OR__input_currentTab = _serialize_if($scope0_reason, 12), $si__input_rail__OR__input_workspaces__OR__input_workspaceId = _serialize_if($scope0_reason, 4), $si__input_index = _serialize_if($scope0_reason, 27), $si__input_onNewSession = _serialize_if($scope0_reason, 29), $si__input_onReview = _serialize_if($scope0_reason, 31), $si__input_managing = _serialize_if($scope0_reason, 32), $si__input_currentTab = _serialize_if($scope0_reason, 25), $si__input_page = _serialize_if($scope0_reason, 22), $si__input_railPop = _serialize_if($scope0_reason, 28);
|
|
6388
6504
|
const $scope0_id = _scope_id();
|
|
6389
6505
|
const $input_current__closures = /* @__PURE__ */ new Set();
|
|
@@ -6412,14 +6528,14 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6412
6528
|
armBox.timer = disarmLater(() => {
|
|
6413
6529
|
armedKill = null;
|
|
6414
6530
|
});
|
|
6415
|
-
}, "
|
|
6531
|
+
}, "x1", $scope0_id);
|
|
6416
6532
|
let renamingId = null;
|
|
6417
6533
|
let renameValue = "";
|
|
6418
6534
|
const commitRename = _resume((s) => {
|
|
6419
6535
|
if (renamingId !== s.id) return;
|
|
6420
6536
|
renamingId = null;
|
|
6421
6537
|
input.onRenameSession?.(s, renameValue.trim());
|
|
6422
|
-
}, "
|
|
6538
|
+
}, "x2", $scope0_id);
|
|
6423
6539
|
let usage = null;
|
|
6424
6540
|
const openSess = (() => {
|
|
6425
6541
|
if (!input.current || input.page || input.rail) return null;
|
|
@@ -6437,10 +6553,10 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6437
6553
|
_if(() => {
|
|
6438
6554
|
if (input.rail) {
|
|
6439
6555
|
const $scope2_id = _scope_id();
|
|
6440
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
6556
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_gT"]: input.current }])}${_attr("title", ws$1.name)}>${_escape((input.index ?? 0) + 1)}${_el_resume($scope2_id, "b", _serialize_guard($scope0_reason, 27))}<span${_attr_class([
|
|
6441
6557
|
"_z",
|
|
6442
6558
|
phase[dot],
|
|
6443
|
-
"
|
|
6559
|
+
"_gW"
|
|
6444
6560
|
])}></span>${_el_resume($scope2_id, "c", $sg__input_workspaceId__OR__input_status)}</a>${_el_resume($scope2_id, "a", _serialize_guard($scope0_reason, 3))}`);
|
|
6445
6561
|
_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
6562
|
return 0;
|
|
@@ -6448,15 +6564,15 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6448
6564
|
const $scope3_id = _scope_id();
|
|
6449
6565
|
const sessions$1 = input.sessions || [];
|
|
6450
6566
|
const phaseLabel = dot === "working" ? "Working" : dot === "waiting" ? "Needs input" : dot === "idle" ? "Idle" : "Not running";
|
|
6451
|
-
_html(`<section${_attr_class(["
|
|
6452
|
-
["
|
|
6567
|
+
_html(`<section${_attr_class(["_gY", {
|
|
6568
|
+
["_gT"]: input.current,
|
|
6453
6569
|
["_5"]: input.current,
|
|
6454
|
-
["
|
|
6455
|
-
["
|
|
6456
|
-
}])}><div${_attr_class("
|
|
6570
|
+
["_gZ"]: input.railPop,
|
|
6571
|
+
["_gX"]: input.page
|
|
6572
|
+
}])}><div${_attr_class("_g0")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class("_g1")}><span${_attr_class([
|
|
6457
6573
|
"_z",
|
|
6458
6574
|
phase[dot],
|
|
6459
|
-
"
|
|
6575
|
+
"_hd"
|
|
6460
6576
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope3_id, "d", $sg__input_workspaceId__OR__input_status)}`);
|
|
6461
6577
|
_if(() => {
|
|
6462
6578
|
if (sessions$1.length === 1) {
|
|
@@ -6469,7 +6585,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6469
6585
|
icon_agent_default({
|
|
6470
6586
|
agent: activeAgent(sessions$1[0]),
|
|
6471
6587
|
size: 12,
|
|
6472
|
-
class: "
|
|
6588
|
+
class: "_g6"
|
|
6473
6589
|
});
|
|
6474
6590
|
$si__input_sessions && writeScope($scope14_id, {
|
|
6475
6591
|
_: _scope_with_id($scope3_id),
|
|
@@ -6479,16 +6595,16 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6479
6595
|
}
|
|
6480
6596
|
}, $scope3_id, "e", $sg__input_sessions, $sg__input_sessions);
|
|
6481
6597
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length === 1 ? sessions$1[0].title || "" : `${sessions$1.length} sessions`;
|
|
6482
|
-
_html(`<span${_attr_class("
|
|
6598
|
+
_html(`<span${_attr_class("_g7")}><span${_attr_class("_g8")}>${_escape(ws$1.name)}${_el_resume($scope3_id, "h", $sg__input_workspaces__OR__input_workspaceId)}</span>`);
|
|
6483
6599
|
_if(() => {
|
|
6484
6600
|
if (input.page && metaText) {
|
|
6485
6601
|
const $scope16_id = _scope_id();
|
|
6486
|
-
_html(`<span${_attr_class("
|
|
6602
|
+
_html(`<span${_attr_class("_hb")}>${_escape(metaText)}${_el_resume($scope16_id, "b", _serialize_guard($scope0_reason, 7))}</span>`);
|
|
6487
6603
|
$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
6604
|
return 0;
|
|
6489
6605
|
} else if (sessions$1.length === 1 && sessions$1[0].title) {
|
|
6490
6606
|
const $scope15_id = _scope_id();
|
|
6491
|
-
_html(`<span${_attr_class("
|
|
6607
|
+
_html(`<span${_attr_class("_g9")}>${_escape(sessions$1[0].title)}${_el_resume($scope15_id, "b", $sg__input_sessions)}</span>`);
|
|
6492
6608
|
$si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && writeScope($scope15_id, { _: $si__input_sessions && _scope_with_id($scope3_id) });
|
|
6493
6609
|
return 1;
|
|
6494
6610
|
}
|
|
@@ -6501,7 +6617,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6501
6617
|
"_I",
|
|
6502
6618
|
"_R",
|
|
6503
6619
|
"_K",
|
|
6504
|
-
"
|
|
6620
|
+
"_hc"
|
|
6505
6621
|
])}>${input.current ? "Open" : ""}${_el_resume($scope4_id, "b", _serialize_guard($scope0_reason, 21))}</span>`);
|
|
6506
6622
|
$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
6623
|
_: _scope_with_id($scope3_id),
|
|
@@ -6514,7 +6630,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6514
6630
|
_if(() => {
|
|
6515
6631
|
if (!input.page) {
|
|
6516
6632
|
const $scope5_id = _scope_id();
|
|
6517
|
-
_html(`<div${_attr_class("
|
|
6633
|
+
_html(`<div${_attr_class("_g2")}>`);
|
|
6518
6634
|
_if(() => {
|
|
6519
6635
|
if (input.onNewSession) {
|
|
6520
6636
|
const $scope6_id = _scope_id();
|
|
@@ -6528,7 +6644,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6528
6644
|
_html(`</button>${_el_resume($scope6_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class(sessionPop)}>`);
|
|
6529
6645
|
_for_of([], (agent) => {
|
|
6530
6646
|
const $scope7_id = _scope_id();
|
|
6531
|
-
_html(`<button${_attr_class("
|
|
6647
|
+
_html(`<button${_attr_class("_gS")}>`);
|
|
6532
6648
|
_set_serialize_reason(12);
|
|
6533
6649
|
const $childScope2 = _peek_scope_id();
|
|
6534
6650
|
icon_agent_default({
|
|
@@ -6536,13 +6652,13 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6536
6652
|
size: 14
|
|
6537
6653
|
});
|
|
6538
6654
|
_html(`<!>${_escape(agent)}${_el_resume($scope7_id, "c")}</button>${_el_resume($scope7_id, "a")}`);
|
|
6539
|
-
_script($scope7_id, "
|
|
6655
|
+
_script($scope7_id, "x3");
|
|
6540
6656
|
writeScope($scope7_id, {
|
|
6541
6657
|
e: agent,
|
|
6542
6658
|
b: _existing_scope($childScope2)
|
|
6543
6659
|
});
|
|
6544
6660
|
}, (a) => a, $scope6_id, "c", 1, 1, 1, "</div>", 1);
|
|
6545
|
-
_script($scope6_id, "
|
|
6661
|
+
_script($scope6_id, "x4");
|
|
6546
6662
|
_subscribe($si__input_agents && $input_agents__closures, writeScope($scope6_id, {
|
|
6547
6663
|
e: $si__input_agents && pickerReady,
|
|
6548
6664
|
_: _scope_with_id($scope5_id)
|
|
@@ -6563,7 +6679,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6563
6679
|
return 0;
|
|
6564
6680
|
}
|
|
6565
6681
|
}, $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, { ["
|
|
6682
|
+
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_gU"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
|
|
6567
6683
|
icon_manage_default({ size: 12 });
|
|
6568
6684
|
_html(`</a>${_el_resume($scope5_id, "d", _serialize_guard($scope0_reason, 8))}</div>`);
|
|
6569
6685
|
_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 +6689,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6573
6689
|
return 0;
|
|
6574
6690
|
}
|
|
6575
6691
|
}, $scope3_id, "k", $sg__input_page, $sg__input_page, 1, 0, 1);
|
|
6576
|
-
_html(`</div><div${_attr_class("
|
|
6692
|
+
_html(`</div><div${_attr_class("_hi")}>`);
|
|
6577
6693
|
_if(() => {
|
|
6578
6694
|
if (sessions$1.length === 1 && openPlan) {
|
|
6579
6695
|
const $scope11_id = _scope_id();
|
|
@@ -6581,7 +6697,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6581
6697
|
const $childScope3 = _peek_scope_id();
|
|
6582
6698
|
usage_pcts_default({
|
|
6583
6699
|
agent: openPlan,
|
|
6584
|
-
class: "
|
|
6700
|
+
class: "_g_"
|
|
6585
6701
|
});
|
|
6586
6702
|
_subscribe($openPlan__closures, writeScope($scope11_id, {
|
|
6587
6703
|
a: _existing_scope($childScope3),
|
|
@@ -6592,14 +6708,14 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6592
6708
|
}, $scope3_id, "m");
|
|
6593
6709
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
6594
6710
|
const $scope8_id = _scope_id();
|
|
6595
|
-
_html(`<div${_attr_class(["
|
|
6711
|
+
_html(`<div${_attr_class(["_g3", { ["_gT"]: s.id === input.currentTab }])}>`);
|
|
6596
6712
|
_if(() => {
|
|
6597
6713
|
if (renamingId === s.id) {
|
|
6598
6714
|
const $scope10_id = _scope_id();
|
|
6599
6715
|
_html(`<span${_attr_class([
|
|
6600
6716
|
"_z",
|
|
6601
6717
|
phase[sessionPhase(s.state)],
|
|
6602
|
-
"
|
|
6718
|
+
"_hg"
|
|
6603
6719
|
])}></span>${_el_resume($scope10_id, "a", $sg__input_sessions)}`);
|
|
6604
6720
|
_set_serialize_reason({
|
|
6605
6721
|
1: $sg__input_sessions,
|
|
@@ -6609,17 +6725,17 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6609
6725
|
icon_agent_default({
|
|
6610
6726
|
agent: activeAgent(s),
|
|
6611
6727
|
size: 13,
|
|
6612
|
-
class: "
|
|
6728
|
+
class: "_hk"
|
|
6613
6729
|
});
|
|
6614
6730
|
_html(`<input${_attr_input_value($scope10_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
6615
6731
|
renameValue = _new_renameValue;
|
|
6616
|
-
}, "
|
|
6617
|
-
_script($scope10_id, "
|
|
6732
|
+
}, "x0", $scope10_id))}${_attr_class(["_U", "_hh"])} aria-label="Session name">${_el_resume($scope10_id, "c")}`);
|
|
6733
|
+
_script($scope10_id, "x5");
|
|
6618
6734
|
_subscribe($renameValue__closures, writeScope($scope10_id, { b: $si__input_sessions && _existing_scope($childScope4) }));
|
|
6619
6735
|
return 0;
|
|
6620
6736
|
} else {
|
|
6621
6737
|
const $scope9_id = _scope_id();
|
|
6622
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("
|
|
6738
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("_hj")}><span${_attr_class(["_z", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope9_id, "b", $sg__input_sessions)}`);
|
|
6623
6739
|
_set_serialize_reason({
|
|
6624
6740
|
1: $sg__input_sessions,
|
|
6625
6741
|
2: $sg__input_sessions
|
|
@@ -6628,9 +6744,9 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6628
6744
|
icon_agent_default({
|
|
6629
6745
|
agent: activeAgent(s),
|
|
6630
6746
|
size: 13,
|
|
6631
|
-
class: "
|
|
6747
|
+
class: "_hk"
|
|
6632
6748
|
});
|
|
6633
|
-
_html(`<span${_attr_class("
|
|
6749
|
+
_html(`<span${_attr_class("_he")}>${_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("_hf")}><button${_attr_class(rowIcon)} title="Rename session">`);
|
|
6634
6750
|
icon_edit_default({ size: 12 });
|
|
6635
6751
|
_html(`</button>${_el_resume($scope9_id, "g")}<button${_attr_class([close, { ["_q"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
|
|
6636
6752
|
icon_xmark_default({ size: 12 });
|
|
@@ -6642,7 +6758,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6642
6758
|
const $childScope6 = _peek_scope_id();
|
|
6643
6759
|
usage_pcts_default({
|
|
6644
6760
|
agent: openPlan,
|
|
6645
|
-
class: "
|
|
6761
|
+
class: "_ha"
|
|
6646
6762
|
});
|
|
6647
6763
|
_subscribe($openPlan__closures, writeScope($scope12_id, {
|
|
6648
6764
|
a: _existing_scope($childScope6),
|
|
@@ -6651,7 +6767,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6651
6767
|
return 0;
|
|
6652
6768
|
}
|
|
6653
6769
|
}, $scope9_id, "k");
|
|
6654
|
-
_script($scope9_id, "
|
|
6770
|
+
_script($scope9_id, "x6");
|
|
6655
6771
|
_subscribe($si__input_workspaces__OR__input_workspaceId && $ws_id__closures, _subscribe($openPlan__closures, _subscribe($si__input_current__OR__input_page__OR__input_rail__OR__input_sessions__OR__input_currentTab && $openSess_id__closures, _subscribe($armedKill__closures, writeScope($scope9_id, {
|
|
6656
6772
|
c: $si__input_sessions && _existing_scope($childScope5),
|
|
6657
6773
|
Cat: 1,
|
|
@@ -6683,7 +6799,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6683
6799
|
status: st
|
|
6684
6800
|
});
|
|
6685
6801
|
_html(`</div></section>${_el_resume($scope3_id, "a")}`);
|
|
6686
|
-
_script($scope3_id, "
|
|
6802
|
+
_script($scope3_id, "x7");
|
|
6687
6803
|
_subscribe($si__input_workspaces__OR__input_workspaceId && $ws_name__closures, _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_id__closures, _subscribe($openPlan__closures, _subscribe($si__input_railPop && $input_railPop__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, _subscribe($si__input_sessions && $input_sessions__closures, _subscribe($si__input_page && $input_page__closures, _subscribe($si__input_current && $input_current__closures, writeScope($scope3_id, {
|
|
6688
6804
|
r: sessions$1.length,
|
|
6689
6805
|
t: $si__input_sessions && sessions$1[0],
|
|
@@ -6707,7 +6823,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6707
6823
|
return 0;
|
|
6708
6824
|
}
|
|
6709
6825
|
}, $scope0_id, "a", _serialize_guard($scope0_reason, 11), $sg__input_workspaces__OR__input_workspaceId, $sg__input_workspaces__OR__input_workspaceId);
|
|
6710
|
-
_script($scope0_id, "
|
|
6826
|
+
_script($scope0_id, "x8");
|
|
6711
6827
|
writeScope($scope0_id, {
|
|
6712
6828
|
d: input.onRenameSession,
|
|
6713
6829
|
e: _serialize_if($scope0_reason, 19) && input.current,
|
|
@@ -6761,7 +6877,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6761
6877
|
});
|
|
6762
6878
|
//#endregion
|
|
6763
6879
|
//#region src/tags/icons/icon-folder-plus.marko
|
|
6764
|
-
var icon_folder_plus_default = _template("
|
|
6880
|
+
var icon_folder_plus_default = _template("Y", (input) => {
|
|
6765
6881
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6766
6882
|
const $scope0_id = _scope_id();
|
|
6767
6883
|
_set_serialize_reason({
|
|
@@ -6778,7 +6894,7 @@ var icon_folder_plus_default = _template("O", (input) => {
|
|
|
6778
6894
|
});
|
|
6779
6895
|
//#endregion
|
|
6780
6896
|
//#region src/tags/icons/icon-sidebar-collapse.marko
|
|
6781
|
-
var icon_sidebar_collapse_default = _template("
|
|
6897
|
+
var icon_sidebar_collapse_default = _template("fb", (input) => {
|
|
6782
6898
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6783
6899
|
const $scope0_id = _scope_id();
|
|
6784
6900
|
_set_serialize_reason({
|
|
@@ -6795,7 +6911,7 @@ var icon_sidebar_collapse_default = _template("W", (input) => {
|
|
|
6795
6911
|
});
|
|
6796
6912
|
//#endregion
|
|
6797
6913
|
//#region src/tags/side-nav.marko
|
|
6798
|
-
var side_nav_default = _template("
|
|
6914
|
+
var side_nav_default = _template("y", (input) => {
|
|
6799
6915
|
const $scope0_reason = _scope_reason(), $sg__input_instanceName = _serialize_guard($scope0_reason, 12), $sg__input_setupReady = _serialize_guard($scope0_reason, 13), $sg__input_instanceAccent = _serialize_guard($scope0_reason, 11), $sg__input_workspace__OR__input_allWorkspaces = _serialize_guard($scope0_reason, 0), $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus = _serialize_guard($scope0_reason, 3), $sg__input_agents = _serialize_guard($scope0_reason, 15), $si__input_workspace = _serialize_if($scope0_reason, 4), $si__input_workspace__OR__input_allWorkspaces = _serialize_if($scope0_reason, 0), $si__input_allStatus = _serialize_if($scope0_reason, 10), $si__input_setupReady = _serialize_if($scope0_reason, 13), $si__input_instanceName = _serialize_if($scope0_reason, 12), $si__input_instanceAccent = _serialize_if($scope0_reason, 11), $si__input_onSelectWorkspace = _serialize_if($scope0_reason, 14), $si__input_agents = _serialize_if($scope0_reason, 15), $si__input_onNewSession = _serialize_if($scope0_reason, 16), $si__input_onReviewOpened = _serialize_if($scope0_reason, 17), $si__input_sessions = _serialize_if($scope0_reason, 18), $si__input_onRenameSession = _serialize_if($scope0_reason, 19), $si__input_onCloseSession = _serialize_if($scope0_reason, 20), $si__input_tab__OR__input_tabChange = _serialize_if($scope0_reason, 1);
|
|
6800
6916
|
const $scope0_id = _scope_id();
|
|
6801
6917
|
const $input_instanceName__closures = /* @__PURE__ */ new Set();
|
|
@@ -6821,7 +6937,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6821
6937
|
let canPush = false;
|
|
6822
6938
|
const leaveNav = _resume(() => {
|
|
6823
6939
|
if (view === "nav") view = "term";
|
|
6824
|
-
}, "
|
|
6940
|
+
}, "y0", $scope0_id);
|
|
6825
6941
|
const toggleNotify = _resume(async () => {
|
|
6826
6942
|
try {
|
|
6827
6943
|
if (notifyOn) {
|
|
@@ -6835,7 +6951,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6835
6951
|
notifyOn = false;
|
|
6836
6952
|
input.onError?.(`Notifications failed: ${String(err.message || err)}`);
|
|
6837
6953
|
}
|
|
6838
|
-
}, "
|
|
6954
|
+
}, "y1", $scope0_id);
|
|
6839
6955
|
const itemIds = input.allWorkspaces?.length ? input.allWorkspaces.filter((w) => w.status === "active").map((w) => w.id) : [ws.id];
|
|
6840
6956
|
const workspaces = input.allWorkspaces || [ws];
|
|
6841
6957
|
const allStatus = input.allStatus || {};
|
|
@@ -6845,34 +6961,34 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6845
6961
|
const iconSrc = `/api/instance/icon${input.instanceAccent ? `?v=${input.instanceAccent.slice(1)}` : ""}`;
|
|
6846
6962
|
const otherIds = itemIds.filter((id) => id !== ws.id);
|
|
6847
6963
|
const listIds = isPage ? [ws.id, ...otherIds] : itemIds;
|
|
6848
|
-
_html(`<aside${_attr_class(["
|
|
6849
|
-
["
|
|
6850
|
-
["
|
|
6964
|
+
_html(`<aside${_attr_class(["_d0", {
|
|
6965
|
+
["_dY"]: !navOpen,
|
|
6966
|
+
["_dZ"]: isPage
|
|
6851
6967
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
6852
6968
|
_if(() => {
|
|
6853
6969
|
if (isPage) {
|
|
6854
6970
|
const $scope1_id = _scope_id();
|
|
6855
|
-
_html(`<header${_attr_class("
|
|
6971
|
+
_html(`<header${_attr_class("_d3")}><div${_attr_class("_eb")}>`);
|
|
6856
6972
|
_if(() => {
|
|
6857
6973
|
if (input.instanceName) {
|
|
6858
6974
|
const $scope2_id = _scope_id();
|
|
6859
|
-
_html(`<div${_attr_class("
|
|
6975
|
+
_html(`<div${_attr_class("_d9")} title="This work server (Settings → Appearance)"><img${_attr_class("_d_")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_ea")}>${_escape(input.instanceName)}${_el_resume($scope2_id, "d", $sg__input_instanceName)}</span></div>`);
|
|
6860
6976
|
_subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
|
|
6861
6977
|
return 0;
|
|
6862
6978
|
}
|
|
6863
6979
|
}, $scope1_id, "c", $sg__input_instanceName, $sg__input_instanceName, 1, 0, 1);
|
|
6864
|
-
_html(`<h1${_attr_class("
|
|
6980
|
+
_html(`<h1${_attr_class("_d4")}>Workspaces</h1></div><div${_attr_class("_d5")}>`);
|
|
6865
6981
|
_if(() => {}, $scope1_id, "f", 1, 1, 1, 0, 1);
|
|
6866
6982
|
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
|
|
6867
6983
|
iconBtn$1,
|
|
6868
|
-
"
|
|
6869
|
-
{ ["
|
|
6984
|
+
"_d6",
|
|
6985
|
+
{ ["_dV"]: view === "settings" }
|
|
6870
6986
|
])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
6871
6987
|
icon_settings_default({ size: 16 });
|
|
6872
6988
|
_if(() => {
|
|
6873
6989
|
if (input.setupReady === false) {
|
|
6874
6990
|
const $scope12_id = _scope_id();
|
|
6875
|
-
_html(`<span${_attr_class(["_z", "
|
|
6991
|
+
_html(`<span${_attr_class(["_z", "_dX"])} title="Machine setup incomplete"></span>`);
|
|
6876
6992
|
$si__input_setupReady && writeScope($scope12_id, {});
|
|
6877
6993
|
return 0;
|
|
6878
6994
|
}
|
|
@@ -6885,18 +7001,18 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6885
7001
|
_if(() => {
|
|
6886
7002
|
if (!isPage && input.instanceName) {
|
|
6887
7003
|
const $scope3_id = _scope_id();
|
|
6888
|
-
_html(`<div${_attr_class("
|
|
7004
|
+
_html(`<div${_attr_class("_d9")} title="This work server (Settings → Appearance)"><img${_attr_class("_d_")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope3_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_ea")}>${_escape(input.instanceName)}${_el_resume($scope3_id, "d", $sg__input_instanceName)}</span></div>`);
|
|
6889
7005
|
writeScope($scope3_id, {});
|
|
6890
7006
|
return 0;
|
|
6891
7007
|
}
|
|
6892
7008
|
}, $scope0_id, "c", 1, 1, 1, 0, 1);
|
|
6893
|
-
_html(`<div${_attr_class("
|
|
7009
|
+
_html(`<div${_attr_class("_ec")}>`);
|
|
6894
7010
|
_for_of(listIds, (wsId) => {
|
|
6895
7011
|
const $scope4_id = _scope_id();
|
|
6896
7012
|
_if(() => {
|
|
6897
7013
|
if (isPage && wsId === ws.id) {
|
|
6898
7014
|
const $scope13_id = _scope_id();
|
|
6899
|
-
_html(`<h2${_attr_class(["
|
|
7015
|
+
_html(`<h2${_attr_class(["_bJ", "_d7"])}>Current</h2>`);
|
|
6900
7016
|
writeScope($scope13_id, {});
|
|
6901
7017
|
return 0;
|
|
6902
7018
|
}
|
|
@@ -6904,7 +7020,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6904
7020
|
_if(() => {
|
|
6905
7021
|
if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
|
|
6906
7022
|
const $scope14_id = _scope_id();
|
|
6907
|
-
_html(`<h2${_attr_class(["
|
|
7023
|
+
_html(`<h2${_attr_class(["_bJ", "_d7"])}>Other workspaces</h2>`);
|
|
6908
7024
|
writeScope($scope14_id, {});
|
|
6909
7025
|
return 0;
|
|
6910
7026
|
}
|
|
@@ -6954,12 +7070,12 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6954
7070
|
leaveNav();
|
|
6955
7071
|
input.onSelectWorkspace?.(wsId);
|
|
6956
7072
|
} else if (view === "nav" || view === "manage" || view === "settings" || view === "new") view = "term";
|
|
6957
|
-
}, "
|
|
7073
|
+
}, "y2", $scope4_id),
|
|
6958
7074
|
agents: input.agents,
|
|
6959
7075
|
onNewSession: _resume(function(agent) {
|
|
6960
7076
|
leaveNav();
|
|
6961
7077
|
input.onNewSession(wsId, agent);
|
|
6962
|
-
}, "
|
|
7078
|
+
}, "y3", $scope4_id),
|
|
6963
7079
|
onReview: _resume(function() {
|
|
6964
7080
|
if (wsId === ws.id) {
|
|
6965
7081
|
if (view === "diff") view = "term";
|
|
@@ -6968,7 +7084,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6968
7084
|
requestDiff(wsId);
|
|
6969
7085
|
input.onSelectWorkspace?.(wsId);
|
|
6970
7086
|
}
|
|
6971
|
-
}, "
|
|
7087
|
+
}, "y4", $scope4_id),
|
|
6972
7088
|
sessions: wsId === ws.id && input.sessions ? input.sessions : allStatus[wsId]?.sessions || [],
|
|
6973
7089
|
currentTab: wsId === ws.id && view === "term" ? tab : null,
|
|
6974
7090
|
onRenameSession: input.onRenameSession,
|
|
@@ -6984,14 +7100,14 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6984
7100
|
const $scope5_id = _scope_id();
|
|
6985
7101
|
let railHover = null;
|
|
6986
7102
|
const railHoverBox = { timer: 0 };
|
|
6987
|
-
const railKeep = _resume(() => clearTimeout(railHoverBox.timer), "
|
|
7103
|
+
const railKeep = _resume(() => clearTimeout(railHoverBox.timer), "y5", $scope5_id);
|
|
6988
7104
|
const railHide = _resume(() => {
|
|
6989
7105
|
clearTimeout(railHoverBox.timer);
|
|
6990
7106
|
railHoverBox.timer = setTimeout(() => {
|
|
6991
7107
|
railHover = null;
|
|
6992
7108
|
}, 150);
|
|
6993
|
-
}, "
|
|
6994
|
-
_html(`<div${_attr_class("
|
|
7109
|
+
}, "y6", $scope5_id);
|
|
7110
|
+
_html(`<div${_attr_class("_ed")}>`);
|
|
6995
7111
|
_for_of(itemIds, (wsId, i) => {
|
|
6996
7112
|
const $scope6_id = _scope_id();
|
|
6997
7113
|
_html("<span>");
|
|
@@ -7031,10 +7147,10 @@ var side_nav_default = _template("x", (input) => {
|
|
|
7031
7147
|
onSelect: _resume(function() {
|
|
7032
7148
|
if (wsId !== ws.id) input.onSelectWorkspace?.(wsId);
|
|
7033
7149
|
else if (view === "manage" || view === "settings" || view === "new") view = "term";
|
|
7034
|
-
}, "
|
|
7150
|
+
}, "y7", $scope6_id)
|
|
7035
7151
|
});
|
|
7036
7152
|
_html(`</span>${_el_resume($scope6_id, "a")}`);
|
|
7037
|
-
_script($scope6_id, "
|
|
7153
|
+
_script($scope6_id, "y12");
|
|
7038
7154
|
_subscribe($si__input_allStatus && $allStatus__closures, _subscribe($si__input_workspace__OR__input_allWorkspaces && $workspaces__closures, _subscribe($si__input_workspace && $ws_id__closures, writeScope($scope6_id, {
|
|
7039
7155
|
d: wsId,
|
|
7040
7156
|
_: _scope_with_id($scope5_id),
|
|
@@ -7045,7 +7161,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
7045
7161
|
if (railHover) {
|
|
7046
7162
|
const $scope7_id = _scope_id();
|
|
7047
7163
|
const hoverId = railHover.id;
|
|
7048
|
-
_html(`<div${_attr_class(["_4", "
|
|
7164
|
+
_html(`<div${_attr_class(["_4", "_eg"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
7049
7165
|
_set_serialize_reason({
|
|
7050
7166
|
0: 1,
|
|
7051
7167
|
1: 1,
|
|
@@ -7089,12 +7205,12 @@ var side_nav_default = _template("x", (input) => {
|
|
|
7089
7205
|
railHover = null;
|
|
7090
7206
|
if (hoverId !== ws.id) input.onSelectWorkspace?.(hoverId);
|
|
7091
7207
|
else if (view === "manage" || view === "settings" || view === "new") view = "term";
|
|
7092
|
-
}, "
|
|
7208
|
+
}, "y8", $scope7_id),
|
|
7093
7209
|
agents: input.agents,
|
|
7094
7210
|
onNewSession: _resume(function(agent) {
|
|
7095
7211
|
railHover = null;
|
|
7096
7212
|
input.onNewSession(hoverId, agent);
|
|
7097
|
-
}, "
|
|
7213
|
+
}, "y9", $scope7_id),
|
|
7098
7214
|
onReview: _resume(function() {
|
|
7099
7215
|
railHover = null;
|
|
7100
7216
|
if (hoverId === ws.id) {
|
|
@@ -7104,14 +7220,14 @@ var side_nav_default = _template("x", (input) => {
|
|
|
7104
7220
|
requestDiff(hoverId);
|
|
7105
7221
|
input.onSelectWorkspace?.(hoverId);
|
|
7106
7222
|
}
|
|
7107
|
-
}, "
|
|
7223
|
+
}, "y10", $scope7_id),
|
|
7108
7224
|
sessions: hoverId === ws.id && input.sessions ? input.sessions : allStatus[hoverId]?.sessions || [],
|
|
7109
7225
|
currentTab: hoverId === ws.id && view === "term" ? tab : null,
|
|
7110
7226
|
onRenameSession: input.onRenameSession,
|
|
7111
7227
|
onCloseSession: input.onCloseSession
|
|
7112
7228
|
});
|
|
7113
7229
|
_html(`</div>${_el_resume($scope7_id, "a")}`);
|
|
7114
|
-
_script($scope7_id, "
|
|
7230
|
+
_script($scope7_id, "y13");
|
|
7115
7231
|
_subscribe($si__input_allStatus && $allStatus__closures, _subscribe($si__input_workspace__OR__input_allWorkspaces && $workspaces__closures, _subscribe($view__closures, _subscribe($si__input_tab__OR__input_tabChange && $tab__closures, _subscribe($si__input_workspace && $ws_id__closures, _subscribe($si__input_onCloseSession && $input_onCloseSession__closures, _subscribe($si__input_onRenameSession && $input_onRenameSession__closures, _subscribe($si__input_sessions && $input_sessions__closures, _subscribe($si__input_onReviewOpened && $input_onReviewOpened__closures, _subscribe($si__input_onNewSession && $input_onNewSession__closures, _subscribe($si__input_agents && $input_agents__closures, _subscribe($si__input_onSelectWorkspace && $input_onSelectWorkspace__closures, writeScope($scope7_id, {
|
|
7116
7232
|
d: hoverId,
|
|
7117
7233
|
b: _existing_scope($childScope3),
|
|
@@ -7133,7 +7249,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
7133
7249
|
return 0;
|
|
7134
7250
|
}
|
|
7135
7251
|
}, $scope0_id, "e");
|
|
7136
|
-
_html(`<div${_attr_class("
|
|
7252
|
+
_html(`<div${_attr_class("_ee")}>`);
|
|
7137
7253
|
_if(() => {
|
|
7138
7254
|
if (isPage) {
|
|
7139
7255
|
const $scope9_id = _scope_id();
|
|
@@ -7141,7 +7257,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
7141
7257
|
"_o",
|
|
7142
7258
|
"_p",
|
|
7143
7259
|
btnLg,
|
|
7144
|
-
"
|
|
7260
|
+
"_d8"
|
|
7145
7261
|
])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
7146
7262
|
icon_folder_plus_default({ size: 16 });
|
|
7147
7263
|
_html(` New workspace</a>${_el_resume($scope9_id, "a")}`);
|
|
@@ -7163,29 +7279,29 @@ var side_nav_default = _template("x", (input) => {
|
|
|
7163
7279
|
return 1;
|
|
7164
7280
|
}
|
|
7165
7281
|
}, $scope8_id, "a", 1, 1, 1, "</button>", 1);
|
|
7166
|
-
_html(`<div${_attr_class(["_y", "
|
|
7282
|
+
_html(`<div${_attr_class(["_y", "_ef"])}></div>`);
|
|
7167
7283
|
_if(() => {}, $scope8_id, "c", 1, 1, 1, 0, 1);
|
|
7168
|
-
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["
|
|
7284
|
+
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["_dV"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
7169
7285
|
icon_settings_default({ size: 15 });
|
|
7170
7286
|
_if(() => {
|
|
7171
7287
|
if (input.setupReady === false) {
|
|
7172
7288
|
const $scope17_id = _scope_id();
|
|
7173
|
-
_html(`<span${_attr_class(["_z", "
|
|
7289
|
+
_html(`<span${_attr_class(["_z", "_dX"])} title="Machine setup incomplete"></span>`);
|
|
7174
7290
|
$si__input_setupReady && writeScope($scope17_id, {});
|
|
7175
7291
|
return 0;
|
|
7176
7292
|
}
|
|
7177
7293
|
}, $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, { ["
|
|
7294
|
+
_html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn$1, { ["_dV"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
7179
7295
|
icon_folder_plus_default({ size: 16 });
|
|
7180
7296
|
_html(`</a>${_el_resume($scope8_id, "g")}`);
|
|
7181
|
-
_script($scope8_id, "
|
|
7297
|
+
_script($scope8_id, "y15");
|
|
7182
7298
|
writeScope($scope8_id, {});
|
|
7183
7299
|
return 1;
|
|
7184
7300
|
}
|
|
7185
7301
|
}, $scope0_id, "f", 1, 1, 1, "</div>");
|
|
7186
7302
|
_html(`</aside>${_el_resume($scope0_id, "a")}`);
|
|
7187
|
-
_script($scope0_id, "
|
|
7188
|
-
_script($scope0_id, "
|
|
7303
|
+
_script($scope0_id, "y16");
|
|
7304
|
+
_script($scope0_id, "y17");
|
|
7189
7305
|
writeScope($scope0_id, {
|
|
7190
7306
|
j: _serialize_if($scope0_reason, 6) && input.tab,
|
|
7191
7307
|
k: _serialize_if($scope0_reason, 5) && input.tabChange,
|
|
@@ -7240,16 +7356,16 @@ var side_nav_default = _template("x", (input) => {
|
|
|
7240
7356
|
_resume_branch($scope0_id);
|
|
7241
7357
|
});
|
|
7242
7358
|
var iconBtn = "_0 _j";
|
|
7243
|
-
var sectionCount = "
|
|
7244
|
-
var content = "
|
|
7245
|
-
var pageMeta = "
|
|
7246
|
-
var pathMeta = "
|
|
7247
|
-
var dangerHint = "
|
|
7359
|
+
var sectionCount = "_bw _I _J";
|
|
7360
|
+
var content = "_dK _bm";
|
|
7361
|
+
var pageMeta = "_dL _br";
|
|
7362
|
+
var pathMeta = "_dO _x";
|
|
7363
|
+
var dangerHint = "_dU _S";
|
|
7248
7364
|
//#endregion
|
|
7249
7365
|
//#region src/tags/manage-workspace.marko
|
|
7250
7366
|
var api$2;
|
|
7251
7367
|
var lastData = /* @__PURE__ */ new Map();
|
|
7252
|
-
var manage_workspace_default = _template("
|
|
7368
|
+
var manage_workspace_default = _template("o", (input) => {
|
|
7253
7369
|
const $scope0_reason = _scope_reason();
|
|
7254
7370
|
const $scope0_id = _scope_id();
|
|
7255
7371
|
const $ws_display_path__closures = /* @__PURE__ */ new Set();
|
|
@@ -7274,14 +7390,14 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7274
7390
|
procs = data;
|
|
7275
7391
|
lastData.set(`procs:${ws.id}`, data);
|
|
7276
7392
|
} catch {}
|
|
7277
|
-
}, "
|
|
7393
|
+
}, "o0", $scope0_id);
|
|
7278
7394
|
const inWorkspace = new Set(ws.repos.map((r) => r.full_name));
|
|
7279
7395
|
const setBusy = _resume((name, on) => {
|
|
7280
7396
|
const next = new Set(busy);
|
|
7281
7397
|
if (on) next.add(name);
|
|
7282
7398
|
else next.delete(name);
|
|
7283
7399
|
busy = next;
|
|
7284
|
-
}, "
|
|
7400
|
+
}, "o1", $scope0_id);
|
|
7285
7401
|
const addRepo = _resume(async (name, baseBranch, fork) => {
|
|
7286
7402
|
if (!name || busy.has(name)) return;
|
|
7287
7403
|
error = null;
|
|
@@ -7300,7 +7416,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7300
7416
|
error = String(err.message || err);
|
|
7301
7417
|
}
|
|
7302
7418
|
setBusy(name, false);
|
|
7303
|
-
}, "
|
|
7419
|
+
}, "o2", $scope0_id);
|
|
7304
7420
|
const removeRepo = _resume(async (row) => {
|
|
7305
7421
|
if (busy.has(row.full_name)) return;
|
|
7306
7422
|
error = null;
|
|
@@ -7315,7 +7431,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7315
7431
|
error = String(err.message || err);
|
|
7316
7432
|
}
|
|
7317
7433
|
setBusy(row.full_name, false);
|
|
7318
|
-
}, "
|
|
7434
|
+
}, "o3", $scope0_id);
|
|
7319
7435
|
const runAction = _resume(async (action) => {
|
|
7320
7436
|
error = null;
|
|
7321
7437
|
pendingAction = action;
|
|
@@ -7337,13 +7453,13 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7337
7453
|
pendingAction = null;
|
|
7338
7454
|
actionStep = null;
|
|
7339
7455
|
}
|
|
7340
|
-
}, "
|
|
7456
|
+
}, "o4", $scope0_id);
|
|
7341
7457
|
const killProc = _resume(async (pid) => {
|
|
7342
7458
|
await fetch(`/api/procs/${pid}`, { method: "DELETE" });
|
|
7343
7459
|
setTimeout(() => loadProcs(void 0), 500);
|
|
7344
|
-
}, "
|
|
7460
|
+
}, "o5", $scope0_id);
|
|
7345
7461
|
const titleId = _id();
|
|
7346
|
-
_html(`<div${_attr_class("
|
|
7462
|
+
_html(`<div${_attr_class("_bk")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bl")}><div${_attr_class(content)}>`);
|
|
7347
7463
|
_set_serialize_reason(30);
|
|
7348
7464
|
const $childScope = _peek_scope_id();
|
|
7349
7465
|
page_head_default({
|
|
@@ -7352,11 +7468,11 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7352
7468
|
backHref: `/w/${ws.id}`,
|
|
7353
7469
|
onBack: _resume(function() {
|
|
7354
7470
|
input.onExit?.();
|
|
7355
|
-
}, "
|
|
7356
|
-
meta: attrTag({ content: _content_resume("
|
|
7471
|
+
}, "o6", $scope0_id),
|
|
7472
|
+
meta: attrTag({ content: _content_resume("o11", () => {
|
|
7357
7473
|
_scope_reason();
|
|
7358
7474
|
const $scope8_id = _scope_id();
|
|
7359
|
-
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
7475
|
+
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_dM")}>${_escape(ws.name)}${_el_resume($scope8_id, "c")}</span>`);
|
|
7360
7476
|
_if(() => {
|
|
7361
7477
|
if (ws.status !== "active") {
|
|
7362
7478
|
const $scope11_id = _scope_id();
|
|
@@ -7365,7 +7481,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7365
7481
|
return 0;
|
|
7366
7482
|
}
|
|
7367
7483
|
}, $scope8_id, "d", 1, 1, 1, 0, 1);
|
|
7368
|
-
_html(`<span${_attr_class("
|
|
7484
|
+
_html(`<span${_attr_class("_dN")} 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
7485
|
_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
7486
|
_resume_branch($scope8_id);
|
|
7371
7487
|
}, $scope0_id) })
|
|
@@ -7377,8 +7493,8 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7377
7493
|
placement: "inline",
|
|
7378
7494
|
onDismiss: _resume(function() {
|
|
7379
7495
|
error = null;
|
|
7380
|
-
}, "
|
|
7381
|
-
content: _content_resume("
|
|
7496
|
+
}, "o7", $scope2_id),
|
|
7497
|
+
content: _content_resume("o12", () => {
|
|
7382
7498
|
_scope_reason();
|
|
7383
7499
|
const $scope3_id = _scope_id();
|
|
7384
7500
|
_html(`${_escape(error)}${_el_resume($scope3_id, "a")}`);
|
|
@@ -7393,26 +7509,28 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7393
7509
|
_if(() => {
|
|
7394
7510
|
if (pendingAction && actionStep) {
|
|
7395
7511
|
const $scope7_id = _scope_id();
|
|
7396
|
-
_html(`<p${_attr_class("
|
|
7512
|
+
_html(`<p${_attr_class("_bt")}><span${_attr_class("_F")}></span><!>${_escape(actionStep)}${_el_resume($scope7_id, "c")}</p>`);
|
|
7397
7513
|
writeScope($scope7_id, {});
|
|
7398
7514
|
return 0;
|
|
7399
7515
|
}
|
|
7400
7516
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
7401
|
-
_html(`<section${_attr_class("
|
|
7517
|
+
_html(`<section${_attr_class("_bu")}><div${_attr_class("_bv")}><h2${_attr_class("_bJ")}>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
7518
|
_set_serialize_reason(1);
|
|
7403
7519
|
const $childScope2 = _peek_scope_id();
|
|
7404
7520
|
icon_refresh_default({
|
|
7405
7521
|
size: 14,
|
|
7406
7522
|
class: catalogRefreshing && "_E"
|
|
7407
7523
|
});
|
|
7408
|
-
_html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("
|
|
7524
|
+
_html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("_bx")}>`);
|
|
7409
7525
|
_for_of(ws.repos, (row) => {
|
|
7410
7526
|
const $scope1_id = _scope_id();
|
|
7411
|
-
_html(`<li${_attr_class("
|
|
7527
|
+
_html(`<li${_attr_class("_bz")}><div${_attr_class("_bA")}><span${_attr_class(["_bB", "_x"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_bC")}><a${_attr_class(["_bD", "_dQ"])}${_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
7528
|
_if(() => {
|
|
7413
7529
|
if (row.base_branch !== row.default_branch) {
|
|
7414
7530
|
const $scope12_id = _scope_id();
|
|
7415
|
-
_html(`<span${_attr_class(["_I", "_x"])} title="Base branch"
|
|
7531
|
+
_html(`<span${_attr_class(["_I", "_x"])} title="Base branch">`);
|
|
7532
|
+
icon_branch_default({ size: 12 });
|
|
7533
|
+
_html(` <!>${_escape(row.base_branch)}${_el_resume($scope12_id, "c")}</span>`);
|
|
7416
7534
|
writeScope($scope12_id, {});
|
|
7417
7535
|
return 0;
|
|
7418
7536
|
}
|
|
@@ -7427,7 +7545,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7427
7545
|
} else {
|
|
7428
7546
|
const $scope6_id = _scope_id();
|
|
7429
7547
|
_html(`<button${_attr_class([
|
|
7430
|
-
"
|
|
7548
|
+
"_bE",
|
|
7431
7549
|
"_2",
|
|
7432
7550
|
"_3",
|
|
7433
7551
|
{ ["_q"]: confirmingRemove === row.full_name }
|
|
@@ -7445,7 +7563,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7445
7563
|
return 1;
|
|
7446
7564
|
}
|
|
7447
7565
|
}, $scope6_id, "a", 1, 1, 1, "</button>");
|
|
7448
|
-
_script($scope6_id, "
|
|
7566
|
+
_script($scope6_id, "o13");
|
|
7449
7567
|
_subscribe($confirmingRemove__closures, writeScope($scope6_id, {}));
|
|
7450
7568
|
return 1;
|
|
7451
7569
|
}
|
|
@@ -7460,60 +7578,60 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7460
7578
|
}, "full_name", $scope0_id, "p", 1, 1, 1, 0, 1);
|
|
7461
7579
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
7462
7580
|
const $scope16_id = _scope_id();
|
|
7463
|
-
_html(`<li${_attr_class(["
|
|
7581
|
+
_html(`<li${_attr_class(["_bz", "_by"])}><span${_attr_class("_F")}></span><div${_attr_class("_bA")}><span${_attr_class("_bD")}>Adding <!>${_escape(name)}${_el_resume($scope16_id, "e")}…</span></div></li>`);
|
|
7464
7582
|
writeScope($scope16_id, {});
|
|
7465
7583
|
}, (n) => n, $scope0_id, "q", 1, 1, 1, 0, 1);
|
|
7466
7584
|
_html("</ul>");
|
|
7467
7585
|
_if(() => {
|
|
7468
7586
|
if (!ws.repos.length && !busy.size) {
|
|
7469
7587
|
const $scope17_id = _scope_id();
|
|
7470
|
-
_html(`<p${_attr_class("
|
|
7588
|
+
_html(`<p${_attr_class("_bF")}>No repos yet. Search below to add one.</p>`);
|
|
7471
7589
|
writeScope($scope17_id, {});
|
|
7472
7590
|
return 0;
|
|
7473
7591
|
}
|
|
7474
7592
|
}, $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
7475
|
-
_html(`<div${_attr_class("
|
|
7593
|
+
_html(`<div${_attr_class("_dP")}>`);
|
|
7476
7594
|
const $childScope3 = _peek_scope_id();
|
|
7477
7595
|
let refreshCatalog = repo_picker_default({
|
|
7478
7596
|
exclude: inWorkspace,
|
|
7479
7597
|
onPick: _resume(function(name, baseBranch, fork) {
|
|
7480
7598
|
addRepo(name, baseBranch, fork);
|
|
7481
|
-
}, "
|
|
7599
|
+
}, "o8", $scope0_id),
|
|
7482
7600
|
onError: _resume(function(message) {
|
|
7483
7601
|
error = message;
|
|
7484
|
-
}, "
|
|
7602
|
+
}, "o9", $scope0_id),
|
|
7485
7603
|
refreshingChange: _resume(function(busy) {
|
|
7486
7604
|
catalogRefreshing = busy;
|
|
7487
|
-
}, "
|
|
7605
|
+
}, "o10", $scope0_id)
|
|
7488
7606
|
});
|
|
7489
|
-
_var($scope0_id, "u", $childScope3, "
|
|
7607
|
+
_var($scope0_id, "u", $childScope3, "o14");
|
|
7490
7608
|
const running = procs || [];
|
|
7491
7609
|
_html("</div></section>");
|
|
7492
7610
|
_if(() => {
|
|
7493
7611
|
if (running.length) {
|
|
7494
7612
|
const $scope9_id = _scope_id();
|
|
7495
|
-
_html(`<section${_attr_class("
|
|
7613
|
+
_html(`<section${_attr_class("_bu")}><div${_attr_class("_bv")}><h2${_attr_class("_bJ")}>Running</h2><span${_attr_class(sectionCount)}>${_escape(running.length)}${_el_resume($scope9_id, "e")}</span></div><ul${_attr_class("_bx")}>`);
|
|
7496
7614
|
_for_of(running, (p) => {
|
|
7497
7615
|
const $scope10_id = _scope_id();
|
|
7498
|
-
_html(`<li${_attr_class("
|
|
7616
|
+
_html(`<li${_attr_class("_bz")}><div${_attr_class("_bA")}${_attr("title", p.args)}><span${_attr_class(["_bB", "_x"])}>${_escape(p.cmd)}${_el_resume($scope10_id, "d")}</span>`);
|
|
7499
7617
|
_if(() => {
|
|
7500
7618
|
if (p.ports.length) {
|
|
7501
7619
|
const $scope18_id = _scope_id();
|
|
7502
|
-
_html(`<span${_attr_class("
|
|
7620
|
+
_html(`<span${_attr_class("_bC")}>`);
|
|
7503
7621
|
_for_of(p.ports, (port) => {
|
|
7504
7622
|
const $scope19_id = _scope_id();
|
|
7505
|
-
_html(`<button${_attr_class(["_s", "
|
|
7506
|
-
_script($scope19_id, "
|
|
7623
|
+
_html(`<button${_attr_class(["_s", "_dR"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope19_id, "b")}</button>${_el_resume($scope19_id, "a")}`);
|
|
7624
|
+
_script($scope19_id, "o15");
|
|
7507
7625
|
writeScope($scope19_id, { d: port });
|
|
7508
7626
|
}, (x) => String(x), $scope18_id, "a", 1, 1, 1, "</span>", 1);
|
|
7509
7627
|
writeScope($scope18_id, {});
|
|
7510
7628
|
return 0;
|
|
7511
7629
|
}
|
|
7512
7630
|
}, $scope10_id, "e", 1, 1, 1, 0, 1);
|
|
7513
|
-
_html(`</div>${_el_resume($scope10_id, "b")}<button${_attr_class(["
|
|
7631
|
+
_html(`</div>${_el_resume($scope10_id, "b")}<button${_attr_class(["_bE", "_2"])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
7514
7632
|
icon_xmark_default({ size: 14 });
|
|
7515
7633
|
_html(`</button>${_el_resume($scope10_id, "f")}</li>`);
|
|
7516
|
-
_script($scope10_id, "
|
|
7634
|
+
_script($scope10_id, "o16");
|
|
7517
7635
|
writeScope($scope10_id, {
|
|
7518
7636
|
l: p?.ports,
|
|
7519
7637
|
n: p?.pid
|
|
@@ -7524,18 +7642,18 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7524
7642
|
return 0;
|
|
7525
7643
|
}
|
|
7526
7644
|
}, $scope0_id, "v", 1, 1, 1, 0, 1);
|
|
7527
|
-
_html(`<section${_attr_class(["
|
|
7645
|
+
_html(`<section${_attr_class(["_bu", "_dS"])}><div${_attr_class("_bv")}><h2${_attr_class("_bJ")}>Workspace</h2></div><div${_attr_class("_dT")}>`);
|
|
7528
7646
|
_if(() => {
|
|
7529
7647
|
if (ws.status === "active") {
|
|
7530
7648
|
const $scope4_id = _scope_id();
|
|
7531
7649
|
_html(`<button type=button${_attr_class(btnLg)}${_attr("disabled", !!pendingAction)}>${pendingAction === "archive" ? "Archiving…" : "Archive"}${_el_resume($scope4_id, "b")}</button>${_el_resume($scope4_id, "a")}`);
|
|
7532
|
-
_script($scope4_id, "
|
|
7650
|
+
_script($scope4_id, "o17");
|
|
7533
7651
|
writeScope($scope4_id, {});
|
|
7534
7652
|
return 0;
|
|
7535
7653
|
} else {
|
|
7536
7654
|
const $scope5_id = _scope_id();
|
|
7537
7655
|
_html(`<button type=button${_attr_class(btnLg)}${_attr("disabled", !!pendingAction)}>Restore</button>${_el_resume($scope5_id, "a")}`);
|
|
7538
|
-
_script($scope5_id, "
|
|
7656
|
+
_script($scope5_id, "o18");
|
|
7539
7657
|
writeScope($scope5_id, {});
|
|
7540
7658
|
return 1;
|
|
7541
7659
|
}
|
|
@@ -7545,8 +7663,8 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7545
7663
|
"_r",
|
|
7546
7664
|
{ ["_q"]: confirmingDelete }
|
|
7547
7665
|
])}${_attr("disabled", !!pendingAction)}>${pendingAction === "delete" ? "Deleting…" : "Delete"}${_el_resume($scope0_id, "a2")}</button>${_el_resume($scope0_id, "a1")}</div><p${_attr_class(dangerHint)}>Archive hides the workspace from the list. Delete removes it and its worktrees.</p></section></div></div></div>`);
|
|
7548
|
-
_script($scope0_id, "
|
|
7549
|
-
_script($scope0_id, "
|
|
7666
|
+
_script($scope0_id, "o19");
|
|
7667
|
+
_script($scope0_id, "o20");
|
|
7550
7668
|
writeScope($scope0_id, {
|
|
7551
7669
|
a6: _serialize_if($scope0_reason, 0) && input.workspace,
|
|
7552
7670
|
a8: input.workspaceChange,
|
|
@@ -7591,7 +7709,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7591
7709
|
});
|
|
7592
7710
|
//#endregion
|
|
7593
7711
|
//#region src/tags/term-find.marko
|
|
7594
|
-
var term_find_default = _template("
|
|
7712
|
+
var term_find_default = _template("A", (input) => {
|
|
7595
7713
|
const $scope0_reason = _scope_reason();
|
|
7596
7714
|
const $scope0_id = _scope_id();
|
|
7597
7715
|
let open = input.open;
|
|
@@ -7608,60 +7726,64 @@ var term_find_default = _template("z", (input) => {
|
|
|
7608
7726
|
if (!live.open) return;
|
|
7609
7727
|
const search = input.onSearch;
|
|
7610
7728
|
if (search) search(live.query, dir);
|
|
7611
|
-
}, "
|
|
7729
|
+
}, "A1", $scope0_id);
|
|
7612
7730
|
const close = _resume(() => {
|
|
7613
7731
|
open = false;
|
|
7614
7732
|
live.open = false;
|
|
7615
7733
|
const clear = input.onClear;
|
|
7616
7734
|
if (clear) clear();
|
|
7617
|
-
}, "
|
|
7735
|
+
}, "A2", $scope0_id);
|
|
7618
7736
|
const focusInput = _resume(() => {
|
|
7619
7737
|
const el = ((findEl) => findEl())(_el_read_error);
|
|
7620
7738
|
if (!el) return;
|
|
7621
7739
|
el.focus();
|
|
7622
7740
|
if (document.activeElement !== el) setTimeout(() => el.focus(), 0);
|
|
7623
|
-
}, "
|
|
7741
|
+
}, "A3", $scope0_id);
|
|
7624
7742
|
const hasQuery = !!query.trim();
|
|
7625
7743
|
const canStep = hasQuery && open;
|
|
7626
7744
|
const keybar = input.placement === "keybar";
|
|
7627
7745
|
_html(`<div${_attr_class([
|
|
7628
|
-
"
|
|
7629
|
-
keybar ? "
|
|
7630
|
-
!open && "
|
|
7631
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
7746
|
+
"_fG",
|
|
7747
|
+
keybar ? "_fI" : "_fH",
|
|
7748
|
+
!open && "_fK"
|
|
7749
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_fB", keybar ? "_fJ" : "_fD"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
7632
7750
|
if (!open) return;
|
|
7633
7751
|
query = v;
|
|
7634
7752
|
live.query = v;
|
|
7635
7753
|
run(0);
|
|
7636
|
-
}, "
|
|
7754
|
+
}, "A0", $scope0_id))}${_attr_class([findInput, keybar && "_fL"])} 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 && "_fM"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
7755
|
+
icon_arrow_up_default({ size: 14 });
|
|
7756
|
+
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_fM"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
7757
|
+
icon_arrow_down_default({ size: 14 });
|
|
7758
|
+
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "_fM"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
7637
7759
|
icon_xmark_default({ size: 14 });
|
|
7638
|
-
_html(`</button>${_el_resume($scope0_id, "
|
|
7639
|
-
_script($scope0_id, "
|
|
7640
|
-
_script($scope0_id, "
|
|
7641
|
-
_script($scope0_id, "
|
|
7760
|
+
_html(`</button>${_el_resume($scope0_id, "h")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
7761
|
+
_script($scope0_id, "A4");
|
|
7762
|
+
_script($scope0_id, "A5");
|
|
7763
|
+
_script($scope0_id, "A6");
|
|
7642
7764
|
writeScope($scope0_id, {
|
|
7643
|
-
|
|
7644
|
-
|
|
7645
|
-
|
|
7646
|
-
|
|
7647
|
-
|
|
7648
|
-
|
|
7649
|
-
|
|
7650
|
-
|
|
7651
|
-
|
|
7652
|
-
|
|
7653
|
-
|
|
7654
|
-
|
|
7655
|
-
|
|
7656
|
-
|
|
7657
|
-
|
|
7658
|
-
|
|
7659
|
-
|
|
7660
|
-
|
|
7765
|
+
l: _serialize_if($scope0_reason, 1) && input.open,
|
|
7766
|
+
m: _serialize_if($scope0_reason, 0) && input.openChange,
|
|
7767
|
+
o: input.onSearch,
|
|
7768
|
+
p: input.onClear,
|
|
7769
|
+
q: input.focusRef,
|
|
7770
|
+
r: input.tick,
|
|
7771
|
+
t: open,
|
|
7772
|
+
v: query,
|
|
7773
|
+
x: live.open,
|
|
7774
|
+
z: live.query,
|
|
7775
|
+
a2: box.tick,
|
|
7776
|
+
a3: box.wasOpen,
|
|
7777
|
+
a4: run,
|
|
7778
|
+
a6: close,
|
|
7779
|
+
a7: focusInput,
|
|
7780
|
+
aa: hasQuery,
|
|
7781
|
+
ad: keybar,
|
|
7782
|
+
u: input.openChange || void 0
|
|
7661
7783
|
});
|
|
7662
7784
|
_resume_branch($scope0_id);
|
|
7663
7785
|
});
|
|
7664
|
-
_template("
|
|
7786
|
+
_template("jb", (input) => {
|
|
7665
7787
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
7666
7788
|
const $scope0_id = _scope_id();
|
|
7667
7789
|
_set_serialize_reason({
|
|
@@ -7676,7 +7798,7 @@ _template("Z", (input) => {
|
|
|
7676
7798
|
});
|
|
7677
7799
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
7678
7800
|
});
|
|
7679
|
-
_template("
|
|
7801
|
+
_template("V", (input) => {
|
|
7680
7802
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
7681
7803
|
const $scope0_id = _scope_id();
|
|
7682
7804
|
_set_serialize_reason({
|
|
@@ -7691,7 +7813,7 @@ _template("M", (input) => {
|
|
|
7691
7813
|
});
|
|
7692
7814
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
7693
7815
|
});
|
|
7694
|
-
_template("
|
|
7816
|
+
_template("$", (input) => {
|
|
7695
7817
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
7696
7818
|
const $scope0_id = _scope_id();
|
|
7697
7819
|
_set_serialize_reason({
|
|
@@ -7706,7 +7828,7 @@ _template("Q", (input) => {
|
|
|
7706
7828
|
});
|
|
7707
7829
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
7708
7830
|
});
|
|
7709
|
-
_template("
|
|
7831
|
+
_template("S", (input) => {
|
|
7710
7832
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
7711
7833
|
const $scope0_id = _scope_id();
|
|
7712
7834
|
_set_serialize_reason({
|
|
@@ -7721,11 +7843,71 @@ _template("K", (input) => {
|
|
|
7721
7843
|
});
|
|
7722
7844
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
7723
7845
|
});
|
|
7846
|
+
_template("I", (input) => {
|
|
7847
|
+
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
7848
|
+
const $scope0_id = _scope_id();
|
|
7849
|
+
_set_serialize_reason({
|
|
7850
|
+
0: $sg__input_size__OR__input_class,
|
|
7851
|
+
1: $sg__input_size__OR__input_class
|
|
7852
|
+
});
|
|
7853
|
+
const $childScope = _peek_scope_id();
|
|
7854
|
+
icon_base_default({
|
|
7855
|
+
d: "M21 12L3 12M3 12L11.5 3.5M3 12L11.5 20.5",
|
|
7856
|
+
size: input.size,
|
|
7857
|
+
class: input.class
|
|
7858
|
+
});
|
|
7859
|
+
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
7860
|
+
});
|
|
7861
|
+
_template("J", (input) => {
|
|
7862
|
+
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
7863
|
+
const $scope0_id = _scope_id();
|
|
7864
|
+
_set_serialize_reason({
|
|
7865
|
+
0: $sg__input_size__OR__input_class,
|
|
7866
|
+
1: $sg__input_size__OR__input_class
|
|
7867
|
+
});
|
|
7868
|
+
const $childScope = _peek_scope_id();
|
|
7869
|
+
icon_base_default({
|
|
7870
|
+
d: "M3 12L21 12M21 12L12.5 3.5M21 12L12.5 20.5",
|
|
7871
|
+
size: input.size,
|
|
7872
|
+
class: input.class
|
|
7873
|
+
});
|
|
7874
|
+
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
7875
|
+
});
|
|
7876
|
+
_template("X", (input) => {
|
|
7877
|
+
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
7878
|
+
const $scope0_id = _scope_id();
|
|
7879
|
+
_set_serialize_reason({
|
|
7880
|
+
0: $sg__input_size__OR__input_class,
|
|
7881
|
+
1: $sg__input_size__OR__input_class
|
|
7882
|
+
});
|
|
7883
|
+
const $childScope = _peek_scope_id();
|
|
7884
|
+
icon_base_default({
|
|
7885
|
+
d: "M19 6V11C19 12.1046 18.1046 13 17 13H5 M9 9L5 13L9 17",
|
|
7886
|
+
size: input.size,
|
|
7887
|
+
class: input.class
|
|
7888
|
+
});
|
|
7889
|
+
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
7890
|
+
});
|
|
7891
|
+
_template("hb", (input) => {
|
|
7892
|
+
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
7893
|
+
const $scope0_id = _scope_id();
|
|
7894
|
+
_set_serialize_reason({
|
|
7895
|
+
0: $sg__input_size__OR__input_class,
|
|
7896
|
+
1: $sg__input_size__OR__input_class
|
|
7897
|
+
});
|
|
7898
|
+
const $childScope = _peek_scope_id();
|
|
7899
|
+
icon_base_default({
|
|
7900
|
+
d: "M4 12H16 M12 8L16 12L12 16 M20 7V17",
|
|
7901
|
+
size: input.size,
|
|
7902
|
+
class: input.class
|
|
7903
|
+
});
|
|
7904
|
+
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
7905
|
+
});
|
|
7724
7906
|
//#endregion
|
|
7725
7907
|
//#region src/tags/term.marko
|
|
7726
7908
|
var REPEAT_DELAY = 400;
|
|
7727
7909
|
var REPEAT_EVERY = 55;
|
|
7728
|
-
var term_default = _template("
|
|
7910
|
+
var term_default = _template("B", (input) => {
|
|
7729
7911
|
const $scope0_reason = _scope_reason();
|
|
7730
7912
|
_serialize_guard($scope0_reason, 5);
|
|
7731
7913
|
_serialize_guard($scope0_reason, 0);
|
|
@@ -7744,7 +7926,7 @@ var term_default = _template("A", (input) => {
|
|
|
7744
7926
|
_serialize_guard($scope0_reason, 13);
|
|
7745
7927
|
const $si__input_sessionState = _serialize_if($scope0_reason, 6), $si__input_onCloseSession = _serialize_if($scope0_reason, 7), $si__input_workspaceName = _serialize_if($scope0_reason, 13);
|
|
7746
7928
|
const $scope0_id = _scope_id();
|
|
7747
|
-
_hoist($scope0_id, "
|
|
7929
|
+
_hoist($scope0_id, "B21");
|
|
7748
7930
|
const $findOpen__closures = /* @__PURE__ */ new Set();
|
|
7749
7931
|
const $findTick__closures = /* @__PURE__ */ new Set();
|
|
7750
7932
|
const $input_onCloseSession__closures = /* @__PURE__ */ new Set();
|
|
@@ -7766,7 +7948,7 @@ var term_default = _template("A", (input) => {
|
|
|
7766
7948
|
let findOpen = false;
|
|
7767
7949
|
const $openChange = _resume((_new_findOpen) => {
|
|
7768
7950
|
findOpen = _new_findOpen;
|
|
7769
|
-
}, "
|
|
7951
|
+
}, "B1", $scope0_id);
|
|
7770
7952
|
let findTick = 0;
|
|
7771
7953
|
const ioBox = { current: null };
|
|
7772
7954
|
const searchBox = {
|
|
@@ -7774,7 +7956,7 @@ var term_default = _template("A", (input) => {
|
|
|
7774
7956
|
query: "",
|
|
7775
7957
|
refreshTimer: 0
|
|
7776
7958
|
};
|
|
7777
|
-
const findFocusRef = { focus: _resume(function() {}, "
|
|
7959
|
+
const findFocusRef = { focus: _resume(function() {}, "B2") };
|
|
7778
7960
|
const scheduleFindRefresh = _resume(() => {
|
|
7779
7961
|
if (!searchBox.query.trim() || !searchBox.overlay) return;
|
|
7780
7962
|
if (searchBox.refreshTimer) clearTimeout(searchBox.refreshTimer);
|
|
@@ -7782,7 +7964,7 @@ var term_default = _template("A", (input) => {
|
|
|
7782
7964
|
searchBox.refreshTimer = 0;
|
|
7783
7965
|
searchBox.overlay?.refresh();
|
|
7784
7966
|
}, 32);
|
|
7785
|
-
}, "
|
|
7967
|
+
}, "B3", $scope0_id);
|
|
7786
7968
|
const runFind = _resume((query, dir) => {
|
|
7787
7969
|
const overlay = searchBox.overlay;
|
|
7788
7970
|
if (!overlay) return;
|
|
@@ -7796,7 +7978,7 @@ var term_default = _template("A", (input) => {
|
|
|
7796
7978
|
return;
|
|
7797
7979
|
}
|
|
7798
7980
|
overlay.search(query, dir);
|
|
7799
|
-
}, "
|
|
7981
|
+
}, "B4", $scope0_id);
|
|
7800
7982
|
const clearFind = _resume(() => {
|
|
7801
7983
|
if (searchBox.refreshTimer) {
|
|
7802
7984
|
clearTimeout(searchBox.refreshTimer);
|
|
@@ -7804,7 +7986,7 @@ var term_default = _template("A", (input) => {
|
|
|
7804
7986
|
}
|
|
7805
7987
|
searchBox.query = "";
|
|
7806
7988
|
searchBox.overlay?.clear();
|
|
7807
|
-
}, "
|
|
7989
|
+
}, "B5", $scope0_id);
|
|
7808
7990
|
const openFind = _resume(() => {
|
|
7809
7991
|
if (kb) {
|
|
7810
7992
|
kb = false;
|
|
@@ -7814,7 +7996,7 @@ var term_default = _template("A", (input) => {
|
|
|
7814
7996
|
findOpen = true;
|
|
7815
7997
|
findTick++;
|
|
7816
7998
|
findFocusRef.focus();
|
|
7817
|
-
}, "
|
|
7999
|
+
}, "B6", $scope0_id);
|
|
7818
8000
|
const toggleFind = _resume(() => {
|
|
7819
8001
|
if (findOpen) {
|
|
7820
8002
|
findOpen = false;
|
|
@@ -7823,7 +8005,7 @@ var term_default = _template("A", (input) => {
|
|
|
7823
8005
|
return;
|
|
7824
8006
|
}
|
|
7825
8007
|
openFind();
|
|
7826
|
-
}, "
|
|
8008
|
+
}, "B7", $scope0_id);
|
|
7827
8009
|
const onTermPage = input.mode == null || input.mode === "term";
|
|
7828
8010
|
const canKeys = onTermPage || input.mode === "diff";
|
|
7829
8011
|
const findLit = onTermPage ? findOpen : input.mode === "diff" && !!input.reviewFindOpen;
|
|
@@ -7834,7 +8016,7 @@ var term_default = _template("A", (input) => {
|
|
|
7834
8016
|
return;
|
|
7835
8017
|
}
|
|
7836
8018
|
if (input.mode === "diff") input.onToggleReviewFind?.();
|
|
7837
|
-
}, "
|
|
8019
|
+
}, "B8", $scope0_id);
|
|
7838
8020
|
const thisAgent = activeAgent({
|
|
7839
8021
|
agent: input.agent || "shell",
|
|
7840
8022
|
state: input.sessionState
|
|
@@ -7846,7 +8028,7 @@ var term_default = _template("A", (input) => {
|
|
|
7846
8028
|
copyFlashBox.timer = setTimeout(() => {
|
|
7847
8029
|
copiedFlash = false;
|
|
7848
8030
|
}, 1200);
|
|
7849
|
-
}, "
|
|
8031
|
+
}, "B9", $scope0_id);
|
|
7850
8032
|
const holdBox = { current: null };
|
|
7851
8033
|
const startHold = _resume((seq) => {
|
|
7852
8034
|
((stopHold) => stopHold())(_hoist_read_error);
|
|
@@ -7856,7 +8038,7 @@ var term_default = _template("A", (input) => {
|
|
|
7856
8038
|
state.repeat = setInterval(() => ioBox.current?.send(seq), REPEAT_EVERY);
|
|
7857
8039
|
}, REPEAT_DELAY);
|
|
7858
8040
|
holdBox.current = state;
|
|
7859
|
-
}, "
|
|
8041
|
+
}, "B10", $scope0_id);
|
|
7860
8042
|
const stopHold = _resume(() => {
|
|
7861
8043
|
const hold = holdBox.current;
|
|
7862
8044
|
if (hold) {
|
|
@@ -7864,7 +8046,7 @@ var term_default = _template("A", (input) => {
|
|
|
7864
8046
|
clearInterval(hold.repeat);
|
|
7865
8047
|
holdBox.current = null;
|
|
7866
8048
|
}
|
|
7867
|
-
}, "
|
|
8049
|
+
}, "B11", $scope0_id);
|
|
7868
8050
|
const uploadAsset = _resume(async (file) => {
|
|
7869
8051
|
if (!file) return;
|
|
7870
8052
|
uploading = true;
|
|
@@ -7877,7 +8059,7 @@ var term_default = _template("A", (input) => {
|
|
|
7877
8059
|
} finally {
|
|
7878
8060
|
uploading = false;
|
|
7879
8061
|
}
|
|
7880
|
-
}, "
|
|
8062
|
+
}, "B12", $scope0_id);
|
|
7881
8063
|
const handlePasted = _resume(async (clipboardData) => {
|
|
7882
8064
|
const files = [...clipboardData?.files || []];
|
|
7883
8065
|
for (const file of files) await uploadAsset(file);
|
|
@@ -7886,7 +8068,7 @@ var term_default = _template("A", (input) => {
|
|
|
7886
8068
|
if (text) ioBox.current?.send(text);
|
|
7887
8069
|
}
|
|
7888
8070
|
trapOpen = false;
|
|
7889
|
-
}, "
|
|
8071
|
+
}, "B13", $scope0_id);
|
|
7890
8072
|
const pasteClipboard = _resume(async () => {
|
|
7891
8073
|
if (!navigator.clipboard?.read) {
|
|
7892
8074
|
trapOpen = true;
|
|
@@ -7906,8 +8088,8 @@ var term_default = _template("A", (input) => {
|
|
|
7906
8088
|
} catch {
|
|
7907
8089
|
trapOpen = true;
|
|
7908
8090
|
}
|
|
7909
|
-
}, "
|
|
7910
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
8091
|
+
}, "B14", $scope0_id);
|
|
8092
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_eh")}><div${_attr_class("_ei")}></div>${_el_resume($scope0_id, "b")}`);
|
|
7911
8093
|
_if(() => {
|
|
7912
8094
|
if (findOpen) {
|
|
7913
8095
|
const $scope12_id = _scope_id();
|
|
@@ -7921,11 +8103,11 @@ var term_default = _template("A", (input) => {
|
|
|
7921
8103
|
focusRef: findFocusRef,
|
|
7922
8104
|
onSearch: _resume(function(q, dir) {
|
|
7923
8105
|
runFind(q, dir);
|
|
7924
|
-
}, "
|
|
8106
|
+
}, "B15", $scope12_id),
|
|
7925
8107
|
onClear: _resume(function() {
|
|
7926
8108
|
clearFind();
|
|
7927
8109
|
ioBox.current?.setFindMode(false);
|
|
7928
|
-
}, "
|
|
8110
|
+
}, "B16", $scope12_id)
|
|
7929
8111
|
});
|
|
7930
8112
|
writeScope($scope12_id, { a: _existing_scope($childScope) });
|
|
7931
8113
|
return 0;
|
|
@@ -7934,7 +8116,7 @@ var term_default = _template("A", (input) => {
|
|
|
7934
8116
|
_if(() => {
|
|
7935
8117
|
if (uploading) {
|
|
7936
8118
|
const $scope19_id = _scope_id();
|
|
7937
|
-
_html(`<div${_attr_class("
|
|
8119
|
+
_html(`<div${_attr_class("_eo")}>uploading…</div>`);
|
|
7938
8120
|
writeScope($scope19_id, {});
|
|
7939
8121
|
return 0;
|
|
7940
8122
|
}
|
|
@@ -7942,7 +8124,7 @@ var term_default = _template("A", (input) => {
|
|
|
7942
8124
|
_if(() => {
|
|
7943
8125
|
if (copiedFlash) {
|
|
7944
8126
|
const $scope20_id = _scope_id();
|
|
7945
|
-
_html(`<div${_attr_class("
|
|
8127
|
+
_html(`<div${_attr_class("_en")}>Copied</div>`);
|
|
7946
8128
|
writeScope($scope20_id, {});
|
|
7947
8129
|
return 0;
|
|
7948
8130
|
}
|
|
@@ -7951,18 +8133,18 @@ var term_default = _template("A", (input) => {
|
|
|
7951
8133
|
_if(() => {
|
|
7952
8134
|
if (trapOpen) {
|
|
7953
8135
|
const $scope11_id = _scope_id();
|
|
7954
|
-
_html(`<div${_attr_class("
|
|
7955
|
-
_script($scope11_id, "
|
|
7956
|
-
_script($scope11_id, "
|
|
8136
|
+
_html(`<div${_attr_class("_ep")}><div${_attr_class("_eq")}><p${_attr_class("_eU")}>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")}`);
|
|
8137
|
+
_script($scope11_id, "B25");
|
|
8138
|
+
_script($scope11_id, "B26");
|
|
7957
8139
|
writeScope($scope11_id, {});
|
|
7958
8140
|
return 0;
|
|
7959
8141
|
}
|
|
7960
8142
|
}, $scope0_id, "g", 1, 1, 1, 0, 1);
|
|
7961
8143
|
_html(`</div>${_el_resume($scope0_id, "a")}`);
|
|
7962
8144
|
_if(() => {}, $scope0_id, "h", 1, 1, 1, 0, 1);
|
|
7963
|
-
_script($scope0_id, "
|
|
7964
|
-
_script($scope0_id, "
|
|
7965
|
-
_script($scope0_id, "
|
|
8145
|
+
_script($scope0_id, "B41");
|
|
8146
|
+
_script($scope0_id, "B42");
|
|
8147
|
+
_script($scope0_id, "B43");
|
|
7966
8148
|
writeScope($scope0_id, {
|
|
7967
8149
|
k: input.mode,
|
|
7968
8150
|
l: input.reviewFindOpen,
|
|
@@ -8029,7 +8211,7 @@ var term_default = _template("A", (input) => {
|
|
|
8029
8211
|
//#region src/tags/work-view.marko
|
|
8030
8212
|
var api$1;
|
|
8031
8213
|
var isTransientApiError$1;
|
|
8032
|
-
var work_view_default = _template("
|
|
8214
|
+
var work_view_default = _template("F", (input) => {
|
|
8033
8215
|
const $scope0_reason = _scope_reason(), $sg__input_workspace = _serialize_guard($scope0_reason, 6), $sg__input_agents = _serialize_guard($scope0_reason, 15), $sg__input_allWorkspaces = _serialize_guard($scope0_reason, 14), $si__input_workspace = _serialize_if($scope0_reason, 6), $si__input_active = _serialize_if($scope0_reason, 8), $si__input_agents = _serialize_if($scope0_reason, 15), $si__input_preferred = _serialize_if($scope0_reason, 9);
|
|
8034
8216
|
const $scope0_id = _scope_id();
|
|
8035
8217
|
const $error__closures = /* @__PURE__ */ new Set();
|
|
@@ -8054,16 +8236,16 @@ var work_view_default = _template("E", (input) => {
|
|
|
8054
8236
|
let DiffView = null;
|
|
8055
8237
|
const loadDiffView = _resume(() => {
|
|
8056
8238
|
if (DiffView) return;
|
|
8057
|
-
import("./
|
|
8239
|
+
import("./_DPT3XRV0.js").then((m) => {
|
|
8058
8240
|
DiffView = m.default;
|
|
8059
8241
|
});
|
|
8060
|
-
}, "
|
|
8242
|
+
}, "F6", $scope0_id);
|
|
8061
8243
|
let manageMounted = input.initialView === "manage";
|
|
8062
8244
|
let settingsMounted = input.initialView === "settings";
|
|
8063
8245
|
let newMounted = input.initialView === "new";
|
|
8064
8246
|
let reviewFindOpen = false;
|
|
8065
8247
|
let reviewFindTick = 0;
|
|
8066
|
-
const reviewFindFocus = { focus: _resume(function() {}, "
|
|
8248
|
+
const reviewFindFocus = { focus: _resume(function() {}, "F0") };
|
|
8067
8249
|
let focusPr = input.initialPr ?? "";
|
|
8068
8250
|
let focusNonce = 0;
|
|
8069
8251
|
let reviewScope = input.initialScope ?? null;
|
|
@@ -8081,22 +8263,22 @@ var work_view_default = _template("E", (input) => {
|
|
|
8081
8263
|
loadDiffView();
|
|
8082
8264
|
diffMounted = true;
|
|
8083
8265
|
view = "diff";
|
|
8084
|
-
}, "
|
|
8266
|
+
}, "F7", $scope0_id);
|
|
8085
8267
|
const openManage = _resume(() => {
|
|
8086
8268
|
manageMounted = true;
|
|
8087
8269
|
view = "manage";
|
|
8088
|
-
}, "
|
|
8270
|
+
}, "F8", $scope0_id);
|
|
8089
8271
|
const openSettings = _resume(() => {
|
|
8090
8272
|
settingsMounted = true;
|
|
8091
8273
|
view = "settings";
|
|
8092
|
-
}, "
|
|
8274
|
+
}, "F9", $scope0_id);
|
|
8093
8275
|
const toggleNav = _resume(() => {
|
|
8094
8276
|
view = view === "nav" ? "term" : "nav";
|
|
8095
|
-
}, "
|
|
8277
|
+
}, "F10", $scope0_id);
|
|
8096
8278
|
const toggleDiff = _resume(() => {
|
|
8097
8279
|
if (view === "diff") view = "term";
|
|
8098
8280
|
else openDiff();
|
|
8099
|
-
}, "
|
|
8281
|
+
}, "F11", $scope0_id);
|
|
8100
8282
|
const shownSessions = sessions ?? input.allStatus?.[ws.id]?.sessions ?? null;
|
|
8101
8283
|
const curTab = (() => {
|
|
8102
8284
|
if (tab && shownSessions?.some((s) => s.id === tab)) return tab;
|
|
@@ -8113,10 +8295,10 @@ var work_view_default = _template("E", (input) => {
|
|
|
8113
8295
|
reviewFindOpen = true;
|
|
8114
8296
|
reviewFindTick++;
|
|
8115
8297
|
reviewFindFocus.focus();
|
|
8116
|
-
}, "
|
|
8298
|
+
}, "F12", $scope0_id);
|
|
8117
8299
|
const exitCreate = _resume(() => {
|
|
8118
8300
|
if (view === "new") view = "term";
|
|
8119
|
-
}, "
|
|
8301
|
+
}, "F13", $scope0_id);
|
|
8120
8302
|
const applyView = _resume((v) => {
|
|
8121
8303
|
if (v.view === "diff") {
|
|
8122
8304
|
if (v.scope !== void 0) reviewScope = v.scope ?? null;
|
|
@@ -8131,7 +8313,7 @@ var work_view_default = _template("E", (input) => {
|
|
|
8131
8313
|
}
|
|
8132
8314
|
view = "term";
|
|
8133
8315
|
}
|
|
8134
|
-
}, "
|
|
8316
|
+
}, "F14", $scope0_id);
|
|
8135
8317
|
const createSession = _resume(async (agent, select) => {
|
|
8136
8318
|
spawning = true;
|
|
8137
8319
|
try {
|
|
@@ -8152,7 +8334,7 @@ var work_view_default = _template("E", (input) => {
|
|
|
8152
8334
|
} finally {
|
|
8153
8335
|
spawning = false;
|
|
8154
8336
|
}
|
|
8155
|
-
}, "
|
|
8337
|
+
}, "F15", $scope0_id);
|
|
8156
8338
|
const loadMem = {
|
|
8157
8339
|
wanted: false,
|
|
8158
8340
|
run: void 0
|
|
@@ -8178,11 +8360,11 @@ var work_view_default = _template("E", (input) => {
|
|
|
8178
8360
|
if (isTransientApiError$1(err)) return;
|
|
8179
8361
|
error = String(err.message || err);
|
|
8180
8362
|
}
|
|
8181
|
-
}, "
|
|
8363
|
+
}, "F16", $scope0_id);
|
|
8182
8364
|
const loadSessions = _resume((autoCreate) => {
|
|
8183
8365
|
if (autoCreate) loadMem.wanted = true;
|
|
8184
8366
|
return (loadMem.run ??= coalesce(loadBody))();
|
|
8185
|
-
}, "
|
|
8367
|
+
}, "F17", $scope0_id);
|
|
8186
8368
|
const closeSession = _resume(async (id) => {
|
|
8187
8369
|
try {
|
|
8188
8370
|
sessions = (sessions || []).filter((s) => s.id !== id);
|
|
@@ -8192,7 +8374,7 @@ var work_view_default = _template("E", (input) => {
|
|
|
8192
8374
|
error = `Close session failed: ${String(err.message || err)}`;
|
|
8193
8375
|
loadSessions(false);
|
|
8194
8376
|
}
|
|
8195
|
-
}, "
|
|
8377
|
+
}, "F18", $scope0_id);
|
|
8196
8378
|
const renameSession = _resume(async (id, title) => {
|
|
8197
8379
|
title = title.trim();
|
|
8198
8380
|
const cur = (sessions || []).find((s) => s.id === id);
|
|
@@ -8207,7 +8389,7 @@ var work_view_default = _template("E", (input) => {
|
|
|
8207
8389
|
headers: { "content-type": "application/json" },
|
|
8208
8390
|
body: JSON.stringify({ title })
|
|
8209
8391
|
});
|
|
8210
|
-
}, "
|
|
8392
|
+
}, "F19", $scope0_id);
|
|
8211
8393
|
const newSession = _resume(async (wsId, agent) => {
|
|
8212
8394
|
if (wsId === ws.id) {
|
|
8213
8395
|
const session = await createSession(agent, true);
|
|
@@ -8225,7 +8407,7 @@ var work_view_default = _template("E", (input) => {
|
|
|
8225
8407
|
} catch (err) {
|
|
8226
8408
|
error = String(err.message || err);
|
|
8227
8409
|
}
|
|
8228
|
-
}, "
|
|
8410
|
+
}, "F20", $scope0_id);
|
|
8229
8411
|
const onKey = _resume((e) => {
|
|
8230
8412
|
const target = e.target;
|
|
8231
8413
|
const typing = !!target && !target.closest(".xterm") && (target.tagName === "INPUT" || target.tagName === "TEXTAREA" || target.tagName === "SELECT" || target.isContentEditable);
|
|
@@ -8239,11 +8421,11 @@ var work_view_default = _template("E", (input) => {
|
|
|
8239
8421
|
e.preventDefault();
|
|
8240
8422
|
toggleDiff();
|
|
8241
8423
|
}
|
|
8242
|
-
}, "
|
|
8243
|
-
_html(`<div${_attr_class(["
|
|
8244
|
-
["
|
|
8245
|
-
["
|
|
8246
|
-
}])}><div${_attr_class("
|
|
8424
|
+
}, "F21", $scope0_id);
|
|
8425
|
+
_html(`<div${_attr_class(["_b4", {
|
|
8426
|
+
["_b2"]: view === "nav",
|
|
8427
|
+
["_b3"]: !input.active
|
|
8428
|
+
}])}><div${_attr_class("_b5")}>`);
|
|
8247
8429
|
_set_serialize_reason({
|
|
8248
8430
|
0: _serialize_guard($scope0_reason, 0),
|
|
8249
8431
|
1: 1,
|
|
@@ -8275,45 +8457,45 @@ var work_view_default = _template("E", (input) => {
|
|
|
8275
8457
|
tab: curTab,
|
|
8276
8458
|
tabChange: _resume(function(id) {
|
|
8277
8459
|
tab = id;
|
|
8278
|
-
}, "
|
|
8460
|
+
}, "F22", $scope0_id),
|
|
8279
8461
|
view,
|
|
8280
8462
|
viewChange: _resume((_new_view) => {
|
|
8281
8463
|
view = _new_view;
|
|
8282
|
-
}, "
|
|
8464
|
+
}, "F23", $scope0_id),
|
|
8283
8465
|
allWorkspaces: input.allWorkspaces,
|
|
8284
8466
|
allStatus: input.allStatus,
|
|
8285
8467
|
agents: input.agents,
|
|
8286
8468
|
onError: _resume(function(message) {
|
|
8287
8469
|
error = message;
|
|
8288
|
-
}, "
|
|
8470
|
+
}, "F24", $scope0_id),
|
|
8289
8471
|
onSelectWorkspace: _resume(function(id) {
|
|
8290
8472
|
exitCreate();
|
|
8291
8473
|
input.onSelectWorkspace?.(id);
|
|
8292
|
-
}, "
|
|
8474
|
+
}, "F25", $scope0_id),
|
|
8293
8475
|
onNewSession: _resume(function(wsId, agent) {
|
|
8294
8476
|
exitCreate();
|
|
8295
8477
|
newSession(wsId, agent);
|
|
8296
|
-
}, "
|
|
8478
|
+
}, "F26", $scope0_id),
|
|
8297
8479
|
onCloseSession: _resume(function(id) {
|
|
8298
8480
|
closeSession(id);
|
|
8299
|
-
}, "
|
|
8481
|
+
}, "F27", $scope0_id),
|
|
8300
8482
|
onRenameSession: _resume(function(s, title) {
|
|
8301
8483
|
renameSession(s.id, title);
|
|
8302
|
-
}, "
|
|
8484
|
+
}, "F28", $scope0_id),
|
|
8303
8485
|
onReviewOpened: _resume(function(pr) {
|
|
8304
8486
|
exitCreate();
|
|
8305
8487
|
openDiff(pr);
|
|
8306
|
-
}, "
|
|
8488
|
+
}, "F29", $scope0_id)
|
|
8307
8489
|
});
|
|
8308
|
-
_html(`</div><div${_attr_class("
|
|
8490
|
+
_html(`</div><div${_attr_class("_b6")}>`);
|
|
8309
8491
|
_if(() => {
|
|
8310
8492
|
if (error) {
|
|
8311
8493
|
const $scope8_id = _scope_id();
|
|
8312
8494
|
toast_default({
|
|
8313
8495
|
onDismiss: _resume(function() {
|
|
8314
8496
|
error = null;
|
|
8315
|
-
}, "
|
|
8316
|
-
content: _content_resume("
|
|
8497
|
+
}, "F30", $scope8_id),
|
|
8498
|
+
content: _content_resume("F48", () => {
|
|
8317
8499
|
_scope_reason();
|
|
8318
8500
|
const $scope9_id = _scope_id();
|
|
8319
8501
|
_html(`${_escape(error)}${_el_resume($scope9_id, "a")}`);
|
|
@@ -8328,7 +8510,7 @@ var work_view_default = _template("E", (input) => {
|
|
|
8328
8510
|
_if(() => {
|
|
8329
8511
|
if (diffMounted && DiffView) {
|
|
8330
8512
|
const $scope1_id = _scope_id();
|
|
8331
|
-
_html(`<div${_attr_class(["
|
|
8513
|
+
_html(`<div${_attr_class(["_b7", { ["_b8"]: view === "diff" }])}>`);
|
|
8332
8514
|
_dynamic_tag($scope1_id, "b", DiffView, {
|
|
8333
8515
|
workspaceId: ws.id,
|
|
8334
8516
|
workspaceBranch: ws.branch,
|
|
@@ -8342,23 +8524,23 @@ var work_view_default = _template("E", (input) => {
|
|
|
8342
8524
|
scope: reviewScope,
|
|
8343
8525
|
onScopeChange: _resume(function(s) {
|
|
8344
8526
|
reviewScope = s === "committed" ? null : s;
|
|
8345
|
-
}, "
|
|
8527
|
+
}, "F1", $scope1_id),
|
|
8346
8528
|
onFileChange: _resume(function(f) {
|
|
8347
8529
|
reviewFile = f;
|
|
8348
|
-
}, "
|
|
8530
|
+
}, "F2", $scope1_id),
|
|
8349
8531
|
findOpen: reviewFindOpen,
|
|
8350
8532
|
findOpenChange: _resume((_new_reviewFindOpen) => {
|
|
8351
8533
|
reviewFindOpen = _new_reviewFindOpen;
|
|
8352
|
-
}, "
|
|
8534
|
+
}, "F3", $scope1_id),
|
|
8353
8535
|
findTick: reviewFindTick,
|
|
8354
8536
|
findFocusRef: reviewFindFocus,
|
|
8355
8537
|
onSent: _resume(function(sessionId) {
|
|
8356
8538
|
tab = sessionId;
|
|
8357
8539
|
view = "term";
|
|
8358
|
-
}, "
|
|
8540
|
+
}, "F4", $scope1_id),
|
|
8359
8541
|
onExit: _resume(function() {
|
|
8360
8542
|
view = "term";
|
|
8361
|
-
}, "
|
|
8543
|
+
}, "F5", $scope1_id)
|
|
8362
8544
|
});
|
|
8363
8545
|
_html(`</div>${_el_resume($scope1_id, "a")}`);
|
|
8364
8546
|
writeScope($scope1_id, {});
|
|
@@ -8368,20 +8550,20 @@ var work_view_default = _template("E", (input) => {
|
|
|
8368
8550
|
_if(() => {
|
|
8369
8551
|
if (manageMounted) {
|
|
8370
8552
|
const $scope2_id = _scope_id();
|
|
8371
|
-
_html(`<div${_attr_class(["
|
|
8553
|
+
_html(`<div${_attr_class(["_b7", { ["_b8"]: view === "manage" }])}>`);
|
|
8372
8554
|
_set_serialize_reason(_serialize_guard($scope0_reason, 16));
|
|
8373
8555
|
const $childScope2 = _peek_scope_id();
|
|
8374
8556
|
manage_workspace_default({
|
|
8375
8557
|
workspace: ws,
|
|
8376
8558
|
workspaceChange: _resume(function(next) {
|
|
8377
8559
|
input.onWorkspaceChange?.(next);
|
|
8378
|
-
}, "
|
|
8560
|
+
}, "F31", $scope2_id),
|
|
8379
8561
|
onExit: _resume(function() {
|
|
8380
8562
|
view = "term";
|
|
8381
|
-
}, "
|
|
8563
|
+
}, "F32", $scope2_id),
|
|
8382
8564
|
onDeleted: _resume(function() {
|
|
8383
8565
|
input.onWorkspaceDeleted?.(ws.id);
|
|
8384
|
-
}, "
|
|
8566
|
+
}, "F33", $scope2_id)
|
|
8385
8567
|
});
|
|
8386
8568
|
_html(`</div>${_el_resume($scope2_id, "a")}`);
|
|
8387
8569
|
writeScope($scope2_id, { b: _serialize_if($scope0_reason, 4) && _existing_scope($childScope2) });
|
|
@@ -8391,7 +8573,7 @@ var work_view_default = _template("E", (input) => {
|
|
|
8391
8573
|
_if(() => {
|
|
8392
8574
|
if (settingsMounted) {
|
|
8393
8575
|
const $scope3_id = _scope_id();
|
|
8394
|
-
_html(`<div${_attr_class(["
|
|
8576
|
+
_html(`<div${_attr_class(["_b7", { ["_b8"]: view === "settings" }])}>`);
|
|
8395
8577
|
_set_serialize_reason({
|
|
8396
8578
|
0: _serialize_guard($scope0_reason, 1),
|
|
8397
8579
|
1: $sg__input_workspace,
|
|
@@ -8408,21 +8590,21 @@ var work_view_default = _template("E", (input) => {
|
|
|
8408
8590
|
instance: input.instance,
|
|
8409
8591
|
instanceChange: _resume(function(i) {
|
|
8410
8592
|
input.onInstanceChange?.(i);
|
|
8411
|
-
}, "
|
|
8593
|
+
}, "F34", $scope3_id),
|
|
8412
8594
|
backHref: `/w/${ws.id}`,
|
|
8413
8595
|
onExit: _resume(function() {
|
|
8414
8596
|
view = "term";
|
|
8415
|
-
}, "
|
|
8597
|
+
}, "F35", $scope3_id),
|
|
8416
8598
|
setup: input.setup,
|
|
8417
8599
|
setupChange: _resume(function(s) {
|
|
8418
8600
|
input.onSetupChange?.(s);
|
|
8419
|
-
}, "
|
|
8601
|
+
}, "F36", $scope3_id),
|
|
8420
8602
|
preferredChange: _resume(function(agent) {
|
|
8421
8603
|
input.onPreferredChange?.(agent);
|
|
8422
|
-
}, "
|
|
8604
|
+
}, "F37", $scope3_id),
|
|
8423
8605
|
agentsChange: _resume(function(agents) {
|
|
8424
8606
|
input.onAgentsChange?.(agents);
|
|
8425
|
-
}, "
|
|
8607
|
+
}, "F38", $scope3_id)
|
|
8426
8608
|
});
|
|
8427
8609
|
_html(`</div>${_el_resume($scope3_id, "a")}`);
|
|
8428
8610
|
writeScope($scope3_id, { b: _serialize_if($scope0_reason, 5) && _existing_scope($childScope3) });
|
|
@@ -8432,7 +8614,7 @@ var work_view_default = _template("E", (input) => {
|
|
|
8432
8614
|
_if(() => {
|
|
8433
8615
|
if (newMounted) {
|
|
8434
8616
|
const $scope4_id = _scope_id();
|
|
8435
|
-
_html(`<div${_attr_class(["
|
|
8617
|
+
_html(`<div${_attr_class(["_b7", { ["_b8"]: view === "new" }])}>`);
|
|
8436
8618
|
_set_serialize_reason({
|
|
8437
8619
|
0: 1,
|
|
8438
8620
|
1: $sg__input_allWorkspaces,
|
|
@@ -8444,28 +8626,28 @@ var work_view_default = _template("E", (input) => {
|
|
|
8444
8626
|
backHref: `/w/${ws.id}`,
|
|
8445
8627
|
onExit: _resume(function() {
|
|
8446
8628
|
exitCreate();
|
|
8447
|
-
}, "
|
|
8629
|
+
}, "F39", $scope4_id),
|
|
8448
8630
|
onCreate: _resume(function(ws) {
|
|
8449
8631
|
input.onCreated?.(ws);
|
|
8450
|
-
}, "
|
|
8632
|
+
}, "F40", $scope4_id),
|
|
8451
8633
|
onRestore: _resume(function(next) {
|
|
8452
8634
|
input.onWorkspaceChange?.(next);
|
|
8453
8635
|
input.onSelectWorkspace?.(next.id);
|
|
8454
8636
|
exitCreate();
|
|
8455
|
-
}, "
|
|
8637
|
+
}, "F41", $scope4_id)
|
|
8456
8638
|
});
|
|
8457
8639
|
_html(`</div>${_el_resume($scope4_id, "a")}`);
|
|
8458
8640
|
writeScope($scope4_id, { b: _existing_scope($childScope4) });
|
|
8459
8641
|
return 0;
|
|
8460
8642
|
}
|
|
8461
8643
|
}, $scope0_id, "i", 1, 1, 1, 0, 1);
|
|
8462
|
-
_html(`<div${_attr_class(["
|
|
8644
|
+
_html(`<div${_attr_class(["_b_", { ["_b9"]: view !== "term" }])}>`);
|
|
8463
8645
|
_if(() => {
|
|
8464
8646
|
if (shownSessions) {
|
|
8465
8647
|
const $scope5_id = _scope_id();
|
|
8466
8648
|
_for_of(shownSessions, (s) => {
|
|
8467
8649
|
const $scope6_id = _scope_id();
|
|
8468
|
-
_html(`<div${_attr_class(["
|
|
8650
|
+
_html(`<div${_attr_class(["_ca", { ["_cb"]: s.id === curTab }])}>`);
|
|
8469
8651
|
_set_serialize_reason({
|
|
8470
8652
|
0: 1,
|
|
8471
8653
|
1: 1,
|
|
@@ -8494,26 +8676,26 @@ var work_view_default = _template("E", (input) => {
|
|
|
8494
8676
|
onNewSession: _resume(function(agent) {
|
|
8495
8677
|
view = "term";
|
|
8496
8678
|
newSession(ws.id, agent);
|
|
8497
|
-
}, "
|
|
8679
|
+
}, "F42", $scope6_id),
|
|
8498
8680
|
onOpenTab: _resume(function(id) {
|
|
8499
8681
|
tab = id;
|
|
8500
8682
|
view = "term";
|
|
8501
|
-
}, "
|
|
8683
|
+
}, "F43", $scope6_id),
|
|
8502
8684
|
onCloseSession: _resume(function(id) {
|
|
8503
8685
|
closeSession(id);
|
|
8504
|
-
}, "
|
|
8686
|
+
}, "F44", $scope6_id),
|
|
8505
8687
|
onRenameSession: _resume(function(id, title) {
|
|
8506
8688
|
renameSession(id, title);
|
|
8507
|
-
}, "
|
|
8689
|
+
}, "F45", $scope6_id),
|
|
8508
8690
|
active: input.active && view === "term" && s.id === curTab,
|
|
8509
8691
|
mode: view,
|
|
8510
8692
|
onOpenNav: _resume(function() {
|
|
8511
8693
|
toggleNav();
|
|
8512
|
-
}, "
|
|
8694
|
+
}, "F46", $scope6_id),
|
|
8513
8695
|
reviewFindOpen,
|
|
8514
8696
|
onToggleReviewFind: _resume(function() {
|
|
8515
8697
|
toggleReviewFind();
|
|
8516
|
-
}, "
|
|
8698
|
+
}, "F47", $scope6_id)
|
|
8517
8699
|
});
|
|
8518
8700
|
_html(`</div>${_el_resume($scope6_id, "a")}`);
|
|
8519
8701
|
_subscribe($newSession2__closures, _subscribe($renameSession2__closures, _subscribe($closeSession2__closures, _subscribe($toggleReviewFind2__closures, _subscribe($curTab__closures, _subscribe($shownSessions__closures, _subscribe($si__input_workspace && $ws_name__closures, _subscribe($si__input_workspace && $ws_id__closures, _subscribe($reviewFindOpen__closures, _subscribe($view__closures, _subscribe($si__input_agents && $input_agents__closures, _subscribe($si__input_active && $input_active__closures, writeScope($scope6_id, {
|
|
@@ -8524,8 +8706,8 @@ var work_view_default = _template("E", (input) => {
|
|
|
8524
8706
|
_if(() => {
|
|
8525
8707
|
if (!shownSessions.length && view === "term") {
|
|
8526
8708
|
const $scope7_id = _scope_id();
|
|
8527
|
-
_html(`<div${_attr_class("
|
|
8528
|
-
_script($scope7_id, "
|
|
8709
|
+
_html(`<div${_attr_class("_bG")}><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>`);
|
|
8710
|
+
_script($scope7_id, "F49");
|
|
8529
8711
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
8530
8712
|
return 0;
|
|
8531
8713
|
}
|
|
@@ -8534,21 +8716,21 @@ var work_view_default = _template("E", (input) => {
|
|
|
8534
8716
|
return 0;
|
|
8535
8717
|
} else {
|
|
8536
8718
|
const $scope10_id = _scope_id();
|
|
8537
|
-
_html(`<p${_attr_class("
|
|
8719
|
+
_html(`<p${_attr_class("_bG")}>Loading sessions…</p>`);
|
|
8538
8720
|
writeScope($scope10_id, {});
|
|
8539
8721
|
return 1;
|
|
8540
8722
|
}
|
|
8541
8723
|
}, $scope0_id, "j", 1, 1, 1, "</div>");
|
|
8542
8724
|
_html(`</div></div>${_el_resume($scope0_id, "a")}`);
|
|
8543
|
-
_script($scope0_id, "
|
|
8544
|
-
_script($scope0_id, "
|
|
8545
|
-
_script($scope0_id, "
|
|
8546
|
-
_script($scope0_id, "
|
|
8547
|
-
_script($scope0_id, "
|
|
8548
|
-
_script($scope0_id, "
|
|
8549
|
-
_script($scope0_id, "
|
|
8550
|
-
_script($scope0_id, "
|
|
8551
|
-
_script($scope0_id, "
|
|
8725
|
+
_script($scope0_id, "F50");
|
|
8726
|
+
_script($scope0_id, "F51");
|
|
8727
|
+
_script($scope0_id, "F52");
|
|
8728
|
+
_script($scope0_id, "F53");
|
|
8729
|
+
_script($scope0_id, "F54");
|
|
8730
|
+
_script($scope0_id, "F55");
|
|
8731
|
+
_script($scope0_id, "F56");
|
|
8732
|
+
_script($scope0_id, "F57");
|
|
8733
|
+
_script($scope0_id, "F58");
|
|
8552
8734
|
writeScope($scope0_id, {
|
|
8553
8735
|
n: input.initialView,
|
|
8554
8736
|
s: input.allStatus,
|
|
@@ -8777,6 +8959,7 @@ var app_shell_default = _template("c", (input) => {
|
|
|
8777
8959
|
return 0;
|
|
8778
8960
|
}
|
|
8779
8961
|
}, $scope0_id, "b", 1, 1, 1, 0, 1);
|
|
8962
|
+
connection_pill_default({});
|
|
8780
8963
|
_if(() => {
|
|
8781
8964
|
if (!selectedId && showSetup) {
|
|
8782
8965
|
const $scope4_id = _scope_id();
|
|
@@ -8838,7 +9021,7 @@ var app_shell_default = _template("c", (input) => {
|
|
|
8838
9021
|
writeScope($scope3_id, { a: _existing_scope($childScope2) });
|
|
8839
9022
|
return 1;
|
|
8840
9023
|
}
|
|
8841
|
-
}, $scope0_id, "
|
|
9024
|
+
}, $scope0_id, "d", 1, 1, 1, 0, 1);
|
|
8842
9025
|
_html(`<div${_attr_class(["_e", { ["_f"]: !selectedId }])}>`);
|
|
8843
9026
|
_for_of(openIds, (id) => {
|
|
8844
9027
|
const $scope1_id = _scope_id();
|
|
@@ -8930,56 +9113,56 @@ var app_shell_default = _template("c", (input) => {
|
|
|
8930
9113
|
e: ws,
|
|
8931
9114
|
f: ws?.id
|
|
8932
9115
|
});
|
|
8933
|
-
}, (id) => id, $scope0_id, "
|
|
9116
|
+
}, (id) => id, $scope0_id, "e", 1, 1, 1, "</div>");
|
|
8934
9117
|
_html(`</div>${_el_resume($scope0_id, "a")}`);
|
|
8935
9118
|
_script($scope0_id, "c25");
|
|
8936
9119
|
_script($scope0_id, "c26");
|
|
8937
9120
|
_script($scope0_id, "c27");
|
|
8938
9121
|
writeScope($scope0_id, {
|
|
8939
|
-
|
|
8940
|
-
|
|
8941
|
-
|
|
8942
|
-
|
|
8943
|
-
|
|
8944
|
-
|
|
8945
|
-
|
|
8946
|
-
|
|
8947
|
-
|
|
8948
|
-
|
|
8949
|
-
|
|
8950
|
-
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
|
|
8957
|
-
|
|
8958
|
-
|
|
8959
|
-
|
|
8960
|
-
|
|
8961
|
-
|
|
8962
|
-
|
|
8963
|
-
|
|
8964
|
-
|
|
8965
|
-
|
|
8966
|
-
|
|
8967
|
-
|
|
8968
|
-
|
|
8969
|
-
|
|
8970
|
-
|
|
8971
|
-
|
|
8972
|
-
|
|
8973
|
-
|
|
8974
|
-
|
|
8975
|
-
|
|
8976
|
-
|
|
8977
|
-
|
|
8978
|
-
|
|
8979
|
-
|
|
8980
|
-
|
|
8981
|
-
|
|
8982
|
-
|
|
9122
|
+
n: boot?.prefs,
|
|
9123
|
+
t: initial.workspaceId,
|
|
9124
|
+
u: initial.view,
|
|
9125
|
+
v: initial.sessionId,
|
|
9126
|
+
w: initial.pr,
|
|
9127
|
+
x: initial.scope,
|
|
9128
|
+
y: initial.file,
|
|
9129
|
+
z: workspaces,
|
|
9130
|
+
a0: status,
|
|
9131
|
+
a1: settings,
|
|
9132
|
+
a2: $si__input_initial && last,
|
|
9133
|
+
a3: $si__input_initial && bootActive,
|
|
9134
|
+
a5: $si__input_initial && bootActive?.length,
|
|
9135
|
+
a7: selectedId,
|
|
9136
|
+
a8: openIds,
|
|
9137
|
+
ab: creating,
|
|
9138
|
+
ac: route,
|
|
9139
|
+
ae: lastUrl.route,
|
|
9140
|
+
ag: setup,
|
|
9141
|
+
ah: wantSetup,
|
|
9142
|
+
ai: showSetup,
|
|
9143
|
+
ak: error,
|
|
9144
|
+
al: applyWorkspaces,
|
|
9145
|
+
am: load,
|
|
9146
|
+
an: patchStatusSessions,
|
|
9147
|
+
ap: statusMem.fresh,
|
|
9148
|
+
aq: statusMem.run,
|
|
9149
|
+
as: loadStatus,
|
|
9150
|
+
at: openWorkspace,
|
|
9151
|
+
b7: $error__closures,
|
|
9152
|
+
av: $si__input_initial && $initial_workspaceId__closures,
|
|
9153
|
+
aw: $si__input_initial && $initial_view__closures,
|
|
9154
|
+
ax: $si__input_initial && $initial_sessionId__closures,
|
|
9155
|
+
ay: $si__input_initial && $initial_pr__closures,
|
|
9156
|
+
az: $si__input_initial && $initial_scope__closures,
|
|
9157
|
+
b0: $si__input_initial && $initial_file__closures,
|
|
9158
|
+
b1: $workspaces__closures,
|
|
9159
|
+
b2: $status__closures,
|
|
9160
|
+
b3: $settings__closures,
|
|
9161
|
+
b4: $selectedId__closures,
|
|
9162
|
+
b5: $creating__closures,
|
|
9163
|
+
b6: $setup2__closures,
|
|
9164
|
+
b8: $applyWorkspaces2__closures,
|
|
9165
|
+
b9: $openWorkspace2__closures
|
|
8983
9166
|
});
|
|
8984
9167
|
_resume_branch($scope0_id);
|
|
8985
9168
|
});
|
|
@@ -9079,7 +9262,7 @@ var app_page_default = _template("b", (input) => {
|
|
|
9079
9262
|
});
|
|
9080
9263
|
//#endregion
|
|
9081
9264
|
//#region src/routes/_app/new/+page.marko
|
|
9082
|
-
var _page_default$4 = _template("
|
|
9265
|
+
var _page_default$4 = _template("lb", (input) => {
|
|
9083
9266
|
_scope_reason();
|
|
9084
9267
|
_scope_id();
|
|
9085
9268
|
app_page_default({ initial: {
|
|
@@ -9121,7 +9304,7 @@ var GET$21 = Run.GET(async (_ctx, next) => {
|
|
|
9121
9304
|
});
|
|
9122
9305
|
//#endregion
|
|
9123
9306
|
//#region src/routes/_app/settings/+page.marko
|
|
9124
|
-
var _page_default$3 = _template("
|
|
9307
|
+
var _page_default$3 = _template("mb", (input) => {
|
|
9125
9308
|
_scope_reason();
|
|
9126
9309
|
_scope_id();
|
|
9127
9310
|
app_page_default({ initial: {
|
|
@@ -9158,7 +9341,7 @@ function head3(context) {
|
|
|
9158
9341
|
}
|
|
9159
9342
|
//#endregion
|
|
9160
9343
|
//#region src/routes/_app/w/$id/+page.marko
|
|
9161
|
-
var _page_default$2 = _template("
|
|
9344
|
+
var _page_default$2 = _template("nb", (input) => {
|
|
9162
9345
|
_scope_reason();
|
|
9163
9346
|
_scope_id();
|
|
9164
9347
|
app_page_default({ initial: {
|
|
@@ -9195,7 +9378,7 @@ function head4(context) {
|
|
|
9195
9378
|
}
|
|
9196
9379
|
//#endregion
|
|
9197
9380
|
//#region src/routes/_app/w/$id/manage/+page.marko
|
|
9198
|
-
var _page_default$1 = _template("
|
|
9381
|
+
var _page_default$1 = _template("ob", (input) => {
|
|
9199
9382
|
_scope_reason();
|
|
9200
9383
|
_scope_id();
|
|
9201
9384
|
app_page_default({ initial: {
|
|
@@ -9231,7 +9414,7 @@ function head5(context) {
|
|
|
9231
9414
|
}
|
|
9232
9415
|
//#endregion
|
|
9233
9416
|
//#region src/routes/_app/w/$id/review/+page.marko
|
|
9234
|
-
var _page_default = _template("
|
|
9417
|
+
var _page_default = _template("pb", (input) => {
|
|
9235
9418
|
_scope_reason();
|
|
9236
9419
|
_scope_id();
|
|
9237
9420
|
const q = $global().url.searchParams;
|
|
@@ -16428,6 +16611,9 @@ function attachEventsServer(server) {
|
|
|
16428
16611
|
wss.on("connection", (ws) => {
|
|
16429
16612
|
send(ws, "hello", { boot: BOOT_ID });
|
|
16430
16613
|
const ping = setInterval(() => send(ws, "ping"), PING_MS);
|
|
16614
|
+
ws.on("message", (data) => {
|
|
16615
|
+
if (String(data) === "ping") send(ws, "ping");
|
|
16616
|
+
});
|
|
16431
16617
|
const unsubscribe = subscribe((event) => {
|
|
16432
16618
|
send(ws, event.type, event.data);
|
|
16433
16619
|
});
|
|
@@ -16534,4 +16720,4 @@ server.listen(port, () => {
|
|
|
16534
16720
|
//#endregion
|
|
16535
16721
|
export {};
|
|
16536
16722
|
|
|
16537
|
-
;var __MARKO_MANIFEST__={"
|
|
16723
|
+
;var __MARKO_MANIFEST__={"ibphXY4":{"block":[2,"stylesheet#/assets/app-page-D30JmXcA.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-D30JmXcA.css\"",">"],"defer":[2,"/assets/w._-BiAv3en2.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-BiAv3en2.js\"","></script>",2,"modulepreload#/assets/_tzwJRvKK.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_tzwJRvKK.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/app-page-D30JmXcA.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-D30JmXcA.css\"",">"],"defer":[2,"/assets/settings-BiAv3en2.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-BiAv3en2.js\"","></script>",2,"modulepreload#/assets/_tzwJRvKK.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_tzwJRvKK.js\"",">"]},"ZLT8joi":{"block":[2,"stylesheet#/assets/app-page-D30JmXcA.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-D30JmXcA.css\"",">"],"defer":[2,"/assets/new-BiAv3en2.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-BiAv3en2.js\"","></script>",2,"modulepreload#/assets/_tzwJRvKK.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_tzwJRvKK.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/app-page-D30JmXcA.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-D30JmXcA.css\"",">"],"defer":[2,"/assets/w._-DoR9D5Ku.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-DoR9D5Ku.js\"","></script>",2,"modulepreload#/assets/_tzwJRvKK.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_tzwJRvKK.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/app-page-D30JmXcA.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-D30JmXcA.css\"",">"],"defer":[2,"/assets/w-BiAv3en2.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-BiAv3en2.js\"","></script>",2,"modulepreload#/assets/_tzwJRvKK.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_tzwJRvKK.js\"",">"]}};
|