@dylanpiercey/work 0.0.77 → 0.0.78
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/{_CiiZ9YMw.js → _CIRawosE.js} +2 -2
- package/dist/{_ubn-vkjC.js → _DmInpMdK.js} +40 -40
- package/dist/index.mjs +161 -141
- package/dist/public/assets/{_DXvm_2Xe2.js → _-PoErT612.js} +1 -1
- package/dist/public/assets/_-PoErT612.js.br +0 -0
- package/dist/public/assets/{_B1q8fJHt.js → _1g4fb8wp.js} +1 -1
- package/dist/public/assets/_1g4fb8wp.js.br +0 -0
- package/dist/public/assets/{_Bc1oJggC.js → _78u04HgF.js} +1 -1
- package/dist/public/assets/_78u04HgF.js.br +0 -0
- package/dist/public/assets/{_mdKr2weU.js → _9-_KI7I4.js} +1 -1
- package/dist/public/assets/_9-_KI7I4.js.br +0 -0
- package/dist/public/assets/{_BS1yiJcV2.js → _B-rCQK6E2.js} +1 -1
- package/dist/public/assets/_B-rCQK6E2.js.br +0 -0
- package/dist/public/assets/{_CwFVQN8O.js → _B2sPsxr6.js} +1 -1
- package/dist/public/assets/_B2sPsxr6.js.br +0 -0
- package/dist/public/assets/{_Cz9053dB.js → _B3OOfSnY.js} +1 -1
- package/dist/public/assets/_B3OOfSnY.js.br +0 -0
- package/dist/public/assets/{_8WhLEtNe.js → _B54sk_Fc.js} +1 -1
- package/dist/public/assets/_B54sk_Fc.js.br +0 -0
- package/dist/public/assets/{_8sk_HqwA.js → _B7EwF5ES.js} +1 -1
- package/dist/public/assets/_B7EwF5ES.js.br +0 -0
- package/dist/public/assets/{_D6D5D9GO2.js → _BDryV2Iq2.js} +1 -1
- package/dist/public/assets/_BDryV2Iq2.js.br +0 -0
- package/dist/public/assets/{_rsxlkA3P.js → _BI1ct0k3.js} +1 -1
- package/dist/public/assets/_BI1ct0k3.js.br +0 -0
- package/dist/public/assets/{_VX4-MjKf.js → _BJdkAMTU.js} +1 -1
- package/dist/public/assets/_BJdkAMTU.js.br +0 -0
- package/dist/public/assets/{_pypa1r9R2.js → _BMf7OxnD2.js} +1 -1
- package/dist/public/assets/_BMf7OxnD2.js.br +0 -0
- package/dist/public/assets/{_BwHH8J1Y2.js → _BPVcHu-J2.js} +1 -1
- package/dist/public/assets/{_C17Xwtif.js → _BW4jFkhN.js} +1 -1
- package/dist/public/assets/_BW4jFkhN.js.br +0 -0
- package/dist/public/assets/{_B5e75MhA.js → _BXCrQpbO.js} +1 -1
- package/dist/public/assets/_BXCrQpbO.js.br +0 -0
- package/dist/public/assets/{_BYed_78j.js → _BY1EMdJe.js} +1 -1
- package/dist/public/assets/_BY1EMdJe.js.br +0 -0
- package/dist/public/assets/{_BovAGS35.js → _B_EBj_B3.js} +1 -1
- package/dist/public/assets/_B_EBj_B3.js.br +0 -0
- package/dist/public/assets/{_903E2DBi.js → _BacOB_KW.js} +1 -1
- package/dist/public/assets/{_RJT3BKwl2.js → _Bb18WOXF2.js} +1 -1
- package/dist/public/assets/_Bb18WOXF2.js.br +0 -0
- package/dist/public/assets/{_sXB-xPac2.js → _BblaM8g32.js} +1 -1
- package/dist/public/assets/_BblaM8g32.js.br +0 -0
- package/dist/public/assets/{_rTQPa6zM.js → _BeWiK2zV.js} +1 -1
- package/dist/public/assets/_BeWiK2zV.js.br +0 -0
- package/dist/public/assets/{_Bs0i44JK2.js → _BjPws8fl2.js} +1 -1
- package/dist/public/assets/_BjPws8fl2.js.br +0 -0
- package/dist/public/assets/{_CoPsduZt.js → _BwkztFC6.js} +1 -1
- package/dist/public/assets/_BwkztFC6.js.br +0 -0
- package/dist/public/assets/{_CW5MKl4v2.js → _C-mtaCj52.js} +1 -1
- package/dist/public/assets/_C-mtaCj52.js.br +0 -0
- package/dist/public/assets/{_DoxDdtS32.js → _CAxRBZNm2.js} +1 -1
- package/dist/public/assets/_CAxRBZNm2.js.br +0 -0
- package/dist/public/assets/{_DFythFcf.js → _CB_QqJbj.js} +1 -1
- package/dist/public/assets/_CB_QqJbj.js.br +0 -0
- package/dist/public/assets/{_CxRS6cVn.js → _CBum66PC.js} +1 -1
- package/dist/public/assets/_CBum66PC.js.br +0 -0
- package/dist/public/assets/{_l0bPVEwg.js → _CDgIQild.js} +1 -1
- package/dist/public/assets/_CDgIQild.js.br +0 -0
- package/dist/public/assets/{_Dy0Uw0re.js → _CEuxLe6F.js} +1 -1
- package/dist/public/assets/_CEuxLe6F.js.br +0 -0
- package/dist/public/assets/{_0svi-Z9G.js → _CEz9SXP-.js} +1 -1
- package/dist/public/assets/_CEz9SXP-.js.br +0 -0
- package/dist/public/assets/{_25WwTagO.js → _COb-W2I-.js} +1 -1
- package/dist/public/assets/_COb-W2I-.js.br +0 -0
- package/dist/public/assets/{_DtIvrJCJ2.js → _CP08H0Hc2.js} +1 -1
- package/dist/public/assets/_CP08H0Hc2.js.br +0 -0
- package/dist/public/assets/{_BmVLh6_t.js → _CSMKCI00.js} +1 -1
- package/dist/public/assets/_CSMKCI00.js.br +0 -0
- package/dist/public/assets/{_CBAr-tnV.js → _CSx4Xqtp.js} +1 -1
- package/dist/public/assets/_CSx4Xqtp.js.br +0 -0
- package/dist/public/assets/{_BsTGlYQ42.js → _CY_ILFGT2.js} +1 -1
- package/dist/public/assets/_CY_ILFGT2.js.br +0 -0
- package/dist/public/assets/{_BY3mVX6d.js → _CanTayMh.js} +3 -3
- package/dist/public/assets/_CanTayMh.js.br +0 -0
- package/dist/public/assets/{_SsF4M0KM.js → _CdUSs9iK.js} +1 -1
- package/dist/public/assets/_CdUSs9iK.js.br +0 -0
- package/dist/public/assets/{_C2LaNYu8.js → _Ch2r3zkq.js} +1 -1
- package/dist/public/assets/_Ch2r3zkq.js.br +0 -0
- package/dist/public/assets/{_N7bjLQq0.js → _ClLSUByz.js} +1 -1
- package/dist/public/assets/_ClLSUByz.js.br +0 -0
- package/dist/public/assets/{_DBv2cR_2.js → _CmJ7zLnv.js} +1 -1
- package/dist/public/assets/_CmJ7zLnv.js.br +0 -0
- package/dist/public/assets/{_2uqwl4G82.js → _CpSNxSlG2.js} +1 -1
- package/dist/public/assets/_CpSNxSlG2.js.br +0 -0
- package/dist/public/assets/{_9KXBE7Hu.js → _CsL5aYpd.js} +1 -1
- package/dist/public/assets/_CsL5aYpd.js.br +0 -0
- package/dist/public/assets/{_00PbHJJQ2.js → _CwtMe3VA2.js} +1 -1
- package/dist/public/assets/_CwtMe3VA2.js.br +0 -0
- package/dist/public/assets/{_BR3i1Qkq.js → _CyCGtR1-.js} +1 -1
- package/dist/public/assets/_CyCGtR1-.js.br +0 -0
- package/dist/public/assets/{_CEBzrS7j.js → _Cz_zsRzV.js} +1 -1
- package/dist/public/assets/_Cz_zsRzV.js.br +0 -0
- package/dist/public/assets/{_Cnlm26jx2.js → _D0vyJ2yE2.js} +1 -1
- package/dist/public/assets/_D0vyJ2yE2.js.br +0 -0
- package/dist/public/assets/{_C5XfJNim2.js → _D2wXmnQK2.js} +1 -1
- package/dist/public/assets/_D2wXmnQK2.js.br +0 -0
- package/dist/public/assets/{_CcYS7BLe2.js → _DFpNQ9Jh2.js} +1 -1
- package/dist/public/assets/{_BviY3_tc.js → _DHGvh-M_.js} +1 -1
- package/dist/public/assets/_DHGvh-M_.js.br +0 -0
- package/dist/public/assets/{_WOYbxXeH.js → _DLlSIOdl.js} +1 -1
- package/dist/public/assets/_DLlSIOdl.js.br +0 -0
- package/dist/public/assets/{_BqPU6IpH.js → _DcyxnO_L.js} +1 -1
- package/dist/public/assets/_DcyxnO_L.js.br +0 -0
- package/dist/public/assets/{_Ozf3nrvj.js → _DgiGmj2K.js} +1 -1
- package/dist/public/assets/_DgiGmj2K.js.br +0 -0
- package/dist/public/assets/{_CV1QH-SW.js → _Di6EUgJm.js} +1 -1
- package/dist/public/assets/_Di6EUgJm.js.br +0 -0
- package/dist/public/assets/{_CTVJ6v8k.js → _Dl_YajbL.js} +6 -6
- package/dist/public/assets/_Dl_YajbL.js.br +0 -0
- package/dist/public/assets/{_qOmd0vjm.js → _DmdVV0LB.js} +1 -1
- package/dist/public/assets/_DmdVV0LB.js.br +0 -0
- package/dist/public/assets/{_CtbjZ7c8.js → _Dp32T4Vh.js} +1 -1
- package/dist/public/assets/_Dp32T4Vh.js.br +0 -0
- package/dist/public/assets/{_DcGJqmLH.js → _DpCUVJaX.js} +1 -1
- package/dist/public/assets/_DpCUVJaX.js.br +0 -0
- package/dist/public/assets/{_DNXyUDNj2.js → _DqJB33fN2.js} +1 -1
- package/dist/public/assets/_DqJB33fN2.js.br +0 -0
- package/dist/public/assets/{_qnxbSZnV.js → _Dt86fZPh.js} +1 -1
- package/dist/public/assets/_Dt86fZPh.js.br +0 -0
- package/dist/public/assets/{_Doqa_iNG.js → _DtnacdW_.js} +1 -1
- package/dist/public/assets/_DtnacdW_.js.br +0 -0
- package/dist/public/assets/{_BAhGnkQs.js → _HUSrElvd.js} +1 -1
- package/dist/public/assets/_HUSrElvd.js.br +0 -0
- package/dist/public/assets/{_DjEo88LH2.js → _JjCtmL8y2.js} +1 -1
- package/dist/public/assets/_JjCtmL8y2.js.br +0 -0
- package/dist/public/assets/{_xeig1-rM2.js → _L1XH-kms2.js} +1 -1
- package/dist/public/assets/_L1XH-kms2.js.br +0 -0
- package/dist/public/assets/{_CpjMuu_t.js → _OCeErtSr.js} +1 -1
- package/dist/public/assets/_OCeErtSr.js.br +0 -0
- package/dist/public/assets/{_CjQh1My0.js → _PYheEV7-.js} +1 -1
- package/dist/public/assets/_PYheEV7-.js.br +0 -0
- package/dist/public/assets/{_Cxhtunwi.js → _QmV76A7t.js} +1 -1
- package/dist/public/assets/_QmV76A7t.js.br +0 -0
- package/dist/public/assets/{_CewarLhg.js → _Rj3Bb6_I.js} +1 -1
- package/dist/public/assets/_Rj3Bb6_I.js.br +0 -0
- package/dist/public/assets/{_CVB5MEi72.js → _VTTPEs8m2.js} +1 -1
- package/dist/public/assets/_VTTPEs8m2.js.br +0 -0
- package/dist/public/assets/{_DJe2Pv0m.js → _ZUiWhALl.js} +1 -1
- package/dist/public/assets/_ZUiWhALl.js.br +0 -0
- package/dist/public/assets/{_CzN_J4xS2.js → _bTLfsDw92.js} +1 -1
- package/dist/public/assets/_bTLfsDw92.js.br +0 -0
- package/dist/public/assets/{_Bki1svWe2.js → _fKphobCQ2.js} +1 -1
- package/dist/public/assets/_fKphobCQ2.js.br +0 -0
- package/dist/public/assets/{_DPJnDsbZ.js → _tCsKb_54.js} +1 -1
- package/dist/public/assets/_tCsKb_54.js.br +0 -0
- package/dist/public/assets/{_CPOYVWkV.js → _uzk-PflR.js} +1 -1
- package/dist/public/assets/_uzk-PflR.js.br +0 -0
- package/dist/public/assets/{_BO6GQdi8.js → _yxN-WdAM.js} +1 -1
- package/dist/public/assets/_yxN-WdAM.js.br +0 -0
- package/dist/public/assets/{_CHJVp9aW2.js → _zOG0vHwY2.js} +1 -1
- package/dist/public/assets/_zOG0vHwY2.js.br +0 -0
- package/dist/public/assets/{app-page-DnlfALI5.css → app-page-tW18Q0xx.css} +1 -1
- package/dist/public/assets/app-page-tW18Q0xx.css.br +0 -0
- package/dist/public/assets/{diff-view-DDxnH9WL.css → diff-view-DsbgM3jh.css} +1 -1
- package/dist/public/assets/diff-view-DsbgM3jh.css.br +0 -0
- package/dist/public/assets/new-Bh0akN8j.js +1 -0
- package/dist/public/assets/settings-Bh0akN8j.js +1 -0
- package/dist/public/assets/w-Bh0akN8j.js +1 -0
- package/dist/public/assets/w._-Bh0akN8j.js +1 -0
- package/dist/public/assets/w._-UlPNND_9.js +1 -0
- package/package.json +1 -1
- package/dist/public/assets/_00PbHJJQ2.js.br +0 -0
- package/dist/public/assets/_0svi-Z9G.js.br +0 -0
- package/dist/public/assets/_25WwTagO.js.br +0 -0
- package/dist/public/assets/_2uqwl4G82.js.br +0 -0
- package/dist/public/assets/_8WhLEtNe.js.br +0 -0
- package/dist/public/assets/_8sk_HqwA.js.br +0 -0
- package/dist/public/assets/_9KXBE7Hu.js.br +0 -0
- package/dist/public/assets/_B1q8fJHt.js.br +0 -0
- package/dist/public/assets/_B5e75MhA.js.br +0 -0
- package/dist/public/assets/_BAhGnkQs.js.br +0 -0
- package/dist/public/assets/_BO6GQdi8.js.br +0 -0
- package/dist/public/assets/_BR3i1Qkq.js.br +0 -0
- package/dist/public/assets/_BS1yiJcV2.js.br +0 -0
- package/dist/public/assets/_BY3mVX6d.js.br +0 -0
- package/dist/public/assets/_BYed_78j.js.br +0 -0
- package/dist/public/assets/_Bc1oJggC.js.br +0 -0
- package/dist/public/assets/_Bki1svWe2.js.br +0 -0
- package/dist/public/assets/_BmVLh6_t.js.br +0 -0
- package/dist/public/assets/_BovAGS35.js.br +0 -0
- package/dist/public/assets/_BqPU6IpH.js.br +0 -0
- package/dist/public/assets/_Bs0i44JK2.js.br +0 -0
- package/dist/public/assets/_BsTGlYQ42.js.br +0 -0
- package/dist/public/assets/_BviY3_tc.js.br +0 -0
- package/dist/public/assets/_C17Xwtif.js.br +0 -0
- package/dist/public/assets/_C2LaNYu8.js.br +0 -0
- package/dist/public/assets/_C5XfJNim2.js.br +0 -0
- package/dist/public/assets/_CBAr-tnV.js.br +0 -0
- package/dist/public/assets/_CEBzrS7j.js.br +0 -0
- package/dist/public/assets/_CHJVp9aW2.js.br +0 -0
- package/dist/public/assets/_CPOYVWkV.js.br +0 -0
- package/dist/public/assets/_CTVJ6v8k.js.br +0 -0
- package/dist/public/assets/_CV1QH-SW.js.br +0 -0
- package/dist/public/assets/_CVB5MEi72.js.br +0 -0
- package/dist/public/assets/_CW5MKl4v2.js.br +0 -0
- package/dist/public/assets/_CewarLhg.js.br +0 -0
- package/dist/public/assets/_CjQh1My0.js.br +0 -0
- package/dist/public/assets/_Cnlm26jx2.js.br +0 -0
- package/dist/public/assets/_CoPsduZt.js.br +0 -0
- package/dist/public/assets/_CpjMuu_t.js.br +0 -0
- package/dist/public/assets/_CtbjZ7c8.js.br +0 -0
- package/dist/public/assets/_CwFVQN8O.js.br +0 -0
- package/dist/public/assets/_CxRS6cVn.js.br +0 -0
- package/dist/public/assets/_Cxhtunwi.js.br +0 -0
- package/dist/public/assets/_Cz9053dB.js.br +0 -0
- package/dist/public/assets/_CzN_J4xS2.js.br +0 -0
- package/dist/public/assets/_D6D5D9GO2.js.br +0 -0
- package/dist/public/assets/_DBv2cR_2.js.br +0 -0
- package/dist/public/assets/_DFythFcf.js.br +0 -0
- package/dist/public/assets/_DJe2Pv0m.js.br +0 -0
- package/dist/public/assets/_DNXyUDNj2.js.br +0 -0
- package/dist/public/assets/_DPJnDsbZ.js.br +0 -0
- package/dist/public/assets/_DXvm_2Xe2.js.br +0 -0
- package/dist/public/assets/_DcGJqmLH.js.br +0 -0
- package/dist/public/assets/_DjEo88LH2.js.br +0 -0
- package/dist/public/assets/_Doqa_iNG.js.br +0 -0
- package/dist/public/assets/_DoxDdtS32.js.br +0 -0
- package/dist/public/assets/_DtIvrJCJ2.js.br +0 -0
- package/dist/public/assets/_Dy0Uw0re.js.br +0 -0
- package/dist/public/assets/_N7bjLQq0.js.br +0 -0
- package/dist/public/assets/_Ozf3nrvj.js.br +0 -0
- package/dist/public/assets/_RJT3BKwl2.js.br +0 -0
- package/dist/public/assets/_SsF4M0KM.js.br +0 -0
- package/dist/public/assets/_VX4-MjKf.js.br +0 -0
- package/dist/public/assets/_WOYbxXeH.js.br +0 -0
- package/dist/public/assets/_l0bPVEwg.js.br +0 -0
- package/dist/public/assets/_mdKr2weU.js.br +0 -0
- package/dist/public/assets/_pypa1r9R2.js.br +0 -0
- package/dist/public/assets/_qOmd0vjm.js.br +0 -0
- package/dist/public/assets/_qnxbSZnV.js.br +0 -0
- package/dist/public/assets/_rTQPa6zM.js.br +0 -0
- package/dist/public/assets/_rsxlkA3P.js.br +0 -0
- package/dist/public/assets/_sXB-xPac2.js.br +0 -0
- package/dist/public/assets/_xeig1-rM2.js.br +0 -0
- package/dist/public/assets/app-page-DnlfALI5.css.br +0 -0
- package/dist/public/assets/diff-view-DDxnH9WL.css.br +0 -0
- package/dist/public/assets/new-BJV4mfBg.js +0 -1
- package/dist/public/assets/settings-BJV4mfBg.js +0 -1
- package/dist/public/assets/w-BJV4mfBg.js +0 -1
- package/dist/public/assets/w._-B6v2qlds.js +0 -1
- package/dist/public/assets/w._-BJV4mfBg.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 DEFAULT_GITHUB_HOST, A as setScrapedPhase, B as allPrefs, C as agentBadge, D as agentMeta, E as agentLabel, F as publish, G as setDisabledAgents, H as enabledAgents, I as subscribe, J as doctor, K as setPref, L as subscriberCount, M as deleteSubscription, N as pushPublicKey, O as clearAgentPhase, P as saveSubscription, Q as which, R as subscriberJoins, S as blankRow, T as agentFromCommand, U as getSetting, V as disabledAgents, W as preferredAgent, X as miseVersions, Y as ghKnownHosts, Z as setupPath, _ as tmuxName, a as ensureTmuxServer, at as get, b as readHookPayload, c as killWorkspaceSessions, ct as gh, d as newSessionArgs, dt as tmux, et as TOOLS, ft as config, g as sessionStates, h as sendToSession, i as disposeSessions, it as db, j as setSessionViewers, k as setAgentPhase, l as listSessions, lt as git, m as renameSession, n as clearTmuxStarted, nt as toolById, o as getSession, ot as workspacePath, p as panePids, q as setSetting, r as createSession, rt as all, s as killSession, st as TMUX_SOCKET, t as cleanEnv, tt as agentById, u as markTmuxStarted, ut as run, v as tmuxWasStarted, w as agentFamily, x as reportsWorking, y as AGENTS, z as agentChoices } from "./_BXcFivfU.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 "./_CIRawosE.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
import path from "node:path";
|
|
@@ -3133,9 +3133,9 @@ function coalesce(fn) {
|
|
|
3133
3133
|
}
|
|
3134
3134
|
//#endregion
|
|
3135
3135
|
//#region src/tags/settings-page.css.ts
|
|
3136
|
-
var content$2 = "
|
|
3137
|
-
var agentGrid = "
|
|
3138
|
-
var toolGrid = "
|
|
3136
|
+
var content$2 = "_b3 _bh _bi";
|
|
3137
|
+
var agentGrid = "_b7 _bs";
|
|
3138
|
+
var toolGrid = "_cg _bs";
|
|
3139
3139
|
//#endregion
|
|
3140
3140
|
//#region src/tags/page-head.marko
|
|
3141
3141
|
var page_head_default = _template("o", (input) => {
|
|
@@ -3243,7 +3243,7 @@ var icon_agent_default = _template("C", (input) => {
|
|
|
3243
3243
|
n: $badge__closures
|
|
3244
3244
|
});
|
|
3245
3245
|
});
|
|
3246
|
-
var usageNote = "
|
|
3246
|
+
var usageNote = "_dH _P";
|
|
3247
3247
|
//#endregion
|
|
3248
3248
|
//#region src/tags/usage-meters.marko
|
|
3249
3249
|
function duration(ms) {
|
|
@@ -3267,11 +3267,11 @@ var usage_meters_default = _template("z", (input) => {
|
|
|
3267
3267
|
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);
|
|
3268
3268
|
const $scope0_id = _scope_id();
|
|
3269
3269
|
const agent = input.agent;
|
|
3270
|
-
_html(`<div${_attr_class(["
|
|
3270
|
+
_html(`<div${_attr_class(["_dB", { ["_dC"]: input.hideName }])}><div${_attr_class("_dD")}>`);
|
|
3271
3271
|
_if(() => {
|
|
3272
3272
|
if (!input.hideName) {
|
|
3273
3273
|
const $scope1_id = _scope_id();
|
|
3274
|
-
_html(`<strong${_attr_class("
|
|
3274
|
+
_html(`<strong${_attr_class("_dW")}>${_escape(agent.agent)}${_el_resume($scope1_id, "b", $sg__input_agent)}</strong>`);
|
|
3275
3275
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
3276
3276
|
return 0;
|
|
3277
3277
|
}
|
|
@@ -3279,7 +3279,7 @@ var usage_meters_default = _template("z", (input) => {
|
|
|
3279
3279
|
_if(() => {
|
|
3280
3280
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
3281
3281
|
const $scope2_id = _scope_id();
|
|
3282
|
-
_html(`<span${_attr_class("
|
|
3282
|
+
_html(`<span${_attr_class("_dE")}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope2_id, "b", $sg__input_agent)}</span>`);
|
|
3283
3283
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
3284
3284
|
return 0;
|
|
3285
3285
|
}
|
|
@@ -3287,19 +3287,19 @@ var usage_meters_default = _template("z", (input) => {
|
|
|
3287
3287
|
_if(() => {
|
|
3288
3288
|
if (agent.stale_seconds != null) {
|
|
3289
3289
|
const $scope3_id = _scope_id();
|
|
3290
|
-
_html(`<span${_attr_class("
|
|
3290
|
+
_html(`<span${_attr_class("_dF")}${_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)}`);
|
|
3291
3291
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
3292
3292
|
return 0;
|
|
3293
3293
|
}
|
|
3294
3294
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
3295
|
-
_html(`</div><div${_attr_class(["
|
|
3295
|
+
_html(`</div><div${_attr_class(["_dG", { ["_dX"]: agent.stale_seconds != null }])}>`);
|
|
3296
3296
|
_for_of(agent.windows || [], (win) => {
|
|
3297
3297
|
const $scope4_id = _scope_id();
|
|
3298
3298
|
const pct = pctText$1(win.used_percent);
|
|
3299
3299
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
3300
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
3301
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
3302
|
-
_html(`<div${_attr_class("
|
|
3300
|
+
const fillClass = win.used_percent >= 90 ? "_dP" : win.used_percent >= 70 ? "_dO" : win.used_percent >= 40 ? "_dN" : "_dM";
|
|
3301
|
+
const pctClass = win.used_percent >= 90 ? "_dU" : win.used_percent >= 70 ? "_dT" : win.used_percent >= 40 ? "_dS" : "_dR";
|
|
3302
|
+
_html(`<div${_attr_class("_dI")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_dJ")}>${_escape(win.window)}${_el_resume($scope4_id, "c", $sg__input_agent)}</span><span${_attr_class("_dK")}><span${_attr_class(["_dL", 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(["_dQ", pctClass])}>${_escape(pct)}${_el_resume($scope4_id, "g", $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_dV")}>${label ? `↻ ${_escape(`${_to_text(label)}`)}` : ""}${_el_resume($scope4_id, "i", $sg__input_agent)}</span></div>${_el_resume($scope4_id, "a", $sg__input_agent)}`);
|
|
3303
3303
|
$si__input_agent && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
3304
3304
|
}, "window", $scope0_id, "g", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
3305
3305
|
_if(() => {
|
|
@@ -3440,7 +3440,7 @@ var prompt_dialog_default = _template("p", (input) => {
|
|
|
3440
3440
|
const $childScope = _peek_scope_id();
|
|
3441
3441
|
modal_view_default({
|
|
3442
3442
|
label: input.label,
|
|
3443
|
-
class: "
|
|
3443
|
+
class: "_dz",
|
|
3444
3444
|
open: input.open,
|
|
3445
3445
|
openChange: input.openChange,
|
|
3446
3446
|
"aria-labelledby": titleId,
|
|
@@ -3463,7 +3463,7 @@ var prompt_dialog_default = _template("p", (input) => {
|
|
|
3463
3463
|
content: _content("p6", () => {
|
|
3464
3464
|
_scope_reason();
|
|
3465
3465
|
const $scope2_id = _scope_id();
|
|
3466
|
-
_html(`<h2${_attr_class("
|
|
3466
|
+
_html(`<h2${_attr_class("_dA")}${_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) => {
|
|
3467
3467
|
value = _new_value;
|
|
3468
3468
|
}, "p0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
3469
3469
|
_script($scope2_id, "p4");
|
|
@@ -3762,12 +3762,12 @@ var settings_page_default = _template("s", (input) => {
|
|
|
3762
3762
|
return 0;
|
|
3763
3763
|
} else if (setup.ready) {
|
|
3764
3764
|
const $scope46_id = _scope_id();
|
|
3765
|
-
_html(`<span${_attr_class("
|
|
3765
|
+
_html(`<span${_attr_class("_b5")}>Ready</span>. Tools, GitHub, and an agent are all in place.`);
|
|
3766
3766
|
writeScope($scope46_id, {});
|
|
3767
3767
|
return 1;
|
|
3768
3768
|
} else {
|
|
3769
3769
|
const $scope5_id = _scope_id();
|
|
3770
|
-
_html(`<span${_attr_class("
|
|
3770
|
+
_html(`<span${_attr_class("_b6")}>Not ready</span>. Missing <!>${_escape(setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "))}${_el_resume($scope5_id, "b")}.`);
|
|
3771
3771
|
_subscribe($setup_missing__closures, writeScope($scope5_id, {}));
|
|
3772
3772
|
return 2;
|
|
3773
3773
|
}
|
|
@@ -3814,11 +3814,11 @@ var settings_page_default = _template("s", (input) => {
|
|
|
3814
3814
|
return 0;
|
|
3815
3815
|
}
|
|
3816
3816
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
3817
|
-
_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("
|
|
3817
|
+
_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("_b9")}><span${_attr_class("_P")}>Default</span><span${_attr_class("_j")}>`);
|
|
3818
3818
|
_attr_select_value($scope0_id, "m", input.preferred, _resume(function(v) {
|
|
3819
3819
|
setPreferred(v);
|
|
3820
3820
|
}, "s1", $scope0_id), () => {
|
|
3821
|
-
_html(`<select${_attr_class(["_k", "
|
|
3821
|
+
_html(`<select${_attr_class(["_k", "_b_"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
|
|
3822
3822
|
_for_of(input.agents.filter((a) => a !== "shell"), (id) => {
|
|
3823
3823
|
const $scope47_id = _scope_id();
|
|
3824
3824
|
_html(`<option${_attr_option_value(id)}>${_escape(agentLabel(id))}${_el_resume($scope47_id, "b", $sg__input_agents)}</option>${_el_resume($scope47_id, "a", $sg__input_agents)}`);
|
|
@@ -3839,7 +3839,7 @@ var settings_page_default = _template("s", (input) => {
|
|
|
3839
3839
|
const rows = lone ? [] : a.instances;
|
|
3840
3840
|
const loneAccounts = lone && lone.enabled ? accountsFor(lone.id) : [];
|
|
3841
3841
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
3842
|
-
_html(`<li${_attr_class(["_bu", "
|
|
3842
|
+
_html(`<li${_attr_class(["_bu", "_b8"])}><div${_attr_class(["_ca", { ["_cd"]: lone && !lone.enabled }])}>`);
|
|
3843
3843
|
_set_serialize_reason(12);
|
|
3844
3844
|
const $childScope4 = _peek_scope_id();
|
|
3845
3845
|
icon_agent_default({
|
|
@@ -3859,7 +3859,7 @@ var settings_page_default = _template("s", (input) => {
|
|
|
3859
3859
|
_if(() => {
|
|
3860
3860
|
if (active.has(a.id)) {
|
|
3861
3861
|
const $scope10_id = _scope_id();
|
|
3862
|
-
_html(`<span${_attr_class("
|
|
3862
|
+
_html(`<span${_attr_class("_b4")}><span${_attr_class("_C")}></span><!>${_escape(active.get(a.id) || "Starting…")}${_el_resume($scope10_id, "c")}</span>`);
|
|
3863
3863
|
_subscribe($active__closures, writeScope($scope10_id, {}));
|
|
3864
3864
|
return 0;
|
|
3865
3865
|
} else if (!a.installed) {
|
|
@@ -3896,18 +3896,18 @@ var settings_page_default = _template("s", (input) => {
|
|
|
3896
3896
|
_if(() => {
|
|
3897
3897
|
if (rows.length || loneAccounts.length || extraAccounts.length) {
|
|
3898
3898
|
const $scope2_id = _scope_id();
|
|
3899
|
-
_html(`<ul${_attr_class("
|
|
3899
|
+
_html(`<ul${_attr_class("_cf")}>`);
|
|
3900
3900
|
_for_of(rows, (inst) => {
|
|
3901
3901
|
const $scope3_id = _scope_id();
|
|
3902
3902
|
const accounts = inst.enabled ? accountsFor(inst.id) : [];
|
|
3903
|
-
_html(`<li${_attr_class("
|
|
3903
|
+
_html(`<li${_attr_class("_cb")}><div${_attr_class(["_cc", { ["_cd"]: !inst.enabled }])}>`);
|
|
3904
3904
|
_set_serialize_reason(12);
|
|
3905
3905
|
const $childScope5 = _peek_scope_id();
|
|
3906
3906
|
icon_agent_default({
|
|
3907
3907
|
agent: inst.id,
|
|
3908
3908
|
size: 15
|
|
3909
3909
|
});
|
|
3910
|
-
_html(`<span${_attr_class(["
|
|
3910
|
+
_html(`<span${_attr_class(["_ce", "_u"])}>${_escape(inst.command)}${_el_resume($scope3_id, "e")}</span>`);
|
|
3911
3911
|
_if(() => {
|
|
3912
3912
|
if (input.preferred === inst.id) {
|
|
3913
3913
|
const $scope50_id = _scope_id();
|
|
@@ -3982,7 +3982,7 @@ var settings_page_default = _template("s", (input) => {
|
|
|
3982
3982
|
}, "id", $scope0_id, "q", 1, 1, 1, 0, 1);
|
|
3983
3983
|
_for_of(otherUsage, (u) => {
|
|
3984
3984
|
const $scope54_id = _scope_id();
|
|
3985
|
-
_html(`<li${_attr_class(["_bu", "
|
|
3985
|
+
_html(`<li${_attr_class(["_bu", "_b8"])}>`);
|
|
3986
3986
|
_set_serialize_reason(6);
|
|
3987
3987
|
const $childScope9 = _peek_scope_id();
|
|
3988
3988
|
usage_meters_default({ agent: u });
|
|
@@ -4020,12 +4020,12 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4020
4020
|
_if(() => {
|
|
4021
4021
|
if (active.has(h.host) && authCodes.has(h.host)) {
|
|
4022
4022
|
const $scope22_id = _scope_id();
|
|
4023
|
-
_html(`<span${_attr_class("
|
|
4023
|
+
_html(`<span${_attr_class("_b4")}><span${_attr_class("_C")}></span> Enter code <strong${_attr_class("_cn")}>${_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("_co")}>${_escape(h.host)}${_el_resume($scope22_id, "f")}/login/device</a>${_el_resume($scope22_id, "e")}</span>`);
|
|
4024
4024
|
_subscribe($authCodes__closures, writeScope($scope22_id, {}));
|
|
4025
4025
|
return 0;
|
|
4026
4026
|
} else if (active.has(h.host)) {
|
|
4027
4027
|
const $scope12_id = _scope_id();
|
|
4028
|
-
_html(`<span${_attr_class("
|
|
4028
|
+
_html(`<span${_attr_class("_b4")}><span${_attr_class("_C")}></span><!>${_escape(active.get(h.host) || "Starting…")}${_el_resume($scope12_id, "c")}</span>`);
|
|
4029
4029
|
_subscribe($active__closures, writeScope($scope12_id, { Ccv: 1 }));
|
|
4030
4030
|
return 1;
|
|
4031
4031
|
} else if (h.authed) {
|
|
@@ -4117,7 +4117,7 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4117
4117
|
_if(() => {
|
|
4118
4118
|
if (setup) {
|
|
4119
4119
|
const $scope33_id = _scope_id();
|
|
4120
|
-
_html(`<form${_attr_class("
|
|
4120
|
+
_html(`<form${_attr_class("_cm")}><label${_attr_class("_T")}>`);
|
|
4121
4121
|
icon_plus_default({
|
|
4122
4122
|
size: 14,
|
|
4123
4123
|
class: "_U"
|
|
@@ -4180,11 +4180,11 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4180
4180
|
_if(() => {
|
|
4181
4181
|
if (self) {
|
|
4182
4182
|
const $scope35_id = _scope_id();
|
|
4183
|
-
_html(`<li${_attr_class(row)}><span${_attr_class(["
|
|
4183
|
+
_html(`<li${_attr_class(row)}><span${_attr_class(["_ci", "_u"])}>work</span>`);
|
|
4184
4184
|
_if(() => {
|
|
4185
4185
|
if (selfUpdating) {
|
|
4186
4186
|
const $scope62_id = _scope_id();
|
|
4187
|
-
_html(`<span${_attr_class("
|
|
4187
|
+
_html(`<span${_attr_class("_b4")}><span${_attr_class("_C")}></span>Updating — the app restarts and reloads when it is done…</span>`);
|
|
4188
4188
|
writeScope($scope62_id, {});
|
|
4189
4189
|
return 0;
|
|
4190
4190
|
} else {
|
|
@@ -4198,7 +4198,7 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4198
4198
|
return 0;
|
|
4199
4199
|
} else if (self.latest && self.latest !== self.version) {
|
|
4200
4200
|
const $scope37_id = _scope_id();
|
|
4201
|
-
_html(`<button${_attr_class([btnSm, "
|
|
4201
|
+
_html(`<button${_attr_class([btnSm, "_ck"])}${_attr("title", `Update work to v${self.latest} and restart`)}>↑ <!>${_escape(self.latest)}${_el_resume($scope37_id, "b")}</button>${_el_resume($scope37_id, "a")}`);
|
|
4202
4202
|
_script($scope37_id, "s38");
|
|
4203
4203
|
_subscribe($self_latest__closures, writeScope($scope37_id, { Cd8: 1 }));
|
|
4204
4204
|
return 1;
|
|
@@ -4234,11 +4234,11 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4234
4234
|
const $for_content4__t_path__closures = /* @__PURE__ */ new Set();
|
|
4235
4235
|
const $for_content4__t_latest__closures = /* @__PURE__ */ new Set();
|
|
4236
4236
|
const $for_content4__t_id__closures = /* @__PURE__ */ new Set();
|
|
4237
|
-
_html(`<li${_attr_class([row, { ["
|
|
4237
|
+
_html(`<li${_attr_class([row, { ["_ch"]: !t.installed }])}><span${_attr_class(["_ci", "_u"])}>${_escape(t.label)}${_el_resume($scope16_id, "c")}</span>`);
|
|
4238
4238
|
_if(() => {
|
|
4239
4239
|
if (active.has(t.id)) {
|
|
4240
4240
|
const $scope17_id = _scope_id();
|
|
4241
|
-
_html(`<span${_attr_class("
|
|
4241
|
+
_html(`<span${_attr_class("_b4")}><span${_attr_class("_C")}></span><!>${_escape(active.get(t.id) || "Starting…")}${_el_resume($scope17_id, "c")}</span>`);
|
|
4242
4242
|
_subscribe($active__closures, writeScope($scope17_id, { Ccv: 2 }));
|
|
4243
4243
|
return 0;
|
|
4244
4244
|
} else if (t.installed) {
|
|
@@ -4246,7 +4246,7 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4246
4246
|
_if(() => {
|
|
4247
4247
|
if (t.version) {
|
|
4248
4248
|
const $scope30_id = _scope_id();
|
|
4249
|
-
_html(`<button${_attr_class(["
|
|
4249
|
+
_html(`<button${_attr_class(["_cj", "_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")}`);
|
|
4250
4250
|
_script($scope30_id, "s39");
|
|
4251
4251
|
_subscribe($for_content4__t_path__closures, _subscribe($for_content4__t_version__closures, _subscribe($for_content4__t_label__closures, writeScope($scope30_id, { Cu: 1 }))));
|
|
4252
4252
|
return 0;
|
|
@@ -4260,7 +4260,7 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4260
4260
|
_if(() => {
|
|
4261
4261
|
if (outdated(t)) {
|
|
4262
4262
|
const $scope40_id = _scope_id();
|
|
4263
|
-
_html(`<button${_attr_class([btnSm, "
|
|
4263
|
+
_html(`<button${_attr_class([btnSm, "_ck"])}${_attr("title", `Update to v${t.latest}`)}>↑ <!>${_escape(t.latest)}${_el_resume($scope40_id, "b")}</button>${_el_resume($scope40_id, "a")}`);
|
|
4264
4264
|
_script($scope40_id, "s40");
|
|
4265
4265
|
_subscribe($for_content4__t_latest__closures, writeScope($scope40_id, {}));
|
|
4266
4266
|
return 0;
|
|
@@ -4360,14 +4360,14 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4360
4360
|
_if(() => {
|
|
4361
4361
|
if (hits && hits.length) {
|
|
4362
4362
|
const $scope19_id = _scope_id();
|
|
4363
|
-
_html(`<ul${_attr_class([toolGrid, "
|
|
4363
|
+
_html(`<ul${_attr_class([toolGrid, "_cl"])}>`);
|
|
4364
4364
|
_for_of(hits, (h) => {
|
|
4365
4365
|
const $scope20_id = _scope_id();
|
|
4366
|
-
_html(`<li${_attr_class(row)}><div${_attr_class("_bv")}><span${_attr_class(["
|
|
4366
|
+
_html(`<li${_attr_class(row)}><div${_attr_class("_bv")}><span${_attr_class(["_ci", "_u"])}>${_escape(h.name)}${_el_resume($scope20_id, "d")}</span>`);
|
|
4367
4367
|
_if(() => {
|
|
4368
4368
|
if (active.has(h.name)) {
|
|
4369
4369
|
const $scope21_id = _scope_id();
|
|
4370
|
-
_html(`<span${_attr_class("
|
|
4370
|
+
_html(`<span${_attr_class("_b4")}><span${_attr_class("_C")}></span><!>${_escape(active.get(h.name) || "Starting…")}${_el_resume($scope21_id, "c")}</span>`);
|
|
4371
4371
|
_subscribe($active__closures, writeScope($scope21_id, { Ccv: 4 }));
|
|
4372
4372
|
return 0;
|
|
4373
4373
|
} else if (h.description) {
|
|
@@ -5073,8 +5073,8 @@ function activeAgent(session) {
|
|
|
5073
5073
|
const command = session.state?.command?.trim();
|
|
5074
5074
|
return command && agentFromCommand(command) || session.agent;
|
|
5075
5075
|
}
|
|
5076
|
-
var iconBtn$1 = "
|
|
5077
|
-
var navToggle = "
|
|
5076
|
+
var iconBtn$1 = "_cP _g";
|
|
5077
|
+
var navToggle = "_cU _g";
|
|
5078
5078
|
_template("F", (input) => {
|
|
5079
5079
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
5080
5080
|
const $scope0_id = _scope_id();
|
|
@@ -5117,12 +5117,12 @@ var ARM_MS = 3500;
|
|
|
5117
5117
|
function disarmLater(fn) {
|
|
5118
5118
|
return setTimeout(fn, ARM_MS);
|
|
5119
5119
|
}
|
|
5120
|
-
var railBtn = "
|
|
5121
|
-
var rowIcon = "
|
|
5122
|
-
var close = "
|
|
5120
|
+
var railBtn = "_fs _g";
|
|
5121
|
+
var rowIcon = "_fB _W _g";
|
|
5122
|
+
var close = "_fC _W _g _Z";
|
|
5123
5123
|
//#endregion
|
|
5124
5124
|
//#region src/styles/session-pop.css.ts
|
|
5125
|
-
var sessionPop = "
|
|
5125
|
+
var sessionPop = "_fa _1";
|
|
5126
5126
|
//#endregion
|
|
5127
5127
|
//#region src/client/usage.ts
|
|
5128
5128
|
/** The plan row an agent instance draws on: its own account (`claude2`)
|
|
@@ -5183,21 +5183,21 @@ var usage_pcts_default = _template("A", (input) => {
|
|
|
5183
5183
|
if (windows.length) {
|
|
5184
5184
|
const $scope1_id = _scope_id();
|
|
5185
5185
|
_html(`<span${_attr_class([
|
|
5186
|
-
"
|
|
5186
|
+
"_fU",
|
|
5187
5187
|
input.class,
|
|
5188
|
-
{ ["
|
|
5188
|
+
{ ["_fV"]: agent.stale_seconds != null }
|
|
5189
5189
|
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
5190
5190
|
_for_of(windows, (win$1, i) => {
|
|
5191
5191
|
const $scope2_id = _scope_id();
|
|
5192
5192
|
_if(() => {
|
|
5193
5193
|
if (i) {
|
|
5194
5194
|
const $scope3_id = _scope_id();
|
|
5195
|
-
_html(`<span${_attr_class("
|
|
5195
|
+
_html(`<span${_attr_class("_fZ")} aria-hidden=true>·</span>`);
|
|
5196
5196
|
$si__input_agent && writeScope($scope3_id, {});
|
|
5197
5197
|
return 0;
|
|
5198
5198
|
}
|
|
5199
5199
|
}, $scope2_id, "a", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
5200
|
-
_html(`<span${_attr_class("
|
|
5200
|
+
_html(`<span${_attr_class("_fW")}><span${_attr_class("_fX")}>${_escape(win$1.window)}${_el_resume($scope2_id, "d", $sg__input_agent)}</span><span${_attr_class(["_fY", win$1.used_percent >= 90 ? "_dU" : win$1.used_percent >= 70 ? "_dT" : win$1.used_percent >= 40 ? "_dS" : "_dR"])}>${_escape(pctText(win$1.used_percent))}${_el_resume($scope2_id, "f", $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
5201
5201
|
$si__input_agent && writeScope($scope2_id, {});
|
|
5202
5202
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>");
|
|
5203
5203
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -5228,12 +5228,12 @@ var icon_edit_default = _template("K", (input) => {
|
|
|
5228
5228
|
});
|
|
5229
5229
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
5230
5230
|
});
|
|
5231
|
-
var prChip = "
|
|
5232
|
-
var portChip = "
|
|
5231
|
+
var prChip = "_gy _p _gx";
|
|
5232
|
+
var portChip = "_gz _p _gx";
|
|
5233
5233
|
var prState = {
|
|
5234
|
-
open: "
|
|
5235
|
-
merged: "
|
|
5236
|
-
closed: "
|
|
5234
|
+
open: "_gD",
|
|
5235
|
+
merged: "_gE",
|
|
5236
|
+
closed: "_gF"
|
|
5237
5237
|
};
|
|
5238
5238
|
//#endregion
|
|
5239
5239
|
//#region src/tags/side-nav-chips.marko
|
|
@@ -5281,7 +5281,7 @@ var side_nav_chips_default = _template("t", (input) => {
|
|
|
5281
5281
|
const name = repo.full_name.split("/").at(-1);
|
|
5282
5282
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel(repo.full_name) : name;
|
|
5283
5283
|
}, "t2", $scope1_id);
|
|
5284
|
-
_html(`<div${_attr_class("
|
|
5284
|
+
_html(`<div${_attr_class("_gw")}>`);
|
|
5285
5285
|
_for_of(repos, (repo) => {
|
|
5286
5286
|
const $scope2_id = _scope_id();
|
|
5287
5287
|
const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -5297,11 +5297,11 @@ var side_nav_chips_default = _template("t", (input) => {
|
|
|
5297
5297
|
[prState.merged]: pr.state === "MERGED",
|
|
5298
5298
|
[prState.closed]: pr.state === "CLOSED"
|
|
5299
5299
|
}
|
|
5300
|
-
])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["
|
|
5300
|
+
])}${_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)}`);
|
|
5301
5301
|
_if(() => {
|
|
5302
5302
|
if (open) {
|
|
5303
5303
|
const $scope4_id = _scope_id();
|
|
5304
|
-
_html(`<a${_attr_class(["
|
|
5304
|
+
_html(`<a${_attr_class(["_gA", "_gB"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr.number}`)}`)}${_attr("title", `Review #${pr.number} changes`)}>`);
|
|
5305
5305
|
icon_diff_default({ size: 12 });
|
|
5306
5306
|
_html(`</a>${_el_resume($scope4_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
5307
5307
|
_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) })));
|
|
@@ -5309,9 +5309,9 @@ var side_nav_chips_default = _template("t", (input) => {
|
|
|
5309
5309
|
} else {
|
|
5310
5310
|
const $scope6_id = _scope_id();
|
|
5311
5311
|
_html(`<button type=button${_attr_class([
|
|
5312
|
+
"_gA",
|
|
5312
5313
|
"_gB",
|
|
5313
|
-
"_gC"
|
|
5314
|
-
"_gD"
|
|
5314
|
+
"_gC"
|
|
5315
5315
|
])}${_attr("title", `Dismiss #${pr.number}`)}>`);
|
|
5316
5316
|
icon_xmark_default({ size: 12 });
|
|
5317
5317
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
@@ -5336,10 +5336,10 @@ var side_nav_chips_default = _template("t", (input) => {
|
|
|
5336
5336
|
}, "full_name", $scope1_id, "b", $sg__input_status_repos, $sg__input_status_repos, $sg__input_status_repos__OR__input_status_ports);
|
|
5337
5337
|
_for_of(ports, (p) => {
|
|
5338
5338
|
const $scope5_id = _scope_id();
|
|
5339
|
-
_html(`<span${_attr_class(["_p", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["
|
|
5339
|
+
_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([
|
|
5340
|
+
"_gA",
|
|
5340
5341
|
"_gB",
|
|
5341
5342
|
"_gC",
|
|
5342
|
-
"_gD",
|
|
5343
5343
|
{ ["_n"]: armedPid === p.pid }
|
|
5344
5344
|
])}${armedPid === p.pid ? " title=Kill?" : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
|
|
5345
5345
|
icon_xmark_default({ size: 12 });
|
|
@@ -5431,10 +5431,10 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5431
5431
|
_if(() => {
|
|
5432
5432
|
if (input.rail) {
|
|
5433
5433
|
const $scope2_id = _scope_id();
|
|
5434
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
5434
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_fq"]: 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([
|
|
5435
5435
|
"_w",
|
|
5436
5436
|
phase[dot],
|
|
5437
|
-
"
|
|
5437
|
+
"_ft"
|
|
5438
5438
|
])}></span>${_el_resume($scope2_id, "c", $sg__input_workspaceId__OR__input_status)}</a>${_el_resume($scope2_id, "a", _serialize_guard($scope0_reason, 3))}`);
|
|
5439
5439
|
_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) })))));
|
|
5440
5440
|
return 0;
|
|
@@ -5442,15 +5442,15 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5442
5442
|
const $scope3_id = _scope_id();
|
|
5443
5443
|
const sessions$1 = input.sessions || [];
|
|
5444
5444
|
const phaseLabel = dot === "working" ? "Working" : dot === "waiting" ? "Needs input" : dot === "idle" ? "Idle" : "Not running";
|
|
5445
|
-
_html(`<section${_attr_class(["
|
|
5446
|
-
["
|
|
5445
|
+
_html(`<section${_attr_class(["_fv", {
|
|
5446
|
+
["_fq"]: input.current,
|
|
5447
5447
|
["_2"]: input.current,
|
|
5448
|
-
["
|
|
5449
|
-
["
|
|
5450
|
-
}])}><div${_attr_class("
|
|
5448
|
+
["_fw"]: input.railPop,
|
|
5449
|
+
["_fu"]: input.page
|
|
5450
|
+
}])}><div${_attr_class("_fx")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class("_fy")}><span${_attr_class([
|
|
5451
5451
|
"_w",
|
|
5452
5452
|
phase[dot],
|
|
5453
|
-
"
|
|
5453
|
+
"_fM"
|
|
5454
5454
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope3_id, "d", $sg__input_workspaceId__OR__input_status)}`);
|
|
5455
5455
|
_if(() => {
|
|
5456
5456
|
if (sessions$1.length === 1) {
|
|
@@ -5463,7 +5463,7 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5463
5463
|
icon_agent_default({
|
|
5464
5464
|
agent: activeAgent(sessions$1[0]),
|
|
5465
5465
|
size: 12,
|
|
5466
|
-
class: "
|
|
5466
|
+
class: "_fD"
|
|
5467
5467
|
});
|
|
5468
5468
|
$si__input_sessions && writeScope($scope14_id, {
|
|
5469
5469
|
_: _scope_with_id($scope3_id),
|
|
@@ -5473,16 +5473,16 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5473
5473
|
}
|
|
5474
5474
|
}, $scope3_id, "e", $sg__input_sessions, $sg__input_sessions);
|
|
5475
5475
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length === 1 ? sessions$1[0].title || "" : `${sessions$1.length} sessions`;
|
|
5476
|
-
_html(`<span${_attr_class("
|
|
5476
|
+
_html(`<span${_attr_class("_fE")}><span${_attr_class("_fF")}>${_escape(ws$1.name)}${_el_resume($scope3_id, "h", $sg__input_workspaces__OR__input_workspaceId)}</span>`);
|
|
5477
5477
|
_if(() => {
|
|
5478
5478
|
if (input.page && metaText) {
|
|
5479
5479
|
const $scope16_id = _scope_id();
|
|
5480
|
-
_html(`<span${_attr_class("
|
|
5480
|
+
_html(`<span${_attr_class("_fK")}>${_escape(metaText)}${_el_resume($scope16_id, "b", _serialize_guard($scope0_reason, 7))}</span>`);
|
|
5481
5481
|
$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) });
|
|
5482
5482
|
return 0;
|
|
5483
5483
|
} else if (sessions$1.length === 1 && sessions$1[0].title) {
|
|
5484
5484
|
const $scope15_id = _scope_id();
|
|
5485
|
-
_html(`<span${_attr_class("
|
|
5485
|
+
_html(`<span${_attr_class("_fG")}>${_escape(sessions$1[0].title)}${_el_resume($scope15_id, "b", $sg__input_sessions)}</span>`);
|
|
5486
5486
|
$si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && writeScope($scope15_id, { _: $si__input_sessions && _scope_with_id($scope3_id) });
|
|
5487
5487
|
return 1;
|
|
5488
5488
|
}
|
|
@@ -5495,7 +5495,7 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5495
5495
|
"_F",
|
|
5496
5496
|
"_O",
|
|
5497
5497
|
"_H",
|
|
5498
|
-
"
|
|
5498
|
+
"_fL"
|
|
5499
5499
|
])}>${input.current ? "Open" : ""}${_el_resume($scope4_id, "b", _serialize_guard($scope0_reason, 21))}</span>`);
|
|
5500
5500
|
$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, {
|
|
5501
5501
|
_: _scope_with_id($scope3_id),
|
|
@@ -5508,7 +5508,7 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5508
5508
|
_if(() => {
|
|
5509
5509
|
if (!input.page) {
|
|
5510
5510
|
const $scope5_id = _scope_id();
|
|
5511
|
-
_html(`<div${_attr_class("
|
|
5511
|
+
_html(`<div${_attr_class("_fz")}>`);
|
|
5512
5512
|
_if(() => {
|
|
5513
5513
|
if (input.onNewSession) {
|
|
5514
5514
|
const $scope6_id = _scope_id();
|
|
@@ -5522,7 +5522,7 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5522
5522
|
_html(`</button>${_el_resume($scope6_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class(sessionPop)}>`);
|
|
5523
5523
|
_for_of([], (agent) => {
|
|
5524
5524
|
const $scope7_id = _scope_id();
|
|
5525
|
-
_html(`<button${_attr_class("
|
|
5525
|
+
_html(`<button${_attr_class("_fb")}>`);
|
|
5526
5526
|
_set_serialize_reason(12);
|
|
5527
5527
|
const $childScope2 = _peek_scope_id();
|
|
5528
5528
|
icon_agent_default({
|
|
@@ -5557,7 +5557,7 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5557
5557
|
return 0;
|
|
5558
5558
|
}
|
|
5559
5559
|
}, $scope5_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
5560
|
-
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["
|
|
5560
|
+
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_fr"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
|
|
5561
5561
|
icon_manage_default({ size: 12 });
|
|
5562
5562
|
_html(`</a>${_el_resume($scope5_id, "d", _serialize_guard($scope0_reason, 8))}</div>`);
|
|
5563
5563
|
_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, {
|
|
@@ -5567,7 +5567,7 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5567
5567
|
return 0;
|
|
5568
5568
|
}
|
|
5569
5569
|
}, $scope3_id, "k", $sg__input_page, $sg__input_page, 1, 0, 1);
|
|
5570
|
-
_html(`</div><div${_attr_class("
|
|
5570
|
+
_html(`</div><div${_attr_class("_fR")}>`);
|
|
5571
5571
|
_if(() => {
|
|
5572
5572
|
if (sessions$1.length === 1 && openPlan) {
|
|
5573
5573
|
const $scope11_id = _scope_id();
|
|
@@ -5575,7 +5575,7 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5575
5575
|
const $childScope3 = _peek_scope_id();
|
|
5576
5576
|
usage_pcts_default({
|
|
5577
5577
|
agent: openPlan,
|
|
5578
|
-
class: "
|
|
5578
|
+
class: "_fH"
|
|
5579
5579
|
});
|
|
5580
5580
|
_subscribe($openPlan__closures, writeScope($scope11_id, {
|
|
5581
5581
|
a: _existing_scope($childScope3),
|
|
@@ -5586,14 +5586,14 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5586
5586
|
}, $scope3_id, "m");
|
|
5587
5587
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
5588
5588
|
const $scope8_id = _scope_id();
|
|
5589
|
-
_html(`<div${_attr_class(["
|
|
5589
|
+
_html(`<div${_attr_class(["_fA", { ["_fq"]: s.id === input.currentTab }])}>`);
|
|
5590
5590
|
_if(() => {
|
|
5591
5591
|
if (renamingId === s.id) {
|
|
5592
5592
|
const $scope10_id = _scope_id();
|
|
5593
5593
|
_html(`<span${_attr_class([
|
|
5594
5594
|
"_w",
|
|
5595
5595
|
phase[sessionPhase(s.state)],
|
|
5596
|
-
"
|
|
5596
|
+
"_fP"
|
|
5597
5597
|
])}></span>${_el_resume($scope10_id, "a", $sg__input_sessions)}`);
|
|
5598
5598
|
_set_serialize_reason({
|
|
5599
5599
|
1: $sg__input_sessions,
|
|
@@ -5603,17 +5603,17 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5603
5603
|
icon_agent_default({
|
|
5604
5604
|
agent: activeAgent(s),
|
|
5605
5605
|
size: 13,
|
|
5606
|
-
class: "
|
|
5606
|
+
class: "_fT"
|
|
5607
5607
|
});
|
|
5608
5608
|
_html(`<input${_attr_input_value($scope10_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
5609
5609
|
renameValue = _new_renameValue;
|
|
5610
|
-
}, "u0", $scope10_id))}${_attr_class(["_R", "
|
|
5610
|
+
}, "u0", $scope10_id))}${_attr_class(["_R", "_fQ"])} aria-label="Session name">${_el_resume($scope10_id, "c")}`);
|
|
5611
5611
|
_script($scope10_id, "u5");
|
|
5612
5612
|
_subscribe($renameValue__closures, writeScope($scope10_id, { b: $si__input_sessions && _existing_scope($childScope4) }));
|
|
5613
5613
|
return 0;
|
|
5614
5614
|
} else {
|
|
5615
5615
|
const $scope9_id = _scope_id();
|
|
5616
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("
|
|
5616
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("_fS")}><span${_attr_class(["_w", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope9_id, "b", $sg__input_sessions)}`);
|
|
5617
5617
|
_set_serialize_reason({
|
|
5618
5618
|
1: $sg__input_sessions,
|
|
5619
5619
|
2: $sg__input_sessions
|
|
@@ -5622,9 +5622,9 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5622
5622
|
icon_agent_default({
|
|
5623
5623
|
agent: activeAgent(s),
|
|
5624
5624
|
size: 13,
|
|
5625
|
-
class: "
|
|
5625
|
+
class: "_fT"
|
|
5626
5626
|
});
|
|
5627
|
-
_html(`<span${_attr_class("
|
|
5627
|
+
_html(`<span${_attr_class("_fI")}><span${_attr_class("_fN")}>${_escape(s.title || activeAgent(s))}${_el_resume($scope9_id, "f", $sg__input_sessions)}</span>`);
|
|
5628
5628
|
_if(() => {
|
|
5629
5629
|
if (openPlan && s.id === openSess?.id) {
|
|
5630
5630
|
const $scope12_id = _scope_id();
|
|
@@ -5632,7 +5632,7 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5632
5632
|
const $childScope6 = _peek_scope_id();
|
|
5633
5633
|
usage_pcts_default({
|
|
5634
5634
|
agent: openPlan,
|
|
5635
|
-
class: "
|
|
5635
|
+
class: "_fJ"
|
|
5636
5636
|
});
|
|
5637
5637
|
_subscribe($openPlan__closures, writeScope($scope12_id, {
|
|
5638
5638
|
a: _existing_scope($childScope6),
|
|
@@ -5641,7 +5641,7 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5641
5641
|
return 0;
|
|
5642
5642
|
}
|
|
5643
5643
|
}, $scope9_id, "g");
|
|
5644
|
-
_html(`</span></a>${_el_resume($scope9_id, "a", _serialize_guard($scope0_reason, 6))}<div${_attr_class("
|
|
5644
|
+
_html(`</span></a>${_el_resume($scope9_id, "a", _serialize_guard($scope0_reason, 6))}<div${_attr_class("_fO")}><button${_attr_class(rowIcon)} title="Rename session">`);
|
|
5645
5645
|
icon_edit_default({ size: 12 });
|
|
5646
5646
|
_html(`</button>${_el_resume($scope9_id, "i")}<button${_attr_class([close, { ["_n"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
|
|
5647
5647
|
icon_xmark_default({ size: 12 });
|
|
@@ -5837,25 +5837,25 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5837
5837
|
const backHref = `/w/${ws.id}`;
|
|
5838
5838
|
const otherIds = itemIds.filter((id) => id !== ws.id);
|
|
5839
5839
|
const listIds = isPage ? [ws.id, ...otherIds] : itemIds;
|
|
5840
|
-
_html(`<aside${_attr_class(["
|
|
5841
|
-
["
|
|
5842
|
-
["
|
|
5840
|
+
_html(`<aside${_attr_class(["_cT", {
|
|
5841
|
+
["_cR"]: !navOpen,
|
|
5842
|
+
["_cS"]: isPage
|
|
5843
5843
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
5844
5844
|
_if(() => {
|
|
5845
5845
|
if (isPage) {
|
|
5846
5846
|
const $scope1_id = _scope_id();
|
|
5847
|
-
_html(`<header${_attr_class("
|
|
5847
|
+
_html(`<header${_attr_class("_cW")}><h1${_attr_class("_cX")}>Workspaces</h1><div${_attr_class("_cY")}>`);
|
|
5848
5848
|
_if(() => {}, $scope1_id, "d", 1, 1, 1, 0, 1);
|
|
5849
5849
|
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
|
|
5850
5850
|
iconBtn$1,
|
|
5851
|
-
"
|
|
5852
|
-
{ ["
|
|
5851
|
+
"_cZ",
|
|
5852
|
+
{ ["_cO"]: view === "settings" }
|
|
5853
5853
|
])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
5854
5854
|
icon_settings_default({ size: 16 });
|
|
5855
5855
|
_if(() => {
|
|
5856
5856
|
if (input.setupReady === false) {
|
|
5857
5857
|
const $scope10_id = _scope_id();
|
|
5858
|
-
_html(`<span${_attr_class(["_w", "
|
|
5858
|
+
_html(`<span${_attr_class(["_w", "_cQ"])} title="Machine setup incomplete"></span>`);
|
|
5859
5859
|
$si__input_setupReady && writeScope($scope10_id, {});
|
|
5860
5860
|
return 0;
|
|
5861
5861
|
}
|
|
@@ -5865,13 +5865,13 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5865
5865
|
return 0;
|
|
5866
5866
|
}
|
|
5867
5867
|
}, $scope0_id, "b", 1, 1, 1, 0, 1);
|
|
5868
|
-
_html(`<div${_attr_class("
|
|
5868
|
+
_html(`<div${_attr_class("_c2")}>`);
|
|
5869
5869
|
_for_of(listIds, (wsId) => {
|
|
5870
5870
|
const $scope2_id = _scope_id();
|
|
5871
5871
|
_if(() => {
|
|
5872
5872
|
if (isPage && wsId === ws.id) {
|
|
5873
5873
|
const $scope11_id = _scope_id();
|
|
5874
|
-
_html(`<h2${_attr_class(["_bE", "
|
|
5874
|
+
_html(`<h2${_attr_class(["_bE", "_c0"])}>Current</h2>`);
|
|
5875
5875
|
writeScope($scope11_id, {});
|
|
5876
5876
|
return 0;
|
|
5877
5877
|
}
|
|
@@ -5879,7 +5879,7 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5879
5879
|
_if(() => {
|
|
5880
5880
|
if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
|
|
5881
5881
|
const $scope12_id = _scope_id();
|
|
5882
|
-
_html(`<h2${_attr_class(["_bE", "
|
|
5882
|
+
_html(`<h2${_attr_class(["_bE", "_c0"])}>Other workspaces</h2>`);
|
|
5883
5883
|
writeScope($scope12_id, {});
|
|
5884
5884
|
return 0;
|
|
5885
5885
|
}
|
|
@@ -5966,7 +5966,7 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5966
5966
|
railHover = null;
|
|
5967
5967
|
}, 150);
|
|
5968
5968
|
}, "v6", $scope3_id);
|
|
5969
|
-
_html(`<div${_attr_class("
|
|
5969
|
+
_html(`<div${_attr_class("_c3")}>`);
|
|
5970
5970
|
_for_of(itemIds, (wsId, i) => {
|
|
5971
5971
|
const $scope4_id = _scope_id();
|
|
5972
5972
|
_html("<span>");
|
|
@@ -6020,7 +6020,7 @@ var side_nav_default = _template("v", (input) => {
|
|
|
6020
6020
|
if (railHover) {
|
|
6021
6021
|
const $scope5_id = _scope_id();
|
|
6022
6022
|
const hoverId = railHover.id;
|
|
6023
|
-
_html(`<div${_attr_class(["_1", "
|
|
6023
|
+
_html(`<div${_attr_class(["_1", "_c6"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
6024
6024
|
_set_serialize_reason({
|
|
6025
6025
|
0: 1,
|
|
6026
6026
|
1: 1,
|
|
@@ -6108,7 +6108,7 @@ var side_nav_default = _template("v", (input) => {
|
|
|
6108
6108
|
return 0;
|
|
6109
6109
|
}
|
|
6110
6110
|
}, $scope0_id, "d");
|
|
6111
|
-
_html(`<div${_attr_class("
|
|
6111
|
+
_html(`<div${_attr_class("_c4")}>`);
|
|
6112
6112
|
_if(() => {
|
|
6113
6113
|
if (isPage) {
|
|
6114
6114
|
const $scope7_id = _scope_id();
|
|
@@ -6116,7 +6116,7 @@ var side_nav_default = _template("v", (input) => {
|
|
|
6116
6116
|
"_l",
|
|
6117
6117
|
"_m",
|
|
6118
6118
|
btnLg,
|
|
6119
|
-
"
|
|
6119
|
+
"_c1"
|
|
6120
6120
|
])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
6121
6121
|
icon_folder_plus_default({ size: 16 });
|
|
6122
6122
|
_html(` New workspace</a>${_el_resume($scope7_id, "a")}`);
|
|
@@ -6138,19 +6138,19 @@ var side_nav_default = _template("v", (input) => {
|
|
|
6138
6138
|
return 1;
|
|
6139
6139
|
}
|
|
6140
6140
|
}, $scope6_id, "a", 1, 1, 1, "</button>", 1);
|
|
6141
|
-
_html(`<div${_attr_class(["_v", "
|
|
6141
|
+
_html(`<div${_attr_class(["_v", "_c5"])}></div>`);
|
|
6142
6142
|
_if(() => {}, $scope6_id, "c", 1, 1, 1, 0, 1);
|
|
6143
|
-
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["
|
|
6143
|
+
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["_cO"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
6144
6144
|
icon_settings_default({ size: 15 });
|
|
6145
6145
|
_if(() => {
|
|
6146
6146
|
if (input.setupReady === false) {
|
|
6147
6147
|
const $scope15_id = _scope_id();
|
|
6148
|
-
_html(`<span${_attr_class(["_w", "
|
|
6148
|
+
_html(`<span${_attr_class(["_w", "_cQ"])} title="Machine setup incomplete"></span>`);
|
|
6149
6149
|
$si__input_setupReady && writeScope($scope15_id, {});
|
|
6150
6150
|
return 0;
|
|
6151
6151
|
}
|
|
6152
6152
|
}, $scope6_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
6153
|
-
_html(`</a>${_el_resume($scope6_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn$1, { ["
|
|
6153
|
+
_html(`</a>${_el_resume($scope6_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn$1, { ["_cO"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
6154
6154
|
icon_folder_plus_default({ size: 16 });
|
|
6155
6155
|
_html(`</a>${_el_resume($scope6_id, "g")}`);
|
|
6156
6156
|
_script($scope6_id, "v15");
|
|
@@ -6213,10 +6213,10 @@ var side_nav_default = _template("v", (input) => {
|
|
|
6213
6213
|
});
|
|
6214
6214
|
var iconBtn = "_X _g";
|
|
6215
6215
|
var sectionCount = "_br _F _G";
|
|
6216
|
-
var content = "
|
|
6217
|
-
var pageMeta = "
|
|
6218
|
-
var pathMeta = "
|
|
6219
|
-
var dangerHint = "
|
|
6216
|
+
var content = "_cD _bh";
|
|
6217
|
+
var pageMeta = "_cE _bm";
|
|
6218
|
+
var pathMeta = "_cH _u";
|
|
6219
|
+
var dangerHint = "_cN _P";
|
|
6220
6220
|
//#endregion
|
|
6221
6221
|
//#region src/tags/manage-workspace.marko
|
|
6222
6222
|
var api$2;
|
|
@@ -6327,7 +6327,7 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6327
6327
|
meta: attrTag({ content: _content_resume("l11", () => {
|
|
6328
6328
|
_scope_reason();
|
|
6329
6329
|
const $scope8_id = _scope_id();
|
|
6330
|
-
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
6330
|
+
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_cF")}>${_escape(ws.name)}${_el_resume($scope8_id, "c")}</span>`);
|
|
6331
6331
|
_if(() => {
|
|
6332
6332
|
if (ws.status !== "active") {
|
|
6333
6333
|
const $scope11_id = _scope_id();
|
|
@@ -6336,7 +6336,7 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6336
6336
|
return 0;
|
|
6337
6337
|
}
|
|
6338
6338
|
}, $scope8_id, "d", 1, 1, 1, 0, 1);
|
|
6339
|
-
_html(`<span${_attr_class("
|
|
6339
|
+
_html(`<span${_attr_class("_cG")} 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")}`);
|
|
6340
6340
|
_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) })))));
|
|
6341
6341
|
_resume_branch($scope8_id);
|
|
6342
6342
|
}, $scope0_id) })
|
|
@@ -6379,7 +6379,7 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6379
6379
|
_html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("_bs")}>`);
|
|
6380
6380
|
_for_of(ws.repos, (row) => {
|
|
6381
6381
|
const $scope1_id = _scope_id();
|
|
6382
|
-
_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", "
|
|
6382
|
+
_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", "_cJ"])}${_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")}`);
|
|
6383
6383
|
_if(() => {
|
|
6384
6384
|
if (row.base_branch !== row.default_branch) {
|
|
6385
6385
|
const $scope12_id = _scope_id();
|
|
@@ -6443,7 +6443,7 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6443
6443
|
return 0;
|
|
6444
6444
|
}
|
|
6445
6445
|
}, $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
6446
|
-
_html(`<div${_attr_class("
|
|
6446
|
+
_html(`<div${_attr_class("_cI")}>`);
|
|
6447
6447
|
const $childScope3 = _peek_scope_id();
|
|
6448
6448
|
let refreshCatalog = repo_picker_default({
|
|
6449
6449
|
exclude: inWorkspace,
|
|
@@ -6473,7 +6473,7 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6473
6473
|
_html(`<span${_attr_class("_bx")}>`);
|
|
6474
6474
|
_for_of(p.ports, (port) => {
|
|
6475
6475
|
const $scope19_id = _scope_id();
|
|
6476
|
-
_html(`<button${_attr_class(["_p", "
|
|
6476
|
+
_html(`<button${_attr_class(["_p", "_cK"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope19_id, "b")}</button>${_el_resume($scope19_id, "a")}`);
|
|
6477
6477
|
_script($scope19_id, "l15");
|
|
6478
6478
|
writeScope($scope19_id, { d: port });
|
|
6479
6479
|
}, (x) => String(x), $scope18_id, "a", 1, 1, 1, "</span>", 1);
|
|
@@ -6495,7 +6495,7 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6495
6495
|
return 0;
|
|
6496
6496
|
}
|
|
6497
6497
|
}, $scope0_id, "v", 1, 1, 1, 0, 1);
|
|
6498
|
-
_html(`<section${_attr_class(["_bp", "
|
|
6498
|
+
_html(`<section${_attr_class(["_bp", "_cL"])}><div${_attr_class("_bq")}><h2${_attr_class("_bE")}>Workspace</h2></div><div${_attr_class("_cM")}>`);
|
|
6499
6499
|
_if(() => {
|
|
6500
6500
|
if (ws.status === "active") {
|
|
6501
6501
|
const $scope4_id = _scope_id();
|
|
@@ -6596,15 +6596,15 @@ var term_find_default = _template("w", (input) => {
|
|
|
6596
6596
|
const canStep = hasQuery && open;
|
|
6597
6597
|
const keybar = input.placement === "keybar";
|
|
6598
6598
|
_html(`<div${_attr_class([
|
|
6599
|
-
"
|
|
6600
|
-
keybar ? "
|
|
6601
|
-
!open && "
|
|
6602
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
6599
|
+
"_e4",
|
|
6600
|
+
keybar ? "_e6" : "_e5",
|
|
6601
|
+
!open && "_e8"
|
|
6602
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_eZ", keybar ? "_e7" : "_e1"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
6603
6603
|
if (!open) return;
|
|
6604
6604
|
query = v;
|
|
6605
6605
|
live.query = v;
|
|
6606
6606
|
run(0);
|
|
6607
|
-
}, "w0", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
6607
|
+
}, "w0", $scope0_id))}${_attr_class([findInput, keybar && "_e9"])} 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 && "_e_"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↑</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_e_"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↓</button>${_el_resume($scope0_id, "e")}<button type=button${_attr_class([findIconBtn, keybar && "_e_"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
6608
6608
|
icon_xmark_default({ size: 14 });
|
|
6609
6609
|
_html(`</button>${_el_resume($scope0_id, "f")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
6610
6610
|
_script($scope0_id, "w4");
|
|
@@ -6878,7 +6878,7 @@ var term_default = _template("x", (input) => {
|
|
|
6878
6878
|
trapOpen = true;
|
|
6879
6879
|
}
|
|
6880
6880
|
}, "x14", $scope0_id);
|
|
6881
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
6881
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_dY")}><div${_attr_class("_dZ")}></div>${_el_resume($scope0_id, "b")}`);
|
|
6882
6882
|
_if(() => {
|
|
6883
6883
|
if (findOpen) {
|
|
6884
6884
|
const $scope12_id = _scope_id();
|
|
@@ -6905,7 +6905,7 @@ var term_default = _template("x", (input) => {
|
|
|
6905
6905
|
_if(() => {
|
|
6906
6906
|
if (uploading) {
|
|
6907
6907
|
const $scope19_id = _scope_id();
|
|
6908
|
-
_html(`<div${_attr_class("
|
|
6908
|
+
_html(`<div${_attr_class("_d5")}>uploading…</div>`);
|
|
6909
6909
|
writeScope($scope19_id, {});
|
|
6910
6910
|
return 0;
|
|
6911
6911
|
}
|
|
@@ -6913,7 +6913,7 @@ var term_default = _template("x", (input) => {
|
|
|
6913
6913
|
_if(() => {
|
|
6914
6914
|
if (copiedFlash) {
|
|
6915
6915
|
const $scope20_id = _scope_id();
|
|
6916
|
-
_html(`<div${_attr_class("
|
|
6916
|
+
_html(`<div${_attr_class("_d4")}>Copied</div>`);
|
|
6917
6917
|
writeScope($scope20_id, {});
|
|
6918
6918
|
return 0;
|
|
6919
6919
|
}
|
|
@@ -6922,7 +6922,7 @@ var term_default = _template("x", (input) => {
|
|
|
6922
6922
|
_if(() => {
|
|
6923
6923
|
if (trapOpen) {
|
|
6924
6924
|
const $scope11_id = _scope_id();
|
|
6925
|
-
_html(`<div${_attr_class("
|
|
6925
|
+
_html(`<div${_attr_class("_d6")}><div${_attr_class("_d7")}><p${_attr_class("_eB")}>Long-press the field below and choose Paste</p><input placeholder="Paste here…">${_el_resume($scope11_id, "d")}<button${_attr_class("_l")}>Cancel</button>${_el_resume($scope11_id, "e")}</div>${_el_resume($scope11_id, "b")}</div>${_el_resume($scope11_id, "a")}`);
|
|
6926
6926
|
_script($scope11_id, "x25");
|
|
6927
6927
|
_script($scope11_id, "x26");
|
|
6928
6928
|
writeScope($scope11_id, {});
|
|
@@ -7025,7 +7025,7 @@ var work_view_default = _template("B", (input) => {
|
|
|
7025
7025
|
let DiffView = null;
|
|
7026
7026
|
const loadDiffView = _resume(() => {
|
|
7027
7027
|
if (DiffView) return;
|
|
7028
|
-
import("./
|
|
7028
|
+
import("./_DmInpMdK.js").then((m) => {
|
|
7029
7029
|
DiffView = m.default;
|
|
7030
7030
|
});
|
|
7031
7031
|
}, "B6", $scope0_id);
|
|
@@ -7211,7 +7211,7 @@ var work_view_default = _template("B", (input) => {
|
|
|
7211
7211
|
toggleDiff();
|
|
7212
7212
|
}
|
|
7213
7213
|
}, "B21", $scope0_id);
|
|
7214
|
-
_html(`<div${_attr_class(["
|
|
7214
|
+
_html(`<div${_attr_class(["_bW", { ["_bV"]: view === "nav" }])}><div${_attr_class("_bX")}>`);
|
|
7215
7215
|
_set_serialize_reason({
|
|
7216
7216
|
0: _serialize_guard($scope0_reason, 0),
|
|
7217
7217
|
1: _serialize_guard($scope0_reason, 1),
|
|
@@ -7267,7 +7267,7 @@ var work_view_default = _template("B", (input) => {
|
|
|
7267
7267
|
openDiff(pr);
|
|
7268
7268
|
}, "B29", $scope0_id)
|
|
7269
7269
|
});
|
|
7270
|
-
_html(`</div><div${_attr_class("
|
|
7270
|
+
_html(`</div><div${_attr_class("_bY")}>`);
|
|
7271
7271
|
_if(() => {
|
|
7272
7272
|
if (error) {
|
|
7273
7273
|
const $scope8_id = _scope_id();
|
|
@@ -7418,13 +7418,13 @@ var work_view_default = _template("B", (input) => {
|
|
|
7418
7418
|
return 0;
|
|
7419
7419
|
}
|
|
7420
7420
|
}, $scope0_id, "i");
|
|
7421
|
-
_html(`<div${_attr_class(["
|
|
7421
|
+
_html(`<div${_attr_class(["_b0", { ["_bZ"]: view !== "term" }])}>`);
|
|
7422
7422
|
_if(() => {
|
|
7423
7423
|
if (shownSessions) {
|
|
7424
7424
|
const $scope5_id = _scope_id();
|
|
7425
7425
|
_for_of(shownSessions, (s) => {
|
|
7426
7426
|
const $scope6_id = _scope_id();
|
|
7427
|
-
_html(`<div${_attr_class(["
|
|
7427
|
+
_html(`<div${_attr_class(["_b1", { ["_b2"]: s.id === curTab }])}>`);
|
|
7428
7428
|
_set_serialize_reason({
|
|
7429
7429
|
0: 1,
|
|
7430
7430
|
1: 1,
|
|
@@ -14968,8 +14968,23 @@ var FLUSH_MS = 16;
|
|
|
14968
14968
|
* buffering more output for a client that isn't draining. */
|
|
14969
14969
|
var SEND_HIGH_WATER = 1 << 20;
|
|
14970
14970
|
/** Which dims each session's tmux window was last forced to — lets the
|
|
14971
|
-
* input path skip the tmux exec when this client already holds the size.
|
|
14971
|
+
* input path skip the tmux exec when this client already holds the size.
|
|
14972
|
+
* A memo, not the truth: the window can move under it (another client, a
|
|
14973
|
+
* tmux restart, an old tmux that ignores resize-window), so a force that
|
|
14974
|
+
* the memo would skip is first checked against the real window size and
|
|
14975
|
+
* goes ahead when they disagree — the fix for "the pane came up small and
|
|
14976
|
+
* only a window resize put it right". */
|
|
14972
14977
|
var lastForced = /* @__PURE__ */ new Map();
|
|
14978
|
+
async function windowSize(name) {
|
|
14979
|
+
const out = await tmux([
|
|
14980
|
+
"display",
|
|
14981
|
+
"-p",
|
|
14982
|
+
"-t",
|
|
14983
|
+
name,
|
|
14984
|
+
"#{window_width}x#{window_height}"
|
|
14985
|
+
]).catch(() => "");
|
|
14986
|
+
return /^\d+x\d+$/.test(out.trim()) ? out.trim() : null;
|
|
14987
|
+
}
|
|
14973
14988
|
/** Visible-viewer counts per session; mirrored into agent state so push
|
|
14974
14989
|
* notifications skip sessions someone is actively watching. */
|
|
14975
14990
|
var viewerCounts = /* @__PURE__ */ new Map();
|
|
@@ -15100,17 +15115,22 @@ async function handleTermConnection(ws, req) {
|
|
|
15100
15115
|
const forceWindowSize = () => {
|
|
15101
15116
|
if (!visible) return;
|
|
15102
15117
|
const key = `${dims[0]}x${dims[1]}`;
|
|
15103
|
-
|
|
15118
|
+
const memo = lastForced.get(session.id);
|
|
15104
15119
|
lastForced.set(session.id, key);
|
|
15105
|
-
|
|
15106
|
-
|
|
15107
|
-
|
|
15108
|
-
|
|
15109
|
-
|
|
15110
|
-
|
|
15111
|
-
|
|
15112
|
-
|
|
15113
|
-
|
|
15120
|
+
(async () => {
|
|
15121
|
+
if (memo === key && await windowSize(tmuxName(session.id)) === key) return;
|
|
15122
|
+
const [x, y] = dims;
|
|
15123
|
+
lastForced.set(session.id, `${x}x${y}`);
|
|
15124
|
+
await tmux([
|
|
15125
|
+
"resize-window",
|
|
15126
|
+
"-t",
|
|
15127
|
+
tmuxName(session.id),
|
|
15128
|
+
"-x",
|
|
15129
|
+
String(x),
|
|
15130
|
+
"-y",
|
|
15131
|
+
String(y)
|
|
15132
|
+
]).catch(() => {});
|
|
15133
|
+
})();
|
|
15114
15134
|
};
|
|
15115
15135
|
forceWindowSize();
|
|
15116
15136
|
ws.on("message", (data, isBinary) => {
|
|
@@ -15299,4 +15319,4 @@ server.listen(port, () => {
|
|
|
15299
15319
|
//#endregion
|
|
15300
15320
|
export {};
|
|
15301
15321
|
|
|
15302
|
-
;var __MARKO_MANIFEST__={"
|
|
15322
|
+
;var __MARKO_MANIFEST__={"ZLT8joi":{"block":[2,"stylesheet#/assets/app-page-tW18Q0xx.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-tW18Q0xx.css\"",">"],"defer":[2,"/assets/new-Bh0akN8j.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-Bh0akN8j.js\"","></script>",2,"modulepreload#/assets/_CanTayMh.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CanTayMh.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/app-page-tW18Q0xx.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-tW18Q0xx.css\"",">"],"defer":[2,"/assets/settings-Bh0akN8j.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-Bh0akN8j.js\"","></script>",2,"modulepreload#/assets/_CanTayMh.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CanTayMh.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/app-page-tW18Q0xx.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-tW18Q0xx.css\"",">"],"defer":[2,"/assets/w-Bh0akN8j.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-Bh0akN8j.js\"","></script>",2,"modulepreload#/assets/_CanTayMh.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CanTayMh.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/app-page-tW18Q0xx.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-tW18Q0xx.css\"",">"],"defer":[2,"/assets/w._-Bh0akN8j.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-Bh0akN8j.js\"","></script>",2,"modulepreload#/assets/_CanTayMh.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CanTayMh.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/app-page-tW18Q0xx.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-tW18Q0xx.css\"",">"],"defer":[2,"/assets/w._-UlPNND_9.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-UlPNND_9.js\"","></script>",2,"modulepreload#/assets/_CanTayMh.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CanTayMh.js\"",">"]}};
|