@dylanpiercey/work 0.0.67 → 0.0.69
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/{_D78MdEM0.js → _BBDhdUuj.js} +67 -67
- package/dist/{_B9UH2f9c.js → _BzEc7Y99.js} +10 -10
- package/dist/index.mjs +290 -244
- package/dist/public/assets/{_DHLcQgxi.js → _7eu3vqOe.js} +1 -1
- package/dist/public/assets/_7eu3vqOe.js.br +0 -0
- package/dist/public/assets/{_D9eCCnFe.js → _9JFMnVkT.js} +1 -1
- package/dist/public/assets/_9JFMnVkT.js.br +0 -0
- package/dist/public/assets/{_QqRd5Qfx.js → _AjJFGKIO.js} +1 -1
- package/dist/public/assets/_AjJFGKIO.js.br +0 -0
- package/dist/public/assets/{_CduHXYfC.js → _B0mlTNYN.js} +6 -6
- package/dist/public/assets/_B0mlTNYN.js.br +0 -0
- package/dist/public/assets/{_ClECf4L52.js → _B2Wh9q7i2.js} +1 -1
- package/dist/public/assets/_B2Wh9q7i2.js.br +0 -0
- package/dist/public/assets/{_D6UgA7_X.js → _B2XlFtZA.js} +1 -1
- package/dist/public/assets/_B2XlFtZA.js.br +0 -0
- package/dist/public/assets/{_DfBlfnwv.js → _B8QdoRxF.js} +1 -1
- package/dist/public/assets/_B8QdoRxF.js.br +0 -0
- package/dist/public/assets/{_CsVHdEro.js → _BG91Ur7C.js} +1 -1
- package/dist/public/assets/{_CzJu_xMs.js → _BJbOGqL2.js} +1 -1
- package/dist/public/assets/_BJbOGqL2.js.br +0 -0
- package/dist/public/assets/{_CCbKzznD.js → _BTIiA2Aj.js} +1 -1
- package/dist/public/assets/_BTIiA2Aj.js.br +0 -0
- package/dist/public/assets/{_uDnfyVmG.js → _BVaiw33j.js} +1 -1
- package/dist/public/assets/_BVaiw33j.js.br +0 -0
- package/dist/public/assets/{_Cvm7LApl2.js → _BaW3VCxs2.js} +1 -1
- package/dist/public/assets/_BaW3VCxs2.js.br +0 -0
- package/dist/public/assets/{_CgdPOrhX2.js → _Be6zDaw_2.js} +1 -1
- package/dist/public/assets/_Be6zDaw_2.js.br +0 -0
- package/dist/public/assets/{_DeKPlPsD2.js → _Bk7LZElr2.js} +1 -1
- package/dist/public/assets/_Bk7LZElr2.js.br +0 -0
- package/dist/public/assets/{_CcdwqB39.js → _Bn42mWko.js} +1 -1
- package/dist/public/assets/_Bn42mWko.js.br +0 -0
- package/dist/public/assets/{_C13mV9Vy.js → _BtnTWv2c.js} +1 -1
- package/dist/public/assets/_BtnTWv2c.js.br +0 -0
- package/dist/public/assets/{_VuWoXkq_.js → _By_xPS-p.js} +1 -1
- package/dist/public/assets/_By_xPS-p.js.br +0 -0
- package/dist/public/assets/{_sNxRRogh2.js → _C-zOao0B2.js} +1 -1
- package/dist/public/assets/_C-zOao0B2.js.br +0 -0
- package/dist/public/assets/{_CYMzncSB2.js → _C0gLchFg2.js} +1 -1
- package/dist/public/assets/_C0gLchFg2.js.br +0 -0
- package/dist/public/assets/{_DX5zvNmD.js → _C4cnPJZt.js} +1 -1
- package/dist/public/assets/_C4cnPJZt.js.br +0 -0
- package/dist/public/assets/{_g4l6Vz4T.js → _C8JrL8ZU.js} +1 -1
- package/dist/public/assets/_C8JrL8ZU.js.br +0 -0
- package/dist/public/assets/{_u_iVn6qP.js → _CANbMbX3.js} +1 -1
- package/dist/public/assets/_CANbMbX3.js.br +0 -0
- package/dist/public/assets/{_BXCZuUQA2.js → _CGxB7jfP2.js} +1 -1
- package/dist/public/assets/_CGxB7jfP2.js.br +0 -0
- package/dist/public/assets/{_Dlrc6R2N.js → _CI-lBiRq.js} +4 -4
- package/dist/public/assets/_CI-lBiRq.js.br +0 -0
- package/dist/public/assets/{_C9ETD15k.js → _CN7jdIqu.js} +1 -1
- package/dist/public/assets/_CN7jdIqu.js.br +0 -0
- package/dist/public/assets/{_pfnxgR1W2.js → _CNjJeI_E2.js} +1 -1
- package/dist/public/assets/_CNjJeI_E2.js.br +0 -0
- package/dist/public/assets/{_BSNS3UMH2.js → _CObWod2f2.js} +1 -1
- package/dist/public/assets/_CObWod2f2.js.br +0 -0
- package/dist/public/assets/{_CsdnwX6C.js → _CQ1se5Ph.js} +1 -1
- package/dist/public/assets/_CQ1se5Ph.js.br +0 -0
- package/dist/public/assets/{_AMWZA0be.js → _C_KMHM_B.js} +1 -1
- package/dist/public/assets/_C_KMHM_B.js.br +0 -0
- package/dist/public/assets/{_DiAj-Esd.js → _C_hrnmAR.js} +1 -1
- package/dist/public/assets/_C_hrnmAR.js.br +0 -0
- package/dist/public/assets/{_B5iCC67h.js → _CaQPDPmE.js} +1 -1
- package/dist/public/assets/_CaQPDPmE.js.br +0 -0
- package/dist/public/assets/{_BwQNx6NX2.js → _Cimq_3st2.js} +1 -1
- package/dist/public/assets/_Cimq_3st2.js.br +0 -0
- package/dist/public/assets/{_iFcqMrGB.js → _Cl5u4DlE.js} +1 -1
- package/dist/public/assets/_Cl5u4DlE.js.br +0 -0
- package/dist/public/assets/{_y4Ul_ohO.js → _Cn24gDaN.js} +1 -1
- package/dist/public/assets/_Cn24gDaN.js.br +0 -0
- package/dist/public/assets/{_DRbnn8C_.js → _CnWPkpG6.js} +1 -1
- package/dist/public/assets/_CnWPkpG6.js.br +0 -0
- package/dist/public/assets/{_DTD1tZCR.js → _CqASoXOX.js} +1 -1
- package/dist/public/assets/_CqASoXOX.js.br +0 -0
- package/dist/public/assets/{_BtsudbJn.js → _CyEK8RLH.js} +1 -1
- package/dist/public/assets/_CyEK8RLH.js.br +0 -0
- package/dist/public/assets/{_NElrm0bu.js → _CyUpyj0-.js} +1 -1
- package/dist/public/assets/_CyUpyj0-.js.br +0 -0
- package/dist/public/assets/{_C7_gIQ1W.js → _D0_YGa2m.js} +1 -1
- package/dist/public/assets/_D0_YGa2m.js.br +0 -0
- package/dist/public/assets/{_BV3Xd3ki2.js → _D13hLO2N2.js} +1 -1
- package/dist/public/assets/{_ypxye8UD2.js → _D3U77twm2.js} +1 -1
- package/dist/public/assets/_D3U77twm2.js.br +0 -0
- package/dist/public/assets/{_CjxTlEOw2.js → _D4aBfTEq2.js} +1 -1
- package/dist/public/assets/_D4aBfTEq2.js.br +0 -0
- package/dist/public/assets/{_DlpIObWk2.js → _DEkiGmgs2.js} +1 -1
- package/dist/public/assets/_DEkiGmgs2.js.br +0 -0
- package/dist/public/assets/{_DLfp1TG-.js → _DHJUTBX4.js} +1 -1
- package/dist/public/assets/_DHJUTBX4.js.br +0 -0
- package/dist/public/assets/{_CS_y_5bW.js → _DIrrBSY3.js} +1 -1
- package/dist/public/assets/_DIrrBSY3.js.br +0 -0
- package/dist/public/assets/{_Dzm4iymN2.js → _DMbI3C312.js} +1 -1
- package/dist/public/assets/_DMbI3C312.js.br +0 -0
- package/dist/public/assets/{_B1vmwnMa.js → _DNT9FflM.js} +1 -1
- package/dist/public/assets/_DNT9FflM.js.br +0 -0
- package/dist/public/assets/{_D3ardbW_.js → _DPBnSJ7J.js} +1 -1
- package/dist/public/assets/_DPBnSJ7J.js.br +0 -0
- package/dist/public/assets/{_CuUYX7O6.js → _DaYRBUL-.js} +1 -1
- package/dist/public/assets/_DaYRBUL-.js.br +0 -0
- package/dist/public/assets/{_Chsu042s.js → _DbKE1MvW.js} +1 -1
- package/dist/public/assets/_DbKE1MvW.js.br +0 -0
- package/dist/public/assets/{_CBo0xAjA2.js → _DcOH-3Zl2.js} +1 -1
- package/dist/public/assets/{_BW1UpUrT.js → _DdX84yEG.js} +1 -1
- package/dist/public/assets/_DdX84yEG.js.br +0 -0
- package/dist/public/assets/{_Bs3zDe42.js → _De2MbV4-.js} +1 -1
- package/dist/public/assets/_De2MbV4-.js.br +0 -0
- package/dist/public/assets/{_BW81rf1H2.js → _Dh4U5ZBy2.js} +1 -1
- package/dist/public/assets/_Dh4U5ZBy2.js.br +0 -0
- package/dist/public/assets/{_Ds1l_cNr.js → _Dk90j4eO.js} +1 -1
- package/dist/public/assets/_Dk90j4eO.js.br +0 -0
- package/dist/public/assets/{_CgMtsYIH.js → _DlipybEX.js} +1 -1
- package/dist/public/assets/_DlipybEX.js.br +0 -0
- package/dist/public/assets/{_m3dEhGTX2.js → _Dn9evgOf2.js} +1 -1
- package/dist/public/assets/_Dn9evgOf2.js.br +0 -0
- package/dist/public/assets/{_CsuFzJmI.js → _DohOwerT.js} +1 -1
- package/dist/public/assets/_DohOwerT.js.br +0 -0
- package/dist/public/assets/{_B_cZqSdw.js → _DpiQNDSt.js} +1 -1
- package/dist/public/assets/_DpiQNDSt.js.br +0 -0
- package/dist/public/assets/{_BkgwhUlf.js → _Dqp3F2Ex.js} +1 -1
- package/dist/public/assets/_Dqp3F2Ex.js.br +0 -0
- package/dist/public/assets/{_CHxLUwRe2.js → _Dzckria-2.js} +1 -1
- package/dist/public/assets/_Dzckria-2.js.br +0 -0
- package/dist/public/assets/{_6Uv2mA8-2.js → _PL2w-xvr2.js} +1 -1
- package/dist/public/assets/_PL2w-xvr2.js.br +0 -0
- package/dist/public/assets/{_CnQdBazT.js → _QdFvZh29.js} +1 -1
- package/dist/public/assets/_QdFvZh29.js.br +0 -0
- package/dist/public/assets/{_BaoSUC_i.js → _RfX8IpFo.js} +1 -1
- package/dist/public/assets/_RfX8IpFo.js.br +0 -0
- package/dist/public/assets/{_Bx58LnKm.js → _Vyuu16Ad.js} +1 -1
- package/dist/public/assets/_Vyuu16Ad.js.br +0 -0
- package/dist/public/assets/{_C8IzwQRq.js → _Yor3dkCs.js} +1 -1
- package/dist/public/assets/_Yor3dkCs.js.br +0 -0
- package/dist/public/assets/{_DbEBleKv.js → __fELRce2.js} +1 -1
- package/dist/public/assets/__fELRce2.js.br +0 -0
- package/dist/public/assets/{_W9tsjAUN.js → _cuvR6O2V.js} +1 -1
- package/dist/public/assets/_cuvR6O2V.js.br +0 -0
- package/dist/public/assets/{_CZyTbXSO2.js → _eOSbQ2H52.js} +1 -1
- package/dist/public/assets/_eOSbQ2H52.js.br +0 -0
- package/dist/public/assets/{_CPi3B_vr2.js → _h65AGMTQ2.js} +1 -1
- package/dist/public/assets/_h65AGMTQ2.js.br +0 -0
- package/dist/public/assets/{_3k9q7qTZ.js → _hsoShTMK.js} +1 -1
- package/dist/public/assets/_hsoShTMK.js.br +0 -0
- package/dist/public/assets/{_D6hi7ua72.js → _nSzaoNgm2.js} +1 -1
- package/dist/public/assets/_nSzaoNgm2.js.br +0 -0
- package/dist/public/assets/{_Cc8KMyAp.js → _uoCfxD-5.js} +1 -1
- package/dist/public/assets/_uoCfxD-5.js.br +0 -0
- package/dist/public/assets/{_B1ZCEYOD.js → _xQNWoj97.js} +1 -1
- package/dist/public/assets/_xQNWoj97.js.br +0 -0
- package/dist/public/assets/{_BzP13oLI2.js → _y21Miw0G2.js} +1 -1
- package/dist/public/assets/_y21Miw0G2.js.br +0 -0
- package/dist/public/assets/{_BL7XgPZ_.js → _z9xnkyG0.js} +1 -1
- package/dist/public/assets/_z9xnkyG0.js.br +0 -0
- package/dist/public/assets/{app-page-DZhaOCYJ.css → app-page-BFosX16q.css} +1 -1
- package/dist/public/assets/app-page-BFosX16q.css.br +0 -0
- package/dist/public/assets/diff-view-DjZg0WLz.css +1 -0
- package/dist/public/assets/diff-view-DjZg0WLz.css.br +0 -0
- package/dist/public/assets/new-CMpE7Au8.js +1 -0
- package/dist/public/assets/settings-CMpE7Au8.js +1 -0
- package/dist/public/assets/w-CMpE7Au8.js +1 -0
- package/dist/public/assets/w._-BaiMToPS.js +1 -0
- package/dist/public/assets/w._-CMpE7Au8.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 "./_BzEc7Y99.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
import path from "node:path";
|
|
@@ -3191,15 +3191,15 @@ function agentFromCommand(command) {
|
|
|
3191
3191
|
}
|
|
3192
3192
|
//#endregion
|
|
3193
3193
|
//#region src/tags/settings-page.css.ts
|
|
3194
|
-
var content$2 = "_b3
|
|
3195
|
-
var agentGrid = "_b7
|
|
3196
|
-
var toolGrid = "_cg
|
|
3194
|
+
var content$2 = "_b3 _by _bz";
|
|
3195
|
+
var agentGrid = "_b7 _bj";
|
|
3196
|
+
var toolGrid = "_cg _bj";
|
|
3197
3197
|
//#endregion
|
|
3198
3198
|
//#region src/tags/page-head.marko
|
|
3199
3199
|
var page_head_default = _template("o", (input) => {
|
|
3200
3200
|
const $scope0_reason = _scope_reason(), $sg__input_backHref__OR__input_onBack__OR__input_meta__OR__input_actions = _serialize_guard($scope0_reason, 3), $sg__input_meta = _serialize_guard($scope0_reason, 6), $sg__input_actions = _serialize_guard($scope0_reason, 7), $si__input_backHref__OR__input_onBack = _serialize_if($scope0_reason, 1), $si__input_meta = _serialize_if($scope0_reason, 6), $si__input_actions = _serialize_if($scope0_reason, 7);
|
|
3201
3201
|
const $scope0_id = _scope_id();
|
|
3202
|
-
_html(`<header${_attr_class("
|
|
3202
|
+
_html(`<header${_attr_class("_bA")}>`);
|
|
3203
3203
|
_if(() => {
|
|
3204
3204
|
if (input.backHref) {
|
|
3205
3205
|
const $scope1_id = _scope_id();
|
|
@@ -3218,11 +3218,11 @@ var page_head_default = _template("o", (input) => {
|
|
|
3218
3218
|
return 1;
|
|
3219
3219
|
}
|
|
3220
3220
|
}, $scope0_id, "b", _serialize_guard($scope0_reason, 2), _serialize_guard($scope0_reason, 1), $sg__input_backHref__OR__input_onBack__OR__input_meta__OR__input_actions, 0, 1);
|
|
3221
|
-
_html(`<div${_attr_class("
|
|
3221
|
+
_html(`<div${_attr_class("_bC")}><h1${_attr("id", input.titleId)}${_attr_class("_bB")}>${_escape(input.title)}${_el_resume($scope0_id, "e", _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
|
|
3222
3222
|
_if(() => {
|
|
3223
3223
|
if (input.meta) {
|
|
3224
3224
|
const $scope3_id = _scope_id();
|
|
3225
|
-
_html(`<p${_attr_class("
|
|
3225
|
+
_html(`<p${_attr_class("_bD")}>`);
|
|
3226
3226
|
_dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
3227
3227
|
_html("</p>");
|
|
3228
3228
|
$si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -3233,7 +3233,7 @@ var page_head_default = _template("o", (input) => {
|
|
|
3233
3233
|
_if(() => {
|
|
3234
3234
|
if (input.actions) {
|
|
3235
3235
|
const $scope4_id = _scope_id();
|
|
3236
|
-
_html(`<div${_attr_class("
|
|
3236
|
+
_html(`<div${_attr_class("_bE")}>`);
|
|
3237
3237
|
_dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
3238
3238
|
_html("</div>");
|
|
3239
3239
|
$si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -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 = "_cW _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(["_cQ", { ["_cR"]: input.hideName }])}><div${_attr_class("_cS")}>`);
|
|
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("_da")}>${_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("_cT")}>${_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("_cU")}${_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(["_cV", { ["_db"]: 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 ? "_c4" : win.used_percent >= 70 ? "_c3" : win.used_percent >= 40 ? "_c2" : "_c1";
|
|
3366
|
+
const pctClass = win.used_percent >= 90 ? "_c9" : win.used_percent >= 70 ? "_c8" : win.used_percent >= 40 ? "_c7" : "_c6";
|
|
3367
|
+
_html(`<div${_attr_class("_cX")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_cY")}>${_escape(win.window)}${_el_resume($scope4_id, "c", $sg__input_agent)}</span><span${_attr_class("_cZ")}><span${_attr_class(["_c0", 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(["_c5", pctClass])}>${_escape(pct)}${_el_resume($scope4_id, "g", $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_c_")}>${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(["_eC", 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("_eD")}>`);
|
|
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("_eE")}>`);
|
|
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("_eE")}>`);
|
|
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: "_cD",
|
|
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("_cE")}${_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");
|
|
@@ -3767,7 +3767,7 @@ var settings_page_default = _template("s", (input) => {
|
|
|
3767
3767
|
const agentsId = _id();
|
|
3768
3768
|
const githubId = _id();
|
|
3769
3769
|
const machineId = _id();
|
|
3770
|
-
_html(`<div${_attr_class("
|
|
3770
|
+
_html(`<div${_attr_class("_bw")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bx")}><div${_attr_class(content$2)}>`);
|
|
3771
3771
|
_set_serialize_reason({
|
|
3772
3772
|
0: _serialize_guard($scope0_reason, 2),
|
|
3773
3773
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -3843,7 +3843,7 @@ 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("
|
|
3846
|
+
_html(`<section${_attr_class("_bg")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bh")}><h2${_attr("id", agentsId)}${_attr_class("_bv")}>Agents</h2><div${_attr_class("_v")}></div><label${_attr_class("_b9")}><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), () => {
|
|
@@ -3868,14 +3868,14 @@ 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(["
|
|
3871
|
+
_html(`<li${_attr_class(["_bl", "_b8"])}><div${_attr_class(["_ca", { ["_cd"]: lone && !lone.enabled }])}>`);
|
|
3872
3872
|
_set_serialize_reason(12);
|
|
3873
3873
|
const $childScope4 = _peek_scope_id();
|
|
3874
3874
|
icon_agent_default({
|
|
3875
3875
|
agent: a.id,
|
|
3876
3876
|
size: 18
|
|
3877
3877
|
});
|
|
3878
|
-
_html(`<div${_attr_class("
|
|
3878
|
+
_html(`<div${_attr_class("_bm")}><span${_attr_class("_bo")}><span${_attr_class("_bn")}>${_escape(a.label)}${_el_resume($scope1_id, "g")}</span>`);
|
|
3879
3879
|
_if(() => {
|
|
3880
3880
|
if (lone && input.preferred === lone.id) {
|
|
3881
3881
|
const $scope45_id = _scope_id();
|
|
@@ -3893,7 +3893,7 @@ var settings_page_default = _template("s", (input) => {
|
|
|
3893
3893
|
return 0;
|
|
3894
3894
|
} else if (!a.installed) {
|
|
3895
3895
|
const $scope46_id = _scope_id();
|
|
3896
|
-
_html(`<span${_attr_class("
|
|
3896
|
+
_html(`<span${_attr_class("_bp")}>Not installed</span>`);
|
|
3897
3897
|
writeScope($scope46_id, {});
|
|
3898
3898
|
return 1;
|
|
3899
3899
|
}
|
|
@@ -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(["
|
|
4014
|
+
_html(`<li${_attr_class(["_bl", "_b8"])}>`);
|
|
4015
4015
|
_set_serialize_reason(6);
|
|
4016
4016
|
const $childScope9 = _peek_scope_id();
|
|
4017
4017
|
usage_meters_default({ agent: u });
|
|
@@ -4022,21 +4022,21 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4022
4022
|
_if(() => {
|
|
4023
4023
|
if (!usage && families.length) {
|
|
4024
4024
|
const $scope52_id = _scope_id();
|
|
4025
|
-
_html(`<p${_attr_class("
|
|
4025
|
+
_html(`<p${_attr_class("_br")}><span${_attr_class("_C")}></span> Loading usage…</p>`);
|
|
4026
4026
|
writeScope($scope52_id, {});
|
|
4027
4027
|
return 0;
|
|
4028
4028
|
} else if (usage?.error) {
|
|
4029
4029
|
const $scope6_id = _scope_id();
|
|
4030
|
-
_html(`<p${_attr_class("
|
|
4030
|
+
_html(`<p${_attr_class("_br")}>${_escape(usage.error)}${_el_resume($scope6_id, "b")}</p>`);
|
|
4031
4031
|
writeScope($scope6_id, {});
|
|
4032
4032
|
return 1;
|
|
4033
4033
|
}
|
|
4034
4034
|
}, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
4035
|
-
_html(`</section><section${_attr_class("
|
|
4035
|
+
_html(`</section><section${_attr_class("_bg")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_bh")}><h2${_attr("id", githubId)}${_attr_class("_bv")}>GitHub</h2></div><ul${_attr_class("_bj")}>`);
|
|
4036
4036
|
_for_of(setup?.github || [], (h) => {
|
|
4037
4037
|
const $scope11_id = _scope_id();
|
|
4038
4038
|
const $for_content3__h_host__closures = /* @__PURE__ */ new Set();
|
|
4039
|
-
_html(`<li${_attr_class("
|
|
4039
|
+
_html(`<li${_attr_class("_bl")}><div${_attr_class("_bm")}><span${_attr_class("_bo")}><span${_attr_class(["_bn", "_u"])}>${_escape(h.host)}${_el_resume($scope11_id, "e")}</span>`);
|
|
4040
4040
|
_if(() => {
|
|
4041
4041
|
if (h.isEnterprise) {
|
|
4042
4042
|
const $scope55_id = _scope_id();
|
|
@@ -4059,12 +4059,12 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4059
4059
|
return 1;
|
|
4060
4060
|
} else if (h.authed) {
|
|
4061
4061
|
const $scope53_id = _scope_id();
|
|
4062
|
-
_html(`<span${_attr_class("
|
|
4062
|
+
_html(`<span${_attr_class("_bp")}>Signed in<!>${h.user ? ` as ${_escape(`${_to_text(h.user)}`)}` : ""}${_el_resume($scope53_id, "b")}</span>`);
|
|
4063
4063
|
writeScope($scope53_id, {});
|
|
4064
4064
|
return 2;
|
|
4065
4065
|
} else {
|
|
4066
4066
|
const $scope54_id = _scope_id();
|
|
4067
|
-
_html(`<span${_attr_class("
|
|
4067
|
+
_html(`<span${_attr_class("_bp")}>${_escape(h.error || "Not signed in")}${_el_resume($scope54_id, "b")}</span>`);
|
|
4068
4068
|
writeScope($scope54_id, {});
|
|
4069
4069
|
return 3;
|
|
4070
4070
|
}
|
|
@@ -4095,7 +4095,7 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4095
4095
|
if (h.isEnterprise) {
|
|
4096
4096
|
const $scope25_id = _scope_id();
|
|
4097
4097
|
_html(`<button${_attr_class([
|
|
4098
|
-
"
|
|
4098
|
+
"_bq",
|
|
4099
4099
|
"_Z",
|
|
4100
4100
|
"_0",
|
|
4101
4101
|
{ ["_n"]: confirmingRemove === h.host }
|
|
@@ -4138,7 +4138,7 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4138
4138
|
_if(() => {
|
|
4139
4139
|
if (setup && !setup.github.length) {
|
|
4140
4140
|
const $scope58_id = _scope_id();
|
|
4141
|
-
_html(`<p${_attr_class("
|
|
4141
|
+
_html(`<p${_attr_class("_br")}>Install the GitHub CLI below to sign in.</p>`);
|
|
4142
4142
|
writeScope($scope58_id, {});
|
|
4143
4143
|
return 0;
|
|
4144
4144
|
}
|
|
@@ -4159,7 +4159,7 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4159
4159
|
return 0;
|
|
4160
4160
|
}
|
|
4161
4161
|
}, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
4162
|
-
_html(`</section><section${_attr_class("
|
|
4162
|
+
_html(`</section><section${_attr_class("_bg")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_bh")}><h2${_attr("id", machineId)}${_attr_class("_bv")}>Machine</h2>`);
|
|
4163
4163
|
_if(() => {
|
|
4164
4164
|
if (missingCount) {
|
|
4165
4165
|
const $scope40_id = _scope_id();
|
|
@@ -4199,7 +4199,7 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4199
4199
|
_if(() => {
|
|
4200
4200
|
if (setup && !setup.mise.installed) {
|
|
4201
4201
|
const $scope15_id = _scope_id();
|
|
4202
|
-
_html(`<p${_attr_class("
|
|
4202
|
+
_html(`<p${_attr_class("_br")}>mise is not installed. It provides every tool below. <button${_attr_class(btnSm)}${_attr("disabled", active.has("mise"))}>${active.has("mise") ? "Installing…" : "Install mise"}${_el_resume($scope15_id, "c")}</button>${_el_resume($scope15_id, "b")}</p>`);
|
|
4203
4203
|
_script($scope15_id, "s35");
|
|
4204
4204
|
writeScope($scope15_id, {});
|
|
4205
4205
|
return 0;
|
|
@@ -4341,7 +4341,7 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4341
4341
|
_html(`<ul${_attr_class([toolGrid, "_cl"])}>`);
|
|
4342
4342
|
_for_of(hits, (h) => {
|
|
4343
4343
|
const $scope20_id = _scope_id();
|
|
4344
|
-
_html(`<li${_attr_class(row)}><div${_attr_class("
|
|
4344
|
+
_html(`<li${_attr_class(row)}><div${_attr_class("_bm")}><span${_attr_class(["_ci", "_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();
|
|
@@ -4350,7 +4350,7 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4350
4350
|
return 0;
|
|
4351
4351
|
} else if (h.description) {
|
|
4352
4352
|
const $scope65_id = _scope_id();
|
|
4353
|
-
_html(`<span${_attr_class("
|
|
4353
|
+
_html(`<span${_attr_class("_bp")}${_attr("title", h.description)}>${_escape(h.description)}${_el_resume($scope65_id, "b")}</span>${_el_resume($scope65_id, "a")}`);
|
|
4354
4354
|
writeScope($scope65_id, {});
|
|
4355
4355
|
return 1;
|
|
4356
4356
|
}
|
|
@@ -4389,7 +4389,7 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4389
4389
|
return 0;
|
|
4390
4390
|
} else if (hits && !searching) {
|
|
4391
4391
|
const $scope34_id = _scope_id();
|
|
4392
|
-
_html(`<p${_attr_class("
|
|
4392
|
+
_html(`<p${_attr_class("_br")}>No tools match "<!>${_escape(query)}${_el_resume($scope34_id, "b")}".</p>`);
|
|
4393
4393
|
_subscribe($query__closures, writeScope($scope34_id, {}));
|
|
4394
4394
|
return 1;
|
|
4395
4395
|
}
|
|
@@ -4495,14 +4495,14 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4495
4495
|
});
|
|
4496
4496
|
//#endregion
|
|
4497
4497
|
//#region src/tags/new-workspace.css.ts
|
|
4498
|
-
var content$1 = "_bF
|
|
4499
|
-
var section$1 = "_bJ
|
|
4498
|
+
var content$1 = "_bF _by";
|
|
4499
|
+
var section$1 = "_bJ _bg";
|
|
4500
4500
|
var curBase = "_bN _Q _P";
|
|
4501
|
-
var archived = "_bR
|
|
4501
|
+
var archived = "_bR _bg";
|
|
4502
4502
|
var archivedHint = "_bS _P";
|
|
4503
|
-
var archivedCard = "_bT
|
|
4504
|
-
var resultBranch = "
|
|
4505
|
-
var branchInput = "
|
|
4503
|
+
var archivedCard = "_bT _bl";
|
|
4504
|
+
var resultBranch = "_cw _W _g";
|
|
4505
|
+
var branchInput = "_cB _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("_cq")}><label${_attr_class("_T")}>`);
|
|
4556
4556
|
icon_search_default({
|
|
4557
4557
|
size: 14,
|
|
4558
4558
|
class: "_U"
|
|
@@ -4564,7 +4564,7 @@ var repo_picker_default = _template("q", (input) => {
|
|
|
4564
4564
|
_if(() => {
|
|
4565
4565
|
if (filter && !catalog) {
|
|
4566
4566
|
const $scope8_id = _scope_id();
|
|
4567
|
-
_html(`<p${_attr_class("
|
|
4567
|
+
_html(`<p${_attr_class("_br")}>Loading repos…</p>`);
|
|
4568
4568
|
writeScope($scope8_id, {});
|
|
4569
4569
|
return 0;
|
|
4570
4570
|
}
|
|
@@ -4572,23 +4572,23 @@ 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("_cr")}>`);
|
|
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(["_ct", { ["_cs"]: i === highlight }])}><button${_attr_class("_cu")}>`);
|
|
4579
4579
|
icon_plus_default({
|
|
4580
4580
|
size: 12,
|
|
4581
|
-
class: "
|
|
4581
|
+
class: "_cz"
|
|
4582
4582
|
});
|
|
4583
|
-
_html(`<span${_attr_class("
|
|
4583
|
+
_html(`<span${_attr_class("_cA")}>${_escape(repoLabel(repo.nameWithOwner))}${_el_resume($scope3_id, "e")}</span></button>${_el_resume($scope3_id, "b")}<button${_attr_class([resultBranch, { ["_cv"]: 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("_cx")}>`);
|
|
4588
4588
|
_if(() => {
|
|
4589
4589
|
if (!branches) {
|
|
4590
4590
|
const $scope9_id = _scope_id();
|
|
4591
|
-
_html(`<p${_attr_class("
|
|
4591
|
+
_html(`<p${_attr_class("_br")}><span${_attr_class("_C")}></span> Loading branches…</p>`);
|
|
4592
4592
|
writeScope($scope9_id, {});
|
|
4593
4593
|
return 0;
|
|
4594
4594
|
} else {
|
|
@@ -4605,17 +4605,17 @@ 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("_cy")}>`);
|
|
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(["_cu", "_cC"])}><span${_attr_class(["_cA", "_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);
|
|
4615
4615
|
_if(() => {
|
|
4616
4616
|
if (!shown.length) {
|
|
4617
4617
|
const $scope10_id = _scope_id();
|
|
4618
|
-
_html(`<li><p${_attr_class("
|
|
4618
|
+
_html(`<li><p${_attr_class("_br")}>No branches match.</p></li>`);
|
|
4619
4619
|
writeScope($scope10_id, {});
|
|
4620
4620
|
return 0;
|
|
4621
4621
|
}
|
|
@@ -4640,7 +4640,7 @@ var repo_picker_default = _template("q", (input) => {
|
|
|
4640
4640
|
return 0;
|
|
4641
4641
|
} else if (filter && catalog) {
|
|
4642
4642
|
const $scope1_id = _scope_id();
|
|
4643
|
-
_html(`<p${_attr_class("
|
|
4643
|
+
_html(`<p${_attr_class("_br")}>No repos match "<!>${_escape(filter)}${_el_resume($scope1_id, "b")}".</p>`);
|
|
4644
4644
|
writeScope($scope1_id, {});
|
|
4645
4645
|
return 1;
|
|
4646
4646
|
}
|
|
@@ -4758,7 +4758,7 @@ var new_workspace_default = _template("n", (input) => {
|
|
|
4758
4758
|
}
|
|
4759
4759
|
}, "n4", $scope0_id);
|
|
4760
4760
|
const titleId = _id();
|
|
4761
|
-
_html(`<div${_attr_class("
|
|
4761
|
+
_html(`<div${_attr_class("_bw")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bx")}><div${_attr_class(content$1)}>`);
|
|
4762
4762
|
_set_serialize_reason({
|
|
4763
4763
|
0: _serialize_guard($scope0_reason, 2),
|
|
4764
4764
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -4797,9 +4797,9 @@ var new_workspace_default = _template("n", (input) => {
|
|
|
4797
4797
|
return 0;
|
|
4798
4798
|
}
|
|
4799
4799
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
4800
|
-
_html(`<label${_attr_class("_bI")}><span${_attr_class("
|
|
4800
|
+
_html(`<label${_attr_class("_bI")}><span${_attr_class("_bv")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
|
|
4801
4801
|
name = _new_name;
|
|
4802
|
-
}, "n0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class(section$1)}><div${_attr_class("_bK")}><h2${_attr_class("
|
|
4802
|
+
}, "n0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class(section$1)}><div${_attr_class("_bK")}><h2${_attr_class("_bv")}>Repos</h2><button${_attr_class(iconBtnRow)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
4803
4803
|
_set_serialize_reason(1);
|
|
4804
4804
|
const $childScope2 = _peek_scope_id();
|
|
4805
4805
|
icon_refresh_default({
|
|
@@ -4830,7 +4830,7 @@ var new_workspace_default = _template("n", (input) => {
|
|
|
4830
4830
|
_if(() => {
|
|
4831
4831
|
if (!selected.length) {
|
|
4832
4832
|
const $scope11_id = _scope_id();
|
|
4833
|
-
_html(`<li${_attr_class("
|
|
4833
|
+
_html(`<li${_attr_class("_br")}>No repos yet. Search below to add one, or create it empty.</li>`);
|
|
4834
4834
|
writeScope($scope11_id, {});
|
|
4835
4835
|
return 0;
|
|
4836
4836
|
}
|
|
@@ -4897,10 +4897,10 @@ var new_workspace_default = _template("n", (input) => {
|
|
|
4897
4897
|
_if(() => {
|
|
4898
4898
|
if (archived$1.length) {
|
|
4899
4899
|
const $scope3_id = _scope_id();
|
|
4900
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("_bK")}><h2${_attr_class("
|
|
4900
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_bK")}><h2${_attr_class("_bv")}>Archived</h2><span${_attr_class(sectionCount$1)}>${_escape(archived$1.length)}${_el_resume($scope3_id, "e", $sg__input_workspaces)}</span></div><p${_attr_class(archivedHint)}>Restore an archived workspace instead of creating a new one.</p><ul${_attr_class("_bj")}>`);
|
|
4901
4901
|
_for_of(archived$1, (ws) => {
|
|
4902
4902
|
const $scope4_id = _scope_id();
|
|
4903
|
-
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("
|
|
4903
|
+
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("_bm")}><span${_attr_class("_bn")}>${_escape(ws.name)}${_el_resume($scope4_id, "d", $sg__input_workspaces)}</span><span${_attr_class([metaTrunc, "_u"])}${_attr("title", ws.display_path || ws.path)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope4_id, "f", $sg__input_workspaces)}</span>${_el_resume($scope4_id, "e", $sg__input_workspaces)}</div><button type=button${_attr_class(btnLg)}${_attr("disabled", busy || !!restoring)}>`);
|
|
4904
4904
|
_if(() => {
|
|
4905
4905
|
if (restoring === ws.id) {
|
|
4906
4906
|
const $scope14_id = _scope_id();
|
|
@@ -5043,7 +5043,7 @@ function activeAgent(session) {
|
|
|
5043
5043
|
}
|
|
5044
5044
|
var iconBtn$1 = "_dd _g";
|
|
5045
5045
|
var navToggle = "_di _g";
|
|
5046
|
-
_template("
|
|
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 = "_fx _g";
|
|
5089
|
+
var rowIcon = "_fG _W _g";
|
|
5090
|
+
var close = "_fH _W _g _Z";
|
|
5091
5091
|
//#endregion
|
|
5092
5092
|
//#region src/styles/session-pop.css.ts
|
|
5093
|
-
var sessionPop = "
|
|
5093
|
+
var sessionPop = "_eP _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 = "_gu _p _gt";
|
|
5146
|
+
var portChip = "_gv _p _gt";
|
|
5147
5147
|
var prState = {
|
|
5148
|
-
open: "
|
|
5149
|
-
merged: "
|
|
5150
|
-
closed: "
|
|
5148
|
+
open: "_gz",
|
|
5149
|
+
merged: "_gA",
|
|
5150
|
+
closed: "_gB"
|
|
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("_gs")}>`);
|
|
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(["_gw", { ["_gD"]: !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(["_gw", "_gx"])}${_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
|
+
"_gw",
|
|
5227
|
+
"_gx",
|
|
5228
|
+
"_gy"
|
|
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(["_gw", "_gC"])}${_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
|
+
"_gw",
|
|
5255
|
+
"_gx",
|
|
5256
|
+
"_gy",
|
|
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, { ["_fv"]: 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
|
+
"_fy"
|
|
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(["_fA", {
|
|
5350
|
+
["_fv"]: input.current,
|
|
5352
5351
|
["_2"]: input.current,
|
|
5353
|
-
["
|
|
5354
|
-
["
|
|
5355
|
-
}])}><div${_attr_class("
|
|
5352
|
+
["_fB"]: input.railPop,
|
|
5353
|
+
["_fz"]: input.page
|
|
5354
|
+
}])}><div${_attr_class("_fC")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class("_fD")}><span${_attr_class([
|
|
5356
5355
|
"_w",
|
|
5357
5356
|
phase[dot],
|
|
5358
|
-
"
|
|
5357
|
+
"_fO"
|
|
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: "_fI"
|
|
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("_fJ")}><span${_attr_class("_fK")}>${_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("_fM")}>${_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("_fL")}>${_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
|
+
"_fN"
|
|
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("_fE")}>`);
|
|
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("_eQ")}>`);
|
|
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, { ["_fw"]: 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("_fT")}>`);
|
|
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(["_fF", { ["_fv"]: 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
|
+
"_fR"
|
|
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: "_fV"
|
|
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", "_fS"])} 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("_fU")}><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: "_fV"
|
|
5515
5514
|
});
|
|
5516
|
-
_html(`<span${_attr_class("
|
|
5515
|
+
_html(`<span${_attr_class("_fP")}>${_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("_fQ")}><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({
|
|
@@ -5734,7 +5733,7 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5734
5733
|
_if(() => {
|
|
5735
5734
|
if (isPage && wsId === ws.id) {
|
|
5736
5735
|
const $scope11_id = _scope_id();
|
|
5737
|
-
_html(`<h2${_attr_class(["
|
|
5736
|
+
_html(`<h2${_attr_class(["_bv", "_do"])}>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(["
|
|
5744
|
+
_html(`<h2${_attr_class(["_bv", "_do"])}>Other workspaces</h2>`);
|
|
5746
5745
|
writeScope($scope12_id, {});
|
|
5747
5746
|
return 0;
|
|
5748
5747
|
}
|
|
@@ -6065,11 +6064,11 @@ var side_nav_default = _template("v", (input) => {
|
|
|
6065
6064
|
_resume_branch($scope0_id);
|
|
6066
6065
|
});
|
|
6067
6066
|
var iconBtn = "_X _g";
|
|
6068
|
-
var sectionCount = "
|
|
6069
|
-
var content = "
|
|
6070
|
-
var pageMeta = "
|
|
6071
|
-
var pathMeta = "
|
|
6072
|
-
var dangerHint = "
|
|
6067
|
+
var sectionCount = "_bi _F _G";
|
|
6068
|
+
var content = "_cF _by";
|
|
6069
|
+
var pageMeta = "_cG _bD";
|
|
6070
|
+
var pathMeta = "_cJ _u";
|
|
6071
|
+
var dangerHint = "_cP _P";
|
|
6073
6072
|
//#endregion
|
|
6074
6073
|
//#region src/tags/manage-workspace.marko
|
|
6075
6074
|
var api$2;
|
|
@@ -6167,7 +6166,7 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6167
6166
|
setTimeout(() => loadProcs(void 0), 500);
|
|
6168
6167
|
}, "l5", $scope0_id);
|
|
6169
6168
|
const titleId = _id();
|
|
6170
|
-
_html(`<div${_attr_class("
|
|
6169
|
+
_html(`<div${_attr_class("_bw")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bx")}><div${_attr_class(content)}>`);
|
|
6171
6170
|
_set_serialize_reason(30);
|
|
6172
6171
|
const $childScope = _peek_scope_id();
|
|
6173
6172
|
page_head_default({
|
|
@@ -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("_cH")}>${_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("_cI")} 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) })
|
|
@@ -6217,22 +6216,22 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6217
6216
|
_if(() => {
|
|
6218
6217
|
if (pendingAction && actionStep) {
|
|
6219
6218
|
const $scope7_id = _scope_id();
|
|
6220
|
-
_html(`<p${_attr_class("
|
|
6219
|
+
_html(`<p${_attr_class("_bf")}><span${_attr_class("_C")}></span><!>${_escape(actionStep)}${_el_resume($scope7_id, "c")}</p>`);
|
|
6221
6220
|
writeScope($scope7_id, {});
|
|
6222
6221
|
return 0;
|
|
6223
6222
|
}
|
|
6224
6223
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
6225
|
-
_html(`<section${_attr_class("
|
|
6224
|
+
_html(`<section${_attr_class("_bg")}><div${_attr_class("_bh")}><h2${_attr_class("_bv")}>Repos</h2><span${_attr_class(sectionCount)}>${_escape(ws.repos.length)}${_el_resume($scope0_id, "k")}</span><div${_attr_class("_v")}></div><button${_attr_class(iconBtn)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
6226
6225
|
_set_serialize_reason(1);
|
|
6227
6226
|
const $childScope2 = _peek_scope_id();
|
|
6228
6227
|
icon_refresh_default({
|
|
6229
6228
|
size: 14,
|
|
6230
6229
|
class: catalogRefreshing && "_B"
|
|
6231
6230
|
});
|
|
6232
|
-
_html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("
|
|
6231
|
+
_html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("_bj")}>`);
|
|
6233
6232
|
_for_of(ws.repos, (row) => {
|
|
6234
6233
|
const $scope1_id = _scope_id();
|
|
6235
|
-
_html(`<li${_attr_class("
|
|
6234
|
+
_html(`<li${_attr_class("_bl")}><div${_attr_class("_bm")}><span${_attr_class(["_bn", "_u"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_bo")}><a${_attr_class(["_bp", "_cL"])}${_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();
|
|
@@ -6251,7 +6250,7 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6251
6250
|
} else {
|
|
6252
6251
|
const $scope6_id = _scope_id();
|
|
6253
6252
|
_html(`<button${_attr_class([
|
|
6254
|
-
"
|
|
6253
|
+
"_bq",
|
|
6255
6254
|
"_Z",
|
|
6256
6255
|
"_0",
|
|
6257
6256
|
{ ["_n"]: confirmingRemove === row.full_name }
|
|
@@ -6284,19 +6283,19 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6284
6283
|
}, "full_name", $scope0_id, "p", 1, 1, 1, 0, 1);
|
|
6285
6284
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
6286
6285
|
const $scope16_id = _scope_id();
|
|
6287
|
-
_html(`<li${_attr_class(["
|
|
6286
|
+
_html(`<li${_attr_class(["_bl", "_bk"])}><span${_attr_class("_C")}></span><div${_attr_class("_bm")}><span${_attr_class("_bp")}>Adding <!>${_escape(name)}${_el_resume($scope16_id, "e")}…</span></div></li>`);
|
|
6288
6287
|
writeScope($scope16_id, {});
|
|
6289
6288
|
}, (n) => n, $scope0_id, "q", 1, 1, 1, 0, 1);
|
|
6290
6289
|
_html("</ul>");
|
|
6291
6290
|
_if(() => {
|
|
6292
6291
|
if (!ws.repos.length && !busy.size) {
|
|
6293
6292
|
const $scope17_id = _scope_id();
|
|
6294
|
-
_html(`<p${_attr_class("
|
|
6293
|
+
_html(`<p${_attr_class("_br")}>No repos yet. Search below to add one.</p>`);
|
|
6295
6294
|
writeScope($scope17_id, {});
|
|
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("_cK")}>`);
|
|
6300
6299
|
const $childScope3 = _peek_scope_id();
|
|
6301
6300
|
let refreshCatalog = repo_picker_default({
|
|
6302
6301
|
exclude: inWorkspace,
|
|
@@ -6316,17 +6315,17 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6316
6315
|
_if(() => {
|
|
6317
6316
|
if (running.length) {
|
|
6318
6317
|
const $scope9_id = _scope_id();
|
|
6319
|
-
_html(`<section${_attr_class("
|
|
6318
|
+
_html(`<section${_attr_class("_bg")}><div${_attr_class("_bh")}><h2${_attr_class("_bv")}>Running</h2><span${_attr_class(sectionCount)}>${_escape(running.length)}${_el_resume($scope9_id, "e")}</span></div><ul${_attr_class("_bj")}>`);
|
|
6320
6319
|
_for_of(running, (p) => {
|
|
6321
6320
|
const $scope10_id = _scope_id();
|
|
6322
|
-
_html(`<li${_attr_class("
|
|
6321
|
+
_html(`<li${_attr_class("_bl")}><div${_attr_class("_bm")}${_attr("title", p.args)}><span${_attr_class(["_bn", "_u"])}>${_escape(p.cmd)}${_el_resume($scope10_id, "d")}</span>`);
|
|
6323
6322
|
_if(() => {
|
|
6324
6323
|
if (p.ports.length) {
|
|
6325
6324
|
const $scope18_id = _scope_id();
|
|
6326
|
-
_html(`<span${_attr_class("
|
|
6325
|
+
_html(`<span${_attr_class("_bo")}>`);
|
|
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", "_cM"])}${_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);
|
|
@@ -6334,7 +6333,7 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6334
6333
|
return 0;
|
|
6335
6334
|
}
|
|
6336
6335
|
}, $scope10_id, "e", 1, 1, 1, 0, 1);
|
|
6337
|
-
_html(`</div>${_el_resume($scope10_id, "b")}<button${_attr_class(["
|
|
6336
|
+
_html(`</div>${_el_resume($scope10_id, "b")}<button${_attr_class(["_bq", "_Z"])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
6338
6337
|
icon_xmark_default({ size: 14 });
|
|
6339
6338
|
_html(`</button>${_el_resume($scope10_id, "f")}</li>`);
|
|
6340
6339
|
_script($scope10_id, "l16");
|
|
@@ -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(["
|
|
6350
|
+
_html(`<section${_attr_class(["_bg", "_cN"])}><div${_attr_class("_bh")}><h2${_attr_class("_bv")}>Workspace</h2></div><div${_attr_class("_cO")}>`);
|
|
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
|
+
"_e_",
|
|
6452
|
+
keybar ? "_fb" : "_fa",
|
|
6453
|
+
!open && "_fd"
|
|
6454
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_e5", keybar ? "_fc" : "_e7"])}><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 && "_fe"])} 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 && "_ff"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↑</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_ff"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↓</button>${_el_resume($scope0_id, "e")}<button type=button${_attr_class([findIconBtn, keybar && "_ff"])} 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 ? "_c9" : win$1.used_percent >= 70 ? "_c8" : win$1.used_percent >= 40 ? "_c7" : "_c6"])}>${_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();
|
|
@@ -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("_dD")}><div${_attr_class("_dE")}><p${_attr_class("
|
|
6778
|
-
_script($scope11_id, "x24");
|
|
6820
|
+
_html(`<div${_attr_class("_dD")}><div${_attr_class("_dE")}><p${_attr_class("_d9")}>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("./_BBDhdUuj.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,7 +7105,7 @@ var work_view_default = _template("A", (input) => {
|
|
|
7060
7105
|
e.preventDefault();
|
|
7061
7106
|
toggleDiff();
|
|
7062
7107
|
}
|
|
7063
|
-
}, "
|
|
7108
|
+
}, "B21", $scope0_id);
|
|
7064
7109
|
_html(`<div${_attr_class(["_bW", { ["_bV"]: view === "nav" }])}><div${_attr_class("_bX")}>`);
|
|
7065
7110
|
_set_serialize_reason({
|
|
7066
7111
|
0: _serialize_guard($scope0_reason, 0),
|
|
@@ -7087,35 +7132,35 @@ 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
7165
|
_html(`</div><div${_attr_class("_bY")}>`);
|
|
7121
7166
|
_if(() => {
|
|
@@ -7124,8 +7169,8 @@ var work_view_default = _template("A", (input) => {
|
|
|
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,15 +7298,15 @@ 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) });
|
|
@@ -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, {
|
|
@@ -7332,8 +7378,8 @@ var work_view_default = _template("A", (input) => {
|
|
|
7332
7378
|
_if(() => {
|
|
7333
7379
|
if (!shownSessions.length && view === "term") {
|
|
7334
7380
|
const $scope7_id = _scope_id();
|
|
7335
|
-
_html(`<div${_attr_class("
|
|
7336
|
-
_script($scope7_id, "
|
|
7381
|
+
_html(`<div${_attr_class("_bs")}><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>`);
|
|
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
|
}
|
|
@@ -7342,21 +7388,21 @@ var work_view_default = _template("A", (input) => {
|
|
|
7342
7388
|
return 0;
|
|
7343
7389
|
} else {
|
|
7344
7390
|
const $scope10_id = _scope_id();
|
|
7345
|
-
_html(`<p${_attr_class("
|
|
7391
|
+
_html(`<p${_attr_class("_bs")}>Loading sessions…</p>`);
|
|
7346
7392
|
writeScope($scope10_id, {});
|
|
7347
7393
|
return 1;
|
|
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__={"ibphXY4":{"block":[2,"stylesheet#/assets/app-page-BFosX16q.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BFosX16q.css\"",">"],"defer":[2,"/assets/w._-CMpE7Au8.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-CMpE7Au8.js\"","></script>",2,"modulepreload#/assets/_CI-lBiRq.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CI-lBiRq.js\"",">"]},"ZLT8joi":{"block":[2,"stylesheet#/assets/app-page-BFosX16q.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BFosX16q.css\"",">"],"defer":[2,"/assets/new-CMpE7Au8.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-CMpE7Au8.js\"","></script>",2,"modulepreload#/assets/_CI-lBiRq.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CI-lBiRq.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/app-page-BFosX16q.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BFosX16q.css\"",">"],"defer":[2,"/assets/w._-BaiMToPS.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-BaiMToPS.js\"","></script>",2,"modulepreload#/assets/_CI-lBiRq.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CI-lBiRq.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/app-page-BFosX16q.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BFosX16q.css\"",">"],"defer":[2,"/assets/settings-CMpE7Au8.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-CMpE7Au8.js\"","></script>",2,"modulepreload#/assets/_CI-lBiRq.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CI-lBiRq.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/app-page-BFosX16q.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BFosX16q.css\"",">"],"defer":[2,"/assets/w-CMpE7Au8.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-CMpE7Au8.js\"","></script>",2,"modulepreload#/assets/_CI-lBiRq.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CI-lBiRq.js\"",">"]}};
|