@dylanpiercey/work 0.0.96 → 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/{_C_EF8rh-.js → _CRHCebx8.js} +29 -29
- package/dist/{_Cel25igI.js → _DPT3XRV0.js} +190 -190
- package/dist/index.mjs +595 -581
- package/dist/public/assets/{_BGz6c5fQ.js → _-b51A6U7.js} +1 -1
- package/dist/public/assets/_-b51A6U7.js.br +0 -0
- package/dist/public/assets/{_CzGmg6J6.js → _0KWxGbZw.js} +1 -1
- package/dist/public/assets/_0KWxGbZw.js.br +0 -0
- package/dist/public/assets/{_6Tvpa4Xu.js → _8GNWgmjH.js} +1 -1
- package/dist/public/assets/_8GNWgmjH.js.br +0 -0
- package/dist/public/assets/{_FsklS6Cf.js → _8tiEU3RO.js} +1 -1
- package/dist/public/assets/_8tiEU3RO.js.br +0 -0
- package/dist/public/assets/{_C1AEjtWB.js → _B2AC3SUA.js} +1 -1
- package/dist/public/assets/_B2AC3SUA.js.br +0 -0
- package/dist/public/assets/{_DmknNPV-.js → _B8-V5BF5.js} +1 -1
- package/dist/public/assets/_B8-V5BF5.js.br +0 -0
- package/dist/public/assets/{_CRtlCbY-.js → _B80qXOTR.js} +1 -1
- package/dist/public/assets/_B80qXOTR.js.br +0 -0
- package/dist/public/assets/{_BnDvpSPb.js → _B9D12lOA.js} +1 -1
- package/dist/public/assets/_B9D12lOA.js.br +0 -0
- package/dist/public/assets/{_DdeqfoDq2.js → _BBS5zv8C2.js} +1 -1
- package/dist/public/assets/_BBS5zv8C2.js.br +0 -0
- package/dist/public/assets/{_CBkUW_R-.js → _BCovSJRb.js} +1 -1
- package/dist/public/assets/_BCovSJRb.js.br +0 -0
- package/dist/public/assets/{_Ch3aclh9.js → _BE3R8mFE.js} +1 -1
- package/dist/public/assets/_BE3R8mFE.js.br +0 -0
- package/dist/public/assets/{_jEfYpM3E2.js → _BGvyA4oE2.js} +1 -1
- package/dist/public/assets/_BGvyA4oE2.js.br +0 -0
- package/dist/public/assets/{_CbFus18_2.js → _BIOtkDha2.js} +1 -1
- package/dist/public/assets/_BIOtkDha2.js.br +0 -0
- package/dist/public/assets/{_CAhTTF9I2.js → _BLcb3Cg42.js} +1 -1
- package/dist/public/assets/_BLcb3Cg42.js.br +0 -0
- package/dist/public/assets/{_CaZfk2zB.js → _BP_u4OL-.js} +1 -1
- package/dist/public/assets/_BP_u4OL-.js.br +0 -0
- package/dist/public/assets/{_BGuxBUC6.js → _BPfQaxTd.js} +1 -1
- package/dist/public/assets/_BPfQaxTd.js.br +0 -0
- package/dist/public/assets/{_D_7Jyml2.js → _BTsrDfH-.js} +1 -1
- package/dist/public/assets/_BTsrDfH-.js.br +0 -0
- package/dist/public/assets/{_D9Iriq-Y.js → _BZsn-7u1.js} +1 -1
- package/dist/public/assets/_BZsn-7u1.js.br +0 -0
- package/dist/public/assets/{_DkuBJFLN2.js → _BaY0h2ec2.js} +1 -1
- package/dist/public/assets/_BaY0h2ec2.js.br +0 -0
- package/dist/public/assets/{_E4WOoQhA.js → _Bc4j5n7x.js} +1 -1
- package/dist/public/assets/_Bc4j5n7x.js.br +0 -0
- package/dist/public/assets/{_CNW9dpu42.js → _BgPTyoAr2.js} +1 -1
- package/dist/public/assets/_BgPTyoAr2.js.br +0 -0
- package/dist/public/assets/{_Cerr01H42.js → _BiDyvSOO2.js} +1 -1
- package/dist/public/assets/_BiDyvSOO2.js.br +0 -0
- package/dist/public/assets/{_BggRFG6b.js → _BkjyxJ0i.js} +1 -1
- package/dist/public/assets/{_CvciVzJE.js → _Bl512FoL.js} +1 -1
- package/dist/public/assets/_Bl512FoL.js.br +0 -0
- package/dist/public/assets/{_Dfr7TISb.js → _Bw9jvu1-.js} +1 -1
- package/dist/public/assets/_Bw9jvu1-.js.br +0 -0
- package/dist/public/assets/{_D3o4Rxbh.js → _BwFRjBOz.js} +1 -1
- package/dist/public/assets/_BwFRjBOz.js.br +0 -0
- package/dist/public/assets/{_C2Qcx14K2.js → _BzGLDIBO2.js} +1 -1
- package/dist/public/assets/_BzGLDIBO2.js.br +0 -0
- package/dist/public/assets/{_DYN4MZjM2.js → _BzfCLxV82.js} +1 -1
- package/dist/public/assets/_BzfCLxV82.js.br +0 -0
- package/dist/public/assets/{_BgA0nPVc2.js → _Bzp9X35S2.js} +1 -1
- package/dist/public/assets/_Bzp9X35S2.js.br +0 -0
- package/dist/public/assets/{_Bpnk-HWG2.js → _C-KXAuRh2.js} +1 -1
- package/dist/public/assets/_C-KXAuRh2.js.br +0 -0
- package/dist/public/assets/{_koIBjoCI2.js → _C2SDF9Yg2.js} +1 -1
- package/dist/public/assets/{_CHSMtXGV.js → _C4nOqeMD.js} +1 -1
- package/dist/public/assets/_C4nOqeMD.js.br +0 -0
- package/dist/public/assets/{_63r8H6KD2.js → _C5xrDvQI2.js} +1 -1
- package/dist/public/assets/_C5xrDvQI2.js.br +0 -0
- package/dist/public/assets/{_BAJq8l9L.js → _CMYGsqdf.js} +1 -1
- package/dist/public/assets/_CMYGsqdf.js.br +0 -0
- package/dist/public/assets/{_BBpJiyYC.js → _COSXS0J8.js} +1 -1
- package/dist/public/assets/_COSXS0J8.js.br +0 -0
- package/dist/public/assets/{_Qqf8g1TK.js → _CPeBESzl.js} +1 -1
- package/dist/public/assets/_CPeBESzl.js.br +0 -0
- package/dist/public/assets/{_CnF5wkxz2.js → _CRbRTfeP2.js} +1 -1
- package/dist/public/assets/_CRbRTfeP2.js.br +0 -0
- package/dist/public/assets/{_D_Ut2Ol9.js → _Cn1q8R2G.js} +1 -1
- package/dist/public/assets/_Cn1q8R2G.js.br +0 -0
- package/dist/public/assets/{_DzyBRpRU.js → _Ct6qquOF.js} +1 -1
- package/dist/public/assets/_Ct6qquOF.js.br +0 -0
- package/dist/public/assets/{_mf72EOR_.js → _CyQMVS2T.js} +1 -1
- package/dist/public/assets/_CyQMVS2T.js.br +0 -0
- package/dist/public/assets/{_BQiqdgb9.js → _Cyhh59cC.js} +1 -1
- package/dist/public/assets/_Cyhh59cC.js.br +0 -0
- package/dist/public/assets/{_Bxjd-YPA2.js → _Cyl9FKNU2.js} +1 -1
- package/dist/public/assets/_Cyl9FKNU2.js.br +0 -0
- package/dist/public/assets/{_DPjHjfD8.js → _D4cKCypW.js} +1 -1
- package/dist/public/assets/_D4cKCypW.js.br +0 -0
- package/dist/public/assets/{_Cwn2Dzif.js → _D5o1QAvJ.js} +1 -1
- package/dist/public/assets/_D5o1QAvJ.js.br +0 -0
- package/dist/public/assets/{_BKaiZ1NX.js → _DA_USHEu.js} +1 -1
- package/dist/public/assets/_DA_USHEu.js.br +0 -0
- package/dist/public/assets/{_BdRvtpe42.js → _DFpIp88l2.js} +1 -1
- package/dist/public/assets/_DFpIp88l2.js.br +0 -0
- package/dist/public/assets/{_CzuNzNf52.js → _DJ0uAfUp2.js} +1 -1
- package/dist/public/assets/_DJ0uAfUp2.js.br +0 -0
- package/dist/public/assets/{_DI8J66CZ.js → _DJ6cJzuI.js} +1 -1
- package/dist/public/assets/_DJ6cJzuI.js.br +0 -0
- package/dist/public/assets/{_tMvc_5W_2.js → _DLSsOTkW2.js} +1 -1
- package/dist/public/assets/{_TPFL8bDN.js → _DSX5dMw5.js} +1 -1
- package/dist/public/assets/_DSX5dMw5.js.br +0 -0
- package/dist/public/assets/{_vE0bTBGo.js → _DYCJZ-Iu.js} +1 -1
- package/dist/public/assets/_DYCJZ-Iu.js.br +0 -0
- package/dist/public/assets/{_CqgdIwou.js → _DaH2ZbUV.js} +1 -1
- package/dist/public/assets/_DaH2ZbUV.js.br +0 -0
- package/dist/public/assets/{_uVBAFIy8.js → _DcTJxua3.js} +1 -1
- package/dist/public/assets/_DcTJxua3.js.br +0 -0
- package/dist/public/assets/{_CHu5Km3j2.js → _DwVknvPD2.js} +1 -1
- package/dist/public/assets/_DwVknvPD2.js.br +0 -0
- package/dist/public/assets/{_D8ZjEIBC.js → _Dx_iq98R.js} +1 -1
- package/dist/public/assets/_Dx_iq98R.js.br +0 -0
- package/dist/public/assets/{_BEejQ7lO.js → _DyjSeFv1.js} +1 -1
- package/dist/public/assets/_DyjSeFv1.js.br +0 -0
- package/dist/public/assets/{_xIRNtE1V.js → _ERnhNh-Y.js} +1 -1
- package/dist/public/assets/_ERnhNh-Y.js.br +0 -0
- package/dist/public/assets/{_a17toZcs.js → _I8D7wiZO.js} +1 -1
- package/dist/public/assets/_I8D7wiZO.js.br +0 -0
- package/dist/public/assets/{_D8kpusiR.js → _Is38l22C.js} +1 -1
- package/dist/public/assets/_Is38l22C.js.br +0 -0
- package/dist/public/assets/{_Em_sWtVW.js → _J13dOJAl.js} +6 -6
- package/dist/public/assets/_J13dOJAl.js.br +0 -0
- package/dist/public/assets/{_3d2N4uW7.js → _Ka1PvLiD.js} +1 -1
- package/dist/public/assets/_Ka1PvLiD.js.br +0 -0
- package/dist/public/assets/{_CKqbHwCF2.js → _Skj5Z76l2.js} +1 -1
- package/dist/public/assets/_Skj5Z76l2.js.br +0 -0
- package/dist/public/assets/{_B3G8MYzv.js → _VJa0VTCn.js} +1 -1
- package/dist/public/assets/_VJa0VTCn.js.br +0 -0
- package/dist/public/assets/{_Bzv-EzCt.js → _XQjM1w_8.js} +1 -1
- package/dist/public/assets/_XQjM1w_8.js.br +0 -0
- package/dist/public/assets/{_D0XB9M1F2.js → _YOqlhSHw2.js} +1 -1
- package/dist/public/assets/_YOqlhSHw2.js.br +0 -0
- package/dist/public/assets/{_B2uZZeNN.js → _a_oWV3XM.js} +1 -1
- package/dist/public/assets/_a_oWV3XM.js.br +0 -0
- package/dist/public/assets/{_y6bl1mtk2.js → _cd0Dn5oM2.js} +1 -1
- package/dist/public/assets/_cd0Dn5oM2.js.br +0 -0
- package/dist/public/assets/{_B4JWlIQw2.js → _e3oDddUx2.js} +1 -1
- package/dist/public/assets/_e3oDddUx2.js.br +0 -0
- package/dist/public/assets/{_vBAanm_x.js → _gu9YaOjx.js} +1 -1
- package/dist/public/assets/_gu9YaOjx.js.br +0 -0
- package/dist/public/assets/{_DCUcB2sk.js → _jK_yh8X8.js} +1 -1
- package/dist/public/assets/_jK_yh8X8.js.br +0 -0
- package/dist/public/assets/{_D8QuoF51.js → _mU_JkZbV.js} +1 -1
- package/dist/public/assets/_mU_JkZbV.js.br +0 -0
- package/dist/public/assets/{_DyVuhWqf2.js → _pImBOEXD2.js} +1 -1
- package/dist/public/assets/_pImBOEXD2.js.br +0 -0
- package/dist/public/assets/{_C3JlLCxf.js → _t5tGr2D1.js} +1 -1
- package/dist/public/assets/_t5tGr2D1.js.br +0 -0
- package/dist/public/assets/{_Ame3I5fr.js → _tzwJRvKK.js} +20 -20
- package/dist/public/assets/_tzwJRvKK.js.br +0 -0
- package/dist/public/assets/{_xACnj4IY.js → _zWXmuT9S.js} +1 -1
- package/dist/public/assets/_zWXmuT9S.js.br +0 -0
- package/dist/public/assets/{_Bx5JF3nx.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/_3d2N4uW7.js.br +0 -0
- package/dist/public/assets/_63r8H6KD2.js.br +0 -0
- package/dist/public/assets/_6Tvpa4Xu.js.br +0 -0
- package/dist/public/assets/_Ame3I5fr.js.br +0 -0
- package/dist/public/assets/_B2uZZeNN.js.br +0 -0
- package/dist/public/assets/_B3G8MYzv.js.br +0 -0
- package/dist/public/assets/_B4JWlIQw2.js.br +0 -0
- package/dist/public/assets/_BAJq8l9L.js.br +0 -0
- package/dist/public/assets/_BBpJiyYC.js.br +0 -0
- package/dist/public/assets/_BEejQ7lO.js.br +0 -0
- package/dist/public/assets/_BGuxBUC6.js.br +0 -0
- package/dist/public/assets/_BGz6c5fQ.js.br +0 -0
- package/dist/public/assets/_BKaiZ1NX.js.br +0 -0
- package/dist/public/assets/_BQiqdgb9.js.br +0 -0
- package/dist/public/assets/_BdRvtpe42.js.br +0 -0
- package/dist/public/assets/_BgA0nPVc2.js.br +0 -0
- package/dist/public/assets/_BnDvpSPb.js.br +0 -0
- package/dist/public/assets/_Bpnk-HWG2.js.br +0 -0
- package/dist/public/assets/_Bx5JF3nx.js.br +0 -0
- package/dist/public/assets/_Bxjd-YPA2.js.br +0 -0
- package/dist/public/assets/_Bzv-EzCt.js.br +0 -0
- package/dist/public/assets/_C1AEjtWB.js.br +0 -0
- package/dist/public/assets/_C2Qcx14K2.js.br +0 -0
- package/dist/public/assets/_C3JlLCxf.js.br +0 -0
- package/dist/public/assets/_CAhTTF9I2.js.br +0 -0
- package/dist/public/assets/_CBkUW_R-.js.br +0 -0
- package/dist/public/assets/_CHSMtXGV.js.br +0 -0
- package/dist/public/assets/_CHu5Km3j2.js.br +0 -0
- package/dist/public/assets/_CKqbHwCF2.js.br +0 -0
- package/dist/public/assets/_CNW9dpu42.js.br +0 -0
- package/dist/public/assets/_CRtlCbY-.js.br +0 -0
- package/dist/public/assets/_CaZfk2zB.js.br +0 -0
- package/dist/public/assets/_CbFus18_2.js.br +0 -0
- package/dist/public/assets/_Cerr01H42.js.br +0 -0
- package/dist/public/assets/_Ch3aclh9.js.br +0 -0
- package/dist/public/assets/_CnF5wkxz2.js.br +0 -0
- package/dist/public/assets/_CqgdIwou.js.br +0 -0
- package/dist/public/assets/_CvciVzJE.js.br +0 -0
- package/dist/public/assets/_Cwn2Dzif.js.br +0 -0
- package/dist/public/assets/_CzGmg6J6.js.br +0 -0
- package/dist/public/assets/_CzuNzNf52.js.br +0 -0
- package/dist/public/assets/_D0XB9M1F2.js.br +0 -0
- package/dist/public/assets/_D3o4Rxbh.js.br +0 -0
- package/dist/public/assets/_D8QuoF51.js.br +0 -0
- package/dist/public/assets/_D8ZjEIBC.js.br +0 -0
- package/dist/public/assets/_D8kpusiR.js.br +0 -0
- package/dist/public/assets/_D9Iriq-Y.js.br +0 -0
- package/dist/public/assets/_DCUcB2sk.js.br +0 -0
- package/dist/public/assets/_DI8J66CZ.js.br +0 -0
- package/dist/public/assets/_DPjHjfD8.js.br +0 -0
- package/dist/public/assets/_DYN4MZjM2.js.br +0 -0
- package/dist/public/assets/_D_7Jyml2.js.br +0 -0
- package/dist/public/assets/_D_Ut2Ol9.js.br +0 -0
- package/dist/public/assets/_DdeqfoDq2.js.br +0 -0
- package/dist/public/assets/_Dfr7TISb.js.br +0 -0
- package/dist/public/assets/_DkuBJFLN2.js.br +0 -0
- package/dist/public/assets/_DmknNPV-.js.br +0 -0
- package/dist/public/assets/_DyVuhWqf2.js.br +0 -0
- package/dist/public/assets/_DzyBRpRU.js.br +0 -0
- package/dist/public/assets/_E4WOoQhA.js.br +0 -0
- package/dist/public/assets/_Em_sWtVW.js.br +0 -0
- package/dist/public/assets/_FsklS6Cf.js.br +0 -0
- package/dist/public/assets/_Qqf8g1TK.js.br +0 -0
- package/dist/public/assets/_TPFL8bDN.js.br +0 -0
- package/dist/public/assets/_a17toZcs.js.br +0 -0
- package/dist/public/assets/_jEfYpM3E2.js.br +0 -0
- package/dist/public/assets/_mf72EOR_.js.br +0 -0
- package/dist/public/assets/_uVBAFIy8.js.br +0 -0
- package/dist/public/assets/_vBAanm_x.js.br +0 -0
- package/dist/public/assets/_vE0bTBGo.js.br +0 -0
- package/dist/public/assets/_xACnj4IY.js.br +0 -0
- package/dist/public/assets/_xIRNtE1V.js.br +0 -0
- package/dist/public/assets/_y6bl1mtk2.js.br +0 -0
- package/dist/public/assets/app-page-B1_16TZW.css +0 -1
- package/dist/public/assets/app-page-B1_16TZW.css.br +0 -0
- package/dist/public/assets/diff-view-CKc458jK.css +0 -1
- package/dist/public/assets/diff-view-CKc458jK.css.br +0 -0
- package/dist/public/assets/new-BpwV-DKC.js +0 -1
- package/dist/public/assets/settings-BpwV-DKC.js +0 -1
- package/dist/public/assets/w-BpwV-DKC.js +0 -1
- package/dist/public/assets/w._-BpwV-DKC.js +0 -1
- package/dist/public/assets/w._-C0I_DcpJ.js +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM, r as __exportAll, t as __commonJSMin } from "./_BMI-E3GI.js";
|
|
2
2
|
import { $ as setSetting, A as setScrapedPhase, B as saveSubscription, C as agentBadge, D as agentMeta, E as agentLabel, F as manifest, G as agentChoices, H as subscribe, I as normalizeAccent, J as enabledAgents, K as allPrefs, L as setInstance, M as ACCENT_RE, N as getInstance, O as clearAgentPhase, P as iconSvg, Q as setPref, R as deleteSubscription, S as blankRow, T as agentFromCommand, U as subscriberCount, V as publish, W as subscriberJoins, X as preferredAgent, Y as getSetting, Z as setDisabledAgents, _ as tmuxName, _t as tmux, a as ensureTmuxServer, at as DEFAULT_GITHUB_HOST, b as readHookPayload, c as killWorkspaceSessions, ct as toolById, d as newSessionArgs, dt as get, et as doctor, ft as workspacePath, g as sessionStates, gt as run, h as sendToSession, ht as git, i as disposeSessions, it as which, j as setSessionViewers, k as setAgentPhase, l as listSessions, lt as all, m as renameSession, mt as gh, n as clearTmuxStarted, nt as miseVersions, o as getSession, ot as TOOLS, p as panePids, pt as TMUX_SOCKET, q as disabledAgents, r as createSession, rt as setupPath, s as killSession, st as agentById, t as cleanEnv, tt as ghKnownHosts, u as markTmuxStarted, ut as db, v as tmuxWasStarted, vt as config, w as agentFamily, x as reportsWorking, y as AGENTS, z as pushPublicKey } from "./_BYk3MBDh.js";
|
|
3
|
-
import { $ as _await, A as repoLabel, At as _try, B as phase, C as sideNavOpen, Ct as _serialize_guard, D as icon_xmark_default, Dt as _template, E as toast_default, Et as _subscribe, H as $global, I as iconBtnRow, J as _attr_or, K as _attr_input_value, L as iconBtnXs, M as setPrimaryHost, Mt as attrTag, N as btnLg, Nt as 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 "./
|
|
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,10 +3814,10 @@ var icon_agent_default = _template("F", (input) => {
|
|
|
3804
3814
|
n: $badge__closures
|
|
3805
3815
|
});
|
|
3806
3816
|
});
|
|
3807
|
-
var usageNote = "
|
|
3817
|
+
var usageNote = "_dt _S";
|
|
3808
3818
|
//#endregion
|
|
3809
3819
|
//#region src/tags/icons/icon-warning.marko
|
|
3810
|
-
var icon_warning_default = _template("
|
|
3820
|
+
var icon_warning_default = _template("ib", (input) => {
|
|
3811
3821
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
3812
3822
|
const $scope0_id = _scope_id();
|
|
3813
3823
|
_set_serialize_reason({
|
|
@@ -3841,15 +3851,15 @@ function resetLabel(iso, stale) {
|
|
|
3841
3851
|
if (ms <= 0) return stale ? null : "now";
|
|
3842
3852
|
return duration(ms);
|
|
3843
3853
|
}
|
|
3844
|
-
var usage_meters_default = _template("
|
|
3854
|
+
var usage_meters_default = _template("D", (input) => {
|
|
3845
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);
|
|
3846
3856
|
const $scope0_id = _scope_id();
|
|
3847
3857
|
const agent = input.agent;
|
|
3848
|
-
_html(`<div${_attr_class(["
|
|
3858
|
+
_html(`<div${_attr_class(["_dn", { ["_do"]: input.hideName }])}><div${_attr_class("_dp")}>`);
|
|
3849
3859
|
_if(() => {
|
|
3850
3860
|
if (!input.hideName) {
|
|
3851
3861
|
const $scope1_id = _scope_id();
|
|
3852
|
-
_html(`<strong${_attr_class("
|
|
3862
|
+
_html(`<strong${_attr_class("_dI")}>${_escape(agent.agent)}${_el_resume($scope1_id, "b", $sg__input_agent)}</strong>`);
|
|
3853
3863
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
3854
3864
|
return 0;
|
|
3855
3865
|
}
|
|
@@ -3857,7 +3867,7 @@ var usage_meters_default = _template("C", (input) => {
|
|
|
3857
3867
|
_if(() => {
|
|
3858
3868
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
3859
3869
|
const $scope2_id = _scope_id();
|
|
3860
|
-
_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>`);
|
|
3861
3871
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
3862
3872
|
return 0;
|
|
3863
3873
|
}
|
|
@@ -3865,21 +3875,21 @@ var usage_meters_default = _template("C", (input) => {
|
|
|
3865
3875
|
_if(() => {
|
|
3866
3876
|
if (agent.stale_seconds != null) {
|
|
3867
3877
|
const $scope3_id = _scope_id();
|
|
3868
|
-
_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`)}>`);
|
|
3869
3879
|
icon_warning_default({ size: 12 });
|
|
3870
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)}`);
|
|
3871
3881
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
3872
3882
|
return 0;
|
|
3873
3883
|
}
|
|
3874
3884
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
3875
|
-
_html(`</div><div${_attr_class(["
|
|
3885
|
+
_html(`</div><div${_attr_class(["_ds", { ["_dJ"]: agent.stale_seconds != null }])}>`);
|
|
3876
3886
|
_for_of(agent.windows || [], (win) => {
|
|
3877
3887
|
const $scope4_id = _scope_id();
|
|
3878
3888
|
const pct = pctText$1(win.used_percent);
|
|
3879
3889
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
3880
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
3881
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
3882
|
-
_html(`<div${_attr_class("
|
|
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")}>`);
|
|
3883
3893
|
_if(() => {
|
|
3884
3894
|
if (label) {
|
|
3885
3895
|
const $scope6_id = _scope_id();
|
|
@@ -3915,7 +3925,7 @@ var usage_meters_default = _template("C", (input) => {
|
|
|
3915
3925
|
//#region src/tags/sso-auth.marko
|
|
3916
3926
|
var api$7;
|
|
3917
3927
|
var watchProgress$2;
|
|
3918
|
-
var sso_auth_default = _template("
|
|
3928
|
+
var sso_auth_default = _template("z", (input) => {
|
|
3919
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);
|
|
3920
3930
|
const $scope0_id = _scope_id();
|
|
3921
3931
|
const $busy__closures = /* @__PURE__ */ new Set();
|
|
@@ -3957,40 +3967,40 @@ var sso_auth_default = _template("y", (input) => {
|
|
|
3957
3967
|
localBusy = false;
|
|
3958
3968
|
localCode = null;
|
|
3959
3969
|
}
|
|
3960
|
-
}, "
|
|
3961
|
-
_html(`<div${_attr_class("
|
|
3970
|
+
}, "z0", $scope0_id);
|
|
3971
|
+
_html(`<div${_attr_class("_c_")}>`);
|
|
3962
3972
|
_if(() => {
|
|
3963
3973
|
if (input.items.length) {
|
|
3964
3974
|
const $scope1_id = _scope_id();
|
|
3965
|
-
_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")}>`);
|
|
3966
3976
|
_for_of(input.items, (s) => {
|
|
3967
3977
|
const $scope2_id = _scope_id();
|
|
3968
|
-
_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)}>`);
|
|
3969
3979
|
icon_xmark_default({ size: 11 });
|
|
3970
3980
|
_html(`</button>${_el_resume($scope2_id, "c")}</li>`);
|
|
3971
|
-
_script($scope2_id, "
|
|
3981
|
+
_script($scope2_id, "z1");
|
|
3972
3982
|
_subscribe($busy__closures, writeScope($scope2_id, {
|
|
3973
3983
|
g: s?.org,
|
|
3974
3984
|
_: _scope_with_id($scope1_id)
|
|
3975
3985
|
}));
|
|
3976
3986
|
}, "org", $scope1_id, "c", $sg__input_items, $sg__input_items, $sg__input_items, "</ul>", 1);
|
|
3977
|
-
_html(`<div${_attr_class("
|
|
3987
|
+
_html(`<div${_attr_class("_dd")}>`);
|
|
3978
3988
|
_if(() => {
|
|
3979
3989
|
if (busy && authCode$2) {
|
|
3980
3990
|
const $scope5_id = _scope_id();
|
|
3981
|
-
_html(`<span${_attr_class("
|
|
3982
|
-
_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");
|
|
3983
3993
|
_subscribe($authCode__closures, _subscribe($si__input_items_0_host && $host__closures, writeScope($scope5_id, {})));
|
|
3984
3994
|
return 0;
|
|
3985
3995
|
} else if (busy) {
|
|
3986
3996
|
const $scope8_id = _scope_id();
|
|
3987
|
-
_html(`<span${_attr_class("
|
|
3997
|
+
_html(`<span${_attr_class("_de")}><span${_attr_class("_F")}></span>Starting GitHub re-authorization…</span>`);
|
|
3988
3998
|
writeScope($scope8_id, {});
|
|
3989
3999
|
return 1;
|
|
3990
4000
|
} else {
|
|
3991
4001
|
const $scope7_id = _scope_id();
|
|
3992
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")}`);
|
|
3993
|
-
_script($scope7_id, "
|
|
4003
|
+
_script($scope7_id, "z3");
|
|
3994
4004
|
writeScope($scope7_id, {});
|
|
3995
4005
|
return 2;
|
|
3996
4006
|
}
|
|
@@ -3998,7 +4008,7 @@ var sso_auth_default = _template("y", (input) => {
|
|
|
3998
4008
|
_if(() => {
|
|
3999
4009
|
if (localError) {
|
|
4000
4010
|
const $scope6_id = _scope_id();
|
|
4001
|
-
_html(`<p${_attr_class("
|
|
4011
|
+
_html(`<p${_attr_class("_dk")}>${_escape(localError)}${_el_resume($scope6_id, "b")}</p>`);
|
|
4002
4012
|
_subscribe($localError__closures, writeScope($scope6_id, {}));
|
|
4003
4013
|
return 0;
|
|
4004
4014
|
}
|
|
@@ -4010,11 +4020,11 @@ var sso_auth_default = _template("y", (input) => {
|
|
|
4010
4020
|
_if(() => {
|
|
4011
4021
|
if (skipped$1.length) {
|
|
4012
4022
|
const $scope3_id = _scope_id();
|
|
4013
|
-
_html(`<p${_attr_class("
|
|
4023
|
+
_html(`<p${_attr_class("_dh")}>Skipped SSO for `);
|
|
4014
4024
|
_for_of(skipped$1, (s) => {
|
|
4015
4025
|
const $scope4_id = _scope_id();
|
|
4016
|
-
_html(`<span${_attr_class("
|
|
4017
|
-
_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");
|
|
4018
4028
|
writeScope($scope4_id, {
|
|
4019
4029
|
f: s?.org,
|
|
4020
4030
|
_: _scope_with_id($scope3_id)
|
|
@@ -4050,7 +4060,7 @@ var sso_auth_default = _template("y", (input) => {
|
|
|
4050
4060
|
});
|
|
4051
4061
|
//#endregion
|
|
4052
4062
|
//#region src/tags/icons/icon-plus.marko
|
|
4053
|
-
var icon_plus_default = _template("
|
|
4063
|
+
var icon_plus_default = _template("bb", (input) => {
|
|
4054
4064
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
4055
4065
|
const $scope0_id = _scope_id();
|
|
4056
4066
|
_set_serialize_reason({
|
|
@@ -4067,7 +4077,7 @@ var icon_plus_default = _template("ab", (input) => {
|
|
|
4067
4077
|
});
|
|
4068
4078
|
//#endregion
|
|
4069
4079
|
//#region src/tags/dialog-close.marko
|
|
4070
|
-
var dialog_close_default = _template("
|
|
4080
|
+
var dialog_close_default = _template("f", (input) => {
|
|
4071
4081
|
const $scope0_reason = _scope_reason();
|
|
4072
4082
|
const $scope0_id = _scope_id();
|
|
4073
4083
|
const { content, ...htmlInput } = input;
|
|
@@ -4077,18 +4087,18 @@ var dialog_close_default = _template("e", (input) => {
|
|
|
4077
4087
|
}, "a", $scope0_id, "button")}>`);
|
|
4078
4088
|
_dynamic_tag($scope0_id, "b", content, {}, 0, 0, _serialize_guard($scope0_reason, 0));
|
|
4079
4089
|
_html(`</button>${_el_resume($scope0_id, "a")}`);
|
|
4080
|
-
_script($scope0_id, "
|
|
4090
|
+
_script($scope0_id, "f0");
|
|
4081
4091
|
writeScope($scope0_id, {});
|
|
4082
4092
|
});
|
|
4083
4093
|
//#endregion
|
|
4084
4094
|
//#region src/tags/modal-view.marko
|
|
4085
|
-
var modal_view_default = _template("
|
|
4095
|
+
var modal_view_default = _template("p", (input) => {
|
|
4086
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);
|
|
4087
4097
|
const $scope0_id = _scope_id();
|
|
4088
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;
|
|
4089
4099
|
const dismissable = input.dismissable !== false;
|
|
4090
4100
|
let open = input.open;
|
|
4091
|
-
_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({
|
|
4092
4102
|
...htmlInput,
|
|
4093
4103
|
open: null
|
|
4094
4104
|
}, {
|
|
@@ -4098,23 +4108,23 @@ var modal_view_default = _template("o", (input) => {
|
|
|
4098
4108
|
closedby: 1,
|
|
4099
4109
|
"on-cancel": 1,
|
|
4100
4110
|
"on-close": 1
|
|
4101
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
4111
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_fo")}>`);
|
|
4102
4112
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
4103
4113
|
_html("</div>");
|
|
4104
4114
|
_if(() => {
|
|
4105
4115
|
if (footer) {
|
|
4106
4116
|
const $scope1_id = _scope_id();
|
|
4107
|
-
_html(`<form method=dialog${_attr_class("
|
|
4117
|
+
_html(`<form method=dialog${_attr_class("_fp")}>`);
|
|
4108
4118
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
4109
4119
|
_html("</form>");
|
|
4110
4120
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
4111
4121
|
return 0;
|
|
4112
4122
|
} else if (input.openChange) {
|
|
4113
4123
|
const $scope2_id = _scope_id();
|
|
4114
|
-
_html(`<form method=dialog${_attr_class("
|
|
4124
|
+
_html(`<form method=dialog${_attr_class("_fp")}>`);
|
|
4115
4125
|
dialog_close_default({
|
|
4116
4126
|
class: ["_o", "_p"],
|
|
4117
|
-
content: _content("
|
|
4127
|
+
content: _content("p0", () => {
|
|
4118
4128
|
_scope_reason();
|
|
4119
4129
|
_scope_id();
|
|
4120
4130
|
_html("Done");
|
|
@@ -4126,9 +4136,9 @@ var modal_view_default = _template("o", (input) => {
|
|
|
4126
4136
|
}
|
|
4127
4137
|
}, $scope0_id, "d", $sg__input_openChange__OR__input_footer, $sg__input_openChange__OR__input_footer, $sg__input_openChange__OR__input_footer, 0, 1);
|
|
4128
4138
|
_html(`</dialog>${_el_resume($scope0_id, "a")}`);
|
|
4129
|
-
_script($scope0_id, "
|
|
4130
|
-
_script($scope0_id, "
|
|
4131
|
-
_script($scope0_id, "
|
|
4139
|
+
_script($scope0_id, "p1");
|
|
4140
|
+
_script($scope0_id, "p2");
|
|
4141
|
+
_script($scope0_id, "p3");
|
|
4132
4142
|
writeScope($scope0_id, {
|
|
4133
4143
|
h: $si__input_openChange && input.open,
|
|
4134
4144
|
i: _serialize_if($scope0_reason, 0) && input.openChange,
|
|
@@ -4146,7 +4156,7 @@ var modal_view_default = _template("o", (input) => {
|
|
|
4146
4156
|
});
|
|
4147
4157
|
//#endregion
|
|
4148
4158
|
//#region src/tags/prompt-dialog.marko
|
|
4149
|
-
var prompt_dialog_default = _template("
|
|
4159
|
+
var prompt_dialog_default = _template("s", (input) => {
|
|
4150
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);
|
|
4151
4161
|
const $scope0_id = _scope_id();
|
|
4152
4162
|
const $modalview_content__subscribers = /* @__PURE__ */ new Set();
|
|
@@ -4158,7 +4168,7 @@ var prompt_dialog_default = _template("r", (input) => {
|
|
|
4158
4168
|
const submit = _resume(() => {
|
|
4159
4169
|
const v = value.trim();
|
|
4160
4170
|
if (v) input.onSubmit(v);
|
|
4161
|
-
}, "
|
|
4171
|
+
}, "s1", $scope0_id);
|
|
4162
4172
|
const titleId = _id();
|
|
4163
4173
|
_set_serialize_reason({
|
|
4164
4174
|
0: _serialize_guard($scope0_reason, 2),
|
|
@@ -4170,33 +4180,33 @@ var prompt_dialog_default = _template("r", (input) => {
|
|
|
4170
4180
|
const $childScope = _peek_scope_id();
|
|
4171
4181
|
modal_view_default({
|
|
4172
4182
|
label: input.label,
|
|
4173
|
-
class: "
|
|
4183
|
+
class: "_dl",
|
|
4174
4184
|
open: input.open,
|
|
4175
4185
|
openChange: input.openChange,
|
|
4176
4186
|
"aria-labelledby": titleId,
|
|
4177
|
-
footer: attrTag({ content: _content_resume("
|
|
4187
|
+
footer: attrTag({ content: _content_resume("s5", () => {
|
|
4178
4188
|
_scope_reason();
|
|
4179
4189
|
const $scope1_id = _scope_id();
|
|
4180
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>`);
|
|
4181
4191
|
dialog_close_default({
|
|
4182
4192
|
class: "_o",
|
|
4183
|
-
content: _content("
|
|
4193
|
+
content: _content("s2", () => {
|
|
4184
4194
|
_scope_reason();
|
|
4185
4195
|
_scope_id();
|
|
4186
4196
|
_html("Cancel");
|
|
4187
4197
|
}, $scope1_id)
|
|
4188
4198
|
});
|
|
4189
|
-
_script($scope1_id, "
|
|
4199
|
+
_script($scope1_id, "s3");
|
|
4190
4200
|
_subscribe($value__closures, _subscribe($si__input_submitLabel && $input_submitLabel__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })));
|
|
4191
4201
|
_resume_branch($scope1_id);
|
|
4192
4202
|
}, $scope0_id) }),
|
|
4193
|
-
content: _content("
|
|
4203
|
+
content: _content("s6", () => {
|
|
4194
4204
|
_scope_reason();
|
|
4195
4205
|
const $scope2_id = _scope_id();
|
|
4196
|
-
_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) => {
|
|
4197
4207
|
value = _new_value;
|
|
4198
|
-
}, "
|
|
4199
|
-
_script($scope2_id, "
|
|
4208
|
+
}, "s0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
4209
|
+
_script($scope2_id, "s4");
|
|
4200
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, {
|
|
4201
4211
|
_: _scope_with_id($scope0_id),
|
|
4202
4212
|
Cr: 1
|
|
@@ -4204,7 +4214,7 @@ var prompt_dialog_default = _template("r", (input) => {
|
|
|
4204
4214
|
_resume_branch($scope2_id);
|
|
4205
4215
|
}, $scope0_id)
|
|
4206
4216
|
});
|
|
4207
|
-
_script($scope0_id, "
|
|
4217
|
+
_script($scope0_id, "s7");
|
|
4208
4218
|
writeScope($scope0_id, {
|
|
4209
4219
|
e: input.onSubmit,
|
|
4210
4220
|
h: input.openChange,
|
|
@@ -4233,7 +4243,7 @@ function familyOf(usageAgent, families) {
|
|
|
4233
4243
|
}
|
|
4234
4244
|
var lastSetup = null;
|
|
4235
4245
|
var lastUsage = null;
|
|
4236
|
-
var settings_page_default = _template("
|
|
4246
|
+
var settings_page_default = _template("v", (input) => {
|
|
4237
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);
|
|
4238
4248
|
const $scope0_id = _scope_id();
|
|
4239
4249
|
const $setup_missing__closures = /* @__PURE__ */ new Set();
|
|
@@ -4274,35 +4284,35 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4274
4284
|
themeMode = mode;
|
|
4275
4285
|
setTheme(mode);
|
|
4276
4286
|
applyTheme(mode);
|
|
4277
|
-
}, "
|
|
4287
|
+
}, "v5", $scope0_id);
|
|
4278
4288
|
const selfUpdatePending = !!(self && !selfUpdating && self.install !== "source" && self.latest && self.latest !== self.version);
|
|
4279
4289
|
const applySetup = _resume((s) => {
|
|
4280
4290
|
setup = s;
|
|
4281
4291
|
lastSetup = s;
|
|
4282
4292
|
setPrimaryHost(s.github);
|
|
4283
4293
|
input.setupChange?.(s);
|
|
4284
|
-
}, "
|
|
4294
|
+
}, "v6", $scope0_id);
|
|
4285
4295
|
const syncAgents = _resume(async () => {
|
|
4286
4296
|
try {
|
|
4287
4297
|
const snap = await api$6("/api/settings");
|
|
4288
4298
|
input.agentsChange?.(snap.agents);
|
|
4289
4299
|
if (snap.preferredAgent !== input.preferred) input.preferredChange?.(snap.preferredAgent);
|
|
4290
4300
|
} catch {}
|
|
4291
|
-
}, "
|
|
4301
|
+
}, "v7", $scope0_id);
|
|
4292
4302
|
const loadSetup = _resume(async (refresh) => {
|
|
4293
4303
|
try {
|
|
4294
4304
|
applySetup(await api$6(`/api/setup${refresh ? "?refresh" : ""}`));
|
|
4295
4305
|
} catch (err) {
|
|
4296
4306
|
error = String(err.message || err);
|
|
4297
4307
|
}
|
|
4298
|
-
}, "
|
|
4308
|
+
}, "v8", $scope0_id);
|
|
4299
4309
|
const loadSelf = _resume(async (refresh) => {
|
|
4300
4310
|
try {
|
|
4301
4311
|
const info = await api$6(`/api/setup/self${refresh ? "?refresh" : ""}`);
|
|
4302
4312
|
self = info;
|
|
4303
4313
|
if (info.updating) selfUpdating = true;
|
|
4304
4314
|
} catch {}
|
|
4305
|
-
}, "
|
|
4315
|
+
}, "v9", $scope0_id);
|
|
4306
4316
|
const updateSelf = _resume(async () => {
|
|
4307
4317
|
if (!self || selfUpdating) return;
|
|
4308
4318
|
selfUpdating = true;
|
|
@@ -4326,7 +4336,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4326
4336
|
else selfUpdating = false;
|
|
4327
4337
|
};
|
|
4328
4338
|
setTimeout(tick, 4e3);
|
|
4329
|
-
}, "
|
|
4339
|
+
}, "v10", $scope0_id);
|
|
4330
4340
|
const loadUsage = _resume(async (refresh) => {
|
|
4331
4341
|
try {
|
|
4332
4342
|
usage = await api$6(`/api/usage${refresh ? "?refresh" : ""}`);
|
|
@@ -4334,23 +4344,23 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4334
4344
|
usage = { error: String(err.message || err) };
|
|
4335
4345
|
}
|
|
4336
4346
|
lastUsage = usage;
|
|
4337
|
-
}, "
|
|
4347
|
+
}, "v11", $scope0_id);
|
|
4338
4348
|
const refresh = _resume(async () => {
|
|
4339
4349
|
refreshing = true;
|
|
4340
4350
|
await Promise.all([loadSetup(true), loadSelf(true)]);
|
|
4341
4351
|
refreshing = false;
|
|
4342
|
-
}, "
|
|
4352
|
+
}, "v12", $scope0_id);
|
|
4343
4353
|
const refreshUsage = _resume(async () => {
|
|
4344
4354
|
usageRefreshing = true;
|
|
4345
4355
|
await loadUsage(true);
|
|
4346
4356
|
usageRefreshing = false;
|
|
4347
|
-
}, "
|
|
4357
|
+
}, "v13", $scope0_id);
|
|
4348
4358
|
const setActive = _resume((id, line) => {
|
|
4349
4359
|
const next = new Map(active);
|
|
4350
4360
|
if (line === null) next.delete(id);
|
|
4351
4361
|
else next.set(id, line);
|
|
4352
4362
|
active = next;
|
|
4353
|
-
}, "
|
|
4363
|
+
}, "v14", $scope0_id);
|
|
4354
4364
|
const run = _resume(async (id, action, version) => {
|
|
4355
4365
|
if (active.has(id)) return;
|
|
4356
4366
|
error = null;
|
|
@@ -4381,7 +4391,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4381
4391
|
watcher.stop();
|
|
4382
4392
|
setActive(id, null);
|
|
4383
4393
|
}
|
|
4384
|
-
}, "
|
|
4394
|
+
}, "v15", $scope0_id);
|
|
4385
4395
|
const changeHost = _resume(async (host, remove) => {
|
|
4386
4396
|
hostBusy = true;
|
|
4387
4397
|
error = null;
|
|
@@ -4400,10 +4410,10 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4400
4410
|
} finally {
|
|
4401
4411
|
hostBusy = false;
|
|
4402
4412
|
}
|
|
4403
|
-
}, "
|
|
4413
|
+
}, "v16", $scope0_id);
|
|
4404
4414
|
const runEach = _resume(async (ids, action) => {
|
|
4405
4415
|
for (const id of ids) await run(id, action);
|
|
4406
|
-
}, "
|
|
4416
|
+
}, "v17", $scope0_id);
|
|
4407
4417
|
const setPreferred = _resume(async (agent) => {
|
|
4408
4418
|
input.preferredChange?.(agent);
|
|
4409
4419
|
try {
|
|
@@ -4415,7 +4425,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4415
4425
|
} catch (err) {
|
|
4416
4426
|
error = String(err.message || err);
|
|
4417
4427
|
}
|
|
4418
|
-
}, "
|
|
4428
|
+
}, "v18", $scope0_id);
|
|
4419
4429
|
const saveTimer = { id: 0 };
|
|
4420
4430
|
const setInstance = _resume((patch) => {
|
|
4421
4431
|
const next = {
|
|
@@ -4440,7 +4450,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4440
4450
|
error = String(err.message || err);
|
|
4441
4451
|
}
|
|
4442
4452
|
}, 300);
|
|
4443
|
-
}, "
|
|
4453
|
+
}, "v19", $scope0_id);
|
|
4444
4454
|
const setEnabled = _resume(async (id, on) => {
|
|
4445
4455
|
if (!setup) return;
|
|
4446
4456
|
const off = new Set(setup.agents.flatMap((f) => f.instances.filter((i) => !i.enabled).map((i) => i.id)));
|
|
@@ -4467,7 +4477,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4467
4477
|
} catch (err) {
|
|
4468
4478
|
error = String(err.message || err);
|
|
4469
4479
|
}
|
|
4470
|
-
}, "
|
|
4480
|
+
}, "v20", $scope0_id);
|
|
4471
4481
|
const search = _resume((q) => {
|
|
4472
4482
|
query = q;
|
|
4473
4483
|
clearTimeout(searchTimer.id);
|
|
@@ -4487,23 +4497,23 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4487
4497
|
if (query === q) searching = false;
|
|
4488
4498
|
}
|
|
4489
4499
|
}, 250);
|
|
4490
|
-
}, "
|
|
4491
|
-
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");
|
|
4492
4502
|
const tools = setup?.tools || [];
|
|
4493
4503
|
const missingInstallable = tools.filter((t) => t.recommended && !t.installed && t.installable);
|
|
4494
4504
|
const missingCount = tools.filter((t) => t.recommended && !t.installed).length;
|
|
4495
4505
|
const outdatedIds = tools.filter(outdated).map((t) => t.id);
|
|
4496
4506
|
const families = setup?.agents || [];
|
|
4497
4507
|
const instanceIds = new Set(families.flatMap((f) => f.instances.map((i) => i.id)));
|
|
4498
|
-
const accountsFor = _resume((id) => (usage?.agents || []).filter((u) => u.agent === id), "
|
|
4499
|
-
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);
|
|
4500
4510
|
const otherUsage = (usage?.agents || []).filter((u) => familyOf(u.agent, families) === null);
|
|
4501
4511
|
const titleId = _id();
|
|
4502
4512
|
const agentsId = _id();
|
|
4503
4513
|
const appearanceId = _id();
|
|
4504
4514
|
const githubId = _id();
|
|
4505
4515
|
const machineId = _id();
|
|
4506
|
-
_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)}>`);
|
|
4507
4517
|
_set_serialize_reason({
|
|
4508
4518
|
0: _serialize_guard($scope0_reason, 4),
|
|
4509
4519
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -4515,8 +4525,8 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4515
4525
|
title: "Settings",
|
|
4516
4526
|
titleId,
|
|
4517
4527
|
backHref: input.backHref,
|
|
4518
|
-
onBack: input.onExit && _resume(() => input.onExit?.(), "
|
|
4519
|
-
meta: attrTag({ content: _content_resume("
|
|
4528
|
+
onBack: input.onExit && _resume(() => input.onExit?.(), "v24", $scope0_id),
|
|
4529
|
+
meta: attrTag({ content: _content_resume("v32", () => {
|
|
4520
4530
|
_scope_reason();
|
|
4521
4531
|
const $scope5_id = _scope_id();
|
|
4522
4532
|
_if(() => {
|
|
@@ -4527,12 +4537,12 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4527
4537
|
return 0;
|
|
4528
4538
|
} else if (setup.ready) {
|
|
4529
4539
|
const $scope52_id = _scope_id();
|
|
4530
|
-
_html(`<span${_attr_class("
|
|
4540
|
+
_html(`<span${_attr_class("_ce")}>Ready</span>. Tools, GitHub, and an agent are all in place.`);
|
|
4531
4541
|
writeScope($scope52_id, {});
|
|
4532
4542
|
return 1;
|
|
4533
4543
|
} else {
|
|
4534
4544
|
const $scope6_id = _scope_id();
|
|
4535
|
-
_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")}.`);
|
|
4536
4546
|
_subscribe($setup_missing__closures, writeScope($scope6_id, {}));
|
|
4537
4547
|
return 2;
|
|
4538
4548
|
}
|
|
@@ -4540,7 +4550,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4540
4550
|
_subscribe($setup2__closures, writeScope($scope5_id, { _: _scope_with_id($scope0_id) }));
|
|
4541
4551
|
_resume_branch($scope5_id);
|
|
4542
4552
|
}, $scope0_id) }),
|
|
4543
|
-
actions: attrTag({ content: _content_resume("
|
|
4553
|
+
actions: attrTag({ content: _content_resume("v33", () => {
|
|
4544
4554
|
_scope_reason();
|
|
4545
4555
|
const $scope10_id = _scope_id();
|
|
4546
4556
|
_html(`<button${_attr_class(iconBtnRow)} title="Re-check this machine" aria-label="Re-check this machine"${_attr("disabled", refreshing)}>`);
|
|
@@ -4551,7 +4561,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4551
4561
|
class: refreshing && "_E"
|
|
4552
4562
|
});
|
|
4553
4563
|
_html(`</button>${_el_resume($scope10_id, "a")}`);
|
|
4554
|
-
_script($scope10_id, "
|
|
4564
|
+
_script($scope10_id, "v31");
|
|
4555
4565
|
_subscribe($refreshing__closures, writeScope($scope10_id, {
|
|
4556
4566
|
_: _scope_with_id($scope0_id),
|
|
4557
4567
|
b: _existing_scope($childScope)
|
|
@@ -4566,8 +4576,8 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4566
4576
|
placement: "inline",
|
|
4567
4577
|
onDismiss: _resume(function() {
|
|
4568
4578
|
error = null;
|
|
4569
|
-
}, "
|
|
4570
|
-
content: _content_resume("
|
|
4579
|
+
}, "v25", $scope8_id),
|
|
4580
|
+
content: _content_resume("v34", () => {
|
|
4571
4581
|
_scope_reason();
|
|
4572
4582
|
const $scope9_id = _scope_id();
|
|
4573
4583
|
_html(`${_escape(error)}${_el_resume($scope9_id, "a")}`);
|
|
@@ -4582,16 +4592,16 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4582
4592
|
_if(() => {
|
|
4583
4593
|
if (selfUpdatePending || selfUpdating) {
|
|
4584
4594
|
const $scope37_id = _scope_id();
|
|
4585
|
-
_html(`<div${_attr_class("
|
|
4595
|
+
_html(`<div${_attr_class("_cJ")} role=status><div${_attr_class("_cK")}>`);
|
|
4586
4596
|
_if(() => {
|
|
4587
4597
|
if (selfUpdating) {
|
|
4588
4598
|
const $scope53_id = _scope_id();
|
|
4589
|
-
_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>`);
|
|
4590
4600
|
writeScope($scope53_id, {});
|
|
4591
4601
|
return 0;
|
|
4592
4602
|
} else {
|
|
4593
4603
|
const $scope38_id = _scope_id();
|
|
4594
|
-
_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>`);
|
|
4595
4605
|
_subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($scope38_id, {})));
|
|
4596
4606
|
return 1;
|
|
4597
4607
|
}
|
|
@@ -4600,7 +4610,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4600
4610
|
if (!selfUpdating) {
|
|
4601
4611
|
const $scope39_id = _scope_id();
|
|
4602
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")}`);
|
|
4603
|
-
_script($scope39_id, "
|
|
4613
|
+
_script($scope39_id, "v35");
|
|
4604
4614
|
_subscribe($self_latest__closures, writeScope($scope39_id, { Ce9: 1 }));
|
|
4605
4615
|
return 0;
|
|
4606
4616
|
}
|
|
@@ -4610,11 +4620,11 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4610
4620
|
return 0;
|
|
4611
4621
|
}
|
|
4612
4622
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
4613
|
-
_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")}>`);
|
|
4614
4624
|
_attr_select_value($scope0_id, "n", input.preferred, _resume(function(v) {
|
|
4615
4625
|
setPreferred(v);
|
|
4616
|
-
}, "
|
|
4617
|
-
_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">`);
|
|
4618
4628
|
_for_of(input.agents.filter((a) => a !== "shell"), (id) => {
|
|
4619
4629
|
const $scope54_id = _scope_id();
|
|
4620
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)}`);
|
|
@@ -4635,14 +4645,14 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4635
4645
|
const rows = lone ? [] : a.instances;
|
|
4636
4646
|
const loneAccounts = lone && lone.enabled ? accountsFor(lone.id) : [];
|
|
4637
4647
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
4638
|
-
_html(`<li${_attr_class(["
|
|
4648
|
+
_html(`<li${_attr_class(["_bz", "_ch"])}><div${_attr_class(["_ck", { ["_cn"]: lone && !lone.enabled }])}>`);
|
|
4639
4649
|
_set_serialize_reason(12);
|
|
4640
4650
|
const $childScope4 = _peek_scope_id();
|
|
4641
4651
|
icon_agent_default({
|
|
4642
4652
|
agent: a.id,
|
|
4643
4653
|
size: 18
|
|
4644
4654
|
});
|
|
4645
|
-
_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>`);
|
|
4646
4656
|
_if(() => {
|
|
4647
4657
|
if (lone && input.preferred === lone.id) {
|
|
4648
4658
|
const $scope55_id = _scope_id();
|
|
@@ -4655,12 +4665,12 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4655
4665
|
_if(() => {
|
|
4656
4666
|
if (active.has(a.id)) {
|
|
4657
4667
|
const $scope11_id = _scope_id();
|
|
4658
|
-
_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>`);
|
|
4659
4669
|
_subscribe($active__closures, writeScope($scope11_id, {}));
|
|
4660
4670
|
return 0;
|
|
4661
4671
|
} else if (!a.installed) {
|
|
4662
4672
|
const $scope56_id = _scope_id();
|
|
4663
|
-
_html(`<span${_attr_class("
|
|
4673
|
+
_html(`<span${_attr_class("_bD")}>Not installed</span>`);
|
|
4664
4674
|
writeScope($scope56_id, {});
|
|
4665
4675
|
return 1;
|
|
4666
4676
|
}
|
|
@@ -4670,7 +4680,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4670
4680
|
if (!a.installed && !active.has(a.id)) {
|
|
4671
4681
|
const $scope44_id = _scope_id();
|
|
4672
4682
|
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope44_id, "a")}`);
|
|
4673
|
-
_script($scope44_id, "
|
|
4683
|
+
_script($scope44_id, "v36");
|
|
4674
4684
|
writeScope($scope44_id, {});
|
|
4675
4685
|
return 0;
|
|
4676
4686
|
}
|
|
@@ -4683,7 +4693,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4683
4693
|
"_K",
|
|
4684
4694
|
{ [tone.ok]: lone.enabled }
|
|
4685
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")}`);
|
|
4686
|
-
_script($scope48_id, "
|
|
4696
|
+
_script($scope48_id, "v37");
|
|
4687
4697
|
writeScope($scope48_id, {});
|
|
4688
4698
|
return 0;
|
|
4689
4699
|
}
|
|
@@ -4692,18 +4702,18 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4692
4702
|
_if(() => {
|
|
4693
4703
|
if (rows.length || loneAccounts.length || extraAccounts.length) {
|
|
4694
4704
|
const $scope2_id = _scope_id();
|
|
4695
|
-
_html(`<ul${_attr_class("
|
|
4705
|
+
_html(`<ul${_attr_class("_cp")}>`);
|
|
4696
4706
|
_for_of(rows, (inst) => {
|
|
4697
4707
|
const $scope3_id = _scope_id();
|
|
4698
4708
|
const accounts = inst.enabled ? accountsFor(inst.id) : [];
|
|
4699
|
-
_html(`<li${_attr_class("
|
|
4709
|
+
_html(`<li${_attr_class("_cl")}><div${_attr_class(["_cm", { ["_cn"]: !inst.enabled }])}>`);
|
|
4700
4710
|
_set_serialize_reason(12);
|
|
4701
4711
|
const $childScope5 = _peek_scope_id();
|
|
4702
4712
|
icon_agent_default({
|
|
4703
4713
|
agent: inst.id,
|
|
4704
4714
|
size: 15
|
|
4705
4715
|
});
|
|
4706
|
-
_html(`<span${_attr_class(["
|
|
4716
|
+
_html(`<span${_attr_class(["_co", "_x"])}>${_escape(inst.command)}${_el_resume($scope3_id, "e")}</span>`);
|
|
4707
4717
|
_if(() => {
|
|
4708
4718
|
if (input.preferred === inst.id) {
|
|
4709
4719
|
const $scope57_id = _scope_id();
|
|
@@ -4728,7 +4738,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4728
4738
|
writeScope($scope58_id, { a: _existing_scope($childScope6) });
|
|
4729
4739
|
}, (u) => `${u.agent}-${u.account || ""}`, $scope3_id, "j", 1, 1, 1, 0, 1);
|
|
4730
4740
|
_html("</li>");
|
|
4731
|
-
_script($scope3_id, "
|
|
4741
|
+
_script($scope3_id, "v38");
|
|
4732
4742
|
_subscribe($accountsFor2__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope3_id, {
|
|
4733
4743
|
m: inst?.enabled,
|
|
4734
4744
|
n: inst?.id,
|
|
@@ -4778,7 +4788,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4778
4788
|
}, "id", $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
4779
4789
|
_for_of(otherUsage, (u) => {
|
|
4780
4790
|
const $scope61_id = _scope_id();
|
|
4781
|
-
_html(`<li${_attr_class(["
|
|
4791
|
+
_html(`<li${_attr_class(["_bz", "_ch"])}>`);
|
|
4782
4792
|
_set_serialize_reason(6);
|
|
4783
4793
|
const $childScope9 = _peek_scope_id();
|
|
4784
4794
|
usage_meters_default({ agent: u });
|
|
@@ -4789,17 +4799,17 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4789
4799
|
_if(() => {
|
|
4790
4800
|
if (!usage && families.length) {
|
|
4791
4801
|
const $scope62_id = _scope_id();
|
|
4792
|
-
_html(`<p${_attr_class("
|
|
4802
|
+
_html(`<p${_attr_class("_bF")}><span${_attr_class("_F")}></span> Loading usage…</p>`);
|
|
4793
4803
|
writeScope($scope62_id, {});
|
|
4794
4804
|
return 0;
|
|
4795
4805
|
} else if (usage?.error) {
|
|
4796
4806
|
const $scope7_id = _scope_id();
|
|
4797
|
-
_html(`<p${_attr_class("
|
|
4807
|
+
_html(`<p${_attr_class("_bF")}>${_escape(usage.error)}${_el_resume($scope7_id, "b")}</p>`);
|
|
4798
4808
|
writeScope($scope7_id, {});
|
|
4799
4809
|
return 1;
|
|
4800
4810
|
}
|
|
4801
4811
|
}, $scope0_id, "t", 1, 1, 1, 0, 1);
|
|
4802
|
-
_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")}>`);
|
|
4803
4813
|
_for_of(setup?.github || [], (h) => {
|
|
4804
4814
|
const $scope12_id = _scope_id();
|
|
4805
4815
|
const $for_content4__h_host__closures = /* @__PURE__ */ new Set();
|
|
@@ -4813,7 +4823,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4813
4823
|
const skippedSso = (() => {
|
|
4814
4824
|
return (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
4815
4825
|
})();
|
|
4816
|
-
_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>`);
|
|
4817
4827
|
_if(() => {
|
|
4818
4828
|
if (h.isEnterprise) {
|
|
4819
4829
|
const $scope65_id = _scope_id();
|
|
@@ -4826,22 +4836,22 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4826
4836
|
_if(() => {
|
|
4827
4837
|
if (active.has(h.host) && authCodes.has(h.host)) {
|
|
4828
4838
|
const $scope24_id = _scope_id();
|
|
4829
|
-
_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>`);
|
|
4830
4840
|
_subscribe($authCodes__closures, writeScope($scope24_id, { Cdz: 1 }));
|
|
4831
4841
|
return 0;
|
|
4832
4842
|
} else if (active.has(h.host)) {
|
|
4833
4843
|
const $scope13_id = _scope_id();
|
|
4834
|
-
_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>`);
|
|
4835
4845
|
_subscribe($active__closures, writeScope($scope13_id, { Cdx: 1 }));
|
|
4836
4846
|
return 1;
|
|
4837
4847
|
} else if (h.authed) {
|
|
4838
4848
|
const $scope63_id = _scope_id();
|
|
4839
|
-
_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>`);
|
|
4840
4850
|
writeScope($scope63_id, {});
|
|
4841
4851
|
return 2;
|
|
4842
4852
|
} else {
|
|
4843
4853
|
const $scope64_id = _scope_id();
|
|
4844
|
-
_html(`<span${_attr_class("
|
|
4854
|
+
_html(`<span${_attr_class("_bD")}>${_escape(h.error || "Not signed in")}${_el_resume($scope64_id, "b")}</span>`);
|
|
4845
4855
|
writeScope($scope64_id, {});
|
|
4846
4856
|
return 3;
|
|
4847
4857
|
}
|
|
@@ -4854,7 +4864,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4854
4864
|
if (!h.authed) {
|
|
4855
4865
|
const $scope45_id = _scope_id();
|
|
4856
4866
|
_html(`<button${_attr_class(btnSm)}>Sign in</button>${_el_resume($scope45_id, "a")}`);
|
|
4857
|
-
_script($scope45_id, "
|
|
4867
|
+
_script($scope45_id, "v39");
|
|
4858
4868
|
writeScope($scope45_id, {});
|
|
4859
4869
|
return 0;
|
|
4860
4870
|
} else {
|
|
@@ -4863,7 +4873,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4863
4873
|
["_r"]: confirmingRemove === `out:${h.host}`,
|
|
4864
4874
|
["_q"]: confirmingRemove === `out:${h.host}`
|
|
4865
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")}`);
|
|
4866
|
-
_script($scope26_id, "
|
|
4876
|
+
_script($scope26_id, "v40");
|
|
4867
4877
|
_subscribe($for_content4__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope26_id, {})));
|
|
4868
4878
|
return 1;
|
|
4869
4879
|
}
|
|
@@ -4872,7 +4882,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4872
4882
|
if (h.isEnterprise) {
|
|
4873
4883
|
const $scope27_id = _scope_id();
|
|
4874
4884
|
_html(`<button${_attr_class([
|
|
4875
|
-
"
|
|
4885
|
+
"_bE",
|
|
4876
4886
|
"_2",
|
|
4877
4887
|
"_3",
|
|
4878
4888
|
{ ["_q"]: confirmingRemove === h.host }
|
|
@@ -4890,7 +4900,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4890
4900
|
return 1;
|
|
4891
4901
|
}
|
|
4892
4902
|
}, $scope27_id, "a", 1, 1, 1, "</button>");
|
|
4893
|
-
_script($scope27_id, "
|
|
4903
|
+
_script($scope27_id, "v41");
|
|
4894
4904
|
_subscribe($for_content4__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope27_id, {
|
|
4895
4905
|
Ce0: 1,
|
|
4896
4906
|
Ca2: 1
|
|
@@ -4915,13 +4925,13 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4915
4925
|
authCode: authCodes.get(h.host),
|
|
4916
4926
|
onChange: _resume(function() {
|
|
4917
4927
|
ssoIgnoreTick++;
|
|
4918
|
-
}, "
|
|
4928
|
+
}, "v26", $scope14_id),
|
|
4919
4929
|
onAuthorize: _resume(function() {
|
|
4920
4930
|
run(h.host, "auth-refresh");
|
|
4921
|
-
}, "
|
|
4931
|
+
}, "v27", $scope14_id),
|
|
4922
4932
|
onDone: _resume(function() {
|
|
4923
4933
|
refresh();
|
|
4924
|
-
}, "
|
|
4934
|
+
}, "v28", $scope14_id)
|
|
4925
4935
|
});
|
|
4926
4936
|
_subscribe($run2__closures, _subscribe($si__input_setupChange && $refresh2__closures, _subscribe($authCodes__closures, _subscribe($active__closures, writeScope($scope14_id, {
|
|
4927
4937
|
a: _existing_scope($childScope10),
|
|
@@ -4948,7 +4958,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4948
4958
|
_if(() => {
|
|
4949
4959
|
if (setup && !setup.github.length) {
|
|
4950
4960
|
const $scope68_id = _scope_id();
|
|
4951
|
-
_html(`<p${_attr_class("
|
|
4961
|
+
_html(`<p${_attr_class("_bF")}>Install the GitHub CLI below to sign in.</p>`);
|
|
4952
4962
|
writeScope($scope68_id, {});
|
|
4953
4963
|
return 0;
|
|
4954
4964
|
}
|
|
@@ -4956,20 +4966,20 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4956
4966
|
_if(() => {
|
|
4957
4967
|
if (setup) {
|
|
4958
4968
|
const $scope35_id = _scope_id();
|
|
4959
|
-
_html(`<form${_attr_class("
|
|
4969
|
+
_html(`<form${_attr_class("_cw")}><label${_attr_class("_W")}>`);
|
|
4960
4970
|
icon_plus_default({
|
|
4961
4971
|
size: 14,
|
|
4962
4972
|
class: "_X"
|
|
4963
4973
|
});
|
|
4964
4974
|
_html(`<input${_attr_input_value($scope35_id, "d", hostInput, _resume((_new_hostInput) => {
|
|
4965
4975
|
hostInput = _new_hostInput;
|
|
4966
|
-
}, "
|
|
4967
|
-
_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");
|
|
4968
4978
|
writeScope($scope35_id, {});
|
|
4969
4979
|
return 0;
|
|
4970
4980
|
}
|
|
4971
4981
|
}, $scope0_id, "z", 1, 1, 1, 0, 1);
|
|
4972
|
-
_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>`);
|
|
4973
4983
|
_if(() => {
|
|
4974
4984
|
if (missingCount) {
|
|
4975
4985
|
const $scope49_id = _scope_id();
|
|
@@ -4991,7 +5001,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4991
5001
|
if (outdatedIds.length > 1) {
|
|
4992
5002
|
const $scope15_id = _scope_id();
|
|
4993
5003
|
_html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Update all</button>${_el_resume($scope15_id, "a")}`);
|
|
4994
|
-
_script($scope15_id, "
|
|
5004
|
+
_script($scope15_id, "v43");
|
|
4995
5005
|
writeScope($scope15_id, {});
|
|
4996
5006
|
return 0;
|
|
4997
5007
|
}
|
|
@@ -5000,7 +5010,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5000
5010
|
if (missingInstallable.length > 1) {
|
|
5001
5011
|
const $scope16_id = _scope_id();
|
|
5002
5012
|
_html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Install missing</button>${_el_resume($scope16_id, "a")}`);
|
|
5003
|
-
_script($scope16_id, "
|
|
5013
|
+
_script($scope16_id, "v44");
|
|
5004
5014
|
writeScope($scope16_id, {});
|
|
5005
5015
|
return 0;
|
|
5006
5016
|
}
|
|
@@ -5009,8 +5019,8 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5009
5019
|
_if(() => {
|
|
5010
5020
|
if (setup && !setup.mise.installed) {
|
|
5011
5021
|
const $scope17_id = _scope_id();
|
|
5012
|
-
_html(`<p${_attr_class("
|
|
5013
|
-
_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");
|
|
5014
5024
|
writeScope($scope17_id, {});
|
|
5015
5025
|
return 0;
|
|
5016
5026
|
}
|
|
@@ -5019,11 +5029,11 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5019
5029
|
_if(() => {
|
|
5020
5030
|
if (self) {
|
|
5021
5031
|
const $scope40_id = _scope_id();
|
|
5022
|
-
_html(`<li${_attr_class(row)}><span${_attr_class(["
|
|
5032
|
+
_html(`<li${_attr_class(row)}><span${_attr_class(["_cs", "_x"])}>work</span>`);
|
|
5023
5033
|
_if(() => {
|
|
5024
5034
|
if (selfUpdating) {
|
|
5025
5035
|
const $scope69_id = _scope_id();
|
|
5026
|
-
_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>`);
|
|
5027
5037
|
writeScope($scope69_id, {});
|
|
5028
5038
|
return 0;
|
|
5029
5039
|
} else {
|
|
@@ -5037,10 +5047,10 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5037
5047
|
return 0;
|
|
5038
5048
|
} else if (self.latest && self.latest !== self.version) {
|
|
5039
5049
|
const $scope42_id = _scope_id();
|
|
5040
|
-
_html(`<button${_attr_class([btnSm, "
|
|
5050
|
+
_html(`<button${_attr_class([btnSm, "_cu"])}${_attr("title", `Update work to v${self.latest} and restart`)}>`);
|
|
5041
5051
|
icon_arrow_up_default({ size: 12 });
|
|
5042
5052
|
_html(` <!>${_escape(self.latest)}${_el_resume($scope42_id, "c")}</button>${_el_resume($scope42_id, "a")}`);
|
|
5043
|
-
_script($scope42_id, "
|
|
5053
|
+
_script($scope42_id, "v46");
|
|
5044
5054
|
_subscribe($self_latest__closures, writeScope($scope42_id, { Ce9: 3 }));
|
|
5045
5055
|
return 1;
|
|
5046
5056
|
} else if (self.latest) {
|
|
@@ -5078,11 +5088,11 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5078
5088
|
const $for_content5__t_path__closures = /* @__PURE__ */ new Set();
|
|
5079
5089
|
const $for_content5__t_latest__closures = /* @__PURE__ */ new Set();
|
|
5080
5090
|
const $for_content5__t_id__closures = /* @__PURE__ */ new Set();
|
|
5081
|
-
_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>`);
|
|
5082
5092
|
_if(() => {
|
|
5083
5093
|
if (active.has(t.id)) {
|
|
5084
5094
|
const $scope19_id = _scope_id();
|
|
5085
|
-
_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>`);
|
|
5086
5096
|
_subscribe($active__closures, writeScope($scope19_id, { Cdx: 3 }));
|
|
5087
5097
|
return 0;
|
|
5088
5098
|
} else if (t.installed) {
|
|
@@ -5090,8 +5100,8 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5090
5100
|
_if(() => {
|
|
5091
5101
|
if (t.version) {
|
|
5092
5102
|
const $scope32_id = _scope_id();
|
|
5093
|
-
_html(`<button${_attr_class(["
|
|
5094
|
-
_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");
|
|
5095
5105
|
_subscribe($for_content5__t_path__closures, _subscribe($for_content5__t_version__closures, _subscribe($for_content5__t_label__closures, writeScope($scope32_id, { Cu: 1 }))));
|
|
5096
5106
|
return 0;
|
|
5097
5107
|
} else {
|
|
@@ -5104,10 +5114,10 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5104
5114
|
_if(() => {
|
|
5105
5115
|
if (outdated(t)) {
|
|
5106
5116
|
const $scope46_id = _scope_id();
|
|
5107
|
-
_html(`<button${_attr_class([btnSm, "
|
|
5117
|
+
_html(`<button${_attr_class([btnSm, "_cu"])}${_attr("title", `Update to v${t.latest}`)}>`);
|
|
5108
5118
|
icon_arrow_up_default({ size: 12 });
|
|
5109
5119
|
_html(` <!>${_escape(t.latest)}${_el_resume($scope46_id, "c")}</button>${_el_resume($scope46_id, "a")}`);
|
|
5110
|
-
_script($scope46_id, "
|
|
5120
|
+
_script($scope46_id, "v48");
|
|
5111
5121
|
_subscribe($for_content5__t_latest__closures, writeScope($scope46_id, {}));
|
|
5112
5122
|
return 0;
|
|
5113
5123
|
}
|
|
@@ -5142,7 +5152,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5142
5152
|
if (!t.installed && t.installable) {
|
|
5143
5153
|
const $scope47_id = _scope_id();
|
|
5144
5154
|
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope47_id, "a")}`);
|
|
5145
|
-
_script($scope47_id, "
|
|
5155
|
+
_script($scope47_id, "v49");
|
|
5146
5156
|
writeScope($scope47_id, {});
|
|
5147
5157
|
return 0;
|
|
5148
5158
|
} else if (t.installed && t.version && !t.required) {
|
|
@@ -5166,7 +5176,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5166
5176
|
return 1;
|
|
5167
5177
|
}
|
|
5168
5178
|
}, $scope29_id, "a", 1, 1, 1, "</button>");
|
|
5169
|
-
_script($scope29_id, "
|
|
5179
|
+
_script($scope29_id, "v50");
|
|
5170
5180
|
_subscribe($for_content5__t_id__closures, _subscribe($for_content5__t_label__closures, _subscribe($confirmingRemove__closures, writeScope($scope29_id, { Ce0: 2 }))));
|
|
5171
5181
|
return 1;
|
|
5172
5182
|
}
|
|
@@ -5206,19 +5216,19 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5206
5216
|
_if(() => {
|
|
5207
5217
|
if (hits && hits.length) {
|
|
5208
5218
|
const $scope21_id = _scope_id();
|
|
5209
|
-
_html(`<ul${_attr_class([toolGrid, "
|
|
5219
|
+
_html(`<ul${_attr_class([toolGrid, "_cv"])}>`);
|
|
5210
5220
|
_for_of(hits, (h) => {
|
|
5211
5221
|
const $scope22_id = _scope_id();
|
|
5212
|
-
_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>`);
|
|
5213
5223
|
_if(() => {
|
|
5214
5224
|
if (active.has(h.name)) {
|
|
5215
5225
|
const $scope23_id = _scope_id();
|
|
5216
|
-
_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>`);
|
|
5217
5227
|
_subscribe($active__closures, writeScope($scope23_id, { Cdx: 5 }));
|
|
5218
5228
|
return 0;
|
|
5219
5229
|
} else if (h.description) {
|
|
5220
5230
|
const $scope79_id = _scope_id();
|
|
5221
|
-
_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")}`);
|
|
5222
5232
|
writeScope($scope79_id, {});
|
|
5223
5233
|
return 1;
|
|
5224
5234
|
}
|
|
@@ -5236,7 +5246,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5236
5246
|
} else {
|
|
5237
5247
|
const $scope34_id = _scope_id();
|
|
5238
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")}`);
|
|
5239
|
-
_script($scope34_id, "
|
|
5249
|
+
_script($scope34_id, "v51");
|
|
5240
5250
|
writeScope($scope34_id, {});
|
|
5241
5251
|
return 1;
|
|
5242
5252
|
}
|
|
@@ -5257,20 +5267,20 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5257
5267
|
return 0;
|
|
5258
5268
|
} else if (hits && !searching) {
|
|
5259
5269
|
const $scope36_id = _scope_id();
|
|
5260
|
-
_html(`<p${_attr_class("
|
|
5270
|
+
_html(`<p${_attr_class("_bF")}>No tools match "<!>${_escape(query)}${_el_resume($scope36_id, "b")}".</p>`);
|
|
5261
5271
|
_subscribe($query__closures, writeScope($scope36_id, {}));
|
|
5262
5272
|
return 1;
|
|
5263
5273
|
}
|
|
5264
5274
|
}, $scope20_id, "d", 1, 1, 1, 0, 1);
|
|
5265
5275
|
_html("</div>");
|
|
5266
|
-
_script($scope20_id, "
|
|
5276
|
+
_script($scope20_id, "v52");
|
|
5267
5277
|
writeScope($scope20_id, {});
|
|
5268
5278
|
return 0;
|
|
5269
5279
|
}
|
|
5270
5280
|
}, $scope0_id, "ac", 1, 1, 1, 0, 1);
|
|
5271
|
-
_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) {
|
|
5272
5282
|
setInstance({ name: v });
|
|
5273
|
-
}, "
|
|
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")}>`);
|
|
5274
5284
|
_for_of([
|
|
5275
5285
|
{
|
|
5276
5286
|
id: "system",
|
|
@@ -5286,22 +5296,22 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5286
5296
|
}
|
|
5287
5297
|
], (opt) => {
|
|
5288
5298
|
const $scope43_id = _scope_id();
|
|
5289
|
-
_html(`<button type=button${_attr_class(["
|
|
5290
|
-
_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");
|
|
5291
5301
|
writeScope($scope43_id, {
|
|
5292
5302
|
e: opt?.id,
|
|
5293
5303
|
_: _scope_with_id($scope0_id)
|
|
5294
5304
|
});
|
|
5295
5305
|
}, "id", $scope0_id, "an", 1, 0, 1, 0, 1);
|
|
5296
|
-
_html(`</span><span${_attr_class(["_S", "
|
|
5297
|
-
"_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([
|
|
5298
5307
|
"_cO",
|
|
5299
|
-
|
|
5308
|
+
"_cQ",
|
|
5309
|
+
{ ["_cP"]: !input.instance.accent }
|
|
5300
5310
|
])} role=radio aria-checked=${!input.instance.accent ? "true" : "false"} title="Default (blue)" aria-label="Default (blue)"></button>${_el_resume($scope0_id, "as")}`);
|
|
5301
5311
|
_for_of(ACCENT_PRESETS, (p) => {
|
|
5302
5312
|
const $scope4_id = _scope_id();
|
|
5303
|
-
_html(`<button type=button${_attr_class(["
|
|
5304
|
-
_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");
|
|
5305
5315
|
writeScope($scope4_id, {
|
|
5306
5316
|
d: p?.value,
|
|
5307
5317
|
_: _scope_with_id($scope0_id)
|
|
@@ -5309,12 +5319,12 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5309
5319
|
}, "value", $scope0_id, "at", $sg__input_instance_accent, 0, 1, 0, 1);
|
|
5310
5320
|
const customOn = !!input.instance.accent && !ACCENT_PRESETS.some((p) => p.value === input.instance.accent);
|
|
5311
5321
|
_html(`<label${_attr_class([
|
|
5312
|
-
"
|
|
5313
|
-
"
|
|
5314
|
-
{ ["
|
|
5322
|
+
"_cO",
|
|
5323
|
+
"_cR",
|
|
5324
|
+
{ ["_cP"]: customOn }
|
|
5315
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) {
|
|
5316
5326
|
setInstance({ accent: v });
|
|
5317
|
-
}, "
|
|
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>`);
|
|
5318
5328
|
_if(() => {
|
|
5319
5329
|
if (versionPick) {
|
|
5320
5330
|
const $scope30_id = _scope_id();
|
|
@@ -5328,19 +5338,19 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5328
5338
|
open: versionPick != null,
|
|
5329
5339
|
openChange: _resume(function(o) {
|
|
5330
5340
|
if (!o) versionPick = null;
|
|
5331
|
-
}, "
|
|
5341
|
+
}, "v29", $scope30_id),
|
|
5332
5342
|
onSubmit: _resume(function(v) {
|
|
5333
5343
|
const pick = versionPick;
|
|
5334
5344
|
versionPick = null;
|
|
5335
5345
|
run(pick.id, "install", v);
|
|
5336
|
-
}, "
|
|
5346
|
+
}, "v30", $scope30_id)
|
|
5337
5347
|
});
|
|
5338
5348
|
writeScope($scope30_id, { a: _existing_scope($childScope11) });
|
|
5339
5349
|
return 0;
|
|
5340
5350
|
}
|
|
5341
5351
|
}, $scope0_id, "ax", 1, 1, 1, 0, 1);
|
|
5342
|
-
_script($scope0_id, "
|
|
5343
|
-
_script($scope0_id, "
|
|
5352
|
+
_script($scope0_id, "v55");
|
|
5353
|
+
_script($scope0_id, "v56");
|
|
5344
5354
|
writeScope($scope0_id, {
|
|
5345
5355
|
b1: input.setupChange,
|
|
5346
5356
|
b2: input.agentsChange,
|
|
@@ -5428,15 +5438,15 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5428
5438
|
});
|
|
5429
5439
|
//#endregion
|
|
5430
5440
|
//#region src/tags/new-workspace.css.ts
|
|
5431
|
-
var content$1 = "
|
|
5432
|
-
var section$1 = "
|
|
5433
|
-
var curBase = "
|
|
5434
|
-
var archived = "
|
|
5435
|
-
var archivedHint = "
|
|
5436
|
-
var archivedCard = "
|
|
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";
|
|
5437
5447
|
//#endregion
|
|
5438
5448
|
//#region src/tags/icons/icon-check.marko
|
|
5439
|
-
var icon_check_default = _template("
|
|
5449
|
+
var icon_check_default = _template("P", (input) => {
|
|
5440
5450
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
5441
5451
|
const $scope0_id = _scope_id();
|
|
5442
5452
|
_set_serialize_reason({
|
|
@@ -5453,7 +5463,7 @@ var icon_check_default = _template("O", (input) => {
|
|
|
5453
5463
|
});
|
|
5454
5464
|
//#endregion
|
|
5455
5465
|
//#region src/tags/icons/icon-branch.marko
|
|
5456
|
-
var icon_branch_default = _template("
|
|
5466
|
+
var icon_branch_default = _template("O", (input) => {
|
|
5457
5467
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
5458
5468
|
const $scope0_id = _scope_id();
|
|
5459
5469
|
_set_serialize_reason({
|
|
@@ -5468,7 +5478,7 @@ var icon_branch_default = _template("N", (input) => {
|
|
|
5468
5478
|
});
|
|
5469
5479
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
5470
5480
|
});
|
|
5471
|
-
var resultBranch = "
|
|
5481
|
+
var resultBranch = "_c1 _Z _j";
|
|
5472
5482
|
//#endregion
|
|
5473
5483
|
//#region src/tags/branch-pick.marko
|
|
5474
5484
|
var branch_pick_default = _template("d", (input) => {
|
|
@@ -5479,11 +5489,11 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
5479
5489
|
let branches = null;
|
|
5480
5490
|
let defaultBranch = null;
|
|
5481
5491
|
let branchFilter = "";
|
|
5482
|
-
_html(`<div${_attr_class("
|
|
5492
|
+
_html(`<div${_attr_class("_c3")}>`);
|
|
5483
5493
|
_if(() => {
|
|
5484
5494
|
{
|
|
5485
5495
|
const $scope4_id = _scope_id();
|
|
5486
|
-
_html(`<p${_attr_class("
|
|
5496
|
+
_html(`<p${_attr_class("_bF")}><span${_attr_class("_F")}></span> Loading branches…</p>`);
|
|
5487
5497
|
writeScope($scope4_id, {});
|
|
5488
5498
|
return 0;
|
|
5489
5499
|
}
|
|
@@ -5507,7 +5517,7 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
5507
5517
|
//#region src/tags/repo-picker.marko
|
|
5508
5518
|
var api$5;
|
|
5509
5519
|
var prefs$1;
|
|
5510
|
-
var repo_picker_default = _template("
|
|
5520
|
+
var repo_picker_default = _template("t", (input) => {
|
|
5511
5521
|
const $scope0_reason = _scope_reason(), $si__input_onError = _serialize_if($scope0_reason, 2);
|
|
5512
5522
|
const $scope0_id = _scope_id();
|
|
5513
5523
|
const $pasted__closures = /* @__PURE__ */ new Set();
|
|
@@ -5527,14 +5537,14 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
5527
5537
|
input.onError?.(String(err.message || err));
|
|
5528
5538
|
}
|
|
5529
5539
|
if (refresh);
|
|
5530
|
-
}, "
|
|
5540
|
+
}, "t2", $scope0_id);
|
|
5531
5541
|
const excluded = _resume((name) => {
|
|
5532
5542
|
if (input.exclude.has(name)) return true;
|
|
5533
5543
|
const repos = catalog?.repos || [];
|
|
5534
5544
|
if (repos.some((r) => input.exclude.has(r.nameWithOwner) && r.parent === name)) return true;
|
|
5535
5545
|
const entry = repos.find((r) => r.nameWithOwner === name);
|
|
5536
5546
|
return !!(entry?.parent && input.exclude.has(entry.parent));
|
|
5537
|
-
}, "
|
|
5547
|
+
}, "t3", $scope0_id);
|
|
5538
5548
|
const results = catalog && filter ? rankRepos(filter, catalog.repos, (name) => excluded(name)) : [];
|
|
5539
5549
|
const pasted = (() => {
|
|
5540
5550
|
const name = parseRepoUrl(filter);
|
|
@@ -5548,32 +5558,32 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
5548
5558
|
branchesFor = null;
|
|
5549
5559
|
pasteWillFork = false;
|
|
5550
5560
|
input.onPick(fullName, baseBranch, fork);
|
|
5551
|
-
}, "
|
|
5552
|
-
const pastedFork = _resume((fork) => pastedForkable ? fork : void 0, "
|
|
5561
|
+
}, "t4", $scope0_id);
|
|
5562
|
+
const pastedFork = _resume((fork) => pastedForkable ? fork : void 0, "t5", $scope0_id);
|
|
5553
5563
|
const toggleBranches = _resume((fullName) => {
|
|
5554
5564
|
branchesFor = branchesFor === fullName ? null : fullName;
|
|
5555
5565
|
if (fullName !== pasted) pasteWillFork = false;
|
|
5556
|
-
}, "
|
|
5566
|
+
}, "t6", $scope0_id);
|
|
5557
5567
|
let ssoIgnoreTick = 0;
|
|
5558
5568
|
const ssoPending = (() => {
|
|
5559
5569
|
const ignored = new Set(prefs$1?.ignoredSsoOrgs?.() ?? []);
|
|
5560
5570
|
return (catalog?.sso || []).filter((s) => !ignored.has(s.org));
|
|
5561
5571
|
})();
|
|
5562
|
-
_html(`<div${_attr_class("
|
|
5572
|
+
_html(`<div${_attr_class("_cU")}>`);
|
|
5563
5573
|
_if(() => {
|
|
5564
5574
|
if (ssoPending.length) {
|
|
5565
5575
|
const $scope7_id = _scope_id();
|
|
5566
|
-
_html(`<div${_attr_class("
|
|
5576
|
+
_html(`<div${_attr_class("_cV")}>`);
|
|
5567
5577
|
_set_serialize_reason(154);
|
|
5568
5578
|
const $childScope = _peek_scope_id();
|
|
5569
5579
|
sso_auth_default({
|
|
5570
5580
|
items: ssoPending,
|
|
5571
5581
|
onChange: _resume(function() {
|
|
5572
5582
|
ssoIgnoreTick++;
|
|
5573
|
-
}, "
|
|
5583
|
+
}, "t7", $scope7_id),
|
|
5574
5584
|
onDone: _resume(function() {
|
|
5575
5585
|
loadCatalog(true);
|
|
5576
|
-
}, "
|
|
5586
|
+
}, "t8", $scope7_id)
|
|
5577
5587
|
});
|
|
5578
5588
|
_html("</div>");
|
|
5579
5589
|
writeScope($scope7_id, { b: _existing_scope($childScope) });
|
|
@@ -5589,20 +5599,20 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
5589
5599
|
filter = v;
|
|
5590
5600
|
highlight = 0;
|
|
5591
5601
|
pasteWillFork = false;
|
|
5592
|
-
}, "
|
|
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>`);
|
|
5593
5603
|
_if(() => {
|
|
5594
5604
|
if (pasted) {
|
|
5595
5605
|
const $scope1_id = _scope_id();
|
|
5596
|
-
_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)`)}>`);
|
|
5597
5607
|
icon_plus_default({
|
|
5598
5608
|
size: 12,
|
|
5599
|
-
class: "
|
|
5609
|
+
class: "_c5"
|
|
5600
5610
|
});
|
|
5601
|
-
_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")}`);
|
|
5602
5612
|
_if(() => {
|
|
5603
5613
|
if (pastedForkable) {
|
|
5604
5614
|
const $scope8_id = _scope_id();
|
|
5605
|
-
_html(`<button${_attr_class(["
|
|
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"}>`);
|
|
5606
5616
|
_if(() => {
|
|
5607
5617
|
if (pasteWillFork) {
|
|
5608
5618
|
const $scope10_id = _scope_id();
|
|
@@ -5617,12 +5627,12 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
5617
5627
|
return 1;
|
|
5618
5628
|
}
|
|
5619
5629
|
}, $scope8_id, "a", 1, 1, 1, "</button>");
|
|
5620
|
-
_script($scope8_id, "
|
|
5630
|
+
_script($scope8_id, "t13");
|
|
5621
5631
|
_subscribe($pasteWillFork__closures, _subscribe($pasted__closures, writeScope($scope8_id, { Cao: 1 })));
|
|
5622
5632
|
return 0;
|
|
5623
5633
|
}
|
|
5624
5634
|
}, $scope1_id, "g", 1, 1, 1, 0, 1);
|
|
5625
|
-
_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}`)}>`);
|
|
5626
5636
|
icon_branch_default({ size: 12 });
|
|
5627
5637
|
_html(`</button>${_el_resume($scope1_id, "h")}</div>`);
|
|
5628
5638
|
_if(() => {
|
|
@@ -5633,23 +5643,23 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
5633
5643
|
repo: pasted,
|
|
5634
5644
|
onPick: _resume(function(branch, isDefault) {
|
|
5635
5645
|
pick(pasted, isDefault ? void 0 : branch, pastedFork(pasteWillFork));
|
|
5636
|
-
}, "
|
|
5646
|
+
}, "t9", $scope2_id),
|
|
5637
5647
|
onError: _resume(function(message) {
|
|
5638
5648
|
branchesFor = null;
|
|
5639
5649
|
input.onError?.(message);
|
|
5640
|
-
}, "
|
|
5650
|
+
}, "t10", $scope2_id)
|
|
5641
5651
|
});
|
|
5642
5652
|
_subscribe($pasted__closures, _subscribe($si__input_onError && $input_onError__closures, writeScope($scope2_id, { a: _existing_scope($childScope2) })));
|
|
5643
5653
|
return 0;
|
|
5644
5654
|
}
|
|
5645
5655
|
}, $scope1_id, "j", 1, 1, 1, 0, 1);
|
|
5646
5656
|
_html("</li></ul>");
|
|
5647
|
-
_script($scope1_id, "
|
|
5657
|
+
_script($scope1_id, "t14");
|
|
5648
5658
|
writeScope($scope1_id, {});
|
|
5649
5659
|
return 0;
|
|
5650
5660
|
} else if (filter && !catalog) {
|
|
5651
5661
|
const $scope9_id = _scope_id();
|
|
5652
|
-
_html(`<p${_attr_class("
|
|
5662
|
+
_html(`<p${_attr_class("_bF")}>Loading repos…</p>`);
|
|
5653
5663
|
writeScope($scope9_id, {});
|
|
5654
5664
|
return 1;
|
|
5655
5665
|
}
|
|
@@ -5657,15 +5667,15 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
5657
5667
|
_if(() => {
|
|
5658
5668
|
if (results.length) {
|
|
5659
5669
|
const $scope3_id = _scope_id();
|
|
5660
|
-
_html(`<ul${_attr_class("
|
|
5670
|
+
_html(`<ul${_attr_class("_cW")}>`);
|
|
5661
5671
|
_for_of(results, (repo, i) => {
|
|
5662
5672
|
const $scope4_id = _scope_id();
|
|
5663
|
-
_html(`<li><div${_attr_class(["
|
|
5673
|
+
_html(`<li><div${_attr_class(["_cY", { ["_cX"]: i === highlight }])}><button${_attr_class("_cZ")}>`);
|
|
5664
5674
|
icon_plus_default({
|
|
5665
5675
|
size: 12,
|
|
5666
|
-
class: "
|
|
5676
|
+
class: "_c5"
|
|
5667
5677
|
});
|
|
5668
|
-
_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}`)}>`);
|
|
5669
5679
|
icon_branch_default({ size: 12 });
|
|
5670
5680
|
_html(`</button>${_el_resume($scope4_id, "f")}</div>${_el_resume($scope4_id, "a")}`);
|
|
5671
5681
|
_if(() => {
|
|
@@ -5676,11 +5686,11 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
5676
5686
|
repo: repo.nameWithOwner,
|
|
5677
5687
|
onPick: _resume(function(branch, isDefault) {
|
|
5678
5688
|
pick(repo.nameWithOwner, isDefault ? void 0 : branch);
|
|
5679
|
-
}, "
|
|
5689
|
+
}, "t11", $scope5_id),
|
|
5680
5690
|
onError: _resume(function(message) {
|
|
5681
5691
|
branchesFor = null;
|
|
5682
5692
|
input.onError?.(message);
|
|
5683
|
-
}, "
|
|
5693
|
+
}, "t12", $scope5_id)
|
|
5684
5694
|
});
|
|
5685
5695
|
_subscribe($si__input_onError && $input_onError__closures, writeScope($scope5_id, {
|
|
5686
5696
|
a: _existing_scope($childScope3),
|
|
@@ -5690,7 +5700,7 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
5690
5700
|
}
|
|
5691
5701
|
}, $scope4_id, "h", 1, 1, 1, 0, 1);
|
|
5692
5702
|
_html("</li>");
|
|
5693
|
-
_script($scope4_id, "
|
|
5703
|
+
_script($scope4_id, "t15");
|
|
5694
5704
|
_subscribe($branchesFor__closures, _subscribe($highlight__closures, writeScope($scope4_id, {
|
|
5695
5705
|
k: repo?.nameWithOwner,
|
|
5696
5706
|
m: i
|
|
@@ -5700,15 +5710,15 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
5700
5710
|
return 0;
|
|
5701
5711
|
} else if (filter && catalog && !pasted) {
|
|
5702
5712
|
const $scope6_id = _scope_id();
|
|
5703
|
-
_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>`);
|
|
5704
5714
|
writeScope($scope6_id, {});
|
|
5705
5715
|
return 1;
|
|
5706
5716
|
}
|
|
5707
5717
|
}, $scope0_id, "g", 1, 1, 1, 0, 1);
|
|
5708
5718
|
_html("</div>");
|
|
5709
|
-
const $return = _resume(() => loadCatalog(true), "
|
|
5710
|
-
_script($scope0_id, "
|
|
5711
|
-
_script($scope0_id, "
|
|
5719
|
+
const $return = _resume(() => loadCatalog(true), "t1", $scope0_id);
|
|
5720
|
+
_script($scope0_id, "t16");
|
|
5721
|
+
_script($scope0_id, "t17");
|
|
5712
5722
|
writeScope($scope0_id, {
|
|
5713
5723
|
j: _serialize_if($scope0_reason, 1) && input.refreshing,
|
|
5714
5724
|
k: _serialize_if($scope0_reason, 0) && input.refreshingChange,
|
|
@@ -5746,7 +5756,7 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
5746
5756
|
//#region src/tags/new-workspace.marko
|
|
5747
5757
|
var api$4;
|
|
5748
5758
|
var watchProgress;
|
|
5749
|
-
var new_workspace_default = _template("
|
|
5759
|
+
var new_workspace_default = _template("q", (input) => {
|
|
5750
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);
|
|
5751
5761
|
const $scope0_id = _scope_id();
|
|
5752
5762
|
const $error__closures = /* @__PURE__ */ new Set();
|
|
@@ -5768,25 +5778,25 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5768
5778
|
baseBranch,
|
|
5769
5779
|
fork
|
|
5770
5780
|
});
|
|
5771
|
-
}, "
|
|
5781
|
+
}, "q1", $scope0_id);
|
|
5772
5782
|
let branchesFor = null;
|
|
5773
5783
|
const removeRepo = _resume((fullName) => {
|
|
5774
5784
|
selected = selected.filter((r) => r.fullName !== fullName);
|
|
5775
5785
|
if (branchesFor === fullName) branchesFor = null;
|
|
5776
|
-
}, "
|
|
5786
|
+
}, "q2", $scope0_id);
|
|
5777
5787
|
const toggleFork = _resume((fullName) => {
|
|
5778
5788
|
selected = selected.map((r) => r.fullName === fullName ? {
|
|
5779
5789
|
...r,
|
|
5780
5790
|
fork: !r.fork
|
|
5781
5791
|
} : r);
|
|
5782
|
-
}, "
|
|
5792
|
+
}, "q3", $scope0_id);
|
|
5783
5793
|
const setBranch = _resume((fullName, baseBranch) => {
|
|
5784
5794
|
selected = selected.map((r) => r.fullName === fullName ? {
|
|
5785
5795
|
...r,
|
|
5786
5796
|
baseBranch
|
|
5787
5797
|
} : r);
|
|
5788
5798
|
branchesFor = null;
|
|
5789
|
-
}, "
|
|
5799
|
+
}, "q4", $scope0_id);
|
|
5790
5800
|
const restore = _resume(async (ws) => {
|
|
5791
5801
|
if (busy || restoring) return;
|
|
5792
5802
|
error = null;
|
|
@@ -5806,7 +5816,7 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5806
5816
|
} finally {
|
|
5807
5817
|
restoring = null;
|
|
5808
5818
|
}
|
|
5809
|
-
}, "
|
|
5819
|
+
}, "q5", $scope0_id);
|
|
5810
5820
|
const createGen = { n: 0 };
|
|
5811
5821
|
const create = _resume(async () => {
|
|
5812
5822
|
if (restoring) return;
|
|
@@ -5839,9 +5849,9 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5839
5849
|
} finally {
|
|
5840
5850
|
watcher.stop();
|
|
5841
5851
|
}
|
|
5842
|
-
}, "
|
|
5852
|
+
}, "q6", $scope0_id);
|
|
5843
5853
|
const titleId = _id();
|
|
5844
|
-
_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)}>`);
|
|
5845
5855
|
_set_serialize_reason({
|
|
5846
5856
|
0: _serialize_guard($scope0_reason, 2),
|
|
5847
5857
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -5853,8 +5863,8 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5853
5863
|
title: "New workspace",
|
|
5854
5864
|
titleId,
|
|
5855
5865
|
backHref: input.backHref,
|
|
5856
|
-
onBack: input.onExit && _resume(() => input.onExit?.(), "
|
|
5857
|
-
meta: attrTag({ content: _content_resume("
|
|
5866
|
+
onBack: input.onExit && _resume(() => input.onExit?.(), "q7", $scope0_id),
|
|
5867
|
+
meta: attrTag({ content: _content_resume("q14", () => {
|
|
5858
5868
|
_scope_reason();
|
|
5859
5869
|
_scope_id();
|
|
5860
5870
|
_html("Name the workspace and pick repos, or restore an archived one below.");
|
|
@@ -5867,8 +5877,8 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5867
5877
|
placement: "inline",
|
|
5868
5878
|
onDismiss: _resume(function() {
|
|
5869
5879
|
error = null;
|
|
5870
|
-
}, "
|
|
5871
|
-
content: _content_resume("
|
|
5880
|
+
}, "q8", $scope6_id),
|
|
5881
|
+
content: _content_resume("q15", () => {
|
|
5872
5882
|
_scope_reason();
|
|
5873
5883
|
const $scope7_id = _scope_id();
|
|
5874
5884
|
_html(`${_escape(error)}${_el_resume($scope7_id, "a")}`);
|
|
@@ -5880,23 +5890,23 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5880
5890
|
return 0;
|
|
5881
5891
|
}
|
|
5882
5892
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
5883
|
-
_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) => {
|
|
5884
5894
|
name = _new_name;
|
|
5885
|
-
}, "
|
|
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)}>`);
|
|
5886
5896
|
_set_serialize_reason(1);
|
|
5887
5897
|
const $childScope2 = _peek_scope_id();
|
|
5888
5898
|
icon_refresh_default({
|
|
5889
5899
|
size: 14,
|
|
5890
5900
|
class: catalogRefreshing && "_E"
|
|
5891
5901
|
});
|
|
5892
|
-
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("
|
|
5902
|
+
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("_bQ")}>`);
|
|
5893
5903
|
_for_of(selected, (repo) => {
|
|
5894
5904
|
const $scope2_id = _scope_id();
|
|
5895
|
-
_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>`);
|
|
5896
5906
|
_if(() => {
|
|
5897
5907
|
if (repo.fork !== void 0) {
|
|
5898
5908
|
const $scope3_id = _scope_id();
|
|
5899
|
-
_html(`<button${_attr_class(["
|
|
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)}>`);
|
|
5900
5910
|
_if(() => {
|
|
5901
5911
|
if (repo.fork) {
|
|
5902
5912
|
const $scope12_id = _scope_id();
|
|
@@ -5911,7 +5921,7 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5911
5921
|
return 1;
|
|
5912
5922
|
}
|
|
5913
5923
|
}, $scope3_id, "a", 1, 1, 1, "</button>");
|
|
5914
|
-
_script($scope3_id, "
|
|
5924
|
+
_script($scope3_id, "q16");
|
|
5915
5925
|
_subscribe($busy__closures, writeScope($scope3_id, {}));
|
|
5916
5926
|
return 0;
|
|
5917
5927
|
}
|
|
@@ -5919,7 +5929,7 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5919
5929
|
_html(`<button${_attr_class([
|
|
5920
5930
|
curBase,
|
|
5921
5931
|
"_x",
|
|
5922
|
-
{ ["
|
|
5932
|
+
{ ["_bS"]: branchesFor === repo.fullName }
|
|
5923
5933
|
])}${_attr("title", `Change base branch for ${repo.fullName}`)}${_attr("aria-label", `Change base branch for ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
5924
5934
|
icon_branch_default({ size: 12 });
|
|
5925
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)}>`);
|
|
@@ -5934,18 +5944,18 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5934
5944
|
current: repo.baseBranch,
|
|
5935
5945
|
onPick: _resume(function(branch, isDefault) {
|
|
5936
5946
|
setBranch(repo.fullName, isDefault ? void 0 : branch);
|
|
5937
|
-
}, "
|
|
5947
|
+
}, "q9", $scope8_id),
|
|
5938
5948
|
onError: _resume(function(message) {
|
|
5939
5949
|
branchesFor = null;
|
|
5940
5950
|
error = message;
|
|
5941
|
-
}, "
|
|
5951
|
+
}, "q10", $scope8_id)
|
|
5942
5952
|
});
|
|
5943
5953
|
writeScope($scope8_id, { a: _existing_scope($childScope3) });
|
|
5944
5954
|
return 0;
|
|
5945
5955
|
}
|
|
5946
5956
|
}, $scope2_id, "j", 1, 1, 1, 0, 1);
|
|
5947
5957
|
_html("</li>");
|
|
5948
|
-
_script($scope2_id, "
|
|
5958
|
+
_script($scope2_id, "q17");
|
|
5949
5959
|
writeScope($scope2_id, {
|
|
5950
5960
|
m: repo?.fullName,
|
|
5951
5961
|
o: repo?.fork,
|
|
@@ -5955,7 +5965,7 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5955
5965
|
_if(() => {
|
|
5956
5966
|
if (!selected.length) {
|
|
5957
5967
|
const $scope14_id = _scope_id();
|
|
5958
|
-
_html(`<li${_attr_class("
|
|
5968
|
+
_html(`<li${_attr_class("_bF")}>No repos yet. Search below to add one, or create it empty.</li>`);
|
|
5959
5969
|
writeScope($scope14_id, {});
|
|
5960
5970
|
return 0;
|
|
5961
5971
|
}
|
|
@@ -5967,23 +5977,23 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5967
5977
|
disabled: busy,
|
|
5968
5978
|
onPick: _resume(function(fullName, baseBranch, fork) {
|
|
5969
5979
|
addRepo(fullName, baseBranch, fork);
|
|
5970
|
-
}, "
|
|
5980
|
+
}, "q11", $scope0_id),
|
|
5971
5981
|
onError: _resume(function(message) {
|
|
5972
5982
|
error = message;
|
|
5973
|
-
}, "
|
|
5983
|
+
}, "q12", $scope0_id),
|
|
5974
5984
|
refreshingChange: _resume(function(v) {
|
|
5975
5985
|
catalogRefreshing = v;
|
|
5976
|
-
}, "
|
|
5986
|
+
}, "q13", $scope0_id)
|
|
5977
5987
|
});
|
|
5978
|
-
_var($scope0_id, "r", $childScope4, "
|
|
5988
|
+
_var($scope0_id, "r", $childScope4, "q18");
|
|
5979
5989
|
_html("</section>");
|
|
5980
5990
|
_if(() => {
|
|
5981
5991
|
if (busy && steps$1.length) {
|
|
5982
5992
|
const $scope9_id = _scope_id();
|
|
5983
|
-
_html(`<ul${_attr_class("
|
|
5993
|
+
_html(`<ul${_attr_class("_bV")}>`);
|
|
5984
5994
|
_for_of(steps$1, (step$1, i) => {
|
|
5985
5995
|
const $scope10_id = _scope_id();
|
|
5986
|
-
_html(`<li${_attr_class(["
|
|
5996
|
+
_html(`<li${_attr_class(["_b1", { ["_bW"]: i === steps$1.length - 1 }])}>`);
|
|
5987
5997
|
_if(() => {
|
|
5988
5998
|
if (i === steps$1.length - 1) {
|
|
5989
5999
|
const $scope15_id = _scope_id();
|
|
@@ -5992,7 +6002,7 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5992
6002
|
return 0;
|
|
5993
6003
|
} else {
|
|
5994
6004
|
const $scope16_id = _scope_id();
|
|
5995
|
-
_html(`<span${_attr_class("
|
|
6005
|
+
_html(`<span${_attr_class("_bX")}>`);
|
|
5996
6006
|
icon_check_default({ size: 14 });
|
|
5997
6007
|
_html("</span>");
|
|
5998
6008
|
writeScope($scope16_id, {});
|
|
@@ -6006,12 +6016,12 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
6006
6016
|
return 0;
|
|
6007
6017
|
}
|
|
6008
6018
|
}, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
6009
|
-
_html(`<div${_attr_class("
|
|
6019
|
+
_html(`<div${_attr_class("_bL")}>`);
|
|
6010
6020
|
_if(() => {
|
|
6011
6021
|
if (input.onExit || busy) {
|
|
6012
6022
|
const $scope1_id = _scope_id();
|
|
6013
6023
|
_html(`<button type=button${_attr_class(btnLg)}${_attr("disabled", !!restoring)}>Cancel</button>${_el_resume($scope1_id, "a")}`);
|
|
6014
|
-
_script($scope1_id, "
|
|
6024
|
+
_script($scope1_id, "q19");
|
|
6015
6025
|
writeScope($scope1_id, {});
|
|
6016
6026
|
return 0;
|
|
6017
6027
|
}
|
|
@@ -6019,15 +6029,15 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
6019
6029
|
_html(`<button type=button${_attr_class([
|
|
6020
6030
|
btnLg,
|
|
6021
6031
|
"_p",
|
|
6022
|
-
"
|
|
6032
|
+
"_bM"
|
|
6023
6033
|
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${busy ? "Creating…" : "Create workspace"}${_el_resume($scope0_id, "w")}</button>${_el_resume($scope0_id, "v")}</div>`);
|
|
6024
6034
|
_if(() => {
|
|
6025
6035
|
if (archived$1.length) {
|
|
6026
6036
|
const $scope4_id = _scope_id();
|
|
6027
|
-
_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")}>`);
|
|
6028
6038
|
_for_of(archived$1, (ws) => {
|
|
6029
6039
|
const $scope5_id = _scope_id();
|
|
6030
|
-
_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)}>`);
|
|
6031
6041
|
_if(() => {
|
|
6032
6042
|
if (restoring === ws.id) {
|
|
6033
6043
|
const $scope17_id = _scope_id();
|
|
@@ -6042,7 +6052,7 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
6042
6052
|
}
|
|
6043
6053
|
}, $scope5_id, "g", 1, 1, 1, "</button>");
|
|
6044
6054
|
_html("</li>");
|
|
6045
|
-
_script($scope5_id, "
|
|
6055
|
+
_script($scope5_id, "q20");
|
|
6046
6056
|
_subscribe($restoring__closures, _subscribe($busy__closures, writeScope($scope5_id, {
|
|
6047
6057
|
j: ws,
|
|
6048
6058
|
o: ws?.id,
|
|
@@ -6056,7 +6066,7 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
6056
6066
|
}
|
|
6057
6067
|
}, $scope0_id, "x", $sg__input_workspaces, $sg__input_workspaces, 1, 0, 1);
|
|
6058
6068
|
_html("</div></div></div>");
|
|
6059
|
-
_script($scope0_id, "
|
|
6069
|
+
_script($scope0_id, "q21");
|
|
6060
6070
|
writeScope($scope0_id, {
|
|
6061
6071
|
a1: input.onRestore,
|
|
6062
6072
|
a2: input.onCreate,
|
|
@@ -6184,9 +6194,9 @@ function activeAgent(session) {
|
|
|
6184
6194
|
const command = session.state?.command?.trim();
|
|
6185
6195
|
return command && agentFromCommand(command) || session.agent;
|
|
6186
6196
|
}
|
|
6187
|
-
var iconBtn$1 = "
|
|
6188
|
-
var navToggle = "
|
|
6189
|
-
_template("
|
|
6197
|
+
var iconBtn$1 = "_dW _j";
|
|
6198
|
+
var navToggle = "_d1 _j";
|
|
6199
|
+
_template("N", (input) => {
|
|
6190
6200
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6191
6201
|
const $scope0_id = _scope_id();
|
|
6192
6202
|
_set_serialize_reason({
|
|
@@ -6203,7 +6213,7 @@ _template("M", (input) => {
|
|
|
6203
6213
|
});
|
|
6204
6214
|
//#endregion
|
|
6205
6215
|
//#region src/tags/icons/icon-settings.marko
|
|
6206
|
-
var icon_settings_default = _template("
|
|
6216
|
+
var icon_settings_default = _template("eb", (input) => {
|
|
6207
6217
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6208
6218
|
const $scope0_id = _scope_id();
|
|
6209
6219
|
_set_serialize_reason({
|
|
@@ -6228,12 +6238,12 @@ var ARM_MS = 3500;
|
|
|
6228
6238
|
function disarmLater(fn) {
|
|
6229
6239
|
return setTimeout(fn, ARM_MS);
|
|
6230
6240
|
}
|
|
6231
|
-
var railBtn = "
|
|
6232
|
-
var rowIcon = "
|
|
6233
|
-
var close = "
|
|
6241
|
+
var railBtn = "_gV _j";
|
|
6242
|
+
var rowIcon = "_g4 _Z _j";
|
|
6243
|
+
var close = "_g5 _Z _j _2";
|
|
6234
6244
|
//#endregion
|
|
6235
6245
|
//#region src/styles/session-pop.css.ts
|
|
6236
|
-
var sessionPop = "
|
|
6246
|
+
var sessionPop = "_gR _4";
|
|
6237
6247
|
//#endregion
|
|
6238
6248
|
//#region src/client/usage.ts
|
|
6239
6249
|
/** The plan row an agent instance draws on: its own account (`claude2`)
|
|
@@ -6247,7 +6257,7 @@ function usageFor(agentId, usage) {
|
|
|
6247
6257
|
}
|
|
6248
6258
|
//#endregion
|
|
6249
6259
|
//#region src/tags/icons/icon-diff.marko
|
|
6250
|
-
var icon_diff_default = _template("
|
|
6260
|
+
var icon_diff_default = _template("U", (input) => {
|
|
6251
6261
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6252
6262
|
const $scope0_id = _scope_id();
|
|
6253
6263
|
_set_serialize_reason({
|
|
@@ -6264,7 +6274,7 @@ var icon_diff_default = _template("T", (input) => {
|
|
|
6264
6274
|
});
|
|
6265
6275
|
//#endregion
|
|
6266
6276
|
//#region src/tags/icons/icon-manage.marko
|
|
6267
|
-
var icon_manage_default = _template("
|
|
6277
|
+
var icon_manage_default = _template("ab", (input) => {
|
|
6268
6278
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6269
6279
|
const $scope0_id = _scope_id();
|
|
6270
6280
|
_set_serialize_reason({
|
|
@@ -6285,7 +6295,7 @@ function pctText(pct) {
|
|
|
6285
6295
|
const rounded = Math.round(pct);
|
|
6286
6296
|
return rounded !== pct && (rounded === 100 || rounded === 0) ? `${pct.toFixed(1)}%` : `${rounded}%`;
|
|
6287
6297
|
}
|
|
6288
|
-
var usage_pcts_default = _template("
|
|
6298
|
+
var usage_pcts_default = _template("E", (input) => {
|
|
6289
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);
|
|
6290
6300
|
const $scope0_id = _scope_id();
|
|
6291
6301
|
const agent = input.agent;
|
|
@@ -6294,22 +6304,22 @@ var usage_pcts_default = _template("D", (input) => {
|
|
|
6294
6304
|
if (windows.length) {
|
|
6295
6305
|
const $scope1_id = _scope_id();
|
|
6296
6306
|
_html(`<span${_attr_class([
|
|
6297
|
-
"
|
|
6307
|
+
"_fq",
|
|
6298
6308
|
input.class,
|
|
6299
|
-
{ ["
|
|
6309
|
+
{ ["_fr"]: agent.stale_seconds != null }
|
|
6300
6310
|
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
6301
6311
|
_for_of(windows, (win$1, i) => {
|
|
6302
6312
|
const $scope2_id = _scope_id();
|
|
6303
|
-
_html(`<span${_attr_class("
|
|
6313
|
+
_html(`<span${_attr_class("_fs")}>`);
|
|
6304
6314
|
_if(() => {
|
|
6305
6315
|
if (i) {
|
|
6306
6316
|
const $scope3_id = _scope_id();
|
|
6307
|
-
_html(`<span${_attr_class("
|
|
6317
|
+
_html(`<span${_attr_class("_fv")} aria-hidden=true>·</span>`);
|
|
6308
6318
|
$si__input_agent && writeScope($scope3_id, {});
|
|
6309
6319
|
return 0;
|
|
6310
6320
|
}
|
|
6311
6321
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
6312
|
-
_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>`);
|
|
6313
6323
|
$si__input_agent && writeScope($scope2_id, {});
|
|
6314
6324
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
6315
6325
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -6325,7 +6335,7 @@ var usage_pcts_default = _template("D", (input) => {
|
|
|
6325
6335
|
});
|
|
6326
6336
|
//#endregion
|
|
6327
6337
|
//#region src/tags/icons/icon-edit.marko
|
|
6328
|
-
var icon_edit_default = _template("
|
|
6338
|
+
var icon_edit_default = _template("W", (input) => {
|
|
6329
6339
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6330
6340
|
const $scope0_id = _scope_id();
|
|
6331
6341
|
_set_serialize_reason({
|
|
@@ -6340,12 +6350,12 @@ var icon_edit_default = _template("V", (input) => {
|
|
|
6340
6350
|
});
|
|
6341
6351
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
6342
6352
|
});
|
|
6343
|
-
var prChip = "
|
|
6344
|
-
var portChip = "
|
|
6353
|
+
var prChip = "_hq _s _hp";
|
|
6354
|
+
var portChip = "_hr _s _hp";
|
|
6345
6355
|
var prState = {
|
|
6346
|
-
open: "
|
|
6347
|
-
merged: "
|
|
6348
|
-
closed: "
|
|
6356
|
+
open: "_hv",
|
|
6357
|
+
merged: "_hw",
|
|
6358
|
+
closed: "_hx"
|
|
6349
6359
|
};
|
|
6350
6360
|
//#endregion
|
|
6351
6361
|
//#region src/tags/side-nav-chips.marko
|
|
@@ -6358,7 +6368,7 @@ var prTitle = (repo, pr) => {
|
|
|
6358
6368
|
return parts.join(" · ");
|
|
6359
6369
|
};
|
|
6360
6370
|
var isOpen = (pr) => !pr.state || pr.state === "OPEN";
|
|
6361
|
-
var side_nav_chips_default = _template("
|
|
6371
|
+
var side_nav_chips_default = _template("w", (input) => {
|
|
6362
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);
|
|
6363
6373
|
const $scope0_id = _scope_id();
|
|
6364
6374
|
const $input_workspaceId__closures = /* @__PURE__ */ new Set();
|
|
@@ -6371,7 +6381,7 @@ var side_nav_chips_default = _template("v", (input) => {
|
|
|
6371
6381
|
armBox.timer = disarmLater(() => {
|
|
6372
6382
|
armedPid = null;
|
|
6373
6383
|
});
|
|
6374
|
-
}, "
|
|
6384
|
+
}, "w0", $scope0_id);
|
|
6375
6385
|
const dismissPr = _resume((fullName, number) => {
|
|
6376
6386
|
fetch(`/api/workspaces/${input.workspaceId}/prs`, {
|
|
6377
6387
|
method: "POST",
|
|
@@ -6381,7 +6391,7 @@ var side_nav_chips_default = _template("v", (input) => {
|
|
|
6381
6391
|
number
|
|
6382
6392
|
})
|
|
6383
6393
|
}).catch(() => {});
|
|
6384
|
-
}, "
|
|
6394
|
+
}, "w1", $scope0_id);
|
|
6385
6395
|
const repos = input.status?.repos || [];
|
|
6386
6396
|
const ports = input.status?.ports || [];
|
|
6387
6397
|
_if(() => {
|
|
@@ -6392,8 +6402,8 @@ var side_nav_chips_default = _template("v", (input) => {
|
|
|
6392
6402
|
if (repos.length < 2) return "";
|
|
6393
6403
|
const name = repo.full_name.split("/").at(-1);
|
|
6394
6404
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel(repo.full_name) : name;
|
|
6395
|
-
}, "
|
|
6396
|
-
_html(`<div${_attr_class("
|
|
6405
|
+
}, "w2", $scope1_id);
|
|
6406
|
+
_html(`<div${_attr_class("_ho")}>`);
|
|
6397
6407
|
_for_of(repos, (repo) => {
|
|
6398
6408
|
const $scope2_id = _scope_id();
|
|
6399
6409
|
const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -6409,11 +6419,11 @@ var side_nav_chips_default = _template("v", (input) => {
|
|
|
6409
6419
|
[prState.merged]: pr.state === "MERGED",
|
|
6410
6420
|
[prState.closed]: pr.state === "CLOSED"
|
|
6411
6421
|
}
|
|
6412
|
-
])}${_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)}`);
|
|
6413
6423
|
_if(() => {
|
|
6414
6424
|
if (open) {
|
|
6415
6425
|
const $scope4_id = _scope_id();
|
|
6416
|
-
_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`)}>`);
|
|
6417
6427
|
icon_diff_default({ size: 12 });
|
|
6418
6428
|
_html(`</a>${_el_resume($scope4_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
6419
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) })));
|
|
@@ -6421,13 +6431,13 @@ var side_nav_chips_default = _template("v", (input) => {
|
|
|
6421
6431
|
} else {
|
|
6422
6432
|
const $scope6_id = _scope_id();
|
|
6423
6433
|
_html(`<button type=button${_attr_class([
|
|
6424
|
-
"
|
|
6425
|
-
"
|
|
6426
|
-
"
|
|
6434
|
+
"_hs",
|
|
6435
|
+
"_ht",
|
|
6436
|
+
"_hu"
|
|
6427
6437
|
])}${_attr("title", `Dismiss #${pr.number}`)}>`);
|
|
6428
6438
|
icon_xmark_default({ size: 12 });
|
|
6429
6439
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
6430
|
-
_script($scope6_id, "
|
|
6440
|
+
_script($scope6_id, "w3");
|
|
6431
6441
|
writeScope($scope6_id, { _: _scope_with_id($scope3_id) });
|
|
6432
6442
|
return 1;
|
|
6433
6443
|
}
|
|
@@ -6448,15 +6458,15 @@ var side_nav_chips_default = _template("v", (input) => {
|
|
|
6448
6458
|
}, "full_name", $scope1_id, "b", $sg__input_status_repos, $sg__input_status_repos, $sg__input_status_repos__OR__input_status_ports);
|
|
6449
6459
|
_for_of(ports, (p) => {
|
|
6450
6460
|
const $scope5_id = _scope_id();
|
|
6451
|
-
_html(`<span${_attr_class(["_s", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["
|
|
6452
|
-
"_hq",
|
|
6453
|
-
"_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([
|
|
6454
6462
|
"_hs",
|
|
6463
|
+
"_ht",
|
|
6464
|
+
"_hu",
|
|
6455
6465
|
{ ["_q"]: armedPid === p.pid }
|
|
6456
6466
|
])}${armedPid === p.pid ? " title=Kill?" : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
|
|
6457
6467
|
icon_xmark_default({ size: 12 });
|
|
6458
6468
|
_html(`</button>${_el_resume($scope5_id, "d")}</span>${_el_resume($scope5_id, "a", $sg__input_status_ports)}`);
|
|
6459
|
-
_script($scope5_id, "
|
|
6469
|
+
_script($scope5_id, "w4");
|
|
6460
6470
|
_subscribe($armedPid__closures, writeScope($scope5_id, {
|
|
6461
6471
|
h: p?.cmd,
|
|
6462
6472
|
i: p?.port,
|
|
@@ -6489,7 +6499,7 @@ var side_nav_chips_default = _template("v", (input) => {
|
|
|
6489
6499
|
});
|
|
6490
6500
|
//#endregion
|
|
6491
6501
|
//#region src/tags/side-nav-item.marko
|
|
6492
|
-
var side_nav_item_default = _template("
|
|
6502
|
+
var side_nav_item_default = _template("x", (input) => {
|
|
6493
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);
|
|
6494
6504
|
const $scope0_id = _scope_id();
|
|
6495
6505
|
const $input_current__closures = /* @__PURE__ */ new Set();
|
|
@@ -6518,14 +6528,14 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6518
6528
|
armBox.timer = disarmLater(() => {
|
|
6519
6529
|
armedKill = null;
|
|
6520
6530
|
});
|
|
6521
|
-
}, "
|
|
6531
|
+
}, "x1", $scope0_id);
|
|
6522
6532
|
let renamingId = null;
|
|
6523
6533
|
let renameValue = "";
|
|
6524
6534
|
const commitRename = _resume((s) => {
|
|
6525
6535
|
if (renamingId !== s.id) return;
|
|
6526
6536
|
renamingId = null;
|
|
6527
6537
|
input.onRenameSession?.(s, renameValue.trim());
|
|
6528
|
-
}, "
|
|
6538
|
+
}, "x2", $scope0_id);
|
|
6529
6539
|
let usage = null;
|
|
6530
6540
|
const openSess = (() => {
|
|
6531
6541
|
if (!input.current || input.page || input.rail) return null;
|
|
@@ -6543,10 +6553,10 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6543
6553
|
_if(() => {
|
|
6544
6554
|
if (input.rail) {
|
|
6545
6555
|
const $scope2_id = _scope_id();
|
|
6546
|
-
_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([
|
|
6547
6557
|
"_z",
|
|
6548
6558
|
phase[dot],
|
|
6549
|
-
"
|
|
6559
|
+
"_gW"
|
|
6550
6560
|
])}></span>${_el_resume($scope2_id, "c", $sg__input_workspaceId__OR__input_status)}</a>${_el_resume($scope2_id, "a", _serialize_guard($scope0_reason, 3))}`);
|
|
6551
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) })))));
|
|
6552
6562
|
return 0;
|
|
@@ -6554,15 +6564,15 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6554
6564
|
const $scope3_id = _scope_id();
|
|
6555
6565
|
const sessions$1 = input.sessions || [];
|
|
6556
6566
|
const phaseLabel = dot === "working" ? "Working" : dot === "waiting" ? "Needs input" : dot === "idle" ? "Idle" : "Not running";
|
|
6557
|
-
_html(`<section${_attr_class(["
|
|
6558
|
-
["
|
|
6567
|
+
_html(`<section${_attr_class(["_gY", {
|
|
6568
|
+
["_gT"]: input.current,
|
|
6559
6569
|
["_5"]: input.current,
|
|
6560
|
-
["
|
|
6561
|
-
["
|
|
6562
|
-
}])}><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([
|
|
6563
6573
|
"_z",
|
|
6564
6574
|
phase[dot],
|
|
6565
|
-
"
|
|
6575
|
+
"_hd"
|
|
6566
6576
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope3_id, "d", $sg__input_workspaceId__OR__input_status)}`);
|
|
6567
6577
|
_if(() => {
|
|
6568
6578
|
if (sessions$1.length === 1) {
|
|
@@ -6575,7 +6585,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6575
6585
|
icon_agent_default({
|
|
6576
6586
|
agent: activeAgent(sessions$1[0]),
|
|
6577
6587
|
size: 12,
|
|
6578
|
-
class: "
|
|
6588
|
+
class: "_g6"
|
|
6579
6589
|
});
|
|
6580
6590
|
$si__input_sessions && writeScope($scope14_id, {
|
|
6581
6591
|
_: _scope_with_id($scope3_id),
|
|
@@ -6585,16 +6595,16 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6585
6595
|
}
|
|
6586
6596
|
}, $scope3_id, "e", $sg__input_sessions, $sg__input_sessions);
|
|
6587
6597
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length === 1 ? sessions$1[0].title || "" : `${sessions$1.length} sessions`;
|
|
6588
|
-
_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>`);
|
|
6589
6599
|
_if(() => {
|
|
6590
6600
|
if (input.page && metaText) {
|
|
6591
6601
|
const $scope16_id = _scope_id();
|
|
6592
|
-
_html(`<span${_attr_class("
|
|
6602
|
+
_html(`<span${_attr_class("_hb")}>${_escape(metaText)}${_el_resume($scope16_id, "b", _serialize_guard($scope0_reason, 7))}</span>`);
|
|
6593
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) });
|
|
6594
6604
|
return 0;
|
|
6595
6605
|
} else if (sessions$1.length === 1 && sessions$1[0].title) {
|
|
6596
6606
|
const $scope15_id = _scope_id();
|
|
6597
|
-
_html(`<span${_attr_class("
|
|
6607
|
+
_html(`<span${_attr_class("_g9")}>${_escape(sessions$1[0].title)}${_el_resume($scope15_id, "b", $sg__input_sessions)}</span>`);
|
|
6598
6608
|
$si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && writeScope($scope15_id, { _: $si__input_sessions && _scope_with_id($scope3_id) });
|
|
6599
6609
|
return 1;
|
|
6600
6610
|
}
|
|
@@ -6607,7 +6617,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6607
6617
|
"_I",
|
|
6608
6618
|
"_R",
|
|
6609
6619
|
"_K",
|
|
6610
|
-
"
|
|
6620
|
+
"_hc"
|
|
6611
6621
|
])}>${input.current ? "Open" : ""}${_el_resume($scope4_id, "b", _serialize_guard($scope0_reason, 21))}</span>`);
|
|
6612
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, {
|
|
6613
6623
|
_: _scope_with_id($scope3_id),
|
|
@@ -6620,7 +6630,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6620
6630
|
_if(() => {
|
|
6621
6631
|
if (!input.page) {
|
|
6622
6632
|
const $scope5_id = _scope_id();
|
|
6623
|
-
_html(`<div${_attr_class("
|
|
6633
|
+
_html(`<div${_attr_class("_g2")}>`);
|
|
6624
6634
|
_if(() => {
|
|
6625
6635
|
if (input.onNewSession) {
|
|
6626
6636
|
const $scope6_id = _scope_id();
|
|
@@ -6634,7 +6644,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6634
6644
|
_html(`</button>${_el_resume($scope6_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class(sessionPop)}>`);
|
|
6635
6645
|
_for_of([], (agent) => {
|
|
6636
6646
|
const $scope7_id = _scope_id();
|
|
6637
|
-
_html(`<button${_attr_class("
|
|
6647
|
+
_html(`<button${_attr_class("_gS")}>`);
|
|
6638
6648
|
_set_serialize_reason(12);
|
|
6639
6649
|
const $childScope2 = _peek_scope_id();
|
|
6640
6650
|
icon_agent_default({
|
|
@@ -6642,13 +6652,13 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6642
6652
|
size: 14
|
|
6643
6653
|
});
|
|
6644
6654
|
_html(`<!>${_escape(agent)}${_el_resume($scope7_id, "c")}</button>${_el_resume($scope7_id, "a")}`);
|
|
6645
|
-
_script($scope7_id, "
|
|
6655
|
+
_script($scope7_id, "x3");
|
|
6646
6656
|
writeScope($scope7_id, {
|
|
6647
6657
|
e: agent,
|
|
6648
6658
|
b: _existing_scope($childScope2)
|
|
6649
6659
|
});
|
|
6650
6660
|
}, (a) => a, $scope6_id, "c", 1, 1, 1, "</div>", 1);
|
|
6651
|
-
_script($scope6_id, "
|
|
6661
|
+
_script($scope6_id, "x4");
|
|
6652
6662
|
_subscribe($si__input_agents && $input_agents__closures, writeScope($scope6_id, {
|
|
6653
6663
|
e: $si__input_agents && pickerReady,
|
|
6654
6664
|
_: _scope_with_id($scope5_id)
|
|
@@ -6669,7 +6679,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6669
6679
|
return 0;
|
|
6670
6680
|
}
|
|
6671
6681
|
}, $scope5_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
6672
|
-
_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" : ""}>`);
|
|
6673
6683
|
icon_manage_default({ size: 12 });
|
|
6674
6684
|
_html(`</a>${_el_resume($scope5_id, "d", _serialize_guard($scope0_reason, 8))}</div>`);
|
|
6675
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, {
|
|
@@ -6679,7 +6689,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6679
6689
|
return 0;
|
|
6680
6690
|
}
|
|
6681
6691
|
}, $scope3_id, "k", $sg__input_page, $sg__input_page, 1, 0, 1);
|
|
6682
|
-
_html(`</div><div${_attr_class("
|
|
6692
|
+
_html(`</div><div${_attr_class("_hi")}>`);
|
|
6683
6693
|
_if(() => {
|
|
6684
6694
|
if (sessions$1.length === 1 && openPlan) {
|
|
6685
6695
|
const $scope11_id = _scope_id();
|
|
@@ -6687,7 +6697,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6687
6697
|
const $childScope3 = _peek_scope_id();
|
|
6688
6698
|
usage_pcts_default({
|
|
6689
6699
|
agent: openPlan,
|
|
6690
|
-
class: "
|
|
6700
|
+
class: "_g_"
|
|
6691
6701
|
});
|
|
6692
6702
|
_subscribe($openPlan__closures, writeScope($scope11_id, {
|
|
6693
6703
|
a: _existing_scope($childScope3),
|
|
@@ -6698,14 +6708,14 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6698
6708
|
}, $scope3_id, "m");
|
|
6699
6709
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
6700
6710
|
const $scope8_id = _scope_id();
|
|
6701
|
-
_html(`<div${_attr_class(["
|
|
6711
|
+
_html(`<div${_attr_class(["_g3", { ["_gT"]: s.id === input.currentTab }])}>`);
|
|
6702
6712
|
_if(() => {
|
|
6703
6713
|
if (renamingId === s.id) {
|
|
6704
6714
|
const $scope10_id = _scope_id();
|
|
6705
6715
|
_html(`<span${_attr_class([
|
|
6706
6716
|
"_z",
|
|
6707
6717
|
phase[sessionPhase(s.state)],
|
|
6708
|
-
"
|
|
6718
|
+
"_hg"
|
|
6709
6719
|
])}></span>${_el_resume($scope10_id, "a", $sg__input_sessions)}`);
|
|
6710
6720
|
_set_serialize_reason({
|
|
6711
6721
|
1: $sg__input_sessions,
|
|
@@ -6715,17 +6725,17 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6715
6725
|
icon_agent_default({
|
|
6716
6726
|
agent: activeAgent(s),
|
|
6717
6727
|
size: 13,
|
|
6718
|
-
class: "
|
|
6728
|
+
class: "_hk"
|
|
6719
6729
|
});
|
|
6720
6730
|
_html(`<input${_attr_input_value($scope10_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
6721
6731
|
renameValue = _new_renameValue;
|
|
6722
|
-
}, "
|
|
6723
|
-
_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");
|
|
6724
6734
|
_subscribe($renameValue__closures, writeScope($scope10_id, { b: $si__input_sessions && _existing_scope($childScope4) }));
|
|
6725
6735
|
return 0;
|
|
6726
6736
|
} else {
|
|
6727
6737
|
const $scope9_id = _scope_id();
|
|
6728
|
-
_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)}`);
|
|
6729
6739
|
_set_serialize_reason({
|
|
6730
6740
|
1: $sg__input_sessions,
|
|
6731
6741
|
2: $sg__input_sessions
|
|
@@ -6734,9 +6744,9 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6734
6744
|
icon_agent_default({
|
|
6735
6745
|
agent: activeAgent(s),
|
|
6736
6746
|
size: 13,
|
|
6737
|
-
class: "
|
|
6747
|
+
class: "_hk"
|
|
6738
6748
|
});
|
|
6739
|
-
_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">`);
|
|
6740
6750
|
icon_edit_default({ size: 12 });
|
|
6741
6751
|
_html(`</button>${_el_resume($scope9_id, "g")}<button${_attr_class([close, { ["_q"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
|
|
6742
6752
|
icon_xmark_default({ size: 12 });
|
|
@@ -6748,7 +6758,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6748
6758
|
const $childScope6 = _peek_scope_id();
|
|
6749
6759
|
usage_pcts_default({
|
|
6750
6760
|
agent: openPlan,
|
|
6751
|
-
class: "
|
|
6761
|
+
class: "_ha"
|
|
6752
6762
|
});
|
|
6753
6763
|
_subscribe($openPlan__closures, writeScope($scope12_id, {
|
|
6754
6764
|
a: _existing_scope($childScope6),
|
|
@@ -6757,7 +6767,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6757
6767
|
return 0;
|
|
6758
6768
|
}
|
|
6759
6769
|
}, $scope9_id, "k");
|
|
6760
|
-
_script($scope9_id, "
|
|
6770
|
+
_script($scope9_id, "x6");
|
|
6761
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, {
|
|
6762
6772
|
c: $si__input_sessions && _existing_scope($childScope5),
|
|
6763
6773
|
Cat: 1,
|
|
@@ -6789,7 +6799,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6789
6799
|
status: st
|
|
6790
6800
|
});
|
|
6791
6801
|
_html(`</div></section>${_el_resume($scope3_id, "a")}`);
|
|
6792
|
-
_script($scope3_id, "
|
|
6802
|
+
_script($scope3_id, "x7");
|
|
6793
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, {
|
|
6794
6804
|
r: sessions$1.length,
|
|
6795
6805
|
t: $si__input_sessions && sessions$1[0],
|
|
@@ -6813,7 +6823,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6813
6823
|
return 0;
|
|
6814
6824
|
}
|
|
6815
6825
|
}, $scope0_id, "a", _serialize_guard($scope0_reason, 11), $sg__input_workspaces__OR__input_workspaceId, $sg__input_workspaces__OR__input_workspaceId);
|
|
6816
|
-
_script($scope0_id, "
|
|
6826
|
+
_script($scope0_id, "x8");
|
|
6817
6827
|
writeScope($scope0_id, {
|
|
6818
6828
|
d: input.onRenameSession,
|
|
6819
6829
|
e: _serialize_if($scope0_reason, 19) && input.current,
|
|
@@ -6867,7 +6877,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6867
6877
|
});
|
|
6868
6878
|
//#endregion
|
|
6869
6879
|
//#region src/tags/icons/icon-folder-plus.marko
|
|
6870
|
-
var icon_folder_plus_default = _template("
|
|
6880
|
+
var icon_folder_plus_default = _template("Y", (input) => {
|
|
6871
6881
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6872
6882
|
const $scope0_id = _scope_id();
|
|
6873
6883
|
_set_serialize_reason({
|
|
@@ -6884,7 +6894,7 @@ var icon_folder_plus_default = _template("X", (input) => {
|
|
|
6884
6894
|
});
|
|
6885
6895
|
//#endregion
|
|
6886
6896
|
//#region src/tags/icons/icon-sidebar-collapse.marko
|
|
6887
|
-
var icon_sidebar_collapse_default = _template("
|
|
6897
|
+
var icon_sidebar_collapse_default = _template("fb", (input) => {
|
|
6888
6898
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6889
6899
|
const $scope0_id = _scope_id();
|
|
6890
6900
|
_set_serialize_reason({
|
|
@@ -6901,7 +6911,7 @@ var icon_sidebar_collapse_default = _template("eb", (input) => {
|
|
|
6901
6911
|
});
|
|
6902
6912
|
//#endregion
|
|
6903
6913
|
//#region src/tags/side-nav.marko
|
|
6904
|
-
var side_nav_default = _template("
|
|
6914
|
+
var side_nav_default = _template("y", (input) => {
|
|
6905
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);
|
|
6906
6916
|
const $scope0_id = _scope_id();
|
|
6907
6917
|
const $input_instanceName__closures = /* @__PURE__ */ new Set();
|
|
@@ -6927,7 +6937,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6927
6937
|
let canPush = false;
|
|
6928
6938
|
const leaveNav = _resume(() => {
|
|
6929
6939
|
if (view === "nav") view = "term";
|
|
6930
|
-
}, "
|
|
6940
|
+
}, "y0", $scope0_id);
|
|
6931
6941
|
const toggleNotify = _resume(async () => {
|
|
6932
6942
|
try {
|
|
6933
6943
|
if (notifyOn) {
|
|
@@ -6941,7 +6951,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6941
6951
|
notifyOn = false;
|
|
6942
6952
|
input.onError?.(`Notifications failed: ${String(err.message || err)}`);
|
|
6943
6953
|
}
|
|
6944
|
-
}, "
|
|
6954
|
+
}, "y1", $scope0_id);
|
|
6945
6955
|
const itemIds = input.allWorkspaces?.length ? input.allWorkspaces.filter((w) => w.status === "active").map((w) => w.id) : [ws.id];
|
|
6946
6956
|
const workspaces = input.allWorkspaces || [ws];
|
|
6947
6957
|
const allStatus = input.allStatus || {};
|
|
@@ -6951,34 +6961,34 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6951
6961
|
const iconSrc = `/api/instance/icon${input.instanceAccent ? `?v=${input.instanceAccent.slice(1)}` : ""}`;
|
|
6952
6962
|
const otherIds = itemIds.filter((id) => id !== ws.id);
|
|
6953
6963
|
const listIds = isPage ? [ws.id, ...otherIds] : itemIds;
|
|
6954
|
-
_html(`<aside${_attr_class(["
|
|
6955
|
-
["
|
|
6956
|
-
["
|
|
6964
|
+
_html(`<aside${_attr_class(["_d0", {
|
|
6965
|
+
["_dY"]: !navOpen,
|
|
6966
|
+
["_dZ"]: isPage
|
|
6957
6967
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
6958
6968
|
_if(() => {
|
|
6959
6969
|
if (isPage) {
|
|
6960
6970
|
const $scope1_id = _scope_id();
|
|
6961
|
-
_html(`<header${_attr_class("
|
|
6971
|
+
_html(`<header${_attr_class("_d3")}><div${_attr_class("_eb")}>`);
|
|
6962
6972
|
_if(() => {
|
|
6963
6973
|
if (input.instanceName) {
|
|
6964
6974
|
const $scope2_id = _scope_id();
|
|
6965
|
-
_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>`);
|
|
6966
6976
|
_subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
|
|
6967
6977
|
return 0;
|
|
6968
6978
|
}
|
|
6969
6979
|
}, $scope1_id, "c", $sg__input_instanceName, $sg__input_instanceName, 1, 0, 1);
|
|
6970
|
-
_html(`<h1${_attr_class("
|
|
6980
|
+
_html(`<h1${_attr_class("_d4")}>Workspaces</h1></div><div${_attr_class("_d5")}>`);
|
|
6971
6981
|
_if(() => {}, $scope1_id, "f", 1, 1, 1, 0, 1);
|
|
6972
6982
|
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
|
|
6973
6983
|
iconBtn$1,
|
|
6974
|
-
"
|
|
6975
|
-
{ ["
|
|
6984
|
+
"_d6",
|
|
6985
|
+
{ ["_dV"]: view === "settings" }
|
|
6976
6986
|
])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
6977
6987
|
icon_settings_default({ size: 16 });
|
|
6978
6988
|
_if(() => {
|
|
6979
6989
|
if (input.setupReady === false) {
|
|
6980
6990
|
const $scope12_id = _scope_id();
|
|
6981
|
-
_html(`<span${_attr_class(["_z", "
|
|
6991
|
+
_html(`<span${_attr_class(["_z", "_dX"])} title="Machine setup incomplete"></span>`);
|
|
6982
6992
|
$si__input_setupReady && writeScope($scope12_id, {});
|
|
6983
6993
|
return 0;
|
|
6984
6994
|
}
|
|
@@ -6991,18 +7001,18 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6991
7001
|
_if(() => {
|
|
6992
7002
|
if (!isPage && input.instanceName) {
|
|
6993
7003
|
const $scope3_id = _scope_id();
|
|
6994
|
-
_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>`);
|
|
6995
7005
|
writeScope($scope3_id, {});
|
|
6996
7006
|
return 0;
|
|
6997
7007
|
}
|
|
6998
7008
|
}, $scope0_id, "c", 1, 1, 1, 0, 1);
|
|
6999
|
-
_html(`<div${_attr_class("
|
|
7009
|
+
_html(`<div${_attr_class("_ec")}>`);
|
|
7000
7010
|
_for_of(listIds, (wsId) => {
|
|
7001
7011
|
const $scope4_id = _scope_id();
|
|
7002
7012
|
_if(() => {
|
|
7003
7013
|
if (isPage && wsId === ws.id) {
|
|
7004
7014
|
const $scope13_id = _scope_id();
|
|
7005
|
-
_html(`<h2${_attr_class(["
|
|
7015
|
+
_html(`<h2${_attr_class(["_bJ", "_d7"])}>Current</h2>`);
|
|
7006
7016
|
writeScope($scope13_id, {});
|
|
7007
7017
|
return 0;
|
|
7008
7018
|
}
|
|
@@ -7010,7 +7020,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
7010
7020
|
_if(() => {
|
|
7011
7021
|
if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
|
|
7012
7022
|
const $scope14_id = _scope_id();
|
|
7013
|
-
_html(`<h2${_attr_class(["
|
|
7023
|
+
_html(`<h2${_attr_class(["_bJ", "_d7"])}>Other workspaces</h2>`);
|
|
7014
7024
|
writeScope($scope14_id, {});
|
|
7015
7025
|
return 0;
|
|
7016
7026
|
}
|
|
@@ -7060,12 +7070,12 @@ var side_nav_default = _template("x", (input) => {
|
|
|
7060
7070
|
leaveNav();
|
|
7061
7071
|
input.onSelectWorkspace?.(wsId);
|
|
7062
7072
|
} else if (view === "nav" || view === "manage" || view === "settings" || view === "new") view = "term";
|
|
7063
|
-
}, "
|
|
7073
|
+
}, "y2", $scope4_id),
|
|
7064
7074
|
agents: input.agents,
|
|
7065
7075
|
onNewSession: _resume(function(agent) {
|
|
7066
7076
|
leaveNav();
|
|
7067
7077
|
input.onNewSession(wsId, agent);
|
|
7068
|
-
}, "
|
|
7078
|
+
}, "y3", $scope4_id),
|
|
7069
7079
|
onReview: _resume(function() {
|
|
7070
7080
|
if (wsId === ws.id) {
|
|
7071
7081
|
if (view === "diff") view = "term";
|
|
@@ -7074,7 +7084,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
7074
7084
|
requestDiff(wsId);
|
|
7075
7085
|
input.onSelectWorkspace?.(wsId);
|
|
7076
7086
|
}
|
|
7077
|
-
}, "
|
|
7087
|
+
}, "y4", $scope4_id),
|
|
7078
7088
|
sessions: wsId === ws.id && input.sessions ? input.sessions : allStatus[wsId]?.sessions || [],
|
|
7079
7089
|
currentTab: wsId === ws.id && view === "term" ? tab : null,
|
|
7080
7090
|
onRenameSession: input.onRenameSession,
|
|
@@ -7090,14 +7100,14 @@ var side_nav_default = _template("x", (input) => {
|
|
|
7090
7100
|
const $scope5_id = _scope_id();
|
|
7091
7101
|
let railHover = null;
|
|
7092
7102
|
const railHoverBox = { timer: 0 };
|
|
7093
|
-
const railKeep = _resume(() => clearTimeout(railHoverBox.timer), "
|
|
7103
|
+
const railKeep = _resume(() => clearTimeout(railHoverBox.timer), "y5", $scope5_id);
|
|
7094
7104
|
const railHide = _resume(() => {
|
|
7095
7105
|
clearTimeout(railHoverBox.timer);
|
|
7096
7106
|
railHoverBox.timer = setTimeout(() => {
|
|
7097
7107
|
railHover = null;
|
|
7098
7108
|
}, 150);
|
|
7099
|
-
}, "
|
|
7100
|
-
_html(`<div${_attr_class("
|
|
7109
|
+
}, "y6", $scope5_id);
|
|
7110
|
+
_html(`<div${_attr_class("_ed")}>`);
|
|
7101
7111
|
_for_of(itemIds, (wsId, i) => {
|
|
7102
7112
|
const $scope6_id = _scope_id();
|
|
7103
7113
|
_html("<span>");
|
|
@@ -7137,10 +7147,10 @@ var side_nav_default = _template("x", (input) => {
|
|
|
7137
7147
|
onSelect: _resume(function() {
|
|
7138
7148
|
if (wsId !== ws.id) input.onSelectWorkspace?.(wsId);
|
|
7139
7149
|
else if (view === "manage" || view === "settings" || view === "new") view = "term";
|
|
7140
|
-
}, "
|
|
7150
|
+
}, "y7", $scope6_id)
|
|
7141
7151
|
});
|
|
7142
7152
|
_html(`</span>${_el_resume($scope6_id, "a")}`);
|
|
7143
|
-
_script($scope6_id, "
|
|
7153
|
+
_script($scope6_id, "y12");
|
|
7144
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, {
|
|
7145
7155
|
d: wsId,
|
|
7146
7156
|
_: _scope_with_id($scope5_id),
|
|
@@ -7151,7 +7161,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
7151
7161
|
if (railHover) {
|
|
7152
7162
|
const $scope7_id = _scope_id();
|
|
7153
7163
|
const hoverId = railHover.id;
|
|
7154
|
-
_html(`<div${_attr_class(["_4", "
|
|
7164
|
+
_html(`<div${_attr_class(["_4", "_eg"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
7155
7165
|
_set_serialize_reason({
|
|
7156
7166
|
0: 1,
|
|
7157
7167
|
1: 1,
|
|
@@ -7195,12 +7205,12 @@ var side_nav_default = _template("x", (input) => {
|
|
|
7195
7205
|
railHover = null;
|
|
7196
7206
|
if (hoverId !== ws.id) input.onSelectWorkspace?.(hoverId);
|
|
7197
7207
|
else if (view === "manage" || view === "settings" || view === "new") view = "term";
|
|
7198
|
-
}, "
|
|
7208
|
+
}, "y8", $scope7_id),
|
|
7199
7209
|
agents: input.agents,
|
|
7200
7210
|
onNewSession: _resume(function(agent) {
|
|
7201
7211
|
railHover = null;
|
|
7202
7212
|
input.onNewSession(hoverId, agent);
|
|
7203
|
-
}, "
|
|
7213
|
+
}, "y9", $scope7_id),
|
|
7204
7214
|
onReview: _resume(function() {
|
|
7205
7215
|
railHover = null;
|
|
7206
7216
|
if (hoverId === ws.id) {
|
|
@@ -7210,14 +7220,14 @@ var side_nav_default = _template("x", (input) => {
|
|
|
7210
7220
|
requestDiff(hoverId);
|
|
7211
7221
|
input.onSelectWorkspace?.(hoverId);
|
|
7212
7222
|
}
|
|
7213
|
-
}, "
|
|
7223
|
+
}, "y10", $scope7_id),
|
|
7214
7224
|
sessions: hoverId === ws.id && input.sessions ? input.sessions : allStatus[hoverId]?.sessions || [],
|
|
7215
7225
|
currentTab: hoverId === ws.id && view === "term" ? tab : null,
|
|
7216
7226
|
onRenameSession: input.onRenameSession,
|
|
7217
7227
|
onCloseSession: input.onCloseSession
|
|
7218
7228
|
});
|
|
7219
7229
|
_html(`</div>${_el_resume($scope7_id, "a")}`);
|
|
7220
|
-
_script($scope7_id, "
|
|
7230
|
+
_script($scope7_id, "y13");
|
|
7221
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, {
|
|
7222
7232
|
d: hoverId,
|
|
7223
7233
|
b: _existing_scope($childScope3),
|
|
@@ -7239,7 +7249,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
7239
7249
|
return 0;
|
|
7240
7250
|
}
|
|
7241
7251
|
}, $scope0_id, "e");
|
|
7242
|
-
_html(`<div${_attr_class("
|
|
7252
|
+
_html(`<div${_attr_class("_ee")}>`);
|
|
7243
7253
|
_if(() => {
|
|
7244
7254
|
if (isPage) {
|
|
7245
7255
|
const $scope9_id = _scope_id();
|
|
@@ -7247,7 +7257,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
7247
7257
|
"_o",
|
|
7248
7258
|
"_p",
|
|
7249
7259
|
btnLg,
|
|
7250
|
-
"
|
|
7260
|
+
"_d8"
|
|
7251
7261
|
])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
7252
7262
|
icon_folder_plus_default({ size: 16 });
|
|
7253
7263
|
_html(` New workspace</a>${_el_resume($scope9_id, "a")}`);
|
|
@@ -7269,29 +7279,29 @@ var side_nav_default = _template("x", (input) => {
|
|
|
7269
7279
|
return 1;
|
|
7270
7280
|
}
|
|
7271
7281
|
}, $scope8_id, "a", 1, 1, 1, "</button>", 1);
|
|
7272
|
-
_html(`<div${_attr_class(["_y", "
|
|
7282
|
+
_html(`<div${_attr_class(["_y", "_ef"])}></div>`);
|
|
7273
7283
|
_if(() => {}, $scope8_id, "c", 1, 1, 1, 0, 1);
|
|
7274
|
-
_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" : ""}>`);
|
|
7275
7285
|
icon_settings_default({ size: 15 });
|
|
7276
7286
|
_if(() => {
|
|
7277
7287
|
if (input.setupReady === false) {
|
|
7278
7288
|
const $scope17_id = _scope_id();
|
|
7279
|
-
_html(`<span${_attr_class(["_z", "
|
|
7289
|
+
_html(`<span${_attr_class(["_z", "_dX"])} title="Machine setup incomplete"></span>`);
|
|
7280
7290
|
$si__input_setupReady && writeScope($scope17_id, {});
|
|
7281
7291
|
return 0;
|
|
7282
7292
|
}
|
|
7283
7293
|
}, $scope8_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
7284
|
-
_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" : ""}>`);
|
|
7285
7295
|
icon_folder_plus_default({ size: 16 });
|
|
7286
7296
|
_html(`</a>${_el_resume($scope8_id, "g")}`);
|
|
7287
|
-
_script($scope8_id, "
|
|
7297
|
+
_script($scope8_id, "y15");
|
|
7288
7298
|
writeScope($scope8_id, {});
|
|
7289
7299
|
return 1;
|
|
7290
7300
|
}
|
|
7291
7301
|
}, $scope0_id, "f", 1, 1, 1, "</div>");
|
|
7292
7302
|
_html(`</aside>${_el_resume($scope0_id, "a")}`);
|
|
7293
|
-
_script($scope0_id, "
|
|
7294
|
-
_script($scope0_id, "
|
|
7303
|
+
_script($scope0_id, "y16");
|
|
7304
|
+
_script($scope0_id, "y17");
|
|
7295
7305
|
writeScope($scope0_id, {
|
|
7296
7306
|
j: _serialize_if($scope0_reason, 6) && input.tab,
|
|
7297
7307
|
k: _serialize_if($scope0_reason, 5) && input.tabChange,
|
|
@@ -7346,16 +7356,16 @@ var side_nav_default = _template("x", (input) => {
|
|
|
7346
7356
|
_resume_branch($scope0_id);
|
|
7347
7357
|
});
|
|
7348
7358
|
var iconBtn = "_0 _j";
|
|
7349
|
-
var sectionCount = "
|
|
7350
|
-
var content = "
|
|
7351
|
-
var pageMeta = "
|
|
7352
|
-
var pathMeta = "
|
|
7353
|
-
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";
|
|
7354
7364
|
//#endregion
|
|
7355
7365
|
//#region src/tags/manage-workspace.marko
|
|
7356
7366
|
var api$2;
|
|
7357
7367
|
var lastData = /* @__PURE__ */ new Map();
|
|
7358
|
-
var manage_workspace_default = _template("
|
|
7368
|
+
var manage_workspace_default = _template("o", (input) => {
|
|
7359
7369
|
const $scope0_reason = _scope_reason();
|
|
7360
7370
|
const $scope0_id = _scope_id();
|
|
7361
7371
|
const $ws_display_path__closures = /* @__PURE__ */ new Set();
|
|
@@ -7380,14 +7390,14 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7380
7390
|
procs = data;
|
|
7381
7391
|
lastData.set(`procs:${ws.id}`, data);
|
|
7382
7392
|
} catch {}
|
|
7383
|
-
}, "
|
|
7393
|
+
}, "o0", $scope0_id);
|
|
7384
7394
|
const inWorkspace = new Set(ws.repos.map((r) => r.full_name));
|
|
7385
7395
|
const setBusy = _resume((name, on) => {
|
|
7386
7396
|
const next = new Set(busy);
|
|
7387
7397
|
if (on) next.add(name);
|
|
7388
7398
|
else next.delete(name);
|
|
7389
7399
|
busy = next;
|
|
7390
|
-
}, "
|
|
7400
|
+
}, "o1", $scope0_id);
|
|
7391
7401
|
const addRepo = _resume(async (name, baseBranch, fork) => {
|
|
7392
7402
|
if (!name || busy.has(name)) return;
|
|
7393
7403
|
error = null;
|
|
@@ -7406,7 +7416,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7406
7416
|
error = String(err.message || err);
|
|
7407
7417
|
}
|
|
7408
7418
|
setBusy(name, false);
|
|
7409
|
-
}, "
|
|
7419
|
+
}, "o2", $scope0_id);
|
|
7410
7420
|
const removeRepo = _resume(async (row) => {
|
|
7411
7421
|
if (busy.has(row.full_name)) return;
|
|
7412
7422
|
error = null;
|
|
@@ -7421,7 +7431,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7421
7431
|
error = String(err.message || err);
|
|
7422
7432
|
}
|
|
7423
7433
|
setBusy(row.full_name, false);
|
|
7424
|
-
}, "
|
|
7434
|
+
}, "o3", $scope0_id);
|
|
7425
7435
|
const runAction = _resume(async (action) => {
|
|
7426
7436
|
error = null;
|
|
7427
7437
|
pendingAction = action;
|
|
@@ -7443,13 +7453,13 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7443
7453
|
pendingAction = null;
|
|
7444
7454
|
actionStep = null;
|
|
7445
7455
|
}
|
|
7446
|
-
}, "
|
|
7456
|
+
}, "o4", $scope0_id);
|
|
7447
7457
|
const killProc = _resume(async (pid) => {
|
|
7448
7458
|
await fetch(`/api/procs/${pid}`, { method: "DELETE" });
|
|
7449
7459
|
setTimeout(() => loadProcs(void 0), 500);
|
|
7450
|
-
}, "
|
|
7460
|
+
}, "o5", $scope0_id);
|
|
7451
7461
|
const titleId = _id();
|
|
7452
|
-
_html(`<div${_attr_class("
|
|
7462
|
+
_html(`<div${_attr_class("_bk")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bl")}><div${_attr_class(content)}>`);
|
|
7453
7463
|
_set_serialize_reason(30);
|
|
7454
7464
|
const $childScope = _peek_scope_id();
|
|
7455
7465
|
page_head_default({
|
|
@@ -7458,11 +7468,11 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7458
7468
|
backHref: `/w/${ws.id}`,
|
|
7459
7469
|
onBack: _resume(function() {
|
|
7460
7470
|
input.onExit?.();
|
|
7461
|
-
}, "
|
|
7462
|
-
meta: attrTag({ content: _content_resume("
|
|
7471
|
+
}, "o6", $scope0_id),
|
|
7472
|
+
meta: attrTag({ content: _content_resume("o11", () => {
|
|
7463
7473
|
_scope_reason();
|
|
7464
7474
|
const $scope8_id = _scope_id();
|
|
7465
|
-
_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>`);
|
|
7466
7476
|
_if(() => {
|
|
7467
7477
|
if (ws.status !== "active") {
|
|
7468
7478
|
const $scope11_id = _scope_id();
|
|
@@ -7471,7 +7481,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7471
7481
|
return 0;
|
|
7472
7482
|
}
|
|
7473
7483
|
}, $scope8_id, "d", 1, 1, 1, 0, 1);
|
|
7474
|
-
_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")}`);
|
|
7475
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) })))));
|
|
7476
7486
|
_resume_branch($scope8_id);
|
|
7477
7487
|
}, $scope0_id) })
|
|
@@ -7483,8 +7493,8 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7483
7493
|
placement: "inline",
|
|
7484
7494
|
onDismiss: _resume(function() {
|
|
7485
7495
|
error = null;
|
|
7486
|
-
}, "
|
|
7487
|
-
content: _content_resume("
|
|
7496
|
+
}, "o7", $scope2_id),
|
|
7497
|
+
content: _content_resume("o12", () => {
|
|
7488
7498
|
_scope_reason();
|
|
7489
7499
|
const $scope3_id = _scope_id();
|
|
7490
7500
|
_html(`${_escape(error)}${_el_resume($scope3_id, "a")}`);
|
|
@@ -7499,22 +7509,22 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7499
7509
|
_if(() => {
|
|
7500
7510
|
if (pendingAction && actionStep) {
|
|
7501
7511
|
const $scope7_id = _scope_id();
|
|
7502
|
-
_html(`<p${_attr_class("
|
|
7512
|
+
_html(`<p${_attr_class("_bt")}><span${_attr_class("_F")}></span><!>${_escape(actionStep)}${_el_resume($scope7_id, "c")}</p>`);
|
|
7503
7513
|
writeScope($scope7_id, {});
|
|
7504
7514
|
return 0;
|
|
7505
7515
|
}
|
|
7506
7516
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
7507
|
-
_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)}>`);
|
|
7508
7518
|
_set_serialize_reason(1);
|
|
7509
7519
|
const $childScope2 = _peek_scope_id();
|
|
7510
7520
|
icon_refresh_default({
|
|
7511
7521
|
size: 14,
|
|
7512
7522
|
class: catalogRefreshing && "_E"
|
|
7513
7523
|
});
|
|
7514
|
-
_html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("
|
|
7524
|
+
_html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("_bx")}>`);
|
|
7515
7525
|
_for_of(ws.repos, (row) => {
|
|
7516
7526
|
const $scope1_id = _scope_id();
|
|
7517
|
-
_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")}`);
|
|
7518
7528
|
_if(() => {
|
|
7519
7529
|
if (row.base_branch !== row.default_branch) {
|
|
7520
7530
|
const $scope12_id = _scope_id();
|
|
@@ -7535,7 +7545,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7535
7545
|
} else {
|
|
7536
7546
|
const $scope6_id = _scope_id();
|
|
7537
7547
|
_html(`<button${_attr_class([
|
|
7538
|
-
"
|
|
7548
|
+
"_bE",
|
|
7539
7549
|
"_2",
|
|
7540
7550
|
"_3",
|
|
7541
7551
|
{ ["_q"]: confirmingRemove === row.full_name }
|
|
@@ -7553,7 +7563,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7553
7563
|
return 1;
|
|
7554
7564
|
}
|
|
7555
7565
|
}, $scope6_id, "a", 1, 1, 1, "</button>");
|
|
7556
|
-
_script($scope6_id, "
|
|
7566
|
+
_script($scope6_id, "o13");
|
|
7557
7567
|
_subscribe($confirmingRemove__closures, writeScope($scope6_id, {}));
|
|
7558
7568
|
return 1;
|
|
7559
7569
|
}
|
|
@@ -7568,60 +7578,60 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7568
7578
|
}, "full_name", $scope0_id, "p", 1, 1, 1, 0, 1);
|
|
7569
7579
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
7570
7580
|
const $scope16_id = _scope_id();
|
|
7571
|
-
_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>`);
|
|
7572
7582
|
writeScope($scope16_id, {});
|
|
7573
7583
|
}, (n) => n, $scope0_id, "q", 1, 1, 1, 0, 1);
|
|
7574
7584
|
_html("</ul>");
|
|
7575
7585
|
_if(() => {
|
|
7576
7586
|
if (!ws.repos.length && !busy.size) {
|
|
7577
7587
|
const $scope17_id = _scope_id();
|
|
7578
|
-
_html(`<p${_attr_class("
|
|
7588
|
+
_html(`<p${_attr_class("_bF")}>No repos yet. Search below to add one.</p>`);
|
|
7579
7589
|
writeScope($scope17_id, {});
|
|
7580
7590
|
return 0;
|
|
7581
7591
|
}
|
|
7582
7592
|
}, $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
7583
|
-
_html(`<div${_attr_class("
|
|
7593
|
+
_html(`<div${_attr_class("_dP")}>`);
|
|
7584
7594
|
const $childScope3 = _peek_scope_id();
|
|
7585
7595
|
let refreshCatalog = repo_picker_default({
|
|
7586
7596
|
exclude: inWorkspace,
|
|
7587
7597
|
onPick: _resume(function(name, baseBranch, fork) {
|
|
7588
7598
|
addRepo(name, baseBranch, fork);
|
|
7589
|
-
}, "
|
|
7599
|
+
}, "o8", $scope0_id),
|
|
7590
7600
|
onError: _resume(function(message) {
|
|
7591
7601
|
error = message;
|
|
7592
|
-
}, "
|
|
7602
|
+
}, "o9", $scope0_id),
|
|
7593
7603
|
refreshingChange: _resume(function(busy) {
|
|
7594
7604
|
catalogRefreshing = busy;
|
|
7595
|
-
}, "
|
|
7605
|
+
}, "o10", $scope0_id)
|
|
7596
7606
|
});
|
|
7597
|
-
_var($scope0_id, "u", $childScope3, "
|
|
7607
|
+
_var($scope0_id, "u", $childScope3, "o14");
|
|
7598
7608
|
const running = procs || [];
|
|
7599
7609
|
_html("</div></section>");
|
|
7600
7610
|
_if(() => {
|
|
7601
7611
|
if (running.length) {
|
|
7602
7612
|
const $scope9_id = _scope_id();
|
|
7603
|
-
_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")}>`);
|
|
7604
7614
|
_for_of(running, (p) => {
|
|
7605
7615
|
const $scope10_id = _scope_id();
|
|
7606
|
-
_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>`);
|
|
7607
7617
|
_if(() => {
|
|
7608
7618
|
if (p.ports.length) {
|
|
7609
7619
|
const $scope18_id = _scope_id();
|
|
7610
|
-
_html(`<span${_attr_class("
|
|
7620
|
+
_html(`<span${_attr_class("_bC")}>`);
|
|
7611
7621
|
_for_of(p.ports, (port) => {
|
|
7612
7622
|
const $scope19_id = _scope_id();
|
|
7613
|
-
_html(`<button${_attr_class(["_s", "
|
|
7614
|
-
_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");
|
|
7615
7625
|
writeScope($scope19_id, { d: port });
|
|
7616
7626
|
}, (x) => String(x), $scope18_id, "a", 1, 1, 1, "</span>", 1);
|
|
7617
7627
|
writeScope($scope18_id, {});
|
|
7618
7628
|
return 0;
|
|
7619
7629
|
}
|
|
7620
7630
|
}, $scope10_id, "e", 1, 1, 1, 0, 1);
|
|
7621
|
-
_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}`)}>`);
|
|
7622
7632
|
icon_xmark_default({ size: 14 });
|
|
7623
7633
|
_html(`</button>${_el_resume($scope10_id, "f")}</li>`);
|
|
7624
|
-
_script($scope10_id, "
|
|
7634
|
+
_script($scope10_id, "o16");
|
|
7625
7635
|
writeScope($scope10_id, {
|
|
7626
7636
|
l: p?.ports,
|
|
7627
7637
|
n: p?.pid
|
|
@@ -7632,18 +7642,18 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7632
7642
|
return 0;
|
|
7633
7643
|
}
|
|
7634
7644
|
}, $scope0_id, "v", 1, 1, 1, 0, 1);
|
|
7635
|
-
_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")}>`);
|
|
7636
7646
|
_if(() => {
|
|
7637
7647
|
if (ws.status === "active") {
|
|
7638
7648
|
const $scope4_id = _scope_id();
|
|
7639
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")}`);
|
|
7640
|
-
_script($scope4_id, "
|
|
7650
|
+
_script($scope4_id, "o17");
|
|
7641
7651
|
writeScope($scope4_id, {});
|
|
7642
7652
|
return 0;
|
|
7643
7653
|
} else {
|
|
7644
7654
|
const $scope5_id = _scope_id();
|
|
7645
7655
|
_html(`<button type=button${_attr_class(btnLg)}${_attr("disabled", !!pendingAction)}>Restore</button>${_el_resume($scope5_id, "a")}`);
|
|
7646
|
-
_script($scope5_id, "
|
|
7656
|
+
_script($scope5_id, "o18");
|
|
7647
7657
|
writeScope($scope5_id, {});
|
|
7648
7658
|
return 1;
|
|
7649
7659
|
}
|
|
@@ -7653,8 +7663,8 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7653
7663
|
"_r",
|
|
7654
7664
|
{ ["_q"]: confirmingDelete }
|
|
7655
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>`);
|
|
7656
|
-
_script($scope0_id, "
|
|
7657
|
-
_script($scope0_id, "
|
|
7666
|
+
_script($scope0_id, "o19");
|
|
7667
|
+
_script($scope0_id, "o20");
|
|
7658
7668
|
writeScope($scope0_id, {
|
|
7659
7669
|
a6: _serialize_if($scope0_reason, 0) && input.workspace,
|
|
7660
7670
|
a8: input.workspaceChange,
|
|
@@ -7699,7 +7709,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7699
7709
|
});
|
|
7700
7710
|
//#endregion
|
|
7701
7711
|
//#region src/tags/term-find.marko
|
|
7702
|
-
var term_find_default = _template("
|
|
7712
|
+
var term_find_default = _template("A", (input) => {
|
|
7703
7713
|
const $scope0_reason = _scope_reason();
|
|
7704
7714
|
const $scope0_id = _scope_id();
|
|
7705
7715
|
let open = input.open;
|
|
@@ -7716,41 +7726,41 @@ var term_find_default = _template("z", (input) => {
|
|
|
7716
7726
|
if (!live.open) return;
|
|
7717
7727
|
const search = input.onSearch;
|
|
7718
7728
|
if (search) search(live.query, dir);
|
|
7719
|
-
}, "
|
|
7729
|
+
}, "A1", $scope0_id);
|
|
7720
7730
|
const close = _resume(() => {
|
|
7721
7731
|
open = false;
|
|
7722
7732
|
live.open = false;
|
|
7723
7733
|
const clear = input.onClear;
|
|
7724
7734
|
if (clear) clear();
|
|
7725
|
-
}, "
|
|
7735
|
+
}, "A2", $scope0_id);
|
|
7726
7736
|
const focusInput = _resume(() => {
|
|
7727
7737
|
const el = ((findEl) => findEl())(_el_read_error);
|
|
7728
7738
|
if (!el) return;
|
|
7729
7739
|
el.focus();
|
|
7730
7740
|
if (document.activeElement !== el) setTimeout(() => el.focus(), 0);
|
|
7731
|
-
}, "
|
|
7741
|
+
}, "A3", $scope0_id);
|
|
7732
7742
|
const hasQuery = !!query.trim();
|
|
7733
7743
|
const canStep = hasQuery && open;
|
|
7734
7744
|
const keybar = input.placement === "keybar";
|
|
7735
7745
|
_html(`<div${_attr_class([
|
|
7736
|
-
"
|
|
7737
|
-
keybar ? "
|
|
7738
|
-
!open && "
|
|
7739
|
-
])} 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) {
|
|
7740
7750
|
if (!open) return;
|
|
7741
7751
|
query = v;
|
|
7742
7752
|
live.query = v;
|
|
7743
7753
|
run(0);
|
|
7744
|
-
}, "
|
|
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"}>`);
|
|
7745
7755
|
icon_arrow_up_default({ size: 14 });
|
|
7746
|
-
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
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"}>`);
|
|
7747
7757
|
icon_arrow_down_default({ size: 14 });
|
|
7748
|
-
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
7758
|
+
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "_fM"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
7749
7759
|
icon_xmark_default({ size: 14 });
|
|
7750
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")}`);
|
|
7751
|
-
_script($scope0_id, "
|
|
7752
|
-
_script($scope0_id, "
|
|
7753
|
-
_script($scope0_id, "
|
|
7761
|
+
_script($scope0_id, "A4");
|
|
7762
|
+
_script($scope0_id, "A5");
|
|
7763
|
+
_script($scope0_id, "A6");
|
|
7754
7764
|
writeScope($scope0_id, {
|
|
7755
7765
|
l: _serialize_if($scope0_reason, 1) && input.open,
|
|
7756
7766
|
m: _serialize_if($scope0_reason, 0) && input.openChange,
|
|
@@ -7773,7 +7783,7 @@ var term_find_default = _template("z", (input) => {
|
|
|
7773
7783
|
});
|
|
7774
7784
|
_resume_branch($scope0_id);
|
|
7775
7785
|
});
|
|
7776
|
-
_template("
|
|
7786
|
+
_template("jb", (input) => {
|
|
7777
7787
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
7778
7788
|
const $scope0_id = _scope_id();
|
|
7779
7789
|
_set_serialize_reason({
|
|
@@ -7788,7 +7798,7 @@ _template("ib", (input) => {
|
|
|
7788
7798
|
});
|
|
7789
7799
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
7790
7800
|
});
|
|
7791
|
-
_template("
|
|
7801
|
+
_template("V", (input) => {
|
|
7792
7802
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
7793
7803
|
const $scope0_id = _scope_id();
|
|
7794
7804
|
_set_serialize_reason({
|
|
@@ -7803,7 +7813,7 @@ _template("U", (input) => {
|
|
|
7803
7813
|
});
|
|
7804
7814
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
7805
7815
|
});
|
|
7806
|
-
_template("
|
|
7816
|
+
_template("$", (input) => {
|
|
7807
7817
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
7808
7818
|
const $scope0_id = _scope_id();
|
|
7809
7819
|
_set_serialize_reason({
|
|
@@ -7818,7 +7828,7 @@ _template("Z", (input) => {
|
|
|
7818
7828
|
});
|
|
7819
7829
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
7820
7830
|
});
|
|
7821
|
-
_template("
|
|
7831
|
+
_template("S", (input) => {
|
|
7822
7832
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
7823
7833
|
const $scope0_id = _scope_id();
|
|
7824
7834
|
_set_serialize_reason({
|
|
@@ -7833,7 +7843,7 @@ _template("R", (input) => {
|
|
|
7833
7843
|
});
|
|
7834
7844
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
7835
7845
|
});
|
|
7836
|
-
_template("
|
|
7846
|
+
_template("I", (input) => {
|
|
7837
7847
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
7838
7848
|
const $scope0_id = _scope_id();
|
|
7839
7849
|
_set_serialize_reason({
|
|
@@ -7848,7 +7858,7 @@ _template("H", (input) => {
|
|
|
7848
7858
|
});
|
|
7849
7859
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
7850
7860
|
});
|
|
7851
|
-
_template("
|
|
7861
|
+
_template("J", (input) => {
|
|
7852
7862
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
7853
7863
|
const $scope0_id = _scope_id();
|
|
7854
7864
|
_set_serialize_reason({
|
|
@@ -7863,7 +7873,7 @@ _template("I", (input) => {
|
|
|
7863
7873
|
});
|
|
7864
7874
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
7865
7875
|
});
|
|
7866
|
-
_template("
|
|
7876
|
+
_template("X", (input) => {
|
|
7867
7877
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
7868
7878
|
const $scope0_id = _scope_id();
|
|
7869
7879
|
_set_serialize_reason({
|
|
@@ -7878,7 +7888,7 @@ _template("W", (input) => {
|
|
|
7878
7888
|
});
|
|
7879
7889
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
7880
7890
|
});
|
|
7881
|
-
_template("
|
|
7891
|
+
_template("hb", (input) => {
|
|
7882
7892
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
7883
7893
|
const $scope0_id = _scope_id();
|
|
7884
7894
|
_set_serialize_reason({
|
|
@@ -7897,7 +7907,7 @@ _template("gb", (input) => {
|
|
|
7897
7907
|
//#region src/tags/term.marko
|
|
7898
7908
|
var REPEAT_DELAY = 400;
|
|
7899
7909
|
var REPEAT_EVERY = 55;
|
|
7900
|
-
var term_default = _template("
|
|
7910
|
+
var term_default = _template("B", (input) => {
|
|
7901
7911
|
const $scope0_reason = _scope_reason();
|
|
7902
7912
|
_serialize_guard($scope0_reason, 5);
|
|
7903
7913
|
_serialize_guard($scope0_reason, 0);
|
|
@@ -7916,7 +7926,7 @@ var term_default = _template("A", (input) => {
|
|
|
7916
7926
|
_serialize_guard($scope0_reason, 13);
|
|
7917
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);
|
|
7918
7928
|
const $scope0_id = _scope_id();
|
|
7919
|
-
_hoist($scope0_id, "
|
|
7929
|
+
_hoist($scope0_id, "B21");
|
|
7920
7930
|
const $findOpen__closures = /* @__PURE__ */ new Set();
|
|
7921
7931
|
const $findTick__closures = /* @__PURE__ */ new Set();
|
|
7922
7932
|
const $input_onCloseSession__closures = /* @__PURE__ */ new Set();
|
|
@@ -7938,7 +7948,7 @@ var term_default = _template("A", (input) => {
|
|
|
7938
7948
|
let findOpen = false;
|
|
7939
7949
|
const $openChange = _resume((_new_findOpen) => {
|
|
7940
7950
|
findOpen = _new_findOpen;
|
|
7941
|
-
}, "
|
|
7951
|
+
}, "B1", $scope0_id);
|
|
7942
7952
|
let findTick = 0;
|
|
7943
7953
|
const ioBox = { current: null };
|
|
7944
7954
|
const searchBox = {
|
|
@@ -7946,7 +7956,7 @@ var term_default = _template("A", (input) => {
|
|
|
7946
7956
|
query: "",
|
|
7947
7957
|
refreshTimer: 0
|
|
7948
7958
|
};
|
|
7949
|
-
const findFocusRef = { focus: _resume(function() {}, "
|
|
7959
|
+
const findFocusRef = { focus: _resume(function() {}, "B2") };
|
|
7950
7960
|
const scheduleFindRefresh = _resume(() => {
|
|
7951
7961
|
if (!searchBox.query.trim() || !searchBox.overlay) return;
|
|
7952
7962
|
if (searchBox.refreshTimer) clearTimeout(searchBox.refreshTimer);
|
|
@@ -7954,7 +7964,7 @@ var term_default = _template("A", (input) => {
|
|
|
7954
7964
|
searchBox.refreshTimer = 0;
|
|
7955
7965
|
searchBox.overlay?.refresh();
|
|
7956
7966
|
}, 32);
|
|
7957
|
-
}, "
|
|
7967
|
+
}, "B3", $scope0_id);
|
|
7958
7968
|
const runFind = _resume((query, dir) => {
|
|
7959
7969
|
const overlay = searchBox.overlay;
|
|
7960
7970
|
if (!overlay) return;
|
|
@@ -7968,7 +7978,7 @@ var term_default = _template("A", (input) => {
|
|
|
7968
7978
|
return;
|
|
7969
7979
|
}
|
|
7970
7980
|
overlay.search(query, dir);
|
|
7971
|
-
}, "
|
|
7981
|
+
}, "B4", $scope0_id);
|
|
7972
7982
|
const clearFind = _resume(() => {
|
|
7973
7983
|
if (searchBox.refreshTimer) {
|
|
7974
7984
|
clearTimeout(searchBox.refreshTimer);
|
|
@@ -7976,7 +7986,7 @@ var term_default = _template("A", (input) => {
|
|
|
7976
7986
|
}
|
|
7977
7987
|
searchBox.query = "";
|
|
7978
7988
|
searchBox.overlay?.clear();
|
|
7979
|
-
}, "
|
|
7989
|
+
}, "B5", $scope0_id);
|
|
7980
7990
|
const openFind = _resume(() => {
|
|
7981
7991
|
if (kb) {
|
|
7982
7992
|
kb = false;
|
|
@@ -7986,7 +7996,7 @@ var term_default = _template("A", (input) => {
|
|
|
7986
7996
|
findOpen = true;
|
|
7987
7997
|
findTick++;
|
|
7988
7998
|
findFocusRef.focus();
|
|
7989
|
-
}, "
|
|
7999
|
+
}, "B6", $scope0_id);
|
|
7990
8000
|
const toggleFind = _resume(() => {
|
|
7991
8001
|
if (findOpen) {
|
|
7992
8002
|
findOpen = false;
|
|
@@ -7995,7 +8005,7 @@ var term_default = _template("A", (input) => {
|
|
|
7995
8005
|
return;
|
|
7996
8006
|
}
|
|
7997
8007
|
openFind();
|
|
7998
|
-
}, "
|
|
8008
|
+
}, "B7", $scope0_id);
|
|
7999
8009
|
const onTermPage = input.mode == null || input.mode === "term";
|
|
8000
8010
|
const canKeys = onTermPage || input.mode === "diff";
|
|
8001
8011
|
const findLit = onTermPage ? findOpen : input.mode === "diff" && !!input.reviewFindOpen;
|
|
@@ -8006,7 +8016,7 @@ var term_default = _template("A", (input) => {
|
|
|
8006
8016
|
return;
|
|
8007
8017
|
}
|
|
8008
8018
|
if (input.mode === "diff") input.onToggleReviewFind?.();
|
|
8009
|
-
}, "
|
|
8019
|
+
}, "B8", $scope0_id);
|
|
8010
8020
|
const thisAgent = activeAgent({
|
|
8011
8021
|
agent: input.agent || "shell",
|
|
8012
8022
|
state: input.sessionState
|
|
@@ -8018,7 +8028,7 @@ var term_default = _template("A", (input) => {
|
|
|
8018
8028
|
copyFlashBox.timer = setTimeout(() => {
|
|
8019
8029
|
copiedFlash = false;
|
|
8020
8030
|
}, 1200);
|
|
8021
|
-
}, "
|
|
8031
|
+
}, "B9", $scope0_id);
|
|
8022
8032
|
const holdBox = { current: null };
|
|
8023
8033
|
const startHold = _resume((seq) => {
|
|
8024
8034
|
((stopHold) => stopHold())(_hoist_read_error);
|
|
@@ -8028,7 +8038,7 @@ var term_default = _template("A", (input) => {
|
|
|
8028
8038
|
state.repeat = setInterval(() => ioBox.current?.send(seq), REPEAT_EVERY);
|
|
8029
8039
|
}, REPEAT_DELAY);
|
|
8030
8040
|
holdBox.current = state;
|
|
8031
|
-
}, "
|
|
8041
|
+
}, "B10", $scope0_id);
|
|
8032
8042
|
const stopHold = _resume(() => {
|
|
8033
8043
|
const hold = holdBox.current;
|
|
8034
8044
|
if (hold) {
|
|
@@ -8036,7 +8046,7 @@ var term_default = _template("A", (input) => {
|
|
|
8036
8046
|
clearInterval(hold.repeat);
|
|
8037
8047
|
holdBox.current = null;
|
|
8038
8048
|
}
|
|
8039
|
-
}, "
|
|
8049
|
+
}, "B11", $scope0_id);
|
|
8040
8050
|
const uploadAsset = _resume(async (file) => {
|
|
8041
8051
|
if (!file) return;
|
|
8042
8052
|
uploading = true;
|
|
@@ -8049,7 +8059,7 @@ var term_default = _template("A", (input) => {
|
|
|
8049
8059
|
} finally {
|
|
8050
8060
|
uploading = false;
|
|
8051
8061
|
}
|
|
8052
|
-
}, "
|
|
8062
|
+
}, "B12", $scope0_id);
|
|
8053
8063
|
const handlePasted = _resume(async (clipboardData) => {
|
|
8054
8064
|
const files = [...clipboardData?.files || []];
|
|
8055
8065
|
for (const file of files) await uploadAsset(file);
|
|
@@ -8058,7 +8068,7 @@ var term_default = _template("A", (input) => {
|
|
|
8058
8068
|
if (text) ioBox.current?.send(text);
|
|
8059
8069
|
}
|
|
8060
8070
|
trapOpen = false;
|
|
8061
|
-
}, "
|
|
8071
|
+
}, "B13", $scope0_id);
|
|
8062
8072
|
const pasteClipboard = _resume(async () => {
|
|
8063
8073
|
if (!navigator.clipboard?.read) {
|
|
8064
8074
|
trapOpen = true;
|
|
@@ -8078,8 +8088,8 @@ var term_default = _template("A", (input) => {
|
|
|
8078
8088
|
} catch {
|
|
8079
8089
|
trapOpen = true;
|
|
8080
8090
|
}
|
|
8081
|
-
}, "
|
|
8082
|
-
_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")}`);
|
|
8083
8093
|
_if(() => {
|
|
8084
8094
|
if (findOpen) {
|
|
8085
8095
|
const $scope12_id = _scope_id();
|
|
@@ -8093,11 +8103,11 @@ var term_default = _template("A", (input) => {
|
|
|
8093
8103
|
focusRef: findFocusRef,
|
|
8094
8104
|
onSearch: _resume(function(q, dir) {
|
|
8095
8105
|
runFind(q, dir);
|
|
8096
|
-
}, "
|
|
8106
|
+
}, "B15", $scope12_id),
|
|
8097
8107
|
onClear: _resume(function() {
|
|
8098
8108
|
clearFind();
|
|
8099
8109
|
ioBox.current?.setFindMode(false);
|
|
8100
|
-
}, "
|
|
8110
|
+
}, "B16", $scope12_id)
|
|
8101
8111
|
});
|
|
8102
8112
|
writeScope($scope12_id, { a: _existing_scope($childScope) });
|
|
8103
8113
|
return 0;
|
|
@@ -8106,7 +8116,7 @@ var term_default = _template("A", (input) => {
|
|
|
8106
8116
|
_if(() => {
|
|
8107
8117
|
if (uploading) {
|
|
8108
8118
|
const $scope19_id = _scope_id();
|
|
8109
|
-
_html(`<div${_attr_class("
|
|
8119
|
+
_html(`<div${_attr_class("_eo")}>uploading…</div>`);
|
|
8110
8120
|
writeScope($scope19_id, {});
|
|
8111
8121
|
return 0;
|
|
8112
8122
|
}
|
|
@@ -8114,7 +8124,7 @@ var term_default = _template("A", (input) => {
|
|
|
8114
8124
|
_if(() => {
|
|
8115
8125
|
if (copiedFlash) {
|
|
8116
8126
|
const $scope20_id = _scope_id();
|
|
8117
|
-
_html(`<div${_attr_class("
|
|
8127
|
+
_html(`<div${_attr_class("_en")}>Copied</div>`);
|
|
8118
8128
|
writeScope($scope20_id, {});
|
|
8119
8129
|
return 0;
|
|
8120
8130
|
}
|
|
@@ -8123,18 +8133,18 @@ var term_default = _template("A", (input) => {
|
|
|
8123
8133
|
_if(() => {
|
|
8124
8134
|
if (trapOpen) {
|
|
8125
8135
|
const $scope11_id = _scope_id();
|
|
8126
|
-
_html(`<div${_attr_class("
|
|
8127
|
-
_script($scope11_id, "
|
|
8128
|
-
_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");
|
|
8129
8139
|
writeScope($scope11_id, {});
|
|
8130
8140
|
return 0;
|
|
8131
8141
|
}
|
|
8132
8142
|
}, $scope0_id, "g", 1, 1, 1, 0, 1);
|
|
8133
8143
|
_html(`</div>${_el_resume($scope0_id, "a")}`);
|
|
8134
8144
|
_if(() => {}, $scope0_id, "h", 1, 1, 1, 0, 1);
|
|
8135
|
-
_script($scope0_id, "
|
|
8136
|
-
_script($scope0_id, "
|
|
8137
|
-
_script($scope0_id, "
|
|
8145
|
+
_script($scope0_id, "B41");
|
|
8146
|
+
_script($scope0_id, "B42");
|
|
8147
|
+
_script($scope0_id, "B43");
|
|
8138
8148
|
writeScope($scope0_id, {
|
|
8139
8149
|
k: input.mode,
|
|
8140
8150
|
l: input.reviewFindOpen,
|
|
@@ -8201,7 +8211,7 @@ var term_default = _template("A", (input) => {
|
|
|
8201
8211
|
//#region src/tags/work-view.marko
|
|
8202
8212
|
var api$1;
|
|
8203
8213
|
var isTransientApiError$1;
|
|
8204
|
-
var work_view_default = _template("
|
|
8214
|
+
var work_view_default = _template("F", (input) => {
|
|
8205
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);
|
|
8206
8216
|
const $scope0_id = _scope_id();
|
|
8207
8217
|
const $error__closures = /* @__PURE__ */ new Set();
|
|
@@ -8226,16 +8236,16 @@ var work_view_default = _template("E", (input) => {
|
|
|
8226
8236
|
let DiffView = null;
|
|
8227
8237
|
const loadDiffView = _resume(() => {
|
|
8228
8238
|
if (DiffView) return;
|
|
8229
|
-
import("./
|
|
8239
|
+
import("./_DPT3XRV0.js").then((m) => {
|
|
8230
8240
|
DiffView = m.default;
|
|
8231
8241
|
});
|
|
8232
|
-
}, "
|
|
8242
|
+
}, "F6", $scope0_id);
|
|
8233
8243
|
let manageMounted = input.initialView === "manage";
|
|
8234
8244
|
let settingsMounted = input.initialView === "settings";
|
|
8235
8245
|
let newMounted = input.initialView === "new";
|
|
8236
8246
|
let reviewFindOpen = false;
|
|
8237
8247
|
let reviewFindTick = 0;
|
|
8238
|
-
const reviewFindFocus = { focus: _resume(function() {}, "
|
|
8248
|
+
const reviewFindFocus = { focus: _resume(function() {}, "F0") };
|
|
8239
8249
|
let focusPr = input.initialPr ?? "";
|
|
8240
8250
|
let focusNonce = 0;
|
|
8241
8251
|
let reviewScope = input.initialScope ?? null;
|
|
@@ -8253,22 +8263,22 @@ var work_view_default = _template("E", (input) => {
|
|
|
8253
8263
|
loadDiffView();
|
|
8254
8264
|
diffMounted = true;
|
|
8255
8265
|
view = "diff";
|
|
8256
|
-
}, "
|
|
8266
|
+
}, "F7", $scope0_id);
|
|
8257
8267
|
const openManage = _resume(() => {
|
|
8258
8268
|
manageMounted = true;
|
|
8259
8269
|
view = "manage";
|
|
8260
|
-
}, "
|
|
8270
|
+
}, "F8", $scope0_id);
|
|
8261
8271
|
const openSettings = _resume(() => {
|
|
8262
8272
|
settingsMounted = true;
|
|
8263
8273
|
view = "settings";
|
|
8264
|
-
}, "
|
|
8274
|
+
}, "F9", $scope0_id);
|
|
8265
8275
|
const toggleNav = _resume(() => {
|
|
8266
8276
|
view = view === "nav" ? "term" : "nav";
|
|
8267
|
-
}, "
|
|
8277
|
+
}, "F10", $scope0_id);
|
|
8268
8278
|
const toggleDiff = _resume(() => {
|
|
8269
8279
|
if (view === "diff") view = "term";
|
|
8270
8280
|
else openDiff();
|
|
8271
|
-
}, "
|
|
8281
|
+
}, "F11", $scope0_id);
|
|
8272
8282
|
const shownSessions = sessions ?? input.allStatus?.[ws.id]?.sessions ?? null;
|
|
8273
8283
|
const curTab = (() => {
|
|
8274
8284
|
if (tab && shownSessions?.some((s) => s.id === tab)) return tab;
|
|
@@ -8285,10 +8295,10 @@ var work_view_default = _template("E", (input) => {
|
|
|
8285
8295
|
reviewFindOpen = true;
|
|
8286
8296
|
reviewFindTick++;
|
|
8287
8297
|
reviewFindFocus.focus();
|
|
8288
|
-
}, "
|
|
8298
|
+
}, "F12", $scope0_id);
|
|
8289
8299
|
const exitCreate = _resume(() => {
|
|
8290
8300
|
if (view === "new") view = "term";
|
|
8291
|
-
}, "
|
|
8301
|
+
}, "F13", $scope0_id);
|
|
8292
8302
|
const applyView = _resume((v) => {
|
|
8293
8303
|
if (v.view === "diff") {
|
|
8294
8304
|
if (v.scope !== void 0) reviewScope = v.scope ?? null;
|
|
@@ -8303,7 +8313,7 @@ var work_view_default = _template("E", (input) => {
|
|
|
8303
8313
|
}
|
|
8304
8314
|
view = "term";
|
|
8305
8315
|
}
|
|
8306
|
-
}, "
|
|
8316
|
+
}, "F14", $scope0_id);
|
|
8307
8317
|
const createSession = _resume(async (agent, select) => {
|
|
8308
8318
|
spawning = true;
|
|
8309
8319
|
try {
|
|
@@ -8324,7 +8334,7 @@ var work_view_default = _template("E", (input) => {
|
|
|
8324
8334
|
} finally {
|
|
8325
8335
|
spawning = false;
|
|
8326
8336
|
}
|
|
8327
|
-
}, "
|
|
8337
|
+
}, "F15", $scope0_id);
|
|
8328
8338
|
const loadMem = {
|
|
8329
8339
|
wanted: false,
|
|
8330
8340
|
run: void 0
|
|
@@ -8350,11 +8360,11 @@ var work_view_default = _template("E", (input) => {
|
|
|
8350
8360
|
if (isTransientApiError$1(err)) return;
|
|
8351
8361
|
error = String(err.message || err);
|
|
8352
8362
|
}
|
|
8353
|
-
}, "
|
|
8363
|
+
}, "F16", $scope0_id);
|
|
8354
8364
|
const loadSessions = _resume((autoCreate) => {
|
|
8355
8365
|
if (autoCreate) loadMem.wanted = true;
|
|
8356
8366
|
return (loadMem.run ??= coalesce(loadBody))();
|
|
8357
|
-
}, "
|
|
8367
|
+
}, "F17", $scope0_id);
|
|
8358
8368
|
const closeSession = _resume(async (id) => {
|
|
8359
8369
|
try {
|
|
8360
8370
|
sessions = (sessions || []).filter((s) => s.id !== id);
|
|
@@ -8364,7 +8374,7 @@ var work_view_default = _template("E", (input) => {
|
|
|
8364
8374
|
error = `Close session failed: ${String(err.message || err)}`;
|
|
8365
8375
|
loadSessions(false);
|
|
8366
8376
|
}
|
|
8367
|
-
}, "
|
|
8377
|
+
}, "F18", $scope0_id);
|
|
8368
8378
|
const renameSession = _resume(async (id, title) => {
|
|
8369
8379
|
title = title.trim();
|
|
8370
8380
|
const cur = (sessions || []).find((s) => s.id === id);
|
|
@@ -8379,7 +8389,7 @@ var work_view_default = _template("E", (input) => {
|
|
|
8379
8389
|
headers: { "content-type": "application/json" },
|
|
8380
8390
|
body: JSON.stringify({ title })
|
|
8381
8391
|
});
|
|
8382
|
-
}, "
|
|
8392
|
+
}, "F19", $scope0_id);
|
|
8383
8393
|
const newSession = _resume(async (wsId, agent) => {
|
|
8384
8394
|
if (wsId === ws.id) {
|
|
8385
8395
|
const session = await createSession(agent, true);
|
|
@@ -8397,7 +8407,7 @@ var work_view_default = _template("E", (input) => {
|
|
|
8397
8407
|
} catch (err) {
|
|
8398
8408
|
error = String(err.message || err);
|
|
8399
8409
|
}
|
|
8400
|
-
}, "
|
|
8410
|
+
}, "F20", $scope0_id);
|
|
8401
8411
|
const onKey = _resume((e) => {
|
|
8402
8412
|
const target = e.target;
|
|
8403
8413
|
const typing = !!target && !target.closest(".xterm") && (target.tagName === "INPUT" || target.tagName === "TEXTAREA" || target.tagName === "SELECT" || target.isContentEditable);
|
|
@@ -8411,11 +8421,11 @@ var work_view_default = _template("E", (input) => {
|
|
|
8411
8421
|
e.preventDefault();
|
|
8412
8422
|
toggleDiff();
|
|
8413
8423
|
}
|
|
8414
|
-
}, "
|
|
8415
|
-
_html(`<div${_attr_class(["
|
|
8416
|
-
["
|
|
8417
|
-
["
|
|
8418
|
-
}])}><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")}>`);
|
|
8419
8429
|
_set_serialize_reason({
|
|
8420
8430
|
0: _serialize_guard($scope0_reason, 0),
|
|
8421
8431
|
1: 1,
|
|
@@ -8447,45 +8457,45 @@ var work_view_default = _template("E", (input) => {
|
|
|
8447
8457
|
tab: curTab,
|
|
8448
8458
|
tabChange: _resume(function(id) {
|
|
8449
8459
|
tab = id;
|
|
8450
|
-
}, "
|
|
8460
|
+
}, "F22", $scope0_id),
|
|
8451
8461
|
view,
|
|
8452
8462
|
viewChange: _resume((_new_view) => {
|
|
8453
8463
|
view = _new_view;
|
|
8454
|
-
}, "
|
|
8464
|
+
}, "F23", $scope0_id),
|
|
8455
8465
|
allWorkspaces: input.allWorkspaces,
|
|
8456
8466
|
allStatus: input.allStatus,
|
|
8457
8467
|
agents: input.agents,
|
|
8458
8468
|
onError: _resume(function(message) {
|
|
8459
8469
|
error = message;
|
|
8460
|
-
}, "
|
|
8470
|
+
}, "F24", $scope0_id),
|
|
8461
8471
|
onSelectWorkspace: _resume(function(id) {
|
|
8462
8472
|
exitCreate();
|
|
8463
8473
|
input.onSelectWorkspace?.(id);
|
|
8464
|
-
}, "
|
|
8474
|
+
}, "F25", $scope0_id),
|
|
8465
8475
|
onNewSession: _resume(function(wsId, agent) {
|
|
8466
8476
|
exitCreate();
|
|
8467
8477
|
newSession(wsId, agent);
|
|
8468
|
-
}, "
|
|
8478
|
+
}, "F26", $scope0_id),
|
|
8469
8479
|
onCloseSession: _resume(function(id) {
|
|
8470
8480
|
closeSession(id);
|
|
8471
|
-
}, "
|
|
8481
|
+
}, "F27", $scope0_id),
|
|
8472
8482
|
onRenameSession: _resume(function(s, title) {
|
|
8473
8483
|
renameSession(s.id, title);
|
|
8474
|
-
}, "
|
|
8484
|
+
}, "F28", $scope0_id),
|
|
8475
8485
|
onReviewOpened: _resume(function(pr) {
|
|
8476
8486
|
exitCreate();
|
|
8477
8487
|
openDiff(pr);
|
|
8478
|
-
}, "
|
|
8488
|
+
}, "F29", $scope0_id)
|
|
8479
8489
|
});
|
|
8480
|
-
_html(`</div><div${_attr_class("
|
|
8490
|
+
_html(`</div><div${_attr_class("_b6")}>`);
|
|
8481
8491
|
_if(() => {
|
|
8482
8492
|
if (error) {
|
|
8483
8493
|
const $scope8_id = _scope_id();
|
|
8484
8494
|
toast_default({
|
|
8485
8495
|
onDismiss: _resume(function() {
|
|
8486
8496
|
error = null;
|
|
8487
|
-
}, "
|
|
8488
|
-
content: _content_resume("
|
|
8497
|
+
}, "F30", $scope8_id),
|
|
8498
|
+
content: _content_resume("F48", () => {
|
|
8489
8499
|
_scope_reason();
|
|
8490
8500
|
const $scope9_id = _scope_id();
|
|
8491
8501
|
_html(`${_escape(error)}${_el_resume($scope9_id, "a")}`);
|
|
@@ -8500,7 +8510,7 @@ var work_view_default = _template("E", (input) => {
|
|
|
8500
8510
|
_if(() => {
|
|
8501
8511
|
if (diffMounted && DiffView) {
|
|
8502
8512
|
const $scope1_id = _scope_id();
|
|
8503
|
-
_html(`<div${_attr_class(["
|
|
8513
|
+
_html(`<div${_attr_class(["_b7", { ["_b8"]: view === "diff" }])}>`);
|
|
8504
8514
|
_dynamic_tag($scope1_id, "b", DiffView, {
|
|
8505
8515
|
workspaceId: ws.id,
|
|
8506
8516
|
workspaceBranch: ws.branch,
|
|
@@ -8514,23 +8524,23 @@ var work_view_default = _template("E", (input) => {
|
|
|
8514
8524
|
scope: reviewScope,
|
|
8515
8525
|
onScopeChange: _resume(function(s) {
|
|
8516
8526
|
reviewScope = s === "committed" ? null : s;
|
|
8517
|
-
}, "
|
|
8527
|
+
}, "F1", $scope1_id),
|
|
8518
8528
|
onFileChange: _resume(function(f) {
|
|
8519
8529
|
reviewFile = f;
|
|
8520
|
-
}, "
|
|
8530
|
+
}, "F2", $scope1_id),
|
|
8521
8531
|
findOpen: reviewFindOpen,
|
|
8522
8532
|
findOpenChange: _resume((_new_reviewFindOpen) => {
|
|
8523
8533
|
reviewFindOpen = _new_reviewFindOpen;
|
|
8524
|
-
}, "
|
|
8534
|
+
}, "F3", $scope1_id),
|
|
8525
8535
|
findTick: reviewFindTick,
|
|
8526
8536
|
findFocusRef: reviewFindFocus,
|
|
8527
8537
|
onSent: _resume(function(sessionId) {
|
|
8528
8538
|
tab = sessionId;
|
|
8529
8539
|
view = "term";
|
|
8530
|
-
}, "
|
|
8540
|
+
}, "F4", $scope1_id),
|
|
8531
8541
|
onExit: _resume(function() {
|
|
8532
8542
|
view = "term";
|
|
8533
|
-
}, "
|
|
8543
|
+
}, "F5", $scope1_id)
|
|
8534
8544
|
});
|
|
8535
8545
|
_html(`</div>${_el_resume($scope1_id, "a")}`);
|
|
8536
8546
|
writeScope($scope1_id, {});
|
|
@@ -8540,20 +8550,20 @@ var work_view_default = _template("E", (input) => {
|
|
|
8540
8550
|
_if(() => {
|
|
8541
8551
|
if (manageMounted) {
|
|
8542
8552
|
const $scope2_id = _scope_id();
|
|
8543
|
-
_html(`<div${_attr_class(["
|
|
8553
|
+
_html(`<div${_attr_class(["_b7", { ["_b8"]: view === "manage" }])}>`);
|
|
8544
8554
|
_set_serialize_reason(_serialize_guard($scope0_reason, 16));
|
|
8545
8555
|
const $childScope2 = _peek_scope_id();
|
|
8546
8556
|
manage_workspace_default({
|
|
8547
8557
|
workspace: ws,
|
|
8548
8558
|
workspaceChange: _resume(function(next) {
|
|
8549
8559
|
input.onWorkspaceChange?.(next);
|
|
8550
|
-
}, "
|
|
8560
|
+
}, "F31", $scope2_id),
|
|
8551
8561
|
onExit: _resume(function() {
|
|
8552
8562
|
view = "term";
|
|
8553
|
-
}, "
|
|
8563
|
+
}, "F32", $scope2_id),
|
|
8554
8564
|
onDeleted: _resume(function() {
|
|
8555
8565
|
input.onWorkspaceDeleted?.(ws.id);
|
|
8556
|
-
}, "
|
|
8566
|
+
}, "F33", $scope2_id)
|
|
8557
8567
|
});
|
|
8558
8568
|
_html(`</div>${_el_resume($scope2_id, "a")}`);
|
|
8559
8569
|
writeScope($scope2_id, { b: _serialize_if($scope0_reason, 4) && _existing_scope($childScope2) });
|
|
@@ -8563,7 +8573,7 @@ var work_view_default = _template("E", (input) => {
|
|
|
8563
8573
|
_if(() => {
|
|
8564
8574
|
if (settingsMounted) {
|
|
8565
8575
|
const $scope3_id = _scope_id();
|
|
8566
|
-
_html(`<div${_attr_class(["
|
|
8576
|
+
_html(`<div${_attr_class(["_b7", { ["_b8"]: view === "settings" }])}>`);
|
|
8567
8577
|
_set_serialize_reason({
|
|
8568
8578
|
0: _serialize_guard($scope0_reason, 1),
|
|
8569
8579
|
1: $sg__input_workspace,
|
|
@@ -8580,21 +8590,21 @@ var work_view_default = _template("E", (input) => {
|
|
|
8580
8590
|
instance: input.instance,
|
|
8581
8591
|
instanceChange: _resume(function(i) {
|
|
8582
8592
|
input.onInstanceChange?.(i);
|
|
8583
|
-
}, "
|
|
8593
|
+
}, "F34", $scope3_id),
|
|
8584
8594
|
backHref: `/w/${ws.id}`,
|
|
8585
8595
|
onExit: _resume(function() {
|
|
8586
8596
|
view = "term";
|
|
8587
|
-
}, "
|
|
8597
|
+
}, "F35", $scope3_id),
|
|
8588
8598
|
setup: input.setup,
|
|
8589
8599
|
setupChange: _resume(function(s) {
|
|
8590
8600
|
input.onSetupChange?.(s);
|
|
8591
|
-
}, "
|
|
8601
|
+
}, "F36", $scope3_id),
|
|
8592
8602
|
preferredChange: _resume(function(agent) {
|
|
8593
8603
|
input.onPreferredChange?.(agent);
|
|
8594
|
-
}, "
|
|
8604
|
+
}, "F37", $scope3_id),
|
|
8595
8605
|
agentsChange: _resume(function(agents) {
|
|
8596
8606
|
input.onAgentsChange?.(agents);
|
|
8597
|
-
}, "
|
|
8607
|
+
}, "F38", $scope3_id)
|
|
8598
8608
|
});
|
|
8599
8609
|
_html(`</div>${_el_resume($scope3_id, "a")}`);
|
|
8600
8610
|
writeScope($scope3_id, { b: _serialize_if($scope0_reason, 5) && _existing_scope($childScope3) });
|
|
@@ -8604,7 +8614,7 @@ var work_view_default = _template("E", (input) => {
|
|
|
8604
8614
|
_if(() => {
|
|
8605
8615
|
if (newMounted) {
|
|
8606
8616
|
const $scope4_id = _scope_id();
|
|
8607
|
-
_html(`<div${_attr_class(["
|
|
8617
|
+
_html(`<div${_attr_class(["_b7", { ["_b8"]: view === "new" }])}>`);
|
|
8608
8618
|
_set_serialize_reason({
|
|
8609
8619
|
0: 1,
|
|
8610
8620
|
1: $sg__input_allWorkspaces,
|
|
@@ -8616,28 +8626,28 @@ var work_view_default = _template("E", (input) => {
|
|
|
8616
8626
|
backHref: `/w/${ws.id}`,
|
|
8617
8627
|
onExit: _resume(function() {
|
|
8618
8628
|
exitCreate();
|
|
8619
|
-
}, "
|
|
8629
|
+
}, "F39", $scope4_id),
|
|
8620
8630
|
onCreate: _resume(function(ws) {
|
|
8621
8631
|
input.onCreated?.(ws);
|
|
8622
|
-
}, "
|
|
8632
|
+
}, "F40", $scope4_id),
|
|
8623
8633
|
onRestore: _resume(function(next) {
|
|
8624
8634
|
input.onWorkspaceChange?.(next);
|
|
8625
8635
|
input.onSelectWorkspace?.(next.id);
|
|
8626
8636
|
exitCreate();
|
|
8627
|
-
}, "
|
|
8637
|
+
}, "F41", $scope4_id)
|
|
8628
8638
|
});
|
|
8629
8639
|
_html(`</div>${_el_resume($scope4_id, "a")}`);
|
|
8630
8640
|
writeScope($scope4_id, { b: _existing_scope($childScope4) });
|
|
8631
8641
|
return 0;
|
|
8632
8642
|
}
|
|
8633
8643
|
}, $scope0_id, "i", 1, 1, 1, 0, 1);
|
|
8634
|
-
_html(`<div${_attr_class(["
|
|
8644
|
+
_html(`<div${_attr_class(["_b_", { ["_b9"]: view !== "term" }])}>`);
|
|
8635
8645
|
_if(() => {
|
|
8636
8646
|
if (shownSessions) {
|
|
8637
8647
|
const $scope5_id = _scope_id();
|
|
8638
8648
|
_for_of(shownSessions, (s) => {
|
|
8639
8649
|
const $scope6_id = _scope_id();
|
|
8640
|
-
_html(`<div${_attr_class(["
|
|
8650
|
+
_html(`<div${_attr_class(["_ca", { ["_cb"]: s.id === curTab }])}>`);
|
|
8641
8651
|
_set_serialize_reason({
|
|
8642
8652
|
0: 1,
|
|
8643
8653
|
1: 1,
|
|
@@ -8666,26 +8676,26 @@ var work_view_default = _template("E", (input) => {
|
|
|
8666
8676
|
onNewSession: _resume(function(agent) {
|
|
8667
8677
|
view = "term";
|
|
8668
8678
|
newSession(ws.id, agent);
|
|
8669
|
-
}, "
|
|
8679
|
+
}, "F42", $scope6_id),
|
|
8670
8680
|
onOpenTab: _resume(function(id) {
|
|
8671
8681
|
tab = id;
|
|
8672
8682
|
view = "term";
|
|
8673
|
-
}, "
|
|
8683
|
+
}, "F43", $scope6_id),
|
|
8674
8684
|
onCloseSession: _resume(function(id) {
|
|
8675
8685
|
closeSession(id);
|
|
8676
|
-
}, "
|
|
8686
|
+
}, "F44", $scope6_id),
|
|
8677
8687
|
onRenameSession: _resume(function(id, title) {
|
|
8678
8688
|
renameSession(id, title);
|
|
8679
|
-
}, "
|
|
8689
|
+
}, "F45", $scope6_id),
|
|
8680
8690
|
active: input.active && view === "term" && s.id === curTab,
|
|
8681
8691
|
mode: view,
|
|
8682
8692
|
onOpenNav: _resume(function() {
|
|
8683
8693
|
toggleNav();
|
|
8684
|
-
}, "
|
|
8694
|
+
}, "F46", $scope6_id),
|
|
8685
8695
|
reviewFindOpen,
|
|
8686
8696
|
onToggleReviewFind: _resume(function() {
|
|
8687
8697
|
toggleReviewFind();
|
|
8688
|
-
}, "
|
|
8698
|
+
}, "F47", $scope6_id)
|
|
8689
8699
|
});
|
|
8690
8700
|
_html(`</div>${_el_resume($scope6_id, "a")}`);
|
|
8691
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, {
|
|
@@ -8696,8 +8706,8 @@ var work_view_default = _template("E", (input) => {
|
|
|
8696
8706
|
_if(() => {
|
|
8697
8707
|
if (!shownSessions.length && view === "term") {
|
|
8698
8708
|
const $scope7_id = _scope_id();
|
|
8699
|
-
_html(`<div${_attr_class("
|
|
8700
|
-
_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");
|
|
8701
8711
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
8702
8712
|
return 0;
|
|
8703
8713
|
}
|
|
@@ -8706,21 +8716,21 @@ var work_view_default = _template("E", (input) => {
|
|
|
8706
8716
|
return 0;
|
|
8707
8717
|
} else {
|
|
8708
8718
|
const $scope10_id = _scope_id();
|
|
8709
|
-
_html(`<p${_attr_class("
|
|
8719
|
+
_html(`<p${_attr_class("_bG")}>Loading sessions…</p>`);
|
|
8710
8720
|
writeScope($scope10_id, {});
|
|
8711
8721
|
return 1;
|
|
8712
8722
|
}
|
|
8713
8723
|
}, $scope0_id, "j", 1, 1, 1, "</div>");
|
|
8714
8724
|
_html(`</div></div>${_el_resume($scope0_id, "a")}`);
|
|
8715
|
-
_script($scope0_id, "
|
|
8716
|
-
_script($scope0_id, "
|
|
8717
|
-
_script($scope0_id, "
|
|
8718
|
-
_script($scope0_id, "
|
|
8719
|
-
_script($scope0_id, "
|
|
8720
|
-
_script($scope0_id, "
|
|
8721
|
-
_script($scope0_id, "
|
|
8722
|
-
_script($scope0_id, "
|
|
8723
|
-
_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");
|
|
8724
8734
|
writeScope($scope0_id, {
|
|
8725
8735
|
n: input.initialView,
|
|
8726
8736
|
s: input.allStatus,
|
|
@@ -8949,6 +8959,7 @@ var app_shell_default = _template("c", (input) => {
|
|
|
8949
8959
|
return 0;
|
|
8950
8960
|
}
|
|
8951
8961
|
}, $scope0_id, "b", 1, 1, 1, 0, 1);
|
|
8962
|
+
connection_pill_default({});
|
|
8952
8963
|
_if(() => {
|
|
8953
8964
|
if (!selectedId && showSetup) {
|
|
8954
8965
|
const $scope4_id = _scope_id();
|
|
@@ -9010,7 +9021,7 @@ var app_shell_default = _template("c", (input) => {
|
|
|
9010
9021
|
writeScope($scope3_id, { a: _existing_scope($childScope2) });
|
|
9011
9022
|
return 1;
|
|
9012
9023
|
}
|
|
9013
|
-
}, $scope0_id, "
|
|
9024
|
+
}, $scope0_id, "d", 1, 1, 1, 0, 1);
|
|
9014
9025
|
_html(`<div${_attr_class(["_e", { ["_f"]: !selectedId }])}>`);
|
|
9015
9026
|
_for_of(openIds, (id) => {
|
|
9016
9027
|
const $scope1_id = _scope_id();
|
|
@@ -9102,56 +9113,56 @@ var app_shell_default = _template("c", (input) => {
|
|
|
9102
9113
|
e: ws,
|
|
9103
9114
|
f: ws?.id
|
|
9104
9115
|
});
|
|
9105
|
-
}, (id) => id, $scope0_id, "
|
|
9116
|
+
}, (id) => id, $scope0_id, "e", 1, 1, 1, "</div>");
|
|
9106
9117
|
_html(`</div>${_el_resume($scope0_id, "a")}`);
|
|
9107
9118
|
_script($scope0_id, "c25");
|
|
9108
9119
|
_script($scope0_id, "c26");
|
|
9109
9120
|
_script($scope0_id, "c27");
|
|
9110
9121
|
writeScope($scope0_id, {
|
|
9111
|
-
|
|
9112
|
-
|
|
9113
|
-
|
|
9114
|
-
|
|
9115
|
-
|
|
9116
|
-
|
|
9117
|
-
|
|
9118
|
-
|
|
9119
|
-
|
|
9120
|
-
|
|
9121
|
-
|
|
9122
|
-
|
|
9123
|
-
|
|
9124
|
-
|
|
9125
|
-
|
|
9126
|
-
|
|
9127
|
-
|
|
9128
|
-
|
|
9129
|
-
|
|
9130
|
-
|
|
9131
|
-
|
|
9132
|
-
|
|
9133
|
-
|
|
9134
|
-
|
|
9135
|
-
|
|
9136
|
-
|
|
9137
|
-
|
|
9138
|
-
|
|
9139
|
-
|
|
9140
|
-
|
|
9141
|
-
|
|
9142
|
-
|
|
9143
|
-
|
|
9144
|
-
|
|
9145
|
-
|
|
9146
|
-
|
|
9147
|
-
|
|
9148
|
-
|
|
9149
|
-
|
|
9150
|
-
|
|
9151
|
-
|
|
9152
|
-
|
|
9153
|
-
|
|
9154
|
-
|
|
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
|
|
9155
9166
|
});
|
|
9156
9167
|
_resume_branch($scope0_id);
|
|
9157
9168
|
});
|
|
@@ -9251,7 +9262,7 @@ var app_page_default = _template("b", (input) => {
|
|
|
9251
9262
|
});
|
|
9252
9263
|
//#endregion
|
|
9253
9264
|
//#region src/routes/_app/new/+page.marko
|
|
9254
|
-
var _page_default$4 = _template("
|
|
9265
|
+
var _page_default$4 = _template("lb", (input) => {
|
|
9255
9266
|
_scope_reason();
|
|
9256
9267
|
_scope_id();
|
|
9257
9268
|
app_page_default({ initial: {
|
|
@@ -9293,7 +9304,7 @@ var GET$21 = Run.GET(async (_ctx, next) => {
|
|
|
9293
9304
|
});
|
|
9294
9305
|
//#endregion
|
|
9295
9306
|
//#region src/routes/_app/settings/+page.marko
|
|
9296
|
-
var _page_default$3 = _template("
|
|
9307
|
+
var _page_default$3 = _template("mb", (input) => {
|
|
9297
9308
|
_scope_reason();
|
|
9298
9309
|
_scope_id();
|
|
9299
9310
|
app_page_default({ initial: {
|
|
@@ -9330,7 +9341,7 @@ function head3(context) {
|
|
|
9330
9341
|
}
|
|
9331
9342
|
//#endregion
|
|
9332
9343
|
//#region src/routes/_app/w/$id/+page.marko
|
|
9333
|
-
var _page_default$2 = _template("
|
|
9344
|
+
var _page_default$2 = _template("nb", (input) => {
|
|
9334
9345
|
_scope_reason();
|
|
9335
9346
|
_scope_id();
|
|
9336
9347
|
app_page_default({ initial: {
|
|
@@ -9367,7 +9378,7 @@ function head4(context) {
|
|
|
9367
9378
|
}
|
|
9368
9379
|
//#endregion
|
|
9369
9380
|
//#region src/routes/_app/w/$id/manage/+page.marko
|
|
9370
|
-
var _page_default$1 = _template("
|
|
9381
|
+
var _page_default$1 = _template("ob", (input) => {
|
|
9371
9382
|
_scope_reason();
|
|
9372
9383
|
_scope_id();
|
|
9373
9384
|
app_page_default({ initial: {
|
|
@@ -9403,7 +9414,7 @@ function head5(context) {
|
|
|
9403
9414
|
}
|
|
9404
9415
|
//#endregion
|
|
9405
9416
|
//#region src/routes/_app/w/$id/review/+page.marko
|
|
9406
|
-
var _page_default = _template("
|
|
9417
|
+
var _page_default = _template("pb", (input) => {
|
|
9407
9418
|
_scope_reason();
|
|
9408
9419
|
_scope_id();
|
|
9409
9420
|
const q = $global().url.searchParams;
|
|
@@ -16600,6 +16611,9 @@ function attachEventsServer(server) {
|
|
|
16600
16611
|
wss.on("connection", (ws) => {
|
|
16601
16612
|
send(ws, "hello", { boot: BOOT_ID });
|
|
16602
16613
|
const ping = setInterval(() => send(ws, "ping"), PING_MS);
|
|
16614
|
+
ws.on("message", (data) => {
|
|
16615
|
+
if (String(data) === "ping") send(ws, "ping");
|
|
16616
|
+
});
|
|
16603
16617
|
const unsubscribe = subscribe((event) => {
|
|
16604
16618
|
send(ws, event.type, event.data);
|
|
16605
16619
|
});
|
|
@@ -16706,4 +16720,4 @@ server.listen(port, () => {
|
|
|
16706
16720
|
//#endregion
|
|
16707
16721
|
export {};
|
|
16708
16722
|
|
|
16709
|
-
;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\"",">"]}};
|