@dylanpiercey/work 0.0.70 → 0.0.71
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/{_B-dzDH9Z.js → _8t6K8Jk8.js} +65 -65
- package/dist/{_AOPS87VY.js → _D3qriis-.js} +2 -2
- package/dist/index.mjs +360 -289
- package/dist/public/assets/{_Dg2DUGem2.js → _9aJgLz6G2.js} +1 -1
- package/dist/public/assets/_9aJgLz6G2.js.br +0 -0
- package/dist/public/assets/{_CX7KVAVC2.js → _AeL166wR2.js} +1 -1
- package/dist/public/assets/_AeL166wR2.js.br +0 -0
- package/dist/public/assets/{_CcaAXEPy.js → _B0h_gNbx.js} +1 -1
- package/dist/public/assets/_B0h_gNbx.js.br +0 -0
- package/dist/public/assets/{_DQjgTNLT2.js → _B3VIvUTs2.js} +1 -1
- package/dist/public/assets/_B3VIvUTs2.js.br +0 -0
- package/dist/public/assets/{_2jwfRZNX2.js → _B3wjms9s2.js} +1 -1
- package/dist/public/assets/_B3wjms9s2.js.br +0 -0
- package/dist/public/assets/{_DsU-Nm-J.js → _B5mDTFiX.js} +1 -1
- package/dist/public/assets/_B5mDTFiX.js.br +0 -0
- package/dist/public/assets/{_DP-0321c.js → _BEEgRpqj.js} +1 -1
- package/dist/public/assets/_BEEgRpqj.js.br +0 -0
- package/dist/public/assets/{_C09f6XJ4.js → _BFfBgn79.js} +1 -1
- package/dist/public/assets/_BFfBgn79.js.br +0 -0
- package/dist/public/assets/{_eH0Yg3S22.js → _BKRausc72.js} +1 -1
- package/dist/public/assets/_BKRausc72.js.br +0 -0
- package/dist/public/assets/{_DoD7JLuh2.js → _BPH6VN8T2.js} +1 -1
- package/dist/public/assets/_BPH6VN8T2.js.br +0 -0
- package/dist/public/assets/{_DkIPVGH_2.js → _BPW0wOMI2.js} +1 -1
- package/dist/public/assets/_BPW0wOMI2.js.br +0 -0
- package/dist/public/assets/{_DBKHnCnH.js → _BPmmCSLY.js} +1 -1
- package/dist/public/assets/_BPmmCSLY.js.br +0 -0
- package/dist/public/assets/{_DhRqr_Rq.js → _BR_6IGfk.js} +1 -1
- package/dist/public/assets/_BR_6IGfk.js.br +0 -0
- package/dist/public/assets/{_CDrCRgYz2.js → _BUeHx4zC2.js} +1 -1
- package/dist/public/assets/_BUeHx4zC2.js.br +0 -0
- package/dist/public/assets/{_DsxkxJ9M.js → _BUteNftu.js} +1 -1
- package/dist/public/assets/_BUteNftu.js.br +0 -0
- package/dist/public/assets/{_BRtDdwZC.js → _BYrRgI_G.js} +1 -1
- package/dist/public/assets/_BYrRgI_G.js.br +0 -0
- package/dist/public/assets/{_D70dHsK5.js → _BZK8bxUc.js} +1 -1
- package/dist/public/assets/_BZK8bxUc.js.br +0 -0
- package/dist/public/assets/{_C178aaRj.js → _BZNMfrgb.js} +1 -1
- package/dist/public/assets/_BZNMfrgb.js.br +0 -0
- package/dist/public/assets/{_BM3WaJrl2.js → _B_OHURbh2.js} +1 -1
- package/dist/public/assets/_B_OHURbh2.js.br +0 -0
- package/dist/public/assets/{_DeFFMAX_.js → _Bd-WyHvg.js} +1 -1
- package/dist/public/assets/_Bd-WyHvg.js.br +0 -0
- package/dist/public/assets/{_DThR70Xq.js → _BejV602Y.js} +1 -1
- package/dist/public/assets/_BejV602Y.js.br +0 -0
- package/dist/public/assets/{_BriDrk1l.js → _BltuSqY6.js} +1 -1
- package/dist/public/assets/_BltuSqY6.js.br +0 -0
- package/dist/public/assets/{_DRzPr12K.js → _Bn6Hn06S.js} +1 -1
- package/dist/public/assets/_Bn6Hn06S.js.br +0 -0
- package/dist/public/assets/{_uCHmU2W8.js → _BqfMkwYX.js} +1 -1
- package/dist/public/assets/_BqfMkwYX.js.br +0 -0
- package/dist/public/assets/{_CN37KCcd.js → _BqrygBOe.js} +1 -1
- package/dist/public/assets/{_SYogbY_o.js → _BztBrnhM.js} +1 -1
- package/dist/public/assets/{_SYogbY_o.js.br → _BztBrnhM.js.br} +0 -0
- package/dist/public/assets/{_Ce5PUr__2.js → _C-LtCarQ2.js} +1 -1
- package/dist/public/assets/{_DSW7pXqz.js → _C-wce-RA.js} +1 -1
- package/dist/public/assets/_C-wce-RA.js.br +0 -0
- package/dist/public/assets/{_Dig0hTtr.js → _C6jdreqj.js} +1 -1
- package/dist/public/assets/_C6jdreqj.js.br +0 -0
- package/dist/public/assets/{_BhaVokkI.js → _CGVLhh2k.js} +1 -1
- package/dist/public/assets/_CGVLhh2k.js.br +0 -0
- package/dist/public/assets/{_DIIVUEO6.js → _CLGWdoAJ.js} +1 -1
- package/dist/public/assets/_CLGWdoAJ.js.br +0 -0
- package/dist/public/assets/{_BsZkEJaX.js → _COmAhQWL.js} +1 -1
- package/dist/public/assets/_COmAhQWL.js.br +0 -0
- package/dist/public/assets/{_DJSAaBeq.js → _CS1j3Hb2.js} +1 -1
- package/dist/public/assets/_CS1j3Hb2.js.br +0 -0
- package/dist/public/assets/{_C8xwneiR.js → _CTdFL4wj.js} +1 -1
- package/dist/public/assets/_CTdFL4wj.js.br +0 -0
- package/dist/public/assets/{_vJB03LvX2.js → _CWVKprFe2.js} +1 -1
- package/dist/public/assets/_CWVKprFe2.js.br +0 -0
- package/dist/public/assets/{_NUfAwX-92.js → _CXSLFN1Q2.js} +1 -1
- package/dist/public/assets/_CXSLFN1Q2.js.br +0 -0
- package/dist/public/assets/{_Cnkj8G8x.js → _C_9OeUA2.js} +1 -1
- package/dist/public/assets/_C_9OeUA2.js.br +0 -0
- package/dist/public/assets/{_CCwzIksI.js → _CbgTB_-a.js} +1 -1
- package/dist/public/assets/_CbgTB_-a.js.br +0 -0
- package/dist/public/assets/{_CxfSIWfr.js → _CdHoxy6P.js} +1 -1
- package/dist/public/assets/_CdHoxy6P.js.br +0 -0
- package/dist/public/assets/{_yaHB4Z8B.js → _CeVU1yJL.js} +1 -1
- package/dist/public/assets/_CeVU1yJL.js.br +0 -0
- package/dist/public/assets/{_B7R_FSi52.js → _CgENI0zF2.js} +1 -1
- package/dist/public/assets/_CgENI0zF2.js.br +0 -0
- package/dist/public/assets/{_CP9QfGt02.js → _CgwQS6LN2.js} +1 -1
- package/dist/public/assets/_CgwQS6LN2.js.br +0 -0
- package/dist/public/assets/_CiElF6r4.js +85 -0
- package/dist/public/assets/_CiElF6r4.js.br +0 -0
- package/dist/public/assets/{_CphuLRQC.js → _Cn0DEemU.js} +1 -1
- package/dist/public/assets/_Cn0DEemU.js.br +0 -0
- package/dist/public/assets/{_DwMRIbNQ2.js → _CpnXaqgd2.js} +1 -1
- package/dist/public/assets/_CpnXaqgd2.js.br +0 -0
- package/dist/public/assets/{_DgW7RRes2.js → _CvMvIBy42.js} +1 -1
- package/dist/public/assets/_CvMvIBy42.js.br +0 -0
- package/dist/public/assets/{_vW-7Ai-v.js → _CzxBqeDO.js} +1 -1
- package/dist/public/assets/_CzxBqeDO.js.br +0 -0
- package/dist/public/assets/{_4Srbdaf8.js → _D2vmNrtA.js} +1 -1
- package/dist/public/assets/_D2vmNrtA.js.br +0 -0
- package/dist/public/assets/{_astyk4W8.js → _DAun3Lt7.js} +1 -1
- package/dist/public/assets/_DAun3Lt7.js.br +0 -0
- package/dist/public/assets/{_BnGCBcwF2.js → _DBiZo1op2.js} +1 -1
- package/dist/public/assets/{_D1ZMPYoI2.js → _DNdrj0-M2.js} +1 -1
- package/dist/public/assets/_DNdrj0-M2.js.br +0 -0
- package/dist/public/assets/{_B1dK1Qzq2.js → _DPDIk03W2.js} +1 -1
- package/dist/public/assets/_DPDIk03W2.js.br +0 -0
- package/dist/public/assets/{_B_hrJVb02.js → _DSg_vc6H2.js} +1 -1
- package/dist/public/assets/_DSg_vc6H2.js.br +0 -0
- package/dist/public/assets/{_Ve3NFPam2.js → _DTSUTR0_2.js} +1 -1
- package/dist/public/assets/_DTSUTR0_2.js.br +0 -0
- package/dist/public/assets/{_DFXWJj8u.js → _DToVjT46.js} +1 -1
- package/dist/public/assets/_DToVjT46.js.br +0 -0
- package/dist/public/assets/{_CF4WUrOg2.js → _DWdZCyBL2.js} +1 -1
- package/dist/public/assets/_DWdZCyBL2.js.br +0 -0
- package/dist/public/assets/{_Dph0mXCv.js → _DXCHOWYL.js} +1 -1
- package/dist/public/assets/_DXCHOWYL.js.br +0 -0
- package/dist/public/assets/{_CZSK2PpM2.js → _DZss8Wq02.js} +1 -1
- package/dist/public/assets/_DZss8Wq02.js.br +0 -0
- package/dist/public/assets/{_CieMd70P.js → _DbEPPsY1.js} +1 -1
- package/dist/public/assets/_DbEPPsY1.js.br +0 -0
- package/dist/public/assets/{_C5McqdVq.js → _Dbf-xJ6k.js} +1 -1
- package/dist/public/assets/_Dbf-xJ6k.js.br +0 -0
- package/dist/public/assets/{_De1DhN-1.js → _Dcav7tzL.js} +6 -6
- package/dist/public/assets/_Dcav7tzL.js.br +0 -0
- package/dist/public/assets/{_IoBnaDj6.js → _DeMAtQzd.js} +1 -1
- package/dist/public/assets/_DeMAtQzd.js.br +0 -0
- package/dist/public/assets/{_dfXi0jTI.js → _Dp1TBNWN.js} +1 -1
- package/dist/public/assets/_Dp1TBNWN.js.br +0 -0
- package/dist/public/assets/{_okxblAux.js → _DqBuHT5A.js} +1 -1
- package/dist/public/assets/_DqBuHT5A.js.br +0 -0
- package/dist/public/assets/{_DK9AWQX8.js → _DtE0g-o1.js} +1 -1
- package/dist/public/assets/_DtE0g-o1.js.br +0 -0
- package/dist/public/assets/{_MFSKg2Wj.js → _Du4JDj5_.js} +1 -1
- package/dist/public/assets/_Du4JDj5_.js.br +0 -0
- package/dist/public/assets/{_B41uLDvj.js → _DwNswmCf.js} +1 -1
- package/dist/public/assets/_DwNswmCf.js.br +0 -0
- package/dist/public/assets/{_BqzmoFMM.js → _Ek1T1FMw.js} +1 -1
- package/dist/public/assets/_Ek1T1FMw.js.br +0 -0
- package/dist/public/assets/{_BUuMdUVD.js → _HO-Qb8pn.js} +1 -1
- package/dist/public/assets/_HO-Qb8pn.js.br +0 -0
- package/dist/public/assets/{_D5nI5TU0.js → _Lot9I7Im.js} +1 -1
- package/dist/public/assets/_Lot9I7Im.js.br +0 -0
- package/dist/public/assets/{_BpwxxOzh.js → _QQHXmR7d.js} +1 -1
- package/dist/public/assets/_QQHXmR7d.js.br +0 -0
- package/dist/public/assets/{_ChzC-M8b.js → _USmNZPRb.js} +1 -1
- package/dist/public/assets/_USmNZPRb.js.br +0 -0
- package/dist/public/assets/{_sRXHGNUn.js → _UgQ3KVU7.js} +1 -1
- package/dist/public/assets/_UgQ3KVU7.js.br +0 -0
- package/dist/public/assets/{_CZAtZHwK.js → __DTZmGl8.js} +1 -1
- package/dist/public/assets/__DTZmGl8.js.br +0 -0
- package/dist/public/assets/{_CE_OuXoU.js → _dAXKSDYL.js} +1 -1
- package/dist/public/assets/_dAXKSDYL.js.br +0 -0
- package/dist/public/assets/{_BVOP1Gxw2.js → _uyFxI_FF2.js} +1 -1
- package/dist/public/assets/_uyFxI_FF2.js.br +0 -0
- package/dist/public/assets/app-page-Bv2S_Tip.css +1 -0
- package/dist/public/assets/app-page-Bv2S_Tip.css.br +0 -0
- package/dist/public/assets/diff-view-rtQ04a8n.css +1 -0
- package/dist/public/assets/diff-view-rtQ04a8n.css.br +0 -0
- package/dist/public/assets/new-ECSvnCXB.js +1 -0
- package/dist/public/assets/settings-ECSvnCXB.js +1 -0
- package/dist/public/assets/w-ECSvnCXB.js +1 -0
- package/dist/public/assets/w._-CEJj3Icr.js +1 -0
- package/dist/public/assets/w._-ECSvnCXB.js +1 -0
- package/package.json +1 -1
- package/dist/public/assets/_2jwfRZNX2.js.br +0 -0
- package/dist/public/assets/_4Srbdaf8.js.br +0 -0
- package/dist/public/assets/_B1dK1Qzq2.js.br +0 -0
- package/dist/public/assets/_B41uLDvj.js.br +0 -0
- package/dist/public/assets/_B7R_FSi52.js.br +0 -0
- package/dist/public/assets/_BM3WaJrl2.js.br +0 -0
- package/dist/public/assets/_BRtDdwZC.js.br +0 -0
- package/dist/public/assets/_BUuMdUVD.js.br +0 -0
- package/dist/public/assets/_BVOP1Gxw2.js.br +0 -0
- package/dist/public/assets/_B_hrJVb02.js.br +0 -0
- package/dist/public/assets/_BhaVokkI.js.br +0 -0
- package/dist/public/assets/_BpwxxOzh.js.br +0 -0
- package/dist/public/assets/_BqzmoFMM.js.br +0 -0
- package/dist/public/assets/_BriDrk1l.js.br +0 -0
- package/dist/public/assets/_BsZkEJaX.js.br +0 -0
- package/dist/public/assets/_C09f6XJ4.js.br +0 -0
- package/dist/public/assets/_C178aaRj.js.br +0 -0
- package/dist/public/assets/_C5McqdVq.js.br +0 -0
- package/dist/public/assets/_C8xwneiR.js.br +0 -0
- package/dist/public/assets/_CCwzIksI.js.br +0 -0
- package/dist/public/assets/_CDrCRgYz2.js.br +0 -0
- package/dist/public/assets/_CE_OuXoU.js.br +0 -0
- package/dist/public/assets/_CF4WUrOg2.js.br +0 -0
- package/dist/public/assets/_CP9QfGt02.js.br +0 -0
- package/dist/public/assets/_CX7KVAVC2.js.br +0 -0
- package/dist/public/assets/_CZAtZHwK.js.br +0 -0
- package/dist/public/assets/_CZSK2PpM2.js.br +0 -0
- package/dist/public/assets/_CcaAXEPy.js.br +0 -0
- package/dist/public/assets/_ChzC-M8b.js.br +0 -0
- package/dist/public/assets/_CieMd70P.js.br +0 -0
- package/dist/public/assets/_CktwGNoV.js +0 -85
- package/dist/public/assets/_CktwGNoV.js.br +0 -0
- package/dist/public/assets/_Cnkj8G8x.js.br +0 -0
- package/dist/public/assets/_CphuLRQC.js.br +0 -0
- package/dist/public/assets/_CxfSIWfr.js.br +0 -0
- package/dist/public/assets/_D1ZMPYoI2.js.br +0 -0
- package/dist/public/assets/_D5nI5TU0.js.br +0 -0
- package/dist/public/assets/_D70dHsK5.js.br +0 -0
- package/dist/public/assets/_DBKHnCnH.js.br +0 -0
- package/dist/public/assets/_DFXWJj8u.js.br +0 -0
- package/dist/public/assets/_DIIVUEO6.js.br +0 -0
- package/dist/public/assets/_DJSAaBeq.js.br +0 -0
- package/dist/public/assets/_DK9AWQX8.js.br +0 -0
- package/dist/public/assets/_DP-0321c.js.br +0 -0
- package/dist/public/assets/_DQjgTNLT2.js.br +0 -0
- package/dist/public/assets/_DRzPr12K.js.br +0 -0
- package/dist/public/assets/_DSW7pXqz.js.br +0 -0
- package/dist/public/assets/_DThR70Xq.js.br +0 -0
- package/dist/public/assets/_De1DhN-1.js.br +0 -0
- package/dist/public/assets/_DeFFMAX_.js.br +0 -0
- package/dist/public/assets/_Dg2DUGem2.js.br +0 -0
- package/dist/public/assets/_DgW7RRes2.js.br +0 -0
- package/dist/public/assets/_DhRqr_Rq.js.br +0 -0
- package/dist/public/assets/_Dig0hTtr.js.br +0 -0
- package/dist/public/assets/_DkIPVGH_2.js.br +0 -0
- package/dist/public/assets/_DoD7JLuh2.js.br +0 -0
- package/dist/public/assets/_Dph0mXCv.js.br +0 -0
- package/dist/public/assets/_DsU-Nm-J.js.br +0 -0
- package/dist/public/assets/_DsxkxJ9M.js.br +0 -0
- package/dist/public/assets/_DwMRIbNQ2.js.br +0 -0
- package/dist/public/assets/_IoBnaDj6.js.br +0 -0
- package/dist/public/assets/_MFSKg2Wj.js.br +0 -0
- package/dist/public/assets/_NUfAwX-92.js.br +0 -0
- package/dist/public/assets/_Ve3NFPam2.js.br +0 -0
- package/dist/public/assets/_astyk4W8.js.br +0 -0
- package/dist/public/assets/_dfXi0jTI.js.br +0 -0
- package/dist/public/assets/_eH0Yg3S22.js.br +0 -0
- package/dist/public/assets/_okxblAux.js.br +0 -0
- package/dist/public/assets/_sRXHGNUn.js.br +0 -0
- package/dist/public/assets/_uCHmU2W8.js.br +0 -0
- package/dist/public/assets/_vJB03LvX2.js.br +0 -0
- package/dist/public/assets/_vW-7Ai-v.js.br +0 -0
- package/dist/public/assets/_yaHB4Z8B.js.br +0 -0
- package/dist/public/assets/app-page-B-QPv6NA.css +0 -1
- package/dist/public/assets/app-page-B-QPv6NA.css.br +0 -0
- package/dist/public/assets/diff-view-DM1slFkP.css +0 -1
- package/dist/public/assets/diff-view-DM1slFkP.css.br +0 -0
- package/dist/public/assets/new-CxcQDhex.js +0 -1
- package/dist/public/assets/settings-CxcQDhex.js +0 -1
- package/dist/public/assets/w-CxcQDhex.js +0 -1
- package/dist/public/assets/w._-CuOk-xxd.js +0 -1
- package/dist/public/assets/w._-CxcQDhex.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 "./_DgDsZuoQ.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 "./_D3qriis-.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
import path from "node:path";
|
|
@@ -3191,9 +3191,9 @@ function agentFromCommand(command) {
|
|
|
3191
3191
|
}
|
|
3192
3192
|
//#endregion
|
|
3193
3193
|
//#region src/tags/settings-page.css.ts
|
|
3194
|
-
var content$2 = "
|
|
3195
|
-
var agentGrid = "
|
|
3196
|
-
var toolGrid = "
|
|
3194
|
+
var content$2 = "_bV _bh _bi";
|
|
3195
|
+
var agentGrid = "_bZ _bs";
|
|
3196
|
+
var toolGrid = "_b9 _bs";
|
|
3197
3197
|
//#endregion
|
|
3198
3198
|
//#region src/tags/page-head.marko
|
|
3199
3199
|
var page_head_default = _template("o", (input) => {
|
|
@@ -3203,14 +3203,14 @@ var page_head_default = _template("o", (input) => {
|
|
|
3203
3203
|
_if(() => {
|
|
3204
3204
|
if (input.backHref) {
|
|
3205
3205
|
const $scope1_id = _scope_id();
|
|
3206
|
-
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "
|
|
3206
|
+
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_cr"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
3207
3207
|
icon_back_default({ size: 16 });
|
|
3208
3208
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
3209
3209
|
_serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
|
|
3210
3210
|
return 0;
|
|
3211
3211
|
} else if (input.onBack) {
|
|
3212
3212
|
const $scope2_id = _scope_id();
|
|
3213
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
3213
|
+
_html(`<button${_attr_class([iconBtnRow, "_cr"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
3214
3214
|
icon_back_default({ size: 16 });
|
|
3215
3215
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
3216
3216
|
_script($scope2_id, "o0");
|
|
@@ -3308,7 +3308,7 @@ var icon_agent_default = _template("C", (input) => {
|
|
|
3308
3308
|
n: $badge__closures
|
|
3309
3309
|
});
|
|
3310
3310
|
});
|
|
3311
|
-
var usageNote = "
|
|
3311
|
+
var usageNote = "_cy _P";
|
|
3312
3312
|
//#endregion
|
|
3313
3313
|
//#region src/tags/usage-meters.marko
|
|
3314
3314
|
function duration(ms) {
|
|
@@ -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(["_cs", { ["_ct"]: input.hideName }])}><div${_attr_class("_cu")}>`);
|
|
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("_cN")}>${_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("_cv")}>${_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("_cw")}${_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(["_cx", { ["_cO"]: agent.stale_seconds != null }])}>`);
|
|
3361
3361
|
_for_of(agent.windows || [], (win) => {
|
|
3362
3362
|
const $scope4_id = _scope_id();
|
|
3363
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 ? "_cG" : win.used_percent >= 70 ? "_cF" : win.used_percent >= 40 ? "_cE" : "_cD";
|
|
3366
|
+
const pctClass = win.used_percent >= 90 ? "_cL" : win.used_percent >= 70 ? "_cK" : win.used_percent >= 40 ? "_cJ" : "_cI";
|
|
3367
|
+
_html(`<div${_attr_class("_cz")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_cA")}>${_escape(win.window)}${_el_resume($scope4_id, "c", $sg__input_agent)}</span><span${_attr_class("_cB")}><span${_attr_class(["_cC", 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(["_cH", pctClass])}>${_escape(pct)}${_el_resume($scope4_id, "g", $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_cM")}>${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(() => {
|
|
@@ -3423,7 +3423,7 @@ var modal_view_default = _template("m", (input) => {
|
|
|
3423
3423
|
const { label, class: inputClass, open: _open, openChange: _openChange, dismissable: _dismissable, content, footer, closedby: _closedby, onCancel: _onCancel, onClose: _onClose, "aria-label": inputAriaLabel, "aria-labelledby": inputLabelledBy, ...htmlInput } = input;
|
|
3424
3424
|
const dismissable = input.dismissable !== false;
|
|
3425
3425
|
let open = input.open;
|
|
3426
|
-
_html(`<dialog${_attr_class(["
|
|
3426
|
+
_html(`<dialog${_attr_class(["_c2", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
3427
3427
|
...htmlInput,
|
|
3428
3428
|
open: null
|
|
3429
3429
|
}, {
|
|
@@ -3433,20 +3433,20 @@ var modal_view_default = _template("m", (input) => {
|
|
|
3433
3433
|
closedby: 1,
|
|
3434
3434
|
"on-cancel": 1,
|
|
3435
3435
|
"on-close": 1
|
|
3436
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
3436
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_c3")}>`);
|
|
3437
3437
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
3438
3438
|
_html("</div>");
|
|
3439
3439
|
_if(() => {
|
|
3440
3440
|
if (footer) {
|
|
3441
3441
|
const $scope1_id = _scope_id();
|
|
3442
|
-
_html(`<form method=dialog${_attr_class("
|
|
3442
|
+
_html(`<form method=dialog${_attr_class("_c4")}>`);
|
|
3443
3443
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
3444
3444
|
_html("</form>");
|
|
3445
3445
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
3446
3446
|
return 0;
|
|
3447
3447
|
} else if (input.openChange) {
|
|
3448
3448
|
const $scope2_id = _scope_id();
|
|
3449
|
-
_html(`<form method=dialog${_attr_class("
|
|
3449
|
+
_html(`<form method=dialog${_attr_class("_c4")}>`);
|
|
3450
3450
|
dialog_close_default({
|
|
3451
3451
|
class: ["_l", "_m"],
|
|
3452
3452
|
content: _content("m0", () => {
|
|
@@ -3505,7 +3505,7 @@ var prompt_dialog_default = _template("p", (input) => {
|
|
|
3505
3505
|
const $childScope = _peek_scope_id();
|
|
3506
3506
|
modal_view_default({
|
|
3507
3507
|
label: input.label,
|
|
3508
|
-
class: "
|
|
3508
|
+
class: "_cp",
|
|
3509
3509
|
open: input.open,
|
|
3510
3510
|
openChange: input.openChange,
|
|
3511
3511
|
"aria-labelledby": titleId,
|
|
@@ -3528,7 +3528,7 @@ var prompt_dialog_default = _template("p", (input) => {
|
|
|
3528
3528
|
content: _content("p6", () => {
|
|
3529
3529
|
_scope_reason();
|
|
3530
3530
|
const $scope2_id = _scope_id();
|
|
3531
|
-
_html(`<h2${_attr_class("
|
|
3531
|
+
_html(`<h2${_attr_class("_cq")}${_attr("id", titleId)}>${_escape(input.label)}${_el_resume($scope2_id, "b", $sg__input_label)}</h2><input${_attr_input_value($scope2_id, "c", value, _resume((_new_value) => {
|
|
3532
3532
|
value = _new_value;
|
|
3533
3533
|
}, "p0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
3534
3534
|
_script($scope2_id, "p4");
|
|
@@ -3791,12 +3791,12 @@ var settings_page_default = _template("s", (input) => {
|
|
|
3791
3791
|
return 0;
|
|
3792
3792
|
} else if (setup.ready) {
|
|
3793
3793
|
const $scope43_id = _scope_id();
|
|
3794
|
-
_html(`<span${_attr_class("
|
|
3794
|
+
_html(`<span${_attr_class("_bX")}>Ready</span>. Tools, GitHub, and an agent are all in place.`);
|
|
3795
3795
|
writeScope($scope43_id, {});
|
|
3796
3796
|
return 1;
|
|
3797
3797
|
} else {
|
|
3798
3798
|
const $scope5_id = _scope_id();
|
|
3799
|
-
_html(`<span${_attr_class("
|
|
3799
|
+
_html(`<span${_attr_class("_bY")}>Not ready</span>. Missing <!>${_escape(setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "))}${_el_resume($scope5_id, "b")}.`);
|
|
3800
3800
|
_subscribe($setup_missing__closures, writeScope($scope5_id, {}));
|
|
3801
3801
|
return 2;
|
|
3802
3802
|
}
|
|
@@ -3843,11 +3843,11 @@ var settings_page_default = _template("s", (input) => {
|
|
|
3843
3843
|
return 0;
|
|
3844
3844
|
}
|
|
3845
3845
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
3846
|
-
_html(`<section${_attr_class("_bp")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bq")}><h2${_attr("id", agentsId)}${_attr_class("_bE")}>Agents</h2><div${_attr_class("_v")}></div><label${_attr_class("
|
|
3846
|
+
_html(`<section${_attr_class("_bp")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bq")}><h2${_attr("id", agentsId)}${_attr_class("_bE")}>Agents</h2><div${_attr_class("_v")}></div><label${_attr_class("_b1")}><span${_attr_class("_P")}>Default</span><span${_attr_class("_j")}>`);
|
|
3847
3847
|
_attr_select_value($scope0_id, "m", input.preferred, _resume(function(v) {
|
|
3848
3848
|
setPreferred(v);
|
|
3849
3849
|
}, "s1", $scope0_id), () => {
|
|
3850
|
-
_html(`<select${_attr_class(["_k", "
|
|
3850
|
+
_html(`<select${_attr_class(["_k", "_b2"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
|
|
3851
3851
|
_for_of(input.agents.filter((a) => a !== "shell"), (id) => {
|
|
3852
3852
|
const $scope44_id = _scope_id();
|
|
3853
3853
|
_html(`<option${_attr_option_value(id)}>${_escape(agentLabel(id))}${_el_resume($scope44_id, "b", $sg__input_agents)}</option>${_el_resume($scope44_id, "a", $sg__input_agents)}`);
|
|
@@ -3868,7 +3868,7 @@ var settings_page_default = _template("s", (input) => {
|
|
|
3868
3868
|
const rows = lone ? [] : a.instances;
|
|
3869
3869
|
const loneAccounts = lone && lone.enabled ? accountsFor(lone.id) : [];
|
|
3870
3870
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
3871
|
-
_html(`<li${_attr_class(["_bu", "
|
|
3871
|
+
_html(`<li${_attr_class(["_bu", "_b0"])}><div${_attr_class(["_b3", { ["_b6"]: lone && !lone.enabled }])}>`);
|
|
3872
3872
|
_set_serialize_reason(12);
|
|
3873
3873
|
const $childScope4 = _peek_scope_id();
|
|
3874
3874
|
icon_agent_default({
|
|
@@ -3888,7 +3888,7 @@ var settings_page_default = _template("s", (input) => {
|
|
|
3888
3888
|
_if(() => {
|
|
3889
3889
|
if (active.has(a.id)) {
|
|
3890
3890
|
const $scope10_id = _scope_id();
|
|
3891
|
-
_html(`<span${_attr_class("
|
|
3891
|
+
_html(`<span${_attr_class("_bW")}><span${_attr_class("_C")}></span><!>${_escape(active.get(a.id) || "Starting…")}${_el_resume($scope10_id, "c")}</span>`);
|
|
3892
3892
|
_subscribe($active__closures, writeScope($scope10_id, {}));
|
|
3893
3893
|
return 0;
|
|
3894
3894
|
} else if (!a.installed) {
|
|
@@ -3925,18 +3925,18 @@ var settings_page_default = _template("s", (input) => {
|
|
|
3925
3925
|
_if(() => {
|
|
3926
3926
|
if (rows.length || loneAccounts.length || extraAccounts.length) {
|
|
3927
3927
|
const $scope2_id = _scope_id();
|
|
3928
|
-
_html(`<ul${_attr_class("
|
|
3928
|
+
_html(`<ul${_attr_class("_b8")}>`);
|
|
3929
3929
|
_for_of(rows, (inst) => {
|
|
3930
3930
|
const $scope3_id = _scope_id();
|
|
3931
3931
|
const accounts = inst.enabled ? accountsFor(inst.id) : [];
|
|
3932
|
-
_html(`<li${_attr_class("
|
|
3932
|
+
_html(`<li${_attr_class("_b4")}><div${_attr_class(["_b5", { ["_b6"]: !inst.enabled }])}>`);
|
|
3933
3933
|
_set_serialize_reason(12);
|
|
3934
3934
|
const $childScope5 = _peek_scope_id();
|
|
3935
3935
|
icon_agent_default({
|
|
3936
3936
|
agent: inst.id,
|
|
3937
3937
|
size: 15
|
|
3938
3938
|
});
|
|
3939
|
-
_html(`<span${_attr_class(["
|
|
3939
|
+
_html(`<span${_attr_class(["_b7", "_u"])}>${_escape(inst.command)}${_el_resume($scope3_id, "e")}</span>`);
|
|
3940
3940
|
_if(() => {
|
|
3941
3941
|
if (input.preferred === inst.id) {
|
|
3942
3942
|
const $scope47_id = _scope_id();
|
|
@@ -4011,7 +4011,7 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4011
4011
|
}, "id", $scope0_id, "q", 1, 1, 1, 0, 1);
|
|
4012
4012
|
_for_of(otherUsage, (u) => {
|
|
4013
4013
|
const $scope51_id = _scope_id();
|
|
4014
|
-
_html(`<li${_attr_class(["_bu", "
|
|
4014
|
+
_html(`<li${_attr_class(["_bu", "_b0"])}>`);
|
|
4015
4015
|
_set_serialize_reason(6);
|
|
4016
4016
|
const $childScope9 = _peek_scope_id();
|
|
4017
4017
|
usage_meters_default({ agent: u });
|
|
@@ -4049,12 +4049,12 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4049
4049
|
_if(() => {
|
|
4050
4050
|
if (active.has(h.host) && authCodes.has(h.host)) {
|
|
4051
4051
|
const $scope22_id = _scope_id();
|
|
4052
|
-
_html(`<span${_attr_class("
|
|
4052
|
+
_html(`<span${_attr_class("_bW")}><span${_attr_class("_C")}></span> Enter code <strong${_attr_class("_cf")}>${_escape(authCodes.get(h.host))}${_el_resume($scope22_id, "d")}</strong> at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_cg")}>${_escape(h.host)}${_el_resume($scope22_id, "f")}/login/device</a>${_el_resume($scope22_id, "e")}</span>`);
|
|
4053
4053
|
_subscribe($authCodes__closures, writeScope($scope22_id, {}));
|
|
4054
4054
|
return 0;
|
|
4055
4055
|
} else if (active.has(h.host)) {
|
|
4056
4056
|
const $scope12_id = _scope_id();
|
|
4057
|
-
_html(`<span${_attr_class("
|
|
4057
|
+
_html(`<span${_attr_class("_bW")}><span${_attr_class("_C")}></span><!>${_escape(active.get(h.host) || "Starting…")}${_el_resume($scope12_id, "c")}</span>`);
|
|
4058
4058
|
_subscribe($active__closures, writeScope($scope12_id, { Cck: 1 }));
|
|
4059
4059
|
return 1;
|
|
4060
4060
|
} else if (h.authed) {
|
|
@@ -4146,7 +4146,7 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4146
4146
|
_if(() => {
|
|
4147
4147
|
if (setup) {
|
|
4148
4148
|
const $scope33_id = _scope_id();
|
|
4149
|
-
_html(`<form${_attr_class("
|
|
4149
|
+
_html(`<form${_attr_class("_ce")}><label${_attr_class("_T")}>`);
|
|
4150
4150
|
icon_plus_default({
|
|
4151
4151
|
size: 14,
|
|
4152
4152
|
class: "_U"
|
|
@@ -4213,11 +4213,11 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4213
4213
|
const $for_content4__t_path__closures = /* @__PURE__ */ new Set();
|
|
4214
4214
|
const $for_content4__t_latest__closures = /* @__PURE__ */ new Set();
|
|
4215
4215
|
const $for_content4__t_id__closures = /* @__PURE__ */ new Set();
|
|
4216
|
-
_html(`<li${_attr_class([row, { ["
|
|
4216
|
+
_html(`<li${_attr_class([row, { ["_b_"]: !t.installed }])}><span${_attr_class(["_ca", "_u"])}>${_escape(t.label)}${_el_resume($scope16_id, "c")}</span>`);
|
|
4217
4217
|
_if(() => {
|
|
4218
4218
|
if (active.has(t.id)) {
|
|
4219
4219
|
const $scope17_id = _scope_id();
|
|
4220
|
-
_html(`<span${_attr_class("
|
|
4220
|
+
_html(`<span${_attr_class("_bW")}><span${_attr_class("_C")}></span><!>${_escape(active.get(t.id) || "Starting…")}${_el_resume($scope17_id, "c")}</span>`);
|
|
4221
4221
|
_subscribe($active__closures, writeScope($scope17_id, { Cck: 2 }));
|
|
4222
4222
|
return 0;
|
|
4223
4223
|
} else if (t.installed) {
|
|
@@ -4225,7 +4225,7 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4225
4225
|
_if(() => {
|
|
4226
4226
|
if (t.version) {
|
|
4227
4227
|
const $scope30_id = _scope_id();
|
|
4228
|
-
_html(`<button${_attr_class(["
|
|
4228
|
+
_html(`<button${_attr_class(["_cb", "_u"])}${_attr("title", `${t.path || t.label}. Pin a version`)}>v<!>${_escape(t.version)}${_el_resume($scope30_id, "b")}</button>${_el_resume($scope30_id, "a")}`);
|
|
4229
4229
|
_script($scope30_id, "s36");
|
|
4230
4230
|
_subscribe($for_content4__t_path__closures, _subscribe($for_content4__t_version__closures, _subscribe($for_content4__t_label__closures, writeScope($scope30_id, { Cu: 1 }))));
|
|
4231
4231
|
return 0;
|
|
@@ -4239,7 +4239,7 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4239
4239
|
_if(() => {
|
|
4240
4240
|
if (outdated(t)) {
|
|
4241
4241
|
const $scope37_id = _scope_id();
|
|
4242
|
-
_html(`<button${_attr_class([btnSm, "
|
|
4242
|
+
_html(`<button${_attr_class([btnSm, "_cc"])}${_attr("title", `Update to v${t.latest}`)}>↑ <!>${_escape(t.latest)}${_el_resume($scope37_id, "b")}</button>${_el_resume($scope37_id, "a")}`);
|
|
4243
4243
|
_script($scope37_id, "s37");
|
|
4244
4244
|
_subscribe($for_content4__t_latest__closures, writeScope($scope37_id, {}));
|
|
4245
4245
|
return 0;
|
|
@@ -4338,14 +4338,14 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4338
4338
|
_if(() => {
|
|
4339
4339
|
if (hits && hits.length) {
|
|
4340
4340
|
const $scope19_id = _scope_id();
|
|
4341
|
-
_html(`<ul${_attr_class([toolGrid, "
|
|
4341
|
+
_html(`<ul${_attr_class([toolGrid, "_cd"])}>`);
|
|
4342
4342
|
_for_of(hits, (h) => {
|
|
4343
4343
|
const $scope20_id = _scope_id();
|
|
4344
|
-
_html(`<li${_attr_class(row)}><div${_attr_class("_bv")}><span${_attr_class(["
|
|
4344
|
+
_html(`<li${_attr_class(row)}><div${_attr_class("_bv")}><span${_attr_class(["_ca", "_u"])}>${_escape(h.name)}${_el_resume($scope20_id, "d")}</span>`);
|
|
4345
4345
|
_if(() => {
|
|
4346
4346
|
if (active.has(h.name)) {
|
|
4347
4347
|
const $scope21_id = _scope_id();
|
|
4348
|
-
_html(`<span${_attr_class("
|
|
4348
|
+
_html(`<span${_attr_class("_bW")}><span${_attr_class("_C")}></span><!>${_escape(active.get(h.name) || "Starting…")}${_el_resume($scope21_id, "c")}</span>`);
|
|
4349
4349
|
_subscribe($active__closures, writeScope($scope21_id, { Cck: 4 }));
|
|
4350
4350
|
return 0;
|
|
4351
4351
|
} else if (h.description) {
|
|
@@ -4501,8 +4501,8 @@ var curBase = "_bN _Q _P";
|
|
|
4501
4501
|
var archived = "_bR _bp";
|
|
4502
4502
|
var archivedHint = "_bS _P";
|
|
4503
4503
|
var archivedCard = "_bT _bu";
|
|
4504
|
-
var resultBranch = "
|
|
4505
|
-
var branchInput = "
|
|
4504
|
+
var resultBranch = "_cV _W _g";
|
|
4505
|
+
var branchInput = "_c0 _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("_cP")}><label${_attr_class("_T")}>`);
|
|
4556
4556
|
icon_search_default({
|
|
4557
4557
|
size: 14,
|
|
4558
4558
|
class: "_U"
|
|
@@ -4572,19 +4572,19 @@ var repo_picker_default = _template("q", (input) => {
|
|
|
4572
4572
|
_if(() => {
|
|
4573
4573
|
if (results.length) {
|
|
4574
4574
|
const $scope2_id = _scope_id();
|
|
4575
|
-
_html(`<ul${_attr_class("
|
|
4575
|
+
_html(`<ul${_attr_class("_cQ")}>`);
|
|
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(["_cS", { ["_cR"]: i === highlight }])}><button${_attr_class("_cT")}>`);
|
|
4579
4579
|
icon_plus_default({
|
|
4580
4580
|
size: 12,
|
|
4581
|
-
class: "
|
|
4581
|
+
class: "_cY"
|
|
4582
4582
|
});
|
|
4583
|
-
_html(`<span${_attr_class("
|
|
4583
|
+
_html(`<span${_attr_class("_cZ")}>${_escape(repoLabel(repo.nameWithOwner))}${_el_resume($scope3_id, "e")}</span></button>${_el_resume($scope3_id, "b")}<button${_attr_class([resultBranch, { ["_cU"]: 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("_cW")}>`);
|
|
4588
4588
|
_if(() => {
|
|
4589
4589
|
if (!branches) {
|
|
4590
4590
|
const $scope9_id = _scope_id();
|
|
@@ -4605,10 +4605,10 @@ var repo_picker_default = _template("q", (input) => {
|
|
|
4605
4605
|
}
|
|
4606
4606
|
}, $scope5_id, "a", 1, 1, 1, 0, 1);
|
|
4607
4607
|
const shown = (branchFilter ? branches.filter((b) => b.toLowerCase().includes(branchFilter.toLowerCase())) : branches).slice(0, 12);
|
|
4608
|
-
_html(`<ul${_attr_class("
|
|
4608
|
+
_html(`<ul${_attr_class("_cX")}>`);
|
|
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(["_cT", "_c1"])}><span${_attr_class(["_cZ", "_u"])}>${_escape(branch)}${_el_resume($scope7_id, "c")}</span></button>${_el_resume($scope7_id, "a")}</li>`);
|
|
4612
4612
|
_script($scope7_id, "q7");
|
|
4613
4613
|
writeScope($scope7_id, { e: branch });
|
|
4614
4614
|
}, (b) => b, $scope5_id, "c", 1, 1, 1, 0, 1);
|
|
@@ -5041,8 +5041,8 @@ function activeAgent(session) {
|
|
|
5041
5041
|
const command = session.state?.command?.trim();
|
|
5042
5042
|
return command && agentFromCommand(command) || session.agent;
|
|
5043
5043
|
}
|
|
5044
|
-
var iconBtn$1 = "
|
|
5045
|
-
var navToggle = "
|
|
5044
|
+
var iconBtn$1 = "_dg _g";
|
|
5045
|
+
var navToggle = "_dl _g";
|
|
5046
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();
|
|
@@ -5085,13 +5085,24 @@ 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
5093
|
var sessionPop = "_ft _1";
|
|
5094
5094
|
//#endregion
|
|
5095
|
+
//#region src/client/usage.ts
|
|
5096
|
+
/** The plan row an agent instance draws on: its own account (`claude2`)
|
|
5097
|
+
* when the provider reports per account, else the family's (`codex`). */
|
|
5098
|
+
function usageFor(agentId, usage) {
|
|
5099
|
+
const rows = usage?.agents || [];
|
|
5100
|
+
const exact = rows.find((r) => r.agent === agentId);
|
|
5101
|
+
if (exact) return exact;
|
|
5102
|
+
const family = agentFamily(agentId);
|
|
5103
|
+
return rows.find((r) => r.agent === family) ?? null;
|
|
5104
|
+
}
|
|
5105
|
+
//#endregion
|
|
5095
5106
|
//#region src/tags/icons/icon-diff.marko
|
|
5096
5107
|
var icon_diff_default = _template("I", (input) => {
|
|
5097
5108
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
@@ -5126,6 +5137,49 @@ var icon_manage_default = _template("O", (input) => {
|
|
|
5126
5137
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
5127
5138
|
});
|
|
5128
5139
|
//#endregion
|
|
5140
|
+
//#region src/tags/usage-pcts.marko
|
|
5141
|
+
function pctText(pct) {
|
|
5142
|
+
const rounded = Math.round(pct);
|
|
5143
|
+
return rounded !== pct && (rounded === 100 || rounded === 0) ? `${pct.toFixed(1)}%` : `${rounded}%`;
|
|
5144
|
+
}
|
|
5145
|
+
var usage_pcts_default = _template("A", (input) => {
|
|
5146
|
+
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);
|
|
5147
|
+
const $scope0_id = _scope_id();
|
|
5148
|
+
const agent = input.agent;
|
|
5149
|
+
const windows = agent.windows || [];
|
|
5150
|
+
_if(() => {
|
|
5151
|
+
if (windows.length) {
|
|
5152
|
+
const $scope1_id = _scope_id();
|
|
5153
|
+
_html(`<span${_attr_class([
|
|
5154
|
+
"_eU",
|
|
5155
|
+
input.class,
|
|
5156
|
+
{ ["_eV"]: agent.stale_seconds != null }
|
|
5157
|
+
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
5158
|
+
_for_of(windows, (win$1, i) => {
|
|
5159
|
+
const $scope2_id = _scope_id();
|
|
5160
|
+
_if(() => {
|
|
5161
|
+
if (i) {
|
|
5162
|
+
const $scope3_id = _scope_id();
|
|
5163
|
+
_html(`<span${_attr_class("_eZ")} aria-hidden=true>·</span>`);
|
|
5164
|
+
$si__input_agent && writeScope($scope3_id, {});
|
|
5165
|
+
return 0;
|
|
5166
|
+
}
|
|
5167
|
+
}, $scope2_id, "a", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
5168
|
+
_html(`<span${_attr_class("_eW")}><span${_attr_class("_eX")}>${_escape(win$1.window)}${_el_resume($scope2_id, "d", $sg__input_agent)}</span><span${_attr_class(["_eY", win$1.used_percent >= 90 ? "_cL" : win$1.used_percent >= 70 ? "_cK" : win$1.used_percent >= 40 ? "_cJ" : "_cI"])}>${_escape(pctText(win$1.used_percent))}${_el_resume($scope2_id, "f", $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
5169
|
+
$si__input_agent && writeScope($scope2_id, {});
|
|
5170
|
+
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>");
|
|
5171
|
+
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
5172
|
+
return 0;
|
|
5173
|
+
}
|
|
5174
|
+
}, $scope0_id, "a", $sg__input_agent__OR__input_class, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
5175
|
+
$si__input_agent__OR__input_class && writeScope($scope0_id, {
|
|
5176
|
+
e: $si__input_agent && input.class,
|
|
5177
|
+
h: agent?.stale_seconds,
|
|
5178
|
+
i: $si__input_agent && agent?.note,
|
|
5179
|
+
j: $si__input_agent && windows
|
|
5180
|
+
});
|
|
5181
|
+
});
|
|
5182
|
+
//#endregion
|
|
5129
5183
|
//#region src/tags/icons/icon-edit.marko
|
|
5130
5184
|
var icon_edit_default = _template("K", (input) => {
|
|
5131
5185
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
@@ -5142,12 +5196,12 @@ var icon_edit_default = _template("K", (input) => {
|
|
|
5142
5196
|
});
|
|
5143
5197
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
5144
5198
|
});
|
|
5145
|
-
var prChip = "
|
|
5146
|
-
var portChip = "
|
|
5199
|
+
var prChip = "_gy _p _gx";
|
|
5200
|
+
var portChip = "_gz _p _gx";
|
|
5147
5201
|
var prState = {
|
|
5148
|
-
open: "
|
|
5149
|
-
merged: "
|
|
5150
|
-
closed: "
|
|
5202
|
+
open: "_gD",
|
|
5203
|
+
merged: "_gE",
|
|
5204
|
+
closed: "_gF"
|
|
5151
5205
|
};
|
|
5152
5206
|
//#endregion
|
|
5153
5207
|
//#region src/tags/side-nav-chips.marko
|
|
@@ -5195,7 +5249,7 @@ var side_nav_chips_default = _template("t", (input) => {
|
|
|
5195
5249
|
const name = repo.full_name.split("/").at(-1);
|
|
5196
5250
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel(repo.full_name) : name;
|
|
5197
5251
|
}, "t2", $scope1_id);
|
|
5198
|
-
_html(`<div${_attr_class("
|
|
5252
|
+
_html(`<div${_attr_class("_gw")}>`);
|
|
5199
5253
|
_for_of(repos, (repo) => {
|
|
5200
5254
|
const $scope2_id = _scope_id();
|
|
5201
5255
|
const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -5211,11 +5265,11 @@ var side_nav_chips_default = _template("t", (input) => {
|
|
|
5211
5265
|
[prState.merged]: pr.state === "MERGED",
|
|
5212
5266
|
[prState.closed]: pr.state === "CLOSED"
|
|
5213
5267
|
}
|
|
5214
|
-
])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["
|
|
5268
|
+
])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["_gA", { ["_gH"]: !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
5269
|
_if(() => {
|
|
5216
5270
|
if (open) {
|
|
5217
5271
|
const $scope4_id = _scope_id();
|
|
5218
|
-
_html(`<a${_attr_class(["
|
|
5272
|
+
_html(`<a${_attr_class(["_gA", "_gB"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr.number}`)}`)}${_attr("title", `Review #${pr.number} changes`)}>`);
|
|
5219
5273
|
icon_diff_default({ size: 12 });
|
|
5220
5274
|
_html(`</a>${_el_resume($scope4_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
5221
5275
|
_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 +5277,9 @@ var side_nav_chips_default = _template("t", (input) => {
|
|
|
5223
5277
|
} else {
|
|
5224
5278
|
const $scope6_id = _scope_id();
|
|
5225
5279
|
_html(`<button type=button${_attr_class([
|
|
5226
|
-
"
|
|
5227
|
-
"
|
|
5228
|
-
"
|
|
5280
|
+
"_gA",
|
|
5281
|
+
"_gB",
|
|
5282
|
+
"_gC"
|
|
5229
5283
|
])}${_attr("title", `Dismiss #${pr.number}`)}>`);
|
|
5230
5284
|
icon_xmark_default({ size: 12 });
|
|
5231
5285
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
@@ -5250,10 +5304,10 @@ var side_nav_chips_default = _template("t", (input) => {
|
|
|
5250
5304
|
}, "full_name", $scope1_id, "b", $sg__input_status_repos, $sg__input_status_repos, $sg__input_status_repos__OR__input_status_ports);
|
|
5251
5305
|
_for_of(ports, (p) => {
|
|
5252
5306
|
const $scope5_id = _scope_id();
|
|
5253
|
-
_html(`<span${_attr_class(["_p", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["
|
|
5254
|
-
"
|
|
5255
|
-
"
|
|
5256
|
-
"
|
|
5307
|
+
_html(`<span${_attr_class(["_p", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["_gA", "_gG"])}${_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([
|
|
5308
|
+
"_gA",
|
|
5309
|
+
"_gB",
|
|
5310
|
+
"_gC",
|
|
5257
5311
|
{ ["_n"]: armedPid === p.pid }
|
|
5258
5312
|
])}${armedPid === p.pid ? " title=Kill?" : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
|
|
5259
5313
|
icon_xmark_default({ size: 12 });
|
|
@@ -5292,7 +5346,7 @@ var side_nav_chips_default = _template("t", (input) => {
|
|
|
5292
5346
|
//#endregion
|
|
5293
5347
|
//#region src/tags/side-nav-item.marko
|
|
5294
5348
|
var side_nav_item_default = _template("u", (input) => {
|
|
5295
|
-
const $scope0_reason = _scope_reason(), $si__input_workspaces__OR__input_workspaceId = _serialize_if($scope0_reason, 0), $sg__input_workspaceId__OR__input_status = _serialize_guard($scope0_reason, 1), $sg__input_sessions = _serialize_guard($scope0_reason,
|
|
5349
|
+
const $scope0_reason = _scope_reason(), $si__input_workspaces__OR__input_workspaceId = _serialize_if($scope0_reason, 0), $sg__input_workspaceId__OR__input_status = _serialize_guard($scope0_reason, 1), $sg__input_sessions = _serialize_guard($scope0_reason, 24), $si__input_sessions = _serialize_if($scope0_reason, 24), $si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status = _serialize_if($scope0_reason, 10), $sg__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status = _serialize_guard($scope0_reason, 10), $si__input_current = _serialize_if($scope0_reason, 21), $sg__input_page = _serialize_guard($scope0_reason, 22), $sg__input_workspaces__OR__input_workspaceId = _serialize_guard($scope0_reason, 0), $si__input_agents = _serialize_if($scope0_reason, 30), $sg__input_onNewSession = _serialize_guard($scope0_reason, 29), $sg__input_onNewSession__OR__input_onReview = _serialize_guard($scope0_reason, 2), $sg__input_onReview = _serialize_guard($scope0_reason, 31), $sg__input_rail = _serialize_guard($scope0_reason, 23), $si__input_rail = _serialize_if($scope0_reason, 23), $si__input_workspaceId = _serialize_if($scope0_reason, 26), $si__input_current__OR__input_page__OR__input_rail__OR__input_workspaces__OR__input_workspaceId = _serialize_if($scope0_reason, 13), $si__input_page__OR__input_rail__OR__input_workspaces__OR__input_workspaceId = _serialize_if($scope0_reason, 9), $si__input_current__OR__input_page__OR__input_rail__OR__input_sessions__OR__input_currentTab = _serialize_if($scope0_reason, 12), $si__input_rail__OR__input_workspaces__OR__input_workspaceId = _serialize_if($scope0_reason, 4), $si__input_index = _serialize_if($scope0_reason, 27), $si__input_onNewSession = _serialize_if($scope0_reason, 29), $si__input_onReview = _serialize_if($scope0_reason, 31), $si__input_managing = _serialize_if($scope0_reason, 32), $si__input_currentTab = _serialize_if($scope0_reason, 25), $si__input_page = _serialize_if($scope0_reason, 22), $si__input_railPop = _serialize_if($scope0_reason, 28);
|
|
5296
5350
|
const $scope0_id = _scope_id();
|
|
5297
5351
|
const $input_current__closures = /* @__PURE__ */ new Set();
|
|
5298
5352
|
const $input_index__closures = /* @__PURE__ */ new Set();
|
|
@@ -5302,14 +5356,16 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5302
5356
|
const $input_onNewSession__closures = /* @__PURE__ */ new Set();
|
|
5303
5357
|
const $input_onReview__closures = /* @__PURE__ */ new Set();
|
|
5304
5358
|
const $input_managing__closures = /* @__PURE__ */ new Set();
|
|
5359
|
+
const $openPlan__closures = /* @__PURE__ */ new Set();
|
|
5305
5360
|
const $renameValue__closures = /* @__PURE__ */ new Set();
|
|
5306
5361
|
const $armedKill__closures = /* @__PURE__ */ new Set();
|
|
5362
|
+
const $openSess_id__closures = /* @__PURE__ */ new Set();
|
|
5307
5363
|
const $input_currentTab__closures = /* @__PURE__ */ new Set();
|
|
5308
5364
|
const $renamingId__closures = /* @__PURE__ */ new Set();
|
|
5309
|
-
const $
|
|
5365
|
+
const $input_page__closures = /* @__PURE__ */ new Set();
|
|
5310
5366
|
const $input_sessions__closures = /* @__PURE__ */ new Set();
|
|
5367
|
+
const $input_workspaceId__closures = /* @__PURE__ */ new Set();
|
|
5311
5368
|
const $input_railPop__closures = /* @__PURE__ */ new Set();
|
|
5312
|
-
const $input_page__closures = /* @__PURE__ */ new Set();
|
|
5313
5369
|
let armedKill = null;
|
|
5314
5370
|
const armBox = { timer: 0 };
|
|
5315
5371
|
const arm = _resume((id) => {
|
|
@@ -5326,6 +5382,14 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5326
5382
|
renamingId = null;
|
|
5327
5383
|
input.onRenameSession?.(s, renameValue.trim());
|
|
5328
5384
|
}, "u2", $scope0_id);
|
|
5385
|
+
let usage = null;
|
|
5386
|
+
const openSess = (() => {
|
|
5387
|
+
if (!input.current || input.page || input.rail) return null;
|
|
5388
|
+
const list = input.sessions || [];
|
|
5389
|
+
const s = list.find((x) => x.id === input.currentTab) ?? (list.length === 1 ? list[0] : null);
|
|
5390
|
+
return s && s.agent !== "shell" ? s : null;
|
|
5391
|
+
})();
|
|
5392
|
+
const openPlan = openSess ? usageFor(openSess.agent, usage) : null;
|
|
5329
5393
|
const ws$1 = input.workspaces.find((w) => w.id === input.workspaceId);
|
|
5330
5394
|
_if(() => {
|
|
5331
5395
|
if (ws$1) {
|
|
@@ -5335,30 +5399,30 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5335
5399
|
_if(() => {
|
|
5336
5400
|
if (input.rail) {
|
|
5337
5401
|
const $scope2_id = _scope_id();
|
|
5338
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
5402
|
+
_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, 27))}<span${_attr_class([
|
|
5339
5403
|
"_w",
|
|
5340
5404
|
phase[dot],
|
|
5341
|
-
"
|
|
5342
|
-
])}></span>${_el_resume($scope2_id, "c", $sg__input_workspaceId__OR__input_status)}</a>${_el_resume($scope2_id, "a", _serialize_guard($scope0_reason,
|
|
5343
|
-
_serialize_if($scope0_reason,
|
|
5405
|
+
"_fy"
|
|
5406
|
+
])}></span>${_el_resume($scope2_id, "c", $sg__input_workspaceId__OR__input_status)}</a>${_el_resume($scope2_id, "a", _serialize_guard($scope0_reason, 3))}`);
|
|
5407
|
+
_serialize_if($scope0_reason, 18) && _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_name__closures, _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_id__closures, _subscribe($si__input_index && $input_index__closures, _subscribe($si__input_current && $input_current__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })))));
|
|
5344
5408
|
return 0;
|
|
5345
5409
|
} else {
|
|
5346
5410
|
const $scope3_id = _scope_id();
|
|
5347
5411
|
const sessions$1 = input.sessions || [];
|
|
5348
5412
|
const phaseLabel = dot === "working" ? "Working" : dot === "waiting" ? "Needs input" : dot === "idle" ? "Idle" : "Not running";
|
|
5349
|
-
_html(`<section${_attr_class(["
|
|
5350
|
-
["
|
|
5413
|
+
_html(`<section${_attr_class(["_fA", {
|
|
5414
|
+
["_fv"]: input.current,
|
|
5351
5415
|
["_2"]: input.current,
|
|
5352
|
-
["
|
|
5353
|
-
["
|
|
5354
|
-
}])}><div${_attr_class("
|
|
5416
|
+
["_fB"]: input.railPop,
|
|
5417
|
+
["_fz"]: input.page
|
|
5418
|
+
}])}><div${_attr_class("_fC")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class("_fD")}><span${_attr_class([
|
|
5355
5419
|
"_w",
|
|
5356
5420
|
phase[dot],
|
|
5357
|
-
"
|
|
5421
|
+
"_fR"
|
|
5358
5422
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope3_id, "d", $sg__input_workspaceId__OR__input_status)}`);
|
|
5359
5423
|
_if(() => {
|
|
5360
5424
|
if (sessions$1.length === 1) {
|
|
5361
|
-
const $
|
|
5425
|
+
const $scope14_id = _scope_id();
|
|
5362
5426
|
_set_serialize_reason({
|
|
5363
5427
|
1: $sg__input_sessions,
|
|
5364
5428
|
2: $sg__input_sessions
|
|
@@ -5367,30 +5431,30 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5367
5431
|
icon_agent_default({
|
|
5368
5432
|
agent: activeAgent(sessions$1[0]),
|
|
5369
5433
|
size: 12,
|
|
5370
|
-
class: "
|
|
5434
|
+
class: "_fI"
|
|
5371
5435
|
});
|
|
5372
|
-
$si__input_sessions && writeScope($
|
|
5436
|
+
$si__input_sessions && writeScope($scope14_id, {
|
|
5373
5437
|
_: _scope_with_id($scope3_id),
|
|
5374
5438
|
a: _existing_scope($childScope)
|
|
5375
5439
|
});
|
|
5376
5440
|
return 0;
|
|
5377
5441
|
}
|
|
5378
|
-
}, $scope3_id, "e", $sg__input_sessions, $sg__input_sessions
|
|
5442
|
+
}, $scope3_id, "e", $sg__input_sessions, $sg__input_sessions);
|
|
5379
5443
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length === 1 ? sessions$1[0].title || "" : `${sessions$1.length} sessions`;
|
|
5380
|
-
_html(`<span${_attr_class("
|
|
5444
|
+
_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>`);
|
|
5381
5445
|
_if(() => {
|
|
5382
5446
|
if (input.page && metaText) {
|
|
5383
|
-
const $
|
|
5384
|
-
_html(`<span${_attr_class("
|
|
5385
|
-
$
|
|
5447
|
+
const $scope16_id = _scope_id();
|
|
5448
|
+
_html(`<span${_attr_class("_fP")}>${_escape(metaText)}${_el_resume($scope16_id, "b", _serialize_guard($scope0_reason, 7))}</span>`);
|
|
5449
|
+
$si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && writeScope($scope16_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope3_id) });
|
|
5386
5450
|
return 0;
|
|
5387
5451
|
} else if (sessions$1.length === 1 && sessions$1[0].title) {
|
|
5388
|
-
const $
|
|
5389
|
-
_html(`<span${_attr_class("
|
|
5390
|
-
$
|
|
5452
|
+
const $scope15_id = _scope_id();
|
|
5453
|
+
_html(`<span${_attr_class("_fL")}>${_escape(sessions$1[0].title)}${_el_resume($scope15_id, "b", $sg__input_sessions)}</span>`);
|
|
5454
|
+
$si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && writeScope($scope15_id, { _: $si__input_sessions && _scope_with_id($scope3_id) });
|
|
5391
5455
|
return 1;
|
|
5392
5456
|
}
|
|
5393
|
-
}, $scope3_id, "i", $
|
|
5457
|
+
}, $scope3_id, "i", $sg__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status, $sg__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status, 1, 0, 1);
|
|
5394
5458
|
_html("</span>");
|
|
5395
5459
|
_if(() => {
|
|
5396
5460
|
if (input.page) {
|
|
@@ -5399,20 +5463,20 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5399
5463
|
"_F",
|
|
5400
5464
|
"_O",
|
|
5401
5465
|
"_H",
|
|
5402
|
-
"
|
|
5403
|
-
])}>${input.current ? "Open" : ""}${_el_resume($scope4_id, "b", _serialize_guard($scope0_reason,
|
|
5404
|
-
$
|
|
5466
|
+
"_fQ"
|
|
5467
|
+
])}>${input.current ? "Open" : ""}${_el_resume($scope4_id, "b", _serialize_guard($scope0_reason, 21))}</span>`);
|
|
5468
|
+
$si__input_current__OR__input_page__OR__input_rail__OR__input_workspaces__OR__input_workspaceId && _subscribe($si__input_current && $input_current__closures, writeScope($scope4_id, {
|
|
5405
5469
|
_: _scope_with_id($scope3_id),
|
|
5406
|
-
|
|
5470
|
+
Cac: $si__input_current && 2
|
|
5407
5471
|
}));
|
|
5408
5472
|
return 0;
|
|
5409
5473
|
}
|
|
5410
|
-
}, $scope3_id, "j", $sg__input_page, $sg__input_page,
|
|
5474
|
+
}, $scope3_id, "j", $sg__input_page, $sg__input_page, 1, 0, 1);
|
|
5411
5475
|
_html(`</a>${_el_resume($scope3_id, "c", $sg__input_workspaces__OR__input_workspaceId)}`);
|
|
5412
5476
|
_if(() => {
|
|
5413
5477
|
if (!input.page) {
|
|
5414
5478
|
const $scope5_id = _scope_id();
|
|
5415
|
-
_html(`<div${_attr_class("
|
|
5479
|
+
_html(`<div${_attr_class("_fE")}>`);
|
|
5416
5480
|
_if(() => {
|
|
5417
5481
|
if (input.onNewSession) {
|
|
5418
5482
|
const $scope6_id = _scope_id();
|
|
@@ -5450,78 +5514,112 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5450
5514
|
}, $scope5_id, "b", $sg__input_onNewSession, $sg__input_onNewSession, $sg__input_onNewSession__OR__input_onReview);
|
|
5451
5515
|
_if(() => {
|
|
5452
5516
|
if (input.onReview) {
|
|
5453
|
-
const $
|
|
5517
|
+
const $scope13_id = _scope_id();
|
|
5454
5518
|
_html(`<a${_attr("href", `/w/${ws$1.id}/review`)}${_attr_class(rowIcon)} title="Review changes">`);
|
|
5455
5519
|
icon_diff_default({ size: 12 });
|
|
5456
|
-
_html(`</a>${_el_resume($
|
|
5457
|
-
_serialize_if($scope0_reason,
|
|
5520
|
+
_html(`</a>${_el_resume($scope13_id, "a", $sg__input_workspaces__OR__input_workspaceId)}`);
|
|
5521
|
+
_serialize_if($scope0_reason, 14) && _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_id__closures, writeScope($scope13_id, {
|
|
5458
5522
|
_: _scope_with_id($scope5_id),
|
|
5459
|
-
|
|
5523
|
+
Cau: $si__input_workspaces__OR__input_workspaceId && 4
|
|
5460
5524
|
}));
|
|
5461
5525
|
return 0;
|
|
5462
5526
|
}
|
|
5463
5527
|
}, $scope5_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
5464
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["
|
|
5528
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_fw"]: input.managing }])} title="Manage workspace"${input.managing ? " aria-current=page" : ""}>`);
|
|
5465
5529
|
icon_manage_default({ size: 12 });
|
|
5466
|
-
_html(`</a>${_el_resume($scope5_id, "d", _serialize_guard($scope0_reason,
|
|
5530
|
+
_html(`</a>${_el_resume($scope5_id, "d", _serialize_guard($scope0_reason, 8))}</div>`);
|
|
5467
5531
|
_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, {
|
|
5468
5532
|
_: _scope_with_id($scope3_id),
|
|
5469
|
-
|
|
5533
|
+
Cau: $si__input_workspaces__OR__input_workspaceId && 2
|
|
5470
5534
|
})))));
|
|
5471
5535
|
return 0;
|
|
5472
5536
|
}
|
|
5473
|
-
}, $scope3_id, "k", $sg__input_page, $sg__input_page,
|
|
5474
|
-
_html(`</div><div${_attr_class("
|
|
5537
|
+
}, $scope3_id, "k", $sg__input_page, $sg__input_page, 1, 0, 1);
|
|
5538
|
+
_html(`</div><div${_attr_class("_fW")}>`);
|
|
5539
|
+
_if(() => {
|
|
5540
|
+
if (sessions$1.length === 1 && openPlan) {
|
|
5541
|
+
const $scope11_id = _scope_id();
|
|
5542
|
+
_set_serialize_reason(1);
|
|
5543
|
+
const $childScope3 = _peek_scope_id();
|
|
5544
|
+
usage_pcts_default({
|
|
5545
|
+
agent: openPlan,
|
|
5546
|
+
class: "_fM"
|
|
5547
|
+
});
|
|
5548
|
+
_subscribe($openPlan__closures, writeScope($scope11_id, {
|
|
5549
|
+
a: _existing_scope($childScope3),
|
|
5550
|
+
Cat: 2
|
|
5551
|
+
}));
|
|
5552
|
+
return 0;
|
|
5553
|
+
}
|
|
5554
|
+
}, $scope3_id, "m");
|
|
5475
5555
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
5476
5556
|
const $scope8_id = _scope_id();
|
|
5477
|
-
_html(`<div${_attr_class(["
|
|
5557
|
+
_html(`<div${_attr_class(["_fF", { ["_fv"]: s.id === input.currentTab }])}>`);
|
|
5478
5558
|
_if(() => {
|
|
5479
5559
|
if (renamingId === s.id) {
|
|
5480
5560
|
const $scope10_id = _scope_id();
|
|
5481
5561
|
_html(`<span${_attr_class([
|
|
5482
5562
|
"_w",
|
|
5483
5563
|
phase[sessionPhase(s.state)],
|
|
5484
|
-
"
|
|
5564
|
+
"_fU"
|
|
5485
5565
|
])}></span>${_el_resume($scope10_id, "a", $sg__input_sessions)}`);
|
|
5486
5566
|
_set_serialize_reason({
|
|
5487
5567
|
1: $sg__input_sessions,
|
|
5488
5568
|
2: $sg__input_sessions
|
|
5489
5569
|
});
|
|
5490
|
-
const $
|
|
5570
|
+
const $childScope4 = _peek_scope_id();
|
|
5491
5571
|
icon_agent_default({
|
|
5492
5572
|
agent: activeAgent(s),
|
|
5493
5573
|
size: 13,
|
|
5494
|
-
class: "
|
|
5574
|
+
class: "_fY"
|
|
5495
5575
|
});
|
|
5496
5576
|
_html(`<input${_attr_input_value($scope10_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
5497
5577
|
renameValue = _new_renameValue;
|
|
5498
|
-
}, "u0", $scope10_id))}${_attr_class(["_R", "
|
|
5578
|
+
}, "u0", $scope10_id))}${_attr_class(["_R", "_fV"])} aria-label="Session name">${_el_resume($scope10_id, "c")}`);
|
|
5499
5579
|
_script($scope10_id, "u5");
|
|
5500
|
-
_subscribe($renameValue__closures, writeScope($scope10_id, { b: $si__input_sessions && _existing_scope($
|
|
5580
|
+
_subscribe($renameValue__closures, writeScope($scope10_id, { b: $si__input_sessions && _existing_scope($childScope4) }));
|
|
5501
5581
|
return 0;
|
|
5502
5582
|
} else {
|
|
5503
5583
|
const $scope9_id = _scope_id();
|
|
5504
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("
|
|
5584
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("_fX")}><span${_attr_class(["_w", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope9_id, "b", $sg__input_sessions)}`);
|
|
5505
5585
|
_set_serialize_reason({
|
|
5506
5586
|
1: $sg__input_sessions,
|
|
5507
5587
|
2: $sg__input_sessions
|
|
5508
5588
|
});
|
|
5509
|
-
const $
|
|
5589
|
+
const $childScope5 = _peek_scope_id();
|
|
5510
5590
|
icon_agent_default({
|
|
5511
5591
|
agent: activeAgent(s),
|
|
5512
5592
|
size: 13,
|
|
5513
|
-
class: "
|
|
5593
|
+
class: "_fY"
|
|
5514
5594
|
});
|
|
5515
|
-
_html(`<span${_attr_class("
|
|
5595
|
+
_html(`<span${_attr_class("_fN")}><span${_attr_class("_fS")}>${_escape(s.title || activeAgent(s))}${_el_resume($scope9_id, "f", $sg__input_sessions)}</span>`);
|
|
5596
|
+
_if(() => {
|
|
5597
|
+
if (openPlan && s.id === openSess?.id) {
|
|
5598
|
+
const $scope12_id = _scope_id();
|
|
5599
|
+
_set_serialize_reason(1);
|
|
5600
|
+
const $childScope6 = _peek_scope_id();
|
|
5601
|
+
usage_pcts_default({
|
|
5602
|
+
agent: openPlan,
|
|
5603
|
+
class: "_fO"
|
|
5604
|
+
});
|
|
5605
|
+
_subscribe($openPlan__closures, writeScope($scope12_id, {
|
|
5606
|
+
a: _existing_scope($childScope6),
|
|
5607
|
+
Cat: 3
|
|
5608
|
+
}));
|
|
5609
|
+
return 0;
|
|
5610
|
+
}
|
|
5611
|
+
}, $scope9_id, "g");
|
|
5612
|
+
_html(`</span></a>${_el_resume($scope9_id, "a", _serialize_guard($scope0_reason, 6))}<div${_attr_class("_fT")}><button${_attr_class(rowIcon)} title="Rename session">`);
|
|
5516
5613
|
icon_edit_default({ size: 12 });
|
|
5517
|
-
_html(`</button>${_el_resume($scope9_id, "
|
|
5614
|
+
_html(`</button>${_el_resume($scope9_id, "i")}<button${_attr_class([close, { ["_n"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
|
|
5518
5615
|
icon_xmark_default({ size: 12 });
|
|
5519
|
-
_html(`</button>${_el_resume($scope9_id, "
|
|
5616
|
+
_html(`</button>${_el_resume($scope9_id, "k")}</div>`);
|
|
5520
5617
|
_script($scope9_id, "u6");
|
|
5521
|
-
_subscribe($si__input_workspaces__OR__input_workspaceId && $ws_id__closures, _subscribe($armedKill__closures, writeScope($scope9_id, {
|
|
5522
|
-
c: $si__input_sessions && _existing_scope($
|
|
5523
|
-
|
|
5524
|
-
|
|
5618
|
+
_subscribe($si__input_workspaces__OR__input_workspaceId && $ws_id__closures, _subscribe($openPlan__closures, _subscribe($si__input_current__OR__input_page__OR__input_rail__OR__input_sessions__OR__input_currentTab && $openSess_id__closures, _subscribe($armedKill__closures, writeScope($scope9_id, {
|
|
5619
|
+
c: $si__input_sessions && _existing_scope($childScope5),
|
|
5620
|
+
Cat: 1,
|
|
5621
|
+
Cau: $si__input_workspaces__OR__input_workspaceId && 3
|
|
5622
|
+
})))));
|
|
5525
5623
|
return 1;
|
|
5526
5624
|
}
|
|
5527
5625
|
}, $scope8_id, "a", 1, 1, 1, "</div>");
|
|
@@ -5533,37 +5631,37 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5533
5631
|
i: s?.agent,
|
|
5534
5632
|
_: _scope_with_id($scope3_id)
|
|
5535
5633
|
})));
|
|
5536
|
-
}, "id", $scope3_id, "
|
|
5634
|
+
}, "id", $scope3_id, "n", $sg__input_sessions, $sg__input_sessions, $sg__input_sessions, 0, 1);
|
|
5537
5635
|
_set_serialize_reason({
|
|
5538
5636
|
0: $sg__input_workspaceId__OR__input_status,
|
|
5539
5637
|
1: $sg__input_workspaceId__OR__input_status,
|
|
5540
5638
|
2: $sg__input_workspaceId__OR__input_status,
|
|
5541
|
-
3: _serialize_guard($scope0_reason,
|
|
5639
|
+
3: _serialize_guard($scope0_reason, 26),
|
|
5542
5640
|
4: $sg__input_workspaceId__OR__input_status,
|
|
5543
5641
|
5: $sg__input_workspaceId__OR__input_status
|
|
5544
5642
|
});
|
|
5545
|
-
const $
|
|
5643
|
+
const $childScope7 = _peek_scope_id();
|
|
5546
5644
|
side_nav_chips_default({
|
|
5547
5645
|
workspaceId: input.workspaceId,
|
|
5548
5646
|
status: st
|
|
5549
5647
|
});
|
|
5550
5648
|
_html(`</div></section>${_el_resume($scope3_id, "a")}`);
|
|
5551
5649
|
_script($scope3_id, "u7");
|
|
5552
|
-
_subscribe($si__input_workspaces__OR__input_workspaceId && $ws_name__closures, _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_id__closures, _subscribe($
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5650
|
+
_subscribe($si__input_workspaces__OR__input_workspaceId && $ws_name__closures, _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_id__closures, _subscribe($openPlan__closures, _subscribe($si__input_railPop && $input_railPop__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, _subscribe($si__input_sessions && $input_sessions__closures, _subscribe($si__input_page && $input_page__closures, _subscribe($si__input_current && $input_current__closures, writeScope($scope3_id, {
|
|
5651
|
+
q: sessions$1.length,
|
|
5652
|
+
s: $si__input_sessions && sessions$1[0],
|
|
5653
|
+
t: $si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && sessions$1[0]?.title,
|
|
5654
|
+
u: $si__input_sessions && phaseLabel,
|
|
5655
|
+
w: $si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && metaText,
|
|
5558
5656
|
_: _scope_with_id($scope1_id),
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
}))))))));
|
|
5657
|
+
o: _serialize_if($scope0_reason, 1) && _existing_scope($childScope7),
|
|
5658
|
+
Cac: $si__input_current && 1,
|
|
5659
|
+
Cau: $si__input_workspaces__OR__input_workspaceId && 1,
|
|
5660
|
+
Cav: $si__input_workspaces__OR__input_workspaceId && 1
|
|
5661
|
+
})))))))));
|
|
5564
5662
|
return 1;
|
|
5565
5663
|
}
|
|
5566
|
-
}, $scope1_id, "a", _serialize_guard($scope0_reason,
|
|
5664
|
+
}, $scope1_id, "a", _serialize_guard($scope0_reason, 5), $sg__input_rail, $sg__input_rail, 0, 1);
|
|
5567
5665
|
writeScope($scope1_id, {
|
|
5568
5666
|
b: $si__input_rail && st,
|
|
5569
5667
|
c: $si__input_rail && dot,
|
|
@@ -5571,49 +5669,56 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5571
5669
|
});
|
|
5572
5670
|
return 0;
|
|
5573
5671
|
}
|
|
5574
|
-
}, $scope0_id, "a", _serialize_guard($scope0_reason,
|
|
5672
|
+
}, $scope0_id, "a", _serialize_guard($scope0_reason, 11), $sg__input_workspaces__OR__input_workspaceId, $sg__input_workspaces__OR__input_workspaceId);
|
|
5673
|
+
_script($scope0_id, "u8");
|
|
5575
5674
|
writeScope($scope0_id, {
|
|
5576
5675
|
d: input.onRenameSession,
|
|
5577
|
-
e: $
|
|
5578
|
-
f: _serialize_if($scope0_reason,
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
k: $
|
|
5583
|
-
l: $
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
a4:
|
|
5600
|
-
a5:
|
|
5601
|
-
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
|
|
5613
|
-
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
|
|
5676
|
+
e: _serialize_if($scope0_reason, 19) && input.current,
|
|
5677
|
+
f: _serialize_if($scope0_reason, 20) && input.page,
|
|
5678
|
+
g: _serialize_if($scope0_reason, 17) && input.rail,
|
|
5679
|
+
h: _serialize_if($scope0_reason, 16) && input.sessions,
|
|
5680
|
+
i: _serialize_if($scope0_reason, 15) && input.currentTab,
|
|
5681
|
+
k: $si__input_workspaceId && input.workspaces,
|
|
5682
|
+
l: _serialize_if($scope0_reason, 11) && input.workspaceId,
|
|
5683
|
+
n: $si__input_workspaces__OR__input_workspaceId && input.status,
|
|
5684
|
+
o: $si__input_rail__OR__input_workspaces__OR__input_workspaceId && input.index,
|
|
5685
|
+
p: $si__input_current__OR__input_page__OR__input_rail__OR__input_workspaces__OR__input_workspaceId && input.railPop,
|
|
5686
|
+
q: input.onSelect,
|
|
5687
|
+
r: input.onNewSession,
|
|
5688
|
+
s: input.agents,
|
|
5689
|
+
t: $si__input_page__OR__input_rail__OR__input_workspaces__OR__input_workspaceId && input.onReview,
|
|
5690
|
+
u: $si__input_page__OR__input_rail__OR__input_workspaces__OR__input_workspaceId && input.managing,
|
|
5691
|
+
v: input.onCloseSession,
|
|
5692
|
+
w: armedKill,
|
|
5693
|
+
y: armBox.timer,
|
|
5694
|
+
z: arm,
|
|
5695
|
+
a0: renamingId,
|
|
5696
|
+
a1: renameValue,
|
|
5697
|
+
a3: commitRename,
|
|
5698
|
+
a4: $si__input_current__OR__input_page__OR__input_rail__OR__input_sessions__OR__input_currentTab && usage,
|
|
5699
|
+
a5: openSess,
|
|
5700
|
+
a7: openSess?.id,
|
|
5701
|
+
a8: openPlan,
|
|
5702
|
+
aa: ws$1?.id,
|
|
5703
|
+
ab: $si__input_rail__OR__input_workspaces__OR__input_workspaceId && ws$1?.name,
|
|
5704
|
+
ac: $si__input_current && $input_current__closures,
|
|
5705
|
+
aj: $si__input_index && $input_index__closures,
|
|
5706
|
+
au: $si__input_workspaces__OR__input_workspaceId && $ws_id__closures,
|
|
5707
|
+
av: $si__input_workspaces__OR__input_workspaceId && $ws_name__closures,
|
|
5708
|
+
am: $si__input_agents && $input_agents__closures,
|
|
5709
|
+
al: $si__input_onNewSession && $input_onNewSession__closures,
|
|
5710
|
+
an: $si__input_onReview && $input_onReview__closures,
|
|
5711
|
+
ao: $si__input_managing && $input_managing__closures,
|
|
5712
|
+
at: $openPlan__closures,
|
|
5713
|
+
ar: $renameValue__closures,
|
|
5714
|
+
ap: $armedKill__closures,
|
|
5715
|
+
as: $si__input_current__OR__input_page__OR__input_rail__OR__input_sessions__OR__input_currentTab && $openSess_id__closures,
|
|
5716
|
+
ag: $si__input_currentTab && $input_currentTab__closures,
|
|
5717
|
+
aq: $renamingId__closures,
|
|
5718
|
+
ad: $si__input_page && $input_page__closures,
|
|
5719
|
+
af: $si__input_sessions && $input_sessions__closures,
|
|
5720
|
+
ah: $si__input_workspaceId && $input_workspaceId__closures,
|
|
5721
|
+
ak: $si__input_railPop && $input_railPop__closures
|
|
5617
5722
|
});
|
|
5618
5723
|
_resume_branch($scope0_id);
|
|
5619
5724
|
});
|
|
@@ -5699,25 +5804,25 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5699
5804
|
const isPage = view === "nav";
|
|
5700
5805
|
const otherIds = itemIds.filter((id) => id !== ws.id);
|
|
5701
5806
|
const listIds = isPage ? [ws.id, ...otherIds] : itemIds;
|
|
5702
|
-
_html(`<aside${_attr_class(["
|
|
5703
|
-
["
|
|
5704
|
-
["
|
|
5807
|
+
_html(`<aside${_attr_class(["_dk", {
|
|
5808
|
+
["_di"]: !navOpen,
|
|
5809
|
+
["_dj"]: isPage
|
|
5705
5810
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
5706
5811
|
_if(() => {
|
|
5707
5812
|
if (isPage) {
|
|
5708
5813
|
const $scope1_id = _scope_id();
|
|
5709
|
-
_html(`<header${_attr_class("
|
|
5814
|
+
_html(`<header${_attr_class("_dn")}><h1${_attr_class("_do")}>Workspaces</h1><div${_attr_class("_dp")}>`);
|
|
5710
5815
|
_if(() => {}, $scope1_id, "d", 1, 1, 1, 0, 1);
|
|
5711
5816
|
_html(`<a href=/settings${_attr_class([
|
|
5712
5817
|
iconBtn$1,
|
|
5713
|
-
"
|
|
5714
|
-
{ ["
|
|
5818
|
+
"_dq",
|
|
5819
|
+
{ ["_df"]: view === "settings" }
|
|
5715
5820
|
])} title=Settings${view === "settings" ? " aria-current=page" : ""}>`);
|
|
5716
5821
|
icon_settings_default({ size: 16 });
|
|
5717
5822
|
_if(() => {
|
|
5718
5823
|
if (input.setupReady === false) {
|
|
5719
5824
|
const $scope10_id = _scope_id();
|
|
5720
|
-
_html(`<span${_attr_class(["_w", "
|
|
5825
|
+
_html(`<span${_attr_class(["_w", "_dh"])} title="Machine setup incomplete"></span>`);
|
|
5721
5826
|
$si__input_setupReady && writeScope($scope10_id, {});
|
|
5722
5827
|
return 0;
|
|
5723
5828
|
}
|
|
@@ -5727,13 +5832,13 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5727
5832
|
return 0;
|
|
5728
5833
|
}
|
|
5729
5834
|
}, $scope0_id, "b", 1, 1, 1, 0, 1);
|
|
5730
|
-
_html(`<div${_attr_class("
|
|
5835
|
+
_html(`<div${_attr_class("_dt")}>`);
|
|
5731
5836
|
_for_of(listIds, (wsId) => {
|
|
5732
5837
|
const $scope2_id = _scope_id();
|
|
5733
5838
|
_if(() => {
|
|
5734
5839
|
if (isPage && wsId === ws.id) {
|
|
5735
5840
|
const $scope11_id = _scope_id();
|
|
5736
|
-
_html(`<h2${_attr_class(["_bE", "
|
|
5841
|
+
_html(`<h2${_attr_class(["_bE", "_dr"])}>Current</h2>`);
|
|
5737
5842
|
writeScope($scope11_id, {});
|
|
5738
5843
|
return 0;
|
|
5739
5844
|
}
|
|
@@ -5741,7 +5846,7 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5741
5846
|
_if(() => {
|
|
5742
5847
|
if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
|
|
5743
5848
|
const $scope12_id = _scope_id();
|
|
5744
|
-
_html(`<h2${_attr_class(["_bE", "
|
|
5849
|
+
_html(`<h2${_attr_class(["_bE", "_dr"])}>Other workspaces</h2>`);
|
|
5745
5850
|
writeScope($scope12_id, {});
|
|
5746
5851
|
return 0;
|
|
5747
5852
|
}
|
|
@@ -5766,14 +5871,17 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5766
5871
|
16: 1,
|
|
5767
5872
|
17: 1,
|
|
5768
5873
|
18: 1,
|
|
5874
|
+
19: 1,
|
|
5769
5875
|
20: 1,
|
|
5876
|
+
21: 1,
|
|
5770
5877
|
22: 1,
|
|
5771
5878
|
24: 1,
|
|
5772
5879
|
25: 1,
|
|
5773
|
-
26:
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5880
|
+
26: 1,
|
|
5881
|
+
29: 1,
|
|
5882
|
+
30: $sg__input_agents,
|
|
5883
|
+
31: 1,
|
|
5884
|
+
32: 1
|
|
5777
5885
|
});
|
|
5778
5886
|
const $childScope = _peek_scope_id();
|
|
5779
5887
|
side_nav_item_default({
|
|
@@ -5825,7 +5933,7 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5825
5933
|
railHover = null;
|
|
5826
5934
|
}, 150);
|
|
5827
5935
|
}, "v6", $scope3_id);
|
|
5828
|
-
_html(`<div${_attr_class("
|
|
5936
|
+
_html(`<div${_attr_class("_du")}>`);
|
|
5829
5937
|
_for_of(itemIds, (wsId, i) => {
|
|
5830
5938
|
const $scope4_id = _scope_id();
|
|
5831
5939
|
_html("<span>");
|
|
@@ -5834,22 +5942,25 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5834
5942
|
1: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
5835
5943
|
3: $sg__input_workspace__OR__input_allWorkspaces,
|
|
5836
5944
|
4: $sg__input_workspace__OR__input_allWorkspaces,
|
|
5837
|
-
5: $
|
|
5945
|
+
5: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
5838
5946
|
6: $sg__input_workspace__OR__input_allWorkspaces,
|
|
5839
5947
|
7: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
5840
|
-
8: $
|
|
5841
|
-
9: $
|
|
5842
|
-
10: $
|
|
5843
|
-
11: $
|
|
5844
|
-
12: $
|
|
5948
|
+
8: $sg__input_workspace__OR__input_allWorkspaces,
|
|
5949
|
+
9: $sg__input_workspace__OR__input_allWorkspaces,
|
|
5950
|
+
10: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
5951
|
+
11: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
5952
|
+
12: $sg__input_workspace__OR__input_allWorkspaces,
|
|
5845
5953
|
13: $sg__input_workspace__OR__input_allWorkspaces,
|
|
5846
5954
|
14: $sg__input_workspace__OR__input_allWorkspaces,
|
|
5847
5955
|
15: $sg__input_workspace__OR__input_allWorkspaces,
|
|
5848
|
-
16: $
|
|
5849
|
-
17: $
|
|
5850
|
-
18: $
|
|
5851
|
-
|
|
5852
|
-
|
|
5956
|
+
16: $sg__input_workspace__OR__input_allWorkspaces,
|
|
5957
|
+
17: $sg__input_workspace__OR__input_allWorkspaces,
|
|
5958
|
+
18: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
5959
|
+
19: $sg__input_workspace__OR__input_allWorkspaces,
|
|
5960
|
+
20: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
5961
|
+
21: $sg__input_workspace__OR__input_allWorkspaces,
|
|
5962
|
+
26: $sg__input_workspace__OR__input_allWorkspaces,
|
|
5963
|
+
27: $sg__input_workspace__OR__input_allWorkspaces
|
|
5853
5964
|
});
|
|
5854
5965
|
const $childScope2 = _peek_scope_id();
|
|
5855
5966
|
side_nav_item_default({
|
|
@@ -5876,7 +5987,7 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5876
5987
|
if (railHover) {
|
|
5877
5988
|
const $scope5_id = _scope_id();
|
|
5878
5989
|
const hoverId = railHover.id;
|
|
5879
|
-
_html(`<div${_attr_class(["_1", "
|
|
5990
|
+
_html(`<div${_attr_class(["_1", "_dx"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
5880
5991
|
_set_serialize_reason({
|
|
5881
5992
|
0: 1,
|
|
5882
5993
|
1: 1,
|
|
@@ -5897,13 +6008,16 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5897
6008
|
16: 1,
|
|
5898
6009
|
17: 1,
|
|
5899
6010
|
18: 1,
|
|
6011
|
+
19: 1,
|
|
5900
6012
|
20: 1,
|
|
5901
|
-
|
|
6013
|
+
21: 1,
|
|
6014
|
+
24: 1,
|
|
5902
6015
|
25: 1,
|
|
5903
|
-
26:
|
|
5904
|
-
|
|
5905
|
-
|
|
5906
|
-
|
|
6016
|
+
26: 1,
|
|
6017
|
+
29: 1,
|
|
6018
|
+
30: $sg__input_agents,
|
|
6019
|
+
31: 1,
|
|
6020
|
+
32: 1
|
|
5907
6021
|
});
|
|
5908
6022
|
const $childScope3 = _peek_scope_id();
|
|
5909
6023
|
side_nav_item_default({
|
|
@@ -5961,7 +6075,7 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5961
6075
|
return 0;
|
|
5962
6076
|
}
|
|
5963
6077
|
}, $scope0_id, "d");
|
|
5964
|
-
_html(`<div${_attr_class("
|
|
6078
|
+
_html(`<div${_attr_class("_dv")}>`);
|
|
5965
6079
|
_if(() => {
|
|
5966
6080
|
if (isPage) {
|
|
5967
6081
|
const $scope7_id = _scope_id();
|
|
@@ -5969,7 +6083,7 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5969
6083
|
"_l",
|
|
5970
6084
|
"_m",
|
|
5971
6085
|
btnLg,
|
|
5972
|
-
"
|
|
6086
|
+
"_ds"
|
|
5973
6087
|
])} title="New workspace"${view === "new" ? " aria-current=page" : ""}>`);
|
|
5974
6088
|
icon_folder_plus_default({ size: 16 });
|
|
5975
6089
|
_html(` New workspace</a>${_el_resume($scope7_id, "a")}`);
|
|
@@ -5991,19 +6105,19 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5991
6105
|
return 1;
|
|
5992
6106
|
}
|
|
5993
6107
|
}, $scope6_id, "a", 1, 1, 1, "</button>", 1);
|
|
5994
|
-
_html(`<div${_attr_class(["_v", "
|
|
6108
|
+
_html(`<div${_attr_class(["_v", "_dw"])}></div>`);
|
|
5995
6109
|
_if(() => {}, $scope6_id, "c", 1, 1, 1, 0, 1);
|
|
5996
|
-
_html(`<a href=/settings${_attr_class([iconBtn$1, { ["
|
|
6110
|
+
_html(`<a href=/settings${_attr_class([iconBtn$1, { ["_df"]: view === "settings" }])} title=Settings${view === "settings" ? " aria-current=page" : ""}>`);
|
|
5997
6111
|
icon_settings_default({ size: 15 });
|
|
5998
6112
|
_if(() => {
|
|
5999
6113
|
if (input.setupReady === false) {
|
|
6000
6114
|
const $scope15_id = _scope_id();
|
|
6001
|
-
_html(`<span${_attr_class(["_w", "
|
|
6115
|
+
_html(`<span${_attr_class(["_w", "_dh"])} title="Machine setup incomplete"></span>`);
|
|
6002
6116
|
$si__input_setupReady && writeScope($scope15_id, {});
|
|
6003
6117
|
return 0;
|
|
6004
6118
|
}
|
|
6005
6119
|
}, $scope6_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
6006
|
-
_html(`</a>${_el_resume($scope6_id, "d")}<a href=/new${_attr_class([iconBtn$1, { ["
|
|
6120
|
+
_html(`</a>${_el_resume($scope6_id, "d")}<a href=/new${_attr_class([iconBtn$1, { ["_df"]: view === "new" }])} title="New workspace"${view === "new" ? " aria-current=page" : ""}>`);
|
|
6007
6121
|
icon_folder_plus_default({ size: 16 });
|
|
6008
6122
|
_html(`</a>${_el_resume($scope6_id, "g")}`);
|
|
6009
6123
|
_script($scope6_id, "v15");
|
|
@@ -6065,10 +6179,10 @@ var side_nav_default = _template("v", (input) => {
|
|
|
6065
6179
|
});
|
|
6066
6180
|
var iconBtn = "_X _g";
|
|
6067
6181
|
var sectionCount = "_br _F _G";
|
|
6068
|
-
var content = "
|
|
6069
|
-
var pageMeta = "
|
|
6070
|
-
var pathMeta = "
|
|
6071
|
-
var dangerHint = "
|
|
6182
|
+
var content = "_c5 _bh";
|
|
6183
|
+
var pageMeta = "_c6 _bm";
|
|
6184
|
+
var pathMeta = "_c9 _u";
|
|
6185
|
+
var dangerHint = "_de _P";
|
|
6072
6186
|
//#endregion
|
|
6073
6187
|
//#region src/tags/manage-workspace.marko
|
|
6074
6188
|
var api$2;
|
|
@@ -6179,7 +6293,7 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6179
6293
|
meta: attrTag({ content: _content_resume("l11", () => {
|
|
6180
6294
|
_scope_reason();
|
|
6181
6295
|
const $scope8_id = _scope_id();
|
|
6182
|
-
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
6296
|
+
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_c7")}>${_escape(ws.name)}${_el_resume($scope8_id, "c")}</span>`);
|
|
6183
6297
|
_if(() => {
|
|
6184
6298
|
if (ws.status !== "active") {
|
|
6185
6299
|
const $scope11_id = _scope_id();
|
|
@@ -6188,7 +6302,7 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6188
6302
|
return 0;
|
|
6189
6303
|
}
|
|
6190
6304
|
}, $scope8_id, "d", 1, 1, 1, 0, 1);
|
|
6191
|
-
_html(`<span${_attr_class("
|
|
6305
|
+
_html(`<span${_attr_class("_c8")} 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")}`);
|
|
6192
6306
|
_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) })))));
|
|
6193
6307
|
_resume_branch($scope8_id);
|
|
6194
6308
|
}, $scope0_id) })
|
|
@@ -6231,7 +6345,7 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6231
6345
|
_html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("_bs")}>`);
|
|
6232
6346
|
_for_of(ws.repos, (row) => {
|
|
6233
6347
|
const $scope1_id = _scope_id();
|
|
6234
|
-
_html(`<li${_attr_class("_bu")}><div${_attr_class("_bv")}><span${_attr_class(["_bw", "_u"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_bx")}><a${_attr_class(["_by", "
|
|
6348
|
+
_html(`<li${_attr_class("_bu")}><div${_attr_class("_bv")}><span${_attr_class(["_bw", "_u"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_bx")}><a${_attr_class(["_by", "_da"])}${_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")}`);
|
|
6235
6349
|
_if(() => {
|
|
6236
6350
|
if (row.base_branch !== row.default_branch) {
|
|
6237
6351
|
const $scope12_id = _scope_id();
|
|
@@ -6295,7 +6409,7 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6295
6409
|
return 0;
|
|
6296
6410
|
}
|
|
6297
6411
|
}, $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
6298
|
-
_html(`<div${_attr_class("
|
|
6412
|
+
_html(`<div${_attr_class("_c_")}>`);
|
|
6299
6413
|
const $childScope3 = _peek_scope_id();
|
|
6300
6414
|
let refreshCatalog = repo_picker_default({
|
|
6301
6415
|
exclude: inWorkspace,
|
|
@@ -6325,7 +6439,7 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6325
6439
|
_html(`<span${_attr_class("_bx")}>`);
|
|
6326
6440
|
_for_of(p.ports, (port) => {
|
|
6327
6441
|
const $scope19_id = _scope_id();
|
|
6328
|
-
_html(`<button${_attr_class(["_p", "
|
|
6442
|
+
_html(`<button${_attr_class(["_p", "_db"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope19_id, "b")}</button>${_el_resume($scope19_id, "a")}`);
|
|
6329
6443
|
_script($scope19_id, "l15");
|
|
6330
6444
|
writeScope($scope19_id, { d: port });
|
|
6331
6445
|
}, (x) => String(x), $scope18_id, "a", 1, 1, 1, "</span>", 1);
|
|
@@ -6347,7 +6461,7 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6347
6461
|
return 0;
|
|
6348
6462
|
}
|
|
6349
6463
|
}, $scope0_id, "v", 1, 1, 1, 0, 1);
|
|
6350
|
-
_html(`<section${_attr_class(["_bp", "
|
|
6464
|
+
_html(`<section${_attr_class(["_bp", "_dc"])}><div${_attr_class("_bq")}><h2${_attr_class("_bE")}>Workspace</h2></div><div${_attr_class("_dd")}>`);
|
|
6351
6465
|
_if(() => {
|
|
6352
6466
|
if (ws.status === "active") {
|
|
6353
6467
|
const $scope4_id = _scope_id();
|
|
@@ -6448,15 +6562,15 @@ var term_find_default = _template("w", (input) => {
|
|
|
6448
6562
|
const canStep = hasQuery && open;
|
|
6449
6563
|
const keybar = input.placement === "keybar";
|
|
6450
6564
|
_html(`<div${_attr_class([
|
|
6451
|
-
"
|
|
6452
|
-
keybar ? "
|
|
6453
|
-
!open && "
|
|
6454
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
6565
|
+
"_fm",
|
|
6566
|
+
keybar ? "_fo" : "_fn",
|
|
6567
|
+
!open && "_fq"
|
|
6568
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_fh", keybar ? "_fp" : "_fj"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
6455
6569
|
if (!open) return;
|
|
6456
6570
|
query = v;
|
|
6457
6571
|
live.query = v;
|
|
6458
6572
|
run(0);
|
|
6459
|
-
}, "w0", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
6573
|
+
}, "w0", $scope0_id))}${_attr_class([findInput, keybar && "_fr"])} 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 && "_fs"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↑</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_fs"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↓</button>${_el_resume($scope0_id, "e")}<button type=button${_attr_class([findIconBtn, keybar && "_fs"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
6460
6574
|
icon_xmark_default({ size: 14 });
|
|
6461
6575
|
_html(`</button>${_el_resume($scope0_id, "f")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
6462
6576
|
_script($scope0_id, "w4");
|
|
@@ -6499,49 +6613,6 @@ _template("W", (input) => {
|
|
|
6499
6613
|
});
|
|
6500
6614
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
6501
6615
|
});
|
|
6502
|
-
//#endregion
|
|
6503
|
-
//#region src/tags/usage-pcts.marko
|
|
6504
|
-
function pctText(pct) {
|
|
6505
|
-
const rounded = Math.round(pct);
|
|
6506
|
-
return rounded !== pct && (rounded === 100 || rounded === 0) ? `${pct.toFixed(1)}%` : `${rounded}%`;
|
|
6507
|
-
}
|
|
6508
|
-
_template("A", (input) => {
|
|
6509
|
-
const $scope0_reason = _scope_reason(), $sg__input_agent = _serialize_guard($scope0_reason, 1), $si__input_agent = _serialize_if($scope0_reason, 1), $sg__input_agent__OR__input_class = _serialize_guard($scope0_reason, 0), $si__input_agent__OR__input_class = _serialize_if($scope0_reason, 0);
|
|
6510
|
-
const $scope0_id = _scope_id();
|
|
6511
|
-
const agent = input.agent;
|
|
6512
|
-
const windows = agent.windows || [];
|
|
6513
|
-
_if(() => {
|
|
6514
|
-
if (windows.length) {
|
|
6515
|
-
const $scope1_id = _scope_id();
|
|
6516
|
-
_html(`<span${_attr_class([
|
|
6517
|
-
"_eF",
|
|
6518
|
-
input.class,
|
|
6519
|
-
{ ["_eG"]: agent.stale_seconds != null }
|
|
6520
|
-
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
6521
|
-
_for_of(windows, (win$1, i) => {
|
|
6522
|
-
const $scope2_id = _scope_id();
|
|
6523
|
-
_if(() => {
|
|
6524
|
-
if (i) {
|
|
6525
|
-
const $scope3_id = _scope_id();
|
|
6526
|
-
_html(`<span${_attr_class("_eK")} aria-hidden=true>·</span>`);
|
|
6527
|
-
$si__input_agent && writeScope($scope3_id, {});
|
|
6528
|
-
return 0;
|
|
6529
|
-
}
|
|
6530
|
-
}, $scope2_id, "a", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
6531
|
-
_html(`<span${_attr_class("_eH")}><span${_attr_class("_eI")}>${_escape(win$1.window)}${_el_resume($scope2_id, "d", $sg__input_agent)}</span><span${_attr_class(["_eJ", win$1.used_percent >= 90 ? "_cY" : win$1.used_percent >= 70 ? "_cX" : win$1.used_percent >= 40 ? "_cW" : "_cV"])}>${_escape(pctText(win$1.used_percent))}${_el_resume($scope2_id, "f", $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
6532
|
-
$si__input_agent && writeScope($scope2_id, {});
|
|
6533
|
-
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>");
|
|
6534
|
-
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
6535
|
-
return 0;
|
|
6536
|
-
}
|
|
6537
|
-
}, $scope0_id, "a", $sg__input_agent__OR__input_class, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
6538
|
-
$si__input_agent__OR__input_class && writeScope($scope0_id, {
|
|
6539
|
-
e: $si__input_agent && input.class,
|
|
6540
|
-
h: agent?.stale_seconds,
|
|
6541
|
-
i: $si__input_agent && agent?.note,
|
|
6542
|
-
j: $si__input_agent && windows
|
|
6543
|
-
});
|
|
6544
|
-
});
|
|
6545
6616
|
_template("J", (input) => {
|
|
6546
6617
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6547
6618
|
const $scope0_id = _scope_id();
|
|
@@ -6773,7 +6844,7 @@ var term_default = _template("x", (input) => {
|
|
|
6773
6844
|
trapOpen = true;
|
|
6774
6845
|
}
|
|
6775
6846
|
}, "x14", $scope0_id);
|
|
6776
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
6847
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_d1")}><div${_attr_class("_d2")}></div>${_el_resume($scope0_id, "b")}`);
|
|
6777
6848
|
_if(() => {
|
|
6778
6849
|
if (findOpen) {
|
|
6779
6850
|
const $scope12_id = _scope_id();
|
|
@@ -6800,7 +6871,7 @@ var term_default = _template("x", (input) => {
|
|
|
6800
6871
|
_if(() => {
|
|
6801
6872
|
if (uploading) {
|
|
6802
6873
|
const $scope19_id = _scope_id();
|
|
6803
|
-
_html(`<div${_attr_class("
|
|
6874
|
+
_html(`<div${_attr_class("_d8")}>uploading…</div>`);
|
|
6804
6875
|
writeScope($scope19_id, {});
|
|
6805
6876
|
return 0;
|
|
6806
6877
|
}
|
|
@@ -6808,7 +6879,7 @@ var term_default = _template("x", (input) => {
|
|
|
6808
6879
|
_if(() => {
|
|
6809
6880
|
if (copiedFlash) {
|
|
6810
6881
|
const $scope20_id = _scope_id();
|
|
6811
|
-
_html(`<div${_attr_class("
|
|
6882
|
+
_html(`<div${_attr_class("_d7")}>Copied</div>`);
|
|
6812
6883
|
writeScope($scope20_id, {});
|
|
6813
6884
|
return 0;
|
|
6814
6885
|
}
|
|
@@ -6817,7 +6888,7 @@ var term_default = _template("x", (input) => {
|
|
|
6817
6888
|
_if(() => {
|
|
6818
6889
|
if (trapOpen) {
|
|
6819
6890
|
const $scope11_id = _scope_id();
|
|
6820
|
-
_html(`<div${_attr_class("
|
|
6891
|
+
_html(`<div${_attr_class("_d9")}><div${_attr_class("_d_")}><p${_attr_class("_eE")}>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")}`);
|
|
6821
6892
|
_script($scope11_id, "x25");
|
|
6822
6893
|
_script($scope11_id, "x26");
|
|
6823
6894
|
writeScope($scope11_id, {});
|
|
@@ -6920,7 +6991,7 @@ var work_view_default = _template("B", (input) => {
|
|
|
6920
6991
|
let DiffView = null;
|
|
6921
6992
|
const loadDiffView = _resume(() => {
|
|
6922
6993
|
if (DiffView) return;
|
|
6923
|
-
import("./
|
|
6994
|
+
import("./_8t6K8Jk8.js").then((m) => {
|
|
6924
6995
|
DiffView = m.default;
|
|
6925
6996
|
});
|
|
6926
6997
|
}, "B6", $scope0_id);
|
|
@@ -7106,7 +7177,7 @@ var work_view_default = _template("B", (input) => {
|
|
|
7106
7177
|
toggleDiff();
|
|
7107
7178
|
}
|
|
7108
7179
|
}, "B21", $scope0_id);
|
|
7109
|
-
_html(`<div${_attr_class(["
|
|
7180
|
+
_html(`<div${_attr_class(["_ci", { ["_ch"]: view === "nav" }])}><div${_attr_class("_cj")}>`);
|
|
7110
7181
|
_set_serialize_reason({
|
|
7111
7182
|
0: _serialize_guard($scope0_reason, 0),
|
|
7112
7183
|
1: _serialize_guard($scope0_reason, 1),
|
|
@@ -7162,7 +7233,7 @@ var work_view_default = _template("B", (input) => {
|
|
|
7162
7233
|
openDiff(pr);
|
|
7163
7234
|
}, "B29", $scope0_id)
|
|
7164
7235
|
});
|
|
7165
|
-
_html(`</div><div${_attr_class("
|
|
7236
|
+
_html(`</div><div${_attr_class("_ck")}>`);
|
|
7166
7237
|
_if(() => {
|
|
7167
7238
|
if (error) {
|
|
7168
7239
|
const $scope8_id = _scope_id();
|
|
@@ -7313,13 +7384,13 @@ var work_view_default = _template("B", (input) => {
|
|
|
7313
7384
|
return 0;
|
|
7314
7385
|
}
|
|
7315
7386
|
}, $scope0_id, "i");
|
|
7316
|
-
_html(`<div${_attr_class(["
|
|
7387
|
+
_html(`<div${_attr_class(["_cm", { ["_cl"]: view !== "term" }])}>`);
|
|
7317
7388
|
_if(() => {
|
|
7318
7389
|
if (shownSessions) {
|
|
7319
7390
|
const $scope5_id = _scope_id();
|
|
7320
7391
|
_for_of(shownSessions, (s) => {
|
|
7321
7392
|
const $scope6_id = _scope_id();
|
|
7322
|
-
_html(`<div${_attr_class(["
|
|
7393
|
+
_html(`<div${_attr_class(["_cn", { ["_co"]: s.id === curTab }])}>`);
|
|
7323
7394
|
_set_serialize_reason({
|
|
7324
7395
|
0: 1,
|
|
7325
7396
|
1: 1,
|
|
@@ -15736,4 +15807,4 @@ server.listen(port, () => {
|
|
|
15736
15807
|
//#endregion
|
|
15737
15808
|
export {};
|
|
15738
15809
|
|
|
15739
|
-
;var __MARKO_MANIFEST__={"
|
|
15810
|
+
;var __MARKO_MANIFEST__={"T$MNY0k":{"block":[2,"stylesheet#/assets/app-page-Bv2S_Tip.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-Bv2S_Tip.css\"",">"],"defer":[2,"/assets/w._-ECSvnCXB.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-ECSvnCXB.js\"","></script>",2,"modulepreload#/assets/_CiElF6r4.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CiElF6r4.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/app-page-Bv2S_Tip.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-Bv2S_Tip.css\"",">"],"defer":[2,"/assets/settings-ECSvnCXB.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-ECSvnCXB.js\"","></script>",2,"modulepreload#/assets/_CiElF6r4.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CiElF6r4.js\"",">"]},"ZLT8joi":{"block":[2,"stylesheet#/assets/app-page-Bv2S_Tip.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-Bv2S_Tip.css\"",">"],"defer":[2,"/assets/new-ECSvnCXB.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-ECSvnCXB.js\"","></script>",2,"modulepreload#/assets/_CiElF6r4.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CiElF6r4.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/app-page-Bv2S_Tip.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-Bv2S_Tip.css\"",">"],"defer":[2,"/assets/w-ECSvnCXB.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-ECSvnCXB.js\"","></script>",2,"modulepreload#/assets/_CiElF6r4.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CiElF6r4.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/app-page-Bv2S_Tip.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-Bv2S_Tip.css\"",">"],"defer":[2,"/assets/w._-CEJj3Icr.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-CEJj3Icr.js\"","></script>",2,"modulepreload#/assets/_CiElF6r4.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CiElF6r4.js\"",">"]}};
|