@dylanpiercey/work 0.0.67 → 0.0.68
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/{_B9UH2f9c.js → _CiiZ9YMw.js} +8 -8
- package/dist/{_D78MdEM0.js → _CmWodq4J.js} +65 -65
- package/dist/index.mjs +286 -240
- package/dist/public/assets/{_CsVHdEro.js → _0DzfEV0S.js} +1 -1
- package/dist/public/assets/{_D3ardbW_.js → _0GtddR3c.js} +1 -1
- package/dist/public/assets/_0GtddR3c.js.br +0 -0
- package/dist/public/assets/{_u_iVn6qP.js → _1QTSrs1d.js} +1 -1
- package/dist/public/assets/_1QTSrs1d.js.br +0 -0
- package/dist/public/assets/{_ypxye8UD2.js → _38FppfYs2.js} +1 -1
- package/dist/public/assets/_38FppfYs2.js.br +0 -0
- package/dist/public/assets/{_NElrm0bu.js → _4ARsqX0i.js} +1 -1
- package/dist/public/assets/_4ARsqX0i.js.br +0 -0
- package/dist/public/assets/{_DeKPlPsD2.js → _7s5yw-v52.js} +1 -1
- package/dist/public/assets/_7s5yw-v52.js.br +0 -0
- package/dist/public/assets/{_CjxTlEOw2.js → _B-Uc5ZM32.js} +1 -1
- package/dist/public/assets/_B-Uc5ZM32.js.br +0 -0
- package/dist/public/assets/{_Cvm7LApl2.js → _B5fosk_S2.js} +1 -1
- package/dist/public/assets/_B5fosk_S2.js.br +0 -0
- package/dist/public/assets/{_CBo0xAjA2.js → _B7F5dl7b2.js} +1 -1
- package/dist/public/assets/{_DfBlfnwv.js → _B8yc63Y7.js} +1 -1
- package/dist/public/assets/_B8yc63Y7.js.br +0 -0
- package/dist/public/assets/{_DLfp1TG-.js → _BBl6TGGl.js} +1 -1
- package/dist/public/assets/_BBl6TGGl.js.br +0 -0
- package/dist/public/assets/{_BtsudbJn.js → _BCyp3snr.js} +1 -1
- package/dist/public/assets/_BCyp3snr.js.br +0 -0
- package/dist/public/assets/{_CnQdBazT.js → _BErnD8Jh.js} +1 -1
- package/dist/public/assets/_BErnD8Jh.js.br +0 -0
- package/dist/public/assets/{_BzP13oLI2.js → _BHSIo3Em2.js} +1 -1
- package/dist/public/assets/_BHSIo3Em2.js.br +0 -0
- package/dist/public/assets/{_BL7XgPZ_.js → _BTnbsbZN.js} +1 -1
- package/dist/public/assets/_BTnbsbZN.js.br +0 -0
- package/dist/public/assets/{_B5iCC67h.js → _BUNXdYQk.js} +1 -1
- package/dist/public/assets/_BUNXdYQk.js.br +0 -0
- package/dist/public/assets/{_BV3Xd3ki2.js → _B_Nm8nVX2.js} +1 -1
- package/dist/public/assets/{_QqRd5Qfx.js → _BaTRbzd-.js} +1 -1
- package/dist/public/assets/_BaTRbzd-.js.br +4 -0
- package/dist/public/assets/{_B1vmwnMa.js → _BhGMgo6c.js} +1 -1
- package/dist/public/assets/_BhGMgo6c.js.br +0 -0
- package/dist/public/assets/{_CduHXYfC.js → _BhZnc_Z0.js} +6 -6
- package/dist/public/assets/_BhZnc_Z0.js.br +0 -0
- package/dist/public/assets/{_Cc8KMyAp.js → _BigETRAv.js} +1 -1
- package/dist/public/assets/_BigETRAv.js.br +0 -0
- package/dist/public/assets/{_D6hi7ua72.js → _BomNvUTq2.js} +1 -1
- package/dist/public/assets/_BomNvUTq2.js.br +0 -0
- package/dist/public/assets/{_Chsu042s.js → _BrWwXNry.js} +1 -1
- package/dist/public/assets/_BrWwXNry.js.br +0 -0
- package/dist/public/assets/{_iFcqMrGB.js → _C2JzQsiQ.js} +1 -1
- package/dist/public/assets/_C2JzQsiQ.js.br +0 -0
- package/dist/public/assets/{_uDnfyVmG.js → _C3GcDfTX.js} +1 -1
- package/dist/public/assets/_C3GcDfTX.js.br +0 -0
- package/dist/public/assets/{_BSNS3UMH2.js → _C89y7YVy2.js} +1 -1
- package/dist/public/assets/_C89y7YVy2.js.br +0 -0
- package/dist/public/assets/{_m3dEhGTX2.js → _CADyGyO_2.js} +1 -1
- package/dist/public/assets/_CADyGyO_2.js.br +0 -0
- package/dist/public/assets/{_Bs3zDe42.js → _CAFup1_W.js} +1 -1
- package/dist/public/assets/_CAFup1_W.js.br +0 -0
- package/dist/public/assets/{_B1ZCEYOD.js → _CBWgUlgl.js} +1 -1
- package/dist/public/assets/_CBWgUlgl.js.br +0 -0
- package/dist/public/assets/{_B_cZqSdw.js → _CEM0yQh2.js} +1 -1
- package/dist/public/assets/_CEM0yQh2.js.br +0 -0
- package/dist/public/assets/{_CgMtsYIH.js → _CHFUAx5X.js} +1 -1
- package/dist/public/assets/_CHFUAx5X.js.br +0 -0
- package/dist/public/assets/{_C9ETD15k.js → _CJHMFvCB.js} +1 -1
- package/dist/public/assets/_CJHMFvCB.js.br +0 -0
- package/dist/public/assets/{_g4l6Vz4T.js → _CQ2iIrcz.js} +1 -1
- package/dist/public/assets/_CQ2iIrcz.js.br +0 -0
- package/dist/public/assets/{_CuUYX7O6.js → _CSXOb1Nz.js} +1 -1
- package/dist/public/assets/_CSXOb1Nz.js.br +0 -0
- package/dist/public/assets/{_C13mV9Vy.js → _CWi6EnQr.js} +1 -1
- package/dist/public/assets/_CWi6EnQr.js.br +0 -0
- package/dist/public/assets/{_VuWoXkq_.js → _C_GZhZw8.js} +1 -1
- package/dist/public/assets/_C_GZhZw8.js.br +0 -0
- package/dist/public/assets/{_pfnxgR1W2.js → _C_HO3H8C2.js} +1 -1
- package/dist/public/assets/_C_HO3H8C2.js.br +0 -0
- package/dist/public/assets/{_DHLcQgxi.js → _CibAH7os.js} +1 -1
- package/dist/public/assets/_CibAH7os.js.br +0 -0
- package/dist/public/assets/{_CzJu_xMs.js → _CkOph3YU.js} +1 -1
- package/dist/public/assets/_CkOph3YU.js.br +0 -0
- package/dist/public/assets/{_ClECf4L52.js → _CkQwIPJB2.js} +1 -1
- package/dist/public/assets/_CkQwIPJB2.js.br +0 -0
- package/dist/public/assets/{_BwQNx6NX2.js → _CnJuHi072.js} +1 -1
- package/dist/public/assets/_CnJuHi072.js.br +0 -0
- package/dist/public/assets/{_6Uv2mA8-2.js → _CvjCKo622.js} +1 -1
- package/dist/public/assets/_CvjCKo622.js.br +0 -0
- package/dist/public/assets/{_sNxRRogh2.js → _CwPprDz22.js} +1 -1
- package/dist/public/assets/_CwPprDz22.js.br +0 -0
- package/dist/public/assets/{_AMWZA0be.js → _D2Ff9GZJ.js} +1 -1
- package/dist/public/assets/_D2Ff9GZJ.js.br +0 -0
- package/dist/public/assets/{_D6UgA7_X.js → _D7BeMLFv.js} +1 -1
- package/dist/public/assets/_D7BeMLFv.js.br +0 -0
- package/dist/public/assets/{_CYMzncSB2.js → _DF6XKhzB2.js} +1 -1
- package/dist/public/assets/_DF6XKhzB2.js.br +0 -0
- package/dist/public/assets/{_CsdnwX6C.js → _DOJN7tEK.js} +1 -1
- package/dist/public/assets/_DOJN7tEK.js.br +0 -0
- package/dist/public/assets/{_BXCZuUQA2.js → _DPfaeP-82.js} +1 -1
- package/dist/public/assets/_DPfaeP-82.js.br +0 -0
- package/dist/public/assets/{_CS_y_5bW.js → _DUNum2CP.js} +1 -1
- package/dist/public/assets/_DUNum2CP.js.br +0 -0
- package/dist/public/assets/{_Dlrc6R2N.js → _DVjg6wHM.js} +4 -4
- package/dist/public/assets/_DVjg6wHM.js.br +0 -0
- package/dist/public/assets/{_DiAj-Esd.js → _DgUfKb9A.js} +1 -1
- package/dist/public/assets/_DgUfKb9A.js.br +0 -0
- package/dist/public/assets/{_3k9q7qTZ.js → _Dh78anhY.js} +1 -1
- package/dist/public/assets/_Dh78anhY.js.br +0 -0
- package/dist/public/assets/{_DlpIObWk2.js → _DkAinoPb2.js} +1 -1
- package/dist/public/assets/_DkAinoPb2.js.br +0 -0
- package/dist/public/assets/{_CPi3B_vr2.js → _DmanHBCF2.js} +1 -1
- package/dist/public/assets/_DmanHBCF2.js.br +0 -0
- package/dist/public/assets/{_CCbKzznD.js → _DqyNj1TX.js} +1 -1
- package/dist/public/assets/_DqyNj1TX.js.br +0 -0
- package/dist/public/assets/{_DbEBleKv.js → _DrxJalR9.js} +1 -1
- package/dist/public/assets/_DrxJalR9.js.br +0 -0
- package/dist/public/assets/{_C8IzwQRq.js → _DtSFAO0E.js} +1 -1
- package/dist/public/assets/_DtSFAO0E.js.br +0 -0
- package/dist/public/assets/{_CHxLUwRe2.js → _DwPC_Vqh2.js} +1 -1
- package/dist/public/assets/_DwPC_Vqh2.js.br +0 -0
- package/dist/public/assets/{_W9tsjAUN.js → _DxF52SLM.js} +1 -1
- package/dist/public/assets/_DxF52SLM.js.br +0 -0
- package/dist/public/assets/{_BaoSUC_i.js → _Fufp6K4q.js} +1 -1
- package/dist/public/assets/_Fufp6K4q.js.br +0 -0
- package/dist/public/assets/{_CgdPOrhX2.js → _GXQstiZy2.js} +1 -1
- package/dist/public/assets/_GXQstiZy2.js.br +0 -0
- package/dist/public/assets/{_Bx58LnKm.js → _K0LvfbpY.js} +1 -1
- package/dist/public/assets/_K0LvfbpY.js.br +0 -0
- package/dist/public/assets/{_CsuFzJmI.js → _LSqXrs2F.js} +1 -1
- package/dist/public/assets/_LSqXrs2F.js.br +0 -0
- package/dist/public/assets/{_C7_gIQ1W.js → _LkBMtasz.js} +1 -1
- package/dist/public/assets/_LkBMtasz.js.br +0 -0
- package/dist/public/assets/{_Dzm4iymN2.js → _M_Ucoj372.js} +1 -1
- package/dist/public/assets/_M_Ucoj372.js.br +0 -0
- package/dist/public/assets/{_y4Ul_ohO.js → _N0Sbox9W.js} +1 -1
- package/dist/public/assets/_N0Sbox9W.js.br +0 -0
- package/dist/public/assets/{_DX5zvNmD.js → _NRYJ_4ge.js} +1 -1
- package/dist/public/assets/_NRYJ_4ge.js.br +0 -0
- package/dist/public/assets/{_BW81rf1H2.js → _O7xGyDQA2.js} +1 -1
- package/dist/public/assets/_O7xGyDQA2.js.br +0 -0
- package/dist/public/assets/{_Ds1l_cNr.js → _OaRrg6zQ.js} +1 -1
- package/dist/public/assets/_OaRrg6zQ.js.br +0 -0
- package/dist/public/assets/{_BkgwhUlf.js → __6vKLthg.js} +1 -1
- package/dist/public/assets/__6vKLthg.js.br +0 -0
- package/dist/public/assets/{_CZyTbXSO2.js → _dt8wOGnj2.js} +1 -1
- package/dist/public/assets/_dt8wOGnj2.js.br +0 -0
- package/dist/public/assets/{_DTD1tZCR.js → _e-vmRXWg.js} +1 -1
- package/dist/public/assets/_e-vmRXWg.js.br +0 -0
- package/dist/public/assets/{_CcdwqB39.js → _eJeVge2q.js} +1 -1
- package/dist/public/assets/_eJeVge2q.js.br +0 -0
- package/dist/public/assets/{_BW1UpUrT.js → _r4UEjN6i.js} +1 -1
- package/dist/public/assets/_r4UEjN6i.js.br +0 -0
- package/dist/public/assets/{_DRbnn8C_.js → _x2a4iv92.js} +1 -1
- package/dist/public/assets/_x2a4iv92.js.br +0 -0
- package/dist/public/assets/{_D9eCCnFe.js → _yxucBX-G.js} +1 -1
- package/dist/public/assets/_yxucBX-G.js.br +0 -0
- package/dist/public/assets/{app-page-DZhaOCYJ.css → app-page-8DhqRdJj.css} +1 -1
- package/dist/public/assets/app-page-8DhqRdJj.css.br +0 -0
- package/dist/public/assets/diff-view-DyGcpsic.css +1 -0
- package/dist/public/assets/diff-view-DyGcpsic.css.br +0 -0
- package/dist/public/assets/new-DGta5r6w.js +1 -0
- package/dist/public/assets/settings-DGta5r6w.js +1 -0
- package/dist/public/assets/w-DGta5r6w.js +1 -0
- package/dist/public/assets/w._-9m6uIPo_.js +1 -0
- package/dist/public/assets/w._-DGta5r6w.js +1 -0
- package/package.json +1 -1
- package/dist/public/assets/_3k9q7qTZ.js.br +0 -0
- package/dist/public/assets/_6Uv2mA8-2.js.br +0 -0
- package/dist/public/assets/_AMWZA0be.js.br +0 -0
- package/dist/public/assets/_B1ZCEYOD.js.br +0 -0
- package/dist/public/assets/_B1vmwnMa.js.br +0 -0
- package/dist/public/assets/_B5iCC67h.js.br +0 -0
- package/dist/public/assets/_BL7XgPZ_.js.br +0 -0
- package/dist/public/assets/_BSNS3UMH2.js.br +0 -0
- package/dist/public/assets/_BW1UpUrT.js.br +0 -0
- package/dist/public/assets/_BW81rf1H2.js.br +0 -0
- package/dist/public/assets/_BXCZuUQA2.js.br +0 -0
- package/dist/public/assets/_B_cZqSdw.js.br +0 -0
- package/dist/public/assets/_BaoSUC_i.js.br +0 -0
- package/dist/public/assets/_BkgwhUlf.js.br +0 -0
- package/dist/public/assets/_Bs3zDe42.js.br +0 -0
- package/dist/public/assets/_BtsudbJn.js.br +0 -0
- package/dist/public/assets/_BwQNx6NX2.js.br +0 -0
- package/dist/public/assets/_Bx58LnKm.js.br +0 -0
- package/dist/public/assets/_BzP13oLI2.js.br +0 -0
- package/dist/public/assets/_C13mV9Vy.js.br +0 -0
- package/dist/public/assets/_C7_gIQ1W.js.br +0 -0
- package/dist/public/assets/_C8IzwQRq.js.br +0 -0
- package/dist/public/assets/_C9ETD15k.js.br +0 -0
- package/dist/public/assets/_CCbKzznD.js.br +0 -0
- package/dist/public/assets/_CHxLUwRe2.js.br +0 -0
- package/dist/public/assets/_CPi3B_vr2.js.br +0 -0
- package/dist/public/assets/_CS_y_5bW.js.br +0 -0
- package/dist/public/assets/_CYMzncSB2.js.br +0 -0
- package/dist/public/assets/_CZyTbXSO2.js.br +0 -0
- package/dist/public/assets/_Cc8KMyAp.js.br +0 -0
- package/dist/public/assets/_CcdwqB39.js.br +0 -0
- package/dist/public/assets/_CduHXYfC.js.br +0 -0
- package/dist/public/assets/_CgMtsYIH.js.br +0 -0
- package/dist/public/assets/_CgdPOrhX2.js.br +0 -0
- package/dist/public/assets/_Chsu042s.js.br +0 -0
- package/dist/public/assets/_CjxTlEOw2.js.br +0 -0
- package/dist/public/assets/_ClECf4L52.js.br +0 -0
- package/dist/public/assets/_CnQdBazT.js.br +0 -0
- package/dist/public/assets/_CsdnwX6C.js.br +0 -0
- package/dist/public/assets/_CsuFzJmI.js.br +0 -0
- package/dist/public/assets/_CuUYX7O6.js.br +0 -0
- package/dist/public/assets/_Cvm7LApl2.js.br +0 -0
- package/dist/public/assets/_CzJu_xMs.js.br +0 -0
- package/dist/public/assets/_D3ardbW_.js.br +0 -0
- package/dist/public/assets/_D6UgA7_X.js.br +0 -0
- package/dist/public/assets/_D6hi7ua72.js.br +0 -0
- package/dist/public/assets/_D9eCCnFe.js.br +0 -0
- package/dist/public/assets/_DHLcQgxi.js.br +0 -0
- package/dist/public/assets/_DLfp1TG-.js.br +0 -0
- package/dist/public/assets/_DRbnn8C_.js.br +0 -0
- package/dist/public/assets/_DTD1tZCR.js.br +0 -0
- package/dist/public/assets/_DX5zvNmD.js.br +0 -0
- package/dist/public/assets/_DbEBleKv.js.br +0 -0
- package/dist/public/assets/_DeKPlPsD2.js.br +0 -0
- package/dist/public/assets/_DfBlfnwv.js.br +0 -0
- package/dist/public/assets/_DiAj-Esd.js.br +0 -0
- package/dist/public/assets/_DlpIObWk2.js.br +0 -0
- package/dist/public/assets/_Dlrc6R2N.js.br +0 -0
- package/dist/public/assets/_Ds1l_cNr.js.br +0 -0
- package/dist/public/assets/_Dzm4iymN2.js.br +0 -0
- package/dist/public/assets/_NElrm0bu.js.br +0 -0
- package/dist/public/assets/_QqRd5Qfx.js.br +0 -0
- package/dist/public/assets/_VuWoXkq_.js.br +0 -0
- package/dist/public/assets/_W9tsjAUN.js.br +0 -0
- package/dist/public/assets/_g4l6Vz4T.js.br +0 -0
- package/dist/public/assets/_iFcqMrGB.js.br +0 -0
- package/dist/public/assets/_m3dEhGTX2.js.br +0 -0
- package/dist/public/assets/_pfnxgR1W2.js.br +0 -0
- package/dist/public/assets/_sNxRRogh2.js.br +0 -0
- package/dist/public/assets/_uDnfyVmG.js.br +0 -0
- package/dist/public/assets/_u_iVn6qP.js.br +0 -0
- package/dist/public/assets/_y4Ul_ohO.js.br +0 -0
- package/dist/public/assets/_ypxye8UD2.js.br +0 -0
- package/dist/public/assets/app-page-DZhaOCYJ.css.br +0 -0
- package/dist/public/assets/diff-view-QQN-PSAx.css +0 -1
- package/dist/public/assets/diff-view-QQN-PSAx.css.br +0 -0
- package/dist/public/assets/new-Cia2P5u6.js +0 -1
- package/dist/public/assets/settings-Cia2P5u6.js +0 -1
- package/dist/public/assets/w-Cia2P5u6.js +0 -1
- package/dist/public/assets/w._-BwIlYQ_7.js +0 -1
- package/dist/public/assets/w._-Cia2P5u6.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 get, A as subscribe, B as setPref, C as setScrapedPhase, D as pushPublicKey, E as deleteSubscription, F as disabledAgents, G as setupPath, H as doctor, I as enabledAgents, J as TOOLS, K as which, L as getSetting, M as subscriberJoins, N as agentChoices, O as saveSubscription, P as allPrefs, Q as db, R as preferredAgent, S as setAgentPhase, T as summaryFromHookPayload, U as ghKnownHosts, V as setSetting, W as miseVersions, X as toolById, Y as agentById, Z as all, _ as tmuxName, a as ensureTmuxServer, at as tmux, b as clearAgentPhase, c as killWorkspaceSessions, d as newSessionArgs, et as workspacePath, g as sessionStates, h as sendToSession, i as disposeSessions, it as run, j as subscriberCount, k as publish, l as listSessions, m as renameSession, n as clearTmuxStarted, nt as gh, o as getSession, ot as config, p as panePids, q as DEFAULT_GITHUB_HOST, r as createSession, rt as git, s as killSession, t as cleanEnv, tt as TMUX_SOCKET, u as markTmuxStarted, v as tmuxWasStarted, w as setSessionViewers, x as reasonFromHookPayload, y as reportsWorking, z as setDisabledAgents } from "./_mSrLyFdO.js";
|
|
3
|
-
import { $ as _flush_head, A as metaTrunc, B as _attr_select_value, C as setPrimaryHost, Ct as _try, D as iconBtnRow, Dt as writeScope, Et as withPageAssets, F as _attr_class, G as _content, H as _attrs, K as _content_resume, L as _attr_input_value, M as tone, N as $global, O as iconBtnXs, P as _attr, Q as _existing_scope, R as _attr_option_value, S as repoWebUrl$1, St as _trailers, T as btnSm, Tt as attrTag, U as _attrs_partial, V as _attr_style, W as _await, X as _el_resume, Y as _el_read_error, Z as _escape, _ as sectionCount$1, _t as _show_end, at as _if, b as icon_base_default, bt as _template, c as sideNavOpen, ct as _resume_branch, d as rankRepos, dt as _scope_with_id, et as _for_of, f as icon_search_default, ft as _script, g as row, gt as _set_serialize_reason, h as iconBtn$2, ht as _serialize_if, it as _id, j as phase, k as inputLg, l as workspaceTab, lt as _scope_id, m as icon_refresh_default, mt as _serialize_guard, n as findInput, nt as _hoist_read_error, ot as _peek_scope_id, p as icon_back_default, pt as _sep, q as _dynamic_tag, r as icon_sidebar_default, rt as _html, s as setWorkspaceTab, st as _resume, t as findIconBtn, tt as _hoist, ut as _scope_reason, v as toast_default, vt as _show_start, w as btnLg, wt as _var, x as repoLabel, xt as _to_text, y as icon_xmark_default, yt as _subscribe, z as _attr_or } from "./
|
|
3
|
+
import { $ as _flush_head, A as metaTrunc, B as _attr_select_value, C as setPrimaryHost, Ct as _try, D as iconBtnRow, Dt as writeScope, Et as withPageAssets, F as _attr_class, G as _content, H as _attrs, K as _content_resume, L as _attr_input_value, M as tone, N as $global, O as iconBtnXs, P as _attr, Q as _existing_scope, R as _attr_option_value, S as repoWebUrl$1, St as _trailers, T as btnSm, Tt as attrTag, U as _attrs_partial, V as _attr_style, W as _await, X as _el_resume, Y as _el_read_error, Z as _escape, _ as sectionCount$1, _t as _show_end, at as _if, b as icon_base_default, bt as _template, c as sideNavOpen, ct as _resume_branch, d as rankRepos, dt as _scope_with_id, et as _for_of, f as icon_search_default, ft as _script, g as row, gt as _set_serialize_reason, h as iconBtn$2, ht as _serialize_if, it as _id, j as phase, k as inputLg, l as workspaceTab, lt as _scope_id, m as icon_refresh_default, mt as _serialize_guard, n as findInput, nt as _hoist_read_error, ot as _peek_scope_id, p as icon_back_default, pt as _sep, q as _dynamic_tag, r as icon_sidebar_default, rt as _html, s as setWorkspaceTab, st as _resume, t as findIconBtn, tt as _hoist, ut as _scope_reason, v as toast_default, vt as _show_start, w as btnLg, wt as _var, x as repoLabel, xt as _to_text, y as icon_xmark_default, yt as _subscribe, z as _attr_or } from "./_CiiZ9YMw.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
import path from "node:path";
|
|
@@ -3191,9 +3191,9 @@ function agentFromCommand(command) {
|
|
|
3191
3191
|
}
|
|
3192
3192
|
//#endregion
|
|
3193
3193
|
//#region src/tags/settings-page.css.ts
|
|
3194
|
-
var content$2 = "
|
|
3195
|
-
var agentGrid = "
|
|
3196
|
-
var toolGrid = "
|
|
3194
|
+
var content$2 = "_bV _bh _bi";
|
|
3195
|
+
var agentGrid = "_bZ _bs";
|
|
3196
|
+
var toolGrid = "_b9 _bs";
|
|
3197
3197
|
//#endregion
|
|
3198
3198
|
//#region src/tags/page-head.marko
|
|
3199
3199
|
var page_head_default = _template("o", (input) => {
|
|
@@ -3203,14 +3203,14 @@ var page_head_default = _template("o", (input) => {
|
|
|
3203
3203
|
_if(() => {
|
|
3204
3204
|
if (input.backHref) {
|
|
3205
3205
|
const $scope1_id = _scope_id();
|
|
3206
|
-
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "
|
|
3206
|
+
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_cr"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
3207
3207
|
icon_back_default({ size: 16 });
|
|
3208
3208
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
3209
3209
|
_serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
|
|
3210
3210
|
return 0;
|
|
3211
3211
|
} else if (input.onBack) {
|
|
3212
3212
|
const $scope2_id = _scope_id();
|
|
3213
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
3213
|
+
_html(`<button${_attr_class([iconBtnRow, "_cr"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
3214
3214
|
icon_back_default({ size: 16 });
|
|
3215
3215
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
3216
3216
|
_script($scope2_id, "o0");
|
|
@@ -3258,7 +3258,7 @@ var PATHS = {
|
|
|
3258
3258
|
copilot: "M19.245 5.364c1.322 1.36 1.877 3.216 2.11 5.817.622 0 1.2.135 1.592.654l.73.964c.21.278.323.61.323.955v2.62c0 .339-.173.669-.453.868C20.239 19.602 16.157 21.5 12 21.5c-4.6 0-9.205-2.583-11.547-4.258-.28-.2-.452-.53-.453-.868v-2.62c0-.345.113-.679.321-.956l.73-.963c.392-.517.974-.654 1.593-.654l.029-.297c.25-2.446.81-4.213 2.082-5.52 2.461-2.54 5.71-2.851 7.146-2.864h.198c1.436.013 4.685.323 7.146 2.864zm-7.244 4.328c-.284 0-.613.016-.962.05-.123.447-.305.85-.57 1.108-1.05 1.023-2.316 1.18-2.994 1.18-.638 0-1.306-.13-1.851-.464-.516.165-1.012.403-1.044.996a65.882 65.882 0 00-.063 2.884l-.002.48c-.002.563-.005 1.126-.013 1.69.002.326.204.63.51.765 2.482 1.102 4.83 1.657 6.99 1.657 2.156 0 4.504-.555 6.985-1.657a.854.854 0 00.51-.766c.03-1.682.006-3.372-.076-5.053-.031-.596-.528-.83-1.046-.996-.546.333-1.212.464-1.85.464-.677 0-1.942-.157-2.993-1.18-.266-.258-.447-.661-.57-1.108-.32-.032-.64-.049-.96-.05zm-2.525 4.013c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zm5 0c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zM7.635 5.087c-1.05.102-1.935.438-2.385.906-.975 1.037-.765 3.668-.21 4.224.405.394 1.17.657 1.995.657h.09c.649-.013 1.785-.176 2.73-1.11.435-.41.705-1.433.675-2.47-.03-.834-.27-1.52-.63-1.813-.39-.336-1.275-.482-2.265-.394zm6.465.394c-.36.292-.6.98-.63 1.813-.03 1.037.24 2.06.675 2.47.968.957 2.136 1.104 2.776 1.11h.044c.825 0 1.59-.263 1.995-.657.555-.556.765-3.187-.21-4.224-.45-.468-1.335-.804-2.385-.906-.99-.088-1.875.058-2.265.394zM12 7.615c-.24 0-.525.015-.84.044.03.16.045.336.06.526l-.001.159a2.94 2.94 0 01-.014.25c.225-.022.425-.027.612-.028h.366c.187 0 .387.006.612.028-.015-.146-.015-.277-.015-.409.015-.19.03-.365.06-.526a9.29 9.29 0 00-.84-.044z",
|
|
3259
3259
|
cursor: "M22.106 5.68L12.5.135a.998.998 0 00-.998 0L1.893 5.68a.84.84 0 00-.419.726v11.186c0 .3.16.577.42.727l9.607 5.547a.999.999 0 00.998 0l9.608-5.547a.84.84 0 00.42-.727V6.407a.84.84 0 00-.42-.726zm-.603 1.176L12.228 22.92c-.063.108-.228.064-.228-.061V12.34a.59.59 0 00-.295-.51l-9.11-5.26c-.107-.062-.063-.228.062-.228h18.55c.264 0 .428.286.296.514z"
|
|
3260
3260
|
};
|
|
3261
|
-
var icon_agent_default = _template("
|
|
3261
|
+
var icon_agent_default = _template("C", (input) => {
|
|
3262
3262
|
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);
|
|
3263
3263
|
const $scope0_id = _scope_id();
|
|
3264
3264
|
const $badge__closures = /* @__PURE__ */ new Set();
|
|
@@ -3308,7 +3308,7 @@ var icon_agent_default = _template("B", (input) => {
|
|
|
3308
3308
|
n: $badge__closures
|
|
3309
3309
|
});
|
|
3310
3310
|
});
|
|
3311
|
-
var usageNote = "
|
|
3311
|
+
var usageNote = "_cL _P";
|
|
3312
3312
|
//#endregion
|
|
3313
3313
|
//#region src/tags/usage-meters.marko
|
|
3314
3314
|
function duration(ms) {
|
|
@@ -3318,7 +3318,7 @@ function duration(ms) {
|
|
|
3318
3318
|
if (h < 48) return `${h}h`;
|
|
3319
3319
|
return `${Math.round(h / 24)}d`;
|
|
3320
3320
|
}
|
|
3321
|
-
function pctText(pct) {
|
|
3321
|
+
function pctText$1(pct) {
|
|
3322
3322
|
const rounded = Math.round(pct);
|
|
3323
3323
|
return rounded !== pct && (rounded === 100 || rounded === 0) ? `${pct.toFixed(1)}%` : `${rounded}%`;
|
|
3324
3324
|
}
|
|
@@ -3332,11 +3332,11 @@ var usage_meters_default = _template("z", (input) => {
|
|
|
3332
3332
|
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);
|
|
3333
3333
|
const $scope0_id = _scope_id();
|
|
3334
3334
|
const agent = input.agent;
|
|
3335
|
-
_html(`<div${_attr_class(["
|
|
3335
|
+
_html(`<div${_attr_class(["_cF", { ["_cG"]: input.hideName }])}><div${_attr_class("_cH")}>`);
|
|
3336
3336
|
_if(() => {
|
|
3337
3337
|
if (!input.hideName) {
|
|
3338
3338
|
const $scope1_id = _scope_id();
|
|
3339
|
-
_html(`<strong${_attr_class("
|
|
3339
|
+
_html(`<strong${_attr_class("_c0")}>${_escape(agent.agent)}${_el_resume($scope1_id, "b", $sg__input_agent)}</strong>`);
|
|
3340
3340
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
3341
3341
|
return 0;
|
|
3342
3342
|
}
|
|
@@ -3344,7 +3344,7 @@ var usage_meters_default = _template("z", (input) => {
|
|
|
3344
3344
|
_if(() => {
|
|
3345
3345
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
3346
3346
|
const $scope2_id = _scope_id();
|
|
3347
|
-
_html(`<span${_attr_class("
|
|
3347
|
+
_html(`<span${_attr_class("_cI")}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope2_id, "b", $sg__input_agent)}</span>`);
|
|
3348
3348
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
3349
3349
|
return 0;
|
|
3350
3350
|
}
|
|
@@ -3352,19 +3352,19 @@ var usage_meters_default = _template("z", (input) => {
|
|
|
3352
3352
|
_if(() => {
|
|
3353
3353
|
if (agent.stale_seconds != null) {
|
|
3354
3354
|
const $scope3_id = _scope_id();
|
|
3355
|
-
_html(`<span${_attr_class("
|
|
3355
|
+
_html(`<span${_attr_class("_cJ")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>⚠ ${_sep($sg__input_agent)}${_escape(duration(agent.stale_seconds * 1e3))}${_el_resume($scope3_id, "b", $sg__input_agent)} old</span>${_el_resume($scope3_id, "a", $sg__input_agent)}`);
|
|
3356
3356
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
3357
3357
|
return 0;
|
|
3358
3358
|
}
|
|
3359
3359
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
3360
|
-
_html(`</div><div${_attr_class(["
|
|
3360
|
+
_html(`</div><div${_attr_class(["_cK", { ["_c1"]: agent.stale_seconds != null }])}>`);
|
|
3361
3361
|
_for_of(agent.windows || [], (win) => {
|
|
3362
3362
|
const $scope4_id = _scope_id();
|
|
3363
|
-
const pct = pctText(win.used_percent);
|
|
3363
|
+
const pct = pctText$1(win.used_percent);
|
|
3364
3364
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
3365
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
3366
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
3367
|
-
_html(`<div${_attr_class("
|
|
3365
|
+
const fillClass = win.used_percent >= 90 ? "_cT" : win.used_percent >= 70 ? "_cS" : win.used_percent >= 40 ? "_cR" : "_cQ";
|
|
3366
|
+
const pctClass = win.used_percent >= 90 ? "_cY" : win.used_percent >= 70 ? "_cX" : win.used_percent >= 40 ? "_cW" : "_cV";
|
|
3367
|
+
_html(`<div${_attr_class("_cM")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_cN")}>${_escape(win.window)}${_el_resume($scope4_id, "c", $sg__input_agent)}</span><span${_attr_class("_cO")}><span${_attr_class(["_cP", 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(["_cU", pctClass])}>${_escape(pct)}${_el_resume($scope4_id, "g", $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_cZ")}>${label ? `↻ ${_escape(`${_to_text(label)}`)}` : ""}${_el_resume($scope4_id, "i", $sg__input_agent)}</span></div>${_el_resume($scope4_id, "a", $sg__input_agent)}`);
|
|
3368
3368
|
$si__input_agent && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
3369
3369
|
}, "window", $scope0_id, "g", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
3370
3370
|
_if(() => {
|
|
@@ -3385,7 +3385,7 @@ var usage_meters_default = _template("z", (input) => {
|
|
|
3385
3385
|
});
|
|
3386
3386
|
//#endregion
|
|
3387
3387
|
//#region src/tags/icons/icon-plus.marko
|
|
3388
|
-
var icon_plus_default = _template("
|
|
3388
|
+
var icon_plus_default = _template("P", (input) => {
|
|
3389
3389
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
3390
3390
|
const $scope0_id = _scope_id();
|
|
3391
3391
|
_set_serialize_reason({
|
|
@@ -3423,7 +3423,7 @@ var modal_view_default = _template("m", (input) => {
|
|
|
3423
3423
|
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;
|
|
3424
3424
|
const dismissable = input.dismissable !== false;
|
|
3425
3425
|
let open = input.open;
|
|
3426
|
-
_html(`<dialog${_attr_class(["
|
|
3426
|
+
_html(`<dialog${_attr_class(["_c2", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
3427
3427
|
...htmlInput,
|
|
3428
3428
|
open: null
|
|
3429
3429
|
}, {
|
|
@@ -3433,20 +3433,20 @@ var modal_view_default = _template("m", (input) => {
|
|
|
3433
3433
|
closedby: 1,
|
|
3434
3434
|
"on-cancel": 1,
|
|
3435
3435
|
"on-close": 1
|
|
3436
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
3436
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_c3")}>`);
|
|
3437
3437
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
3438
3438
|
_html("</div>");
|
|
3439
3439
|
_if(() => {
|
|
3440
3440
|
if (footer) {
|
|
3441
3441
|
const $scope1_id = _scope_id();
|
|
3442
|
-
_html(`<form method=dialog${_attr_class("
|
|
3442
|
+
_html(`<form method=dialog${_attr_class("_c4")}>`);
|
|
3443
3443
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
3444
3444
|
_html("</form>");
|
|
3445
3445
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
3446
3446
|
return 0;
|
|
3447
3447
|
} else if (input.openChange) {
|
|
3448
3448
|
const $scope2_id = _scope_id();
|
|
3449
|
-
_html(`<form method=dialog${_attr_class("
|
|
3449
|
+
_html(`<form method=dialog${_attr_class("_c4")}>`);
|
|
3450
3450
|
dialog_close_default({
|
|
3451
3451
|
class: ["_l", "_m"],
|
|
3452
3452
|
content: _content("m0", () => {
|
|
@@ -3505,7 +3505,7 @@ var prompt_dialog_default = _template("p", (input) => {
|
|
|
3505
3505
|
const $childScope = _peek_scope_id();
|
|
3506
3506
|
modal_view_default({
|
|
3507
3507
|
label: input.label,
|
|
3508
|
-
class: "
|
|
3508
|
+
class: "_cp",
|
|
3509
3509
|
open: input.open,
|
|
3510
3510
|
openChange: input.openChange,
|
|
3511
3511
|
"aria-labelledby": titleId,
|
|
@@ -3528,7 +3528,7 @@ var prompt_dialog_default = _template("p", (input) => {
|
|
|
3528
3528
|
content: _content("p6", () => {
|
|
3529
3529
|
_scope_reason();
|
|
3530
3530
|
const $scope2_id = _scope_id();
|
|
3531
|
-
_html(`<h2${_attr_class("
|
|
3531
|
+
_html(`<h2${_attr_class("_cq")}${_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) => {
|
|
3532
3532
|
value = _new_value;
|
|
3533
3533
|
}, "p0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
3534
3534
|
_script($scope2_id, "p4");
|
|
@@ -3791,12 +3791,12 @@ var settings_page_default = _template("s", (input) => {
|
|
|
3791
3791
|
return 0;
|
|
3792
3792
|
} else if (setup.ready) {
|
|
3793
3793
|
const $scope43_id = _scope_id();
|
|
3794
|
-
_html(`<span${_attr_class("
|
|
3794
|
+
_html(`<span${_attr_class("_bX")}>Ready</span>. Tools, GitHub, and an agent are all in place.`);
|
|
3795
3795
|
writeScope($scope43_id, {});
|
|
3796
3796
|
return 1;
|
|
3797
3797
|
} else {
|
|
3798
3798
|
const $scope5_id = _scope_id();
|
|
3799
|
-
_html(`<span${_attr_class("
|
|
3799
|
+
_html(`<span${_attr_class("_bY")}>Not ready</span>. Missing <!>${_escape(setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "))}${_el_resume($scope5_id, "b")}.`);
|
|
3800
3800
|
_subscribe($setup_missing__closures, writeScope($scope5_id, {}));
|
|
3801
3801
|
return 2;
|
|
3802
3802
|
}
|
|
@@ -3843,11 +3843,11 @@ var settings_page_default = _template("s", (input) => {
|
|
|
3843
3843
|
return 0;
|
|
3844
3844
|
}
|
|
3845
3845
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
3846
|
-
_html(`<section${_attr_class("_bp")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bq")}><h2${_attr("id", agentsId)}${_attr_class("_bE")}>Agents</h2><div${_attr_class("_v")}></div><label${_attr_class("
|
|
3846
|
+
_html(`<section${_attr_class("_bp")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bq")}><h2${_attr("id", agentsId)}${_attr_class("_bE")}>Agents</h2><div${_attr_class("_v")}></div><label${_attr_class("_b1")}><span${_attr_class("_P")}>Default</span><span${_attr_class("_j")}>`);
|
|
3847
3847
|
_attr_select_value($scope0_id, "m", input.preferred, _resume(function(v) {
|
|
3848
3848
|
setPreferred(v);
|
|
3849
3849
|
}, "s1", $scope0_id), () => {
|
|
3850
|
-
_html(`<select${_attr_class(["_k", "
|
|
3850
|
+
_html(`<select${_attr_class(["_k", "_b2"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
|
|
3851
3851
|
_for_of(input.agents.filter((a) => a !== "shell"), (id) => {
|
|
3852
3852
|
const $scope44_id = _scope_id();
|
|
3853
3853
|
_html(`<option${_attr_option_value(id)}>${_escape(agentLabel(id))}${_el_resume($scope44_id, "b", $sg__input_agents)}</option>${_el_resume($scope44_id, "a", $sg__input_agents)}`);
|
|
@@ -3868,7 +3868,7 @@ var settings_page_default = _template("s", (input) => {
|
|
|
3868
3868
|
const rows = lone ? [] : a.instances;
|
|
3869
3869
|
const loneAccounts = lone && lone.enabled ? accountsFor(lone.id) : [];
|
|
3870
3870
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
3871
|
-
_html(`<li${_attr_class(["_bu", "
|
|
3871
|
+
_html(`<li${_attr_class(["_bu", "_b0"])}><div${_attr_class(["_b3", { ["_b6"]: lone && !lone.enabled }])}>`);
|
|
3872
3872
|
_set_serialize_reason(12);
|
|
3873
3873
|
const $childScope4 = _peek_scope_id();
|
|
3874
3874
|
icon_agent_default({
|
|
@@ -3888,7 +3888,7 @@ var settings_page_default = _template("s", (input) => {
|
|
|
3888
3888
|
_if(() => {
|
|
3889
3889
|
if (active.has(a.id)) {
|
|
3890
3890
|
const $scope10_id = _scope_id();
|
|
3891
|
-
_html(`<span${_attr_class("
|
|
3891
|
+
_html(`<span${_attr_class("_bW")}><span${_attr_class("_C")}></span><!>${_escape(active.get(a.id) || "Starting…")}${_el_resume($scope10_id, "c")}</span>`);
|
|
3892
3892
|
_subscribe($active__closures, writeScope($scope10_id, {}));
|
|
3893
3893
|
return 0;
|
|
3894
3894
|
} else if (!a.installed) {
|
|
@@ -3925,18 +3925,18 @@ var settings_page_default = _template("s", (input) => {
|
|
|
3925
3925
|
_if(() => {
|
|
3926
3926
|
if (rows.length || loneAccounts.length || extraAccounts.length) {
|
|
3927
3927
|
const $scope2_id = _scope_id();
|
|
3928
|
-
_html(`<ul${_attr_class("
|
|
3928
|
+
_html(`<ul${_attr_class("_b8")}>`);
|
|
3929
3929
|
_for_of(rows, (inst) => {
|
|
3930
3930
|
const $scope3_id = _scope_id();
|
|
3931
3931
|
const accounts = inst.enabled ? accountsFor(inst.id) : [];
|
|
3932
|
-
_html(`<li${_attr_class("
|
|
3932
|
+
_html(`<li${_attr_class("_b4")}><div${_attr_class(["_b5", { ["_b6"]: !inst.enabled }])}>`);
|
|
3933
3933
|
_set_serialize_reason(12);
|
|
3934
3934
|
const $childScope5 = _peek_scope_id();
|
|
3935
3935
|
icon_agent_default({
|
|
3936
3936
|
agent: inst.id,
|
|
3937
3937
|
size: 15
|
|
3938
3938
|
});
|
|
3939
|
-
_html(`<span${_attr_class(["
|
|
3939
|
+
_html(`<span${_attr_class(["_b7", "_u"])}>${_escape(inst.command)}${_el_resume($scope3_id, "e")}</span>`);
|
|
3940
3940
|
_if(() => {
|
|
3941
3941
|
if (input.preferred === inst.id) {
|
|
3942
3942
|
const $scope47_id = _scope_id();
|
|
@@ -4011,7 +4011,7 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4011
4011
|
}, "id", $scope0_id, "q", 1, 1, 1, 0, 1);
|
|
4012
4012
|
_for_of(otherUsage, (u) => {
|
|
4013
4013
|
const $scope51_id = _scope_id();
|
|
4014
|
-
_html(`<li${_attr_class(["_bu", "
|
|
4014
|
+
_html(`<li${_attr_class(["_bu", "_b0"])}>`);
|
|
4015
4015
|
_set_serialize_reason(6);
|
|
4016
4016
|
const $childScope9 = _peek_scope_id();
|
|
4017
4017
|
usage_meters_default({ agent: u });
|
|
@@ -4049,12 +4049,12 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4049
4049
|
_if(() => {
|
|
4050
4050
|
if (active.has(h.host) && authCodes.has(h.host)) {
|
|
4051
4051
|
const $scope22_id = _scope_id();
|
|
4052
|
-
_html(`<span${_attr_class("
|
|
4052
|
+
_html(`<span${_attr_class("_bW")}><span${_attr_class("_C")}></span> Enter code <strong${_attr_class("_cf")}>${_escape(authCodes.get(h.host))}${_el_resume($scope22_id, "d")}</strong> at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_cg")}>${_escape(h.host)}${_el_resume($scope22_id, "f")}/login/device</a>${_el_resume($scope22_id, "e")}</span>`);
|
|
4053
4053
|
_subscribe($authCodes__closures, writeScope($scope22_id, {}));
|
|
4054
4054
|
return 0;
|
|
4055
4055
|
} else if (active.has(h.host)) {
|
|
4056
4056
|
const $scope12_id = _scope_id();
|
|
4057
|
-
_html(`<span${_attr_class("
|
|
4057
|
+
_html(`<span${_attr_class("_bW")}><span${_attr_class("_C")}></span><!>${_escape(active.get(h.host) || "Starting…")}${_el_resume($scope12_id, "c")}</span>`);
|
|
4058
4058
|
_subscribe($active__closures, writeScope($scope12_id, { Cck: 1 }));
|
|
4059
4059
|
return 1;
|
|
4060
4060
|
} else if (h.authed) {
|
|
@@ -4146,7 +4146,7 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4146
4146
|
_if(() => {
|
|
4147
4147
|
if (setup) {
|
|
4148
4148
|
const $scope33_id = _scope_id();
|
|
4149
|
-
_html(`<form${_attr_class("
|
|
4149
|
+
_html(`<form${_attr_class("_ce")}><label${_attr_class("_T")}>`);
|
|
4150
4150
|
icon_plus_default({
|
|
4151
4151
|
size: 14,
|
|
4152
4152
|
class: "_U"
|
|
@@ -4213,11 +4213,11 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4213
4213
|
const $for_content4__t_path__closures = /* @__PURE__ */ new Set();
|
|
4214
4214
|
const $for_content4__t_latest__closures = /* @__PURE__ */ new Set();
|
|
4215
4215
|
const $for_content4__t_id__closures = /* @__PURE__ */ new Set();
|
|
4216
|
-
_html(`<li${_attr_class([row, { ["
|
|
4216
|
+
_html(`<li${_attr_class([row, { ["_b_"]: !t.installed }])}><span${_attr_class(["_ca", "_u"])}>${_escape(t.label)}${_el_resume($scope16_id, "c")}</span>`);
|
|
4217
4217
|
_if(() => {
|
|
4218
4218
|
if (active.has(t.id)) {
|
|
4219
4219
|
const $scope17_id = _scope_id();
|
|
4220
|
-
_html(`<span${_attr_class("
|
|
4220
|
+
_html(`<span${_attr_class("_bW")}><span${_attr_class("_C")}></span><!>${_escape(active.get(t.id) || "Starting…")}${_el_resume($scope17_id, "c")}</span>`);
|
|
4221
4221
|
_subscribe($active__closures, writeScope($scope17_id, { Cck: 2 }));
|
|
4222
4222
|
return 0;
|
|
4223
4223
|
} else if (t.installed) {
|
|
@@ -4225,7 +4225,7 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4225
4225
|
_if(() => {
|
|
4226
4226
|
if (t.version) {
|
|
4227
4227
|
const $scope30_id = _scope_id();
|
|
4228
|
-
_html(`<button${_attr_class(["
|
|
4228
|
+
_html(`<button${_attr_class(["_cb", "_u"])}${_attr("title", `${t.path || t.label}. Pin a version`)}>v<!>${_escape(t.version)}${_el_resume($scope30_id, "b")}</button>${_el_resume($scope30_id, "a")}`);
|
|
4229
4229
|
_script($scope30_id, "s36");
|
|
4230
4230
|
_subscribe($for_content4__t_path__closures, _subscribe($for_content4__t_version__closures, _subscribe($for_content4__t_label__closures, writeScope($scope30_id, { Cu: 1 }))));
|
|
4231
4231
|
return 0;
|
|
@@ -4239,7 +4239,7 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4239
4239
|
_if(() => {
|
|
4240
4240
|
if (outdated(t)) {
|
|
4241
4241
|
const $scope37_id = _scope_id();
|
|
4242
|
-
_html(`<button${_attr_class([btnSm, "
|
|
4242
|
+
_html(`<button${_attr_class([btnSm, "_cc"])}${_attr("title", `Update to v${t.latest}`)}>↑ <!>${_escape(t.latest)}${_el_resume($scope37_id, "b")}</button>${_el_resume($scope37_id, "a")}`);
|
|
4243
4243
|
_script($scope37_id, "s37");
|
|
4244
4244
|
_subscribe($for_content4__t_latest__closures, writeScope($scope37_id, {}));
|
|
4245
4245
|
return 0;
|
|
@@ -4338,14 +4338,14 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4338
4338
|
_if(() => {
|
|
4339
4339
|
if (hits && hits.length) {
|
|
4340
4340
|
const $scope19_id = _scope_id();
|
|
4341
|
-
_html(`<ul${_attr_class([toolGrid, "
|
|
4341
|
+
_html(`<ul${_attr_class([toolGrid, "_cd"])}>`);
|
|
4342
4342
|
_for_of(hits, (h) => {
|
|
4343
4343
|
const $scope20_id = _scope_id();
|
|
4344
|
-
_html(`<li${_attr_class(row)}><div${_attr_class("_bv")}><span${_attr_class(["
|
|
4344
|
+
_html(`<li${_attr_class(row)}><div${_attr_class("_bv")}><span${_attr_class(["_ca", "_u"])}>${_escape(h.name)}${_el_resume($scope20_id, "d")}</span>`);
|
|
4345
4345
|
_if(() => {
|
|
4346
4346
|
if (active.has(h.name)) {
|
|
4347
4347
|
const $scope21_id = _scope_id();
|
|
4348
|
-
_html(`<span${_attr_class("
|
|
4348
|
+
_html(`<span${_attr_class("_bW")}><span${_attr_class("_C")}></span><!>${_escape(active.get(h.name) || "Starting…")}${_el_resume($scope21_id, "c")}</span>`);
|
|
4349
4349
|
_subscribe($active__closures, writeScope($scope21_id, { Cck: 4 }));
|
|
4350
4350
|
return 0;
|
|
4351
4351
|
} else if (h.description) {
|
|
@@ -4501,8 +4501,8 @@ var curBase = "_bN _Q _P";
|
|
|
4501
4501
|
var archived = "_bR _bp";
|
|
4502
4502
|
var archivedHint = "_bS _P";
|
|
4503
4503
|
var archivedCard = "_bT _bu";
|
|
4504
|
-
var resultBranch = "
|
|
4505
|
-
var branchInput = "
|
|
4504
|
+
var resultBranch = "_cy _W _g";
|
|
4505
|
+
var branchInput = "_cD _S _R";
|
|
4506
4506
|
//#endregion
|
|
4507
4507
|
//#region src/tags/repo-picker.marko
|
|
4508
4508
|
var api$5;
|
|
@@ -4552,7 +4552,7 @@ var repo_picker_default = _template("q", (input) => {
|
|
|
4552
4552
|
input.onError?.(String(err.message || err));
|
|
4553
4553
|
}
|
|
4554
4554
|
}, "q5", $scope0_id);
|
|
4555
|
-
_html(`<div${_attr_class("
|
|
4555
|
+
_html(`<div${_attr_class("_cs")}><label${_attr_class("_T")}>`);
|
|
4556
4556
|
icon_search_default({
|
|
4557
4557
|
size: 14,
|
|
4558
4558
|
class: "_U"
|
|
@@ -4572,19 +4572,19 @@ var repo_picker_default = _template("q", (input) => {
|
|
|
4572
4572
|
_if(() => {
|
|
4573
4573
|
if (results.length) {
|
|
4574
4574
|
const $scope2_id = _scope_id();
|
|
4575
|
-
_html(`<ul${_attr_class("
|
|
4575
|
+
_html(`<ul${_attr_class("_ct")}>`);
|
|
4576
4576
|
_for_of(results, (repo, i) => {
|
|
4577
4577
|
const $scope3_id = _scope_id();
|
|
4578
|
-
_html(`<li><div${_attr_class(["
|
|
4578
|
+
_html(`<li><div${_attr_class(["_cv", { ["_cu"]: i === highlight }])}><button${_attr_class("_cw")}>`);
|
|
4579
4579
|
icon_plus_default({
|
|
4580
4580
|
size: 12,
|
|
4581
|
-
class: "
|
|
4581
|
+
class: "_cB"
|
|
4582
4582
|
});
|
|
4583
|
-
_html(`<span${_attr_class("
|
|
4583
|
+
_html(`<span${_attr_class("_cC")}>${_escape(repoLabel(repo.nameWithOwner))}${_el_resume($scope3_id, "e")}</span></button>${_el_resume($scope3_id, "b")}<button${_attr_class([resultBranch, { ["_cx"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>⎇</button>${_el_resume($scope3_id, "f")}</div>${_el_resume($scope3_id, "a")}`);
|
|
4584
4584
|
_if(() => {
|
|
4585
4585
|
if (branchesFor === repo.nameWithOwner) {
|
|
4586
4586
|
const $scope4_id = _scope_id();
|
|
4587
|
-
_html(`<div${_attr_class("
|
|
4587
|
+
_html(`<div${_attr_class("_cz")}>`);
|
|
4588
4588
|
_if(() => {
|
|
4589
4589
|
if (!branches) {
|
|
4590
4590
|
const $scope9_id = _scope_id();
|
|
@@ -4605,10 +4605,10 @@ var repo_picker_default = _template("q", (input) => {
|
|
|
4605
4605
|
}
|
|
4606
4606
|
}, $scope5_id, "a", 1, 1, 1, 0, 1);
|
|
4607
4607
|
const shown = (branchFilter ? branches.filter((b) => b.toLowerCase().includes(branchFilter.toLowerCase())) : branches).slice(0, 12);
|
|
4608
|
-
_html(`<ul${_attr_class("
|
|
4608
|
+
_html(`<ul${_attr_class("_cA")}>`);
|
|
4609
4609
|
_for_of(shown, (branch) => {
|
|
4610
4610
|
const $scope7_id = _scope_id();
|
|
4611
|
-
_html(`<li><button${_attr_class(["
|
|
4611
|
+
_html(`<li><button${_attr_class(["_cw", "_cE"])}><span${_attr_class(["_cC", "_u"])}>${_escape(branch)}${_el_resume($scope7_id, "c")}</span></button>${_el_resume($scope7_id, "a")}</li>`);
|
|
4612
4612
|
_script($scope7_id, "q7");
|
|
4613
4613
|
writeScope($scope7_id, { e: branch });
|
|
4614
4614
|
}, (b) => b, $scope5_id, "c", 1, 1, 1, 0, 1);
|
|
@@ -5041,9 +5041,9 @@ function activeAgent(session) {
|
|
|
5041
5041
|
const command = session.state?.command?.trim();
|
|
5042
5042
|
return command && agentFromCommand(command) || session.agent;
|
|
5043
5043
|
}
|
|
5044
|
-
var iconBtn$1 = "
|
|
5045
|
-
var navToggle = "
|
|
5046
|
-
_template("
|
|
5044
|
+
var iconBtn$1 = "_c6 _g";
|
|
5045
|
+
var navToggle = "_da _g";
|
|
5046
|
+
_template("F", (input) => {
|
|
5047
5047
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
5048
5048
|
const $scope0_id = _scope_id();
|
|
5049
5049
|
_set_serialize_reason({
|
|
@@ -5060,7 +5060,7 @@ _template("E", (input) => {
|
|
|
5060
5060
|
});
|
|
5061
5061
|
//#endregion
|
|
5062
5062
|
//#region src/tags/icons/icon-settings.marko
|
|
5063
|
-
var icon_settings_default = _template("
|
|
5063
|
+
var icon_settings_default = _template("S", (input) => {
|
|
5064
5064
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
5065
5065
|
const $scope0_id = _scope_id();
|
|
5066
5066
|
_set_serialize_reason({
|
|
@@ -5085,15 +5085,15 @@ var ARM_MS = 3500;
|
|
|
5085
5085
|
function disarmLater(fn) {
|
|
5086
5086
|
return setTimeout(fn, ARM_MS);
|
|
5087
5087
|
}
|
|
5088
|
-
var railBtn = "
|
|
5089
|
-
var rowIcon = "
|
|
5090
|
-
var close = "
|
|
5088
|
+
var railBtn = "_e2 _g";
|
|
5089
|
+
var rowIcon = "_fa _W _g";
|
|
5090
|
+
var close = "_fb _W _g _Z";
|
|
5091
5091
|
//#endregion
|
|
5092
5092
|
//#region src/styles/session-pop.css.ts
|
|
5093
|
-
var sessionPop = "
|
|
5093
|
+
var sessionPop = "_eY _1";
|
|
5094
5094
|
//#endregion
|
|
5095
5095
|
//#region src/tags/icons/icon-diff.marko
|
|
5096
|
-
var icon_diff_default = _template("
|
|
5096
|
+
var icon_diff_default = _template("I", (input) => {
|
|
5097
5097
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
5098
5098
|
const $scope0_id = _scope_id();
|
|
5099
5099
|
_set_serialize_reason({
|
|
@@ -5110,7 +5110,7 @@ var icon_diff_default = _template("H", (input) => {
|
|
|
5110
5110
|
});
|
|
5111
5111
|
//#endregion
|
|
5112
5112
|
//#region src/tags/icons/icon-manage.marko
|
|
5113
|
-
var icon_manage_default = _template("
|
|
5113
|
+
var icon_manage_default = _template("O", (input) => {
|
|
5114
5114
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
5115
5115
|
const $scope0_id = _scope_id();
|
|
5116
5116
|
_set_serialize_reason({
|
|
@@ -5127,7 +5127,7 @@ var icon_manage_default = _template("N", (input) => {
|
|
|
5127
5127
|
});
|
|
5128
5128
|
//#endregion
|
|
5129
5129
|
//#region src/tags/icons/icon-edit.marko
|
|
5130
|
-
var icon_edit_default = _template("
|
|
5130
|
+
var icon_edit_default = _template("K", (input) => {
|
|
5131
5131
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
5132
5132
|
const $scope0_id = _scope_id();
|
|
5133
5133
|
_set_serialize_reason({
|
|
@@ -5142,12 +5142,12 @@ var icon_edit_default = _template("J", (input) => {
|
|
|
5142
5142
|
});
|
|
5143
5143
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
5144
5144
|
});
|
|
5145
|
-
var prChip = "
|
|
5146
|
-
var portChip = "
|
|
5145
|
+
var prChip = "_gv _p _gu";
|
|
5146
|
+
var portChip = "_gw _p _gu";
|
|
5147
5147
|
var prState = {
|
|
5148
|
-
open: "
|
|
5149
|
-
merged: "
|
|
5150
|
-
closed: "
|
|
5148
|
+
open: "_gA",
|
|
5149
|
+
merged: "_gB",
|
|
5150
|
+
closed: "_gC"
|
|
5151
5151
|
};
|
|
5152
5152
|
//#endregion
|
|
5153
5153
|
//#region src/tags/side-nav-chips.marko
|
|
@@ -5195,7 +5195,7 @@ var side_nav_chips_default = _template("t", (input) => {
|
|
|
5195
5195
|
const name = repo.full_name.split("/").at(-1);
|
|
5196
5196
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel(repo.full_name) : name;
|
|
5197
5197
|
}, "t2", $scope1_id);
|
|
5198
|
-
_html(`<div${_attr_class("
|
|
5198
|
+
_html(`<div${_attr_class("_gt")}>`);
|
|
5199
5199
|
_for_of(repos, (repo) => {
|
|
5200
5200
|
const $scope2_id = _scope_id();
|
|
5201
5201
|
const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -5211,11 +5211,11 @@ var side_nav_chips_default = _template("t", (input) => {
|
|
|
5211
5211
|
[prState.merged]: pr.state === "MERGED",
|
|
5212
5212
|
[prState.closed]: pr.state === "CLOSED"
|
|
5213
5213
|
}
|
|
5214
|
-
])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["
|
|
5214
|
+
])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["_gx", { ["_gE"]: !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)}`);
|
|
5215
5215
|
_if(() => {
|
|
5216
5216
|
if (open) {
|
|
5217
5217
|
const $scope4_id = _scope_id();
|
|
5218
|
-
_html(`<a${_attr_class(["
|
|
5218
|
+
_html(`<a${_attr_class(["_gx", "_gy"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr.number}`)}`)}${_attr("title", `Review #${pr.number} changes`)}>`);
|
|
5219
5219
|
icon_diff_default({ size: 12 });
|
|
5220
5220
|
_html(`</a>${_el_resume($scope4_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
5221
5221
|
_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) })));
|
|
@@ -5223,9 +5223,9 @@ var side_nav_chips_default = _template("t", (input) => {
|
|
|
5223
5223
|
} else {
|
|
5224
5224
|
const $scope6_id = _scope_id();
|
|
5225
5225
|
_html(`<button type=button${_attr_class([
|
|
5226
|
-
"
|
|
5227
|
-
"
|
|
5228
|
-
"
|
|
5226
|
+
"_gx",
|
|
5227
|
+
"_gy",
|
|
5228
|
+
"_gz"
|
|
5229
5229
|
])}${_attr("title", `Dismiss #${pr.number}`)}>`);
|
|
5230
5230
|
icon_xmark_default({ size: 12 });
|
|
5231
5231
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
@@ -5250,10 +5250,10 @@ var side_nav_chips_default = _template("t", (input) => {
|
|
|
5250
5250
|
}, "full_name", $scope1_id, "b", $sg__input_status_repos, $sg__input_status_repos, $sg__input_status_repos__OR__input_status_ports);
|
|
5251
5251
|
_for_of(ports, (p) => {
|
|
5252
5252
|
const $scope5_id = _scope_id();
|
|
5253
|
-
_html(`<span${_attr_class(["_p", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["
|
|
5254
|
-
"
|
|
5255
|
-
"
|
|
5256
|
-
"
|
|
5253
|
+
_html(`<span${_attr_class(["_p", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["_gx", "_gD"])}${_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([
|
|
5254
|
+
"_gx",
|
|
5255
|
+
"_gy",
|
|
5256
|
+
"_gz",
|
|
5257
5257
|
{ ["_n"]: armedPid === p.pid }
|
|
5258
5258
|
])}${armedPid === p.pid ? " title=Kill?" : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
|
|
5259
5259
|
icon_xmark_default({ size: 12 });
|
|
@@ -5323,9 +5323,8 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5323
5323
|
let renameValue = "";
|
|
5324
5324
|
const commitRename = _resume((s) => {
|
|
5325
5325
|
if (renamingId !== s.id) return;
|
|
5326
|
-
const title = renameValue.trim();
|
|
5327
5326
|
renamingId = null;
|
|
5328
|
-
|
|
5327
|
+
input.onRenameSession?.(s, renameValue.trim());
|
|
5329
5328
|
}, "u2", $scope0_id);
|
|
5330
5329
|
const ws$1 = input.workspaces.find((w) => w.id === input.workspaceId);
|
|
5331
5330
|
_if(() => {
|
|
@@ -5336,10 +5335,10 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5336
5335
|
_if(() => {
|
|
5337
5336
|
if (input.rail) {
|
|
5338
5337
|
const $scope2_id = _scope_id();
|
|
5339
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
5338
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_e0"]: input.current }])}${_attr("title", ws$1.name)}>${_escape((input.index ?? 0) + 1)}${_el_resume($scope2_id, "b", _serialize_guard($scope0_reason, 21))}<span${_attr_class([
|
|
5340
5339
|
"_w",
|
|
5341
5340
|
phase[dot],
|
|
5342
|
-
"
|
|
5341
|
+
"_e3"
|
|
5343
5342
|
])}></span>${_el_resume($scope2_id, "c", $sg__input_workspaceId__OR__input_status)}</a>${_el_resume($scope2_id, "a", _serialize_guard($scope0_reason, 4))}`);
|
|
5344
5343
|
_serialize_if($scope0_reason, 16) && _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) })))));
|
|
5345
5344
|
return 0;
|
|
@@ -5347,15 +5346,15 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5347
5346
|
const $scope3_id = _scope_id();
|
|
5348
5347
|
const sessions$1 = input.sessions || [];
|
|
5349
5348
|
const phaseLabel = dot === "working" ? "Working" : dot === "waiting" ? "Needs input" : dot === "idle" ? "Idle" : "Not running";
|
|
5350
|
-
_html(`<section${_attr_class(["
|
|
5351
|
-
["
|
|
5349
|
+
_html(`<section${_attr_class(["_e5", {
|
|
5350
|
+
["_e0"]: input.current,
|
|
5352
5351
|
["_2"]: input.current,
|
|
5353
|
-
["
|
|
5354
|
-
["
|
|
5355
|
-
}])}><div${_attr_class("
|
|
5352
|
+
["_e6"]: input.railPop,
|
|
5353
|
+
["_e4"]: input.page
|
|
5354
|
+
}])}><div${_attr_class("_e7")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class("_e8")}><span${_attr_class([
|
|
5356
5355
|
"_w",
|
|
5357
5356
|
phase[dot],
|
|
5358
|
-
"
|
|
5357
|
+
"_fi"
|
|
5359
5358
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope3_id, "d", $sg__input_workspaceId__OR__input_status)}`);
|
|
5360
5359
|
_if(() => {
|
|
5361
5360
|
if (sessions$1.length === 1) {
|
|
@@ -5368,7 +5367,7 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5368
5367
|
icon_agent_default({
|
|
5369
5368
|
agent: activeAgent(sessions$1[0]),
|
|
5370
5369
|
size: 12,
|
|
5371
|
-
class: "
|
|
5370
|
+
class: "_fc"
|
|
5372
5371
|
});
|
|
5373
5372
|
$si__input_sessions && writeScope($scope12_id, {
|
|
5374
5373
|
_: _scope_with_id($scope3_id),
|
|
@@ -5378,16 +5377,16 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5378
5377
|
}
|
|
5379
5378
|
}, $scope3_id, "e", $sg__input_sessions, $sg__input_sessions, $sg__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page);
|
|
5380
5379
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length === 1 ? sessions$1[0].title || "" : `${sessions$1.length} sessions`;
|
|
5381
|
-
_html(`<span${_attr_class("
|
|
5380
|
+
_html(`<span${_attr_class("_fd")}><span${_attr_class("_fe")}>${_escape(ws$1.name)}${_el_resume($scope3_id, "h", $sg__input_workspaces__OR__input_workspaceId)}</span>`);
|
|
5382
5381
|
_if(() => {
|
|
5383
5382
|
if (input.page && metaText) {
|
|
5384
5383
|
const $scope14_id = _scope_id();
|
|
5385
|
-
_html(`<span${_attr_class("
|
|
5384
|
+
_html(`<span${_attr_class("_fg")}>${_escape(metaText)}${_el_resume($scope14_id, "b", _serialize_guard($scope0_reason, 8))}</span>`);
|
|
5386
5385
|
$si__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page && writeScope($scope14_id, { _: _serialize_if($scope0_reason, 8) && _scope_with_id($scope3_id) });
|
|
5387
5386
|
return 0;
|
|
5388
5387
|
} else if (sessions$1.length === 1 && sessions$1[0].title) {
|
|
5389
5388
|
const $scope13_id = _scope_id();
|
|
5390
|
-
_html(`<span${_attr_class("
|
|
5389
|
+
_html(`<span${_attr_class("_ff")}>${_escape(sessions$1[0].title)}${_el_resume($scope13_id, "b", $sg__input_sessions)}</span>`);
|
|
5391
5390
|
$si__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page && writeScope($scope13_id, { _: $si__input_sessions && _scope_with_id($scope3_id) });
|
|
5392
5391
|
return 1;
|
|
5393
5392
|
}
|
|
@@ -5400,7 +5399,7 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5400
5399
|
"_F",
|
|
5401
5400
|
"_O",
|
|
5402
5401
|
"_H",
|
|
5403
|
-
"
|
|
5402
|
+
"_fh"
|
|
5404
5403
|
])}>${input.current ? "Open" : ""}${_el_resume($scope4_id, "b", _serialize_guard($scope0_reason, 20))}</span>`);
|
|
5405
5404
|
$si__input_workspaces__OR__input_workspaceId__OR__input_rail__OR__input_current__OR__input_page && _subscribe($si__input_current && $input_current__closures, writeScope($scope4_id, {
|
|
5406
5405
|
_: _scope_with_id($scope3_id),
|
|
@@ -5413,7 +5412,7 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5413
5412
|
_if(() => {
|
|
5414
5413
|
if (!input.page) {
|
|
5415
5414
|
const $scope5_id = _scope_id();
|
|
5416
|
-
_html(`<div${_attr_class("
|
|
5415
|
+
_html(`<div${_attr_class("_e9")}>`);
|
|
5417
5416
|
_if(() => {
|
|
5418
5417
|
if (input.onNewSession) {
|
|
5419
5418
|
const $scope6_id = _scope_id();
|
|
@@ -5427,7 +5426,7 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5427
5426
|
_html(`</button>${_el_resume($scope6_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class(sessionPop)}>`);
|
|
5428
5427
|
_for_of([], (agent) => {
|
|
5429
5428
|
const $scope7_id = _scope_id();
|
|
5430
|
-
_html(`<button${_attr_class("
|
|
5429
|
+
_html(`<button${_attr_class("_eZ")}>`);
|
|
5431
5430
|
_set_serialize_reason(12);
|
|
5432
5431
|
const $childScope2 = _peek_scope_id();
|
|
5433
5432
|
icon_agent_default({
|
|
@@ -5462,7 +5461,7 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5462
5461
|
return 0;
|
|
5463
5462
|
}
|
|
5464
5463
|
}, $scope5_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
5465
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["
|
|
5464
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_e1"]: input.managing }])} title="Manage workspace"${input.managing ? " aria-current=page" : ""}>`);
|
|
5466
5465
|
icon_manage_default({ size: 12 });
|
|
5467
5466
|
_html(`</a>${_el_resume($scope5_id, "d", _serialize_guard($scope0_reason, 6))}</div>`);
|
|
5468
5467
|
_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, {
|
|
@@ -5472,17 +5471,17 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5472
5471
|
return 0;
|
|
5473
5472
|
}
|
|
5474
5473
|
}, $scope3_id, "k", $sg__input_page, $sg__input_page, $sg__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page, 0, 1);
|
|
5475
|
-
_html(`</div><div${_attr_class("
|
|
5474
|
+
_html(`</div><div${_attr_class("_fn")}>`);
|
|
5476
5475
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
5477
5476
|
const $scope8_id = _scope_id();
|
|
5478
|
-
_html(`<div${_attr_class(["
|
|
5477
|
+
_html(`<div${_attr_class(["_e_", { ["_e0"]: s.id === input.currentTab }])}>`);
|
|
5479
5478
|
_if(() => {
|
|
5480
5479
|
if (renamingId === s.id) {
|
|
5481
5480
|
const $scope10_id = _scope_id();
|
|
5482
5481
|
_html(`<span${_attr_class([
|
|
5483
5482
|
"_w",
|
|
5484
5483
|
phase[sessionPhase(s.state)],
|
|
5485
|
-
"
|
|
5484
|
+
"_fl"
|
|
5486
5485
|
])}></span>${_el_resume($scope10_id, "a", $sg__input_sessions)}`);
|
|
5487
5486
|
_set_serialize_reason({
|
|
5488
5487
|
1: $sg__input_sessions,
|
|
@@ -5492,17 +5491,17 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5492
5491
|
icon_agent_default({
|
|
5493
5492
|
agent: activeAgent(s),
|
|
5494
5493
|
size: 13,
|
|
5495
|
-
class: "
|
|
5494
|
+
class: "_fp"
|
|
5496
5495
|
});
|
|
5497
5496
|
_html(`<input${_attr_input_value($scope10_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
5498
5497
|
renameValue = _new_renameValue;
|
|
5499
|
-
}, "u0", $scope10_id))}${_attr_class(["_R", "
|
|
5498
|
+
}, "u0", $scope10_id))}${_attr_class(["_R", "_fm"])} aria-label="Session name">${_el_resume($scope10_id, "c")}`);
|
|
5500
5499
|
_script($scope10_id, "u5");
|
|
5501
5500
|
_subscribe($renameValue__closures, writeScope($scope10_id, { b: $si__input_sessions && _existing_scope($childScope3) }));
|
|
5502
5501
|
return 0;
|
|
5503
5502
|
} else {
|
|
5504
5503
|
const $scope9_id = _scope_id();
|
|
5505
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("
|
|
5504
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("_fo")}><span${_attr_class(["_w", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope9_id, "b", $sg__input_sessions)}`);
|
|
5506
5505
|
_set_serialize_reason({
|
|
5507
5506
|
1: $sg__input_sessions,
|
|
5508
5507
|
2: $sg__input_sessions
|
|
@@ -5511,9 +5510,9 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5511
5510
|
icon_agent_default({
|
|
5512
5511
|
agent: activeAgent(s),
|
|
5513
5512
|
size: 13,
|
|
5514
|
-
class: "
|
|
5513
|
+
class: "_fp"
|
|
5515
5514
|
});
|
|
5516
|
-
_html(`<span${_attr_class("
|
|
5515
|
+
_html(`<span${_attr_class("_fj")}>${_escape(s.title || activeAgent(s))}${_el_resume($scope9_id, "e", $sg__input_sessions)}</span></a>${_el_resume($scope9_id, "a", _serialize_guard($scope0_reason, 5))}<div${_attr_class("_fk")}><button${_attr_class(rowIcon)} title="Rename session">`);
|
|
5517
5516
|
icon_edit_default({ size: 12 });
|
|
5518
5517
|
_html(`</button>${_el_resume($scope9_id, "g")}<button${_attr_class([close, { ["_n"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
|
|
5519
5518
|
icon_xmark_default({ size: 12 });
|
|
@@ -5620,7 +5619,7 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5620
5619
|
});
|
|
5621
5620
|
//#endregion
|
|
5622
5621
|
//#region src/tags/icons/icon-folder-plus.marko
|
|
5623
|
-
var icon_folder_plus_default = _template("
|
|
5622
|
+
var icon_folder_plus_default = _template("L", (input) => {
|
|
5624
5623
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
5625
5624
|
const $scope0_id = _scope_id();
|
|
5626
5625
|
_set_serialize_reason({
|
|
@@ -5637,7 +5636,7 @@ var icon_folder_plus_default = _template("K", (input) => {
|
|
|
5637
5636
|
});
|
|
5638
5637
|
//#endregion
|
|
5639
5638
|
//#region src/tags/icons/icon-sidebar-collapse.marko
|
|
5640
|
-
var icon_sidebar_collapse_default = _template("
|
|
5639
|
+
var icon_sidebar_collapse_default = _template("T", (input) => {
|
|
5641
5640
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
5642
5641
|
const $scope0_id = _scope_id();
|
|
5643
5642
|
_set_serialize_reason({
|
|
@@ -5700,25 +5699,25 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5700
5699
|
const isPage = view === "nav";
|
|
5701
5700
|
const otherIds = itemIds.filter((id) => id !== ws.id);
|
|
5702
5701
|
const listIds = isPage ? [ws.id, ...otherIds] : itemIds;
|
|
5703
|
-
_html(`<aside${_attr_class(["
|
|
5704
|
-
["
|
|
5705
|
-
["
|
|
5702
|
+
_html(`<aside${_attr_class(["_c_", {
|
|
5703
|
+
["_c8"]: !navOpen,
|
|
5704
|
+
["_c9"]: isPage
|
|
5706
5705
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
5707
5706
|
_if(() => {
|
|
5708
5707
|
if (isPage) {
|
|
5709
5708
|
const $scope1_id = _scope_id();
|
|
5710
|
-
_html(`<header${_attr_class("
|
|
5709
|
+
_html(`<header${_attr_class("_dc")}><h1${_attr_class("_dd")}>Workspaces</h1><div${_attr_class("_de")}>`);
|
|
5711
5710
|
_if(() => {}, $scope1_id, "d", 1, 1, 1, 0, 1);
|
|
5712
5711
|
_html(`<a href=/settings${_attr_class([
|
|
5713
5712
|
iconBtn$1,
|
|
5714
|
-
"
|
|
5715
|
-
{ ["
|
|
5713
|
+
"_df",
|
|
5714
|
+
{ ["_c5"]: view === "settings" }
|
|
5716
5715
|
])} title=Settings${view === "settings" ? " aria-current=page" : ""}>`);
|
|
5717
5716
|
icon_settings_default({ size: 16 });
|
|
5718
5717
|
_if(() => {
|
|
5719
5718
|
if (input.setupReady === false) {
|
|
5720
5719
|
const $scope10_id = _scope_id();
|
|
5721
|
-
_html(`<span${_attr_class(["_w", "
|
|
5720
|
+
_html(`<span${_attr_class(["_w", "_c7"])} title="Machine setup incomplete"></span>`);
|
|
5722
5721
|
$si__input_setupReady && writeScope($scope10_id, {});
|
|
5723
5722
|
return 0;
|
|
5724
5723
|
}
|
|
@@ -5728,13 +5727,13 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5728
5727
|
return 0;
|
|
5729
5728
|
}
|
|
5730
5729
|
}, $scope0_id, "b", 1, 1, 1, 0, 1);
|
|
5731
|
-
_html(`<div${_attr_class("
|
|
5730
|
+
_html(`<div${_attr_class("_di")}>`);
|
|
5732
5731
|
_for_of(listIds, (wsId) => {
|
|
5733
5732
|
const $scope2_id = _scope_id();
|
|
5734
5733
|
_if(() => {
|
|
5735
5734
|
if (isPage && wsId === ws.id) {
|
|
5736
5735
|
const $scope11_id = _scope_id();
|
|
5737
|
-
_html(`<h2${_attr_class(["_bE", "
|
|
5736
|
+
_html(`<h2${_attr_class(["_bE", "_dg"])}>Current</h2>`);
|
|
5738
5737
|
writeScope($scope11_id, {});
|
|
5739
5738
|
return 0;
|
|
5740
5739
|
}
|
|
@@ -5742,7 +5741,7 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5742
5741
|
_if(() => {
|
|
5743
5742
|
if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
|
|
5744
5743
|
const $scope12_id = _scope_id();
|
|
5745
|
-
_html(`<h2${_attr_class(["_bE", "
|
|
5744
|
+
_html(`<h2${_attr_class(["_bE", "_dg"])}>Other workspaces</h2>`);
|
|
5746
5745
|
writeScope($scope12_id, {});
|
|
5747
5746
|
return 0;
|
|
5748
5747
|
}
|
|
@@ -5826,7 +5825,7 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5826
5825
|
railHover = null;
|
|
5827
5826
|
}, 150);
|
|
5828
5827
|
}, "v6", $scope3_id);
|
|
5829
|
-
_html(`<div${_attr_class("
|
|
5828
|
+
_html(`<div${_attr_class("_dj")}>`);
|
|
5830
5829
|
_for_of(itemIds, (wsId, i) => {
|
|
5831
5830
|
const $scope4_id = _scope_id();
|
|
5832
5831
|
_html("<span>");
|
|
@@ -5877,7 +5876,7 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5877
5876
|
if (railHover) {
|
|
5878
5877
|
const $scope5_id = _scope_id();
|
|
5879
5878
|
const hoverId = railHover.id;
|
|
5880
|
-
_html(`<div${_attr_class(["_1", "
|
|
5879
|
+
_html(`<div${_attr_class(["_1", "_dm"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
5881
5880
|
_set_serialize_reason({
|
|
5882
5881
|
0: 1,
|
|
5883
5882
|
1: 1,
|
|
@@ -5962,7 +5961,7 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5962
5961
|
return 0;
|
|
5963
5962
|
}
|
|
5964
5963
|
}, $scope0_id, "d");
|
|
5965
|
-
_html(`<div${_attr_class("
|
|
5964
|
+
_html(`<div${_attr_class("_dk")}>`);
|
|
5966
5965
|
_if(() => {
|
|
5967
5966
|
if (isPage) {
|
|
5968
5967
|
const $scope7_id = _scope_id();
|
|
@@ -5970,7 +5969,7 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5970
5969
|
"_l",
|
|
5971
5970
|
"_m",
|
|
5972
5971
|
btnLg,
|
|
5973
|
-
"
|
|
5972
|
+
"_dh"
|
|
5974
5973
|
])} title="New workspace"${view === "new" ? " aria-current=page" : ""}>`);
|
|
5975
5974
|
icon_folder_plus_default({ size: 16 });
|
|
5976
5975
|
_html(` New workspace</a>${_el_resume($scope7_id, "a")}`);
|
|
@@ -5992,19 +5991,19 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5992
5991
|
return 1;
|
|
5993
5992
|
}
|
|
5994
5993
|
}, $scope6_id, "a", 1, 1, 1, "</button>", 1);
|
|
5995
|
-
_html(`<div${_attr_class(["_v", "
|
|
5994
|
+
_html(`<div${_attr_class(["_v", "_dl"])}></div>`);
|
|
5996
5995
|
_if(() => {}, $scope6_id, "c", 1, 1, 1, 0, 1);
|
|
5997
|
-
_html(`<a href=/settings${_attr_class([iconBtn$1, { ["
|
|
5996
|
+
_html(`<a href=/settings${_attr_class([iconBtn$1, { ["_c5"]: view === "settings" }])} title=Settings${view === "settings" ? " aria-current=page" : ""}>`);
|
|
5998
5997
|
icon_settings_default({ size: 15 });
|
|
5999
5998
|
_if(() => {
|
|
6000
5999
|
if (input.setupReady === false) {
|
|
6001
6000
|
const $scope15_id = _scope_id();
|
|
6002
|
-
_html(`<span${_attr_class(["_w", "
|
|
6001
|
+
_html(`<span${_attr_class(["_w", "_c7"])} title="Machine setup incomplete"></span>`);
|
|
6003
6002
|
$si__input_setupReady && writeScope($scope15_id, {});
|
|
6004
6003
|
return 0;
|
|
6005
6004
|
}
|
|
6006
6005
|
}, $scope6_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
6007
|
-
_html(`</a>${_el_resume($scope6_id, "d")}<a href=/new${_attr_class([iconBtn$1, { ["
|
|
6006
|
+
_html(`</a>${_el_resume($scope6_id, "d")}<a href=/new${_attr_class([iconBtn$1, { ["_c5"]: view === "new" }])} title="New workspace"${view === "new" ? " aria-current=page" : ""}>`);
|
|
6008
6007
|
icon_folder_plus_default({ size: 16 });
|
|
6009
6008
|
_html(`</a>${_el_resume($scope6_id, "g")}`);
|
|
6010
6009
|
_script($scope6_id, "v15");
|
|
@@ -6066,10 +6065,10 @@ var side_nav_default = _template("v", (input) => {
|
|
|
6066
6065
|
});
|
|
6067
6066
|
var iconBtn = "_X _g";
|
|
6068
6067
|
var sectionCount = "_br _F _G";
|
|
6069
|
-
var content = "
|
|
6070
|
-
var pageMeta = "
|
|
6071
|
-
var pathMeta = "
|
|
6072
|
-
var dangerHint = "
|
|
6068
|
+
var content = "_dn _bh";
|
|
6069
|
+
var pageMeta = "_do _bm";
|
|
6070
|
+
var pathMeta = "_dr _u";
|
|
6071
|
+
var dangerHint = "_dx _P";
|
|
6073
6072
|
//#endregion
|
|
6074
6073
|
//#region src/tags/manage-workspace.marko
|
|
6075
6074
|
var api$2;
|
|
@@ -6180,7 +6179,7 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6180
6179
|
meta: attrTag({ content: _content_resume("l11", () => {
|
|
6181
6180
|
_scope_reason();
|
|
6182
6181
|
const $scope8_id = _scope_id();
|
|
6183
|
-
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
6182
|
+
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_dp")}>${_escape(ws.name)}${_el_resume($scope8_id, "c")}</span>`);
|
|
6184
6183
|
_if(() => {
|
|
6185
6184
|
if (ws.status !== "active") {
|
|
6186
6185
|
const $scope11_id = _scope_id();
|
|
@@ -6189,7 +6188,7 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6189
6188
|
return 0;
|
|
6190
6189
|
}
|
|
6191
6190
|
}, $scope8_id, "d", 1, 1, 1, 0, 1);
|
|
6192
|
-
_html(`<span${_attr_class("
|
|
6191
|
+
_html(`<span${_attr_class("_dq")} 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")}`);
|
|
6193
6192
|
_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) })))));
|
|
6194
6193
|
_resume_branch($scope8_id);
|
|
6195
6194
|
}, $scope0_id) })
|
|
@@ -6232,7 +6231,7 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6232
6231
|
_html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("_bs")}>`);
|
|
6233
6232
|
_for_of(ws.repos, (row) => {
|
|
6234
6233
|
const $scope1_id = _scope_id();
|
|
6235
|
-
_html(`<li${_attr_class("_bu")}><div${_attr_class("_bv")}><span${_attr_class(["_bw", "_u"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_bx")}><a${_attr_class(["_by", "
|
|
6234
|
+
_html(`<li${_attr_class("_bu")}><div${_attr_class("_bv")}><span${_attr_class(["_bw", "_u"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_bx")}><a${_attr_class(["_by", "_dt"])}${_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")}`);
|
|
6236
6235
|
_if(() => {
|
|
6237
6236
|
if (row.base_branch !== row.default_branch) {
|
|
6238
6237
|
const $scope12_id = _scope_id();
|
|
@@ -6296,7 +6295,7 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6296
6295
|
return 0;
|
|
6297
6296
|
}
|
|
6298
6297
|
}, $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
6299
|
-
_html(`<div${_attr_class("
|
|
6298
|
+
_html(`<div${_attr_class("_ds")}>`);
|
|
6300
6299
|
const $childScope3 = _peek_scope_id();
|
|
6301
6300
|
let refreshCatalog = repo_picker_default({
|
|
6302
6301
|
exclude: inWorkspace,
|
|
@@ -6326,7 +6325,7 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6326
6325
|
_html(`<span${_attr_class("_bx")}>`);
|
|
6327
6326
|
_for_of(p.ports, (port) => {
|
|
6328
6327
|
const $scope19_id = _scope_id();
|
|
6329
|
-
_html(`<button${_attr_class(["_p", "
|
|
6328
|
+
_html(`<button${_attr_class(["_p", "_du"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope19_id, "b")}</button>${_el_resume($scope19_id, "a")}`);
|
|
6330
6329
|
_script($scope19_id, "l15");
|
|
6331
6330
|
writeScope($scope19_id, { d: port });
|
|
6332
6331
|
}, (x) => String(x), $scope18_id, "a", 1, 1, 1, "</span>", 1);
|
|
@@ -6348,7 +6347,7 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6348
6347
|
return 0;
|
|
6349
6348
|
}
|
|
6350
6349
|
}, $scope0_id, "v", 1, 1, 1, 0, 1);
|
|
6351
|
-
_html(`<section${_attr_class(["_bp", "
|
|
6350
|
+
_html(`<section${_attr_class(["_bp", "_dv"])}><div${_attr_class("_bq")}><h2${_attr_class("_bE")}>Workspace</h2></div><div${_attr_class("_dw")}>`);
|
|
6352
6351
|
_if(() => {
|
|
6353
6352
|
if (ws.status === "active") {
|
|
6354
6353
|
const $scope4_id = _scope_id();
|
|
@@ -6449,15 +6448,15 @@ var term_find_default = _template("w", (input) => {
|
|
|
6449
6448
|
const canStep = hasQuery && open;
|
|
6450
6449
|
const keybar = input.placement === "keybar";
|
|
6451
6450
|
_html(`<div${_attr_class([
|
|
6452
|
-
"
|
|
6453
|
-
keybar ? "
|
|
6454
|
-
!open && "
|
|
6455
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
6451
|
+
"_eR",
|
|
6452
|
+
keybar ? "_eT" : "_eS",
|
|
6453
|
+
!open && "_eV"
|
|
6454
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_eM", keybar ? "_eU" : "_eO"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
6456
6455
|
if (!open) return;
|
|
6457
6456
|
query = v;
|
|
6458
6457
|
live.query = v;
|
|
6459
6458
|
run(0);
|
|
6460
|
-
}, "w0", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
6459
|
+
}, "w0", $scope0_id))}${_attr_class([findInput, keybar && "_eW"])} 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 && "_eX"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↑</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_eX"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↓</button>${_el_resume($scope0_id, "e")}<button type=button${_attr_class([findIconBtn, keybar && "_eX"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
6461
6460
|
icon_xmark_default({ size: 14 });
|
|
6462
6461
|
_html(`</button>${_el_resume($scope0_id, "f")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
6463
6462
|
_script($scope0_id, "w4");
|
|
@@ -6485,7 +6484,7 @@ var term_find_default = _template("w", (input) => {
|
|
|
6485
6484
|
});
|
|
6486
6485
|
_resume_branch($scope0_id);
|
|
6487
6486
|
});
|
|
6488
|
-
_template("
|
|
6487
|
+
_template("W", (input) => {
|
|
6489
6488
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6490
6489
|
const $scope0_id = _scope_id();
|
|
6491
6490
|
_set_serialize_reason({
|
|
@@ -6500,7 +6499,50 @@ _template("V", (input) => {
|
|
|
6500
6499
|
});
|
|
6501
6500
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
6502
6501
|
});
|
|
6503
|
-
|
|
6502
|
+
//#endregion
|
|
6503
|
+
//#region src/tags/usage-pcts.marko
|
|
6504
|
+
function pctText(pct) {
|
|
6505
|
+
const rounded = Math.round(pct);
|
|
6506
|
+
return rounded !== pct && (rounded === 100 || rounded === 0) ? `${pct.toFixed(1)}%` : `${rounded}%`;
|
|
6507
|
+
}
|
|
6508
|
+
_template("A", (input) => {
|
|
6509
|
+
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);
|
|
6510
|
+
const $scope0_id = _scope_id();
|
|
6511
|
+
const agent = input.agent;
|
|
6512
|
+
const windows = agent.windows || [];
|
|
6513
|
+
_if(() => {
|
|
6514
|
+
if (windows.length) {
|
|
6515
|
+
const $scope1_id = _scope_id();
|
|
6516
|
+
_html(`<span${_attr_class([
|
|
6517
|
+
"_eF",
|
|
6518
|
+
input.class,
|
|
6519
|
+
{ ["_eG"]: agent.stale_seconds != null }
|
|
6520
|
+
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
6521
|
+
_for_of(windows, (win$1, i) => {
|
|
6522
|
+
const $scope2_id = _scope_id();
|
|
6523
|
+
_if(() => {
|
|
6524
|
+
if (i) {
|
|
6525
|
+
const $scope3_id = _scope_id();
|
|
6526
|
+
_html(`<span${_attr_class("_eK")} aria-hidden=true>·</span>`);
|
|
6527
|
+
$si__input_agent && writeScope($scope3_id, {});
|
|
6528
|
+
return 0;
|
|
6529
|
+
}
|
|
6530
|
+
}, $scope2_id, "a", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
6531
|
+
_html(`<span${_attr_class("_eH")}><span${_attr_class("_eI")}>${_escape(win$1.window)}${_el_resume($scope2_id, "d", $sg__input_agent)}</span><span${_attr_class(["_eJ", win$1.used_percent >= 90 ? "_cY" : win$1.used_percent >= 70 ? "_cX" : win$1.used_percent >= 40 ? "_cW" : "_cV"])}>${_escape(pctText(win$1.used_percent))}${_el_resume($scope2_id, "f", $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
6532
|
+
$si__input_agent && writeScope($scope2_id, {});
|
|
6533
|
+
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>");
|
|
6534
|
+
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
6535
|
+
return 0;
|
|
6536
|
+
}
|
|
6537
|
+
}, $scope0_id, "a", $sg__input_agent__OR__input_class, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
6538
|
+
$si__input_agent__OR__input_class && writeScope($scope0_id, {
|
|
6539
|
+
e: $si__input_agent && input.class,
|
|
6540
|
+
h: agent?.stale_seconds,
|
|
6541
|
+
i: $si__input_agent && agent?.note,
|
|
6542
|
+
j: $si__input_agent && windows
|
|
6543
|
+
});
|
|
6544
|
+
});
|
|
6545
|
+
_template("J", (input) => {
|
|
6504
6546
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6505
6547
|
const $scope0_id = _scope_id();
|
|
6506
6548
|
_set_serialize_reason({
|
|
@@ -6515,7 +6557,7 @@ _template("I", (input) => {
|
|
|
6515
6557
|
});
|
|
6516
6558
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
6517
6559
|
});
|
|
6518
|
-
_template("
|
|
6560
|
+
_template("N", (input) => {
|
|
6519
6561
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6520
6562
|
const $scope0_id = _scope_id();
|
|
6521
6563
|
_set_serialize_reason({
|
|
@@ -6530,7 +6572,7 @@ _template("M", (input) => {
|
|
|
6530
6572
|
});
|
|
6531
6573
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
6532
6574
|
});
|
|
6533
|
-
_template("
|
|
6575
|
+
_template("H", (input) => {
|
|
6534
6576
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6535
6577
|
const $scope0_id = _scope_id();
|
|
6536
6578
|
_set_serialize_reason({
|
|
@@ -6551,28 +6593,29 @@ var REPEAT_DELAY = 400;
|
|
|
6551
6593
|
var REPEAT_EVERY = 55;
|
|
6552
6594
|
var term_default = _template("x", (input) => {
|
|
6553
6595
|
const $scope0_reason = _scope_reason();
|
|
6554
|
-
_serialize_guard($scope0_reason,
|
|
6596
|
+
_serialize_guard($scope0_reason, 5);
|
|
6555
6597
|
_serialize_guard($scope0_reason, 0);
|
|
6556
6598
|
_serialize_guard($scope0_reason, 1);
|
|
6557
|
-
_serialize_guard($scope0_reason, 9);
|
|
6558
6599
|
_serialize_guard($scope0_reason, 10);
|
|
6559
|
-
const $si__input_sessions = _serialize_if($scope0_reason,
|
|
6600
|
+
const $si__input_sessions = _serialize_if($scope0_reason, 10);
|
|
6560
6601
|
_serialize_guard($scope0_reason, 2);
|
|
6561
|
-
_serialize_guard($scope0_reason,
|
|
6562
|
-
const $si__input_onRenameSession = _serialize_if($scope0_reason, 10);
|
|
6602
|
+
_serialize_guard($scope0_reason, 4);
|
|
6563
6603
|
_serialize_guard($scope0_reason, 11);
|
|
6564
|
-
|
|
6565
|
-
|
|
6566
|
-
_serialize_guard($scope0_reason, 8);
|
|
6604
|
+
_serialize_guard($scope0_reason, 7);
|
|
6605
|
+
const $si__input_sessionId = _serialize_if($scope0_reason, 8), $si__input_onRenameSession = _serialize_if($scope0_reason, 11);
|
|
6567
6606
|
_serialize_guard($scope0_reason, 12);
|
|
6568
|
-
const $
|
|
6607
|
+
const $si__input_agents = _serialize_if($scope0_reason, 12), $si__input_mode = _serialize_if($scope0_reason, 5), $si__input_agent__OR__input_sessionState = _serialize_if($scope0_reason, 1);
|
|
6608
|
+
_serialize_guard($scope0_reason, 3);
|
|
6609
|
+
_serialize_guard($scope0_reason, 9);
|
|
6610
|
+
_serialize_guard($scope0_reason, 13);
|
|
6611
|
+
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);
|
|
6569
6612
|
const $scope0_id = _scope_id();
|
|
6570
|
-
_hoist($scope0_id, "
|
|
6613
|
+
_hoist($scope0_id, "x21");
|
|
6571
6614
|
const $findOpen__closures = /* @__PURE__ */ new Set();
|
|
6572
6615
|
const $findTick__closures = /* @__PURE__ */ new Set();
|
|
6573
6616
|
const $input_onCloseSession__closures = /* @__PURE__ */ new Set();
|
|
6574
|
-
const $input_onRenameSession__closures = /* @__PURE__ */ new Set();
|
|
6575
6617
|
const $input_sessionId__closures = /* @__PURE__ */ new Set();
|
|
6618
|
+
const $input_onRenameSession__closures = /* @__PURE__ */ new Set();
|
|
6576
6619
|
const $input_sessions__closures = /* @__PURE__ */ new Set();
|
|
6577
6620
|
const $input_sessionState__closures = /* @__PURE__ */ new Set();
|
|
6578
6621
|
const $input_agents__closures = /* @__PURE__ */ new Set();
|
|
@@ -6730,7 +6773,7 @@ var term_default = _template("x", (input) => {
|
|
|
6730
6773
|
trapOpen = true;
|
|
6731
6774
|
}
|
|
6732
6775
|
}, "x14", $scope0_id);
|
|
6733
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
6776
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_dy")}><div${_attr_class("_dz")}></div>${_el_resume($scope0_id, "b")}`);
|
|
6734
6777
|
_if(() => {
|
|
6735
6778
|
if (findOpen) {
|
|
6736
6779
|
const $scope12_id = _scope_id();
|
|
@@ -6757,7 +6800,7 @@ var term_default = _template("x", (input) => {
|
|
|
6757
6800
|
_if(() => {
|
|
6758
6801
|
if (uploading) {
|
|
6759
6802
|
const $scope19_id = _scope_id();
|
|
6760
|
-
_html(`<div${_attr_class("
|
|
6803
|
+
_html(`<div${_attr_class("_dF")}>uploading…</div>`);
|
|
6761
6804
|
writeScope($scope19_id, {});
|
|
6762
6805
|
return 0;
|
|
6763
6806
|
}
|
|
@@ -6765,7 +6808,7 @@ var term_default = _template("x", (input) => {
|
|
|
6765
6808
|
_if(() => {
|
|
6766
6809
|
if (copiedFlash) {
|
|
6767
6810
|
const $scope20_id = _scope_id();
|
|
6768
|
-
_html(`<div${_attr_class("
|
|
6811
|
+
_html(`<div${_attr_class("_dE")}>Copied</div>`);
|
|
6769
6812
|
writeScope($scope20_id, {});
|
|
6770
6813
|
return 0;
|
|
6771
6814
|
}
|
|
@@ -6774,18 +6817,18 @@ var term_default = _template("x", (input) => {
|
|
|
6774
6817
|
_if(() => {
|
|
6775
6818
|
if (trapOpen) {
|
|
6776
6819
|
const $scope11_id = _scope_id();
|
|
6777
|
-
_html(`<div${_attr_class("
|
|
6778
|
-
_script($scope11_id, "x24");
|
|
6820
|
+
_html(`<div${_attr_class("_dG")}><div${_attr_class("_dH")}><p${_attr_class("_eb")}>Long-press the field below and choose Paste</p><input placeholder="Paste here…">${_el_resume($scope11_id, "d")}<button${_attr_class("_l")}>Cancel</button>${_el_resume($scope11_id, "e")}</div>${_el_resume($scope11_id, "b")}</div>${_el_resume($scope11_id, "a")}`);
|
|
6779
6821
|
_script($scope11_id, "x25");
|
|
6822
|
+
_script($scope11_id, "x26");
|
|
6780
6823
|
writeScope($scope11_id, {});
|
|
6781
6824
|
return 0;
|
|
6782
6825
|
}
|
|
6783
6826
|
}, $scope0_id, "g", 1, 1, 1, 0, 1);
|
|
6784
6827
|
_html(`</div>${_el_resume($scope0_id, "a")}`);
|
|
6785
6828
|
_if(() => {}, $scope0_id, "h", 1, 1, 1, 0, 1);
|
|
6786
|
-
_script($scope0_id, "x40");
|
|
6787
6829
|
_script($scope0_id, "x41");
|
|
6788
6830
|
_script($scope0_id, "x42");
|
|
6831
|
+
_script($scope0_id, "x43");
|
|
6789
6832
|
writeScope($scope0_id, {
|
|
6790
6833
|
k: input.mode,
|
|
6791
6834
|
l: input.reviewFindOpen,
|
|
@@ -6837,8 +6880,8 @@ var term_default = _template("x", (input) => {
|
|
|
6837
6880
|
br: $findOpen__closures,
|
|
6838
6881
|
bt: $findTick__closures,
|
|
6839
6882
|
bh: $si__input_onCloseSession && $input_onCloseSession__closures,
|
|
6840
|
-
bl: $si__input_onRenameSession && $input_onRenameSession__closures,
|
|
6841
6883
|
bi: $si__input_sessionId && $input_sessionId__closures,
|
|
6884
|
+
bl: $si__input_onRenameSession && $input_onRenameSession__closures,
|
|
6842
6885
|
bk: $si__input_sessions && $input_sessions__closures,
|
|
6843
6886
|
bf: $si__input_sessionState && $input_sessionState__closures,
|
|
6844
6887
|
bm: $si__input_agents && $input_agents__closures,
|
|
@@ -6852,7 +6895,7 @@ var term_default = _template("x", (input) => {
|
|
|
6852
6895
|
//#region src/tags/work-view.marko
|
|
6853
6896
|
var api$1;
|
|
6854
6897
|
var isTransientApiError$1;
|
|
6855
|
-
var work_view_default = _template("
|
|
6898
|
+
var work_view_default = _template("B", (input) => {
|
|
6856
6899
|
const $scope0_reason = _scope_reason(), $sg__input_workspace = _serialize_guard($scope0_reason, 4), $sg__input_agents = _serialize_guard($scope0_reason, 10), $sg__input_allWorkspaces = _serialize_guard($scope0_reason, 9), $si__input_workspace = _serialize_if($scope0_reason, 4), $si__input_active = _serialize_if($scope0_reason, 6), $si__input_agents = _serialize_if($scope0_reason, 10), $si__input_preferred = _serialize_if($scope0_reason, 7);
|
|
6857
6900
|
const $scope0_id = _scope_id();
|
|
6858
6901
|
const $error__closures = /* @__PURE__ */ new Set();
|
|
@@ -6877,16 +6920,16 @@ var work_view_default = _template("A", (input) => {
|
|
|
6877
6920
|
let DiffView = null;
|
|
6878
6921
|
const loadDiffView = _resume(() => {
|
|
6879
6922
|
if (DiffView) return;
|
|
6880
|
-
import("./
|
|
6923
|
+
import("./_CmWodq4J.js").then((m) => {
|
|
6881
6924
|
DiffView = m.default;
|
|
6882
6925
|
});
|
|
6883
|
-
}, "
|
|
6926
|
+
}, "B6", $scope0_id);
|
|
6884
6927
|
let manageMounted = input.initialView === "manage";
|
|
6885
6928
|
let settingsMounted = input.initialView === "settings";
|
|
6886
6929
|
let newMounted = input.initialView === "new";
|
|
6887
6930
|
let reviewFindOpen = false;
|
|
6888
6931
|
let reviewFindTick = 0;
|
|
6889
|
-
const reviewFindFocus = { focus: _resume(function() {}, "
|
|
6932
|
+
const reviewFindFocus = { focus: _resume(function() {}, "B0") };
|
|
6890
6933
|
let focusPr = input.initialPr ?? "";
|
|
6891
6934
|
let focusNonce = 0;
|
|
6892
6935
|
let reviewScope = input.initialScope ?? null;
|
|
@@ -6904,22 +6947,22 @@ var work_view_default = _template("A", (input) => {
|
|
|
6904
6947
|
loadDiffView();
|
|
6905
6948
|
diffMounted = true;
|
|
6906
6949
|
view = "diff";
|
|
6907
|
-
}, "
|
|
6950
|
+
}, "B7", $scope0_id);
|
|
6908
6951
|
const openManage = _resume(() => {
|
|
6909
6952
|
manageMounted = true;
|
|
6910
6953
|
view = "manage";
|
|
6911
|
-
}, "
|
|
6954
|
+
}, "B8", $scope0_id);
|
|
6912
6955
|
const openSettings = _resume(() => {
|
|
6913
6956
|
settingsMounted = true;
|
|
6914
6957
|
view = "settings";
|
|
6915
|
-
}, "
|
|
6958
|
+
}, "B9", $scope0_id);
|
|
6916
6959
|
const toggleNav = _resume(() => {
|
|
6917
6960
|
view = view === "nav" ? "term" : "nav";
|
|
6918
|
-
}, "
|
|
6961
|
+
}, "B10", $scope0_id);
|
|
6919
6962
|
const toggleDiff = _resume(() => {
|
|
6920
6963
|
if (view === "diff") view = "term";
|
|
6921
6964
|
else openDiff();
|
|
6922
|
-
}, "
|
|
6965
|
+
}, "B11", $scope0_id);
|
|
6923
6966
|
const shownSessions = sessions ?? input.allStatus?.[ws.id]?.sessions ?? null;
|
|
6924
6967
|
const curTab = (() => {
|
|
6925
6968
|
if (tab && shownSessions?.some((s) => s.id === tab)) return tab;
|
|
@@ -6936,10 +6979,10 @@ var work_view_default = _template("A", (input) => {
|
|
|
6936
6979
|
reviewFindOpen = true;
|
|
6937
6980
|
reviewFindTick++;
|
|
6938
6981
|
reviewFindFocus.focus();
|
|
6939
|
-
}, "
|
|
6982
|
+
}, "B12", $scope0_id);
|
|
6940
6983
|
const exitCreate = _resume(() => {
|
|
6941
6984
|
if (view === "new") view = "term";
|
|
6942
|
-
}, "
|
|
6985
|
+
}, "B13", $scope0_id);
|
|
6943
6986
|
const applyView = _resume((v) => {
|
|
6944
6987
|
if (v.view === "diff") {
|
|
6945
6988
|
if (v.scope !== void 0) reviewScope = v.scope ?? null;
|
|
@@ -6954,7 +6997,7 @@ var work_view_default = _template("A", (input) => {
|
|
|
6954
6997
|
}
|
|
6955
6998
|
view = "term";
|
|
6956
6999
|
}
|
|
6957
|
-
}, "
|
|
7000
|
+
}, "B14", $scope0_id);
|
|
6958
7001
|
const createSession = _resume(async (agent, select) => {
|
|
6959
7002
|
spawning = true;
|
|
6960
7003
|
try {
|
|
@@ -6975,7 +7018,7 @@ var work_view_default = _template("A", (input) => {
|
|
|
6975
7018
|
} finally {
|
|
6976
7019
|
spawning = false;
|
|
6977
7020
|
}
|
|
6978
|
-
}, "
|
|
7021
|
+
}, "B15", $scope0_id);
|
|
6979
7022
|
const loadMem = {
|
|
6980
7023
|
wanted: false,
|
|
6981
7024
|
run: void 0
|
|
@@ -7001,11 +7044,11 @@ var work_view_default = _template("A", (input) => {
|
|
|
7001
7044
|
if (isTransientApiError$1(err)) return;
|
|
7002
7045
|
error = String(err.message || err);
|
|
7003
7046
|
}
|
|
7004
|
-
}, "
|
|
7047
|
+
}, "B16", $scope0_id);
|
|
7005
7048
|
const loadSessions = _resume((autoCreate) => {
|
|
7006
7049
|
if (autoCreate) loadMem.wanted = true;
|
|
7007
7050
|
return (loadMem.run ??= coalesce(loadBody))();
|
|
7008
|
-
}, "
|
|
7051
|
+
}, "B17", $scope0_id);
|
|
7009
7052
|
const closeSession = _resume(async (id) => {
|
|
7010
7053
|
try {
|
|
7011
7054
|
sessions = (sessions || []).filter((s) => s.id !== id);
|
|
@@ -7015,20 +7058,22 @@ var work_view_default = _template("A", (input) => {
|
|
|
7015
7058
|
error = `Close session failed: ${String(err.message || err)}`;
|
|
7016
7059
|
loadSessions(false);
|
|
7017
7060
|
}
|
|
7018
|
-
}, "
|
|
7061
|
+
}, "B18", $scope0_id);
|
|
7019
7062
|
const renameSession = _resume(async (id, title) => {
|
|
7020
7063
|
title = title.trim();
|
|
7021
|
-
|
|
7064
|
+
const cur = (sessions || []).find((s) => s.id === id);
|
|
7065
|
+
if (cur && title === cur.agent) title = "";
|
|
7066
|
+
if (cur && (cur.title || "") === title) return;
|
|
7022
7067
|
sessions = (sessions || []).map((s) => s.id === id ? {
|
|
7023
7068
|
...s,
|
|
7024
|
-
title
|
|
7069
|
+
title: title || null
|
|
7025
7070
|
} : s);
|
|
7026
7071
|
await fetch(`/api/sessions/${id}`, {
|
|
7027
7072
|
method: "PATCH",
|
|
7028
7073
|
headers: { "content-type": "application/json" },
|
|
7029
7074
|
body: JSON.stringify({ title })
|
|
7030
7075
|
});
|
|
7031
|
-
}, "
|
|
7076
|
+
}, "B19", $scope0_id);
|
|
7032
7077
|
const newSession = _resume(async (wsId, agent) => {
|
|
7033
7078
|
if (wsId === ws.id) {
|
|
7034
7079
|
const session = await createSession(agent, true);
|
|
@@ -7046,7 +7091,7 @@ var work_view_default = _template("A", (input) => {
|
|
|
7046
7091
|
} catch (err) {
|
|
7047
7092
|
error = String(err.message || err);
|
|
7048
7093
|
}
|
|
7049
|
-
}, "
|
|
7094
|
+
}, "B20", $scope0_id);
|
|
7050
7095
|
const onKey = _resume((e) => {
|
|
7051
7096
|
const target = e.target;
|
|
7052
7097
|
const typing = !!target && !target.closest(".xterm") && (target.tagName === "INPUT" || target.tagName === "TEXTAREA" || target.tagName === "SELECT" || target.isContentEditable);
|
|
@@ -7060,8 +7105,8 @@ var work_view_default = _template("A", (input) => {
|
|
|
7060
7105
|
e.preventDefault();
|
|
7061
7106
|
toggleDiff();
|
|
7062
7107
|
}
|
|
7063
|
-
}, "
|
|
7064
|
-
_html(`<div${_attr_class(["
|
|
7108
|
+
}, "B21", $scope0_id);
|
|
7109
|
+
_html(`<div${_attr_class(["_ci", { ["_ch"]: view === "nav" }])}><div${_attr_class("_cj")}>`);
|
|
7065
7110
|
_set_serialize_reason({
|
|
7066
7111
|
0: _serialize_guard($scope0_reason, 0),
|
|
7067
7112
|
1: _serialize_guard($scope0_reason, 1),
|
|
@@ -7087,45 +7132,45 @@ var work_view_default = _template("A", (input) => {
|
|
|
7087
7132
|
tab: curTab,
|
|
7088
7133
|
tabChange: _resume(function(id) {
|
|
7089
7134
|
tab = id;
|
|
7090
|
-
}, "
|
|
7135
|
+
}, "B22", $scope0_id),
|
|
7091
7136
|
view,
|
|
7092
7137
|
viewChange: _resume((_new_view) => {
|
|
7093
7138
|
view = _new_view;
|
|
7094
|
-
}, "
|
|
7139
|
+
}, "B23", $scope0_id),
|
|
7095
7140
|
allWorkspaces: input.allWorkspaces,
|
|
7096
7141
|
allStatus: input.allStatus,
|
|
7097
7142
|
agents: input.agents,
|
|
7098
7143
|
onError: _resume(function(message) {
|
|
7099
7144
|
error = message;
|
|
7100
|
-
}, "
|
|
7145
|
+
}, "B24", $scope0_id),
|
|
7101
7146
|
onSelectWorkspace: _resume(function(id) {
|
|
7102
7147
|
exitCreate();
|
|
7103
7148
|
input.onSelectWorkspace?.(id);
|
|
7104
|
-
}, "
|
|
7149
|
+
}, "B25", $scope0_id),
|
|
7105
7150
|
onNewSession: _resume(function(wsId, agent) {
|
|
7106
7151
|
exitCreate();
|
|
7107
7152
|
newSession(wsId, agent);
|
|
7108
|
-
}, "
|
|
7153
|
+
}, "B26", $scope0_id),
|
|
7109
7154
|
onCloseSession: _resume(function(id) {
|
|
7110
7155
|
closeSession(id);
|
|
7111
|
-
}, "
|
|
7156
|
+
}, "B27", $scope0_id),
|
|
7112
7157
|
onRenameSession: _resume(function(s, title) {
|
|
7113
7158
|
renameSession(s.id, title);
|
|
7114
|
-
}, "
|
|
7159
|
+
}, "B28", $scope0_id),
|
|
7115
7160
|
onReviewOpened: _resume(function(pr) {
|
|
7116
7161
|
exitCreate();
|
|
7117
7162
|
openDiff(pr);
|
|
7118
|
-
}, "
|
|
7163
|
+
}, "B29", $scope0_id)
|
|
7119
7164
|
});
|
|
7120
|
-
_html(`</div><div${_attr_class("
|
|
7165
|
+
_html(`</div><div${_attr_class("_ck")}>`);
|
|
7121
7166
|
_if(() => {
|
|
7122
7167
|
if (error) {
|
|
7123
7168
|
const $scope8_id = _scope_id();
|
|
7124
7169
|
toast_default({
|
|
7125
7170
|
onDismiss: _resume(function() {
|
|
7126
7171
|
error = null;
|
|
7127
|
-
}, "
|
|
7128
|
-
content: _content_resume("
|
|
7172
|
+
}, "B30", $scope8_id),
|
|
7173
|
+
content: _content_resume("B47", () => {
|
|
7129
7174
|
_scope_reason();
|
|
7130
7175
|
const $scope9_id = _scope_id();
|
|
7131
7176
|
_html(`${_escape(error)}${_el_resume($scope9_id, "a")}`);
|
|
@@ -7155,23 +7200,23 @@ var work_view_default = _template("A", (input) => {
|
|
|
7155
7200
|
scope: reviewScope,
|
|
7156
7201
|
onScopeChange: _resume(function(s) {
|
|
7157
7202
|
reviewScope = s === "committed" ? null : s;
|
|
7158
|
-
}, "
|
|
7203
|
+
}, "B1", $scope1_id),
|
|
7159
7204
|
onFileChange: _resume(function(f) {
|
|
7160
7205
|
reviewFile = f;
|
|
7161
|
-
}, "
|
|
7206
|
+
}, "B2", $scope1_id),
|
|
7162
7207
|
findOpen: reviewFindOpen,
|
|
7163
7208
|
findOpenChange: _resume((_new_reviewFindOpen) => {
|
|
7164
7209
|
reviewFindOpen = _new_reviewFindOpen;
|
|
7165
|
-
}, "
|
|
7210
|
+
}, "B3", $scope1_id),
|
|
7166
7211
|
findTick: reviewFindTick,
|
|
7167
7212
|
findFocusRef: reviewFindFocus,
|
|
7168
7213
|
onSent: _resume(function(sessionId) {
|
|
7169
7214
|
tab = sessionId;
|
|
7170
7215
|
view = "term";
|
|
7171
|
-
}, "
|
|
7216
|
+
}, "B4", $scope1_id),
|
|
7172
7217
|
onExit: _resume(function() {
|
|
7173
7218
|
view = "term";
|
|
7174
|
-
}, "
|
|
7219
|
+
}, "B5", $scope1_id)
|
|
7175
7220
|
});
|
|
7176
7221
|
_show_end($scope1_id, "d", $show);
|
|
7177
7222
|
writeScope($scope1_id, {});
|
|
@@ -7189,13 +7234,13 @@ var work_view_default = _template("A", (input) => {
|
|
|
7189
7234
|
workspace: ws,
|
|
7190
7235
|
workspaceChange: _resume(function(next) {
|
|
7191
7236
|
input.onWorkspaceChange?.(next);
|
|
7192
|
-
}, "
|
|
7237
|
+
}, "B31", $scope2_id),
|
|
7193
7238
|
onExit: _resume(function() {
|
|
7194
7239
|
view = "term";
|
|
7195
|
-
}, "
|
|
7240
|
+
}, "B32", $scope2_id),
|
|
7196
7241
|
onDeleted: _resume(function() {
|
|
7197
7242
|
input.onWorkspaceDeleted?.(ws.id);
|
|
7198
|
-
}, "
|
|
7243
|
+
}, "B33", $scope2_id)
|
|
7199
7244
|
});
|
|
7200
7245
|
_show_end($scope2_id, "d", $show2);
|
|
7201
7246
|
writeScope($scope2_id, { b: _serialize_if($scope0_reason, 2) && _existing_scope($childScope2) });
|
|
@@ -7220,17 +7265,17 @@ var work_view_default = _template("A", (input) => {
|
|
|
7220
7265
|
backHref: `/w/${ws.id}`,
|
|
7221
7266
|
onExit: _resume(function() {
|
|
7222
7267
|
view = "term";
|
|
7223
|
-
}, "
|
|
7268
|
+
}, "B34", $scope3_id),
|
|
7224
7269
|
setup: input.setup,
|
|
7225
7270
|
setupChange: _resume(function(s) {
|
|
7226
7271
|
input.onSetupChange?.(s);
|
|
7227
|
-
}, "
|
|
7272
|
+
}, "B35", $scope3_id),
|
|
7228
7273
|
preferredChange: _resume(function(agent) {
|
|
7229
7274
|
input.onPreferredChange?.(agent);
|
|
7230
|
-
}, "
|
|
7275
|
+
}, "B36", $scope3_id),
|
|
7231
7276
|
agentsChange: _resume(function(agents) {
|
|
7232
7277
|
input.onAgentsChange?.(agents);
|
|
7233
|
-
}, "
|
|
7278
|
+
}, "B37", $scope3_id)
|
|
7234
7279
|
});
|
|
7235
7280
|
_show_end($scope3_id, "d", $show3);
|
|
7236
7281
|
writeScope($scope3_id, { b: _serialize_if($scope0_reason, 3) && _existing_scope($childScope3) });
|
|
@@ -7253,28 +7298,28 @@ var work_view_default = _template("A", (input) => {
|
|
|
7253
7298
|
backHref: `/w/${ws.id}`,
|
|
7254
7299
|
onExit: _resume(function() {
|
|
7255
7300
|
exitCreate();
|
|
7256
|
-
}, "
|
|
7301
|
+
}, "B38", $scope4_id),
|
|
7257
7302
|
onCreate: _resume(function(ws) {
|
|
7258
7303
|
input.onCreated?.(ws);
|
|
7259
|
-
}, "
|
|
7304
|
+
}, "B39", $scope4_id),
|
|
7260
7305
|
onRestore: _resume(function(next) {
|
|
7261
7306
|
input.onWorkspaceChange?.(next);
|
|
7262
7307
|
input.onSelectWorkspace?.(next.id);
|
|
7263
7308
|
exitCreate();
|
|
7264
|
-
}, "
|
|
7309
|
+
}, "B40", $scope4_id)
|
|
7265
7310
|
});
|
|
7266
7311
|
_show_end($scope4_id, "d", $show4);
|
|
7267
7312
|
writeScope($scope4_id, { b: _existing_scope($childScope4) });
|
|
7268
7313
|
return 0;
|
|
7269
7314
|
}
|
|
7270
7315
|
}, $scope0_id, "i");
|
|
7271
|
-
_html(`<div${_attr_class(["
|
|
7316
|
+
_html(`<div${_attr_class(["_cm", { ["_cl"]: view !== "term" }])}>`);
|
|
7272
7317
|
_if(() => {
|
|
7273
7318
|
if (shownSessions) {
|
|
7274
7319
|
const $scope5_id = _scope_id();
|
|
7275
7320
|
_for_of(shownSessions, (s) => {
|
|
7276
7321
|
const $scope6_id = _scope_id();
|
|
7277
|
-
_html(`<div${_attr_class(["
|
|
7322
|
+
_html(`<div${_attr_class(["_cn", { ["_co"]: s.id === curTab }])}>`);
|
|
7278
7323
|
_set_serialize_reason({
|
|
7279
7324
|
0: 1,
|
|
7280
7325
|
1: 1,
|
|
@@ -7287,8 +7332,9 @@ var work_view_default = _template("A", (input) => {
|
|
|
7287
7332
|
8: 1,
|
|
7288
7333
|
9: 1,
|
|
7289
7334
|
10: 1,
|
|
7290
|
-
11:
|
|
7291
|
-
12: $
|
|
7335
|
+
11: 1,
|
|
7336
|
+
12: $sg__input_agents,
|
|
7337
|
+
13: $sg__input_workspace
|
|
7292
7338
|
});
|
|
7293
7339
|
const $childScope5 = _peek_scope_id();
|
|
7294
7340
|
term_default({
|
|
@@ -7302,26 +7348,26 @@ var work_view_default = _template("A", (input) => {
|
|
|
7302
7348
|
onNewSession: _resume(function(agent) {
|
|
7303
7349
|
view = "term";
|
|
7304
7350
|
newSession(ws.id, agent);
|
|
7305
|
-
}, "
|
|
7351
|
+
}, "B41", $scope6_id),
|
|
7306
7352
|
onOpenTab: _resume(function(id) {
|
|
7307
7353
|
tab = id;
|
|
7308
7354
|
view = "term";
|
|
7309
|
-
}, "
|
|
7355
|
+
}, "B42", $scope6_id),
|
|
7310
7356
|
onCloseSession: _resume(function(id) {
|
|
7311
7357
|
closeSession(id);
|
|
7312
|
-
}, "
|
|
7358
|
+
}, "B43", $scope6_id),
|
|
7313
7359
|
onRenameSession: _resume(function(id, title) {
|
|
7314
7360
|
renameSession(id, title);
|
|
7315
|
-
}, "
|
|
7361
|
+
}, "B44", $scope6_id),
|
|
7316
7362
|
active: input.active && view === "term" && s.id === curTab,
|
|
7317
7363
|
mode: view,
|
|
7318
7364
|
onOpenNav: _resume(function() {
|
|
7319
7365
|
toggleNav();
|
|
7320
|
-
}, "
|
|
7366
|
+
}, "B45", $scope6_id),
|
|
7321
7367
|
reviewFindOpen,
|
|
7322
7368
|
onToggleReviewFind: _resume(function() {
|
|
7323
7369
|
toggleReviewFind();
|
|
7324
|
-
}, "
|
|
7370
|
+
}, "B46", $scope6_id)
|
|
7325
7371
|
});
|
|
7326
7372
|
_html(`</div>${_el_resume($scope6_id, "a")}`);
|
|
7327
7373
|
_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, {
|
|
@@ -7333,7 +7379,7 @@ var work_view_default = _template("A", (input) => {
|
|
|
7333
7379
|
if (!shownSessions.length && view === "term") {
|
|
7334
7380
|
const $scope7_id = _scope_id();
|
|
7335
7381
|
_html(`<div${_attr_class("_bB")}><span>No sessions in this workspace.</span><button${_attr_class(["_l", "_m"])}${_attr("disabled", spawning)}>${spawning ? "Starting…" : `Start ${_escape(`${input.preferred || "shell"}`)}`}${_el_resume($scope7_id, "c")}</button>${_el_resume($scope7_id, "b")}</div>`);
|
|
7336
|
-
_script($scope7_id, "
|
|
7382
|
+
_script($scope7_id, "B48");
|
|
7337
7383
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
7338
7384
|
return 0;
|
|
7339
7385
|
}
|
|
@@ -7348,15 +7394,15 @@ var work_view_default = _template("A", (input) => {
|
|
|
7348
7394
|
}
|
|
7349
7395
|
}, $scope0_id, "j", 1, 1, 1, "</div>");
|
|
7350
7396
|
_html(`</div></div>${_el_resume($scope0_id, "a")}`);
|
|
7351
|
-
_script($scope0_id, "
|
|
7352
|
-
_script($scope0_id, "
|
|
7353
|
-
_script($scope0_id, "
|
|
7354
|
-
_script($scope0_id, "
|
|
7355
|
-
_script($scope0_id, "
|
|
7356
|
-
_script($scope0_id, "
|
|
7357
|
-
_script($scope0_id, "
|
|
7358
|
-
_script($scope0_id, "
|
|
7359
|
-
_script($scope0_id, "
|
|
7397
|
+
_script($scope0_id, "B49");
|
|
7398
|
+
_script($scope0_id, "B50");
|
|
7399
|
+
_script($scope0_id, "B51");
|
|
7400
|
+
_script($scope0_id, "B52");
|
|
7401
|
+
_script($scope0_id, "B53");
|
|
7402
|
+
_script($scope0_id, "B54");
|
|
7403
|
+
_script($scope0_id, "B55");
|
|
7404
|
+
_script($scope0_id, "B56");
|
|
7405
|
+
_script($scope0_id, "B57");
|
|
7360
7406
|
writeScope($scope0_id, {
|
|
7361
7407
|
n: input.initialView,
|
|
7362
7408
|
s: input.allStatus,
|
|
@@ -7865,7 +7911,7 @@ var app_page_default = _template("b", (input) => {
|
|
|
7865
7911
|
});
|
|
7866
7912
|
//#endregion
|
|
7867
7913
|
//#region src/routes/_app/new/+page.marko
|
|
7868
|
-
var _page_default$4 = _template("
|
|
7914
|
+
var _page_default$4 = _template("Y", (input) => {
|
|
7869
7915
|
_scope_reason();
|
|
7870
7916
|
_scope_id();
|
|
7871
7917
|
app_page_default({ initial: {
|
|
@@ -7907,7 +7953,7 @@ var GET$18 = Run.GET(async (_ctx, next) => {
|
|
|
7907
7953
|
});
|
|
7908
7954
|
//#endregion
|
|
7909
7955
|
//#region src/routes/_app/settings/+page.marko
|
|
7910
|
-
var _page_default$3 = _template("
|
|
7956
|
+
var _page_default$3 = _template("Z", (input) => {
|
|
7911
7957
|
_scope_reason();
|
|
7912
7958
|
_scope_id();
|
|
7913
7959
|
app_page_default({ initial: {
|
|
@@ -7944,7 +7990,7 @@ function head3(context) {
|
|
|
7944
7990
|
}
|
|
7945
7991
|
//#endregion
|
|
7946
7992
|
//#region src/routes/_app/w/$id/+page.marko
|
|
7947
|
-
var _page_default$2 = _template("
|
|
7993
|
+
var _page_default$2 = _template("$", (input) => {
|
|
7948
7994
|
_scope_reason();
|
|
7949
7995
|
_scope_id();
|
|
7950
7996
|
app_page_default({ initial: {
|
|
@@ -7981,7 +8027,7 @@ function head4(context) {
|
|
|
7981
8027
|
}
|
|
7982
8028
|
//#endregion
|
|
7983
8029
|
//#region src/routes/_app/w/$id/manage/+page.marko
|
|
7984
|
-
var _page_default$1 = _template("
|
|
8030
|
+
var _page_default$1 = _template("ab", (input) => {
|
|
7985
8031
|
_scope_reason();
|
|
7986
8032
|
_scope_id();
|
|
7987
8033
|
app_page_default({ initial: {
|
|
@@ -8017,7 +8063,7 @@ function head5(context) {
|
|
|
8017
8063
|
}
|
|
8018
8064
|
//#endregion
|
|
8019
8065
|
//#region src/routes/_app/w/$id/review/+page.marko
|
|
8020
|
-
var _page_default = _template("
|
|
8066
|
+
var _page_default = _template("bb", (input) => {
|
|
8021
8067
|
_scope_reason();
|
|
8022
8068
|
_scope_id();
|
|
8023
8069
|
const q = $global().url.searchParams;
|
|
@@ -9235,7 +9281,7 @@ function head17(context) {
|
|
|
9235
9281
|
}
|
|
9236
9282
|
//#endregion
|
|
9237
9283
|
//#region src/routes/api/sessions/$id/+handler.ts
|
|
9238
|
-
var Rename = /* @__PURE__ */ object({ title: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ trim(), /* @__PURE__ */
|
|
9284
|
+
var Rename = /* @__PURE__ */ object({ title: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ trim(), /* @__PURE__ */ maxLength(60)) });
|
|
9239
9285
|
var DELETE$2 = Run.DELETE(async (ctx) => {
|
|
9240
9286
|
await killSession(ctx.params.id);
|
|
9241
9287
|
return Response.json({ ok: true });
|
|
@@ -9244,7 +9290,7 @@ var DELETE$2 = Run.DELETE(async (ctx) => {
|
|
|
9244
9290
|
//#region __marko-run__api.sessions.$.js
|
|
9245
9291
|
var patchHandler = normalizeHandler(Run.PATCH({ json: Rename }, async (ctx) => {
|
|
9246
9292
|
const body = await readBody(ctx);
|
|
9247
|
-
renameSession(ctx.params.id, body.title);
|
|
9293
|
+
renameSession(ctx.params.id, body.title || null);
|
|
9248
9294
|
return Response.json({ ok: true });
|
|
9249
9295
|
}), "PATCH");
|
|
9250
9296
|
var deleteHandler$2 = normalizeHandler(DELETE$2, "DELETE");
|
|
@@ -15690,4 +15736,4 @@ server.listen(port, () => {
|
|
|
15690
15736
|
//#endregion
|
|
15691
15737
|
export {};
|
|
15692
15738
|
|
|
15693
|
-
;var __MARKO_MANIFEST__={"
|
|
15739
|
+
;var __MARKO_MANIFEST__={"AA0T2xt":{"block":[2,"stylesheet#/assets/app-page-8DhqRdJj.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-8DhqRdJj.css\"",">"],"defer":[2,"/assets/settings-DGta5r6w.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-DGta5r6w.js\"","></script>",2,"modulepreload#/assets/_DVjg6wHM.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DVjg6wHM.js\"",">"]},"ZLT8joi":{"block":[2,"stylesheet#/assets/app-page-8DhqRdJj.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-8DhqRdJj.css\"",">"],"defer":[2,"/assets/new-DGta5r6w.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-DGta5r6w.js\"","></script>",2,"modulepreload#/assets/_DVjg6wHM.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DVjg6wHM.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/app-page-8DhqRdJj.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-8DhqRdJj.css\"",">"],"defer":[2,"/assets/w-DGta5r6w.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-DGta5r6w.js\"","></script>",2,"modulepreload#/assets/_DVjg6wHM.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DVjg6wHM.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/app-page-8DhqRdJj.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-8DhqRdJj.css\"",">"],"defer":[2,"/assets/w._-DGta5r6w.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-DGta5r6w.js\"","></script>",2,"modulepreload#/assets/_DVjg6wHM.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DVjg6wHM.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/app-page-8DhqRdJj.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-8DhqRdJj.css\"",">"],"defer":[2,"/assets/w._-9m6uIPo_.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-9m6uIPo_.js\"","></script>",2,"modulepreload#/assets/_DVjg6wHM.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DVjg6wHM.js\"",">"]}};
|